@genome-spy/core 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +334 -321
- package/dist/index.js +25 -25
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ var W = (e, t, n) => (hl(e, t, "read from private field"), n ? n.call(e) : t.get
|
|
|
16
16
|
return W(e, t, r);
|
|
17
17
|
}
|
|
18
18
|
}), ee = (e, t, n) => (hl(e, t, "access private method"), n);
|
|
19
|
-
function
|
|
19
|
+
function Zr(e, t, n) {
|
|
20
20
|
return e.fields = t || [], e.fname = n, e;
|
|
21
21
|
}
|
|
22
22
|
function wE(e) {
|
|
@@ -62,14 +62,14 @@ function EE(e) {
|
|
|
62
62
|
}
|
|
63
63
|
function gf(e, t, n) {
|
|
64
64
|
const r = EE(e);
|
|
65
|
-
return e = r.length === 1 ? r[0] : e,
|
|
65
|
+
return e = r.length === 1 ? r[0] : e, Zr((n && n.get || xE)(r), [e], t || e);
|
|
66
66
|
}
|
|
67
67
|
gf("id");
|
|
68
|
-
const pf =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
const pf = Zr((e) => e, [], "identity");
|
|
69
|
+
Zr(() => 0, [], "zero");
|
|
70
|
+
Zr(() => 1, [], "one");
|
|
71
|
+
Zr(() => !0, [], "true");
|
|
72
|
+
Zr(() => !1, [], "false");
|
|
73
73
|
var tn = Array.isArray;
|
|
74
74
|
function yn(e) {
|
|
75
75
|
return e === Object(e);
|
|
@@ -128,7 +128,7 @@ function Qb(e, t, n) {
|
|
|
128
128
|
const r = [], i = [], a = {}, o = n.comparator || BE;
|
|
129
129
|
return Dh(e).forEach((s, c) => {
|
|
130
130
|
s != null && (r.push(t[c] === NE ? -1 : 1), i.push(s = Mt(s) ? s : gf(s, null, n)), (Pb(s) || []).forEach((u) => a[u] = 1));
|
|
131
|
-
}), i.length === 0 ? null :
|
|
131
|
+
}), i.length === 0 ? null : Zr(o(i, r), Object.keys(a));
|
|
132
132
|
}
|
|
133
133
|
const Vb = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, (e = e instanceof Date ? +e : e) !== e && t === t ? -1 : t !== t && e === e ? 1 : 0), BE = (e, t) => e.length === 1 ? FE(e[0], t[0]) : kE(e, t, e.length), FE = (e, t) => function(n, r) {
|
|
134
134
|
return Vb(e(n), e(r)) * t;
|
|
@@ -150,7 +150,7 @@ function Z0(e) {
|
|
|
150
150
|
return e;
|
|
151
151
|
}
|
|
152
152
|
const zE = Object.prototype.hasOwnProperty;
|
|
153
|
-
function
|
|
153
|
+
function hi(e, t) {
|
|
154
154
|
return zE.call(e, t);
|
|
155
155
|
}
|
|
156
156
|
function bf(e) {
|
|
@@ -540,7 +540,7 @@ function a3(e, t) {
|
|
|
540
540
|
}
|
|
541
541
|
return [n, r];
|
|
542
542
|
}
|
|
543
|
-
class
|
|
543
|
+
class Ti extends Map {
|
|
544
544
|
constructor(t, n = u3) {
|
|
545
545
|
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), t != null)
|
|
546
546
|
for (const [r, i] of t)
|
|
@@ -587,7 +587,7 @@ function Kb(e, t, n, r) {
|
|
|
587
587
|
return function i(a, o) {
|
|
588
588
|
if (o >= r.length)
|
|
589
589
|
return n(a);
|
|
590
|
-
const s = new
|
|
590
|
+
const s = new Ti(), c = r[o++];
|
|
591
591
|
let u = -1;
|
|
592
592
|
for (const f of a) {
|
|
593
593
|
const l = c(f, ++u, a), h = s.get(l);
|
|
@@ -621,7 +621,7 @@ function Jb(e, t, n) {
|
|
|
621
621
|
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / Math.pow(10, i);
|
|
622
622
|
return i >= 0 ? (a >= Mh ? 10 : a >= Th ? 5 : a >= Nh ? 2 : 1) * Math.pow(10, i) : -Math.pow(10, -i) / (a >= Mh ? 10 : a >= Th ? 5 : a >= Nh ? 2 : 1);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Ni(e, t, n) {
|
|
625
625
|
var r = Math.abs(t - e) / Math.max(0, n), i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), a = r / i;
|
|
626
626
|
return a >= Mh ? i *= 10 : a >= Th ? i *= 5 : a >= Nh && (i *= 2), t < e ? -i : i;
|
|
627
627
|
}
|
|
@@ -898,7 +898,7 @@ Cc.every = function(e) {
|
|
|
898
898
|
};
|
|
899
899
|
const q0 = Cc;
|
|
900
900
|
Cc.range;
|
|
901
|
-
const ar = 1e3, Qt = ar * 60, or = Qt * 60,
|
|
901
|
+
const ar = 1e3, Qt = ar * 60, or = Qt * 60, Bi = or * 24, X0 = Bi * 7, op = Bi * 30, yl = Bi * 365;
|
|
902
902
|
var iy = $e(function(e) {
|
|
903
903
|
e.setTime(e - e.getMilliseconds());
|
|
904
904
|
}, function(e, t) {
|
|
@@ -935,10 +935,10 @@ oy.range;
|
|
|
935
935
|
var sy = $e(
|
|
936
936
|
(e) => e.setHours(0, 0, 0, 0),
|
|
937
937
|
(e, t) => e.setDate(e.getDate() + t),
|
|
938
|
-
(e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Qt) /
|
|
938
|
+
(e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Qt) / Bi,
|
|
939
939
|
(e) => e.getDate() - 1
|
|
940
940
|
);
|
|
941
|
-
const
|
|
941
|
+
const Ci = sy;
|
|
942
942
|
sy.range;
|
|
943
943
|
function Yi(e) {
|
|
944
944
|
return $e(function(t) {
|
|
@@ -1013,11 +1013,11 @@ var ly = $e(function(e) {
|
|
|
1013
1013
|
}, function(e, t) {
|
|
1014
1014
|
e.setUTCDate(e.getUTCDate() + t);
|
|
1015
1015
|
}, function(e, t) {
|
|
1016
|
-
return (t - e) /
|
|
1016
|
+
return (t - e) / Bi;
|
|
1017
1017
|
}, function(e) {
|
|
1018
1018
|
return e.getUTCDate() - 1;
|
|
1019
1019
|
});
|
|
1020
|
-
const
|
|
1020
|
+
const Si = ly;
|
|
1021
1021
|
ly.range;
|
|
1022
1022
|
function Wi(e) {
|
|
1023
1023
|
return $e(function(t) {
|
|
@@ -1079,8 +1079,8 @@ function dy(e, t, n, r, i, a) {
|
|
|
1079
1079
|
[i, 3, 3 * or],
|
|
1080
1080
|
[i, 6, 6 * or],
|
|
1081
1081
|
[i, 12, 12 * or],
|
|
1082
|
-
[r, 1,
|
|
1083
|
-
[r, 2, 2 *
|
|
1082
|
+
[r, 1, Bi],
|
|
1083
|
+
[r, 2, 2 * Bi],
|
|
1084
1084
|
[n, 1, X0],
|
|
1085
1085
|
[t, 1, op],
|
|
1086
1086
|
[t, 3, 3 * op],
|
|
@@ -1095,24 +1095,24 @@ function dy(e, t, n, r, i, a) {
|
|
|
1095
1095
|
function c(u, f, l) {
|
|
1096
1096
|
const h = Math.abs(f - u) / l, d = wf(([, , x]) => x).right(o, h);
|
|
1097
1097
|
if (d === o.length)
|
|
1098
|
-
return e.every(
|
|
1098
|
+
return e.every(Ni(u / yl, f / yl, l));
|
|
1099
1099
|
if (d === 0)
|
|
1100
|
-
return q0.every(Math.max(
|
|
1100
|
+
return q0.every(Math.max(Ni(u, f, l), 1));
|
|
1101
1101
|
const [p, b] = o[h / o[d - 1][2] < o[d][2] / h ? d - 1 : d];
|
|
1102
1102
|
return p.every(b);
|
|
1103
1103
|
}
|
|
1104
1104
|
return [s, c];
|
|
1105
1105
|
}
|
|
1106
|
-
const [D3, I3] = dy(Pr, _c, Ks,
|
|
1106
|
+
const [D3, I3] = dy(Pr, _c, Ks, Si, td, ed), [_3, M3] = dy(Or, Dc, Xs, Ci, J0, K0), as = "year", os = "quarter", ss = "month", us = "week", cs = "date", Af = "day", rd = "dayofyear", fs = "hours", ls = "minutes", hs = "seconds", vf = "milliseconds", T3 = [as, os, ss, us, cs, Af, rd, fs, ls, hs, vf];
|
|
1107
1107
|
T3.reduce((e, t, n) => (e[t] = 1 + n, e), {});
|
|
1108
1108
|
const N3 = {
|
|
1109
1109
|
[as]: Or,
|
|
1110
1110
|
[os]: Dc.every(3),
|
|
1111
1111
|
[ss]: Dc,
|
|
1112
1112
|
[us]: Xs,
|
|
1113
|
-
[cs]:
|
|
1114
|
-
[Af]:
|
|
1115
|
-
[rd]:
|
|
1113
|
+
[cs]: Ci,
|
|
1114
|
+
[Af]: Ci,
|
|
1115
|
+
[rd]: Ci,
|
|
1116
1116
|
[fs]: J0,
|
|
1117
1117
|
[ls]: K0,
|
|
1118
1118
|
[hs]: Ir,
|
|
@@ -1122,9 +1122,9 @@ const N3 = {
|
|
|
1122
1122
|
[os]: _c.every(3),
|
|
1123
1123
|
[ss]: _c,
|
|
1124
1124
|
[us]: Ks,
|
|
1125
|
-
[cs]:
|
|
1126
|
-
[Af]:
|
|
1127
|
-
[rd]:
|
|
1125
|
+
[cs]: Si,
|
|
1126
|
+
[Af]: Si,
|
|
1127
|
+
[rd]: Si,
|
|
1128
1128
|
[fs]: td,
|
|
1129
1129
|
[ls]: ed,
|
|
1130
1130
|
[hs]: Ir,
|
|
@@ -1189,9 +1189,9 @@ function gy(e) {
|
|
|
1189
1189
|
"%": gp
|
|
1190
1190
|
}, C = {
|
|
1191
1191
|
a: na,
|
|
1192
|
-
A:
|
|
1192
|
+
A: ni,
|
|
1193
1193
|
b: ra,
|
|
1194
|
-
B:
|
|
1194
|
+
B: ri,
|
|
1195
1195
|
c: null,
|
|
1196
1196
|
d: dp,
|
|
1197
1197
|
e: dp,
|
|
@@ -1257,9 +1257,9 @@ function gy(e) {
|
|
|
1257
1257
|
_.x = B(n, _), _.X = B(r, _), _.c = B(t, _), C.x = B(n, C), C.X = B(r, C), C.c = B(t, C);
|
|
1258
1258
|
function B(Q, te) {
|
|
1259
1259
|
return function(ie) {
|
|
1260
|
-
var P = [], ze = -1, ae = 0, tt = Q.length, Ye, Bt,
|
|
1260
|
+
var P = [], ze = -1, ae = 0, tt = Q.length, Ye, Bt, ii;
|
|
1261
1261
|
for (ie instanceof Date || (ie = /* @__PURE__ */ new Date(+ie)); ++ze < tt; )
|
|
1262
|
-
Q.charCodeAt(ze) === 37 && (P.push(Q.slice(ae, ze)), (Bt = sp[Ye = Q.charAt(++ze)]) != null ? Ye = Q.charAt(++ze) : Bt = Ye === "e" ? " " : "0", (
|
|
1262
|
+
Q.charCodeAt(ze) === 37 && (P.push(Q.slice(ae, ze)), (Bt = sp[Ye = Q.charAt(++ze)]) != null ? Ye = Q.charAt(++ze) : Bt = Ye === "e" ? " " : "0", (ii = te[Ye]) && (Ye = ii(ie, Bt)), P.push(Ye), ae = ze + 1);
|
|
1263
1263
|
return P.push(Q.slice(ae, ze)), P.join("");
|
|
1264
1264
|
};
|
|
1265
1265
|
}
|
|
@@ -1275,7 +1275,7 @@ function gy(e) {
|
|
|
1275
1275
|
if (te && !("Z" in P) && (P.Z = 0), "p" in P && (P.H = P.H % 12 + P.p * 12), P.m === void 0 && (P.m = "q" in P ? P.q : 0), "V" in P) {
|
|
1276
1276
|
if (P.V < 1 || P.V > 53)
|
|
1277
1277
|
return null;
|
|
1278
|
-
"w" in P || (P.w = 1), "Z" in P ? (ae = xl(Io(P.y, 0, 1)), tt = ae.getUTCDay(), ae = tt > 4 || tt === 0 ? Ic.ceil(ae) : Ic(ae), ae =
|
|
1278
|
+
"w" in P || (P.w = 1), "Z" in P ? (ae = xl(Io(P.y, 0, 1)), tt = ae.getUTCDay(), ae = tt > 4 || tt === 0 ? Ic.ceil(ae) : Ic(ae), ae = Si.offset(ae, (P.V - 1) * 7), P.y = ae.getUTCFullYear(), P.m = ae.getUTCMonth(), P.d = ae.getUTCDate() + (P.w + 6) % 7) : (ae = wl(Io(P.y, 0, 1)), tt = ae.getDay(), ae = tt > 4 || tt === 0 ? Sc.ceil(ae) : Sc(ae), ae = Ci.offset(ae, (P.V - 1) * 7), P.y = ae.getFullYear(), P.m = ae.getMonth(), P.d = ae.getDate() + (P.w + 6) % 7);
|
|
1279
1279
|
} else
|
|
1280
1280
|
("W" in P || "U" in P) && ("w" in P || (P.w = "u" in P ? P.u % 7 : "W" in P ? 1 : 0), tt = "Z" in P ? xl(Io(P.y, 0, 1)).getUTCDay() : wl(Io(P.y, 0, 1)).getDay(), P.m = 0, P.d = "W" in P ? (P.w + 6) % 7 + P.W * 7 - (tt + 5) % 7 : P.w + P.U * 7 - (tt + 6) % 7);
|
|
1281
1281
|
return "Z" in P ? (P.H += P.Z / 100 | 0, P.M += P.Z % 100, xl(P)) : wl(P);
|
|
@@ -1343,13 +1343,13 @@ function gy(e) {
|
|
|
1343
1343
|
function na(Q) {
|
|
1344
1344
|
return o[Q.getUTCDay()];
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function ni(Q) {
|
|
1347
1347
|
return a[Q.getUTCDay()];
|
|
1348
1348
|
}
|
|
1349
1349
|
function ra(Q) {
|
|
1350
1350
|
return c[Q.getUTCMonth()];
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function ri(Q) {
|
|
1353
1353
|
return s[Q.getUTCMonth()];
|
|
1354
1354
|
}
|
|
1355
1355
|
function ia(Q) {
|
|
@@ -1489,7 +1489,7 @@ function tC(e, t) {
|
|
|
1489
1489
|
return de(e.getHours() % 12 || 12, t, 2);
|
|
1490
1490
|
}
|
|
1491
1491
|
function nC(e, t) {
|
|
1492
|
-
return de(1 +
|
|
1492
|
+
return de(1 + Ci.count(Or(e), e), t, 3);
|
|
1493
1493
|
}
|
|
1494
1494
|
function py(e, t) {
|
|
1495
1495
|
return de(e.getMilliseconds(), t, 3);
|
|
@@ -1553,7 +1553,7 @@ function yC(e, t) {
|
|
|
1553
1553
|
return de(e.getUTCHours() % 12 || 12, t, 2);
|
|
1554
1554
|
}
|
|
1555
1555
|
function wC(e, t) {
|
|
1556
|
-
return de(1 +
|
|
1556
|
+
return de(1 + Si.count(Pr(e), e), t, 3);
|
|
1557
1557
|
}
|
|
1558
1558
|
function by(e, t) {
|
|
1559
1559
|
return de(e.getUTCMilliseconds(), t, 3);
|
|
@@ -1683,7 +1683,7 @@ function RC(e) {
|
|
|
1683
1683
|
},
|
|
1684
1684
|
formatSpan(r, i, a, o) {
|
|
1685
1685
|
o = Rr(o ?? ",f");
|
|
1686
|
-
const s =
|
|
1686
|
+
const s = Ni(r, i, a), c = Math.max(Math.abs(r), Math.abs(i));
|
|
1687
1687
|
let u;
|
|
1688
1688
|
if (o.precision == null)
|
|
1689
1689
|
switch (o.type) {
|
|
@@ -1854,12 +1854,12 @@ const Al = {
|
|
|
1854
1854
|
topojson: Ey
|
|
1855
1855
|
};
|
|
1856
1856
|
function Cy(e, t) {
|
|
1857
|
-
return arguments.length > 1 ? (Al[e] = t, this) :
|
|
1857
|
+
return arguments.length > 1 ? (Al[e] = t, this) : hi(Al, e) ? Al[e] : null;
|
|
1858
1858
|
}
|
|
1859
1859
|
function Sy(e, t, n, r) {
|
|
1860
1860
|
t = t || {};
|
|
1861
1861
|
const i = Cy(t.type || "json");
|
|
1862
|
-
return i || Re("Unknown data format type: " + t.type), e = i(e, t), t.parse && u4(e, t.parse, n, r),
|
|
1862
|
+
return i || Re("Unknown data format type: " + t.type), e = i(e, t), t.parse && u4(e, t.parse, n, r), hi(e, "columns") && delete e.columns, e;
|
|
1863
1863
|
}
|
|
1864
1864
|
function u4(e, t, n, r) {
|
|
1865
1865
|
if (!e.length)
|
|
@@ -1893,7 +1893,7 @@ const Ef = VC(
|
|
|
1893
1893
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1894
1894
|
*/
|
|
1895
1895
|
var vl;
|
|
1896
|
-
const Mc = window, Ga = Mc.trustedTypes, Ap = Ga ? Ga.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, vr = `lit$${(Math.random() + "").slice(9)}$`, Dy = "?" + vr, c4 = `<${Dy}>`, Ha = document, ds = (e = "") => Ha.createComment(e), gs = (e) => e === null || typeof e != "object" && typeof e != "function", Iy = Array.isArray, f4 = (e) => Iy(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", To = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, vp = /-->/g, Ep = />/g,
|
|
1896
|
+
const Mc = window, Ga = Mc.trustedTypes, Ap = Ga ? Ga.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, vr = `lit$${(Math.random() + "").slice(9)}$`, Dy = "?" + vr, c4 = `<${Dy}>`, Ha = document, ds = (e = "") => Ha.createComment(e), gs = (e) => e === null || typeof e != "object" && typeof e != "function", Iy = Array.isArray, f4 = (e) => Iy(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", To = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, vp = /-->/g, Ep = />/g, ai = RegExp(`>|[
|
|
1897
1897
|
\f\r](?:([^\\s"'>=/]+)([
|
|
1898
1898
|
\f\r]*=[
|
|
1899
1899
|
\f\r]*(?:[^
|
|
@@ -1904,8 +1904,8 @@ const Mc = window, Ga = Mc.trustedTypes, Ap = Ga ? Ga.createPolicy("lit-html", {
|
|
|
1904
1904
|
const u = e[c];
|
|
1905
1905
|
let f, l, h = -1, d = 0;
|
|
1906
1906
|
for (; d < u.length && (o.lastIndex = d, l = o.exec(u), l !== null); )
|
|
1907
|
-
d = o.lastIndex, o === To ? l[1] === "!--" ? o = vp : l[1] !== void 0 ? o = Ep : l[2] !== void 0 ? (_y.test(l[2]) && (i = RegExp("</" + l[2], "g")), o =
|
|
1908
|
-
const p = o ===
|
|
1907
|
+
d = o.lastIndex, o === To ? l[1] === "!--" ? o = vp : l[1] !== void 0 ? o = Ep : l[2] !== void 0 ? (_y.test(l[2]) && (i = RegExp("</" + l[2], "g")), o = ai) : l[3] !== void 0 && (o = ai) : o === ai ? l[0] === ">" ? (o = i ?? To, h = -1) : l[1] === void 0 ? h = -2 : (h = o.lastIndex - l[2].length, f = l[1], o = l[3] === void 0 ? ai : l[3] === '"' ? Sp : Cp) : o === Sp || o === Cp ? o = ai : o === vp || o === Ep ? o = To : (o = ai, i = void 0);
|
|
1908
|
+
const p = o === ai && e[c + 1].startsWith("/>") ? " " : "";
|
|
1909
1909
|
a += o === To ? u + c4 : h >= 0 ? (r.push(f), u.slice(0, h) + "$lit$" + u.slice(h) + vr + p) : u + vr + (h === -2 ? (r.push(void 0), c) : p);
|
|
1910
1910
|
}
|
|
1911
1911
|
const s = a + (e[n] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
@@ -2286,12 +2286,12 @@ function k4(e) {
|
|
|
2286
2286
|
return [];
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
|
-
var jn, V, R, ft, be, Sf = 1, eu = 2,
|
|
2289
|
+
var jn, V, R, ft, be, Sf = 1, eu = 2, Fi = 3, Yr = 4, Df = 5, qi = 6, vt = 7, tu = 8, L4 = 9;
|
|
2290
2290
|
jn = {};
|
|
2291
2291
|
jn[Sf] = "Boolean";
|
|
2292
2292
|
jn[eu] = "<end>";
|
|
2293
|
-
jn[
|
|
2294
|
-
jn[
|
|
2293
|
+
jn[Fi] = "Identifier";
|
|
2294
|
+
jn[Yr] = "Keyword";
|
|
2295
2295
|
jn[Df] = "Null";
|
|
2296
2296
|
jn[qi] = "Numeric";
|
|
2297
2297
|
jn[vt] = "Punctuator";
|
|
@@ -2408,7 +2408,7 @@ function rS() {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
function iS() {
|
|
2410
2410
|
var e, t, n;
|
|
2411
|
-
return e = R, t = V.charCodeAt(R) === 92 ? Fy() : rS(), t.length === 1 ? n =
|
|
2411
|
+
return e = R, t = V.charCodeAt(R) === 92 ? Fy() : rS(), t.length === 1 ? n = Fi : tS.hasOwnProperty(t) ? n = Yr : t === "null" ? n = Df : t === "true" || t === "false" ? n = Sf : n = Fi, {
|
|
2412
2412
|
type: n,
|
|
2413
2413
|
value: t,
|
|
2414
2414
|
start: e,
|
|
@@ -2662,7 +2662,7 @@ function lS() {
|
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
function hS(e) {
|
|
2665
|
-
return e.type ===
|
|
2665
|
+
return e.type === Fi || e.type === Yr || e.type === Sf || e.type === Df;
|
|
2666
2666
|
}
|
|
2667
2667
|
function ky() {
|
|
2668
2668
|
if (By(), R >= ft)
|
|
@@ -2727,7 +2727,7 @@ function le(e, t) {
|
|
|
2727
2727
|
throw n = new Error(i), n.index = R, n.description = i, n;
|
|
2728
2728
|
}
|
|
2729
2729
|
function _f(e) {
|
|
2730
|
-
e.type === eu && le(e, X4), e.type === qi && le(e, Z4), e.type === tu && le(e, Y4), e.type ===
|
|
2730
|
+
e.type === eu && le(e, X4), e.type === qi && le(e, Z4), e.type === tu && le(e, Y4), e.type === Fi && le(e, W4), e.type === Yr && le(e, q4), le(e, Xe, e.value);
|
|
2731
2731
|
}
|
|
2732
2732
|
function lt(e) {
|
|
2733
2733
|
const t = Et();
|
|
@@ -2737,12 +2737,12 @@ function Ie(e) {
|
|
|
2737
2737
|
return be.type === vt && be.value === e;
|
|
2738
2738
|
}
|
|
2739
2739
|
function Sl(e) {
|
|
2740
|
-
return be.type ===
|
|
2740
|
+
return be.type === Yr && be.value === e;
|
|
2741
2741
|
}
|
|
2742
2742
|
function yS() {
|
|
2743
2743
|
const e = [];
|
|
2744
2744
|
for (R = be.start, lt("["); !Ie("]"); )
|
|
2745
|
-
Ie(",") ? (Et(), e.push(null)) : (e.push(
|
|
2745
|
+
Ie(",") ? (Et(), e.push(null)) : (e.push(ki()), Ie("]") || lt(","));
|
|
2746
2746
|
return Et(), dS(e);
|
|
2747
2747
|
}
|
|
2748
2748
|
function Fp() {
|
|
@@ -2752,12 +2752,12 @@ function Fp() {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
function wS() {
|
|
2754
2754
|
var e, t, n, r;
|
|
2755
|
-
if (R = be.start, e = be, e.type ===
|
|
2756
|
-
return n = Fp(), lt(":"), r =
|
|
2755
|
+
if (R = be.start, e = be, e.type === Fi)
|
|
2756
|
+
return n = Fp(), lt(":"), r = ki(), Bp("init", n, r);
|
|
2757
2757
|
if (e.type === eu || e.type === vt)
|
|
2758
2758
|
_f(e);
|
|
2759
2759
|
else
|
|
2760
|
-
return t = Fp(), lt(":"), r =
|
|
2760
|
+
return t = Fp(), lt(":"), r = ki(), Bp("init", t, r);
|
|
2761
2761
|
}
|
|
2762
2762
|
function xS() {
|
|
2763
2763
|
var e = [], t, n, r, i = {}, a = String;
|
|
@@ -2781,12 +2781,12 @@ function ES() {
|
|
|
2781
2781
|
return yS();
|
|
2782
2782
|
if (Ie("{"))
|
|
2783
2783
|
return xS();
|
|
2784
|
-
if (e = be.type, R = be.start, e ===
|
|
2784
|
+
if (e = be.type, R = be.start, e === Fi || vS[be.value])
|
|
2785
2785
|
n = cd(Et().value);
|
|
2786
2786
|
else if (e === tu || e === qi)
|
|
2787
2787
|
be.octal && le(be, Ny), n = Oo(Et());
|
|
2788
2788
|
else {
|
|
2789
|
-
if (e ===
|
|
2789
|
+
if (e === Yr)
|
|
2790
2790
|
throw new Error(ms);
|
|
2791
2791
|
e === Sf ? (t = Et(), t.value = t.value === "true", n = Oo(t)) : e === Df ? (t = Et(), t.value = null, n = Oo(t)) : Ie("/") || Ie("/=") ? (n = Oo(lS()), Ly()) : _f(Et());
|
|
2792
2792
|
}
|
|
@@ -2795,7 +2795,7 @@ function ES() {
|
|
|
2795
2795
|
function CS() {
|
|
2796
2796
|
const e = [];
|
|
2797
2797
|
if (lt("("), !Ie(")"))
|
|
2798
|
-
for (; R < ft && (e.push(
|
|
2798
|
+
for (; R < ft && (e.push(ki()), !Ie(")")); )
|
|
2799
2799
|
lt(",");
|
|
2800
2800
|
return lt(")"), e;
|
|
2801
2801
|
}
|
|
@@ -2833,7 +2833,7 @@ function kp() {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
function oc() {
|
|
2835
2835
|
var e, t;
|
|
2836
|
-
if (be.type !== vt && be.type !==
|
|
2836
|
+
if (be.type !== vt && be.type !== Yr)
|
|
2837
2837
|
t = kp();
|
|
2838
2838
|
else {
|
|
2839
2839
|
if (Ie("++") || Ie("--"))
|
|
@@ -2850,7 +2850,7 @@ function oc() {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
function Lp(e) {
|
|
2852
2852
|
let t = 0;
|
|
2853
|
-
if (e.type !== vt && e.type !==
|
|
2853
|
+
if (e.type !== vt && e.type !== Yr)
|
|
2854
2854
|
return 0;
|
|
2855
2855
|
switch (e.value) {
|
|
2856
2856
|
case "||":
|
|
@@ -2912,12 +2912,12 @@ function MS() {
|
|
|
2912
2912
|
t.pop(), n = Tp(a[u - 1].value, a[u - 2], n), u -= 2;
|
|
2913
2913
|
return n;
|
|
2914
2914
|
}
|
|
2915
|
-
function
|
|
2915
|
+
function ki() {
|
|
2916
2916
|
var e, t, n;
|
|
2917
|
-
return e = MS(), Ie("?") && (Et(), t =
|
|
2917
|
+
return e = MS(), Ie("?") && (Et(), t = ki(), lt(":"), n = ki(), e = pS(e, t, n)), e;
|
|
2918
2918
|
}
|
|
2919
2919
|
function fd() {
|
|
2920
|
-
const e =
|
|
2920
|
+
const e = ki();
|
|
2921
2921
|
if (Ie(","))
|
|
2922
2922
|
throw new Error(ms);
|
|
2923
2923
|
return e;
|
|
@@ -3039,7 +3039,7 @@ function kS(e) {
|
|
|
3039
3039
|
Literal: (p) => p.raw,
|
|
3040
3040
|
Identifier: (p) => {
|
|
3041
3041
|
const b = p.name;
|
|
3042
|
-
return f > 0 ? b :
|
|
3042
|
+
return f > 0 ? b : hi(n, b) ? Re("Illegal identifier: " + b) : hi(r, b) ? r[b] : hi(t, b) ? b : (c[b] = 1, s(b));
|
|
3043
3043
|
},
|
|
3044
3044
|
MemberExpression: (p) => {
|
|
3045
3045
|
const b = !p.computed, x = l(p.object);
|
|
@@ -3049,7 +3049,7 @@ function kS(e) {
|
|
|
3049
3049
|
},
|
|
3050
3050
|
CallExpression: (p) => {
|
|
3051
3051
|
p.callee.type !== "Identifier" && Re("Illegal callee type: " + p.callee.type);
|
|
3052
|
-
const b = p.callee.name, x = p.arguments, A =
|
|
3052
|
+
const b = p.callee.name, x = p.arguments, A = hi(i, b) && i[b];
|
|
3053
3053
|
return A || Re("Unrecognized function: " + b), Mt(A) ? A(x) : A + "(" + x.map(l).join(",") + ")";
|
|
3054
3054
|
},
|
|
3055
3055
|
ArrayExpression: (p) => "[" + p.elements.map(l).join(",") + "]",
|
|
@@ -3108,7 +3108,7 @@ function Gn(e, t) {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
return this;
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function Wr(e, t) {
|
|
3112
3112
|
switch (arguments.length) {
|
|
3113
3113
|
case 0:
|
|
3114
3114
|
break;
|
|
@@ -3125,7 +3125,7 @@ function Yr(e, t) {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
const zh = Symbol("implicit");
|
|
3127
3127
|
function hd() {
|
|
3128
|
-
var e = new
|
|
3128
|
+
var e = new Ti(), t = [], n = [], r = zh;
|
|
3129
3129
|
function i(a) {
|
|
3130
3130
|
let o = e.get(a);
|
|
3131
3131
|
if (o === void 0) {
|
|
@@ -3138,7 +3138,7 @@ function hd() {
|
|
|
3138
3138
|
return i.domain = function(a) {
|
|
3139
3139
|
if (!arguments.length)
|
|
3140
3140
|
return t.slice();
|
|
3141
|
-
t = [], e = new
|
|
3141
|
+
t = [], e = new Ti();
|
|
3142
3142
|
for (const o of a)
|
|
3143
3143
|
e.has(o) || e.set(o, t.push(o) - 1);
|
|
3144
3144
|
return i;
|
|
@@ -3159,9 +3159,9 @@ function ru(e, t) {
|
|
|
3159
3159
|
n[r] = t[r];
|
|
3160
3160
|
return n;
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function qr() {
|
|
3163
3163
|
}
|
|
3164
|
-
var
|
|
3164
|
+
var Li = 0.7, Va = 1 / Li, Ea = "\\s*([+-]?\\d+)\\s*", ys = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Ln = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", LS = /^#([0-9a-f]{3,8})$/, zS = new RegExp(`^rgb\\(${Ea},${Ea},${Ea}\\)$`), RS = new RegExp(`^rgb\\(${Ln},${Ln},${Ln}\\)$`), OS = new RegExp(`^rgba\\(${Ea},${Ea},${Ea},${ys}\\)$`), PS = new RegExp(`^rgba\\(${Ln},${Ln},${Ln},${ys}\\)$`), US = new RegExp(`^hsl\\(${ys},${Ln},${Ln}\\)$`), jS = new RegExp(`^hsla\\(${ys},${Ln},${Ln},${ys}\\)$`), zp = {
|
|
3165
3165
|
aliceblue: 15792383,
|
|
3166
3166
|
antiquewhite: 16444375,
|
|
3167
3167
|
aqua: 65535,
|
|
@@ -3311,7 +3311,7 @@ var ki = 0.7, Va = 1 / ki, Ea = "\\s*([+-]?\\d+)\\s*", ys = "\\s*([+-]?(?:\\d*\\
|
|
|
3311
3311
|
yellow: 16776960,
|
|
3312
3312
|
yellowgreen: 10145074
|
|
3313
3313
|
};
|
|
3314
|
-
ao(
|
|
3314
|
+
ao(qr, Ur, {
|
|
3315
3315
|
copy(e) {
|
|
3316
3316
|
return Object.assign(new this.constructor(), this, e);
|
|
3317
3317
|
},
|
|
@@ -3349,7 +3349,7 @@ function Ru(e, t, n, r) {
|
|
|
3349
3349
|
return r <= 0 && (e = t = n = NaN), new Ke(e, t, n, r);
|
|
3350
3350
|
}
|
|
3351
3351
|
function dd(e) {
|
|
3352
|
-
return e instanceof
|
|
3352
|
+
return e instanceof qr || (e = Ur(e)), e ? (e = e.rgb(), new Ke(e.r, e.g, e.b, e.opacity)) : new Ke();
|
|
3353
3353
|
}
|
|
3354
3354
|
function Bc(e, t, n, r) {
|
|
3355
3355
|
return arguments.length === 1 ? dd(e) : new Ke(e, t, n, r ?? 1);
|
|
@@ -3357,18 +3357,18 @@ function Bc(e, t, n, r) {
|
|
|
3357
3357
|
function Ke(e, t, n, r) {
|
|
3358
3358
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
3359
3359
|
}
|
|
3360
|
-
ao(Ke, Bc, ru(
|
|
3360
|
+
ao(Ke, Bc, ru(qr, {
|
|
3361
3361
|
brighter(e) {
|
|
3362
3362
|
return e = e == null ? Va : Math.pow(Va, e), new Ke(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
3363
3363
|
},
|
|
3364
3364
|
darker(e) {
|
|
3365
|
-
return e = e == null ?
|
|
3365
|
+
return e = e == null ? Li : Math.pow(Li, e), new Ke(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
3366
3366
|
},
|
|
3367
3367
|
rgb() {
|
|
3368
3368
|
return this;
|
|
3369
3369
|
},
|
|
3370
3370
|
clamp() {
|
|
3371
|
-
return new Ke(
|
|
3371
|
+
return new Ke(Di(this.r), Di(this.g), Di(this.b), Fc(this.opacity));
|
|
3372
3372
|
},
|
|
3373
3373
|
displayable() {
|
|
3374
3374
|
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;
|
|
@@ -3381,23 +3381,23 @@ ao(Ke, Bc, ru(Wr, {
|
|
|
3381
3381
|
toString: jp
|
|
3382
3382
|
}));
|
|
3383
3383
|
function Up() {
|
|
3384
|
-
return `#${
|
|
3384
|
+
return `#${di(this.r)}${di(this.g)}${di(this.b)}`;
|
|
3385
3385
|
}
|
|
3386
3386
|
function QS() {
|
|
3387
|
-
return `#${
|
|
3387
|
+
return `#${di(this.r)}${di(this.g)}${di(this.b)}${di((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
3388
3388
|
}
|
|
3389
3389
|
function jp() {
|
|
3390
3390
|
const e = Fc(this.opacity);
|
|
3391
|
-
return `${e === 1 ? "rgb(" : "rgba("}${
|
|
3391
|
+
return `${e === 1 ? "rgb(" : "rgba("}${Di(this.r)}, ${Di(this.g)}, ${Di(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
3392
3392
|
}
|
|
3393
3393
|
function Fc(e) {
|
|
3394
3394
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function Di(e) {
|
|
3397
3397
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3400
|
-
return e =
|
|
3399
|
+
function di(e) {
|
|
3400
|
+
return e = Di(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
3401
3401
|
}
|
|
3402
3402
|
function Gp(e, t, n, r) {
|
|
3403
3403
|
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new hn(e, t, n, r);
|
|
@@ -3405,7 +3405,7 @@ function Gp(e, t, n, r) {
|
|
|
3405
3405
|
function zy(e) {
|
|
3406
3406
|
if (e instanceof hn)
|
|
3407
3407
|
return new hn(e.h, e.s, e.l, e.opacity);
|
|
3408
|
-
if (e instanceof
|
|
3408
|
+
if (e instanceof qr || (e = Ur(e)), !e)
|
|
3409
3409
|
return new hn();
|
|
3410
3410
|
if (e instanceof hn)
|
|
3411
3411
|
return e;
|
|
@@ -3419,12 +3419,12 @@ function Rh(e, t, n, r) {
|
|
|
3419
3419
|
function hn(e, t, n, r) {
|
|
3420
3420
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
3421
3421
|
}
|
|
3422
|
-
ao(hn, Rh, ru(
|
|
3422
|
+
ao(hn, Rh, ru(qr, {
|
|
3423
3423
|
brighter(e) {
|
|
3424
3424
|
return e = e == null ? Va : Math.pow(Va, e), new hn(this.h, this.s, this.l * e, this.opacity);
|
|
3425
3425
|
},
|
|
3426
3426
|
darker(e) {
|
|
3427
|
-
return e = e == null ?
|
|
3427
|
+
return e = e == null ? Li : Math.pow(Li, e), new hn(this.h, this.s, this.l * e, this.opacity);
|
|
3428
3428
|
},
|
|
3429
3429
|
rgb() {
|
|
3430
3430
|
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, i = 2 * n - r;
|
|
@@ -3471,7 +3471,7 @@ function Oh(e, t, n, r) {
|
|
|
3471
3471
|
function zn(e, t, n, r) {
|
|
3472
3472
|
this.l = +e, this.a = +t, this.b = +n, this.opacity = +r;
|
|
3473
3473
|
}
|
|
3474
|
-
ao(zn, Oh, ru(
|
|
3474
|
+
ao(zn, Oh, ru(qr, {
|
|
3475
3475
|
brighter(e) {
|
|
3476
3476
|
return new zn(this.l + kc * (e ?? 1), this.a, this.b, this.opacity);
|
|
3477
3477
|
},
|
|
@@ -3520,7 +3520,7 @@ function Vy(e) {
|
|
|
3520
3520
|
var t = e.h * Ry;
|
|
3521
3521
|
return new zn(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
|
|
3522
3522
|
}
|
|
3523
|
-
ao(sr, Ph, ru(
|
|
3523
|
+
ao(sr, Ph, ru(qr, {
|
|
3524
3524
|
brighter(e) {
|
|
3525
3525
|
return new sr(this.h, this.c, this.l + kc * (e ?? 1), this.opacity);
|
|
3526
3526
|
},
|
|
@@ -3533,24 +3533,24 @@ ao(sr, Ph, ru(Wr, {
|
|
|
3533
3533
|
}));
|
|
3534
3534
|
var Zy = -0.14861, gd = 1.78277, pd = -0.29227, Mf = -0.90649, ws = 1.97294, Qp = ws * Mf, Vp = ws * gd, Zp = gd * pd - Mf * Zy;
|
|
3535
3535
|
function YS(e) {
|
|
3536
|
-
if (e instanceof
|
|
3537
|
-
return new
|
|
3536
|
+
if (e instanceof Ii)
|
|
3537
|
+
return new Ii(e.h, e.s, e.l, e.opacity);
|
|
3538
3538
|
e instanceof Ke || (e = dd(e));
|
|
3539
3539
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = (Zp * r + Qp * t - Vp * n) / (Zp + Qp - Vp), a = r - i, o = (ws * (n - i) - pd * a) / Mf, s = Math.sqrt(o * o + a * a) / (ws * i * (1 - i)), c = s ? Math.atan2(o, a) * Oy - 120 : NaN;
|
|
3540
|
-
return new
|
|
3540
|
+
return new Ii(c < 0 ? c + 360 : c, s, i, e.opacity);
|
|
3541
3541
|
}
|
|
3542
3542
|
function Uh(e, t, n, r) {
|
|
3543
|
-
return arguments.length === 1 ? YS(e) : new
|
|
3543
|
+
return arguments.length === 1 ? YS(e) : new Ii(e, t, n, r ?? 1);
|
|
3544
3544
|
}
|
|
3545
|
-
function
|
|
3545
|
+
function Ii(e, t, n, r) {
|
|
3546
3546
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
3547
3547
|
}
|
|
3548
|
-
ao(
|
|
3548
|
+
ao(Ii, Uh, ru(qr, {
|
|
3549
3549
|
brighter(e) {
|
|
3550
|
-
return e = e == null ? Va : Math.pow(Va, e), new
|
|
3550
|
+
return e = e == null ? Va : Math.pow(Va, e), new Ii(this.h, this.s, this.l * e, this.opacity);
|
|
3551
3551
|
},
|
|
3552
3552
|
darker(e) {
|
|
3553
|
-
return e = e == null ?
|
|
3553
|
+
return e = e == null ? Li : Math.pow(Li, e), new Ii(this.h, this.s, this.l * e, this.opacity);
|
|
3554
3554
|
},
|
|
3555
3555
|
rgb() {
|
|
3556
3556
|
var e = isNaN(this.h) ? 0 : (this.h + 120) * Ry, t = +this.l, n = isNaN(this.s) ? 0 : this.s * t * (1 - t), r = Math.cos(e), i = Math.sin(e);
|
|
@@ -3643,7 +3643,7 @@ function JS(e, t) {
|
|
|
3643
3643
|
function $y(e, t) {
|
|
3644
3644
|
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = new Array(r), a = new Array(n), o;
|
|
3645
3645
|
for (o = 0; o < r; ++o)
|
|
3646
|
-
i[o] =
|
|
3646
|
+
i[o] = Xr(e[o], t[o]);
|
|
3647
3647
|
for (; o < n; ++o)
|
|
3648
3648
|
a[o] = t[o];
|
|
3649
3649
|
return function(s) {
|
|
@@ -3667,7 +3667,7 @@ function tw(e, t) {
|
|
|
3667
3667
|
var n = {}, r = {}, i;
|
|
3668
3668
|
(e === null || typeof e != "object") && (e = {}), (t === null || typeof t != "object") && (t = {});
|
|
3669
3669
|
for (i in t)
|
|
3670
|
-
i in e ? n[i] =
|
|
3670
|
+
i in e ? n[i] = Xr(e[i], t[i]) : r[i] = t[i];
|
|
3671
3671
|
return function(a) {
|
|
3672
3672
|
for (i in n)
|
|
3673
3673
|
r[i] = n[i](a);
|
|
@@ -3695,7 +3695,7 @@ function nw(e, t) {
|
|
|
3695
3695
|
return s.join("");
|
|
3696
3696
|
});
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function Xr(e, t) {
|
|
3699
3699
|
var n = typeof t, r;
|
|
3700
3700
|
return t == null || n === "boolean" ? Tf(t) : (n === "number" ? ln : n === "string" ? (r = Ur(t)) ? (t = r, jh) : nw : t instanceof Ur ? jh : t instanceof Date ? ew : Jy(t) ? md : Array.isArray(t) ? $y : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? tw : ln)(e, t);
|
|
3701
3701
|
}
|
|
@@ -3857,7 +3857,7 @@ function sw(e) {
|
|
|
3857
3857
|
const mD = sw(Nf);
|
|
3858
3858
|
var bD = sw(Je);
|
|
3859
3859
|
function bd(e, t) {
|
|
3860
|
-
t === void 0 && (t = e, e =
|
|
3860
|
+
t === void 0 && (t = e, e = Xr);
|
|
3861
3861
|
for (var n = 0, r = t.length - 1, i = t[0], a = new Array(r < 0 ? 0 : r); n < r; )
|
|
3862
3862
|
a[n] = e(i, i = t[++n]);
|
|
3863
3863
|
return function(o) {
|
|
@@ -3872,7 +3872,7 @@ function yD(e, t) {
|
|
|
3872
3872
|
}
|
|
3873
3873
|
const wD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3874
3874
|
__proto__: null,
|
|
3875
|
-
interpolate:
|
|
3875
|
+
interpolate: Xr,
|
|
3876
3876
|
interpolateArray: JS,
|
|
3877
3877
|
interpolateBasis: Wy,
|
|
3878
3878
|
interpolateBasisClosed: qy,
|
|
@@ -3942,7 +3942,7 @@ function au(e, t) {
|
|
|
3942
3942
|
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
|
|
3943
3943
|
}
|
|
3944
3944
|
function Bf() {
|
|
3945
|
-
var e = qp, t = qp, n =
|
|
3945
|
+
var e = qp, t = qp, n = Xr, r, i, a, o = Ct, s, c, u;
|
|
3946
3946
|
function f() {
|
|
3947
3947
|
var h = Math.min(e.length, t.length);
|
|
3948
3948
|
return o !== Ct && (o = AD(e[0], e[h - 1])), s = h > 2 ? ED : vD, c = u = null, l;
|
|
@@ -3972,7 +3972,7 @@ function uw() {
|
|
|
3972
3972
|
return Bf()(Ct, Ct);
|
|
3973
3973
|
}
|
|
3974
3974
|
function cw(e, t, n, r) {
|
|
3975
|
-
var i =
|
|
3975
|
+
var i = Ni(e, t, n), a;
|
|
3976
3976
|
switch (r = Rr(r ?? ",f"), r.type) {
|
|
3977
3977
|
case "s": {
|
|
3978
3978
|
var o = Math.max(Math.abs(e), Math.abs(t));
|
|
@@ -4280,10 +4280,10 @@ function Ed(e, t, n, r, i, a, o, s, c, u) {
|
|
|
4280
4280
|
}, f;
|
|
4281
4281
|
}
|
|
4282
4282
|
function kD() {
|
|
4283
|
-
return Gn.apply(Ed(_3, M3, Or, Dc, Xs,
|
|
4283
|
+
return Gn.apply(Ed(_3, M3, Or, Dc, Xs, Ci, J0, K0, Ir, id).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
4284
4284
|
}
|
|
4285
4285
|
function LD() {
|
|
4286
|
-
return Gn.apply(Ed(D3, I3, Pr, _c, Ks,
|
|
4286
|
+
return Gn.apply(Ed(D3, I3, Pr, _c, Ks, Si, td, ed, Ir, ad).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
|
|
4287
4287
|
}
|
|
4288
4288
|
function Ff() {
|
|
4289
4289
|
var e = 0, t = 1, n, r, i, a, o = Ct, s = !1, c;
|
|
@@ -4303,38 +4303,38 @@ function Ff() {
|
|
|
4303
4303
|
return arguments.length ? ([d, p] = h, o = l(d, p), u) : [o(0), o(1)];
|
|
4304
4304
|
};
|
|
4305
4305
|
}
|
|
4306
|
-
return u.range = f(
|
|
4306
|
+
return u.range = f(Xr), u.rangeRound = f(iu), u.unknown = function(l) {
|
|
4307
4307
|
return arguments.length ? (c = l, u) : c;
|
|
4308
4308
|
}, function(l) {
|
|
4309
4309
|
return a = l, n = l(e), r = l(t), i = n === r ? 0 : 1 / (r - n), u;
|
|
4310
4310
|
};
|
|
4311
4311
|
}
|
|
4312
|
-
function
|
|
4312
|
+
function Kr(e, t) {
|
|
4313
4313
|
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
|
|
4314
4314
|
}
|
|
4315
4315
|
function Cd() {
|
|
4316
4316
|
var e = Xi(Ff()(Ct));
|
|
4317
4317
|
return e.copy = function() {
|
|
4318
|
-
return
|
|
4319
|
-
},
|
|
4318
|
+
return Kr(e, Cd());
|
|
4319
|
+
}, Wr.apply(e, arguments);
|
|
4320
4320
|
}
|
|
4321
4321
|
function bw() {
|
|
4322
4322
|
var e = yd(Ff()).domain([1, 10]);
|
|
4323
4323
|
return e.copy = function() {
|
|
4324
|
-
return
|
|
4325
|
-
},
|
|
4324
|
+
return Kr(e, bw()).base(e.base());
|
|
4325
|
+
}, Wr.apply(e, arguments);
|
|
4326
4326
|
}
|
|
4327
4327
|
function yw() {
|
|
4328
4328
|
var e = xd(Ff());
|
|
4329
4329
|
return e.copy = function() {
|
|
4330
|
-
return
|
|
4331
|
-
},
|
|
4330
|
+
return Kr(e, yw()).constant(e.constant());
|
|
4331
|
+
}, Wr.apply(e, arguments);
|
|
4332
4332
|
}
|
|
4333
4333
|
function Sd() {
|
|
4334
4334
|
var e = Ad(Ff());
|
|
4335
4335
|
return e.copy = function() {
|
|
4336
|
-
return
|
|
4337
|
-
},
|
|
4336
|
+
return Kr(e, Sd()).exponent(e.exponent());
|
|
4337
|
+
}, Wr.apply(e, arguments);
|
|
4338
4338
|
}
|
|
4339
4339
|
function zD() {
|
|
4340
4340
|
return Sd.apply(null, arguments).exponent(0.5);
|
|
@@ -4357,7 +4357,7 @@ function kf() {
|
|
|
4357
4357
|
return arguments.length ? ([A, D, _] = x, u = bd(b, [A, D, _]), d) : [u(0), u(0.5), u(1)];
|
|
4358
4358
|
};
|
|
4359
4359
|
}
|
|
4360
|
-
return d.range = p(
|
|
4360
|
+
return d.range = p(Xr), d.rangeRound = p(iu), d.unknown = function(b) {
|
|
4361
4361
|
return arguments.length ? (h = b, d) : h;
|
|
4362
4362
|
}, function(b) {
|
|
4363
4363
|
return f = b, i = b(e), a = b(t), o = b(n), s = i === a ? 0 : 0.5 / (a - i), c = a === o ? 0 : 0.5 / (o - a), r = a < i ? -1 : 1, d;
|
|
@@ -4366,26 +4366,26 @@ function kf() {
|
|
|
4366
4366
|
function ww() {
|
|
4367
4367
|
var e = Xi(kf()(Ct));
|
|
4368
4368
|
return e.copy = function() {
|
|
4369
|
-
return
|
|
4370
|
-
},
|
|
4369
|
+
return Kr(e, ww());
|
|
4370
|
+
}, Wr.apply(e, arguments);
|
|
4371
4371
|
}
|
|
4372
4372
|
function xw() {
|
|
4373
4373
|
var e = yd(kf()).domain([0.1, 1, 10]);
|
|
4374
4374
|
return e.copy = function() {
|
|
4375
|
-
return
|
|
4376
|
-
},
|
|
4375
|
+
return Kr(e, xw()).base(e.base());
|
|
4376
|
+
}, Wr.apply(e, arguments);
|
|
4377
4377
|
}
|
|
4378
4378
|
function Aw() {
|
|
4379
4379
|
var e = xd(kf());
|
|
4380
4380
|
return e.copy = function() {
|
|
4381
|
-
return
|
|
4382
|
-
},
|
|
4381
|
+
return Kr(e, Aw()).constant(e.constant());
|
|
4382
|
+
}, Wr.apply(e, arguments);
|
|
4383
4383
|
}
|
|
4384
4384
|
function Dd() {
|
|
4385
4385
|
var e = Ad(kf());
|
|
4386
4386
|
return e.copy = function() {
|
|
4387
|
-
return
|
|
4388
|
-
},
|
|
4387
|
+
return Kr(e, Dd()).exponent(e.exponent());
|
|
4388
|
+
}, Wr.apply(e, arguments);
|
|
4389
4389
|
}
|
|
4390
4390
|
function RD() {
|
|
4391
4391
|
return Dd.apply(null, arguments).exponent(0.5);
|
|
@@ -4523,7 +4523,7 @@ me(_d, hd, uu);
|
|
|
4523
4523
|
me(Dw, Td, uu);
|
|
4524
4524
|
me(Yh, jD, uu);
|
|
4525
4525
|
function ZD(e) {
|
|
4526
|
-
return
|
|
4526
|
+
return hi(Lc, e);
|
|
4527
4527
|
}
|
|
4528
4528
|
function fu(e, t) {
|
|
4529
4529
|
const n = Lc[e];
|
|
@@ -4532,7 +4532,7 @@ function fu(e, t) {
|
|
|
4532
4532
|
function ct(e) {
|
|
4533
4533
|
return fu(e, Ze);
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function Gr(e) {
|
|
4536
4536
|
return fu(e, uu);
|
|
4537
4537
|
}
|
|
4538
4538
|
function ba(e) {
|
|
@@ -4678,7 +4678,7 @@ function $D(e, t) {
|
|
|
4678
4678
|
for (const [r, i] of Object.entries(t)) {
|
|
4679
4679
|
if (!i)
|
|
4680
4680
|
continue;
|
|
4681
|
-
const a = ((Vt(i) && i.resolutionChannel) ?? (
|
|
4681
|
+
const a = ((Vt(i) && i.resolutionChannel) ?? (Mi(r) && r)) || void 0, o = e.unitView.getScaleResolution(a);
|
|
4682
4682
|
n[r] = eI(
|
|
4683
4683
|
t[r],
|
|
4684
4684
|
o == null ? void 0 : o.getScale(),
|
|
@@ -4701,7 +4701,7 @@ function eI(e, t, n, r) {
|
|
|
4701
4701
|
}, i.accessor = n, i.constant = n.constant;
|
|
4702
4702
|
else {
|
|
4703
4703
|
if (!t)
|
|
4704
|
-
if (!
|
|
4704
|
+
if (!Mi(r))
|
|
4705
4705
|
t = Of();
|
|
4706
4706
|
else
|
|
4707
4707
|
throw new Error(
|
|
@@ -4710,7 +4710,7 @@ function eI(e, t, n, r) {
|
|
|
4710
4710
|
)}`
|
|
4711
4711
|
);
|
|
4712
4712
|
if (i = /** @type {Encoder} */
|
|
4713
|
-
(a) => t(n(a)),
|
|
4713
|
+
(a) => t(n(a)), Gr(t.type)) {
|
|
4714
4714
|
const a = JD();
|
|
4715
4715
|
a.addAll(t.domain()), i.indexer = a;
|
|
4716
4716
|
}
|
|
@@ -4784,13 +4784,13 @@ function rI(e) {
|
|
|
4784
4784
|
function zi(e) {
|
|
4785
4785
|
return zw[e] ?? e;
|
|
4786
4786
|
}
|
|
4787
|
-
function
|
|
4787
|
+
function _i(e) {
|
|
4788
4788
|
return ["color", "fill", "stroke"].includes(zi(e));
|
|
4789
4789
|
}
|
|
4790
4790
|
function Pf(e) {
|
|
4791
4791
|
return ["shape", "squeeze"].includes(e);
|
|
4792
4792
|
}
|
|
4793
|
-
function
|
|
4793
|
+
function Mi(e) {
|
|
4794
4794
|
return [
|
|
4795
4795
|
"x",
|
|
4796
4796
|
"y",
|
|
@@ -4845,7 +4845,7 @@ function ve(e, t = e) {
|
|
|
4845
4845
|
/** @type {import("vega-util").AccessorFn} */
|
|
4846
4846
|
new Function("datum", `return datum[${JSON.stringify(e)}]`)
|
|
4847
4847
|
);
|
|
4848
|
-
return
|
|
4848
|
+
return Zr(n, [e], t);
|
|
4849
4849
|
} else
|
|
4850
4850
|
return gf(e);
|
|
4851
4851
|
}
|
|
@@ -5107,7 +5107,7 @@ const qh = function() {
|
|
|
5107
5107
|
return function(i, a) {
|
|
5108
5108
|
return n(i), t[a] || (typeof a == "number" ? `0x${a.toString(16)}` : a);
|
|
5109
5109
|
};
|
|
5110
|
-
}(),
|
|
5110
|
+
}(), Jr = {
|
|
5111
5111
|
textureColor: new Uint8Array([128, 192, 255, 255]),
|
|
5112
5112
|
textureOptions: {},
|
|
5113
5113
|
crossOrigin: void 0
|
|
@@ -5116,12 +5116,12 @@ const qh = function() {
|
|
|
5116
5116
|
return function() {
|
|
5117
5117
|
return e = e || (typeof document < "u" && document.createElement ? document.createElement("canvas").getContext("2d") : null), e;
|
|
5118
5118
|
};
|
|
5119
|
-
}(), r1 = 6406, Dn = 6407, ke = 6408, i1 = 6409, a1 = 6410, No = 6402, o1 = 34041, Rc = 33071, UI = 9728, jI = 9729, lr = 3553, fr = 34067,
|
|
5119
|
+
}(), r1 = 6406, Dn = 6407, ke = 6408, i1 = 6409, a1 = 6410, No = 6402, o1 = 34041, Rc = 33071, UI = 9728, jI = 9729, lr = 3553, fr = 34067, Hr = 32879, Qr = 35866, jf = 34069, GI = 34070, HI = 34071, QI = 34072, VI = 34073, ZI = 34074, Xh = 10241, Kh = 10240, Oc = 10242, Pc = 10243, s1 = 32882, YI = 33082, WI = 33083, qI = 33084, XI = 33085, Gd = 3317, qw = 3314, Xw = 32878, Kw = 3316, Jw = 3315, $w = 32877, KI = 37443, JI = 37441, $I = 37440, e8 = 33321, t8 = 36756, n8 = 33325, r8 = 33326, i8 = 33330, a8 = 33329, o8 = 33338, s8 = 33337, u8 = 33340, c8 = 33339, f8 = 33323, l8 = 36757, h8 = 33327, d8 = 33328, g8 = 33336, p8 = 33335, m8 = 33332, b8 = 33331, y8 = 33334, w8 = 33333, x8 = 32849, A8 = 35905, v8 = 36194, E8 = 36758, C8 = 35898, S8 = 35901, D8 = 34843, I8 = 34837, _8 = 36221, M8 = 36239, T8 = 36215, N8 = 36233, B8 = 36209, F8 = 36227, k8 = 32856, L8 = 35907, z8 = 36759, R8 = 32855, O8 = 32854, P8 = 32857, U8 = 34842, j8 = 34836, G8 = 36220, H8 = 36238, Q8 = 36975, V8 = 36214, Z8 = 36232, Y8 = 36226, W8 = 36208, q8 = 33189, X8 = 33190, K8 = 36012, J8 = 36013, $8 = 35056, br = 5120, Fe = 5121, Uu = 5122, sa = 5123, ju = 5124, oi = 5125, ot = 5126, u1 = 32819, c1 = 32820, f1 = 33635, un = 5131, Bo = 36193, Fl = 33640, e_ = 35899, t_ = 35902, n_ = 36269, r_ = 34042, Gu = 33319, ua = 33320, Hu = 6403, ca = 36244, fa = 36248, si = 36249;
|
|
5120
5120
|
let kl;
|
|
5121
5121
|
function Gf(e) {
|
|
5122
5122
|
if (!kl) {
|
|
5123
5123
|
const t = {};
|
|
5124
|
-
t[r1] = { textureFormat: r1, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Fe, un, Bo, ot] }, t[i1] = { textureFormat: i1, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Fe, un, Bo, ot] }, t[a1] = { textureFormat: a1, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [Fe, un, Bo, ot] }, t[Dn] = { textureFormat: Dn, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [Fe, un, Bo, ot, f1] }, t[ke] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [Fe, un, Bo, ot, u1, c1] }, t[No] = { textureFormat: No, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [
|
|
5124
|
+
t[r1] = { textureFormat: r1, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Fe, un, Bo, ot] }, t[i1] = { textureFormat: i1, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Fe, un, Bo, ot] }, t[a1] = { textureFormat: a1, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [Fe, un, Bo, ot] }, t[Dn] = { textureFormat: Dn, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [Fe, un, Bo, ot, f1] }, t[ke] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [Fe, un, Bo, ot, u1, c1] }, t[No] = { textureFormat: No, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [oi, sa] }, t[e8] = { textureFormat: Hu, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1], type: [Fe] }, t[t8] = { textureFormat: Hu, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [1], type: [br] }, t[n8] = { textureFormat: Hu, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4, 2], type: [ot, un] }, t[r8] = { textureFormat: Hu, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [4], type: [ot] }, t[i8] = { textureFormat: ca, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [Fe] }, t[a8] = { textureFormat: ca, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [br] }, t[m8] = { textureFormat: ca, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [sa] }, t[b8] = { textureFormat: ca, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Uu] }, t[y8] = { textureFormat: ca, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [oi] }, t[w8] = { textureFormat: ca, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [ju] }, t[f8] = { textureFormat: Gu, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2], type: [Fe] }, t[l8] = { textureFormat: Gu, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [2], type: [br] }, t[h8] = { textureFormat: Gu, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [8, 4], type: [ot, un] }, t[d8] = { textureFormat: Gu, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [8], type: [ot] }, t[g8] = { textureFormat: ua, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Fe] }, t[p8] = { textureFormat: ua, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [br] }, t[o8] = { textureFormat: ua, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [sa] }, t[s8] = { textureFormat: ua, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Uu] }, t[u8] = { textureFormat: ua, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [oi] }, t[c8] = { textureFormat: ua, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [ju] }, t[x8] = { textureFormat: Dn, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3], type: [Fe] }, t[A8] = { textureFormat: Dn, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [Fe] }, t[v8] = { textureFormat: Dn, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 2], type: [Fe, f1] }, t[E8] = { textureFormat: Dn, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [br] }, t[C8] = { textureFormat: Dn, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [ot, un, e_] }, t[S8] = { textureFormat: Dn, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [ot, un, t_] }, t[D8] = { textureFormat: Dn, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6], type: [ot, un] }, t[I8] = { textureFormat: Dn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [ot] }, t[_8] = { textureFormat: fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [Fe] }, t[M8] = { textureFormat: fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [br] }, t[T8] = { textureFormat: fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [sa] }, t[N8] = { textureFormat: fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [Uu] }, t[B8] = { textureFormat: fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [oi] }, t[F8] = { textureFormat: fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [ju] }, t[k8] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Fe] }, t[L8] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Fe] }, t[z8] = { textureFormat: ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4], type: [br] }, t[R8] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2, 4], type: [Fe, c1, Fl] }, t[O8] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2], type: [Fe, u1] }, t[P8] = { textureFormat: ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Fl] }, t[U8] = { textureFormat: ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [16, 8], type: [ot, un] }, t[j8] = { textureFormat: ke, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [16], type: [ot] }, t[G8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Fe] }, t[H8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [br] }, t[Q8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Fl] }, t[V8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [sa] }, t[Z8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [Uu] }, t[Y8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [ju] }, t[W8] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [oi] }, t[q8] = { textureFormat: No, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [sa, oi] }, t[X8] = { textureFormat: No, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [oi] }, t[K8] = { textureFormat: No, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [ot] }, t[$8] = { textureFormat: o1, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [r_] }, t[J8] = { textureFormat: o1, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [n_] }, Object.keys(t).forEach(function(n) {
|
|
5125
5125
|
const r = t[n];
|
|
5126
5126
|
r.bytesPerElementMap = {}, r.bytesPerElement.forEach(function(i, a) {
|
|
5127
5127
|
const o = r.type[a];
|
|
@@ -5192,17 +5192,17 @@ function tx(e) {
|
|
|
5192
5192
|
e.pixelStorei(Gd, 4), uo(e) && (e.pixelStorei(qw, 0), e.pixelStorei(Xw, 0), e.pixelStorei(Kw, 0), e.pixelStorei(Jw, 0), e.pixelStorei($w, 0));
|
|
5193
5193
|
}
|
|
5194
5194
|
function s_(e, t, n, r) {
|
|
5195
|
-
r.minMag && (n.call(e, t, Xh, r.minMag), n.call(e, t, Kh, r.minMag)), r.min && n.call(e, t, Xh, r.min), r.mag && n.call(e, t, Kh, r.mag), r.wrap && (n.call(e, t, Oc, r.wrap), n.call(e, t, Pc, r.wrap), (t ===
|
|
5195
|
+
r.minMag && (n.call(e, t, Xh, r.minMag), n.call(e, t, Kh, r.minMag)), r.min && n.call(e, t, Xh, r.min), r.mag && n.call(e, t, Kh, r.mag), r.wrap && (n.call(e, t, Oc, r.wrap), n.call(e, t, Pc, r.wrap), (t === Hr || wI(e, t)) && n.call(e, t, s1, r.wrap)), r.wrapR && n.call(e, t, s1, r.wrapR), r.wrapS && n.call(e, t, Oc, r.wrapS), r.wrapT && n.call(e, t, Pc, r.wrapT), r.minLod && n.call(e, t, YI, r.minLod), r.maxLod && n.call(e, t, WI, r.maxLod), r.baseLevel && n.call(e, t, qI, r.baseLevel), r.maxLevel && n.call(e, t, XI, r.maxLevel);
|
|
5196
5196
|
}
|
|
5197
5197
|
function nx(e, t, n) {
|
|
5198
5198
|
const r = n.target || lr;
|
|
5199
5199
|
e.bindTexture(r, t), s_(e, r, e.texParameteri, n);
|
|
5200
5200
|
}
|
|
5201
5201
|
function u_(e) {
|
|
5202
|
-
return e = e ||
|
|
5202
|
+
return e = e || Jr.textureColor, Ya(e) ? e : new Uint8Array([e[0] * 255, e[1] * 255, e[2] * 255, e[3] * 255]);
|
|
5203
5203
|
}
|
|
5204
5204
|
function Jh(e, t, n, r, i, a) {
|
|
5205
|
-
n = n ||
|
|
5205
|
+
n = n || Jr.textureOptions, a = a || ke;
|
|
5206
5206
|
const o = n.target || lr;
|
|
5207
5207
|
if (r = r || n.width, i = i || n.height, e.bindTexture(o, t), a_(e, r, i, a))
|
|
5208
5208
|
e.generateMipmap(o);
|
|
@@ -5233,7 +5233,7 @@ function e0(e, t) {
|
|
|
5233
5233
|
}), r;
|
|
5234
5234
|
}
|
|
5235
5235
|
function rx(e, t, n, r) {
|
|
5236
|
-
r = r ||
|
|
5236
|
+
r = r || Jr.textureOptions;
|
|
5237
5237
|
const i = r.target || lr, a = r.level || 0;
|
|
5238
5238
|
let o = n.width, s = n.height;
|
|
5239
5239
|
const c = r.internalFormat || r.format || ke, u = co(c), f = r.format || u.format, l = r.type || u.type;
|
|
@@ -5263,7 +5263,7 @@ function rx(e, t, n, r) {
|
|
|
5263
5263
|
Wa(e, r), e.bindTexture(i, t), e.texImage2D(A.face, a, c, f, l, C), vs(r) && Jh(e, t, r, o, s, c);
|
|
5264
5264
|
});
|
|
5265
5265
|
}));
|
|
5266
|
-
} else if (i ===
|
|
5266
|
+
} else if (i === Hr || i === Qr) {
|
|
5267
5267
|
const h = Math.min(n.width, n.height), d = Math.max(n.width, n.height), p = d / h;
|
|
5268
5268
|
if (p % 1 !== 0)
|
|
5269
5269
|
throw "can not compute 3D dimensions of element";
|
|
@@ -5295,7 +5295,7 @@ function f_(e, t) {
|
|
|
5295
5295
|
function l_(e, t, n) {
|
|
5296
5296
|
n = n || du;
|
|
5297
5297
|
let r;
|
|
5298
|
-
if (t = t !== void 0 ? t :
|
|
5298
|
+
if (t = t !== void 0 ? t : Jr.crossOrigin, t = f_(e, t), typeof Image < "u") {
|
|
5299
5299
|
r = new Image(), t !== void 0 && (r.crossOrigin = t);
|
|
5300
5300
|
const i = function() {
|
|
5301
5301
|
r.removeEventListener("error", a), r.removeEventListener("load", o), r = null;
|
|
@@ -5337,7 +5337,7 @@ function Hd(e, t, n) {
|
|
|
5337
5337
|
}), e) : l_(e, t, n);
|
|
5338
5338
|
}
|
|
5339
5339
|
function Qd(e, t, n) {
|
|
5340
|
-
n = n ||
|
|
5340
|
+
n = n || Jr.textureOptions;
|
|
5341
5341
|
const r = n.target || lr;
|
|
5342
5342
|
if (e.bindTexture(r, t), n.color === !1)
|
|
5343
5343
|
return;
|
|
@@ -5346,10 +5346,10 @@ function Qd(e, t, n) {
|
|
|
5346
5346
|
for (let a = 0; a < 6; ++a)
|
|
5347
5347
|
e.texImage2D(jf + a, 0, ke, 1, 1, 0, ke, Fe, i);
|
|
5348
5348
|
else
|
|
5349
|
-
r ===
|
|
5349
|
+
r === Hr || r === Qr ? e.texImage3D(r, 0, ke, 1, 1, 1, 0, ke, Fe, i) : e.texImage2D(r, 0, ke, 1, 1, 0, ke, Fe, i);
|
|
5350
5350
|
}
|
|
5351
5351
|
function h_(e, t, n, r) {
|
|
5352
|
-
return r = r || du, n = n ||
|
|
5352
|
+
return r = r || du, n = n || Jr.textureOptions, Qd(e, t, n), n = Object.assign({}, n), Hd(n.src, n.crossOrigin, function(a, o) {
|
|
5353
5353
|
a ? r(a, t, o) : (rx(e, t, o, n), r(null, t, o));
|
|
5354
5354
|
});
|
|
5355
5355
|
}
|
|
@@ -5378,8 +5378,8 @@ function d_(e, t, n, r) {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
function g_(e, t, n, r) {
|
|
5380
5380
|
r = r || du;
|
|
5381
|
-
const i = n.src, a = n.internalFormat || n.format || ke, o = co(a), s = n.format || o.format, c = n.type || Fe, u = n.target ||
|
|
5382
|
-
if (u !==
|
|
5381
|
+
const i = n.src, a = n.internalFormat || n.format || ke, o = co(a), s = n.format || o.format, c = n.type || Fe, u = n.target || Qr;
|
|
5382
|
+
if (u !== Hr && u !== Qr)
|
|
5383
5383
|
throw "target must be TEXTURE_3D or TEXTURE_2D_ARRAY";
|
|
5384
5384
|
Qd(e, t, n), n = Object.assign({}, n);
|
|
5385
5385
|
let f = i.length;
|
|
@@ -5412,7 +5412,7 @@ function g_(e, t, n, r) {
|
|
|
5412
5412
|
});
|
|
5413
5413
|
}
|
|
5414
5414
|
function ax(e, t, n, r) {
|
|
5415
|
-
r = r ||
|
|
5415
|
+
r = r || Jr.textureOptions;
|
|
5416
5416
|
const i = r.target || lr;
|
|
5417
5417
|
e.bindTexture(i, t);
|
|
5418
5418
|
let a = r.width, o = r.height, s = r.depth;
|
|
@@ -5427,7 +5427,7 @@ function ax(e, t, n, r) {
|
|
|
5427
5427
|
if (p % 1)
|
|
5428
5428
|
throw "length wrong size for format: " + qh(e, l);
|
|
5429
5429
|
let b;
|
|
5430
|
-
if (i ===
|
|
5430
|
+
if (i === Hr || i === Qr)
|
|
5431
5431
|
if (!a && !o && !s) {
|
|
5432
5432
|
const x = Math.cbrt(p);
|
|
5433
5433
|
if (x % 1 !== 0)
|
|
@@ -5444,7 +5444,7 @@ function ax(e, t, n, r) {
|
|
|
5444
5444
|
e.texImage2D(D.face, c, u, a, o, 0, l, h, C);
|
|
5445
5445
|
});
|
|
5446
5446
|
} else
|
|
5447
|
-
i ===
|
|
5447
|
+
i === Hr || i === Qr ? e.texImage3D(i, c, u, a, o, s, 0, l, h, n) : e.texImage2D(i, c, u, a, o, 0, l, h, n);
|
|
5448
5448
|
return {
|
|
5449
5449
|
width: a,
|
|
5450
5450
|
height: o,
|
|
@@ -5460,10 +5460,10 @@ function p_(e, t, n) {
|
|
|
5460
5460
|
for (let u = 0; u < 6; ++u)
|
|
5461
5461
|
e.texImage2D(jf + u, i, a, n.width, n.height, 0, s, c, null);
|
|
5462
5462
|
else
|
|
5463
|
-
r ===
|
|
5463
|
+
r === Hr || r === Qr ? e.texImage3D(r, i, a, n.width, n.height, n.depth, 0, s, c, null) : e.texImage2D(r, i, a, n.width, n.height, 0, s, c, null);
|
|
5464
5464
|
}
|
|
5465
5465
|
function Es(e, t, n) {
|
|
5466
|
-
n = n || du, t = t ||
|
|
5466
|
+
n = n || du, t = t || Jr.textureOptions;
|
|
5467
5467
|
const r = e.createTexture(), i = t.target || lr;
|
|
5468
5468
|
let a = t.width || 1, o = t.height || 1;
|
|
5469
5469
|
const s = t.internalFormat || ke;
|
|
@@ -5492,7 +5492,7 @@ function m_(e, t, n, r, i, a) {
|
|
|
5492
5492
|
for (let d = 0; d < 6; ++d)
|
|
5493
5493
|
e.texImage2D(jf + d, s, c, r, i, 0, f, l, null);
|
|
5494
5494
|
else
|
|
5495
|
-
o ===
|
|
5495
|
+
o === Hr || o === Qr ? e.texImage3D(o, s, c, r, i, a, 0, f, l, null) : e.texImage2D(o, s, c, r, i, 0, f, l, null);
|
|
5496
5496
|
}
|
|
5497
5497
|
const b_ = Uw, Uc = 33984, y_ = 35048, Hf = 34962, w_ = 34963, Vd = 35345, ox = 35718, x_ = 35721, A_ = 35971, v_ = 35382, E_ = 35396, C_ = 35398, S_ = 35392, D_ = 35395, Qf = 5126, sx = 35664, ux = 35665, cx = 35666, Zd = 5124, fx = 35667, lx = 35668, hx = 35669, dx = 35670, gx = 35671, px = 35672, mx = 35673, bx = 35674, yx = 35675, wx = 35676, I_ = 35678, __ = 35680, M_ = 35679, T_ = 35682, N_ = 35685, B_ = 35686, F_ = 35687, k_ = 35688, L_ = 35689, z_ = 35690, R_ = 36289, O_ = 36292, P_ = 36293, Yd = 5125, xx = 36294, Ax = 36295, vx = 36296, U_ = 36298, j_ = 36299, G_ = 36300, H_ = 36303, Q_ = 36306, V_ = 36307, Z_ = 36308, Y_ = 36311, Vf = 3553, Zf = 34067, Wd = 32879, Yf = 35866, $ = {};
|
|
5498
5498
|
function Ex(e, t) {
|
|
@@ -5713,7 +5713,7 @@ function Wf(e, t) {
|
|
|
5713
5713
|
), n.divisor !== void 0 && e.vertexAttribDivisor(t, n.divisor);
|
|
5714
5714
|
};
|
|
5715
5715
|
}
|
|
5716
|
-
function
|
|
5716
|
+
function $r(e, t) {
|
|
5717
5717
|
return function(n) {
|
|
5718
5718
|
if (n.value)
|
|
5719
5719
|
if (e.disableVertexAttribArray(t), n.value.length === 4)
|
|
@@ -5768,18 +5768,18 @@ Ue[Qf] = { size: 4, setter: Wf };
|
|
|
5768
5768
|
Ue[sx] = { size: 8, setter: Wf };
|
|
5769
5769
|
Ue[ux] = { size: 12, setter: Wf };
|
|
5770
5770
|
Ue[cx] = { size: 16, setter: Wf };
|
|
5771
|
-
Ue[Zd] = { size: 4, setter:
|
|
5772
|
-
Ue[fx] = { size: 8, setter:
|
|
5773
|
-
Ue[lx] = { size: 12, setter:
|
|
5774
|
-
Ue[hx] = { size: 16, setter:
|
|
5771
|
+
Ue[Zd] = { size: 4, setter: $r };
|
|
5772
|
+
Ue[fx] = { size: 8, setter: $r };
|
|
5773
|
+
Ue[lx] = { size: 12, setter: $r };
|
|
5774
|
+
Ue[hx] = { size: 16, setter: $r };
|
|
5775
5775
|
Ue[Yd] = { size: 4, setter: qf };
|
|
5776
5776
|
Ue[xx] = { size: 8, setter: qf };
|
|
5777
5777
|
Ue[Ax] = { size: 12, setter: qf };
|
|
5778
5778
|
Ue[vx] = { size: 16, setter: qf };
|
|
5779
|
-
Ue[dx] = { size: 4, setter:
|
|
5780
|
-
Ue[gx] = { size: 8, setter:
|
|
5781
|
-
Ue[px] = { size: 12, setter:
|
|
5782
|
-
Ue[mx] = { size: 16, setter:
|
|
5779
|
+
Ue[dx] = { size: 4, setter: $r };
|
|
5780
|
+
Ue[gx] = { size: 8, setter: $r };
|
|
5781
|
+
Ue[px] = { size: 12, setter: $r };
|
|
5782
|
+
Ue[mx] = { size: 16, setter: $r };
|
|
5783
5783
|
Ue[bx] = { size: 4, setter: qd, count: 2 };
|
|
5784
5784
|
Ue[yx] = { size: 9, setter: qd, count: 3 };
|
|
5785
5785
|
Ue[wx] = { size: 16, setter: qd, count: 4 };
|
|
@@ -6013,7 +6013,7 @@ function gu(e, t, n, r, i, a) {
|
|
|
6013
6013
|
const o = t.indices, s = t.elementType, c = r === void 0 ? t.numElements : r;
|
|
6014
6014
|
i = i === void 0 ? 0 : i, s || o ? a !== void 0 ? e.drawElementsInstanced(n, c, s === void 0 ? m1 : t.elementType, i, a) : e.drawElements(n, c, s === void 0 ? m1 : t.elementType, i) : a !== void 0 ? e.drawArraysInstanced(n, i, c, a) : e.drawArrays(n, i, c);
|
|
6015
6015
|
}
|
|
6016
|
-
const DM = 36160,
|
|
6016
|
+
const DM = 36160, gi = 36161, IM = 3553, _M = 5121, MM = 6402, TM = 6408, NM = 33190, BM = 36012, FM = 35056, kM = 36013, LM = 32854, zM = 32855, RM = 36194, Bx = 33189, Fx = 6401, kx = 36168, Xd = 34041, OM = 36064, Xf = 36096, Lx = 36128, Kd = 33306, t0 = 33071, n0 = 9729, zx = [
|
|
6017
6017
|
{ format: TM, type: _M, min: n0, wrap: t0 },
|
|
6018
6018
|
{ format: Xd }
|
|
6019
6019
|
], bn = {};
|
|
@@ -6029,16 +6029,16 @@ bn[kM] = Kd;
|
|
|
6029
6029
|
function PM(e, t) {
|
|
6030
6030
|
return bn[e] || bn[t];
|
|
6031
6031
|
}
|
|
6032
|
-
const
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6032
|
+
const ei = {};
|
|
6033
|
+
ei[LM] = !0;
|
|
6034
|
+
ei[zM] = !0;
|
|
6035
|
+
ei[RM] = !0;
|
|
6036
|
+
ei[Xd] = !0;
|
|
6037
|
+
ei[Bx] = !0;
|
|
6038
|
+
ei[Fx] = !0;
|
|
6039
|
+
ei[kx] = !0;
|
|
6040
6040
|
function UM(e) {
|
|
6041
|
-
return
|
|
6041
|
+
return ei[e];
|
|
6042
6042
|
}
|
|
6043
6043
|
function jM(e, t, n, r) {
|
|
6044
6044
|
const i = DM, a = e.createFramebuffer();
|
|
@@ -6056,13 +6056,13 @@ function jM(e, t, n, r) {
|
|
|
6056
6056
|
let h = c.attachmentPoint || PM(l, c.internalFormat);
|
|
6057
6057
|
if (h || (h = OM + o++), !u)
|
|
6058
6058
|
if (f !== void 0 || UM(l))
|
|
6059
|
-
u = e.createRenderbuffer(), e.bindRenderbuffer(
|
|
6059
|
+
u = e.createRenderbuffer(), e.bindRenderbuffer(gi, u), f > 1 ? e.renderbufferStorageMultisample(gi, f, l, n, r) : e.renderbufferStorage(gi, l, n, r);
|
|
6060
6060
|
else {
|
|
6061
6061
|
const d = Object.assign({}, c);
|
|
6062
6062
|
d.width = n, d.height = r, d.auto === void 0 && (d.auto = !1, d.min = d.min || d.minMag || n0, d.mag = d.mag || d.minMag || n0, d.wrapS = d.wrapS || d.wrap || t0, d.wrapT = d.wrapT || d.wrap || t0), u = Es(e, d);
|
|
6063
6063
|
}
|
|
6064
6064
|
if (jw(e, u))
|
|
6065
|
-
e.framebufferRenderbuffer(i, h,
|
|
6065
|
+
e.framebufferRenderbuffer(i, h, gi, u);
|
|
6066
6066
|
else if (Uf(e, u))
|
|
6067
6067
|
c.layer !== void 0 ? e.framebufferTextureLayer(
|
|
6068
6068
|
i,
|
|
@@ -6086,7 +6086,7 @@ function GM(e, t, n, r, i) {
|
|
|
6086
6086
|
r = r || e.drawingBufferWidth, i = i || e.drawingBufferHeight, t.width = r, t.height = i, n = n || zx, n.forEach(function(a, o) {
|
|
6087
6087
|
const s = t.attachments[o], c = a.format, u = a.samples;
|
|
6088
6088
|
if (u !== void 0 || jw(e, s))
|
|
6089
|
-
e.bindRenderbuffer(
|
|
6089
|
+
e.bindRenderbuffer(gi, s), u > 1 ? e.renderbufferStorageMultisample(gi, u, c, r, i) : e.renderbufferStorage(gi, c, r, i);
|
|
6090
6090
|
else if (Uf(e, s))
|
|
6091
6091
|
m_(e, s, a, r, i);
|
|
6092
6092
|
else
|
|
@@ -6203,25 +6203,25 @@ function KM(e) {
|
|
|
6203
6203
|
function JM(e, t) {
|
|
6204
6204
|
let n;
|
|
6205
6205
|
if (Pf(e))
|
|
6206
|
-
n =
|
|
6206
|
+
n = pi(Ow(e)(t));
|
|
6207
6207
|
else if (Oe(t))
|
|
6208
|
-
if (
|
|
6208
|
+
if (_i(e))
|
|
6209
6209
|
n = e6(t);
|
|
6210
6210
|
else
|
|
6211
6211
|
throw new Error(
|
|
6212
6212
|
`String values are not supported on the "${e}" channel: ${t}`
|
|
6213
6213
|
);
|
|
6214
6214
|
else if (bf(t))
|
|
6215
|
-
n =
|
|
6215
|
+
n = pi(t ? 1 : 0);
|
|
6216
6216
|
else if (t === null)
|
|
6217
|
-
if (
|
|
6218
|
-
n =
|
|
6217
|
+
if (_i(e))
|
|
6218
|
+
n = pi([0, 0, 0]);
|
|
6219
6219
|
else
|
|
6220
6220
|
throw new Error(
|
|
6221
6221
|
`null value is not supported on the "${e}" chanel.`
|
|
6222
6222
|
);
|
|
6223
6223
|
else
|
|
6224
|
-
n =
|
|
6224
|
+
n = pi(t);
|
|
6225
6225
|
return `
|
|
6226
6226
|
#define ${e}_DEFINED
|
|
6227
6227
|
${n.type} ${Px}${e}() {
|
|
@@ -6312,20 +6312,20 @@ function $M(e, t, n) {
|
|
|
6312
6312
|
`Unsupported scale type: ${t.type}! ${e}: ${JSON.stringify(n)}`
|
|
6313
6313
|
);
|
|
6314
6314
|
}
|
|
6315
|
-
const b = zf(t.type) || ct(t.type) &&
|
|
6315
|
+
const b = zf(t.type) || ct(t.type) && _i(e) ? [0, 1] : t.range ? t.range() : void 0;
|
|
6316
6316
|
if (b && e == r && b.length && b.every(Tt)) {
|
|
6317
6317
|
const S = x1(b);
|
|
6318
6318
|
l.push(
|
|
6319
6319
|
`const ${S.type} ${o} = ${S};`
|
|
6320
6320
|
);
|
|
6321
6321
|
}
|
|
6322
|
-
const x =
|
|
6322
|
+
const x = _i(e) ? "vec3" : "float";
|
|
6323
6323
|
let A;
|
|
6324
|
-
if (
|
|
6324
|
+
if (_i(e)) {
|
|
6325
6325
|
const S = r0 + r;
|
|
6326
6326
|
if (e == r && l.push(`uniform sampler2D ${S};`), ct(t.type))
|
|
6327
6327
|
A = `getInterpolatedColor(${S}, transformed)`;
|
|
6328
|
-
else if (
|
|
6328
|
+
else if (Gr(t.type) || ba(t.type))
|
|
6329
6329
|
A = `getDiscreteColor(${S}, int(transformed))`;
|
|
6330
6330
|
else
|
|
6331
6331
|
throw new Error("Problem with color scale!");
|
|
@@ -6384,7 +6384,7 @@ function i0(e) {
|
|
|
6384
6384
|
return /^(-)?\d+$/.test(t) && (t += ".0"), t;
|
|
6385
6385
|
}
|
|
6386
6386
|
}
|
|
6387
|
-
function
|
|
6387
|
+
function pi(e) {
|
|
6388
6388
|
typeof e == "number" && (e = [e]);
|
|
6389
6389
|
const t = e.length;
|
|
6390
6390
|
if (t < 1 || t > 4)
|
|
@@ -6394,15 +6394,15 @@ function gi(e) {
|
|
|
6394
6394
|
}
|
|
6395
6395
|
function e6(e) {
|
|
6396
6396
|
const t = Ur(e).rgb();
|
|
6397
|
-
return
|
|
6397
|
+
return pi([t.r, t.g, t.b].map((n) => n / 255));
|
|
6398
6398
|
}
|
|
6399
6399
|
function x1(e) {
|
|
6400
|
-
return
|
|
6400
|
+
return pi([e[0], $s(e)]);
|
|
6401
6401
|
}
|
|
6402
6402
|
function t6(e, ...t) {
|
|
6403
6403
|
const n = [];
|
|
6404
6404
|
for (const r of t)
|
|
6405
|
-
Tt(r) ? n.push(i0(r)) : tn(r) ? n.push(
|
|
6405
|
+
Tt(r) ? n.push(i0(r)) : tn(r) ? n.push(pi(r)) : n.push(r);
|
|
6406
6406
|
return `${e}(${n.join(", ")})`;
|
|
6407
6407
|
}
|
|
6408
6408
|
function jc(e) {
|
|
@@ -6642,7 +6642,7 @@ class pu {
|
|
|
6642
6642
|
arrayReference: c ? s : void 0
|
|
6643
6643
|
});
|
|
6644
6644
|
}
|
|
6645
|
-
this.lastOffset = 0, this.rangeMap = new
|
|
6645
|
+
this.lastOffset = 0, this.rangeMap = new Ti([], JSON.stringify);
|
|
6646
6646
|
}
|
|
6647
6647
|
/**
|
|
6648
6648
|
* Must be called at the end of `addBatch`
|
|
@@ -7239,10 +7239,10 @@ class A6 {
|
|
|
7239
7239
|
if (!n && r)
|
|
7240
7240
|
return;
|
|
7241
7241
|
function i(o, s) {
|
|
7242
|
-
return
|
|
7242
|
+
return Gr(s.type) ? s.domain().length : s.type == "threshold" ? s.domain().length + 1 : s.type == "quantize" || s.type == "quantile" ? o ?? 4 : o;
|
|
7243
7243
|
}
|
|
7244
7244
|
const a = t.channel;
|
|
7245
|
-
if (
|
|
7245
|
+
if (_i(a)) {
|
|
7246
7246
|
const o = t.getScaleProps(), s = t.getScale(), c = (
|
|
7247
7247
|
/** @type {any[]} */
|
|
7248
7248
|
s.range()
|
|
@@ -7560,7 +7560,7 @@ class mu {
|
|
|
7560
7560
|
if (mn(p))
|
|
7561
7561
|
a.push(JM(d, p.value));
|
|
7562
7562
|
else {
|
|
7563
|
-
const b = Vt(p) && p.resolutionChannel || d, x =
|
|
7563
|
+
const b = Vt(p) && p.resolutionChannel || d, x = Mi(b) ? this.unitView.getScaleResolution(b).getScale() : Of(), A = $M(d, x, p);
|
|
7564
7564
|
a.push(A.glsl), A.domainUniform && this.domainUniforms.push(A.domainUniform);
|
|
7565
7565
|
}
|
|
7566
7566
|
}
|
|
@@ -7720,10 +7720,10 @@ class mu {
|
|
|
7720
7720
|
/** @type {Channel} */
|
|
7721
7721
|
o.substring(Ox.length)
|
|
7722
7722
|
), u = this.encoding[c], f = Vt(u) && u.resolutionChannel || c;
|
|
7723
|
-
if (
|
|
7723
|
+
if (Mi(f)) {
|
|
7724
7724
|
const l = this.unitView.getScaleResolution(f).getScale();
|
|
7725
7725
|
i.push(() => {
|
|
7726
|
-
const h =
|
|
7726
|
+
const h = Gr(l.type) ? [0, l.domain().length] : l.domain();
|
|
7727
7727
|
s(
|
|
7728
7728
|
jc(l.type) ? i6(h) : h
|
|
7729
7729
|
);
|
|
@@ -7737,7 +7737,7 @@ class mu {
|
|
|
7737
7737
|
for (const [o, s] of Object.entries(this.encoding))
|
|
7738
7738
|
if (Vt(s)) {
|
|
7739
7739
|
const c = Vt(s) && s.resolutionChannel || o;
|
|
7740
|
-
if (
|
|
7740
|
+
if (Mi(c)) {
|
|
7741
7741
|
const u = this.unitView.getScaleResolution(c), f = n.rangeTextures.get(u);
|
|
7742
7742
|
f && i.push(
|
|
7743
7743
|
() => zt(this.programInfo, {
|
|
@@ -7903,13 +7903,13 @@ class mu {
|
|
|
7903
7903
|
* This is highly specific to SampleView and its sorting/filtering functionality.
|
|
7904
7904
|
*
|
|
7905
7905
|
* @param {string} facetId
|
|
7906
|
-
* @param {
|
|
7906
|
+
* @param {import("../spec/channel").Scalar} x value on the x domain
|
|
7907
7907
|
* @returns {any}
|
|
7908
7908
|
*/
|
|
7909
7909
|
findDatumAt(t, n) {
|
|
7910
7910
|
}
|
|
7911
7911
|
}
|
|
7912
|
-
class I6 extends
|
|
7912
|
+
class I6 extends Ti {
|
|
7913
7913
|
constructor() {
|
|
7914
7914
|
super([], JSON.stringify);
|
|
7915
7915
|
}
|
|
@@ -8128,14 +8128,23 @@ class _6 extends mu {
|
|
|
8128
8128
|
* This is highly specific to SampleView and its sorting/filtering functionality.
|
|
8129
8129
|
*
|
|
8130
8130
|
* @param {any} facetId
|
|
8131
|
-
* @param {
|
|
8131
|
+
* @param {import("../spec/channel").Scalar} x value on the x domain
|
|
8132
8132
|
* @returns {any}
|
|
8133
|
+
* @override
|
|
8133
8134
|
*/
|
|
8134
8135
|
findDatumAt(t, n) {
|
|
8135
8136
|
t = kn(t);
|
|
8136
|
-
const r = this.
|
|
8137
|
-
if (
|
|
8138
|
-
return
|
|
8137
|
+
const r = this.unitView.getCollector().facetBatches.get(t);
|
|
8138
|
+
if (!r)
|
|
8139
|
+
return;
|
|
8140
|
+
const i = this.encoders, a = i.x.scale.type;
|
|
8141
|
+
if (Gr(a)) {
|
|
8142
|
+
const o = i.x.accessor;
|
|
8143
|
+
return r.find((s) => n == o(s));
|
|
8144
|
+
} else {
|
|
8145
|
+
const o = i.x.accessor, s = i.x2.accessor;
|
|
8146
|
+
return r.find((c) => n >= o(c) && n < s(c));
|
|
8147
|
+
}
|
|
8139
8148
|
}
|
|
8140
8149
|
}
|
|
8141
8150
|
const M6 = `/***The stroke should only grow inwards,e.g,the diameter/outline is not affected by the stroke width.*Thus,a point that has a zero size has no visible stroke. This allows strokes to be used with*geometric zoom,etc.*/uniform bool uInwardStroke;uniform lowp float uMaxRelativePointDiameter;uniform float uScaleFactor;uniform float uMaxPointSize;uniform float uZoomLevel;uniform float uSemanticThreshold;out float vRadius;out float vRadiusWithPadding;out lowp vec4 vFillColor;out lowp vec4 vStrokeColor;out lowp float vShape;out lowp float vHalfStrokeWidth;out mat2 vRotationMatrix;float computeSemanticThresholdFactor(){return getScaled_semanticScore()>=uSemanticThreshold ? 1.0 : 0.0;}/***Computes a scaling factor for the points in a sample-faceted view.*/float getDownscaleFactor(vec2 pos){if(!isFacetedSamples()){return 1.0;}float sampleFacetHeight=getSampleFacetHeight(pos);float maxPointDiameter=sqrt(uMaxPointSize);float factor=sampleFacetHeight*uViewportSize.y*uMaxRelativePointDiameter;return clamp(0.0,maxPointDiameter,factor)/maxPointDiameter;}vec2 getDxDy(){
|
|
@@ -8144,7 +8153,7 @@ return vec2(getScaled_dx(),getScaled_dy())/uViewportSize;
|
|
|
8144
8153
|
#else
|
|
8145
8154
|
return vec2(0.0,0.0);
|
|
8146
8155
|
#endif
|
|
8147
|
-
}void main(void){float semanticThresholdFactor=computeSemanticThresholdFactor();if(semanticThresholdFactor<=0.0){gl_PointSize=0.0;gl_Position=vec4(100.0,0.0,0.0,0.0);return;}float size=getScaled_size();vec2 pos=vec2(getScaled_x(),getScaled_y())+getDxDy();gl_Position=unitToNdc(applySampleFacet(pos));float strokeWidth=getScaled_strokeWidth();float diameter=sqrt(size)*uScaleFactor*semanticThresholdFactor*getDownscaleFactor(pos);float opacity=uViewOpacity;if(strokeWidth<=0.0||uInwardStroke){float minDiameter=1.0/uDevicePixelRatio;if(diameter<minDiameter){opacity*=pow(diameter/minDiameter,2.5);diameter=minDiameter;}}float fillOpa=getScaled_fillOpacity()*opacity;float strokeOpa=getScaled_strokeOpacity()*opacity;vShape=getScaled_shape();bool circle=vShape==0.0;float angleInDegrees=getScaled_angle();float angle=-angleInDegrees*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);vRotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);float roomForRotation=circle ? 1.0 : sin(mod(angle,PI/2.0)+PI/4.0)/sin(PI/4.0);float aaPadding=1.0/uDevicePixelRatio;float rotationPadding=(diameter*roomForRotation)-diameter;float strokePadding=uInwardStroke ? 0.0 : strokeWidth*(circle ? 1.0 : sqrt(3.0));float padding=rotationPadding+strokePadding+aaPadding;gl_PointSize=(diameter+padding)*uDevicePixelRatio;vRadius=diameter/2.0;vRadiusWithPadding=vRadius+padding/2.0;vHalfStrokeWidth=strokeWidth/2.0;vFillColor=vec4(getScaled_fill()*fillOpa,fillOpa);vStrokeColor=vec4(getScaled_stroke()*strokeOpa,strokeOpa);setupPicking();}`, T6 = "const lowp vec4 white=vec4(1.0);const lowp vec4 black=vec4(0.0,0.0,0.0,1.0);uniform bool uInwardStroke;uniform float uGradientStrength;in float vRadius;in float vRadiusWithPadding;in lowp vec4 vFillColor;in lowp vec4 vStrokeColor;in lowp float vShape;in lowp float vHalfStrokeWidth;in mat2 vRotationMatrix;out lowp vec4 fragColor;const float CIRCLE=0.0;const float SQUARE=1.0;const float TRIANGLE_UP=2.0;const float CROSS=3.0;const float DIAMOND=4.0;const float TRIANGLE_DOWN=5.0;const float TRIANGLE_RIGHT=6.0;const float TRIANGLE_LEFT=7.0;float circle(vec2 p,float r){return length(p)-r;}float square(vec2 p,float r){p=abs(p);return max(p.x,p.y)-r;}float equilateralTriangle(vec2 p,float r,bool flip,bool swap){if(swap){p.xy=p.yx;}if(flip){p.y=-p.y;}float k=sqrt(3.0);float kr=k*r;p.y-=kr/2.0;return max((abs(p.x)*k+p.y)/2.0,-p.y-kr);}float crossShape(vec2 p,float r){p=abs(p);vec2 b=vec2(0.4,1.0)*r;vec2 v=abs(p)-b.xy;vec2 h=abs(p)-b.yx;return min(max(v.x,v.y),max(h.x,h.y));}float diamond(vec2 p,float r){p=abs(p);return(max(abs(p.x-p.y),abs(p.x+p.y))-r)/sqrt(2.0);}void main(){float d;vec2 p=vRotationMatrix*(2.0*gl_PointCoord-1.0)*vRadiusWithPadding;float r=vRadius;if(vShape==CIRCLE){d=circle(p,r);}else if(vShape==SQUARE){d=square(p,r);}else if(vShape==TRIANGLE_UP){d=equilateralTriangle(p,r,true,false);}else if(vShape==CROSS){d=crossShape(p,r);}else if(vShape==DIAMOND){d=diamond(p,r);}else if(vShape==TRIANGLE_DOWN){d=equilateralTriangle(p,r,false,false);}else if(vShape==TRIANGLE_RIGHT){d=equilateralTriangle(p,r,false,true);}else if(vShape==TRIANGLE_LEFT){d=equilateralTriangle(p,r,true,true);}else{d=0.0;}if(!uPickingEnabled){lowp vec4 fillColor=mix(vFillColor,white,-d*uGradientStrength/vRadius);fragColor=distanceToColor(d+(uInwardStroke ? vHalfStrokeWidth : 0.0),fillColor,vStrokeColor,vHalfStrokeWidth);}else if(d-vHalfStrokeWidth<=0.0){fragColor=vPickingColor;}else{discard;}}", hr = 1 << 0,
|
|
8156
|
+
}void main(void){float semanticThresholdFactor=computeSemanticThresholdFactor();if(semanticThresholdFactor<=0.0){gl_PointSize=0.0;gl_Position=vec4(100.0,0.0,0.0,0.0);return;}float size=getScaled_size();vec2 pos=vec2(getScaled_x(),getScaled_y())+getDxDy();gl_Position=unitToNdc(applySampleFacet(pos));float strokeWidth=getScaled_strokeWidth();float diameter=sqrt(size)*uScaleFactor*semanticThresholdFactor*getDownscaleFactor(pos);float opacity=uViewOpacity;if(strokeWidth<=0.0||uInwardStroke){float minDiameter=1.0/uDevicePixelRatio;if(diameter<minDiameter){opacity*=pow(diameter/minDiameter,2.5);diameter=minDiameter;}}float fillOpa=getScaled_fillOpacity()*opacity;float strokeOpa=getScaled_strokeOpacity()*opacity;vShape=getScaled_shape();bool circle=vShape==0.0;float angleInDegrees=getScaled_angle();float angle=-angleInDegrees*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);vRotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);float roomForRotation=circle ? 1.0 : sin(mod(angle,PI/2.0)+PI/4.0)/sin(PI/4.0);float aaPadding=1.0/uDevicePixelRatio;float rotationPadding=(diameter*roomForRotation)-diameter;float strokePadding=uInwardStroke ? 0.0 : strokeWidth*(circle ? 1.0 : sqrt(3.0));float padding=rotationPadding+strokePadding+aaPadding;gl_PointSize=(diameter+padding)*uDevicePixelRatio;vRadius=diameter/2.0;vRadiusWithPadding=vRadius+padding/2.0;vHalfStrokeWidth=strokeWidth/2.0;vFillColor=vec4(getScaled_fill()*fillOpa,fillOpa);vStrokeColor=vec4(getScaled_stroke()*strokeOpa,strokeOpa);setupPicking();}`, T6 = "const lowp vec4 white=vec4(1.0);const lowp vec4 black=vec4(0.0,0.0,0.0,1.0);uniform bool uInwardStroke;uniform float uGradientStrength;in float vRadius;in float vRadiusWithPadding;in lowp vec4 vFillColor;in lowp vec4 vStrokeColor;in lowp float vShape;in lowp float vHalfStrokeWidth;in mat2 vRotationMatrix;out lowp vec4 fragColor;const float CIRCLE=0.0;const float SQUARE=1.0;const float TRIANGLE_UP=2.0;const float CROSS=3.0;const float DIAMOND=4.0;const float TRIANGLE_DOWN=5.0;const float TRIANGLE_RIGHT=6.0;const float TRIANGLE_LEFT=7.0;float circle(vec2 p,float r){return length(p)-r;}float square(vec2 p,float r){p=abs(p);return max(p.x,p.y)-r;}float equilateralTriangle(vec2 p,float r,bool flip,bool swap){if(swap){p.xy=p.yx;}if(flip){p.y=-p.y;}float k=sqrt(3.0);float kr=k*r;p.y-=kr/2.0;return max((abs(p.x)*k+p.y)/2.0,-p.y-kr);}float crossShape(vec2 p,float r){p=abs(p);vec2 b=vec2(0.4,1.0)*r;vec2 v=abs(p)-b.xy;vec2 h=abs(p)-b.yx;return min(max(v.x,v.y),max(h.x,h.y));}float diamond(vec2 p,float r){p=abs(p);return(max(abs(p.x-p.y),abs(p.x+p.y))-r)/sqrt(2.0);}void main(){float d;vec2 p=vRotationMatrix*(2.0*gl_PointCoord-1.0)*vRadiusWithPadding;float r=vRadius;if(vShape==CIRCLE){d=circle(p,r);}else if(vShape==SQUARE){d=square(p,r);}else if(vShape==TRIANGLE_UP){d=equilateralTriangle(p,r,true,false);}else if(vShape==CROSS){d=crossShape(p,r);}else if(vShape==DIAMOND){d=diamond(p,r);}else if(vShape==TRIANGLE_DOWN){d=equilateralTriangle(p,r,false,false);}else if(vShape==TRIANGLE_RIGHT){d=equilateralTriangle(p,r,false,true);}else if(vShape==TRIANGLE_LEFT){d=equilateralTriangle(p,r,true,true);}else{d=0.0;}if(!uPickingEnabled){lowp vec4 fillColor=mix(vFillColor,white,-d*uGradientStrength/vRadius);fragColor=distanceToColor(d+(uInwardStroke ? vHalfStrokeWidth : 0.0),fillColor,vStrokeColor,vHalfStrokeWidth);}else if(d-vHalfStrokeWidth<=0.0){fragColor=vPickingColor;}else{discard;}}", hr = 1 << 0, ti = 1 << 1, $d = 1 << 2, N6 = {};
|
|
8148
8157
|
class je {
|
|
8149
8158
|
get behavior() {
|
|
8150
8159
|
return 0;
|
|
@@ -9665,7 +9674,7 @@ Ba = new WeakMap(), js = new WeakMap(), Gs = new WeakMap(), sf = new WeakSet(),
|
|
|
9665
9674
|
)) == null ? void 0 : i.getScale();
|
|
9666
9675
|
if (o) {
|
|
9667
9676
|
let s = 0;
|
|
9668
|
-
if (
|
|
9677
|
+
if (Gr(o.type))
|
|
9669
9678
|
s = o.domain().length;
|
|
9670
9679
|
else if (["locus", "index"].includes(o.type)) {
|
|
9671
9680
|
const u = o.domain();
|
|
@@ -9875,7 +9884,7 @@ function eg() {
|
|
|
9875
9884
|
throw new Error(
|
|
9876
9885
|
"Index scale's tickFormat does not support a specifier!"
|
|
9877
9886
|
);
|
|
9878
|
-
const d =
|
|
9887
|
+
const d = Ni(
|
|
9879
9888
|
e[0],
|
|
9880
9889
|
e[1],
|
|
9881
9890
|
Math.min(f, Math.ceil(n))
|
|
@@ -9900,7 +9909,7 @@ function nT() {
|
|
|
9900
9909
|
const i = e.domain(), a = e.numberingOffset(), [o, s] = [
|
|
9901
9910
|
Math.max(i[0], 0),
|
|
9902
9911
|
Math.min(i[1], t.totalSize - 1)
|
|
9903
|
-
].map((f) => t.toChromosome(f)), c = Math.max(1,
|
|
9912
|
+
].map((f) => t.toChromosome(f)), c = Math.max(1, Ni(i[0], i[1], r)), u = [];
|
|
9904
9913
|
for (let f = o.index; f <= s.index; f++) {
|
|
9905
9914
|
const l = t.chromosomes[f], h = Math.max(
|
|
9906
9915
|
l.continuousStart + c,
|
|
@@ -9919,7 +9928,7 @@ function nT() {
|
|
|
9919
9928
|
throw new Error(
|
|
9920
9929
|
"Locus scale's tickFormat does not support a specifier!"
|
|
9921
9930
|
);
|
|
9922
|
-
const a = e.domain(), o = a[1] - a[0], s = e.numberingOffset(), u =
|
|
9931
|
+
const a = e.domain(), o = a[1] - a[0], s = e.numberingOffset(), u = Ni(
|
|
9923
9932
|
a[0],
|
|
9924
9933
|
a[1],
|
|
9925
9934
|
Math.min(r, Math.ceil(o))
|
|
@@ -10209,7 +10218,7 @@ function ET(e, t, n) {
|
|
|
10209
10218
|
t.interpolateGamma
|
|
10210
10219
|
)
|
|
10211
10220
|
);
|
|
10212
|
-
a && t.interpolate && e.interpolate ? e.interpolate(Nw(t.interpolate, t.interpolateGamma)) : Mt(e.round) ? e.round(i) : Mt(e.rangeRound) && e.interpolate(i ? iu :
|
|
10221
|
+
a && t.interpolate && e.interpolate ? e.interpolate(Nw(t.interpolate, t.interpolateGamma)) : Mt(e.round) ? e.round(i) : Mt(e.rangeRound) && e.interpolate(i ? iu : Xr), a && e.range(l0(a, t.reverse));
|
|
10213
10222
|
}
|
|
10214
10223
|
function CT(e, t, n) {
|
|
10215
10224
|
e !== Dw && e !== Yh && Re("Only band and point scales support rangeStep.");
|
|
@@ -10596,7 +10605,7 @@ me("index", eg, ["continuous"]);
|
|
|
10596
10605
|
me("locus", nT, ["continuous"]);
|
|
10597
10606
|
me("null", Of, []);
|
|
10598
10607
|
const N1 = "quantitative", f2 = "ordinal", l2 = "nominal", h2 = "locus", LT = "index";
|
|
10599
|
-
var tr, Fa, st, nr,
|
|
10608
|
+
var tr, Fa, st, nr, ci, uf, d2, ka, cc, rr, fi, Qs, h0, cf, g2, Q0, RT, Vs, d0;
|
|
10600
10609
|
class zT {
|
|
10601
10610
|
/**
|
|
10602
10611
|
* @param {Channel} channel
|
|
@@ -10731,7 +10740,7 @@ class zT {
|
|
|
10731
10740
|
};
|
|
10732
10741
|
n.type || (n.type = OT(this.channel, this.type));
|
|
10733
10742
|
const r = ee(this, ka, cc).call(this);
|
|
10734
|
-
return r && r.length > 0 ? n.domain = r :
|
|
10743
|
+
return r && r.length > 0 ? n.domain = r : Gr(n.type) && (n.domain = new c2()), !n.domain && n.domainMid !== void 0 && (n.domain = [n.domainMin ?? 0, n.domainMax ?? 1]), this.channel == "y" && Gr(n.type) && n.reverse == null && (n.reverse = !0), n.range && n.scheme && delete n.scheme, !("zoom" in n) && ["index", "locus"].includes(n.type) && (n.zoom = !0), PT(n, this.channel), n;
|
|
10735
10744
|
});
|
|
10736
10745
|
}
|
|
10737
10746
|
/**
|
|
@@ -10760,7 +10769,7 @@ class zT {
|
|
|
10760
10769
|
const r = this.getScaleProps();
|
|
10761
10770
|
a2(r, W(this, st)), ct(W(this, st).type) && Sn(this, tr, ee(this, Qs, h0).call(this));
|
|
10762
10771
|
const i = [...W(this, st).domain()];
|
|
10763
|
-
Tc(i, n) || (ee(this, rr,
|
|
10772
|
+
Tc(i, n) || (ee(this, rr, fi).call(this) && t ? (W(this, st).domain(n), this.zoomTo(i, 500)) : ee(this, nr, ci).call(this));
|
|
10764
10773
|
}
|
|
10765
10774
|
}
|
|
10766
10775
|
/**
|
|
@@ -10788,13 +10797,13 @@ class zT {
|
|
|
10788
10797
|
* @returns true if zoomed
|
|
10789
10798
|
*/
|
|
10790
10799
|
isZoomed() {
|
|
10791
|
-
return ee(this, rr,
|
|
10800
|
+
return ee(this, rr, fi).call(this) && Tc(ee(this, ka, cc).call(this), this.getDomain());
|
|
10792
10801
|
}
|
|
10793
10802
|
/**
|
|
10794
10803
|
* Returns true if zooming is supported and allowed in view spec.
|
|
10795
10804
|
*/
|
|
10796
10805
|
isZoomable() {
|
|
10797
|
-
return ee(this, rr,
|
|
10806
|
+
return ee(this, rr, fi).call(this) && !!this.getScaleProps().zoom;
|
|
10798
10807
|
}
|
|
10799
10808
|
/**
|
|
10800
10809
|
* Pans (translates) and zooms using a specified scale factor.
|
|
@@ -10805,7 +10814,7 @@ class zT {
|
|
|
10805
10814
|
* @returns {boolean} true if the scale was zoomed
|
|
10806
10815
|
*/
|
|
10807
10816
|
zoom(t, n, r) {
|
|
10808
|
-
if (!ee(this, rr,
|
|
10817
|
+
if (!ee(this, rr, fi).call(this))
|
|
10809
10818
|
return !1;
|
|
10810
10819
|
const i = this.getScale(), a = i.domain();
|
|
10811
10820
|
let o = [...a], s = i.invert(n);
|
|
@@ -10841,7 +10850,7 @@ class zT {
|
|
|
10841
10850
|
o,
|
|
10842
10851
|
W(this, tr)[0],
|
|
10843
10852
|
W(this, tr)[1]
|
|
10844
|
-
)), [0, 1].some((c) => o[c] != a[c]) ? (i.domain(o), ee(this, nr,
|
|
10853
|
+
)), [0, 1].some((c) => o[c] != a[c]) ? (i.domain(o), ee(this, nr, ci).call(this), !0) : !1;
|
|
10845
10854
|
}
|
|
10846
10855
|
/**
|
|
10847
10856
|
* Immediately zooms to the given interval.
|
|
@@ -10852,7 +10861,7 @@ class zT {
|
|
|
10852
10861
|
*/
|
|
10853
10862
|
async zoomTo(t, n = !1) {
|
|
10854
10863
|
var s;
|
|
10855
|
-
if (bf(n) && (n = n ? 700 : 0), !ee(this, rr,
|
|
10864
|
+
if (bf(n) && (n = n ? 700 : 0), !ee(this, rr, fi).call(this))
|
|
10856
10865
|
throw new Error("Not a zoomable scale!");
|
|
10857
10866
|
const r = this.fromComplexInterval(t), i = (s = this.members[0]) == null ? void 0 : s.view.context.animator, a = this.getScale(), o = (
|
|
10858
10867
|
/** @type {number[]} */
|
|
@@ -10865,11 +10874,11 @@ class zT {
|
|
|
10865
10874
|
easingFunction: FT,
|
|
10866
10875
|
onUpdate: (h) => {
|
|
10867
10876
|
const d = kT(c, f, h), p = (c - d) / (c - f), b = p * l + (1 - p) * u;
|
|
10868
|
-
a.domain([b - d / 2, b + d / 2]), ee(this, nr,
|
|
10877
|
+
a.domain([b - d / 2, b + d / 2]), ee(this, nr, ci).call(this);
|
|
10869
10878
|
}
|
|
10870
|
-
}), a.domain(r), ee(this, nr,
|
|
10879
|
+
}), a.domain(r), ee(this, nr, ci).call(this);
|
|
10871
10880
|
} else
|
|
10872
|
-
a.domain(r), i == null || i.requestRender(), ee(this, nr,
|
|
10881
|
+
a.domain(r), i == null || i.requestRender(), ee(this, nr, ci).call(this);
|
|
10873
10882
|
}
|
|
10874
10883
|
/**
|
|
10875
10884
|
* Resets the current domain to the initial one
|
|
@@ -10877,10 +10886,10 @@ class zT {
|
|
|
10877
10886
|
* @returns true if the domain was changed
|
|
10878
10887
|
*/
|
|
10879
10888
|
resetZoom() {
|
|
10880
|
-
if (!ee(this, rr,
|
|
10889
|
+
if (!ee(this, rr, fi).call(this))
|
|
10881
10890
|
throw new Error("Not a zoomable scale!");
|
|
10882
10891
|
const t = this.getDomain(), n = ee(this, ka, cc).call(this);
|
|
10883
|
-
return [0, 1].some((r) => n[r] != t[r]) ? (W(this, st).domain(n), ee(this, nr,
|
|
10892
|
+
return [0, 1].some((r) => n[r] != t[r]) ? (W(this, st).domain(n), ee(this, nr, ci).call(this), !0) : !1;
|
|
10884
10893
|
}
|
|
10885
10894
|
/**
|
|
10886
10895
|
* Returns the zoom level with respect to the reference domain span (the original domain).
|
|
@@ -10943,7 +10952,7 @@ class zT {
|
|
|
10943
10952
|
);
|
|
10944
10953
|
}
|
|
10945
10954
|
}
|
|
10946
|
-
tr = new WeakMap(), Fa = new WeakMap(), st = new WeakMap(), nr = new WeakSet(),
|
|
10955
|
+
tr = new WeakMap(), Fa = new WeakMap(), st = new WeakMap(), nr = new WeakSet(), ci = function() {
|
|
10947
10956
|
for (const t of W(this, Fa).values())
|
|
10948
10957
|
t({
|
|
10949
10958
|
type: "domain",
|
|
@@ -10958,7 +10967,7 @@ tr = new WeakMap(), Fa = new WeakMap(), st = new WeakMap(), nr = new WeakSet(),
|
|
|
10958
10967
|
});
|
|
10959
10968
|
}, ka = new WeakSet(), cc = function() {
|
|
10960
10969
|
return this.getConfiguredDomain() ?? (this.type == h2 ? this.getGenome().getExtent() : this.getDataDomain());
|
|
10961
|
-
}, rr = new WeakSet(),
|
|
10970
|
+
}, rr = new WeakSet(), fi = function() {
|
|
10962
10971
|
const t = this.getScale().type;
|
|
10963
10972
|
return ct(t);
|
|
10964
10973
|
}, Qs = new WeakSet(), h0 = function() {
|
|
@@ -10969,7 +10978,7 @@ tr = new WeakMap(), Fa = new WeakMap(), st = new WeakMap(), nr = new WeakSet(),
|
|
|
10969
10978
|
return t.type == "locus" ? this.getGenome().getExtent() : W(this, st).domain();
|
|
10970
10979
|
}, cf = new WeakSet(), g2 = function(t) {
|
|
10971
10980
|
const n = this.channel, r = {};
|
|
10972
|
-
return this.isExplicitDomain() && (r.zero = !1), xs(n) ? r.nice = !this.isExplicitDomain() :
|
|
10981
|
+
return this.isExplicitDomain() && (r.zero = !1), xs(n) ? r.nice = !this.isExplicitDomain() : _i(n) ? r.scheme = t == l2 ? "tableau10" : t == f2 ? "blues" : "viridis" : Pf(n) ? r.range = Rw(n) : n == "size" ? r.range = [0, 400] : n == "angle" && (r.range = [0, 360]), r;
|
|
10973
10982
|
}, Q0 = new WeakSet(), RT = function() {
|
|
10974
10983
|
return this.members.map((t) => t.view.getPathString()).join(", ");
|
|
10975
10984
|
}, Vs = new WeakSet(), d0 = function(t) {
|
|
@@ -11167,7 +11176,7 @@ class bt extends Xa {
|
|
|
11167
11176
|
const a = zi(
|
|
11168
11177
|
i.resolutionChannel ?? r
|
|
11169
11178
|
);
|
|
11170
|
-
if (!
|
|
11179
|
+
if (!Mi(a) || t == "axis" && !xs(a))
|
|
11171
11180
|
continue;
|
|
11172
11181
|
let o = this;
|
|
11173
11182
|
for (; (o.getConfiguredOrDefaultResolution(a, t) == "forced" || o.dataParent instanceof Xa && ["shared", "excluded", "forced"].includes(
|
|
@@ -11182,7 +11191,7 @@ class bt extends Xa {
|
|
|
11182
11191
|
)), o.resolutions[t][a].pushUnitView(
|
|
11183
11192
|
this,
|
|
11184
11193
|
r
|
|
11185
|
-
)) : t == "scale" &&
|
|
11194
|
+
)) : t == "scale" && Mi(r) && (o.resolutions[t][a] || (o.resolutions[t][a] = new zT(
|
|
11186
11195
|
a
|
|
11187
11196
|
)), o.resolutions[t][a].pushUnitView(
|
|
11188
11197
|
this,
|
|
@@ -11301,7 +11310,7 @@ class bt extends Xa {
|
|
|
11301
11310
|
* @param {import("../utils/interactionEvent").default} event
|
|
11302
11311
|
*/
|
|
11303
11312
|
propagateInteractionEvent(t) {
|
|
11304
|
-
t.target = this;
|
|
11313
|
+
this.handleInteractionEvent(void 0, t, !0), t.target = this, !t.stopped && this.handleInteractionEvent(void 0, t, !1);
|
|
11305
11314
|
}
|
|
11306
11315
|
/**
|
|
11307
11316
|
* @param {string} channel
|
|
@@ -11344,7 +11353,7 @@ class b2 extends je {
|
|
|
11344
11353
|
super(), this.params = t ?? { type: "collect" }, this.observers = [], this.facetBatches = void 0, this._init();
|
|
11345
11354
|
}
|
|
11346
11355
|
_init() {
|
|
11347
|
-
this._data = [], this.facetBatches = new
|
|
11356
|
+
this._data = [], this.facetBatches = new Ti([], JSON.stringify), this.facetBatches.set(void 0, this._data);
|
|
11348
11357
|
}
|
|
11349
11358
|
reset() {
|
|
11350
11359
|
super.reset(), this._init();
|
|
@@ -11774,7 +11783,7 @@ function JT(e, t) {
|
|
|
11774
11783
|
}
|
|
11775
11784
|
class $T extends je {
|
|
11776
11785
|
get behavior() {
|
|
11777
|
-
return
|
|
11786
|
+
return ti;
|
|
11778
11787
|
}
|
|
11779
11788
|
/**
|
|
11780
11789
|
*
|
|
@@ -11796,7 +11805,7 @@ class $T extends je {
|
|
|
11796
11805
|
}
|
|
11797
11806
|
class y2 extends je {
|
|
11798
11807
|
get behavior() {
|
|
11799
|
-
return
|
|
11808
|
+
return ti;
|
|
11800
11809
|
}
|
|
11801
11810
|
/**
|
|
11802
11811
|
*
|
|
@@ -13134,7 +13143,7 @@ const eN = [
|
|
|
13134
13143
|
};
|
|
13135
13144
|
class aN extends je {
|
|
13136
13145
|
get behavior() {
|
|
13137
|
-
return
|
|
13146
|
+
return ti;
|
|
13138
13147
|
}
|
|
13139
13148
|
/**
|
|
13140
13149
|
*
|
|
@@ -13152,7 +13161,7 @@ class aN extends je {
|
|
|
13152
13161
|
const oN = 65536;
|
|
13153
13162
|
class sN extends je {
|
|
13154
13163
|
get behavior() {
|
|
13155
|
-
return
|
|
13164
|
+
return ti;
|
|
13156
13165
|
}
|
|
13157
13166
|
/**
|
|
13158
13167
|
*
|
|
@@ -13229,7 +13238,7 @@ class uN extends je {
|
|
|
13229
13238
|
}
|
|
13230
13239
|
class cN extends je {
|
|
13231
13240
|
get behavior() {
|
|
13232
|
-
return
|
|
13241
|
+
return ti;
|
|
13233
13242
|
}
|
|
13234
13243
|
/**
|
|
13235
13244
|
* @param {import("../../spec/transform").RegexExtractParams} params
|
|
@@ -13330,7 +13339,7 @@ class fN extends je {
|
|
|
13330
13339
|
}
|
|
13331
13340
|
class lN extends je {
|
|
13332
13341
|
get behavior() {
|
|
13333
|
-
return
|
|
13342
|
+
return ti;
|
|
13334
13343
|
}
|
|
13335
13344
|
/**
|
|
13336
13345
|
* @param {import("../../spec/transform").StackParams} params
|
|
@@ -13463,7 +13472,7 @@ class dN extends je {
|
|
|
13463
13472
|
const gN = "_uniqueId", B1 = 1e4, F1 = [null];
|
|
13464
13473
|
class x2 extends je {
|
|
13465
13474
|
get behavior() {
|
|
13466
|
-
return
|
|
13475
|
+
return ti;
|
|
13467
13476
|
}
|
|
13468
13477
|
/**
|
|
13469
13478
|
*
|
|
@@ -14280,7 +14289,7 @@ ng.write = function(e, t, n, r, i, a) {
|
|
|
14280
14289
|
return aa(Bt(g, y.length - m), y, m, v);
|
|
14281
14290
|
}
|
|
14282
14291
|
function N(y, g, m, v) {
|
|
14283
|
-
return aa(
|
|
14292
|
+
return aa(ii(g), y, m, v);
|
|
14284
14293
|
}
|
|
14285
14294
|
function F(y, g, m, v) {
|
|
14286
14295
|
return aa(Eo(g), y, m, v);
|
|
@@ -14543,7 +14552,7 @@ ng.write = function(e, t, n, r, i, a) {
|
|
|
14543
14552
|
let O = Number(g >> BigInt(32) & BigInt(4294967295));
|
|
14544
14553
|
return y[m++] = O, O = O >> 8, y[m++] = O, O = O >> 8, y[m++] = O, O = O >> 8, y[m++] = O, m;
|
|
14545
14554
|
}
|
|
14546
|
-
function
|
|
14555
|
+
function ni(y, g, m, v, M) {
|
|
14547
14556
|
P(g, v, M, y, m, 7);
|
|
14548
14557
|
let k = Number(g & BigInt(4294967295));
|
|
14549
14558
|
y[m + 7] = k, k = k >> 8, y[m + 6] = k, k = k >> 8, y[m + 5] = k, k = k >> 8, y[m + 4] = k;
|
|
@@ -14553,7 +14562,7 @@ ng.write = function(e, t, n, r, i, a) {
|
|
|
14553
14562
|
s.prototype.writeBigUInt64LE = En(function(g, m = 0) {
|
|
14554
14563
|
return na(this, g, m, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14555
14564
|
}), s.prototype.writeBigUInt64BE = En(function(g, m = 0) {
|
|
14556
|
-
return
|
|
14565
|
+
return ni(this, g, m, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
14557
14566
|
}), s.prototype.writeIntLE = function(g, m, v, M) {
|
|
14558
14567
|
if (g = +g, m = m >>> 0, !M) {
|
|
14559
14568
|
const De = Math.pow(2, 8 * v - 1);
|
|
@@ -14585,7 +14594,7 @@ ng.write = function(e, t, n, r, i, a) {
|
|
|
14585
14594
|
}, s.prototype.writeBigInt64LE = En(function(g, m = 0) {
|
|
14586
14595
|
return na(this, g, m, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14587
14596
|
}), s.prototype.writeBigInt64BE = En(function(g, m = 0) {
|
|
14588
|
-
return
|
|
14597
|
+
return ni(this, g, m, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
14589
14598
|
});
|
|
14590
14599
|
function ra(y, g, m, v, M, k) {
|
|
14591
14600
|
if (m + v > y.length)
|
|
@@ -14593,13 +14602,13 @@ ng.write = function(e, t, n, r, i, a) {
|
|
|
14593
14602
|
if (m < 0)
|
|
14594
14603
|
throw new RangeError("Index out of range");
|
|
14595
14604
|
}
|
|
14596
|
-
function
|
|
14605
|
+
function ri(y, g, m, v, M) {
|
|
14597
14606
|
return g = +g, m = m >>> 0, M || ra(y, g, m, 4), n.write(y, g, m, v, 23, 4), m + 4;
|
|
14598
14607
|
}
|
|
14599
14608
|
s.prototype.writeFloatLE = function(g, m, v) {
|
|
14600
|
-
return
|
|
14609
|
+
return ri(this, g, m, !0, v);
|
|
14601
14610
|
}, s.prototype.writeFloatBE = function(g, m, v) {
|
|
14602
|
-
return
|
|
14611
|
+
return ri(this, g, m, !1, v);
|
|
14603
14612
|
};
|
|
14604
14613
|
function ia(y, g, m, v, M) {
|
|
14605
14614
|
return g = +g, m = m >>> 0, M || ra(y, g, m, 8), n.write(y, g, m, v, 52, 8), m + 8;
|
|
@@ -14798,7 +14807,7 @@ ng.write = function(e, t, n, r, i, a) {
|
|
|
14798
14807
|
}
|
|
14799
14808
|
return k;
|
|
14800
14809
|
}
|
|
14801
|
-
function
|
|
14810
|
+
function ii(y) {
|
|
14802
14811
|
const g = [];
|
|
14803
14812
|
for (let m = 0; m < y.length; ++m)
|
|
14804
14813
|
g.push(y.charCodeAt(m) & 255);
|
|
@@ -14991,7 +15000,7 @@ function po(e) {
|
|
|
14991
15000
|
for (var t = e.length; --t >= 0; )
|
|
14992
15001
|
e[t] = 0;
|
|
14993
15002
|
}
|
|
14994
|
-
var PN = 0, S2 = 1, UN = 2, jN = 3, GN = 258, rg = 29, xu = 256, Ss = xu + 1 + rg, Sa = 30, ig = 19, D2 = 2 * Ss + 1,
|
|
15003
|
+
var PN = 0, S2 = 1, UN = 2, jN = 3, GN = 258, rg = 29, xu = 256, Ss = xu + 1 + rg, Sa = 30, ig = 19, D2 = 2 * Ss + 1, mi = 15, jl = 16, HN = 7, ag = 256, I2 = 16, _2 = 17, M2 = 18, g0 = (
|
|
14995
15004
|
/* extra bits for each length code */
|
|
14996
15005
|
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
|
|
14997
15006
|
), fc = (
|
|
@@ -15048,7 +15057,7 @@ function ZN(e) {
|
|
|
15048
15057
|
}
|
|
15049
15058
|
function YN(e, t) {
|
|
15050
15059
|
var n = t.dyn_tree, r = t.max_code, i = t.stat_desc.static_tree, a = t.stat_desc.has_stree, o = t.stat_desc.extra_bits, s = t.stat_desc.extra_base, c = t.stat_desc.max_length, u, f, l, h, d, p, b = 0;
|
|
15051
|
-
for (h = 0; h <=
|
|
15060
|
+
for (h = 0; h <= mi; h++)
|
|
15052
15061
|
e.bl_count[h] = 0;
|
|
15053
15062
|
for (n[e.heap[e.heap_max] * 2 + 1] = 0, u = e.heap_max + 1; u < D2; u++)
|
|
15054
15063
|
f = e.heap[u], h = n[n[f * 2 + 1] * 2 + 1] + 1, h > c && (h = c, b++), n[f * 2 + 1] = h, !(f > r) && (e.bl_count[h]++, d = 0, f >= s && (d = o[f - s]), p = n[f * 2], e.opt_len += p * (h + d), a && (e.static_len += p * (i[f * 2 + 1] + d)));
|
|
@@ -15064,8 +15073,8 @@ function YN(e, t) {
|
|
|
15064
15073
|
}
|
|
15065
15074
|
}
|
|
15066
15075
|
function z2(e, t, n) {
|
|
15067
|
-
var r = new Array(
|
|
15068
|
-
for (a = 1; a <=
|
|
15076
|
+
var r = new Array(mi + 1), i = 0, a, o;
|
|
15077
|
+
for (a = 1; a <= mi; a++)
|
|
15069
15078
|
r[a] = i = i + n[a - 1] << 1;
|
|
15070
15079
|
for (o = 0; o <= t; o++) {
|
|
15071
15080
|
var s = e[o * 2 + 1];
|
|
@@ -15073,7 +15082,7 @@ function z2(e, t, n) {
|
|
|
15073
15082
|
}
|
|
15074
15083
|
}
|
|
15075
15084
|
function WN() {
|
|
15076
|
-
var e, t, n, r, i, a = new Array(
|
|
15085
|
+
var e, t, n, r, i, a = new Array(mi + 1);
|
|
15077
15086
|
for (n = 0, r = 0; r < rg - 1; r++)
|
|
15078
15087
|
for (og[r] = n, e = 0; e < 1 << g0[r]; e++)
|
|
15079
15088
|
Is[n++] = r;
|
|
@@ -15083,7 +15092,7 @@ function WN() {
|
|
|
15083
15092
|
for (i >>= 7; r < Sa; r++)
|
|
15084
15093
|
for (Qc[r] = i << 7, e = 0; e < 1 << fc[r] - 7; e++)
|
|
15085
15094
|
Ds[256 + i++] = r;
|
|
15086
|
-
for (t = 0; t <=
|
|
15095
|
+
for (t = 0; t <= mi; t++)
|
|
15087
15096
|
a[t] = 0;
|
|
15088
15097
|
for (e = 0; e <= 143; )
|
|
15089
15098
|
Jn[e * 2 + 1] = 8, e++, a[8]++;
|
|
@@ -15095,7 +15104,7 @@ function WN() {
|
|
|
15095
15104
|
Jn[e * 2 + 1] = 8, e++, a[8]++;
|
|
15096
15105
|
for (z2(Jn, Ss + 1, a), e = 0; e < Sa; e++)
|
|
15097
15106
|
qo[e * 2 + 1] = 5, qo[e * 2] = L2(e, 5);
|
|
15098
|
-
N2 = new Gl(Jn, g0, xu + 1, Ss,
|
|
15107
|
+
N2 = new Gl(Jn, g0, xu + 1, Ss, mi), B2 = new Gl(qo, fc, 0, Sa, mi), F2 = new Gl(new Array(0), QN, 0, ig, HN);
|
|
15099
15108
|
}
|
|
15100
15109
|
function R2(e) {
|
|
15101
15110
|
var t;
|
|
@@ -15280,7 +15289,7 @@ var j2 = oB, sg = {
|
|
|
15280
15289
|
/* Z_BUF_ERROR (-5) */
|
|
15281
15290
|
"-6": "incompatible version"
|
|
15282
15291
|
/* Z_VERSION_ERROR (-6) */
|
|
15283
|
-
}, mt = dr, Kt = go, G2 = U2, wr = j2, sB = sg, Ki = 0, uB = 1, cB = 3, Br = 4, G1 = 5, Bn = 0, H1 = 1, Jt = -2, fB = -3, Vl = -5, lB = -1, hB = 1, Zu = 2, dB = 3, gB = 4, pB = 0, mB = 2, $f = 8, bB = 9, yB = 15, wB = 8, xB = 29, AB = 256, m0 = AB + 1 + xB, vB = 30, EB = 19, CB = 2 * m0 + 1, SB = 15, oe = 3, Mr = 258, gn = Mr + oe + 1, DB = 32, el = 42, b0 = 69, lc = 73, hc = 91, dc = 103,
|
|
15292
|
+
}, mt = dr, Kt = go, G2 = U2, wr = j2, sB = sg, Ki = 0, uB = 1, cB = 3, Br = 4, G1 = 5, Bn = 0, H1 = 1, Jt = -2, fB = -3, Vl = -5, lB = -1, hB = 1, Zu = 2, dB = 3, gB = 4, pB = 0, mB = 2, $f = 8, bB = 9, yB = 15, wB = 8, xB = 29, AB = 256, m0 = AB + 1 + xB, vB = 30, EB = 19, CB = 2 * m0 + 1, SB = 15, oe = 3, Mr = 258, gn = Mr + oe + 1, DB = 32, el = 42, b0 = 69, lc = 73, hc = 91, dc = 103, bi = 113, Po = 666, Qe = 1, Au = 2, Pi = 3, mo = 4, IB = 3;
|
|
15284
15293
|
function Tr(e, t) {
|
|
15285
15294
|
return e.msg = sB[t], t;
|
|
15286
15295
|
}
|
|
@@ -15477,7 +15486,7 @@ function FB() {
|
|
|
15477
15486
|
}
|
|
15478
15487
|
function Q2(e) {
|
|
15479
15488
|
var t;
|
|
15480
|
-
return !e || !e.state ? Tr(e, Jt) : (e.total_in = e.total_out = 0, e.data_type = mB, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? el :
|
|
15489
|
+
return !e || !e.state ? Tr(e, Jt) : (e.total_in = e.total_out = 0, e.data_type = mB, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? el : bi, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = Ki, Kt._tr_init(t), Bn);
|
|
15481
15490
|
}
|
|
15482
15491
|
function V2(e) {
|
|
15483
15492
|
var t = Q2(e);
|
|
@@ -15510,10 +15519,10 @@ function zB(e, t) {
|
|
|
15510
15519
|
e.adler = 0, fe(r, 31), fe(r, 139), fe(r, 8), r.gzhead ? (fe(
|
|
15511
15520
|
r,
|
|
15512
15521
|
(r.gzhead.text ? 1 : 0) + (r.gzhead.hcrc ? 2 : 0) + (r.gzhead.extra ? 4 : 0) + (r.gzhead.name ? 8 : 0) + (r.gzhead.comment ? 16 : 0)
|
|
15513
|
-
), fe(r, r.gzhead.time & 255), fe(r, r.gzhead.time >> 8 & 255), fe(r, r.gzhead.time >> 16 & 255), fe(r, r.gzhead.time >> 24 & 255), fe(r, r.level === 9 ? 2 : r.strategy >= Zu || r.level < 2 ? 4 : 0), fe(r, r.gzhead.os & 255), r.gzhead.extra && r.gzhead.extra.length && (fe(r, r.gzhead.extra.length & 255), fe(r, r.gzhead.extra.length >> 8 & 255)), r.gzhead.hcrc && (e.adler = wr(e.adler, r.pending_buf, r.pending, 0)), r.gzindex = 0, r.status = b0) : (fe(r, 0), fe(r, 0), fe(r, 0), fe(r, 0), fe(r, 0), fe(r, r.level === 9 ? 2 : r.strategy >= Zu || r.level < 2 ? 4 : 0), fe(r, IB), r.status =
|
|
15522
|
+
), fe(r, r.gzhead.time & 255), fe(r, r.gzhead.time >> 8 & 255), fe(r, r.gzhead.time >> 16 & 255), fe(r, r.gzhead.time >> 24 & 255), fe(r, r.level === 9 ? 2 : r.strategy >= Zu || r.level < 2 ? 4 : 0), fe(r, r.gzhead.os & 255), r.gzhead.extra && r.gzhead.extra.length && (fe(r, r.gzhead.extra.length & 255), fe(r, r.gzhead.extra.length >> 8 & 255)), r.gzhead.hcrc && (e.adler = wr(e.adler, r.pending_buf, r.pending, 0)), r.gzindex = 0, r.status = b0) : (fe(r, 0), fe(r, 0), fe(r, 0), fe(r, 0), fe(r, 0), fe(r, r.level === 9 ? 2 : r.strategy >= Zu || r.level < 2 ? 4 : 0), fe(r, IB), r.status = bi);
|
|
15514
15523
|
else {
|
|
15515
15524
|
var o = $f + (r.w_bits - 8 << 4) << 8, s = -1;
|
|
15516
|
-
r.strategy >= Zu || r.level < 2 ? s = 0 : r.level < 6 ? s = 1 : r.level === 6 ? s = 2 : s = 3, o |= s << 6, r.strstart !== 0 && (o |= DB), o += 31 - o % 31, r.status =
|
|
15525
|
+
r.strategy >= Zu || r.level < 2 ? s = 0 : r.level < 6 ? s = 1 : r.level === 6 ? s = 2 : s = 3, o |= s << 6, r.strstart !== 0 && (o |= DB), o += 31 - o % 31, r.status = bi, Fo(r, o), r.strstart !== 0 && (Fo(r, e.adler >>> 16), Fo(r, e.adler & 65535)), e.adler = 1;
|
|
15517
15526
|
}
|
|
15518
15527
|
if (r.status === b0)
|
|
15519
15528
|
if (r.gzhead.extra) {
|
|
@@ -15548,7 +15557,7 @@ function zB(e, t) {
|
|
|
15548
15557
|
r.gzhead.hcrc && r.pending > i && (e.adler = wr(e.adler, r.pending_buf, r.pending - i, i)), a === 0 && (r.status = dc);
|
|
15549
15558
|
} else
|
|
15550
15559
|
r.status = dc;
|
|
15551
|
-
if (r.status === dc && (r.gzhead.hcrc ? (r.pending + 2 > r.pending_buf_size && xr(e), r.pending + 2 <= r.pending_buf_size && (fe(r, e.adler & 255), fe(r, e.adler >> 8 & 255), e.adler = 0, r.status =
|
|
15560
|
+
if (r.status === dc && (r.gzhead.hcrc ? (r.pending + 2 > r.pending_buf_size && xr(e), r.pending + 2 <= r.pending_buf_size && (fe(r, e.adler & 255), fe(r, e.adler >> 8 & 255), e.adler = 0, r.status = bi)) : r.status = bi), r.pending !== 0) {
|
|
15552
15561
|
if (xr(e), e.avail_out === 0)
|
|
15553
15562
|
return r.last_flush = -1, Bn;
|
|
15554
15563
|
} else if (e.avail_in === 0 && Q1(t) <= Q1(n) && t !== Br)
|
|
@@ -15566,7 +15575,7 @@ function zB(e, t) {
|
|
|
15566
15575
|
}
|
|
15567
15576
|
function RB(e) {
|
|
15568
15577
|
var t;
|
|
15569
|
-
return !e || !e.state ? Jt : (t = e.state.status, t !== el && t !== b0 && t !== lc && t !== hc && t !== dc && t !==
|
|
15578
|
+
return !e || !e.state ? Jt : (t = e.state.status, t !== el && t !== b0 && t !== lc && t !== hc && t !== dc && t !== bi && t !== Po ? Tr(e, Jt) : (e.state = null, t === bi ? Tr(e, fB) : Bn));
|
|
15570
15579
|
}
|
|
15571
15580
|
function OB(e, t) {
|
|
15572
15581
|
var n = t.length, r, i, a, o, s, c, u, f;
|
|
@@ -17645,7 +17654,7 @@ class zF {
|
|
|
17645
17654
|
return Array.from(this.references).filter(([t, n]) => !n.resolved && !n.requested).map(([t, n]) => t);
|
|
17646
17655
|
}
|
|
17647
17656
|
}
|
|
17648
|
-
const cn = /* @__PURE__ */ new Map(),
|
|
17657
|
+
const cn = /* @__PURE__ */ new Map(), ui = "___parser_", fn = {
|
|
17649
17658
|
uint8: 1,
|
|
17650
17659
|
uint16le: 2,
|
|
17651
17660
|
uint16be: 2,
|
|
@@ -17999,7 +18008,7 @@ class re {
|
|
|
17999
18008
|
}
|
|
18000
18009
|
getContext(t) {
|
|
18001
18010
|
const n = new zF(t, this.useContextVariables);
|
|
18002
|
-
return n.pushCode("var dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"), this.alias ? (this.addAliasedCode(n), n.pushCode(`return ${
|
|
18011
|
+
return n.pushCode("var dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"), this.alias ? (this.addAliasedCode(n), n.pushCode(`return ${ui + this.alias}(0).result;`)) : this.addRawCode(n), n;
|
|
18003
18012
|
}
|
|
18004
18013
|
getCode() {
|
|
18005
18014
|
const t = "imports";
|
|
@@ -18009,7 +18018,7 @@ class re {
|
|
|
18009
18018
|
t.pushCode("var offset = 0;"), t.pushCode(`var vars = ${this.constructorFn ? "new constructorFn()" : "{}"};`), t.pushCode("vars.$parent = null;"), t.pushCode("vars.$root = vars;"), this.generate(t), this.resolveReferences(t), t.pushCode("delete vars.$parent;"), t.pushCode("delete vars.$root;"), t.pushCode("return vars;");
|
|
18010
18019
|
}
|
|
18011
18020
|
addAliasedCode(t) {
|
|
18012
|
-
return t.pushCode(`function ${
|
|
18021
|
+
return t.pushCode(`function ${ui + this.alias}(offset, context) {`), t.pushCode(`var vars = ${this.constructorFn ? "new constructorFn()" : "{}"};`), t.pushCode("var ctx = Object.assign({$parent: null, $root: vars}, context || {});"), t.pushCode("vars = Object.assign(vars, ctx);"), this.generate(t), t.markResolved(this.alias), this.resolveReferences(t), t.pushCode("Object.keys(ctx).forEach(function (item) { delete vars[item]; });"), t.pushCode("return { offset: offset, result: vars };"), t.pushCode("}"), t;
|
|
18013
18022
|
}
|
|
18014
18023
|
resolveReferences(t) {
|
|
18015
18024
|
const n = t.getUnresolvedReferences();
|
|
@@ -18201,7 +18210,7 @@ class re {
|
|
|
18201
18210
|
if (u ? t.pushCode(`${o} = {};`) : t.pushCode(`${o} = [];`), typeof this.options.readUntil == "function" ? t.pushCode("do {") : this.options.readUntil === "eof" ? t.pushCode(`for (var ${a} = 0; offset < buffer.length; ${a}++) {`) : r !== void 0 ? t.pushCode(`for (var ${a} = offset + ${r}; offset < ${a}; ) {`) : t.pushCode(`for (var ${a} = ${n}; ${a} > 0; ${a}--) {`), typeof i == "string")
|
|
18202
18211
|
if (cn.get(i)) {
|
|
18203
18212
|
const f = t.generateTmpVariable();
|
|
18204
|
-
if (t.pushCode(`var ${f} = ${
|
|
18213
|
+
if (t.pushCode(`var ${f} = ${ui + i}(offset, {`), t.useContextVariables) {
|
|
18205
18214
|
const l = t.generateVariable();
|
|
18206
18215
|
t.pushCode(`$parent: ${l},`), t.pushCode(`$root: ${l}.$root,`), !this.options.readUntil && r === void 0 && t.pushCode(`$index: ${n} - ${a},`);
|
|
18207
18216
|
}
|
|
@@ -18225,7 +18234,7 @@ class re {
|
|
|
18225
18234
|
const i = t.generateVariable(this.varName);
|
|
18226
18235
|
if (cn.has(r)) {
|
|
18227
18236
|
const a = t.generateTmpVariable();
|
|
18228
|
-
t.pushCode(`var ${a} = ${
|
|
18237
|
+
t.pushCode(`var ${a} = ${ui + r}(offset, {`), t.useContextVariables && (t.pushCode(`$parent: ${i}.$parent,`), t.pushCode(`$root: ${i}.$root,`)), t.pushCode("});"), t.pushCode(`${i} = ${a}.result; offset = ${a}.offset;`), r !== this.alias && t.addReference(r);
|
|
18229
18238
|
} else {
|
|
18230
18239
|
const a = Ku[r], o = Ju[r];
|
|
18231
18240
|
t.pushCode(`${i} = dataView.get${a}(offset, ${o});`), t.pushCode(`offset += ${fn[r]}`);
|
|
@@ -18256,7 +18265,7 @@ class re {
|
|
|
18256
18265
|
t.pushPath(this.varName), this.options.type.generate(t), t.popPath(this.varName), this.varName && t.useContextVariables && t.useContextVariables && (t.pushCode(`delete ${n}.$parent;`), t.pushCode(`delete ${n}.$root;`));
|
|
18257
18266
|
} else if (cn.has(this.options.type)) {
|
|
18258
18267
|
const r = t.generateTmpVariable();
|
|
18259
|
-
if (t.pushCode(`var ${r} = ${
|
|
18268
|
+
if (t.pushCode(`var ${r} = ${ui + this.options.type}(offset, {`), t.useContextVariables) {
|
|
18260
18269
|
const i = t.generateVariable();
|
|
18261
18270
|
t.pushCode(`$parent: ${i},`), t.pushCode(`$root: ${i}.$root,`);
|
|
18262
18271
|
}
|
|
@@ -18282,7 +18291,7 @@ class re {
|
|
|
18282
18291
|
this.varName && t.pushCode(`${n} = {};`), t.pushPath(this.varName), this.options.type.generate(t), t.popPath(this.varName);
|
|
18283
18292
|
else if (cn.has(this.options.type)) {
|
|
18284
18293
|
const c = t.generateTmpVariable();
|
|
18285
|
-
t.pushCode(`var ${c} = ${
|
|
18294
|
+
t.pushCode(`var ${c} = ${ui + this.options.type}(0);`), t.pushCode(`${n} = ${c}.result;`), this.options.type !== this.alias && t.addReference(this.options.type);
|
|
18286
18295
|
}
|
|
18287
18296
|
t.pushCode(`buffer = ${i};`), t.pushCode(`dataView = ${o};`), t.pushCode(`offset = ${a};`);
|
|
18288
18297
|
}
|
|
@@ -18302,7 +18311,7 @@ class re {
|
|
|
18302
18311
|
t.pushPath(this.varName), this.options.type.generate(t), t.popPath(this.varName), t.useContextVariables && (t.pushCode(`delete ${a}.$parent;`), t.pushCode(`delete ${a}.$root;`));
|
|
18303
18312
|
} else if (cn.has(this.options.type)) {
|
|
18304
18313
|
const o = t.generateTmpVariable();
|
|
18305
|
-
if (t.pushCode(`var ${o} = ${
|
|
18314
|
+
if (t.pushCode(`var ${o} = ${ui + this.options.type}(offset, {`), t.useContextVariables) {
|
|
18306
18315
|
const s = t.generateVariable();
|
|
18307
18316
|
t.pushCode(`$parent: ${s},`), t.pushCode(`$root: ${s}.$root,`);
|
|
18308
18317
|
}
|
|
@@ -18897,7 +18906,7 @@ function bo(e) {
|
|
|
18897
18906
|
for (; --t >= 0; )
|
|
18898
18907
|
e[t] = 0;
|
|
18899
18908
|
}
|
|
18900
|
-
const ak = 0, AA = 1, ok = 2, sk = 3, uk = 258, yg = 29, Cu = 256, Ts = Cu + 1 + yg, _a = 30, wg = 19, vA = 2 * Ts + 1,
|
|
18909
|
+
const ak = 0, AA = 1, ok = 2, sk = 3, uk = 258, yg = 29, Cu = 256, Ts = Cu + 1 + yg, _a = 30, wg = 19, vA = 2 * Ts + 1, yi = 15, eh = 16, ck = 7, xg = 256, EA = 16, CA = 17, SA = 18, S0 = (
|
|
18901
18910
|
/* extra bits for each length code */
|
|
18902
18911
|
new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0])
|
|
18903
18912
|
), mc = (
|
|
@@ -18947,7 +18956,7 @@ const TA = (e) => e < 256 ? Ns[e] : Ns[256 + (e >>> 7)], Fs = (e, t) => {
|
|
|
18947
18956
|
}, dk = (e, t) => {
|
|
18948
18957
|
const n = t.dyn_tree, r = t.max_code, i = t.stat_desc.static_tree, a = t.stat_desc.has_stree, o = t.stat_desc.extra_bits, s = t.stat_desc.extra_base, c = t.stat_desc.max_length;
|
|
18949
18958
|
let u, f, l, h, d, p, b = 0;
|
|
18950
|
-
for (h = 0; h <=
|
|
18959
|
+
for (h = 0; h <= yi; h++)
|
|
18951
18960
|
e.bl_count[h] = 0;
|
|
18952
18961
|
for (n[e.heap[e.heap_max] * 2 + 1] = 0, u = e.heap_max + 1; u < vA; u++)
|
|
18953
18962
|
f = e.heap[u], h = n[n[f * 2 + 1] * 2 + 1] + 1, h > c && (h = c, b++), n[f * 2 + 1] = h, !(f > r) && (e.bl_count[h]++, d = 0, f >= s && (d = o[f - s]), p = n[f * 2], e.opt_len += p * (h + d), a && (e.static_len += p * (i[f * 2 + 1] + d)));
|
|
@@ -18962,9 +18971,9 @@ const TA = (e) => e < 256 ? Ns[e] : Ns[256 + (e >>> 7)], Fs = (e, t) => {
|
|
|
18962
18971
|
l = e.heap[--u], !(l > r) && (n[l * 2 + 1] !== h && (e.opt_len += (h - n[l * 2 + 1]) * n[l * 2], n[l * 2 + 1] = h), f--);
|
|
18963
18972
|
}
|
|
18964
18973
|
}, BA = (e, t, n) => {
|
|
18965
|
-
const r = new Array(
|
|
18974
|
+
const r = new Array(yi + 1);
|
|
18966
18975
|
let i = 0, a, o;
|
|
18967
|
-
for (a = 1; a <=
|
|
18976
|
+
for (a = 1; a <= yi; a++)
|
|
18968
18977
|
i = i + n[a - 1] << 1, r[a] = i;
|
|
18969
18978
|
for (o = 0; o <= t; o++) {
|
|
18970
18979
|
let s = e[o * 2 + 1];
|
|
@@ -18972,7 +18981,7 @@ const TA = (e) => e < 256 ? Ns[e] : Ns[256 + (e >>> 7)], Fs = (e, t) => {
|
|
|
18972
18981
|
}
|
|
18973
18982
|
}, gk = () => {
|
|
18974
18983
|
let e, t, n, r, i;
|
|
18975
|
-
const a = new Array(
|
|
18984
|
+
const a = new Array(yi + 1);
|
|
18976
18985
|
for (n = 0, r = 0; r < yg - 1; r++)
|
|
18977
18986
|
for (Ag[r] = n, e = 0; e < 1 << S0[r]; e++)
|
|
18978
18987
|
Bs[n++] = r;
|
|
@@ -18982,7 +18991,7 @@ const TA = (e) => e < 256 ? Ns[e] : Ns[256 + (e >>> 7)], Fs = (e, t) => {
|
|
|
18982
18991
|
for (i >>= 7; r < _a; r++)
|
|
18983
18992
|
for (Xc[r] = i << 7, e = 0; e < 1 << mc[r] - 7; e++)
|
|
18984
18993
|
Ns[256 + i++] = r;
|
|
18985
|
-
for (t = 0; t <=
|
|
18994
|
+
for (t = 0; t <= yi; t++)
|
|
18986
18995
|
a[t] = 0;
|
|
18987
18996
|
for (e = 0; e <= 143; )
|
|
18988
18997
|
$n[e * 2 + 1] = 8, e++, a[8]++;
|
|
@@ -18994,7 +19003,7 @@ const TA = (e) => e < 256 ? Ns[e] : Ns[256 + (e >>> 7)], Fs = (e, t) => {
|
|
|
18994
19003
|
$n[e * 2 + 1] = 8, e++, a[8]++;
|
|
18995
19004
|
for (BA($n, Ts + 1, a), e = 0; e < _a; e++)
|
|
18996
19005
|
es[e * 2 + 1] = 5, es[e * 2] = NA(e, 5);
|
|
18997
|
-
IA = new th($n, S0, Cu + 1, Ts,
|
|
19006
|
+
IA = new th($n, S0, Cu + 1, Ts, yi), _A = new th(es, mc, 0, _a, yi), MA = new th(new Array(0), fk, 0, wg, ck);
|
|
18998
19007
|
}, FA = (e) => {
|
|
18999
19008
|
let t;
|
|
19000
19009
|
for (t = 0; t < Ts; t++)
|
|
@@ -19223,7 +19232,7 @@ const { _tr_init: Bk, _tr_stored_block: I0, _tr_flush_block: Fk, _tr_tally: Fr,
|
|
|
19223
19232
|
Z_DEFAULT_STRATEGY: Gk,
|
|
19224
19233
|
Z_UNKNOWN: Hk,
|
|
19225
19234
|
Z_DEFLATED: al
|
|
19226
|
-
} = Su, Qk = 9, Vk = 15, Zk = 8, Yk = 29, Wk = 256, _0 = Wk + 1 + Yk, qk = 30, Xk = 19, Kk = 2 * _0 + 1, Jk = 15, se = 3, Nr = 258, Un = Nr + se + 1, $k = 32, eo = 42, vg = 57, M0 = 69, T0 = 73, N0 = 91, B0 = 103,
|
|
19235
|
+
} = Su, Qk = 9, Vk = 15, Zk = 8, Yk = 29, Wk = 256, _0 = Wk + 1 + Yk, qk = 30, Xk = 19, Kk = 2 * _0 + 1, Jk = 15, se = 3, Nr = 258, Un = Nr + se + 1, $k = 32, eo = 42, vg = 57, M0 = 69, T0 = 73, N0 = 91, B0 = 103, wi = 113, jo = 666, yt = 1, yo = 2, Vi = 3, wo = 4, e5 = 3, xi = (e, t) => (e.msg = $a[t], t), jm = (e) => e * 2 - (e > 4 ? 9 : 0), Dr = (e) => {
|
|
19227
19236
|
let t = e.length;
|
|
19228
19237
|
for (; --t >= 0; )
|
|
19229
19238
|
e[t] = 0;
|
|
@@ -19407,16 +19416,16 @@ const Du = (e) => {
|
|
|
19407
19416
|
const t = e.state;
|
|
19408
19417
|
return !t || t.strm !== e || t.status !== eo && //#ifdef GZIP
|
|
19409
19418
|
t.status !== vg && //#endif
|
|
19410
|
-
t.status !== M0 && t.status !== T0 && t.status !== N0 && t.status !== B0 && t.status !==
|
|
19419
|
+
t.status !== M0 && t.status !== T0 && t.status !== N0 && t.status !== B0 && t.status !== wi && t.status !== jo ? 1 : 0;
|
|
19411
19420
|
}, OA = (e) => {
|
|
19412
19421
|
if (Du(e))
|
|
19413
|
-
return
|
|
19422
|
+
return xi(e, Pn);
|
|
19414
19423
|
e.total_in = e.total_out = 0, e.data_type = Hk;
|
|
19415
19424
|
const t = e.state;
|
|
19416
19425
|
return t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = //#ifdef GZIP
|
|
19417
19426
|
t.wrap === 2 ? vg : (
|
|
19418
19427
|
//#endif
|
|
19419
|
-
t.wrap ? eo :
|
|
19428
|
+
t.wrap ? eo : wi
|
|
19420
19429
|
), e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = -2, Bk(t), nt;
|
|
19421
19430
|
}, PA = (e) => {
|
|
19422
19431
|
const t = OA(e);
|
|
@@ -19426,27 +19435,27 @@ const Du = (e) => {
|
|
|
19426
19435
|
return Pn;
|
|
19427
19436
|
let o = 1;
|
|
19428
19437
|
if (t === Ok && (t = 6), r < 0 ? (o = 0, r = -r) : r > 15 && (o = 2, r -= 16), i < 1 || i > Qk || n !== al || r < 8 || r > 15 || t < 0 || t > 9 || a < 0 || a > jk || r === 8 && o !== 1)
|
|
19429
|
-
return
|
|
19438
|
+
return xi(e, Pn);
|
|
19430
19439
|
r === 8 && (r = 9);
|
|
19431
19440
|
const s = new o5();
|
|
19432
19441
|
return e.state = s, s.strm = e, s.status = eo, s.wrap = o, s.gzhead = null, s.w_bits = r, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = i + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + se - 1) / se), s.window = new Uint8Array(s.w_size * 2), s.head = new Uint16Array(s.hash_size), s.prev = new Uint16Array(s.w_size), s.lit_bufsize = 1 << i + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new Uint8Array(s.pending_buf_size), s.sym_buf = s.lit_bufsize, s.sym_end = (s.lit_bufsize - 1) * 3, s.level = t, s.strategy = a, s.method = n, PA(e);
|
|
19433
19442
|
}, u5 = (e, t) => UA(e, t, al, Vk, Zk, Gk), c5 = (e, t) => {
|
|
19434
19443
|
if (Du(e) || t > Pm || t < 0)
|
|
19435
|
-
return e ?
|
|
19444
|
+
return e ? xi(e, Pn) : Pn;
|
|
19436
19445
|
const n = e.state;
|
|
19437
19446
|
if (!e.output || e.avail_in !== 0 && !e.input || n.status === jo && t !== Ht)
|
|
19438
|
-
return
|
|
19447
|
+
return xi(e, e.avail_out === 0 ? ih : Pn);
|
|
19439
19448
|
const r = n.last_flush;
|
|
19440
19449
|
if (n.last_flush = t, n.pending !== 0) {
|
|
19441
19450
|
if (kt(e), e.avail_out === 0)
|
|
19442
19451
|
return n.last_flush = -1, nt;
|
|
19443
19452
|
} else if (e.avail_in === 0 && jm(t) <= jm(r) && t !== Ht)
|
|
19444
|
-
return
|
|
19453
|
+
return xi(e, ih);
|
|
19445
19454
|
if (n.status === jo && e.avail_in !== 0)
|
|
19446
|
-
return
|
|
19447
|
-
if (n.status === eo && n.wrap === 0 && (n.status =
|
|
19455
|
+
return xi(e, ih);
|
|
19456
|
+
if (n.status === eo && n.wrap === 0 && (n.status = wi), n.status === eo) {
|
|
19448
19457
|
let i = al + (n.w_bits - 8 << 4) << 8, a = -1;
|
|
19449
|
-
if (n.strategy >= $u || n.level < 2 ? a = 0 : n.level < 6 ? a = 1 : n.level === 6 ? a = 2 : a = 3, i |= a << 6, n.strstart !== 0 && (i |= $k), i += 31 - i % 31, ko(n, i), n.strstart !== 0 && (ko(n, e.adler >>> 16), ko(n, e.adler & 65535)), e.adler = 1, n.status =
|
|
19458
|
+
if (n.strategy >= $u || n.level < 2 ? a = 0 : n.level < 6 ? a = 1 : n.level === 6 ? a = 2 : a = 3, i |= a << 6, n.strstart !== 0 && (i |= $k), i += 31 - i % 31, ko(n, i), n.strstart !== 0 && (ko(n, e.adler >>> 16), ko(n, e.adler & 65535)), e.adler = 1, n.status = wi, kt(e), n.pending !== 0)
|
|
19450
19459
|
return n.last_flush = -1, nt;
|
|
19451
19460
|
}
|
|
19452
19461
|
if (n.status === vg) {
|
|
@@ -19455,7 +19464,7 @@ const Du = (e) => {
|
|
|
19455
19464
|
n,
|
|
19456
19465
|
(n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)
|
|
19457
19466
|
), ge(n, n.gzhead.time & 255), ge(n, n.gzhead.time >> 8 & 255), ge(n, n.gzhead.time >> 16 & 255), ge(n, n.gzhead.time >> 24 & 255), ge(n, n.level === 9 ? 2 : n.strategy >= $u || n.level < 2 ? 4 : 0), ge(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (ge(n, n.gzhead.extra.length & 255), ge(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = We(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = M0;
|
|
19458
|
-
else if (ge(n, 0), ge(n, 0), ge(n, 0), ge(n, 0), ge(n, 0), ge(n, n.level === 9 ? 2 : n.strategy >= $u || n.level < 2 ? 4 : 0), ge(n, e5), n.status =
|
|
19467
|
+
else if (ge(n, 0), ge(n, 0), ge(n, 0), ge(n, 0), ge(n, 0), ge(n, n.level === 9 ? 2 : n.strategy >= $u || n.level < 2 ? 4 : 0), ge(n, e5), n.status = wi, kt(e), n.pending !== 0)
|
|
19459
19468
|
return n.last_flush = -1, nt;
|
|
19460
19469
|
}
|
|
19461
19470
|
if (n.status === M0) {
|
|
@@ -19508,7 +19517,7 @@ const Du = (e) => {
|
|
|
19508
19517
|
return n.last_flush = -1, nt;
|
|
19509
19518
|
ge(n, e.adler & 255), ge(n, e.adler >> 8 & 255), e.adler = 0;
|
|
19510
19519
|
}
|
|
19511
|
-
if (n.status =
|
|
19520
|
+
if (n.status = wi, kt(e), n.pending !== 0)
|
|
19512
19521
|
return n.last_flush = -1, nt;
|
|
19513
19522
|
}
|
|
19514
19523
|
if (e.avail_in !== 0 || n.lookahead !== 0 || t !== kr && n.status !== jo) {
|
|
@@ -19523,7 +19532,7 @@ const Du = (e) => {
|
|
|
19523
19532
|
if (Du(e))
|
|
19524
19533
|
return Pn;
|
|
19525
19534
|
const t = e.state.status;
|
|
19526
|
-
return e.state = null, t ===
|
|
19535
|
+
return e.state = null, t === wi ? xi(e, Rk) : nt;
|
|
19527
19536
|
}, l5 = (e, t) => {
|
|
19528
19537
|
let n = t.length;
|
|
19529
19538
|
if (Du(e))
|
|
@@ -22299,7 +22308,7 @@ function Mz(e, t) {
|
|
|
22299
22308
|
return { type: w, vals: L, name: G, comment: H };
|
|
22300
22309
|
}, Le = ",", He = ye(",", !1), na = function(w, L) {
|
|
22301
22310
|
return L.unshift(w), L;
|
|
22302
|
-
},
|
|
22311
|
+
}, ni = "int", ra = ye("int", !1), ri = "uint", ia = ye("uint", !1), an = "short", Q = ye("short", !1), te = "ushort", ie = ye("ushort", !1), P = "byte", ze = ye("byte", !1), ae = "ubyte", tt = ye("ubyte", !1), Ye = "float", Bt = ye("float", !1), ii = "char", ul = ye("char", !1), Eo = "string", aa = ye("string", !1), Ft = "lstring", Co = ye("lstring", !1), Mu = "enum", En = ye("enum", !1), Tu = "double", y = ye("double", !1), g = "bigint", m = ye("bigint", !1), v = "set", M = ye("set", !1), k = function(w, L) {
|
|
22303
22312
|
return w + " " + L;
|
|
22304
22313
|
}, O = /^[a-zA-Z_]/, ne = So([["a", "z"], ["A", "Z"], "_"], !1, !1), De = /^[a-zA-Z0-9_]/, we = So([["a", "z"], ["A", "Z"], ["0", "9"], "_"], !1, !1), Me = function(w) {
|
|
22305
22314
|
return jg();
|
|
@@ -22421,7 +22430,7 @@ function Mz(e, t) {
|
|
|
22421
22430
|
}
|
|
22422
22431
|
function ll() {
|
|
22423
22432
|
var w, L, G, H;
|
|
22424
|
-
return e.substr(I, 3) ===
|
|
22433
|
+
return e.substr(I, 3) === ni ? (w = ni, I += 3) : (w = n, K === 0 && J(ra)), w === n && (e.substr(I, 4) === ri ? (w = ri, I += 4) : (w = n, K === 0 && J(ia)), w === n && (e.substr(I, 5) === an ? (w = an, I += 5) : (w = n, K === 0 && J(Q)), w === n && (e.substr(I, 6) === te ? (w = te, I += 6) : (w = n, K === 0 && J(ie)), w === n && (e.substr(I, 4) === P ? (w = P, I += 4) : (w = n, K === 0 && J(ze)), w === n && (e.substr(I, 5) === ae ? (w = ae, I += 5) : (w = n, K === 0 && J(tt)), w === n && (e.substr(I, 5) === Ye ? (w = Ye, I += 5) : (w = n, K === 0 && J(Bt)), w === n && (e.substr(I, 4) === ii ? (w = ii, I += 4) : (w = n, K === 0 && J(ul)), w === n && (e.substr(I, 6) === Eo ? (w = Eo, I += 6) : (w = n, K === 0 && J(aa)), w === n && (e.substr(I, 7) === Ft ? (w = Ft, I += 7) : (w = n, K === 0 && J(Co)), w === n && (e.substr(I, 4) === Mu ? (w = Mu, I += 4) : (w = n, K === 0 && J(En)), w === n && (e.substr(I, 6) === Tu ? (w = Tu, I += 6) : (w = n, K === 0 && J(y)), w === n && (e.substr(I, 6) === g ? (w = g, I += 6) : (w = n, K === 0 && J(m)), w === n && (e.substr(I, 3) === v ? (w = v, I += 3) : (w = n, K === 0 && J(M)), w === n && (w = I, L = Zg(), L !== n ? (G = ce(), G !== n ? (H = Yg(), H !== n ? (pt = w, L = k(L, H), w = L) : (I = w, w = n)) : (I = w, w = n)) : (I = w, w = n))))))))))))))), w;
|
|
22425
22434
|
}
|
|
22426
22435
|
function pE() {
|
|
22427
22436
|
var w;
|
|
@@ -23094,10 +23103,10 @@ function ta(e, t) {
|
|
|
23094
23103
|
Ee.fromInt = ta;
|
|
23095
23104
|
function qt(e, t) {
|
|
23096
23105
|
if (isNaN(e))
|
|
23097
|
-
return t ?
|
|
23106
|
+
return t ? Ai : Xt;
|
|
23098
23107
|
if (t) {
|
|
23099
23108
|
if (e < 0)
|
|
23100
|
-
return
|
|
23109
|
+
return Ai;
|
|
23101
23110
|
if (e >= Mv)
|
|
23102
23111
|
return Bv;
|
|
23103
23112
|
} else {
|
|
@@ -23143,8 +23152,8 @@ function vn(e, t) {
|
|
|
23143
23152
|
Ee.fromValue = vn;
|
|
23144
23153
|
var Db = 1 << 16, Yz = 1 << 24, ro = Db * Db, Mv = ro * ro, Ib = Mv / 2, _b = ta(Yz), Xt = ta(0);
|
|
23145
23154
|
Ee.ZERO = Xt;
|
|
23146
|
-
var
|
|
23147
|
-
Ee.UZERO =
|
|
23155
|
+
var Ai = ta(0, !0);
|
|
23156
|
+
Ee.UZERO = Ai;
|
|
23148
23157
|
var Aa = ta(1);
|
|
23149
23158
|
Ee.ONE = Aa;
|
|
23150
23159
|
var Tv = ta(1, !0);
|
|
@@ -23324,14 +23333,14 @@ j.divide = function(t) {
|
|
|
23324
23333
|
return Ce(n, Wt.get_high(), this.unsigned);
|
|
23325
23334
|
}
|
|
23326
23335
|
if (this.isZero())
|
|
23327
|
-
return this.unsigned ?
|
|
23336
|
+
return this.unsigned ? Ai : Xt;
|
|
23328
23337
|
var r, i, a;
|
|
23329
23338
|
if (this.unsigned) {
|
|
23330
23339
|
if (t.unsigned || (t = t.toUnsigned()), t.gt(this))
|
|
23331
|
-
return
|
|
23340
|
+
return Ai;
|
|
23332
23341
|
if (t.gt(this.shru(1)))
|
|
23333
23342
|
return Tv;
|
|
23334
|
-
a =
|
|
23343
|
+
a = Ai;
|
|
23335
23344
|
} else {
|
|
23336
23345
|
if (this.eq(_t)) {
|
|
23337
23346
|
if (t.eq(Aa) || t.eq(z0))
|
|
@@ -23341,7 +23350,7 @@ j.divide = function(t) {
|
|
|
23341
23350
|
var o = this.shr(1);
|
|
23342
23351
|
return r = o.div(t).shl(1), r.eq(Xt) ? t.isNegative() ? Aa : z0 : (i = this.sub(t.mul(r)), a = r.add(i.div(t)), a);
|
|
23343
23352
|
} else if (t.eq(_t))
|
|
23344
|
-
return this.unsigned ?
|
|
23353
|
+
return this.unsigned ? Ai : Xt;
|
|
23345
23354
|
if (this.isNegative())
|
|
23346
23355
|
return t.isNegative() ? this.neg().div(t.neg()) : this.neg().div(t).neg();
|
|
23347
23356
|
if (t.isNegative())
|
|
@@ -25401,7 +25410,7 @@ function N9(e, t) {
|
|
|
25401
25410
|
`Cannot initialize "${d.type}" transform: ${b}`
|
|
25402
25411
|
);
|
|
25403
25412
|
}
|
|
25404
|
-
p.behavior &
|
|
25413
|
+
p.behavior & ti && s(new af()), s(p);
|
|
25405
25414
|
}
|
|
25406
25415
|
}
|
|
25407
25416
|
const u = (l) => {
|
|
@@ -26172,7 +26181,7 @@ class X9 {
|
|
|
26172
26181
|
* @param {import("../gl/webGLHelper").default} [webGLHelper]
|
|
26173
26182
|
*/
|
|
26174
26183
|
constructor(t) {
|
|
26175
|
-
this._webGLHelper = t, this.fontRepository = "https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/", this._fonts = new
|
|
26184
|
+
this._webGLHelper = t, this.fontRepository = "https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/", this._fonts = new Ti([], JSON.stringify), this._metadataPromises = /* @__PURE__ */ new Map(), this._fontPromises = /* @__PURE__ */ new Map(), this._promises = [], this._defaultFontEntry = {
|
|
26176
26185
|
metrics: a0(w2),
|
|
26177
26186
|
texture: t ? this._createTextureNow(W9) : void 0
|
|
26178
26187
|
};
|
|
@@ -26496,7 +26505,11 @@ class _u extends Xa {
|
|
|
26496
26505
|
* @param {import("../utils/interactionEvent").default} event
|
|
26497
26506
|
*/
|
|
26498
26507
|
propagateInteractionEvent(t) {
|
|
26499
|
-
this.handleInteractionEvent(void 0, t, !0)
|
|
26508
|
+
this.handleInteractionEvent(void 0, t, !0);
|
|
26509
|
+
for (let n = this.children.length - 1; n >= 0; n--)
|
|
26510
|
+
if (this.children[n].propagateInteractionEvent(t), t.stopped)
|
|
26511
|
+
return;
|
|
26512
|
+
this.handleInteractionEvent(void 0, t, !1);
|
|
26500
26513
|
}
|
|
26501
26514
|
}
|
|
26502
26515
|
class Lb {
|
|
@@ -26576,7 +26589,7 @@ const of = {
|
|
|
26576
26589
|
}, Fg = Object.fromEntries(
|
|
26577
26590
|
Object.entries(of).map(([e, t]) => t.map((n) => [n, e])).flat(1)
|
|
26578
26591
|
);
|
|
26579
|
-
function
|
|
26592
|
+
function Vr(e) {
|
|
26580
26593
|
return Fg[e];
|
|
26581
26594
|
}
|
|
26582
26595
|
class Yv extends _u {
|
|
@@ -26624,7 +26637,7 @@ class Yv extends _u {
|
|
|
26624
26637
|
}
|
|
26625
26638
|
}
|
|
26626
26639
|
function kg(e) {
|
|
26627
|
-
const t =
|
|
26640
|
+
const t = Vr(e.orient);
|
|
26628
26641
|
let n = e.ticks && e.tickSize || 0;
|
|
26629
26642
|
return e.labels && (n += e.labelPadding, t == "x" ? n += e.labelFontSize : n += 30), e.title && (n += e.titlePadding + e.titleFontSize), n = Math.min(
|
|
26630
26643
|
e.maxExtent || 1 / 0,
|
|
@@ -26692,7 +26705,7 @@ function hR(e, t) {
|
|
|
26692
26705
|
};
|
|
26693
26706
|
}
|
|
26694
26707
|
function qv(e, t) {
|
|
26695
|
-
const n = { ...e, extent: kg(e) }, r =
|
|
26708
|
+
const n = { ...e, extent: kg(e) }, r = Vr(n.orient), i = P0(r), a = n.orient == "bottom" || n.orient == "right" ? 1 : -1, o = n.orient == "bottom" || n.orient == "left" ? 1 : 0, s = () => ({
|
|
26696
26709
|
name: "domain",
|
|
26697
26710
|
data: { values: [0] },
|
|
26698
26711
|
mark: {
|
|
@@ -26796,7 +26809,7 @@ const dR = {
|
|
|
26796
26809
|
// TODO: chromLabelAngle
|
|
26797
26810
|
};
|
|
26798
26811
|
function gR(e, t) {
|
|
26799
|
-
const n = { ...e, extent: kg(e) }, r =
|
|
26812
|
+
const n = { ...e, extent: kg(e) }, r = Vr(n.orient), i = P0(r), a = n.orient == "bottom" || n.orient == "left" ? 1 : 0, o = () => ({
|
|
26800
26813
|
name: "chromosome_ticks",
|
|
26801
26814
|
mark: {
|
|
26802
26815
|
type: "rule",
|
|
@@ -26917,7 +26930,7 @@ function gR(e, t) {
|
|
|
26917
26930
|
data: {
|
|
26918
26931
|
lazy: {
|
|
26919
26932
|
type: "axisGenome",
|
|
26920
|
-
channel:
|
|
26933
|
+
channel: Vr(n.orient)
|
|
26921
26934
|
}
|
|
26922
26935
|
},
|
|
26923
26936
|
encoding: {
|
|
@@ -26990,7 +27003,7 @@ const Xv = {
|
|
|
26990
27003
|
chromGridWidth: 1
|
|
26991
27004
|
};
|
|
26992
27005
|
function bR(e, t) {
|
|
26993
|
-
const n = e, r =
|
|
27006
|
+
const n = e, r = Vr(n.orient);
|
|
26994
27007
|
return {
|
|
26995
27008
|
name: "grid_lines",
|
|
26996
27009
|
data: {
|
|
@@ -27015,7 +27028,7 @@ function bR(e, t) {
|
|
|
27015
27028
|
};
|
|
27016
27029
|
}
|
|
27017
27030
|
function yR(e, t) {
|
|
27018
|
-
const n = e, r =
|
|
27031
|
+
const n = e, r = Vr(n.orient);
|
|
27019
27032
|
return {
|
|
27020
27033
|
name: "chromosome_lines",
|
|
27021
27034
|
data: {
|
|
@@ -27039,7 +27052,7 @@ function yR(e, t) {
|
|
|
27039
27052
|
};
|
|
27040
27053
|
}
|
|
27041
27054
|
function wR(e, t) {
|
|
27042
|
-
const n = e, r =
|
|
27055
|
+
const n = e, r = Vr(n.orient);
|
|
27043
27056
|
return {
|
|
27044
27057
|
name: "chromosome_fill",
|
|
27045
27058
|
data: {
|
|
@@ -27089,7 +27102,7 @@ function xR(e, t) {
|
|
|
27089
27102
|
configurableVisibility: !1,
|
|
27090
27103
|
resolve: {
|
|
27091
27104
|
scale: {
|
|
27092
|
-
[
|
|
27105
|
+
[Vr(e.orient)]: "forced",
|
|
27093
27106
|
fill: "independent",
|
|
27094
27107
|
opacity: "independent"
|
|
27095
27108
|
}
|
|
@@ -27262,7 +27275,7 @@ function DR(e, t, n, r) {
|
|
|
27262
27275
|
document.addEventListener("mouseup", s, !1), document.addEventListener("mousemove", o, !1);
|
|
27263
27276
|
}
|
|
27264
27277
|
}
|
|
27265
|
-
var La, za, Lt,
|
|
27278
|
+
var La, za, Lt, vi, Ra, ir, li, ff, Jv, lf, $v, Ei, Ho, Ys, U0, Ws, j0, qs, G0, hf, eE, Oa, bc, df, tE;
|
|
27266
27279
|
class Kv extends Xa {
|
|
27267
27280
|
/**
|
|
27268
27281
|
*
|
|
@@ -27281,7 +27294,7 @@ class Kv extends Xa {
|
|
|
27281
27294
|
/**
|
|
27282
27295
|
* @param {Direction} direction
|
|
27283
27296
|
*/
|
|
27284
|
-
ue(this,
|
|
27297
|
+
ue(this, Ei);
|
|
27285
27298
|
/**
|
|
27286
27299
|
* An example layout with two children, either column or row-based direction:
|
|
27287
27300
|
*
|
|
@@ -27341,7 +27354,7 @@ class Kv extends Xa {
|
|
|
27341
27354
|
*
|
|
27342
27355
|
* @type { Partial<Record<import("../spec/channel").PrimaryPositionalChannel, AxisView>> } }
|
|
27343
27356
|
*/
|
|
27344
|
-
ue(this,
|
|
27357
|
+
ue(this, vi, {});
|
|
27345
27358
|
ue(this, Ra, 0);
|
|
27346
27359
|
this.spec = n, Sn(this, za, n.spacing ?? 10), Sn(this, La, s), Sn(this, Lt, []), this.wrappingFacet = !1, this._createChildren();
|
|
27347
27360
|
}
|
|
@@ -27399,7 +27412,7 @@ class Kv extends Xa {
|
|
|
27399
27412
|
*[Symbol.iterator]() {
|
|
27400
27413
|
for (const n of W(this, Lt))
|
|
27401
27414
|
yield* n.getChildren();
|
|
27402
|
-
for (const n of Object.values(W(this,
|
|
27415
|
+
for (const n of Object.values(W(this, vi)))
|
|
27403
27416
|
yield n;
|
|
27404
27417
|
}
|
|
27405
27418
|
/**
|
|
@@ -27441,10 +27454,10 @@ class Kv extends Xa {
|
|
|
27441
27454
|
r.height,
|
|
27442
27455
|
a
|
|
27443
27456
|
), c = new Lb(
|
|
27444
|
-
W(this, ir,
|
|
27457
|
+
W(this, ir, li).length,
|
|
27445
27458
|
W(this, La) ?? 1 / 0
|
|
27446
27459
|
);
|
|
27447
|
-
for (const [u, f] of W(this, ir,
|
|
27460
|
+
for (const [u, f] of W(this, ir, li).entries()) {
|
|
27448
27461
|
const {
|
|
27449
27462
|
view: l,
|
|
27450
27463
|
axes: h,
|
|
@@ -27477,7 +27490,7 @@ class Kv extends Xa {
|
|
|
27477
27490
|
Rb(F, Z, xe),
|
|
27478
27491
|
i
|
|
27479
27492
|
);
|
|
27480
|
-
for (const Z of Object.values(W(this,
|
|
27493
|
+
for (const Z of Object.values(W(this, vi))) {
|
|
27481
27494
|
const Se = Z.axisProps.orient;
|
|
27482
27495
|
(Se == "left" && A == 0 || Se == "right" && A == c.nCols - 1 || Se == "top" && D == 0 || Se == "bottom" && D == c.nRows - 1) && Z.render(
|
|
27483
27496
|
n,
|
|
@@ -27499,7 +27512,7 @@ class Kv extends Xa {
|
|
|
27499
27512
|
propagateInteractionEvent(n) {
|
|
27500
27513
|
if (this.handleInteractionEvent(void 0, n, !0), n.stopped)
|
|
27501
27514
|
return;
|
|
27502
|
-
const r = W(this, ir,
|
|
27515
|
+
const r = W(this, ir, li).find(
|
|
27503
27516
|
(a) => a.coords.containsPoint(n.point.x, n.point.y)
|
|
27504
27517
|
), i = r == null ? void 0 : r.view;
|
|
27505
27518
|
i && (i.propagateInteractionEvent(n), (i instanceof bt || i instanceof _u) && DR(
|
|
@@ -27518,13 +27531,13 @@ class Kv extends Xa {
|
|
|
27518
27531
|
return "independent";
|
|
27519
27532
|
}
|
|
27520
27533
|
}
|
|
27521
|
-
La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(),
|
|
27534
|
+
La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), vi = new WeakMap(), Ra = new WeakMap(), ir = new WeakSet(), li = function() {
|
|
27522
27535
|
return W(this, Lt).filter(
|
|
27523
27536
|
(n) => n.view.isConfiguredVisible()
|
|
27524
27537
|
);
|
|
27525
27538
|
}, ff = new WeakSet(), Jv = function() {
|
|
27526
27539
|
return new Lb(
|
|
27527
|
-
W(this, ir,
|
|
27540
|
+
W(this, ir, li).length,
|
|
27528
27541
|
W(this, La) ?? 1 / 0
|
|
27529
27542
|
);
|
|
27530
27543
|
}, lf = new WeakSet(), $v = function() {
|
|
@@ -27544,7 +27557,7 @@ La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), Ai = new WeakMap(),
|
|
|
27544
27557
|
this,
|
|
27545
27558
|
this
|
|
27546
27559
|
);
|
|
27547
|
-
W(this,
|
|
27560
|
+
W(this, vi)[n] = o, o.visit((s) => {
|
|
27548
27561
|
s instanceof bt && s.resolve("scale");
|
|
27549
27562
|
});
|
|
27550
27563
|
}
|
|
@@ -27552,9 +27565,9 @@ La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), Ai = new WeakMap(),
|
|
|
27552
27565
|
}
|
|
27553
27566
|
for (const n of W(this, Lt))
|
|
27554
27567
|
n.createAxes();
|
|
27555
|
-
},
|
|
27568
|
+
}, Ei = new WeakSet(), Ho = function(n) {
|
|
27556
27569
|
const r = n == "column" ? "width" : "height", i = (a, o) => a.map((s) => {
|
|
27557
|
-
const u = W(this, ir,
|
|
27570
|
+
const u = W(this, ir, li)[s].getOverhangAndPadding();
|
|
27558
27571
|
return n == "column" ? o ? u.right : u.left : o ? u.bottom : u.top;
|
|
27559
27572
|
}).reduce((s, c) => Math.max(s, c), 0);
|
|
27560
27573
|
return this._cache(
|
|
@@ -27565,14 +27578,14 @@ La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), Ai = new WeakMap(),
|
|
|
27565
27578
|
axisAfter: i(a, 1),
|
|
27566
27579
|
view: q6(
|
|
27567
27580
|
a.map(
|
|
27568
|
-
(o) => W(this, ir,
|
|
27581
|
+
(o) => W(this, ir, li)[o].view.getSize()[r]
|
|
27569
27582
|
)
|
|
27570
27583
|
)
|
|
27571
27584
|
})
|
|
27572
27585
|
)
|
|
27573
27586
|
);
|
|
27574
27587
|
}, Ys = new WeakSet(), U0 = function(n) {
|
|
27575
|
-
const r = ee(this,
|
|
27588
|
+
const r = ee(this, Ei, Ho).call(this, n), i = [];
|
|
27576
27589
|
i.push(Yo);
|
|
27577
27590
|
for (const [a, o] of r.entries())
|
|
27578
27591
|
a > 0 && i.push({ px: W(this, za), grow: 0 }), (a == 0 || this.wrappingFacet) && i.push(Yo), i.push({ px: o.axisBefore, grow: 0 }), i.push(o.view), i.push({ px: o.axisAfter, grow: 0 }), (a == r.length - 1 || this.wrappingFacet) && i.push(Yo);
|
|
@@ -27582,7 +27595,7 @@ La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), Ai = new WeakMap(),
|
|
|
27582
27595
|
const a = (n == "row" && this.spec.height) ?? (n == "column" && this.spec.width);
|
|
27583
27596
|
if (a || a === 0)
|
|
27584
27597
|
return Xx(a);
|
|
27585
|
-
const o = ee(this,
|
|
27598
|
+
const o = ee(this, Ei, Ho).call(this, n);
|
|
27586
27599
|
for (const [s, c] of o.entries())
|
|
27587
27600
|
s > 0 && (i += W(this, za)), (s == 0 || this.wrappingFacet) && (i += 0), i += c.axisBefore, i += c.view.px ?? 0, r += c.view.grow ?? 0, i += c.axisAfter, (s == o.length - 1 || this.wrappingFacet) && (i += 0);
|
|
27588
27601
|
return { px: i, grow: r };
|
|
@@ -27595,7 +27608,7 @@ La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), Ai = new WeakMap(),
|
|
|
27595
27608
|
2 + 4 * r + 1
|
|
27596
27609
|
);
|
|
27597
27610
|
}, hf = new WeakSet(), eE = function() {
|
|
27598
|
-
const n = ee(this,
|
|
27611
|
+
const n = ee(this, Ei, Ho).call(this, "column"), r = ee(this, Ei, Ho).call(this, "row");
|
|
27599
27612
|
return !n.length || !r.length ? ut.zero() : new ut(
|
|
27600
27613
|
r.at(0).axisBefore,
|
|
27601
27614
|
n.at(-1).axisAfter,
|
|
@@ -27604,7 +27617,7 @@ La = new WeakMap(), za = new WeakMap(), Lt = new WeakMap(), Ai = new WeakMap(),
|
|
|
27604
27617
|
);
|
|
27605
27618
|
}, Oa = new WeakSet(), bc = function() {
|
|
27606
27619
|
const n = (r) => {
|
|
27607
|
-
const i = Fg[r], a = W(this,
|
|
27620
|
+
const i = Fg[r], a = W(this, vi)[i];
|
|
27608
27621
|
return (a == null ? void 0 : a.axisProps.orient) !== r ? 0 : Math.max(
|
|
27609
27622
|
a.getPerpendicularSize() + a.axisProps.offset,
|
|
27610
27623
|
0
|