@synnaxlabs/pluto 0.30.0 → 0.32.0
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/{Animated-DZSBu1oS.cjs → Animated-C_WGrQwR.cjs} +1 -1
- package/dist/{Animated-CADTcu8B.js → Animated-NyYe8Svx.js} +2 -2
- package/dist/Item-CcXMlZIY.js +110 -0
- package/dist/Item-DGKnKb6c.cjs +1 -0
- package/dist/Keyboard-87LPq07J.cjs +1 -0
- package/dist/Keyboard-i5fqTDMP.js +25 -0
- package/dist/LinePlot-BcVyfdeK.cjs +66 -0
- package/dist/{LinePlot-CUYMMNNX.js → LinePlot-CCzgiKg5.js} +2094 -2090
- package/dist/{Link-BUlcFhdF.cjs → Link-B83uKMKM.cjs} +1 -1
- package/dist/{Link-CurnG57L.js → Link-DlC5z0Wm.js} +1 -1
- package/dist/{List-d1KJe77_.cjs → List-B3WCj8GQ.cjs} +1 -1
- package/dist/List-BjRQA8wb.js +22 -0
- package/dist/Pack-BrxYNh7B.js +137 -0
- package/dist/Pack-C_SrDA3a.cjs +1 -0
- package/dist/Text-MNWCdS6X.js +32 -0
- package/dist/Text-XcCNQVZj.cjs +1 -0
- package/dist/{Toggle-BGyo9v6o.js → Toggle-C1k6Tnpo.js} +7802 -7745
- package/dist/Toggle-CIXrEiVA.cjs +143 -0
- package/dist/{Video-JYqTPKDk.cjs → Video-DR3tjTFZ.cjs} +1 -1
- package/dist/{Video-Ciw4h8eF.js → Video-DdIv_1Yq.js} +1 -1
- package/dist/{aggregator-Dgqx_W5g.js → aggregator-f5OfPmNc.js} +5052 -4322
- package/dist/aggregator-q0CY7-QS.cjs +67 -0
- 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-CiSR0WsA.js → css-B8RwzK24.js} +96 -96
- package/dist/css-LxkguM_s.cjs +1 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/external-BI9DOL9G.js +322 -0
- package/dist/{external--tP96O6n.cjs → external-BUjAebk2.cjs} +1 -1
- package/dist/{external-B6F5s5aQ.js → external-BryXmBqR.js} +6 -6
- package/dist/{external-Co2r9DLy.cjs → external-C2Ri5xWS.cjs} +1 -1
- package/dist/{external-5teQpcGD.cjs → external-CDChKvhl.cjs} +1 -1
- package/dist/{external-Dds3S09i.js → external-CDGv7k3p.js} +21 -21
- package/dist/external-CIvyZ-Hc.js +13 -0
- package/dist/{external-CNl6YOd-.cjs → external-CN-OhewX.cjs} +1 -1
- package/dist/{external-BjZo74zS.js → external-CNrnZ1L5.js} +74 -74
- package/dist/external-CSyZPKK4.cjs +1 -0
- package/dist/external-CbjdO9a0.js +353 -0
- package/dist/{external-Clb-pmsS.cjs → external-Cl_evqYY.cjs} +1 -1
- package/dist/{external-CulLnj8B.js → external-CmbBTupJ.js} +20 -20
- package/dist/{external-CTth9RPW.cjs → external-DAQPXD3z.cjs} +1 -1
- package/dist/external-DE4i3A2z.cjs +1 -0
- package/dist/external-DLa89w3J.cjs +1 -0
- package/dist/{external-B-qyhpkX.js → external-DfIxCAg2.js} +2 -2
- package/dist/{external-B8UhV4HB.cjs → external-DjE3je-g.cjs} +1 -1
- package/dist/external-DmJZ_zIB.js +20 -0
- package/dist/external-FeE2ijEU.js +76 -0
- package/dist/external-cIvhYaqB.cjs +1 -0
- package/dist/{external-C5nr86pR.cjs → external-i13duWIn.cjs} +1 -1
- package/dist/{external-C2rLSz0G.js → external-kSaQF2Vi.js} +128 -128
- package/dist/{external-B_mVlkww.js → external-n_t7VfzS.js} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5417 -4264
- 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/src/align/Pack.d.ts +1 -2
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +1 -0
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +3 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +1 -1
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +1 -0
- package/dist/src/button/Toggle.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +2 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +1 -0
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +5 -0
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts +3 -2
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +3 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +3 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts +11 -22
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts +7 -3
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +25 -2
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +21 -1
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +6 -1
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/select/Alignment.d.ts +12 -0
- package/dist/src/select/Alignment.d.ts.map +1 -0
- package/dist/src/select/Direction.d.ts.map +1 -1
- package/dist/src/select/external.d.ts +1 -0
- package/dist/src/select/external.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts +4 -2
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +129 -7
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +7 -1
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts +1 -1
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts +2 -2
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts +3 -2
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +3 -4
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +17 -3
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/util/rootElement.d.ts +1 -1
- package/dist/src/util/rootElement.d.ts.map +1 -1
- package/dist/src/vis/axis/canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +3 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +9 -0
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/grid/grid.d.ts +115 -0
- package/dist/src/vis/grid/grid.d.ts.map +1 -0
- package/dist/src/vis/grid/grid.spec.d.ts +2 -0
- package/dist/src/vis/grid/grid.spec.d.ts.map +1 -0
- package/dist/src/vis/grid/index.d.ts +2 -0
- package/dist/src/vis/grid/index.d.ts.map +1 -0
- package/dist/src/vis/legend/Simple.d.ts +1 -0
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/light/use.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +3 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +4 -4
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +16 -10
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +7 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Labeled.d.ts +2 -0
- package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts +5 -2
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +139 -35
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +42 -3
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/style.css +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-C59nowP2.cjs → units-CMXTKjnN.cjs} +1 -1
- package/dist/{units-BAK8qzqy.js → units-CnA_yWxx.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +7 -7
- package/dist/Keyboard-Bc_uxMTG.js +0 -13
- package/dist/Keyboard-BvHL3Wf2.cjs +0 -1
- package/dist/LinePlot-DUHbDcz3.cjs +0 -66
- package/dist/List-DD-MkX0Z.js +0 -22
- package/dist/Pack-BgzS2BHo.cjs +0 -1
- package/dist/Pack-l3j3YWpE.js +0 -134
- package/dist/Toggle-DWKDszrQ.cjs +0 -143
- package/dist/aggregator-C7n8uv-R.cjs +0 -57
- package/dist/css-Cc1vb61S.cjs +0 -1
- package/dist/external-1ZU7gP__.cjs +0 -1
- package/dist/external-B-gkanM-.js +0 -271
- package/dist/external-B0zpdR1h.js +0 -74
- package/dist/external-C4beOlX2.cjs +0 -1
- package/dist/external-CW9xTNHG.js +0 -353
- package/dist/external-Dh0igrIc.js +0 -97
- package/dist/external-E30UptW0.js +0 -13
- package/dist/external-FuH8ekoj.cjs +0 -1
- package/dist/external-HLgDxDKN.cjs +0 -1
- package/dist/src/vis/lineplot/aether/grid.d.ts +0 -40
- package/dist/src/vis/lineplot/aether/grid.d.ts.map +0 -1
package/dist/align.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Cl_evqYY.cjs");exports.Align=e.external;
|
package/dist/align.js
CHANGED
package/dist/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-C2Ri5xWS.cjs");exports.Button=e.external;
|
package/dist/button.js
CHANGED
package/dist/color.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DjE3je-g.cjs");exports.Color=e.external;
|
package/dist/color.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var lt = Object.defineProperty;
|
|
2
2
|
var pt = (t, e, r) => e in t ? lt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
3
|
+
var z = (t, e, r) => pt(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { z as i } from "zod";
|
|
5
5
|
const G = i.tuple([i.number(), i.number()]);
|
|
6
6
|
i.tuple([i.bigint(), i.bigint()]);
|
|
@@ -11,13 +11,17 @@ const ge = i.object({ width: i.number(), height: i.number() }), ht = i.object({
|
|
|
11
11
|
i.enum(yt);
|
|
12
12
|
const dt = ["start", "center", "end"], gt = ["signedWidth", "signedHeight"];
|
|
13
13
|
i.enum(gt);
|
|
14
|
-
const R = i.object({ x: i.number(), y: i.number() }), Ce = i.object({ clientX: i.number(), clientY: i.number() }), be = ["x", "y"], xe = i.enum(be), Re = ["top", "right", "bottom", "left"], bt = i.enum(Re), J = ["left", "right"], fe = i.enum(J), K = ["top", "bottom"], me = i.enum(K), we = ["center"], Ae = i.enum(we), xt = [...Re, ...we], $e = i.enum(xt)
|
|
14
|
+
const R = i.object({ x: i.number(), y: i.number() }), Ce = i.object({ clientX: i.number(), clientY: i.number() }), be = ["x", "y"], xe = i.enum(be), Re = ["top", "right", "bottom", "left"], bt = i.enum(Re), J = ["left", "right"], fe = i.enum(J), K = ["top", "bottom"], me = i.enum(K), we = ["center"], Ae = i.enum(we), xt = [...Re, ...we], $e = i.enum(xt);
|
|
15
|
+
i.enum(dt);
|
|
16
|
+
const ft = ["first", "last"];
|
|
17
|
+
i.enum(ft);
|
|
18
|
+
const _e = i.object({ lower: i.number(), upper: i.number() }), mt = i.object({ lower: i.bigint(), upper: i.bigint() });
|
|
15
19
|
i.union([_e, G]);
|
|
16
20
|
i.union([mt, G]);
|
|
17
21
|
const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve = (t, e) => typeof t == "bigint" ? t - BigInt(e) : t - Number(e), Le = (t, e) => typeof t == "bigint" ? t + BigInt(e) : t + Number(e), vt = (t, e, r = 1e-4) => Math.abs(t - e) < r, Mt = (t) => {
|
|
18
22
|
const e = Math.pow(10, Math.floor(Math.log10(t)));
|
|
19
23
|
return Math.round(t / e) * e;
|
|
20
|
-
},
|
|
24
|
+
}, Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
25
|
__proto__: null,
|
|
22
26
|
add: Le,
|
|
23
27
|
closeTo: vt,
|
|
@@ -32,7 +36,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
32
36
|
[r.lower, r.upper] = t;
|
|
33
37
|
} else return oe(t);
|
|
34
38
|
return oe(r);
|
|
35
|
-
}, Ot = Object.freeze({ lower: 0, upper: 0 }),
|
|
39
|
+
}, Ot = Object.freeze({ lower: 0, upper: 0 }), Tt = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), jt = Object.freeze({ lower: 0, upper: 1 }), St = Object.freeze({ lower: -1, upper: 1 }), Et = (t, e) => {
|
|
36
40
|
if (t == null && e == null) return !0;
|
|
37
41
|
if (t == null || e == null) return !1;
|
|
38
42
|
const r = c(t), n = c(e);
|
|
@@ -55,10 +59,10 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
55
59
|
}, At = (t) => {
|
|
56
60
|
const e = c(t);
|
|
57
61
|
return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
|
|
58
|
-
},
|
|
62
|
+
}, zt = (t) => {
|
|
59
63
|
const e = w(t);
|
|
60
64
|
return typeof e == "number" ? e === 0 : e === 0n;
|
|
61
|
-
},
|
|
65
|
+
}, Nt = (t) => {
|
|
62
66
|
const e = c(t);
|
|
63
67
|
return typeof e.lower == "bigint" ? !0 : Number.isFinite(e.lower) && Number.isFinite(e.upper);
|
|
64
68
|
}, Ct = (t) => ({
|
|
@@ -110,11 +114,11 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
110
114
|
}, Pt = (t, e) => {
|
|
111
115
|
const r = c(t), n = c(e);
|
|
112
116
|
return r.upper <= n.lower || r.lower >= n.upper ? 0 : r.lower >= n.lower && r.upper <= n.upper ? 1 : r.lower <= n.lower && r.upper >= n.upper ? w(n) / w(r) : r.lower <= n.lower ? (r.upper - n.lower) / w(r) : (n.upper - r.lower) / w(r);
|
|
113
|
-
},
|
|
117
|
+
}, jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
114
118
|
__proto__: null,
|
|
115
119
|
CLIP: St,
|
|
116
|
-
DECIMAL:
|
|
117
|
-
INFINITE:
|
|
120
|
+
DECIMAL: jt,
|
|
121
|
+
INFINITE: Tt,
|
|
118
122
|
ZERO: Ot,
|
|
119
123
|
bounds: _e,
|
|
120
124
|
buildInsertionPlan: Pe,
|
|
@@ -125,7 +129,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
125
129
|
exposure: Pt,
|
|
126
130
|
findInsertPosition: se,
|
|
127
131
|
insert: Lt,
|
|
128
|
-
isFinite:
|
|
132
|
+
isFinite: Nt,
|
|
129
133
|
isZero: At,
|
|
130
134
|
linspace: _t,
|
|
131
135
|
makeValid: oe,
|
|
@@ -133,21 +137,21 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
133
137
|
min: Rt,
|
|
134
138
|
overlapsWith: Bt,
|
|
135
139
|
span: w,
|
|
136
|
-
spanIsZero:
|
|
137
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
140
|
+
spanIsZero: zt
|
|
141
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = wt, j = (t) => be.includes(t) ? t : K.includes(t) ? "y" : "x", Zt = (t) => j(t) === "x" ? "y" : "x", Ht = (t) => j(t) === "x" ? "width" : "height", Yt = (t) => j(t) === "x" ? "left" : "top", Ft = (t) => Ze.safeParse(t).success, Wt = (t) => j(t) === "x" ? "signedWidth" : "signedHeight", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
138
142
|
__proto__: null,
|
|
139
|
-
construct:
|
|
140
|
-
crude:
|
|
141
|
-
dimension:
|
|
143
|
+
construct: j,
|
|
144
|
+
crude: Ze,
|
|
145
|
+
dimension: Ht,
|
|
142
146
|
direction: xe,
|
|
143
147
|
isDirection: Ft,
|
|
144
148
|
location: Yt,
|
|
145
149
|
signedDimension: Wt,
|
|
146
|
-
swap:
|
|
150
|
+
swap: Zt
|
|
147
151
|
}, Symbol.toStringTag, { value: "Module" })), kt = (t) => {
|
|
148
152
|
const e = t.replace(/_[a-z]/g, (r) => r[1].toUpperCase());
|
|
149
153
|
return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() ? e : e[0].toLowerCase() + e.slice(1);
|
|
150
|
-
},
|
|
154
|
+
}, He = (t) => {
|
|
151
155
|
const e = (r, n = V) => {
|
|
152
156
|
if (typeof r == "string") return t(r);
|
|
153
157
|
if (Array.isArray(r)) return r.map((u) => e(u, n));
|
|
@@ -164,11 +168,11 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
164
168
|
}), o;
|
|
165
169
|
};
|
|
166
170
|
return e;
|
|
167
|
-
}, Dt =
|
|
171
|
+
}, Dt = He(kt), Vt = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, r, n) => `${r}_${n.toLowerCase()}`), qt = He(Vt), Ye = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), V = {
|
|
168
172
|
recursive: !0,
|
|
169
173
|
recursiveInArray: !0,
|
|
170
174
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
171
|
-
}, Fe = (t = V) => (t.recursive == null ? t = V : t.recursiveInArray == null && (t.recursiveInArray = !1), t), ie = (t) => t != null && Array.isArray(t), W = (t) => t != null && typeof t == "object" && !Array.isArray(t), ue = (t, e) => (e || []).some((r) => t instanceof r),
|
|
175
|
+
}, Fe = (t = V) => (t.recursive == null ? t = V : t.recursiveInArray == null && (t.recursiveInArray = !1), t), ie = (t) => t != null && Array.isArray(t), W = (t) => t != null && typeof t == "object" && !Array.isArray(t), ue = (t, e) => (e || []).some((r) => t instanceof r), Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
172
176
|
__proto__: null,
|
|
173
177
|
belongToTypes: ue,
|
|
174
178
|
camelToSnake: qt,
|
|
@@ -196,7 +200,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
196
200
|
}, rr = i.object({
|
|
197
201
|
x: fe.or(Ae),
|
|
198
202
|
y: me.or(Ae)
|
|
199
|
-
}), We = i.object({ x: fe, y: me }), L = Object.freeze({ x: "left", y: "top" }), Me = Object.freeze({ x: "right", y: "top" }), Q = Object.freeze({ x: "left", y: "bottom" }), Oe = Object.freeze({ x: "right", y: "bottom" }),
|
|
203
|
+
}), We = i.object({ x: fe, y: me }), L = Object.freeze({ x: "left", y: "top" }), Me = Object.freeze({ x: "right", y: "top" }), Q = Object.freeze({ x: "left", y: "bottom" }), Oe = Object.freeze({ x: "right", y: "bottom" }), Te = Object.freeze({ x: "center", y: "center" }), Xe = Object.freeze({ x: "center", y: "top" }), ke = Object.freeze({ x: "center", y: "bottom" }), De = Object.freeze({ x: "right", y: "center" }), Ve = Object.freeze({ x: "left", y: "center" }), nr = Object.freeze([
|
|
200
204
|
Ve,
|
|
201
205
|
De,
|
|
202
206
|
Xe,
|
|
@@ -205,8 +209,8 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
205
209
|
Me,
|
|
206
210
|
Q,
|
|
207
211
|
Oe,
|
|
208
|
-
|
|
209
|
-
]),
|
|
212
|
+
Te
|
|
213
|
+
]), je = (t, e) => t.x === e.x && t.y === e.y, or = (t, e) => {
|
|
210
214
|
if (typeof e == "object") {
|
|
211
215
|
let r = !0;
|
|
212
216
|
return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
|
|
@@ -218,14 +222,14 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
218
222
|
throw new Error(
|
|
219
223
|
`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
|
|
220
224
|
);
|
|
221
|
-
const o = { ...
|
|
225
|
+
const o = { ...Te };
|
|
222
226
|
return r === "center" ? X(n) ? [o.x, o.y] = [n, r] : [o.x, o.y] = [r, n] : n === "center" ? X(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r] : X(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r], o;
|
|
223
227
|
}, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
224
228
|
__proto__: null,
|
|
225
229
|
BOTTOM_CENTER: ke,
|
|
226
230
|
BOTTOM_LEFT: Q,
|
|
227
231
|
BOTTOM_RIGHT: Oe,
|
|
228
|
-
CENTER:
|
|
232
|
+
CENTER: Te,
|
|
229
233
|
CENTER_LOCATIONS: we,
|
|
230
234
|
LEFT_CENTER: Ve,
|
|
231
235
|
RIGHT_CENTER: De,
|
|
@@ -249,7 +253,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
249
253
|
x: Ut,
|
|
250
254
|
xy: rr,
|
|
251
255
|
xyCouple: qe,
|
|
252
|
-
xyEquals:
|
|
256
|
+
xyEquals: je,
|
|
253
257
|
xyMatches: or,
|
|
254
258
|
xyToString: ir,
|
|
255
259
|
y: Gt
|
|
@@ -305,7 +309,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
305
309
|
}, ce = (t, e = 0) => {
|
|
306
310
|
const r = p(t);
|
|
307
311
|
return { x: Number(r.x.toFixed(e)), y: Number(r.y.toFixed(e)) };
|
|
308
|
-
},
|
|
312
|
+
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
309
313
|
__proto__: null,
|
|
310
314
|
INFINITY: ar,
|
|
311
315
|
NAN: cr,
|
|
@@ -329,12 +333,12 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
329
333
|
translation: dr,
|
|
330
334
|
truncate: ce,
|
|
331
335
|
xy: R
|
|
332
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
336
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = i.union([i.number(), i.string()]);
|
|
333
337
|
i.object({
|
|
334
|
-
top:
|
|
335
|
-
left:
|
|
336
|
-
width:
|
|
337
|
-
height:
|
|
338
|
+
top: Z,
|
|
339
|
+
left: Z,
|
|
340
|
+
width: Z,
|
|
341
|
+
height: Z
|
|
338
342
|
});
|
|
339
343
|
i.object({
|
|
340
344
|
left: i.number(),
|
|
@@ -372,12 +376,12 @@ const mr = i.object({
|
|
|
372
376
|
const n = l(t);
|
|
373
377
|
if (typeof e == "string") {
|
|
374
378
|
if (r == null) throw new Error("Invalid arguments for resize");
|
|
375
|
-
const o =
|
|
379
|
+
const o = j(e);
|
|
376
380
|
return l(
|
|
377
381
|
n.one,
|
|
378
382
|
void 0,
|
|
379
383
|
o === "x" ? r : O(n),
|
|
380
|
-
o === "y" ? r :
|
|
384
|
+
o === "y" ? r : T(n),
|
|
381
385
|
n.root
|
|
382
386
|
);
|
|
383
387
|
}
|
|
@@ -386,19 +390,19 @@ const mr = i.object({
|
|
|
386
390
|
const n = l(t);
|
|
387
391
|
let o = (s, u) => s < u;
|
|
388
392
|
return r && (o = (s, u) => s <= u), "one" in e ? o($(n), $(e)) && o(E(e), E(n)) && o(v(n), v(e)) && o(I(e), I(n)) : o($(n), e.x) && o(e.x, E(n)) && o(v(n), e.y) && o(e.y, I(n));
|
|
389
|
-
}, Mr = (t, e) => q(t.one, e.one) && q(t.two, e.two) &&
|
|
393
|
+
}, Mr = (t, e) => q(t.one, e.one) && q(t.two, e.two) && je(t.root, e.root), tt = (t) => ({
|
|
390
394
|
width: O(t),
|
|
391
|
-
height:
|
|
395
|
+
height: T(t)
|
|
392
396
|
}), Or = (t) => ({
|
|
393
397
|
signedWidth: ee(t),
|
|
394
398
|
signedHeight: te(t)
|
|
395
|
-
}),
|
|
399
|
+
}), Tr = (t) => ({
|
|
396
400
|
top: v(t),
|
|
397
401
|
left: $(t),
|
|
398
402
|
width: O(t),
|
|
399
|
-
height:
|
|
403
|
+
height: T(t)
|
|
400
404
|
}), Se = (t, e, r = !1) => {
|
|
401
|
-
const n =
|
|
405
|
+
const n = j(e) === "y" ? te(t) : ee(t);
|
|
402
406
|
return r ? n : Math.abs(n);
|
|
403
407
|
}, P = (t, e) => {
|
|
404
408
|
const r = l(t);
|
|
@@ -409,7 +413,7 @@ const mr = i.object({
|
|
|
409
413
|
}, B = (t, e) => {
|
|
410
414
|
const r = l(t), n = qe(r.root).includes(e) ? Math.min : Math.max;
|
|
411
415
|
return J.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
|
|
412
|
-
},
|
|
416
|
+
}, jr = (t) => t.one.x === t.two.x && t.one.y === t.two.y, O = (t) => Se(t, "x"), T = (t) => Se(t, "y"), ee = (t) => {
|
|
413
417
|
const e = l(t);
|
|
414
418
|
return e.two.x - e.one.x;
|
|
415
419
|
}, te = (t) => {
|
|
@@ -430,18 +434,18 @@ const mr = i.object({
|
|
|
430
434
|
}, D = (t) => {
|
|
431
435
|
const e = l(t);
|
|
432
436
|
return { lower: e.one.y, upper: e.two.y };
|
|
433
|
-
}, Ar = (t, e) => et(t, e),
|
|
437
|
+
}, Ar = (t, e) => et(t, e), zr = (t, e) => {
|
|
434
438
|
const r = l(t), n = J.includes(e) ? "x" : K.includes(e) ? "y" : null;
|
|
435
439
|
if (n === null) throw new Error(`Invalid location: ${Ue}`);
|
|
436
440
|
const o = e === "top" || e === "left" ? Math.min : Math.max, s = { ...r.one }, u = { ...r.two };
|
|
437
441
|
return s[n] = o(r.one[n], r.two[n]), u[n] = o(r.one[n], r.two[n]), [s, u];
|
|
438
|
-
},
|
|
439
|
-
const r = l(t), n = l(e), o = Ee(n) + (O(n) - O(r)) / 2, s = Ie(n) + (
|
|
442
|
+
}, Nr = (t, e) => {
|
|
443
|
+
const r = l(t), n = l(e), o = Ee(n) + (O(n) - O(r)) / 2, s = Ie(n) + (T(n) - T(r)) / 2;
|
|
440
444
|
return l({ x: o, y: s }, tt(r));
|
|
441
|
-
}, nt = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Cr = (t) => O(t) /
|
|
445
|
+
}, nt = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Cr = (t) => O(t) / T(t), Rr = (t, e, r) => {
|
|
442
446
|
if (typeof e == "string") {
|
|
443
447
|
if (r == null) throw new Error("Undefined amount passed into box.translate");
|
|
444
|
-
const o =
|
|
448
|
+
const o = j(e);
|
|
445
449
|
e = p(o, r);
|
|
446
450
|
}
|
|
447
451
|
const n = l(t);
|
|
@@ -455,7 +459,7 @@ const mr = i.object({
|
|
|
455
459
|
}, _r = (t, e) => {
|
|
456
460
|
const r = Math.max($(t), $(e)), n = Math.max(v(t), v(e)), o = Math.min(E(t), E(e)), s = Math.min(I(t), I(e));
|
|
457
461
|
return r > o || n > s ? Qe : l({ x: r, y: n }, { x: o, y: s }, void 0, void 0, t.root);
|
|
458
|
-
}, Lr = (t) => O(t) *
|
|
462
|
+
}, Lr = (t) => O(t) * T(t), Pr = (t, e) => {
|
|
459
463
|
const r = l(t);
|
|
460
464
|
return l(
|
|
461
465
|
ce(r.one, e),
|
|
@@ -464,15 +468,15 @@ const mr = i.object({
|
|
|
464
468
|
void 0,
|
|
465
469
|
r.root
|
|
466
470
|
);
|
|
467
|
-
},
|
|
471
|
+
}, Zr = (t, e, r, n, o, s) => {
|
|
468
472
|
const u = { x: t, y: e }, a = { x: t + r, y: e + n };
|
|
469
473
|
return o.x !== s.x && (o.x === "center" ? (u.x -= r / 2, a.x -= r / 2) : (u.x -= r, a.x -= r)), o.y !== s.y && (o.y === "center" ? (u.y -= n / 2, a.y -= n / 2) : (u.y -= n, a.y -= n)), l(u, a, void 0, void 0, s);
|
|
470
|
-
},
|
|
474
|
+
}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
475
|
__proto__: null,
|
|
472
476
|
DECIMAL: wr,
|
|
473
477
|
ZERO: Qe,
|
|
474
478
|
area: Lr,
|
|
475
|
-
areaIsZero:
|
|
479
|
+
areaIsZero: jr,
|
|
476
480
|
aspect: Cr,
|
|
477
481
|
bottom: I,
|
|
478
482
|
bottomLeft: Er,
|
|
@@ -480,20 +484,20 @@ const mr = i.object({
|
|
|
480
484
|
box: mr,
|
|
481
485
|
center: le,
|
|
482
486
|
construct: l,
|
|
483
|
-
constructWithAlternateRoot:
|
|
487
|
+
constructWithAlternateRoot: Zr,
|
|
484
488
|
contains: vr,
|
|
485
489
|
copy: et,
|
|
486
|
-
css:
|
|
490
|
+
css: Tr,
|
|
487
491
|
dim: Se,
|
|
488
492
|
dims: tt,
|
|
489
|
-
edgePoints:
|
|
493
|
+
edgePoints: zr,
|
|
490
494
|
equals: Mr,
|
|
491
|
-
height:
|
|
495
|
+
height: T,
|
|
492
496
|
intersection: _r,
|
|
493
497
|
isBox: nt,
|
|
494
498
|
left: $,
|
|
495
499
|
loc: B,
|
|
496
|
-
positionInCenter:
|
|
500
|
+
positionInCenter: Nr,
|
|
497
501
|
reRoot: Ar,
|
|
498
502
|
resize: $r,
|
|
499
503
|
right: E,
|
|
@@ -512,7 +516,7 @@ const mr = i.object({
|
|
|
512
516
|
xyLoc: P,
|
|
513
517
|
y: Ie,
|
|
514
518
|
yBounds: D
|
|
515
|
-
}, Symbol.toStringTag, { value: "Module" })), ot = i.object({ signedWidth: i.number(), signedHeight: i.number() }),
|
|
519
|
+
}, Symbol.toStringTag, { value: "Module" })), ot = i.object({ signedWidth: i.number(), signedHeight: i.number() }), Hr = i.union([ge, ot, R, G]), Yr = { width: 0, height: 0 }, Fr = { width: 1, height: 1 }, g = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, Wr = (t, e) => {
|
|
516
520
|
if (e == null) return !1;
|
|
517
521
|
const r = g(t), n = g(e);
|
|
518
522
|
return r.width === n.width && r.height === n.height;
|
|
@@ -534,13 +538,13 @@ const mr = i.object({
|
|
|
534
538
|
}), Ur = (t, e) => {
|
|
535
539
|
const r = g(t);
|
|
536
540
|
return { width: r.width * e, height: r.height * e };
|
|
537
|
-
},
|
|
541
|
+
}, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
538
542
|
__proto__: null,
|
|
539
543
|
DECIMAL: Fr,
|
|
540
544
|
ZERO: Yr,
|
|
541
545
|
construct: g,
|
|
542
546
|
couple: Dr,
|
|
543
|
-
crude:
|
|
547
|
+
crude: Hr,
|
|
544
548
|
dimensions: ge,
|
|
545
549
|
equals: Wr,
|
|
546
550
|
max: Vr,
|
|
@@ -697,7 +701,7 @@ const un = (t) => ({
|
|
|
697
701
|
const r = this.copy();
|
|
698
702
|
if (nt(e)) {
|
|
699
703
|
const n = this.currRoot;
|
|
700
|
-
return r.currRoot = e.root, n != null && !
|
|
704
|
+
return r.currRoot = e.root, n != null && !je(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(k(e)), r.y = r.y.scale(D(e)), r;
|
|
701
705
|
}
|
|
702
706
|
return r.x = r.x.scale(e.width), r.y = r.y.scale(e.height), r;
|
|
703
707
|
}
|
|
@@ -732,7 +736,7 @@ const un = (t) => ({
|
|
|
732
736
|
};
|
|
733
737
|
f(ye, "IDENTITY", new ye());
|
|
734
738
|
let an = ye;
|
|
735
|
-
const
|
|
739
|
+
const An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
736
740
|
__proto__: null,
|
|
737
741
|
Scale: he,
|
|
738
742
|
XY: an,
|
|
@@ -752,10 +756,10 @@ function cn() {
|
|
|
752
756
|
for (var t, e, r = 0, n = "", o = arguments.length; r < o; r++) (t = arguments[r]) && (e = st(t)) && (n && (n += " "), n += e);
|
|
753
757
|
return n;
|
|
754
758
|
}
|
|
755
|
-
const ln = cn,
|
|
759
|
+
const ln = cn, ze = "-", Ne = "__", H = "--", it = (t) => {
|
|
756
760
|
const e = (...r) => ln(...r);
|
|
757
|
-
return e.B = (r) => t +
|
|
758
|
-
}, pn = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, de = i.string().regex(pn),
|
|
761
|
+
return e.B = (r) => t + ze + r, e.E = (r) => t + Ne + r, e.M = (r) => t + H + r, e.BM = (r, n) => e.B(r) + H + n, e.BE = (r, n) => e.B(r) + Ne + n, e.BEM = (r, n, o) => e.BE(r, n) + H + o, e.extend = (r) => it(e.B(r)), e.var = (r) => H + t + ze + r, e;
|
|
762
|
+
}, pn = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, de = i.string().regex(pn), N = i.number().min(0).max(255), hn = i.number().min(0).max(1), Be = i.tuple([N, N, N, hn]), ut = i.tuple([N, N, N]), at = i.object({ rgba255: Be }), yn = (t) => t == null ? void 0 : new A(t).hex, dn = (t) => {
|
|
759
763
|
if (t == null) return;
|
|
760
764
|
const e = A.z.safeParse(t);
|
|
761
765
|
if (e.success) return e.data.rgbaCSS;
|
|
@@ -781,7 +785,7 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
|
|
|
781
785
|
* @property the color as an RGBA tuple, with each color value between 0 and 255,
|
|
782
786
|
* and the alpha value between 0 and 1.
|
|
783
787
|
*/
|
|
784
|
-
|
|
788
|
+
z(this, "rgba255");
|
|
785
789
|
if (typeof e == "string")
|
|
786
790
|
this.rgba255 = b.fromHex(e, r);
|
|
787
791
|
else if (Array.isArray(e)) {
|
|
@@ -915,7 +919,7 @@ const ln = cn, Ne = "-", ze = "__", Z = "--", it = (t) => {
|
|
|
915
919
|
];
|
|
916
920
|
}
|
|
917
921
|
};
|
|
918
|
-
|
|
922
|
+
z(b, "z", i.union([de, Be, ut, i.instanceof(b), at]).transform((e) => new b(e)));
|
|
919
923
|
let A = b;
|
|
920
924
|
const ct = new A([0, 0, 0, 0]), Y = (t) => Math.floor(t).toString(16).padStart(2, "0"), F = (t, e) => parseInt(t.slice(e, e + 2), 16), gn = (t) => t.startsWith("#") ? t.slice(1) : t, bn = (t) => {
|
|
921
925
|
let [e, r, n] = t;
|
|
@@ -949,7 +953,7 @@ const ct = new A([0, 0, 0, 0]), Y = (t) => Math.floor(t).toString(16).padStart(2
|
|
|
949
953
|
i.string(),
|
|
950
954
|
ut,
|
|
951
955
|
at
|
|
952
|
-
]),
|
|
956
|
+
]), zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
953
957
|
__proto__: null,
|
|
954
958
|
Color: A,
|
|
955
959
|
ZERO: ct,
|
|
@@ -960,9 +964,9 @@ const ct = new A([0, 0, 0, 0]), Y = (t) => Math.floor(t).toString(16).padStart(2
|
|
|
960
964
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
961
965
|
class mn {
|
|
962
966
|
constructor(e = "") {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
967
|
+
z(this, "rows", []);
|
|
968
|
+
z(this, "columns", []);
|
|
969
|
+
z(this, "prefix");
|
|
966
970
|
this.prefix = e;
|
|
967
971
|
}
|
|
968
972
|
row(e, r, n) {
|
|
@@ -993,50 +997,46 @@ const wn = (t, e) => Object.entries(e).forEach(
|
|
|
993
997
|
r.startsWith(e) && t.style.removeProperty(r);
|
|
994
998
|
}), vn = (t) => {
|
|
995
999
|
const e = it(t);
|
|
996
|
-
return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M(Ue.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M(Xt.construct(r)), e.size = (r) => typeof r == "string" && e.M(r), e.sharp = (r) => r !== !1 && e.M("sharp"), e.rounded = (r) => r !== !1 && e.M("rounded"), e.bordered = (r) => typeof r == "boolean" ? r && e.M("bordered") : r != null ? e.M("bordered-" + r) : e.M("bordered"), e.selected = (r) => r && e.M("selected"), e.altColor = (r) => r && e.M("
|
|
997
|
-
},
|
|
1000
|
+
return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M(Ue.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M(Xt.construct(r)), e.size = (r) => typeof r == "string" && e.M(r), e.sharp = (r) => r !== !1 && e.M("sharp"), e.rounded = (r) => r !== !1 && e.M("rounded"), e.bordered = (r) => typeof r == "boolean" ? r && e.M("bordered") : r != null ? e.M("bordered-" + r) : e.M("bordered"), e.selected = (r) => r && e.M("selected"), e.altColor = (r) => r && e.M("alt-color"), e.editable = (r) => r && e.M("editable"), e.noSelect = e.M("no-select"), e.noWrap = (r) => r && e.M("no-wrap"), e.applyVars = wn, e.removeVars = $n, e.newGridBuilder = (r) => new mn(r), e.dropRegion = (r) => r && e.B("haul-drop-region"), e.px = (r) => `${r}px`, e.inheritDims = (r = !0) => r && e.M("inherit-dims"), e.shade = (r) => e.M(`shade-${r}`), e.shadeVar = (r) => `var(--${t}-gray-l${r})`, e.levelSizeVar = (r) => `var(--${t}-${r}-size)`, e;
|
|
1001
|
+
}, Nn = vn("pluto");
|
|
998
1002
|
export {
|
|
999
|
-
|
|
1000
|
-
|
|
1003
|
+
je as $,
|
|
1004
|
+
O as A,
|
|
1001
1005
|
or as B,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
O as G,
|
|
1007
|
-
Lr as H,
|
|
1008
|
-
_r as I,
|
|
1006
|
+
Nn as C,
|
|
1007
|
+
Lr as D,
|
|
1008
|
+
_r as E,
|
|
1009
|
+
er as F,
|
|
1009
1010
|
Ue as J,
|
|
1010
|
-
er as K,
|
|
1011
1011
|
nr as M,
|
|
1012
|
-
|
|
1013
|
-
|
|
1012
|
+
jn as R,
|
|
1013
|
+
In as T,
|
|
1014
1014
|
ct as Z,
|
|
1015
|
-
|
|
1015
|
+
Sn as _,
|
|
1016
1016
|
A as a,
|
|
1017
1017
|
fn as b,
|
|
1018
1018
|
dn as c,
|
|
1019
|
-
|
|
1019
|
+
zn as d,
|
|
1020
1020
|
Dt as e,
|
|
1021
1021
|
bn as f,
|
|
1022
1022
|
Xt as g,
|
|
1023
|
-
|
|
1023
|
+
Tn as h,
|
|
1024
1024
|
cn as i,
|
|
1025
1025
|
Kr as j,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1026
|
+
An as k,
|
|
1027
|
+
Bn as l,
|
|
1028
|
+
rr as m,
|
|
1029
1029
|
it as n,
|
|
1030
1030
|
c as o,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1031
|
+
$e as p,
|
|
1032
|
+
En as q,
|
|
1033
|
+
j as r,
|
|
1034
|
+
l as s,
|
|
1035
1035
|
yn as t,
|
|
1036
|
-
|
|
1036
|
+
P as u,
|
|
1037
1037
|
qt as v,
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1038
|
+
Zr as w,
|
|
1039
|
+
L as x,
|
|
1040
|
+
Te as y,
|
|
1041
|
+
T as z
|
|
1042
1042
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Tt=Object.defineProperty;var jt=(t,e,r)=>e in t?Tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var A=(t,e,r)=>jt(t,typeof e!="symbol"?e+"":e,r);const s=require("zod"),G=s.z.tuple([s.z.number(),s.z.number()]);s.z.tuple([s.z.bigint(),s.z.bigint()]);const fe=s.z.object({width:s.z.number(),height:s.z.number()}),St=s.z.object({signedWidth:s.z.number(),signedHeight:s.z.number()}),Et=["width","height"];s.z.enum(Et);const It=["start","center","end"],Bt=["signedWidth","signedHeight"];s.z.enum(Bt);const L=s.z.object({x:s.z.number(),y:s.z.number()}),Le=s.z.object({clientX:s.z.number(),clientY:s.z.number()}),me=["x","y"],we=s.z.enum(me),Pe=["top","right","bottom","left"],At=s.z.enum(Pe),J=["left","right"],$e=s.z.enum(J),K=["top","bottom"],ze=s.z.enum(K),ve=["center"],Ce=s.z.enum(ve),Nt=[...Pe,...ve],Q=s.z.enum(Nt);s.z.enum(It);const Ct=["first","last"];s.z.enum(Ct);const He=s.z.object({lower:s.z.number(),upper:s.z.number()}),Rt=s.z.object({lower:s.z.bigint(),upper:s.z.bigint()});s.z.union([He,G]);s.z.union([Rt,G]);const _t=s.z.union([we,Q]),Lt=s.z.union([we,Q,s.z.instanceof(String)]),Me=(t,e)=>typeof t=="bigint"?t-BigInt(e):t-Number(e),Ze=(t,e)=>typeof t=="bigint"?t+BigInt(e):t+Number(e),Pt=(t,e,r=1e-4)=>Math.abs(t-e)<r,Ht=t=>{const e=Math.pow(10,Math.floor(Math.log10(t)));return Math.round(t/e)*e},Zt=Object.freeze(Object.defineProperty({__proto__:null,add:Ze,closeTo:Pt,roundToNearestMagnitude:Ht,sub:Me},Symbol.toStringTag,{value:"Module"})),l=(t,e)=>{const r={};if(typeof t=="number"||typeof t=="bigint")e!=null?(r.lower=t,r.upper=e):(r.lower=typeof t=="bigint"?0n:0,r.upper=t);else if(Array.isArray(t)){if(t.length!==2)throw new Error("bounds: expected array of length 2");[r.lower,r.upper]=t}else return ue(t);return ue(r)},Yt=Object.freeze({lower:0,upper:0}),kt=Object.freeze({lower:-1/0,upper:1/0}),Ft=Object.freeze({lower:0,upper:1}),Wt=Object.freeze({lower:-1,upper:1}),Xt=(t,e)=>{if(t==null&&e==null)return!0;if(t==null||e==null)return!1;const r=l(t),n=l(e);return(r==null?void 0:r.lower)===(n==null?void 0:n.lower)&&(r==null?void 0:r.upper)===(n==null?void 0:n.upper)},ue=t=>t.lower>t.upper?{lower:t.upper,upper:t.lower}:t,Dt=(t,e)=>{const r=l(t);return e<r.lower?r.lower:e>=r.upper?r.upper-(typeof r.upper=="number"?1:1n):e},S=(t,e)=>{const r=l(t);if(typeof e=="number"||typeof e=="bigint")return e>=r.lower&&e<r.upper;const n=l(e);return n.lower>=r.lower&&n.upper<=r.upper},Vt=(t,e)=>{const r=l(t),n=l(e);return r.lower===n.lower?!0:n.upper===r.lower||n.lower===r.upper?!1:S(r,n.upper)||S(r,n.lower)||S(n,r.upper)||S(n,r.lower)},v=t=>{const e=l(t);return e.upper-e.lower},qt=t=>{const e=l(t);return typeof e.lower=="bigint"?e.lower===0n&&e.upper===0n:e.lower===0&&e.upper===0},Ut=t=>{const e=v(t);return typeof e=="number"?e===0:e===0n},Gt=t=>{const e=l(t);return typeof e.lower=="bigint"?!0:Number.isFinite(e.lower)&&Number.isFinite(e.upper)},Jt=t=>({lower:Math.min(...t.map(e=>l(e).lower)),upper:Math.max(...t.map(e=>l(e).upper))}),Kt=t=>({lower:Math.max(...t.map(e=>l(e).lower)),upper:Math.min(...t.map(e=>l(e).upper))}),Qt=t=>{const e=l(t),r=typeof e.lower=="bigint";return Array.from({length:Number(v(t))},(n,o)=>r?e.lower+BigInt(o):e.lower+o)},ce=(t,e)=>{const r=t.map(i=>l(i)),n=r.findIndex((i,u)=>S(i,e)||e<r[u].lower);if(n===-1)return{index:t.length,position:0};const o=r[n];return S(o,e)?{index:n,position:Number(e-o.lower)}:{index:n,position:0}},ie={removeBefore:0,removeAfter:0,insertInto:0,deleteInBetween:0},Ye=(t,e)=>{const r=t.map(h=>l(h)),n=l(e);if(r.length===0)return ie;const o=ce(r,n.lower),i=ce(r,n.upper);if(o.index===t.length)return{...ie,insertInto:t.length};if(i.index===0)return{...ie,removeAfter:i.position};if(o.index===i.index)return o.position!==0&&i.position!==0?null:{removeAfter:i.position,removeBefore:o.position,insertInto:o.index,deleteInBetween:0};let u=i.index-o.index,c=o.index,y=Me(Number(v(r[o.index])),o.position);return o.position!==0?(u-=1,c+=1):y=0,{removeBefore:y,removeAfter:i.position,insertInto:c,deleteInBetween:u}},er=(t,e)=>{const r=Ye(t,e),n=t.map(i=>l(i));if(r==null)return n;const o=l(e);return o.lower=Ze(o.lower,r.removeBefore),o.upper=Me(o.upper,r.removeAfter),n.splice(r.insertInto,r.deleteInBetween,o),n},tr=(t,e)=>{const r=l(t),n=l(e);return r.upper<=n.lower||r.lower>=n.upper?0:r.lower>=n.lower&&r.upper<=n.upper?1:r.lower<=n.lower&&r.upper>=n.upper?v(n)/v(r):r.lower<=n.lower?(r.upper-n.lower)/v(r):(n.upper-r.lower)/v(r)},rr=Object.freeze(Object.defineProperty({__proto__:null,CLIP:Wt,DECIMAL:Ft,INFINITE:kt,ZERO:Yt,bounds:He,buildInsertionPlan:Ye,clamp:Dt,construct:l,contains:S,equals:Xt,exposure:tr,findInsertPosition:ce,insert:er,isFinite:Gt,isZero:qt,linspace:Qt,makeValid:ue,max:Jt,min:Kt,overlapsWith:Vt,span:v,spanIsZero:Ut},Symbol.toStringTag,{value:"Module"})),ke=_t,z=t=>me.includes(t)?t:K.includes(t)?"y":"x",nr=t=>z(t)==="x"?"y":"x",or=t=>z(t)==="x"?"width":"height",ir=t=>z(t)==="x"?"left":"top",sr=t=>ke.safeParse(t).success,ur=t=>z(t)==="x"?"signedWidth":"signedHeight",Fe=Object.freeze(Object.defineProperty({__proto__:null,construct:z,crude:ke,dimension:or,direction:we,isDirection:sr,location:ir,signedDimension:ur,swap:nr},Symbol.toStringTag,{value:"Module"})),cr=t=>{const e=t.replace(/_[a-z]/g,r=>r[1].toUpperCase());return e.length>1&&e[0]===e[0].toUpperCase()&&e[1]===e[1].toUpperCase()?e:e[0].toLowerCase()+e.slice(1)},We=t=>{const e=(r,n=V)=>{if(typeof r=="string")return t(r);if(Array.isArray(r))return r.map(u=>e(u,n));if(!F(r))return r;n=qe(n);const o={},i=r;return Object.keys(i).forEach(u=>{let c=i[u];const y=t(u);n.recursive&&(F(c)?ae(c,n.keepTypesOnRecursion)||(c=e(c,n)):n.recursiveInArray&&le(c)&&(c=[...c].map(h=>{let d=h;return F(h)?ae(d,n.keepTypesOnRecursion)||(d=e(h,n)):le(h)&&(d=e({key:h},n).key),d}))),o[y]=c}),o};return e},Xe=We(cr),lr=t=>t.replace(/([a-z0-9])([A-Z])/g,(e,r,n)=>`${r}_${n.toLowerCase()}`),De=We(lr),Ve=t=>t.length===0?t:t[0].toUpperCase()+t.slice(1),V={recursive:!0,recursiveInArray:!0,keepTypesOnRecursion:[Number,String,Uint8Array]},qe=(t=V)=>(t.recursive==null?t=V:t.recursiveInArray==null&&(t.recursiveInArray=!1),t),le=t=>t!=null&&Array.isArray(t),F=t=>t!=null&&typeof t=="object"&&!Array.isArray(t),ae=(t,e)=>(e||[]).some(r=>t instanceof r),ar=Object.freeze(Object.defineProperty({__proto__:null,belongToTypes:ae,camelToSnake:De,capitalize:Ve,defaultOptions:V,isArrayObject:le,isValidObject:F,snakeToCamel:Xe,validateOptions:qe},Symbol.toStringTag,{value:"Module"})),pr=$e,hr=ze,yr={top:"bottom",right:"left",bottom:"top",left:"right",center:"center"},dr={top:"left",right:"top",bottom:"right",left:"bottom",center:"center"},gr=Lt,T=t=>t instanceof String?t:me.includes(t)?t==="x"?"left":"top":t,Ue=t=>yr[T(t)],br=t=>dr[T(t)],P=t=>{const e=T(t);return e==="top"||e==="bottom"?"y":"x"},Ge=s.z.object({x:$e.or(Ce),y:ze.or(Ce)}),Je=s.z.object({x:$e,y:ze}),C=Object.freeze({x:"left",y:"top"}),Oe=Object.freeze({x:"right",y:"top"}),ee=Object.freeze({x:"left",y:"bottom"}),Te=Object.freeze({x:"right",y:"bottom"}),te=Object.freeze({x:"center",y:"center"}),Ke=Object.freeze({x:"center",y:"top"}),Qe=Object.freeze({x:"center",y:"bottom"}),et=Object.freeze({x:"right",y:"center"}),tt=Object.freeze({x:"left",y:"center"}),rt=Object.freeze([tt,et,Ke,Qe,C,Oe,ee,Te,te]),re=(t,e)=>t.x===e.x&&t.y===e.y,nt=(t,e)=>{if(typeof e=="object"){let r=!0;return"x"in e&&(t.x===e.x||(r=!1)),"y"in e&&(t.y===e.y||(r=!1)),r}return t.x===e||t.y===e},ot=t=>[t.x,t.y],W=t=>P(T(t))==="x",xr=t=>P(T(t))==="y",fr=t=>`${t.x}${Ve(t.y)}`,mr=(t,e)=>{let r,n;if(typeof t=="object"&&"x"in t?(r=t.x,n=t.y):(r=T(t),n=T(e??t)),P(r)===P(n)&&r!=="center"&&n!=="center")throw new Error(`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`);const o={...te};return r==="center"?W(n)?[o.x,o.y]=[n,r]:[o.x,o.y]=[r,n]:n==="center"?W(r)?[o.x,o.y]=[r,n]:[o.x,o.y]=[n,r]:W(r)?[o.x,o.y]=[r,n]:[o.x,o.y]=[n,r],o},je=Object.freeze(Object.defineProperty({__proto__:null,BOTTOM_CENTER:Qe,BOTTOM_LEFT:ee,BOTTOM_RIGHT:Te,CENTER:te,CENTER_LOCATIONS:ve,LEFT_CENTER:tt,RIGHT_CENTER:et,TOP_CENTER:Ke,TOP_LEFT:C,TOP_RIGHT:Oe,XY_LOCATIONS:rt,X_LOCATIONS:J,Y_LOCATIONS:K,construct:T,constructXY:mr,corner:Je,crude:gr,direction:P,isX:W,isY:xr,location:Q,outer:At,rotate90:br,swap:Ue,x:pr,xy:Ge,xyCouple:ot,xyEquals:re,xyMatches:nt,xyToString:fr,y:hr},Symbol.toStringTag,{value:"Module"})),pe=s.z.union([s.z.number(),L,G,fe,St,Le]),p=(t,e)=>{if(typeof t=="string"){if(e===void 0)throw new Error("The y coordinate must be given.");return t==="x"?{x:e,y:0}:{x:0,y:e}}return typeof t=="number"?{x:t,y:e??t}:Array.isArray(t)?{x:t[0],y:t[1]}:"signedWidth"in t?{x:t.signedWidth,y:t.signedHeight}:"clientX"in t?{x:t.clientX,y:t.clientY}:"width"in t?{x:t.width,y:t.height}:{x:t.x,y:t.y}},m=Object.freeze({x:0,y:0}),it=Object.freeze({x:1,y:1}),wr=Object.freeze({x:1/0,y:1/0}),$r=Object.freeze({x:NaN,y:NaN}),q=(t,e,r=0)=>{const n=p(t),o=p(e);return r===0?n.x===o.x&&n.y===o.y:Math.abs(n.x-o.x)<=r&&Math.abs(n.y-o.y)<=r},zr=t=>q(t,m),vr=(t,e,r)=>{const n=p(t),o=p(e,r);return{x:n.x*o.x,y:n.y*o.y}},st=(t,e)=>{const r=p(t);return{x:r.x+e,y:r.y}},ut=(t,e)=>{const r=p(t);return{x:r.x,y:r.y+e}},U=(t,e,r,...n)=>typeof e=="string"&&typeof r=="number"?e==="x"?st(t,r):ut(t,r):[t,e,r??m,...n].reduce((o,i)=>{const u=p(i);return{x:o.x+u.x,y:o.y+u.y}},m),Mr=(t,e,r)=>{const n=p(t);return e==="x"?{x:r,y:n.y}:{x:n.x,y:r}},Or=(t,e)=>{const r=p(t),n=p(e);return Math.sqrt((r.x-n.x)**2+(r.y-n.y)**2)},Tr=(t,e)=>{const r=p(t),n=p(e);return{x:n.x-r.x,y:n.y-r.y}},jr=t=>{const e=p(t);return Number.isNaN(e.x)||Number.isNaN(e.y)},Sr=t=>{const e=p(t);return Number.isFinite(e.x)&&Number.isFinite(e.y)},Er=t=>{const e=p(t);return[e.x,e.y]},Ir=t=>{const e=p(t);return{left:e.x,top:e.y}},he=(t,e=0)=>{const r=p(t);return{x:Number(r.x.toFixed(e)),y:Number(r.y.toFixed(e))}},Br=Object.freeze(Object.defineProperty({__proto__:null,INFINITY:wr,NAN:$r,ONE:it,ZERO:m,clientXY:Le,construct:p,couple:Er,crudeZ:pe,css:Ir,distance:Or,equals:q,isFinite:Sr,isNan:jr,isZero:zr,scale:vr,set:Mr,translate:U,translateX:st,translateY:ut,translation:Tr,truncate:he,xy:L},Symbol.toStringTag,{value:"Module"})),H=s.z.union([s.z.number(),s.z.string()]);s.z.object({top:H,left:H,width:H,height:H});s.z.object({left:s.z.number(),top:s.z.number(),right:s.z.number(),bottom:s.z.number()});const Ar=s.z.object({one:L,two:L,root:Je}),ct={one:m,two:m,root:C},Nr={one:m,two:it,root:ee},lt=(t,e)=>({one:t.one,two:t.two,root:e??t.root}),a=(t,e,r=0,n=0,o)=>{const i={one:{...m},two:{...m},root:o??C};if(typeof t=="number"){if(typeof e!="number")throw new Error("Box constructor called with invalid arguments");return i.one={x:t,y:e},i.two={x:i.one.x+r,y:i.one.y+n},i}return"one"in t&&"two"in t&&"root"in t?{...t,root:o??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(i.one={x:t.left,y:t.top},i.two={x:t.right,y:t.bottom},i):(i.one=t,e==null?i.two={x:i.one.x+r,y:i.one.y+n}:typeof e=="number"?i.two={x:i.one.x+e,y:i.one.y+r}:"width"in e?i.two={x:i.one.x+e.width,y:i.one.y+e.height}:"signedWidth"in e?i.two={x:i.one.x+e.signedWidth,y:i.one.y+e.signedHeight}:i.two=e,i))},Cr=(t,e,r)=>{const n=a(t);if(typeof e=="string"){if(r==null)throw new Error("Invalid arguments for resize");const o=z(e);return a(n.one,void 0,o==="x"?r:w(n),o==="y"?r:$(n),n.root)}return a(n.one,e,void 0,void 0,n.root)},Rr=(t,e,r=!0)=>{const n=a(t);let o=(i,u)=>i<u;return r&&(o=(i,u)=>i<=u),"one"in e?o(M(n),M(e))&&o(E(e),E(n))&&o(O(n),O(e))&&o(I(e),I(n)):o(M(n),e.x)&&o(e.x,E(n))&&o(O(n),e.y)&&o(e.y,I(n))},_r=(t,e)=>q(t.one,e.one)&&q(t.two,e.two)&&re(t.root,e.root),at=t=>({width:w(t),height:$(t)}),Lr=t=>({signedWidth:ne(t),signedHeight:oe(t)}),Pr=t=>({top:O(t),left:M(t),width:w(t),height:$(t)}),Se=(t,e,r=!1)=>{const n=z(e)==="y"?oe(t):ne(t);return r?n:Math.abs(n)},R=(t,e)=>{const r=a(t);return{x:e.x==="center"?ye(r).x:B(r,e.x),y:e.y==="center"?ye(r).y:B(r,e.y)}},B=(t,e)=>{const r=a(t),n=ot(r.root).includes(e)?Math.min:Math.max;return J.includes(e)?n(r.one.x,r.two.x):n(r.one.y,r.two.y)},Hr=t=>t.one.x===t.two.x&&t.one.y===t.two.y,w=t=>Se(t,"x"),$=t=>Se(t,"y"),ne=t=>{const e=a(t);return e.two.x-e.one.x},oe=t=>{const e=a(t);return e.two.y-e.one.y},pt=t=>R(t,C),Zr=t=>R(t,Oe),Yr=t=>R(t,ee),kr=t=>R(t,Te),E=t=>B(t,"right"),I=t=>B(t,"bottom"),M=t=>B(t,"left"),O=t=>B(t,"top"),ye=t=>U(pt(t),{x:ne(t)/2,y:oe(t)/2}),Ee=t=>{const e=a(t);return e.root.x==="left"?M(e):E(e)},Ie=t=>{const e=a(t);return e.root.y==="top"?O(e):I(e)},Fr=t=>({x:Ee(t),y:Ie(t)}),X=t=>{const e=a(t);return{lower:e.one.x,upper:e.two.x}},D=t=>{const e=a(t);return{lower:e.one.y,upper:e.two.y}},Wr=(t,e)=>lt(t,e),Xr=(t,e)=>{const r=a(t),n=J.includes(e)?"x":K.includes(e)?"y":null;if(n===null)throw new Error(`Invalid location: ${je}`);const o=e==="top"||e==="left"?Math.min:Math.max,i={...r.one},u={...r.two};return i[n]=o(r.one[n],r.two[n]),u[n]=o(r.one[n],r.two[n]),[i,u]},Dr=(t,e)=>{const r=a(t),n=a(e),o=Ee(n)+(w(n)-w(r))/2,i=Ie(n)+($(n)-$(r))/2;return a({x:o,y:i},at(r))},ht=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,Vr=t=>w(t)/$(t),qr=(t,e,r)=>{if(typeof e=="string"){if(r==null)throw new Error("Undefined amount passed into box.translate");const o=z(e);e=p(o,r)}const n=a(t);return a(U(n.one,e),U(n.two,e),void 0,void 0,n.root)},yt=(t,e)=>{const r=Math.max(M(t),M(e)),n=Math.max(O(t),O(e)),o=Math.min(E(t),E(e)),i=Math.min(I(t),I(e));return r>o||n>i?ct:a({x:r,y:n},{x:o,y:i},void 0,void 0,t.root)},dt=t=>w(t)*$(t),Ur=(t,e)=>{const r=a(t);return a(he(r.one,e),he(r.two,e),void 0,void 0,r.root)},gt=(t,e,r,n,o,i)=>{const u={x:t,y:e},c={x:t+r,y:e+n};return o.x!==i.x&&(o.x==="center"?(u.x-=r/2,c.x-=r/2):(u.x-=r,c.x-=r)),o.y!==i.y&&(o.y==="center"?(u.y-=n/2,c.y-=n/2):(u.y-=n,c.y-=n)),a(u,c,void 0,void 0,i)},Gr=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:Nr,ZERO:ct,area:dt,areaIsZero:Hr,aspect:Vr,bottom:I,bottomLeft:Yr,bottomRight:kr,box:Ar,center:ye,construct:a,constructWithAlternateRoot:gt,contains:Rr,copy:lt,css:Pr,dim:Se,dims:at,edgePoints:Xr,equals:_r,height:$,intersection:yt,isBox:ht,left:M,loc:B,positionInCenter:Dr,reRoot:Wr,resize:Cr,right:E,root:Fr,signedDims:Lr,signedHeight:oe,signedWidth:ne,top:O,topLeft:pt,topRight:Zr,translate:qr,truncate:Ur,width:w,x:Ee,xBounds:X,xyLoc:R,y:Ie,yBounds:D},Symbol.toStringTag,{value:"Module"})),bt=s.z.object({signedWidth:s.z.number(),signedHeight:s.z.number()}),Jr=s.z.union([fe,bt,L,G]),Kr={width:0,height:0},Qr={width:1,height:1},g=(t,e)=>typeof t=="number"?{width:t,height:e??t}:Array.isArray(t)?{width:t[0],height:t[1]}:"x"in t?{width:t.x,height:t.y}:"signedWidth"in t?{width:t.signedWidth,height:t.signedHeight}:{...t},en=(t,e)=>{if(e==null)return!1;const r=g(t),n=g(e);return r.width===n.width&&r.height===n.height},tn=t=>{const e=g(t);return{width:e.height,height:e.width}},rn=t=>{const e=g(t);return`0 0 ${e.width} ${e.height}`},nn=t=>{const e=g(t);return[e.width,e.height]},on=t=>({width:Math.max(...t.map(e=>g(e).width)),height:Math.max(...t.map(e=>g(e).height))}),sn=t=>({width:Math.min(...t.map(e=>g(e).width)),height:Math.min(...t.map(e=>g(e).height))}),un=(t,e)=>{const r=g(t);return{width:r.width*e,height:r.height*e}},cn=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:Qr,ZERO:Kr,construct:g,couple:nn,crude:Jr,dimensions:fe,equals:en,max:on,min:sn,scale:un,signed:bt,svgViewBox:rn,swap:tn},Symbol.toStringTag,{value:"Module"}));var ln=Object.defineProperty,an=(t,e,r)=>e in t?ln(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,f=(t,e,r)=>an(t,typeof e!="symbol"?e+"":e,r);const xt=(t,e,r)=>e!==void 0&&t<e?e:r!==void 0&&t>r?r:t,pn=s.z.object({offset:pe,scale:pe}),hn=t=>(e,r,n,o)=>r==="dimension"?[e,n]:[e,o?n-t:n+t],yn=t=>(e,r,n,o)=>[e,o?n/t:n*t],dn=t=>(e,r,n)=>{if(e===null)return[t,n];const{lower:o,upper:i}=e,{lower:u,upper:c}=t,y=i-o,h=c-u;if(r==="dimension")return[t,n*(h/y)];const d=(n-o)*(h/y)+u;return[t,d]},gn=t=>(e,r,n)=>[t,n],bn=()=>(t,e,r)=>{if(t===null)throw new Error("cannot invert without bounds");if(e==="dimension")return[t,r];const{lower:n,upper:o}=t;return[t,o-(r-n)]},xn=t=>(e,r,n)=>{const{lower:o,upper:i}=t;return n=xt(n,o,i),[e,n]},de=class _{constructor(){f(this,"ops",[]),f(this,"currBounds",null),f(this,"currType",null),f(this,"reversed",!1),this.ops=[]}static translate(e){return new _().translate(e)}static magnify(e){return new _().magnify(e)}static scale(e,r){return new _().scale(e,r)}translate(e){const r=this.new(),n=hn(e);return n.type="translate",r.ops.push(n),r}magnify(e){const r=this.new(),n=yn(e);return n.type="magnify",r.ops.push(n),r}scale(e,r){const n=l(e,r),o=this.new(),i=dn(n);return i.type="scale",o.ops.push(i),o}clamp(e,r){const n=l(e,r),o=this.new(),i=xn(n);return i.type="clamp",o.ops.push(i),o}reBound(e,r){const n=l(e,r),o=this.new(),i=gn(n);return i.type="re-bound",o.ops.push(i),o}invert(){const e=bn();e.type="invert";const r=this.new();return r.ops.push(e),r}pos(e){return this.exec("position",e)}dim(e){return this.exec("dimension",e)}new(){const e=new _;return e.ops=this.ops.slice(),e.reversed=this.reversed,e}exec(e,r){return this.currBounds=null,this.ops.reduce(([n,o],i)=>i(n,e,o,this.reversed),[null,r])[1]}reverse(){const e=this.new();e.ops.reverse();const r=[];return e.ops.forEach((n,o)=>{if(n.type==="scale"||r.some(([u,c])=>o>=u&&o<=c))return;const i=e.ops.findIndex((u,c)=>u.type==="scale"&&c>o);i!==-1&&r.push([o,i])}),r.forEach(([n,o])=>{const i=e.ops.slice(n,o);i.unshift(e.ops[o]),e.ops.splice(n,o-n+1,...i)}),e.reversed=!e.reversed,e}};f(de,"IDENTITY",new de);let ge=de;const fn=t=>({scale:{x:t.x.dim(1),y:t.y.dim(1)},offset:{x:t.x.pos(0),y:t.y.pos(0)}}),be=class x{constructor(e=new ge,r=new ge,n=null){f(this,"x"),f(this,"y"),f(this,"currRoot"),this.x=e,this.y=r,this.currRoot=n}static translate(e,r){return new x().translate(e,r)}static translateX(e){return new x().translateX(e)}static translateY(e){return new x().translateY(e)}static clamp(e){return new x().clamp(e)}static magnify(e){return new x().magnify(e)}static scale(e){return new x().scale(e)}static reBound(e){return new x().reBound(e)}translate(e,r){const n=p(e,r),o=this.copy();return o.x=this.x.translate(n.x),o.y=this.y.translate(n.y),o}translateX(e){const r=this.copy();return r.x=this.x.translate(e),r}translateY(e){const r=this.copy();return r.y=this.y.translate(e),r}magnify(e){const r=this.copy();return r.x=this.x.magnify(e.x),r.y=this.y.magnify(e.y),r}scale(e){const r=this.copy();if(ht(e)){const n=this.currRoot;return r.currRoot=e.root,n!=null&&!re(n,e.root)&&(n.x!==e.root.x&&(r.x=r.x.invert()),n.y!==e.root.y&&(r.y=r.y.invert())),r.x=r.x.scale(X(e)),r.y=r.y.scale(D(e)),r}return r.x=r.x.scale(e.width),r.y=r.y.scale(e.height),r}reBound(e){const r=this.copy();return r.x=this.x.reBound(X(e)),r.y=this.y.reBound(D(e)),r}clamp(e){const r=this.copy();return r.x=this.x.clamp(X(e)),r.y=this.y.clamp(D(e)),r}copy(){const e=new x;return e.currRoot=this.currRoot,e.x=this.x,e.y=this.y,e}reverse(){const e=this.copy();return e.x=this.x.reverse(),e.y=this.y.reverse(),e}pos(e){return{x:this.x.pos(e.x),y:this.y.pos(e.y)}}box(e){return a(this.pos(e.one),this.pos(e.two),0,0,this.currRoot??e.root)}};f(be,"IDENTITY",new be);let mn=be;const wn=Object.freeze(Object.defineProperty({__proto__:null,Scale:ge,XY:mn,crudeXYTransform:pn,xyScaleToTransform:fn},Symbol.toStringTag,{value:"Module"}));function ft(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=ft(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function mt(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=ft(t))&&(n&&(n+=" "),n+=e);return n}const $n=mt,Re="-",_e="__",Z="--",Be=t=>{const e=(...r)=>$n(...r);return e.B=r=>t+Re+r,e.E=r=>t+_e+r,e.M=r=>t+Z+r,e.BM=(r,n)=>e.B(r)+Z+n,e.BE=(r,n)=>e.B(r)+_e+n,e.BEM=(r,n,o)=>e.BE(r,n)+Z+o,e.extend=r=>Be(e.B(r)),e.var=r=>Z+t+Re+r,e},zn=/^#?([0-9a-f]{6}|[0-9a-f]{8})$/i,xe=s.z.string().regex(zn),N=s.z.number().min(0).max(255),vn=s.z.number().min(0).max(1),Ae=s.z.tuple([N,N,N,vn]),wt=s.z.tuple([N,N,N]),$t=s.z.object({rgba255:Ae}),zt=t=>t==null?void 0:new j(t).hex,vt=t=>{if(t==null)return;const e=j.z.safeParse(t);if(e.success)return e.data.rgbaCSS;if(typeof t=="string")return t;throw e.error},b=class b{constructor(e,r=1){A(this,"rgba255");if(typeof e=="string")this.rgba255=b.fromHex(e,r);else if(Array.isArray(e)){if(e.length<3||e.length>4)throw new Error(`Invalid color: [${e.join(", ")}]`);this.rgba255=e.length===3?[...e,r??1]:e}else this.rgba255=e.rgba255}equals(e){if(e==null)return!1;const r=new b(e);return this.rgba255.every((n,o)=>n===r.rgba255[o])}get hex(){const[e,r,n,o]=this.rgba255;return`#${Y(e)}${Y(r)}${Y(n)}${o===1?"":Y(o*255)}`}get rgbaCSS(){const[e,r,n,o]=this.rgba255;return`rgba(${e}, ${r}, ${n}, ${o})`}get rgbCSS(){return`rgb(${this.rgbString})`}get rgbString(){const[e,r,n]=this.rgba255;return`${e}, ${r}, ${n}`}get rgba1(){return[...this.rgb1,this.rgba255[3]]}get rgb1(){return[this.rgba255[0]/255,this.rgba255[1]/255,this.rgba255[2]/255]}get r(){return this.rgba255[0]}get g(){return this.rgba255[1]}get b(){return this.rgba255[2]}get a(){return this.rgba255[3]}get isZero(){return this.equals(Ne)}get hsla(){return On(this.rgba255)}setAlpha(e){const[r,n,o]=this.rgba255;if(e>100)throw new Error(`Color opacity must be between 0 and 100, got ${e}`);return e>1&&(e=e/100),new b([r,n,o,e])}get luminance(){const[e,r,n]=this.rgb1.map(o=>o<=.03928?o/12.92:((o+.055)/1.055)**2.4);return Number((.2126*e+.7152*r+.0722*n).toFixed(3))}contrast(e){const r=new b(e),n=this.luminance,o=r.luminance;return(Math.max(n,o)+.5)/(Math.min(n,o)+.5)}pickByContrast(...e){if(e.length===0)throw new Error("[Color.pickByContrast] - must provide at least one color");const[r]=e.map(n=>new b(n)).sort((n,o)=>this.contrast(o)-this.contrast(n));return r}get isDark(){return this.luminance<.5}get isLight(){return!this.isDark}static fromHex(e,r=1){if(!xe.safeParse(e).success)throw new Error(`Invalid hex color: ${e}`);return e=Mn(e),[k(e,0),k(e,2),k(e,4),e.length===8?k(e,6)/255:r]}};A(b,"z",s.z.union([xe,Ae,wt,s.z.instanceof(b),$t]).transform(e=>new b(e)));let j=b;const Ne=new j([0,0,0,0]),Y=t=>Math.floor(t).toString(16).padStart(2,"0"),k=(t,e)=>parseInt(t.slice(e,e+2),16),Mn=t=>t.startsWith("#")?t.slice(1):t,Mt=t=>{let[e,r,n]=t;const o=t[3];e/=360,r/=100,n/=100;let i,u,c;if(r===0)i=u=c=n;else{const y=n<.5?n*(1+r):n+r-n*r,h=2*n-y;i=se(h,y,e+1/3),u=se(h,y,e),c=se(h,y,e-1/3)}return[Math.round(i*255),Math.round(u*255),Math.round(c*255),o]},se=(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),On=t=>{let[e,r,n]=t;const o=t[3];e/=255,r/=255,n/=255,e/=255,r/=255,n/=255;const i=Math.max(e,r,n),u=Math.min(e,r,n);let c,y,h=(i+u)/2;if(i===u)c=y=0;else{const d=i-u;y=h>.5?d/(2-i-u):d/(i+u),i===e?c=(r-n)/d+(r<n?6:0):i===r?c=(n-e)/d+2:c=(e-r)/d+4,c/=6}return c*=360,y*=100,h*=100,[Math.round(c),Math.round(y),Math.round(h),o]},Ot=s.z.union([xe,Ae,s.z.instanceof(j),s.z.string(),wt,$t]),Tn=Object.freeze(Object.defineProperty({__proto__:null,Color:j,ZERO:Ne,crudeZ:Ot,cssString:vt,fromHSLA:Mt,toHex:zt},Symbol.toStringTag,{value:"Module"}));class jn{constructor(e=""){A(this,"rows",[]);A(this,"columns",[]);A(this,"prefix");this.prefix=e}row(e,r,n){const{prefix:o}=this;return this.rows.push({startLabel:o+e,endLabel:o+r,size:n}),this}col(e,r,n){const{prefix:o}=this;return this.columns.push({startLabel:o+e,endLabel:o+r,size:n}),this}build(){return{display:"grid",gridTemplateRows:this.rows.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.rows.length-1?"]":"",n}).join(" "),gridTemplateColumns:this.columns.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.columns.length-1?"]":"",n}).join(" ")}}}const Sn=(t,e)=>Object.entries(e).forEach(([r,n])=>n!=null&&t.style.setProperty(r,`${n}`)),En=(t,e)=>Array.from(t.style).forEach(r=>{r.startsWith(e)&&t.style.removeProperty(r)}),In=t=>{const e=Be(t);return e.visible=r=>e.M(r?"visible":"hidden"),e.expanded=r=>e.M(r?"expanded":"collapsed"),e.loc=r=>e.M(je.construct(r)),e.disabled=r=>r===!0&&e.M("disabled"),e.align=r=>e.M(r),e.dir=r=>r!=null&&e.M(Fe.construct(r)),e.size=r=>typeof r=="string"&&e.M(r),e.sharp=r=>r!==!1&&e.M("sharp"),e.rounded=r=>r!==!1&&e.M("rounded"),e.bordered=r=>typeof r=="boolean"?r&&e.M("bordered"):r!=null?e.M("bordered-"+r):e.M("bordered"),e.selected=r=>r&&e.M("selected"),e.altColor=r=>r&&e.M("alt-color"),e.editable=r=>r&&e.M("editable"),e.noSelect=e.M("no-select"),e.noWrap=r=>r&&e.M("no-wrap"),e.applyVars=Sn,e.removeVars=En,e.newGridBuilder=r=>new jn(r),e.dropRegion=r=>r&&e.B("haul-drop-region"),e.px=r=>`${r}px`,e.inheritDims=(r=!0)=>r&&e.M("inherit-dims"),e.shade=r=>e.M(`shade-${r}`),e.shadeVar=r=>`var(--${t}-gray-l${r})`,e.levelSizeVar=r=>`var(--${t}-${r}-size)`,e},Bn=In("pluto");exports.$=re;exports.A=Ue;exports.B=nt;exports.C=Zt;exports.CSS=Bn;exports.Color=j;exports.J=je;exports.M=rt;exports.R=rr;exports.T=Xe;exports.T$1=C;exports.To=Gr;exports.ZERO=Ne;exports._=ar;exports._$1=cn;exports.c=Q;exports.c$1=a;exports.clsx=mt;exports.color=Tn;exports.crudeZ=Ot;exports.cssString=vt;exports.fo=dt;exports.fromHSLA=Mt;exports.g=Fe;exports.g$1=R;exports.j=xt;exports.k=wn;exports.k$1=Ge;exports.l=$;exports.newBEM=Be;exports.o=l;exports.po=gt;exports.q=Br;exports.t=z;exports.toHex=zt;exports.u=w;exports.v=De;exports.wo=yt;exports.y=te;
|
package/dist/css.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-LxkguM_s.cjs"),t=require("./units-CMXTKjnN.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
|
package/dist/css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, n as t } from "./css-
|
|
2
|
-
import { c as s, u as n } from "./units-
|
|
1
|
+
import { C as e, n as t } from "./css-B8RwzK24.js";
|
|
2
|
+
import { c as s, u as n } from "./units-CnA_yWxx.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CSS,
|
|
5
5
|
s as createHexOpacityVariants,
|
package/dist/dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-CIXrEiVA.cjs");exports.Dropdown=e.Dropdown;
|
package/dist/dropdown.js
CHANGED
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-q0CY7-QS.cjs"),n=require("./css-LxkguM_s.cjs"),e=require("./LinePlot-BcVyfdeK.cjs"),l=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontString:t.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),a=Object.freeze(Object.defineProperty({__proto__:null,Context:e.Context,Controller:e.Controller,Eraser:e.Eraser,GLProgram:e.GLProgram,Loop:e.Loop,REASON_DATA:e.REASON_DATA,REASON_LAYOUT:e.REASON_LAYOUT,REASON_TOOL:e.REASON_TOOL},Symbol.toStringTag,{value:"Module"})),i=()=>{const r=new t.l((R,S)=>postMessage(R,S));onmessage=r.handle.bind(r);const o={...e.REGISTRY,...e.REGISTRY$1,...e.REGISTRY$2,...e.REGISTRY$3,...e.REGISTRY$4,...e.REGISTRY$5,...e.REGISTRY$6,...e.REGISTRY$7,...e.REGISTRY$8,...e.REGISTRY$9,...e.REGISTRY$10,...e.REGISTRY$11,...e.REGISTRY$12,...t.REGISTRY$1,...e.REGISTRY$13,...e.REGISTRY$14,...t.REGISTRY,...e.REGISTRY$15,...e.REGISTRY$16,...e.REGISTRY$17};t.render({worker:r.route("vis"),registry:o})},T=Object.freeze(Object.defineProperty({__proto__:null,render:i},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY$8,XAxis:e.XAxis,YAxis:e.YAxis,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.color=n.color;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=T;exports.render=a;exports.theming=l;
|