@graphysdk/react 1.9.0-beta.1790839098761 → 1.9.0-beta.1790855561349
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/editable.browser.mjs +227 -215
- package/dist/index.browser.mjs +177 -165
- package/package.json +3 -3
|
@@ -2454,7 +2454,7 @@ function bt(e) {
|
|
|
2454
2454
|
function Xr(e) {
|
|
2455
2455
|
return e[fe.xMin];
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2457
|
+
function hr(e) {
|
|
2458
2458
|
return e[fe.xMax];
|
|
2459
2459
|
}
|
|
2460
2460
|
function Or(e) {
|
|
@@ -2475,7 +2475,7 @@ var bee = {
|
|
|
2475
2475
|
yMin: 0,
|
|
2476
2476
|
yMax: 1
|
|
2477
2477
|
}, C0 = (e, t) => {
|
|
2478
|
-
const n = Xr(e) ?? St(e), r =
|
|
2478
|
+
const n = Xr(e) ?? St(e), r = hr(e) ?? St(e), o = Or(e) ?? bt(e), i = In(e) ?? bt(e);
|
|
2479
2479
|
return !Mt(n) || !Mt(r) || !Mt(o) || !Mt(i) ? null : t.type !== "polar" ? {
|
|
2480
2480
|
xMin: n,
|
|
2481
2481
|
xMax: r,
|
|
@@ -2558,7 +2558,7 @@ function E0(e) {
|
|
|
2558
2558
|
function ye(e) {
|
|
2559
2559
|
return he(e) ? typeof e == "string" ? e : "variable" in e ? e.variable : null : null;
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function pr(e) {
|
|
2562
2562
|
if (!(!he(e) || typeof e == "string") && "value" in e)
|
|
2563
2563
|
return e.value;
|
|
2564
2564
|
}
|
|
@@ -2568,7 +2568,7 @@ function C6(e, t) {
|
|
|
2568
2568
|
function nP(e) {
|
|
2569
2569
|
const t = ye(e);
|
|
2570
2570
|
if (t !== null) return `variable:${t}`;
|
|
2571
|
-
const n =
|
|
2571
|
+
const n = pr(e);
|
|
2572
2572
|
return n === void 0 ? "" : `value:${gl(n)}`;
|
|
2573
2573
|
}
|
|
2574
2574
|
var See = [
|
|
@@ -2616,7 +2616,7 @@ function Lr(e) {
|
|
|
2616
2616
|
return e === "stack" || e === "fill";
|
|
2617
2617
|
}
|
|
2618
2618
|
var cc = (e, t) => {
|
|
2619
|
-
const n =
|
|
2619
|
+
const n = pr(t);
|
|
2620
2620
|
if (n !== void 0) return () => n;
|
|
2621
2621
|
const r = ye(t);
|
|
2622
2622
|
return he(r) ? (o) => {
|
|
@@ -2624,7 +2624,7 @@ var cc = (e, t) => {
|
|
|
2624
2624
|
return i === void 0 ? null : E6(i, e.getType(r));
|
|
2625
2625
|
} : () => null;
|
|
2626
2626
|
}, Aee = (e, t) => {
|
|
2627
|
-
const n =
|
|
2627
|
+
const n = pr(t);
|
|
2628
2628
|
if (n !== void 0) return () => n;
|
|
2629
2629
|
const r = ye(t);
|
|
2630
2630
|
if (!he(r) || !e.hasVariable(r)) return () => null;
|
|
@@ -5247,7 +5247,7 @@ var lie = class extends Os {
|
|
|
5247
5247
|
});
|
|
5248
5248
|
for (const r of Object.keys(n)) {
|
|
5249
5249
|
if (V0(r)) continue;
|
|
5250
|
-
const o =
|
|
5250
|
+
const o = pr(n[r]);
|
|
5251
5251
|
if (o === void 0) continue;
|
|
5252
5252
|
const i = Gt(`const_${r}`);
|
|
5253
5253
|
t = t.addConstantVariable(i, sie(o), o), n = {
|
|
@@ -7143,7 +7143,7 @@ var vC = {
|
|
|
7143
7143
|
contrast: "multiplier",
|
|
7144
7144
|
shadow: "shadow",
|
|
7145
7145
|
blendMode: "blendMode"
|
|
7146
|
-
}, wse = 0.3, Tse = 10, Ase = 1, Cse = 24, kse = 8,
|
|
7146
|
+
}, wse = 0.3, Tse = 10, Ase = 1, Cse = 24, kse = 8, wr = {
|
|
7147
7147
|
label: {
|
|
7148
7148
|
fontSize: 11.5,
|
|
7149
7149
|
fontWeight: 500,
|
|
@@ -7327,7 +7327,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7327
7327
|
position: "outside"
|
|
7328
7328
|
},
|
|
7329
7329
|
vocabulary: Aa,
|
|
7330
|
-
rest: { ...
|
|
7330
|
+
rest: { ...wr.dataLabelOutside }
|
|
7331
7331
|
}
|
|
7332
7332
|
}
|
|
7333
7333
|
}), It = {
|
|
@@ -7449,7 +7449,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7449
7449
|
select: { target: "axisLabel" },
|
|
7450
7450
|
vocabulary: $c,
|
|
7451
7451
|
rest: {
|
|
7452
|
-
...
|
|
7452
|
+
...wr.label,
|
|
7453
7453
|
textColor: We("textPrimary")
|
|
7454
7454
|
},
|
|
7455
7455
|
children: {
|
|
@@ -7493,7 +7493,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7493
7493
|
select: { target: "tickLabel" },
|
|
7494
7494
|
vocabulary: zc,
|
|
7495
7495
|
rest: {
|
|
7496
|
-
...
|
|
7496
|
+
...wr.label,
|
|
7497
7497
|
textColor: We("textSecondary"),
|
|
7498
7498
|
offset: Tse,
|
|
7499
7499
|
textOutlineColor: We("graphBackground"),
|
|
@@ -7537,7 +7537,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7537
7537
|
select: { target: "dataLabel" },
|
|
7538
7538
|
vocabulary: Aa,
|
|
7539
7539
|
rest: {
|
|
7540
|
-
...
|
|
7540
|
+
...wr.label,
|
|
7541
7541
|
textColor: We("textPrimary"),
|
|
7542
7542
|
paddingInline: 6,
|
|
7543
7543
|
paddingBlock: 2,
|
|
@@ -7550,7 +7550,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7550
7550
|
role: "aggregate"
|
|
7551
7551
|
},
|
|
7552
7552
|
vocabulary: Aa,
|
|
7553
|
-
rest: { ...
|
|
7553
|
+
rest: { ...wr.dataLabelOutside }
|
|
7554
7554
|
},
|
|
7555
7555
|
observation: lR("observation"),
|
|
7556
7556
|
category: lR("category")
|
|
@@ -7596,7 +7596,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7596
7596
|
part: "h1"
|
|
7597
7597
|
},
|
|
7598
7598
|
vocabulary: On,
|
|
7599
|
-
rest: { ...
|
|
7599
|
+
rest: { ...wr.heading }
|
|
7600
7600
|
},
|
|
7601
7601
|
h2: {
|
|
7602
7602
|
select: {
|
|
@@ -7604,7 +7604,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7604
7604
|
part: "h2"
|
|
7605
7605
|
},
|
|
7606
7606
|
vocabulary: On,
|
|
7607
|
-
rest: { ...
|
|
7607
|
+
rest: { ...wr.subtitle }
|
|
7608
7608
|
}
|
|
7609
7609
|
}
|
|
7610
7610
|
},
|
|
@@ -7612,7 +7612,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7612
7612
|
select: { target: "caption" },
|
|
7613
7613
|
vocabulary: On,
|
|
7614
7614
|
rest: {
|
|
7615
|
-
...
|
|
7615
|
+
...wr.caption,
|
|
7616
7616
|
textColor: We("textPrimary")
|
|
7617
7617
|
}
|
|
7618
7618
|
},
|
|
@@ -7620,7 +7620,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7620
7620
|
select: { target: "source" },
|
|
7621
7621
|
vocabulary: On,
|
|
7622
7622
|
rest: {
|
|
7623
|
-
...
|
|
7623
|
+
...wr.source,
|
|
7624
7624
|
textColor: We("textSecondary")
|
|
7625
7625
|
},
|
|
7626
7626
|
children: { link: {
|
|
@@ -7630,7 +7630,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7630
7630
|
},
|
|
7631
7631
|
vocabulary: On,
|
|
7632
7632
|
rest: {
|
|
7633
|
-
...
|
|
7633
|
+
...wr.sourceLink,
|
|
7634
7634
|
textColor: We("textSecondary")
|
|
7635
7635
|
}
|
|
7636
7636
|
} }
|
|
@@ -7696,7 +7696,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7696
7696
|
},
|
|
7697
7697
|
vocabulary: On,
|
|
7698
7698
|
rest: {
|
|
7699
|
-
...
|
|
7699
|
+
...wr.tooltipHeading,
|
|
7700
7700
|
textColor: We("textPrimary")
|
|
7701
7701
|
}
|
|
7702
7702
|
},
|
|
@@ -7707,7 +7707,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7707
7707
|
},
|
|
7708
7708
|
vocabulary: On,
|
|
7709
7709
|
rest: {
|
|
7710
|
-
...
|
|
7710
|
+
...wr.tooltipRow,
|
|
7711
7711
|
textColor: We("textPrimary")
|
|
7712
7712
|
}
|
|
7713
7713
|
},
|
|
@@ -7718,7 +7718,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7718
7718
|
},
|
|
7719
7719
|
vocabulary: On,
|
|
7720
7720
|
rest: {
|
|
7721
|
-
...
|
|
7721
|
+
...wr.tooltipRow,
|
|
7722
7722
|
textColor: We("textSecondary")
|
|
7723
7723
|
}
|
|
7724
7724
|
},
|
|
@@ -7897,7 +7897,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
7897
7897
|
alpha: "unitInterval"
|
|
7898
7898
|
},
|
|
7899
7899
|
rest: {
|
|
7900
|
-
...
|
|
7900
|
+
...wr.label,
|
|
7901
7901
|
textColor: We("textSecondary"),
|
|
7902
7902
|
strokeWidth: 0,
|
|
7903
7903
|
paddingInline: 2,
|
|
@@ -8022,7 +8022,7 @@ var h8 = (e = Object.values(It)) => {
|
|
|
8022
8022
|
vocabulary: Aa,
|
|
8023
8023
|
options: ["annotation"],
|
|
8024
8024
|
rest: {
|
|
8025
|
-
...
|
|
8025
|
+
...wr.label,
|
|
8026
8026
|
textColor: We("textPrimary"),
|
|
8027
8027
|
fill: We("differenceLabelBackground"),
|
|
8028
8028
|
strokeWidth: 1,
|
|
@@ -8275,7 +8275,7 @@ function Vse(e, t, n, r, o, i) {
|
|
|
8275
8275
|
const a = {};
|
|
8276
8276
|
for (const l of t) Fse(a, l.scaleAestheticKey, l.scale.map(e.value));
|
|
8277
8277
|
if (a.color === void 0 && n.includes("size") && (a.color = c8), a.lineType === void 0) {
|
|
8278
|
-
const l =
|
|
8278
|
+
const l = pr(e.owner?.layer.mapping.lineType);
|
|
8279
8279
|
Tee(l) && (a.lineType = l);
|
|
8280
8280
|
}
|
|
8281
8281
|
const s = $se(e, t, n, r, o);
|
|
@@ -8640,6 +8640,7 @@ var bC = (e, t) => {
|
|
|
8640
8640
|
summary: {},
|
|
8641
8641
|
spatialKind: a.spatialKind,
|
|
8642
8642
|
identityKey: a.identityKey,
|
|
8643
|
+
hoverPriority: a.hoverPriority,
|
|
8643
8644
|
tooltip: a.tooltip,
|
|
8644
8645
|
scaleConstraints: a.scaleConstraints,
|
|
8645
8646
|
supportsDirectLabels: a.legend.directLabelSupport?.[e.position] === !0,
|
|
@@ -8957,7 +8958,7 @@ var hle = (e) => e.observation?.aesthetics ?? It.geom.aesthetics, S8 = (e) => e.
|
|
|
8957
8958
|
...e?.hovered === void 0 ? {} : { hovered: e.hovered }
|
|
8958
8959
|
}), ea = class {
|
|
8959
8960
|
constructor() {
|
|
8960
|
-
this.positionRoles = [], this.identityKey = "x-group", this.defaultPosition = "identity", this.defaultStat = null, this.supportedPositions = See, this.defaultInteractive = !0, this.aesthetics = [], this.derivedVariables = [], this.highlightStrategy = null, this.supportedCoordTypes = ["cartesian", "flip"], this.spatialKind = "points", this.grid = {}, this.legend = {}, this.dataLabelCoordTypes = [], this.isComposite = !1, this.tooltip = [], this.summaries = {};
|
|
8961
|
+
this.positionRoles = [], this.identityKey = "x-group", this.defaultPosition = "identity", this.defaultStat = null, this.supportedPositions = See, this.defaultInteractive = !0, this.hoverPriority = "normal", this.aesthetics = [], this.derivedVariables = [], this.highlightStrategy = null, this.supportedCoordTypes = ["cartesian", "flip"], this.spatialKind = "points", this.grid = {}, this.legend = {}, this.dataLabelCoordTypes = [], this.isComposite = !1, this.tooltip = [], this.summaries = {};
|
|
8961
8962
|
}
|
|
8962
8963
|
resolveParams(e) {
|
|
8963
8964
|
return pc({}, this.defaultParams, e.params);
|
|
@@ -9282,7 +9283,7 @@ var hle = (e) => e.observation?.aesthetics ?? It.geom.aesthetics, S8 = (e) => e.
|
|
|
9282
9283
|
height: o - r
|
|
9283
9284
|
};
|
|
9284
9285
|
}, C8 = (e, t) => {
|
|
9285
|
-
const n = Xr(t), r =
|
|
9286
|
+
const n = Xr(t), r = hr(t), o = Or(t), i = In(t) ?? bt(t);
|
|
9286
9287
|
return n === null || r === null || o === null || i === null ? null : A8(e, n, r, o, i);
|
|
9287
9288
|
}, Rle = (e, t) => {
|
|
9288
9289
|
const { xMin: n, xMax: r, yMin: o, yMax: i } = t.anchor;
|
|
@@ -9717,7 +9718,7 @@ var Hle = " · ", ka = 2, $le = (e) => {
|
|
|
9717
9718
|
purpose: o
|
|
9718
9719
|
};
|
|
9719
9720
|
if (n.mainAxis === "x") {
|
|
9720
|
-
const d = Xr(t), f =
|
|
9721
|
+
const d = Xr(t), f = hr(t), h = yR({
|
|
9721
9722
|
lowerBound: Or(t),
|
|
9722
9723
|
upperBound: In(t) ?? bt(t),
|
|
9723
9724
|
options: s
|
|
@@ -9729,7 +9730,7 @@ var Hle = " · ", ka = 2, $le = (e) => {
|
|
|
9729
9730
|
}
|
|
9730
9731
|
const l = Or(t), c = In(t), u = yR({
|
|
9731
9732
|
lowerBound: Xr(t),
|
|
9732
|
-
upperBound:
|
|
9733
|
+
upperBound: hr(t) ?? St(t),
|
|
9733
9734
|
options: s
|
|
9734
9735
|
});
|
|
9735
9736
|
return l === null || c === null || u === null ? null : {
|
|
@@ -9772,7 +9773,7 @@ var Hle = " · ", ka = 2, $le = (e) => {
|
|
|
9772
9773
|
}), r;
|
|
9773
9774
|
}
|
|
9774
9775
|
}, pw = ({ width: e }, t) => e !== void 0 ? e : t === "polar" ? 1 : wle, Yle = (e) => {
|
|
9775
|
-
const t = Xr(e), n =
|
|
9776
|
+
const t = Xr(e), n = hr(e), r = Or(e), o = In(e);
|
|
9776
9777
|
return t === null || n === null || r === null || o === null ? null : ml((t + n) / 2, (r + o) / 2);
|
|
9777
9778
|
}, qle = (e) => {
|
|
9778
9779
|
const t = T6(e);
|
|
@@ -10075,7 +10076,7 @@ var Hle = " · ", ka = 2, $le = (e) => {
|
|
|
10075
10076
|
valueKind: "value",
|
|
10076
10077
|
aes: "x"
|
|
10077
10078
|
}], this.highlightStrategy = null, this.spatialKind = "noop", this.validateMapping = ({ mapping: t, computedVariables: n }) => {
|
|
10078
|
-
const r = n.has("x") || Mt(
|
|
10079
|
+
const r = n.has("x") || Mt(pr(t.x)), o = n.has("y") || Mt(pr(t.y));
|
|
10079
10080
|
return r && o ? [{
|
|
10080
10081
|
code: "INVALID_RULE_MAPPING",
|
|
10081
10082
|
message: "rule geom requires exactly one of 'x' or 'y', both were provided"
|
|
@@ -10118,7 +10119,7 @@ var Hle = " · ", ka = 2, $le = (e) => {
|
|
|
10118
10119
|
};
|
|
10119
10120
|
}
|
|
10120
10121
|
}, bR = (e, t) => {
|
|
10121
|
-
const n =
|
|
10122
|
+
const n = pr(e);
|
|
10122
10123
|
if (Mt(n)) return {
|
|
10123
10124
|
value: n,
|
|
10124
10125
|
sourceFormat: void 0
|
|
@@ -10147,7 +10148,7 @@ function M8(e) {
|
|
|
10147
10148
|
return e[lc.lineType];
|
|
10148
10149
|
}
|
|
10149
10150
|
var oce = (e) => {
|
|
10150
|
-
const t = Xr(e), n =
|
|
10151
|
+
const t = Xr(e), n = hr(e), r = Or(e), o = In(e);
|
|
10151
10152
|
if (t === null || n === null || r === null || o === null) return null;
|
|
10152
10153
|
const i = Math.min(t, n), a = Math.abs(n - t), s = Math.max(r, o), l = Math.abs(o - r);
|
|
10153
10154
|
return {
|
|
@@ -10265,7 +10266,7 @@ var oce = (e) => {
|
|
|
10265
10266
|
hideGridX: !0,
|
|
10266
10267
|
hideGridY: !0
|
|
10267
10268
|
} }, this.legend = { suppressWhenSingleItem: !1 }, this.dataLabels = { cartesian: { showDataLabels: !0 } }, this.dataLabelCoordTypes = ["cartesian"], this.highlightStrategy = "observation-rerender", this.spatialKind = "cells", this.identityKey = "x-y", this.tooltip = [{ aes: "color" }], this.resolveValueSource = sce, this.resolveAnchorPosition = (t) => {
|
|
10268
|
-
const n = Xr(t), r =
|
|
10269
|
+
const n = Xr(t), r = hr(t), o = Or(t), i = In(t);
|
|
10269
10270
|
return n === null || r === null || o === null || i === null ? null : {
|
|
10270
10271
|
x: (n + r) / 2,
|
|
10271
10272
|
y: (o + i) / 2
|
|
@@ -11402,35 +11403,35 @@ function CR() {
|
|
|
11402
11403
|
}
|
|
11403
11404
|
function $h(e) {
|
|
11404
11405
|
var t, n;
|
|
11405
|
-
return e = (e + "").trim().toLowerCase(), (t = Fce.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? kR(t) : n === 3 ? new
|
|
11406
|
+
return e = (e + "").trim().toLowerCase(), (t = Fce.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? kR(t) : n === 3 ? new fr(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? _m(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? _m(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Bce.exec(e)) ? new fr(t[1], t[2], t[3], 1) : (t = Vce.exec(e)) ? new fr(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Hce.exec(e)) ? _m(t[1], t[2], t[3], t[4]) : (t = $ce.exec(e)) ? _m(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = zce.exec(e)) ? PR(t[1], t[2] / 100, t[3] / 100, 1) : (t = Wce.exec(e)) ? PR(t[1], t[2] / 100, t[3] / 100, t[4]) : TR.hasOwnProperty(e) ? kR(TR[e]) : e === "transparent" ? new fr(NaN, NaN, NaN, 0) : null;
|
|
11406
11407
|
}
|
|
11407
11408
|
function kR(e) {
|
|
11408
|
-
return new
|
|
11409
|
+
return new fr(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
11409
11410
|
}
|
|
11410
11411
|
function _m(e, t, n, r) {
|
|
11411
|
-
return r <= 0 && (e = t = n = NaN), new
|
|
11412
|
+
return r <= 0 && (e = t = n = NaN), new fr(e, t, n, r);
|
|
11412
11413
|
}
|
|
11413
11414
|
function V8(e) {
|
|
11414
|
-
return e instanceof xc || (e = $h(e)), e ? (e = e.rgb(), new
|
|
11415
|
+
return e instanceof xc || (e = $h(e)), e ? (e = e.rgb(), new fr(e.r, e.g, e.b, e.opacity)) : new fr();
|
|
11415
11416
|
}
|
|
11416
11417
|
function Fv(e, t, n, r) {
|
|
11417
|
-
return arguments.length === 1 ? V8(e) : new
|
|
11418
|
+
return arguments.length === 1 ? V8(e) : new fr(e, t, n, r ?? 1);
|
|
11418
11419
|
}
|
|
11419
|
-
function
|
|
11420
|
+
function fr(e, t, n, r) {
|
|
11420
11421
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
11421
11422
|
}
|
|
11422
|
-
Hp(
|
|
11423
|
+
Hp(fr, Fv, J0(xc, {
|
|
11423
11424
|
brighter(e) {
|
|
11424
|
-
return e = e == null ? Nv : Math.pow(Nv, e), new
|
|
11425
|
+
return e = e == null ? Nv : Math.pow(Nv, e), new fr(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
11425
11426
|
},
|
|
11426
11427
|
darker(e) {
|
|
11427
|
-
return e = e == null ? Vh : Math.pow(Vh, e), new
|
|
11428
|
+
return e = e == null ? Vh : Math.pow(Vh, e), new fr(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
11428
11429
|
},
|
|
11429
11430
|
rgb() {
|
|
11430
11431
|
return this;
|
|
11431
11432
|
},
|
|
11432
11433
|
clamp() {
|
|
11433
|
-
return new
|
|
11434
|
+
return new fr(Ol(this.r), Ol(this.g), Ol(this.b), Bv(this.opacity));
|
|
11434
11435
|
},
|
|
11435
11436
|
displayable() {
|
|
11436
11437
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -11486,7 +11487,7 @@ Hp(Xo, mw, J0(xc, {
|
|
|
11486
11487
|
},
|
|
11487
11488
|
rgb() {
|
|
11488
11489
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * t, o = 2 * n - r;
|
|
11489
|
-
return new
|
|
11490
|
+
return new fr(rx(e >= 240 ? e - 240 : e + 120, o, r), rx(e, o, r), rx(e < 120 ? e + 240 : e - 120, o, r), this.opacity);
|
|
11490
11491
|
},
|
|
11491
11492
|
clamp() {
|
|
11492
11493
|
return new Xo(RR(this.h), Dm(this.s), Dm(this.l), Bv(this.opacity));
|
|
@@ -11512,7 +11513,7 @@ var Kce = Math.PI / 180, Yce = 180 / Math.PI, Vv = 18, $8 = 0.96422, z8 = 1, W8
|
|
|
11512
11513
|
function j8(e) {
|
|
11513
11514
|
if (e instanceof Ni) return new Ni(e.l, e.a, e.b, e.opacity);
|
|
11514
11515
|
if (e instanceof Pa) return K8(e);
|
|
11515
|
-
e instanceof
|
|
11516
|
+
e instanceof fr || (e = V8(e));
|
|
11516
11517
|
var t = sx(e.r), n = sx(e.g), r = sx(e.b), o = ox((0.2225045 * t + 0.7168786 * n + 0.0606169 * r) / z8), i, a;
|
|
11517
11518
|
return t === n && n === r ? i = a = o : (i = ox((0.4360747 * t + 0.3850649 * n + 0.1430804 * r) / $8), a = ox((0.0139322 * t + 0.0971045 * n + 0.7141733 * r) / W8)), new Ni(116 * o - 16, 500 * (i - o), 200 * (o - a), e.opacity);
|
|
11518
11519
|
}
|
|
@@ -11531,7 +11532,7 @@ Hp(Ni, gw, J0(xc, {
|
|
|
11531
11532
|
},
|
|
11532
11533
|
rgb() {
|
|
11533
11534
|
var e = (this.l + 16) / 116, t = isNaN(this.a) ? e : e + this.a / 500, n = isNaN(this.b) ? e : e - this.b / 200;
|
|
11534
|
-
return t = $8 * ix(t), e = z8 * ix(e), n = W8 * ix(n), new
|
|
11535
|
+
return t = $8 * ix(t), e = z8 * ix(e), n = W8 * ix(n), new fr(ax(3.1338561 * t - 1.6168667 * e - 0.4906146 * n), ax(-0.9787684 * t + 1.9161415 * e + 0.033454 * n), ax(0.0719453 * t - 0.2289914 * e + 1.4052427 * n), this.opacity);
|
|
11535
11536
|
}
|
|
11536
11537
|
}));
|
|
11537
11538
|
function ox(e) {
|
|
@@ -14706,7 +14707,7 @@ var A7 = (e, t, n, r) => r.label !== void 0 ? r.label : w4({
|
|
|
14706
14707
|
for (const r of t) r.position === "fill" && n.add(r.yScaleType);
|
|
14707
14708
|
return n.size === 0 ? t : mc(t, (r) => {
|
|
14708
14709
|
if (!n.has(r.yScaleType) || !e.has(r.geom) || !e.get(r.geom).positionRoles.some((a) => a.axis === "y" && a.role === "scalar")) return r;
|
|
14709
|
-
const o =
|
|
14710
|
+
const o = pr(r.mapping.y);
|
|
14710
14711
|
if (!Mt(o)) return r;
|
|
14711
14712
|
const i = oi(o, 0, 1);
|
|
14712
14713
|
return i === o ? r : {
|
|
@@ -15706,7 +15707,7 @@ var Tpe = class extends gc {
|
|
|
15706
15707
|
if (n === null || !e.data.hasVariable(fe.yMin) || !e.data.hasVariable(fe.yMax)) return;
|
|
15707
15708
|
const r = (s) => t === "y" ? s.xMax : s.yMax, o = (s) => t === "y" ? s.xMin : s.yMin, i = /* @__PURE__ */ new Map();
|
|
15708
15709
|
for (const s of e.data) {
|
|
15709
|
-
const l = s[n], c = Or(s), u = In(s), d = Xr(s), f =
|
|
15710
|
+
const l = s[n], c = Or(s), u = In(s), d = Xr(s), f = hr(s), h = T6(s);
|
|
15710
15711
|
if (!he(l) || !he(c) || !he(u) || !he(d) || !he(f) || !he(h)) continue;
|
|
15711
15712
|
const p = h >= 0;
|
|
15712
15713
|
if (Math.abs(h) === 0) continue;
|
|
@@ -15787,7 +15788,7 @@ var Tpe = class extends gc {
|
|
|
15787
15788
|
let n = e.data;
|
|
15788
15789
|
const r = Object.entries(lc);
|
|
15789
15790
|
for (const [o, i] of r) {
|
|
15790
|
-
const a =
|
|
15791
|
+
const a = pr(e.mapping[o]);
|
|
15791
15792
|
if (a !== void 0) {
|
|
15792
15793
|
n = n.addConstantVariable(i, fI[o], a);
|
|
15793
15794
|
continue;
|
|
@@ -16423,7 +16424,7 @@ var fx = "…", UC = (e, t, n) => {
|
|
|
16423
16424
|
}
|
|
16424
16425
|
return e.slice(0, i) + fx;
|
|
16425
16426
|
};
|
|
16426
|
-
var
|
|
16427
|
+
var gr = { timeZone: "UTC" }, sr = (e) => (t) => {
|
|
16427
16428
|
if (!Ir(t)) return "–";
|
|
16428
16429
|
try {
|
|
16429
16430
|
return e(t);
|
|
@@ -17197,7 +17198,7 @@ var vr = { timeZone: "UTC" }, sr = (e) => (t) => {
|
|
|
17197
17198
|
Hm.size >= G7 && Hm.clear();
|
|
17198
17199
|
const o = new Intl.NumberFormat(e, t);
|
|
17199
17200
|
return Hm.set(n, o), o;
|
|
17200
|
-
},
|
|
17201
|
+
}, vr = (e, t) => {
|
|
17201
17202
|
const n = U7(e, t), r = $m.get(n);
|
|
17202
17203
|
if (r !== void 0) return r;
|
|
17203
17204
|
$m.size >= G7 && $m.clear();
|
|
@@ -17282,70 +17283,70 @@ var vr = { timeZone: "UTC" }, sr = (e) => (t) => {
|
|
|
17282
17283
|
const t = Math.abs(e);
|
|
17283
17284
|
return t >= Jf.b ? "b" : t >= Jf.m ? "m" : t >= Jf.k ? "k" : "none";
|
|
17284
17285
|
}, Lme = 1440 * 60 * 1e3, _me = ({ locale: e, intlOptions: t }) => {
|
|
17285
|
-
const n =
|
|
17286
|
+
const n = vr(e, {
|
|
17286
17287
|
dateStyle: "medium",
|
|
17287
|
-
...
|
|
17288
|
+
...gr,
|
|
17288
17289
|
...t
|
|
17289
17290
|
});
|
|
17290
17291
|
return sr((r) => n.format(r));
|
|
17291
17292
|
}, Dme = ({ locale: e, intlOptions: t }) => {
|
|
17292
|
-
const n =
|
|
17293
|
+
const n = vr(e, {
|
|
17293
17294
|
dateStyle: "medium",
|
|
17294
17295
|
timeStyle: "medium",
|
|
17295
|
-
...
|
|
17296
|
+
...gr,
|
|
17296
17297
|
...t
|
|
17297
17298
|
});
|
|
17298
17299
|
return sr((r) => Nme(n.formatToParts(r)));
|
|
17299
17300
|
}, X7 = ({ locale: e, intlOptions: t }) => {
|
|
17300
|
-
const n =
|
|
17301
|
+
const n = vr(e, {
|
|
17301
17302
|
day: "numeric",
|
|
17302
17303
|
month: "long",
|
|
17303
|
-
...
|
|
17304
|
+
...gr,
|
|
17304
17305
|
...t
|
|
17305
17306
|
});
|
|
17306
17307
|
return sr((r) => n.format(r));
|
|
17307
17308
|
}, J7 = ({ locale: e, intlOptions: t }) => {
|
|
17308
|
-
const n =
|
|
17309
|
+
const n = vr(e, {
|
|
17309
17310
|
month: "long",
|
|
17310
|
-
...
|
|
17311
|
+
...gr,
|
|
17311
17312
|
...t
|
|
17312
17313
|
});
|
|
17313
17314
|
return sr((r) => n.format(r));
|
|
17314
17315
|
}, XC = ({ locale: e, intlOptions: t }) => {
|
|
17315
|
-
const n =
|
|
17316
|
+
const n = vr(e, {
|
|
17316
17317
|
month: "short",
|
|
17317
17318
|
year: "numeric",
|
|
17318
|
-
...
|
|
17319
|
+
...gr,
|
|
17319
17320
|
...t
|
|
17320
17321
|
});
|
|
17321
17322
|
return sr((r) => n.format(r));
|
|
17322
17323
|
}, JC = (e) => sr((t) => `Q${Math.floor(t.getUTCMonth() / 3) + 1} ${t.getUTCFullYear()}`), Q7 = ({ locale: e, intlOptions: t }) => {
|
|
17323
|
-
const n =
|
|
17324
|
+
const n = vr(e, {
|
|
17324
17325
|
day: "numeric",
|
|
17325
17326
|
month: "long",
|
|
17326
|
-
...
|
|
17327
|
+
...gr,
|
|
17327
17328
|
...t,
|
|
17328
17329
|
year: void 0
|
|
17329
17330
|
});
|
|
17330
17331
|
return sr((r) => n.formatRange(r, tF(r, 6)));
|
|
17331
17332
|
}, Z7 = ({ locale: e, intlOptions: t }) => {
|
|
17332
|
-
const n =
|
|
17333
|
+
const n = vr(e, {
|
|
17333
17334
|
dateStyle: "medium",
|
|
17334
|
-
...
|
|
17335
|
+
...gr,
|
|
17335
17336
|
...t
|
|
17336
17337
|
});
|
|
17337
17338
|
return sr((r) => n.formatRange(r, tF(r, 6)));
|
|
17338
17339
|
}, QC = ({ locale: e, intlOptions: t }) => {
|
|
17339
|
-
const n =
|
|
17340
|
+
const n = vr(e, {
|
|
17340
17341
|
year: "numeric",
|
|
17341
|
-
...
|
|
17342
|
+
...gr,
|
|
17342
17343
|
...t
|
|
17343
17344
|
});
|
|
17344
17345
|
return sr((r) => n.format(r));
|
|
17345
17346
|
}, eF = ({ locale: e, intlOptions: t }) => {
|
|
17346
|
-
const n =
|
|
17347
|
+
const n = vr(e, {
|
|
17347
17348
|
timeStyle: "short",
|
|
17348
|
-
...
|
|
17349
|
+
...gr,
|
|
17349
17350
|
...t
|
|
17350
17351
|
});
|
|
17351
17352
|
return sr((r) => n.format(r));
|
|
@@ -17405,39 +17406,39 @@ var vr = { timeZone: "UTC" }, sr = (e) => (t) => {
|
|
|
17405
17406
|
const l = Math.ceil(-Math.log10(s) - 1e-9);
|
|
17406
17407
|
return Math.min(4, Math.max(0, l));
|
|
17407
17408
|
}, zme = ({ locale: e, intlOptions: t }) => {
|
|
17408
|
-
const n =
|
|
17409
|
+
const n = vr(e, {
|
|
17409
17410
|
day: "numeric",
|
|
17410
17411
|
month: "short",
|
|
17411
|
-
...
|
|
17412
|
+
...gr,
|
|
17412
17413
|
...t
|
|
17413
17414
|
});
|
|
17414
17415
|
return sr((r) => n.format(r));
|
|
17415
17416
|
}, Wme = ({ locale: e, intlOptions: t }) => {
|
|
17416
|
-
const n =
|
|
17417
|
+
const n = vr(e, {
|
|
17417
17418
|
month: "short",
|
|
17418
|
-
...
|
|
17419
|
+
...gr,
|
|
17419
17420
|
...t
|
|
17420
17421
|
});
|
|
17421
17422
|
return sr((r) => n.format(r));
|
|
17422
17423
|
}, Gme = ({ locale: e, intlOptions: t }) => {
|
|
17423
|
-
const n =
|
|
17424
|
+
const n = vr(e, {
|
|
17424
17425
|
day: "numeric",
|
|
17425
17426
|
month: "short",
|
|
17426
|
-
...
|
|
17427
|
+
...gr,
|
|
17427
17428
|
...t
|
|
17428
17429
|
});
|
|
17429
17430
|
return sr((r) => n.format(r));
|
|
17430
17431
|
}, Ume = ({ locale: e, intlOptions: t, tickValues: n }) => {
|
|
17431
|
-
const r =
|
|
17432
|
+
const r = vr(e, {
|
|
17432
17433
|
...Kme(n),
|
|
17433
|
-
...
|
|
17434
|
+
...gr,
|
|
17434
17435
|
...t
|
|
17435
17436
|
});
|
|
17436
17437
|
return sr((o) => r.format(o));
|
|
17437
17438
|
}, jme = ({ locale: e, intlOptions: t }) => {
|
|
17438
|
-
const n =
|
|
17439
|
+
const n = vr(e, {
|
|
17439
17440
|
timeStyle: "short",
|
|
17440
|
-
...
|
|
17441
|
+
...gr,
|
|
17441
17442
|
...t
|
|
17442
17443
|
});
|
|
17443
17444
|
return sr((r) => n.format(r));
|
|
@@ -17764,7 +17765,7 @@ var uge = (e, t) => {
|
|
|
17764
17765
|
return s === void 0 ? null : s.total;
|
|
17765
17766
|
};
|
|
17766
17767
|
}, pge = (e, t) => {
|
|
17767
|
-
const n = t ? Xr : Or, r = t ?
|
|
17768
|
+
const n = t ? Xr : Or, r = t ? hr : In, o = Ip(e);
|
|
17768
17769
|
return (i) => {
|
|
17769
17770
|
const a = n(i), s = r(i);
|
|
17770
17771
|
if (!Mt(a) || !Mt(s)) return null;
|
|
@@ -17817,7 +17818,7 @@ var uge = (e, t) => {
|
|
|
17817
17818
|
numberFormat: n
|
|
17818
17819
|
});
|
|
17819
17820
|
}, yge = (e, t) => {
|
|
17820
|
-
const n =
|
|
17821
|
+
const n = pr(t);
|
|
17821
17822
|
if (n !== void 0)
|
|
17822
17823
|
return pee(n) ? { type: "decimal" } : hee(n) ? { type: "date" } : { type: "text" };
|
|
17823
17824
|
const r = ye(t);
|
|
@@ -19701,7 +19702,7 @@ var Gve = ({ layers: e, coordSystem: t, axes: n, numberFormat: r, parsingLocale:
|
|
|
19701
19702
|
}
|
|
19702
19703
|
return i;
|
|
19703
19704
|
}, wye = (e, t) => {
|
|
19704
|
-
if (Mt(Xr(e)) || Mt(
|
|
19705
|
+
if (Mt(Xr(e)) || Mt(hr(e))) return C0(e, t);
|
|
19705
19706
|
const n = St(e), r = In(e) ?? bt(e);
|
|
19706
19707
|
return !Mt(n) || !Mt(r) ? null : {
|
|
19707
19708
|
...b6(n, n, r, r),
|
|
@@ -20319,7 +20320,7 @@ var h0e = (function e(t) {
|
|
|
20319
20320
|
})(0.5), p2 = (e) => e === "smooth" ? h0e : d2, m2 = (e, t) => {
|
|
20320
20321
|
const n = p2(t.curve), r = $F().curve(n), o = f2().curve(n);
|
|
20321
20322
|
if (e.mainAxis === "y") {
|
|
20322
|
-
const i = (l) => ei(bt(l) ?? 0), a = (l) => Xr(l) ?? 0, s = (l) =>
|
|
20323
|
+
const i = (l) => ei(bt(l) ?? 0), a = (l) => Xr(l) ?? 0, s = (l) => hr(l) ?? St(l) ?? 0;
|
|
20323
20324
|
r.y(i).x0(a).x1(s), o.y(i).x(s);
|
|
20324
20325
|
} else {
|
|
20325
20326
|
const i = (l) => St(l) ?? 0, a = (l) => ei(Or(l) ?? 0), s = (l) => ei(In(l) ?? bt(l) ?? 0);
|
|
@@ -20356,7 +20357,7 @@ var h0e = (function e(t) {
|
|
|
20356
20357
|
insetOffset: e / 2
|
|
20357
20358
|
}), Yp = (e, t) => YF(e, {
|
|
20358
20359
|
xMin: Xr(t),
|
|
20359
|
-
xMax:
|
|
20360
|
+
xMax: hr(t),
|
|
20360
20361
|
yMin: Or(t),
|
|
20361
20362
|
yMax: In(t),
|
|
20362
20363
|
y: bt(t)
|
|
@@ -21235,19 +21236,19 @@ function fbe(e, t) {
|
|
|
21235
21236
|
function pe(e) {
|
|
21236
21237
|
return new Float64Array(e);
|
|
21237
21238
|
}
|
|
21238
|
-
var hbe = (3 + 16 * Vt) * Vt, pbe = (2 + 12 * Vt) * Vt, mbe = (9 + 64 * Vt) * Vt * Vt, Kc = pe(4), YI = pe(8), qI = pe(12), XI = pe(16),
|
|
21239
|
+
var hbe = (3 + 16 * Vt) * Vt, pbe = (2 + 12 * Vt) * Vt, mbe = (9 + 64 * Vt) * Vt * Vt, Kc = pe(4), YI = pe(8), qI = pe(12), XI = pe(16), Sr = pe(4);
|
|
21239
21240
|
function gbe(e, t, n, r, o, i, a) {
|
|
21240
21241
|
let s, l, c, u, d, f, h, p, g, v, y, b, w, S, A, T, P, x;
|
|
21241
21242
|
const k = e - o, R = n - o, E = t - i, D = r - i;
|
|
21242
21243
|
S = k * D, f = lr * k, h = f - (f - k), p = k - h, f = lr * D, g = f - (f - D), v = D - g, A = p * v - (S - h * g - p * g - h * v), T = E * R, f = lr * E, h = f - (f - E), p = E - h, f = lr * R, g = f - (f - R), v = R - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y, Kc[0] = A - (y + d) + (d - P), b = S + y, d = b - S, w = S - (b - d) + (y - d), y = w - T, d = w - y, Kc[1] = w - (y + d) + (d - T), x = b + y, d = x - b, Kc[2] = b - (x - d) + (y - d), Kc[3] = x;
|
|
21243
21244
|
let M = fbe(4, Kc), L = pbe * a;
|
|
21244
21245
|
if (M >= L || -M >= L || (d = e - k, s = e - (k + d) + (d - o), d = n - R, c = n - (R + d) + (d - o), d = t - E, l = t - (E + d) + (d - i), d = r - D, u = r - (D + d) + (d - i), s === 0 && l === 0 && c === 0 && u === 0) || (L = mbe * a + dbe * Math.abs(M), M += k * u + D * s - (E * c + R * l), M >= L || -M >= L)) return M;
|
|
21245
|
-
S = s * D, f = lr * s, h = f - (f - s), p = s - h, f = lr * D, g = f - (f - D), v = D - g, A = p * v - (S - h * g - p * g - h * v), T = l * R, f = lr * l, h = f - (f - l), p = l - h, f = lr * R, g = f - (f - R), v = R - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y,
|
|
21246
|
-
const N = bx(4, Kc, 4,
|
|
21247
|
-
S = k * u, f = lr * k, h = f - (f - k), p = k - h, f = lr * u, g = f - (f - u), v = u - g, A = p * v - (S - h * g - p * g - h * v), T = E * c, f = lr * E, h = f - (f - E), p = E - h, f = lr * c, g = f - (f - c), v = c - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y,
|
|
21248
|
-
const I = bx(N, YI, 4,
|
|
21249
|
-
S = s * u, f = lr * s, h = f - (f - s), p = s - h, f = lr * u, g = f - (f - u), v = u - g, A = p * v - (S - h * g - p * g - h * v), T = l * c, f = lr * l, h = f - (f - l), p = l - h, f = lr * c, g = f - (f - c), v = c - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y,
|
|
21250
|
-
const O = bx(I, qI, 4,
|
|
21246
|
+
S = s * D, f = lr * s, h = f - (f - s), p = s - h, f = lr * D, g = f - (f - D), v = D - g, A = p * v - (S - h * g - p * g - h * v), T = l * R, f = lr * l, h = f - (f - l), p = l - h, f = lr * R, g = f - (f - R), v = R - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y, Sr[0] = A - (y + d) + (d - P), b = S + y, d = b - S, w = S - (b - d) + (y - d), y = w - T, d = w - y, Sr[1] = w - (y + d) + (d - T), x = b + y, d = x - b, Sr[2] = b - (x - d) + (y - d), Sr[3] = x;
|
|
21247
|
+
const N = bx(4, Kc, 4, Sr, YI);
|
|
21248
|
+
S = k * u, f = lr * k, h = f - (f - k), p = k - h, f = lr * u, g = f - (f - u), v = u - g, A = p * v - (S - h * g - p * g - h * v), T = E * c, f = lr * E, h = f - (f - E), p = E - h, f = lr * c, g = f - (f - c), v = c - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y, Sr[0] = A - (y + d) + (d - P), b = S + y, d = b - S, w = S - (b - d) + (y - d), y = w - T, d = w - y, Sr[1] = w - (y + d) + (d - T), x = b + y, d = x - b, Sr[2] = b - (x - d) + (y - d), Sr[3] = x;
|
|
21249
|
+
const I = bx(N, YI, 4, Sr, qI);
|
|
21250
|
+
S = s * u, f = lr * s, h = f - (f - s), p = s - h, f = lr * u, g = f - (f - u), v = u - g, A = p * v - (S - h * g - p * g - h * v), T = l * c, f = lr * l, h = f - (f - l), p = l - h, f = lr * c, g = f - (f - c), v = c - g, P = p * v - (T - h * g - p * g - h * v), y = A - P, d = A - y, Sr[0] = A - (y + d) + (d - P), b = S + y, d = b - S, w = S - (b - d) + (y - d), y = w - T, d = w - y, Sr[1] = w - (y + d) + (d - T), x = b + y, d = x - b, Sr[2] = b - (x - d) + (y - d), Sr[3] = x;
|
|
21251
|
+
const O = bx(I, qI, 4, Sr, XI);
|
|
21251
21252
|
return XI[O - 1];
|
|
21252
21253
|
}
|
|
21253
21254
|
function jm(e, t, n, r, o, i) {
|
|
@@ -22561,13 +22562,17 @@ function y1e(e, t, n) {
|
|
|
22561
22562
|
const i = e.byKey.get(o.key);
|
|
22562
22563
|
return i ? { hit: mB(e.layerId, i) } : null;
|
|
22563
22564
|
}
|
|
22564
|
-
var
|
|
22565
|
+
var Ar = {
|
|
22565
22566
|
primary: null,
|
|
22566
22567
|
group: [],
|
|
22567
22568
|
related: /* @__PURE__ */ new Map()
|
|
22568
|
-
}, b1e =
|
|
22569
|
+
}, b1e = class {
|
|
22569
22570
|
constructor({ layers: e, coordSystem: t }) {
|
|
22570
|
-
this.layerIndexes = [], this.layerRefs = [], this.viewport = null, this.aspectRatio =
|
|
22571
|
+
this.layerIndexes = [], this.layerRefs = [], this.viewport = null, this.aspectRatio = x1e, this.isAspectStale = !1, this.warmStarts = /* @__PURE__ */ new Map(), this.cachedState = Ar, this.cachedKey = null, this.hoverLayers = {
|
|
22572
|
+
interactive: [],
|
|
22573
|
+
normal: [],
|
|
22574
|
+
low: []
|
|
22575
|
+
}, this.hitTesters = /* @__PURE__ */ new Map(), this.cachedByKeyId = null, this.cachedByKeyState = Ar, this.layerIndexes = e.map((n) => eO(n, t, this.aspectRatio)), this.layerRefs = e.map((n) => lO(n, t)), this.hoverLayers = cO(e, this.layerIndexes);
|
|
22571
22576
|
}
|
|
22572
22577
|
update({ layers: e, coordSystem: t }) {
|
|
22573
22578
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -22588,7 +22593,7 @@ var dr = {
|
|
|
22588
22593
|
this.warmStarts.delete(i.id), r.push(eO(i, t, this.aspectRatio)), o.push(s);
|
|
22589
22594
|
}
|
|
22590
22595
|
for (const i of this.warmStarts.keys()) e.some((a) => a.id === i) || this.warmStarts.delete(i);
|
|
22591
|
-
this.layerIndexes = r, this.layerRefs = o, this.
|
|
22596
|
+
this.layerIndexes = r, this.layerRefs = o, this.hoverLayers = cO(e, r), this.invalidateCache();
|
|
22592
22597
|
}
|
|
22593
22598
|
setViewport(e) {
|
|
22594
22599
|
if (e.width <= 0 || e.height <= 0) return;
|
|
@@ -22597,23 +22602,23 @@ var dr = {
|
|
|
22597
22602
|
t !== this.aspectRatio && (this.aspectRatio = t, this.isAspectStale = !0);
|
|
22598
22603
|
}
|
|
22599
22604
|
query(e, t, n) {
|
|
22600
|
-
if (this.layerIndexes.length === 0) return
|
|
22605
|
+
if (this.layerIndexes.length === 0) return Ar;
|
|
22601
22606
|
this.reindexForAspect();
|
|
22602
|
-
const r =
|
|
22603
|
-
layers:
|
|
22607
|
+
const r = n ?? this.viewport, o = t !== void 0 && r !== null ? B0e(t, r) : void 0, i = (f) => d1e({
|
|
22608
|
+
layers: f,
|
|
22604
22609
|
aspectRatio: this.aspectRatio,
|
|
22605
22610
|
warmStarts: this.warmStarts,
|
|
22606
22611
|
hitTesters: this.hitTesters,
|
|
22607
22612
|
cursor: e,
|
|
22608
|
-
tolerance:
|
|
22609
|
-
});
|
|
22613
|
+
tolerance: o
|
|
22614
|
+
}), a = i(this.hoverLayers.normal) ?? i(this.hoverLayers.low);
|
|
22610
22615
|
if (!a)
|
|
22611
|
-
return this.invalidateCache(),
|
|
22616
|
+
return this.invalidateCache(), Ar;
|
|
22612
22617
|
const s = a.match.hit;
|
|
22613
22618
|
this.warmStarts.set(s.layerId, s.pointIndex);
|
|
22614
|
-
const l =
|
|
22619
|
+
const l = o === void 0 ? void 0 : f1e(a, o), c = S1e(s, l);
|
|
22615
22620
|
if (this.cachedKey === c) return this.cachedState;
|
|
22616
|
-
const { group: u, related: d } = G0e(a,
|
|
22621
|
+
const { group: u, related: d } = G0e(a, this.hoverLayers.interactive);
|
|
22617
22622
|
return this.cachedKey = c, this.cachedState = l === void 0 ? {
|
|
22618
22623
|
primary: s,
|
|
22619
22624
|
group: u,
|
|
@@ -22632,11 +22637,10 @@ var dr = {
|
|
|
22632
22637
|
this.hitTesters.delete(e);
|
|
22633
22638
|
}
|
|
22634
22639
|
resolveHoverByKey(e, t) {
|
|
22635
|
-
|
|
22636
|
-
|
|
22637
|
-
if (!n || n.kind !== "render-hit-test") return dr;
|
|
22640
|
+
const n = this.hoverLayers.interactive.find((i) => i.layerId === e);
|
|
22641
|
+
if (!n || n.kind !== "render-hit-test") return Ar;
|
|
22638
22642
|
const r = n.byKey.get(t);
|
|
22639
|
-
if (!r) return
|
|
22643
|
+
if (!r) return Ar;
|
|
22640
22644
|
const o = `${e}:${t}`;
|
|
22641
22645
|
return this.cachedByKeyId === o ? this.cachedByKeyState : (this.cachedByKeyId = o, this.cachedByKeyState = {
|
|
22642
22646
|
primary: mB(e, r),
|
|
@@ -22645,7 +22649,7 @@ var dr = {
|
|
|
22645
22649
|
}, this.cachedByKeyState);
|
|
22646
22650
|
}
|
|
22647
22651
|
invalidateCache() {
|
|
22648
|
-
this.cachedKey = null, this.cachedState =
|
|
22652
|
+
this.cachedKey = null, this.cachedState = Ar, this.cachedByKeyId = null, this.cachedByKeyState = Ar;
|
|
22649
22653
|
}
|
|
22650
22654
|
reindexForAspect() {
|
|
22651
22655
|
if (this.isAspectStale) {
|
|
@@ -22653,7 +22657,7 @@ var dr = {
|
|
|
22653
22657
|
for (const e of this.layerIndexes) e.kind === "points" && e.projection === "cartesian" && fB(e, this.aspectRatio);
|
|
22654
22658
|
}
|
|
22655
22659
|
}
|
|
22656
|
-
};
|
|
22660
|
+
}, x1e = 1;
|
|
22657
22661
|
function S1e(e, t) {
|
|
22658
22662
|
const n = `${e.layerId}:${e.pointIndex}`;
|
|
22659
22663
|
return t === void 0 ? n : `${n}:${t.intersects}:${t.onPoint}`;
|
|
@@ -22666,10 +22670,17 @@ function lO(e, t) {
|
|
|
22666
22670
|
coord: t
|
|
22667
22671
|
};
|
|
22668
22672
|
}
|
|
22669
|
-
function cO(e) {
|
|
22670
|
-
const
|
|
22671
|
-
|
|
22672
|
-
|
|
22673
|
+
function cO(e, t) {
|
|
22674
|
+
const n = {
|
|
22675
|
+
interactive: [],
|
|
22676
|
+
normal: [],
|
|
22677
|
+
low: []
|
|
22678
|
+
};
|
|
22679
|
+
for (const [r, o] of e.entries()) {
|
|
22680
|
+
const i = t[r];
|
|
22681
|
+
!i || !o.interactive || (n.interactive.push(i), n[o.hoverPriority].push(i));
|
|
22682
|
+
}
|
|
22683
|
+
return n;
|
|
22673
22684
|
}
|
|
22674
22685
|
function w1e(e, t) {
|
|
22675
22686
|
return e.data === t.data && e.geom === t.geom && e.position === t.position && e.coord === t.coord;
|
|
@@ -22715,7 +22726,7 @@ function C1e(e, t, n) {
|
|
|
22715
22726
|
function k1e(e, t) {
|
|
22716
22727
|
if (e.bandAxis === null) return null;
|
|
22717
22728
|
if (e.bandAxis === "x") {
|
|
22718
|
-
const o = Xr(t.observation), i =
|
|
22729
|
+
const o = Xr(t.observation), i = hr(t.observation);
|
|
22719
22730
|
return o === null || i === null ? null : {
|
|
22720
22731
|
startAngle: o,
|
|
22721
22732
|
endAngle: i,
|
|
@@ -22732,7 +22743,7 @@ function k1e(e, t) {
|
|
|
22732
22743
|
};
|
|
22733
22744
|
}
|
|
22734
22745
|
function E1e(e) {
|
|
22735
|
-
const t = Xr(e.observation), n =
|
|
22746
|
+
const t = Xr(e.observation), n = hr(e.observation);
|
|
22736
22747
|
return t === null || n === null ? null : n - t;
|
|
22737
22748
|
}
|
|
22738
22749
|
function M1e(e) {
|
|
@@ -22832,7 +22843,7 @@ var mb = 0.5, I1e = 0.3, O1e = 0.4, L1e = 10, _1e = ({ layer: e, coordSystem: t,
|
|
|
22832
22843
|
const c = Math.floor(l / o) * a;
|
|
22833
22844
|
for (const u of s.keys) n[u] = c;
|
|
22834
22845
|
}), n;
|
|
22835
|
-
},
|
|
22846
|
+
}, yr = (e, t, n) => ({
|
|
22836
22847
|
shadow: e.get("shadow", t, n),
|
|
22837
22848
|
blendMode: e.get("blendMode", t, n),
|
|
22838
22849
|
...CB({
|
|
@@ -23037,16 +23048,16 @@ var mb = 0.5, I1e = 0.3, O1e = 0.4, L1e = 10, _1e = ({ layer: e, coordSystem: t,
|
|
|
23037
23048
|
const t = e.replace(/^[\x00-\x20]+/, "");
|
|
23038
23049
|
return t.length === 0 ? !1 : exe.test(t);
|
|
23039
23050
|
}, txe = ({ locale: e, intlOptions: t }) => {
|
|
23040
|
-
const n =
|
|
23051
|
+
const n = vr(e, {
|
|
23041
23052
|
day: "numeric",
|
|
23042
23053
|
month: "long",
|
|
23043
23054
|
year: "numeric",
|
|
23044
23055
|
weekday: "long",
|
|
23045
|
-
...
|
|
23056
|
+
...gr,
|
|
23046
23057
|
...t
|
|
23047
23058
|
});
|
|
23048
23059
|
return sr((r) => n.format(r));
|
|
23049
|
-
}, nxe = ({ locale: e, intlOptions: t }) => sr((n) =>
|
|
23060
|
+
}, nxe = ({ locale: e, intlOptions: t }) => sr((n) => vr(e, {
|
|
23050
23061
|
day: "2-digit",
|
|
23051
23062
|
month: "short",
|
|
23052
23063
|
year: "numeric",
|
|
@@ -23054,7 +23065,7 @@ var mb = 0.5, I1e = 0.3, O1e = 0.4, L1e = 10, _1e = ({ layer: e, coordSystem: t,
|
|
|
23054
23065
|
hour: "2-digit",
|
|
23055
23066
|
minute: "2-digit",
|
|
23056
23067
|
second: n.getUTCSeconds() !== 0 ? "2-digit" : void 0,
|
|
23057
|
-
...
|
|
23068
|
+
...gr,
|
|
23058
23069
|
...t
|
|
23059
23070
|
}).format(n)), Xv = (e) => {
|
|
23060
23071
|
const { valueFormat: t } = e;
|
|
@@ -23659,7 +23670,7 @@ var vb = (e, t) => ({
|
|
|
23659
23670
|
if ("range" in e) return ["range", ...SO(e.range)];
|
|
23660
23671
|
const t = Object.entries(e).sort(([n], [r]) => n.localeCompare(r));
|
|
23661
23672
|
return ["invalid", JSON.stringify(t)];
|
|
23662
|
-
}, xO = (e) => Array.isArray(e) ? e.map(k2) : ["invalid", JSON.stringify(e)], SO = (e) => Array.isArray(e) ? e.map(gl) : ["invalid", JSON.stringify(e)], _B = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "identity" && (Mt(
|
|
23673
|
+
}, xO = (e) => Array.isArray(e) ? e.map(k2) : ["invalid", JSON.stringify(e)], SO = (e) => Array.isArray(e) ? e.map(gl) : ["invalid", JSON.stringify(e)], _B = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "identity" && (Mt(pr(t.mapping.y)) || Mt(pr(t.mapping.x)))), DB = (e) => e.find((t) => t.geom === "line" && t.stat.type === "smooth"), NB = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "mean");
|
|
23663
23674
|
function Lxe(e) {
|
|
23664
23675
|
return {
|
|
23665
23676
|
mapping: e.mapping,
|
|
@@ -25600,7 +25611,7 @@ var Bwe = class tV {
|
|
|
25600
25611
|
apply(t) {
|
|
25601
25612
|
const n = this.params.layerId ? Wt(t.layers, this.params.layerId) : Ls(t.layers, "rule");
|
|
25602
25613
|
if (!Zi(n, "rule")) return null;
|
|
25603
|
-
const r = typeof
|
|
25614
|
+
const r = typeof pr(n.mapping.y) == "number" ? "y" : "x", o = pr(n.mapping[r]);
|
|
25604
25615
|
if (typeof o != "number" || o === this.params.value) return null;
|
|
25605
25616
|
const i = {
|
|
25606
25617
|
...n.mapping,
|
|
@@ -34830,7 +34841,7 @@ var xk = Rt(null), nt = () => {
|
|
|
34830
34841
|
}, kPe = () => {
|
|
34831
34842
|
const e = /* @__PURE__ */ new Map();
|
|
34832
34843
|
return _d((t) => ({
|
|
34833
|
-
hover:
|
|
34844
|
+
hover: Ar,
|
|
34834
34845
|
tooltipAnchor: null,
|
|
34835
34846
|
pointerRegions: [],
|
|
34836
34847
|
isPointerSuspended: !1,
|
|
@@ -34850,7 +34861,7 @@ var xk = Rt(null), nt = () => {
|
|
|
34850
34861
|
layers: e,
|
|
34851
34862
|
coordSystem: t
|
|
34852
34863
|
}), [e, t]), r = Ie(null);
|
|
34853
|
-
r.current === null && (r.current = new
|
|
34864
|
+
r.current === null && (r.current = new b1e(n));
|
|
34854
34865
|
const o = r.current, i = Ie(!1);
|
|
34855
34866
|
return we(() => {
|
|
34856
34867
|
if (!i.current) {
|
|
@@ -36218,7 +36229,7 @@ var RL = 10 ** 2, er = (e) => Math.round(e * RL) / RL, MRe = (e) => e.map(({ x:
|
|
|
36218
36229
|
}), l;
|
|
36219
36230
|
}, ORe = (e, t, n) => {
|
|
36220
36231
|
if (t.mainAxis === "y") {
|
|
36221
|
-
const i = bt(e), a =
|
|
36232
|
+
const i = bt(e), a = hr(e) ?? St(e);
|
|
36222
36233
|
return i === null || a === null ? null : uy(ec(a, i), n);
|
|
36223
36234
|
}
|
|
36224
36235
|
const r = St(e), o = In(e) ?? bt(e);
|
|
@@ -36235,7 +36246,7 @@ var RL = 10 ** 2, er = (e) => Math.round(e * RL) / RL, MRe = (e) => e.map(({ x:
|
|
|
36235
36246
|
...e.shadow === void 0 ? [] : [Fd(e.shadow) ?? ""]
|
|
36236
36247
|
].filter((n) => n !== "");
|
|
36237
36248
|
return t.length === 0 ? void 0 : t.join(" ");
|
|
36238
|
-
},
|
|
36249
|
+
}, br = (e) => {
|
|
36239
36250
|
const t = nz(e), n = e.blendMode === "normal" ? void 0 : e.blendMode;
|
|
36240
36251
|
if (!(t === void 0 && n === void 0))
|
|
36241
36252
|
return {
|
|
@@ -36708,7 +36719,7 @@ var dp = (e, t, n) => {
|
|
|
36708
36719
|
width: "100%",
|
|
36709
36720
|
height: "100%",
|
|
36710
36721
|
"data-geom": "area",
|
|
36711
|
-
style:
|
|
36722
|
+
style: br(yr(l, t.data.getFirst() ?? void 0)),
|
|
36712
36723
|
className: di,
|
|
36713
36724
|
children: i ? /* @__PURE__ */ m(iz, {
|
|
36714
36725
|
intro: i,
|
|
@@ -36730,7 +36741,7 @@ var dp = (e, t, n) => {
|
|
|
36730
36741
|
}), az = 1, rIe = 0.4, oIe = 0.2, iIe = 1, aIe = 0.5, sIe = 2.25, Bd = ({ hit: e, project: t = ec, ...n }) => {
|
|
36731
36742
|
const r = Z$(e.layerId);
|
|
36732
36743
|
if (!e.anchored) return null;
|
|
36733
|
-
const o = Dt(r?.get("fill", e.observation) ?? "#B84737"), i = kC(e.observation) ?? 1, a = r?.get("stroke", e.observation, "hovered") ?? "#ffffff", s = r?.get("symbol", e.observation) ?? "circle", l = t(e.x, e.y), c = Oe(l.x), u = Oe(l.y), d = lIe(e.observation, r), { ringRadius: f, ringWidth: h } = cIe(d, x0e(s, d * 2)), p = r ?
|
|
36744
|
+
const o = Dt(r?.get("fill", e.observation) ?? "#B84737"), i = kC(e.observation) ?? 1, a = r?.get("stroke", e.observation, "hovered") ?? "#ffffff", s = r?.get("symbol", e.observation) ?? "circle", l = t(e.x, e.y), c = Oe(l.x), u = Oe(l.y), d = lIe(e.observation, r), { ringRadius: f, ringWidth: h } = cIe(d, x0e(s, d * 2)), p = r ? br(yr(r, e.observation, "hovered")) : void 0;
|
|
36734
36745
|
return /* @__PURE__ */ B("g", {
|
|
36735
36746
|
...n,
|
|
36736
36747
|
style: p,
|
|
@@ -36788,7 +36799,7 @@ var dp = (e, t, n) => {
|
|
|
36788
36799
|
width: "100%",
|
|
36789
36800
|
height: "100%",
|
|
36790
36801
|
"data-geom": "area",
|
|
36791
|
-
style:
|
|
36802
|
+
style: br(yr(o, n.observation, "hovered")),
|
|
36792
36803
|
className: di,
|
|
36793
36804
|
children: [/* @__PURE__ */ m("path", {
|
|
36794
36805
|
d: s,
|
|
@@ -36843,7 +36854,7 @@ var dp = (e, t, n) => {
|
|
|
36843
36854
|
y: i
|
|
36844
36855
|
};
|
|
36845
36856
|
}
|
|
36846
|
-
const n = bt(e), r =
|
|
36857
|
+
const n = bt(e), r = hr(e) ?? St(e);
|
|
36847
36858
|
return n === null || r === null ? null : {
|
|
36848
36859
|
x: r,
|
|
36849
36860
|
y: n
|
|
@@ -37295,7 +37306,7 @@ var hIe = {
|
|
|
37295
37306
|
...p,
|
|
37296
37307
|
fill: u(c(g)),
|
|
37297
37308
|
opacity: a.get("alpha", h) * a.get("fillAlpha", h),
|
|
37298
|
-
effects:
|
|
37309
|
+
effects: br(yr(a, h))
|
|
37299
37310
|
})).values()].map(({ segments: h, style: p, bounds: g }, v) => {
|
|
37300
37311
|
const y = p.stroke === void 0 ? void 0 : Kp(p.strokeWidth);
|
|
37301
37312
|
return {
|
|
@@ -37539,7 +37550,7 @@ var qx = 3, NIe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
|
|
|
37539
37550
|
}), A = Zo(p, 0), T = Zo(g, S), P = Zo(ys(p, qx), 0), x = Zo(ys(g, qx), S > 0 ? S + qx : 0), k = u(c), R = o.get("alpha", n.observation, "hovered") * o.get("fillAlpha", n.observation, "hovered"), E = o.get("stroke", n.observation, "hovered"), D = Kp(y);
|
|
37540
37551
|
return /* @__PURE__ */ B("g", {
|
|
37541
37552
|
"data-testid": "hovered-bar",
|
|
37542
|
-
style:
|
|
37553
|
+
style: br(yr(o, n.observation, "hovered")),
|
|
37543
37554
|
children: [
|
|
37544
37555
|
d,
|
|
37545
37556
|
/* @__PURE__ */ m("clipPath", {
|
|
@@ -37699,7 +37710,7 @@ var qx = 3, NIe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
|
|
|
37699
37710
|
width: "100%",
|
|
37700
37711
|
height: "100%",
|
|
37701
37712
|
"data-geom": "line",
|
|
37702
|
-
style:
|
|
37713
|
+
style: br(yr(s, t.data.getFirst() ?? void 0)),
|
|
37703
37714
|
className: di,
|
|
37704
37715
|
children: o ? /* @__PURE__ */ m(iz, {
|
|
37705
37716
|
intro: o,
|
|
@@ -37805,7 +37816,7 @@ var qx = 3, NIe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
|
|
|
37805
37816
|
width: "100%",
|
|
37806
37817
|
height: "100%",
|
|
37807
37818
|
"data-geom": "line",
|
|
37808
|
-
style:
|
|
37819
|
+
style: br(yr(r, t.observation, "hovered")),
|
|
37809
37820
|
className: di,
|
|
37810
37821
|
children: /* @__PURE__ */ m("path", {
|
|
37811
37822
|
d: a,
|
|
@@ -37870,7 +37881,7 @@ var qx = 3, NIe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
|
|
|
37870
37881
|
stroke: n.get("stroke", e),
|
|
37871
37882
|
strokeOpacity: n.get("strokeAlpha", e),
|
|
37872
37883
|
strokeWidth: n.get("strokeWidth", e),
|
|
37873
|
-
style:
|
|
37884
|
+
style: br(yr(n, e)),
|
|
37874
37885
|
motion: c
|
|
37875
37886
|
});
|
|
37876
37887
|
}, mz = (e, t) => {
|
|
@@ -38960,7 +38971,7 @@ var JOe = GJ((() => {
|
|
|
38960
38971
|
isHorizontalLine: R,
|
|
38961
38972
|
position: E,
|
|
38962
38973
|
lineColor: x,
|
|
38963
|
-
effects:
|
|
38974
|
+
effects: br(yr(T, P)),
|
|
38964
38975
|
shouldAnimateTransitions: o
|
|
38965
38976
|
}), S !== null && S !== "" && /* @__PURE__ */ m(r5e, {
|
|
38966
38977
|
label: S,
|
|
@@ -39024,7 +39035,7 @@ var JOe = GJ((() => {
|
|
|
39024
39035
|
rx: i.get("cornerRadius", p),
|
|
39025
39036
|
stroke: i.get("stroke", p),
|
|
39026
39037
|
strokeWidth: i.get("strokeWidth", p),
|
|
39027
|
-
effects:
|
|
39038
|
+
effects: br(yr(i, p))
|
|
39028
39039
|
});
|
|
39029
39040
|
}
|
|
39030
39041
|
return f.map(({ key: p, ...g }) => /* @__PURE__ */ m(u5e, {
|
|
@@ -39179,7 +39190,7 @@ var JOe = GJ((() => {
|
|
|
39179
39190
|
width: "100%",
|
|
39180
39191
|
height: "100%",
|
|
39181
39192
|
"data-geom": "area",
|
|
39182
|
-
style:
|
|
39193
|
+
style: br(yr(r, t.data.getFirst() ?? void 0)),
|
|
39183
39194
|
className: di,
|
|
39184
39195
|
children: [a, o.map((s) => /* @__PURE__ */ B("g", { children: [/* @__PURE__ */ m("path", {
|
|
39185
39196
|
d: s.fillPath,
|
|
@@ -39259,7 +39270,7 @@ var JOe = GJ((() => {
|
|
|
39259
39270
|
height: "100%",
|
|
39260
39271
|
"data-geom": "area",
|
|
39261
39272
|
"data-testid": "hovered-area",
|
|
39262
|
-
style:
|
|
39273
|
+
style: br(yr(o, t.observation, "hovered")),
|
|
39263
39274
|
className: di,
|
|
39264
39275
|
children: [
|
|
39265
39276
|
l,
|
|
@@ -39413,7 +39424,7 @@ var JOe = GJ((() => {
|
|
|
39413
39424
|
width: "100%",
|
|
39414
39425
|
height: "100%",
|
|
39415
39426
|
"data-geom": "bar",
|
|
39416
|
-
style:
|
|
39427
|
+
style: br(yr(c, t.data.getFirst() ?? void 0)),
|
|
39417
39428
|
className: di,
|
|
39418
39429
|
children: [h, p.map((g, v) => {
|
|
39419
39430
|
const { stroke: y, strokeWidth: b, strokeAlpha: w } = g.style, S = y !== void 0, A = Kp(b), T = y === void 0 ? {} : hy(y, A.separatorWidth), P = y === void 0 ? void 0 : hy(y, A.outlineWidth), x = g.members.map((D) => {
|
|
@@ -39677,7 +39688,7 @@ var JOe = GJ((() => {
|
|
|
39677
39688
|
height: "100%",
|
|
39678
39689
|
"data-geom": "arc",
|
|
39679
39690
|
"data-testid": "hovered-arc",
|
|
39680
|
-
style:
|
|
39691
|
+
style: br(yr(o, n.observation, "hovered")),
|
|
39681
39692
|
className: di,
|
|
39682
39693
|
children: [l, /* @__PURE__ */ m(Gz, {
|
|
39683
39694
|
observation: n.observation,
|
|
@@ -39745,7 +39756,7 @@ var JOe = GJ((() => {
|
|
|
39745
39756
|
width: "100%",
|
|
39746
39757
|
height: "100%",
|
|
39747
39758
|
"data-geom": "line",
|
|
39748
|
-
style:
|
|
39759
|
+
style: br(yr(n, t.data.getFirst() ?? void 0)),
|
|
39749
39760
|
className: di,
|
|
39750
39761
|
children: r.map((o) => /* @__PURE__ */ m("path", {
|
|
39751
39762
|
d: o.pathData,
|
|
@@ -39807,7 +39818,7 @@ var JOe = GJ((() => {
|
|
|
39807
39818
|
height: "100%",
|
|
39808
39819
|
"data-geom": "line",
|
|
39809
39820
|
"data-testid": "hovered-line",
|
|
39810
|
-
style:
|
|
39821
|
+
style: br(yr(r, t.observation, "hovered")),
|
|
39811
39822
|
className: di,
|
|
39812
39823
|
children: /* @__PURE__ */ m("path", {
|
|
39813
39824
|
d: i,
|
|
@@ -42047,7 +42058,7 @@ var X3e = ({ edge: e, indexedLegends: t, containerWidth: n, containerHeight: r }
|
|
|
42047
42058
|
y.setHoverState(t.query(w, r)), y.setTooltipAnchor(null);
|
|
42048
42059
|
}, c = () => {
|
|
42049
42060
|
const p = n.getState();
|
|
42050
|
-
p.hover.primary === null && p.tooltipAnchor === null || (p.setHoverState(
|
|
42061
|
+
p.hover.primary === null && p.tooltipAnchor === null || (p.setHoverState(Ar), p.setTooltipAnchor(null));
|
|
42051
42062
|
}, u = (p) => {
|
|
42052
42063
|
const g = n.getState();
|
|
42053
42064
|
if (g.pointerRegions.length === 0) return !1;
|
|
@@ -43551,9 +43562,9 @@ function iG() {
|
|
|
43551
43562
|
function UNe(e) {
|
|
43552
43563
|
const { engine: t, store: n } = $o();
|
|
43553
43564
|
return rt((r, o) => {
|
|
43554
|
-
const { hover: i, setHoverState: a, setTooltipAnchor: s } = n.getState(), l = r === null ?
|
|
43565
|
+
const { hover: i, setHoverState: a, setTooltipAnchor: s } = n.getState(), l = r === null ? Ar : t.resolveHoverByKey(e, r);
|
|
43555
43566
|
if (l.primary === null) {
|
|
43556
|
-
i.primary?.layerId === e && (a(
|
|
43567
|
+
i.primary?.layerId === e && (a(Ar), s(null));
|
|
43557
43568
|
return;
|
|
43558
43569
|
}
|
|
43559
43570
|
a(l), s(o ? {
|
|
@@ -43714,6 +43725,7 @@ var qNe = 4, XNe = ({ renderer: e, layer: t, matchedLayer: n, overlayCandidates:
|
|
|
43714
43725
|
styleReaders: l
|
|
43715
43726
|
}) : u.length === 0 ? null : c.renderHoverCompanions({
|
|
43716
43727
|
layer: e,
|
|
43728
|
+
coordSystem: t,
|
|
43717
43729
|
primary: r,
|
|
43718
43730
|
related: u,
|
|
43719
43731
|
colorScheme: s,
|
|
@@ -46755,7 +46767,7 @@ function cG(e) {
|
|
|
46755
46767
|
function uG(e) {
|
|
46756
46768
|
return e >= 55296 && e < 56320;
|
|
46757
46769
|
}
|
|
46758
|
-
var Se = class
|
|
46770
|
+
var Se = class Tr {
|
|
46759
46771
|
constructor(t, n) {
|
|
46760
46772
|
if (this.content = t, this.size = n || 0, n == null) for (let r = 0; r < t.length; r++) this.size += t[r].nodeSize;
|
|
46761
46773
|
}
|
|
@@ -46784,7 +46796,7 @@ var Se = class Ar {
|
|
|
46784
46796
|
if (!this.size) return t;
|
|
46785
46797
|
let n = this.lastChild, r = t.firstChild, o = this.content.slice(), i = 0;
|
|
46786
46798
|
for (n.isText && n.sameMarkup(r) && (o[o.length - 1] = n.withText(n.text + r.text), i = 1); i < t.content.length; i++) o.push(t.content[i]);
|
|
46787
|
-
return new
|
|
46799
|
+
return new Tr(o, this.size + t.size);
|
|
46788
46800
|
}
|
|
46789
46801
|
cut(t, n = this.size) {
|
|
46790
46802
|
if (t == 0 && n == this.size) return this;
|
|
@@ -46793,22 +46805,22 @@ var Se = class Ar {
|
|
|
46793
46805
|
let s = this.content[i], l = a + s.nodeSize;
|
|
46794
46806
|
l > t && ((a < t || l > n) && (s.isText ? s = s.cut(Math.max(0, t - a), Math.min(s.text.length, n - a)) : s = s.cut(Math.max(0, t - a - 1), Math.min(s.content.size, n - a - 1))), r.push(s), o += s.nodeSize), a = l;
|
|
46795
46807
|
}
|
|
46796
|
-
return new
|
|
46808
|
+
return new Tr(r, o);
|
|
46797
46809
|
}
|
|
46798
46810
|
cutByIndex(t, n) {
|
|
46799
|
-
return t == n ?
|
|
46811
|
+
return t == n ? Tr.empty : t == 0 && n == this.content.length ? this : new Tr(this.content.slice(t, n));
|
|
46800
46812
|
}
|
|
46801
46813
|
replaceChild(t, n) {
|
|
46802
46814
|
let r = this.content[t];
|
|
46803
46815
|
if (r == n) return this;
|
|
46804
46816
|
let o = this.content.slice(), i = this.size + n.nodeSize - r.nodeSize;
|
|
46805
|
-
return o[t] = n, new
|
|
46817
|
+
return o[t] = n, new Tr(o, i);
|
|
46806
46818
|
}
|
|
46807
46819
|
addToStart(t) {
|
|
46808
|
-
return new
|
|
46820
|
+
return new Tr([t].concat(this.content), this.size + t.nodeSize);
|
|
46809
46821
|
}
|
|
46810
46822
|
addToEnd(t) {
|
|
46811
|
-
return new
|
|
46823
|
+
return new Tr(this.content.concat(t), this.size + t.nodeSize);
|
|
46812
46824
|
}
|
|
46813
46825
|
eq(t) {
|
|
46814
46826
|
if (this.content.length != t.content.length) return !1;
|
|
@@ -46865,24 +46877,24 @@ var Se = class Ar {
|
|
|
46865
46877
|
return this.content.length ? this.content.map((t) => t.toJSON()) : null;
|
|
46866
46878
|
}
|
|
46867
46879
|
static fromJSON(t, n) {
|
|
46868
|
-
if (!n) return
|
|
46880
|
+
if (!n) return Tr.empty;
|
|
46869
46881
|
if (!Array.isArray(n)) throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
46870
|
-
return
|
|
46882
|
+
return Tr.fromArray(n.map(t.nodeFromJSON));
|
|
46871
46883
|
}
|
|
46872
46884
|
static fromArray(t) {
|
|
46873
|
-
if (!t.length) return
|
|
46885
|
+
if (!t.length) return Tr.empty;
|
|
46874
46886
|
let n, r = 0;
|
|
46875
46887
|
for (let o = 0; o < t.length; o++) {
|
|
46876
46888
|
let i = t[o];
|
|
46877
46889
|
r += i.nodeSize, o && i.isText && t[o - 1].sameMarkup(i) ? (n || (n = t.slice(0, o)), n[n.length - 1] = i.withText(n[n.length - 1].text + i.text)) : n && n.push(i);
|
|
46878
46890
|
}
|
|
46879
|
-
return new
|
|
46891
|
+
return new Tr(n || t, r);
|
|
46880
46892
|
}
|
|
46881
46893
|
static from(t) {
|
|
46882
|
-
if (!t) return
|
|
46883
|
-
if (t instanceof
|
|
46894
|
+
if (!t) return Tr.empty;
|
|
46895
|
+
if (t instanceof Tr) return t;
|
|
46884
46896
|
if (Array.isArray(t)) return this.fromArray(t);
|
|
46885
|
-
if (t.attrs) return new
|
|
46897
|
+
if (t.attrs) return new Tr([t], t.nodeSize);
|
|
46886
46898
|
throw new RangeError("Can not convert " + t + " to a Fragment" + (t.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
46887
46899
|
}
|
|
46888
46900
|
};
|
|
@@ -48654,7 +48666,7 @@ var NG = class VT {
|
|
|
48654
48666
|
}
|
|
48655
48667
|
return r ? t : new BT(t, o, null);
|
|
48656
48668
|
}
|
|
48657
|
-
}, rS = /* @__PURE__ */ Object.create(null),
|
|
48669
|
+
}, rS = /* @__PURE__ */ Object.create(null), xr = class {
|
|
48658
48670
|
getMap() {
|
|
48659
48671
|
return nc.empty;
|
|
48660
48672
|
}
|
|
@@ -48698,7 +48710,7 @@ function iE(e, t, n) {
|
|
|
48698
48710
|
}
|
|
48699
48711
|
return Se.fromArray(r);
|
|
48700
48712
|
}
|
|
48701
|
-
var aE = class Lf extends
|
|
48713
|
+
var aE = class Lf extends xr {
|
|
48702
48714
|
constructor(t, n, r) {
|
|
48703
48715
|
super(), this.from = t, this.to = n, this.mark = r;
|
|
48704
48716
|
}
|
|
@@ -48729,8 +48741,8 @@ var aE = class Lf extends Sr {
|
|
|
48729
48741
|
return new Lf(n.from, n.to, t.markFromJSON(n.mark));
|
|
48730
48742
|
}
|
|
48731
48743
|
};
|
|
48732
|
-
|
|
48733
|
-
var Wd = class _f extends
|
|
48744
|
+
xr.jsonID("addMark", aE);
|
|
48745
|
+
var Wd = class _f extends xr {
|
|
48734
48746
|
constructor(t, n, r) {
|
|
48735
48747
|
super(), this.from = t, this.to = n, this.mark = r;
|
|
48736
48748
|
}
|
|
@@ -48761,8 +48773,8 @@ var Wd = class _f extends Sr {
|
|
|
48761
48773
|
return new _f(n.from, n.to, t.markFromJSON(n.mark));
|
|
48762
48774
|
}
|
|
48763
48775
|
};
|
|
48764
|
-
|
|
48765
|
-
var sE = class Df extends
|
|
48776
|
+
xr.jsonID("removeMark", Wd);
|
|
48777
|
+
var sE = class Df extends xr {
|
|
48766
48778
|
constructor(t, n) {
|
|
48767
48779
|
super(), this.pos = t, this.mark = n;
|
|
48768
48780
|
}
|
|
@@ -48799,8 +48811,8 @@ var sE = class Df extends Sr {
|
|
|
48799
48811
|
return new Df(n.pos, t.markFromJSON(n.mark));
|
|
48800
48812
|
}
|
|
48801
48813
|
};
|
|
48802
|
-
|
|
48803
|
-
var Sy = class HT extends
|
|
48814
|
+
xr.jsonID("addNodeMark", sE);
|
|
48815
|
+
var Sy = class HT extends xr {
|
|
48804
48816
|
constructor(t, n) {
|
|
48805
48817
|
super(), this.pos = t, this.mark = n;
|
|
48806
48818
|
}
|
|
@@ -48830,8 +48842,8 @@ var Sy = class HT extends Sr {
|
|
|
48830
48842
|
return new HT(n.pos, t.markFromJSON(n.mark));
|
|
48831
48843
|
}
|
|
48832
48844
|
};
|
|
48833
|
-
|
|
48834
|
-
var mo = class is extends
|
|
48845
|
+
xr.jsonID("removeNodeMark", Sy);
|
|
48846
|
+
var mo = class is extends xr {
|
|
48835
48847
|
constructor(t, n, r, o = !1) {
|
|
48836
48848
|
super(), this.from = t, this.to = n, this.slice = r, this.structure = o;
|
|
48837
48849
|
}
|
|
@@ -48876,8 +48888,8 @@ var mo = class is extends Sr {
|
|
|
48876
48888
|
}
|
|
48877
48889
|
};
|
|
48878
48890
|
mo.MAP_BIAS = 1;
|
|
48879
|
-
|
|
48880
|
-
var eo = class uv extends
|
|
48891
|
+
xr.jsonID("replace", mo);
|
|
48892
|
+
var eo = class uv extends xr {
|
|
48881
48893
|
constructor(t, n, r, o, i, a, s = !1) {
|
|
48882
48894
|
super(), this.from = t, this.to = n, this.gapFrom = r, this.gapTo = o, this.slice = i, this.insert = a, this.structure = s;
|
|
48883
48895
|
}
|
|
@@ -48922,7 +48934,7 @@ var eo = class uv extends Sr {
|
|
|
48922
48934
|
return new uv(n.from, n.to, n.gapFrom, n.gapTo, Pe.fromJSON(t, n.slice), n.insert, !!n.structure);
|
|
48923
48935
|
}
|
|
48924
48936
|
};
|
|
48925
|
-
|
|
48937
|
+
xr.jsonID("replaceAround", eo);
|
|
48926
48938
|
function $T(e, t, n) {
|
|
48927
48939
|
let r = e.resolve(t), o = n - t, i = r.depth;
|
|
48928
48940
|
for (; o > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
|
|
@@ -49479,7 +49491,7 @@ function UG(e, t) {
|
|
|
49479
49491
|
}
|
|
49480
49492
|
return n;
|
|
49481
49493
|
}
|
|
49482
|
-
var jG = class dv extends
|
|
49494
|
+
var jG = class dv extends xr {
|
|
49483
49495
|
constructor(t, n, r) {
|
|
49484
49496
|
super(), this.pos = t, this.attr = n, this.value = r;
|
|
49485
49497
|
}
|
|
@@ -49515,8 +49527,8 @@ var jG = class dv extends Sr {
|
|
|
49515
49527
|
return new dv(n.pos, n.attr, n.value);
|
|
49516
49528
|
}
|
|
49517
49529
|
};
|
|
49518
|
-
|
|
49519
|
-
var KG = class zT extends
|
|
49530
|
+
xr.jsonID("attr", jG);
|
|
49531
|
+
var KG = class zT extends xr {
|
|
49520
49532
|
constructor(t, n) {
|
|
49521
49533
|
super(), this.attr = t, this.value = n;
|
|
49522
49534
|
}
|
|
@@ -49548,7 +49560,7 @@ var KG = class zT extends Sr {
|
|
|
49548
49560
|
return new zT(n.attr, n.value);
|
|
49549
49561
|
}
|
|
49550
49562
|
};
|
|
49551
|
-
|
|
49563
|
+
xr.jsonID("docAttr", KG);
|
|
49552
49564
|
var id = class extends Error {
|
|
49553
49565
|
};
|
|
49554
49566
|
id = function e(t) {
|
|
@@ -50688,7 +50700,7 @@ function f8e(e, t, n) {
|
|
|
50688
50700
|
}
|
|
50689
50701
|
var Yi = typeof navigator < "u" ? navigator : null, j_ = typeof document < "u" ? document : null, Us = Yi && Yi.userAgent || "", GT = /Edge\/(\d+)/.exec(Us), vU = /MSIE \d/.exec(Us), UT = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Us), Yr = !!(vU || UT || GT), bs = vU ? document.documentMode : UT ? +UT[1] : GT ? +GT[1] : 0, Oo = !Yr && /gecko\/(\d+)/i.test(Us);
|
|
50690
50702
|
Oo && +(/Firefox\/(\d+)/.exec(Us) || [0, 0])[1];
|
|
50691
|
-
var jT = !Yr && /Chrome\/(\d+)/.exec(Us), rr = !!jT, yU = jT ? +jT[1] : 0,
|
|
50703
|
+
var jT = !Yr && /Chrome\/(\d+)/.exec(Us), rr = !!jT, yU = jT ? +jT[1] : 0, mr = !Yr && !!Yi && /Apple Computer/.test(Yi.vendor), ld = mr && (/Mobile\/\w+/.test(Us) || !!Yi && Yi.maxTouchPoints > 2), Ao = ld || (Yi ? /Mac/.test(Yi.platform) : !1), bU = Yi ? /Win/.test(Yi.platform) : !1, Oa = /Android \d/.test(Us), hm = !!j_ && "webkitFontSmoothing" in j_.documentElement.style, h8e = hm ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
50692
50704
|
function p8e(e) {
|
|
50693
50705
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
50694
50706
|
return t ? {
|
|
@@ -50885,7 +50897,7 @@ function T8e(e, t) {
|
|
|
50885
50897
|
let c = e.dom.getBoundingClientRect();
|
|
50886
50898
|
if (!hE(t, c) || (a = TU(e.dom, t, c), !a)) return null;
|
|
50887
50899
|
}
|
|
50888
|
-
if (
|
|
50900
|
+
if (mr)
|
|
50889
50901
|
for (let c = a; r && c; c = sd(c)) c.draggable && (r = void 0);
|
|
50890
50902
|
if (a = x8e(a, t), r) {
|
|
50891
50903
|
if (Oo && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
|
|
@@ -51259,7 +51271,7 @@ var Lo = 0, J_ = 1, Cl = 2, ni = 3, pm = class {
|
|
|
51259
51271
|
h = g;
|
|
51260
51272
|
}
|
|
51261
51273
|
let a = this.domFromPos(e, e ? -1 : 1), s = t == e ? a : this.domFromPos(t, t ? -1 : 1), l = n.root.getSelection(), c = n.domSelectionRange(), u = !1;
|
|
51262
|
-
if ((Oo ||
|
|
51274
|
+
if ((Oo || mr) && e == t) {
|
|
51263
51275
|
let { node: f, offset: h } = a;
|
|
51264
51276
|
if (f.nodeType == 3) {
|
|
51265
51277
|
if (u = !!(h && f.nodeValue[h - 1] == `
|
|
@@ -51283,7 +51295,7 @@ var Lo = 0, J_ = 1, Cl = 2, ni = 3, pm = class {
|
|
|
51283
51295
|
let f = c.focusNode.childNodes[c.focusOffset];
|
|
51284
51296
|
f && f.contentEditable == "false" && (r = !0);
|
|
51285
51297
|
}
|
|
51286
|
-
if (!(r || u &&
|
|
51298
|
+
if (!(r || u && mr) && rc(a.node, a.offset, c.anchorNode, c.anchorOffset) && rc(s.node, s.offset, c.focusNode, c.focusOffset)) return;
|
|
51287
51299
|
let d = !1;
|
|
51288
51300
|
if ((l.extend || e == t) && !(u && Oo)) {
|
|
51289
51301
|
l.collapse(a.node, a.offset);
|
|
@@ -51829,7 +51841,7 @@ var O8e = class {
|
|
|
51829
51841
|
let e = this.top.children[this.index - 1], t = this.top;
|
|
51830
51842
|
for (; e instanceof uh; )
|
|
51831
51843
|
t = e, e = t.children[t.children.length - 1];
|
|
51832
|
-
(!e || !(e instanceof MU) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((
|
|
51844
|
+
(!e || !(e instanceof MU) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((mr || rr) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
51833
51845
|
}
|
|
51834
51846
|
addHackNode(e, t) {
|
|
51835
51847
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e)) this.index++;
|
|
@@ -52000,17 +52012,17 @@ function Va(e, t = !1) {
|
|
|
52000
52012
|
}
|
|
52001
52013
|
e.domObserver.setCurSelection(), e.domObserver.connectSelection();
|
|
52002
52014
|
}
|
|
52003
|
-
var e3 =
|
|
52015
|
+
var e3 = mr || rr && yU < 63;
|
|
52004
52016
|
function t3(e, t) {
|
|
52005
52017
|
let { node: n, offset: r } = e.docView.domFromPos(t, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
|
|
52006
|
-
if (
|
|
52018
|
+
if (mr && o && o.contentEditable == "false") return uS(o);
|
|
52007
52019
|
if ((!o || o.contentEditable == "false") && (!i || i.contentEditable == "false")) {
|
|
52008
52020
|
if (o) return uS(o);
|
|
52009
52021
|
if (i) return uS(i);
|
|
52010
52022
|
}
|
|
52011
52023
|
}
|
|
52012
52024
|
function uS(e) {
|
|
52013
|
-
return e.contentEditable = "true",
|
|
52025
|
+
return e.contentEditable = "true", mr && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
|
|
52014
52026
|
}
|
|
52015
52027
|
function n3(e) {
|
|
52016
52028
|
e.contentEditable = "false", e.wasDraggable && (e.draggable = !0, e.wasDraggable = null);
|
|
@@ -52246,7 +52258,7 @@ function c3(e, t, n) {
|
|
|
52246
52258
|
e.domObserver.stop(), t.contentEditable = n, e.domObserver.start();
|
|
52247
52259
|
}
|
|
52248
52260
|
function U8e(e) {
|
|
52249
|
-
if (!
|
|
52261
|
+
if (!mr || e.state.selection.$head.parentOffset > 0) return !1;
|
|
52250
52262
|
let { focusNode: t, focusOffset: n } = e.domSelectionRange();
|
|
52251
52263
|
if (t && t.nodeType == 1 && n == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
|
|
52252
52264
|
let r = t.firstChild;
|
|
@@ -52497,7 +52509,7 @@ function n7e(e) {
|
|
|
52497
52509
|
o7e(e, r) && !vE(e, r) && (e.editable || !(r.type in Fr)) && n(e, r);
|
|
52498
52510
|
}, e7e[t] ? { passive: !0 } : void 0);
|
|
52499
52511
|
}
|
|
52500
|
-
|
|
52512
|
+
mr && e.dom.addEventListener("input", () => null), eA(e);
|
|
52501
52513
|
}
|
|
52502
52514
|
function La(e, t) {
|
|
52503
52515
|
e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
|
|
@@ -52682,7 +52694,7 @@ var jU = class {
|
|
|
52682
52694
|
up(e) {
|
|
52683
52695
|
if (this.done(), !this.view.dom.contains(e.target)) return;
|
|
52684
52696
|
let t = this.pos;
|
|
52685
|
-
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(mm(e))), this.updateAllowDefault(e), this.allowDefault || !t ? La(this.view, "pointer") : c7e(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed ||
|
|
52697
|
+
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(mm(e))), this.updateAllowDefault(e), this.allowDefault || !t ? La(this.view, "pointer") : c7e(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || mr && this.mightDrag && !this.mightDrag.node.isAtom || rr && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (gm(this.view, gt.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : La(this.view, "pointer");
|
|
52686
52698
|
}
|
|
52687
52699
|
move(e) {
|
|
52688
52700
|
this.updateAllowDefault(e), La(this.view, "pointer"), super.move(e);
|
|
@@ -52717,7 +52729,7 @@ Nr.touchmove = (e) => {
|
|
|
52717
52729
|
};
|
|
52718
52730
|
Nr.contextmenu = (e) => bE(e);
|
|
52719
52731
|
function KU(e, t) {
|
|
52720
|
-
return e.composing ? !0 :
|
|
52732
|
+
return e.composing ? !0 : mr && Math.abs(Date.now() - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
|
|
52721
52733
|
}
|
|
52722
52734
|
var m7e = Oa ? 5e3 : -1;
|
|
52723
52735
|
Fr.compositionstart = Fr.compositionupdate = (e) => {
|
|
@@ -53318,7 +53330,7 @@ var k7e = {
|
|
|
53318
53330
|
constructor(e, t) {
|
|
53319
53331
|
this.view = e, this.handleDOMChange = t, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new M7e(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((n) => {
|
|
53320
53332
|
for (let r = 0; r < n.length; r++) this.queue.push(n[r]);
|
|
53321
|
-
Yr && bs <= 11 && n.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() :
|
|
53333
|
+
Yr && bs <= 11 && n.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : mr && e.composing && n.some((r) => r.type == "childList" && r.target.nodeName == "TR") ? (e.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
|
|
53322
53334
|
}), E7e && (this.onCharData = (n) => {
|
|
53323
53335
|
this.queue.push({
|
|
53324
53336
|
target: n.target,
|
|
@@ -53564,10 +53576,10 @@ var D7e = (e) => (t) => {
|
|
|
53564
53576
|
let n = t.pmViewDesc;
|
|
53565
53577
|
if (n) return n.parseRule(e);
|
|
53566
53578
|
if (t.nodeName == "BR" && t.parentNode) {
|
|
53567
|
-
if (
|
|
53579
|
+
if (mr && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
|
|
53568
53580
|
let r = document.createElement("div");
|
|
53569
53581
|
return r.appendChild(document.createElement("li")), { skip: r };
|
|
53570
|
-
} else if (t.parentNode.lastChild == t ||
|
|
53582
|
+
} else if (t.parentNode.lastChild == t || mr && /^(tr|table)$/i.test(t.parentNode.nodeName)) return { ignore: !0 };
|
|
53571
53583
|
} else if (t.nodeName == "IMG" && t.getAttribute("mark-placeholder")) return { ignore: !0 };
|
|
53572
53584
|
return null;
|
|
53573
53585
|
}, N7e = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
@@ -53879,7 +53891,7 @@ var ij = class {
|
|
|
53879
53891
|
}
|
|
53880
53892
|
domSelectionRange() {
|
|
53881
53893
|
let e = this.domSelection();
|
|
53882
|
-
return e ?
|
|
53894
|
+
return e ? mr && this.root.nodeType === 11 && d8e(this.dom.ownerDocument) == this.dom && I7e(this, e) || e : {
|
|
53883
53895
|
focusNode: null,
|
|
53884
53896
|
focusOffset: 0,
|
|
53885
53897
|
anchorNode: null,
|
|
@@ -61079,16 +61091,16 @@ function Ap(e, t) {
|
|
|
61079
61091
|
return t < 0 || t >= e.current.length;
|
|
61080
61092
|
}
|
|
61081
61093
|
function gv(e, t) {
|
|
61082
|
-
return
|
|
61094
|
+
return dr(e, { disabledIndices: t });
|
|
61083
61095
|
}
|
|
61084
61096
|
function SA(e, t) {
|
|
61085
|
-
return
|
|
61097
|
+
return dr(e, {
|
|
61086
61098
|
decrement: !0,
|
|
61087
61099
|
startingIndex: e.current.length,
|
|
61088
61100
|
disabledIndices: t
|
|
61089
61101
|
});
|
|
61090
61102
|
}
|
|
61091
|
-
function
|
|
61103
|
+
function dr(e, { startingIndex: t = -1, decrement: n = !1, disabledIndices: r, amount: o = 1 } = {}) {
|
|
61092
61104
|
let i = t;
|
|
61093
61105
|
do
|
|
61094
61106
|
i += n ? -o : o;
|
|
@@ -61146,7 +61158,7 @@ function WK(e, { event: t, orientation: n, loopFocus: r, rtl: o, cols: i, disabl
|
|
|
61146
61158
|
const P = A(f) ?? T(f);
|
|
61147
61159
|
if (P !== void 0) d = P;
|
|
61148
61160
|
else if (c === -1) d = f === "up" ? l : s;
|
|
61149
|
-
else if (d =
|
|
61161
|
+
else if (d = dr(e, {
|
|
61150
61162
|
startingIndex: c,
|
|
61151
61163
|
amount: S,
|
|
61152
61164
|
decrement: f === "up",
|
|
@@ -61156,7 +61168,7 @@ function WK(e, { event: t, orientation: n, loopFocus: r, rtl: o, cols: i, disabl
|
|
|
61156
61168
|
const x = c % S, k = l % S, R = l - (k - x);
|
|
61157
61169
|
k === x ? d = l : d = k > x ? R : R - S;
|
|
61158
61170
|
}
|
|
61159
|
-
f === "down" && c + S > l && (d =
|
|
61171
|
+
f === "down" && c + S > l && (d = dr(e, {
|
|
61160
61172
|
startingIndex: c % S - S,
|
|
61161
61173
|
amount: S,
|
|
61162
61174
|
disabledIndices: a
|
|
@@ -61166,30 +61178,30 @@ function WK(e, { event: t, orientation: n, loopFocus: r, rtl: o, cols: i, disabl
|
|
|
61166
61178
|
}
|
|
61167
61179
|
if (n === "both") {
|
|
61168
61180
|
const h = Al(c / i);
|
|
61169
|
-
t.key === (o ? "ArrowLeft" : "ArrowRight") && (u && Cr(t), c % i !== i - 1 ? (d =
|
|
61181
|
+
t.key === (o ? "ArrowLeft" : "ArrowRight") && (u && Cr(t), c % i !== i - 1 ? (d = dr(e, {
|
|
61170
61182
|
startingIndex: c,
|
|
61171
61183
|
disabledIndices: a
|
|
61172
|
-
}), r && mg(d, i, h) && (d =
|
|
61184
|
+
}), r && mg(d, i, h) && (d = dr(e, {
|
|
61173
61185
|
startingIndex: c - c % i - 1,
|
|
61174
61186
|
disabledIndices: a
|
|
61175
|
-
}))) : r && (d =
|
|
61187
|
+
}))) : r && (d = dr(e, {
|
|
61176
61188
|
startingIndex: c - c % i - 1,
|
|
61177
61189
|
disabledIndices: a
|
|
61178
|
-
})), mg(d, i, h) && (d = c)), t.key === (o ? "ArrowRight" : "ArrowLeft") && (u && Cr(t), c % i !== 0 ? (d =
|
|
61190
|
+
})), mg(d, i, h) && (d = c)), t.key === (o ? "ArrowRight" : "ArrowLeft") && (u && Cr(t), c % i !== 0 ? (d = dr(e, {
|
|
61179
61191
|
startingIndex: c,
|
|
61180
61192
|
decrement: !0,
|
|
61181
61193
|
disabledIndices: a
|
|
61182
|
-
}), r && mg(d, i, h) && (d =
|
|
61194
|
+
}), r && mg(d, i, h) && (d = dr(e, {
|
|
61183
61195
|
startingIndex: c + (i - c % i),
|
|
61184
61196
|
decrement: !0,
|
|
61185
61197
|
disabledIndices: a
|
|
61186
|
-
}))) : r && (d =
|
|
61198
|
+
}))) : r && (d = dr(e, {
|
|
61187
61199
|
startingIndex: c + (i - c % i),
|
|
61188
61200
|
decrement: !0,
|
|
61189
61201
|
disabledIndices: a
|
|
61190
61202
|
})), mg(d, i, h) && (d = c));
|
|
61191
61203
|
const p = Al(l / i) === h;
|
|
61192
|
-
Ap(e, d) && (r && p ? d = t.key === (o ? "ArrowRight" : "ArrowLeft") ? l :
|
|
61204
|
+
Ap(e, d) && (r && p ? d = t.key === (o ? "ArrowRight" : "ArrowLeft") ? l : dr(e, {
|
|
61193
61205
|
startingIndex: c - c % i - 1,
|
|
61194
61206
|
disabledIndices: a
|
|
61195
61207
|
}) : d = c);
|
|
@@ -61608,7 +61620,7 @@ function uze(e) {
|
|
|
61608
61620
|
vertical: u ? nze : aY,
|
|
61609
61621
|
both: R
|
|
61610
61622
|
}[i];
|
|
61611
|
-
u && (k.key === "Home" ? I = O : k.key === "End" && (I = F)), I === A && (_.includes(k.key) || $.includes(k.key)) && (r && I === F && _.includes(k.key) ? I = O : r && I === O && $.includes(k.key) ? I = F : I =
|
|
61623
|
+
u && (k.key === "Home" ? I = O : k.key === "End" && (I = F)), I === A && (_.includes(k.key) || $.includes(k.key)) && (r && I === F && _.includes(k.key) ? I = O : r && I === O && $.includes(k.key) ? I = F : I = dr(w, {
|
|
61612
61624
|
startingIndex: I,
|
|
61613
61625
|
decrement: $.includes(k.key),
|
|
61614
61626
|
disabledIndices: f
|
|
@@ -64545,17 +64557,17 @@ function VY(e, t) {
|
|
|
64545
64557
|
I.current = VS(re.key, A, g) ? oe : q, _(re);
|
|
64546
64558
|
return;
|
|
64547
64559
|
}
|
|
64548
|
-
VS(re.key, A, g) ? h ? le >= q ? f && le !== s.current.length ? I.current = -1 : (ie.current = !1, I.current = oe) : I.current =
|
|
64560
|
+
VS(re.key, A, g) ? h ? le >= q ? f && le !== s.current.length ? I.current = -1 : (ie.current = !1, I.current = oe) : I.current = dr(s, {
|
|
64549
64561
|
startingIndex: le,
|
|
64550
64562
|
disabledIndices: S
|
|
64551
|
-
}) : I.current = Math.min(q,
|
|
64563
|
+
}) : I.current = Math.min(q, dr(s, {
|
|
64552
64564
|
startingIndex: le,
|
|
64553
64565
|
disabledIndices: S
|
|
64554
|
-
})) : h ? le <= oe ? f && le !== -1 ? I.current = s.current.length : (ie.current = !1, I.current = q) : I.current =
|
|
64566
|
+
})) : h ? le <= oe ? f && le !== -1 ? I.current = s.current.length : (ie.current = !1, I.current = q) : I.current = dr(s, {
|
|
64555
64567
|
startingIndex: le,
|
|
64556
64568
|
decrement: !0,
|
|
64557
64569
|
disabledIndices: S
|
|
64558
|
-
}) : I.current = Math.max(oe,
|
|
64570
|
+
}) : I.current = Math.max(oe, dr(s, {
|
|
64559
64571
|
startingIndex: le,
|
|
64560
64572
|
decrement: !0,
|
|
64561
64573
|
disabledIndices: S
|
|
@@ -76943,7 +76955,7 @@ var oZe = "observation-menu-trigger_trigger__7alwr61", iZe = {
|
|
|
76943
76955
|
const v = c.current, y = l.current, b = {
|
|
76944
76956
|
x: g.clientX - y.x,
|
|
76945
76957
|
y: g.clientY - y.y
|
|
76946
|
-
}, w = LZe(b, v) ? a.query(Cd(b, v)) :
|
|
76958
|
+
}, w = LZe(b, v) ? a.query(Cd(b, v)) : Ar;
|
|
76947
76959
|
i.getState().setHoverState(w);
|
|
76948
76960
|
};
|
|
76949
76961
|
let f = !1;
|
|
@@ -76981,7 +76993,7 @@ var oZe = "observation-menu-trigger_trigger__7alwr61", iZe = {
|
|
|
76981
76993
|
const d = (S) => {
|
|
76982
76994
|
if (!s) return;
|
|
76983
76995
|
const A = i.getState();
|
|
76984
|
-
A.isPointerSuspended || S === null && A.hover.primary === null || A.setHoverState(S ??
|
|
76996
|
+
A.isPointerSuspended || S === null && A.hover.primary === null || A.setHoverState(S ?? Ar);
|
|
76985
76997
|
}, f = () => {
|
|
76986
76998
|
if (l = null, c === null) return;
|
|
76987
76999
|
const S = r.getState();
|
|
@@ -77050,7 +77062,7 @@ var oZe = "observation-menu-trigger_trigger__7alwr61", iZe = {
|
|
|
77050
77062
|
we(() => (a.getState().setPointerSuspended(h), () => a.getState().setPointerSuspended(!1)), [a, h]), we(() => {
|
|
77051
77063
|
if (!s || !l) return;
|
|
77052
77064
|
const p = a.getState();
|
|
77053
|
-
p.setHoverState(
|
|
77065
|
+
p.setHoverState(Ar), p.setTooltipAnchor(null);
|
|
77054
77066
|
}, [
|
|
77055
77067
|
a,
|
|
77056
77068
|
s,
|
|
@@ -78394,7 +78406,7 @@ var zet = "section_chevron__141oj688", kn = ({ title: e, layout: t = "fixed", pr
|
|
|
78394
78406
|
}, Stt = 0.1, wtt = 20, pst = ({ title: e, preview: t }) => {
|
|
78395
78407
|
const n = nn(), r = vn(n), o = Ge(), { NumberField: i, TextField: a } = rn();
|
|
78396
78408
|
if (!r || r.coordSystem.type === "polar") return null;
|
|
78397
|
-
const s = _B(r.spec.layers), l = e ?? o("editor.annotationsPanel.goalSection.title"), c =
|
|
78409
|
+
const s = _B(r.spec.layers), l = e ?? o("editor.annotationsPanel.goalSection.title"), c = pr(s?.mapping.y), u = typeof c == "number" ? c : null, d = (p) => {
|
|
78398
78410
|
const g = new oTe({
|
|
78399
78411
|
showGoalLine: p,
|
|
78400
78412
|
value: Ttt(r),
|
|
@@ -80893,7 +80905,7 @@ export {
|
|
|
80893
80905
|
rce as getStrokeWidth,
|
|
80894
80906
|
oce as getTileRectBounds,
|
|
80895
80907
|
St as getX,
|
|
80896
|
-
|
|
80908
|
+
hr as getXMax,
|
|
80897
80909
|
Xr as getXMin,
|
|
80898
80910
|
bt as getY,
|
|
80899
80911
|
In as getYMax,
|