@synnaxlabs/pluto 0.42.0 → 0.42.3
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/{Center-CNcAEDgS.js → Center-D0JeI7Ta.js} +2 -2
- package/dist/{Center-Map6aflE.cjs → Center-DuI3XH-Q.cjs} +1 -1
- package/dist/{ContextMenu-fLU0wr9S.js → ContextMenu-BiNr7Gxv.js} +3 -3
- package/dist/{ContextMenu-DmRPxhnI.cjs → ContextMenu-HpMLd1Ht.cjs} +1 -1
- package/dist/{DateTime-CP3OmEGY.cjs → DateTime-BsjSfOY-.cjs} +1 -1
- package/dist/{DateTime-CWAcEwXO.js → DateTime-r6hocEmI.js} +2 -2
- package/dist/{Divider-BTLn5ucU.js → Divider-DqEkzRIY.js} +1 -1
- package/dist/{Divider-Dvb6dsgX.cjs → Divider-Dut8qPee.cjs} +2 -2
- package/dist/{Dropdown-CaGzfZRa.cjs → Dropdown-BSSe1E1e.cjs} +1 -1
- package/dist/{Dropdown-nw8kRSbl.js → Dropdown-BrFL1eSc.js} +38 -38
- package/dist/{Haul-B8zGWk0I.cjs → Haul-C6i2oI7z.cjs} +1 -1
- package/dist/{Haul-Cnuzk7Z-.js → Haul-CEFSvdy9.js} +1 -1
- package/dist/{Item-FmwC-twg.js → Item-C5SQraZM.js} +6 -6
- package/dist/{Item-BzrQqxRC.cjs → Item-DSBs9VLu.cjs} +1 -1
- package/dist/{Keyboard-BfvjkBgh.cjs → Keyboard-Ca7TAAHK.cjs} +1 -1
- package/dist/{Keyboard-Cevv7vrQ.js → Keyboard-Duo41pJL.js} +2 -2
- package/dist/{Link-DI7BZ5dL.cjs → Link-B9ZGvoBU.cjs} +1 -1
- package/dist/{Link-Dljdu4e9.js → Link-C9GeoB0w.js} +1 -1
- package/dist/{Pack-to0DG2iP.js → Pack-BozAEHBp.js} +2 -2
- package/dist/{Pack-lJqoOmHx.cjs → Pack-DeZUUdJM.cjs} +1 -1
- package/dist/{Provider-C_B463cg.js → Provider-B86QO9NT.js} +5 -5
- package/dist/{Provider-BlM1x1cF.cjs → Provider-Cw0mSr2D.cjs} +1 -1
- package/dist/{Space-C2oZDkE1.js → Space-CyTH97CN.js} +1 -1
- package/dist/{Space-DfcVsxz8.cjs → Space-DvalhzRj.cjs} +1 -1
- package/dist/{Text-BiYpGaEZ.js → Text-8ps3Uw4T.js} +3 -3
- package/dist/{Text-CWiPrDI1.js → Text-BR4FW9Hy.js} +12 -12
- package/dist/{Text-BjHlLKsp.cjs → Text-C8GBHl-F.cjs} +1 -1
- package/dist/{Text-ZJqK1cI3.cjs → Text-CMTkSEWx.cjs} +2 -2
- package/dist/{Text-DrIBbnml.cjs → Text-DkA06TeT.cjs} +1 -1
- package/dist/{Text-BXADoWYY.js → Text-sH_NOelc.js} +41 -41
- package/dist/{Toggle-CeUVv58o.js → Toggle-BRuUrO2N.js} +29 -29
- package/dist/{Toggle-CfwYy9fe.cjs → Toggle-C0lZDyeo.cjs} +1 -1
- package/dist/{Video-BZ1XTEez.js → Video-DWStbcmD.js} +1 -1
- package/dist/{Video-C7YoF37-.cjs → Video-DgjuFLiE.cjs} +1 -1
- package/dist/{WithIcon-DG7VJxsE.cjs → WithIcon-BgS5shNZ.cjs} +1 -1
- package/dist/{WithIcon-pBZ7H9Lq.js → WithIcon-BhR6nwRh.js} +3 -3
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-hg3QdDDt.cjs → css-9iEiTRNL.cjs} +8 -8
- package/dist/{css-B7c7_G5h.js → css-Cnb9DQMD.js} +612 -611
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/deep-BNa3STCp.cjs +1 -0
- package/dist/deep-P35D0Sz7.js +112 -0
- package/dist/{dimensions-DcjW7X3n.js → dimensions-B6qmnzv3.js} +1 -1
- package/dist/{dimensions-Cz-q0Mok.cjs → dimensions-By-vgVks.cjs} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-BOx6Xhwn.cjs → eraser-BkqFgBRY.cjs} +2 -2
- package/dist/{eraser-Bsb4kKS3.js → eraser-CK8SwEJa.js} +8 -8
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +7 -7
- package/dist/{external-CEfSeJMr.js → external-B1YsdhS4.js} +9 -9
- package/dist/{external-DeCeUbqe.js → external-B7NxSklQ.js} +6 -6
- package/dist/{external-CLTPcWrI.cjs → external-B8uaUKhb.cjs} +1 -1
- package/dist/{external-DDD_nc3x.js → external-BA_VOnV-.js} +41 -41
- package/dist/{external-Ck1rVwUu.js → external-BDkqwq72.js} +17 -17
- package/dist/{external-BdVuZd3H.cjs → external-BGBgNbe2.cjs} +1 -1
- package/dist/{external-1KJXZcr9.js → external-BOMdfX8_.js} +2 -2
- package/dist/{external-hgzjVlDR.js → external-Bl8q9UBF.js} +11 -11
- package/dist/{external-DgSaeiBz.js → external-BnK4UIFe.js} +3 -3
- package/dist/{external-Cfj1plcw.cjs → external-BwUa_5Vs.cjs} +1 -1
- package/dist/{external-DCcp3sQD.js → external-C0X4mXVG.js} +4 -4
- package/dist/{external-qwaFowDe.js → external-C7yPkamb.js} +5 -5
- package/dist/{external-Cni9ftkW.cjs → external-CTc1n-JC.cjs} +1 -1
- package/dist/{external-DCfs7IFi.cjs → external-CUgPP-JD.cjs} +1 -1
- package/dist/{external-C75Z9Zbn.cjs → external-CzTBFiv_.cjs} +1 -1
- package/dist/{external-BiBhgCdz.cjs → external-DGJ8YAe-.cjs} +1 -1
- package/dist/{external-DhfASB4W.cjs → external-DQwznOyH.cjs} +1 -1
- package/dist/{external-DNT-gmZx.cjs → external-DiLZ1dEk.cjs} +1 -1
- package/dist/{external-bkwgRzLc.js → external-DissGp_3.js} +7 -7
- package/dist/{external-BHHC7TQ_.cjs → external-DmryCcwg.cjs} +1 -1
- package/dist/{external-pUEPQrp_.cjs → external-Dq8-cbf3.cjs} +1 -1
- package/dist/{external-sUHGRdqd.js → external-_8qdWaAg.js} +2 -2
- package/dist/{external-CRNR1bD0.js → external-bSUra-q7.js} +4 -4
- package/dist/{external-BLEs2AYM.cjs → external-zbKPQ9ls.cjs} +2 -2
- package/dist/{font-Crn-D_ua.js → font-CjYcjBiv.js} +2 -2
- package/dist/{font-BFTKtIQk.cjs → font-XlUAG1-r.cjs} +1 -1
- package/dist/{fontString-DjnDxFrE.js → fontString-BN1kd1AP.js} +1 -1
- package/dist/{fontString-DQLaRHQV.cjs → fontString-Ddza50DF.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/{hooks-CTKCi-OE.cjs → hooks-B5aLaWzS.cjs} +1 -1
- package/dist/{hooks-CM9HWxYc.js → hooks-DjznxGgm.js} +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.js +513 -513
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/{provider-XPRFhwnl.cjs → provider-aWtsGnV8.cjs} +24 -24
- package/dist/{provider-BDFfcHVT.js → provider-r5Ly36FI.js} +1569 -1566
- package/dist/src/color/Provider.d.ts +5 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +2 -2
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/table/cells/Cells.d.ts +6 -2
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +6 -2
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +12 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +2 -2
- package/dist/src/telem/control/aether/indicator.d.ts +12 -4
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +10 -2
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +5 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +660 -132
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +478 -126
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +10 -2
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +9 -3
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +5 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +10 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +40 -8
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +15 -3
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +40 -8
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +10 -2
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +15 -3
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +5 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/units-CX_coN92.cjs +1 -0
- package/dist/{units-a8CggrTe.js → units-Ct3Xl5nK.js} +1 -1
- package/dist/{useClickOutside-CPAEkvf8.cjs → useClickOutside-CSff8yb-.cjs} +1 -1
- package/dist/{useClickOutside-CKMnqdvH.js → useClickOutside-DDCP7Fh-.js} +24 -24
- package/dist/{useDebouncedCallback-Cyd6pZ59.js → useDebouncedCallback-BG4I7mbT.js} +1 -1
- package/dist/{useDebouncedCallback-DsKlBI86.cjs → useDebouncedCallback-DnwYZzjR.cjs} +1 -1
- package/dist/{useMemoCompare-B930TM0g.js → useMemoCompare-BViQehyd.js} +2 -2
- package/dist/{useMemoCompare-DprA41gC.cjs → useMemoCompare-C2X7Mzx8.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-Cvp93Pya.cjs → useVirtualCursorDragWebKit-DDmXE4RW.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-BrSOJpYY.js → useVirtualCursorDragWebKit-DTU2tUmp.js} +3 -3
- package/dist/{value-BdZLWVof.js → value-B6OlPXe1.js} +404 -404
- package/dist/value-Bq1w9UY8.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/deep-B1etRzze.cjs +0 -1
- package/dist/deep-BytImVW-.js +0 -102
- package/dist/units-CKKNRQlP.cjs +0 -1
- package/dist/value-B7u8K1CW.cjs +0 -57
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var je = (r, e, t) =>
|
|
1
|
+
var _n = Object.defineProperty;
|
|
2
|
+
var qn = (r, e, t) => e in r ? _n(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var je = (r, e, t) => qn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import se, { z as a } from "zod";
|
|
5
5
|
const Xe = a.tuple([a.number(), a.number()]);
|
|
6
6
|
a.tuple([a.bigint(), a.bigint()]);
|
|
7
|
-
const
|
|
7
|
+
const Rt = a.object({ width: a.number(), height: a.number() }), Wn = a.object({
|
|
8
8
|
signedWidth: a.number(),
|
|
9
9
|
signedHeight: a.number()
|
|
10
|
-
}),
|
|
11
|
-
a.enum(Wn);
|
|
12
|
-
const Vn = ["start", "center", "end"], Yn = ["signedWidth", "signedHeight"];
|
|
13
|
-
a.enum(Yn);
|
|
14
|
-
const Ne = a.object({ x: a.number(), y: a.number() }), Ir = a.object({ clientX: a.number(), clientY: a.number() }), Rt = ["x", "y"], jt = a.enum(Rt), Nr = ["top", "right", "bottom", "left"], Zn = a.enum(Nr), Qe = ["left", "right"], kt = a.enum(Qe), et = ["top", "bottom"], Dt = a.enum(et), Pt = ["center"], dt = a.enum(Pt), Hn = [...Nr, ...Pt], zt = a.enum(Hn);
|
|
10
|
+
}), Vn = ["width", "height"];
|
|
15
11
|
a.enum(Vn);
|
|
16
|
-
const
|
|
17
|
-
a.enum(
|
|
18
|
-
const
|
|
12
|
+
const Yn = ["start", "center", "end"], Zn = ["signedWidth", "signedHeight"];
|
|
13
|
+
a.enum(Zn);
|
|
14
|
+
const Ne = a.object({ x: a.number(), y: a.number() }), Ir = a.object({ clientX: a.number(), clientY: a.number() }), jt = ["x", "y"], kt = a.enum(jt), Nr = ["top", "right", "bottom", "left"], Hn = a.enum(Nr), Qe = ["left", "right"], Dt = a.enum(Qe), et = ["top", "bottom"], Pt = a.enum(et), zt = ["center"], gt = a.enum(zt), Gn = [...Nr, ...zt], Ft = a.enum(Gn);
|
|
15
|
+
a.enum(Yn);
|
|
16
|
+
const Kn = ["first", "last"];
|
|
17
|
+
a.enum(Kn);
|
|
18
|
+
const Ur = a.object({ lower: a.number(), upper: a.number() }), Jn = a.object({ lower: a.bigint(), upper: a.bigint() });
|
|
19
19
|
a.union([Ur, Xe]);
|
|
20
|
-
a.union([
|
|
21
|
-
const
|
|
20
|
+
a.union([Jn, Xe]);
|
|
21
|
+
const Xn = a.enum([...kt.options, ...Ft.options]), Qn = a.union([kt, Ft, a.instanceof(String)]), K = (r) => typeof r == "bigint" || r instanceof BigInt, $e = (r, e) => K(r) ? r.valueOf() - BigInt(e.valueOf().valueOf()) : r.valueOf() - Number(e.valueOf()), Br = (r, e) => K(r) ? r.valueOf() + BigInt(e.valueOf().valueOf()) : r + Number(e.valueOf()), es = (r, e, t = 1e-4) => Math.abs(r - e) < t, pt = (r, e) => K(r) ? r === BigInt(e.valueOf().valueOf()) : r === Number(e.valueOf()), ts = (r) => {
|
|
22
22
|
const e = 10 ** Math.floor(Math.log10(r));
|
|
23
23
|
return Math.round(r / e) * e;
|
|
24
|
-
}, Er = (r, e) => K(r) ? r.valueOf() < BigInt(e.valueOf()) ? r : BigInt(e.valueOf()) : r.valueOf() < Number(e.valueOf()) ? r : Number(e.valueOf()),
|
|
24
|
+
}, Er = (r, e) => K(r) ? r.valueOf() < BigInt(e.valueOf()) ? r : BigInt(e.valueOf()) : r.valueOf() < Number(e.valueOf()) ? r : Number(e.valueOf()), rs = (r, e) => K(r) ? r.valueOf() > BigInt(e.valueOf()) ? r : BigInt(e.valueOf()) : r.valueOf() > Number(e.valueOf()) ? r : Number(e.valueOf()), Ar = (r) => K(r) || r instanceof BigInt ? r.valueOf() < 0n ? -r : r : r.valueOf() < 0 ? -r : r, X = (r, e) => K(r) ? r.valueOf() * BigInt(e.valueOf()) : r.valueOf() * Number(e.valueOf()), ns = (r, e) => K(r) ? r.valueOf() / BigInt(e.valueOf()) : r.valueOf() / Number(e.valueOf()), m = (r, e) => {
|
|
25
25
|
const t = {};
|
|
26
26
|
if (typeof r == "number" || typeof r == "bigint")
|
|
27
27
|
e != null ? (t.lower = r, t.upper = e) : (t.lower = typeof r == "bigint" ? 0n : 0, t.upper = r);
|
|
28
28
|
else if (Array.isArray(r)) {
|
|
29
29
|
if (r.length !== 2) throw new Error("bounds: expected array of length 2");
|
|
30
30
|
[t.lower, t.upper] = r;
|
|
31
|
-
} else return
|
|
32
|
-
return
|
|
33
|
-
},
|
|
31
|
+
} else return yt(r);
|
|
32
|
+
return yt(t);
|
|
33
|
+
}, ss = Object.freeze({ lower: 0, upper: 0 }), is = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), os = Object.freeze({ lower: 0, upper: 1 }), as = Object.freeze({ lower: -1, upper: 1 }), us = (r, e) => {
|
|
34
34
|
if (r == null && e == null) return !0;
|
|
35
35
|
if (r == null || e == null) return !1;
|
|
36
36
|
const t = m(r), n = m(e);
|
|
37
37
|
return (t == null ? void 0 : t.lower) === (n == null ? void 0 : n.lower) && (t == null ? void 0 : t.upper) === (n == null ? void 0 : n.upper);
|
|
38
|
-
},
|
|
38
|
+
}, yt = (r) => r.lower > r.upper ? { lower: r.upper, upper: r.lower } : r, mt = (r, e) => {
|
|
39
39
|
const t = m(r);
|
|
40
40
|
return e < t.lower ? t.lower : e >= t.upper ? t.upper - (typeof t.upper == "number" ? 1 : 1n) : e;
|
|
41
41
|
}, C = (r, e) => {
|
|
@@ -44,49 +44,49 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
44
44
|
return e >= t.lower && e < t.upper;
|
|
45
45
|
const n = m(e);
|
|
46
46
|
return n.lower >= t.lower && n.upper <= t.upper;
|
|
47
|
-
},
|
|
47
|
+
}, ls = (r, e) => {
|
|
48
48
|
const t = m(r), n = m(e);
|
|
49
49
|
return t.lower === n.lower ? !0 : n.upper === t.lower || n.lower === t.upper ? !1 : C(t, n.upper) || C(t, n.lower) || C(n, t.upper) || C(n, t.lower);
|
|
50
50
|
}, Me = (r) => {
|
|
51
51
|
const e = m(r);
|
|
52
52
|
return e.upper - e.lower;
|
|
53
|
-
},
|
|
53
|
+
}, hs = (r) => {
|
|
54
54
|
const e = m(r);
|
|
55
55
|
return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
|
|
56
|
-
},
|
|
56
|
+
}, cs = (r) => {
|
|
57
57
|
const e = Me(r);
|
|
58
58
|
return typeof e == "number" ? e === 0 : e === 0n;
|
|
59
|
-
},
|
|
59
|
+
}, fs = (r) => {
|
|
60
60
|
const e = m(r);
|
|
61
61
|
return typeof e.lower == "bigint" ? !0 : Number.isFinite(e.lower) && Number.isFinite(e.upper);
|
|
62
|
-
},
|
|
62
|
+
}, ds = (r) => {
|
|
63
63
|
const e = m(r);
|
|
64
64
|
return (e.upper + e.lower) / 2;
|
|
65
65
|
}, Mr = (r) => ({
|
|
66
66
|
lower: Math.min(...r.map((e) => m(e).lower)),
|
|
67
67
|
upper: Math.max(...r.map((e) => m(e).upper))
|
|
68
|
-
}),
|
|
68
|
+
}), gs = (r) => ({
|
|
69
69
|
lower: Math.max(...r.map((e) => m(e).lower)),
|
|
70
70
|
upper: Math.min(...r.map((e) => m(e).upper))
|
|
71
|
-
}),
|
|
71
|
+
}), ps = (r) => {
|
|
72
72
|
const e = m(r), t = typeof e.lower == "bigint";
|
|
73
73
|
return Array.from({ length: Number(Me(r)) }, (n, s) => t ? e.lower + BigInt(s) : e.lower + s);
|
|
74
|
-
},
|
|
74
|
+
}, wt = (r, e) => {
|
|
75
75
|
const t = r.map((i) => m(i)), n = t.findIndex((i) => C(i, e) || e < i.lower);
|
|
76
76
|
if (n === -1) return { index: r.length, position: 0 };
|
|
77
77
|
const s = t[n];
|
|
78
78
|
return C(s, e) ? { index: n, position: Number(e - s.lower) } : { index: n, position: 0 };
|
|
79
|
-
},
|
|
79
|
+
}, ut = {
|
|
80
80
|
removeBefore: 0,
|
|
81
81
|
removeAfter: 0,
|
|
82
82
|
insertInto: 0,
|
|
83
83
|
deleteInBetween: 0
|
|
84
|
-
},
|
|
84
|
+
}, ys = (r, e) => {
|
|
85
85
|
const t = r.map((f) => m(f)), n = m(e);
|
|
86
|
-
if (t.length === 0) return
|
|
87
|
-
const s =
|
|
88
|
-
if (s.index === r.length) return { ...
|
|
89
|
-
if (i.index === 0) return { ...
|
|
86
|
+
if (t.length === 0) return ut;
|
|
87
|
+
const s = wt(t, n.lower), i = wt(t, n.upper);
|
|
88
|
+
if (s.index === r.length) return { ...ut, insertInto: r.length };
|
|
89
|
+
if (i.index === 0) return { ...ut, removeAfter: i.position };
|
|
90
90
|
if (s.index === i.index)
|
|
91
91
|
return s.position !== 0 && i.position !== 0 ? null : {
|
|
92
92
|
removeAfter: i.position,
|
|
@@ -105,7 +105,7 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
105
105
|
const n = r.map((u) => m(u)), s = t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
106
106
|
if (s === 0) return e;
|
|
107
107
|
let i = t, o = e;
|
|
108
|
-
for (;
|
|
108
|
+
for (; pt(i, 0) === !1; ) {
|
|
109
109
|
const u = n.findIndex((h) => s > 0 ? o >= h.lower && o < h.upper : o > h.lower && o <= h.upper);
|
|
110
110
|
if (u !== -1) {
|
|
111
111
|
const h = n[u];
|
|
@@ -115,7 +115,7 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
115
115
|
if (o = Br(
|
|
116
116
|
o,
|
|
117
117
|
s > 0 ? g : -g
|
|
118
|
-
), i = $e(i, s > 0 ? g : -g),
|
|
118
|
+
), i = $e(i, s > 0 ? g : -g), pt(i, 0)) return o;
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -144,163 +144,163 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
return i;
|
|
147
|
-
},
|
|
147
|
+
}, Fu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
148
148
|
__proto__: null,
|
|
149
|
-
CLIP:
|
|
150
|
-
DECIMAL:
|
|
151
|
-
INFINITE:
|
|
152
|
-
ZERO:
|
|
149
|
+
CLIP: as,
|
|
150
|
+
DECIMAL: os,
|
|
151
|
+
INFINITE: is,
|
|
152
|
+
ZERO: ss,
|
|
153
153
|
bounds: Ur,
|
|
154
|
-
buildInsertionPlan:
|
|
155
|
-
clamp:
|
|
154
|
+
buildInsertionPlan: ys,
|
|
155
|
+
clamp: mt,
|
|
156
156
|
construct: m,
|
|
157
157
|
contains: C,
|
|
158
158
|
distance: Lr,
|
|
159
|
-
equals:
|
|
160
|
-
findInsertPosition:
|
|
161
|
-
isFinite:
|
|
162
|
-
isZero:
|
|
163
|
-
linspace:
|
|
164
|
-
makeValid:
|
|
159
|
+
equals: us,
|
|
160
|
+
findInsertPosition: wt,
|
|
161
|
+
isFinite: fs,
|
|
162
|
+
isZero: hs,
|
|
163
|
+
linspace: ps,
|
|
164
|
+
makeValid: yt,
|
|
165
165
|
max: Mr,
|
|
166
|
-
mean:
|
|
167
|
-
min:
|
|
168
|
-
overlapsWith:
|
|
166
|
+
mean: ds,
|
|
167
|
+
min: gs,
|
|
168
|
+
overlapsWith: ls,
|
|
169
169
|
span: Me,
|
|
170
|
-
spanIsZero:
|
|
170
|
+
spanIsZero: cs,
|
|
171
171
|
traverse: Cr
|
|
172
|
-
}, Symbol.toStringTag, { value: "Module" })), Rr =
|
|
172
|
+
}, Symbol.toStringTag, { value: "Module" })), Rr = Xn, J = (r) => jt.includes(r) ? r : et.includes(r) ? "y" : "x", ms = (r) => J(r) === "x" ? "y" : "x", ws = (r) => J(r) === "x" ? "width" : "height", bs = (r) => J(r) === "x" ? "left" : "top", vs = (r) => Rr.safeParse(r).success, $s = (r) => J(r) === "x" ? "signedWidth" : "signedHeight", xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
173
173
|
__proto__: null,
|
|
174
174
|
construct: J,
|
|
175
175
|
crude: Rr,
|
|
176
|
-
dimension:
|
|
177
|
-
direction:
|
|
178
|
-
isDirection:
|
|
179
|
-
location:
|
|
180
|
-
signedDimension:
|
|
181
|
-
swap:
|
|
182
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
176
|
+
dimension: ws,
|
|
177
|
+
direction: kt,
|
|
178
|
+
isDirection: vs,
|
|
179
|
+
location: bs,
|
|
180
|
+
signedDimension: $s,
|
|
181
|
+
swap: ms
|
|
182
|
+
}, Symbol.toStringTag, { value: "Module" })), Os = (r) => {
|
|
183
183
|
const e = r.replace(/_[a-z]/g, (t) => t[1].toUpperCase());
|
|
184
184
|
return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
|
|
185
|
-
},
|
|
186
|
-
const e = (t, n =
|
|
185
|
+
}, _t = (r) => {
|
|
186
|
+
const e = (t, n = bt) => {
|
|
187
187
|
if (typeof t == "string") return r(t);
|
|
188
188
|
if (Array.isArray(t)) return t.map((o) => e(o, n));
|
|
189
|
-
if (!
|
|
190
|
-
n =
|
|
189
|
+
if (!lt(t)) return t;
|
|
190
|
+
n = Ss(n);
|
|
191
191
|
const s = {}, i = t;
|
|
192
192
|
return Object.keys(i).forEach((o) => {
|
|
193
193
|
let u = i[o];
|
|
194
194
|
const h = r(o);
|
|
195
|
-
n.recursive && (
|
|
195
|
+
n.recursive && (lt(u) ? lr(u, n.keepTypesOnRecursion) || (u = e(u, n)) : n.recursiveInArray && ur(u) && (u = [...u].map((f) => {
|
|
196
196
|
let g = f;
|
|
197
|
-
return
|
|
197
|
+
return lt(f) ? lr(g, n.keepTypesOnRecursion) || (g = e(f, n)) : ur(f) && (g = e({ key: f }, n).key), g;
|
|
198
198
|
}))), s[h] = u;
|
|
199
199
|
}), s;
|
|
200
200
|
};
|
|
201
201
|
return e;
|
|
202
|
-
}, tt =
|
|
202
|
+
}, tt = _t(Os), Ts = (r) => (
|
|
203
203
|
// Don't convert the first character and don't convert a character that is after a
|
|
204
204
|
// non-alphanumeric character
|
|
205
205
|
r.replace(
|
|
206
206
|
/([a-z0-9])([A-Z])/g,
|
|
207
207
|
(e, t, n) => `${t}_${n.toLowerCase()}`
|
|
208
208
|
)
|
|
209
|
-
),
|
|
209
|
+
), qt = _t(Ts), jr = (r) => r.length === 0 ? r : r[0].toUpperCase() + r.slice(1), bt = {
|
|
210
210
|
recursive: !0,
|
|
211
211
|
recursiveInArray: !0,
|
|
212
212
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
213
|
-
},
|
|
213
|
+
}, Ss = (r = bt) => (r.recursive == null ? r = bt : r.recursiveInArray ?? (r.recursiveInArray = !1), r), ur = (r) => r != null && Array.isArray(r), lt = (r) => r != null && typeof r == "object" && !Array.isArray(r), lr = (r, e) => (e || []).some((t) => r instanceof t), Is = (r) => r.replace(/\s+/g, "-").replace(
|
|
214
214
|
/([a-z0-9])([A-Z])/g,
|
|
215
215
|
(e, t, n) => `${t}-${n.toLowerCase()}`
|
|
216
|
-
).toLowerCase(),
|
|
216
|
+
).toLowerCase(), Ns = _t(Is), _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
217
217
|
__proto__: null,
|
|
218
|
-
camelToSnake:
|
|
218
|
+
camelToSnake: qt,
|
|
219
219
|
capitalize: jr,
|
|
220
220
|
snakeToCamel: tt,
|
|
221
|
-
toKebab:
|
|
222
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
221
|
+
toKebab: Ns
|
|
222
|
+
}, Symbol.toStringTag, { value: "Module" })), Us = Dt, Bs = Pt, Es = gt, As = {
|
|
223
223
|
top: "bottom",
|
|
224
224
|
right: "left",
|
|
225
225
|
bottom: "top",
|
|
226
226
|
left: "right",
|
|
227
227
|
center: "center"
|
|
228
|
-
},
|
|
228
|
+
}, Ms = {
|
|
229
229
|
top: "left",
|
|
230
230
|
right: "top",
|
|
231
231
|
bottom: "right",
|
|
232
232
|
left: "bottom",
|
|
233
233
|
center: "center"
|
|
234
|
-
},
|
|
234
|
+
}, Cs = Qn, Z = (r) => r instanceof String || !jt.includes(r) ? r : r === "x" ? "left" : "top", Ls = (r) => As[Z(r)], Rs = (r) => Ms[Z(r)], Ue = (r) => {
|
|
235
235
|
const e = Z(r);
|
|
236
236
|
return e === "top" || e === "bottom" ? "y" : "x";
|
|
237
|
-
},
|
|
238
|
-
x:
|
|
239
|
-
y:
|
|
240
|
-
}), kr = a.object({ x:
|
|
237
|
+
}, js = a.object({
|
|
238
|
+
x: Dt.or(gt),
|
|
239
|
+
y: Pt.or(gt)
|
|
240
|
+
}), kr = a.object({ x: Dt, y: Pt }), Ce = Object.freeze({ x: "left", y: "top" }), Wt = Object.freeze({ x: "right", y: "top" }), rt = Object.freeze({ x: "left", y: "bottom" }), Vt = Object.freeze({ x: "right", y: "bottom" }), Yt = Object.freeze({ x: "center", y: "center" }), Zt = Object.freeze({ x: "center", y: "top" }), Ht = Object.freeze({ x: "center", y: "bottom" }), Gt = Object.freeze({ x: "right", y: "center" }), Kt = Object.freeze({ x: "left", y: "center" }), ks = Object.freeze([
|
|
241
|
+
Kt,
|
|
241
242
|
Gt,
|
|
242
|
-
Ht,
|
|
243
|
-
Yt,
|
|
244
243
|
Zt,
|
|
244
|
+
Ht,
|
|
245
245
|
Ce,
|
|
246
|
-
qt,
|
|
247
|
-
rt,
|
|
248
246
|
Wt,
|
|
249
|
-
|
|
250
|
-
|
|
247
|
+
rt,
|
|
248
|
+
Vt,
|
|
249
|
+
Yt
|
|
250
|
+
]), Jt = (r, e) => r.x === e.x && r.y === e.y, Ds = (r, e) => {
|
|
251
251
|
if (typeof e == "object") {
|
|
252
252
|
let t = !0;
|
|
253
253
|
return "x" in e && (r.x === e.x || (t = !1)), "y" in e && (r.y === e.y || (t = !1)), t;
|
|
254
254
|
}
|
|
255
255
|
return r.x === e || r.y === e;
|
|
256
|
-
}, Dr = (r) => [r.x, r.y], _e = (r) => Ue(Z(r)) === "x",
|
|
256
|
+
}, Dr = (r) => [r.x, r.y], _e = (r) => Ue(Z(r)) === "x", Ps = (r) => Ue(Z(r)) === "y", zs = (r) => `${r.x}${jr(r.y)}`, Fs = (r, e) => {
|
|
257
257
|
let t, n;
|
|
258
258
|
if (typeof r == "object" && "x" in r ? (t = r.x, n = r.y) : (t = Z(r), n = Z(e ?? r)), Ue(t) === Ue(n) && t !== "center" && n !== "center")
|
|
259
259
|
throw new Error(
|
|
260
260
|
`[XYLocation] - encountered two locations with the same direction: ${t.toString()} - ${n.toString()}`
|
|
261
261
|
);
|
|
262
|
-
const s = { ...
|
|
262
|
+
const s = { ...Yt };
|
|
263
263
|
return t === "center" ? _e(n) ? [s.x, s.y] = [n, t] : [s.x, s.y] = [t, n] : n === "center" ? _e(t) ? [s.x, s.y] = [t, n] : [s.x, s.y] = [n, t] : _e(t) ? [s.x, s.y] = [t, n] : [s.x, s.y] = [n, t], s;
|
|
264
|
-
},
|
|
264
|
+
}, _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
265
265
|
__proto__: null,
|
|
266
|
-
BOTTOM_CENTER:
|
|
266
|
+
BOTTOM_CENTER: Ht,
|
|
267
267
|
BOTTOM_LEFT: rt,
|
|
268
|
-
BOTTOM_RIGHT:
|
|
269
|
-
CENTER:
|
|
270
|
-
CENTER_LEFT:
|
|
271
|
-
CENTER_LOCATIONS:
|
|
272
|
-
CENTER_RIGHT:
|
|
273
|
-
TOP_CENTER:
|
|
268
|
+
BOTTOM_RIGHT: Vt,
|
|
269
|
+
CENTER: Yt,
|
|
270
|
+
CENTER_LEFT: Kt,
|
|
271
|
+
CENTER_LOCATIONS: zt,
|
|
272
|
+
CENTER_RIGHT: Gt,
|
|
273
|
+
TOP_CENTER: Zt,
|
|
274
274
|
TOP_LEFT: Ce,
|
|
275
|
-
TOP_RIGHT:
|
|
276
|
-
XY_LOCATIONS:
|
|
275
|
+
TOP_RIGHT: Wt,
|
|
276
|
+
XY_LOCATIONS: ks,
|
|
277
277
|
X_LOCATIONS: Qe,
|
|
278
278
|
Y_LOCATIONS: et,
|
|
279
|
-
center:
|
|
279
|
+
center: Es,
|
|
280
280
|
construct: Z,
|
|
281
|
-
constructXY:
|
|
281
|
+
constructXY: Fs,
|
|
282
282
|
corner: kr,
|
|
283
|
-
crude:
|
|
283
|
+
crude: Cs,
|
|
284
284
|
direction: Ue,
|
|
285
285
|
isX: _e,
|
|
286
|
-
isY:
|
|
287
|
-
location:
|
|
288
|
-
outer:
|
|
289
|
-
rotate90:
|
|
290
|
-
swap:
|
|
291
|
-
x:
|
|
292
|
-
xy:
|
|
286
|
+
isY: Ps,
|
|
287
|
+
location: Ft,
|
|
288
|
+
outer: Hn,
|
|
289
|
+
rotate90: Rs,
|
|
290
|
+
swap: Ls,
|
|
291
|
+
x: Us,
|
|
292
|
+
xy: js,
|
|
293
293
|
xyCouple: Dr,
|
|
294
|
-
xyEquals:
|
|
295
|
-
xyMatches:
|
|
296
|
-
xyToString:
|
|
297
|
-
y:
|
|
298
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
294
|
+
xyEquals: Jt,
|
|
295
|
+
xyMatches: Ds,
|
|
296
|
+
xyToString: zs,
|
|
297
|
+
y: Bs
|
|
298
|
+
}, Symbol.toStringTag, { value: "Module" })), vt = a.union([
|
|
299
299
|
a.number(),
|
|
300
300
|
Ne,
|
|
301
301
|
Xe,
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
Rt,
|
|
303
|
+
Wn,
|
|
304
304
|
Ir
|
|
305
305
|
]), T = (r, e) => {
|
|
306
306
|
if (typeof r == "string") {
|
|
@@ -308,10 +308,10 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
308
308
|
return r === "x" ? { x: e, y: 0 } : { x: 0, y: e };
|
|
309
309
|
}
|
|
310
310
|
return typeof r == "number" ? { x: r, y: e ?? r } : Array.isArray(r) ? { x: r[0], y: r[1] } : "signedWidth" in r ? { x: r.signedWidth, y: r.signedHeight } : "clientX" in r ? { x: r.clientX, y: r.clientY } : "width" in r ? { x: r.width, y: r.height } : { x: r.x, y: r.y };
|
|
311
|
-
}, D = Object.freeze({ x: 0, y: 0 }), Pr = Object.freeze({ x: 1, y: 1 }),
|
|
311
|
+
}, D = Object.freeze({ x: 0, y: 0 }), Pr = Object.freeze({ x: 1, y: 1 }), qs = Object.freeze({ x: 1 / 0, y: 1 / 0 }), Ws = Object.freeze({ x: NaN, y: NaN }), Ge = (r, e, t = 0) => {
|
|
312
312
|
const n = T(r), s = T(e);
|
|
313
313
|
return t === 0 ? n.x === s.x && n.y === s.y : Math.abs(n.x - s.x) <= t && Math.abs(n.y - s.y) <= t;
|
|
314
|
-
},
|
|
314
|
+
}, Vs = (r) => Ge(r, D), Xt = (r, e, t) => {
|
|
315
315
|
const n = T(r), s = T(e, t);
|
|
316
316
|
return { x: n.x * s.x, y: n.y * s.y };
|
|
317
317
|
}, zr = (r, e) => {
|
|
@@ -323,28 +323,28 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
323
323
|
}, Be = (r, e, t, ...n) => typeof e == "string" && typeof t == "number" ? e === "x" ? zr(r, t) : Fr(r, t) : [r, e, t ?? D, ...n].reduce((s, i) => {
|
|
324
324
|
const o = T(i);
|
|
325
325
|
return { x: s.x + o.x, y: s.y + o.y };
|
|
326
|
-
}, D),
|
|
326
|
+
}, D), Ys = (r, e, t) => {
|
|
327
327
|
const n = T(r);
|
|
328
328
|
return e === "x" ? { x: t, y: n.y } : { x: n.x, y: t };
|
|
329
|
-
},
|
|
329
|
+
}, Zs = (r, e) => {
|
|
330
330
|
const t = T(r), n = T(e);
|
|
331
331
|
return Math.sqrt((t.x - n.x) ** 2 + (t.y - n.y) ** 2);
|
|
332
|
-
},
|
|
332
|
+
}, Hs = (r, e) => {
|
|
333
333
|
const t = T(r), n = T(e);
|
|
334
334
|
return { x: n.x - t.x, y: n.y - t.y };
|
|
335
|
-
},
|
|
335
|
+
}, Gs = (r) => {
|
|
336
336
|
const e = T(r);
|
|
337
337
|
return Number.isNaN(e.x) || Number.isNaN(e.y);
|
|
338
|
-
},
|
|
338
|
+
}, Ks = (r) => {
|
|
339
339
|
const e = T(r);
|
|
340
340
|
return Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
341
|
-
},
|
|
341
|
+
}, Js = (r) => {
|
|
342
342
|
const e = T(r);
|
|
343
343
|
return [e.x, e.y];
|
|
344
|
-
},
|
|
344
|
+
}, Xs = (r) => {
|
|
345
345
|
const e = T(r);
|
|
346
346
|
return { left: e.x, top: e.y };
|
|
347
|
-
},
|
|
347
|
+
}, $t = (r, e = 0) => {
|
|
348
348
|
const t = T(r);
|
|
349
349
|
return { x: Number(t.x.toFixed(e)), y: Number(t.y.toFixed(e)) };
|
|
350
350
|
}, fe = (r, e) => {
|
|
@@ -358,8 +358,8 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
358
358
|
return t === 0 ? { x: 0, y: 0 } : { x: e.x / t, y: e.y / t };
|
|
359
359
|
}, qr = (...r) => {
|
|
360
360
|
const e = r.reduce((t, n) => Be(t, n), D);
|
|
361
|
-
return
|
|
362
|
-
},
|
|
361
|
+
return Xt(e, 1 / r.length);
|
|
362
|
+
}, Qs = (r, e) => {
|
|
363
363
|
const t = [];
|
|
364
364
|
for (let n = 0; n < r.length; n++) {
|
|
365
365
|
const s = r[n];
|
|
@@ -378,57 +378,57 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
378
378
|
), ue = Math.sin(M / 2);
|
|
379
379
|
ue === 0 ? h = e : h = e / ue, u = _r(qr(i, o));
|
|
380
380
|
}
|
|
381
|
-
t.push(
|
|
381
|
+
t.push(Xt(u, h));
|
|
382
382
|
}
|
|
383
383
|
return t;
|
|
384
|
-
},
|
|
384
|
+
}, ei = (r) => {
|
|
385
385
|
const e = T(r);
|
|
386
386
|
return { x: e.y, y: e.x };
|
|
387
|
-
},
|
|
387
|
+
}, qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
388
388
|
__proto__: null,
|
|
389
|
-
INFINITY:
|
|
390
|
-
NAN:
|
|
389
|
+
INFINITY: qs,
|
|
390
|
+
NAN: Ws,
|
|
391
391
|
ONE: Pr,
|
|
392
392
|
ZERO: D,
|
|
393
393
|
average: qr,
|
|
394
|
-
calculateMiters:
|
|
394
|
+
calculateMiters: Qs,
|
|
395
395
|
clientXY: Ir,
|
|
396
396
|
construct: T,
|
|
397
|
-
couple:
|
|
398
|
-
crudeZ:
|
|
399
|
-
css:
|
|
400
|
-
distance:
|
|
397
|
+
couple: Js,
|
|
398
|
+
crudeZ: vt,
|
|
399
|
+
css: Xs,
|
|
400
|
+
distance: Zs,
|
|
401
401
|
equals: Ge,
|
|
402
|
-
isFinite:
|
|
403
|
-
isNan:
|
|
404
|
-
isZero:
|
|
402
|
+
isFinite: Ks,
|
|
403
|
+
isNan: Gs,
|
|
404
|
+
isZero: Vs,
|
|
405
405
|
normal: de,
|
|
406
406
|
normalize: _r,
|
|
407
|
-
scale:
|
|
408
|
-
set:
|
|
407
|
+
scale: Xt,
|
|
408
|
+
set: Ys,
|
|
409
409
|
sub: fe,
|
|
410
|
-
swap:
|
|
410
|
+
swap: ei,
|
|
411
411
|
translate: Be,
|
|
412
412
|
translateX: zr,
|
|
413
413
|
translateY: Fr,
|
|
414
|
-
translation:
|
|
415
|
-
truncate:
|
|
414
|
+
translation: Hs,
|
|
415
|
+
truncate: $t,
|
|
416
416
|
xy: Ne
|
|
417
|
-
}, Symbol.toStringTag, { value: "Module" })), ke = a.union([a.number(), a.string()]),
|
|
417
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = a.union([a.number(), a.string()]), ti = a.object({
|
|
418
418
|
top: ke,
|
|
419
419
|
left: ke,
|
|
420
420
|
width: ke,
|
|
421
421
|
height: ke
|
|
422
|
-
}),
|
|
422
|
+
}), ri = a.object({
|
|
423
423
|
left: a.number(),
|
|
424
424
|
top: a.number(),
|
|
425
425
|
right: a.number(),
|
|
426
426
|
bottom: a.number()
|
|
427
|
-
}),
|
|
427
|
+
}), ni = a.object({
|
|
428
428
|
one: Ne,
|
|
429
429
|
two: Ne,
|
|
430
430
|
root: kr
|
|
431
|
-
}), Wr = { one: D, two: D, root: Ce },
|
|
431
|
+
}), Wr = { one: D, two: D, root: Ce }, si = { one: D, two: Pr, root: rt }, Vr = (r, e) => ({
|
|
432
432
|
one: r.one,
|
|
433
433
|
two: r.two,
|
|
434
434
|
root: e ?? r.root
|
|
@@ -450,7 +450,7 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
450
450
|
x: i.one.x + e.signedWidth,
|
|
451
451
|
y: i.one.y + e.signedHeight
|
|
452
452
|
} : i.two = e, i));
|
|
453
|
-
},
|
|
453
|
+
}, ii = (r, e, t) => {
|
|
454
454
|
const n = S(r);
|
|
455
455
|
if (typeof e == "string") {
|
|
456
456
|
if (t == null) throw new Error("Invalid arguments for resize");
|
|
@@ -464,63 +464,63 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
return S(n.one, e, void 0, void 0, n.root);
|
|
467
|
-
},
|
|
467
|
+
}, oi = (r, e, t = !0) => {
|
|
468
468
|
const n = S(r);
|
|
469
469
|
let s = (i, o) => i < o;
|
|
470
470
|
return t && (s = (i, o) => i <= o), "one" in e ? s(V(n), V(e)) && s(ee(e), ee(n)) && s(Y(n), Y(e)) && s(te(e), te(n)) : s(V(n), e.x) && s(e.x, ee(n)) && s(Y(n), e.y) && s(e.y, te(n));
|
|
471
|
-
},
|
|
471
|
+
}, ai = (r, e) => Ge(r.one, e.one) && Ge(r.two, e.two) && Jt(r.root, e.root), Yr = (r) => ({
|
|
472
472
|
width: H(r),
|
|
473
473
|
height: G(r)
|
|
474
|
-
}),
|
|
474
|
+
}), ui = (r) => ({
|
|
475
475
|
signedWidth: nt(r),
|
|
476
476
|
signedHeight: st(r)
|
|
477
|
-
}),
|
|
477
|
+
}), li = (r) => ({
|
|
478
478
|
top: Y(r),
|
|
479
479
|
left: V(r),
|
|
480
480
|
width: H(r),
|
|
481
481
|
height: G(r)
|
|
482
|
-
}),
|
|
482
|
+
}), Qt = (r, e, t = !1) => {
|
|
483
483
|
const n = J(e) === "y" ? st(r) : nt(r);
|
|
484
484
|
return t ? n : Math.abs(n);
|
|
485
485
|
}, F = (r, e) => {
|
|
486
486
|
const t = S(r);
|
|
487
487
|
return {
|
|
488
|
-
x: e.x === "center" ?
|
|
489
|
-
y: e.y === "center" ?
|
|
488
|
+
x: e.x === "center" ? xt(t).x : ne(t, e.x),
|
|
489
|
+
y: e.y === "center" ? xt(t).y : ne(t, e.y)
|
|
490
490
|
};
|
|
491
491
|
}, ne = (r, e) => {
|
|
492
492
|
const t = S(r), n = Dr(t.root).includes(e) ? Math.min : Math.max;
|
|
493
493
|
return Qe.includes(e) ? n(t.one.x, t.two.x) : n(t.one.y, t.two.y);
|
|
494
|
-
},
|
|
494
|
+
}, hi = (r) => r.one.x === r.two.x && r.one.y === r.two.y, H = (r) => Qt(r, "x"), G = (r) => Qt(r, "y"), nt = (r) => {
|
|
495
495
|
const e = S(r);
|
|
496
496
|
return e.two.x - e.one.x;
|
|
497
497
|
}, st = (r) => {
|
|
498
498
|
const e = S(r);
|
|
499
499
|
return e.two.y - e.one.y;
|
|
500
|
-
}, Zr = (r) => F(r, Ce),
|
|
500
|
+
}, Zr = (r) => F(r, Ce), ci = (r) => F(r, Zt), fi = (r) => F(r, Wt), di = (r) => F(r, rt), gi = (r) => F(r, Ht), pi = (r) => F(r, Vt), yi = (r) => F(r, Kt), mi = (r) => F(r, Gt), ee = (r) => ne(r, "right"), te = (r) => ne(r, "bottom"), V = (r) => ne(r, "left"), Y = (r) => ne(r, "top"), xt = (r) => Be(Zr(r), {
|
|
501
501
|
x: nt(r) / 2,
|
|
502
502
|
y: st(r) / 2
|
|
503
|
-
}),
|
|
503
|
+
}), er = (r) => {
|
|
504
504
|
const e = S(r);
|
|
505
505
|
return e.root.x === "left" ? V(e) : ee(e);
|
|
506
|
-
},
|
|
506
|
+
}, tr = (r) => {
|
|
507
507
|
const e = S(r);
|
|
508
508
|
return e.root.y === "top" ? Y(e) : te(e);
|
|
509
|
-
},
|
|
509
|
+
}, wi = (r) => ({ x: er(r), y: tr(r) }), qe = (r) => {
|
|
510
510
|
const e = S(r);
|
|
511
511
|
return { lower: e.one.x, upper: e.two.x };
|
|
512
512
|
}, We = (r) => {
|
|
513
513
|
const e = S(r);
|
|
514
514
|
return { lower: e.one.y, upper: e.two.y };
|
|
515
|
-
},
|
|
515
|
+
}, bi = (r, e) => Vr(r, e), vi = (r, e) => {
|
|
516
516
|
const t = S(r), n = Qe.includes(e) ? "x" : et.includes(e) ? "y" : null;
|
|
517
517
|
if (n === null) throw new Error(`Invalid location: ${e}`);
|
|
518
518
|
const s = e === "top" || e === "left" ? Math.min : Math.max, i = { ...t.one }, o = { ...t.two };
|
|
519
519
|
return i[n] = s(t.one[n], t.two[n]), o[n] = s(t.one[n], t.two[n]), [i, o];
|
|
520
|
-
},
|
|
521
|
-
const t = S(r), n = S(e), s =
|
|
520
|
+
}, $i = (r, e) => {
|
|
521
|
+
const t = S(r), n = S(e), s = er(n) + (H(n) - H(t)) / 2, i = tr(n) + (G(n) - G(t)) / 2;
|
|
522
522
|
return S({ x: s, y: i }, Yr(t));
|
|
523
|
-
}, Hr = (r) => typeof r != "object" || r == null ? !1 : "one" in r && "two" in r && "root" in r,
|
|
523
|
+
}, Hr = (r) => typeof r != "object" || r == null ? !1 : "one" in r && "two" in r && "root" in r, xi = (r) => H(r) / G(r), Oi = (r, e, t) => {
|
|
524
524
|
if (typeof e == "string") {
|
|
525
525
|
if (t == null) throw new Error("Undefined amount passed into box.translate");
|
|
526
526
|
const s = J(e);
|
|
@@ -534,132 +534,132 @@ const Jn = a.enum([...jt.options, ...zt.options]), Xn = a.union([jt, zt, a.insta
|
|
|
534
534
|
void 0,
|
|
535
535
|
n.root
|
|
536
536
|
);
|
|
537
|
-
},
|
|
537
|
+
}, Ti = (r, e) => {
|
|
538
538
|
const t = Math.max(V(r), V(e)), n = Math.max(Y(r), Y(e)), s = Math.min(ee(r), ee(e)), i = Math.min(te(r), te(e));
|
|
539
539
|
return t > s || n > i ? Wr : S({ x: t, y: n }, { x: s, y: i }, void 0, void 0, r.root);
|
|
540
|
-
},
|
|
540
|
+
}, Si = (r) => H(r) * G(r), Ii = (r, e) => {
|
|
541
541
|
const t = S(r);
|
|
542
542
|
return S(
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
$t(t.one, e),
|
|
544
|
+
$t(t.two, e),
|
|
545
545
|
void 0,
|
|
546
546
|
void 0,
|
|
547
547
|
t.root
|
|
548
548
|
);
|
|
549
|
-
},
|
|
549
|
+
}, Ni = (r, e, t, n, s, i) => {
|
|
550
550
|
const o = { x: r, y: e }, u = { x: r + t, y: e + n };
|
|
551
551
|
return s.x !== i.x && (s.x === "center" ? (o.x -= t / 2, u.x -= t / 2) : (o.x -= t, u.x -= t)), s.y !== i.y && (s.y === "center" ? (o.y -= n / 2, u.y -= n / 2) : (o.y -= n, u.y -= n)), S(o, u, void 0, void 0, i);
|
|
552
|
-
},
|
|
552
|
+
}, Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
553
553
|
__proto__: null,
|
|
554
|
-
DECIMAL:
|
|
554
|
+
DECIMAL: si,
|
|
555
555
|
ZERO: Wr,
|
|
556
|
-
area:
|
|
557
|
-
areaIsZero:
|
|
558
|
-
aspect:
|
|
556
|
+
area: Si,
|
|
557
|
+
areaIsZero: hi,
|
|
558
|
+
aspect: xi,
|
|
559
559
|
bottom: te,
|
|
560
|
-
bottomCenter:
|
|
561
|
-
bottomLeft:
|
|
562
|
-
bottomRight:
|
|
563
|
-
box:
|
|
564
|
-
center:
|
|
565
|
-
centerLeft:
|
|
566
|
-
centerRight:
|
|
560
|
+
bottomCenter: gi,
|
|
561
|
+
bottomLeft: di,
|
|
562
|
+
bottomRight: pi,
|
|
563
|
+
box: ni,
|
|
564
|
+
center: xt,
|
|
565
|
+
centerLeft: yi,
|
|
566
|
+
centerRight: mi,
|
|
567
567
|
construct: S,
|
|
568
|
-
constructWithAlternateRoot:
|
|
569
|
-
contains:
|
|
568
|
+
constructWithAlternateRoot: Ni,
|
|
569
|
+
contains: oi,
|
|
570
570
|
copy: Vr,
|
|
571
|
-
css:
|
|
572
|
-
cssBox:
|
|
573
|
-
dim:
|
|
571
|
+
css: li,
|
|
572
|
+
cssBox: ti,
|
|
573
|
+
dim: Qt,
|
|
574
574
|
dims: Yr,
|
|
575
|
-
domRect:
|
|
576
|
-
edgePoints:
|
|
577
|
-
equals:
|
|
575
|
+
domRect: ri,
|
|
576
|
+
edgePoints: vi,
|
|
577
|
+
equals: ai,
|
|
578
578
|
height: G,
|
|
579
|
-
intersection:
|
|
579
|
+
intersection: Ti,
|
|
580
580
|
isBox: Hr,
|
|
581
581
|
left: V,
|
|
582
582
|
loc: ne,
|
|
583
|
-
positionInCenter:
|
|
584
|
-
reRoot:
|
|
585
|
-
resize:
|
|
583
|
+
positionInCenter: $i,
|
|
584
|
+
reRoot: bi,
|
|
585
|
+
resize: ii,
|
|
586
586
|
right: ee,
|
|
587
|
-
root:
|
|
588
|
-
signedDims:
|
|
587
|
+
root: wi,
|
|
588
|
+
signedDims: ui,
|
|
589
589
|
signedHeight: st,
|
|
590
590
|
signedWidth: nt,
|
|
591
591
|
top: Y,
|
|
592
|
-
topCenter:
|
|
592
|
+
topCenter: ci,
|
|
593
593
|
topLeft: Zr,
|
|
594
|
-
topRight:
|
|
595
|
-
translate:
|
|
596
|
-
truncate:
|
|
594
|
+
topRight: fi,
|
|
595
|
+
translate: Oi,
|
|
596
|
+
truncate: Ii,
|
|
597
597
|
width: H,
|
|
598
|
-
x:
|
|
598
|
+
x: er,
|
|
599
599
|
xBounds: qe,
|
|
600
600
|
xyLoc: F,
|
|
601
|
-
y:
|
|
601
|
+
y: tr,
|
|
602
602
|
yBounds: We
|
|
603
|
-
}, Symbol.toStringTag, { value: "Module" })), Gr = a.object({ signedWidth: a.number(), signedHeight: a.number() }),
|
|
603
|
+
}, Symbol.toStringTag, { value: "Module" })), Gr = a.object({ signedWidth: a.number(), signedHeight: a.number() }), Ui = a.union([Rt, Gr, Ne, Xe]), Bi = { width: 0, height: 0 }, Ei = { width: 1, height: 1 }, L = (r, e) => typeof r == "number" ? { width: r, height: e ?? r } : Array.isArray(r) ? { width: r[0], height: r[1] } : "x" in r ? { width: r.x, height: r.y } : "signedWidth" in r ? { width: r.signedWidth, height: r.signedHeight } : { ...r }, Ai = (r, e) => {
|
|
604
604
|
if (e == null) return !1;
|
|
605
605
|
const t = L(r), n = L(e);
|
|
606
606
|
return t.width === n.width && t.height === n.height;
|
|
607
|
-
},
|
|
607
|
+
}, Mi = (r) => {
|
|
608
608
|
const e = L(r);
|
|
609
609
|
return { width: e.height, height: e.width };
|
|
610
|
-
},
|
|
610
|
+
}, Ci = (r) => {
|
|
611
611
|
const e = L(r);
|
|
612
612
|
return `0 0 ${e.width} ${e.height}`;
|
|
613
|
-
},
|
|
613
|
+
}, Li = (r) => {
|
|
614
614
|
const e = L(r);
|
|
615
615
|
return [e.width, e.height];
|
|
616
|
-
},
|
|
616
|
+
}, Ri = (r) => ({
|
|
617
617
|
width: Math.max(...r.map((e) => L(e).width)),
|
|
618
618
|
height: Math.max(...r.map((e) => L(e).height))
|
|
619
|
-
}),
|
|
619
|
+
}), ji = (r) => ({
|
|
620
620
|
width: Math.min(...r.map((e) => L(e).width)),
|
|
621
621
|
height: Math.min(...r.map((e) => L(e).height))
|
|
622
|
-
}),
|
|
622
|
+
}), ki = (r, e) => {
|
|
623
623
|
const t = L(r);
|
|
624
624
|
return { width: t.width * e, height: t.height * e };
|
|
625
|
-
},
|
|
625
|
+
}, Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
626
626
|
__proto__: null,
|
|
627
|
-
DECIMAL:
|
|
628
|
-
ZERO:
|
|
627
|
+
DECIMAL: Ei,
|
|
628
|
+
ZERO: Bi,
|
|
629
629
|
construct: L,
|
|
630
|
-
couple:
|
|
631
|
-
crude:
|
|
632
|
-
dimensions:
|
|
633
|
-
equals:
|
|
634
|
-
max:
|
|
635
|
-
min:
|
|
636
|
-
scale:
|
|
630
|
+
couple: Li,
|
|
631
|
+
crude: Ui,
|
|
632
|
+
dimensions: Rt,
|
|
633
|
+
equals: Ai,
|
|
634
|
+
max: Ri,
|
|
635
|
+
min: ji,
|
|
636
|
+
scale: ki,
|
|
637
637
|
signed: Gr,
|
|
638
|
-
svgViewBox:
|
|
639
|
-
swap:
|
|
638
|
+
svgViewBox: Ci,
|
|
639
|
+
swap: Mi
|
|
640
640
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
641
|
-
var
|
|
642
|
-
const
|
|
641
|
+
var Di = Object.defineProperty, Pi = (r, e, t) => e in r ? Di(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, z = (r, e, t) => Pi(r, typeof e != "symbol" ? e + "" : e, t);
|
|
642
|
+
const zi = (r, e, t) => e !== void 0 && r < e ? e : t !== void 0 && r > t ? t : r, Fi = a.object({ offset: vt, scale: vt }), _i = a.object({ offset: a.number(), scale: a.number() }), qi = (r) => (e, t, n, s) => t === "dimension" ? [e, n] : [
|
|
643
643
|
e,
|
|
644
644
|
s ? n - r : n + r
|
|
645
|
-
],
|
|
645
|
+
], Wi = (r) => (e, t, n, s) => [
|
|
646
646
|
e,
|
|
647
647
|
s ? n / r : n * r
|
|
648
|
-
],
|
|
648
|
+
], Vi = (r) => (e, t, n) => {
|
|
649
649
|
if (e === null) return [r, n];
|
|
650
650
|
const { lower: s, upper: i } = e, { lower: o, upper: u } = r, h = i - s, f = u - o;
|
|
651
651
|
if (t === "dimension") return [r, n * (f / h)];
|
|
652
652
|
const g = (n - s) * (f / h) + o;
|
|
653
653
|
return [r, g];
|
|
654
|
-
},
|
|
654
|
+
}, Yi = (r) => (e, t, n) => [r, n], Zi = () => (r, e, t) => {
|
|
655
655
|
if (r === null) throw new Error("cannot invert without bounds");
|
|
656
656
|
if (e === "dimension") return [r, t];
|
|
657
657
|
const { lower: n, upper: s } = r;
|
|
658
658
|
return [r, s - (t - n)];
|
|
659
|
-
},
|
|
659
|
+
}, Hi = (r) => (e, t, n) => {
|
|
660
660
|
const { lower: s, upper: i } = r;
|
|
661
|
-
return n =
|
|
662
|
-
},
|
|
661
|
+
return n = zi(n, s, i), [e, n];
|
|
662
|
+
}, Ot = class ge {
|
|
663
663
|
constructor() {
|
|
664
664
|
z(this, "ops", []), z(this, "currBounds", null), z(this, "currType", null), z(this, "reversed", !1), this.ops = [];
|
|
665
665
|
}
|
|
@@ -689,7 +689,7 @@ const Pi = (r, e, t) => e !== void 0 && r < e ? e : t !== void 0 && r > t ? t :
|
|
|
689
689
|
* @param value - The amount to translate by.
|
|
690
690
|
*/
|
|
691
691
|
translate(e) {
|
|
692
|
-
const t = this.new(), n =
|
|
692
|
+
const t = this.new(), n = qi(e);
|
|
693
693
|
return n.type = "translate", t.ops.push(n), t;
|
|
694
694
|
}
|
|
695
695
|
/**
|
|
@@ -699,23 +699,23 @@ const Pi = (r, e, t) => e !== void 0 && r < e ? e : t !== void 0 && r > t ? t :
|
|
|
699
699
|
* @param value - The amount to magnify by.
|
|
700
700
|
*/
|
|
701
701
|
magnify(e) {
|
|
702
|
-
const t = this.new(), n =
|
|
702
|
+
const t = this.new(), n = Wi(e);
|
|
703
703
|
return n.type = "magnify", t.ops.push(n), t;
|
|
704
704
|
}
|
|
705
705
|
scale(e, t) {
|
|
706
|
-
const n = m(e, t), s = this.new(), i =
|
|
706
|
+
const n = m(e, t), s = this.new(), i = Vi(n);
|
|
707
707
|
return i.type = "scale", s.ops.push(i), s;
|
|
708
708
|
}
|
|
709
709
|
clamp(e, t) {
|
|
710
|
-
const n = m(e, t), s = this.new(), i =
|
|
710
|
+
const n = m(e, t), s = this.new(), i = Hi(n);
|
|
711
711
|
return i.type = "clamp", s.ops.push(i), s;
|
|
712
712
|
}
|
|
713
713
|
reBound(e, t) {
|
|
714
|
-
const n = m(e, t), s = this.new(), i =
|
|
714
|
+
const n = m(e, t), s = this.new(), i = Yi(n);
|
|
715
715
|
return i.type = "re-bound", s.ops.push(i), s;
|
|
716
716
|
}
|
|
717
717
|
invert() {
|
|
718
|
-
const e =
|
|
718
|
+
const e = Zi();
|
|
719
719
|
e.type = "invert";
|
|
720
720
|
const t = this.new();
|
|
721
721
|
return t.ops.push(e), t;
|
|
@@ -754,10 +754,10 @@ const Pi = (r, e, t) => e !== void 0 && r < e ? e : t !== void 0 && r > t ? t :
|
|
|
754
754
|
return { scale: this.dim(1), offset: this.pos(0) };
|
|
755
755
|
}
|
|
756
756
|
};
|
|
757
|
-
z(
|
|
758
|
-
let
|
|
759
|
-
const
|
|
760
|
-
constructor(e = new
|
|
757
|
+
z(Ot, "IDENTITY", new Ot());
|
|
758
|
+
let Tt = Ot;
|
|
759
|
+
const St = class P {
|
|
760
|
+
constructor(e = new Tt(), t = new Tt(), n = null) {
|
|
761
761
|
z(this, "x"), z(this, "y"), z(this, "currRoot"), this.x = e, this.y = t, this.currRoot = n;
|
|
762
762
|
}
|
|
763
763
|
static translate(e, t) {
|
|
@@ -801,7 +801,7 @@ const Tt = class P {
|
|
|
801
801
|
const t = this.copy();
|
|
802
802
|
if (Hr(e)) {
|
|
803
803
|
const n = this.currRoot;
|
|
804
|
-
return t.currRoot = e.root, n != null && !
|
|
804
|
+
return t.currRoot = e.root, n != null && !Jt(n, e.root) && (n.x !== e.root.x && (t.x = t.x.invert()), n.y !== e.root.y && (t.y = t.y.invert())), t.x = t.x.scale(qe(e)), t.y = t.y.scale(We(e)), t;
|
|
805
805
|
}
|
|
806
806
|
return t.x = t.x.scale(e.width), t.y = t.y.scale(e.height), t;
|
|
807
807
|
}
|
|
@@ -843,14 +843,14 @@ const Tt = class P {
|
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
845
|
};
|
|
846
|
-
z(
|
|
847
|
-
let
|
|
848
|
-
const
|
|
846
|
+
z(St, "IDENTITY", new St());
|
|
847
|
+
let Gi = St;
|
|
848
|
+
const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
849
849
|
__proto__: null,
|
|
850
|
-
Scale:
|
|
851
|
-
XY:
|
|
852
|
-
crudeXYTransform:
|
|
853
|
-
transform:
|
|
850
|
+
Scale: Tt,
|
|
851
|
+
XY: Gi,
|
|
852
|
+
crudeXYTransform: Fi,
|
|
853
|
+
transform: _i
|
|
854
854
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
855
855
|
function Kr(r) {
|
|
856
856
|
var e, t, n = "";
|
|
@@ -861,16 +861,16 @@ function Kr(r) {
|
|
|
861
861
|
} else for (t in r) r[t] && (n && (n += " "), n += t);
|
|
862
862
|
return n;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Ki() {
|
|
865
865
|
for (var r, e, t = 0, n = "", s = arguments.length; t < s; t++) (r = arguments[t]) && (e = Kr(r)) && (n && (n += " "), n += e);
|
|
866
866
|
return n;
|
|
867
867
|
}
|
|
868
|
-
const
|
|
869
|
-
const e = (...t) =>
|
|
868
|
+
const Ji = Ki, hr = "-", cr = "__", De = "--", Jr = (r) => {
|
|
869
|
+
const e = (...t) => Ji(...t);
|
|
870
870
|
return e.B = (t) => r + hr + t, e.E = (t) => r + cr + t, e.M = (t) => r + De + t, e.BM = (t, n) => e.B(t) + De + n, e.BE = (t, n) => e.B(t) + cr + n, e.BEM = (t, n, s) => e.BE(t, n) + De + s, e.extend = (t) => Jr(e.B(t)), e.var = (t) => De + r + hr + t, e;
|
|
871
|
-
},
|
|
872
|
-
var
|
|
873
|
-
function
|
|
871
|
+
}, rr = (r) => r != null && typeof r == "object" && !Array.isArray(r);
|
|
872
|
+
var Xi = Object.defineProperty, Qi = (r, e, t) => e in r ? Xi(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ie = (r, e, t) => Qi(r, typeof e != "symbol" ? e + "" : e, t);
|
|
873
|
+
function eo(r) {
|
|
874
874
|
const e = r.length;
|
|
875
875
|
let t = 0, n = 0;
|
|
876
876
|
for (; n < e; ) {
|
|
@@ -890,7 +890,7 @@ function Qi(r) {
|
|
|
890
890
|
}
|
|
891
891
|
return t;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function to(r, e, t) {
|
|
894
894
|
const n = r.length;
|
|
895
895
|
let s = t, i = 0;
|
|
896
896
|
for (; i < n; ) {
|
|
@@ -910,14 +910,14 @@ function eo(r, e, t) {
|
|
|
910
910
|
e[s++] = o & 63 | 128;
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
const
|
|
914
|
-
function no(r, e, t) {
|
|
915
|
-
to.encodeInto(r, e.subarray(t));
|
|
916
|
-
}
|
|
913
|
+
const ro = new TextEncoder(), no = 50;
|
|
917
914
|
function so(r, e, t) {
|
|
918
|
-
|
|
915
|
+
ro.encodeInto(r, e.subarray(t));
|
|
916
|
+
}
|
|
917
|
+
function io(r, e, t) {
|
|
918
|
+
r.length > no ? so(r, e, t) : to(r, e, t);
|
|
919
919
|
}
|
|
920
|
-
const
|
|
920
|
+
const oo = 4096;
|
|
921
921
|
function Xr(r, e, t) {
|
|
922
922
|
let n = e;
|
|
923
923
|
const s = n + t, i = [];
|
|
@@ -938,35 +938,35 @@ function Xr(r, e, t) {
|
|
|
938
938
|
d > 65535 && (d -= 65536, i.push(d >>> 10 & 1023 | 55296), d = 56320 | d & 1023), i.push(d);
|
|
939
939
|
} else
|
|
940
940
|
i.push(u);
|
|
941
|
-
i.length >=
|
|
941
|
+
i.length >= oo && (o += String.fromCharCode(...i), i.length = 0);
|
|
942
942
|
}
|
|
943
943
|
return i.length > 0 && (o += String.fromCharCode(...i)), o;
|
|
944
944
|
}
|
|
945
|
-
const
|
|
946
|
-
function
|
|
945
|
+
const ao = new TextDecoder(), uo = 200;
|
|
946
|
+
function lo(r, e, t) {
|
|
947
947
|
const n = r.subarray(e, e + t);
|
|
948
|
-
return
|
|
948
|
+
return ao.decode(n);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
951
|
-
return t >
|
|
950
|
+
function ho(r, e, t) {
|
|
951
|
+
return t > uo ? lo(r, e, t) : Xr(r, e, t);
|
|
952
952
|
}
|
|
953
953
|
let Pe = class {
|
|
954
954
|
constructor(e, t) {
|
|
955
955
|
this.type = e, this.data = t;
|
|
956
956
|
}
|
|
957
|
-
}, k = class
|
|
957
|
+
}, k = class It extends Error {
|
|
958
958
|
constructor(e) {
|
|
959
959
|
super(e);
|
|
960
|
-
const t = Object.create(
|
|
960
|
+
const t = Object.create(It.prototype);
|
|
961
961
|
Object.setPrototypeOf(this, t), Object.defineProperty(this, "name", {
|
|
962
962
|
configurable: !0,
|
|
963
963
|
enumerable: !1,
|
|
964
|
-
value:
|
|
964
|
+
value: It.name
|
|
965
965
|
});
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
968
|
const le = 4294967295;
|
|
969
|
-
function
|
|
969
|
+
function co(r, e, t) {
|
|
970
970
|
const n = t / 4294967296, s = t;
|
|
971
971
|
r.setUint32(e, n), r.setUint32(e + 4, s);
|
|
972
972
|
}
|
|
@@ -978,14 +978,14 @@ function en(r, e) {
|
|
|
978
978
|
const t = r.getInt32(e), n = r.getUint32(e + 4);
|
|
979
979
|
return t * 4294967296 + n;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function fo(r, e) {
|
|
982
982
|
const t = r.getUint32(e), n = r.getUint32(e + 4);
|
|
983
983
|
return t * 4294967296 + n;
|
|
984
984
|
}
|
|
985
|
-
const
|
|
986
|
-
function
|
|
987
|
-
if (r >= 0 && e >= 0 && r <=
|
|
988
|
-
if (e === 0 && r <=
|
|
985
|
+
const go = -1, po = 4294967296 - 1, yo = 17179869184 - 1;
|
|
986
|
+
function mo({ sec: r, nsec: e }) {
|
|
987
|
+
if (r >= 0 && e >= 0 && r <= yo)
|
|
988
|
+
if (e === 0 && r <= po) {
|
|
989
989
|
const t = new Uint8Array(4);
|
|
990
990
|
return new DataView(t.buffer).setUint32(0, r), t;
|
|
991
991
|
} else {
|
|
@@ -997,21 +997,21 @@ function yo({ sec: r, nsec: e }) {
|
|
|
997
997
|
return n.setUint32(0, e), Qr(n, 4, r), t;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function wo(r) {
|
|
1001
1001
|
const e = r.getTime(), t = Math.floor(e / 1e3), n = (e - t * 1e3) * 1e6, s = Math.floor(n / 1e9);
|
|
1002
1002
|
return {
|
|
1003
1003
|
sec: t + s,
|
|
1004
1004
|
nsec: n - s * 1e9
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function bo(r) {
|
|
1008
1008
|
if (r instanceof Date) {
|
|
1009
|
-
const e =
|
|
1010
|
-
return
|
|
1009
|
+
const e = wo(r);
|
|
1010
|
+
return mo(e);
|
|
1011
1011
|
} else
|
|
1012
1012
|
return null;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function vo(r) {
|
|
1015
1015
|
const e = new DataView(r.buffer, r.byteOffset, r.byteLength);
|
|
1016
1016
|
switch (r.byteLength) {
|
|
1017
1017
|
case 4:
|
|
@@ -1028,18 +1028,18 @@ function bo(r) {
|
|
|
1028
1028
|
throw new k(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${r.length}`);
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1032
|
-
const e =
|
|
1031
|
+
function $o(r) {
|
|
1032
|
+
const e = vo(r);
|
|
1033
1033
|
return new Date(e.sec * 1e3 + e.nsec / 1e6);
|
|
1034
1034
|
}
|
|
1035
|
-
const
|
|
1036
|
-
type:
|
|
1037
|
-
encode:
|
|
1038
|
-
decode:
|
|
1035
|
+
const xo = {
|
|
1036
|
+
type: go,
|
|
1037
|
+
encode: bo,
|
|
1038
|
+
decode: $o
|
|
1039
1039
|
};
|
|
1040
1040
|
let Ee = class {
|
|
1041
1041
|
constructor() {
|
|
1042
|
-
this.builtInEncoders = [], this.builtInDecoders = [], this.encoders = [], this.decoders = [], this.register(
|
|
1042
|
+
this.builtInEncoders = [], this.builtInDecoders = [], this.encoders = [], this.decoders = [], this.register(xo);
|
|
1043
1043
|
}
|
|
1044
1044
|
register({ type: e, encode: t, decode: n }) {
|
|
1045
1045
|
if (e >= 0)
|
|
@@ -1078,16 +1078,16 @@ let Ee = class {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
};
|
|
1080
1080
|
Ee.defaultCodec = new Ee();
|
|
1081
|
-
function
|
|
1081
|
+
function Oo(r) {
|
|
1082
1082
|
return r instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && r instanceof SharedArrayBuffer;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return r instanceof Uint8Array ? r : ArrayBuffer.isView(r) ? new Uint8Array(r.buffer, r.byteOffset, r.byteLength) :
|
|
1084
|
+
function Nt(r) {
|
|
1085
|
+
return r instanceof Uint8Array ? r : ArrayBuffer.isView(r) ? new Uint8Array(r.buffer, r.byteOffset, r.byteLength) : Oo(r) ? new Uint8Array(r) : Uint8Array.from(r);
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1088
|
-
let
|
|
1087
|
+
const To = 100, So = 2048;
|
|
1088
|
+
let Io = class tn {
|
|
1089
1089
|
constructor(e) {
|
|
1090
|
-
this.entered = !1, this.extensionCodec = (e == null ? void 0 : e.extensionCodec) ?? Ee.defaultCodec, this.context = e == null ? void 0 : e.context, this.useBigInt64 = (e == null ? void 0 : e.useBigInt64) ?? !1, this.maxDepth = (e == null ? void 0 : e.maxDepth) ??
|
|
1090
|
+
this.entered = !1, this.extensionCodec = (e == null ? void 0 : e.extensionCodec) ?? Ee.defaultCodec, this.context = e == null ? void 0 : e.context, this.useBigInt64 = (e == null ? void 0 : e.useBigInt64) ?? !1, this.maxDepth = (e == null ? void 0 : e.maxDepth) ?? To, this.initialBufferSize = (e == null ? void 0 : e.initialBufferSize) ?? So, this.sortKeys = (e == null ? void 0 : e.sortKeys) ?? !1, this.forceFloat32 = (e == null ? void 0 : e.forceFloat32) ?? !1, this.ignoreUndefined = (e == null ? void 0 : e.ignoreUndefined) ?? !1, this.forceIntegerToFloat = (e == null ? void 0 : e.forceIntegerToFloat) ?? !1, this.pos = 0, this.view = new DataView(new ArrayBuffer(this.initialBufferSize)), this.bytes = new Uint8Array(this.view.buffer);
|
|
1091
1091
|
}
|
|
1092
1092
|
clone() {
|
|
1093
1093
|
return new tn({
|
|
@@ -1172,8 +1172,8 @@ let So = class tn {
|
|
|
1172
1172
|
throw new Error(`Too long string: ${e} bytes in UTF-8`);
|
|
1173
1173
|
}
|
|
1174
1174
|
encodeString(e) {
|
|
1175
|
-
const t =
|
|
1176
|
-
this.ensureBufferSizeToWrite(5 + t), this.writeStringHeader(t),
|
|
1175
|
+
const t = eo(e);
|
|
1176
|
+
this.ensureBufferSizeToWrite(5 + t), this.writeStringHeader(t), io(e, this.bytes, this.pos), this.pos += t;
|
|
1177
1177
|
}
|
|
1178
1178
|
encodeObject(e, t) {
|
|
1179
1179
|
const n = this.extensionCodec.tryToEncode(e, this.context);
|
|
@@ -1198,7 +1198,7 @@ let So = class tn {
|
|
|
1198
1198
|
this.writeU8(198), this.writeU32(t);
|
|
1199
1199
|
else
|
|
1200
1200
|
throw new Error(`Too large binary: ${t}`);
|
|
1201
|
-
const n =
|
|
1201
|
+
const n = Nt(e);
|
|
1202
1202
|
this.writeU8a(n);
|
|
1203
1203
|
}
|
|
1204
1204
|
encodeArray(e, t) {
|
|
@@ -1295,7 +1295,7 @@ let So = class tn {
|
|
|
1295
1295
|
this.ensureBufferSizeToWrite(8), this.view.setFloat64(this.pos, e), this.pos += 8;
|
|
1296
1296
|
}
|
|
1297
1297
|
writeU64(e) {
|
|
1298
|
-
this.ensureBufferSizeToWrite(8),
|
|
1298
|
+
this.ensureBufferSizeToWrite(8), co(this.view, this.pos, e), this.pos += 8;
|
|
1299
1299
|
}
|
|
1300
1300
|
writeI64(e) {
|
|
1301
1301
|
this.ensureBufferSizeToWrite(8), Qr(this.view, this.pos, e), this.pos += 8;
|
|
@@ -1308,14 +1308,14 @@ let So = class tn {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
1310
|
function pe(r, e) {
|
|
1311
|
-
return new
|
|
1311
|
+
return new Io(e).encodeSharedRef(r);
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function ht(r) {
|
|
1314
1314
|
return `${r < 0 ? "-" : ""}0x${Math.abs(r).toString(16).padStart(2, "0")}`;
|
|
1315
1315
|
}
|
|
1316
|
-
const
|
|
1317
|
-
class
|
|
1318
|
-
constructor(e =
|
|
1316
|
+
const No = 16, Uo = 16;
|
|
1317
|
+
class Bo {
|
|
1318
|
+
constructor(e = No, t = Uo) {
|
|
1319
1319
|
this.hit = 0, this.miss = 0, this.maxKeyLength = e, this.maxLengthPerKey = t, this.caches = [];
|
|
1320
1320
|
for (let n = 0; n < this.maxKeyLength; n++)
|
|
1321
1321
|
this.caches.push([]);
|
|
@@ -1347,12 +1347,12 @@ class Uo {
|
|
|
1347
1347
|
return this.store(o, i), i;
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
const
|
|
1350
|
+
const Ut = "array", xe = "map_key", rn = "map_value", Eo = (r) => {
|
|
1351
1351
|
if (typeof r == "string" || typeof r == "number")
|
|
1352
1352
|
return r;
|
|
1353
1353
|
throw new k("The type of key must be string or number but " + typeof r);
|
|
1354
1354
|
};
|
|
1355
|
-
class
|
|
1355
|
+
class Ao {
|
|
1356
1356
|
constructor() {
|
|
1357
1357
|
this.stack = [], this.stackHeadPosition = -1;
|
|
1358
1358
|
}
|
|
@@ -1364,7 +1364,7 @@ class Eo {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
pushArrayState(e) {
|
|
1366
1366
|
const t = this.getUninitializedStateFromPool();
|
|
1367
|
-
t.type =
|
|
1367
|
+
t.type = Ut, t.position = 0, t.size = e, t.array = new Array(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
pushMapState(e) {
|
|
1370
1370
|
const t = this.getUninitializedStateFromPool();
|
|
@@ -1388,7 +1388,7 @@ class Eo {
|
|
|
1388
1388
|
release(e) {
|
|
1389
1389
|
if (this.stack[this.stackHeadPosition] !== e)
|
|
1390
1390
|
throw new Error("Invalid stack state. Released state is not on top of the stack.");
|
|
1391
|
-
if (e.type ===
|
|
1391
|
+
if (e.type === Ut) {
|
|
1392
1392
|
const t = e;
|
|
1393
1393
|
t.size = 0, t.array = void 0, t.position = 0, t.type = void 0;
|
|
1394
1394
|
}
|
|
@@ -1402,17 +1402,17 @@ class Eo {
|
|
|
1402
1402
|
this.stack.length = 0, this.stackHeadPosition = -1;
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
|
-
const he = -1,
|
|
1405
|
+
const he = -1, nr = new DataView(new ArrayBuffer(0)), Mo = new Uint8Array(nr.buffer);
|
|
1406
1406
|
try {
|
|
1407
|
-
|
|
1407
|
+
nr.getInt8(0);
|
|
1408
1408
|
} catch (r) {
|
|
1409
1409
|
if (!(r instanceof RangeError))
|
|
1410
1410
|
throw new Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access");
|
|
1411
1411
|
}
|
|
1412
|
-
const fr = new RangeError("Insufficient data"),
|
|
1413
|
-
let
|
|
1412
|
+
const fr = new RangeError("Insufficient data"), Co = new Bo();
|
|
1413
|
+
let Lo = class nn {
|
|
1414
1414
|
constructor(e) {
|
|
1415
|
-
this.totalPos = 0, this.pos = 0, this.view =
|
|
1415
|
+
this.totalPos = 0, this.pos = 0, this.view = nr, this.bytes = Mo, this.headByte = he, this.stack = new Ao(), this.entered = !1, this.extensionCodec = (e == null ? void 0 : e.extensionCodec) ?? Ee.defaultCodec, this.context = e == null ? void 0 : e.context, this.useBigInt64 = (e == null ? void 0 : e.useBigInt64) ?? !1, this.rawStrings = (e == null ? void 0 : e.rawStrings) ?? !1, this.maxStrLength = (e == null ? void 0 : e.maxStrLength) ?? le, this.maxBinLength = (e == null ? void 0 : e.maxBinLength) ?? le, this.maxArrayLength = (e == null ? void 0 : e.maxArrayLength) ?? le, this.maxMapLength = (e == null ? void 0 : e.maxMapLength) ?? le, this.maxExtLength = (e == null ? void 0 : e.maxExtLength) ?? le, this.keyDecoder = (e == null ? void 0 : e.keyDecoder) !== void 0 ? e.keyDecoder : Co, this.mapKeyConverter = (e == null ? void 0 : e.mapKeyConverter) ?? Eo;
|
|
1416
1416
|
}
|
|
1417
1417
|
clone() {
|
|
1418
1418
|
return new nn({
|
|
@@ -1432,14 +1432,14 @@ let Co = class nn {
|
|
|
1432
1432
|
this.totalPos = 0, this.headByte = he, this.stack.reset();
|
|
1433
1433
|
}
|
|
1434
1434
|
setBuffer(e) {
|
|
1435
|
-
const t =
|
|
1435
|
+
const t = Nt(e);
|
|
1436
1436
|
this.bytes = t, this.view = new DataView(t.buffer, t.byteOffset, t.byteLength), this.pos = 0;
|
|
1437
1437
|
}
|
|
1438
1438
|
appendBuffer(e) {
|
|
1439
1439
|
if (this.headByte === he && !this.hasRemaining(1))
|
|
1440
1440
|
this.setBuffer(e);
|
|
1441
1441
|
else {
|
|
1442
|
-
const t = this.bytes.subarray(this.pos), n =
|
|
1442
|
+
const t = this.bytes.subarray(this.pos), n = Nt(e), s = new Uint8Array(t.length + n.length);
|
|
1443
1443
|
s.set(t), s.set(n, t.length), this.setBuffer(s);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
@@ -1503,7 +1503,7 @@ let Co = class nn {
|
|
|
1503
1503
|
return n;
|
|
1504
1504
|
}
|
|
1505
1505
|
const { headByte: s, pos: i, totalPos: o } = this;
|
|
1506
|
-
throw new RangeError(`Insufficient data in parsing ${
|
|
1506
|
+
throw new RangeError(`Insufficient data in parsing ${ht(s)} at ${o} (${i} in the current buffer)`);
|
|
1507
1507
|
} finally {
|
|
1508
1508
|
this.entered = !1;
|
|
1509
1509
|
}
|
|
@@ -1658,12 +1658,12 @@ let Co = class nn {
|
|
|
1658
1658
|
const s = this.lookU32();
|
|
1659
1659
|
t = this.decodeExtension(s, 4);
|
|
1660
1660
|
} else
|
|
1661
|
-
throw new k(`Unrecognized type byte: ${
|
|
1661
|
+
throw new k(`Unrecognized type byte: ${ht(e)}`);
|
|
1662
1662
|
this.complete();
|
|
1663
1663
|
const n = this.stack;
|
|
1664
1664
|
for (; n.length > 0; ) {
|
|
1665
1665
|
const s = n.top();
|
|
1666
|
-
if (s.type ===
|
|
1666
|
+
if (s.type === Ut)
|
|
1667
1667
|
if (s.array[s.position] = t, s.position++, s.position === s.size)
|
|
1668
1668
|
t = s.array, n.release(s);
|
|
1669
1669
|
else
|
|
@@ -1699,7 +1699,7 @@ let Co = class nn {
|
|
|
1699
1699
|
default: {
|
|
1700
1700
|
if (e < 160)
|
|
1701
1701
|
return e - 144;
|
|
1702
|
-
throw new k(`Unrecognized array type byte: ${
|
|
1702
|
+
throw new k(`Unrecognized array type byte: ${ht(e)}`);
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
@@ -1727,7 +1727,7 @@ let Co = class nn {
|
|
|
1727
1727
|
throw fr;
|
|
1728
1728
|
const s = this.pos + t;
|
|
1729
1729
|
let i;
|
|
1730
|
-
return this.stateIsMapKey() && (n = this.keyDecoder) != null && n.canBeCached(e) ? i = this.keyDecoder.decode(this.bytes, s, e) : i =
|
|
1730
|
+
return this.stateIsMapKey() && (n = this.keyDecoder) != null && n.canBeCached(e) ? i = this.keyDecoder.decode(this.bytes, s, e) : i = ho(this.bytes, s, e), this.pos += t + e, i;
|
|
1731
1731
|
}
|
|
1732
1732
|
stateIsMapKey() {
|
|
1733
1733
|
return this.stack.length > 0 ? this.stack.top().type === xe : !1;
|
|
@@ -1787,7 +1787,7 @@ let Co = class nn {
|
|
|
1787
1787
|
return this.pos += 4, e;
|
|
1788
1788
|
}
|
|
1789
1789
|
readU64() {
|
|
1790
|
-
const e =
|
|
1790
|
+
const e = fo(this.view, this.pos);
|
|
1791
1791
|
return this.pos += 8, e;
|
|
1792
1792
|
}
|
|
1793
1793
|
readI64() {
|
|
@@ -1812,9 +1812,9 @@ let Co = class nn {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
};
|
|
1814
1814
|
function sn(r, e) {
|
|
1815
|
-
return new
|
|
1815
|
+
return new Lo(e).decode(r);
|
|
1816
1816
|
}
|
|
1817
|
-
let
|
|
1817
|
+
let Ro = class {
|
|
1818
1818
|
constructor() {
|
|
1819
1819
|
ie(this, "contentType", "application/json"), ie(this, "decoder"), ie(this, "encoder"), this.decoder = new TextDecoder(), this.encoder = new TextEncoder();
|
|
1820
1820
|
}
|
|
@@ -1829,12 +1829,12 @@ let Lo = class {
|
|
|
1829
1829
|
return t != null ? t.parse(s) : s;
|
|
1830
1830
|
}
|
|
1831
1831
|
encodeString(e) {
|
|
1832
|
-
const t =
|
|
1833
|
-
return JSON.stringify(t, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) :
|
|
1832
|
+
const t = qt(e);
|
|
1833
|
+
return JSON.stringify(t, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) : rr(s) && "encode_value" in s ? typeof s.value == "bigint" ? s.value.toString() : s.value : typeof s == "bigint" ? s.toString() : s);
|
|
1834
1834
|
}
|
|
1835
1835
|
static registerCustomType() {
|
|
1836
1836
|
}
|
|
1837
|
-
},
|
|
1837
|
+
}, jo = class {
|
|
1838
1838
|
constructor() {
|
|
1839
1839
|
ie(this, "contentType", "text/csv");
|
|
1840
1840
|
}
|
|
@@ -1847,7 +1847,7 @@ let Lo = class {
|
|
|
1847
1847
|
return this.decodeString(n, t);
|
|
1848
1848
|
}
|
|
1849
1849
|
encodeString(e) {
|
|
1850
|
-
if (!Array.isArray(e) || e.length === 0 || !
|
|
1850
|
+
if (!Array.isArray(e) || e.length === 0 || !rr(e[0]))
|
|
1851
1851
|
throw new Error("Payload must be an array of objects");
|
|
1852
1852
|
const t = Object.keys(e[0]), n = [t.join(",")];
|
|
1853
1853
|
return e.forEach((s) => {
|
|
@@ -1879,7 +1879,7 @@ let Lo = class {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
static registerCustomType() {
|
|
1881
1881
|
}
|
|
1882
|
-
},
|
|
1882
|
+
}, ko = class {
|
|
1883
1883
|
constructor() {
|
|
1884
1884
|
ie(this, "contentType", "text/plain");
|
|
1885
1885
|
}
|
|
@@ -1899,16 +1899,16 @@ W.register({
|
|
|
1899
1899
|
const e = Array.from(r);
|
|
1900
1900
|
return pe(e, { extensionCodec: W });
|
|
1901
1901
|
}
|
|
1902
|
-
return
|
|
1902
|
+
return rr(r) && "encode_value" in r ? typeof r.value == "bigint" ? pe(r.value.toString(), { extensionCodec: W }) : pe(r.value, { extensionCodec: W }) : typeof r == "bigint" ? pe(r.toString(), { extensionCodec: W }) : null;
|
|
1903
1903
|
},
|
|
1904
1904
|
decode: (r) => sn(r, { extensionCodec: W })
|
|
1905
1905
|
});
|
|
1906
|
-
let
|
|
1906
|
+
let Do = class {
|
|
1907
1907
|
constructor() {
|
|
1908
1908
|
ie(this, "contentType", "application/msgpack");
|
|
1909
1909
|
}
|
|
1910
1910
|
encode(e) {
|
|
1911
|
-
const t =
|
|
1911
|
+
const t = qt(e);
|
|
1912
1912
|
return pe(t, { extensionCodec: W }).slice();
|
|
1913
1913
|
}
|
|
1914
1914
|
decode(e, t) {
|
|
@@ -1918,11 +1918,11 @@ let ko = class {
|
|
|
1918
1918
|
static registerCustomType() {
|
|
1919
1919
|
}
|
|
1920
1920
|
};
|
|
1921
|
-
const Ve = new
|
|
1922
|
-
new Ro();
|
|
1921
|
+
const Ve = new Ro();
|
|
1923
1922
|
new jo();
|
|
1924
1923
|
new ko();
|
|
1925
|
-
|
|
1924
|
+
new Do();
|
|
1925
|
+
const Bt = (r) => [...new Set(r)], Po = (r, e, t = !0) => {
|
|
1926
1926
|
const n = /* @__PURE__ */ new Map();
|
|
1927
1927
|
return r.forEach((s) => {
|
|
1928
1928
|
const i = e(s);
|
|
@@ -1932,11 +1932,11 @@ const Ut = (r) => [...new Set(r)], Do = (r, e, t = !0) => {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
n.set(i, s);
|
|
1934
1934
|
}), Array.from(n.values());
|
|
1935
|
-
},
|
|
1935
|
+
}, Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1936
1936
|
__proto__: null,
|
|
1937
|
-
by:
|
|
1938
|
-
unique:
|
|
1939
|
-
}, Symbol.toStringTag, { value: "Module" })), on = (r) => r != null && typeof r == "object" && "toString" in r,
|
|
1937
|
+
by: Po,
|
|
1938
|
+
unique: Bt
|
|
1939
|
+
}, Symbol.toStringTag, { value: "Module" })), on = (r) => r != null && typeof r == "object" && "toString" in r, el = (r) => {
|
|
1940
1940
|
if (on(r)) return (r == null ? void 0 : r.toString().length) === 0;
|
|
1941
1941
|
switch (typeof r) {
|
|
1942
1942
|
case "string":
|
|
@@ -1978,18 +1978,18 @@ const Ut = (r) => [...new Set(r)], Do = (r, e, t = !0) => {
|
|
|
1978
1978
|
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
1979
1979
|
}
|
|
1980
1980
|
return e ? un(n) : n;
|
|
1981
|
-
},
|
|
1981
|
+
}, zo = (r, e, t) => {
|
|
1982
1982
|
const n = it(e[r], t);
|
|
1983
1983
|
return (s, i) => n(s[r], i[r]);
|
|
1984
|
-
},
|
|
1984
|
+
}, Fo = (r, e) => r.length !== e.length ? r.length - e.length : r.every((t, n) => t === e[n]) ? 0 : -1, an = (r, e) => {
|
|
1985
1985
|
if (r.length !== e.length) return r.length - e.length;
|
|
1986
1986
|
if (r.length === 0) return 0;
|
|
1987
1987
|
const t = it(r[0]), n = [...r].sort(t), s = [...e].sort(t);
|
|
1988
1988
|
return n.every((i, o) => i === s[o]) ? 0 : -1;
|
|
1989
|
-
},
|
|
1990
|
-
const t =
|
|
1989
|
+
}, _o = (r, e) => {
|
|
1990
|
+
const t = Bt(r), n = Bt(e);
|
|
1991
1991
|
return an(t, n);
|
|
1992
|
-
},
|
|
1992
|
+
}, qo = (r, e) => r === e ? 0 : r === "first" && e === "last" ? 1 : -1, un = (r) => (e, t) => r(t, e), ae = 0, Ye = -1, Ze = 1, ln = (r) => r < ae, hn = (r) => r > ae, Wo = (r) => r >= ae, cn = (r) => r === ae, Vo = (r, e) => {
|
|
1993
1993
|
const t = /([a-zA-Z]+)|(\d+)/g, n = r.replace(/[\s_.-]+/g, "").match(t), s = e.replace(/[\s_.-]+/g, "").match(t);
|
|
1994
1994
|
if (!n || !s) return 0;
|
|
1995
1995
|
for (let i = 0; i < Math.min(n.length, s.length); i++) {
|
|
@@ -2003,35 +2003,35 @@ const Ut = (r) => [...new Set(r)], Do = (r, e, t = !0) => {
|
|
|
2003
2003
|
} else return isNaN(Number(o)) ? -1 : 1;
|
|
2004
2004
|
}
|
|
2005
2005
|
return n.length - s.length;
|
|
2006
|
-
},
|
|
2006
|
+
}, tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2007
2007
|
__proto__: null,
|
|
2008
2008
|
EQUAL: ae,
|
|
2009
2009
|
GREATER_THAN: Ze,
|
|
2010
2010
|
LESS_THAN: Ye,
|
|
2011
2011
|
isEqualTo: cn,
|
|
2012
2012
|
isGreaterThan: hn,
|
|
2013
|
-
isGreaterThanEqual:
|
|
2013
|
+
isGreaterThanEqual: Wo,
|
|
2014
2014
|
isLessThan: ln,
|
|
2015
2015
|
newF: it,
|
|
2016
|
-
newFieldF:
|
|
2017
|
-
order:
|
|
2018
|
-
primitiveArrays:
|
|
2016
|
+
newFieldF: zo,
|
|
2017
|
+
order: qo,
|
|
2018
|
+
primitiveArrays: Fo,
|
|
2019
2019
|
reverseF: un,
|
|
2020
|
-
stringsWithNumbers:
|
|
2021
|
-
uniqueUnorderedPrimitiveArrays:
|
|
2020
|
+
stringsWithNumbers: Vo,
|
|
2021
|
+
uniqueUnorderedPrimitiveArrays: _o,
|
|
2022
2022
|
unorderedPrimitiveArrays: an
|
|
2023
2023
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2024
|
-
var
|
|
2025
|
-
let
|
|
2024
|
+
var Yo = Object.defineProperty, Zo = (r, e, t) => e in r ? Yo(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, l = (r, e, t) => Zo(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2025
|
+
let Ho = (r, e = 21) => (t = e) => {
|
|
2026
2026
|
let n = "", s = t | 0;
|
|
2027
2027
|
for (; s--; )
|
|
2028
2028
|
n += r[Math.random() * r.length | 0];
|
|
2029
2029
|
return n;
|
|
2030
2030
|
};
|
|
2031
|
-
const
|
|
2031
|
+
const Go = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ko = Ho(Go, 11), fn = () => Ko(), rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2032
2032
|
__proto__: null,
|
|
2033
2033
|
create: fn
|
|
2034
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2034
|
+
}, Symbol.toStringTag, { value: "Module" })), Jo = a.enum(["static", "dynamic"]), dn = (r, e) => {
|
|
2035
2035
|
const t = new x(e);
|
|
2036
2036
|
if (![
|
|
2037
2037
|
O.DAY,
|
|
@@ -3151,7 +3151,7 @@ l(E, "z", a.union([
|
|
|
3151
3151
|
a.instanceof(E)
|
|
3152
3152
|
]));
|
|
3153
3153
|
let Ke = E;
|
|
3154
|
-
const
|
|
3154
|
+
const sl = a.union([
|
|
3155
3155
|
a.instanceof(Uint8Array),
|
|
3156
3156
|
a.instanceof(Uint16Array),
|
|
3157
3157
|
a.instanceof(Uint32Array),
|
|
@@ -3165,14 +3165,14 @@ const nl = a.union([
|
|
|
3165
3165
|
]), gn = (r) => {
|
|
3166
3166
|
const e = typeof r;
|
|
3167
3167
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || r instanceof x || r instanceof O || r instanceof Date;
|
|
3168
|
-
},
|
|
3169
|
-
[Symbol.iterator]: () =>
|
|
3168
|
+
}, Xo = (r, e, t, n = 0) => r.usesBigInt && !e.usesBigInt ? Number(t) - Number(n) : !r.usesBigInt && e.usesBigInt ? BigInt(t.valueOf()) - BigInt(n.valueOf()) : we(t, -n).valueOf(), we = (r, e) => e == 0 ? r : r == 0 ? e : typeof r == "bigint" && typeof e == "bigint" || typeof r == "number" && typeof e == "number" ? r + e : Number(r) + Number(e), Qo = (r) => r == null ? !1 : Array.isArray(r) || r instanceof ArrayBuffer || ArrayBuffer.isView(r) && !(r instanceof DataView) || r instanceof ra ? !0 : gn(r), q = -1, Et = {
|
|
3169
|
+
[Symbol.iterator]: () => Et,
|
|
3170
3170
|
next: () => ({ done: !0, value: void 0 })
|
|
3171
|
-
},
|
|
3171
|
+
}, ea = a.string().transform(
|
|
3172
3172
|
(r) => new Uint8Array(
|
|
3173
3173
|
atob(r).split("").map((e) => e.charCodeAt(0))
|
|
3174
3174
|
).buffer
|
|
3175
|
-
),
|
|
3175
|
+
), ta = a.union([a.null(), a.undefined()]).transform(() => new Uint8Array().buffer), At = 10, pn = (r, e) => {
|
|
3176
3176
|
if (r === "string" && !e.isVariable)
|
|
3177
3177
|
throw new Error(`cannot convert series of type ${e.toString()} to string`);
|
|
3178
3178
|
if (r === "number" && !e.isNumeric)
|
|
@@ -3181,7 +3181,7 @@ const nl = a.union([
|
|
|
3181
3181
|
throw new Error(`cannot convert series of type ${e.toString()} to bigint`);
|
|
3182
3182
|
}, be = class j {
|
|
3183
3183
|
constructor(e) {
|
|
3184
|
-
l(this, "key", ""), l(this, "isSynnaxSeries", !0), l(this, "dataType"), l(this, "sampleOffset"), l(this, "gl"), l(this, "_data"), l(this, "timeRange", re.ZERO), l(this, "alignment", 0n), l(this, "_cachedMin"), l(this, "_cachedMax"), l(this, "writePos", q), l(this, "_refCount", 0), l(this, "_cachedLength"), l(this, "_cachedIndexes"),
|
|
3184
|
+
l(this, "key", ""), l(this, "isSynnaxSeries", !0), l(this, "dataType"), l(this, "sampleOffset"), l(this, "gl"), l(this, "_data"), l(this, "timeRange", re.ZERO), l(this, "alignment", 0n), l(this, "_cachedMin"), l(this, "_cachedMax"), l(this, "writePos", q), l(this, "_refCount", 0), l(this, "_cachedLength"), l(this, "_cachedIndexes"), Qo(e) && (e = { data: e });
|
|
3185
3185
|
const {
|
|
3186
3186
|
dataType: t,
|
|
3187
3187
|
timeRange: n,
|
|
@@ -3379,7 +3379,7 @@ const nl = a.union([
|
|
|
3379
3379
|
let e = 0;
|
|
3380
3380
|
const t = [0];
|
|
3381
3381
|
return this.data.forEach((n, s) => {
|
|
3382
|
-
n ===
|
|
3382
|
+
n === At && (e++, t.push(s + 1));
|
|
3383
3383
|
}), this._cachedIndexes = t, this._cachedLength = e, e;
|
|
3384
3384
|
}
|
|
3385
3385
|
/**
|
|
@@ -3395,7 +3395,7 @@ const nl = a.union([
|
|
|
3395
3395
|
if (this.dataType.equals(e)) return this;
|
|
3396
3396
|
const n = new e.Array(this.length);
|
|
3397
3397
|
for (let s = 0; s < this.length; s++)
|
|
3398
|
-
n[s] =
|
|
3398
|
+
n[s] = Xo(this.dataType, e, this.data[s], t);
|
|
3399
3399
|
return new j({
|
|
3400
3400
|
data: n.buffer,
|
|
3401
3401
|
dataType: e,
|
|
@@ -3487,7 +3487,7 @@ const nl = a.union([
|
|
|
3487
3487
|
else {
|
|
3488
3488
|
e < 0 && (e = this.length + e);
|
|
3489
3489
|
for (let o = 0; o < this.data.length; o++)
|
|
3490
|
-
if (this.data[o] ===
|
|
3490
|
+
if (this.data[o] === At) {
|
|
3491
3491
|
if (e === 0) {
|
|
3492
3492
|
s = o;
|
|
3493
3493
|
break;
|
|
@@ -3571,10 +3571,10 @@ const nl = a.union([
|
|
|
3571
3571
|
}
|
|
3572
3572
|
[Symbol.iterator]() {
|
|
3573
3573
|
if (this.dataType.isVariable) {
|
|
3574
|
-
const e = new
|
|
3575
|
-
return this.dataType.equals(w.JSON) ? new
|
|
3574
|
+
const e = new na(this);
|
|
3575
|
+
return this.dataType.equals(w.JSON) ? new sa(e) : e;
|
|
3576
3576
|
}
|
|
3577
|
-
return new
|
|
3577
|
+
return new ia(this);
|
|
3578
3578
|
}
|
|
3579
3579
|
slice(e, t) {
|
|
3580
3580
|
return this.sliceSub(!1, e, t);
|
|
@@ -3645,18 +3645,18 @@ l(be, "crudeZ", a.object({
|
|
|
3645
3645
|
dataType: w.z,
|
|
3646
3646
|
alignment: a.coerce.bigint().optional(),
|
|
3647
3647
|
data: a.union([
|
|
3648
|
-
Qo,
|
|
3649
3648
|
ea,
|
|
3649
|
+
ta,
|
|
3650
3650
|
a.instanceof(ArrayBuffer),
|
|
3651
3651
|
a.instanceof(Uint8Array)
|
|
3652
3652
|
]),
|
|
3653
|
-
glBufferUsage:
|
|
3653
|
+
glBufferUsage: Jo.optional().default("static").optional()
|
|
3654
3654
|
})), l(be, "z", be.crudeZ.transform((r) => new be(r)));
|
|
3655
|
-
let
|
|
3655
|
+
let ra = be, gr = class {
|
|
3656
3656
|
constructor(e, t, n) {
|
|
3657
3657
|
l(this, "series"), l(this, "end"), l(this, "index"), this.series = e;
|
|
3658
3658
|
const s = m(0, e.length);
|
|
3659
|
-
this.end =
|
|
3659
|
+
this.end = mt(s, n), this.index = mt(s, t);
|
|
3660
3660
|
}
|
|
3661
3661
|
next() {
|
|
3662
3662
|
return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
|
|
@@ -3664,7 +3664,8 @@ let ta = be, gr = class {
|
|
|
3664
3664
|
[Symbol.iterator]() {
|
|
3665
3665
|
return this;
|
|
3666
3666
|
}
|
|
3667
|
-
}
|
|
3667
|
+
};
|
|
3668
|
+
class na {
|
|
3668
3669
|
constructor(e) {
|
|
3669
3670
|
if (l(this, "series"), l(this, "index"), l(this, "decoder"), !e.dataType.isVariable)
|
|
3670
3671
|
throw new Error(
|
|
@@ -3674,14 +3675,14 @@ let ta = be, gr = class {
|
|
|
3674
3675
|
}
|
|
3675
3676
|
next() {
|
|
3676
3677
|
const e = this.index, t = this.series.data;
|
|
3677
|
-
for (; this.index < t.length && t[this.index] !==
|
|
3678
|
+
for (; this.index < t.length && t[this.index] !== At; ) this.index++;
|
|
3678
3679
|
const n = this.index;
|
|
3679
3680
|
return e === n ? { done: !0, value: void 0 } : (this.index++, { done: !1, value: this.decoder.decode(this.series.buffer.slice(e, n)) });
|
|
3680
3681
|
}
|
|
3681
3682
|
[Symbol.iterator]() {
|
|
3682
3683
|
return this;
|
|
3683
3684
|
}
|
|
3684
|
-
}
|
|
3685
|
+
}
|
|
3685
3686
|
var pr, yr;
|
|
3686
3687
|
const yn = class mn {
|
|
3687
3688
|
constructor(e) {
|
|
@@ -3699,9 +3700,9 @@ const yn = class mn {
|
|
|
3699
3700
|
}
|
|
3700
3701
|
};
|
|
3701
3702
|
l(yn, "SCHEMA", a.record(a.string(), a.unknown()));
|
|
3702
|
-
let
|
|
3703
|
+
let sa = yn;
|
|
3703
3704
|
var mr, wr;
|
|
3704
|
-
class
|
|
3705
|
+
let ia = class {
|
|
3705
3706
|
constructor(e) {
|
|
3706
3707
|
l(this, "series"), l(this, "index"), l(this, mr, "SeriesIterator"), this.series = e, this.index = 0;
|
|
3707
3708
|
}
|
|
@@ -3714,8 +3715,7 @@ class sa {
|
|
|
3714
3715
|
[(wr = Symbol.iterator, mr = Symbol.toStringTag, wr)]() {
|
|
3715
3716
|
return this;
|
|
3716
3717
|
}
|
|
3717
|
-
}
|
|
3718
|
-
class ol {
|
|
3718
|
+
}, al = class {
|
|
3719
3719
|
constructor(e = []) {
|
|
3720
3720
|
if (l(this, "series"), e.length !== 0) {
|
|
3721
3721
|
const t = e[0].dataType;
|
|
@@ -3771,11 +3771,11 @@ class ol {
|
|
|
3771
3771
|
if (t) throw new Error(`[series] - no value at index ${e}`);
|
|
3772
3772
|
}
|
|
3773
3773
|
subIterator(e, t) {
|
|
3774
|
-
return new
|
|
3774
|
+
return new ct(this, e, t ?? this.length);
|
|
3775
3775
|
}
|
|
3776
3776
|
subAlignmentIterator(e, t) {
|
|
3777
3777
|
if (e >= this.alignmentBounds.upper || t <= this.alignmentBounds.lower)
|
|
3778
|
-
return
|
|
3778
|
+
return Et;
|
|
3779
3779
|
let n = 0;
|
|
3780
3780
|
for (let i = 0; i < this.series.length; i++) {
|
|
3781
3781
|
const o = this.series[i];
|
|
@@ -3796,10 +3796,10 @@ class ol {
|
|
|
3796
3796
|
break;
|
|
3797
3797
|
}
|
|
3798
3798
|
}
|
|
3799
|
-
return new
|
|
3799
|
+
return new ct(this, n, s);
|
|
3800
3800
|
}
|
|
3801
3801
|
subAlignmentSpanIterator(e, t) {
|
|
3802
|
-
if (e >= this.alignmentBounds.upper) return
|
|
3802
|
+
if (e >= this.alignmentBounds.upper) return Et;
|
|
3803
3803
|
let n = 0;
|
|
3804
3804
|
for (let s = 0; s < this.series.length; s++) {
|
|
3805
3805
|
const i = this.series[s];
|
|
@@ -3810,7 +3810,7 @@ class ol {
|
|
|
3810
3810
|
break;
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
|
-
return new
|
|
3813
|
+
return new ct(this, n, n + t);
|
|
3814
3814
|
}
|
|
3815
3815
|
updateGLBuffer(e) {
|
|
3816
3816
|
this.series.forEach((t) => t.updateGLBuffer(e));
|
|
@@ -3852,11 +3852,11 @@ class ol {
|
|
|
3852
3852
|
next() {
|
|
3853
3853
|
return { done: !0, value: void 0 };
|
|
3854
3854
|
}
|
|
3855
|
-
} : new
|
|
3855
|
+
} : new oa(this.series);
|
|
3856
3856
|
}
|
|
3857
|
-
}
|
|
3857
|
+
};
|
|
3858
3858
|
var br, vr;
|
|
3859
|
-
let
|
|
3859
|
+
let oa = class {
|
|
3860
3860
|
constructor(e) {
|
|
3861
3861
|
l(this, "series"), l(this, "seriesIndex"), l(this, "internal"), l(this, br, "MultiSeriesIterator"), this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
|
|
3862
3862
|
}
|
|
@@ -3867,7 +3867,7 @@ let ia = class {
|
|
|
3867
3867
|
[(vr = Symbol.iterator, br = Symbol.toStringTag, vr)]() {
|
|
3868
3868
|
return this;
|
|
3869
3869
|
}
|
|
3870
|
-
},
|
|
3870
|
+
}, ct = class {
|
|
3871
3871
|
constructor(e, t, n) {
|
|
3872
3872
|
l(this, "series"), l(this, "index"), l(this, "end"), this.series = e, this.end = n, this.index = t;
|
|
3873
3873
|
}
|
|
@@ -3881,7 +3881,7 @@ let ia = class {
|
|
|
3881
3881
|
const $r = (r) => {
|
|
3882
3882
|
const e = r >> 32n, t = r & 0xffffffffn;
|
|
3883
3883
|
return { domain: e, sample: t };
|
|
3884
|
-
},
|
|
3884
|
+
}, aa = (r, e, t = ".") => {
|
|
3885
3885
|
const n = r.split(t);
|
|
3886
3886
|
return n.map((s, i) => {
|
|
3887
3887
|
const o = e(s, i, n);
|
|
@@ -3901,7 +3901,7 @@ const $r = (r) => {
|
|
|
3901
3901
|
o = h;
|
|
3902
3902
|
}
|
|
3903
3903
|
return o;
|
|
3904
|
-
},
|
|
3904
|
+
}, cl = (r, e, t) => {
|
|
3905
3905
|
const n = e.split(".");
|
|
3906
3906
|
let s = r;
|
|
3907
3907
|
for (let i = 0; i < n.length - 1; i++) {
|
|
@@ -3913,7 +3913,7 @@ const $r = (r) => {
|
|
|
3913
3913
|
} catch (i) {
|
|
3914
3914
|
throw console.error("failed to set value", t, "at path", e, "on object", r), i;
|
|
3915
3915
|
}
|
|
3916
|
-
},
|
|
3916
|
+
}, fl = (r, e) => {
|
|
3917
3917
|
const t = e.split(".");
|
|
3918
3918
|
let n = r;
|
|
3919
3919
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -3928,16 +3928,16 @@ const $r = (r) => {
|
|
|
3928
3928
|
return;
|
|
3929
3929
|
}
|
|
3930
3930
|
delete n[t[t.length - 1]];
|
|
3931
|
-
},
|
|
3931
|
+
}, dl = (r, e) => {
|
|
3932
3932
|
const t = r.split(".");
|
|
3933
3933
|
return e < 0 ? t[t.length + e] : t[e];
|
|
3934
|
-
},
|
|
3934
|
+
}, gl = (r, e) => {
|
|
3935
3935
|
try {
|
|
3936
3936
|
return wn(r, e), !0;
|
|
3937
3937
|
} catch {
|
|
3938
3938
|
return !1;
|
|
3939
3939
|
}
|
|
3940
|
-
},
|
|
3940
|
+
}, pl = (r, e) => {
|
|
3941
3941
|
if (e.length === 0) return !0;
|
|
3942
3942
|
const t = r.split("."), n = e.split(".");
|
|
3943
3943
|
if (n.length > t.length) return !1;
|
|
@@ -3949,36 +3949,36 @@ const $r = (r) => {
|
|
|
3949
3949
|
return !0;
|
|
3950
3950
|
};
|
|
3951
3951
|
a.object({ key: a.string(), value: a.string() });
|
|
3952
|
-
const
|
|
3952
|
+
const yl = a.record(
|
|
3953
3953
|
a.union([a.number(), a.string(), a.symbol()]),
|
|
3954
3954
|
a.unknown()
|
|
3955
|
-
), bn = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser",
|
|
3955
|
+
), bn = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", ua = bn(), vn = ["macOS", "Windows", "Linux"], la = ["macos", "windows", "linux"], ha = {
|
|
3956
3956
|
macos: "macOS",
|
|
3957
3957
|
windows: "Windows",
|
|
3958
3958
|
linux: "Linux"
|
|
3959
|
-
},
|
|
3960
|
-
a.enum(
|
|
3961
|
-
),
|
|
3959
|
+
}, ca = a.enum(vn).or(
|
|
3960
|
+
a.enum(la).transform((r) => ha[r])
|
|
3961
|
+
), fa = () => {
|
|
3962
3962
|
if (typeof window > "u") return;
|
|
3963
3963
|
const r = window.navigator.userAgent.toLowerCase();
|
|
3964
3964
|
if (r.includes("mac")) return "macOS";
|
|
3965
3965
|
if (r.includes("win")) return "Windows";
|
|
3966
3966
|
if (r.includes("linux")) return "Linux";
|
|
3967
3967
|
};
|
|
3968
|
-
let
|
|
3969
|
-
const
|
|
3968
|
+
let ft;
|
|
3969
|
+
const da = (r = {}) => {
|
|
3970
3970
|
const { force: e, default: t } = r;
|
|
3971
|
-
return e ??
|
|
3972
|
-
},
|
|
3971
|
+
return e ?? ft ?? (ft = fa(), ft ?? t);
|
|
3972
|
+
}, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3973
3973
|
__proto__: null,
|
|
3974
3974
|
OPERATING_SYSTEMS: vn,
|
|
3975
|
-
RUNTIME:
|
|
3975
|
+
RUNTIME: ua,
|
|
3976
3976
|
detect: bn,
|
|
3977
|
-
getOS:
|
|
3978
|
-
osZ:
|
|
3977
|
+
getOS: da,
|
|
3978
|
+
osZ: ca
|
|
3979
3979
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3980
|
-
var
|
|
3981
|
-
const
|
|
3980
|
+
var ga = Object.defineProperty, pa = (r, e, t) => e in r ? ga(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ve = (r, e, t) => pa(r, typeof e != "symbol" ? e + "" : e, t);
|
|
3981
|
+
const ya = (...r) => r.map($n).join(""), $n = (r) => (r.endsWith("/") || (r += "/"), r.startsWith("/") && (r = r.slice(1)), r), ma = (r) => r.endsWith("/") ? r.slice(0, -1) : r, xr = class Mt {
|
|
3982
3982
|
/**
|
|
3983
3983
|
* @param host - The hostname or IP address of the server.
|
|
3984
3984
|
* @param port - The port number of the server.
|
|
@@ -3994,7 +3994,7 @@ const pa = (...r) => r.map($n).join(""), $n = (r) => (r.endsWith("/") || (r += "
|
|
|
3994
3994
|
* @returns a new URL.
|
|
3995
3995
|
*/
|
|
3996
3996
|
replace(e) {
|
|
3997
|
-
return new
|
|
3997
|
+
return new Mt({
|
|
3998
3998
|
host: e.host ?? this.host,
|
|
3999
3999
|
port: e.port ?? this.port,
|
|
4000
4000
|
protocol: e.protocol ?? this.protocol,
|
|
@@ -4007,64 +4007,64 @@ const pa = (...r) => r.map($n).join(""), $n = (r) => (r.endsWith("/") || (r += "
|
|
|
4007
4007
|
* @returns a new URL.
|
|
4008
4008
|
*/
|
|
4009
4009
|
child(e) {
|
|
4010
|
-
return new
|
|
4010
|
+
return new Mt({
|
|
4011
4011
|
...this,
|
|
4012
|
-
pathPrefix:
|
|
4012
|
+
pathPrefix: ya(this.path, e)
|
|
4013
4013
|
});
|
|
4014
4014
|
}
|
|
4015
4015
|
/** @returns a string representation of the url */
|
|
4016
4016
|
toString() {
|
|
4017
|
-
return
|
|
4017
|
+
return ma(
|
|
4018
4018
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
4019
4019
|
);
|
|
4020
4020
|
}
|
|
4021
4021
|
};
|
|
4022
4022
|
ve(xr, "UNKNOWN", new xr({ host: "unknown", port: 0 }));
|
|
4023
|
-
const
|
|
4023
|
+
const wa = -128, ba = 127, va = a.number().int().min(wa).max(ba), $a = -32768, xa = 32767, Oa = a.number().int().min($a).max(xa), Ta = -2147483648, Sa = 2147483647, Ia = a.number().int().min(Ta).max(Sa), Na = -9223372036854775808n, Ua = 9223372036854775807n, Ba = a.bigint().min(Na).max(Ua), Ea = 255, Aa = a.number().int().min(0).max(Ea), Ma = 65535, Ca = a.number().int().min(0).max(Ma), La = 4294967295, Ra = a.number().int().min(0).max(La), ja = 18446744073709551615n, ka = a.bigint().min(0n).max(ja), xn = (r) => aa(r, (e, t, n) => {
|
|
4024
4024
|
const s = t === n.length - 1, i = !isNaN(parseInt(e)), o = !isNaN(parseInt(n[t + 1]));
|
|
4025
4025
|
return i && (e = "element"), s || o ? e : [e, "shape"];
|
|
4026
4026
|
}), Or = (r, e) => {
|
|
4027
4027
|
if (r == null) return null;
|
|
4028
4028
|
const t = r[e];
|
|
4029
4029
|
return t == null && typeof r == "object" && "sourceType" in r ? r.sourceType()[e] : t;
|
|
4030
|
-
},
|
|
4030
|
+
}, Da = (r, e, t) => wn(
|
|
4031
4031
|
Or(r, "shape"),
|
|
4032
4032
|
xn(e),
|
|
4033
4033
|
{ ...t, getter: Or }
|
|
4034
|
-
),
|
|
4034
|
+
), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4035
4035
|
__proto__: null,
|
|
4036
|
-
getFieldSchema:
|
|
4036
|
+
getFieldSchema: Da,
|
|
4037
4037
|
getFieldSchemaPath: xn,
|
|
4038
|
-
int16:
|
|
4039
|
-
int32:
|
|
4040
|
-
int64:
|
|
4041
|
-
int8:
|
|
4042
|
-
uint16:
|
|
4043
|
-
uint32:
|
|
4044
|
-
uint64:
|
|
4045
|
-
uint8:
|
|
4038
|
+
int16: Oa,
|
|
4039
|
+
int32: Ia,
|
|
4040
|
+
int64: Ba,
|
|
4041
|
+
int8: va,
|
|
4042
|
+
uint16: Ca,
|
|
4043
|
+
uint32: Ra,
|
|
4044
|
+
uint64: ka,
|
|
4045
|
+
uint8: Aa
|
|
4046
4046
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4047
|
-
var
|
|
4048
|
-
const
|
|
4047
|
+
var Pa = Object.defineProperty, za = (r, e, t) => e in r ? Pa(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Q = (r, e, t) => za(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4048
|
+
const Fa = 2, _a = 3, qa = 2, Wa = (r, e) => {
|
|
4049
4049
|
if (Number.isNaN(r) || !Number.isFinite(r)) return r;
|
|
4050
4050
|
const t = Me(e);
|
|
4051
4051
|
if (t == 0) return r;
|
|
4052
4052
|
let n;
|
|
4053
|
-
t >= 1e3 ? n =
|
|
4053
|
+
t >= 1e3 ? n = Fa : t >= 1 ? n = _a : n = Math.ceil(-Math.log10(t)) + qa;
|
|
4054
4054
|
const s = 10 ** n;
|
|
4055
4055
|
return Math.round(r * s) / s;
|
|
4056
|
-
},
|
|
4056
|
+
}, bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4057
4057
|
__proto__: null,
|
|
4058
4058
|
abs: Ar,
|
|
4059
4059
|
add: Br,
|
|
4060
|
-
closeTo:
|
|
4061
|
-
div:
|
|
4062
|
-
equal:
|
|
4063
|
-
max:
|
|
4060
|
+
closeTo: es,
|
|
4061
|
+
div: ns,
|
|
4062
|
+
equal: pt,
|
|
4063
|
+
max: rs,
|
|
4064
4064
|
min: Er,
|
|
4065
4065
|
mult: X,
|
|
4066
|
-
roundBySpan:
|
|
4067
|
-
roundToNearestMagnitude:
|
|
4066
|
+
roundBySpan: Wa,
|
|
4067
|
+
roundToNearestMagnitude: ts,
|
|
4068
4068
|
sub: $e
|
|
4069
4069
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4070
4070
|
a.object({
|
|
@@ -4072,39 +4072,40 @@ a.object({
|
|
|
4072
4072
|
maxRetries: a.number().optional(),
|
|
4073
4073
|
scale: a.number().optional()
|
|
4074
4074
|
});
|
|
4075
|
-
const
|
|
4075
|
+
const Va = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, sr = a.string().regex(Va), oe = a.number().min(0).max(255), Ya = a.number().min(0).max(1), ot = a.tuple([oe, oe, oe, Ya]), On = a.tuple([oe, oe, oe]), Tn = a.object({ rgba255: ot }), Za = (r) => Le.safeParse(r).success, Ha = (r) => ot.safeParse(r).success, Ga = (r) => {
|
|
4076
4076
|
if (r == null) return;
|
|
4077
4077
|
const e = Le.safeParse(r);
|
|
4078
|
-
if (e.success) return
|
|
4078
|
+
if (e.success) return Nn(e.data);
|
|
4079
4079
|
if (typeof r == "string") return r;
|
|
4080
4080
|
throw e.error;
|
|
4081
4081
|
}, $ = (r, e = 1) => {
|
|
4082
|
-
if (typeof r == "string") return
|
|
4082
|
+
if (typeof r == "string") return su(r, e);
|
|
4083
4083
|
if (Array.isArray(r)) {
|
|
4084
4084
|
if (r.length < 3 || r.length > 4)
|
|
4085
4085
|
throw new Error(`Invalid color: [${r.join(", ")}]`);
|
|
4086
4086
|
return r.length === 3 ? [...r, e] : r;
|
|
4087
4087
|
}
|
|
4088
|
+
if (typeof r == "object" && "rgba255" in r) return r.rgba255;
|
|
4088
4089
|
throw new Error(`Invalid color: ${JSON.stringify(r)}`);
|
|
4089
|
-
},
|
|
4090
|
+
}, Sn = (r, e) => {
|
|
4090
4091
|
if (r == null || e == null) return !1;
|
|
4091
4092
|
const t = $(r), n = $(e);
|
|
4092
4093
|
return t.every((s, i) => s === n[i]);
|
|
4093
|
-
},
|
|
4094
|
+
}, In = (r) => {
|
|
4094
4095
|
if (r == null) return;
|
|
4095
4096
|
const [e, t, n, s] = $(r);
|
|
4096
4097
|
return `#${ze(e)}${ze(t)}${ze(n)}${s === 1 ? "" : ze(s * 255)}`;
|
|
4097
|
-
},
|
|
4098
|
+
}, Nn = (r) => {
|
|
4098
4099
|
const [e, t, n, s] = $(r);
|
|
4099
4100
|
return `rgba(${e}, ${t}, ${n}, ${s})`;
|
|
4100
|
-
},
|
|
4101
|
+
}, Ka = (r) => `rgb(${Un(r)})`, Un = (r) => {
|
|
4101
4102
|
const [e, t, n] = $(r);
|
|
4102
4103
|
return `${e}, ${t}, ${n}`;
|
|
4103
|
-
},
|
|
4104
|
+
}, Ja = (r) => [...ir(r), Ie(r)], ir = (r) => [
|
|
4104
4105
|
Oe(r) / 255,
|
|
4105
4106
|
Te(r) / 255,
|
|
4106
4107
|
Se(r) / 255
|
|
4107
|
-
], Oe = (r) => $(r)[0], Te = (r) => $(r)[1], Se = (r) => $(r)[2], Ie = (r) => $(r)[3],
|
|
4108
|
+
], Oe = (r) => $(r)[0], Te = (r) => $(r)[1], Se = (r) => $(r)[2], Ie = (r) => $(r)[3], Xa = (r) => Sn(or, r), Qa = (r) => au($(r)), eu = (r, e) => {
|
|
4108
4109
|
const [t, n, s] = $(r);
|
|
4109
4110
|
if (e > 100)
|
|
4110
4111
|
throw new Error(`Color opacity must be between 0 and 100, got ${e}`);
|
|
@@ -4114,26 +4115,26 @@ const Wa = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nr = a.string().regex(Wa), oe = a.n
|
|
|
4114
4115
|
(s) => s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4
|
|
4115
4116
|
);
|
|
4116
4117
|
return Number((0.2126 * e + 0.7152 * t + 0.0722 * n).toFixed(3));
|
|
4117
|
-
},
|
|
4118
|
+
}, tu = (r) => {
|
|
4118
4119
|
const [e, t, n] = ir(r);
|
|
4119
4120
|
return 1 - (Math.max(e, t, n) - Math.min(e, t, n));
|
|
4120
|
-
},
|
|
4121
|
+
}, Ct = (r, e) => {
|
|
4121
4122
|
const t = $(r), n = $(e), s = Je(t), i = Je(n);
|
|
4122
4123
|
return (Math.max(s, i) + 0.5) / (Math.min(s, i) + 0.5);
|
|
4123
|
-
},
|
|
4124
|
+
}, ru = (r, ...e) => {
|
|
4124
4125
|
if (e.length === 0)
|
|
4125
4126
|
throw new Error("[Color.pickByContrast] - must provide at least one color");
|
|
4126
|
-
const t = $(r), [n] = e.map((s) => $(s)).sort((s, i) =>
|
|
4127
|
+
const t = $(r), [n] = e.map((s) => $(s)).sort((s, i) => Ct(t, i) - Ct(t, s));
|
|
4127
4128
|
return n;
|
|
4128
|
-
},
|
|
4129
|
-
if (!
|
|
4130
|
-
return r =
|
|
4129
|
+
}, Bn = (r) => Je(r) < 0.5, nu = (r) => !Bn(r), Le = a.union([sr, ot, On, Tn]).transform((r) => $(r)), su = (r, e = 1) => {
|
|
4130
|
+
if (!sr.safeParse(r).success) throw new Error(`Invalid hex color: ${r}`);
|
|
4131
|
+
return r = iu(r), [
|
|
4131
4132
|
Fe(r, 0),
|
|
4132
4133
|
Fe(r, 2),
|
|
4133
4134
|
Fe(r, 4),
|
|
4134
4135
|
r.length === 8 ? Fe(r, 6) / 255 : e
|
|
4135
4136
|
];
|
|
4136
|
-
}, or = [0, 0, 0, 0], ze = (r) => Math.floor(r).toString(16).padStart(2, "0"), Fe = (r, e) => parseInt(r.slice(e, e + 2), 16),
|
|
4137
|
+
}, or = [0, 0, 0, 0], ze = (r) => Math.floor(r).toString(16).padStart(2, "0"), Fe = (r, e) => parseInt(r.slice(e, e + 2), 16), iu = (r) => r.startsWith("#") ? r.slice(1) : r, ou = (r) => {
|
|
4137
4138
|
let [e, t, n] = r;
|
|
4138
4139
|
const s = r[3];
|
|
4139
4140
|
e /= 360, t /= 100, n /= 100;
|
|
@@ -4142,10 +4143,10 @@ const Wa = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nr = a.string().regex(Wa), oe = a.n
|
|
|
4142
4143
|
i = o = u = n;
|
|
4143
4144
|
else {
|
|
4144
4145
|
const h = n < 0.5 ? n * (1 + t) : n + t - n * t, f = 2 * n - h;
|
|
4145
|
-
i =
|
|
4146
|
+
i = dt(f, h, e + 1 / 3), o = dt(f, h, e), u = dt(f, h, e - 1 / 3);
|
|
4146
4147
|
}
|
|
4147
4148
|
return [Math.round(i * 255), Math.round(o * 255), Math.round(u * 255), s];
|
|
4148
|
-
},
|
|
4149
|
+
}, dt = (r, e, t) => (t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? r + (e - r) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? r + (e - r) * (2 / 3 - t) * 6 : r), au = (r) => {
|
|
4149
4150
|
let [e, t, n] = r;
|
|
4150
4151
|
const s = r[3];
|
|
4151
4152
|
e /= 255, t /= 255, n /= 255;
|
|
@@ -4158,12 +4159,12 @@ const Wa = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nr = a.string().regex(Wa), oe = a.n
|
|
|
4158
4159
|
h = f > 0.5 ? g / (2 - i - o) : g / (i + o), i === e ? u = (t - n) / g + (t < n ? 6 : 0) : i === t ? u = (n - e) / g + 2 : u = (e - t) / g + 4, u /= 6;
|
|
4159
4160
|
}
|
|
4160
4161
|
return u *= 360, h *= 100, f *= 100, [Math.round(u), Math.round(h), Math.round(f), s];
|
|
4161
|
-
},
|
|
4162
|
+
}, En = a.union([sr, ot, a.string(), On, Tn]), uu = $("#000000"), lu = $("#ffffff"), An = a.object({
|
|
4162
4163
|
key: a.string(),
|
|
4163
|
-
color:
|
|
4164
|
+
color: En,
|
|
4164
4165
|
position: a.number(),
|
|
4165
4166
|
switched: a.boolean().optional()
|
|
4166
|
-
}),
|
|
4167
|
+
}), hu = a.array(An), cu = (r, e) => {
|
|
4167
4168
|
if (r.length === 0) return or;
|
|
4168
4169
|
if (r = r.slice().sort((t, n) => t.position - n.position), e <= r[0].position) return $(r[0].color);
|
|
4169
4170
|
if (e >= r[r.length - 1].position)
|
|
@@ -4184,106 +4185,106 @@ const Wa = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nr = a.string().regex(Wa), oe = a.n
|
|
|
4184
4185
|
}
|
|
4185
4186
|
}
|
|
4186
4187
|
return $(r[r.length - 1].color);
|
|
4187
|
-
},
|
|
4188
|
+
}, fu = a.object({
|
|
4188
4189
|
key: a.string(),
|
|
4189
4190
|
name: a.string(),
|
|
4190
4191
|
color: Le
|
|
4191
|
-
}),
|
|
4192
|
+
}), du = a.object({
|
|
4192
4193
|
key: a.string(),
|
|
4193
4194
|
name: a.string(),
|
|
4194
|
-
swatches: a.array(
|
|
4195
|
-
}),
|
|
4195
|
+
swatches: a.array(fu)
|
|
4196
|
+
}), Mn = (r) => {
|
|
4196
4197
|
const e = Le.safeParse(r);
|
|
4197
|
-
if (e.success) return
|
|
4198
|
+
if (e.success) return In(e.data);
|
|
4198
4199
|
if (typeof r == "object" && r != null) {
|
|
4199
4200
|
const t = Array.isArray(r) ? [] : {};
|
|
4200
4201
|
for (const n of Object.keys(r))
|
|
4201
|
-
t[n] =
|
|
4202
|
+
t[n] = Mn(r[n]);
|
|
4202
4203
|
return t;
|
|
4203
4204
|
}
|
|
4204
4205
|
return r;
|
|
4205
|
-
},
|
|
4206
|
+
}, vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4206
4207
|
__proto__: null,
|
|
4207
|
-
BLACK:
|
|
4208
|
-
WHITE:
|
|
4208
|
+
BLACK: uu,
|
|
4209
|
+
WHITE: lu,
|
|
4209
4210
|
ZERO: or,
|
|
4210
4211
|
aValue: Ie,
|
|
4211
4212
|
bValue: Se,
|
|
4212
4213
|
colorZ: Le,
|
|
4213
4214
|
construct: $,
|
|
4214
|
-
contrast:
|
|
4215
|
-
crudeZ:
|
|
4216
|
-
cssString:
|
|
4217
|
-
equals:
|
|
4218
|
-
fromGradient:
|
|
4219
|
-
fromHSLA:
|
|
4215
|
+
contrast: Ct,
|
|
4216
|
+
crudeZ: En,
|
|
4217
|
+
cssString: Ga,
|
|
4218
|
+
equals: Sn,
|
|
4219
|
+
fromGradient: cu,
|
|
4220
|
+
fromHSLA: ou,
|
|
4220
4221
|
gValue: Te,
|
|
4221
|
-
gradientZ:
|
|
4222
|
-
grayness:
|
|
4223
|
-
hex:
|
|
4224
|
-
hsla:
|
|
4225
|
-
isColor:
|
|
4226
|
-
isCrude:
|
|
4227
|
-
isDark:
|
|
4228
|
-
isLight:
|
|
4229
|
-
isZero:
|
|
4222
|
+
gradientZ: hu,
|
|
4223
|
+
grayness: tu,
|
|
4224
|
+
hex: In,
|
|
4225
|
+
hsla: Qa,
|
|
4226
|
+
isColor: Ha,
|
|
4227
|
+
isCrude: Za,
|
|
4228
|
+
isDark: Bn,
|
|
4229
|
+
isLight: nu,
|
|
4230
|
+
isZero: Xa,
|
|
4230
4231
|
luminance: Je,
|
|
4231
|
-
paletteZ:
|
|
4232
|
-
pickByContrast:
|
|
4232
|
+
paletteZ: du,
|
|
4233
|
+
pickByContrast: ru,
|
|
4233
4234
|
rValue: Oe,
|
|
4234
|
-
rgbCSS:
|
|
4235
|
-
rgbString:
|
|
4236
|
-
rgba1:
|
|
4237
|
-
rgbaCSS:
|
|
4238
|
-
setAlpha:
|
|
4239
|
-
stopZ:
|
|
4240
|
-
transformColorsToHex:
|
|
4241
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4242
|
-
lower:
|
|
4243
|
-
upper:
|
|
4244
|
-
},
|
|
4235
|
+
rgbCSS: Ka,
|
|
4236
|
+
rgbString: Un,
|
|
4237
|
+
rgba1: Ja,
|
|
4238
|
+
rgbaCSS: Nn,
|
|
4239
|
+
setAlpha: eu,
|
|
4240
|
+
stopZ: An,
|
|
4241
|
+
transformColorsToHex: Mn
|
|
4242
|
+
}, Symbol.toStringTag, { value: "Module" })), Cn = a.number().int().min(0).max(255), Ln = 255, Rn = 0, gu = {
|
|
4243
|
+
lower: Rn,
|
|
4244
|
+
upper: Ln + 1
|
|
4245
|
+
}, jn = a.object({
|
|
4245
4246
|
name: a.string(),
|
|
4246
4247
|
key: a.string()
|
|
4247
4248
|
}), Ae = (r) => a.object({
|
|
4248
|
-
subject:
|
|
4249
|
+
subject: jn,
|
|
4249
4250
|
resource: r,
|
|
4250
|
-
authority:
|
|
4251
|
-
}),
|
|
4251
|
+
authority: Cn
|
|
4252
|
+
}), pu = (...r) => (e) => e.filter((t) => {
|
|
4252
4253
|
let n = !1;
|
|
4253
4254
|
return t.to != null && (n = r.includes(t.to.resource)), t.from != null && !n && (n = r.includes(t.from.resource)), n;
|
|
4254
|
-
}),
|
|
4255
|
+
}), kn = a.object({
|
|
4255
4256
|
from: Ae(a.any()),
|
|
4256
4257
|
to: a.null()
|
|
4257
|
-
}),
|
|
4258
|
+
}), Dn = a.object({
|
|
4258
4259
|
from: a.null(),
|
|
4259
4260
|
to: Ae(a.any())
|
|
4260
|
-
}),
|
|
4261
|
-
jn,
|
|
4261
|
+
}), yu = a.union([
|
|
4262
4262
|
kn,
|
|
4263
|
+
Dn,
|
|
4263
4264
|
a.object({
|
|
4264
4265
|
from: Ae(a.any()),
|
|
4265
4266
|
to: Ae(a.any())
|
|
4266
4267
|
})
|
|
4267
|
-
]),
|
|
4268
|
+
]), $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4268
4269
|
__proto__: null,
|
|
4269
|
-
ABSOLUTE_AUTHORITY:
|
|
4270
|
-
AUTHORITY_BOUNDS:
|
|
4271
|
-
ZERO_AUTHORITY:
|
|
4272
|
-
acquireZ:
|
|
4273
|
-
authorityZ:
|
|
4274
|
-
filterTransfersByChannelKey:
|
|
4275
|
-
releaseZ:
|
|
4270
|
+
ABSOLUTE_AUTHORITY: Ln,
|
|
4271
|
+
AUTHORITY_BOUNDS: gu,
|
|
4272
|
+
ZERO_AUTHORITY: Rn,
|
|
4273
|
+
acquireZ: Dn,
|
|
4274
|
+
authorityZ: Cn,
|
|
4275
|
+
filterTransfersByChannelKey: pu,
|
|
4276
|
+
releaseZ: kn,
|
|
4276
4277
|
stateZ: Ae,
|
|
4277
|
-
subjectZ:
|
|
4278
|
-
transferZ:
|
|
4279
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4278
|
+
subjectZ: jn,
|
|
4279
|
+
transferZ: yu
|
|
4280
|
+
}, Symbol.toStringTag, { value: "Module" })), mu = (r) => Object.getOwnPropertySymbols(globalThis).includes(r), wu = (r, e) => {
|
|
4280
4281
|
const t = Symbol.for(r);
|
|
4281
|
-
if (!
|
|
4282
|
+
if (!mu(t)) {
|
|
4282
4283
|
const n = e();
|
|
4283
4284
|
Object.defineProperty(globalThis, t, { value: n });
|
|
4284
4285
|
}
|
|
4285
4286
|
return () => globalThis[t];
|
|
4286
|
-
},
|
|
4287
|
+
}, bu = (r) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.startsWith(r) : e instanceof Error ? e.message.startsWith(r) : typeof e != "string" ? !1 : e.startsWith(r), ar = (r) => {
|
|
4287
4288
|
var e;
|
|
4288
4289
|
return e = class extends Error {
|
|
4289
4290
|
constructor(t, n) {
|
|
@@ -4292,8 +4293,8 @@ const Wa = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nr = a.string().regex(Wa), oe = a.n
|
|
|
4292
4293
|
static sub(t) {
|
|
4293
4294
|
return ar(`${r}.${t}`);
|
|
4294
4295
|
}
|
|
4295
|
-
}, Q(e, "discriminator", "FreighterError"), Q(e, "TYPE", r), Q(e, "matches",
|
|
4296
|
-
},
|
|
4296
|
+
}, Q(e, "discriminator", "FreighterError"), Q(e, "TYPE", r), Q(e, "matches", bu(r)), e;
|
|
4297
|
+
}, vu = (r) => {
|
|
4297
4298
|
if (r == null || typeof r != "object") return !1;
|
|
4298
4299
|
const e = r;
|
|
4299
4300
|
if (e.discriminator !== "FreighterError") return !1;
|
|
@@ -4303,7 +4304,7 @@ const Wa = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nr = a.string().regex(Wa), oe = a.n
|
|
|
4303
4304
|
);
|
|
4304
4305
|
return !0;
|
|
4305
4306
|
}, ce = "unknown", Tr = "nil";
|
|
4306
|
-
class
|
|
4307
|
+
class $u {
|
|
4307
4308
|
constructor() {
|
|
4308
4309
|
Q(this, "providers", []);
|
|
4309
4310
|
}
|
|
@@ -4312,7 +4313,7 @@ class vu {
|
|
|
4312
4313
|
}
|
|
4313
4314
|
encode(e) {
|
|
4314
4315
|
if (e == null) return { type: Tr, data: "" };
|
|
4315
|
-
if (
|
|
4316
|
+
if (vu(e))
|
|
4316
4317
|
for (const t of this.providers) {
|
|
4317
4318
|
const n = t.encode(e);
|
|
4318
4319
|
if (n != null) return n;
|
|
@@ -4335,13 +4336,13 @@ class vu {
|
|
|
4335
4336
|
return new Sr(e.data);
|
|
4336
4337
|
}
|
|
4337
4338
|
}
|
|
4338
|
-
|
|
4339
|
+
wu("synnax-error-registry", () => new $u());
|
|
4339
4340
|
class Sr extends ar("unknown") {
|
|
4340
4341
|
}
|
|
4341
4342
|
a.object({ type: a.string(), data: a.string() });
|
|
4342
|
-
class
|
|
4343
|
+
class xl extends ar("canceled") {
|
|
4343
4344
|
}
|
|
4344
|
-
const
|
|
4345
|
+
const Ol = (r) => r ? -1 : 1;
|
|
4345
4346
|
se.object({
|
|
4346
4347
|
jsonrpc: se.string(),
|
|
4347
4348
|
id: se.number().optional(),
|
|
@@ -4349,9 +4350,9 @@ se.object({
|
|
|
4349
4350
|
params: se.unknown().optional(),
|
|
4350
4351
|
result: se.unknown().optional()
|
|
4351
4352
|
});
|
|
4352
|
-
const
|
|
4353
|
+
const Lt = a.string().regex(/^\d+\.\d+\.\d+$/), Re = (r, e, t = {}) => {
|
|
4353
4354
|
t.checkMajor ?? (t.checkMajor = !0), t.checkMinor ?? (t.checkMinor = !0), t.checkPatch ?? (t.checkPatch = !0);
|
|
4354
|
-
const n =
|
|
4355
|
+
const n = Lt.parse(r), s = Lt.parse(e), [i, o, u] = n.split(".").map(Number), [h, f, g] = s.split(".").map(Number);
|
|
4355
4356
|
if (t.checkMajor) {
|
|
4356
4357
|
if (i < h) return Ye;
|
|
4357
4358
|
if (i > h) return Ze;
|
|
@@ -4365,7 +4366,7 @@ const Ct = a.string().regex(/^\d+\.\d+\.\d+$/), Re = (r, e, t = {}) => {
|
|
|
4365
4366
|
if (u > g) return Ze;
|
|
4366
4367
|
}
|
|
4367
4368
|
return ae;
|
|
4368
|
-
},
|
|
4369
|
+
}, xu = (r, e, t = {}) => cn(Re(r, e, t)), Pn = (r, e, t = {}) => hn(Re(r, e, t)), Ou = (r, e, t = {}) => ln(Re(r, e, t)), Tu = ({
|
|
4369
4370
|
name: r,
|
|
4370
4371
|
migrate: e
|
|
4371
4372
|
}) => (t) => {
|
|
@@ -4375,7 +4376,7 @@ const Ct = a.string().regex(/^\d+\.\d+\.\d+$/), Re = (r, e, t = {}) => {
|
|
|
4375
4376
|
} catch (n) {
|
|
4376
4377
|
throw console.log(`${r} failed to migrate from ${t.version}`), console.error(n), n;
|
|
4377
4378
|
}
|
|
4378
|
-
},
|
|
4379
|
+
}, Su = ({
|
|
4379
4380
|
name: r,
|
|
4380
4381
|
migrations: e,
|
|
4381
4382
|
targetSchema: t,
|
|
@@ -4401,7 +4402,7 @@ const Ct = a.string().regex(/^\d+\.\d+\.\d+$/), Re = (r, e, t = {}) => {
|
|
|
4401
4402
|
let u = !1;
|
|
4402
4403
|
const h = (f) => {
|
|
4403
4404
|
try {
|
|
4404
|
-
if (o === 0 ||
|
|
4405
|
+
if (o === 0 || Pn(f.version, i))
|
|
4405
4406
|
return console.log(u ? `${r} ${f.version} now up to date` : `${r} version ${f.version} is up to date with target version ${s.version}`), f;
|
|
4406
4407
|
const g = f.version, d = e[g], B = d(f);
|
|
4407
4408
|
return u = !0, h(B);
|
|
@@ -4427,16 +4428,16 @@ const Ct = a.string().regex(/^\d+\.\d+\.\d+$/), Re = (r, e, t = {}) => {
|
|
|
4427
4428
|
return console.log(`${r} failed to parse final result. Exiting with default`), console.error(g), s;
|
|
4428
4429
|
}
|
|
4429
4430
|
};
|
|
4430
|
-
},
|
|
4431
|
+
}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4431
4432
|
__proto__: null,
|
|
4432
4433
|
compareSemVer: Re,
|
|
4433
|
-
createMigration:
|
|
4434
|
-
migrator:
|
|
4435
|
-
semVerNewer:
|
|
4436
|
-
semVerOlder:
|
|
4437
|
-
semVerZ:
|
|
4438
|
-
versionsEqual:
|
|
4439
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4434
|
+
createMigration: Tu,
|
|
4435
|
+
migrator: Su,
|
|
4436
|
+
semVerNewer: Pn,
|
|
4437
|
+
semVerOlder: Ou,
|
|
4438
|
+
semVerZ: Lt,
|
|
4439
|
+
versionsEqual: xu
|
|
4440
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = ["standard", "scientific", "engineering"], Iu = a.enum(zn), Nu = (r, e, t) => {
|
|
4440
4441
|
if (Number.isNaN(r)) return "NaN";
|
|
4441
4442
|
if (r === 1 / 0) return "∞";
|
|
4442
4443
|
if (r === -1 / 0) return "-∞";
|
|
@@ -4445,18 +4446,18 @@ const Ct = a.string().regex(/^\d+\.\d+\.\d+$/), Re = (r, e, t = {}) => {
|
|
|
4445
4446
|
return e === 0 ? "0ᴇ0" : `0.${"0".repeat(e)}ᴇ0`;
|
|
4446
4447
|
let n;
|
|
4447
4448
|
return t === "scientific" ? n = Math.floor(Math.log10(Math.abs(r))) : n = Math.floor(Math.log10(Math.abs(r)) / 3) * 3, `${(r / 10 ** n).toFixed(e)}ᴇ${n}`;
|
|
4448
|
-
},
|
|
4449
|
+
}, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4449
4450
|
__proto__: null,
|
|
4450
|
-
NOTATIONS:
|
|
4451
|
-
notationZ:
|
|
4452
|
-
stringifyNumber:
|
|
4453
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4451
|
+
NOTATIONS: zn,
|
|
4452
|
+
notationZ: Iu,
|
|
4453
|
+
stringifyNumber: Nu
|
|
4454
|
+
}, Symbol.toStringTag, { value: "Module" })), Il = (r) => {
|
|
4454
4455
|
if (r === void 0 || typeof r == "string" || typeof r == "number")
|
|
4455
4456
|
return r;
|
|
4456
4457
|
if (r.toString === void 0) throw new Error("invalid renderer");
|
|
4457
4458
|
return r.toString();
|
|
4458
|
-
},
|
|
4459
|
-
var
|
|
4459
|
+
}, Nl = (r) => Array.isArray(r) ? [...r] : typeof r == "object" && r !== null ? { ...r } : r, Uu = new Error("request for lock canceled");
|
|
4460
|
+
var Bu = function(r, e, t, n) {
|
|
4460
4461
|
function s(i) {
|
|
4461
4462
|
return i instanceof t ? i : new t(function(o) {
|
|
4462
4463
|
o(i);
|
|
@@ -4483,20 +4484,20 @@ var Uu = function(r, e, t, n) {
|
|
|
4483
4484
|
f((n = n.apply(r, e || [])).next());
|
|
4484
4485
|
});
|
|
4485
4486
|
};
|
|
4486
|
-
class
|
|
4487
|
-
constructor(e, t =
|
|
4487
|
+
class Eu {
|
|
4488
|
+
constructor(e, t = Uu) {
|
|
4488
4489
|
this._value = e, this._cancelError = t, this._queue = [], this._weightedWaiters = [];
|
|
4489
4490
|
}
|
|
4490
4491
|
acquire(e = 1, t = 0) {
|
|
4491
4492
|
if (e <= 0)
|
|
4492
4493
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
4493
4494
|
return new Promise((n, s) => {
|
|
4494
|
-
const i = { resolve: n, reject: s, weight: e, priority: t }, o =
|
|
4495
|
+
const i = { resolve: n, reject: s, weight: e, priority: t }, o = Fn(this._queue, (u) => t <= u.priority);
|
|
4495
4496
|
o === -1 && e <= this._value ? this._dispatchItem(i) : this._queue.splice(o + 1, 0, i);
|
|
4496
4497
|
});
|
|
4497
4498
|
}
|
|
4498
4499
|
runExclusive(e) {
|
|
4499
|
-
return
|
|
4500
|
+
return Bu(this, arguments, void 0, function* (t, n = 1, s = 0) {
|
|
4500
4501
|
const [i, o] = yield this.acquire(n, s);
|
|
4501
4502
|
try {
|
|
4502
4503
|
return yield t(i);
|
|
@@ -4509,7 +4510,7 @@ class Bu {
|
|
|
4509
4510
|
if (e <= 0)
|
|
4510
4511
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
4511
4512
|
return this._couldLockImmediately(e, t) ? Promise.resolve() : new Promise((n) => {
|
|
4512
|
-
this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []),
|
|
4513
|
+
this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), Au(this._weightedWaiters[e - 1], { resolve: n, priority: t });
|
|
4513
4514
|
});
|
|
4514
4515
|
}
|
|
4515
4516
|
isLocked() {
|
|
@@ -4564,17 +4565,17 @@ class Bu {
|
|
|
4564
4565
|
return (this._queue.length === 0 || this._queue[0].priority < t) && e <= this._value;
|
|
4565
4566
|
}
|
|
4566
4567
|
}
|
|
4567
|
-
function
|
|
4568
|
-
const t =
|
|
4568
|
+
function Au(r, e) {
|
|
4569
|
+
const t = Fn(r, (n) => e.priority <= n.priority);
|
|
4569
4570
|
r.splice(t + 1, 0, e);
|
|
4570
4571
|
}
|
|
4571
|
-
function
|
|
4572
|
+
function Fn(r, e) {
|
|
4572
4573
|
for (let t = r.length - 1; t >= 0; t--)
|
|
4573
4574
|
if (e(r[t]))
|
|
4574
4575
|
return t;
|
|
4575
4576
|
return -1;
|
|
4576
4577
|
}
|
|
4577
|
-
var
|
|
4578
|
+
var Mu = function(r, e, t, n) {
|
|
4578
4579
|
function s(i) {
|
|
4579
4580
|
return i instanceof t ? i : new t(function(o) {
|
|
4580
4581
|
o(i);
|
|
@@ -4601,12 +4602,12 @@ var Au = function(r, e, t, n) {
|
|
|
4601
4602
|
f((n = n.apply(r, e || [])).next());
|
|
4602
4603
|
});
|
|
4603
4604
|
};
|
|
4604
|
-
class
|
|
4605
|
+
class Cu {
|
|
4605
4606
|
constructor(e) {
|
|
4606
|
-
this._semaphore = new
|
|
4607
|
+
this._semaphore = new Eu(1, e);
|
|
4607
4608
|
}
|
|
4608
4609
|
acquire() {
|
|
4609
|
-
return
|
|
4610
|
+
return Mu(this, arguments, void 0, function* (e = 0) {
|
|
4610
4611
|
const [, t] = yield this._semaphore.acquire(1, e);
|
|
4611
4612
|
return t;
|
|
4612
4613
|
});
|
|
@@ -4627,20 +4628,20 @@ class Mu {
|
|
|
4627
4628
|
return this._semaphore.cancel();
|
|
4628
4629
|
}
|
|
4629
4630
|
}
|
|
4630
|
-
class
|
|
4631
|
+
class at extends Cu {
|
|
4631
4632
|
static new(e) {
|
|
4632
|
-
return new
|
|
4633
|
+
return new at(e);
|
|
4633
4634
|
}
|
|
4634
4635
|
constructor(e) {
|
|
4635
4636
|
super(), Object.assign(this, e);
|
|
4636
4637
|
}
|
|
4637
4638
|
}
|
|
4638
|
-
const
|
|
4639
|
+
const Lu = (r) => new at(r), Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4639
4640
|
__proto__: null,
|
|
4640
|
-
mutex:
|
|
4641
|
-
newMutex:
|
|
4641
|
+
mutex: at,
|
|
4642
|
+
newMutex: Lu
|
|
4642
4643
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4643
|
-
class
|
|
4644
|
+
class Ru {
|
|
4644
4645
|
constructor(e = "") {
|
|
4645
4646
|
je(this, "rows", []);
|
|
4646
4647
|
je(this, "columns", []);
|
|
@@ -4669,78 +4670,78 @@ class Lu {
|
|
|
4669
4670
|
};
|
|
4670
4671
|
}
|
|
4671
4672
|
}
|
|
4672
|
-
const
|
|
4673
|
+
const ju = (r, e) => Object.entries(e).forEach(
|
|
4673
4674
|
([t, n]) => n != null && r.style.setProperty(t, `${n}`)
|
|
4674
|
-
),
|
|
4675
|
+
), ku = (r, e) => Array.from(r.style).forEach((t) => {
|
|
4675
4676
|
t.startsWith(e) && r.style.removeProperty(t);
|
|
4676
|
-
}),
|
|
4677
|
+
}), Du = (r) => {
|
|
4677
4678
|
const e = Jr(r);
|
|
4678
|
-
return e.visible = (t) => e.M(t ? "visible" : "hidden"), e.expanded = (t) => e.M(t ? "expanded" : "collapsed"), e.loc = (t) => e.M(
|
|
4679
|
+
return e.visible = (t) => e.M(t ? "visible" : "hidden"), e.expanded = (t) => e.M(t ? "expanded" : "collapsed"), e.loc = (t) => e.M(_s.construct(t)), e.disabled = (t) => t === !0 && e.M("disabled"), e.align = (t) => e.M(t), e.dir = (t) => t != null && e.M(xs.construct(t)), e.size = (t) => typeof t == "string" && e.M(t), e.sharp = (t) => t !== !1 && e.M("sharp"), e.rounded = (t) => t !== !1 && e.M("rounded"), e.bordered = (t) => typeof t == "boolean" ? t && e.M("bordered") : t != null ? e.M(`bordered-${t.toString()}`) : e.M("bordered"), e.selected = (t) => t && e.M("selected"), e.altColor = (t) => t && e.M("alt-color"), e.editable = (t) => t && e.M("editable"), e.noSelect = e.M("no-select"), e.noWrap = (t) => t && e.M("no-wrap"), e.applyVars = ju, e.removeVars = ku, e.newGridBuilder = (t) => new Ru(t), e.dropRegion = (t) => t && e.B("haul-drop-region"), e.px = (t) => `${t}px`, e.inheritDims = (t = !0) => t && e.M("inherit-dims"), e.shade = (t) => t != null && e.M(`shade-${t}`), e.shadeVar = (t) => {
|
|
4679
4680
|
if (t != null)
|
|
4680
4681
|
return `var(--${r}-gray-l${t})`;
|
|
4681
4682
|
}, e.levelSizeVar = (t) => `var(--${r}-${t}-size)`, e;
|
|
4682
|
-
},
|
|
4683
|
+
}, Bl = Du("pluto");
|
|
4683
4684
|
export {
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4685
|
+
Wu as $,
|
|
4686
|
+
_u as A,
|
|
4687
|
+
Jt as B,
|
|
4688
|
+
Bl as C,
|
|
4689
|
+
vl as D,
|
|
4690
|
+
Si as E,
|
|
4691
|
+
tl as F,
|
|
4692
|
+
Il as G,
|
|
4692
4693
|
Fu as H,
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4694
|
+
al as I,
|
|
4695
|
+
qu as J,
|
|
4696
|
+
_s as K,
|
|
4697
|
+
rl as L,
|
|
4698
|
+
Ni as M,
|
|
4699
|
+
re as N,
|
|
4699
4700
|
O,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4701
|
+
Ls as P,
|
|
4702
|
+
Nl as Q,
|
|
4703
|
+
el as R,
|
|
4704
|
+
ml as S,
|
|
4704
4705
|
Ce as T,
|
|
4705
4706
|
w as U,
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4707
|
+
Ol as V,
|
|
4708
|
+
sl as W,
|
|
4709
|
+
dr as X,
|
|
4710
|
+
ra as Y,
|
|
4711
|
+
Sl as Z,
|
|
4712
|
+
Vu as _,
|
|
4713
|
+
gl as a,
|
|
4713
4714
|
Ke as a0,
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4715
|
+
bl as a1,
|
|
4716
|
+
Ul as a2,
|
|
4717
|
+
zi as a3,
|
|
4718
|
+
$l as a4,
|
|
4719
|
+
Tl as a5,
|
|
4720
|
+
wl as a6,
|
|
4720
4721
|
A as a7,
|
|
4721
|
-
|
|
4722
|
+
Qu as b,
|
|
4722
4723
|
wn as c,
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4724
|
+
yl as d,
|
|
4725
|
+
ks as e,
|
|
4726
|
+
cl as f,
|
|
4727
|
+
xs as g,
|
|
4728
|
+
fl as h,
|
|
4729
|
+
Ft as i,
|
|
4730
|
+
Ds as j,
|
|
4731
|
+
S as k,
|
|
4732
|
+
F as l,
|
|
4732
4733
|
x as m,
|
|
4733
4734
|
Jr as n,
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4735
|
+
rr as o,
|
|
4736
|
+
dl as p,
|
|
4737
|
+
G as q,
|
|
4738
|
+
H as r,
|
|
4739
|
+
Ti as s,
|
|
4739
4740
|
J as t,
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4741
|
+
aa as u,
|
|
4742
|
+
Yu as v,
|
|
4743
|
+
js as w,
|
|
4744
|
+
Yt as x,
|
|
4745
|
+
pl as y,
|
|
4746
|
+
Ki as z
|
|
4746
4747
|
};
|