@synnaxlabs/pluto 0.33.2 → 0.34.1
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-C7iWxEah.cjs → Animated-Ck87AGOu.cjs} +1 -1
- package/dist/{Animated-VpxahF8t.js → Animated-CnvOerW9.js} +2 -2
- package/dist/{Item-Dpra-3n6.js → Item--wCat2DH.js} +5 -5
- package/dist/{Item-C1_OE8IF.cjs → Item-DuNQFmgk.cjs} +1 -1
- package/dist/{Keyboard-BBOcinRN.cjs → Keyboard-DPs95Etp.cjs} +1 -1
- package/dist/{Keyboard-CpJQuX-J.js → Keyboard-Dh_Fhwg4.js} +2 -2
- package/dist/LinePlot-44K5K51b.cjs +34 -0
- package/dist/{LinePlot-DHy70Cb7.js → LinePlot-DN8KOMtR.js} +814 -801
- package/dist/Link-BHtl4aby.cjs +1 -0
- package/dist/{Link-Ctlz9WUQ.js → Link-CDG2-g6A.js} +2 -2
- package/dist/{List-DF0kzXpr.js → List-BjimX8fM.js} +5 -5
- package/dist/List-C8vXIE2j.cjs +1 -0
- package/dist/{Pack-BAJwD-n2.js → Pack-D6eMgf33.js} +9 -9
- package/dist/{Pack-DBtBeGnj.cjs → Pack-DijAGcm_.cjs} +1 -1
- package/dist/{Text-GGA7QNwA.cjs → Text-Cg0q7seY.cjs} +1 -1
- package/dist/{Text-D5o4o3OI.js → Text-CzgVM_22.js} +5 -5
- package/dist/Toggle-CP9KtybX.cjs +143 -0
- package/dist/{Toggle-CTjPdq8o.js → Toggle-Cdu7WaiC.js} +7038 -7049
- package/dist/{Video-B3geSdOZ.cjs → Video-BgDjKMJx.cjs} +1 -1
- package/dist/{Video-CXccd2Jl.js → Video-DYSz9XOF.js} +1 -1
- package/dist/aggregator-C0Ab25_o.cjs +67 -0
- package/dist/{aggregator-QFq5XDjf.js → aggregator-DzdAnRwI.js} +546 -552
- 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-DqBChhqm.js → css-B4FcyECk.js} +25 -20
- package/dist/css-Dh7n0EGs.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-CfOulkkd.js → external-B72rRj4o.js} +5 -5
- package/dist/{external-DT1bMgJw.js → external-BOIjtEGO.js} +2 -2
- package/dist/{external-mRJloDDi.js → external-B_-ZrYaG.js} +112 -102
- package/dist/{external-CUwDGrme.cjs → external-BbS4QDTb.cjs} +1 -1
- package/dist/{external-BPnNv3RZ.cjs → external-CAIE4G3V.cjs} +1 -1
- package/dist/{external-ClRKAhnQ.cjs → external-CYsmC4uZ.cjs} +1 -1
- package/dist/{external-BZpriFW_.cjs → external-Cc9o20Al.cjs} +1 -1
- package/dist/{external-aTGyndBd.cjs → external-CjmMj11F.cjs} +1 -1
- package/dist/{external-Bm3VKQxs.js → external-CoQwrjWl.js} +15 -15
- package/dist/{external-CK8msIo3.js → external-CsqyDUsJ.js} +4 -4
- package/dist/{external-CKp_fJJC.js → external-D9Q5Xjko.js} +2 -2
- package/dist/{external-C2YHV6Dz.cjs → external-DRHWURjA.cjs} +1 -1
- package/dist/external-DVlGiTKE.cjs +1 -0
- package/dist/{external-X9NMQ2Zh.cjs → external-Dm2-owlq.cjs} +1 -1
- package/dist/{external-CKuO-iHz.cjs → external-DsKRFJxV.cjs} +1 -1
- package/dist/{external-Ct326ec4.js → external-DvRQ7lJU.js} +2 -2
- package/dist/{external-DyAGPLil.js → external-FVIwMFDr.js} +5 -5
- package/dist/{external-CI2s6wrc.js → external-Yf8Lv9AU.js} +69 -82
- package/dist/{external-Bksh4jhY.cjs → external-eI1p10Vf.cjs} +1 -1
- package/dist/{external-Dhg4bEfF.cjs → external-gz4sf3pG.cjs} +1 -1
- package/dist/{external-BNMsCMKL.js → external-k3Jbrj0m.js} +5 -5
- package/dist/{external-DmLFwKtu.js → external-lgZ2Gmbx.js} +4 -4
- package/dist/{external-EHlrAzYc.js → external-mE-a2ecU.js} +1 -1
- package/dist/{external-DYc6fMZC.cjs → external-mtlL4Z3a.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +11 -5
- package/dist/index.js +10618 -8629
- 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/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/caret/Animated.d.ts.map +1 -1
- package/dist/src/channel/AliasProvider.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/color/core/color.d.ts.map +1 -1
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts.map +1 -1
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/form/synced.d.ts.map +1 -1
- package/dist/src/hardware/device/Select.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/src/hooks/useRequiredContext.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/input/Item.d.ts.map +1 -1
- package/dist/src/input/Label.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/label/Select.d.ts.map +1 -1
- package/dist/src/list/Item.d.ts.map +1 -1
- package/dist/src/memo/useMemoCompare.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/notation/SelectNotation.d.ts +12 -0
- package/dist/src/notation/SelectNotation.d.ts.map +1 -0
- package/dist/src/notation/notation.d.ts +33 -0
- package/dist/src/notation/notation.d.ts.map +1 -0
- package/dist/src/notation/notation.spec.d.ts +2 -0
- package/dist/src/notation/notation.spec.d.ts.map +1 -0
- package/dist/src/note/Note.d.ts.map +1 -1
- package/dist/src/observe/use.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/progress/Progress.d.ts.map +1 -1
- package/dist/src/ranger/Select.d.ts.map +1 -1
- package/dist/src/select/Alignment.d.ts.map +1 -1
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/status/Circle.d.ts.map +1 -1
- package/dist/src/status/Notification.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/Pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/noop.d.ts.map +1 -1
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/telem.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +9 -0
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/reader.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts.map +1 -1
- package/dist/src/telem/control/Legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/text/DateTime.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/SelectLevel.d.ts.map +1 -1
- package/dist/src/text/dimensions.d.ts.map +1 -1
- package/dist/src/tooltip/Dialog.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +3 -1
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/util/zod.d.ts.map +1 -1
- package/dist/src/vis/button/aether/button.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +23 -14
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
- package/dist/src/vis/diagram/util.d.ts +1 -1
- package/dist/src/vis/diagram/util.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/external.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/render/loop.d.ts.map +1 -1
- package/dist/src/vis/render/performance.d.ts.map +1 -1
- package/dist/src/vis/render/util.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +1 -0
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +45 -0
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +35 -0
- 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/src/vis/value/aether/value.d.ts +9 -0
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +4 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/src/worker/Context.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-6W_8ukD-.cjs → units-CR-P9eLW.cjs} +1 -1
- package/dist/{units-BHSMvrYX.js → units-rb5QAWjs.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +18 -18
- package/dist/LinePlot-Bwz2fEc0.cjs +0 -34
- package/dist/Link-Cxj-3A6p.cjs +0 -1
- package/dist/List-CcTL6wlO.cjs +0 -1
- package/dist/Toggle-Dim0E2D2.cjs +0 -143
- package/dist/aggregator-D6Mmsfj4.cjs +0 -67
- package/dist/css-CvXvQo39.cjs +0 -1
- package/dist/external-e143l3cy.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var c = (n, e, t) =>
|
|
4
|
-
import { Z as
|
|
1
|
+
var li = Object.defineProperty;
|
|
2
|
+
var ci = (n, e, t) => e in n ? li(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var c = (n, e, t) => ci(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { Z as ui, q as He, v as wt, _ as ps, o as F, B as ft, E as ut, y as $, x as hi, z as nt, D as di, G as Rr, V as gs, H as fi, I as it, J as Mr, K as Or, M as pt, N as $s, O as ms, Q as pi, F as We, T as Gn, U as Dr, W as gi, i as Xe, u as xt, c as re, X as mi, Y as Z, A as yi, $ as Yr, a0 as wi, a1 as ys, n as xi, a2 as Ar, a3 as ws, a4 as xs, a5 as Lr, w as bi, a6 as bs, k as _r, a7 as In, a8 as vi } from "./aggregator-DzdAnRwI.js";
|
|
5
5
|
import { z as d } from "zod";
|
|
6
|
-
import { Z as V, G as R, W as
|
|
7
|
-
var
|
|
8
|
-
class
|
|
6
|
+
import { Z as V, G as R, W as Ti, J as Tt, E as f, q as g, g as at, a as Y, _ as Ge, l as I, C as Si, m as Nr } from "./css-B4FcyECk.js";
|
|
7
|
+
var Ei = Object.defineProperty, Ci = (n, e, t) => e in n ? Ei(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ze = (n, e, t) => Ci(n, typeof e != "symbol" ? e + "" : e, t);
|
|
8
|
+
class ki {
|
|
9
9
|
constructor(e, t) {
|
|
10
10
|
ze(this, "handlers"), ze(this, "transform"), ze(this, "closer"), this.transform = e, this.handlers = t ?? /* @__PURE__ */ new Map();
|
|
11
11
|
}
|
|
@@ -31,7 +31,7 @@ class Ei {
|
|
|
31
31
|
return await ((e = this.closer) == null ? void 0 : e.call(this));
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class Pi {
|
|
35
35
|
constructor(e) {
|
|
36
36
|
ze(this, "handlers"), this.handlers = e ?? /* @__PURE__ */ new Map();
|
|
37
37
|
}
|
|
@@ -44,12 +44,12 @@ class Ci {
|
|
|
44
44
|
}
|
|
45
45
|
const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46
46
|
__proto__: null,
|
|
47
|
-
BaseObserver:
|
|
48
|
-
Observer:
|
|
49
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
50
|
-
props:
|
|
47
|
+
BaseObserver: Pi,
|
|
48
|
+
Observer: ki
|
|
49
|
+
}, Symbol.toStringTag, { value: "Module" })), Ri = d.object({
|
|
50
|
+
props: ui.nullable(),
|
|
51
51
|
state: He.connectivity.connectionStateZ.nullable()
|
|
52
|
-
}),
|
|
52
|
+
}), Ir = {
|
|
53
53
|
synnax: null,
|
|
54
54
|
state: He.connectivity.DEFAULT
|
|
55
55
|
};
|
|
@@ -61,24 +61,24 @@ let Vn = (vt = class extends wt {
|
|
|
61
61
|
}
|
|
62
62
|
async afterUpdate() {
|
|
63
63
|
var t;
|
|
64
|
-
if (this.ctx.has(Ts) ||
|
|
65
|
-
this.internal.synnax != null && (this.setState((s) => ({ ...s, state: He.connectivity.DEFAULT })), (t = this.internal.synnax) == null || t.close(), this.internal.synnax = null),
|
|
64
|
+
if (this.ctx.has(Ts) || Bn(this.ctx, Ir), this.state.props == null) {
|
|
65
|
+
this.internal.synnax != null && (this.setState((s) => ({ ...s, state: He.connectivity.DEFAULT })), (t = this.internal.synnax) == null || t.close(), this.internal.synnax = null), Bn(this.ctx, this.internal);
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
this.prevState.props != null && ps.equal(this.state.props, this.prevState.props) && this.internal.synnax != null || (this.internal.synnax = new He(this.state.props), this.internal.synnax.connectivity.onChange(
|
|
69
69
|
(s) => this.setState((r) => ({ ...r, state: s }))
|
|
70
|
-
),
|
|
70
|
+
), Bn(this.ctx, this.internal));
|
|
71
71
|
}
|
|
72
|
-
}, c(vt, "TYPE", "SynnaxProvider"), c(vt, "stateZ",
|
|
73
|
-
const Ts = "pluto-client-context",
|
|
72
|
+
}, c(vt, "TYPE", "SynnaxProvider"), c(vt, "stateZ", Ri), vt);
|
|
73
|
+
const Ts = "pluto-client-context", Bn = (n, e) => n.set(Ts, e), Oe = (n) => n.get(Ts).synnax, Mi = {
|
|
74
74
|
[Vn.TYPE]: Vn
|
|
75
|
-
},
|
|
75
|
+
}, eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
77
|
Provider: Vn,
|
|
78
|
-
REGISTRY:
|
|
79
|
-
ZERO_CONTEXT_VALUE:
|
|
78
|
+
REGISTRY: Mi,
|
|
79
|
+
ZERO_CONTEXT_VALUE: Ir,
|
|
80
80
|
use: Oe
|
|
81
|
-
}, Symbol.toStringTag, { value: "Module" })), Br = "pluto-telem-context", Rn = (n) => n.get(Br),
|
|
81
|
+
}, Symbol.toStringTag, { value: "Module" })), Br = "pluto-telem-context", Rn = (n) => n.get(Br), Ur = (n, e) => n.set(Br, e), $r = (n, e) => Rn(n).registerFactory(e);
|
|
82
82
|
class Zs {
|
|
83
83
|
constructor(e, t, s) {
|
|
84
84
|
c(this, "spec");
|
|
@@ -158,7 +158,7 @@ class Ke extends Et {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
c(Ke, "TYPE", "noop-numeric-sink");
|
|
161
|
-
const
|
|
161
|
+
const Zr = {
|
|
162
162
|
type: Ke.TYPE,
|
|
163
163
|
props: {},
|
|
164
164
|
variant: "sink",
|
|
@@ -182,7 +182,7 @@ class Je extends Et {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
c(Je, "TYPE", "noop-numeric-source");
|
|
185
|
-
const
|
|
185
|
+
const Fr = {
|
|
186
186
|
type: Je.TYPE,
|
|
187
187
|
props: {},
|
|
188
188
|
variant: "source",
|
|
@@ -194,7 +194,7 @@ class tn extends Et {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
c(tn, "TYPE", "noop-string-source");
|
|
197
|
-
const
|
|
197
|
+
const zr = {
|
|
198
198
|
type: tn.TYPE,
|
|
199
199
|
props: {},
|
|
200
200
|
variant: "source",
|
|
@@ -223,7 +223,7 @@ class nn extends Et {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
c(nn, "TYPE", "noop-color-source");
|
|
226
|
-
const
|
|
226
|
+
const qr = {
|
|
227
227
|
type: nn.TYPE,
|
|
228
228
|
props: {},
|
|
229
229
|
variant: "source",
|
|
@@ -235,12 +235,12 @@ class sn extends Et {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
c(sn, "TYPE", "noop-series");
|
|
238
|
-
const
|
|
238
|
+
const jr = {
|
|
239
239
|
type: sn.TYPE,
|
|
240
240
|
props: {},
|
|
241
241
|
variant: "source",
|
|
242
242
|
valueType: "series"
|
|
243
|
-
},
|
|
243
|
+
}, Oi = {
|
|
244
244
|
[Ve.TYPE]: Ve,
|
|
245
245
|
[Ke.TYPE]: Ke,
|
|
246
246
|
[Qe.TYPE]: Qe,
|
|
@@ -250,32 +250,32 @@ const qr = {
|
|
|
250
250
|
[tn.TYPE]: tn,
|
|
251
251
|
[sn.TYPE]: sn
|
|
252
252
|
};
|
|
253
|
-
class
|
|
253
|
+
class Hr {
|
|
254
254
|
constructor() {
|
|
255
255
|
c(this, "type", "noop");
|
|
256
256
|
}
|
|
257
257
|
create(e) {
|
|
258
|
-
const t =
|
|
258
|
+
const t = Oi[e.type];
|
|
259
259
|
return t == null ? null : new t();
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const Di = d.instanceof(ArrayBuffer), Ye = d.object({
|
|
263
263
|
type: d.string(),
|
|
264
264
|
variant: d.enum(["source", "sink", "source-transformer", "sink-transformer"]),
|
|
265
265
|
valueType: d.string(),
|
|
266
266
|
props: d.any(),
|
|
267
|
-
transfer: d.array(
|
|
268
|
-
}), Ct = Ye.extend({ variant: d.literal("source") }), On = Ye.extend({ variant: d.literal("sink") }),
|
|
267
|
+
transfer: d.array(Di).optional()
|
|
268
|
+
}), Ct = Ye.extend({ variant: d.literal("source") }), On = Ye.extend({ variant: d.literal("sink") }), Wr = Ye.extend({
|
|
269
269
|
variant: d.literal("source-transformer")
|
|
270
|
-
}),
|
|
270
|
+
}), Xr = Ye.extend({
|
|
271
271
|
variant: d.literal("sink-transformer")
|
|
272
272
|
}), rn = Ct.extend({ valueType: d.literal("series") }), Cs = Ct.extend({
|
|
273
273
|
valueType: d.literal("boolean")
|
|
274
|
-
}), Dn = On.extend({ valueType: d.literal("boolean") }),
|
|
274
|
+
}), Dn = On.extend({ valueType: d.literal("boolean") }), Yi = Xr.extend({
|
|
275
275
|
valueType: d.literal("boolean")
|
|
276
|
-
}),
|
|
276
|
+
}), Ai = Wr.extend({
|
|
277
277
|
valueType: d.literal("boolean")
|
|
278
|
-
}),
|
|
278
|
+
}), Gr = Ct.extend({ valueType: d.literal("number") }), Vr = On.extend({ valueType: d.literal("number") }), Kr = Ct.extend({ valueType: d.literal("color") }), ks = Ct.extend({ valueType: d.literal("status") }), Qr = Ct.extend({ valueType: d.literal("string") });
|
|
279
279
|
class Yn extends vs.BaseObserver {
|
|
280
280
|
constructor(t) {
|
|
281
281
|
super();
|
|
@@ -347,7 +347,7 @@ class Ae extends Q {
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class Jr extends Q {
|
|
351
351
|
constructor() {
|
|
352
352
|
super(...arguments);
|
|
353
353
|
c(this, "sources", {});
|
|
@@ -373,7 +373,7 @@ class Qr extends Q {
|
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class ta extends Yn {
|
|
377
377
|
constructor() {
|
|
378
378
|
super(...arguments);
|
|
379
379
|
c(this, "sinks", {});
|
|
@@ -399,15 +399,15 @@ class Jr extends Yn {
|
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
const
|
|
402
|
+
const ea = d.object({
|
|
403
403
|
from: d.string(),
|
|
404
404
|
to: d.string()
|
|
405
|
-
}),
|
|
406
|
-
connections: d.array(
|
|
405
|
+
}), na = d.object({
|
|
406
|
+
connections: d.array(ea),
|
|
407
407
|
outlet: d.string(),
|
|
408
408
|
segments: d.record(Ct)
|
|
409
409
|
});
|
|
410
|
-
class
|
|
410
|
+
class sa {
|
|
411
411
|
constructor(e) {
|
|
412
412
|
c(this, "type", "pipeline");
|
|
413
413
|
c(this, "factory");
|
|
@@ -427,7 +427,7 @@ class na {
|
|
|
427
427
|
class de extends Q {
|
|
428
428
|
constructor(t, s) {
|
|
429
429
|
super(t);
|
|
430
|
-
c(this, "schema",
|
|
430
|
+
c(this, "schema", na);
|
|
431
431
|
c(this, "sources", {});
|
|
432
432
|
const { connections: r, segments: a } = this.props;
|
|
433
433
|
Object.entries(a).forEach(([i, o]) => {
|
|
@@ -462,20 +462,20 @@ class de extends Q {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
c(de, "TYPE", "source-pipeline");
|
|
465
|
-
const
|
|
465
|
+
const Li = (n, e) => ({
|
|
466
466
|
variant: "source",
|
|
467
467
|
props: e,
|
|
468
468
|
type: de.TYPE,
|
|
469
469
|
valueType: n
|
|
470
|
-
}),
|
|
471
|
-
connections: d.array(
|
|
470
|
+
}), ra = d.object({
|
|
471
|
+
connections: d.array(ea),
|
|
472
472
|
inlet: d.string(),
|
|
473
473
|
segments: d.record(On)
|
|
474
474
|
});
|
|
475
475
|
class fe extends An {
|
|
476
476
|
constructor(t, s) {
|
|
477
477
|
super(t);
|
|
478
|
-
c(this, "schema",
|
|
478
|
+
c(this, "schema", ra);
|
|
479
479
|
c(this, "sinks", {});
|
|
480
480
|
const { connections: r, segments: a } = this.props;
|
|
481
481
|
Object.entries(a).forEach(([i, o]) => {
|
|
@@ -507,12 +507,12 @@ class fe extends An {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
c(fe, "TYPE", "sink-pipeline");
|
|
510
|
-
const
|
|
510
|
+
const _i = (n, e) => ({
|
|
511
511
|
variant: "sink",
|
|
512
512
|
props: e,
|
|
513
513
|
type: fe.TYPE,
|
|
514
514
|
valueType: n
|
|
515
|
-
}),
|
|
515
|
+
}), aa = d.object({
|
|
516
516
|
channel: d.number().or(d.string())
|
|
517
517
|
});
|
|
518
518
|
class pe extends Q {
|
|
@@ -522,7 +522,7 @@ class pe extends Q {
|
|
|
522
522
|
// Disconnects the current streaming handler.
|
|
523
523
|
c(this, "removeStreamHandler", null);
|
|
524
524
|
c(this, "channelKey", 0);
|
|
525
|
-
c(this, "schema",
|
|
525
|
+
c(this, "schema", aa);
|
|
526
526
|
c(this, "leadingBuffer", null);
|
|
527
527
|
c(this, "valid", !1);
|
|
528
528
|
this.client = t;
|
|
@@ -540,7 +540,7 @@ class pe extends Q {
|
|
|
540
540
|
await ((t = this.removeStreamHandler) == null ? void 0 : t.call(this)), this.valid = !1, (s = this.leadingBuffer) == null || s.release(), this.leadingBuffer = null, this.removeStreamHandler = null;
|
|
541
541
|
}
|
|
542
542
|
async value() {
|
|
543
|
-
return
|
|
543
|
+
return hi(this.props.channel) || (this.channelKey === 0 && (this.channelKey = (await Ps(this.client, this.props.channel, !1)).key), this.valid || await this.read(), this.leadingBuffer == null || this.leadingBuffer.length === 0) ? 0 : this.leadingBuffer.at(-1, !0);
|
|
544
544
|
}
|
|
545
545
|
async read() {
|
|
546
546
|
this.valid = !0, await this.updateStreamHandler();
|
|
@@ -564,7 +564,7 @@ c(pe, "TYPE", "stream-channel-value");
|
|
|
564
564
|
const Ps = async (n, e, t) => {
|
|
565
565
|
const s = await n.retrieveChannel(e);
|
|
566
566
|
return !t || s.isIndex ? { key: s.key, dataType: s.dataType, virtual: s.virtual } : { key: s.index, dataType: nt.TIMESTAMP, virtual: !1 };
|
|
567
|
-
},
|
|
567
|
+
}, Ni = d.object({
|
|
568
568
|
timeRange: ut.z,
|
|
569
569
|
channel: d.number().or(d.string()),
|
|
570
570
|
useIndexOfChannel: d.boolean().optional().default(!1)
|
|
@@ -575,7 +575,7 @@ class ge extends Q {
|
|
|
575
575
|
c(this, "client");
|
|
576
576
|
c(this, "data", []);
|
|
577
577
|
c(this, "valid", !1);
|
|
578
|
-
c(this, "schema",
|
|
578
|
+
c(this, "schema", Ni);
|
|
579
579
|
this.client = t;
|
|
580
580
|
}
|
|
581
581
|
async cleanup() {
|
|
@@ -598,7 +598,7 @@ class ge extends Q {
|
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
c(ge, "TYPE", "series-source");
|
|
601
|
-
const
|
|
601
|
+
const Ii = d.object({
|
|
602
602
|
channel: d.number().or(d.string()),
|
|
603
603
|
useIndexOfChannel: d.boolean().optional().default(!1),
|
|
604
604
|
timeSpan: $.z,
|
|
@@ -611,7 +611,7 @@ class me extends Q {
|
|
|
611
611
|
c(this, "data", []);
|
|
612
612
|
c(this, "stopStreaming");
|
|
613
613
|
c(this, "valid", !1);
|
|
614
|
-
c(this, "schema",
|
|
614
|
+
c(this, "schema", Ii);
|
|
615
615
|
this.client = t;
|
|
616
616
|
}
|
|
617
617
|
async value() {
|
|
@@ -653,39 +653,39 @@ class me extends Q {
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
c(me, "TYPE", "dynamic-series-source");
|
|
656
|
-
const
|
|
656
|
+
const Bi = {
|
|
657
657
|
[ge.TYPE]: ge,
|
|
658
658
|
[me.TYPE]: me,
|
|
659
659
|
[pe.TYPE]: pe
|
|
660
660
|
};
|
|
661
|
-
class
|
|
661
|
+
class ia {
|
|
662
662
|
constructor(e) {
|
|
663
663
|
c(this, "type", "remote");
|
|
664
664
|
c(this, "client");
|
|
665
665
|
this.client = e;
|
|
666
666
|
}
|
|
667
667
|
create(e) {
|
|
668
|
-
const t =
|
|
668
|
+
const t = Bi[e.type];
|
|
669
669
|
return t == null ? null : new t(this.client, e.props);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
const
|
|
672
|
+
const Ui = (n) => ({
|
|
673
673
|
type: ge.TYPE,
|
|
674
674
|
props: n,
|
|
675
675
|
variant: "source",
|
|
676
676
|
valueType: "series"
|
|
677
|
-
}),
|
|
677
|
+
}), $i = (n) => ({
|
|
678
678
|
type: me.TYPE,
|
|
679
679
|
props: n,
|
|
680
680
|
variant: "source",
|
|
681
681
|
valueType: "series"
|
|
682
|
-
}),
|
|
682
|
+
}), Zi = (n) => ({
|
|
683
683
|
type: pe.TYPE,
|
|
684
684
|
props: n,
|
|
685
685
|
variant: "source",
|
|
686
686
|
valueType: "number"
|
|
687
687
|
});
|
|
688
|
-
class
|
|
688
|
+
class oa {
|
|
689
689
|
constructor() {
|
|
690
690
|
c(this, "type", "static");
|
|
691
691
|
}
|
|
@@ -705,7 +705,7 @@ class ia {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
const Rs = d.object({
|
|
708
|
-
data: d.array(
|
|
708
|
+
data: d.array(di),
|
|
709
709
|
offsets: d.array(d.number()).optional().default([])
|
|
710
710
|
});
|
|
711
711
|
class an extends Q {
|
|
@@ -727,8 +727,8 @@ class an extends Q {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
c(an, "TYPE", "static-series");
|
|
730
|
-
const
|
|
731
|
-
rate:
|
|
730
|
+
const la = Rs.extend({
|
|
731
|
+
rate: Rr.z,
|
|
732
732
|
yOffset: d.number().optional().default(0),
|
|
733
733
|
scroll: d.number().optional().default(0),
|
|
734
734
|
startPosition: d.number().optional().default(0),
|
|
@@ -737,7 +737,7 @@ const oa = Rs.extend({
|
|
|
737
737
|
class ye extends Q {
|
|
738
738
|
constructor(t) {
|
|
739
739
|
super(t);
|
|
740
|
-
c(this, "schema",
|
|
740
|
+
c(this, "schema", la);
|
|
741
741
|
c(this, "position");
|
|
742
742
|
c(this, "interval");
|
|
743
743
|
c(this, "data");
|
|
@@ -772,50 +772,59 @@ class ye extends Q {
|
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
c(ye, "TYPE", "iterative-series");
|
|
775
|
-
const
|
|
775
|
+
const ca = d.number();
|
|
776
776
|
class we extends Q {
|
|
777
777
|
constructor() {
|
|
778
778
|
super(...arguments);
|
|
779
|
-
c(this, "schema",
|
|
779
|
+
c(this, "schema", ca);
|
|
780
780
|
}
|
|
781
781
|
async value() {
|
|
782
782
|
return this.props;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
c(we, "TYPE", "static-numeric");
|
|
786
|
-
const
|
|
786
|
+
const ua = d.string();
|
|
787
787
|
class xe extends Q {
|
|
788
788
|
constructor() {
|
|
789
789
|
super(...arguments);
|
|
790
|
-
c(this, "schema",
|
|
790
|
+
c(this, "schema", ua);
|
|
791
791
|
}
|
|
792
792
|
async value() {
|
|
793
793
|
return this.props;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
c(xe, "TYPE", "static-string");
|
|
797
|
-
const
|
|
797
|
+
const Fi = (n) => ({
|
|
798
798
|
type: an.TYPE,
|
|
799
799
|
props: n,
|
|
800
800
|
variant: "source",
|
|
801
801
|
valueType: "series"
|
|
802
|
-
}),
|
|
802
|
+
}), zi = (n) => ({
|
|
803
803
|
type: ye.TYPE,
|
|
804
804
|
props: n,
|
|
805
805
|
variant: "source",
|
|
806
806
|
valueType: "series"
|
|
807
|
-
}),
|
|
807
|
+
}), qi = (n) => ({
|
|
808
808
|
type: we.TYPE,
|
|
809
809
|
props: n,
|
|
810
810
|
variant: "source",
|
|
811
811
|
valueType: "number"
|
|
812
|
-
}),
|
|
812
|
+
}), ji = (n) => ({
|
|
813
813
|
type: xe.TYPE,
|
|
814
814
|
props: n,
|
|
815
815
|
variant: "source",
|
|
816
816
|
valueType: "string"
|
|
817
|
-
})
|
|
818
|
-
|
|
817
|
+
}), Hi = ["standard", "scientific", "engineering"], ha = d.enum(Hi), Wi = (n, e, t) => {
|
|
818
|
+
if (Number.isNaN(n)) return "NaN";
|
|
819
|
+
if (n === 1 / 0) return "∞";
|
|
820
|
+
if (n === -1 / 0) return "-∞";
|
|
821
|
+
if (t === "standard") return n.toFixed(e);
|
|
822
|
+
if (n === 0)
|
|
823
|
+
return e === 0 ? "0ᴇ0" : `0.${"0".repeat(e)}ᴇ0`;
|
|
824
|
+
let s;
|
|
825
|
+
return t === "scientific" ? s = Math.floor(Math.log10(Math.abs(n))) : s = Math.floor(Math.log10(Math.abs(n)) / 3) * 3, `${(n / 10 ** s).toFixed(e)}ᴇ${s}`;
|
|
826
|
+
};
|
|
827
|
+
class da {
|
|
819
828
|
constructor() {
|
|
820
829
|
c(this, "type", "transformer");
|
|
821
830
|
}
|
|
@@ -837,15 +846,15 @@ class ua {
|
|
|
837
846
|
return null;
|
|
838
847
|
}
|
|
839
848
|
}
|
|
840
|
-
const
|
|
849
|
+
const Xi = d.object({
|
|
841
850
|
truthy: d.number().optional().default(1),
|
|
842
851
|
falsy: d.number().optional().default(0)
|
|
843
|
-
}),
|
|
852
|
+
}), Gi = (n) => ({
|
|
844
853
|
props: n,
|
|
845
854
|
type: qt.TYPE,
|
|
846
855
|
variant: "sink",
|
|
847
856
|
valueType: "boolean"
|
|
848
|
-
}), ae = class ae extends
|
|
857
|
+
}), ae = class ae extends ta {
|
|
849
858
|
constructor() {
|
|
850
859
|
super(...arguments);
|
|
851
860
|
c(this, "schema", ae.propsZ);
|
|
@@ -854,9 +863,9 @@ const qi = d.object({
|
|
|
854
863
|
return t ? this.props.truthy : this.props.falsy;
|
|
855
864
|
}
|
|
856
865
|
};
|
|
857
|
-
c(ae, "TYPE", "boolean-numeric-converter-sink"), c(ae, "propsZ",
|
|
866
|
+
c(ae, "TYPE", "boolean-numeric-converter-sink"), c(ae, "propsZ", Xi);
|
|
858
867
|
let qt = ae;
|
|
859
|
-
const
|
|
868
|
+
const Vi = d.object({ trueBound: R.bounds }), Ki = (n) => ({
|
|
860
869
|
props: n,
|
|
861
870
|
type: jt.TYPE,
|
|
862
871
|
variant: "source",
|
|
@@ -875,9 +884,9 @@ const Hi = d.object({ trueBound: R.bounds }), Wi = (n) => ({
|
|
|
875
884
|
return this.curr = R.contains(this.props.trueBound, t), this.curr;
|
|
876
885
|
}
|
|
877
886
|
};
|
|
878
|
-
c(ie, "TYPE", "boolean-source"), c(ie, "propsZ",
|
|
887
|
+
c(ie, "TYPE", "boolean-source"), c(ie, "propsZ", Vi);
|
|
879
888
|
let jt = ie;
|
|
880
|
-
const
|
|
889
|
+
const fa = d.object({}), oe = class oe extends Jr {
|
|
881
890
|
constructor() {
|
|
882
891
|
super(...arguments);
|
|
883
892
|
c(this, "schema", oe.propsZ);
|
|
@@ -886,15 +895,15 @@ const ha = d.object({}), oe = class oe extends Qr {
|
|
|
886
895
|
return Object.values(t).reduce((s, r) => s + r, 0) / Object.keys(t).length;
|
|
887
896
|
}
|
|
888
897
|
};
|
|
889
|
-
c(oe, "TYPE", "mean"), c(oe, "propsZ",
|
|
898
|
+
c(oe, "TYPE", "mean"), c(oe, "propsZ", fa);
|
|
890
899
|
let Ht = oe;
|
|
891
|
-
const
|
|
900
|
+
const Qi = (n) => ({
|
|
892
901
|
props: n,
|
|
893
902
|
type: Ht.TYPE,
|
|
894
903
|
variant: "source",
|
|
895
904
|
valueType: "boolean"
|
|
896
|
-
}),
|
|
897
|
-
trueVariant:
|
|
905
|
+
}), pa = d.object({
|
|
906
|
+
trueVariant: fi.optional().default("success")
|
|
898
907
|
}), le = class le extends Ae {
|
|
899
908
|
constructor() {
|
|
900
909
|
super(...arguments);
|
|
@@ -904,40 +913,41 @@ const Xi = (n) => ({
|
|
|
904
913
|
return t.variant === this.props.trueVariant;
|
|
905
914
|
}
|
|
906
915
|
};
|
|
907
|
-
c(le, "TYPE", "boolean-status"), c(le, "propsZ",
|
|
916
|
+
c(le, "TYPE", "boolean-status"), c(le, "propsZ", pa);
|
|
908
917
|
let Wt = le;
|
|
909
|
-
const
|
|
918
|
+
const Ji = (n) => ({
|
|
910
919
|
props: n,
|
|
911
920
|
type: Wt.TYPE,
|
|
912
921
|
variant: "source",
|
|
913
922
|
valueType: "boolean"
|
|
914
|
-
}),
|
|
923
|
+
}), ga = d.object({
|
|
915
924
|
precision: d.number().optional().default(2),
|
|
916
925
|
prefix: d.string().optional().default(""),
|
|
917
|
-
suffix: d.string().optional().default("")
|
|
926
|
+
suffix: d.string().optional().default(""),
|
|
927
|
+
notation: ha.optional().default("standard")
|
|
918
928
|
}), ce = class ce extends Ae {
|
|
919
929
|
constructor() {
|
|
920
930
|
super(...arguments);
|
|
921
931
|
c(this, "schema", ce.propsZ);
|
|
922
932
|
}
|
|
923
933
|
transform(t) {
|
|
924
|
-
return `${this.props.prefix}${t.
|
|
934
|
+
return `${this.props.prefix}${Wi(t, this.props.precision, this.props.notation)}${this.props.suffix}`;
|
|
925
935
|
}
|
|
926
936
|
};
|
|
927
|
-
c(ce, "TYPE", "stringify-number"), c(ce, "propsZ",
|
|
937
|
+
c(ce, "TYPE", "stringify-number"), c(ce, "propsZ", ga);
|
|
928
938
|
let Xt = ce;
|
|
929
|
-
const
|
|
939
|
+
const to = (n) => ({
|
|
930
940
|
props: n,
|
|
931
941
|
type: Xt.TYPE,
|
|
932
942
|
variant: "source",
|
|
933
943
|
valueType: "string"
|
|
934
|
-
}),
|
|
944
|
+
}), ma = d.object({
|
|
935
945
|
windowSize: d.number().optional().default(5)
|
|
936
946
|
});
|
|
937
947
|
class Gt extends Ae {
|
|
938
948
|
constructor() {
|
|
939
949
|
super(...arguments);
|
|
940
|
-
c(this, "schema",
|
|
950
|
+
c(this, "schema", ma);
|
|
941
951
|
c(this, "values", []);
|
|
942
952
|
}
|
|
943
953
|
transform(t) {
|
|
@@ -947,14 +957,14 @@ class Gt extends Ae {
|
|
|
947
957
|
return this.props.windowSize < 2 ? !0 : (this.values.length > this.props.windowSize && (this.values = []), this.values.push(t), this.values.length === this.props.windowSize);
|
|
948
958
|
}
|
|
949
959
|
}
|
|
950
|
-
c(Gt, "TYPE", "rolling-average"), c(Gt, "propsZ",
|
|
951
|
-
const
|
|
960
|
+
c(Gt, "TYPE", "rolling-average"), c(Gt, "propsZ", fa);
|
|
961
|
+
const eo = (n) => ({
|
|
952
962
|
props: n,
|
|
953
963
|
type: Gt.TYPE,
|
|
954
964
|
variant: "source",
|
|
955
965
|
valueType: "number"
|
|
956
966
|
});
|
|
957
|
-
class
|
|
967
|
+
class ya {
|
|
958
968
|
constructor(e) {
|
|
959
969
|
c(this, "factories");
|
|
960
970
|
c(this, "type", "compound");
|
|
@@ -974,10 +984,10 @@ class ga {
|
|
|
974
984
|
return null;
|
|
975
985
|
}
|
|
976
986
|
}
|
|
977
|
-
const
|
|
978
|
-
const e = [new
|
|
979
|
-
return n != null && t.add(new
|
|
980
|
-
},
|
|
987
|
+
const wa = (n) => {
|
|
988
|
+
const e = [new da(), new oa(), new Hr()], t = new ya(e);
|
|
989
|
+
return n != null && t.add(new ia(n)), t.add(new sa(t)), t;
|
|
990
|
+
}, no = d.object({
|
|
981
991
|
include: d.string().array().optional(),
|
|
982
992
|
exclude: d.string().array().optional(),
|
|
983
993
|
level: d.enum(it.LOG_LEVELS).optional().default("info")
|
|
@@ -986,7 +996,7 @@ var Xn;
|
|
|
986
996
|
let zs = (Xn = class extends wt {
|
|
987
997
|
constructor() {
|
|
988
998
|
super(...arguments);
|
|
989
|
-
c(this, "schema",
|
|
999
|
+
c(this, "schema", no);
|
|
990
1000
|
}
|
|
991
1001
|
async afterUpdate() {
|
|
992
1002
|
if (this.ctx.getOptional(Kn) != null) return;
|
|
@@ -1001,27 +1011,27 @@ const Le = (n, e) => {
|
|
|
1001
1011
|
const t = n.get(Kn);
|
|
1002
1012
|
if (t == null) throw new Error("No instrumentation provider");
|
|
1003
1013
|
return e == null ? t : t.child(e);
|
|
1004
|
-
},
|
|
1014
|
+
}, sh = {
|
|
1005
1015
|
[zs.TYPE]: zs
|
|
1006
|
-
},
|
|
1016
|
+
}, xa = (n, e) => n.dataType.isVariable ? n : (e == null && n.dataType.equals(nt.TIMESTAMP) && (e = BigInt(n.data[0])), n.convert(nt.FLOAT32, e)), ba = () => ({
|
|
1007
1017
|
purgedSeries: 0,
|
|
1008
|
-
purgedBytes:
|
|
1009
|
-
}),
|
|
1018
|
+
purgedBytes: Mr.bytes(0)
|
|
1019
|
+
}), va = {
|
|
1010
1020
|
instrumentation: it.NOOP,
|
|
1011
1021
|
staleEntryThreshold: $.seconds(20)
|
|
1012
1022
|
};
|
|
1013
|
-
class
|
|
1023
|
+
class so {
|
|
1014
1024
|
constructor(e) {
|
|
1015
1025
|
c(this, "data", []);
|
|
1016
1026
|
c(this, "props");
|
|
1017
|
-
this.props = { ...
|
|
1027
|
+
this.props = { ...va, ...e };
|
|
1018
1028
|
}
|
|
1019
1029
|
/**
|
|
1020
1030
|
* Writes the given series to the cache, merging written series with any
|
|
1021
1031
|
* existing series in the cache.
|
|
1022
1032
|
*/
|
|
1023
1033
|
write(e) {
|
|
1024
|
-
e.length !== 0 && (e.forEach((t) => this.writeOne(
|
|
1034
|
+
e.length !== 0 && (e.forEach((t) => this.writeOne(xa(t))), this.checkIntegrity(e));
|
|
1025
1035
|
}
|
|
1026
1036
|
/**
|
|
1027
1037
|
* Executes a 'dirty' read of the cache, retrieving any series in the cache that overlap
|
|
@@ -1045,7 +1055,7 @@ class Ji {
|
|
|
1045
1055
|
* @returns metrics about the garbage collection.
|
|
1046
1056
|
*/
|
|
1047
1057
|
gc() {
|
|
1048
|
-
const { staleEntryThreshold: e } = this.props, t =
|
|
1058
|
+
const { staleEntryThreshold: e } = this.props, t = ba(), s = this.data.filter((r) => {
|
|
1049
1059
|
const a = r.data.refCount > 0 || F.since(r.addedAt).lessThan(e);
|
|
1050
1060
|
return a || (t.purgedBytes = t.purgedBytes.add(r.data.byteCapacity)), a;
|
|
1051
1061
|
});
|
|
@@ -1081,15 +1091,17 @@ class Ji {
|
|
|
1081
1091
|
const {
|
|
1082
1092
|
instrumentation: { L: t }
|
|
1083
1093
|
} = this.props, s = this.data.map((a) => a.data.alignmentBounds);
|
|
1084
|
-
if (s.some(
|
|
1094
|
+
if (s.some(
|
|
1095
|
+
(a, i) => s.some((o, l) => i === l ? !1 : R.overlapsWith(a, o))
|
|
1096
|
+
))
|
|
1085
1097
|
throw t.debug("Cache is in an invalid state - bounds overlap!", () => ({
|
|
1086
1098
|
write: e.map((a) => a.digest),
|
|
1087
1099
|
cacheContents: this.data.map((a) => a.data.digest)
|
|
1088
1100
|
})), new Error("Invalid state");
|
|
1089
1101
|
}
|
|
1090
1102
|
}
|
|
1091
|
-
const
|
|
1092
|
-
class
|
|
1103
|
+
const ro = 100, ao = 1e6, io = 1e4, oo = 100, lo = 40;
|
|
1104
|
+
class co {
|
|
1093
1105
|
/**
|
|
1094
1106
|
* @constructor
|
|
1095
1107
|
*
|
|
@@ -1136,7 +1148,7 @@ class ao {
|
|
|
1136
1148
|
this.counter++;
|
|
1137
1149
|
const r = this.props.dataType.isVariable, a = this.props.dataType.equals(nt.TIMESTAMP);
|
|
1138
1150
|
return gs.alloc({
|
|
1139
|
-
capacity: r ? e *
|
|
1151
|
+
capacity: r ? e * lo : e,
|
|
1140
1152
|
dataType: r ? this.props.dataType : nt.FLOAT32,
|
|
1141
1153
|
timeRange: s.range(F.MAX),
|
|
1142
1154
|
sampleOffset: a ? BigInt(s.valueOf()) : 0,
|
|
@@ -1155,7 +1167,7 @@ class ao {
|
|
|
1155
1167
|
const l = this.now();
|
|
1156
1168
|
this.curr.timeRange.end = l, s.flushed.push(this.curr), this.curr = this.allocate(t, e.alignment, l), s.allocated.push(this.curr);
|
|
1157
1169
|
}
|
|
1158
|
-
const r =
|
|
1170
|
+
const r = xa(e, this.curr.sampleOffset), a = this.curr.write(r);
|
|
1159
1171
|
if (a === e.length)
|
|
1160
1172
|
return this.updateAvgRate(e), s;
|
|
1161
1173
|
const i = this.now();
|
|
@@ -1171,9 +1183,9 @@ class ao {
|
|
|
1171
1183
|
nextBufferSize() {
|
|
1172
1184
|
const { dynamicBufferSize: e } = this.props;
|
|
1173
1185
|
if (typeof e == "number") return e;
|
|
1174
|
-
if (this.totalWrites <
|
|
1175
|
-
const t =
|
|
1176
|
-
return Math.round(Math.max(Math.min(t,
|
|
1186
|
+
if (this.totalWrites < oo) return io;
|
|
1187
|
+
const t = Ti.roundToNearestMagnitude(this.avgRate * e.seconds);
|
|
1188
|
+
return Math.round(Math.max(Math.min(t, ao), ro));
|
|
1177
1189
|
}
|
|
1178
1190
|
/**
|
|
1179
1191
|
* Closes the cache and releases all resources associated with it. After close()
|
|
@@ -1183,14 +1195,14 @@ class ao {
|
|
|
1183
1195
|
this.curr = null;
|
|
1184
1196
|
}
|
|
1185
1197
|
}
|
|
1186
|
-
class
|
|
1198
|
+
class uo {
|
|
1187
1199
|
constructor(e) {
|
|
1188
1200
|
c(this, "channel");
|
|
1189
1201
|
c(this, "closed", !1);
|
|
1190
1202
|
c(this, "ins");
|
|
1191
1203
|
c(this, "static");
|
|
1192
1204
|
c(this, "dynamic");
|
|
1193
|
-
this.channel = e.channel, this.ins = e.instrumentation ?? it.NOOP, this.static = new
|
|
1205
|
+
this.channel = e.channel, this.ins = e.instrumentation ?? it.NOOP, this.static = new so(e), this.dynamic = new co({
|
|
1194
1206
|
dynamicBufferSize: e.dynamicBufferSize,
|
|
1195
1207
|
dataType: this.channel.dataType
|
|
1196
1208
|
});
|
|
@@ -1221,22 +1233,22 @@ class io {
|
|
|
1221
1233
|
gc() {
|
|
1222
1234
|
return this.closed ? (this.ins.L.warn(
|
|
1223
1235
|
`Ignoring attempted garbage collection on a closed cache for channel ${this.channel.name}`
|
|
1224
|
-
), { purgedSeries: 0, purgedBytes:
|
|
1236
|
+
), { purgedSeries: 0, purgedBytes: Mr.bytes(0) }) : this.static.gc();
|
|
1225
1237
|
}
|
|
1226
1238
|
close() {
|
|
1227
1239
|
this.closed = !0, this.dynamic.close(), this.static.close();
|
|
1228
1240
|
}
|
|
1229
1241
|
}
|
|
1230
|
-
const
|
|
1231
|
-
class
|
|
1242
|
+
const ho = Or.seconds(60);
|
|
1243
|
+
class fo {
|
|
1232
1244
|
constructor(e) {
|
|
1233
1245
|
c(this, "props");
|
|
1234
1246
|
c(this, "cache", /* @__PURE__ */ new Map());
|
|
1235
1247
|
c(this, "gcInterval");
|
|
1236
1248
|
this.props = {
|
|
1237
|
-
dynamicBufferSize:
|
|
1238
|
-
gcInterval:
|
|
1239
|
-
...
|
|
1249
|
+
dynamicBufferSize: ho,
|
|
1250
|
+
gcInterval: Or.seconds(30),
|
|
1251
|
+
...va,
|
|
1240
1252
|
...e
|
|
1241
1253
|
}, this.gcInterval = setInterval(() => this.gc(), this.props.gcInterval.milliseconds);
|
|
1242
1254
|
}
|
|
@@ -1251,7 +1263,7 @@ class lo {
|
|
|
1251
1263
|
if (a.length === 0) return;
|
|
1252
1264
|
const i = await s.retrieve(a);
|
|
1253
1265
|
for (const o of i) {
|
|
1254
|
-
const l = new
|
|
1266
|
+
const l = new uo({
|
|
1255
1267
|
channel: o,
|
|
1256
1268
|
dynamicBufferSize: r,
|
|
1257
1269
|
instrumentation: t.child(`cache-${o.name}-${o.key}`)
|
|
@@ -1276,7 +1288,7 @@ class lo {
|
|
|
1276
1288
|
instrumentation: { L: e }
|
|
1277
1289
|
} = this.props;
|
|
1278
1290
|
e.info("starting garbage collection");
|
|
1279
|
-
const t =
|
|
1291
|
+
const t = ba();
|
|
1280
1292
|
this.cache.forEach((s) => {
|
|
1281
1293
|
const r = s.gc();
|
|
1282
1294
|
t.purgedSeries += r.purgedSeries, t.purgedBytes = t.purgedBytes.add(r.purgedBytes);
|
|
@@ -1317,7 +1329,7 @@ class on {
|
|
|
1317
1329
|
}
|
|
1318
1330
|
}
|
|
1319
1331
|
const Un = (n) => n.map((e) => e.digest);
|
|
1320
|
-
class
|
|
1332
|
+
class po {
|
|
1321
1333
|
constructor(e) {
|
|
1322
1334
|
c(this, "props");
|
|
1323
1335
|
c(this, "debouncedRead");
|
|
@@ -1330,7 +1342,7 @@ class co {
|
|
|
1330
1342
|
instrumentation: it.NOOP,
|
|
1331
1343
|
batchDebounce: $.milliseconds(50),
|
|
1332
1344
|
...e
|
|
1333
|
-
}, this.debouncedRead =
|
|
1345
|
+
}, this.debouncedRead = pi(() => {
|
|
1334
1346
|
this.batchRead();
|
|
1335
1347
|
}, this.props.batchDebounce.milliseconds);
|
|
1336
1348
|
}
|
|
@@ -1424,7 +1436,7 @@ class co {
|
|
|
1424
1436
|
});
|
|
1425
1437
|
}
|
|
1426
1438
|
}
|
|
1427
|
-
class
|
|
1439
|
+
class go {
|
|
1428
1440
|
constructor(e) {
|
|
1429
1441
|
c(this, "props");
|
|
1430
1442
|
c(this, "mu", new ms());
|
|
@@ -1519,7 +1531,7 @@ class uo {
|
|
|
1519
1531
|
(e = this.streamer) == null || e.close(), this.streamerRunLoop != null && await this.streamerRunLoop, this.closed = !0;
|
|
1520
1532
|
}
|
|
1521
1533
|
}
|
|
1522
|
-
class
|
|
1534
|
+
class mo {
|
|
1523
1535
|
constructor() {
|
|
1524
1536
|
c(this, "key", Gn.id());
|
|
1525
1537
|
c(this, "_client", null);
|
|
@@ -1545,11 +1557,11 @@ class ho {
|
|
|
1545
1557
|
await this.client.close();
|
|
1546
1558
|
}
|
|
1547
1559
|
get client() {
|
|
1548
|
-
if (this._client == null) throw new
|
|
1560
|
+
if (this._client == null) throw new Dr("No cluster has been connected");
|
|
1549
1561
|
return this._client;
|
|
1550
1562
|
}
|
|
1551
1563
|
}
|
|
1552
|
-
class
|
|
1564
|
+
class yo {
|
|
1553
1565
|
constructor({ instrumentation: e, core: t }) {
|
|
1554
1566
|
c(this, "key", Gn.id());
|
|
1555
1567
|
c(this, "ins");
|
|
@@ -1557,14 +1569,14 @@ class fo {
|
|
|
1557
1569
|
c(this, "reader");
|
|
1558
1570
|
c(this, "streamer");
|
|
1559
1571
|
c(this, "channelRetriever");
|
|
1560
|
-
this.ins = e ?? it.NOOP, this.channelRetriever = t.channels.createDebouncedBatchRetriever(10), this.cache = new
|
|
1572
|
+
this.ins = e ?? it.NOOP, this.channelRetriever = t.channels.createDebouncedBatchRetriever(10), this.cache = new fo({
|
|
1561
1573
|
channelRetriever: this.channelRetriever,
|
|
1562
1574
|
instrumentation: this.ins.child("cache")
|
|
1563
|
-
}), this.reader = new
|
|
1575
|
+
}), this.reader = new po({
|
|
1564
1576
|
cache: this.cache,
|
|
1565
1577
|
readRemote: async (s, r) => await t.read(s, r),
|
|
1566
1578
|
instrumentation: this.ins.child("reader")
|
|
1567
|
-
}), this.streamer = new
|
|
1579
|
+
}), this.streamer = new go({
|
|
1568
1580
|
cache: this.cache,
|
|
1569
1581
|
core: t,
|
|
1570
1582
|
instrumentation: this.ins.child("streamer")
|
|
@@ -1573,7 +1585,7 @@ class fo {
|
|
|
1573
1585
|
/** Implements ChannelClient. */
|
|
1574
1586
|
async retrieveChannel(e) {
|
|
1575
1587
|
const t = await this.channelRetriever.retrieve([e]);
|
|
1576
|
-
if (t.length === 0) throw new
|
|
1588
|
+
if (t.length === 0) throw new Dr(`channel ${e} not found`);
|
|
1577
1589
|
return t[0];
|
|
1578
1590
|
}
|
|
1579
1591
|
/** Implements ChannelClient */
|
|
@@ -1588,11 +1600,11 @@ class fo {
|
|
|
1588
1600
|
this.ins.L.info("closing client", { key: this.key }), await this.streamer.close(), this.cache.close();
|
|
1589
1601
|
}
|
|
1590
1602
|
}
|
|
1591
|
-
const
|
|
1603
|
+
const Ta = d.object({}), $t = class $t extends wt {
|
|
1592
1604
|
constructor() {
|
|
1593
1605
|
super(...arguments);
|
|
1594
|
-
c(this, "client", new
|
|
1595
|
-
c(this, "factory",
|
|
1606
|
+
c(this, "client", new mo());
|
|
1607
|
+
c(this, "factory", wa(this.client));
|
|
1596
1608
|
c(this, "schema", $t.stateZ);
|
|
1597
1609
|
c(this, "prevClient", null);
|
|
1598
1610
|
}
|
|
@@ -1617,14 +1629,14 @@ const ba = d.object({}), $t = class $t extends wt {
|
|
|
1617
1629
|
}
|
|
1618
1630
|
async afterUpdate() {
|
|
1619
1631
|
const t = Oe(this.ctx), s = Le(this.ctx, "telem");
|
|
1620
|
-
this.internal.instrumentation = s.child("provider"), t !== this.prevClient && (s.L.info("swapping client", { client: t }), t == null ? await this.client.swap(null) : await this.client.swap(new
|
|
1632
|
+
this.internal.instrumentation = s.child("provider"), t !== this.prevClient && (s.L.info("swapping client", { client: t }), t == null ? await this.client.swap(null) : await this.client.swap(new yo({ core: t, instrumentation: s })), this.prevClient = t, Ur(this.ctx, this));
|
|
1621
1633
|
}
|
|
1622
1634
|
};
|
|
1623
|
-
c($t, "TYPE", "TelemProvider"), c($t, "stateZ",
|
|
1635
|
+
c($t, "TYPE", "TelemProvider"), c($t, "stateZ", Ta);
|
|
1624
1636
|
let be = $t;
|
|
1625
|
-
const
|
|
1637
|
+
const wo = {
|
|
1626
1638
|
[be.TYPE]: be
|
|
1627
|
-
},
|
|
1639
|
+
}, rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1628
1640
|
__proto__: null,
|
|
1629
1641
|
AbstractSink: An,
|
|
1630
1642
|
AbstractSource: Q,
|
|
@@ -1632,94 +1644,94 @@ const po = {
|
|
|
1632
1644
|
BaseProvider: be,
|
|
1633
1645
|
BooleanStatus: Wt,
|
|
1634
1646
|
ChannelData: ge,
|
|
1635
|
-
CompoundTelemFactory:
|
|
1647
|
+
CompoundTelemFactory: ya,
|
|
1636
1648
|
FixedNumber: we,
|
|
1637
1649
|
FixedString: xe,
|
|
1638
1650
|
IterativeSeries: ye,
|
|
1639
1651
|
Mean: Ht,
|
|
1640
|
-
MultiSourceTransformer:
|
|
1641
|
-
NoopFactory:
|
|
1642
|
-
PipelineFactory:
|
|
1643
|
-
REGISTRY:
|
|
1644
|
-
RemoteFactory:
|
|
1652
|
+
MultiSourceTransformer: Jr,
|
|
1653
|
+
NoopFactory: Hr,
|
|
1654
|
+
PipelineFactory: sa,
|
|
1655
|
+
REGISTRY: wo,
|
|
1656
|
+
RemoteFactory: ia,
|
|
1645
1657
|
RollingAverage: Gt,
|
|
1646
1658
|
SetPoint: qt,
|
|
1647
1659
|
SinkPipeline: fe,
|
|
1648
1660
|
SourcePipeline: de,
|
|
1649
|
-
StaticFactory:
|
|
1661
|
+
StaticFactory: oa,
|
|
1650
1662
|
StreamChannelData: me,
|
|
1651
1663
|
StreamChannelValue: pe,
|
|
1652
1664
|
StringifyNumber: Xt,
|
|
1653
|
-
TransformerFactory:
|
|
1654
|
-
UnarySinkTransformer:
|
|
1665
|
+
TransformerFactory: da,
|
|
1666
|
+
UnarySinkTransformer: ta,
|
|
1655
1667
|
UnarySourceTransformer: Ae,
|
|
1656
1668
|
WithinBounds: jt,
|
|
1657
1669
|
booleanSinkSpecZ: Dn,
|
|
1658
|
-
booleanSinkTransformerSpecZ:
|
|
1670
|
+
booleanSinkTransformerSpecZ: Yi,
|
|
1659
1671
|
booleanSourceSpecZ: Cs,
|
|
1660
|
-
booleanSourceTransformerSpecZ:
|
|
1661
|
-
booleanStatus:
|
|
1662
|
-
booleanStatusProps:
|
|
1663
|
-
channelData:
|
|
1664
|
-
colorSourceSpecZ:
|
|
1665
|
-
factory:
|
|
1666
|
-
fixedArray:
|
|
1667
|
-
fixedNumber:
|
|
1668
|
-
fixedNumberPropsZ:
|
|
1672
|
+
booleanSourceTransformerSpecZ: Ai,
|
|
1673
|
+
booleanStatus: Ji,
|
|
1674
|
+
booleanStatusProps: pa,
|
|
1675
|
+
channelData: Ui,
|
|
1676
|
+
colorSourceSpecZ: Kr,
|
|
1677
|
+
factory: wa,
|
|
1678
|
+
fixedArray: Fi,
|
|
1679
|
+
fixedNumber: qi,
|
|
1680
|
+
fixedNumberPropsZ: ca,
|
|
1669
1681
|
fixedSeriesPropsZ: Rs,
|
|
1670
|
-
fixedString:
|
|
1671
|
-
fixedStringPropsZ:
|
|
1672
|
-
iterativeArray:
|
|
1673
|
-
iterativeSeriesPropsZ:
|
|
1674
|
-
mean:
|
|
1682
|
+
fixedString: ji,
|
|
1683
|
+
fixedStringPropsZ: ua,
|
|
1684
|
+
iterativeArray: zi,
|
|
1685
|
+
iterativeSeriesPropsZ: la,
|
|
1686
|
+
mean: Qi,
|
|
1675
1687
|
noopBooleanSinkSpec: Mn,
|
|
1676
1688
|
noopBooleanSourceSpec: Ss,
|
|
1677
|
-
noopColorSourceSpec:
|
|
1678
|
-
noopNumericSinkSpec:
|
|
1679
|
-
noopNumericSourceSpec:
|
|
1680
|
-
noopSeriesSourceSpec:
|
|
1689
|
+
noopColorSourceSpec: qr,
|
|
1690
|
+
noopNumericSinkSpec: Zr,
|
|
1691
|
+
noopNumericSourceSpec: Fr,
|
|
1692
|
+
noopSeriesSourceSpec: jr,
|
|
1681
1693
|
noopStatusSourceSpec: Es,
|
|
1682
|
-
noopStringSourceSpec:
|
|
1683
|
-
numberSinkSpecZ:
|
|
1684
|
-
numberSourceSpecZ:
|
|
1685
|
-
providerStateZ:
|
|
1686
|
-
registerFactory:
|
|
1687
|
-
rollingAverage:
|
|
1688
|
-
rollingAverageProps:
|
|
1694
|
+
noopStringSourceSpec: zr,
|
|
1695
|
+
numberSinkSpecZ: Vr,
|
|
1696
|
+
numberSourceSpecZ: Gr,
|
|
1697
|
+
providerStateZ: Ta,
|
|
1698
|
+
registerFactory: $r,
|
|
1699
|
+
rollingAverage: eo,
|
|
1700
|
+
rollingAverageProps: ma,
|
|
1689
1701
|
seriesSourceSpecZ: rn,
|
|
1690
|
-
setProvider:
|
|
1691
|
-
setpoint:
|
|
1692
|
-
sinkPipeline:
|
|
1693
|
-
sinkPipelinePropsZ:
|
|
1702
|
+
setProvider: Ur,
|
|
1703
|
+
setpoint: Gi,
|
|
1704
|
+
sinkPipeline: _i,
|
|
1705
|
+
sinkPipelinePropsZ: ra,
|
|
1694
1706
|
sinkSpecZ: On,
|
|
1695
|
-
sinkTransformerSpecZ:
|
|
1696
|
-
sourcePipeline:
|
|
1697
|
-
sourcePipelinePropsZ:
|
|
1707
|
+
sinkTransformerSpecZ: Xr,
|
|
1708
|
+
sourcePipeline: Li,
|
|
1709
|
+
sourcePipelinePropsZ: na,
|
|
1698
1710
|
sourceSpecZ: Ct,
|
|
1699
|
-
sourceTransformerSpecZ:
|
|
1711
|
+
sourceTransformerSpecZ: Wr,
|
|
1700
1712
|
specZ: Ye,
|
|
1701
1713
|
statusSourceSpecZ: ks,
|
|
1702
|
-
streamChannelData:
|
|
1703
|
-
streamChannelValue:
|
|
1704
|
-
streamChannelValuePropsZ:
|
|
1705
|
-
stringSourceSpecZ:
|
|
1706
|
-
stringifyNumber:
|
|
1707
|
-
stringifyNumberProps:
|
|
1714
|
+
streamChannelData: $i,
|
|
1715
|
+
streamChannelValue: Zi,
|
|
1716
|
+
streamChannelValuePropsZ: aa,
|
|
1717
|
+
stringSourceSpecZ: Qr,
|
|
1718
|
+
stringifyNumber: to,
|
|
1719
|
+
stringifyNumberProps: ga,
|
|
1708
1720
|
useProvider: Rn,
|
|
1709
1721
|
useSink: De,
|
|
1710
1722
|
useSource: st,
|
|
1711
|
-
withinBounds:
|
|
1712
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1723
|
+
withinBounds: Ki
|
|
1724
|
+
}, Symbol.toStringTag, { value: "Module" })), Sa = d.object({
|
|
1713
1725
|
key: d.string(),
|
|
1714
1726
|
size: d.number(),
|
|
1715
1727
|
order: d.number(),
|
|
1716
1728
|
loc: Tt.outer
|
|
1717
1729
|
});
|
|
1718
|
-
d.record(
|
|
1719
|
-
const
|
|
1730
|
+
d.record(Sa);
|
|
1731
|
+
const It = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order), xo = (n, e, t) => {
|
|
1720
1732
|
const s = e[n];
|
|
1721
1733
|
if (s == null) return g.ZERO;
|
|
1722
|
-
const r = Tt.construct(s.loc), a =
|
|
1734
|
+
const r = Tt.construct(s.loc), a = It(r, e), i = Tt.construct(at.swap(Tt.direction(r))), o = It(i, e), l = a.findIndex(({ key: p }) => p === n), u = a.slice(0, l).reduce((p, { size: m }) => p + m, 0), h = o.reduce((p, { size: m }) => p + m, 0);
|
|
1723
1735
|
switch (r) {
|
|
1724
1736
|
case "left":
|
|
1725
1737
|
return g.translate(f.topLeft(t), [u, h]);
|
|
@@ -1733,8 +1745,8 @@ const Bt = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
|
|
|
1733
1745
|
-u - s.size
|
|
1734
1746
|
]);
|
|
1735
1747
|
}
|
|
1736
|
-
},
|
|
1737
|
-
const t =
|
|
1748
|
+
}, bo = (n, e) => {
|
|
1749
|
+
const t = It("left", n), s = It("right", n), r = It("top", n), a = It("bottom", n), i = t.reduce((h, { size: p }) => h + p, 0), o = s.reduce((h, { size: p }) => h + p, 0), l = r.reduce((h, { size: p }) => h + p, 0), u = a.reduce((h, { size: p }) => h + p, 0);
|
|
1738
1750
|
return f.construct(
|
|
1739
1751
|
g.translate(f.topLeft(e), { x: i, y: l }),
|
|
1740
1752
|
f.width(e) - i - o,
|
|
@@ -1744,12 +1756,12 @@ const Bt = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
|
|
|
1744
1756
|
function qe(n, e) {
|
|
1745
1757
|
return n == null || e == null ? NaN : n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
|
|
1746
1758
|
}
|
|
1747
|
-
function
|
|
1759
|
+
function vo(n, e) {
|
|
1748
1760
|
return n == null || e == null ? NaN : e < n ? -1 : e > n ? 1 : e >= n ? 0 : NaN;
|
|
1749
1761
|
}
|
|
1750
1762
|
function Ms(n) {
|
|
1751
1763
|
let e, t, s;
|
|
1752
|
-
n.length !== 2 ? (e = qe, t = (o, l) => qe(n(o), l), s = (o, l) => n(o) - l) : (e = n === qe || n ===
|
|
1764
|
+
n.length !== 2 ? (e = qe, t = (o, l) => qe(n(o), l), s = (o, l) => n(o) - l) : (e = n === qe || n === vo ? n : To, t = n, s = n);
|
|
1753
1765
|
function r(o, l, u = 0, h = o.length) {
|
|
1754
1766
|
if (u < h) {
|
|
1755
1767
|
if (e(l, l) !== 0) return h;
|
|
@@ -1776,21 +1788,21 @@ function Ms(n) {
|
|
|
1776
1788
|
}
|
|
1777
1789
|
return { left: r, center: i, right: a };
|
|
1778
1790
|
}
|
|
1779
|
-
function
|
|
1791
|
+
function To() {
|
|
1780
1792
|
return 0;
|
|
1781
1793
|
}
|
|
1782
|
-
function
|
|
1794
|
+
function So(n) {
|
|
1783
1795
|
return n === null ? NaN : +n;
|
|
1784
1796
|
}
|
|
1785
|
-
const
|
|
1786
|
-
Ms(
|
|
1787
|
-
const
|
|
1797
|
+
const Eo = Ms(qe), Co = Eo.right;
|
|
1798
|
+
Ms(So).center;
|
|
1799
|
+
const ko = Math.sqrt(50), Po = Math.sqrt(10), Ro = Math.sqrt(2);
|
|
1788
1800
|
function ln(n, e, t) {
|
|
1789
|
-
const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), a = s / Math.pow(10, r), i = a >=
|
|
1801
|
+
const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), a = s / Math.pow(10, r), i = a >= ko ? 10 : a >= Po ? 5 : a >= Ro ? 2 : 1;
|
|
1790
1802
|
let o, l, u;
|
|
1791
1803
|
return r < 0 ? (u = Math.pow(10, -r) / i, o = Math.round(n * u), l = Math.round(e * u), o / u < n && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, r) * i, o = Math.round(n / u), l = Math.round(e / u), o * u < n && ++o, l * u > e && --l), l < o && 0.5 <= t && t < 2 ? ln(n, e, t * 2) : [o, l, u];
|
|
1792
1804
|
}
|
|
1793
|
-
function
|
|
1805
|
+
function Mo(n, e, t) {
|
|
1794
1806
|
if (e = +e, n = +n, t = +t, !(t > 0)) return [];
|
|
1795
1807
|
if (n === e) return [n];
|
|
1796
1808
|
const s = e < n, [r, a, i] = s ? ln(e, n, t) : ln(n, e, t);
|
|
@@ -1811,7 +1823,7 @@ function Jn(n, e, t) {
|
|
|
1811
1823
|
const s = e < n, r = s ? Qn(e, n, t) : Qn(n, e, t);
|
|
1812
1824
|
return (s ? -1 : 1) * (r < 0 ? 1 / -r : r);
|
|
1813
1825
|
}
|
|
1814
|
-
function
|
|
1826
|
+
function Ea(n, e) {
|
|
1815
1827
|
switch (arguments.length) {
|
|
1816
1828
|
case 0:
|
|
1817
1829
|
break;
|
|
@@ -1827,14 +1839,14 @@ function Ta(n, e) {
|
|
|
1827
1839
|
function Os(n, e, t) {
|
|
1828
1840
|
n.prototype = e.prototype = t, t.constructor = n;
|
|
1829
1841
|
}
|
|
1830
|
-
function
|
|
1842
|
+
function Ca(n, e) {
|
|
1831
1843
|
var t = Object.create(n.prototype);
|
|
1832
1844
|
for (var s in e) t[s] = e[s];
|
|
1833
1845
|
return t;
|
|
1834
1846
|
}
|
|
1835
1847
|
function _e() {
|
|
1836
1848
|
}
|
|
1837
|
-
var ve = 0.7, cn = 1 / ve, zt = "\\s*([+-]?\\d+)\\s*", Te = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
1849
|
+
var ve = 0.7, cn = 1 / ve, zt = "\\s*([+-]?\\d+)\\s*", Te = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Oo = /^#([0-9a-f]{3,8})$/, Do = new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`), Yo = new RegExp(`^rgb\\(${lt},${lt},${lt}\\)$`), Ao = new RegExp(`^rgba\\(${zt},${zt},${zt},${Te}\\)$`), Lo = new RegExp(`^rgba\\(${lt},${lt},${lt},${Te}\\)$`), _o = new RegExp(`^hsl\\(${Te},${lt},${lt}\\)$`), No = new RegExp(`^hsla\\(${Te},${lt},${lt},${Te}\\)$`), qs = {
|
|
1838
1850
|
aliceblue: 15792383,
|
|
1839
1851
|
antiquewhite: 16444375,
|
|
1840
1852
|
aqua: 65535,
|
|
@@ -1994,26 +2006,26 @@ Os(_e, Se, {
|
|
|
1994
2006
|
hex: js,
|
|
1995
2007
|
// Deprecated! Use color.formatHex.
|
|
1996
2008
|
formatHex: js,
|
|
1997
|
-
formatHex8:
|
|
1998
|
-
formatHsl:
|
|
2009
|
+
formatHex8: Io,
|
|
2010
|
+
formatHsl: Bo,
|
|
1999
2011
|
formatRgb: Hs,
|
|
2000
2012
|
toString: Hs
|
|
2001
2013
|
});
|
|
2002
2014
|
function js() {
|
|
2003
2015
|
return this.rgb().formatHex();
|
|
2004
2016
|
}
|
|
2005
|
-
function
|
|
2017
|
+
function Io() {
|
|
2006
2018
|
return this.rgb().formatHex8();
|
|
2007
2019
|
}
|
|
2008
|
-
function
|
|
2009
|
-
return
|
|
2020
|
+
function Bo() {
|
|
2021
|
+
return ka(this).formatHsl();
|
|
2010
2022
|
}
|
|
2011
2023
|
function Hs() {
|
|
2012
2024
|
return this.rgb().formatRgb();
|
|
2013
2025
|
}
|
|
2014
2026
|
function Se(n) {
|
|
2015
2027
|
var e, t;
|
|
2016
|
-
return n = (n + "").trim().toLowerCase(), (e =
|
|
2028
|
+
return n = (n + "").trim().toLowerCase(), (e = Oo.exec(n)) ? (t = e[1].length, e = parseInt(e[1], 16), t === 6 ? Ws(e) : t === 3 ? new H(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : t === 8 ? Ue(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : t === 4 ? Ue(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Do.exec(n)) ? new H(e[1], e[2], e[3], 1) : (e = Yo.exec(n)) ? new H(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Ao.exec(n)) ? Ue(e[1], e[2], e[3], e[4]) : (e = Lo.exec(n)) ? Ue(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = _o.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, 1) : (e = No.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, e[4]) : qs.hasOwnProperty(n) ? Ws(qs[n]) : n === "transparent" ? new H(NaN, NaN, NaN, 0) : null;
|
|
2017
2029
|
}
|
|
2018
2030
|
function Ws(n) {
|
|
2019
2031
|
return new H(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
@@ -2021,16 +2033,16 @@ function Ws(n) {
|
|
|
2021
2033
|
function Ue(n, e, t, s) {
|
|
2022
2034
|
return s <= 0 && (n = e = t = NaN), new H(n, e, t, s);
|
|
2023
2035
|
}
|
|
2024
|
-
function
|
|
2036
|
+
function Uo(n) {
|
|
2025
2037
|
return n instanceof _e || (n = Se(n)), n ? (n = n.rgb(), new H(n.r, n.g, n.b, n.opacity)) : new H();
|
|
2026
2038
|
}
|
|
2027
2039
|
function ts(n, e, t, s) {
|
|
2028
|
-
return arguments.length === 1 ?
|
|
2040
|
+
return arguments.length === 1 ? Uo(n) : new H(n, e, t, s ?? 1);
|
|
2029
2041
|
}
|
|
2030
2042
|
function H(n, e, t, s) {
|
|
2031
2043
|
this.r = +n, this.g = +e, this.b = +t, this.opacity = +s;
|
|
2032
2044
|
}
|
|
2033
|
-
Os(H, ts,
|
|
2045
|
+
Os(H, ts, Ca(_e, {
|
|
2034
2046
|
brighter(n) {
|
|
2035
2047
|
return n = n == null ? cn : Math.pow(cn, n), new H(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
2036
2048
|
},
|
|
@@ -2049,14 +2061,14 @@ Os(H, ts, Sa(_e, {
|
|
|
2049
2061
|
hex: Xs,
|
|
2050
2062
|
// Deprecated! Use color.formatHex.
|
|
2051
2063
|
formatHex: Xs,
|
|
2052
|
-
formatHex8:
|
|
2064
|
+
formatHex8: $o,
|
|
2053
2065
|
formatRgb: Gs,
|
|
2054
2066
|
toString: Gs
|
|
2055
2067
|
}));
|
|
2056
2068
|
function Xs() {
|
|
2057
2069
|
return `#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}`;
|
|
2058
2070
|
}
|
|
2059
|
-
function
|
|
2071
|
+
function $o() {
|
|
2060
2072
|
return `#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}${Rt((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2061
2073
|
}
|
|
2062
2074
|
function Gs() {
|
|
@@ -2075,7 +2087,7 @@ function Rt(n) {
|
|
|
2075
2087
|
function Vs(n, e, t, s) {
|
|
2076
2088
|
return s <= 0 ? n = e = t = NaN : t <= 0 || t >= 1 ? n = e = NaN : e <= 0 && (n = NaN), new tt(n, e, t, s);
|
|
2077
2089
|
}
|
|
2078
|
-
function
|
|
2090
|
+
function ka(n) {
|
|
2079
2091
|
if (n instanceof tt) return new tt(n.h, n.s, n.l, n.opacity);
|
|
2080
2092
|
if (n instanceof _e || (n = Se(n)), !n) return new tt();
|
|
2081
2093
|
if (n instanceof tt) return n;
|
|
@@ -2083,13 +2095,13 @@ function Ea(n) {
|
|
|
2083
2095
|
var e = n.r / 255, t = n.g / 255, s = n.b / 255, r = Math.min(e, t, s), a = Math.max(e, t, s), i = NaN, o = a - r, l = (a + r) / 2;
|
|
2084
2096
|
return o ? (e === a ? i = (t - s) / o + (t < s) * 6 : t === a ? i = (s - e) / o + 2 : i = (e - t) / o + 4, o /= l < 0.5 ? a + r : 2 - a - r, i *= 60) : o = l > 0 && l < 1 ? 0 : i, new tt(i, o, l, n.opacity);
|
|
2085
2097
|
}
|
|
2086
|
-
function
|
|
2087
|
-
return arguments.length === 1 ?
|
|
2098
|
+
function Zo(n, e, t, s) {
|
|
2099
|
+
return arguments.length === 1 ? ka(n) : new tt(n, e, t, s ?? 1);
|
|
2088
2100
|
}
|
|
2089
2101
|
function tt(n, e, t, s) {
|
|
2090
2102
|
this.h = +n, this.s = +e, this.l = +t, this.opacity = +s;
|
|
2091
2103
|
}
|
|
2092
|
-
Os(tt,
|
|
2104
|
+
Os(tt, Zo, Ca(_e, {
|
|
2093
2105
|
brighter(n) {
|
|
2094
2106
|
return n = n == null ? cn : Math.pow(cn, n), new tt(this.h, this.s, this.l * n, this.opacity);
|
|
2095
2107
|
},
|
|
@@ -2126,36 +2138,36 @@ function $n(n, e, t) {
|
|
|
2126
2138
|
return (n < 60 ? e + (t - e) * n / 60 : n < 180 ? t : n < 240 ? e + (t - e) * (240 - n) / 60 : e) * 255;
|
|
2127
2139
|
}
|
|
2128
2140
|
const Ds = (n) => () => n;
|
|
2129
|
-
function
|
|
2141
|
+
function Fo(n, e) {
|
|
2130
2142
|
return function(t) {
|
|
2131
2143
|
return n + t * e;
|
|
2132
2144
|
};
|
|
2133
2145
|
}
|
|
2134
|
-
function
|
|
2146
|
+
function zo(n, e, t) {
|
|
2135
2147
|
return n = Math.pow(n, t), e = Math.pow(e, t) - n, t = 1 / t, function(s) {
|
|
2136
2148
|
return Math.pow(n + s * e, t);
|
|
2137
2149
|
};
|
|
2138
2150
|
}
|
|
2139
|
-
function
|
|
2140
|
-
return (n = +n) == 1 ?
|
|
2141
|
-
return t - e ?
|
|
2151
|
+
function qo(n) {
|
|
2152
|
+
return (n = +n) == 1 ? Pa : function(e, t) {
|
|
2153
|
+
return t - e ? zo(e, t, n) : Ds(isNaN(e) ? t : e);
|
|
2142
2154
|
};
|
|
2143
2155
|
}
|
|
2144
|
-
function
|
|
2156
|
+
function Pa(n, e) {
|
|
2145
2157
|
var t = e - n;
|
|
2146
|
-
return t ?
|
|
2158
|
+
return t ? Fo(n, t) : Ds(isNaN(n) ? e : n);
|
|
2147
2159
|
}
|
|
2148
2160
|
const Qs = function n(e) {
|
|
2149
|
-
var t =
|
|
2161
|
+
var t = qo(e);
|
|
2150
2162
|
function s(r, a) {
|
|
2151
|
-
var i = t((r = ts(r)).r, (a = ts(a)).r), o = t(r.g, a.g), l = t(r.b, a.b), u =
|
|
2163
|
+
var i = t((r = ts(r)).r, (a = ts(a)).r), o = t(r.g, a.g), l = t(r.b, a.b), u = Pa(r.opacity, a.opacity);
|
|
2152
2164
|
return function(h) {
|
|
2153
2165
|
return r.r = i(h), r.g = o(h), r.b = l(h), r.opacity = u(h), r + "";
|
|
2154
2166
|
};
|
|
2155
2167
|
}
|
|
2156
2168
|
return s.gamma = n, s;
|
|
2157
2169
|
}(1);
|
|
2158
|
-
function
|
|
2170
|
+
function jo(n, e) {
|
|
2159
2171
|
e || (e = []);
|
|
2160
2172
|
var t = n ? Math.min(e.length, n.length) : 0, s = e.slice(), r;
|
|
2161
2173
|
return function(a) {
|
|
@@ -2163,10 +2175,10 @@ function Zo(n, e) {
|
|
|
2163
2175
|
return s;
|
|
2164
2176
|
};
|
|
2165
2177
|
}
|
|
2166
|
-
function
|
|
2178
|
+
function Ho(n) {
|
|
2167
2179
|
return ArrayBuffer.isView(n) && !(n instanceof DataView);
|
|
2168
2180
|
}
|
|
2169
|
-
function
|
|
2181
|
+
function Wo(n, e) {
|
|
2170
2182
|
var t = e ? e.length : 0, s = n ? Math.min(t, n.length) : 0, r = new Array(s), a = new Array(t), i;
|
|
2171
2183
|
for (i = 0; i < s; ++i) r[i] = Ys(n[i], e[i]);
|
|
2172
2184
|
for (; i < t; ++i) a[i] = e[i];
|
|
@@ -2175,7 +2187,7 @@ function zo(n, e) {
|
|
|
2175
2187
|
return a;
|
|
2176
2188
|
};
|
|
2177
2189
|
}
|
|
2178
|
-
function
|
|
2190
|
+
function Xo(n, e) {
|
|
2179
2191
|
var t = /* @__PURE__ */ new Date();
|
|
2180
2192
|
return n = +n, e = +e, function(s) {
|
|
2181
2193
|
return t.setTime(n * (1 - s) + e * s), t;
|
|
@@ -2186,7 +2198,7 @@ function hn(n, e) {
|
|
|
2186
2198
|
return n * (1 - t) + e * t;
|
|
2187
2199
|
};
|
|
2188
2200
|
}
|
|
2189
|
-
function
|
|
2201
|
+
function Go(n, e) {
|
|
2190
2202
|
var t = {}, s = {}, r;
|
|
2191
2203
|
(n === null || typeof n != "object") && (n = {}), (e === null || typeof e != "object") && (e = {});
|
|
2192
2204
|
for (r in e)
|
|
@@ -2197,80 +2209,80 @@ function jo(n, e) {
|
|
|
2197
2209
|
};
|
|
2198
2210
|
}
|
|
2199
2211
|
var es = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Zn = new RegExp(es.source, "g");
|
|
2200
|
-
function
|
|
2212
|
+
function Vo(n) {
|
|
2201
2213
|
return function() {
|
|
2202
2214
|
return n;
|
|
2203
2215
|
};
|
|
2204
2216
|
}
|
|
2205
|
-
function
|
|
2217
|
+
function Ko(n) {
|
|
2206
2218
|
return function(e) {
|
|
2207
2219
|
return n(e) + "";
|
|
2208
2220
|
};
|
|
2209
2221
|
}
|
|
2210
|
-
function
|
|
2222
|
+
function Qo(n, e) {
|
|
2211
2223
|
var t = es.lastIndex = Zn.lastIndex = 0, s, r, a, i = -1, o = [], l = [];
|
|
2212
2224
|
for (n = n + "", e = e + ""; (s = es.exec(n)) && (r = Zn.exec(e)); )
|
|
2213
2225
|
(a = r.index) > t && (a = e.slice(t, a), o[i] ? o[i] += a : o[++i] = a), (s = s[0]) === (r = r[0]) ? o[i] ? o[i] += r : o[++i] = r : (o[++i] = null, l.push({ i, x: hn(s, r) })), t = Zn.lastIndex;
|
|
2214
|
-
return t < e.length && (a = e.slice(t), o[i] ? o[i] += a : o[++i] = a), o.length < 2 ? l[0] ?
|
|
2226
|
+
return t < e.length && (a = e.slice(t), o[i] ? o[i] += a : o[++i] = a), o.length < 2 ? l[0] ? Ko(l[0].x) : Vo(e) : (e = l.length, function(u) {
|
|
2215
2227
|
for (var h = 0, p; h < e; ++h) o[(p = l[h]).i] = p.x(u);
|
|
2216
2228
|
return o.join("");
|
|
2217
2229
|
});
|
|
2218
2230
|
}
|
|
2219
2231
|
function Ys(n, e) {
|
|
2220
2232
|
var t = typeof e, s;
|
|
2221
|
-
return e == null || t === "boolean" ? Ds(e) : (t === "number" ? hn : t === "string" ? (s = Se(e)) ? (e = s, Qs) :
|
|
2233
|
+
return e == null || t === "boolean" ? Ds(e) : (t === "number" ? hn : t === "string" ? (s = Se(e)) ? (e = s, Qs) : Qo : e instanceof Se ? Qs : e instanceof Date ? Xo : Ho(e) ? jo : Array.isArray(e) ? Wo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Go : hn)(n, e);
|
|
2222
2234
|
}
|
|
2223
|
-
function
|
|
2235
|
+
function Jo(n, e) {
|
|
2224
2236
|
return n = +n, e = +e, function(t) {
|
|
2225
2237
|
return Math.round(n * (1 - t) + e * t);
|
|
2226
2238
|
};
|
|
2227
2239
|
}
|
|
2228
|
-
function
|
|
2240
|
+
function tl(n) {
|
|
2229
2241
|
return function() {
|
|
2230
2242
|
return n;
|
|
2231
2243
|
};
|
|
2232
2244
|
}
|
|
2233
|
-
function
|
|
2245
|
+
function el(n) {
|
|
2234
2246
|
return +n;
|
|
2235
2247
|
}
|
|
2236
2248
|
var Js = [0, 1];
|
|
2237
|
-
function
|
|
2249
|
+
function Bt(n) {
|
|
2238
2250
|
return n;
|
|
2239
2251
|
}
|
|
2240
2252
|
function ns(n, e) {
|
|
2241
2253
|
return (e -= n = +n) ? function(t) {
|
|
2242
2254
|
return (t - n) / e;
|
|
2243
|
-
} :
|
|
2255
|
+
} : tl(isNaN(e) ? NaN : 0.5);
|
|
2244
2256
|
}
|
|
2245
|
-
function
|
|
2257
|
+
function nl(n, e) {
|
|
2246
2258
|
var t;
|
|
2247
2259
|
return n > e && (t = n, n = e, e = t), function(s) {
|
|
2248
2260
|
return Math.max(n, Math.min(e, s));
|
|
2249
2261
|
};
|
|
2250
2262
|
}
|
|
2251
|
-
function
|
|
2263
|
+
function sl(n, e, t) {
|
|
2252
2264
|
var s = n[0], r = n[1], a = e[0], i = e[1];
|
|
2253
2265
|
return r < s ? (s = ns(r, s), a = t(i, a)) : (s = ns(s, r), a = t(a, i)), function(o) {
|
|
2254
2266
|
return a(s(o));
|
|
2255
2267
|
};
|
|
2256
2268
|
}
|
|
2257
|
-
function
|
|
2269
|
+
function rl(n, e, t) {
|
|
2258
2270
|
var s = Math.min(n.length, e.length) - 1, r = new Array(s), a = new Array(s), i = -1;
|
|
2259
2271
|
for (n[s] < n[0] && (n = n.slice().reverse(), e = e.slice().reverse()); ++i < s; )
|
|
2260
2272
|
r[i] = ns(n[i], n[i + 1]), a[i] = t(e[i], e[i + 1]);
|
|
2261
2273
|
return function(o) {
|
|
2262
|
-
var l =
|
|
2274
|
+
var l = Co(n, o, 1, s) - 1;
|
|
2263
2275
|
return a[l](r[l](o));
|
|
2264
2276
|
};
|
|
2265
2277
|
}
|
|
2266
|
-
function
|
|
2278
|
+
function Ra(n, e) {
|
|
2267
2279
|
return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
2268
2280
|
}
|
|
2269
|
-
function
|
|
2270
|
-
var n = Js, e = Js, t = Ys, s, r, a, i =
|
|
2281
|
+
function al() {
|
|
2282
|
+
var n = Js, e = Js, t = Ys, s, r, a, i = Bt, o, l, u;
|
|
2271
2283
|
function h() {
|
|
2272
2284
|
var m = Math.min(n.length, e.length);
|
|
2273
|
-
return i !==
|
|
2285
|
+
return i !== Bt && (i = nl(n[0], n[m - 1])), o = m > 2 ? rl : sl, l = u = null, p;
|
|
2274
2286
|
}
|
|
2275
2287
|
function p(m) {
|
|
2276
2288
|
return m == null || isNaN(m = +m) ? a : (l || (l = o(n.map(s), e, t)))(s(i(m)));
|
|
@@ -2278,13 +2290,13 @@ function el() {
|
|
|
2278
2290
|
return p.invert = function(m) {
|
|
2279
2291
|
return i(r((u || (u = o(e, n.map(s), hn)))(m)));
|
|
2280
2292
|
}, p.domain = function(m) {
|
|
2281
|
-
return arguments.length ? (n = Array.from(m,
|
|
2293
|
+
return arguments.length ? (n = Array.from(m, el), h()) : n.slice();
|
|
2282
2294
|
}, p.range = function(m) {
|
|
2283
2295
|
return arguments.length ? (e = Array.from(m), h()) : e.slice();
|
|
2284
2296
|
}, p.rangeRound = function(m) {
|
|
2285
|
-
return e = Array.from(m), t =
|
|
2297
|
+
return e = Array.from(m), t = Jo, h();
|
|
2286
2298
|
}, p.clamp = function(m) {
|
|
2287
|
-
return arguments.length ? (i = m ? !0 :
|
|
2299
|
+
return arguments.length ? (i = m ? !0 : Bt, h()) : i !== Bt;
|
|
2288
2300
|
}, p.interpolate = function(m) {
|
|
2289
2301
|
return arguments.length ? (t = m, h()) : t;
|
|
2290
2302
|
}, p.unknown = function(m) {
|
|
@@ -2293,10 +2305,10 @@ function el() {
|
|
|
2293
2305
|
return s = m, r = x, h();
|
|
2294
2306
|
};
|
|
2295
2307
|
}
|
|
2296
|
-
function
|
|
2297
|
-
return
|
|
2308
|
+
function Ma() {
|
|
2309
|
+
return al()(Bt, Bt);
|
|
2298
2310
|
}
|
|
2299
|
-
function
|
|
2311
|
+
function il(n) {
|
|
2300
2312
|
return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
|
|
2301
2313
|
}
|
|
2302
2314
|
function dn(n, e) {
|
|
@@ -2310,23 +2322,23 @@ function dn(n, e) {
|
|
|
2310
2322
|
function Vt(n) {
|
|
2311
2323
|
return n = dn(Math.abs(n)), n ? n[1] : NaN;
|
|
2312
2324
|
}
|
|
2313
|
-
function
|
|
2325
|
+
function ol(n, e) {
|
|
2314
2326
|
return function(t, s) {
|
|
2315
2327
|
for (var r = t.length, a = [], i = 0, o = n[0], l = 0; r > 0 && o > 0 && (l + o + 1 > s && (o = Math.max(1, s - l)), a.push(t.substring(r -= o, r + o)), !((l += o + 1) > s)); )
|
|
2316
2328
|
o = n[i = (i + 1) % n.length];
|
|
2317
2329
|
return a.reverse().join(e);
|
|
2318
2330
|
};
|
|
2319
2331
|
}
|
|
2320
|
-
function
|
|
2332
|
+
function ll(n) {
|
|
2321
2333
|
return function(e) {
|
|
2322
2334
|
return e.replace(/[0-9]/g, function(t) {
|
|
2323
2335
|
return n[+t];
|
|
2324
2336
|
});
|
|
2325
2337
|
};
|
|
2326
2338
|
}
|
|
2327
|
-
var
|
|
2339
|
+
var cl = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2328
2340
|
function fn(n) {
|
|
2329
|
-
if (!(e =
|
|
2341
|
+
if (!(e = cl.exec(n))) throw new Error("invalid format: " + n);
|
|
2330
2342
|
var e;
|
|
2331
2343
|
return new As({
|
|
2332
2344
|
fill: e[1],
|
|
@@ -2348,7 +2360,7 @@ function As(n) {
|
|
|
2348
2360
|
As.prototype.toString = function() {
|
|
2349
2361
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
2350
2362
|
};
|
|
2351
|
-
function
|
|
2363
|
+
function ul(n) {
|
|
2352
2364
|
t: for (var e = n.length, t = 1, s = -1, r; t < e; ++t)
|
|
2353
2365
|
switch (n[t]) {
|
|
2354
2366
|
case ".":
|
|
@@ -2364,11 +2376,11 @@ function il(n) {
|
|
|
2364
2376
|
}
|
|
2365
2377
|
return s > 0 ? n.slice(0, s) + n.slice(r + 1) : n;
|
|
2366
2378
|
}
|
|
2367
|
-
var
|
|
2368
|
-
function
|
|
2379
|
+
var Oa;
|
|
2380
|
+
function hl(n, e) {
|
|
2369
2381
|
var t = dn(n, e);
|
|
2370
2382
|
if (!t) return n + "";
|
|
2371
|
-
var s = t[0], r = t[1], a = r - (
|
|
2383
|
+
var s = t[0], r = t[1], a = r - (Oa = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, i = s.length;
|
|
2372
2384
|
return a === i ? s : a > i ? s + new Array(a - i + 1).join("0") : a > 0 ? s.slice(0, a) + "." + s.slice(a) : "0." + new Array(1 - a).join("0") + dn(n, Math.max(0, e + a - 1))[0];
|
|
2373
2385
|
}
|
|
2374
2386
|
function tr(n, e) {
|
|
@@ -2381,14 +2393,14 @@ const er = {
|
|
|
2381
2393
|
"%": (n, e) => (n * 100).toFixed(e),
|
|
2382
2394
|
b: (n) => Math.round(n).toString(2),
|
|
2383
2395
|
c: (n) => n + "",
|
|
2384
|
-
d:
|
|
2396
|
+
d: il,
|
|
2385
2397
|
e: (n, e) => n.toExponential(e),
|
|
2386
2398
|
f: (n, e) => n.toFixed(e),
|
|
2387
2399
|
g: (n, e) => n.toPrecision(e),
|
|
2388
2400
|
o: (n) => Math.round(n).toString(8),
|
|
2389
2401
|
p: (n, e) => tr(n * 100, e),
|
|
2390
2402
|
r: tr,
|
|
2391
|
-
s:
|
|
2403
|
+
s: hl,
|
|
2392
2404
|
X: (n) => Math.round(n).toString(16).toUpperCase(),
|
|
2393
2405
|
x: (n) => Math.round(n).toString(16)
|
|
2394
2406
|
};
|
|
@@ -2396,23 +2408,23 @@ function nr(n) {
|
|
|
2396
2408
|
return n;
|
|
2397
2409
|
}
|
|
2398
2410
|
var sr = Array.prototype.map, rr = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
2399
|
-
function
|
|
2400
|
-
var e = n.grouping === void 0 || n.thousands === void 0 ? nr :
|
|
2411
|
+
function dl(n) {
|
|
2412
|
+
var e = n.grouping === void 0 || n.thousands === void 0 ? nr : ol(sr.call(n.grouping, Number), n.thousands + ""), t = n.currency === void 0 ? "" : n.currency[0] + "", s = n.currency === void 0 ? "" : n.currency[1] + "", r = n.decimal === void 0 ? "." : n.decimal + "", a = n.numerals === void 0 ? nr : ll(sr.call(n.numerals, String)), i = n.percent === void 0 ? "%" : n.percent + "", o = n.minus === void 0 ? "−" : n.minus + "", l = n.nan === void 0 ? "NaN" : n.nan + "";
|
|
2401
2413
|
function u(p) {
|
|
2402
2414
|
p = fn(p);
|
|
2403
|
-
var m = p.fill, x = p.align, b = p.sign, T = p.symbol, C = p.zero, O = p.width, N = p.comma, M = p.precision, L = p.trim,
|
|
2404
|
-
|
|
2405
|
-
var v = T === "$" ? t : T === "#" && /[boxX]/.test(
|
|
2406
|
-
M = M === void 0 ? 6 : /[gprs]/.test(
|
|
2407
|
-
function
|
|
2408
|
-
var ct = v, q = U, bt,
|
|
2409
|
-
if (
|
|
2415
|
+
var m = p.fill, x = p.align, b = p.sign, T = p.symbol, C = p.zero, O = p.width, N = p.comma, M = p.precision, L = p.trim, B = p.type;
|
|
2416
|
+
B === "n" ? (N = !0, B = "g") : er[B] || (M === void 0 && (M = 12), L = !0, B = "g"), (C || m === "0" && x === "=") && (C = !0, m = "0", x = "=");
|
|
2417
|
+
var v = T === "$" ? t : T === "#" && /[boxX]/.test(B) ? "0" + B.toLowerCase() : "", U = T === "$" ? s : /[%p]/.test(B) ? i : "", kt = er[B], Nn = /[defgprs%]/.test(B);
|
|
2418
|
+
M = M === void 0 ? 6 : /[gprs]/.test(B) ? Math.max(1, Math.min(21, M)) : Math.max(0, Math.min(20, M));
|
|
2419
|
+
function Ie(E) {
|
|
2420
|
+
var ct = v, q = U, bt, Be, At;
|
|
2421
|
+
if (B === "c")
|
|
2410
2422
|
q = kt(E) + q, E = "";
|
|
2411
2423
|
else {
|
|
2412
2424
|
E = +E;
|
|
2413
2425
|
var Lt = E < 0 || 1 / E < 0;
|
|
2414
|
-
if (E = isNaN(E) ? l : kt(Math.abs(E), M), L && (E =
|
|
2415
|
-
for (bt = -1,
|
|
2426
|
+
if (E = isNaN(E) ? l : kt(Math.abs(E), M), L && (E = ul(E)), Lt && +E == 0 && b !== "+" && (Lt = !1), ct = (Lt ? b === "(" ? b : o : b === "-" || b === "(" ? "" : b) + ct, q = (B === "s" ? rr[8 + Oa / 3] : "") + q + (Lt && b === "(" ? ")" : ""), Nn) {
|
|
2427
|
+
for (bt = -1, Be = E.length; ++bt < Be; )
|
|
2416
2428
|
if (At = E.charCodeAt(bt), 48 > At || At > 57) {
|
|
2417
2429
|
q = (At === 46 ? r + E.slice(bt + 1) : E.slice(bt)) + q, E = E.slice(0, bt);
|
|
2418
2430
|
break;
|
|
@@ -2437,9 +2449,9 @@ function ll(n) {
|
|
|
2437
2449
|
}
|
|
2438
2450
|
return a(E);
|
|
2439
2451
|
}
|
|
2440
|
-
return
|
|
2452
|
+
return Ie.toString = function() {
|
|
2441
2453
|
return p + "";
|
|
2442
|
-
},
|
|
2454
|
+
}, Ie;
|
|
2443
2455
|
}
|
|
2444
2456
|
function h(p, m) {
|
|
2445
2457
|
var x = u((p = fn(p), p.type = "f", p)), b = Math.max(-8, Math.min(8, Math.floor(Vt(m) / 3))) * 3, T = Math.pow(10, -b), C = rr[8 + b / 3];
|
|
@@ -2452,55 +2464,55 @@ function ll(n) {
|
|
|
2452
2464
|
formatPrefix: h
|
|
2453
2465
|
};
|
|
2454
2466
|
}
|
|
2455
|
-
var Ze,
|
|
2456
|
-
|
|
2467
|
+
var Ze, Da, Ya;
|
|
2468
|
+
fl({
|
|
2457
2469
|
thousands: ",",
|
|
2458
2470
|
grouping: [3],
|
|
2459
2471
|
currency: ["$", ""]
|
|
2460
2472
|
});
|
|
2461
|
-
function
|
|
2462
|
-
return Ze =
|
|
2473
|
+
function fl(n) {
|
|
2474
|
+
return Ze = dl(n), Da = Ze.format, Ya = Ze.formatPrefix, Ze;
|
|
2463
2475
|
}
|
|
2464
|
-
function
|
|
2476
|
+
function pl(n) {
|
|
2465
2477
|
return Math.max(0, -Vt(Math.abs(n)));
|
|
2466
2478
|
}
|
|
2467
|
-
function
|
|
2479
|
+
function gl(n, e) {
|
|
2468
2480
|
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Vt(e) / 3))) * 3 - Vt(Math.abs(n)));
|
|
2469
2481
|
}
|
|
2470
|
-
function
|
|
2482
|
+
function ml(n, e) {
|
|
2471
2483
|
return n = Math.abs(n), e = Math.abs(e) - n, Math.max(0, Vt(e) - Vt(n)) + 1;
|
|
2472
2484
|
}
|
|
2473
|
-
function
|
|
2485
|
+
function yl(n, e, t, s) {
|
|
2474
2486
|
var r = Jn(n, e, t), a;
|
|
2475
2487
|
switch (s = fn(s ?? ",f"), s.type) {
|
|
2476
2488
|
case "s": {
|
|
2477
2489
|
var i = Math.max(Math.abs(n), Math.abs(e));
|
|
2478
|
-
return s.precision == null && !isNaN(a =
|
|
2490
|
+
return s.precision == null && !isNaN(a = gl(r, i)) && (s.precision = a), Ya(s, i);
|
|
2479
2491
|
}
|
|
2480
2492
|
case "":
|
|
2481
2493
|
case "e":
|
|
2482
2494
|
case "g":
|
|
2483
2495
|
case "p":
|
|
2484
2496
|
case "r": {
|
|
2485
|
-
s.precision == null && !isNaN(a =
|
|
2497
|
+
s.precision == null && !isNaN(a = ml(r, Math.max(Math.abs(n), Math.abs(e)))) && (s.precision = a - (s.type === "e"));
|
|
2486
2498
|
break;
|
|
2487
2499
|
}
|
|
2488
2500
|
case "f":
|
|
2489
2501
|
case "%": {
|
|
2490
|
-
s.precision == null && !isNaN(a =
|
|
2502
|
+
s.precision == null && !isNaN(a = pl(r)) && (s.precision = a - (s.type === "%") * 2);
|
|
2491
2503
|
break;
|
|
2492
2504
|
}
|
|
2493
2505
|
}
|
|
2494
|
-
return
|
|
2506
|
+
return Da(s);
|
|
2495
2507
|
}
|
|
2496
|
-
function
|
|
2508
|
+
function wl(n) {
|
|
2497
2509
|
var e = n.domain;
|
|
2498
2510
|
return n.ticks = function(t) {
|
|
2499
2511
|
var s = e();
|
|
2500
|
-
return
|
|
2512
|
+
return Mo(s[0], s[s.length - 1], t ?? 10);
|
|
2501
2513
|
}, n.tickFormat = function(t, s) {
|
|
2502
2514
|
var r = e();
|
|
2503
|
-
return
|
|
2515
|
+
return yl(r[0], r[r.length - 1], t ?? 10, s);
|
|
2504
2516
|
}, n.nice = function(t) {
|
|
2505
2517
|
t == null && (t = 10);
|
|
2506
2518
|
var s = e(), r = 0, a = s.length - 1, i = s[r], o = s[a], l, u, h = 10;
|
|
@@ -2518,13 +2530,13 @@ function pl(n) {
|
|
|
2518
2530
|
return n;
|
|
2519
2531
|
}, n;
|
|
2520
2532
|
}
|
|
2521
|
-
function
|
|
2522
|
-
var n =
|
|
2533
|
+
function Aa() {
|
|
2534
|
+
var n = Ma();
|
|
2523
2535
|
return n.copy = function() {
|
|
2524
|
-
return
|
|
2525
|
-
},
|
|
2536
|
+
return Ra(n, Aa());
|
|
2537
|
+
}, Ea.apply(n, arguments), wl(n);
|
|
2526
2538
|
}
|
|
2527
|
-
function
|
|
2539
|
+
function xl(n, e) {
|
|
2528
2540
|
n = n.slice();
|
|
2529
2541
|
var t = 0, s = n.length - 1, r = n[t], a = n[s], i;
|
|
2530
2542
|
return a < r && (i = t, t = s, s = i, i = r, r = a, a = i), n[t] = e.floor(r), n[s] = e.ceil(a), n;
|
|
@@ -2579,24 +2591,24 @@ const _s = A((n) => {
|
|
|
2579
2591
|
n.setTime(+n + e * K);
|
|
2580
2592
|
}, (n, e) => (e - n) / K, (n) => n.getMinutes());
|
|
2581
2593
|
_s.range;
|
|
2582
|
-
const
|
|
2594
|
+
const bl = A((n) => {
|
|
2583
2595
|
n.setUTCSeconds(0, 0);
|
|
2584
2596
|
}, (n, e) => {
|
|
2585
2597
|
n.setTime(+n + e * K);
|
|
2586
2598
|
}, (n, e) => (e - n) / K, (n) => n.getUTCMinutes());
|
|
2587
|
-
|
|
2599
|
+
bl.range;
|
|
2588
2600
|
const Ns = A((n) => {
|
|
2589
2601
|
n.setTime(n - n.getMilliseconds() - n.getSeconds() * ht - n.getMinutes() * K);
|
|
2590
2602
|
}, (n, e) => {
|
|
2591
2603
|
n.setTime(+n + e * dt);
|
|
2592
2604
|
}, (n, e) => (e - n) / dt, (n) => n.getHours());
|
|
2593
2605
|
Ns.range;
|
|
2594
|
-
const
|
|
2606
|
+
const vl = A((n) => {
|
|
2595
2607
|
n.setUTCMinutes(0, 0, 0);
|
|
2596
2608
|
}, (n, e) => {
|
|
2597
2609
|
n.setTime(+n + e * dt);
|
|
2598
2610
|
}, (n, e) => (e - n) / dt, (n) => n.getUTCHours());
|
|
2599
|
-
|
|
2611
|
+
vl.range;
|
|
2600
2612
|
const Ne = A(
|
|
2601
2613
|
(n) => n.setHours(0, 0, 0, 0),
|
|
2602
2614
|
(n, e) => n.setDate(n.getDate() + e),
|
|
@@ -2604,18 +2616,18 @@ const Ne = A(
|
|
|
2604
2616
|
(n) => n.getDate() - 1
|
|
2605
2617
|
);
|
|
2606
2618
|
Ne.range;
|
|
2607
|
-
const
|
|
2619
|
+
const Is = A((n) => {
|
|
2608
2620
|
n.setUTCHours(0, 0, 0, 0);
|
|
2609
2621
|
}, (n, e) => {
|
|
2610
2622
|
n.setUTCDate(n.getUTCDate() + e);
|
|
2611
2623
|
}, (n, e) => (e - n) / gt, (n) => n.getUTCDate() - 1);
|
|
2612
|
-
|
|
2613
|
-
const
|
|
2624
|
+
Is.range;
|
|
2625
|
+
const Tl = A((n) => {
|
|
2614
2626
|
n.setUTCHours(0, 0, 0, 0);
|
|
2615
2627
|
}, (n, e) => {
|
|
2616
2628
|
n.setUTCDate(n.getUTCDate() + e);
|
|
2617
2629
|
}, (n, e) => (e - n) / gt, (n) => Math.floor(n / gt));
|
|
2618
|
-
|
|
2630
|
+
Tl.range;
|
|
2619
2631
|
function Dt(n) {
|
|
2620
2632
|
return A((e) => {
|
|
2621
2633
|
e.setDate(e.getDate() - (e.getDay() + 7 - n) % 7), e.setHours(0, 0, 0, 0);
|
|
@@ -2623,14 +2635,14 @@ function Dt(n) {
|
|
|
2623
2635
|
e.setDate(e.getDate() + t * 7);
|
|
2624
2636
|
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * K) / Ls);
|
|
2625
2637
|
}
|
|
2626
|
-
const Ln = Dt(0), gn = Dt(1),
|
|
2638
|
+
const Ln = Dt(0), gn = Dt(1), Sl = Dt(2), El = Dt(3), Kt = Dt(4), Cl = Dt(5), kl = Dt(6);
|
|
2627
2639
|
Ln.range;
|
|
2628
2640
|
gn.range;
|
|
2629
|
-
|
|
2630
|
-
|
|
2641
|
+
Sl.range;
|
|
2642
|
+
El.range;
|
|
2631
2643
|
Kt.range;
|
|
2632
|
-
|
|
2633
|
-
|
|
2644
|
+
Cl.range;
|
|
2645
|
+
kl.range;
|
|
2634
2646
|
function Yt(n) {
|
|
2635
2647
|
return A((e) => {
|
|
2636
2648
|
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - n) % 7), e.setUTCHours(0, 0, 0, 0);
|
|
@@ -2638,26 +2650,26 @@ function Yt(n) {
|
|
|
2638
2650
|
e.setUTCDate(e.getUTCDate() + t * 7);
|
|
2639
2651
|
}, (e, t) => (t - e) / Ls);
|
|
2640
2652
|
}
|
|
2641
|
-
const
|
|
2642
|
-
|
|
2653
|
+
const La = Yt(0), mn = Yt(1), Pl = Yt(2), Rl = Yt(3), Qt = Yt(4), Ml = Yt(5), Ol = Yt(6);
|
|
2654
|
+
La.range;
|
|
2643
2655
|
mn.range;
|
|
2644
|
-
|
|
2645
|
-
|
|
2656
|
+
Pl.range;
|
|
2657
|
+
Rl.range;
|
|
2646
2658
|
Qt.range;
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
const
|
|
2659
|
+
Ml.range;
|
|
2660
|
+
Ol.range;
|
|
2661
|
+
const Bs = A((n) => {
|
|
2650
2662
|
n.setDate(1), n.setHours(0, 0, 0, 0);
|
|
2651
2663
|
}, (n, e) => {
|
|
2652
2664
|
n.setMonth(n.getMonth() + e);
|
|
2653
2665
|
}, (n, e) => e.getMonth() - n.getMonth() + (e.getFullYear() - n.getFullYear()) * 12, (n) => n.getMonth());
|
|
2654
|
-
|
|
2655
|
-
const
|
|
2666
|
+
Bs.range;
|
|
2667
|
+
const Dl = A((n) => {
|
|
2656
2668
|
n.setUTCDate(1), n.setUTCHours(0, 0, 0, 0);
|
|
2657
2669
|
}, (n, e) => {
|
|
2658
2670
|
n.setUTCMonth(n.getUTCMonth() + e);
|
|
2659
2671
|
}, (n, e) => e.getUTCMonth() - n.getUTCMonth() + (e.getUTCFullYear() - n.getUTCFullYear()) * 12, (n) => n.getUTCMonth());
|
|
2660
|
-
|
|
2672
|
+
Dl.range;
|
|
2661
2673
|
const mt = A((n) => {
|
|
2662
2674
|
n.setMonth(0, 1), n.setHours(0, 0, 0, 0);
|
|
2663
2675
|
}, (n, e) => {
|
|
@@ -2680,7 +2692,7 @@ Ot.every = (n) => !isFinite(n = Math.floor(n)) || !(n > 0) ? null : A((e) => {
|
|
|
2680
2692
|
e.setUTCFullYear(e.getUTCFullYear() + t * n);
|
|
2681
2693
|
});
|
|
2682
2694
|
Ot.range;
|
|
2683
|
-
function
|
|
2695
|
+
function Yl(n, e, t, s, r, a) {
|
|
2684
2696
|
const i = [
|
|
2685
2697
|
[Ut, 1, ht],
|
|
2686
2698
|
[Ut, 5, 5 * ht],
|
|
@@ -2716,7 +2728,7 @@ function Rl(n, e, t, s, r, a) {
|
|
|
2716
2728
|
}
|
|
2717
2729
|
return [o, l];
|
|
2718
2730
|
}
|
|
2719
|
-
const [
|
|
2731
|
+
const [Al, Ll] = Yl(mt, Bs, Ln, Ne, Ns, _s);
|
|
2720
2732
|
function jn(n) {
|
|
2721
2733
|
if (0 <= n.y && n.y < 100) {
|
|
2722
2734
|
var e = new Date(-1, n.m, n.d, n.H, n.M, n.S, n.L);
|
|
@@ -2734,106 +2746,106 @@ function Hn(n) {
|
|
|
2734
2746
|
function te(n, e, t) {
|
|
2735
2747
|
return { y: n, m: e, d: t, H: 0, M: 0, S: 0, L: 0 };
|
|
2736
2748
|
}
|
|
2737
|
-
function
|
|
2749
|
+
function _l(n) {
|
|
2738
2750
|
var e = n.dateTime, t = n.date, s = n.time, r = n.periods, a = n.days, i = n.shortDays, o = n.months, l = n.shortMonths, u = ee(r), h = ne(r), p = ee(a), m = ne(a), x = ee(i), b = ne(i), T = ee(o), C = ne(o), O = ee(l), N = ne(l), M = {
|
|
2739
2751
|
a: Lt,
|
|
2740
2752
|
A: _t,
|
|
2741
2753
|
b: J,
|
|
2742
|
-
B:
|
|
2754
|
+
B: Ja,
|
|
2743
2755
|
c: null,
|
|
2744
2756
|
d: hr,
|
|
2745
2757
|
e: hr,
|
|
2746
|
-
f:
|
|
2747
|
-
g:
|
|
2748
|
-
G:
|
|
2749
|
-
H:
|
|
2750
|
-
I:
|
|
2751
|
-
j:
|
|
2752
|
-
L:
|
|
2753
|
-
m:
|
|
2754
|
-
M:
|
|
2755
|
-
p:
|
|
2756
|
-
q:
|
|
2758
|
+
f: rc,
|
|
2759
|
+
g: pc,
|
|
2760
|
+
G: mc,
|
|
2761
|
+
H: ec,
|
|
2762
|
+
I: nc,
|
|
2763
|
+
j: sc,
|
|
2764
|
+
L: _a,
|
|
2765
|
+
m: ac,
|
|
2766
|
+
M: ic,
|
|
2767
|
+
p: ti,
|
|
2768
|
+
q: ei,
|
|
2757
2769
|
Q: pr,
|
|
2758
2770
|
s: gr,
|
|
2759
|
-
S:
|
|
2760
|
-
u:
|
|
2761
|
-
U:
|
|
2762
|
-
V:
|
|
2763
|
-
w:
|
|
2764
|
-
W:
|
|
2771
|
+
S: oc,
|
|
2772
|
+
u: lc,
|
|
2773
|
+
U: cc,
|
|
2774
|
+
V: uc,
|
|
2775
|
+
w: hc,
|
|
2776
|
+
W: dc,
|
|
2765
2777
|
x: null,
|
|
2766
2778
|
X: null,
|
|
2767
|
-
y:
|
|
2768
|
-
Y:
|
|
2769
|
-
Z:
|
|
2779
|
+
y: fc,
|
|
2780
|
+
Y: gc,
|
|
2781
|
+
Z: yc,
|
|
2770
2782
|
"%": fr
|
|
2771
2783
|
}, L = {
|
|
2772
|
-
a:
|
|
2773
|
-
A:
|
|
2774
|
-
b:
|
|
2775
|
-
B:
|
|
2784
|
+
a: ni,
|
|
2785
|
+
A: si,
|
|
2786
|
+
b: ri,
|
|
2787
|
+
B: ai,
|
|
2776
2788
|
c: null,
|
|
2777
2789
|
d: dr,
|
|
2778
2790
|
e: dr,
|
|
2779
|
-
f:
|
|
2780
|
-
g:
|
|
2781
|
-
G:
|
|
2782
|
-
H:
|
|
2783
|
-
I:
|
|
2784
|
-
j:
|
|
2785
|
-
L:
|
|
2786
|
-
m:
|
|
2787
|
-
M:
|
|
2788
|
-
p:
|
|
2789
|
-
q:
|
|
2791
|
+
f: vc,
|
|
2792
|
+
g: Dc,
|
|
2793
|
+
G: Ac,
|
|
2794
|
+
H: wc,
|
|
2795
|
+
I: xc,
|
|
2796
|
+
j: bc,
|
|
2797
|
+
L: Ia,
|
|
2798
|
+
m: Tc,
|
|
2799
|
+
M: Sc,
|
|
2800
|
+
p: ii,
|
|
2801
|
+
q: oi,
|
|
2790
2802
|
Q: pr,
|
|
2791
2803
|
s: gr,
|
|
2792
|
-
S:
|
|
2793
|
-
u:
|
|
2794
|
-
U:
|
|
2795
|
-
V:
|
|
2796
|
-
w:
|
|
2797
|
-
W:
|
|
2804
|
+
S: Ec,
|
|
2805
|
+
u: Cc,
|
|
2806
|
+
U: kc,
|
|
2807
|
+
V: Pc,
|
|
2808
|
+
w: Rc,
|
|
2809
|
+
W: Mc,
|
|
2798
2810
|
x: null,
|
|
2799
2811
|
X: null,
|
|
2800
|
-
y:
|
|
2801
|
-
Y:
|
|
2802
|
-
Z:
|
|
2812
|
+
y: Oc,
|
|
2813
|
+
Y: Yc,
|
|
2814
|
+
Z: Lc,
|
|
2803
2815
|
"%": fr
|
|
2804
|
-
},
|
|
2805
|
-
a:
|
|
2816
|
+
}, B = {
|
|
2817
|
+
a: Ie,
|
|
2806
2818
|
A: E,
|
|
2807
2819
|
b: ct,
|
|
2808
2820
|
B: q,
|
|
2809
2821
|
c: bt,
|
|
2810
2822
|
d: cr,
|
|
2811
2823
|
e: cr,
|
|
2812
|
-
f:
|
|
2824
|
+
f: Kl,
|
|
2813
2825
|
g: lr,
|
|
2814
2826
|
G: or,
|
|
2815
2827
|
H: ur,
|
|
2816
2828
|
I: ur,
|
|
2817
|
-
j:
|
|
2818
|
-
L:
|
|
2819
|
-
m:
|
|
2820
|
-
M:
|
|
2829
|
+
j: Wl,
|
|
2830
|
+
L: Vl,
|
|
2831
|
+
m: Hl,
|
|
2832
|
+
M: Xl,
|
|
2821
2833
|
p: Nn,
|
|
2822
|
-
q:
|
|
2823
|
-
Q:
|
|
2824
|
-
s:
|
|
2825
|
-
S:
|
|
2826
|
-
u:
|
|
2827
|
-
U:
|
|
2828
|
-
V:
|
|
2829
|
-
w:
|
|
2830
|
-
W:
|
|
2831
|
-
x:
|
|
2834
|
+
q: jl,
|
|
2835
|
+
Q: Jl,
|
|
2836
|
+
s: tc,
|
|
2837
|
+
S: Gl,
|
|
2838
|
+
u: $l,
|
|
2839
|
+
U: Zl,
|
|
2840
|
+
V: Fl,
|
|
2841
|
+
w: Ul,
|
|
2842
|
+
W: zl,
|
|
2843
|
+
x: Be,
|
|
2832
2844
|
X: At,
|
|
2833
2845
|
y: lr,
|
|
2834
2846
|
Y: or,
|
|
2835
|
-
Z:
|
|
2836
|
-
"%":
|
|
2847
|
+
Z: ql,
|
|
2848
|
+
"%": Ql
|
|
2837
2849
|
};
|
|
2838
2850
|
M.x = v(t, M), M.X = v(s, M), M.c = v(e, M), L.x = v(t, L), L.X = v(s, L), L.c = v(e, L);
|
|
2839
2851
|
function v(w, S) {
|
|
@@ -2852,7 +2864,7 @@ function Dl(n) {
|
|
|
2852
2864
|
if ("s" in y) return new Date(y.s * 1e3 + ("L" in y ? y.L : 0));
|
|
2853
2865
|
if (S && !("Z" in y) && (y.Z = 0), "p" in y && (y.H = y.H % 12 + y.p * 12), y.m === void 0 && (y.m = "q" in y ? y.q : 0), "V" in y) {
|
|
2854
2866
|
if (y.V < 1 || y.V > 53) return null;
|
|
2855
|
-
"w" in y || (y.w = 1), "Z" in y ? (D = Hn(te(y.y, 0, 1)), X = D.getUTCDay(), D = X > 4 || X === 0 ? mn.ceil(D) : mn(D), D =
|
|
2867
|
+
"w" in y || (y.w = 1), "Z" in y ? (D = Hn(te(y.y, 0, 1)), X = D.getUTCDay(), D = X > 4 || X === 0 ? mn.ceil(D) : mn(D), D = Is.offset(D, (y.V - 1) * 7), y.y = D.getUTCFullYear(), y.m = D.getUTCMonth(), y.d = D.getUTCDate() + (y.w + 6) % 7) : (D = jn(te(y.y, 0, 1)), X = D.getDay(), D = X > 4 || X === 0 ? gn.ceil(D) : gn(D), D = Ne.offset(D, (y.V - 1) * 7), y.y = D.getFullYear(), y.m = D.getMonth(), y.d = D.getDate() + (y.w + 6) % 7);
|
|
2856
2868
|
} else ("W" in y || "U" in y) && ("w" in y || (y.w = "u" in y ? y.u % 7 : "W" in y ? 1 : 0), X = "Z" in y ? Hn(te(y.y, 0, 1)).getUTCDay() : jn(te(y.y, 0, 1)).getDay(), y.m = 0, y.d = "W" in y ? (y.w + 6) % 7 + y.W * 7 - (X + 5) % 7 : y.w + y.U * 7 - (X + 6) % 7);
|
|
2857
2869
|
return "Z" in y ? (y.H += y.Z / 100 | 0, y.M += y.Z % 100, Hn(y)) : jn(y);
|
|
2858
2870
|
};
|
|
@@ -2861,7 +2873,7 @@ function Dl(n) {
|
|
|
2861
2873
|
for (var j = 0, D = S.length, X = k.length, G, Pt; j < D; ) {
|
|
2862
2874
|
if (y >= X) return -1;
|
|
2863
2875
|
if (G = S.charCodeAt(j++), G === 37) {
|
|
2864
|
-
if (G = S.charAt(j++), Pt =
|
|
2876
|
+
if (G = S.charAt(j++), Pt = B[G in ir ? S.charAt(j++) : G], !Pt || (y = Pt(w, k, y)) < 0) return -1;
|
|
2865
2877
|
} else if (G != k.charCodeAt(y++))
|
|
2866
2878
|
return -1;
|
|
2867
2879
|
}
|
|
@@ -2871,7 +2883,7 @@ function Dl(n) {
|
|
|
2871
2883
|
var y = u.exec(S.slice(k));
|
|
2872
2884
|
return y ? (w.p = h.get(y[0].toLowerCase()), k + y[0].length) : -1;
|
|
2873
2885
|
}
|
|
2874
|
-
function
|
|
2886
|
+
function Ie(w, S, k) {
|
|
2875
2887
|
var y = x.exec(S.slice(k));
|
|
2876
2888
|
return y ? (w.w = b.get(y[0].toLowerCase()), k + y[0].length) : -1;
|
|
2877
2889
|
}
|
|
@@ -2890,7 +2902,7 @@ function Dl(n) {
|
|
|
2890
2902
|
function bt(w, S, k) {
|
|
2891
2903
|
return kt(w, e, S, k);
|
|
2892
2904
|
}
|
|
2893
|
-
function
|
|
2905
|
+
function Be(w, S, k) {
|
|
2894
2906
|
return kt(w, t, S, k);
|
|
2895
2907
|
}
|
|
2896
2908
|
function At(w, S, k) {
|
|
@@ -2905,31 +2917,31 @@ function Dl(n) {
|
|
|
2905
2917
|
function J(w) {
|
|
2906
2918
|
return l[w.getMonth()];
|
|
2907
2919
|
}
|
|
2908
|
-
function
|
|
2920
|
+
function Ja(w) {
|
|
2909
2921
|
return o[w.getMonth()];
|
|
2910
2922
|
}
|
|
2911
|
-
function
|
|
2923
|
+
function ti(w) {
|
|
2912
2924
|
return r[+(w.getHours() >= 12)];
|
|
2913
2925
|
}
|
|
2914
|
-
function
|
|
2926
|
+
function ei(w) {
|
|
2915
2927
|
return 1 + ~~(w.getMonth() / 3);
|
|
2916
2928
|
}
|
|
2917
|
-
function
|
|
2929
|
+
function ni(w) {
|
|
2918
2930
|
return i[w.getUTCDay()];
|
|
2919
2931
|
}
|
|
2920
|
-
function
|
|
2932
|
+
function si(w) {
|
|
2921
2933
|
return a[w.getUTCDay()];
|
|
2922
2934
|
}
|
|
2923
|
-
function
|
|
2935
|
+
function ri(w) {
|
|
2924
2936
|
return l[w.getUTCMonth()];
|
|
2925
2937
|
}
|
|
2926
|
-
function
|
|
2938
|
+
function ai(w) {
|
|
2927
2939
|
return o[w.getUTCMonth()];
|
|
2928
2940
|
}
|
|
2929
|
-
function
|
|
2941
|
+
function ii(w) {
|
|
2930
2942
|
return r[+(w.getUTCHours() >= 12)];
|
|
2931
2943
|
}
|
|
2932
|
-
function
|
|
2944
|
+
function oi(w) {
|
|
2933
2945
|
return 1 + ~~(w.getUTCMonth() / 3);
|
|
2934
2946
|
}
|
|
2935
2947
|
return {
|
|
@@ -2959,37 +2971,37 @@ function Dl(n) {
|
|
|
2959
2971
|
}
|
|
2960
2972
|
};
|
|
2961
2973
|
}
|
|
2962
|
-
var ir = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/,
|
|
2974
|
+
var ir = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/, Nl = /^%/, Il = /[\\^$*+?|[\]().{}]/g;
|
|
2963
2975
|
function P(n, e, t) {
|
|
2964
2976
|
var s = n < 0 ? "-" : "", r = (s ? -n : n) + "", a = r.length;
|
|
2965
2977
|
return s + (a < t ? new Array(t - a + 1).join(e) + r : r);
|
|
2966
2978
|
}
|
|
2967
|
-
function
|
|
2968
|
-
return n.replace(
|
|
2979
|
+
function Bl(n) {
|
|
2980
|
+
return n.replace(Il, "\\$&");
|
|
2969
2981
|
}
|
|
2970
2982
|
function ee(n) {
|
|
2971
|
-
return new RegExp("^(?:" + n.map(
|
|
2983
|
+
return new RegExp("^(?:" + n.map(Bl).join("|") + ")", "i");
|
|
2972
2984
|
}
|
|
2973
2985
|
function ne(n) {
|
|
2974
2986
|
return new Map(n.map((e, t) => [e.toLowerCase(), t]));
|
|
2975
2987
|
}
|
|
2976
|
-
function
|
|
2988
|
+
function Ul(n, e, t) {
|
|
2977
2989
|
var s = _.exec(e.slice(t, t + 1));
|
|
2978
2990
|
return s ? (n.w = +s[0], t + s[0].length) : -1;
|
|
2979
2991
|
}
|
|
2980
|
-
function
|
|
2992
|
+
function $l(n, e, t) {
|
|
2981
2993
|
var s = _.exec(e.slice(t, t + 1));
|
|
2982
2994
|
return s ? (n.u = +s[0], t + s[0].length) : -1;
|
|
2983
2995
|
}
|
|
2984
|
-
function
|
|
2996
|
+
function Zl(n, e, t) {
|
|
2985
2997
|
var s = _.exec(e.slice(t, t + 2));
|
|
2986
2998
|
return s ? (n.U = +s[0], t + s[0].length) : -1;
|
|
2987
2999
|
}
|
|
2988
|
-
function
|
|
3000
|
+
function Fl(n, e, t) {
|
|
2989
3001
|
var s = _.exec(e.slice(t, t + 2));
|
|
2990
3002
|
return s ? (n.V = +s[0], t + s[0].length) : -1;
|
|
2991
3003
|
}
|
|
2992
|
-
function
|
|
3004
|
+
function zl(n, e, t) {
|
|
2993
3005
|
var s = _.exec(e.slice(t, t + 2));
|
|
2994
3006
|
return s ? (n.W = +s[0], t + s[0].length) : -1;
|
|
2995
3007
|
}
|
|
@@ -3001,15 +3013,15 @@ function lr(n, e, t) {
|
|
|
3001
3013
|
var s = _.exec(e.slice(t, t + 2));
|
|
3002
3014
|
return s ? (n.y = +s[0] + (+s[0] > 68 ? 1900 : 2e3), t + s[0].length) : -1;
|
|
3003
3015
|
}
|
|
3004
|
-
function
|
|
3016
|
+
function ql(n, e, t) {
|
|
3005
3017
|
var s = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t, t + 6));
|
|
3006
3018
|
return s ? (n.Z = s[1] ? 0 : -(s[2] + (s[3] || "00")), t + s[0].length) : -1;
|
|
3007
3019
|
}
|
|
3008
|
-
function
|
|
3020
|
+
function jl(n, e, t) {
|
|
3009
3021
|
var s = _.exec(e.slice(t, t + 1));
|
|
3010
3022
|
return s ? (n.q = s[0] * 3 - 3, t + s[0].length) : -1;
|
|
3011
3023
|
}
|
|
3012
|
-
function
|
|
3024
|
+
function Hl(n, e, t) {
|
|
3013
3025
|
var s = _.exec(e.slice(t, t + 2));
|
|
3014
3026
|
return s ? (n.m = s[0] - 1, t + s[0].length) : -1;
|
|
3015
3027
|
}
|
|
@@ -3017,7 +3029,7 @@ function cr(n, e, t) {
|
|
|
3017
3029
|
var s = _.exec(e.slice(t, t + 2));
|
|
3018
3030
|
return s ? (n.d = +s[0], t + s[0].length) : -1;
|
|
3019
3031
|
}
|
|
3020
|
-
function
|
|
3032
|
+
function Wl(n, e, t) {
|
|
3021
3033
|
var s = _.exec(e.slice(t, t + 3));
|
|
3022
3034
|
return s ? (n.m = 0, n.d = +s[0], t + s[0].length) : -1;
|
|
3023
3035
|
}
|
|
@@ -3025,159 +3037,159 @@ function ur(n, e, t) {
|
|
|
3025
3037
|
var s = _.exec(e.slice(t, t + 2));
|
|
3026
3038
|
return s ? (n.H = +s[0], t + s[0].length) : -1;
|
|
3027
3039
|
}
|
|
3028
|
-
function
|
|
3040
|
+
function Xl(n, e, t) {
|
|
3029
3041
|
var s = _.exec(e.slice(t, t + 2));
|
|
3030
3042
|
return s ? (n.M = +s[0], t + s[0].length) : -1;
|
|
3031
3043
|
}
|
|
3032
|
-
function
|
|
3044
|
+
function Gl(n, e, t) {
|
|
3033
3045
|
var s = _.exec(e.slice(t, t + 2));
|
|
3034
3046
|
return s ? (n.S = +s[0], t + s[0].length) : -1;
|
|
3035
3047
|
}
|
|
3036
|
-
function
|
|
3048
|
+
function Vl(n, e, t) {
|
|
3037
3049
|
var s = _.exec(e.slice(t, t + 3));
|
|
3038
3050
|
return s ? (n.L = +s[0], t + s[0].length) : -1;
|
|
3039
3051
|
}
|
|
3040
|
-
function
|
|
3052
|
+
function Kl(n, e, t) {
|
|
3041
3053
|
var s = _.exec(e.slice(t, t + 6));
|
|
3042
3054
|
return s ? (n.L = Math.floor(s[0] / 1e3), t + s[0].length) : -1;
|
|
3043
3055
|
}
|
|
3044
|
-
function
|
|
3045
|
-
var s =
|
|
3056
|
+
function Ql(n, e, t) {
|
|
3057
|
+
var s = Nl.exec(e.slice(t, t + 1));
|
|
3046
3058
|
return s ? t + s[0].length : -1;
|
|
3047
3059
|
}
|
|
3048
|
-
function
|
|
3060
|
+
function Jl(n, e, t) {
|
|
3049
3061
|
var s = _.exec(e.slice(t));
|
|
3050
3062
|
return s ? (n.Q = +s[0], t + s[0].length) : -1;
|
|
3051
3063
|
}
|
|
3052
|
-
function
|
|
3064
|
+
function tc(n, e, t) {
|
|
3053
3065
|
var s = _.exec(e.slice(t));
|
|
3054
3066
|
return s ? (n.s = +s[0], t + s[0].length) : -1;
|
|
3055
3067
|
}
|
|
3056
3068
|
function hr(n, e) {
|
|
3057
3069
|
return P(n.getDate(), e, 2);
|
|
3058
3070
|
}
|
|
3059
|
-
function
|
|
3071
|
+
function ec(n, e) {
|
|
3060
3072
|
return P(n.getHours(), e, 2);
|
|
3061
3073
|
}
|
|
3062
|
-
function
|
|
3074
|
+
function nc(n, e) {
|
|
3063
3075
|
return P(n.getHours() % 12 || 12, e, 2);
|
|
3064
3076
|
}
|
|
3065
|
-
function
|
|
3077
|
+
function sc(n, e) {
|
|
3066
3078
|
return P(1 + Ne.count(mt(n), n), e, 3);
|
|
3067
3079
|
}
|
|
3068
|
-
function
|
|
3080
|
+
function _a(n, e) {
|
|
3069
3081
|
return P(n.getMilliseconds(), e, 3);
|
|
3070
3082
|
}
|
|
3071
|
-
function
|
|
3072
|
-
return
|
|
3083
|
+
function rc(n, e) {
|
|
3084
|
+
return _a(n, e) + "000";
|
|
3073
3085
|
}
|
|
3074
|
-
function
|
|
3086
|
+
function ac(n, e) {
|
|
3075
3087
|
return P(n.getMonth() + 1, e, 2);
|
|
3076
3088
|
}
|
|
3077
|
-
function
|
|
3089
|
+
function ic(n, e) {
|
|
3078
3090
|
return P(n.getMinutes(), e, 2);
|
|
3079
3091
|
}
|
|
3080
|
-
function
|
|
3092
|
+
function oc(n, e) {
|
|
3081
3093
|
return P(n.getSeconds(), e, 2);
|
|
3082
3094
|
}
|
|
3083
|
-
function
|
|
3095
|
+
function lc(n) {
|
|
3084
3096
|
var e = n.getDay();
|
|
3085
3097
|
return e === 0 ? 7 : e;
|
|
3086
3098
|
}
|
|
3087
|
-
function
|
|
3099
|
+
function cc(n, e) {
|
|
3088
3100
|
return P(Ln.count(mt(n) - 1, n), e, 2);
|
|
3089
3101
|
}
|
|
3090
|
-
function
|
|
3102
|
+
function Na(n) {
|
|
3091
3103
|
var e = n.getDay();
|
|
3092
3104
|
return e >= 4 || e === 0 ? Kt(n) : Kt.ceil(n);
|
|
3093
3105
|
}
|
|
3094
|
-
function
|
|
3095
|
-
return n =
|
|
3106
|
+
function uc(n, e) {
|
|
3107
|
+
return n = Na(n), P(Kt.count(mt(n), n) + (mt(n).getDay() === 4), e, 2);
|
|
3096
3108
|
}
|
|
3097
|
-
function
|
|
3109
|
+
function hc(n) {
|
|
3098
3110
|
return n.getDay();
|
|
3099
3111
|
}
|
|
3100
|
-
function
|
|
3112
|
+
function dc(n, e) {
|
|
3101
3113
|
return P(gn.count(mt(n) - 1, n), e, 2);
|
|
3102
3114
|
}
|
|
3103
|
-
function
|
|
3115
|
+
function fc(n, e) {
|
|
3104
3116
|
return P(n.getFullYear() % 100, e, 2);
|
|
3105
3117
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return n =
|
|
3118
|
+
function pc(n, e) {
|
|
3119
|
+
return n = Na(n), P(n.getFullYear() % 100, e, 2);
|
|
3108
3120
|
}
|
|
3109
|
-
function
|
|
3121
|
+
function gc(n, e) {
|
|
3110
3122
|
return P(n.getFullYear() % 1e4, e, 4);
|
|
3111
3123
|
}
|
|
3112
|
-
function
|
|
3124
|
+
function mc(n, e) {
|
|
3113
3125
|
var t = n.getDay();
|
|
3114
3126
|
return n = t >= 4 || t === 0 ? Kt(n) : Kt.ceil(n), P(n.getFullYear() % 1e4, e, 4);
|
|
3115
3127
|
}
|
|
3116
|
-
function
|
|
3128
|
+
function yc(n) {
|
|
3117
3129
|
var e = n.getTimezoneOffset();
|
|
3118
3130
|
return (e > 0 ? "-" : (e *= -1, "+")) + P(e / 60 | 0, "0", 2) + P(e % 60, "0", 2);
|
|
3119
3131
|
}
|
|
3120
3132
|
function dr(n, e) {
|
|
3121
3133
|
return P(n.getUTCDate(), e, 2);
|
|
3122
3134
|
}
|
|
3123
|
-
function
|
|
3135
|
+
function wc(n, e) {
|
|
3124
3136
|
return P(n.getUTCHours(), e, 2);
|
|
3125
3137
|
}
|
|
3126
|
-
function
|
|
3138
|
+
function xc(n, e) {
|
|
3127
3139
|
return P(n.getUTCHours() % 12 || 12, e, 2);
|
|
3128
3140
|
}
|
|
3129
|
-
function
|
|
3130
|
-
return P(1 +
|
|
3141
|
+
function bc(n, e) {
|
|
3142
|
+
return P(1 + Is.count(Ot(n), n), e, 3);
|
|
3131
3143
|
}
|
|
3132
|
-
function
|
|
3144
|
+
function Ia(n, e) {
|
|
3133
3145
|
return P(n.getUTCMilliseconds(), e, 3);
|
|
3134
3146
|
}
|
|
3135
|
-
function
|
|
3136
|
-
return
|
|
3147
|
+
function vc(n, e) {
|
|
3148
|
+
return Ia(n, e) + "000";
|
|
3137
3149
|
}
|
|
3138
|
-
function
|
|
3150
|
+
function Tc(n, e) {
|
|
3139
3151
|
return P(n.getUTCMonth() + 1, e, 2);
|
|
3140
3152
|
}
|
|
3141
|
-
function
|
|
3153
|
+
function Sc(n, e) {
|
|
3142
3154
|
return P(n.getUTCMinutes(), e, 2);
|
|
3143
3155
|
}
|
|
3144
|
-
function
|
|
3156
|
+
function Ec(n, e) {
|
|
3145
3157
|
return P(n.getUTCSeconds(), e, 2);
|
|
3146
3158
|
}
|
|
3147
|
-
function
|
|
3159
|
+
function Cc(n) {
|
|
3148
3160
|
var e = n.getUTCDay();
|
|
3149
3161
|
return e === 0 ? 7 : e;
|
|
3150
3162
|
}
|
|
3151
|
-
function
|
|
3152
|
-
return P(
|
|
3163
|
+
function kc(n, e) {
|
|
3164
|
+
return P(La.count(Ot(n) - 1, n), e, 2);
|
|
3153
3165
|
}
|
|
3154
|
-
function
|
|
3166
|
+
function Ba(n) {
|
|
3155
3167
|
var e = n.getUTCDay();
|
|
3156
3168
|
return e >= 4 || e === 0 ? Qt(n) : Qt.ceil(n);
|
|
3157
3169
|
}
|
|
3158
|
-
function
|
|
3159
|
-
return n =
|
|
3170
|
+
function Pc(n, e) {
|
|
3171
|
+
return n = Ba(n), P(Qt.count(Ot(n), n) + (Ot(n).getUTCDay() === 4), e, 2);
|
|
3160
3172
|
}
|
|
3161
|
-
function
|
|
3173
|
+
function Rc(n) {
|
|
3162
3174
|
return n.getUTCDay();
|
|
3163
3175
|
}
|
|
3164
|
-
function
|
|
3176
|
+
function Mc(n, e) {
|
|
3165
3177
|
return P(mn.count(Ot(n) - 1, n), e, 2);
|
|
3166
3178
|
}
|
|
3167
|
-
function
|
|
3179
|
+
function Oc(n, e) {
|
|
3168
3180
|
return P(n.getUTCFullYear() % 100, e, 2);
|
|
3169
3181
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return n =
|
|
3182
|
+
function Dc(n, e) {
|
|
3183
|
+
return n = Ba(n), P(n.getUTCFullYear() % 100, e, 2);
|
|
3172
3184
|
}
|
|
3173
|
-
function
|
|
3185
|
+
function Yc(n, e) {
|
|
3174
3186
|
return P(n.getUTCFullYear() % 1e4, e, 4);
|
|
3175
3187
|
}
|
|
3176
|
-
function
|
|
3188
|
+
function Ac(n, e) {
|
|
3177
3189
|
var t = n.getUTCDay();
|
|
3178
3190
|
return n = t >= 4 || t === 0 ? Qt(n) : Qt.ceil(n), P(n.getUTCFullYear() % 1e4, e, 4);
|
|
3179
3191
|
}
|
|
3180
|
-
function
|
|
3192
|
+
function Lc() {
|
|
3181
3193
|
return "+0000";
|
|
3182
3194
|
}
|
|
3183
3195
|
function fr() {
|
|
@@ -3189,8 +3201,8 @@ function pr(n) {
|
|
|
3189
3201
|
function gr(n) {
|
|
3190
3202
|
return Math.floor(+n / 1e3);
|
|
3191
3203
|
}
|
|
3192
|
-
var Nt,
|
|
3193
|
-
|
|
3204
|
+
var Nt, Ua;
|
|
3205
|
+
_c({
|
|
3194
3206
|
dateTime: "%x, %X",
|
|
3195
3207
|
date: "%-m/%-d/%Y",
|
|
3196
3208
|
time: "%-I:%M:%S %p",
|
|
@@ -3200,47 +3212,47 @@ Dc({
|
|
|
3200
3212
|
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
3201
3213
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3202
3214
|
});
|
|
3203
|
-
function
|
|
3204
|
-
return Nt =
|
|
3215
|
+
function _c(n) {
|
|
3216
|
+
return Nt = _l(n), Ua = Nt.format, Nt.parse, Nt.utcFormat, Nt.utcParse, Nt;
|
|
3205
3217
|
}
|
|
3206
|
-
function
|
|
3218
|
+
function Nc(n) {
|
|
3207
3219
|
return new Date(n);
|
|
3208
3220
|
}
|
|
3209
|
-
function
|
|
3221
|
+
function Ic(n) {
|
|
3210
3222
|
return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
|
|
3211
3223
|
}
|
|
3212
|
-
function
|
|
3213
|
-
var h =
|
|
3214
|
-
function
|
|
3224
|
+
function $a(n, e, t, s, r, a, i, o, l, u) {
|
|
3225
|
+
var h = Ma(), p = h.invert, m = h.domain, x = u(".%L"), b = u(":%S"), T = u("%I:%M"), C = u("%I %p"), O = u("%a %d"), N = u("%b %d"), M = u("%B"), L = u("%Y");
|
|
3226
|
+
function B(v) {
|
|
3215
3227
|
return (l(v) < v ? x : o(v) < v ? b : i(v) < v ? T : a(v) < v ? C : s(v) < v ? r(v) < v ? O : N : t(v) < v ? M : L)(v);
|
|
3216
3228
|
}
|
|
3217
3229
|
return h.invert = function(v) {
|
|
3218
3230
|
return new Date(p(v));
|
|
3219
3231
|
}, h.domain = function(v) {
|
|
3220
|
-
return arguments.length ? m(Array.from(v,
|
|
3232
|
+
return arguments.length ? m(Array.from(v, Ic)) : m().map(Nc);
|
|
3221
3233
|
}, h.ticks = function(v) {
|
|
3222
3234
|
var U = m();
|
|
3223
3235
|
return n(U[0], U[U.length - 1], v ?? 10);
|
|
3224
3236
|
}, h.tickFormat = function(v, U) {
|
|
3225
|
-
return U == null ?
|
|
3237
|
+
return U == null ? B : u(U);
|
|
3226
3238
|
}, h.nice = function(v) {
|
|
3227
3239
|
var U = m();
|
|
3228
|
-
return (!v || typeof v.range != "function") && (v = e(U[0], U[U.length - 1], v ?? 10)), v ? m(
|
|
3240
|
+
return (!v || typeof v.range != "function") && (v = e(U[0], U[U.length - 1], v ?? 10)), v ? m(xl(U, v)) : h;
|
|
3229
3241
|
}, h.copy = function() {
|
|
3230
|
-
return
|
|
3242
|
+
return Ra(h, $a(n, e, t, s, r, a, i, o, l, u));
|
|
3231
3243
|
}, h;
|
|
3232
3244
|
}
|
|
3233
|
-
function
|
|
3234
|
-
return
|
|
3245
|
+
function Bc() {
|
|
3246
|
+
return Ea.apply($a(Al, Ll, mt, Bs, Ln, Ne, Ns, _s, Ut, Ua).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3235
3247
|
}
|
|
3236
|
-
const
|
|
3248
|
+
const Za = d.enum(["linear", "time"]), Fa = d.object({
|
|
3237
3249
|
tickSpacing: d.number().default(75),
|
|
3238
|
-
type:
|
|
3250
|
+
type: Za.optional().default("linear")
|
|
3239
3251
|
}), mr = (n) => {
|
|
3240
|
-
const e =
|
|
3241
|
-
return
|
|
3252
|
+
const e = Fa.parse(n);
|
|
3253
|
+
return Zc[e.type](e);
|
|
3242
3254
|
};
|
|
3243
|
-
class
|
|
3255
|
+
class Uc {
|
|
3244
3256
|
constructor(e) {
|
|
3245
3257
|
c(this, "props");
|
|
3246
3258
|
this.props = e;
|
|
@@ -3249,8 +3261,8 @@ class _c {
|
|
|
3249
3261
|
const s = [0, t], r = [
|
|
3250
3262
|
new F(e.pos(0)).date(),
|
|
3251
3263
|
new F(e.pos(1)).date()
|
|
3252
|
-
], a =
|
|
3253
|
-
return a.ticks(
|
|
3264
|
+
], a = Bc().domain(r).range(s);
|
|
3265
|
+
return a.ticks(za(t, this.props.tickSpacing)).map((o) => ({
|
|
3254
3266
|
label: this.tickLabel(o),
|
|
3255
3267
|
position: a(o)
|
|
3256
3268
|
}));
|
|
@@ -3265,13 +3277,13 @@ class _c {
|
|
|
3265
3277
|
return t.getSeconds() === 0 && t.getMilliseconds() === 0 && (s = `${t.getHours()}:${t.getMinutes().toString().padStart(2, "0")}`), s;
|
|
3266
3278
|
}
|
|
3267
3279
|
}
|
|
3268
|
-
class
|
|
3280
|
+
class $c {
|
|
3269
3281
|
constructor(e) {
|
|
3270
3282
|
c(this, "props");
|
|
3271
3283
|
this.props = e;
|
|
3272
3284
|
}
|
|
3273
3285
|
generate({ decimalToDataScale: e, size: t }) {
|
|
3274
|
-
const s = [0, t], r = [e.pos(0), e.pos(1)], a =
|
|
3286
|
+
const s = [0, t], r = [e.pos(0), e.pos(1)], a = Aa().domain(r).range(s), i = za(t, this.props.tickSpacing);
|
|
3275
3287
|
return a.ticks(i).map((l) => ({
|
|
3276
3288
|
label: this.tickLabel(l),
|
|
3277
3289
|
position: a(l)
|
|
@@ -3281,21 +3293,21 @@ class Nc {
|
|
|
3281
3293
|
return e.toString();
|
|
3282
3294
|
}
|
|
3283
3295
|
}
|
|
3284
|
-
const
|
|
3296
|
+
const za = (n, e) => {
|
|
3285
3297
|
const t = Math.floor(n / e);
|
|
3286
3298
|
return t > 0 ? t : 1;
|
|
3287
|
-
},
|
|
3288
|
-
linear: (n) => new
|
|
3289
|
-
time: (n) => new
|
|
3290
|
-
},
|
|
3299
|
+
}, Zc = {
|
|
3300
|
+
linear: (n) => new $c(n),
|
|
3301
|
+
time: (n) => new Uc(n)
|
|
3302
|
+
}, qa = Fa.extend({
|
|
3291
3303
|
color: Y.z,
|
|
3292
|
-
type:
|
|
3304
|
+
type: Za.optional().default("linear"),
|
|
3293
3305
|
font: d.string(),
|
|
3294
3306
|
showGrid: d.boolean().optional().default(!0),
|
|
3295
3307
|
location: Tt.outer,
|
|
3296
3308
|
gridColor: Y.z
|
|
3297
3309
|
}), rt = 4;
|
|
3298
|
-
let
|
|
3310
|
+
let Fc = class {
|
|
3299
3311
|
constructor(e, t) {
|
|
3300
3312
|
c(this, "ctx");
|
|
3301
3313
|
c(this, "state");
|
|
@@ -3303,7 +3315,7 @@ let Ic = class {
|
|
|
3303
3315
|
this.ctx = e, this.state = t, this.tickFactory = mr(this.state);
|
|
3304
3316
|
}
|
|
3305
3317
|
setState(e) {
|
|
3306
|
-
this.state =
|
|
3318
|
+
this.state = gi(qa, e), this.tickFactory = mr(e);
|
|
3307
3319
|
}
|
|
3308
3320
|
render(e) {
|
|
3309
3321
|
const { lower2d: t } = this.ctx;
|
|
@@ -3398,7 +3410,7 @@ const je = (n, e) => f.construct(
|
|
|
3398
3410
|
f.height(n) + e.y * 2
|
|
3399
3411
|
);
|
|
3400
3412
|
class yn {
|
|
3401
|
-
constructor(e, t =
|
|
3413
|
+
constructor(e, t = I.XY.IDENTITY) {
|
|
3402
3414
|
c(this, "scale_");
|
|
3403
3415
|
c(this, "wrapped");
|
|
3404
3416
|
this.wrapped = e, this.scale_ = t;
|
|
@@ -3781,18 +3793,18 @@ const yr = /(\d+(\.\d+)?)px/, Wn = (n, e) => {
|
|
|
3781
3793
|
if (t == null) return n;
|
|
3782
3794
|
const s = e.dim(t);
|
|
3783
3795
|
return n.replace(yr, `${s}px`);
|
|
3784
|
-
},
|
|
3796
|
+
}, zc = `precision mediump float;
|
|
3785
3797
|
|
|
3786
3798
|
void main(void) {
|
|
3787
3799
|
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
3788
3800
|
}
|
|
3789
|
-
`,
|
|
3801
|
+
`, qc = `attribute vec4 a_position;
|
|
3790
3802
|
|
|
3791
3803
|
void main(void) {
|
|
3792
3804
|
gl_Position = a_position;
|
|
3793
3805
|
}
|
|
3794
|
-
`, wr = (n) => new Error(`failed to compile webgl program: ${n}`),
|
|
3795
|
-
class
|
|
3806
|
+
`, wr = (n) => new Error(`failed to compile webgl program: ${n}`), jc = new Error("null shader encountered");
|
|
3807
|
+
class ja {
|
|
3796
3808
|
/**
|
|
3797
3809
|
* @constructor compiles the given vertex and fragment shaders under the given
|
|
3798
3810
|
* render context into a program.
|
|
@@ -3851,7 +3863,7 @@ class za {
|
|
|
3851
3863
|
}
|
|
3852
3864
|
compileShader(e, t) {
|
|
3853
3865
|
const s = this.ctx.gl, r = s.createShader(t);
|
|
3854
|
-
if (r == null) throw
|
|
3866
|
+
if (r == null) throw jc;
|
|
3855
3867
|
if (s.shaderSource(r, e), s.compileShader(r), !s.getShaderParameter(r, s.COMPILE_STATUS)) {
|
|
3856
3868
|
const i = s.getShaderInfoLog(r);
|
|
3857
3869
|
throw s.deleteShader(r), wr(i ?? "unknown");
|
|
@@ -3859,14 +3871,14 @@ class za {
|
|
|
3859
3871
|
s.attachShader(this.prog, r);
|
|
3860
3872
|
}
|
|
3861
3873
|
}
|
|
3862
|
-
const
|
|
3863
|
-
class
|
|
3874
|
+
const Hc = new Float32Array([0, 0, 0, 0, 0, 0]);
|
|
3875
|
+
class Wc extends ja {
|
|
3864
3876
|
constructor(t) {
|
|
3865
|
-
super(t,
|
|
3877
|
+
super(t, qc, zc);
|
|
3866
3878
|
c(this, "positionBuffer");
|
|
3867
3879
|
const s = t.gl.createBuffer();
|
|
3868
3880
|
if (s == null) throw new pt("webgl: failed to create buffer");
|
|
3869
|
-
this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER,
|
|
3881
|
+
this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER, Hc, t.gl.STATIC_DRAW);
|
|
3870
3882
|
}
|
|
3871
3883
|
exec() {
|
|
3872
3884
|
const { gl: t } = this.ctx, s = t.getAttribLocation(this.prog, "a_position");
|
|
@@ -3875,8 +3887,8 @@ class zc extends za {
|
|
|
3875
3887
|
t.bindVertexArray(r), t.enableVertexAttribArray(s), t.vertexAttribPointer(s, 2, t.FLOAT, !1, 0, 0), this.setAsActive(), t.drawArrays(t.TRIANGLES, 0, 3);
|
|
3876
3888
|
}
|
|
3877
3889
|
}
|
|
3878
|
-
const xr = { high: 1, low: 0 }, br =
|
|
3879
|
-
class
|
|
3890
|
+
const xr = { high: 1, low: 0 }, br = Rr.hz(45);
|
|
3891
|
+
class Xc {
|
|
3880
3892
|
constructor(e) {
|
|
3881
3893
|
/** To lock things so renders don't collide */
|
|
3882
3894
|
c(this, "mutex", new ms());
|
|
@@ -3901,8 +3913,7 @@ class qc {
|
|
|
3901
3913
|
let t;
|
|
3902
3914
|
e.priority === "high" && (t = await this.mutex.acquire());
|
|
3903
3915
|
const s = this.requests.get(e.key);
|
|
3904
|
-
if (s == null)
|
|
3905
|
-
this.requests.set(e.key, e);
|
|
3916
|
+
if (s == null) this.requests.set(e.key, e);
|
|
3906
3917
|
else {
|
|
3907
3918
|
const r = xr[e.priority] >= xr[s.priority], a = e.canvases.length >= s.canvases.length;
|
|
3908
3919
|
r && a && this.requests.set(e.key, e);
|
|
@@ -3996,7 +4007,7 @@ let z = (et = class {
|
|
|
3996
4007
|
const u = () => {
|
|
3997
4008
|
this.gl.flush(), this.gl.finish();
|
|
3998
4009
|
};
|
|
3999
|
-
this.loop = new
|
|
4010
|
+
this.loop = new Xc(u), this.region = f.ZERO, this.dpr = 1, this.os === "Windows" && (this.clearProgram = new Wc(this));
|
|
4000
4011
|
}
|
|
4001
4012
|
static create(e, t, s, r, a) {
|
|
4002
4013
|
const i = new et(t, s, r, a);
|
|
@@ -4031,11 +4042,11 @@ let z = (et = class {
|
|
|
4031
4042
|
* in the canvas.
|
|
4032
4043
|
*/
|
|
4033
4044
|
scaleRegion(e) {
|
|
4034
|
-
return new
|
|
4045
|
+
return new I.XY(
|
|
4035
4046
|
// Accept a value in decimal.
|
|
4036
|
-
|
|
4047
|
+
I.Scale.scale(0, 1).scale(f.width(e)).translate(f.left(e)).reBound(f.width(this.region)).scale(-1, 1),
|
|
4037
4048
|
// Accept a value in decimal.
|
|
4038
|
-
|
|
4049
|
+
I.Scale.scale(0, 1).scale(f.height(e)).invert().translate(f.top(e)).reBound(f.height(this.region)).scale(-1, 1).invert()
|
|
4039
4050
|
);
|
|
4040
4051
|
}
|
|
4041
4052
|
scissor(e, t = g.ZERO, s) {
|
|
@@ -4062,7 +4073,7 @@ let z = (et = class {
|
|
|
4062
4073
|
const r = je(t, s);
|
|
4063
4074
|
e.clearRect(...g.couple(f.topLeft(r)), ...Ge.couple(f.dims(r)));
|
|
4064
4075
|
}
|
|
4065
|
-
}, c(et, "CONTEXT_KEY",
|
|
4076
|
+
}, c(et, "CONTEXT_KEY", Si.B("render-context")), et);
|
|
4066
4077
|
const yt = "layout", vr = "data", St = "tool";
|
|
4067
4078
|
var ot;
|
|
4068
4079
|
let W = (ot = class {
|
|
@@ -4083,7 +4094,7 @@ let W = (ot = class {
|
|
|
4083
4094
|
static requestRender(e, t) {
|
|
4084
4095
|
this.useRequest(e)(t);
|
|
4085
4096
|
}
|
|
4086
|
-
}, c(ot, "CONTEXT_KEY", "pluto-vis-renderer"), ot),
|
|
4097
|
+
}, c(ot, "CONTEXT_KEY", "pluto-vis-renderer"), ot), Gc = class {
|
|
4087
4098
|
constructor() {
|
|
4088
4099
|
c(this, "prevErase", f.ZERO);
|
|
4089
4100
|
}
|
|
@@ -4091,7 +4102,7 @@ let W = (ot = class {
|
|
|
4091
4102
|
!f.equals(s, t) && !f.equals(this.prevErase, s) ? (e.erase(s, r, ...a), this.prevErase = s) : e.erase(t, r, ...a);
|
|
4092
4103
|
}
|
|
4093
4104
|
};
|
|
4094
|
-
const _n =
|
|
4105
|
+
const _n = qa.extend({
|
|
4095
4106
|
bounds: R.bounds.optional(),
|
|
4096
4107
|
autoBounds: d.object({
|
|
4097
4108
|
lower: d.boolean().optional().default(!0),
|
|
@@ -4102,35 +4113,35 @@ const _n = Fa.extend({
|
|
|
4102
4113
|
size: d.number().optional().default(0),
|
|
4103
4114
|
label: d.string().optional().default(""),
|
|
4104
4115
|
labelSize: d.number().optional().default(0)
|
|
4105
|
-
}).partial({ color: !0, font: !0, gridColor: !0 }),
|
|
4116
|
+
}).partial({ color: !0, font: !0, gridColor: !0 }), Vc = 2, Kc = 7, Qc = (n, e) => R.contains(
|
|
4106
4117
|
{
|
|
4107
|
-
lower: n -
|
|
4108
|
-
upper: n +
|
|
4118
|
+
lower: n - Kc,
|
|
4119
|
+
upper: n + Vc
|
|
4109
4120
|
},
|
|
4110
4121
|
e
|
|
4111
|
-
),
|
|
4122
|
+
), Jc = R.DECIMAL, Tr = F.now(), tu = {
|
|
4112
4123
|
lower: Number(Tr.valueOf()),
|
|
4113
4124
|
upper: Number(Tr.add($.HOUR).valueOf())
|
|
4114
|
-
},
|
|
4125
|
+
}, Ha = (n) => n === "linear" ? Jc : tu, eu = (n, e = 0.1, t) => {
|
|
4115
4126
|
const s = R.max(n.filter(R.isFinite));
|
|
4116
|
-
if (!R.isFinite(s)) return
|
|
4127
|
+
if (!R.isFinite(s)) return Ha(t);
|
|
4117
4128
|
const { lower: r, upper: a } = s;
|
|
4118
4129
|
if (a === r) return { lower: r - 1, upper: a + 1 };
|
|
4119
4130
|
const i = (a - r) * e;
|
|
4120
4131
|
return { lower: r - i, upper: a + i };
|
|
4121
|
-
},
|
|
4122
|
-
class
|
|
4132
|
+
}, nu = 0.01, su = 0.1;
|
|
4133
|
+
class Wa extends wt {
|
|
4123
4134
|
async afterUpdate() {
|
|
4124
|
-
var t;
|
|
4135
|
+
var t, s;
|
|
4125
4136
|
this.internal.render = z.use(this.ctx);
|
|
4126
4137
|
const e = xt(this.ctx);
|
|
4127
|
-
(t = this.state).autoBoundPadding ?? (t.autoBoundPadding = at.construct(this.state.location) === "x" ?
|
|
4138
|
+
(t = this.state).autoBoundPadding ?? (t.autoBoundPadding = at.construct(this.state.location) === "x" ? su : nu), this.internal.core = new Fc(this.internal.render, {
|
|
4128
4139
|
color: e.colors.gray.l8,
|
|
4129
4140
|
font: re(e, { level: "small" }),
|
|
4130
4141
|
gridColor: e.colors.gray.l1,
|
|
4131
4142
|
...this.state
|
|
4132
|
-
}), W.requestRender(this.ctx, yt), this.internal.updateBounds
|
|
4133
|
-
(
|
|
4143
|
+
}), W.requestRender(this.ctx, yt), (s = this.internal).updateBounds ?? (s.updateBounds = mi(
|
|
4144
|
+
(r) => this.setState((a) => ({ ...a, bounds: r })),
|
|
4134
4145
|
this.state.autoBoundUpdateInterval.milliseconds
|
|
4135
4146
|
));
|
|
4136
4147
|
}
|
|
@@ -4139,19 +4150,19 @@ class ja extends wt {
|
|
|
4139
4150
|
}
|
|
4140
4151
|
renderAxis(e, t) {
|
|
4141
4152
|
if (!e.canvases.includes("lower2d")) return;
|
|
4142
|
-
const { core: s } = this.internal, { grid: r, container: a } = e, i =
|
|
4153
|
+
const { core: s } = this.internal, { grid: r, container: a } = e, i = xo(`${this.type}-${this.key}`, r, a), o = {
|
|
4143
4154
|
...e,
|
|
4144
4155
|
position: i,
|
|
4145
4156
|
decimalToDataScale: t,
|
|
4146
4157
|
size: this.state.size + this.state.labelSize
|
|
4147
4158
|
}, { size: l } = s.render(o);
|
|
4148
|
-
|
|
4159
|
+
Qc(this.state.size, l) || this.setState((u) => ({ ...u, size: l }));
|
|
4149
4160
|
}
|
|
4150
4161
|
async bounds(e, t) {
|
|
4151
4162
|
var u, h;
|
|
4152
4163
|
if (e && this.internal.boundSnapshot != null)
|
|
4153
4164
|
return [this.internal.boundSnapshot, null];
|
|
4154
|
-
const { lower: s, upper: r } =
|
|
4165
|
+
const { lower: s, upper: r } = ru(this.state.autoBounds);
|
|
4155
4166
|
if (!s && !r && this.state.bounds != null)
|
|
4156
4167
|
return this.internal.boundSnapshot = this.state.bounds, [this.state.bounds, null];
|
|
4157
4168
|
const a = (p) => ({
|
|
@@ -4161,9 +4172,9 @@ class ja extends wt {
|
|
|
4161
4172
|
let i, o = null;
|
|
4162
4173
|
try {
|
|
4163
4174
|
const p = await t();
|
|
4164
|
-
i =
|
|
4175
|
+
i = eu(p, this.state.autoBoundPadding, this.state.type);
|
|
4165
4176
|
} catch (p) {
|
|
4166
|
-
i =
|
|
4177
|
+
i = Ha(this.state.type), o = p;
|
|
4167
4178
|
}
|
|
4168
4179
|
const l = a(i);
|
|
4169
4180
|
return this.internal.boundSnapshot = l, (this.state.bounds == null || s && this.state.bounds.lower !== l.lower || r && this.state.bounds.upper !== l.upper) && ((h = (u = this.internal).updateBounds) == null || h.call(u, l)), [l, o];
|
|
@@ -4171,21 +4182,21 @@ class ja extends wt {
|
|
|
4171
4182
|
async dataToDecimalScale(e, t, s) {
|
|
4172
4183
|
const [r, a] = await this.bounds(e, t), i = at.swap(at.construct(this.state.location));
|
|
4173
4184
|
return [
|
|
4174
|
-
|
|
4185
|
+
I.Scale.scale(r).scale(1).translate(-f.root(s)[i]).magnify(1 / f.dim(s, i)),
|
|
4175
4186
|
a
|
|
4176
4187
|
];
|
|
4177
4188
|
}
|
|
4178
4189
|
}
|
|
4179
|
-
const
|
|
4190
|
+
const ru = (n) => typeof n == "boolean" ? { lower: n, upper: n } : {
|
|
4180
4191
|
lower: (n == null ? void 0 : n.lower) ?? !0,
|
|
4181
4192
|
upper: (n == null ? void 0 : n.upper) ?? !0
|
|
4182
|
-
},
|
|
4193
|
+
}, au = `precision lowp float;
|
|
4183
4194
|
uniform lowp vec4 u_color;
|
|
4184
4195
|
|
|
4185
4196
|
void main(void) {
|
|
4186
4197
|
gl_FragColor = u_color;
|
|
4187
4198
|
}
|
|
4188
|
-
`,
|
|
4199
|
+
`, iu = `attribute float a_x;
|
|
4189
4200
|
attribute float a_y;
|
|
4190
4201
|
attribute lowp vec2 a_translate;
|
|
4191
4202
|
|
|
@@ -4197,18 +4208,18 @@ void main(void) {
|
|
|
4197
4208
|
transformed = transformed + a_translate;
|
|
4198
4209
|
gl_Position = vec4(transformed, 0.0, 1.0);
|
|
4199
4210
|
}
|
|
4200
|
-
`, Sr = nt.FLOAT32.density.valueOf(),
|
|
4211
|
+
`, Sr = nt.FLOAT32.density.valueOf(), ou = d.object({
|
|
4201
4212
|
x: rn,
|
|
4202
4213
|
y: rn,
|
|
4203
4214
|
label: d.string().optional(),
|
|
4204
4215
|
color: Y.z,
|
|
4205
4216
|
strokeWidth: d.number().default(1),
|
|
4206
4217
|
downsample: d.number().min(1).max(50).optional().default(1)
|
|
4207
|
-
}),
|
|
4218
|
+
}), lu = (n, e, t) => n === -1 || e === -1 || n >= t.length ? NaN : Number(t[n].at(e)), cu = $.milliseconds(2);
|
|
4208
4219
|
g.NAN, g.NAN, V;
|
|
4209
|
-
const Zt = class Zt extends
|
|
4220
|
+
const Zt = class Zt extends ja {
|
|
4210
4221
|
constructor(t) {
|
|
4211
|
-
super(t,
|
|
4222
|
+
super(t, iu, au);
|
|
4212
4223
|
c(this, "translationBufferCache", /* @__PURE__ */ new Map());
|
|
4213
4224
|
this.translationBufferCache = /* @__PURE__ */ new Map();
|
|
4214
4225
|
}
|
|
@@ -4253,7 +4264,7 @@ const Zt = class Zt extends za {
|
|
|
4253
4264
|
const i = s.createBuffer();
|
|
4254
4265
|
if (i == null)
|
|
4255
4266
|
throw new pt("Failed to create buffer from WebGL context");
|
|
4256
|
-
const o =
|
|
4267
|
+
const o = hu(this.ctx.aspect, t);
|
|
4257
4268
|
s.bindBuffer(s.ARRAY_BUFFER, i), s.bufferData(s.ARRAY_BUFFER, o, s.DYNAMIC_DRAW);
|
|
4258
4269
|
const l = { glBuffer: i, jsBuffer: o };
|
|
4259
4270
|
return this.translationBufferCache.set(r, l), l;
|
|
@@ -4276,7 +4287,7 @@ let wn = Zt;
|
|
|
4276
4287
|
class xn extends Z {
|
|
4277
4288
|
constructor() {
|
|
4278
4289
|
super(...arguments);
|
|
4279
|
-
c(this, "schema",
|
|
4290
|
+
c(this, "schema", ou);
|
|
4280
4291
|
}
|
|
4281
4292
|
async afterUpdate() {
|
|
4282
4293
|
var s, r;
|
|
@@ -4315,7 +4326,7 @@ class xn extends Z {
|
|
|
4315
4326
|
};
|
|
4316
4327
|
if (o === -1 || l === -1) return m;
|
|
4317
4328
|
const x = i[l];
|
|
4318
|
-
m.value.x =
|
|
4329
|
+
m.value.x = lu(l, o, i);
|
|
4319
4330
|
const [, b] = await a.value(), T = b.find(
|
|
4320
4331
|
(O) => R.contains(O.alignmentBounds, x.alignment + BigInt(o))
|
|
4321
4332
|
);
|
|
@@ -4330,35 +4341,35 @@ class xn extends Z {
|
|
|
4330
4341
|
if (this.deleted) return;
|
|
4331
4342
|
const { downsample: s } = this.state, { xTelem: r, yTelem: a, prog: i } = this.internal, { dataToDecimalScale: o, exposure: l } = t, [[, u], [, h]] = await Promise.all([r.value(), a.value()]);
|
|
4332
4343
|
u.forEach((T) => T.updateGLBuffer(i.ctx.gl)), h.forEach((T) => T.updateGLBuffer(i.ctx.gl));
|
|
4333
|
-
const p =
|
|
4344
|
+
const p = mu(
|
|
4334
4345
|
u,
|
|
4335
4346
|
h,
|
|
4336
4347
|
l,
|
|
4337
4348
|
s,
|
|
4338
|
-
|
|
4349
|
+
cu
|
|
4339
4350
|
);
|
|
4340
4351
|
this.internal.instrumentation.L.debug("render", () => ({
|
|
4341
4352
|
key: this.key,
|
|
4342
4353
|
downsample: s,
|
|
4343
|
-
scale:
|
|
4354
|
+
scale: I.xyScaleToTransform(o),
|
|
4344
4355
|
props: t.region,
|
|
4345
|
-
ops:
|
|
4356
|
+
ops: yu(p)
|
|
4346
4357
|
}));
|
|
4347
|
-
const m = i.setAsActive(), x = i.bindState(this.state), b =
|
|
4358
|
+
const m = i.setAsActive(), x = i.bindState(this.state), b = I.xyScaleToTransform(
|
|
4348
4359
|
i.ctx.scaleRegion(t.region)
|
|
4349
4360
|
);
|
|
4350
4361
|
p.forEach((T) => {
|
|
4351
|
-
const C =
|
|
4352
|
-
|
|
4362
|
+
const C = I.xyScaleToTransform(
|
|
4363
|
+
gu(o, T)
|
|
4353
4364
|
);
|
|
4354
4365
|
i.bindScale(C, b), i.draw(T, x);
|
|
4355
4366
|
}), m();
|
|
4356
4367
|
}
|
|
4357
4368
|
}
|
|
4358
4369
|
c(xn, "TYPE", "line");
|
|
4359
|
-
const
|
|
4360
|
-
(t, s) => Math.floor(s /
|
|
4361
|
-
),
|
|
4370
|
+
const uu = 5e3, hu = (n, e) => pu(fu(n), e).map(
|
|
4371
|
+
(t, s) => Math.floor(s / du) * (1 / (uu * n)) * t
|
|
4372
|
+
), du = 5, fu = (n) => (
|
|
4362
4373
|
// prettier-ignore
|
|
4363
4374
|
new Float32Array([
|
|
4364
4375
|
0,
|
|
@@ -4377,24 +4388,24 @@ const iu = 5e3, ou = (n, e) => uu(cu(n), e).map(
|
|
|
4377
4388
|
0
|
|
4378
4389
|
// left
|
|
4379
4390
|
])
|
|
4380
|
-
),
|
|
4391
|
+
), pu = (n, e) => {
|
|
4381
4392
|
const t = new Float32Array(n.length * e);
|
|
4382
4393
|
for (let s = 0; s < e; s++) t.set(n, s * n.length);
|
|
4383
4394
|
return t;
|
|
4384
|
-
},
|
|
4395
|
+
}, gu = (n, e) => n.translate(
|
|
4385
4396
|
n.x.dim(Number(e.x.sampleOffset)),
|
|
4386
4397
|
n.y.dim(Number(e.y.sampleOffset))
|
|
4387
|
-
),
|
|
4398
|
+
), oh = { [xn.TYPE]: xn }, mu = (n, e, t, s, r) => {
|
|
4388
4399
|
if (n.length === 0 || e.length === 0) return [];
|
|
4389
4400
|
const a = [];
|
|
4390
4401
|
return n.forEach(
|
|
4391
4402
|
(i) => e.forEach((o) => {
|
|
4392
|
-
if (!
|
|
4403
|
+
if (!wu(i, o, r)) return;
|
|
4393
4404
|
let l = 0, u = 0;
|
|
4394
4405
|
i.alignment < o.alignment ? l = Number(o.alignment - i.alignment) : o.alignment < i.alignment && (u = Number(i.alignment - o.alignment));
|
|
4395
4406
|
const h = Math.min(i.length - l, o.length - u);
|
|
4396
4407
|
if (h === 0) return;
|
|
4397
|
-
const p =
|
|
4408
|
+
const p = Nr(
|
|
4398
4409
|
Math.round(t * 4 * h),
|
|
4399
4410
|
s,
|
|
4400
4411
|
51
|
|
@@ -4402,7 +4413,7 @@ const iu = 5e3, ou = (n, e) => uu(cu(n), e).map(
|
|
|
4402
4413
|
a.push({ x: i, y: o, xOffset: l, yOffset: u, count: h, downsample: p });
|
|
4403
4414
|
})
|
|
4404
4415
|
), a;
|
|
4405
|
-
},
|
|
4416
|
+
}, yu = (n) => n.map((e) => ({ ...e, x: e.x.digest, y: e.y.digest })), wu = (n, e, t) => {
|
|
4406
4417
|
if (!(n._timeRange != null && e._timeRange != null))
|
|
4407
4418
|
throw new pt(
|
|
4408
4419
|
`Encountered series without time range in buildDrawOperations. X series present: ${n._timeRange != null}, Y series present: ${e._timeRange != null}`
|
|
@@ -4444,7 +4455,7 @@ class Jt {
|
|
|
4444
4455
|
...g.couple(f.topLeft(e)),
|
|
4445
4456
|
...g.couple(f.dims(e)),
|
|
4446
4457
|
r
|
|
4447
|
-
), i.stroke()) : (i.rect(...g.couple(f.topLeft(e)), ...g.couple(f.dims(e))), i.stroke()) :
|
|
4458
|
+
), i.stroke()) : (i.rect(...g.couple(f.topLeft(e)), ...g.couple(f.dims(e))), i.stroke()) : yi(a).forEach((o) => {
|
|
4448
4459
|
const [l, u] = f.edgePoints(e, o);
|
|
4449
4460
|
i.beginPath(), i.moveTo(...g.couple(l)), i.lineTo(...g.couple(u)), i.stroke();
|
|
4450
4461
|
});
|
|
@@ -4458,7 +4469,7 @@ class Jt {
|
|
|
4458
4469
|
borderWidth: i,
|
|
4459
4470
|
backgroundColor: o
|
|
4460
4471
|
}) {
|
|
4461
|
-
a
|
|
4472
|
+
a ?? (a = this.theme.sizes.border.radius), i ?? (i = 1);
|
|
4462
4473
|
const l = this.canvas;
|
|
4463
4474
|
l.fillStyle = this.resolveColor(o, this.theme.colors.gray.l1).hex, l.strokeStyle = this.resolveColor(r, this.theme.colors.border).hex, l.setLineDash([]), l.lineWidth = 1, l.beginPath(), s ? l.roundRect(
|
|
4464
4475
|
...g.couple(f.topLeft(e)),
|
|
@@ -4521,7 +4532,7 @@ class Jt {
|
|
|
4521
4532
|
i != null && (l = this.canvas.scissor(f.construct(t, i, 1e3))), this.canvas.fillText(e, t.x, t.y), l == null || l();
|
|
4522
4533
|
}
|
|
4523
4534
|
}
|
|
4524
|
-
const
|
|
4535
|
+
const Xa = d.object({
|
|
4525
4536
|
position: d.number().optional(),
|
|
4526
4537
|
pixelPosition: d.number().optional(),
|
|
4527
4538
|
dragging: d.boolean(),
|
|
@@ -4532,7 +4543,7 @@ const Ha = d.object({
|
|
|
4532
4543
|
class Ee extends Z {
|
|
4533
4544
|
constructor() {
|
|
4534
4545
|
super(...arguments);
|
|
4535
|
-
c(this, "schema",
|
|
4546
|
+
c(this, "schema", Xa);
|
|
4536
4547
|
}
|
|
4537
4548
|
async afterUpdate() {
|
|
4538
4549
|
this.internal.renderCtx = z.use(this.ctx);
|
|
@@ -4571,17 +4582,17 @@ class Ee extends Z {
|
|
|
4571
4582
|
}
|
|
4572
4583
|
}
|
|
4573
4584
|
c(Ee, "TYPE", "Rule");
|
|
4574
|
-
const
|
|
4585
|
+
const xu = {
|
|
4575
4586
|
[Ee.TYPE]: Ee
|
|
4576
|
-
},
|
|
4587
|
+
}, lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4577
4588
|
__proto__: null,
|
|
4578
|
-
REGISTRY:
|
|
4589
|
+
REGISTRY: xu,
|
|
4579
4590
|
Rule: Ee,
|
|
4580
|
-
ruleStateZ:
|
|
4581
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4591
|
+
ruleStateZ: Xa
|
|
4592
|
+
}, Symbol.toStringTag, { value: "Module" })), ch = _n.extend({
|
|
4582
4593
|
location: Tt.x.optional().default("left")
|
|
4583
|
-
});
|
|
4584
|
-
class bn extends
|
|
4594
|
+
}), Er = 2, bu = (n) => f.signedWidth(n) < Er || f.signedHeight(n) < Er;
|
|
4595
|
+
class bn extends Wa {
|
|
4585
4596
|
constructor() {
|
|
4586
4597
|
super(...arguments);
|
|
4587
4598
|
c(this, "schema", _n);
|
|
@@ -4601,10 +4612,10 @@ class bn extends ja {
|
|
|
4601
4612
|
if (this.renderAxis(t, a), await this.renderLines(t, s), await this.renderRules(t, a), r != null) throw r;
|
|
4602
4613
|
}
|
|
4603
4614
|
async renderLines({ xDataToDecimalScale: t, plot: s, canvases: r, exposure: a }, i) {
|
|
4604
|
-
if (!r.includes("gl")) return;
|
|
4615
|
+
if (!r.includes("gl") || bu(s)) return;
|
|
4605
4616
|
const o = {
|
|
4606
4617
|
region: s,
|
|
4607
|
-
dataToDecimalScale: new
|
|
4618
|
+
dataToDecimalScale: new I.XY(t, i),
|
|
4608
4619
|
exposure: a
|
|
4609
4620
|
};
|
|
4610
4621
|
await Promise.all(this.lines.map(async (l) => await l.render(o)));
|
|
@@ -4632,7 +4643,7 @@ class bn extends ja {
|
|
|
4632
4643
|
r
|
|
4633
4644
|
);
|
|
4634
4645
|
if (u != null) throw u;
|
|
4635
|
-
const h = new
|
|
4646
|
+
const h = new I.XY(t, l), p = { region: s, dataToDecimalScale: h, exposure: i };
|
|
4636
4647
|
return (await Promise.all(
|
|
4637
4648
|
this.lines.map(async (m) => await m.findByXValue(p, o))
|
|
4638
4649
|
)).map((m) => ({ ...m, units: this.state.label }));
|
|
@@ -4648,14 +4659,14 @@ class bn extends ja {
|
|
|
4648
4659
|
}
|
|
4649
4660
|
}
|
|
4650
4661
|
c(bn, "TYPE", "YAxis");
|
|
4651
|
-
const
|
|
4662
|
+
const vu = d.object({
|
|
4652
4663
|
start: F.z,
|
|
4653
4664
|
end: F.z
|
|
4654
4665
|
});
|
|
4655
4666
|
class ss extends Z {
|
|
4656
4667
|
constructor() {
|
|
4657
4668
|
super(...arguments);
|
|
4658
|
-
c(this, "schema",
|
|
4669
|
+
c(this, "schema", vu);
|
|
4659
4670
|
}
|
|
4660
4671
|
async afterUpdate() {
|
|
4661
4672
|
this.internal.render = z.use(this.ctx), this.internal.draw = new Jt(
|
|
@@ -4667,16 +4678,16 @@ class ss extends Z {
|
|
|
4667
4678
|
}
|
|
4668
4679
|
}
|
|
4669
4680
|
c(ss, "TYPE", "range-annotation");
|
|
4670
|
-
const
|
|
4681
|
+
const Tu = d.object({
|
|
4671
4682
|
triggered: d.boolean(),
|
|
4672
|
-
status:
|
|
4683
|
+
status: Yr,
|
|
4673
4684
|
sink: Dn.optional().default(Mn),
|
|
4674
4685
|
source: ks.optional().default(Es)
|
|
4675
4686
|
});
|
|
4676
4687
|
class rs extends Z {
|
|
4677
4688
|
constructor() {
|
|
4678
4689
|
super(...arguments);
|
|
4679
|
-
c(this, "schema",
|
|
4690
|
+
c(this, "schema", Tu);
|
|
4680
4691
|
}
|
|
4681
4692
|
async afterUpdate() {
|
|
4682
4693
|
var r, a, i;
|
|
@@ -4685,7 +4696,7 @@ class rs extends Z {
|
|
|
4685
4696
|
this.ctx,
|
|
4686
4697
|
s,
|
|
4687
4698
|
this.internal.source
|
|
4688
|
-
), this.internal.sink = await De(this.ctx, t, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(((r = this.state.status.data) == null ? void 0 : r.authority) !==
|
|
4699
|
+
), this.internal.sink = await De(this.ctx, t, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(((r = this.state.status.data) == null ? void 0 : r.authority) !== wi.Absolute.valueOf()).catch(console.error), await this.updateEnabledState(), (i = (a = this.internal).stopListening) == null || i.call(a), this.internal.stopListening = this.internal.source.onChange(() => {
|
|
4689
4700
|
this.updateEnabledState();
|
|
4690
4701
|
});
|
|
4691
4702
|
}
|
|
@@ -4704,13 +4715,13 @@ class rs extends Z {
|
|
|
4704
4715
|
}
|
|
4705
4716
|
}
|
|
4706
4717
|
c(rs, "TYPE", "Chip");
|
|
4707
|
-
const
|
|
4718
|
+
const Su = d.object({}), Cr = "control-state-provider", Eu = ys.stateZ.extend({
|
|
4708
4719
|
subjectColor: Y.z
|
|
4709
4720
|
});
|
|
4710
4721
|
class Ce extends wt {
|
|
4711
4722
|
constructor() {
|
|
4712
4723
|
super(...arguments);
|
|
4713
|
-
c(this, "schema",
|
|
4724
|
+
c(this, "schema", Su);
|
|
4714
4725
|
/** Tracks the colors we assign to a particular control subject. */
|
|
4715
4726
|
c(this, "colors", /* @__PURE__ */ new Map());
|
|
4716
4727
|
/** Tracks the current control state for each channel and allows us to access it */
|
|
@@ -4727,7 +4738,7 @@ class Ce extends wt {
|
|
|
4727
4738
|
* @throws {Error} if the state provider is not in the context.
|
|
4728
4739
|
*/
|
|
4729
4740
|
static use(t) {
|
|
4730
|
-
return t.get(
|
|
4741
|
+
return t.get(Cr);
|
|
4731
4742
|
}
|
|
4732
4743
|
async afterUpdate() {
|
|
4733
4744
|
const { internal: t } = this;
|
|
@@ -4735,7 +4746,7 @@ class Ce extends wt {
|
|
|
4735
4746
|
const s = xt(this.ctx);
|
|
4736
4747
|
t.palette = s.colors.visualization.palettes.default, t.defaultColor = s.colors.gray.l6;
|
|
4737
4748
|
const r = Oe(this.ctx);
|
|
4738
|
-
t.client != null && r === t.client || (t.client = r, this.ctx.set(
|
|
4749
|
+
t.client != null && r === t.client || (t.client = r, this.ctx.set(Cr, this), await this.maybeCloseTracker(), t.client != null && (this.internal.instrumentation.L.debug("starting state tracker"), await this.openTracker(t.client)));
|
|
4739
4750
|
}
|
|
4740
4751
|
async maybeCloseTracker() {
|
|
4741
4752
|
var t;
|
|
@@ -4748,7 +4759,7 @@ class Ce extends wt {
|
|
|
4748
4759
|
return this.obs.onChange(t);
|
|
4749
4760
|
}
|
|
4750
4761
|
get(t) {
|
|
4751
|
-
return Array.isArray(t) ?
|
|
4762
|
+
return Array.isArray(t) ? xi(t).map((s) => this.getOne(s)).filter((s) => s != null) : this.getOne(t);
|
|
4752
4763
|
}
|
|
4753
4764
|
getOne(t) {
|
|
4754
4765
|
if (this.tracker == null) return;
|
|
@@ -4786,24 +4797,24 @@ class Ce extends wt {
|
|
|
4786
4797
|
}
|
|
4787
4798
|
}
|
|
4788
4799
|
c(Ce, "TYPE", "StateProvider");
|
|
4789
|
-
const
|
|
4800
|
+
const Cu = ["acquired", "released", "overridden", "failed"], ku = d.enum(Cu), Pu = d.object({
|
|
4790
4801
|
name: d.string(),
|
|
4791
4802
|
authority: d.number().default(0),
|
|
4792
4803
|
acquireTrigger: d.number(),
|
|
4793
|
-
status:
|
|
4794
|
-
needsControlOf:
|
|
4804
|
+
status: ku.optional(),
|
|
4805
|
+
needsControlOf: Ar.keyZ.array().optional().default([])
|
|
4795
4806
|
});
|
|
4796
4807
|
class as extends wt {
|
|
4797
4808
|
constructor() {
|
|
4798
4809
|
super(...arguments);
|
|
4799
|
-
c(this, "schema",
|
|
4810
|
+
c(this, "schema", Pu);
|
|
4800
4811
|
c(this, "registry", /* @__PURE__ */ new Map());
|
|
4801
4812
|
c(this, "writer");
|
|
4802
4813
|
}
|
|
4803
4814
|
async afterUpdate() {
|
|
4804
4815
|
this.internal.instrumentation = Le(this.ctx), (this.internal.prevTrigger == null || Math.abs(this.state.acquireTrigger - this.internal.prevTrigger) > 1) && (this.internal.prevTrigger = this.state.acquireTrigger);
|
|
4805
4816
|
const t = Oe(this.ctx), s = Ce.use(this.ctx);
|
|
4806
|
-
this.internal.client = t, this.internal.client == null && await this.release(), this.internal.stateProv = s,
|
|
4817
|
+
this.internal.client = t, this.internal.client == null && await this.release(), this.internal.stateProv = s, $r(this.ctx, this), this.internal.addStatus = ws(this.ctx), this.state.acquireTrigger > this.internal.prevTrigger ? (this.acquire(), this.internal.prevTrigger = this.state.acquireTrigger) : this.state.acquireTrigger < this.internal.prevTrigger && (this.release(), this.internal.prevTrigger = this.state.acquireTrigger);
|
|
4807
4818
|
}
|
|
4808
4819
|
async afterDelete() {
|
|
4809
4820
|
await this.release();
|
|
@@ -4899,14 +4910,14 @@ class as extends wt {
|
|
|
4899
4910
|
}
|
|
4900
4911
|
}
|
|
4901
4912
|
c(as, "TYPE", "Controller");
|
|
4902
|
-
const
|
|
4913
|
+
const Ru = d.object({
|
|
4903
4914
|
channel: d.number()
|
|
4904
4915
|
});
|
|
4905
4916
|
class vn extends An {
|
|
4906
4917
|
constructor(t, s) {
|
|
4907
4918
|
super(s);
|
|
4908
4919
|
c(this, "controller");
|
|
4909
|
-
c(this, "schema",
|
|
4920
|
+
c(this, "schema", Ru);
|
|
4910
4921
|
this.controller = t;
|
|
4911
4922
|
}
|
|
4912
4923
|
invalidate() {
|
|
@@ -4931,12 +4942,12 @@ class vn extends An {
|
|
|
4931
4942
|
}
|
|
4932
4943
|
}
|
|
4933
4944
|
c(vn, "TYPE", "controlled-numeric-telem-sink");
|
|
4934
|
-
const
|
|
4945
|
+
const uh = (n) => ({
|
|
4935
4946
|
type: vn.TYPE,
|
|
4936
4947
|
props: n,
|
|
4937
4948
|
variant: "sink",
|
|
4938
4949
|
valueType: "number"
|
|
4939
|
-
}),
|
|
4950
|
+
}), Mu = d.object({
|
|
4940
4951
|
authority: d.number().default(ys.Authority.Absolute.valueOf()),
|
|
4941
4952
|
channel: d.number()
|
|
4942
4953
|
});
|
|
@@ -4944,7 +4955,7 @@ class Tn extends An {
|
|
|
4944
4955
|
constructor(t, s) {
|
|
4945
4956
|
super(s);
|
|
4946
4957
|
c(this, "controller");
|
|
4947
|
-
c(this, "schema",
|
|
4958
|
+
c(this, "schema", Mu);
|
|
4948
4959
|
this.controller = t;
|
|
4949
4960
|
}
|
|
4950
4961
|
async cleanup() {
|
|
@@ -4962,12 +4973,12 @@ class Tn extends An {
|
|
|
4962
4973
|
}
|
|
4963
4974
|
}
|
|
4964
4975
|
c(Tn, "TYPE", "acquire-channel-control");
|
|
4965
|
-
const
|
|
4976
|
+
const hh = (n) => ({
|
|
4966
4977
|
type: Tn.TYPE,
|
|
4967
4978
|
props: n,
|
|
4968
4979
|
variant: "sink",
|
|
4969
4980
|
valueType: "boolean"
|
|
4970
|
-
}),
|
|
4981
|
+
}), Ou = d.object({
|
|
4971
4982
|
channel: d.number()
|
|
4972
4983
|
});
|
|
4973
4984
|
class Sn extends Q {
|
|
@@ -4977,7 +4988,7 @@ class Sn extends Q {
|
|
|
4977
4988
|
c(this, "valid", !1);
|
|
4978
4989
|
c(this, "stopListening");
|
|
4979
4990
|
c(this, "controller");
|
|
4980
|
-
c(this, "schema",
|
|
4991
|
+
c(this, "schema", Ou);
|
|
4981
4992
|
this.prov = s, this.controller = t;
|
|
4982
4993
|
}
|
|
4983
4994
|
async needsControlOf() {
|
|
@@ -4988,7 +4999,7 @@ class Sn extends Q {
|
|
|
4988
4999
|
if (this.valid) return;
|
|
4989
5000
|
const { channel: t } = this.props;
|
|
4990
5001
|
(r = this.stopListening) == null || r.call(this);
|
|
4991
|
-
const s =
|
|
5002
|
+
const s = Lr.filterTransfersByChannelKey(t);
|
|
4992
5003
|
this.stopListening = this.prov.onChange((a) => {
|
|
4993
5004
|
var i;
|
|
4994
5005
|
s(a).length !== 0 && ((i = this.notify) == null || i.call(this));
|
|
@@ -5026,21 +5037,21 @@ class Sn extends Q {
|
|
|
5026
5037
|
}
|
|
5027
5038
|
}
|
|
5028
5039
|
c(Sn, "TYPE", "controlled-status-source");
|
|
5029
|
-
const
|
|
5040
|
+
const dh = (n) => ({
|
|
5030
5041
|
type: Sn.TYPE,
|
|
5031
5042
|
props: n,
|
|
5032
5043
|
variant: "source",
|
|
5033
5044
|
valueType: "status"
|
|
5034
|
-
}),
|
|
5045
|
+
}), Du = d.object({
|
|
5035
5046
|
statusSource: ks.optional().default(Es),
|
|
5036
|
-
colorSource:
|
|
5037
|
-
status:
|
|
5047
|
+
colorSource: Kr.optional().default(qr),
|
|
5048
|
+
status: Yr,
|
|
5038
5049
|
color: Y.z.optional()
|
|
5039
5050
|
});
|
|
5040
5051
|
class is extends Z {
|
|
5041
5052
|
constructor() {
|
|
5042
5053
|
super(...arguments);
|
|
5043
|
-
c(this, "schema",
|
|
5054
|
+
c(this, "schema", Du);
|
|
5044
5055
|
c(this, "stopListeningStatus");
|
|
5045
5056
|
c(this, "stopListeningColor");
|
|
5046
5057
|
}
|
|
@@ -5076,14 +5087,14 @@ class is extends Z {
|
|
|
5076
5087
|
}
|
|
5077
5088
|
}
|
|
5078
5089
|
c(is, "TYPE", "Indicator");
|
|
5079
|
-
const
|
|
5080
|
-
needsControlOf:
|
|
5081
|
-
states:
|
|
5090
|
+
const Yu = d.object({
|
|
5091
|
+
needsControlOf: Ar.keyZ.array(),
|
|
5092
|
+
states: Eu.array()
|
|
5082
5093
|
});
|
|
5083
5094
|
class os extends Z {
|
|
5084
5095
|
constructor() {
|
|
5085
5096
|
super(...arguments);
|
|
5086
|
-
c(this, "schema",
|
|
5097
|
+
c(this, "schema", Yu);
|
|
5087
5098
|
}
|
|
5088
5099
|
async afterUpdate() {
|
|
5089
5100
|
var i;
|
|
@@ -5091,7 +5102,7 @@ class os extends Z {
|
|
|
5091
5102
|
t.stateProv = Ce.use(this.ctx);
|
|
5092
5103
|
const s = this.state.needsControlOf;
|
|
5093
5104
|
(i = t.disconnectStateProv) == null || i.call(t);
|
|
5094
|
-
const r =
|
|
5105
|
+
const r = Lr.filterTransfersByChannelKey(...s), a = t.stateProv.get(s);
|
|
5095
5106
|
this.setState((o) => ({ ...o, states: a })), t.disconnectStateProv = t.stateProv.onChange((o) => {
|
|
5096
5107
|
if (r(o).length === 0) return;
|
|
5097
5108
|
const l = t.stateProv.get(s);
|
|
@@ -5107,24 +5118,25 @@ class os extends Z {
|
|
|
5107
5118
|
}
|
|
5108
5119
|
}
|
|
5109
5120
|
c(os, "TYPE", "Legend");
|
|
5110
|
-
const
|
|
5121
|
+
const fh = {
|
|
5111
5122
|
[as.TYPE]: as,
|
|
5112
5123
|
[Ce.TYPE]: Ce,
|
|
5113
5124
|
[is.TYPE]: is,
|
|
5114
5125
|
[rs.TYPE]: rs,
|
|
5115
5126
|
[os.TYPE]: os
|
|
5116
|
-
},
|
|
5127
|
+
}, Au = d.object({
|
|
5117
5128
|
trigger: d.number(),
|
|
5118
5129
|
sink: Dn.optional().default(Mn)
|
|
5119
5130
|
});
|
|
5120
5131
|
class ls extends Z {
|
|
5121
5132
|
constructor() {
|
|
5122
5133
|
super(...arguments);
|
|
5123
|
-
c(this, "schema",
|
|
5134
|
+
c(this, "schema", Au);
|
|
5124
5135
|
}
|
|
5125
5136
|
async afterUpdate() {
|
|
5137
|
+
var r;
|
|
5126
5138
|
const { sink: t } = this.state;
|
|
5127
|
-
this.internal.prevTrigger
|
|
5139
|
+
(r = this.internal).prevTrigger ?? (r.prevTrigger = this.state.trigger), this.internal.sink = await De(this.ctx, t, this.internal.sink);
|
|
5128
5140
|
const s = this.internal.prevTrigger;
|
|
5129
5141
|
this.internal.prevTrigger = this.state.trigger, !(this.state.trigger <= s) && this.internal.sink.set(!0).catch(console.error);
|
|
5130
5142
|
}
|
|
@@ -5140,9 +5152,9 @@ class ls extends Z {
|
|
|
5140
5152
|
}
|
|
5141
5153
|
}
|
|
5142
5154
|
c(ls, "TYPE", "Button");
|
|
5143
|
-
const
|
|
5155
|
+
const ph = {
|
|
5144
5156
|
[ls.TYPE]: ls
|
|
5145
|
-
},
|
|
5157
|
+
}, Ga = d.object({
|
|
5146
5158
|
dpr: d.number(),
|
|
5147
5159
|
region: f.box,
|
|
5148
5160
|
bootstrap: d.boolean().optional().default(!1),
|
|
@@ -5152,12 +5164,12 @@ const ch = {
|
|
|
5152
5164
|
glCanvas: d.any().optional(),
|
|
5153
5165
|
upper2dCanvas: d.any().optional(),
|
|
5154
5166
|
lower2dCanvas: d.any().optional(),
|
|
5155
|
-
os:
|
|
5167
|
+
os: bi.osZ
|
|
5156
5168
|
});
|
|
5157
5169
|
class En extends wt {
|
|
5158
5170
|
constructor() {
|
|
5159
5171
|
super(...arguments);
|
|
5160
|
-
c(this, "schema",
|
|
5172
|
+
c(this, "schema", Ga);
|
|
5161
5173
|
c(this, "renderContextSet", !1);
|
|
5162
5174
|
}
|
|
5163
5175
|
async afterUpdate() {
|
|
@@ -5192,14 +5204,14 @@ class En extends wt {
|
|
|
5192
5204
|
}
|
|
5193
5205
|
}
|
|
5194
5206
|
c(En, "TYPE", "Canvas");
|
|
5195
|
-
const
|
|
5207
|
+
const Lu = {
|
|
5196
5208
|
[En.TYPE]: En
|
|
5197
|
-
},
|
|
5209
|
+
}, gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5198
5210
|
__proto__: null,
|
|
5199
5211
|
Canvas: En,
|
|
5200
|
-
REGISTRY:
|
|
5201
|
-
canvasStateZ:
|
|
5202
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5212
|
+
REGISTRY: Lu,
|
|
5213
|
+
canvasStateZ: Ga
|
|
5214
|
+
}, Symbol.toStringTag, { value: "Module" })), Va = d.object({
|
|
5203
5215
|
position: g.xy,
|
|
5204
5216
|
zoom: d.number(),
|
|
5205
5217
|
region: f.box,
|
|
@@ -5221,7 +5233,7 @@ const Mu = {
|
|
|
5221
5233
|
const { renderCtx: t, addStatus: s } = this.internal, { zoom: r, position: a } = this.state, i = f.construct(this.state.region);
|
|
5222
5234
|
if (!this.state.visible)
|
|
5223
5235
|
return async () => t.erase(i, this.state.clearOverScan, ...Fe);
|
|
5224
|
-
const o = t.scissor(i, g.ZERO, Fe), l =
|
|
5236
|
+
const o = t.scissor(i, g.ZERO, Fe), l = I.XY.magnify(g.construct(r)).translate(f.topLeft(i)).translate(a);
|
|
5225
5237
|
try {
|
|
5226
5238
|
await Promise.all(
|
|
5227
5239
|
this.children.map(async (h) => await h.render({ viewportScale: l }))
|
|
@@ -5246,24 +5258,24 @@ const Mu = {
|
|
|
5246
5258
|
});
|
|
5247
5259
|
}
|
|
5248
5260
|
};
|
|
5249
|
-
c(Ft, "TYPE", "Diagram"), c(Ft, "stateZ",
|
|
5261
|
+
c(Ft, "TYPE", "Diagram"), c(Ft, "stateZ", Va);
|
|
5250
5262
|
let ke = Ft;
|
|
5251
|
-
const
|
|
5263
|
+
const _u = {
|
|
5252
5264
|
[ke.TYPE]: ke
|
|
5253
|
-
},
|
|
5265
|
+
}, mh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5254
5266
|
__proto__: null,
|
|
5255
5267
|
Diagram: ke,
|
|
5256
|
-
REGISTRY:
|
|
5257
|
-
diagramStateZ:
|
|
5258
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5268
|
+
REGISTRY: _u,
|
|
5269
|
+
diagramStateZ: Va
|
|
5270
|
+
}, Symbol.toStringTag, { value: "Module" })), Nu = d.object({
|
|
5259
5271
|
region: f.box,
|
|
5260
5272
|
enabled: d.boolean().optional().default(!1)
|
|
5261
5273
|
});
|
|
5262
5274
|
class cs extends Z {
|
|
5263
5275
|
constructor() {
|
|
5264
5276
|
super(...arguments);
|
|
5265
|
-
c(this, "schema",
|
|
5266
|
-
c(this, "eraser", new
|
|
5277
|
+
c(this, "schema", Nu);
|
|
5278
|
+
c(this, "eraser", new Gc());
|
|
5267
5279
|
}
|
|
5268
5280
|
async afterUpdate() {
|
|
5269
5281
|
this.deleted || (this.internal.render = z.use(this.ctx), await this.internal.render.loop.set({
|
|
@@ -5292,16 +5304,16 @@ class cs extends Z {
|
|
|
5292
5304
|
}
|
|
5293
5305
|
}
|
|
5294
5306
|
c(cs, "TYPE", "eraser");
|
|
5295
|
-
const
|
|
5307
|
+
const yh = {
|
|
5296
5308
|
[cs.TYPE]: cs
|
|
5297
|
-
},
|
|
5309
|
+
}, Iu = d.object({
|
|
5298
5310
|
enabled: d.boolean(),
|
|
5299
5311
|
source: Cs.optional().default(Ss)
|
|
5300
5312
|
});
|
|
5301
5313
|
class us extends Z {
|
|
5302
5314
|
constructor() {
|
|
5303
5315
|
super(...arguments);
|
|
5304
|
-
c(this, "schema",
|
|
5316
|
+
c(this, "schema", Iu);
|
|
5305
5317
|
}
|
|
5306
5318
|
async afterUpdate() {
|
|
5307
5319
|
var r;
|
|
@@ -5337,7 +5349,7 @@ class us extends Z {
|
|
|
5337
5349
|
}
|
|
5338
5350
|
}
|
|
5339
5351
|
c(us, "TYPE", "Light");
|
|
5340
|
-
const
|
|
5352
|
+
const wh = { [us.TYPE]: us }, Ka = d.object({
|
|
5341
5353
|
position: g.xy.or(d.null()),
|
|
5342
5354
|
textColor: Y.z.optional().default(V),
|
|
5343
5355
|
backgroundColor: Y.z.optional().default(V),
|
|
@@ -5349,7 +5361,7 @@ const fh = { [us.TYPE]: us }, Ga = d.object({
|
|
|
5349
5361
|
class Pe extends Z {
|
|
5350
5362
|
constructor() {
|
|
5351
5363
|
super(...arguments);
|
|
5352
|
-
c(this, "schema",
|
|
5364
|
+
c(this, "schema", Ka);
|
|
5353
5365
|
}
|
|
5354
5366
|
async afterUpdate() {
|
|
5355
5367
|
const t = xt(this.ctx);
|
|
@@ -5360,7 +5372,7 @@ class Pe extends Z {
|
|
|
5360
5372
|
}
|
|
5361
5373
|
async render(t) {
|
|
5362
5374
|
if (this.deleted || this.state.position == null) return;
|
|
5363
|
-
const { region: s } = t, r =
|
|
5375
|
+
const { region: s } = t, r = I.XY.scale(f.DECIMAL).scale(s), a = I.XY.scale(s).scale(f.DECIMAL), i = await t.findByXDecimal(
|
|
5364
5376
|
a.x.pos(this.state.position.x)
|
|
5365
5377
|
), o = i.filter((b) => g.isFinite(b.value)), { draw: l } = this.internal, u = o.reduce((b, T) => b + T.position.x, 0) / o.length, h = new F(
|
|
5366
5378
|
o.reduce((b, T) => b + T.value.x, 0) / o.length
|
|
@@ -5404,24 +5416,24 @@ class Pe extends Z {
|
|
|
5404
5416
|
}
|
|
5405
5417
|
}
|
|
5406
5418
|
c(Pe, "TYPE", "tooltip");
|
|
5407
|
-
const
|
|
5419
|
+
const Bu = {
|
|
5408
5420
|
[Pe.TYPE]: Pe
|
|
5409
|
-
},
|
|
5421
|
+
}, xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5410
5422
|
__proto__: null,
|
|
5411
|
-
REGISTRY:
|
|
5423
|
+
REGISTRY: Bu,
|
|
5412
5424
|
Tooltip: Pe,
|
|
5413
|
-
tooltipStateZ:
|
|
5414
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5425
|
+
tooltipStateZ: Ka
|
|
5426
|
+
}, Symbol.toStringTag, { value: "Module" })), Uu = d.object({
|
|
5415
5427
|
region: f.box,
|
|
5416
5428
|
wheelPos: d.number(),
|
|
5417
5429
|
scrolling: d.boolean(),
|
|
5418
5430
|
empty: d.boolean(),
|
|
5419
5431
|
visible: d.boolean(),
|
|
5420
|
-
telem: rn.optional().default(
|
|
5421
|
-
font:
|
|
5432
|
+
telem: rn.optional().default(jr),
|
|
5433
|
+
font: _r.optional().default("p"),
|
|
5422
5434
|
color: Y.z.optional().default(V),
|
|
5423
5435
|
overshoot: g.xy.optional().default({ x: 0, y: 0 })
|
|
5424
|
-
}),
|
|
5436
|
+
}), $u = 0.98, se = "lower2d", Zu = {
|
|
5425
5437
|
offset: 0n,
|
|
5426
5438
|
offsetRef: 0n,
|
|
5427
5439
|
scrollRef: 0
|
|
@@ -5429,8 +5441,8 @@ const Au = {
|
|
|
5429
5441
|
constructor() {
|
|
5430
5442
|
super(...arguments);
|
|
5431
5443
|
c(this, "schema", ue.z);
|
|
5432
|
-
c(this, "values", new
|
|
5433
|
-
c(this, "scrollState",
|
|
5444
|
+
c(this, "values", new In([]));
|
|
5445
|
+
c(this, "scrollState", Zu);
|
|
5434
5446
|
}
|
|
5435
5447
|
async afterUpdate() {
|
|
5436
5448
|
var l;
|
|
@@ -5452,9 +5464,9 @@ const Au = {
|
|
|
5452
5464
|
), u.offset < h.alignmentBounds.lower + BigInt(this.visibleLineCount) && (u.offset = h.alignmentBounds.lower, this.setState((m) => ({ ...m, wheelPos: this.prevState.wheelPos }))), u.offset >= h.alignmentBounds.upper && this.setState((m) => ({ ...m, scrolling: !1 }));
|
|
5453
5465
|
}
|
|
5454
5466
|
const [i, o] = await this.internal.telem.value();
|
|
5455
|
-
this.values = new
|
|
5467
|
+
this.values = new In(o), this.checkEmpty(), (l = t.stopListeningTelem) == null || l.call(t), t.stopListeningTelem = t.telem.onChange(
|
|
5456
5468
|
() => this.internal.telem.value().then(([u, h]) => {
|
|
5457
|
-
this.checkEmpty(), this.values = new
|
|
5469
|
+
this.checkEmpty(), this.values = new In(h), this.requestRender();
|
|
5458
5470
|
})
|
|
5459
5471
|
), this.requestRender();
|
|
5460
5472
|
}
|
|
@@ -5513,7 +5525,7 @@ const Au = {
|
|
|
5513
5525
|
}
|
|
5514
5526
|
renderScrollbar(t) {
|
|
5515
5527
|
const s = this.state.region, r = f.height(s) / this.totalHeight * f.height(s);
|
|
5516
|
-
if (r >= f.height(s) *
|
|
5528
|
+
if (r >= f.height(s) * $u) return;
|
|
5517
5529
|
let a = f.bottom(s) - r;
|
|
5518
5530
|
this.state.scrolling && (a -= Number(
|
|
5519
5531
|
this.values.distance(
|
|
@@ -5544,9 +5556,9 @@ const Au = {
|
|
|
5544
5556
|
}
|
|
5545
5557
|
}
|
|
5546
5558
|
};
|
|
5547
|
-
c(ue, "TYPE", "log"), c(ue, "z",
|
|
5559
|
+
c(ue, "TYPE", "log"), c(ue, "z", Uu);
|
|
5548
5560
|
let Cn = ue;
|
|
5549
|
-
const
|
|
5561
|
+
const bh = { [Cn.TYPE]: Cn }, Qa = d.object({
|
|
5550
5562
|
one: g.xy.nullable(),
|
|
5551
5563
|
two: g.xy.nullable(),
|
|
5552
5564
|
hover: g.xy.nullable(),
|
|
@@ -5564,7 +5576,7 @@ const gh = { [Cn.TYPE]: Cn }, Va = d.object({
|
|
|
5564
5576
|
class Re extends Z {
|
|
5565
5577
|
constructor() {
|
|
5566
5578
|
super(...arguments);
|
|
5567
|
-
c(this, "schema",
|
|
5579
|
+
c(this, "schema", Qa);
|
|
5568
5580
|
}
|
|
5569
5581
|
async afterUpdate() {
|
|
5570
5582
|
const t = z.use(this.ctx);
|
|
@@ -5600,7 +5612,7 @@ class Re extends Z {
|
|
|
5600
5612
|
)[0]
|
|
5601
5613
|
];
|
|
5602
5614
|
}
|
|
5603
|
-
const u =
|
|
5615
|
+
const u = I.XY.scale(t.region).scale(f.DECIMAL), [h, p] = [u.pos(s), u.pos(r)], [m, x] = [
|
|
5604
5616
|
await t.findByXDecimal(h.x),
|
|
5605
5617
|
await t.findByXDecimal(p.x)
|
|
5606
5618
|
];
|
|
@@ -5617,7 +5629,7 @@ class Re extends Z {
|
|
|
5617
5629
|
}
|
|
5618
5630
|
async renderHover(t) {
|
|
5619
5631
|
if (this.state.hover == null) return;
|
|
5620
|
-
const s = this.state.hover, r =
|
|
5632
|
+
const s = this.state.hover, r = I.XY.scale(t.region).scale(f.DECIMAL), a = r.pos(s), i = await t.findByXDecimal(r.pos(s).x);
|
|
5621
5633
|
if (i.length === 0) return;
|
|
5622
5634
|
const o = i.sort(
|
|
5623
5635
|
(u, h) => g.distance(a, u.position) - g.distance(a, h.position)
|
|
@@ -5633,7 +5645,7 @@ class Re extends Z {
|
|
|
5633
5645
|
await this.renderHover(t);
|
|
5634
5646
|
const s = await this.find(t);
|
|
5635
5647
|
if (s == null) return;
|
|
5636
|
-
const [r, a] = s, { draw: i } = this.internal, { strokeDash: o, strokeWidth: l } = this.state, u =
|
|
5648
|
+
const [r, a] = s, { draw: i } = this.internal, { strokeDash: o, strokeWidth: l } = this.state, u = I.XY.scale(f.DECIMAL).scale(t.region), h = u.pos(r.position), p = u.pos(a.position), m = new $(Math.abs(r.value.x - a.value.x)), x = Math.abs(r.value.y - a.value.y), b = x / m.seconds;
|
|
5637
5649
|
i.line({
|
|
5638
5650
|
start: g.construct(h.x, h.y),
|
|
5639
5651
|
end: g.construct(h.x, p.y),
|
|
@@ -5671,24 +5683,24 @@ class Re extends Z {
|
|
|
5671
5683
|
}
|
|
5672
5684
|
}
|
|
5673
5685
|
c(Re, "TYPE", "measure");
|
|
5674
|
-
const
|
|
5686
|
+
const Fu = {
|
|
5675
5687
|
[Re.TYPE]: Re
|
|
5676
|
-
},
|
|
5688
|
+
}, vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5677
5689
|
__proto__: null,
|
|
5678
5690
|
Measure: Re,
|
|
5679
|
-
REGISTRY:
|
|
5680
|
-
measureStateZ:
|
|
5681
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5691
|
+
REGISTRY: Fu,
|
|
5692
|
+
measureStateZ: Qa
|
|
5693
|
+
}, Symbol.toStringTag, { value: "Module" })), zu = d.object({
|
|
5682
5694
|
trigger: d.number(),
|
|
5683
5695
|
command: d.number().optional(),
|
|
5684
5696
|
value: d.number(),
|
|
5685
|
-
sink:
|
|
5686
|
-
source:
|
|
5697
|
+
sink: Vr.optional().default(Zr),
|
|
5698
|
+
source: Gr.optional().default(Fr)
|
|
5687
5699
|
});
|
|
5688
5700
|
class hs extends Z {
|
|
5689
5701
|
constructor() {
|
|
5690
5702
|
super(...arguments);
|
|
5691
|
-
c(this, "schema",
|
|
5703
|
+
c(this, "schema", zu);
|
|
5692
5704
|
}
|
|
5693
5705
|
async afterUpdate() {
|
|
5694
5706
|
var l;
|
|
@@ -5724,7 +5736,7 @@ class hs extends Z {
|
|
|
5724
5736
|
}
|
|
5725
5737
|
}
|
|
5726
5738
|
c(hs, "TYPE", "Setpoint");
|
|
5727
|
-
const
|
|
5739
|
+
const Th = { [hs.TYPE]: hs }, qu = d.object({
|
|
5728
5740
|
triggered: d.boolean(),
|
|
5729
5741
|
enabled: d.boolean(),
|
|
5730
5742
|
sink: Dn.optional().default(Mn),
|
|
@@ -5733,7 +5745,7 @@ const yh = { [hs.TYPE]: hs }, Uu = d.object({
|
|
|
5733
5745
|
class ds extends Z {
|
|
5734
5746
|
constructor() {
|
|
5735
5747
|
super(...arguments);
|
|
5736
|
-
c(this, "schema",
|
|
5748
|
+
c(this, "schema", qu);
|
|
5737
5749
|
}
|
|
5738
5750
|
async afterUpdate() {
|
|
5739
5751
|
var l;
|
|
@@ -5769,15 +5781,16 @@ class ds extends Z {
|
|
|
5769
5781
|
}
|
|
5770
5782
|
}
|
|
5771
5783
|
c(ds, "TYPE", "Toggle");
|
|
5772
|
-
const
|
|
5784
|
+
const Sh = { [ds.TYPE]: ds }, ju = d.object({
|
|
5773
5785
|
box: f.box,
|
|
5774
|
-
telem:
|
|
5775
|
-
level:
|
|
5786
|
+
telem: Qr.optional().default(zr),
|
|
5787
|
+
level: _r.optional().default("p"),
|
|
5776
5788
|
color: Y.z.optional().default(V),
|
|
5777
5789
|
precision: d.number().optional().default(2),
|
|
5778
5790
|
minWidth: d.number().optional().default(60),
|
|
5779
|
-
width: d.number().optional()
|
|
5780
|
-
|
|
5791
|
+
width: d.number().optional(),
|
|
5792
|
+
notation: ha.optional().default("standard")
|
|
5793
|
+
}), kr = "upper2d", he = class he extends Z {
|
|
5781
5794
|
constructor() {
|
|
5782
5795
|
super(...arguments);
|
|
5783
5796
|
c(this, "schema", he.z);
|
|
@@ -5790,7 +5803,7 @@ const wh = { [ds.TYPE]: ds }, $u = d.object({
|
|
|
5790
5803
|
async afterDelete() {
|
|
5791
5804
|
var a;
|
|
5792
5805
|
const { requestRender: t, telem: s, render: r } = this.internal;
|
|
5793
|
-
await ((a = s.cleanup) == null ? void 0 : a.call(s)), t == null ? r.erase(f.construct(this.state.box), g.ZERO,
|
|
5806
|
+
await ((a = s.cleanup) == null ? void 0 : a.call(s)), t == null ? r.erase(f.construct(this.state.box), g.ZERO, kr) : t(yt);
|
|
5794
5807
|
}
|
|
5795
5808
|
requestRender() {
|
|
5796
5809
|
const { requestRender: t } = this.internal;
|
|
@@ -5804,10 +5817,10 @@ const wh = { [ds.TYPE]: ds }, $u = d.object({
|
|
|
5804
5817
|
const { theme: s } = this.internal, r = t + s.sizes.base + this.fontHeight;
|
|
5805
5818
|
this.state.width == null || this.state.width + this.fontHeight * 0.5 < r || this.state.minWidth > r && this.state.width !== this.state.minWidth ? this.setState((a) => ({ ...a, width: Math.max(r, a.minWidth) })) : this.state.width - this.fontHeight > r && this.setState((a) => ({ ...a, width: Math.max(r, a.minWidth) }));
|
|
5806
5819
|
}
|
|
5807
|
-
async render({ viewportScale: t =
|
|
5820
|
+
async render({ viewportScale: t = I.XY.IDENTITY }) {
|
|
5808
5821
|
const { render: s, telem: r } = this.internal, a = f.construct(this.state.box);
|
|
5809
5822
|
if (f.areaIsZero(a)) return;
|
|
5810
|
-
const i = s[
|
|
5823
|
+
const i = s[kr].applyScale(t);
|
|
5811
5824
|
let o = await r.value();
|
|
5812
5825
|
const l = re(this.internal.theme, {
|
|
5813
5826
|
level: this.state.level,
|
|
@@ -5828,34 +5841,34 @@ const wh = { [ds.TYPE]: ds }, $u = d.object({
|
|
|
5828
5841
|
), i.fillText(o, ...g.couple(x));
|
|
5829
5842
|
}
|
|
5830
5843
|
};
|
|
5831
|
-
c(he, "TYPE", "value"), c(he, "z",
|
|
5844
|
+
c(he, "TYPE", "value"), c(he, "z", ju);
|
|
5832
5845
|
let Me = he;
|
|
5833
|
-
const
|
|
5846
|
+
const Hu = {
|
|
5834
5847
|
[Me.TYPE]: Me
|
|
5835
|
-
},
|
|
5848
|
+
}, Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5836
5849
|
__proto__: null,
|
|
5837
|
-
REGISTRY:
|
|
5850
|
+
REGISTRY: Hu,
|
|
5838
5851
|
Value: Me
|
|
5839
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5852
|
+
}, Symbol.toStringTag, { value: "Module" })), Wu = vi.payloadZ.extend({
|
|
5840
5853
|
viewport: R.bounds
|
|
5841
|
-
}),
|
|
5854
|
+
}), Pr = (n) => Y.z.safeParse(n).success, Xu = d.object({
|
|
5842
5855
|
cursor: g.xy.or(d.null()),
|
|
5843
|
-
hovered:
|
|
5856
|
+
hovered: Wu.or(d.null()),
|
|
5844
5857
|
count: d.number()
|
|
5845
5858
|
});
|
|
5846
5859
|
class kn extends Z {
|
|
5847
5860
|
constructor() {
|
|
5848
5861
|
super(...arguments);
|
|
5849
|
-
c(this, "schema",
|
|
5862
|
+
c(this, "schema", Xu);
|
|
5850
5863
|
c(this, "fetchedInitial", ut.ZERO);
|
|
5851
5864
|
}
|
|
5852
5865
|
async afterUpdate() {
|
|
5853
5866
|
const { internal: t } = this;
|
|
5854
|
-
t.render = z.use(this.ctx), t.draw = new Jt(t.render.upper2d, xt(this.ctx)), t.ranges
|
|
5867
|
+
t.render = z.use(this.ctx), t.draw = new Jt(t.render.upper2d, xt(this.ctx)), t.ranges ?? (t.ranges = /* @__PURE__ */ new Map());
|
|
5855
5868
|
const s = Oe(this.ctx);
|
|
5856
5869
|
s != null && (t.client = s, t.tracker == null && (t.tracker = await t.client.ranges.openTracker(), t.tracker.onChange(async (r) => {
|
|
5857
5870
|
r.forEach(async (a) => {
|
|
5858
|
-
a.variant === "delete" ? t.ranges.delete(a.key) :
|
|
5871
|
+
a.variant === "delete" ? t.ranges.delete(a.key) : Pr(a.value.color) && t.ranges.set(a.key, a.value);
|
|
5859
5872
|
}), W.requestRender(this.ctx, St), this.setState((a) => ({ ...a, count: t.ranges.size }));
|
|
5860
5873
|
}), W.requestRender(this.ctx, St)));
|
|
5861
5874
|
}
|
|
@@ -5864,7 +5877,7 @@ class kn extends Z {
|
|
|
5864
5877
|
if (s.client == null || this.fetchedInitial.roughlyEquals(t, $.minutes(1)))
|
|
5865
5878
|
return;
|
|
5866
5879
|
this.fetchedInitial = t, (await s.client.ranges.retrieve(t)).forEach((a) => {
|
|
5867
|
-
|
|
5880
|
+
Pr(a.color) && s.ranges.set(a.key, a);
|
|
5868
5881
|
}), this.setState((a) => ({ ...a, count: s.ranges.size }));
|
|
5869
5882
|
}
|
|
5870
5883
|
async render(t) {
|
|
@@ -5885,7 +5898,7 @@ class kn extends Z {
|
|
|
5885
5898
|
let C = u.pos(Number(x.timeRange.start.valueOf()));
|
|
5886
5899
|
const O = u.pos(Number(x.timeRange.end.valueOf()));
|
|
5887
5900
|
if (O < f.left(r) || C > f.right(r)) return;
|
|
5888
|
-
C =
|
|
5901
|
+
C = Nr(C, f.left(r) - 2, f.right(r) - 1);
|
|
5889
5902
|
let N = !1;
|
|
5890
5903
|
h != null && (N = R.contains({ lower: C, upper: O }, h)), N && (p = {
|
|
5891
5904
|
key: x.key,
|
|
@@ -5927,11 +5940,11 @@ class kn extends Z {
|
|
|
5927
5940
|
}
|
|
5928
5941
|
}
|
|
5929
5942
|
c(kn, "TYPE", "range-provider");
|
|
5930
|
-
const
|
|
5943
|
+
const Ch = {
|
|
5931
5944
|
[ss.TYPE]: ss,
|
|
5932
5945
|
[kn.TYPE]: kn
|
|
5933
|
-
},
|
|
5934
|
-
class Pn extends
|
|
5946
|
+
}, kh = _n;
|
|
5947
|
+
class Pn extends Wa {
|
|
5935
5948
|
constructor() {
|
|
5936
5949
|
super(...arguments);
|
|
5937
5950
|
c(this, "schema", _n);
|
|
@@ -5993,21 +6006,21 @@ class Pn extends ja {
|
|
|
5993
6006
|
}
|
|
5994
6007
|
}
|
|
5995
6008
|
c(Pn, "TYPE", "XAxis");
|
|
5996
|
-
const
|
|
6009
|
+
const Gu = d.object({
|
|
5997
6010
|
container: f.box,
|
|
5998
6011
|
viewport: f.box,
|
|
5999
6012
|
hold: d.boolean().optional().default(!1),
|
|
6000
|
-
grid: d.record(
|
|
6013
|
+
grid: d.record(Sa),
|
|
6001
6014
|
visible: d.boolean().optional().default(!0),
|
|
6002
6015
|
clearOverScan: g.crudeZ.optional().default(g.ZERO)
|
|
6003
|
-
}),
|
|
6016
|
+
}), Vu = (n, e) => {
|
|
6004
6017
|
const t = f.width(n) * Math.sqrt(f.height(n)), s = f.width(e) * Math.sqrt(f.height(e));
|
|
6005
6018
|
return t / s;
|
|
6006
6019
|
};
|
|
6007
6020
|
class fs extends wt {
|
|
6008
6021
|
constructor() {
|
|
6009
6022
|
super(...arguments);
|
|
6010
|
-
c(this, "schema",
|
|
6023
|
+
c(this, "schema", Gu);
|
|
6011
6024
|
}
|
|
6012
6025
|
async afterUpdate() {
|
|
6013
6026
|
this.internal.instrumentation = Le(this.ctx, "lineplot"), this.internal.aggregate = ws(this.ctx), this.internal.renderCtx = z.use(this.ctx), W.control(this.ctx, (t) => this.requestRender("low", t)), this.requestRender("high", yt);
|
|
@@ -6041,7 +6054,7 @@ class fs extends wt {
|
|
|
6041
6054
|
return this.childrenOfType(Re.TYPE);
|
|
6042
6055
|
}
|
|
6043
6056
|
get exposure() {
|
|
6044
|
-
return
|
|
6057
|
+
return Vu(this.state.viewport, this.state.container);
|
|
6045
6058
|
}
|
|
6046
6059
|
async renderAxes(t, s) {
|
|
6047
6060
|
const r = {
|
|
@@ -6066,7 +6079,7 @@ class fs extends wt {
|
|
|
6066
6079
|
await Promise.all(this.measures.map(async (a) => await a.render(r)));
|
|
6067
6080
|
}
|
|
6068
6081
|
calculatePlot() {
|
|
6069
|
-
return
|
|
6082
|
+
return bo(this.state.grid, this.state.container);
|
|
6070
6083
|
}
|
|
6071
6084
|
async render(t) {
|
|
6072
6085
|
const { renderCtx: s } = this.internal, { instrumentation: r } = this.internal;
|
|
@@ -6122,135 +6135,135 @@ class fs extends wt {
|
|
|
6122
6135
|
}
|
|
6123
6136
|
}
|
|
6124
6137
|
c(fs, "TYPE", "LinePlot");
|
|
6125
|
-
const
|
|
6138
|
+
const Ph = {
|
|
6126
6139
|
[fs.TYPE]: fs,
|
|
6127
6140
|
[Pn.TYPE]: Pn,
|
|
6128
6141
|
[bn.TYPE]: bn
|
|
6129
6142
|
};
|
|
6130
6143
|
export {
|
|
6131
6144
|
is as $,
|
|
6132
|
-
|
|
6133
|
-
|
|
6145
|
+
vh as A,
|
|
6146
|
+
lh as B,
|
|
6134
6147
|
z as C,
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6148
|
+
mh as D,
|
|
6149
|
+
Gc as E,
|
|
6150
|
+
Eh as F,
|
|
6151
|
+
ja as G,
|
|
6139
6152
|
fs as H,
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6153
|
+
Gu as I,
|
|
6154
|
+
kh as J,
|
|
6155
|
+
ch as K,
|
|
6156
|
+
Xc as L,
|
|
6144
6157
|
hn as M,
|
|
6145
|
-
|
|
6146
|
-
|
|
6158
|
+
Fc as N,
|
|
6159
|
+
qa as O,
|
|
6147
6160
|
Vn as P,
|
|
6148
6161
|
mr as Q,
|
|
6149
6162
|
vr as R,
|
|
6150
|
-
|
|
6151
|
-
|
|
6163
|
+
Fa as S,
|
|
6164
|
+
Za as T,
|
|
6152
6165
|
Tn as U,
|
|
6153
6166
|
Sn as V,
|
|
6154
6167
|
rs as W,
|
|
6155
6168
|
Pn as X,
|
|
6156
6169
|
bn as Y,
|
|
6157
|
-
|
|
6170
|
+
Ir as Z,
|
|
6158
6171
|
as as _,
|
|
6159
6172
|
W as a,
|
|
6160
|
-
|
|
6173
|
+
Au as a$,
|
|
6161
6174
|
os as a0,
|
|
6162
|
-
|
|
6175
|
+
Cu as a1,
|
|
6163
6176
|
vn as a2,
|
|
6164
6177
|
Ce as a3,
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6178
|
+
hh as a4,
|
|
6179
|
+
Mu as a5,
|
|
6180
|
+
dh as a6,
|
|
6181
|
+
Ou as a7,
|
|
6182
|
+
Tu as a8,
|
|
6183
|
+
Pu as a9,
|
|
6184
|
+
Ui as aA,
|
|
6172
6185
|
cs as aB,
|
|
6173
|
-
|
|
6186
|
+
Nu as aC,
|
|
6174
6187
|
zs as aD,
|
|
6175
|
-
|
|
6188
|
+
no as aE,
|
|
6176
6189
|
be as aF,
|
|
6177
|
-
|
|
6190
|
+
Ta as aG,
|
|
6178
6191
|
Se as aH,
|
|
6179
6192
|
Qs as aI,
|
|
6180
|
-
|
|
6193
|
+
Qo as aJ,
|
|
6181
6194
|
ke as aK,
|
|
6182
|
-
|
|
6195
|
+
Va as aL,
|
|
6183
6196
|
Cn as aM,
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
+
Uu as aN,
|
|
6198
|
+
na as aO,
|
|
6199
|
+
ra as aP,
|
|
6200
|
+
aa as aQ,
|
|
6201
|
+
ga as aR,
|
|
6202
|
+
ma as aS,
|
|
6203
|
+
Li as aT,
|
|
6204
|
+
Zi as aU,
|
|
6205
|
+
Ki as aV,
|
|
6206
|
+
_i as aW,
|
|
6207
|
+
Gi as aX,
|
|
6208
|
+
to as aY,
|
|
6209
|
+
eo as aZ,
|
|
6197
6210
|
ls as a_,
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6211
|
+
Du as aa,
|
|
6212
|
+
Yu as ab,
|
|
6213
|
+
uh as ac,
|
|
6214
|
+
Ru as ad,
|
|
6215
|
+
Su as ae,
|
|
6216
|
+
ku as af,
|
|
6217
|
+
Eu as ag,
|
|
6205
6218
|
En as ah,
|
|
6206
|
-
|
|
6207
|
-
|
|
6219
|
+
Ga as ai,
|
|
6220
|
+
It as aj,
|
|
6208
6221
|
_n as ak,
|
|
6209
|
-
|
|
6210
|
-
|
|
6222
|
+
ru as al,
|
|
6223
|
+
Qc as am,
|
|
6211
6224
|
xn as an,
|
|
6212
|
-
|
|
6225
|
+
ou as ao,
|
|
6213
6226
|
Pe as ap,
|
|
6214
|
-
|
|
6227
|
+
Ka as aq,
|
|
6215
6228
|
ss as ar,
|
|
6216
|
-
|
|
6229
|
+
vu as as,
|
|
6217
6230
|
kn as at,
|
|
6218
|
-
|
|
6231
|
+
Xu as au,
|
|
6219
6232
|
Re as av,
|
|
6220
|
-
|
|
6233
|
+
Qa as aw,
|
|
6221
6234
|
Ee as ax,
|
|
6222
|
-
|
|
6223
|
-
|
|
6235
|
+
Xa as ay,
|
|
6236
|
+
$i as az,
|
|
6224
6237
|
yt as b,
|
|
6225
6238
|
us as b0,
|
|
6226
|
-
|
|
6239
|
+
Iu as b1,
|
|
6227
6240
|
hs as b2,
|
|
6228
|
-
|
|
6241
|
+
zu as b3,
|
|
6229
6242
|
ds as b4,
|
|
6230
|
-
|
|
6243
|
+
qu as b5,
|
|
6231
6244
|
Me as b6,
|
|
6232
6245
|
St as c,
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6246
|
+
sh as d,
|
|
6247
|
+
ph as e,
|
|
6248
|
+
Lu as f,
|
|
6249
|
+
fh as g,
|
|
6250
|
+
_u as h,
|
|
6251
|
+
yh as i,
|
|
6252
|
+
wh as j,
|
|
6253
|
+
oh as k,
|
|
6254
|
+
Ph as l,
|
|
6255
|
+
Fu as m,
|
|
6256
|
+
Ch as n,
|
|
6257
|
+
xu as o,
|
|
6258
|
+
Th as p,
|
|
6259
|
+
Mi as q,
|
|
6260
|
+
wo as r,
|
|
6261
|
+
Sh as s,
|
|
6262
|
+
Bu as t,
|
|
6263
|
+
Hu as u,
|
|
6264
|
+
bh as v,
|
|
6265
|
+
eh as w,
|
|
6266
|
+
rh as x,
|
|
6267
|
+
gh as y,
|
|
6268
|
+
xh as z
|
|
6256
6269
|
};
|