@genome-spy/app 0.43.1 → 0.43.2
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 +602 -591
- package/dist/index.js +14 -4
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
@@ -16,7 +16,7 @@ var _0 = (t, e, n, r) => ({
|
|
16
16
|
get _() {
|
17
17
|
return x(t, e, r);
|
18
18
|
}
|
19
|
-
}),
|
19
|
+
}), B = (t, e, n) => (lu(t, e, "access private method"), n);
|
20
20
|
function Hn(t, e, n) {
|
21
21
|
return t.fields = e || [], t.fname = n, t;
|
22
22
|
}
|
@@ -126,12 +126,12 @@ function _e(t) {
|
|
126
126
|
const Iw = "descending";
|
127
127
|
function Zg(t, e, n) {
|
128
128
|
n = n || {}, e = sf(e) || [];
|
129
|
-
const r = [], i = [], o = {}, s = n.comparator ||
|
129
|
+
const r = [], i = [], o = {}, s = n.comparator || Bw;
|
130
130
|
return sf(t).forEach((a, c) => {
|
131
131
|
a != null && (r.push(e[c] === Iw ? -1 : 1), i.push(a = _e(a) ? a : dl(a, null, n)), (Qg(a) || []).forEach((l) => o[l] = 1));
|
132
132
|
}), i.length === 0 ? null : Hn(s(i, r), Object.keys(o));
|
133
133
|
}
|
134
|
-
const Jg = (t, e) => (t < e || t == null) && e != null ? -1 : (t > e || e == null) && t != null ? 1 : (e = e instanceof Date ? +e : e, (t = t instanceof Date ? +t : t) !== t && e === e ? -1 : e !== e && t === t ? 1 : 0),
|
134
|
+
const Jg = (t, e) => (t < e || t == null) && e != null ? -1 : (t > e || e == null) && t != null ? 1 : (e = e instanceof Date ? +e : e, (t = t instanceof Date ? +t : t) !== t && e === e ? -1 : e !== e && t === t ? 1 : 0), Bw = (t, e) => t.length === 1 ? Mw(t[0], e[0]) : Pw(t, e, t.length), Mw = (t, e) => function(n, r) {
|
135
135
|
return Jg(t(n), t(r)) * e;
|
136
136
|
}, Pw = (t, e, n) => (e.push(0), function(r, i) {
|
137
137
|
let o, s = 0, a = -1;
|
@@ -882,38 +882,38 @@ function S3(t) {
|
|
882
882
|
S === "n" ? (b = !0, S = "g") : q0[S] || (v === void 0 && (v = 12), A = !0, S = "g"), (g || h === "0" && d === "=") && (g = !0, h = "0", d = "=");
|
883
883
|
var w = m === "$" ? n : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", C = m === "$" ? r : /[%p]/.test(S) ? s : "", D = q0[S], U = /[defgprs%]/.test(S);
|
884
884
|
v = v === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v));
|
885
|
-
function W(
|
885
|
+
function W(M) {
|
886
886
|
var pe = w, se = C, Ye, Kn, Ht;
|
887
887
|
if (S === "c")
|
888
|
-
se = D(
|
888
|
+
se = D(M) + se, M = "";
|
889
889
|
else {
|
890
|
-
|
891
|
-
var Gt =
|
892
|
-
if (
|
893
|
-
for (Ye = -1, Kn =
|
894
|
-
if (Ht =
|
895
|
-
se = (Ht === 46 ? i +
|
890
|
+
M = +M;
|
891
|
+
var Gt = M < 0 || 1 / M < 0;
|
892
|
+
if (M = isNaN(M) ? c : D(Math.abs(M), v), A && (M = w3(M)), Gt && +M == 0 && p !== "+" && (Gt = !1), pe = (Gt ? p === "(" ? p : a : p === "-" || p === "(" ? "" : p) + pe, se = (S === "s" ? J0[8 + o1 / 3] : "") + se + (Gt && p === "(" ? ")" : ""), U) {
|
893
|
+
for (Ye = -1, Kn = M.length; ++Ye < Kn; )
|
894
|
+
if (Ht = M.charCodeAt(Ye), 48 > Ht || Ht > 57) {
|
895
|
+
se = (Ht === 46 ? i + M.slice(Ye + 1) : M.slice(Ye)) + se, M = M.slice(0, Ye);
|
896
896
|
break;
|
897
897
|
}
|
898
898
|
}
|
899
899
|
}
|
900
|
-
b && !g && (
|
901
|
-
var dn = pe.length +
|
902
|
-
switch (b && g && (
|
900
|
+
b && !g && (M = e(M, 1 / 0));
|
901
|
+
var dn = pe.length + M.length + se.length, Qe = dn < y ? new Array(y - dn + 1).join(h) : "";
|
902
|
+
switch (b && g && (M = e(Qe + M, Qe.length ? y - se.length : 1 / 0), Qe = ""), d) {
|
903
903
|
case "<":
|
904
|
-
|
904
|
+
M = pe + M + se + Qe;
|
905
905
|
break;
|
906
906
|
case "=":
|
907
|
-
|
907
|
+
M = pe + Qe + M + se;
|
908
908
|
break;
|
909
909
|
case "^":
|
910
|
-
|
910
|
+
M = Qe.slice(0, dn = Qe.length >> 1) + pe + M + se + Qe.slice(dn);
|
911
911
|
break;
|
912
912
|
default:
|
913
|
-
|
913
|
+
M = Qe + pe + M + se;
|
914
914
|
break;
|
915
915
|
}
|
916
|
-
return o(
|
916
|
+
return o(M);
|
917
917
|
}
|
918
918
|
return W.toString = function() {
|
919
919
|
return u + "";
|
@@ -1142,13 +1142,13 @@ function Zr(t) {
|
|
1142
1142
|
return (n - e) / qh;
|
1143
1143
|
});
|
1144
1144
|
}
|
1145
|
-
var Ks = Zr(0), uc = Zr(1), I3 = Zr(2),
|
1145
|
+
var Ks = Zr(0), uc = Zr(1), I3 = Zr(2), B3 = Zr(3), Ni = Zr(4), M3 = Zr(5), P3 = Zr(6);
|
1146
1146
|
Ks.range;
|
1147
1147
|
uc.range;
|
1148
1148
|
I3.range;
|
1149
|
-
M3.range;
|
1150
|
-
Ni.range;
|
1151
1149
|
B3.range;
|
1150
|
+
Ni.range;
|
1151
|
+
M3.range;
|
1152
1152
|
P3.range;
|
1153
1153
|
var _o = we(function(t) {
|
1154
1154
|
t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
|
@@ -1321,8 +1321,8 @@ function y1(t) {
|
|
1321
1321
|
q: oo,
|
1322
1322
|
Q: cp,
|
1323
1323
|
s: lp,
|
1324
|
-
S:
|
1325
|
-
u:
|
1324
|
+
S: Bx,
|
1325
|
+
u: Mx,
|
1326
1326
|
U: Px,
|
1327
1327
|
V: Fx,
|
1328
1328
|
w: Rx,
|
@@ -1335,7 +1335,7 @@ function y1(t) {
|
|
1335
1335
|
"%": ap
|
1336
1336
|
}, S = {
|
1337
1337
|
a: W,
|
1338
|
-
A:
|
1338
|
+
A: M,
|
1339
1339
|
b: pe,
|
1340
1340
|
B: se,
|
1341
1341
|
c: Ye,
|
@@ -1414,7 +1414,7 @@ function y1(t) {
|
|
1414
1414
|
var T = d.exec(H.slice(G));
|
1415
1415
|
return T ? (F.w = p.get(T[0].toLowerCase()), G + T[0].length) : -1;
|
1416
1416
|
}
|
1417
|
-
function
|
1417
|
+
function M(F, H, G) {
|
1418
1418
|
var T = u.exec(H.slice(G));
|
1419
1419
|
return T ? (F.w = h.get(T[0].toLowerCase()), G + T[0].length) : -1;
|
1420
1420
|
}
|
@@ -1680,10 +1680,10 @@ function Tx(t, e) {
|
|
1680
1680
|
function Ix(t, e) {
|
1681
1681
|
return _(t.getUTCMinutes(), e, 2);
|
1682
1682
|
}
|
1683
|
-
function
|
1683
|
+
function Bx(t, e) {
|
1684
1684
|
return _(t.getUTCSeconds(), e, 2);
|
1685
1685
|
}
|
1686
|
-
function
|
1686
|
+
function Mx(t) {
|
1687
1687
|
var e = t.getUTCDay();
|
1688
1688
|
return e === 0 ? 7 : e;
|
1689
1689
|
}
|
@@ -2005,7 +2005,7 @@ const Zs = Jx(
|
|
2005
2005
|
* Copyright 2017 Google LLC
|
2006
2006
|
* SPDX-License-Identifier: BSD-3-Clause
|
2007
2007
|
*/
|
2008
|
-
const ko = globalThis, fc = ko.trustedTypes, pp = fc ? fc.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ad = "$lit$", Kt = `lit$${(Math.random() + "").slice(9)}$`, cd = "?" + Kt, m4 = `<${cd}>`, Ur = document, Jo = () => Ur.createComment(""), $o = (t) => t === null || typeof t != "object" && typeof t != "function",
|
2008
|
+
const ko = globalThis, fc = ko.trustedTypes, pp = fc ? fc.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ad = "$lit$", Kt = `lit$${(Math.random() + "").slice(9)}$`, cd = "?" + Kt, m4 = `<${cd}>`, Ur = document, Jo = () => Ur.createComment(""), $o = (t) => t === null || typeof t != "object" && typeof t != "function", B1 = Array.isArray, M1 = (t) => B1(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", vu = `[
|
2009
2009
|
\f\r]`, uo = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, mp = /-->/g, gp = />/g, $n = RegExp(`>|${vu}(?:([^\\s"'>=/]+)(${vu}*=${vu}*(?:[^
|
2010
2010
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), yp = /'/g, bp = /"/g, P1 = /^(?:script|style|textarea|title)$/i, g4 = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), E = g4(1), ke = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), vp = /* @__PURE__ */ new WeakMap(), ur = Ur.createTreeWalker(Ur, 129);
|
2011
2011
|
function F1(t, e) {
|
@@ -2126,7 +2126,7 @@ let O1 = class {
|
|
2126
2126
|
return this._$AB;
|
2127
2127
|
}
|
2128
2128
|
_$AI(e, n = this) {
|
2129
|
-
e = Hr(this, e, n), $o(e) ? e === z || e == null || e === "" ? (this._$AH !== z && this._$AR(), this._$AH = z) : e !== this._$AH && e !== ke && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) :
|
2129
|
+
e = Hr(this, e, n), $o(e) ? e === z || e == null || e === "" ? (this._$AH !== z && this._$AR(), this._$AH = z) : e !== this._$AH && e !== ke && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : M1(e) ? this.T(e) : this._(e);
|
2130
2130
|
}
|
2131
2131
|
k(e) {
|
2132
2132
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -2152,7 +2152,7 @@ let O1 = class {
|
|
2152
2152
|
return n === void 0 && vp.set(e.strings, n = new es(e)), n;
|
2153
2153
|
}
|
2154
2154
|
T(e) {
|
2155
|
-
|
2155
|
+
B1(this._$AH) || (this._$AH = [], this._$AR());
|
2156
2156
|
const n = this._$AH;
|
2157
2157
|
let r, i = 0;
|
2158
2158
|
for (const o of e)
|
@@ -2237,7 +2237,7 @@ let N1 = class extends Js {
|
|
2237
2237
|
Hr(this, e);
|
2238
2238
|
}
|
2239
2239
|
};
|
2240
|
-
const y4 = { j: ad, P: Kt, A: cd, C: 1, M: R1, L: O1, R:
|
2240
|
+
const y4 = { j: ad, P: Kt, A: cd, C: 1, M: R1, L: O1, R: M1, V: Hr, D: Al, I: Js, H: N1, N: U1, U: z1, B: H1 }, Au = ko.litHtmlPolyfillSupport;
|
2241
2241
|
Au == null || Au(es, Al), (ko.litHtmlVersions ?? (ko.litHtmlVersions = [])).push("3.1.0");
|
2242
2242
|
const Re = (t, e, n) => {
|
2243
2243
|
const r = (n == null ? void 0 : n.renderBefore) ?? e;
|
@@ -2454,7 +2454,7 @@ function V1(t, e) {
|
|
2454
2454
|
function dc(t, e) {
|
2455
2455
|
return t.length == e.length && t.every((n, r) => t[r] === e[r]);
|
2456
2456
|
}
|
2457
|
-
function
|
2457
|
+
function Me(t) {
|
2458
2458
|
return Array.isArray(t) ? t : typeof t < "u" ? [t] : [];
|
2459
2459
|
}
|
2460
2460
|
function at(t) {
|
@@ -2542,7 +2542,7 @@ function x4(t, e) {
|
|
2542
2542
|
n += (t[r] - e[r]) ** 2;
|
2543
2543
|
return Math.sqrt(n);
|
2544
2544
|
}
|
2545
|
-
const S4 = "RawCode", C4 = "Literal", E4 = "Property", k4 = "Identifier", D4 = "ArrayExpression", T4 = "BinaryExpression", I4 = "CallExpression",
|
2545
|
+
const S4 = "RawCode", C4 = "Literal", E4 = "Property", k4 = "Identifier", D4 = "ArrayExpression", T4 = "BinaryExpression", I4 = "CallExpression", B4 = "ConditionalExpression", M4 = "LogicalExpression", P4 = "MemberExpression", F4 = "ObjectExpression", R4 = "UnaryExpression";
|
2546
2546
|
function Ct(t) {
|
2547
2547
|
this.type = t;
|
2548
2548
|
}
|
@@ -2559,11 +2559,11 @@ function O4(t) {
|
|
2559
2559
|
case D4:
|
2560
2560
|
return t.elements;
|
2561
2561
|
case T4:
|
2562
|
-
case
|
2562
|
+
case M4:
|
2563
2563
|
return [t.left, t.right];
|
2564
2564
|
case I4:
|
2565
2565
|
return [t.callee].concat(t.arguments);
|
2566
|
-
case
|
2566
|
+
case B4:
|
2567
2567
|
return [t.test, t.consequent, t.alternate];
|
2568
2568
|
case P4:
|
2569
2569
|
return [t.object, t.property];
|
@@ -3193,7 +3193,7 @@ function kp(t) {
|
|
3193
3193
|
}
|
3194
3194
|
return e;
|
3195
3195
|
}
|
3196
|
-
function
|
3196
|
+
function B5() {
|
3197
3197
|
var t, e, n, r, i, o, s, a, c, l;
|
3198
3198
|
if (t = Y, c = Xa(), r = Y, i = kp(r), i === 0)
|
3199
3199
|
return c;
|
@@ -3208,7 +3208,7 @@ function M5() {
|
|
3208
3208
|
}
|
3209
3209
|
function Vr() {
|
3210
3210
|
var t, e, n;
|
3211
|
-
return t =
|
3211
|
+
return t = B5(), J("?") && (He(), e = Vr(), Fe(":"), n = Vr(), t = g5(t, e, n)), t;
|
3212
3212
|
}
|
3213
3213
|
function fd() {
|
3214
3214
|
const t = Vr();
|
@@ -3216,7 +3216,7 @@ function fd() {
|
|
3216
3216
|
throw new Error(ts);
|
3217
3217
|
return t;
|
3218
3218
|
}
|
3219
|
-
function
|
3219
|
+
function M5(t) {
|
3220
3220
|
R = t, k = 0, Pe = R.length, Y = null, X1();
|
3221
3221
|
const e = fd();
|
3222
3222
|
if (Y.type !== $s)
|
@@ -3371,14 +3371,14 @@ function R5(t) {
|
|
3371
3371
|
function hd(t, e, n) {
|
3372
3372
|
return n = (n - t) / (e - t), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
|
3373
3373
|
}
|
3374
|
-
function
|
3374
|
+
function Bn(t, e = 0, n = 1) {
|
3375
3375
|
return Math.max(e, Math.min(n, t));
|
3376
3376
|
}
|
3377
3377
|
function O5(t, e, n) {
|
3378
|
-
return
|
3378
|
+
return Bn((n - t) / (e - t), 0, 1);
|
3379
3379
|
}
|
3380
3380
|
const K1 = {
|
3381
|
-
clamp:
|
3381
|
+
clamp: Bn,
|
3382
3382
|
isArray: We,
|
3383
3383
|
isBoolean: Qs,
|
3384
3384
|
isDefined(t) {
|
@@ -3410,7 +3410,7 @@ const z5 = R5({
|
|
3410
3410
|
});
|
3411
3411
|
function El(t, e = {}) {
|
3412
3412
|
try {
|
3413
|
-
const n =
|
3413
|
+
const n = M5(t), r = z5(n), i = Function(
|
3414
3414
|
"datum",
|
3415
3415
|
"globalObject",
|
3416
3416
|
`"use strict"; return (${r.code});`
|
@@ -3489,7 +3489,7 @@ function na(t, e) {
|
|
3489
3489
|
}
|
3490
3490
|
function _n() {
|
3491
3491
|
}
|
3492
|
-
var _r = 0.7, Ui = 1 / _r, pi = "\\s*([+-]?\\d+)\\s*", rs = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
3492
|
+
var _r = 0.7, Ui = 1 / _r, pi = "\\s*([+-]?\\d+)\\s*", rs = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", N5 = /^#([0-9a-f]{3,8})$/, U5 = new RegExp(`^rgb\\(${pi},${pi},${pi}\\)$`), H5 = new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`), G5 = new RegExp(`^rgba\\(${pi},${pi},${pi},${rs}\\)$`), V5 = new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${rs}\\)$`), _5 = new RegExp(`^hsl\\(${rs},${Mt},${Mt}\\)$`), j5 = new RegExp(`^hsla\\(${rs},${Mt},${Mt},${rs}\\)$`), Dp = {
|
3493
3493
|
aliceblue: 15792383,
|
3494
3494
|
antiquewhite: 16444375,
|
3495
3495
|
aqua: 65535,
|
@@ -3639,7 +3639,7 @@ var _r = 0.7, Ui = 1 / _r, pi = "\\s*([+-]?\\d+)\\s*", rs = "\\s*([+-]?(?:\\d*\\
|
|
3639
3639
|
yellow: 16776960,
|
3640
3640
|
yellowgreen: 10145074
|
3641
3641
|
};
|
3642
|
-
Zi(_n,
|
3642
|
+
Zi(_n, Mn, {
|
3643
3643
|
copy(t) {
|
3644
3644
|
return Object.assign(new this.constructor(), this, t);
|
3645
3645
|
},
|
@@ -3666,18 +3666,18 @@ function Y5() {
|
|
3666
3666
|
function Ip() {
|
3667
3667
|
return this.rgb().formatRgb();
|
3668
3668
|
}
|
3669
|
-
function
|
3669
|
+
function Mn(t) {
|
3670
3670
|
var e, n;
|
3671
|
-
return t = (t + "").trim().toLowerCase(), (e = N5.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ?
|
3671
|
+
return t = (t + "").trim().toLowerCase(), (e = N5.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? Bp(e) : n === 3 ? new ve(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Da(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Da(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = U5.exec(t)) ? new ve(e[1], e[2], e[3], 1) : (e = H5.exec(t)) ? new ve(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = G5.exec(t)) ? Da(e[1], e[2], e[3], e[4]) : (e = V5.exec(t)) ? Da(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = _5.exec(t)) ? Fp(e[1], e[2] / 100, e[3] / 100, 1) : (e = j5.exec(t)) ? Fp(e[1], e[2] / 100, e[3] / 100, e[4]) : Dp.hasOwnProperty(t) ? Bp(Dp[t]) : t === "transparent" ? new ve(NaN, NaN, NaN, 0) : null;
|
3672
3672
|
}
|
3673
|
-
function
|
3673
|
+
function Bp(t) {
|
3674
3674
|
return new ve(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
|
3675
3675
|
}
|
3676
3676
|
function Da(t, e, n, r) {
|
3677
3677
|
return r <= 0 && (t = e = n = NaN), new ve(t, e, n, r);
|
3678
3678
|
}
|
3679
3679
|
function pd(t) {
|
3680
|
-
return t instanceof _n || (t =
|
3680
|
+
return t instanceof _n || (t = Mn(t)), t ? (t = t.rgb(), new ve(t.r, t.g, t.b, t.opacity)) : new ve();
|
3681
3681
|
}
|
3682
3682
|
function mc(t, e, n, r) {
|
3683
3683
|
return arguments.length === 1 ? pd(t) : new ve(t, e, n, r ?? 1);
|
@@ -3701,14 +3701,14 @@ Zi(ve, mc, na(_n, {
|
|
3701
3701
|
displayable() {
|
3702
3702
|
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;
|
3703
3703
|
},
|
3704
|
-
hex:
|
3704
|
+
hex: Mp,
|
3705
3705
|
// Deprecated! Use color.formatHex.
|
3706
|
-
formatHex:
|
3706
|
+
formatHex: Mp,
|
3707
3707
|
formatHex8: Q5,
|
3708
3708
|
formatRgb: Pp,
|
3709
3709
|
toString: Pp
|
3710
3710
|
}));
|
3711
|
-
function
|
3711
|
+
function Mp() {
|
3712
3712
|
return `#${fr(this.r)}${fr(this.g)}${fr(this.b)}`;
|
3713
3713
|
}
|
3714
3714
|
function Q5() {
|
@@ -3733,7 +3733,7 @@ function Fp(t, e, n, r) {
|
|
3733
3733
|
function Z1(t) {
|
3734
3734
|
if (t instanceof pt)
|
3735
3735
|
return new pt(t.h, t.s, t.l, t.opacity);
|
3736
|
-
if (t instanceof _n || (t =
|
3736
|
+
if (t instanceof _n || (t = Mn(t)), !t)
|
3737
3737
|
return new pt();
|
3738
3738
|
if (t instanceof pt)
|
3739
3739
|
return t;
|
@@ -3861,24 +3861,24 @@ Zi($t, yf, na(_n, {
|
|
3861
3861
|
}));
|
3862
3862
|
var a2 = -0.14861, md = 1.78277, gd = -0.29227, kl = -0.90649, is = 1.97294, Op = is * kl, Lp = is * md, zp = md * gd - kl * a2;
|
3863
3863
|
function K5(t) {
|
3864
|
-
if (t instanceof
|
3865
|
-
return new
|
3864
|
+
if (t instanceof Br)
|
3865
|
+
return new Br(t.h, t.s, t.l, t.opacity);
|
3866
3866
|
t instanceof ve || (t = pd(t));
|
3867
3867
|
var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = (zp * r + Op * e - Lp * n) / (zp + Op - Lp), o = r - i, s = (is * (n - i) - gd * o) / kl, a = Math.sqrt(s * s + o * o) / (is * i * (1 - i)), c = a ? Math.atan2(s, o) * $1 - 120 : NaN;
|
3868
|
-
return new
|
3868
|
+
return new Br(c < 0 ? c + 360 : c, a, i, t.opacity);
|
3869
3869
|
}
|
3870
3870
|
function bf(t, e, n, r) {
|
3871
|
-
return arguments.length === 1 ? K5(t) : new
|
3871
|
+
return arguments.length === 1 ? K5(t) : new Br(t, e, n, r ?? 1);
|
3872
3872
|
}
|
3873
|
-
function
|
3873
|
+
function Br(t, e, n, r) {
|
3874
3874
|
this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
|
3875
3875
|
}
|
3876
|
-
Zi(
|
3876
|
+
Zi(Br, bf, na(_n, {
|
3877
3877
|
brighter(t) {
|
3878
|
-
return t = t == null ? Ui : Math.pow(Ui, t), new
|
3878
|
+
return t = t == null ? Ui : Math.pow(Ui, t), new Br(this.h, this.s, this.l * t, this.opacity);
|
3879
3879
|
},
|
3880
3880
|
darker(t) {
|
3881
|
-
return t = t == null ? _r : Math.pow(_r, t), new
|
3881
|
+
return t = t == null ? _r : Math.pow(_r, t), new Br(this.h, this.s, this.l * t, this.opacity);
|
3882
3882
|
},
|
3883
3883
|
rgb() {
|
3884
3884
|
var t = isNaN(this.h) ? 0 : (this.h + 120) * J1, e = +this.l, n = isNaN(this.s) ? 0 : this.s * e * (1 - e), r = Math.cos(t), i = Math.sin(t);
|
@@ -4025,7 +4025,7 @@ function y2(t, e) {
|
|
4025
4025
|
}
|
4026
4026
|
function jn(t, e) {
|
4027
4027
|
var n = typeof e, r;
|
4028
|
-
return e == null || n === "boolean" ? Dl(e) : (n === "number" ? dt : n === "string" ? (r =
|
4028
|
+
return e == null || n === "boolean" ? Dl(e) : (n === "number" ? dt : n === "string" ? (r = Mn(e)) ? (e = r, vf) : y2 : e instanceof Mn ? vf : e instanceof Date ? m2 : d2(e) ? yd : Array.isArray(e) ? p2 : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? g2 : dt)(t, e);
|
4029
4029
|
}
|
4030
4030
|
function iS(t) {
|
4031
4031
|
var e = t.length;
|
@@ -4386,10 +4386,10 @@ function TS(t) {
|
|
4386
4386
|
function IS(t) {
|
4387
4387
|
return isFinite(t) ? +("1e" + t) : t < 0 ? 0 : t;
|
4388
4388
|
}
|
4389
|
-
function
|
4389
|
+
function BS(t) {
|
4390
4390
|
return t === 10 ? IS : t === Math.E ? Math.exp : (e) => Math.pow(t, e);
|
4391
4391
|
}
|
4392
|
-
function
|
4392
|
+
function MS(t) {
|
4393
4393
|
return t === Math.E ? Math.log : t === 10 && Math.log10 || t === 2 && Math.log2 || (t = Math.log(t), (e) => Math.log(e) / t);
|
4394
4394
|
}
|
4395
4395
|
function _p(t) {
|
@@ -4399,7 +4399,7 @@ function vd(t) {
|
|
4399
4399
|
const e = t(Gp, Vp), n = e.domain;
|
4400
4400
|
let r = 10, i, o;
|
4401
4401
|
function s() {
|
4402
|
-
return i =
|
4402
|
+
return i = MS(r), o = BS(r), n()[0] < 0 ? (i = _p(i), o = _p(o), t(DS, TS)) : t(Gp, Vp), e;
|
4403
4403
|
}
|
4404
4404
|
return e.base = function(a) {
|
4405
4405
|
return arguments.length ? (r = +a, s()) : r;
|
@@ -4562,7 +4562,7 @@ function I2() {
|
|
4562
4562
|
return I2().domain([t, e]).range(i).unknown(o);
|
4563
4563
|
}, Nt.apply(ei(s), arguments);
|
4564
4564
|
}
|
4565
|
-
function
|
4565
|
+
function B2() {
|
4566
4566
|
var t = [0.5], e = [0, 1], n, r = 1;
|
4567
4567
|
function i(o) {
|
4568
4568
|
return o != null && o <= o ? e[tn(t, o, 0, r)] : n;
|
@@ -4577,7 +4577,7 @@ function M2() {
|
|
4577
4577
|
}, i.unknown = function(o) {
|
4578
4578
|
return arguments.length ? (n = o, i) : n;
|
4579
4579
|
}, i.copy = function() {
|
4580
|
-
return
|
4580
|
+
return B2().domain(t).range(e).unknown(n);
|
4581
4581
|
}, Nt.apply(i, arguments);
|
4582
4582
|
}
|
4583
4583
|
function OS(t) {
|
@@ -4613,7 +4613,7 @@ function zS() {
|
|
4613
4613
|
function NS() {
|
4614
4614
|
return Nt.apply(Cd(F3, R3, In, _o, Ks, Dr, ed, $h, An, id).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
|
4615
4615
|
}
|
4616
|
-
function
|
4616
|
+
function Bl() {
|
4617
4617
|
var t = 0, e = 1, n, r, i, o, s = Ge, a = !1, c;
|
4618
4618
|
function l(u) {
|
4619
4619
|
return u == null || isNaN(u = +u) ? c : s(i === 0 ? 0.5 : (u = (o(u) - n) * i, a ? Math.max(0, Math.min(1, u)) : u));
|
@@ -4641,25 +4641,25 @@ function Wn(t, e) {
|
|
4641
4641
|
return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown());
|
4642
4642
|
}
|
4643
4643
|
function Ed() {
|
4644
|
-
var t = ei(
|
4644
|
+
var t = ei(Bl()(Ge));
|
4645
4645
|
return t.copy = function() {
|
4646
4646
|
return Wn(t, Ed());
|
4647
4647
|
}, Vn.apply(t, arguments);
|
4648
4648
|
}
|
4649
|
-
function
|
4650
|
-
var t = vd(
|
4649
|
+
function M2() {
|
4650
|
+
var t = vd(Bl()).domain([1, 10]);
|
4651
4651
|
return t.copy = function() {
|
4652
|
-
return Wn(t,
|
4652
|
+
return Wn(t, M2()).base(t.base());
|
4653
4653
|
}, Vn.apply(t, arguments);
|
4654
4654
|
}
|
4655
4655
|
function P2() {
|
4656
|
-
var t = wd(
|
4656
|
+
var t = wd(Bl());
|
4657
4657
|
return t.copy = function() {
|
4658
4658
|
return Wn(t, P2()).constant(t.constant());
|
4659
4659
|
}, Vn.apply(t, arguments);
|
4660
4660
|
}
|
4661
4661
|
function kd() {
|
4662
|
-
var t = xd(
|
4662
|
+
var t = xd(Bl());
|
4663
4663
|
return t.copy = function() {
|
4664
4664
|
return Wn(t, kd()).exponent(t.exponent());
|
4665
4665
|
}, Vn.apply(t, arguments);
|
@@ -4667,7 +4667,7 @@ function kd() {
|
|
4667
4667
|
function US() {
|
4668
4668
|
return kd.apply(null, arguments).exponent(0.5);
|
4669
4669
|
}
|
4670
|
-
function
|
4670
|
+
function Ml() {
|
4671
4671
|
var t = 0, e = 0.5, n = 1, r = 1, i, o, s, a, c, l = Ge, f, u = !1, h;
|
4672
4672
|
function d(m) {
|
4673
4673
|
return isNaN(m = +m) ? h : (m = 0.5 + ((m = +f(m)) - o) * (r * m < r * o ? a : c), l(u ? Math.max(0, Math.min(1, m)) : m));
|
@@ -4692,25 +4692,25 @@ function Bl() {
|
|
4692
4692
|
};
|
4693
4693
|
}
|
4694
4694
|
function F2() {
|
4695
|
-
var t = ei(
|
4695
|
+
var t = ei(Ml()(Ge));
|
4696
4696
|
return t.copy = function() {
|
4697
4697
|
return Wn(t, F2());
|
4698
4698
|
}, Vn.apply(t, arguments);
|
4699
4699
|
}
|
4700
4700
|
function R2() {
|
4701
|
-
var t = vd(
|
4701
|
+
var t = vd(Ml()).domain([0.1, 1, 10]);
|
4702
4702
|
return t.copy = function() {
|
4703
4703
|
return Wn(t, R2()).base(t.base());
|
4704
4704
|
}, Vn.apply(t, arguments);
|
4705
4705
|
}
|
4706
4706
|
function O2() {
|
4707
|
-
var t = wd(
|
4707
|
+
var t = wd(Ml());
|
4708
4708
|
return t.copy = function() {
|
4709
4709
|
return Wn(t, O2()).constant(t.constant());
|
4710
4710
|
}, Vn.apply(t, arguments);
|
4711
4711
|
}
|
4712
4712
|
function Dd() {
|
4713
|
-
var t = xd(
|
4713
|
+
var t = xd(Ml());
|
4714
4714
|
return t.copy = function() {
|
4715
4715
|
return Wn(t, Dd()).exponent(t.exponent());
|
4716
4716
|
}, Vn.apply(t, arguments);
|
@@ -4722,7 +4722,7 @@ function Td(t, e, n) {
|
|
4722
4722
|
const r = t - e + n * 2;
|
4723
4723
|
return t ? r > 0 ? r : 1 : 0;
|
4724
4724
|
}
|
4725
|
-
const GS = "identity", Hi = "linear", Pn = "log", oa = "pow", sa = "sqrt", Pl = "symlog", L2 = "time", z2 = "utc", Ft = "sequential", Ji = "diverging", Cf = "quantile", N2 = "quantize", U2 = "threshold", Id = "ordinal", Ef = "point", H2 = "band",
|
4725
|
+
const GS = "identity", Hi = "linear", Pn = "log", oa = "pow", sa = "sqrt", Pl = "symlog", L2 = "time", z2 = "utc", Ft = "sequential", Ji = "diverging", Cf = "quantile", N2 = "quantize", U2 = "threshold", Id = "ordinal", Ef = "point", H2 = "band", Bd = "bin-ordinal", de = "continuous", aa = "discrete", ca = "discretizing", ct = "interpolating", G2 = "temporal";
|
4726
4726
|
function VS(t) {
|
4727
4727
|
return function(e) {
|
4728
4728
|
let n = e[0], r = e[1], i;
|
@@ -4739,7 +4739,7 @@ function _S(t) {
|
|
4739
4739
|
return r = t.invertExtent(n[o]), i = t.invertExtent(n[s]), [r[0] === void 0 ? r[1] : r[0], i[1] === void 0 ? i[0] : i[1]];
|
4740
4740
|
};
|
4741
4741
|
}
|
4742
|
-
function
|
4742
|
+
function Md() {
|
4743
4743
|
const t = dd().unknown(void 0), e = t.domain, n = t.range;
|
4744
4744
|
let r = [0, 1], i, o, s = !1, a = 0, c = 0, l = 0.5;
|
4745
4745
|
delete t.unknown;
|
@@ -4781,7 +4781,7 @@ function Bd() {
|
|
4781
4781
|
const h = t.invertRange([u, u]);
|
4782
4782
|
return h && h[0];
|
4783
4783
|
}, t.copy = function() {
|
4784
|
-
return
|
4784
|
+
return Md().domain(e()).range(r).round(s).paddingInner(a).paddingOuter(c).align(l);
|
4785
4785
|
}, f();
|
4786
4786
|
}
|
4787
4787
|
function V2(t) {
|
@@ -4791,7 +4791,7 @@ function V2(t) {
|
|
4791
4791
|
}, t;
|
4792
4792
|
}
|
4793
4793
|
function jS() {
|
4794
|
-
return V2(
|
4794
|
+
return V2(Md().paddingInner(1));
|
4795
4795
|
}
|
4796
4796
|
var WS = Array.prototype.map;
|
4797
4797
|
function YS(t) {
|
@@ -4834,7 +4834,7 @@ j(L2, zS, [de, G2]);
|
|
4834
4834
|
j(z2, NS, [de, G2]);
|
4835
4835
|
j(Ft, Ed, [de, ct]);
|
4836
4836
|
j("".concat(Ft, "-").concat(Hi), Ed, [de, ct]);
|
4837
|
-
j("".concat(Ft, "-").concat(Pn),
|
4837
|
+
j("".concat(Ft, "-").concat(Pn), M2, [de, ct, Pn]);
|
4838
4838
|
j("".concat(Ft, "-").concat(oa), kd, [de, ct]);
|
4839
4839
|
j("".concat(Ft, "-").concat(sa), US, [de, ct]);
|
4840
4840
|
j("".concat(Ft, "-").concat(Pl), P2, [de, ct]);
|
@@ -4845,10 +4845,10 @@ j("".concat(Ji, "-").concat(sa), HS, [de, ct]);
|
|
4845
4845
|
j("".concat(Ji, "-").concat(Pl), O2, [de, ct]);
|
4846
4846
|
j(Cf, T2, [ca, Cf]);
|
4847
4847
|
j(N2, I2, ca);
|
4848
|
-
j(U2,
|
4849
|
-
j(
|
4848
|
+
j(U2, B2, ca);
|
4849
|
+
j(Bd, _2, [aa, ca]);
|
4850
4850
|
j(Id, dd, aa);
|
4851
|
-
j(H2,
|
4851
|
+
j(H2, Md, aa);
|
4852
4852
|
j(Ef, jS, aa);
|
4853
4853
|
function qS(t) {
|
4854
4854
|
return lr(vc, t);
|
@@ -5109,7 +5109,7 @@ function sC(t) {
|
|
5109
5109
|
function jr(t) {
|
5110
5110
|
return K2[t] ?? t;
|
5111
5111
|
}
|
5112
|
-
function
|
5112
|
+
function Mr(t) {
|
5113
5113
|
return ["color", "fill", "stroke"].includes(jr(t));
|
5114
5114
|
}
|
5115
5115
|
function zl(t) {
|
@@ -5300,7 +5300,7 @@ function Nl(t, e) {
|
|
5300
5300
|
function SC(t, e) {
|
5301
5301
|
return typeof WebGLSampler < "u" && e instanceof WebGLSampler;
|
5302
5302
|
}
|
5303
|
-
const ty = 35044, Rt = 34962, CC = 34963, EC = 34660, kC = 5120, DC = 5121, TC = 5122, IC = 5123,
|
5303
|
+
const ty = 35044, Rt = 34962, CC = 34963, EC = 34660, kC = 5120, DC = 5121, TC = 5122, IC = 5123, BC = 5124, MC = 5125, PC = 5126, ny = {
|
5304
5304
|
attribPrefix: ""
|
5305
5305
|
};
|
5306
5306
|
function ry(t, e, n, r, i) {
|
@@ -5386,14 +5386,14 @@ function HC(t, e, n, r) {
|
|
5386
5386
|
n = Gd(n), r !== void 0 ? (t.bindBuffer(Rt, e.buffer), t.bufferSubData(Rt, r, n)) : ry(t, Rt, e.buffer, n, e.drawType);
|
5387
5387
|
}
|
5388
5388
|
function GC(t, e) {
|
5389
|
-
return e === kC || e === DC ? 1 : e === TC || e === IC ? 2 : e ===
|
5389
|
+
return e === kC || e === DC ? 1 : e === TC || e === IC ? 2 : e === BC || e === MC || e === PC ? 4 : 0;
|
5390
5390
|
}
|
5391
|
-
const
|
5391
|
+
const Bu = ["position", "positions", "a_position"];
|
5392
5392
|
function VC(t, e) {
|
5393
5393
|
let n, r;
|
5394
|
-
for (r = 0; r <
|
5394
|
+
for (r = 0; r < Bu.length && (n = Bu[r], !(n in e || (n = ny.attribPrefix + n, n in e))); ++r)
|
5395
5395
|
;
|
5396
|
-
r ===
|
5396
|
+
r === Bu.length && (n = Object.keys(e)[0]);
|
5397
5397
|
const i = e[n];
|
5398
5398
|
t.bindBuffer(Rt, i.buffer);
|
5399
5399
|
const o = t.getBufferParameter(Rt, EC);
|
@@ -5442,12 +5442,12 @@ const Df = function() {
|
|
5442
5442
|
return function() {
|
5443
5443
|
return t = t || (typeof document < "u" && document.createElement ? document.createElement("canvas").getContext("2d") : null), t;
|
5444
5444
|
};
|
5445
|
-
}(), Xp = 6406, kt = 6407, ne = 6408, qp = 6409, Kp = 6410, fo = 6402, Zp = 34041, wc = 33071, jC = 9728, WC = 9729, un = 3553, nn = 34067, Fn = 32879, Rn = 35866, Ul = 34069, YC = 34070, QC = 34071, XC = 34072, qC = 34073, KC = 34074, Tf = 10241, If = 10240, xc = 10242, Sc = 10243, Jp = 32882, ZC = 33082, JC = 33083, $C = 33084, eE = 33085, Vd = 3317, cy = 3314, ly = 32878, uy = 3316, fy = 3315, hy = 32877, tE = 37443, nE = 37441, rE = 37440, iE = 33321, oE = 36756, sE = 33325, aE = 33326, cE = 33330, lE = 33329, uE = 33338, fE = 33337, hE = 33340, dE = 33339, pE = 33323, mE = 36757, gE = 33327, yE = 33328, bE = 33336, vE = 33335, AE = 33332, wE = 33331, xE = 33334, SE = 33333, CE = 32849, EE = 35905, kE = 36194, DE = 36758, TE = 35898, IE = 35901,
|
5445
|
+
}(), Xp = 6406, kt = 6407, ne = 6408, qp = 6409, Kp = 6410, fo = 6402, Zp = 34041, wc = 33071, jC = 9728, WC = 9729, un = 3553, nn = 34067, Fn = 32879, Rn = 35866, Ul = 34069, YC = 34070, QC = 34071, XC = 34072, qC = 34073, KC = 34074, Tf = 10241, If = 10240, xc = 10242, Sc = 10243, Jp = 32882, ZC = 33082, JC = 33083, $C = 33084, eE = 33085, Vd = 3317, cy = 3314, ly = 32878, uy = 3316, fy = 3315, hy = 32877, tE = 37443, nE = 37441, rE = 37440, iE = 33321, oE = 36756, sE = 33325, aE = 33326, cE = 33330, lE = 33329, uE = 33338, fE = 33337, hE = 33340, dE = 33339, pE = 33323, mE = 36757, gE = 33327, yE = 33328, bE = 33336, vE = 33335, AE = 33332, wE = 33331, xE = 33334, SE = 33333, CE = 32849, EE = 35905, kE = 36194, DE = 36758, TE = 35898, IE = 35901, BE = 34843, ME = 34837, PE = 36221, FE = 36239, RE = 36215, OE = 36233, LE = 36209, zE = 36227, NE = 32856, UE = 35907, HE = 36759, GE = 32855, VE = 32854, _E = 32857, jE = 34842, WE = 34836, YE = 36220, QE = 36238, XE = 36975, qE = 36214, KE = 36232, ZE = 36226, JE = 36208, $E = 33189, e6 = 33190, t6 = 36012, n6 = 36013, r6 = 35056, pn = 5120, te = 5121, Ba = 5122, ii = 5123, Ma = 5124, er = 5125, Te = 5126, $p = 32819, em = 32820, tm = 33635, ut = 5131, ho = 36193, Mu = 33640, i6 = 35899, o6 = 35902, s6 = 36269, a6 = 34042, Pa = 33319, oi = 33320, Fa = 6403, si = 36244, ai = 36248, tr = 36249;
|
5446
5446
|
let Pu;
|
5447
5447
|
function Hl(t) {
|
5448
5448
|
if (!Pu) {
|
5449
5449
|
const e = {};
|
5450
|
-
e[Xp] = { textureFormat: Xp, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [te, ut, ho, Te] }, e[qp] = { textureFormat: qp, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [te, ut, ho, Te] }, e[Kp] = { textureFormat: Kp, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [te, ut, ho, Te] }, e[kt] = { textureFormat: kt, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [te, ut, ho, Te, tm] }, e[ne] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [te, ut, ho, Te, $p, em] }, e[fo] = { textureFormat: fo, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [er, ii] }, e[iE] = { textureFormat: Fa, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1], type: [te] }, e[oE] = { textureFormat: Fa, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [1], type: [pn] }, e[sE] = { textureFormat: Fa, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4, 2], type: [Te, ut] }, e[aE] = { textureFormat: Fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [4], type: [Te] }, e[cE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [te] }, e[lE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [pn] }, e[AE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [ii] }, e[wE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [
|
5450
|
+
e[Xp] = { textureFormat: Xp, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [te, ut, ho, Te] }, e[qp] = { textureFormat: qp, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [te, ut, ho, Te] }, e[Kp] = { textureFormat: Kp, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [te, ut, ho, Te] }, e[kt] = { textureFormat: kt, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [te, ut, ho, Te, tm] }, e[ne] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [te, ut, ho, Te, $p, em] }, e[fo] = { textureFormat: fo, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [er, ii] }, e[iE] = { textureFormat: Fa, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1], type: [te] }, e[oE] = { textureFormat: Fa, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [1], type: [pn] }, e[sE] = { textureFormat: Fa, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4, 2], type: [Te, ut] }, e[aE] = { textureFormat: Fa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [4], type: [Te] }, e[cE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [te] }, e[lE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [pn] }, e[AE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [ii] }, e[wE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Ba] }, e[xE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [er] }, e[SE] = { textureFormat: si, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Ma] }, e[pE] = { textureFormat: Pa, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2], type: [te] }, e[mE] = { textureFormat: Pa, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [2], type: [pn] }, e[gE] = { textureFormat: Pa, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [8, 4], type: [Te, ut] }, e[yE] = { textureFormat: Pa, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [8], type: [Te] }, e[bE] = { textureFormat: oi, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [te] }, e[vE] = { textureFormat: oi, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [pn] }, e[uE] = { textureFormat: oi, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [ii] }, e[fE] = { textureFormat: oi, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Ba] }, e[hE] = { textureFormat: oi, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [er] }, e[dE] = { textureFormat: oi, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [Ma] }, e[CE] = { textureFormat: kt, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3], type: [te] }, e[EE] = { textureFormat: kt, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [te] }, e[kE] = { textureFormat: kt, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 2], type: [te, tm] }, e[DE] = { textureFormat: kt, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [pn] }, e[TE] = { textureFormat: kt, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [Te, ut, i6] }, e[IE] = { textureFormat: kt, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [Te, ut, o6] }, e[BE] = { textureFormat: kt, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6], type: [Te, ut] }, e[ME] = { textureFormat: kt, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [Te] }, e[PE] = { textureFormat: ai, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [te] }, e[FE] = { textureFormat: ai, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [pn] }, e[RE] = { textureFormat: ai, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [ii] }, e[OE] = { textureFormat: ai, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [Ba] }, e[LE] = { textureFormat: ai, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [er] }, e[zE] = { textureFormat: ai, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [Ma] }, e[NE] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [te] }, e[UE] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [te] }, e[HE] = { textureFormat: ne, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4], type: [pn] }, e[GE] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2, 4], type: [te, em, Mu] }, e[VE] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2], type: [te, $p] }, e[_E] = { textureFormat: ne, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Mu] }, e[jE] = { textureFormat: ne, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [16, 8], type: [Te, ut] }, e[WE] = { textureFormat: ne, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [16], type: [Te] }, e[YE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [te] }, e[QE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [pn] }, e[XE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Mu] }, e[qE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [ii] }, e[KE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [Ba] }, e[ZE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [Ma] }, e[JE] = { textureFormat: tr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [er] }, e[$E] = { textureFormat: fo, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [ii, er] }, e[e6] = { textureFormat: fo, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [er] }, e[t6] = { textureFormat: fo, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Te] }, e[r6] = { textureFormat: Zp, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [a6] }, e[n6] = { textureFormat: Zp, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [s6] }, Object.keys(e).forEach(function(n) {
|
5451
5451
|
const r = e[n];
|
5452
5452
|
r.bytesPerElementMap = {}, r.bytesPerElement.forEach(function(i, o) {
|
5453
5453
|
const s = r.type[o];
|
@@ -5527,7 +5527,7 @@ function my(t, e, n) {
|
|
5527
5527
|
function h6(t) {
|
5528
5528
|
return t = t || Yn.textureColor, Gi(t) ? t : new Uint8Array([t[0] * 255, t[1] * 255, t[2] * 255, t[3] * 255]);
|
5529
5529
|
}
|
5530
|
-
function
|
5530
|
+
function Bf(t, e, n, r, i, o) {
|
5531
5531
|
n = n || Yn.textureOptions, o = o || ne;
|
5532
5532
|
const s = n.target || un;
|
5533
5533
|
if (r = r || n.width, i = i || n.height, t.bindTexture(s, e), l6(t, r, i, o))
|
@@ -5540,7 +5540,7 @@ function Mf(t, e, n, r, i, o) {
|
|
5540
5540
|
function as(t) {
|
5541
5541
|
return t.auto === !0 || t.auto === void 0 && t.level === void 0;
|
5542
5542
|
}
|
5543
|
-
function
|
5543
|
+
function Mf(t, e) {
|
5544
5544
|
return e = e || {}, e.cubeFaceOrder || [
|
5545
5545
|
Ul,
|
5546
5546
|
YC,
|
@@ -5551,7 +5551,7 @@ function Bf(t, e) {
|
|
5551
5551
|
];
|
5552
5552
|
}
|
5553
5553
|
function Pf(t, e) {
|
5554
|
-
const r =
|
5554
|
+
const r = Mf(t, e).map(function(i, o) {
|
5555
5555
|
return { face: i, ndx: o };
|
5556
5556
|
});
|
5557
5557
|
return r.sort(function(i, o) {
|
@@ -5586,7 +5586,7 @@ function gy(t, e, n, r) {
|
|
5586
5586
|
premultiplyAlpha: "none",
|
5587
5587
|
colorSpaceConversion: "none"
|
5588
5588
|
}).then(function(A) {
|
5589
|
-
Vi(t, r), t.bindTexture(i, e), t.texImage2D(y.face, o, c, f, u, A), as(r) &&
|
5589
|
+
Vi(t, r), t.bindTexture(i, e), t.texImage2D(y.face, o, c, f, u, A), as(r) && Bf(t, e, r, s, a, c);
|
5590
5590
|
});
|
5591
5591
|
}));
|
5592
5592
|
} else if (i === Fn || i === Rn) {
|
@@ -5602,7 +5602,7 @@ function gy(t, e, n, r) {
|
|
5602
5602
|
py(t);
|
5603
5603
|
} else
|
5604
5604
|
t.texImage2D(i, o, c, f, u, n);
|
5605
|
-
as(r) &&
|
5605
|
+
as(r) && Bf(t, e, r, s, a, c), my(t, e, r);
|
5606
5606
|
}
|
5607
5607
|
function fa() {
|
5608
5608
|
}
|
@@ -5689,11 +5689,11 @@ function y6(t, e, n, r) {
|
|
5689
5689
|
throw "target must be TEXTURE_CUBE_MAP";
|
5690
5690
|
jd(t, e, n), n = Object.assign({}, n);
|
5691
5691
|
let u = 6;
|
5692
|
-
const h = [], d =
|
5692
|
+
const h = [], d = Mf(t, n);
|
5693
5693
|
let p;
|
5694
5694
|
function m(g) {
|
5695
5695
|
return function(y, b) {
|
5696
|
-
--u, y ? h.push(y) : b.width !== b.height ? h.push("cubemap face img is not a square: " + b.src) : (Vi(t, n), t.bindTexture(f, e), u === 5 ?
|
5696
|
+
--u, y ? h.push(y) : b.width !== b.height ? h.push("cubemap face img is not a square: " + b.src) : (Vi(t, n), t.bindTexture(f, e), u === 5 ? Mf().forEach(function(v) {
|
5697
5697
|
t.texImage2D(v, o, s, c, l, b);
|
5698
5698
|
}) : t.texImage2D(g, o, s, c, l, b), as(n) && t.generateMipmap(f)), u === 0 && r(h.length ? h : void 0, e, p);
|
5699
5699
|
};
|
@@ -5805,7 +5805,7 @@ function cs(t, e, n) {
|
|
5805
5805
|
Array.isArray(c) && (typeof c[0] == "string" || yy(c[0])) ? i === nn ? y6(t, r, e, n) : b6(t, r, e, n) : (gy(t, r, c, e), o = c.width, s = c.height);
|
5806
5806
|
else
|
5807
5807
|
v6(t, r, e);
|
5808
|
-
return as(e) &&
|
5808
|
+
return as(e) && Bf(t, r, e, o, s, a), my(t, r, e), r;
|
5809
5809
|
}
|
5810
5810
|
function A6(t, e, n, r, i, o) {
|
5811
5811
|
r = r || n.width, i = i || n.height, o = o || n.depth;
|
@@ -5820,7 +5820,7 @@ function A6(t, e, n, r, i, o) {
|
|
5820
5820
|
else
|
5821
5821
|
s === Fn || s === Rn ? t.texImage3D(s, a, c, r, i, o, 0, f, u, null) : t.texImage2D(s, a, c, r, i, 0, f, u, null);
|
5822
5822
|
}
|
5823
|
-
const w6 = $2, Cc = 33984, x6 = 35048, Gl = 34962, S6 = 34963, Wd = 35345, vy = 35718, C6 = 35721, E6 = 35971, k6 = 35382, D6 = 35396, T6 = 35398, I6 = 35392,
|
5823
|
+
const w6 = $2, Cc = 33984, x6 = 35048, Gl = 34962, S6 = 34963, Wd = 35345, vy = 35718, C6 = 35721, E6 = 35971, k6 = 35382, D6 = 35396, T6 = 35398, I6 = 35392, B6 = 35395, Vl = 5126, Ay = 35664, wy = 35665, xy = 35666, Yd = 5124, Sy = 35667, Cy = 35668, Ey = 35669, ky = 35670, Dy = 35671, Ty = 35672, Iy = 35673, By = 35674, My = 35675, Py = 35676, M6 = 35678, P6 = 35680, F6 = 35679, R6 = 35682, O6 = 35685, L6 = 35686, z6 = 35687, N6 = 35688, U6 = 35689, H6 = 35690, G6 = 36289, V6 = 36292, _6 = 36293, Qd = 5125, Fy = 36294, Ry = 36295, Oy = 36296, j6 = 36298, W6 = 36299, Y6 = 36300, Q6 = 36303, X6 = 36306, q6 = 36307, K6 = 36308, Z6 = 36311, _l = 3553, jl = 34067, Xd = 32879, Wl = 35866, N = {};
|
5824
5824
|
function Ly(t, e) {
|
5825
5825
|
return N[e].bindPoint;
|
5826
5826
|
}
|
@@ -5985,8 +5985,8 @@ N[ky] = { Type: Uint32Array, size: 4, setter: zy, arraySetter: Ny };
|
|
5985
5985
|
N[Dy] = { Type: Uint32Array, size: 8, setter: Uy, cols: 2 };
|
5986
5986
|
N[Ty] = { Type: Uint32Array, size: 12, setter: Hy, cols: 3 };
|
5987
5987
|
N[Iy] = { Type: Uint32Array, size: 16, setter: Gy, cols: 4 };
|
5988
|
-
N[
|
5989
|
-
N[
|
5988
|
+
N[By] = { Type: Float32Array, size: 32, setter: c8, rows: 2, cols: 2 };
|
5989
|
+
N[My] = { Type: Float32Array, size: 48, setter: l8, rows: 3, cols: 3 };
|
5990
5990
|
N[Py] = { Type: Float32Array, size: 64, setter: u8, rows: 4, cols: 4 };
|
5991
5991
|
N[O6] = { Type: Float32Array, size: 32, setter: f8, rows: 2, cols: 3 };
|
5992
5992
|
N[L6] = { Type: Float32Array, size: 32, setter: d8, rows: 2, cols: 4 };
|
@@ -5994,7 +5994,7 @@ N[z6] = { Type: Float32Array, size: 48, setter: h8, rows: 3, cols: 2 };
|
|
5994
5994
|
N[N6] = { Type: Float32Array, size: 48, setter: m8, rows: 3, cols: 4 };
|
5995
5995
|
N[U6] = { Type: Float32Array, size: 64, setter: p8, rows: 4, cols: 2 };
|
5996
5996
|
N[H6] = { Type: Float32Array, size: 64, setter: g8, rows: 4, cols: 3 };
|
5997
|
-
N[
|
5997
|
+
N[M6] = { Type: null, size: 0, setter: Oe, arraySetter: Le, bindPoint: _l };
|
5998
5998
|
N[P6] = { Type: null, size: 0, setter: Oe, arraySetter: Le, bindPoint: jl };
|
5999
5999
|
N[F6] = { Type: null, size: 0, setter: Oe, arraySetter: Le, bindPoint: Xd };
|
6000
6000
|
N[R6] = { Type: null, size: 0, setter: Oe, arraySetter: Le, bindPoint: _l };
|
@@ -6106,8 +6106,8 @@ le[ky] = { size: 4, setter: Qn };
|
|
6106
6106
|
le[Dy] = { size: 8, setter: Qn };
|
6107
6107
|
le[Ty] = { size: 12, setter: Qn };
|
6108
6108
|
le[Iy] = { size: 16, setter: Qn };
|
6109
|
-
le[
|
6110
|
-
le[
|
6109
|
+
le[By] = { size: 4, setter: qd, count: 2 };
|
6110
|
+
le[My] = { size: 9, setter: qd, count: 3 };
|
6111
6111
|
le[Py] = { size: 16, setter: qd, count: 4 };
|
6112
6112
|
function Vy(t) {
|
6113
6113
|
const e = t.name;
|
@@ -6201,7 +6201,7 @@ function w8(t, e) {
|
|
6201
6201
|
usedByVertexShader: t.getActiveUniformBlockParameter(e, a, D6),
|
6202
6202
|
usedByFragmentShader: t.getActiveUniformBlockParameter(e, a, T6),
|
6203
6203
|
size: t.getActiveUniformBlockParameter(e, a, I6),
|
6204
|
-
uniformIndices: t.getActiveUniformBlockParameter(e, a,
|
6204
|
+
uniformIndices: t.getActiveUniformBlockParameter(e, a, B6)
|
6205
6205
|
};
|
6206
6206
|
l.used = l.usedByVertexShader || l.usedByFragmentShader, o[c] = l;
|
6207
6207
|
}
|
@@ -6339,8 +6339,8 @@ function Xl(t, e, n, r, i, o) {
|
|
6339
6339
|
const s = e.indices, a = e.elementType, c = r === void 0 ? e.numElements : r;
|
6340
6340
|
i = i === void 0 ? 0 : i, a || s ? o !== void 0 ? t.drawElementsInstanced(n, c, a === void 0 ? im : e.elementType, i, o) : t.drawElements(n, c, a === void 0 ? im : e.elementType, i) : o !== void 0 ? t.drawArraysInstanced(n, i, c, o) : t.drawArrays(n, i, c);
|
6341
6341
|
}
|
6342
|
-
const I8 = 36160, dr = 36161,
|
6343
|
-
{ format: F8, type:
|
6342
|
+
const I8 = 36160, dr = 36161, B8 = 3553, M8 = 5121, P8 = 6402, F8 = 6408, R8 = 33190, O8 = 36012, L8 = 35056, z8 = 36013, N8 = 32854, U8 = 32855, H8 = 36194, Yy = 33189, Qy = 6401, Xy = 36168, Kd = 34041, G8 = 36064, ql = 36096, qy = 36128, Zd = 33306, Ff = 33071, Rf = 9729, Ky = [
|
6343
|
+
{ format: F8, type: M8, min: Rf, wrap: Ff },
|
6344
6344
|
{ format: Kd }
|
6345
6345
|
], St = {};
|
6346
6346
|
St[Kd] = Zd;
|
@@ -6399,7 +6399,7 @@ function j8(t, e, n, r) {
|
|
6399
6399
|
) : t.framebufferTexture2D(
|
6400
6400
|
i,
|
6401
6401
|
h,
|
6402
|
-
c.target ||
|
6402
|
+
c.target || B8,
|
6403
6403
|
l,
|
6404
6404
|
c.level || 0
|
6405
6405
|
);
|
@@ -6693,7 +6693,7 @@ function t9(t, e) {
|
|
6693
6693
|
if (zl(t))
|
6694
6694
|
n = pr(Z2(t)(e));
|
6695
6695
|
else if (X(e))
|
6696
|
-
if (
|
6696
|
+
if (Mr(t))
|
6697
6697
|
n = r9(e);
|
6698
6698
|
else
|
6699
6699
|
throw new Error(
|
@@ -6702,7 +6702,7 @@ function t9(t, e) {
|
|
6702
6702
|
else if (Qs(e))
|
6703
6703
|
n = pr(e ? 1 : 0);
|
6704
6704
|
else if (e === null)
|
6705
|
-
if (
|
6705
|
+
if (Mr(t))
|
6706
6706
|
n = pr([0, 0, 0]);
|
6707
6707
|
else
|
6708
6708
|
throw new Error(
|
@@ -6728,9 +6728,9 @@ function n9(t, e, n, r = [t]) {
|
|
6728
6728
|
let d;
|
6729
6729
|
const p = [];
|
6730
6730
|
p.push(""), p.push("/".repeat(70)), p.push(`// Channel: ${t}`), p.push(""), p.push(`#define ${t}_DEFINED`);
|
6731
|
-
const { transform: m } = e9(e.type), g = (
|
6731
|
+
const { transform: m } = e9(e.type), g = (M, ...pe) => (
|
6732
6732
|
// eslint-disable-next-line no-useless-call
|
6733
|
-
i9.apply(null, [
|
6733
|
+
i9.apply(null, [M, "value", ...pe])
|
6734
6734
|
);
|
6735
6735
|
let y;
|
6736
6736
|
switch (m) {
|
@@ -6800,41 +6800,41 @@ function n9(t, e, n, r = [t]) {
|
|
6800
6800
|
`Unsupported scale type: ${e.type}! ${t}: ${JSON.stringify(n)}`
|
6801
6801
|
);
|
6802
6802
|
}
|
6803
|
-
const b = Fl(e.type) || ye(e.type) &&
|
6803
|
+
const b = Fl(e.type) || ye(e.type) && Mr(t) ? [0, 1] : e.range ? e.range() : void 0;
|
6804
6804
|
if (b && t == i && b.length && b.every(ce)) {
|
6805
|
-
const
|
6805
|
+
const M = cm(b);
|
6806
6806
|
p.push(
|
6807
|
-
`const ${
|
6807
|
+
`const ${M.type} ${a} = ${M};`
|
6808
6808
|
);
|
6809
6809
|
}
|
6810
|
-
const v =
|
6810
|
+
const v = Mr(t) ? "vec3" : "float";
|
6811
6811
|
let A;
|
6812
|
-
if (
|
6813
|
-
const
|
6814
|
-
if (t == i && p.push(`uniform sampler2D ${
|
6815
|
-
A = `getInterpolatedColor(${
|
6812
|
+
if (Mr(t)) {
|
6813
|
+
const M = Of + i;
|
6814
|
+
if (t == i && p.push(`uniform sampler2D ${M};`), ye(e.type))
|
6815
|
+
A = `getInterpolatedColor(${M}, transformed)`;
|
6816
6816
|
else if (wt(e.type) || yn(e.type))
|
6817
|
-
A = `getDiscreteColor(${
|
6817
|
+
A = `getDiscreteColor(${M}, int(transformed))`;
|
6818
6818
|
else
|
6819
6819
|
throw new Error("Problem with color scale!");
|
6820
6820
|
} else if (e.type === "ordinal" || yn(e.type)) {
|
6821
|
-
const
|
6822
|
-
t == i && p.push(`uniform sampler2D ${
|
6821
|
+
const M = Of + i;
|
6822
|
+
t == i && p.push(`uniform sampler2D ${M};`), A = `getDiscreteColor(${M}, int(transformed)).r`;
|
6823
6823
|
}
|
6824
6824
|
const S = ua(n) ? `uniform highp ${u} ${o};` : `in highp ${u} ${o};`, w = [], C = ye(e.type) && h > 2, D = yn(e.type) || C;
|
6825
6825
|
if (w.push("int slot = 0;"), D) {
|
6826
|
-
const
|
6826
|
+
const M = s;
|
6827
6827
|
w.push(
|
6828
|
-
C ? `while (slot < ${
|
6828
|
+
C ? `while (slot < ${M}.length() - 2 && value >= ${M}[slot + 1]) { slot++; }` : `while (slot < ${M}.length() && value >= ${M}[slot]) { slot++; }`
|
6829
6829
|
);
|
6830
6830
|
}
|
6831
6831
|
const U = ye(e.type) || yn(e.type) || ["band", "point"].includes(e.type);
|
6832
6832
|
if (y) {
|
6833
|
-
const
|
6834
|
-
U && (l ? w.push(`vec3 domain = ${
|
6835
|
-
`vec2 domain = vec2(${
|
6833
|
+
const M = s;
|
6834
|
+
U && (l ? w.push(`vec3 domain = ${M};`) : w.push(
|
6835
|
+
`vec2 domain = vec2(${M}[slot], ${M}[slot + 1]);`
|
6836
6836
|
)), w.push(`float transformed = ${y};`), C && w.push(
|
6837
|
-
`transformed = (float(slot) + transformed) / (float(${
|
6837
|
+
`transformed = (float(slot) + transformed) / (float(${M}.length() - 1));`
|
6838
6838
|
);
|
6839
6839
|
} else
|
6840
6840
|
w.push("float transformed = float(slot);");
|
@@ -6842,7 +6842,7 @@ function n9(t, e, n, r = [t]) {
|
|
6842
6842
|
`transformed = clampToRange(transformed, ${cm(b)});`
|
6843
6843
|
), w.push(`return ${A ?? "transformed"};`), p.push(`
|
6844
6844
|
${v} ${sm}${t}(${u} value) {
|
6845
|
-
${w.map((
|
6845
|
+
${w.map((M) => ` ${M}
|
6846
6846
|
`).join("")}
|
6847
6847
|
}`), p.push(`
|
6848
6848
|
${v} ${$y}${t}() {
|
@@ -6851,8 +6851,8 @@ ${v} ${$y}${t}() {
|
|
6851
6851
|
const W = p.join(`
|
6852
6852
|
`);
|
6853
6853
|
if (U && t == i) {
|
6854
|
-
const
|
6855
|
-
d = l ? `highp vec3 ${s};` : `mediump float ${s}[${
|
6854
|
+
const M = ye(e.type) || yn(e.type) ? h : 2;
|
6855
|
+
d = l ? `highp vec3 ${s};` : `mediump float ${s}[${M}];`;
|
6856
6856
|
}
|
6857
6857
|
return {
|
6858
6858
|
attributeGlsl: S,
|
@@ -6881,7 +6881,7 @@ function pr(t) {
|
|
6881
6881
|
return e > 1 ? (n = `vec${e}`, r = `${n}(${t.map(Lf).join(", ")})`) : (n = "float", r = Lf(t[0])), Object.assign(r, { type: n, numComponents: e });
|
6882
6882
|
}
|
6883
6883
|
function r9(t) {
|
6884
|
-
const e =
|
6884
|
+
const e = Mn(t).rgb();
|
6885
6885
|
return pr([e.r, e.g, e.b].map((n) => n / 255));
|
6886
6886
|
}
|
6887
6887
|
function cm(t) {
|
@@ -6930,7 +6930,7 @@ function tb(t) {
|
|
6930
6930
|
return e;
|
6931
6931
|
}
|
6932
6932
|
function nb(t) {
|
6933
|
-
return
|
6933
|
+
return Me(t).join("_");
|
6934
6934
|
}
|
6935
6935
|
const lm = 1e4;
|
6936
6936
|
var xs, Wc, rb, Yc, ib;
|
@@ -6949,7 +6949,7 @@ class f9 {
|
|
6949
6949
|
configure() {
|
6950
6950
|
if (x(this, xs))
|
6951
6951
|
throw new Error("Already configured!");
|
6952
|
-
|
6952
|
+
B(this, Wc, rb).call(this), B(this, Yc, ib).call(this), L(this, xs, !0);
|
6953
6953
|
}
|
6954
6954
|
/**
|
6955
6955
|
*
|
@@ -7118,7 +7118,7 @@ function d9(t, e, n, r = n) {
|
|
7118
7118
|
c.fill(0);
|
7119
7119
|
const l = e[0], u = (e[1] - e[0]) / t, h = (y, b) => {
|
7120
7120
|
const v = (y - l) / u, A = Math.floor(v);
|
7121
|
-
return
|
7121
|
+
return Bn(
|
7122
7122
|
b && A == v ? A - 1 : A,
|
7123
7123
|
0,
|
7124
7124
|
t - 1
|
@@ -7999,7 +7999,7 @@ function ab(t, { extent: e = [0, 1], reverse: n = !1, count: r = 256 } = {}) {
|
|
7999
7999
|
function cb(t, e) {
|
8000
8000
|
const n = Math.max(t.length, e || 0), r = new Uint8Array(n * 3);
|
8001
8001
|
for (let i = 0; i < n; i++) {
|
8002
|
-
const o =
|
8002
|
+
const o = Mn(t[i % t.length]).rgb();
|
8003
8003
|
r[i * 3 + 0] = o.r, r[i * 3 + 1] = o.g, r[i * 3 + 2] = o.b;
|
8004
8004
|
}
|
8005
8005
|
return r;
|
@@ -8048,7 +8048,7 @@ class k9 {
|
|
8048
8048
|
o,
|
8049
8049
|
this._pickingAttachmentOptions
|
8050
8050
|
), o.bindFramebuffer(o.FRAMEBUFFER, null), this.adjustGl(), this._updateDpr(), this._clearColor = [0, 0, 0, 0], r) {
|
8051
|
-
const s =
|
8051
|
+
const s = Mn(r).rgb();
|
8052
8052
|
this._clearColor = [s.r / 255, s.g / 255, s.b / 255, s.opacity];
|
8053
8053
|
}
|
8054
8054
|
}
|
@@ -8153,7 +8153,7 @@ class k9 {
|
|
8153
8153
|
return wt(a.type) ? a.domain().length : a.type == "threshold" ? a.domain().length + 1 : a.type == "quantize" || a.type == "quantile" ? s ?? 4 : s;
|
8154
8154
|
}
|
8155
8155
|
const o = e.channel;
|
8156
|
-
if (
|
8156
|
+
if (Mr(o)) {
|
8157
8157
|
const s = e.getScaleProps(), a = e.getScale(), c = (
|
8158
8158
|
/** @type {any[]} */
|
8159
8159
|
a.range()
|
@@ -8281,7 +8281,7 @@ function I9(...t) {
|
|
8281
8281
|
};
|
8282
8282
|
return new Proxy({}, e);
|
8283
8283
|
}
|
8284
|
-
function
|
8284
|
+
function B9(t) {
|
8285
8285
|
return X(t) || ce(t) || Qs(t);
|
8286
8286
|
}
|
8287
8287
|
class Pr extends Error {
|
@@ -8293,7 +8293,7 @@ class Pr extends Error {
|
|
8293
8293
|
super(e), this.name = "ViewError", this.view = n;
|
8294
8294
|
}
|
8295
8295
|
}
|
8296
|
-
const
|
8296
|
+
const M9 = "SAMPLE_FACET_UNIFORM", hm = "SAMPLE_FACET_TEXTURE";
|
8297
8297
|
class pa {
|
8298
8298
|
/**
|
8299
8299
|
* @typedef {import("../spec/mark.js").MarkConfig} MarkConfig
|
@@ -8399,7 +8399,7 @@ class pa {
|
|
8399
8399
|
/** @type {keyof MarkConfig} */
|
8400
8400
|
a
|
8401
8401
|
];
|
8402
|
-
return
|
8402
|
+
return B9(c) && { value: c };
|
8403
8403
|
}, i = Object.fromEntries(
|
8404
8404
|
this.getSupportedChannels().map(
|
8405
8405
|
(a) => (
|
@@ -8456,7 +8456,7 @@ class pa {
|
|
8456
8456
|
// that will be available in the future.
|
8457
8457
|
this.unitView.getLayoutAncestors().find((e) => "samples" in e.spec)
|
8458
8458
|
)
|
8459
|
-
return
|
8459
|
+
return M9;
|
8460
8460
|
}
|
8461
8461
|
/**
|
8462
8462
|
*
|
@@ -9014,7 +9014,7 @@ class F9 extends pa {
|
|
9014
9014
|
return ji(
|
9015
9015
|
this,
|
9016
9016
|
"opaque",
|
9017
|
-
() => !
|
9017
|
+
() => !B(this, Ss, Hf).call(this) && !B(this, Cs, Gf).call(this) && xt(this.encoding.fillOpacity) && this.encoding.fillOpacity.value == 1 && this.properties.minOpacity == 1
|
9018
9018
|
) && this.unitView.getEffectiveOpacity() == 1;
|
9019
9019
|
}
|
9020
9020
|
/**
|
@@ -9031,7 +9031,7 @@ class F9 extends pa {
|
|
9031
9031
|
async initializeGraphics() {
|
9032
9032
|
await super.initializeGraphics();
|
9033
9033
|
const n = [];
|
9034
|
-
|
9034
|
+
B(this, Ss, Hf).call(this) && n.push("ROUNDED_CORNERS"), B(this, Cs, Gf).call(this) && n.push("STROKED"), this.createAndLinkShaders(
|
9035
9035
|
Z8,
|
9036
9036
|
J8,
|
9037
9037
|
n.map((r) => "#define " + r)
|
@@ -9104,7 +9104,7 @@ class F9 extends pa {
|
|
9104
9104
|
* @override
|
9105
9105
|
*/
|
9106
9106
|
findDatumAt(n, r) {
|
9107
|
-
n =
|
9107
|
+
n = Me(n);
|
9108
9108
|
const i = this.unitView.getCollector().facetBatches.get(n);
|
9109
9109
|
if (!i)
|
9110
9110
|
return;
|
@@ -11021,7 +11021,7 @@ const G0 = class G0 {
|
|
11021
11021
|
* @param {import("./padding.js").default} padding
|
11022
11022
|
*/
|
11023
11023
|
addPadding(e) {
|
11024
|
-
return
|
11024
|
+
return B(this, Es, Vf).call(this, e.width, e.height);
|
11025
11025
|
}
|
11026
11026
|
/**
|
11027
11027
|
* Subtracts padding from absolute (px) dimensions
|
@@ -11029,7 +11029,7 @@ const G0 = class G0 {
|
|
11029
11029
|
* @param {import("./padding.js").default} padding
|
11030
11030
|
*/
|
11031
11031
|
subtractPadding(e) {
|
11032
|
-
return
|
11032
|
+
return B(this, Es, Vf).call(this, -e.width, -e.height);
|
11033
11033
|
}
|
11034
11034
|
};
|
11035
11035
|
Es = new WeakSet(), Vf = function(e, n) {
|
@@ -11045,12 +11045,12 @@ Es = new WeakSet(), Vf = function(e, n) {
|
|
11045
11045
|
);
|
11046
11046
|
};
|
11047
11047
|
let rn = G0;
|
11048
|
-
const
|
11048
|
+
const Bo = Object.freeze({
|
11049
11049
|
px: 0,
|
11050
11050
|
grow: 0
|
11051
11051
|
}), dm = new rn(
|
11052
|
-
|
11053
|
-
|
11052
|
+
Bo,
|
11053
|
+
Bo
|
11054
11054
|
);
|
11055
11055
|
function Lu(t) {
|
11056
11056
|
return !t.px && !t.grow;
|
@@ -11345,8 +11345,8 @@ class hk {
|
|
11345
11345
|
return this._cache(
|
11346
11346
|
"size/size",
|
11347
11347
|
() => this.isConfiguredVisible() ? new rn(
|
11348
|
-
|
11349
|
-
|
11348
|
+
B(this, yr, vo).call(this, "width"),
|
11349
|
+
B(this, yr, vo).call(this, "height")
|
11350
11350
|
) : dm
|
11351
11351
|
);
|
11352
11352
|
}
|
@@ -11360,8 +11360,8 @@ class hk {
|
|
11360
11360
|
return dm;
|
11361
11361
|
const e = this.getSize();
|
11362
11362
|
return new rn(
|
11363
|
-
|
11364
|
-
|
11363
|
+
B(this, yr, vo).call(this, "viewportWidth") ?? e.width,
|
11364
|
+
B(this, yr, vo).call(this, "viewportHeight") ?? e.height
|
11365
11365
|
);
|
11366
11366
|
}
|
11367
11367
|
isConfiguredVisible() {
|
@@ -11405,13 +11405,13 @@ class hk {
|
|
11405
11405
|
* Returns the ancestor views, starting with this view.
|
11406
11406
|
*/
|
11407
11407
|
getLayoutAncestors() {
|
11408
|
-
return
|
11408
|
+
return B(this, Ts, jf).call(this, "layoutParent");
|
11409
11409
|
}
|
11410
11410
|
/**
|
11411
11411
|
* Returns the ancestor views, starting with this view.
|
11412
11412
|
*/
|
11413
11413
|
getDataAncestors() {
|
11414
|
-
return
|
11414
|
+
return B(this, Ts, jf).call(this, "dataParent");
|
11415
11415
|
}
|
11416
11416
|
/**
|
11417
11417
|
* Handles a broadcast message that is intended for the whole view hierarchy.
|
@@ -12157,17 +12157,17 @@ function Sb(t, e, n) {
|
|
12157
12157
|
);
|
12158
12158
|
}
|
12159
12159
|
function Ik(t, e) {
|
12160
|
-
const n =
|
12160
|
+
const n = Bk(t), r = j(n);
|
12161
12161
|
if (!r)
|
12162
12162
|
throw new Error("Unknown scale type: " + n);
|
12163
12163
|
const i = r();
|
12164
12164
|
return !t.domain && ye(i.type) && (t.domain = [0, 0]), Sb(t, i, e), i;
|
12165
12165
|
}
|
12166
|
-
function
|
12166
|
+
function Bk(t) {
|
12167
12167
|
var e = t.type, n = "", r;
|
12168
|
-
return e === Ft ? Ft + "-" + Hi : (
|
12168
|
+
return e === Ft ? Ft + "-" + Hi : (Mk(t) && (r = t.rawDomain ? t.rawDomain.length : t.domain ? t.domain.length + +(t.domainMid != null) : 0, n = r === 2 ? Ft + "-" : r === 3 ? Ji + "-" : ""), (n + e || Hi).toLowerCase());
|
12169
12169
|
}
|
12170
|
-
function
|
12170
|
+
function Mk(t) {
|
12171
12171
|
const e = t.type;
|
12172
12172
|
return ye(e) && e !== L2 && e !== z2 && (t.scheme || t.range && t.range.length && t.range.every(X));
|
12173
12173
|
}
|
@@ -12214,7 +12214,7 @@ function Ok(t, e, n) {
|
|
12214
12214
|
const i = (r.start == null || r.stop == null) && t.domain(), o = r.start == null ? i[0] : r.start, s = r.stop == null ? At(i) : r.stop, a = r.step;
|
12215
12215
|
a || ie("Scale bins parameter missing step property."), r = kn(o, s + a, a);
|
12216
12216
|
}
|
12217
|
-
return r ? t.bins = r : t.bins && delete t.bins, t.type ===
|
12217
|
+
return r ? t.bins = r : t.bins && delete t.bins, t.type === Bd && (r ? !e.domain && !e.domainRaw && (t.domain(r), n = r.length) : t.bins = t.domain()), n;
|
12218
12218
|
}
|
12219
12219
|
function Lk(t, e, n) {
|
12220
12220
|
var r = t.type, i = e.round || !1, o = e.range;
|
@@ -12244,7 +12244,7 @@ function zk(t, e, n) {
|
|
12244
12244
|
}
|
12245
12245
|
function Nk(t, e, n) {
|
12246
12246
|
var r = e.schemeExtent, i, o;
|
12247
|
-
return We(e.scheme) ? o = Rl(e.scheme, e.interpolate, e.interpolateGamma) : (i = e.scheme.toLowerCase(), o = Pd(i), o || ie(`Unrecognized scheme name: ${e.scheme}`)), n = t === U2 ? n + 1 : t ===
|
12247
|
+
return We(e.scheme) ? o = Rl(e.scheme, e.interpolate, e.interpolateGamma) : (i = e.scheme.toLowerCase(), o = Pd(i), o || ie(`Unrecognized scheme name: ${e.scheme}`)), n = t === U2 ? n + 1 : t === Bd ? n - 1 : t === Cf || t === N2 ? +e.schemeCount || kk : n, Fl(t) ? gm(o, r, e.reverse) : _e(o) ? ZS(gm(o, r), n) : t === Id ? o : o.slice(0, n);
|
12248
12248
|
}
|
12249
12249
|
function gm(t, e, n) {
|
12250
12250
|
return _e(t) && (e || n) ? KS(t, Wf(e || [0, 1], n)) : t;
|
@@ -12640,7 +12640,7 @@ j("index", e0, ["continuous"]);
|
|
12640
12640
|
j("locus", mk, ["continuous"]);
|
12641
12641
|
j("null", Ol, []);
|
12642
12642
|
const vm = "quantitative", t0 = "ordinal", n0 = "nominal", Tb = "locus", $k = "index";
|
12643
|
-
var jt, Ai, Ce, Dt, gn, Qc, Ib, wi, Ka, Wt, ir, Is, Qf, Xc,
|
12643
|
+
var jt, Ai, Ce, Dt, gn, Qc, Ib, wi, Ka, Wt, ir, Is, Qf, Xc, Bb, Hh, t7, Bs, Xf;
|
12644
12644
|
class e7 {
|
12645
12645
|
/**
|
12646
12646
|
* @param {Channel} channel
|
@@ -12675,7 +12675,7 @@ class e7 {
|
|
12675
12675
|
* @param {function(ResolutionMember):DomainArray} domainAccessor
|
12676
12676
|
* @returns {DomainArray}
|
12677
12677
|
*/
|
12678
|
-
I(this,
|
12678
|
+
I(this, Bs);
|
12679
12679
|
/**
|
12680
12680
|
* @typedef {import("../types/scaleResolutionApi.js").ScaleResolutionApi} ScaleResolutionApi
|
12681
12681
|
* @typedef {import("../spec/channel.js").Channel} Channel
|
@@ -12766,15 +12766,15 @@ class e7 {
|
|
12766
12766
|
*/
|
12767
12767
|
getScaleProps() {
|
12768
12768
|
return ji(this, "scaleProps", () => {
|
12769
|
-
const e =
|
12769
|
+
const e = B(this, Qc, Ib).call(this);
|
12770
12770
|
if (e === null || e.type == "null")
|
12771
12771
|
return { type: "null" };
|
12772
12772
|
const n = {
|
12773
|
-
...
|
12773
|
+
...B(this, Xc, Bb).call(this, this.type),
|
12774
12774
|
...e
|
12775
12775
|
};
|
12776
12776
|
n.type || (n.type = n7(this.channel, this.type));
|
12777
|
-
const r =
|
12777
|
+
const r = B(this, wi, Ka).call(this);
|
12778
12778
|
return r && r.length > 0 ? n.domain = r : wt(n.type) && (n.domain = new Db()), !n.domain && n.domainMid !== void 0 && (n.domain = [n.domainMin ?? 0, n.domainMax ?? 1]), this.channel == "y" && wt(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), r7(n, this.channel), n;
|
12779
12779
|
});
|
12780
12780
|
}
|
@@ -12784,7 +12784,7 @@ class e7 {
|
|
12784
12784
|
* @return { DomainArray }
|
12785
12785
|
*/
|
12786
12786
|
getConfiguredDomain() {
|
12787
|
-
return
|
12787
|
+
return B(this, Bs, Xf).call(this, (e) => To(e.channel) ? void 0 : e.view.getConfiguredDomain(e.channel));
|
12788
12788
|
}
|
12789
12789
|
/**
|
12790
12790
|
* Extracts and unions the data domains of all participating views.
|
@@ -12792,7 +12792,7 @@ class e7 {
|
|
12792
12792
|
* @return { DomainArray }
|
12793
12793
|
*/
|
12794
12794
|
getDataDomain() {
|
12795
|
-
return
|
12795
|
+
return B(this, Bs, Xf).call(this, (e) => To(e.channel) ? void 0 : e.view.extractDataDomain(e.channel));
|
12796
12796
|
}
|
12797
12797
|
/**
|
12798
12798
|
* Reconfigures the scale: updates domain and other settings
|
@@ -12802,12 +12802,12 @@ class e7 {
|
|
12802
12802
|
const e = this.isDomainInitialized(), n = x(this, Ce).domain();
|
12803
12803
|
ob(this, "scaleProps");
|
12804
12804
|
const r = this.getScaleProps();
|
12805
|
-
if (Sb(r, x(this, Ce)), ye(x(this, Ce).type) && L(this, jt,
|
12806
|
-
|
12805
|
+
if (Sb(r, x(this, Ce)), ye(x(this, Ce).type) && L(this, jt, B(this, Is, Qf).call(this)), !e) {
|
12806
|
+
B(this, Dt, gn).call(this);
|
12807
12807
|
return;
|
12808
12808
|
}
|
12809
12809
|
const i = x(this, Ce).domain();
|
12810
|
-
dc(i, n) || (this.isZoomable() ? x(this, Ce).domain(n) :
|
12810
|
+
dc(i, n) || (this.isZoomable() ? x(this, Ce).domain(n) : B(this, Wt, ir).call(this) ? (x(this, Ce).domain(n), this.zoomTo(i, 500)) : B(this, Dt, gn).call(this));
|
12811
12811
|
}
|
12812
12812
|
}
|
12813
12813
|
/**
|
@@ -12817,7 +12817,7 @@ class e7 {
|
|
12817
12817
|
if (x(this, Ce))
|
12818
12818
|
return x(this, Ce);
|
12819
12819
|
const e = this.getScaleProps(), n = Ik(e);
|
12820
|
-
return L(this, Ce, n), gk(n) && n.genome(this.getGenome()), ye(n.type) && L(this, jt,
|
12820
|
+
return L(this, Ce, n), gk(n) && n.genome(this.getGenome()), ye(n.type) && L(this, jt, B(this, Is, Qf).call(this)), n;
|
12821
12821
|
}
|
12822
12822
|
getDomain() {
|
12823
12823
|
return this.getScale().domain();
|
@@ -12835,13 +12835,13 @@ class e7 {
|
|
12835
12835
|
* @returns true if zoomed
|
12836
12836
|
*/
|
12837
12837
|
isZoomed() {
|
12838
|
-
return
|
12838
|
+
return B(this, Wt, ir).call(this) && dc(B(this, wi, Ka).call(this), this.getDomain());
|
12839
12839
|
}
|
12840
12840
|
/**
|
12841
12841
|
* Returns true if zooming is supported and allowed in view spec.
|
12842
12842
|
*/
|
12843
12843
|
isZoomable() {
|
12844
|
-
return
|
12844
|
+
return B(this, Wt, ir).call(this) && !!this.getScaleProps().zoom;
|
12845
12845
|
}
|
12846
12846
|
/**
|
12847
12847
|
* Pans (translates) and zooms using a specified scale factor.
|
@@ -12852,7 +12852,7 @@ class e7 {
|
|
12852
12852
|
* @returns {boolean} true if the scale was zoomed
|
12853
12853
|
*/
|
12854
12854
|
zoom(e, n, r) {
|
12855
|
-
if (!
|
12855
|
+
if (!B(this, Wt, ir).call(this))
|
12856
12856
|
return !1;
|
12857
12857
|
const i = this.getScale(), o = i.domain();
|
12858
12858
|
let s = [...o], a = i.invert(n);
|
@@ -12888,7 +12888,7 @@ class e7 {
|
|
12888
12888
|
s,
|
12889
12889
|
x(this, jt)[0],
|
12890
12890
|
x(this, jt)[1]
|
12891
|
-
)), [0, 1].some((c) => s[c] != o[c]) ? (i.domain(s),
|
12891
|
+
)), [0, 1].some((c) => s[c] != o[c]) ? (i.domain(s), B(this, Dt, gn).call(this), !0) : !1;
|
12892
12892
|
}
|
12893
12893
|
/**
|
12894
12894
|
* Immediately zooms to the given interval.
|
@@ -12899,7 +12899,7 @@ class e7 {
|
|
12899
12899
|
*/
|
12900
12900
|
async zoomTo(e, n = !1) {
|
12901
12901
|
var a;
|
12902
|
-
if (Qs(n) && (n = n ? 700 : 0), !
|
12902
|
+
if (Qs(n) && (n = n ? 700 : 0), !B(this, Wt, ir).call(this))
|
12903
12903
|
throw new Error("Not a zoomable scale!");
|
12904
12904
|
const r = this.fromComplexInterval(e), i = (a = this.members[0]) == null ? void 0 : a.view.context.animator, o = this.getScale(), s = (
|
12905
12905
|
/** @type {number[]} */
|
@@ -12912,11 +12912,11 @@ class e7 {
|
|
12912
12912
|
easingFunction: qk,
|
12913
12913
|
onUpdate: (h) => {
|
12914
12914
|
const d = Jk(c, f, h), p = (c - d) / (c - f), m = p * u + (1 - p) * l;
|
12915
|
-
o.domain([m - d / 2, m + d / 2]),
|
12915
|
+
o.domain([m - d / 2, m + d / 2]), B(this, Dt, gn).call(this);
|
12916
12916
|
}
|
12917
|
-
}), o.domain(r),
|
12917
|
+
}), o.domain(r), B(this, Dt, gn).call(this);
|
12918
12918
|
} else
|
12919
|
-
o.domain(r), i == null || i.requestRender(),
|
12919
|
+
o.domain(r), i == null || i.requestRender(), B(this, Dt, gn).call(this);
|
12920
12920
|
}
|
12921
12921
|
/**
|
12922
12922
|
* Resets the current domain to the initial one
|
@@ -12924,10 +12924,10 @@ class e7 {
|
|
12924
12924
|
* @returns true if the domain was changed
|
12925
12925
|
*/
|
12926
12926
|
resetZoom() {
|
12927
|
-
if (!
|
12927
|
+
if (!B(this, Wt, ir).call(this))
|
12928
12928
|
throw new Error("Not a zoomable scale!");
|
12929
|
-
const e = this.getDomain(), n =
|
12930
|
-
return [0, 1].some((r) => n[r] != e[r]) ? (x(this, Ce).domain(n),
|
12929
|
+
const e = this.getDomain(), n = B(this, wi, Ka).call(this);
|
12930
|
+
return [0, 1].some((r) => n[r] != e[r]) ? (x(this, Ce).domain(n), B(this, Dt, gn).call(this), !0) : !1;
|
12931
12931
|
}
|
12932
12932
|
/**
|
12933
12933
|
* Returns the zoom level with respect to the reference domain span (the original domain).
|
@@ -13018,12 +13018,12 @@ jt = new WeakMap(), Ai = new WeakMap(), Ce = new WeakMap(), Dt = new WeakSet(),
|
|
13018
13018
|
return this.fromComplexInterval(n.extent);
|
13019
13019
|
if (n)
|
13020
13020
|
return e.type == "locus" ? this.getGenome().getExtent() : x(this, Ce).domain();
|
13021
|
-
}, Xc = new WeakSet(),
|
13021
|
+
}, Xc = new WeakSet(), Bb = function(e) {
|
13022
13022
|
const n = this.channel, r = {};
|
13023
|
-
return this.isExplicitDomain() && (r.zero = !1), os(n) ? r.nice = !this.isExplicitDomain() :
|
13023
|
+
return this.isExplicitDomain() && (r.zero = !1), os(n) ? r.nice = !this.isExplicitDomain() : Mr(n) ? r.scheme = e == n0 ? "tableau10" : e == t0 ? "blues" : "viridis" : zl(n) ? r.range = n == "shape" ? ["circle", "square", "triangle-up", "cross", "diamond"] : [] : n == "size" ? r.range = [0, 400] : n == "angle" && (r.range = [0, 360]), r;
|
13024
13024
|
}, Hh = new WeakSet(), t7 = function() {
|
13025
13025
|
return this.members.map((e) => e.view.getPathString()).join(", ");
|
13026
|
-
},
|
13026
|
+
}, Bs = new WeakSet(), Xf = function(e) {
|
13027
13027
|
const n = this.members.filter(
|
13028
13028
|
(r) => !r.view.getLayoutAncestors().some((i) => !i.options.contributesToScaleDomain)
|
13029
13029
|
).map(e).filter((r) => !!r);
|
@@ -13072,7 +13072,7 @@ function qf(t) {
|
|
13072
13072
|
for (const i of Object.values(r.resolutions.scale))
|
13073
13073
|
e.add(i);
|
13074
13074
|
}
|
13075
|
-
for (const r of
|
13075
|
+
for (const r of Me(t)) {
|
13076
13076
|
r.visit(n);
|
13077
13077
|
for (const i of r.getDataAncestors()) {
|
13078
13078
|
if (!i.options.contributesToScaleDomain)
|
@@ -13409,7 +13409,7 @@ class fs extends oe {
|
|
13409
13409
|
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
13410
13410
|
*/
|
13411
13411
|
beginBatch(e) {
|
13412
|
-
N9(e) && (this._data = [], this.facetBatches.set(
|
13412
|
+
N9(e) && (this._data = [], this.facetBatches.set(Me(e.facetId), this._data));
|
13413
13413
|
}
|
13414
13414
|
complete() {
|
13415
13415
|
var i, o;
|
@@ -13597,14 +13597,14 @@ class c7 extends oe {
|
|
13597
13597
|
f
|
13598
13598
|
));
|
13599
13599
|
}, m = () => {
|
13600
|
-
let g;
|
13600
|
+
let g = 0;
|
13601
13601
|
for (; (g = d.peekValue()) !== void 0; )
|
13602
13602
|
p(h, g, u), h = g, u -= d.pop();
|
13603
13603
|
h = void 0, c && (this._propagate(c), c = void 0);
|
13604
13604
|
};
|
13605
13605
|
this.handle = (g) => {
|
13606
13606
|
const y = i(g);
|
13607
|
-
let b;
|
13607
|
+
let b = 0;
|
13608
13608
|
for (; (b = d.peekValue()) !== void 0 && b < y; )
|
13609
13609
|
p(h, b, u), h = b, u -= d.pop();
|
13610
13610
|
if (r) {
|
@@ -13616,6 +13616,8 @@ class c7 extends oe {
|
|
13616
13616
|
u += v, d.push(v, o(g));
|
13617
13617
|
}, this.complete = () => {
|
13618
13618
|
m(), super.complete();
|
13619
|
+
}, this.beginBatch = (g) => {
|
13620
|
+
m(), l = void 0, super.beginBatch(g);
|
13619
13621
|
};
|
13620
13622
|
}
|
13621
13623
|
}
|
@@ -13772,7 +13774,7 @@ class d7 extends oe {
|
|
13772
13774
|
super();
|
13773
13775
|
const n = e.index;
|
13774
13776
|
if (e.fields) {
|
13775
|
-
const r =
|
13777
|
+
const r = Me(e.fields).map((o) => Q(o)), i = Me(e.as || e.fields);
|
13776
13778
|
if (r.length !== i.length)
|
13777
13779
|
throw new Error(
|
13778
13780
|
`Lengths of "fields" (${r.length}), and "as" (${i.length}) do not match!`
|
@@ -13843,7 +13845,7 @@ class y7 extends oe {
|
|
13843
13845
|
*/
|
13844
13846
|
constructor(e) {
|
13845
13847
|
super();
|
13846
|
-
const n =
|
13848
|
+
const n = Me(e.field).map((o) => Q(o)), r = Me(e.separator), i = Me(e.as || e.field);
|
13847
13849
|
if (n.length !== r.length || n.length !== i.length)
|
13848
13850
|
throw new Error(
|
13849
13851
|
`Lengths of "separator" (${r.length}), "fields" (${n.length}), and "as" (${i.length}) do not match!`
|
@@ -13894,7 +13896,7 @@ class v7 extends oe {
|
|
13894
13896
|
e[this.as] = this.fn(e), this._propagate(e);
|
13895
13897
|
}
|
13896
13898
|
}
|
13897
|
-
class
|
13899
|
+
class Mb extends oe {
|
13898
13900
|
get behavior() {
|
13899
13901
|
return qn;
|
13900
13902
|
}
|
@@ -13913,12 +13915,12 @@ class Bb extends oe {
|
|
13913
13915
|
throw new Error(
|
13914
13916
|
"LinearizeGenomicCoordinate transform requires a locus scale!"
|
13915
13917
|
);
|
13916
|
-
const o = Q(e.chrom), s =
|
13918
|
+
const o = Q(e.chrom), s = Me(e.pos).map((p) => Q(p)), a = Me(e.as);
|
13917
13919
|
if (s.length != a.length)
|
13918
13920
|
throw new Error(
|
13919
13921
|
'The number of "pos" and "as" elements must be equal!'
|
13920
13922
|
);
|
13921
|
-
const c =
|
13923
|
+
const c = Me(e.offset);
|
13922
13924
|
let l;
|
13923
13925
|
if (c.length == 0)
|
13924
13926
|
l = new Array(s.length).fill(0);
|
@@ -15363,7 +15365,7 @@ class I7 extends oe {
|
|
15363
15365
|
};
|
15364
15366
|
}
|
15365
15367
|
}
|
15366
|
-
class
|
15368
|
+
class B7 extends oe {
|
15367
15369
|
get behavior() {
|
15368
15370
|
return Ut;
|
15369
15371
|
}
|
@@ -15372,9 +15374,9 @@ class M7 extends oe {
|
|
15372
15374
|
*/
|
15373
15375
|
constructor(e) {
|
15374
15376
|
super();
|
15375
|
-
const n =
|
15377
|
+
const n = Me(e.columnRegex).map(
|
15376
15378
|
(h) => new RegExp(h)
|
15377
|
-
), r =
|
15379
|
+
), r = Me(e.asValue);
|
15378
15380
|
if (n.length != r.length)
|
15379
15381
|
throw new Error('Lengths of "columnRegex" and "as" are not equal!');
|
15380
15382
|
const i = e.skipRegex ? new RegExp(e.skipRegex) : void 0, o = e.asKey || "sample";
|
@@ -15433,7 +15435,7 @@ class M7 extends oe {
|
|
15433
15435
|
};
|
15434
15436
|
}
|
15435
15437
|
}
|
15436
|
-
class
|
15438
|
+
class M7 extends oe {
|
15437
15439
|
get behavior() {
|
15438
15440
|
return qn;
|
15439
15441
|
}
|
@@ -15615,14 +15617,14 @@ const Rb = {
|
|
15615
15617
|
flattenSequence: P7,
|
15616
15618
|
formula: v7,
|
15617
15619
|
identifier: Fb,
|
15618
|
-
linearizeGenomicCoordinate:
|
15620
|
+
linearizeGenomicCoordinate: Mb,
|
15619
15621
|
measureText: E7,
|
15620
15622
|
pileup: D7,
|
15621
15623
|
project: T7,
|
15622
15624
|
regexExtract: I7,
|
15623
|
-
regexFold:
|
15625
|
+
regexFold: B7,
|
15624
15626
|
sample: db,
|
15625
|
-
stack:
|
15627
|
+
stack: M7
|
15626
15628
|
};
|
15627
15629
|
function O7(t, e) {
|
15628
15630
|
const n = Rb[t.type];
|
@@ -15931,7 +15933,7 @@ function Wi(t, e, n = !0) {
|
|
15931
15933
|
});
|
15932
15934
|
};
|
15933
15935
|
}
|
15934
|
-
var xi,
|
15936
|
+
var xi, Ms;
|
15935
15937
|
class ga extends i0 {
|
15936
15938
|
constructor() {
|
15937
15939
|
super(...arguments);
|
@@ -15939,7 +15941,7 @@ class ga extends i0 {
|
|
15939
15941
|
/**
|
15940
15942
|
* @type {number[]}
|
15941
15943
|
*/
|
15942
|
-
I(this,
|
15944
|
+
I(this, Ms, [0, 0]);
|
15943
15945
|
/**
|
15944
15946
|
* @type {{windowSize?: number}}
|
15945
15947
|
* @protected
|
@@ -16031,10 +16033,10 @@ class ga extends i0 {
|
|
16031
16033
|
* @protected
|
16032
16034
|
*/
|
16033
16035
|
checkAndUpdateLastInterval(n) {
|
16034
|
-
return dc(x(this,
|
16036
|
+
return dc(x(this, Ms), n) ? !1 : (L(this, Ms, n), !0);
|
16035
16037
|
}
|
16036
16038
|
}
|
16037
|
-
xi = new WeakMap(),
|
16039
|
+
xi = new WeakMap(), Ms = new WeakMap();
|
16038
16040
|
class Y7 extends ga {
|
16039
16041
|
/**
|
16040
16042
|
* @param {import("../../../spec/data.js").IndexedFastaData} params
|
@@ -16231,57 +16233,65 @@ class q7 extends ga {
|
|
16231
16233
|
}
|
16232
16234
|
}
|
16233
16235
|
function K7(t) {
|
16234
|
-
const e = t.autoSql.fields.filter((
|
16236
|
+
const e = t.autoSql.fields.filter((y) => y.type).slice(3);
|
16235
16237
|
let n = 0, r = "", i = 0, o = {};
|
16236
16238
|
const s = " ", a = s.charCodeAt(0), c = "0".charCodeAt(0), l = "-".charCodeAt(0);
|
16237
16239
|
function f() {
|
16238
|
-
let
|
16239
|
-
|
16240
|
-
const
|
16241
|
-
return n =
|
16240
|
+
let y = r.indexOf(s, n);
|
16241
|
+
y < 0 && (y = i);
|
16242
|
+
const b = r.substring(n, y);
|
16243
|
+
return n = y + 1, b;
|
16242
16244
|
}
|
16243
16245
|
function u() {
|
16244
|
-
let
|
16245
|
-
|
16246
|
+
let y = 0, b = r.charCodeAt(n), v = 1;
|
16247
|
+
b === l && (v = -1, n++, b = r.charCodeAt(n));
|
16246
16248
|
do {
|
16247
|
-
if (
|
16249
|
+
if (b === a) {
|
16248
16250
|
n++;
|
16249
16251
|
break;
|
16250
16252
|
}
|
16251
|
-
|
16253
|
+
y = y * 10 + b - c, b = r.charCodeAt(++n);
|
16252
16254
|
} while (n < i);
|
16253
|
-
return
|
16255
|
+
return y * v;
|
16254
16256
|
}
|
16255
|
-
const h = e.map((
|
16256
|
-
const { name:
|
16257
|
-
if (["ubyte", "int", "uint"].includes(
|
16257
|
+
const h = e.map((y) => {
|
16258
|
+
const { name: b, type: v } = y;
|
16259
|
+
if (["ubyte", "int", "uint"].includes(v))
|
16258
16260
|
return () => {
|
16259
|
-
o[
|
16261
|
+
o[b] = u();
|
16260
16262
|
};
|
16261
|
-
if (
|
16263
|
+
if (y.isNumeric)
|
16262
16264
|
return () => {
|
16263
|
-
o[
|
16265
|
+
o[b] = Number(f());
|
16264
16266
|
};
|
16265
|
-
if (["char", "string", "lstring"].includes(
|
16267
|
+
if (["char", "string", "lstring"].includes(v))
|
16266
16268
|
return () => {
|
16267
|
-
o[
|
16269
|
+
o[b] = f();
|
16268
16270
|
};
|
16269
|
-
throw new Error("Unsupported type: " +
|
16270
|
-
})
|
16271
|
-
|
16272
|
-
|
16273
|
-
|
16274
|
-
|
16275
|
-
|
16276
|
-
|
16277
|
-
|
16278
|
-
|
16279
|
-
|
16280
|
-
|
16281
|
-
|
16271
|
+
throw new Error("Unsupported type: " + v);
|
16272
|
+
}), d = e.map(
|
16273
|
+
(y) => `"${y.name}": ${y.isNumeric ? "0" : "emptyString"}`
|
16274
|
+
), p = new Function(`
|
16275
|
+
const emptyString = "";
|
16276
|
+
return function makeTemplate(chrom, chromStart, chromEnd) {
|
16277
|
+
return {
|
16278
|
+
chrom,
|
16279
|
+
chromStart,
|
16280
|
+
chromEnd,
|
16281
|
+
${d.join(`,
|
16282
|
+
`)}
|
16283
|
+
}
|
16284
|
+
};`)();
|
16285
|
+
function m(y) {
|
16286
|
+
r = y, i = y.length, n = 0;
|
16287
|
+
}
|
16288
|
+
function g(y, b, v, A) {
|
16289
|
+
m(A), o = p(y, b, v);
|
16290
|
+
for (let S = 0, w = h.length; S < w; S++)
|
16291
|
+
h[S]();
|
16282
16292
|
return o;
|
16283
16293
|
}
|
16284
|
-
return
|
16294
|
+
return g;
|
16285
16295
|
}
|
16286
16296
|
var br;
|
16287
16297
|
class Z7 extends ga {
|
@@ -16828,7 +16838,7 @@ function fD(t) {
|
|
16828
16838
|
delete y.chrom, delete y.pos, !y.type && p.type && (y.type = p.type), n[d] = y, f.push(p.pos), h.push(p.offset ?? 0), u.push(g);
|
16829
16839
|
}
|
16830
16840
|
e.push(new Ic()), e.push(
|
16831
|
-
new
|
16841
|
+
new Mb(
|
16832
16842
|
{
|
16833
16843
|
type: "linearizeGenomicCoordinate",
|
16834
16844
|
channel: s,
|
@@ -17546,7 +17556,7 @@ const TD = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAA
|
|
17546
17556
|
bold: 700,
|
17547
17557
|
black: 900
|
17548
17558
|
};
|
17549
|
-
class
|
17559
|
+
class BD {
|
17550
17560
|
/**
|
17551
17561
|
* @param {import("../gl/webGLHelper.js").default} [webGLHelper]
|
17552
17562
|
*/
|
@@ -17621,7 +17631,7 @@ class MD {
|
|
17621
17631
|
"Could not load font metadata: " + i.status
|
17622
17632
|
);
|
17623
17633
|
return i;
|
17624
|
-
}).then((i) => i.text()).then((i) =>
|
17634
|
+
}).then((i) => i.text()).then((i) => MD(i)).catch((i) => {
|
17625
17635
|
console.warn(i);
|
17626
17636
|
}), this._metadataPromises.set(n, r)), r;
|
17627
17637
|
}
|
@@ -17674,7 +17684,7 @@ class MD {
|
|
17674
17684
|
function Cm(t) {
|
17675
17685
|
return t.toLowerCase().replaceAll(/[^\w]/g, "");
|
17676
17686
|
}
|
17677
|
-
function
|
17687
|
+
function MD(t) {
|
17678
17688
|
const e = t.split(`
|
17679
17689
|
`), n = [];
|
17680
17690
|
let r;
|
@@ -17892,7 +17902,7 @@ class ti extends gt {
|
|
17892
17902
|
this,
|
17893
17903
|
"grid" + r,
|
17894
17904
|
(i) => {
|
17895
|
-
if (!Pc(i) && !
|
17905
|
+
if (!Pc(i) && !Mc(i))
|
17896
17906
|
throw new Pr(
|
17897
17907
|
"LayerView accepts only unit or layer specs as children!",
|
17898
17908
|
this
|
@@ -18009,11 +18019,11 @@ const _D = "chromosome_ticks_and_labels", jD = {
|
|
18009
18019
|
function Zf(t) {
|
18010
18020
|
return t == "x" ? "y" : "x";
|
18011
18021
|
}
|
18012
|
-
const
|
18022
|
+
const Bc = {
|
18013
18023
|
x: ["bottom", "top"],
|
18014
18024
|
y: ["left", "right"]
|
18015
18025
|
}, s0 = Object.fromEntries(
|
18016
|
-
Object.entries(
|
18026
|
+
Object.entries(Bc).map(([t, e]) => e.map((n) => [n, t])).flat(1)
|
18017
18027
|
);
|
18018
18028
|
function On(t) {
|
18019
18029
|
return s0[t];
|
@@ -18849,7 +18859,7 @@ class oT extends gt {
|
|
18849
18859
|
if (o) {
|
18850
18860
|
const s = {
|
18851
18861
|
title: i.getTitle(),
|
18852
|
-
orient:
|
18862
|
+
orient: Bc[r][0],
|
18853
18863
|
...o
|
18854
18864
|
}, a = new a0(
|
18855
18865
|
s,
|
@@ -18880,7 +18890,7 @@ class oT extends gt {
|
|
18880
18890
|
* @return {Padding}
|
18881
18891
|
*/
|
18882
18892
|
getOverhang() {
|
18883
|
-
return
|
18893
|
+
return B(this, Kc, ev).call(this).union(B(this, Ti, Ja).call(this));
|
18884
18894
|
}
|
18885
18895
|
/**
|
18886
18896
|
* @returns {FlexDimensions}
|
@@ -18889,9 +18899,9 @@ class oT extends gt {
|
|
18889
18899
|
return this._cache(
|
18890
18900
|
"size",
|
18891
18901
|
() => new rn(
|
18892
|
-
|
18893
|
-
|
18894
|
-
).addPadding(
|
18902
|
+
B(this, Ls, $f).call(this, "column"),
|
18903
|
+
B(this, Ls, $f).call(this, "row")
|
18904
|
+
).addPadding(B(this, Ti, Ja).call(this))
|
18895
18905
|
);
|
18896
18906
|
}
|
18897
18907
|
/**
|
@@ -18903,15 +18913,15 @@ class oT extends gt {
|
|
18903
18913
|
render(n, r, i = {}) {
|
18904
18914
|
if (super.render(n, r, i), !this.isConfiguredVisible())
|
18905
18915
|
return;
|
18906
|
-
this.layoutParent || (r = r.shrink(this.getPadding())), r = r.shrink(
|
18916
|
+
this.layoutParent || (r = r.shrink(this.getPadding())), r = r.shrink(B(this, Ti, Ja).call(this)), n.pushView(this, r);
|
18907
18917
|
const o = {
|
18908
18918
|
devicePixelRatio: this.context.devicePixelRatio
|
18909
18919
|
}, s = us(
|
18910
|
-
|
18920
|
+
B(this, Os, Jf).call(this, "column"),
|
18911
18921
|
r.width,
|
18912
18922
|
o
|
18913
18923
|
), a = us(
|
18914
|
-
|
18924
|
+
B(this, Os, Jf).call(this, "row"),
|
18915
18925
|
r.height,
|
18916
18926
|
o
|
18917
18927
|
), c = new km(
|
@@ -18926,7 +18936,7 @@ class oT extends gt {
|
|
18926
18936
|
background: m,
|
18927
18937
|
backgroundStroke: g,
|
18928
18938
|
title: y
|
18929
|
-
} = u, [b, v] = c.getCellCoords(f), A = s[
|
18939
|
+
} = u, [b, v] = c.getCellCoords(f), A = s[B(this, zs, eh).call(this, "column", b)], S = a[B(this, zs, eh).call(this, "row", v)], w = h.getViewportSize(), C = h.getSize(), D = h.getOverhang(), U = A.location - D.left, W = S.location - D.top, M = (Se, Et) => (Se[Et].grow ? (Et == "width" ? A : S).size : Se[Et].px) + D[Et], pe = M(w, "width"), se = M(w, "height"), Ye = M(C, "width"), Kn = M(C, "height"), Ht = u.scrollbars.horizontal, Gt = u.scrollbars.vertical, dn = Ht ? () => l(Ht.viewportOffset) : () => 0, Qe = Gt ? () => l(Gt.viewportOffset) : () => 0, Xe = new bt(
|
18930
18940
|
() => r.x + U,
|
18931
18941
|
() => r.y + W,
|
18932
18942
|
() => pe,
|
@@ -19019,7 +19029,7 @@ class oT extends gt {
|
|
19019
19029
|
i && (i.propagateInteractionEvent(n), (i instanceof ue || i instanceof ti) && Jb(
|
19020
19030
|
n,
|
19021
19031
|
r.coords,
|
19022
|
-
(o) =>
|
19032
|
+
(o) => B(this, Zc, tv).call(this, r.coords, r.view, o),
|
19023
19033
|
this.context.getCurrentHover()
|
19024
19034
|
)), !n.stopped && this.handleInteractionEvent(void 0, n, !1);
|
19025
19035
|
}
|
@@ -19061,17 +19071,17 @@ Ei = new WeakMap(), ki = new WeakMap(), Ze = new WeakMap(), vr = new WeakMap(),
|
|
19061
19071
|
)
|
19062
19072
|
);
|
19063
19073
|
}, Os = new WeakSet(), Jf = function(n) {
|
19064
|
-
const r =
|
19065
|
-
i.push(
|
19074
|
+
const r = B(this, Ar, Ao).call(this, n), i = [];
|
19075
|
+
i.push(Bo);
|
19066
19076
|
for (const [o, s] of r.entries())
|
19067
|
-
o > 0 && i.push({ px: x(this, ki), grow: 0 }), (o == 0 || this.wrappingFacet) && i.push(
|
19077
|
+
o > 0 && i.push({ px: x(this, ki), grow: 0 }), (o == 0 || this.wrappingFacet) && i.push(Bo), i.push({ px: s.axisBefore, grow: 0 }), i.push(s.view), i.push({ px: s.axisAfter, grow: 0 }), (o == r.length - 1 || this.wrappingFacet) && i.push(Bo);
|
19068
19078
|
return i;
|
19069
19079
|
}, Ls = new WeakSet(), $f = function(n) {
|
19070
19080
|
let r = 0, i = 0;
|
19071
19081
|
const o = n == "row" ? this.spec.height : this.spec.width;
|
19072
19082
|
if (o || o === 0)
|
19073
19083
|
return mb(o);
|
19074
|
-
const s =
|
19084
|
+
const s = B(this, Ar, Ao).call(this, n);
|
19075
19085
|
for (const [a, c] of s.entries())
|
19076
19086
|
a > 0 && (i += x(this, ki)), (a == 0 || this.wrappingFacet) && (i += 0), i += c.axisBefore, i += c.view.px ?? 0, r += c.view.grow ?? 0, i += c.axisAfter, (a == s.length - 1 || this.wrappingFacet) && (i += 0);
|
19077
19087
|
return { px: i, grow: r };
|
@@ -19084,7 +19094,7 @@ Ei = new WeakMap(), ki = new WeakMap(), Ze = new WeakMap(), vr = new WeakMap(),
|
|
19084
19094
|
2 + 4 * r + 1
|
19085
19095
|
);
|
19086
19096
|
}, Kc = new WeakSet(), ev = function() {
|
19087
|
-
const n =
|
19097
|
+
const n = B(this, Ar, Ao).call(this, "column"), r = B(this, Ar, Ao).call(this, "row");
|
19088
19098
|
return !n.length || !r.length ? ge.zero() : new ge(
|
19089
19099
|
r.at(0).axisBefore,
|
19090
19100
|
n.at(-1).axisAfter,
|
@@ -19266,7 +19276,7 @@ class nh {
|
|
19266
19276
|
return;
|
19267
19277
|
const f = l ? { ...l } : {};
|
19268
19278
|
if (!f.orient) {
|
19269
|
-
for (const u of
|
19279
|
+
for (const u of Bc[c])
|
19270
19280
|
if (!n[u]) {
|
19271
19281
|
f.orient = u;
|
19272
19282
|
break;
|
@@ -19276,7 +19286,7 @@ class nh {
|
|
19276
19286
|
"No slots available for an axis! Perhaps a LayerView has more than two children?"
|
19277
19287
|
);
|
19278
19288
|
}
|
19279
|
-
if (f.title ?? (f.title = a.getTitle()), !
|
19289
|
+
if (f.title ?? (f.title = a.getTitle()), !Bc[c].includes(f.orient))
|
19280
19290
|
throw new Error(
|
19281
19291
|
`Invalid axis orientation "${f.orient}" on channel "${c}"!`
|
19282
19292
|
);
|
@@ -19424,7 +19434,7 @@ class Tm extends ue {
|
|
19424
19434
|
const c = this.getScrollOffset(), l = s(a), f = (
|
19425
19435
|
/** @param {MouseEvent} moveEvent */
|
19426
19436
|
(h) => {
|
19427
|
-
const d =
|
19437
|
+
const d = Bn(
|
19428
19438
|
s(h) - l + c,
|
19429
19439
|
0,
|
19430
19440
|
this.maxScrollOffset
|
@@ -19458,7 +19468,7 @@ class Tm extends ue {
|
|
19458
19468
|
1,
|
19459
19469
|
e[o] / n[o]
|
19460
19470
|
), a = e[o] - 2 * r, c = s * a;
|
19461
|
-
this.maxScrollOffset = a - c, this.maxViewportOffset = n[o] - e[o], this.viewportOffset =
|
19471
|
+
this.maxScrollOffset = a - c, this.maxViewportOffset = n[o] - e[o], this.viewportOffset = Bn(
|
19462
19472
|
this.viewportOffset,
|
19463
19473
|
0,
|
19464
19474
|
this.maxViewportOffset
|
@@ -19560,7 +19570,7 @@ class cT {
|
|
19560
19570
|
)
|
19561
19571
|
)
|
19562
19572
|
);
|
19563
|
-
this.addViewType(Pc, n(ti)), this.addViewType(
|
19573
|
+
this.addViewType(Pc, n(ti)), this.addViewType(Mc, n(ue)), this.addViewType($a, n(gi)), this.addViewType(ov, n(gi)), this.addViewType(rh, n(gi)), this.addViewType(sv, () => {
|
19564
19574
|
throw new Error(
|
19565
19575
|
"SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!"
|
19566
19576
|
);
|
@@ -19632,7 +19642,7 @@ class cT {
|
|
19632
19642
|
);
|
19633
19643
|
else
|
19634
19644
|
a = e;
|
19635
|
-
!i && this.options.wrapRoot && (
|
19645
|
+
!i && this.options.wrapRoot && (Mc(a) || Pc(a)) && o === iv && (a = {
|
19636
19646
|
name: "implicitRoot",
|
19637
19647
|
vconcat: [a]
|
19638
19648
|
});
|
@@ -19647,14 +19657,14 @@ class cT {
|
|
19647
19657
|
}
|
19648
19658
|
}
|
19649
19659
|
Ii = new WeakMap();
|
19650
|
-
function
|
19660
|
+
function Mc(t) {
|
19651
19661
|
return "mark" in t && (X(t.mark) || je(t.mark));
|
19652
19662
|
}
|
19653
19663
|
function Pc(t) {
|
19654
19664
|
return "layer" in t && je(t.layer);
|
19655
19665
|
}
|
19656
19666
|
function lT(t) {
|
19657
|
-
return t && (
|
19667
|
+
return t && (Mc(t) || Pc(t)) && "aggregateSamples" in t;
|
19658
19668
|
}
|
19659
19669
|
function uT(t) {
|
19660
19670
|
return "import" in t;
|
@@ -19671,18 +19681,18 @@ function rh(t) {
|
|
19671
19681
|
function sv(t) {
|
19672
19682
|
return "samples" in t && je(t.samples) && "spec" in t && je(t.spec);
|
19673
19683
|
}
|
19674
|
-
var
|
19684
|
+
var Bi, wr, Ns, xr;
|
19675
19685
|
class fT {
|
19676
19686
|
constructor() {
|
19677
19687
|
/** @type {Map<string, any>} */
|
19678
|
-
I(this,
|
19688
|
+
I(this, Bi, void 0);
|
19679
19689
|
/** @type {Set<string>} */
|
19680
19690
|
I(this, wr, void 0);
|
19681
19691
|
/** @type {Record<string, any>} */
|
19682
19692
|
I(this, Ns, void 0);
|
19683
19693
|
/** @type {Map<string, Set<() => void>>} */
|
19684
19694
|
I(this, xr, void 0);
|
19685
|
-
L(this,
|
19695
|
+
L(this, Bi, /* @__PURE__ */ new Map()), L(this, wr, /* @__PURE__ */ new Set()), L(this, xr, /* @__PURE__ */ new Map()), L(this, Ns, new Proxy(x(this, Bi), {
|
19686
19696
|
get(e, n) {
|
19687
19697
|
return X(n) ? e.get(n) : void 0;
|
19688
19698
|
}
|
@@ -19699,7 +19709,7 @@ class fT {
|
|
19699
19709
|
"Setter already allocated for parameter: " + e
|
19700
19710
|
);
|
19701
19711
|
return x(this, wr).add(e), (n) => {
|
19702
|
-
x(this,
|
19712
|
+
x(this, Bi).set(e, n);
|
19703
19713
|
const r = x(this, xr).get(e);
|
19704
19714
|
if (r)
|
19705
19715
|
for (const i of r)
|
@@ -19730,7 +19740,7 @@ class fT {
|
|
19730
19740
|
}, n;
|
19731
19741
|
}
|
19732
19742
|
}
|
19733
|
-
|
19743
|
+
Bi = new WeakMap(), wr = new WeakMap(), Ns = new WeakMap(), xr = new WeakMap();
|
19734
19744
|
T1("fasta", FD);
|
19735
19745
|
class hT {
|
19736
19746
|
/**
|
@@ -19867,7 +19877,7 @@ class hT {
|
|
19867
19877
|
glHelper: this._glHelper,
|
19868
19878
|
animator: this.animator,
|
19869
19879
|
genomeStore: this.genomeStore,
|
19870
|
-
fontManager: new
|
19880
|
+
fontManager: new BD(this._glHelper),
|
19871
19881
|
get devicePixelRatio() {
|
19872
19882
|
return e._glHelper.dpr;
|
19873
19883
|
},
|
@@ -20192,7 +20202,7 @@ const gT = (t) => new mT(typeof t == "string" ? t : t + "", void 0, av), yT = (t
|
|
20192
20202
|
const r = document.createElement("style"), i = ec.litNonce;
|
20193
20203
|
i !== void 0 && r.setAttribute("nonce", i), r.textContent = n.cssText, t.appendChild(r);
|
20194
20204
|
}
|
20195
|
-
},
|
20205
|
+
}, Bm = l0 ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
20196
20206
|
let n = "";
|
20197
20207
|
for (const r of e.cssRules)
|
20198
20208
|
n += r.cssText;
|
@@ -20203,7 +20213,7 @@ const gT = (t) => new mT(typeof t == "string" ? t : t + "", void 0, av), yT = (t
|
|
20203
20213
|
* Copyright 2017 Google LLC
|
20204
20214
|
* SPDX-License-Identifier: BSD-3-Clause
|
20205
20215
|
*/
|
20206
|
-
const { is: bT, defineProperty: vT, getOwnPropertyDescriptor: AT, getOwnPropertyNames: wT, getOwnPropertySymbols: xT, getPrototypeOf: ST } = Object, xn = globalThis,
|
20216
|
+
const { is: bT, defineProperty: vT, getOwnPropertyDescriptor: AT, getOwnPropertyNames: wT, getOwnPropertySymbols: xT, getPrototypeOf: ST } = Object, xn = globalThis, Mm = xn.trustedTypes, CT = Mm ? Mm.emptyScript : "", Uu = xn.reactiveElementPolyfillSupport, Mo = (t, e) => t, ih = { toAttribute(t, e) {
|
20207
20217
|
switch (e) {
|
20208
20218
|
case Boolean:
|
20209
20219
|
t = t ? CT : null;
|
@@ -20263,15 +20273,15 @@ let li = class extends HTMLElement {
|
|
20263
20273
|
return this.elementProperties.get(e) ?? Pm;
|
20264
20274
|
}
|
20265
20275
|
static _$Ei() {
|
20266
|
-
if (this.hasOwnProperty(
|
20276
|
+
if (this.hasOwnProperty(Mo("elementProperties")))
|
20267
20277
|
return;
|
20268
20278
|
const e = ST(this);
|
20269
20279
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
20270
20280
|
}
|
20271
20281
|
static finalize() {
|
20272
|
-
if (this.hasOwnProperty(
|
20282
|
+
if (this.hasOwnProperty(Mo("finalized")))
|
20273
20283
|
return;
|
20274
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
20284
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Mo("properties"))) {
|
20275
20285
|
const n = this.properties, r = [...wT(n), ...xT(n)];
|
20276
20286
|
for (const i of r)
|
20277
20287
|
this.createProperty(i, n[i]);
|
@@ -20295,9 +20305,9 @@ let li = class extends HTMLElement {
|
|
20295
20305
|
if (Array.isArray(e)) {
|
20296
20306
|
const r = new Set(e.flat(1 / 0).reverse());
|
20297
20307
|
for (const i of r)
|
20298
|
-
n.unshift(
|
20308
|
+
n.unshift(Bm(i));
|
20299
20309
|
} else
|
20300
|
-
e !== void 0 && n.push(
|
20310
|
+
e !== void 0 && n.push(Bm(e));
|
20301
20311
|
return n;
|
20302
20312
|
}
|
20303
20313
|
static _$Eu(e, n) {
|
@@ -20444,7 +20454,7 @@ let li = class extends HTMLElement {
|
|
20444
20454
|
firstUpdated(e) {
|
20445
20455
|
}
|
20446
20456
|
};
|
20447
|
-
li.elementStyles = [], li.shadowRootOptions = { mode: "open" }, li[
|
20457
|
+
li.elementStyles = [], li.shadowRootOptions = { mode: "open" }, li[Mo("elementProperties")] = /* @__PURE__ */ new Map(), li[Mo("finalized")] = /* @__PURE__ */ new Map(), Uu == null || Uu({ ReactiveElement: li }), (xn.reactiveElementVersions ?? (xn.reactiveElementVersions = [])).push("2.0.2");
|
20448
20458
|
/**
|
20449
20459
|
* @license
|
20450
20460
|
* Copyright 2017 Google LLC
|
@@ -20528,11 +20538,11 @@ var ET = {
|
|
20528
20538
|
prefix: "fas",
|
20529
20539
|
iconName: "bookmark",
|
20530
20540
|
icon: [384, 512, [128278, 61591], "f02e", "M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z"]
|
20531
|
-
},
|
20541
|
+
}, BT = {
|
20532
20542
|
prefix: "fas",
|
20533
20543
|
iconName: "maximize",
|
20534
20544
|
icon: [512, 512, ["expand-arrows-alt"], "f31e", "M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"]
|
20535
|
-
},
|
20545
|
+
}, MT = BT, PT = {
|
20536
20546
|
prefix: "fas",
|
20537
20547
|
iconName: "arrow-down-wide-short",
|
20538
20548
|
icon: [576, 512, ["sort-amount-asc", "sort-amount-down"], "f160", "M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]
|
@@ -20905,7 +20915,7 @@ function CI(t) {
|
|
20905
20915
|
Ro.splice(Ro.indexOf(t), 1);
|
20906
20916
|
};
|
20907
20917
|
}
|
20908
|
-
var mn = ah,
|
20918
|
+
var mn = ah, Bt = {
|
20909
20919
|
size: 16,
|
20910
20920
|
x: 0,
|
20911
20921
|
y: 0,
|
@@ -20954,7 +20964,7 @@ function Kl(t) {
|
|
20954
20964
|
}, "");
|
20955
20965
|
}
|
20956
20966
|
function y0(t) {
|
20957
|
-
return t.size !==
|
20967
|
+
return t.size !== Bt.size || t.x !== Bt.x || t.y !== Bt.y || t.rotate !== Bt.rotate || t.flipX || t.flipY;
|
20958
20968
|
}
|
20959
20969
|
function TI(t) {
|
20960
20970
|
var e = t.transform, n = t.containerWidth, r = t.iconWidth, i = {
|
@@ -20974,7 +20984,7 @@ function II(t) {
|
|
20974
20984
|
var e = t.transform, n = t.width, r = n === void 0 ? ah : n, i = t.height, o = i === void 0 ? ah : i, s = t.startCentered, a = s === void 0 ? !1 : s, c = "";
|
20975
20985
|
return a && yv ? c += "translate(".concat(e.x / mn - r / 2, "em, ").concat(e.y / mn - o / 2, "em) ") : a ? c += "translate(calc(-50% + ".concat(e.x / mn, "em), calc(-50% + ").concat(e.y / mn, "em)) ") : c += "translate(".concat(e.x / mn, "em, ").concat(e.y / mn, "em) "), c += "scale(".concat(e.size / mn * (e.flipX ? -1 : 1), ", ").concat(e.size / mn * (e.flipY ? -1 : 1), ") "), c += "rotate(".concat(e.rotate, "deg) "), c;
|
20976
20986
|
}
|
20977
|
-
var
|
20987
|
+
var BI = `:root, :host {
|
20978
20988
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
20979
20989
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
20980
20990
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
@@ -21732,7 +21742,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
21732
21742
|
color: var(--fa-inverse, #fff);
|
21733
21743
|
}`;
|
21734
21744
|
function Ev() {
|
21735
|
-
var t = bv, e = vv, n = O.cssPrefix, r = O.replacementClass, i =
|
21745
|
+
var t = bv, e = vv, n = O.cssPrefix, r = O.replacementClass, i = BI;
|
21736
21746
|
if (n !== t || r !== e) {
|
21737
21747
|
var o = new RegExp("\\.".concat(t, "\\-"), "g"), s = new RegExp("\\--".concat(t, "\\-"), "g"), a = new RegExp("\\.".concat(e), "g");
|
21738
21748
|
i = i.replace(o, ".".concat(n, "-")).replace(s, "--".concat(n, "-")).replace(a, ".".concat(r));
|
@@ -21743,7 +21753,7 @@ var Gm = !1;
|
|
21743
21753
|
function Gu() {
|
21744
21754
|
O.autoAddCss && !Gm && (EI(Ev()), Gm = !0);
|
21745
21755
|
}
|
21746
|
-
var
|
21756
|
+
var MI = {
|
21747
21757
|
mixout: function() {
|
21748
21758
|
return {
|
21749
21759
|
dom: {
|
@@ -21827,7 +21837,7 @@ function uh(t, e) {
|
|
21827
21837
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.skipHooks, i = r === void 0 ? !1 : r, o = _m(e);
|
21828
21838
|
typeof yt.hooks.addPack == "function" && !i ? yt.hooks.addPack(t, _m(e)) : yt.styles[t] = P(P({}, yt.styles[t] || {}), o), t === "fas" && uh("fa", e);
|
21829
21839
|
}
|
21830
|
-
var Ga, Va, _a, hi = yt.styles, zI = yt.shims, NI = (Ga = {}, he(Ga, Z, Object.values(ms[Z])), he(Ga, ae, Object.values(ms[ae])), Ga), b0 = null, Dv = {}, Tv = {}, Iv = {},
|
21840
|
+
var Ga, Va, _a, hi = yt.styles, zI = yt.shims, NI = (Ga = {}, he(Ga, Z, Object.values(ms[Z])), he(Ga, ae, Object.values(ms[ae])), Ga), b0 = null, Dv = {}, Tv = {}, Iv = {}, Bv = {}, Mv = {}, UI = (Va = {}, he(Va, Z, Object.keys(ds[Z])), he(Va, ae, Object.keys(ds[ae])), Va);
|
21831
21841
|
function HI(t) {
|
21832
21842
|
return ~AI.indexOf(t);
|
21833
21843
|
}
|
@@ -21861,7 +21871,7 @@ var Pv = function() {
|
|
21861
21871
|
});
|
21862
21872
|
}
|
21863
21873
|
return i;
|
21864
|
-
}),
|
21874
|
+
}), Mv = e(function(i, o, s) {
|
21865
21875
|
var a = o[2];
|
21866
21876
|
return i[s] = s, a.forEach(function(c) {
|
21867
21877
|
i[c] = s;
|
@@ -21880,7 +21890,7 @@ var Pv = function() {
|
|
21880
21890
|
names: {},
|
21881
21891
|
unicodes: {}
|
21882
21892
|
});
|
21883
|
-
Iv = r.names,
|
21893
|
+
Iv = r.names, Bv = r.unicodes, b0 = Zl(O.styleDefault, {
|
21884
21894
|
family: O.familyDefault
|
21885
21895
|
});
|
21886
21896
|
};
|
@@ -21897,7 +21907,7 @@ function VI(t, e) {
|
|
21897
21907
|
return (Tv[t] || {})[e];
|
21898
21908
|
}
|
21899
21909
|
function gr(t, e) {
|
21900
|
-
return (
|
21910
|
+
return (Mv[t] || {})[e];
|
21901
21911
|
}
|
21902
21912
|
function Fv(t) {
|
21903
21913
|
return Iv[t] || {
|
@@ -21906,7 +21916,7 @@ function Fv(t) {
|
|
21906
21916
|
};
|
21907
21917
|
}
|
21908
21918
|
function _I(t) {
|
21909
|
-
var e =
|
21919
|
+
var e = Bv[t], n = v0("fas", t);
|
21910
21920
|
return e || (n ? {
|
21911
21921
|
prefix: "fas",
|
21912
21922
|
iconName: n
|
@@ -22271,12 +22281,12 @@ function dh(t) {
|
|
22271
22281
|
icon: s
|
22272
22282
|
};
|
22273
22283
|
}
|
22274
|
-
var
|
22284
|
+
var eB = {
|
22275
22285
|
found: !1,
|
22276
22286
|
width: 512,
|
22277
22287
|
height: 512
|
22278
22288
|
};
|
22279
|
-
function
|
22289
|
+
function tB(t, e) {
|
22280
22290
|
!Av && !O.showMissingIcons && t && console.error('Icon with name "'.concat(t, '" and prefix "').concat(e, '" is missing.'));
|
22281
22291
|
}
|
22282
22292
|
function ph(t, e) {
|
@@ -22290,7 +22300,7 @@ function ph(t, e) {
|
|
22290
22300
|
var s = _u[e][t];
|
22291
22301
|
return r(dh(s));
|
22292
22302
|
}
|
22293
|
-
|
22303
|
+
tB(t, e), r(P(P({}, eB), {}, {
|
22294
22304
|
icon: O.showMissingIcons && t ? an("missingIconAbstract") || {} : {}
|
22295
22305
|
}));
|
22296
22306
|
});
|
@@ -22299,14 +22309,14 @@ var Qm = function() {
|
|
22299
22309
|
}, mh = O.measurePerformance && Oa && Oa.mark && Oa.measure ? Oa : {
|
22300
22310
|
mark: Qm,
|
22301
22311
|
measure: Qm
|
22302
|
-
}, wo = 'FA "6.4.2"',
|
22312
|
+
}, wo = 'FA "6.4.2"', nB = function(e) {
|
22303
22313
|
return mh.mark("".concat(wo, " ").concat(e, " begins")), function() {
|
22304
22314
|
return Ov(e);
|
22305
22315
|
};
|
22306
22316
|
}, Ov = function(e) {
|
22307
22317
|
mh.mark("".concat(wo, " ").concat(e, " ends")), mh.measure("".concat(wo, " ").concat(e), "".concat(wo, " ").concat(e, " begins"), "".concat(wo, " ").concat(e, " ends"));
|
22308
22318
|
}, x0 = {
|
22309
|
-
begin:
|
22319
|
+
begin: nB,
|
22310
22320
|
end: Ov
|
22311
22321
|
}, nc = function() {
|
22312
22322
|
};
|
@@ -22314,27 +22324,27 @@ function Xm(t) {
|
|
22314
22324
|
var e = t.getAttribute ? t.getAttribute(Qr) : null;
|
22315
22325
|
return typeof e == "string";
|
22316
22326
|
}
|
22317
|
-
function
|
22327
|
+
function rB(t) {
|
22318
22328
|
var e = t.getAttribute ? t.getAttribute(d0) : null, n = t.getAttribute ? t.getAttribute(p0) : null;
|
22319
22329
|
return e && n;
|
22320
22330
|
}
|
22321
|
-
function
|
22331
|
+
function iB(t) {
|
22322
22332
|
return t && t.classList && t.classList.contains && t.classList.contains(O.replacementClass);
|
22323
22333
|
}
|
22324
|
-
function
|
22334
|
+
function oB() {
|
22325
22335
|
if (O.autoReplaceSvg === !0)
|
22326
22336
|
return rc.replace;
|
22327
22337
|
var t = rc[O.autoReplaceSvg];
|
22328
22338
|
return t || rc.replace;
|
22329
22339
|
}
|
22330
|
-
function
|
22340
|
+
function sB(t) {
|
22331
22341
|
return $.createElementNS("http://www.w3.org/2000/svg", t);
|
22332
22342
|
}
|
22333
|
-
function
|
22343
|
+
function aB(t) {
|
22334
22344
|
return $.createElement(t);
|
22335
22345
|
}
|
22336
22346
|
function Lv(t) {
|
22337
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.ceFn, r = n === void 0 ? t.tag === "svg" ?
|
22347
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.ceFn, r = n === void 0 ? t.tag === "svg" ? sB : aB : n;
|
22338
22348
|
if (typeof t == "string")
|
22339
22349
|
return $.createTextNode(t);
|
22340
22350
|
var i = r(t.tag);
|
@@ -22348,7 +22358,7 @@ function Lv(t) {
|
|
22348
22358
|
}));
|
22349
22359
|
}), i;
|
22350
22360
|
}
|
22351
|
-
function
|
22361
|
+
function cB(t) {
|
22352
22362
|
var e = " ".concat(t.outerHTML, " ");
|
22353
22363
|
return e = "".concat(e, "Font Awesome fontawesome.com "), e;
|
22354
22364
|
}
|
@@ -22359,7 +22369,7 @@ var rc = {
|
|
22359
22369
|
if (e[1].forEach(function(i) {
|
22360
22370
|
n.parentNode.insertBefore(Lv(i), n);
|
22361
22371
|
}), n.getAttribute(Qr) === null && O.keepOriginalSource) {
|
22362
|
-
var r = $.createComment(
|
22372
|
+
var r = $.createComment(cB(n));
|
22363
22373
|
n.parentNode.replaceChild(r, n);
|
22364
22374
|
} else
|
22365
22375
|
n.remove();
|
@@ -22395,7 +22405,7 @@ function zv(t, e) {
|
|
22395
22405
|
else {
|
22396
22406
|
var r = qm;
|
22397
22407
|
O.mutateApproach === hI && (r = Ln.requestAnimationFrame || qm), r(function() {
|
22398
|
-
var i =
|
22408
|
+
var i = oB(), o = x0.begin("mutate");
|
22399
22409
|
t.map(i), o(), n();
|
22400
22410
|
});
|
22401
22411
|
}
|
@@ -22416,11 +22426,11 @@ function Km(t) {
|
|
22416
22426
|
var f = zn();
|
22417
22427
|
ro(l).forEach(function(u) {
|
22418
22428
|
if (u.type === "childList" && u.addedNodes.length > 0 && !Xm(u.addedNodes[0]) && (O.searchPseudoElements && s(u.target), n(u.target)), u.type === "attributes" && u.target.parentNode && O.searchPseudoElements && s(u.target.parentNode), u.type === "attributes" && Xm(u.target) && ~vI.indexOf(u.attributeName))
|
22419
|
-
if (u.attributeName === "class" &&
|
22429
|
+
if (u.attributeName === "class" && rB(u.target)) {
|
22420
22430
|
var h = Jl(g0(u.target)), d = h.prefix, p = h.iconName;
|
22421
22431
|
u.target.setAttribute(d0, d || f), p && u.target.setAttribute(p0, p);
|
22422
22432
|
} else
|
22423
|
-
|
22433
|
+
iB(u.target) && i(u.target);
|
22424
22434
|
});
|
22425
22435
|
}
|
22426
22436
|
}), fn && Oc.observe(c, {
|
@@ -22431,33 +22441,33 @@ function Km(t) {
|
|
22431
22441
|
});
|
22432
22442
|
}
|
22433
22443
|
}
|
22434
|
-
function
|
22444
|
+
function lB() {
|
22435
22445
|
Oc && Oc.disconnect();
|
22436
22446
|
}
|
22437
|
-
function
|
22447
|
+
function uB(t) {
|
22438
22448
|
var e = t.getAttribute("style"), n = [];
|
22439
22449
|
return e && (n = e.split(";").reduce(function(r, i) {
|
22440
22450
|
var o = i.split(":"), s = o[0], a = o.slice(1);
|
22441
22451
|
return s && a.length > 0 && (r[s] = a.join(":").trim()), r;
|
22442
22452
|
}, {})), n;
|
22443
22453
|
}
|
22444
|
-
function
|
22454
|
+
function fB(t) {
|
22445
22455
|
var e = t.getAttribute("data-prefix"), n = t.getAttribute("data-icon"), r = t.innerText !== void 0 ? t.innerText.trim() : "", i = Jl(g0(t));
|
22446
22456
|
return i.prefix || (i.prefix = zn()), e && n && (i.prefix = e, i.iconName = n), i.iconName && i.prefix || (i.prefix && r.length > 0 && (i.iconName = VI(i.prefix, t.innerText) || v0(i.prefix, lh(t.innerText))), !i.iconName && O.autoFetchSvg && t.firstChild && t.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = t.firstChild.data)), i;
|
22447
22457
|
}
|
22448
|
-
function
|
22458
|
+
function hB(t) {
|
22449
22459
|
var e = ro(t.attributes).reduce(function(i, o) {
|
22450
22460
|
return i.name !== "class" && i.name !== "style" && (i[o.name] = o.value), i;
|
22451
22461
|
}, {}), n = t.getAttribute("title"), r = t.getAttribute("data-fa-title-id");
|
22452
22462
|
return O.autoA11y && (n ? e["aria-labelledby"] = "".concat(O.replacementClass, "-title-").concat(r || ys()) : (e["aria-hidden"] = "true", e.focusable = "false")), e;
|
22453
22463
|
}
|
22454
|
-
function
|
22464
|
+
function dB() {
|
22455
22465
|
return {
|
22456
22466
|
iconName: null,
|
22457
22467
|
title: null,
|
22458
22468
|
titleId: null,
|
22459
22469
|
prefix: null,
|
22460
|
-
transform:
|
22470
|
+
transform: Bt,
|
22461
22471
|
symbol: !1,
|
22462
22472
|
mask: {
|
22463
22473
|
iconName: null,
|
@@ -22475,13 +22485,13 @@ function dM() {
|
|
22475
22485
|
function Zm(t) {
|
22476
22486
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
22477
22487
|
styleParser: !0
|
22478
|
-
}, n =
|
22488
|
+
}, n = fB(t), r = n.iconName, i = n.prefix, o = n.rest, s = hB(t), a = fh("parseNodeAttributes", {}, t), c = e.styleParser ? uB(t) : [];
|
22479
22489
|
return P({
|
22480
22490
|
iconName: r,
|
22481
22491
|
title: t.getAttribute("title"),
|
22482
22492
|
titleId: t.getAttribute("data-fa-title-id"),
|
22483
22493
|
prefix: i,
|
22484
|
-
transform:
|
22494
|
+
transform: Bt,
|
22485
22495
|
mask: {
|
22486
22496
|
iconName: null,
|
22487
22497
|
prefix: null,
|
@@ -22496,7 +22506,7 @@ function Zm(t) {
|
|
22496
22506
|
}
|
22497
22507
|
}, a);
|
22498
22508
|
}
|
22499
|
-
var
|
22509
|
+
var pB = yt.styles;
|
22500
22510
|
function Uv(t) {
|
22501
22511
|
var e = O.autoReplaceSvg === "nest" ? Zm(t, {
|
22502
22512
|
styleParser: !1
|
@@ -22520,7 +22530,7 @@ function Jm(t) {
|
|
22520
22530
|
return n.remove("".concat(Hm, "-").concat(u));
|
22521
22531
|
}, o = O.autoFetchSvg ? Nn : m0.map(function(f) {
|
22522
22532
|
return "fa-".concat(f);
|
22523
|
-
}).concat(Object.keys(
|
22533
|
+
}).concat(Object.keys(pB));
|
22524
22534
|
o.includes("fa") || o.push("fa");
|
22525
22535
|
var s = [".".concat(wv, ":not([").concat(Qr, "])")].concat(o.map(function(f) {
|
22526
22536
|
return ".".concat(f, ":not([").concat(Qr, "])");
|
@@ -22555,13 +22565,13 @@ function Jm(t) {
|
|
22555
22565
|
});
|
22556
22566
|
});
|
22557
22567
|
}
|
22558
|
-
function
|
22568
|
+
function mB(t) {
|
22559
22569
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
22560
22570
|
Uv(t).then(function(n) {
|
22561
22571
|
n && zv([n], e);
|
22562
22572
|
});
|
22563
22573
|
}
|
22564
|
-
function
|
22574
|
+
function gB(t) {
|
22565
22575
|
return function(e) {
|
22566
22576
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = (e || {}).icon ? e : hh(e || {}), i = n.mask;
|
22567
22577
|
return i && (i = (i || {}).icon ? i : hh(i || {})), t(r, P(P({}, n), {}, {
|
@@ -22569,8 +22579,8 @@ function gM(t) {
|
|
22569
22579
|
}));
|
22570
22580
|
};
|
22571
22581
|
}
|
22572
|
-
var
|
22573
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, i = r === void 0 ?
|
22582
|
+
var yB = function(e) {
|
22583
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, i = r === void 0 ? Bt : r, o = n.symbol, s = o === void 0 ? !1 : o, a = n.mask, c = a === void 0 ? null : a, l = n.maskId, f = l === void 0 ? null : l, u = n.title, h = u === void 0 ? null : u, d = n.titleId, p = d === void 0 ? null : d, m = n.classes, g = m === void 0 ? [] : m, y = n.attributes, b = y === void 0 ? {} : y, v = n.styles, A = v === void 0 ? {} : v;
|
22574
22584
|
if (e) {
|
22575
22585
|
var S = e.prefix, w = e.iconName, C = e.icon;
|
22576
22586
|
return $l(P({
|
@@ -22591,7 +22601,7 @@ var yM = function(e) {
|
|
22591
22601
|
},
|
22592
22602
|
prefix: S,
|
22593
22603
|
iconName: w,
|
22594
|
-
transform: P(P({},
|
22604
|
+
transform: P(P({}, Bt), i),
|
22595
22605
|
symbol: s,
|
22596
22606
|
title: h,
|
22597
22607
|
maskId: f,
|
@@ -22604,16 +22614,16 @@ var yM = function(e) {
|
|
22604
22614
|
});
|
22605
22615
|
});
|
22606
22616
|
}
|
22607
|
-
},
|
22617
|
+
}, bB = {
|
22608
22618
|
mixout: function() {
|
22609
22619
|
return {
|
22610
|
-
icon:
|
22620
|
+
icon: gB(yB)
|
22611
22621
|
};
|
22612
22622
|
},
|
22613
22623
|
hooks: function() {
|
22614
22624
|
return {
|
22615
22625
|
mutationObserverCallbacks: function(n) {
|
22616
|
-
return n.treeCallback = Jm, n.nodeCallback =
|
22626
|
+
return n.treeCallback = Jm, n.nodeCallback = mB, n;
|
22617
22627
|
}
|
22618
22628
|
};
|
22619
22629
|
},
|
@@ -22664,7 +22674,7 @@ var yM = function(e) {
|
|
22664
22674
|
};
|
22665
22675
|
};
|
22666
22676
|
}
|
22667
|
-
},
|
22677
|
+
}, vB = {
|
22668
22678
|
mixout: function() {
|
22669
22679
|
return {
|
22670
22680
|
layer: function(n) {
|
@@ -22692,7 +22702,7 @@ var yM = function(e) {
|
|
22692
22702
|
}
|
22693
22703
|
};
|
22694
22704
|
}
|
22695
|
-
},
|
22705
|
+
}, AB = {
|
22696
22706
|
mixout: function() {
|
22697
22707
|
return {
|
22698
22708
|
counter: function(n) {
|
@@ -22717,11 +22727,11 @@ var yM = function(e) {
|
|
22717
22727
|
}
|
22718
22728
|
};
|
22719
22729
|
}
|
22720
|
-
},
|
22730
|
+
}, wB = {
|
22721
22731
|
mixout: function() {
|
22722
22732
|
return {
|
22723
22733
|
text: function(n) {
|
22724
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.transform, o = i === void 0 ?
|
22734
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.transform, o = i === void 0 ? Bt : i, s = r.title, a = s === void 0 ? null : s, c = r.classes, l = c === void 0 ? [] : c, f = r.attributes, u = f === void 0 ? {} : f, h = r.styles, d = h === void 0 ? {} : h;
|
22725
22735
|
return $l({
|
22726
22736
|
type: "text",
|
22727
22737
|
content: n
|
@@ -22731,7 +22741,7 @@ var yM = function(e) {
|
|
22731
22741
|
params: r
|
22732
22742
|
}), Ym({
|
22733
22743
|
content: n,
|
22734
|
-
transform: P(P({},
|
22744
|
+
transform: P(P({}, Bt), o),
|
22735
22745
|
title: a,
|
22736
22746
|
extra: {
|
22737
22747
|
attributes: u,
|
@@ -22761,9 +22771,9 @@ var yM = function(e) {
|
|
22761
22771
|
})]);
|
22762
22772
|
};
|
22763
22773
|
}
|
22764
|
-
},
|
22765
|
-
function
|
22766
|
-
var e = t.replace(
|
22774
|
+
}, xB = new RegExp('"', "ug"), $m = [1105920, 1112319];
|
22775
|
+
function SB(t) {
|
22776
|
+
var e = t.replace(xB, ""), n = LI(e, 0), r = n >= $m[0] && n <= $m[1], i = e.length === 2 ? e[0] === e[1] : !1;
|
22767
22777
|
return {
|
22768
22778
|
value: lh(i ? e[0] : e),
|
22769
22779
|
isSecondary: r || i
|
@@ -22780,14 +22790,14 @@ function eg(t, e) {
|
|
22780
22790
|
if (s && !c)
|
22781
22791
|
return t.removeChild(s), r();
|
22782
22792
|
if (c && f !== "none" && f !== "") {
|
22783
|
-
var u = a.getPropertyValue("content"), h = ~["Sharp"].indexOf(c[2]) ? ae : Z, d = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(c[2]) ? ps[h][c[2].toLowerCase()] : yI[h][l], p =
|
22793
|
+
var u = a.getPropertyValue("content"), h = ~["Sharp"].indexOf(c[2]) ? ae : Z, d = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(c[2]) ? ps[h][c[2].toLowerCase()] : yI[h][l], p = SB(u), m = p.value, g = p.isSecondary, y = c[0].startsWith("FontAwesome"), b = v0(d, m), v = b;
|
22784
22794
|
if (y) {
|
22785
22795
|
var A = _I(m);
|
22786
22796
|
A.iconName && A.prefix && (b = A.iconName, d = A.prefix);
|
22787
22797
|
}
|
22788
22798
|
if (b && !g && (!s || s.getAttribute(d0) !== d || s.getAttribute(p0) !== v)) {
|
22789
22799
|
t.setAttribute(n, v), s && t.removeChild(s);
|
22790
|
-
var S =
|
22800
|
+
var S = dB(), w = S.extra;
|
22791
22801
|
w.attributes[ch] = e, ph(b, d).then(function(C) {
|
22792
22802
|
var D = w0(P(P({}, S), {}, {
|
22793
22803
|
icons: {
|
@@ -22810,16 +22820,16 @@ function eg(t, e) {
|
|
22810
22820
|
r();
|
22811
22821
|
});
|
22812
22822
|
}
|
22813
|
-
function
|
22823
|
+
function CB(t) {
|
22814
22824
|
return Promise.all([eg(t, "::before"), eg(t, "::after")]);
|
22815
22825
|
}
|
22816
|
-
function
|
22826
|
+
function EB(t) {
|
22817
22827
|
return t.parentNode !== document.head && !~dI.indexOf(t.tagName.toUpperCase()) && !t.getAttribute(ch) && (!t.parentNode || t.parentNode.tagName !== "svg");
|
22818
22828
|
}
|
22819
22829
|
function tg(t) {
|
22820
22830
|
if (fn)
|
22821
22831
|
return new Promise(function(e, n) {
|
22822
|
-
var r = ro(t.querySelectorAll("*")).filter(
|
22832
|
+
var r = ro(t.querySelectorAll("*")).filter(EB).map(CB), i = x0.begin("searchPseudoElements");
|
22823
22833
|
Nv(), Promise.all(r).then(function() {
|
22824
22834
|
i(), gh(), e();
|
22825
22835
|
}).catch(function() {
|
@@ -22827,7 +22837,7 @@ function tg(t) {
|
|
22827
22837
|
});
|
22828
22838
|
});
|
22829
22839
|
}
|
22830
|
-
var
|
22840
|
+
var kB = {
|
22831
22841
|
hooks: function() {
|
22832
22842
|
return {
|
22833
22843
|
mutationObserverCallbacks: function(n) {
|
@@ -22841,7 +22851,7 @@ var kM = {
|
|
22841
22851
|
O.searchPseudoElements && tg(i);
|
22842
22852
|
};
|
22843
22853
|
}
|
22844
|
-
}, ng = !1,
|
22854
|
+
}, ng = !1, DB = {
|
22845
22855
|
mixout: function() {
|
22846
22856
|
return {
|
22847
22857
|
dom: {
|
@@ -22857,7 +22867,7 @@ var kM = {
|
|
22857
22867
|
Km(fh("mutationObserverCallbacks", {}));
|
22858
22868
|
},
|
22859
22869
|
noAuto: function() {
|
22860
|
-
|
22870
|
+
lB();
|
22861
22871
|
},
|
22862
22872
|
watch: function(n) {
|
22863
22873
|
var r = n.observeMutationsRoot;
|
@@ -22909,7 +22919,7 @@ var kM = {
|
|
22909
22919
|
}
|
22910
22920
|
return r;
|
22911
22921
|
}, n);
|
22912
|
-
},
|
22922
|
+
}, TB = {
|
22913
22923
|
mixout: function() {
|
22914
22924
|
return {
|
22915
22925
|
parse: {
|
@@ -22965,10 +22975,10 @@ function ig(t) {
|
|
22965
22975
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
22966
22976
|
return t.attributes && (t.attributes.fill || e) && (t.attributes.fill = "black"), t;
|
22967
22977
|
}
|
22968
|
-
function
|
22978
|
+
function IB(t) {
|
22969
22979
|
return t.tag === "g" ? t.children : [t];
|
22970
22980
|
}
|
22971
|
-
var
|
22981
|
+
var BB = {
|
22972
22982
|
hooks: function() {
|
22973
22983
|
return {
|
22974
22984
|
parseNodeAttributes: function(n, r) {
|
@@ -23018,7 +23028,7 @@ var MM = {
|
|
23018
23028
|
attributes: {
|
23019
23029
|
id: v
|
23020
23030
|
},
|
23021
|
-
children:
|
23031
|
+
children: IB(h)
|
23022
23032
|
}, A]
|
23023
23033
|
};
|
23024
23034
|
return r.push(S, {
|
@@ -23034,7 +23044,7 @@ var MM = {
|
|
23034
23044
|
};
|
23035
23045
|
};
|
23036
23046
|
}
|
23037
|
-
},
|
23047
|
+
}, MB = {
|
23038
23048
|
provides: function(e) {
|
23039
23049
|
var n = !1;
|
23040
23050
|
Ln.matchMedia && (n = Ln.matchMedia("(prefers-reduced-motion: reduce)").matches), e.missingIconAbstract = function() {
|
@@ -23106,7 +23116,7 @@ var MM = {
|
|
23106
23116
|
};
|
23107
23117
|
};
|
23108
23118
|
}
|
23109
|
-
},
|
23119
|
+
}, PB = {
|
23110
23120
|
hooks: function() {
|
23111
23121
|
return {
|
23112
23122
|
parseNodeAttributes: function(n, r) {
|
@@ -23115,8 +23125,8 @@ var MM = {
|
|
23115
23125
|
}
|
23116
23126
|
};
|
23117
23127
|
}
|
23118
|
-
},
|
23119
|
-
YI(
|
23128
|
+
}, FB = [MI, bB, vB, AB, wB, kB, DB, TB, BB, MB, PB];
|
23129
|
+
YI(FB, {
|
23120
23130
|
mixoutsTo: tt
|
23121
23131
|
});
|
23122
23132
|
tt.noAuto;
|
@@ -23135,12 +23145,12 @@ tt.counter;
|
|
23135
23145
|
* Copyright 2020 Google LLC
|
23136
23146
|
* SPDX-License-Identifier: BSD-3-Clause
|
23137
23147
|
*/
|
23138
|
-
const { D:
|
23148
|
+
const { D: RB } = y4, OB = (t) => t === null || typeof t != "object" && typeof t != "function", Hv = (t) => t.strings === void 0, og = () => document.createComment(""), po = (t, e, n) => {
|
23139
23149
|
var o;
|
23140
23150
|
const r = t._$AA.parentNode, i = e === void 0 ? t._$AB : e._$AA;
|
23141
23151
|
if (n === void 0) {
|
23142
23152
|
const s = r.insertBefore(og(), i), a = r.insertBefore(og(), i);
|
23143
|
-
n = new
|
23153
|
+
n = new RB(s, a, t, t.options);
|
23144
23154
|
} else {
|
23145
23155
|
const s = n._$AB.nextSibling, a = n._$AM, c = a !== t;
|
23146
23156
|
if (c) {
|
@@ -23156,7 +23166,7 @@ const { D: RM } = y4, OM = (t) => t === null || typeof t != "object" && typeof t
|
|
23156
23166
|
}
|
23157
23167
|
}
|
23158
23168
|
return n;
|
23159
|
-
}, nr = (t, e, n = t) => (t._$AI(e, n), t),
|
23169
|
+
}, nr = (t, e, n = t) => (t._$AI(e, n), t), LB = {}, Gv = (t, e = LB) => t._$AH = e, zB = (t) => t._$AH, Wu = (t) => {
|
23160
23170
|
var r;
|
23161
23171
|
(r = t._$AP) == null || r.call(t, !1, !0);
|
23162
23172
|
let e = t._$AA;
|
@@ -23176,7 +23186,7 @@ const sg = (t, e, n) => {
|
|
23176
23186
|
for (let i = e; i <= n; i++)
|
23177
23187
|
r.set(t[i], i);
|
23178
23188
|
return r;
|
23179
|
-
},
|
23189
|
+
}, NB = Jr(class extends Ki {
|
23180
23190
|
constructor(t) {
|
23181
23191
|
if (super(t), t.type !== Tt.CHILD)
|
23182
23192
|
throw Error("repeat() can only be used in text expressions");
|
@@ -23194,7 +23204,7 @@ const sg = (t, e, n) => {
|
|
23194
23204
|
return this.ht(t, e, n).values;
|
23195
23205
|
}
|
23196
23206
|
update(t, [e, n, r]) {
|
23197
|
-
const i =
|
23207
|
+
const i = zB(t), { values: o, keys: s } = this.ht(e, n, r);
|
23198
23208
|
if (!Array.isArray(i))
|
23199
23209
|
return this.dt = s, o;
|
23200
23210
|
const a = this.dt ?? (this.dt = []), c = [];
|
@@ -23236,7 +23246,7 @@ const sg = (t, e, n) => {
|
|
23236
23246
|
return this.dt = s, Gv(t, c), ke;
|
23237
23247
|
}
|
23238
23248
|
}), Vv = "close-dialog";
|
23239
|
-
function
|
23249
|
+
function UB() {
|
23240
23250
|
return new CustomEvent(Vv, { bubbles: !0 });
|
23241
23251
|
}
|
23242
23252
|
function ni(t = "default", e = document.body) {
|
@@ -23313,7 +23323,7 @@ function Je(t, e = {}) {
|
|
23313
23323
|
Re(a, n.content);
|
23314
23324
|
});
|
23315
23325
|
}
|
23316
|
-
var
|
23326
|
+
var Mi, Xt, bn, Us, Jc, jv, $c, Wv, Hs, yh, el, Yv;
|
23317
23327
|
class _v extends Ot {
|
23318
23328
|
constructor() {
|
23319
23329
|
super();
|
@@ -23334,12 +23344,12 @@ class _v extends Ot {
|
|
23334
23344
|
*/
|
23335
23345
|
I(this, Hs);
|
23336
23346
|
I(this, el);
|
23337
|
-
I(this,
|
23347
|
+
I(this, Mi, void 0);
|
23338
23348
|
I(this, Xt, void 0);
|
23339
23349
|
I(this, bn, void 0);
|
23340
23350
|
// A hack to prevent click event when drag stops. A cleaner solution would be nice.
|
23341
23351
|
I(this, Us, 0);
|
23342
|
-
this.values = [], this.thresholds = [], this.operators = [], this.colors = Qv, this.showThresholdNumbers = !1, L(this,
|
23352
|
+
this.values = [], this.thresholds = [], this.operators = [], this.colors = Qv, this.showThresholdNumbers = !1, L(this, Mi, g3().thresholds(40)), L(this, Xt, x(this, Mi).call(this, [])), L(this, bn, bc());
|
23343
23353
|
}
|
23344
23354
|
connectedCallback() {
|
23345
23355
|
super.connectedCallback();
|
@@ -23352,13 +23362,13 @@ class _v extends Ot {
|
|
23352
23362
|
* @param {Map<string, any>} changedProperties
|
23353
23363
|
*/
|
23354
23364
|
willUpdate(n) {
|
23355
|
-
n.has("values") && (L(this, Xt, x(this,
|
23365
|
+
n.has("values") && (L(this, Xt, x(this, Mi).call(this, this.values)), L(this, bn, bc().domain(this.domain).range([0, 100])));
|
23356
23366
|
}
|
23357
23367
|
get domain() {
|
23358
23368
|
return [x(this, Xt).at(0).x0, x(this, Xt).at(-1).x1];
|
23359
23369
|
}
|
23360
23370
|
render() {
|
23361
|
-
const n = x(this, bn), r = 100 / x(this, Xt).length, i =
|
23371
|
+
const n = x(this, bn), r = 100 / x(this, Xt).length, i = B(this, el, Yv).call(this).map(
|
23362
23372
|
(o) => E`<div
|
23363
23373
|
style=${hc({
|
23364
23374
|
width: r + 0.01 + "%",
|
@@ -23372,7 +23382,7 @@ class _v extends Ot {
|
|
23372
23382
|
return E`<div class="histogram-widget">
|
23373
23383
|
<div class="histogram-plot">
|
23374
23384
|
<div class="histogram-bars">${i}</div>
|
23375
|
-
<div class="histogram-thresholds" @click=${
|
23385
|
+
<div class="histogram-thresholds" @click=${B(this, Jc, jv)}>
|
23376
23386
|
${this.thresholds.map((o, s) => {
|
23377
23387
|
const a = n(o);
|
23378
23388
|
return a >= 0 && a <= 100 ? E`<div
|
@@ -23383,7 +23393,7 @@ class _v extends Ot {
|
|
23383
23393
|
>
|
23384
23394
|
<div
|
23385
23395
|
class="histogram-knob"
|
23386
|
-
@mousedown=${(c) =>
|
23396
|
+
@mousedown=${(c) => B(this, $c, Wv).call(this, c, s)}
|
23387
23397
|
>
|
23388
23398
|
${this.showThresholdNumbers ? s + 1 : z}
|
23389
23399
|
</div>
|
@@ -23406,14 +23416,14 @@ class _v extends Ot {
|
|
23406
23416
|
</div>`;
|
23407
23417
|
}
|
23408
23418
|
}
|
23409
|
-
|
23419
|
+
Mi = new WeakMap(), Xt = new WeakMap(), bn = new WeakMap(), Us = new WeakMap(), Jc = new WeakSet(), jv = function(n) {
|
23410
23420
|
if (performance.now() < x(this, Us) + 200)
|
23411
23421
|
return;
|
23412
23422
|
const r = (
|
23413
23423
|
/** @type {HTMLElement} */
|
23414
23424
|
n.target
|
23415
23425
|
), i = V1(r, n);
|
23416
|
-
|
23426
|
+
B(this, Hs, yh).call(this, "add", 0, i[0] / r.offsetWidth);
|
23417
23427
|
}, $c = new WeakSet(), Wv = function(n, r) {
|
23418
23428
|
const o = (
|
23419
23429
|
/** @type {HTMLElement} */
|
@@ -23423,18 +23433,18 @@ Bi = new WeakMap(), Xt = new WeakMap(), bn = new WeakMap(), Us = new WeakMap(),
|
|
23423
23433
|
/** @type {HTMLElement} */
|
23424
23434
|
o.offsetParent.offsetWidth
|
23425
23435
|
);
|
23426
|
-
n.preventDefault(), n.stopPropagation(), this.style.cursor = "col-resize",
|
23436
|
+
n.preventDefault(), n.stopPropagation(), this.style.cursor = "col-resize", GB(
|
23427
23437
|
n,
|
23428
23438
|
(c, l) => {
|
23429
|
-
|
23439
|
+
B(this, Hs, yh).call(this, "adjust", r, (s + c) / a);
|
23430
23440
|
},
|
23431
23441
|
() => {
|
23432
23442
|
L(this, Us, performance.now()), this.style.cursor = "";
|
23433
23443
|
}
|
23434
23444
|
);
|
23435
23445
|
}, Hs = new WeakSet(), yh = function(n, r, i) {
|
23436
|
-
i =
|
23437
|
-
new
|
23446
|
+
i = Bn(i, 0, 1), this.dispatchEvent(
|
23447
|
+
new HB(
|
23438
23448
|
n,
|
23439
23449
|
r,
|
23440
23450
|
+x(this, bn).invert(i * 100).toPrecision(3)
|
@@ -23457,7 +23467,7 @@ Bi = new WeakMap(), Xt = new WeakMap(), bn = new WeakMap(), Us = new WeakMap(),
|
|
23457
23467
|
let d = 0, p = 0;
|
23458
23468
|
if (s)
|
23459
23469
|
for (let m = 0; m <= 1; m++)
|
23460
|
-
p =
|
23470
|
+
p = _B(u, this.thresholds[0], m > 0), p && o.push({
|
23461
23471
|
x: h,
|
23462
23472
|
y: d * i,
|
23463
23473
|
height: p * i,
|
@@ -23466,7 +23476,7 @@ Bi = new WeakMap(), Xt = new WeakMap(), bn = new WeakMap(), Us = new WeakMap(),
|
|
23466
23476
|
else if (this.thresholds.length)
|
23467
23477
|
for (let m = 0; m < a.length - 1; m++) {
|
23468
23478
|
const g = l(m);
|
23469
|
-
p =
|
23479
|
+
p = VB(
|
23470
23480
|
u,
|
23471
23481
|
a[g],
|
23472
23482
|
a[g + 1],
|
@@ -23491,7 +23501,7 @@ Bi = new WeakMap(), Xt = new WeakMap(), bn = new WeakMap(), Us = new WeakMap(),
|
|
23491
23501
|
showThresholdNumbers: {}
|
23492
23502
|
});
|
23493
23503
|
customElements.define("genome-spy-histogram", _v);
|
23494
|
-
class
|
23504
|
+
class HB extends Event {
|
23495
23505
|
/**
|
23496
23506
|
*
|
23497
23507
|
* @param {"add" | "adjust"} type
|
@@ -23502,7 +23512,7 @@ class HM extends Event {
|
|
23502
23512
|
super(e), this.index = n, this.value = r;
|
23503
23513
|
}
|
23504
23514
|
}
|
23505
|
-
function
|
23515
|
+
function GB(t, e, n) {
|
23506
23516
|
const r = t.clientX, i = t.clientY, o = function(a) {
|
23507
23517
|
e(a.clientX - r, a.clientY - i);
|
23508
23518
|
}, s = function(a) {
|
@@ -23510,7 +23520,7 @@ function GM(t, e, n) {
|
|
23510
23520
|
};
|
23511
23521
|
document.addEventListener("mousemove", o), document.addEventListener("mouseup", s);
|
23512
23522
|
}
|
23513
|
-
function
|
23523
|
+
function VB(t, e, n, r = !0, i = !1) {
|
23514
23524
|
const o = r ? (c) => c >= e : (c) => c > e, s = i ? (c) => c <= n : (c) => c < n;
|
23515
23525
|
let a = 0;
|
23516
23526
|
for (let c = 0; c < t.length; c++) {
|
@@ -23519,7 +23529,7 @@ function VM(t, e, n, r = !0, i = !1) {
|
|
23519
23529
|
}
|
23520
23530
|
return a;
|
23521
23531
|
}
|
23522
|
-
function
|
23532
|
+
function _B(t, e, n = !1) {
|
23523
23533
|
let r = 0;
|
23524
23534
|
for (let i = 0; i < t.length; i++)
|
23525
23535
|
r += +(t[i] == e);
|
@@ -23533,19 +23543,19 @@ const Qv = [
|
|
23533
23543
|
"#9467bd",
|
23534
23544
|
"#8c564b"
|
23535
23545
|
];
|
23536
|
-
function
|
23546
|
+
function jB(t, e) {
|
23537
23547
|
var r;
|
23538
23548
|
const n = (r = t.scale) == null ? void 0 : r.type;
|
23539
|
-
wt(n) ?
|
23549
|
+
wt(n) ? YB(t, e) : ye(n) || yn(n) ? QB(t, e) : t.type === "identifier" ? WB(t, e) : Je("Not implemented (yet).");
|
23540
23550
|
}
|
23541
|
-
function
|
23551
|
+
function WB(t, e) {
|
23542
23552
|
Xv(
|
23543
23553
|
e.getSamples().map((n) => n.id),
|
23544
23554
|
t,
|
23545
23555
|
e
|
23546
23556
|
);
|
23547
23557
|
}
|
23548
|
-
function
|
23558
|
+
function YB(t, e) {
|
23549
23559
|
const n = (
|
23550
23560
|
/** @type {import("d3-scale").ScaleOrdinal<Scalar, Scalar>} */
|
23551
23561
|
t.scale
|
@@ -23620,13 +23630,13 @@ function Xv(t, e, n, r = (i) => z) {
|
|
23620
23630
|
if (A.key == "ArrowDown")
|
23621
23631
|
(C = (w = S.closest("li").nextElementSibling) == null ? void 0 : w.querySelector("input[type='checkbox']")) == null || C.focus(), A.preventDefault();
|
23622
23632
|
else if (A.key == "ArrowUp") {
|
23623
|
-
const
|
23633
|
+
const M = (
|
23624
23634
|
/** @type {HTMLInputElement} */
|
23625
23635
|
(D = S.closest("li").previousElementSibling) == null ? void 0 : D.querySelector(
|
23626
23636
|
"input[type='checkbox']"
|
23627
23637
|
)
|
23628
23638
|
);
|
23629
|
-
|
23639
|
+
M ? M.focus() : g(), A.preventDefault();
|
23630
23640
|
} else
|
23631
23641
|
A.key == "Esc" ? (g(), A.stopPropagation()) : A.key == "Tab" && !A.shiftKey ? (U = S.closest(".gs-checkbox-list").querySelector("li:last-child input")) == null || U.focus() : A.key == "Tab" && A.shiftKey && ((W = S.closest(".gs-checkbox-list").querySelector("li:first-child input")) == null || W.focus());
|
23632
23642
|
}, b = () => E` <div class="modal-buttons">
|
@@ -23664,7 +23674,7 @@ function Xv(t, e, n, r = (i) => z) {
|
|
23664
23674
|
@input=${p}
|
23665
23675
|
@keydown=${y}
|
23666
23676
|
>
|
23667
|
-
${
|
23677
|
+
${NB(
|
23668
23678
|
A,
|
23669
23679
|
(C) => C.value,
|
23670
23680
|
(C) => E`<li>
|
@@ -23713,7 +23723,7 @@ function Xv(t, e, n, r = (i) => z) {
|
|
23713
23723
|
}
|
23714
23724
|
v(), g();
|
23715
23725
|
}
|
23716
|
-
function
|
23726
|
+
function QB(t, e) {
|
23717
23727
|
var g;
|
23718
23728
|
const n = e.provenance.storeHelper.getDispatcher();
|
23719
23729
|
let r = "lt", i;
|
@@ -23759,7 +23769,7 @@ function QM(t, e) {
|
|
23759
23769
|
>Retain samples where <em>${t.name}</em> is</label
|
23760
23770
|
>
|
23761
23771
|
<div class="btn-group" role="group">
|
23762
|
-
${Object.entries(
|
23772
|
+
${Object.entries(XB).map(
|
23763
23773
|
([y, b]) => E`<button
|
23764
23774
|
class=${u0({
|
23765
23775
|
btn: !0,
|
@@ -23800,7 +23810,7 @@ function QM(t, e) {
|
|
23800
23810
|
}
|
23801
23811
|
m(), (g = o.content.querySelector("input[type='text']")) == null || g.focus();
|
23802
23812
|
}
|
23803
|
-
const
|
23813
|
+
const XB = {
|
23804
23814
|
lt: ["<", "less than"],
|
23805
23815
|
lte: ["≤", "less than or equal to"],
|
23806
23816
|
eq: ["=", "equal to"],
|
@@ -23817,11 +23827,11 @@ function qv(t, e, n) {
|
|
23817
23827
|
function Ee(t) {
|
23818
23828
|
return `Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `;
|
23819
23829
|
}
|
23820
|
-
var
|
23830
|
+
var qB = /* @__PURE__ */ (() => typeof Symbol == "function" && Symbol.observable || "@@observable")(), ag = qB, Yu = () => Math.random().toString(36).substring(7).split("").join("."), KB = {
|
23821
23831
|
INIT: `@@redux/INIT${/* @__PURE__ */ Yu()}`,
|
23822
23832
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Yu()}`,
|
23823
23833
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Yu()}`
|
23824
|
-
}, Lc =
|
23834
|
+
}, Lc = KB;
|
23825
23835
|
function C0(t) {
|
23826
23836
|
if (typeof t != "object" || t === null)
|
23827
23837
|
return !1;
|
@@ -23929,7 +23939,7 @@ function Kv(t, e, n) {
|
|
23929
23939
|
[ag]: p
|
23930
23940
|
};
|
23931
23941
|
}
|
23932
|
-
function
|
23942
|
+
function ZB(t) {
|
23933
23943
|
Object.keys(t).forEach((e) => {
|
23934
23944
|
const n = t[e];
|
23935
23945
|
if (typeof n(void 0, {
|
@@ -23951,7 +23961,7 @@ function E0(t) {
|
|
23951
23961
|
const r = Object.keys(n);
|
23952
23962
|
let i;
|
23953
23963
|
try {
|
23954
|
-
|
23964
|
+
ZB(n);
|
23955
23965
|
} catch (o) {
|
23956
23966
|
i = o;
|
23957
23967
|
}
|
@@ -23972,7 +23982,7 @@ function E0(t) {
|
|
23972
23982
|
function zc(...t) {
|
23973
23983
|
return t.length === 0 ? (e) => e : t.length === 1 ? t[0] : t.reduce((e, n) => (...r) => e(n(...r)));
|
23974
23984
|
}
|
23975
|
-
function
|
23985
|
+
function JB(...t) {
|
23976
23986
|
return (e) => (n, r) => {
|
23977
23987
|
const i = e(n, r);
|
23978
23988
|
let o = () => {
|
@@ -23988,7 +23998,7 @@ function JM(...t) {
|
|
23988
23998
|
};
|
23989
23999
|
};
|
23990
24000
|
}
|
23991
|
-
function $
|
24001
|
+
function $B(t) {
|
23992
24002
|
return C0(t) && "type" in t && typeof t.type == "string";
|
23993
24003
|
}
|
23994
24004
|
var Zv = Symbol.for("immer-nothing"), cg = Symbol.for("immer-draftable"), $e = Symbol.for("immer-state");
|
@@ -24005,7 +24015,7 @@ function cn(t) {
|
|
24005
24015
|
var e;
|
24006
24016
|
return t ? Jv(t) || Array.isArray(t) || !!t[cg] || !!((e = t.constructor) != null && e[cg]) || tu(t) || nu(t) : !1;
|
24007
24017
|
}
|
24008
|
-
var
|
24018
|
+
var eM = Object.prototype.constructor.toString();
|
24009
24019
|
function Jv(t) {
|
24010
24020
|
if (!t || typeof t != "object")
|
24011
24021
|
return !1;
|
@@ -24013,7 +24023,7 @@ function Jv(t) {
|
|
24013
24023
|
if (e === null)
|
24014
24024
|
return !0;
|
24015
24025
|
const n = Object.hasOwnProperty.call(e, "constructor") && e.constructor;
|
24016
|
-
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) ===
|
24026
|
+
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === eM;
|
24017
24027
|
}
|
24018
24028
|
function bs(t, e) {
|
24019
24029
|
eu(t) === 0 ? Object.entries(t).forEach(([n, r]) => {
|
@@ -24031,7 +24041,7 @@ function $v(t, e, n) {
|
|
24031
24041
|
const r = eu(t);
|
24032
24042
|
r === 2 ? t.set(e, n) : r === 3 ? t.add(n) : t[e] = n;
|
24033
24043
|
}
|
24034
|
-
function
|
24044
|
+
function tM(t, e) {
|
24035
24045
|
return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
|
24036
24046
|
}
|
24037
24047
|
function tu(t) {
|
@@ -24068,24 +24078,24 @@ function vh(t, e) {
|
|
24068
24078
|
return Object.create(Qi(t), n);
|
24069
24079
|
}
|
24070
24080
|
function k0(t, e = !1) {
|
24071
|
-
return ru(t) || Un(t) || !cn(t) || (eu(t) > 1 && (t.set = t.add = t.clear = t.delete =
|
24081
|
+
return ru(t) || Un(t) || !cn(t) || (eu(t) > 1 && (t.set = t.add = t.clear = t.delete = nM), Object.freeze(t), e && bs(t, (n, r) => k0(r, !0))), t;
|
24072
24082
|
}
|
24073
|
-
function
|
24083
|
+
function nM() {
|
24074
24084
|
mt(2);
|
24075
24085
|
}
|
24076
24086
|
function ru(t) {
|
24077
24087
|
return Object.isFrozen(t);
|
24078
24088
|
}
|
24079
|
-
var
|
24089
|
+
var rM = {};
|
24080
24090
|
function qr(t) {
|
24081
|
-
const e =
|
24091
|
+
const e = rM[t];
|
24082
24092
|
return e || mt(0, t), e;
|
24083
24093
|
}
|
24084
24094
|
var vs;
|
24085
24095
|
function eA() {
|
24086
24096
|
return vs;
|
24087
24097
|
}
|
24088
|
-
function
|
24098
|
+
function iM(t, e) {
|
24089
24099
|
return {
|
24090
24100
|
drafts_: [],
|
24091
24101
|
parent_: t,
|
@@ -24100,15 +24110,15 @@ function lg(t, e) {
|
|
24100
24110
|
e && (qr("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = e);
|
24101
24111
|
}
|
24102
24112
|
function Ah(t) {
|
24103
|
-
wh(t), t.drafts_.forEach(
|
24113
|
+
wh(t), t.drafts_.forEach(oM), t.drafts_ = null;
|
24104
24114
|
}
|
24105
24115
|
function wh(t) {
|
24106
24116
|
t === vs && (vs = t.parent_);
|
24107
24117
|
}
|
24108
24118
|
function ug(t) {
|
24109
|
-
return vs =
|
24119
|
+
return vs = iM(vs, t);
|
24110
24120
|
}
|
24111
|
-
function
|
24121
|
+
function oM(t) {
|
24112
24122
|
const e = t[$e];
|
24113
24123
|
e.type_ === 0 || e.type_ === 1 ? e.revoke_() : e.revoked_ = !0;
|
24114
24124
|
}
|
@@ -24170,7 +24180,7 @@ function hg(t, e, n, r, i, o, s) {
|
|
24170
24180
|
function Uc(t, e, n = !1) {
|
24171
24181
|
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && k0(e, n);
|
24172
24182
|
}
|
24173
|
-
function
|
24183
|
+
function sM(t, e) {
|
24174
24184
|
const n = Array.isArray(t), r = {
|
24175
24185
|
type_: n ? 1 : 0,
|
24176
24186
|
// Track which produce call this is associated with.
|
@@ -24205,7 +24215,7 @@ var D0 = {
|
|
24205
24215
|
return t;
|
24206
24216
|
const n = sr(t);
|
24207
24217
|
if (!bh(n, e))
|
24208
|
-
return
|
24218
|
+
return aM(t, n, e);
|
24209
24219
|
const r = n[e];
|
24210
24220
|
return t.finalized_ || !cn(r) ? r : r === Qu(t.base_, e) ? (Xu(t), t.copy_[e] = Sh(r, t)) : r;
|
24211
24221
|
},
|
@@ -24223,7 +24233,7 @@ var D0 = {
|
|
24223
24233
|
const i = Qu(sr(t), e), o = i == null ? void 0 : i[$e];
|
24224
24234
|
if (o && o.base_ === n)
|
24225
24235
|
return t.copy_[e] = n, t.assigned_[e] = !1, !0;
|
24226
|
-
if (
|
24236
|
+
if (tM(n, i) && (n !== void 0 || bh(t.base_, e)))
|
24227
24237
|
return !0;
|
24228
24238
|
Xu(t), xh(t);
|
24229
24239
|
}
|
@@ -24270,7 +24280,7 @@ function Qu(t, e) {
|
|
24270
24280
|
const n = t[$e];
|
24271
24281
|
return (n ? sr(n) : t)[e];
|
24272
24282
|
}
|
24273
|
-
function
|
24283
|
+
function aM(t, e, n) {
|
24274
24284
|
var i;
|
24275
24285
|
const r = tA(e, n);
|
24276
24286
|
return r ? "value" in r ? r.value : (
|
@@ -24299,7 +24309,7 @@ function Xu(t) {
|
|
24299
24309
|
t.scope_.immer_.useStrictShallowCopy_
|
24300
24310
|
));
|
24301
24311
|
}
|
24302
|
-
var
|
24312
|
+
var cM = class {
|
24303
24313
|
constructor(t) {
|
24304
24314
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (e, n, r) => {
|
24305
24315
|
if (typeof e == "function" && typeof n != "function") {
|
@@ -24383,7 +24393,7 @@ var cB = class {
|
|
24383
24393
|
}
|
24384
24394
|
};
|
24385
24395
|
function Sh(t, e) {
|
24386
|
-
const n = tu(t) ? qr("MapSet").proxyMap_(t, e) : nu(t) ? qr("MapSet").proxySet_(t, e) :
|
24396
|
+
const n = tu(t) ? qr("MapSet").proxyMap_(t, e) : nu(t) ? qr("MapSet").proxySet_(t, e) : sM(t, e);
|
24387
24397
|
return (e ? e.scope_ : eA()).drafts_.push(n), n;
|
24388
24398
|
}
|
24389
24399
|
function nA(t) {
|
@@ -24404,7 +24414,7 @@ function rA(t) {
|
|
24404
24414
|
$v(n, r, rA(i));
|
24405
24415
|
}), e && (e.finalized_ = !1), n;
|
24406
24416
|
}
|
24407
|
-
var et = new
|
24417
|
+
var et = new cM(), iA = et.produce;
|
24408
24418
|
et.produceWithPatches.bind(
|
24409
24419
|
et
|
24410
24420
|
);
|
@@ -24413,11 +24423,11 @@ et.setUseStrictShallowCopy.bind(et);
|
|
24413
24423
|
et.applyPatches.bind(et);
|
24414
24424
|
et.createDraft.bind(et);
|
24415
24425
|
et.finishDraft.bind(et);
|
24416
|
-
function
|
24426
|
+
function lM(t, e = `expected a function, instead received ${typeof t}`) {
|
24417
24427
|
if (typeof t != "function")
|
24418
24428
|
throw new TypeError(e);
|
24419
24429
|
}
|
24420
|
-
function
|
24430
|
+
function uM(t, e = "expected all items to be functions, instead received the following types: ") {
|
24421
24431
|
if (!t.every((n) => typeof n == "function")) {
|
24422
24432
|
const n = t.map(
|
24423
24433
|
(r) => typeof r == "function" ? `function ${r.name || "unnamed"}()` : typeof r
|
@@ -24426,30 +24436,30 @@ function uB(t, e = "expected all items to be functions, instead received the fol
|
|
24426
24436
|
}
|
24427
24437
|
}
|
24428
24438
|
var dg = (t) => Array.isArray(t) ? t : [t];
|
24429
|
-
function
|
24439
|
+
function fM(t) {
|
24430
24440
|
const e = Array.isArray(t[0]) ? t[0] : t;
|
24431
|
-
return
|
24441
|
+
return uM(
|
24432
24442
|
e,
|
24433
24443
|
"createSelector expects all input-selectors to be functions, but received the following types: "
|
24434
24444
|
), e;
|
24435
24445
|
}
|
24436
|
-
function
|
24446
|
+
function hM(t, e) {
|
24437
24447
|
const n = [], { length: r } = t;
|
24438
24448
|
for (let i = 0; i < r; i++)
|
24439
24449
|
n.push(t[i].apply(null, e));
|
24440
24450
|
return n;
|
24441
24451
|
}
|
24442
|
-
var
|
24452
|
+
var dM = class {
|
24443
24453
|
constructor(t) {
|
24444
24454
|
this.value = t;
|
24445
24455
|
}
|
24446
24456
|
deref() {
|
24447
24457
|
return this.value;
|
24448
24458
|
}
|
24449
|
-
},
|
24459
|
+
}, pM = WeakRef ?? dM, mM = 0, pg = 1;
|
24450
24460
|
function ja() {
|
24451
24461
|
return {
|
24452
|
-
s:
|
24462
|
+
s: mM,
|
24453
24463
|
v: void 0,
|
24454
24464
|
o: null,
|
24455
24465
|
p: null
|
@@ -24480,7 +24490,7 @@ function T0(t, e = {}) {
|
|
24480
24490
|
let f;
|
24481
24491
|
if (a.s === pg ? f = a.v : (f = t.apply(null, arguments), o++), l.s = pg, r) {
|
24482
24492
|
const u = (i == null ? void 0 : i.deref()) ?? i;
|
24483
|
-
u != null && r(u, f) && (f = u, o !== 0 && o--), i = typeof f == "object" && f !== null || typeof f == "function" ? new
|
24493
|
+
u != null && r(u, f) && (f = u, o !== 0 && o--), i = typeof f == "object" && f !== null || typeof f == "function" ? new pM(f) : f;
|
24484
24494
|
}
|
24485
24495
|
return l.v = f, f;
|
24486
24496
|
}
|
@@ -24497,7 +24507,7 @@ function oA(t, ...e) {
|
|
24497
24507
|
} : t;
|
24498
24508
|
return (...i) => {
|
24499
24509
|
let o = 0, s = 0, a, c = {}, l = i.pop();
|
24500
|
-
typeof l == "object" && (c = l, l = i.pop()),
|
24510
|
+
typeof l == "object" && (c = l, l = i.pop()), lM(
|
24501
24511
|
l,
|
24502
24512
|
`createSelector expects an output function after the inputs, but received: [${typeof l}]`
|
24503
24513
|
);
|
@@ -24510,14 +24520,14 @@ function oA(t, ...e) {
|
|
24510
24520
|
argsMemoize: d = T0,
|
24511
24521
|
argsMemoizeOptions: p = [],
|
24512
24522
|
devModeChecks: m = {}
|
24513
|
-
} = f, g = dg(h), y = dg(p), b =
|
24523
|
+
} = f, g = dg(h), y = dg(p), b = fM(i), v = u(function() {
|
24514
24524
|
return o++, l.apply(
|
24515
24525
|
null,
|
24516
24526
|
arguments
|
24517
24527
|
);
|
24518
24528
|
}, ...g), A = d(function() {
|
24519
24529
|
s++;
|
24520
|
-
const w =
|
24530
|
+
const w = hM(
|
24521
24531
|
b,
|
24522
24532
|
arguments
|
24523
24533
|
);
|
@@ -24541,19 +24551,19 @@ function oA(t, ...e) {
|
|
24541
24551
|
});
|
24542
24552
|
};
|
24543
24553
|
}
|
24544
|
-
var
|
24554
|
+
var gM = /* @__PURE__ */ oA(T0);
|
24545
24555
|
function sA(t) {
|
24546
24556
|
return ({ dispatch: n, getState: r }) => (i) => (o) => typeof o == "function" ? o(n, r, t) : i(o);
|
24547
24557
|
}
|
24548
|
-
var
|
24558
|
+
var yM = sA(), bM = sA, vM = (...t) => {
|
24549
24559
|
const e = oA(...t);
|
24550
24560
|
return (...n) => {
|
24551
24561
|
const r = e(...n), i = (o, ...s) => r(Un(o) ? nA(o) : o, ...s);
|
24552
24562
|
return Object.assign(i, r), i;
|
24553
24563
|
};
|
24554
24564
|
};
|
24555
|
-
|
24556
|
-
var
|
24565
|
+
vM(T0);
|
24566
|
+
var AM = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
24557
24567
|
if (arguments.length !== 0)
|
24558
24568
|
return typeof arguments[0] == "object" ? zc : zc.apply(null, arguments);
|
24559
24569
|
};
|
@@ -24579,7 +24589,7 @@ function ws(t, e) {
|
|
24579
24589
|
payload: r[0]
|
24580
24590
|
};
|
24581
24591
|
}
|
24582
|
-
return n.toString = () => `${t}`, n.type = t, n.match = (r) => $
|
24592
|
+
return n.toString = () => `${t}`, n.type = t, n.match = (r) => $B(r) && r.type === t, n;
|
24583
24593
|
}
|
24584
24594
|
var aA = class xo extends Array {
|
24585
24595
|
constructor(...e) {
|
@@ -24609,10 +24619,10 @@ function gg(t, e, n) {
|
|
24609
24619
|
const r = n.insert(e, t);
|
24610
24620
|
return t.set(e, r), r;
|
24611
24621
|
}
|
24612
|
-
function
|
24622
|
+
function wM(t) {
|
24613
24623
|
return typeof t == "boolean";
|
24614
24624
|
}
|
24615
|
-
var
|
24625
|
+
var xM = () => function(e) {
|
24616
24626
|
const {
|
24617
24627
|
thunk: n = !0,
|
24618
24628
|
immutableCheck: r = !0,
|
@@ -24620,15 +24630,15 @@ var xB = () => function(e) {
|
|
24620
24630
|
actionCreatorCheck: o = !0
|
24621
24631
|
} = e ?? {};
|
24622
24632
|
let s = new aA();
|
24623
|
-
return n && (
|
24624
|
-
},
|
24633
|
+
return n && (wM(n) ? s.push(yM) : s.push(bM(n.extraArgument))), s;
|
24634
|
+
}, SM = "RTK_autoBatch", cA = (t) => (e) => {
|
24625
24635
|
setTimeout(e, t);
|
24626
|
-
},
|
24636
|
+
}, CM = typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : cA(10), EM = (t = {
|
24627
24637
|
type: "raf"
|
24628
24638
|
}) => (e) => (...n) => {
|
24629
24639
|
const r = e(...n);
|
24630
24640
|
let i = !0, o = !1, s = !1;
|
24631
|
-
const a = /* @__PURE__ */ new Set(), c = t.type === "tick" ? queueMicrotask : t.type === "raf" ?
|
24641
|
+
const a = /* @__PURE__ */ new Set(), c = t.type === "tick" ? queueMicrotask : t.type === "raf" ? CM : t.type === "callback" ? t.queueNotification : cA(t.timeout), l = () => {
|
24632
24642
|
s = !1, o && (o = !1, a.forEach((f) => f()));
|
24633
24643
|
};
|
24634
24644
|
return Object.assign({}, r, {
|
@@ -24645,21 +24655,21 @@ var xB = () => function(e) {
|
|
24645
24655
|
dispatch(f) {
|
24646
24656
|
var u;
|
24647
24657
|
try {
|
24648
|
-
return i = !((u = f == null ? void 0 : f.meta) != null && u[
|
24658
|
+
return i = !((u = f == null ? void 0 : f.meta) != null && u[SM]), o = !i, o && (s || (s = !0, c(l))), r.dispatch(f);
|
24649
24659
|
} finally {
|
24650
24660
|
i = !0;
|
24651
24661
|
}
|
24652
24662
|
}
|
24653
24663
|
});
|
24654
|
-
},
|
24664
|
+
}, kM = (t) => function(n) {
|
24655
24665
|
const {
|
24656
24666
|
autoBatch: r = !0
|
24657
24667
|
} = n ?? {};
|
24658
24668
|
let i = new aA(t);
|
24659
|
-
return r && i.push(
|
24660
|
-
},
|
24661
|
-
function
|
24662
|
-
const e =
|
24669
|
+
return r && i.push(EM(typeof r == "object" ? r : void 0)), i;
|
24670
|
+
}, DM = !0;
|
24671
|
+
function TM(t) {
|
24672
|
+
const e = xM(), {
|
24663
24673
|
reducer: n = void 0,
|
24664
24674
|
middleware: r,
|
24665
24675
|
devTools: i = !0,
|
@@ -24676,12 +24686,12 @@ function TB(t) {
|
|
24676
24686
|
let c;
|
24677
24687
|
typeof r == "function" ? c = r(e) : c = e();
|
24678
24688
|
let l = zc;
|
24679
|
-
i && (l =
|
24689
|
+
i && (l = AM({
|
24680
24690
|
// Enable capture of stack traces for dispatched Redux actions
|
24681
|
-
trace: !
|
24691
|
+
trace: !DM,
|
24682
24692
|
...typeof i == "object" && i
|
24683
24693
|
}));
|
24684
|
-
const f =
|
24694
|
+
const f = JB(...c), u = kM(f);
|
24685
24695
|
let h = typeof s == "function" ? s(u) : u();
|
24686
24696
|
const d = l(...h);
|
24687
24697
|
return Kv(a, o, d);
|
@@ -24710,12 +24720,12 @@ function lA(t) {
|
|
24710
24720
|
};
|
24711
24721
|
return t(i), [e, n, r];
|
24712
24722
|
}
|
24713
|
-
function
|
24723
|
+
function IM(t) {
|
24714
24724
|
return typeof t == "function";
|
24715
24725
|
}
|
24716
|
-
function
|
24726
|
+
function BM(t, e) {
|
24717
24727
|
let [n, r, i] = lA(e), o;
|
24718
|
-
if (
|
24728
|
+
if (IM(t))
|
24719
24729
|
o = () => mg(t());
|
24720
24730
|
else {
|
24721
24731
|
const a = mg(t);
|
@@ -24750,15 +24760,15 @@ function MB(t, e) {
|
|
24750
24760
|
}
|
24751
24761
|
return s.getInitialState = o, s;
|
24752
24762
|
}
|
24753
|
-
var
|
24754
|
-
function
|
24763
|
+
var MM = Symbol.for("rtk-slice-createasyncthunk");
|
24764
|
+
function PM(t, e) {
|
24755
24765
|
return `${t}/${e}`;
|
24756
24766
|
}
|
24757
|
-
function
|
24767
|
+
function FM({
|
24758
24768
|
creators: t
|
24759
24769
|
} = {}) {
|
24760
24770
|
var n;
|
24761
|
-
const e = (n = t == null ? void 0 : t.asyncThunk) == null ? void 0 : n[
|
24771
|
+
const e = (n = t == null ? void 0 : t.asyncThunk) == null ? void 0 : n[MM];
|
24762
24772
|
return function(i) {
|
24763
24773
|
const {
|
24764
24774
|
name: o,
|
@@ -24767,7 +24777,7 @@ function FB({
|
|
24767
24777
|
if (!o)
|
24768
24778
|
throw new Error(vt(11));
|
24769
24779
|
typeof process < "u";
|
24770
|
-
const a = (typeof i.reducers == "function" ? i.reducers(
|
24780
|
+
const a = (typeof i.reducers == "function" ? i.reducers(OM()) : i.reducers) || {}, c = Object.keys(a), l = {
|
24771
24781
|
sliceCaseReducersByName: {},
|
24772
24782
|
sliceCaseReducersByType: {},
|
24773
24783
|
actionCreators: {},
|
@@ -24797,17 +24807,17 @@ function FB({
|
|
24797
24807
|
c.forEach((g) => {
|
24798
24808
|
const y = a[g], b = {
|
24799
24809
|
reducerName: g,
|
24800
|
-
type:
|
24810
|
+
type: PM(o, g),
|
24801
24811
|
createNotation: typeof i.reducers == "function"
|
24802
24812
|
};
|
24803
|
-
|
24813
|
+
zM(y) ? UM(b, y, f, e) : LM(b, y, f);
|
24804
24814
|
});
|
24805
24815
|
function u() {
|
24806
24816
|
const [g = {}, y = [], b = void 0] = typeof i.extraReducers == "function" ? lA(i.extraReducers) : [i.extraReducers], v = {
|
24807
24817
|
...g,
|
24808
24818
|
...l.sliceCaseReducersByType
|
24809
24819
|
};
|
24810
|
-
return
|
24820
|
+
return BM(i.initialState, (A) => {
|
24811
24821
|
for (let S in v)
|
24812
24822
|
A.addCase(S, v[S]);
|
24813
24823
|
for (let S of l.sliceMatchers)
|
@@ -24838,7 +24848,7 @@ function FB({
|
|
24838
24848
|
insert: () => {
|
24839
24849
|
const b = {};
|
24840
24850
|
for (const [v, A] of Object.entries(i.selectors ?? {}))
|
24841
|
-
b[v] =
|
24851
|
+
b[v] = RM(this, A, g, this !== m);
|
24842
24852
|
return b;
|
24843
24853
|
}
|
24844
24854
|
});
|
@@ -24867,15 +24877,15 @@ function FB({
|
|
24867
24877
|
return m;
|
24868
24878
|
};
|
24869
24879
|
}
|
24870
|
-
function
|
24880
|
+
function RM(t, e, n, r) {
|
24871
24881
|
function i(o, ...s) {
|
24872
24882
|
let a = n.call(t, o);
|
24873
24883
|
return typeof a > "u" && r && (a = t.getInitialState()), e(a, ...s);
|
24874
24884
|
}
|
24875
24885
|
return i.unwrapped = e, i;
|
24876
24886
|
}
|
24877
|
-
var uA =
|
24878
|
-
function
|
24887
|
+
var uA = FM();
|
24888
|
+
function OM() {
|
24879
24889
|
function t(e, n) {
|
24880
24890
|
return {
|
24881
24891
|
_reducerDefinitionType: "asyncThunk",
|
@@ -24906,27 +24916,27 @@ function OB() {
|
|
24906
24916
|
asyncThunk: t
|
24907
24917
|
};
|
24908
24918
|
}
|
24909
|
-
function
|
24919
|
+
function LM({
|
24910
24920
|
type: t,
|
24911
24921
|
reducerName: e,
|
24912
24922
|
createNotation: n
|
24913
24923
|
}, r, i) {
|
24914
24924
|
let o, s;
|
24915
24925
|
if ("reducer" in r) {
|
24916
|
-
if (n && !
|
24926
|
+
if (n && !NM(r))
|
24917
24927
|
throw new Error(vt(17));
|
24918
24928
|
o = r.reducer, s = r.prepare;
|
24919
24929
|
} else
|
24920
24930
|
o = r;
|
24921
24931
|
i.addCase(t, o).exposeCaseReducer(e, o).exposeAction(e, s ? ws(t, s) : ws(t));
|
24922
24932
|
}
|
24923
|
-
function
|
24933
|
+
function zM(t) {
|
24924
24934
|
return t._reducerDefinitionType === "asyncThunk";
|
24925
24935
|
}
|
24926
|
-
function
|
24936
|
+
function NM(t) {
|
24927
24937
|
return t._reducerDefinitionType === "reducerWithPrepare";
|
24928
24938
|
}
|
24929
|
-
function
|
24939
|
+
function UM({
|
24930
24940
|
type: t,
|
24931
24941
|
reducerName: e
|
24932
24942
|
}, n, r, i) {
|
@@ -24956,22 +24966,22 @@ ws(`${I0}/remove`);
|
|
24956
24966
|
function vt(t) {
|
24957
24967
|
return `Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `;
|
24958
24968
|
}
|
24959
|
-
function
|
24969
|
+
function HM(t, e) {
|
24960
24970
|
var n = t + "", r = e + "";
|
24961
24971
|
return n < r ? -1 : n == r ? 0 : 1;
|
24962
24972
|
}
|
24963
|
-
var
|
24964
|
-
function
|
24973
|
+
var GM = [].forEach;
|
24974
|
+
function VM(t, e, n) {
|
24965
24975
|
if (typeof e != "function")
|
24966
24976
|
throw new TypeError(e + " is not a function");
|
24967
24977
|
var r, i = [], o = [], s = [];
|
24968
|
-
|
24978
|
+
GM.call(t, function(c, l, f) {
|
24969
24979
|
if (r = e(c, l, f), r === void 0)
|
24970
24980
|
return void s.push(c);
|
24971
24981
|
if (n === void 0 && typeof r == "symbol")
|
24972
24982
|
throw new TypeError("Can't convert symbol to string");
|
24973
24983
|
i.push(l), o[l] = r;
|
24974
|
-
}), n === void 0 && (n =
|
24984
|
+
}), n === void 0 && (n = HM), i.sort(function(c, l) {
|
24975
24985
|
return n(o[c], o[l]);
|
24976
24986
|
});
|
24977
24987
|
var a = i.map(function(c) {
|
@@ -24979,7 +24989,7 @@ function VB(t, e, n) {
|
|
24979
24989
|
}).concat(s);
|
24980
24990
|
return a.length != t.length && (a.length = t.length), a;
|
24981
24991
|
}
|
24982
|
-
function
|
24992
|
+
function _M(t, e) {
|
24983
24993
|
const n = (i) => i.copy().range(kn(0, i.domain().length)).unknown(-1);
|
24984
24994
|
let r;
|
24985
24995
|
switch (e.type) {
|
@@ -24995,36 +25005,36 @@ function _B(t, e) {
|
|
24995
25005
|
}
|
24996
25006
|
return (i) => r(t(i));
|
24997
25007
|
}
|
24998
|
-
function
|
25008
|
+
function jM(t, e) {
|
24999
25009
|
const n = /* @__PURE__ */ new Set(), r = (i) => {
|
25000
25010
|
const o = n.has(i);
|
25001
25011
|
return n.add(i), o;
|
25002
25012
|
};
|
25003
25013
|
return t.filter((i) => !r(e(i)));
|
25004
25014
|
}
|
25005
|
-
function
|
25015
|
+
function WM(t, e, n) {
|
25006
25016
|
const r = /* @__PURE__ */ new Set(), i = (o) => (r.size < n && r.add(o), r.has(o));
|
25007
25017
|
return t.filter((o) => i(e(o)));
|
25008
25018
|
}
|
25009
|
-
function
|
25010
|
-
return
|
25019
|
+
function YM(t, e, n = !1) {
|
25020
|
+
return VM(t, e, (r, i) => (n && ([r, i] = [i, r]), r < i ? -1 : r > i ? 1 : 0));
|
25011
25021
|
}
|
25012
|
-
const
|
25022
|
+
const QM = {
|
25013
25023
|
lt: (t, e) => t < e,
|
25014
25024
|
lte: (t, e) => t <= e,
|
25015
25025
|
eq: (t, e) => t == e,
|
25016
25026
|
gte: (t, e) => t >= e,
|
25017
25027
|
gt: (t, e) => t > e
|
25018
25028
|
};
|
25019
|
-
function
|
25020
|
-
const i =
|
25029
|
+
function XM(t, e, n, r) {
|
25030
|
+
const i = QM[n];
|
25021
25031
|
return t.filter((o) => i(e(o), r));
|
25022
25032
|
}
|
25023
25033
|
function yg(t, e, n, r) {
|
25024
25034
|
const i = new Set(r), o = (a) => i.has(a), s = n == "remove" ? (a) => !o(a) : o;
|
25025
25035
|
return t.filter((a) => s(e(a)));
|
25026
25036
|
}
|
25027
|
-
function
|
25037
|
+
function qM(t, e) {
|
25028
25038
|
const n = (r) => r != null;
|
25029
25039
|
return t.filter((r) => n(e(r)));
|
25030
25040
|
}
|
@@ -25033,7 +25043,7 @@ function qB(t, e) {
|
|
25033
25043
|
* Copyright 2021 Google LLC
|
25034
25044
|
* SPDX-License-Identifier: BSD-3-Clause
|
25035
25045
|
*/
|
25036
|
-
function*
|
25046
|
+
function* KM(t, e) {
|
25037
25047
|
const n = typeof e == "function";
|
25038
25048
|
if (t !== void 0) {
|
25039
25049
|
let r = -1;
|
@@ -25042,7 +25052,7 @@ function* KB(t, e) {
|
|
25042
25052
|
}
|
25043
25053
|
}
|
25044
25054
|
const fA = "setSamples", hA = "sortBy", dA = "retainFirstOfEach", pA = "retainFirstNCategories", mA = "filterByNominal", gA = "filterByQuantitative", yA = "removeUndefined", bA = "groupByNominal", vA = "groupToQuartiles", AA = "groupByThresholds", wA = "removeGroup", xA = "retainMatched", Xi = "sampleView";
|
25045
|
-
function
|
25055
|
+
function ZM() {
|
25046
25056
|
return {
|
25047
25057
|
sampleData: void 0,
|
25048
25058
|
groupMetadata: [],
|
@@ -25053,14 +25063,14 @@ function ZB() {
|
|
25053
25063
|
}
|
25054
25064
|
};
|
25055
25065
|
}
|
25056
|
-
function
|
25066
|
+
function JM(t) {
|
25057
25067
|
const e = (n, r) => {
|
25058
25068
|
const i = t(n.attribute).accessor;
|
25059
25069
|
return (o) => i(o, r);
|
25060
25070
|
};
|
25061
25071
|
return uA({
|
25062
25072
|
name: Xi,
|
25063
|
-
initialState:
|
25073
|
+
initialState: ZM(),
|
25064
25074
|
reducers: {
|
25065
25075
|
[fA]: (n, r) => {
|
25066
25076
|
const i = r.payload.samples;
|
@@ -25094,9 +25104,9 @@ function JB(t) {
|
|
25094
25104
|
[hA]: (n, r) => {
|
25095
25105
|
rr(
|
25096
25106
|
n,
|
25097
|
-
(i) =>
|
25107
|
+
(i) => YM(
|
25098
25108
|
i,
|
25099
|
-
|
25109
|
+
_M(
|
25100
25110
|
e(r.payload, n),
|
25101
25111
|
t(r.payload.attribute)
|
25102
25112
|
),
|
@@ -25107,7 +25117,7 @@ function JB(t) {
|
|
25107
25117
|
[dA]: (n, r) => {
|
25108
25118
|
rr(
|
25109
25119
|
n,
|
25110
|
-
(i) =>
|
25120
|
+
(i) => jM(
|
25111
25121
|
i,
|
25112
25122
|
e(r.payload, n)
|
25113
25123
|
)
|
@@ -25116,7 +25126,7 @@ function JB(t) {
|
|
25116
25126
|
[pA]: (n, r) => {
|
25117
25127
|
rr(
|
25118
25128
|
n,
|
25119
|
-
(i) =>
|
25129
|
+
(i) => WM(
|
25120
25130
|
i,
|
25121
25131
|
e(r.payload, n),
|
25122
25132
|
r.payload.n
|
@@ -25126,7 +25136,7 @@ function JB(t) {
|
|
25126
25136
|
[gA]: (n, r) => {
|
25127
25137
|
rr(
|
25128
25138
|
n,
|
25129
|
-
(i) =>
|
25139
|
+
(i) => XM(
|
25130
25140
|
i,
|
25131
25141
|
e(r.payload, n),
|
25132
25142
|
r.payload.operator,
|
@@ -25148,7 +25158,7 @@ function JB(t) {
|
|
25148
25158
|
[yA]: (n, r) => {
|
25149
25159
|
rr(
|
25150
25160
|
n,
|
25151
|
-
(i) =>
|
25161
|
+
(i) => qM(i, e(r.payload, n))
|
25152
25162
|
);
|
25153
25163
|
},
|
25154
25164
|
[bA]: (n, r) => {
|
@@ -25196,7 +25206,7 @@ function JB(t) {
|
|
25196
25206
|
},
|
25197
25207
|
[xA]: (n, r) => {
|
25198
25208
|
const i = e(r.payload, n), o = [];
|
25199
|
-
for (const a of
|
25209
|
+
for (const a of B0(n))
|
25200
25210
|
if (a.samples.length > 0) {
|
25201
25211
|
const c = /* @__PURE__ */ new Set();
|
25202
25212
|
for (const l of a.samples)
|
@@ -25224,23 +25234,23 @@ function JB(t) {
|
|
25224
25234
|
});
|
25225
25235
|
}
|
25226
25236
|
function rr(t, e) {
|
25227
|
-
for (const n of
|
25237
|
+
for (const n of B0(t))
|
25228
25238
|
n.samples = e(n.samples);
|
25229
25239
|
}
|
25230
25240
|
function qu(t, e) {
|
25231
|
-
for (const n of
|
25241
|
+
for (const n of B0(t))
|
25232
25242
|
e(n);
|
25233
25243
|
}
|
25234
|
-
function
|
25244
|
+
function B0(t) {
|
25235
25245
|
return (
|
25236
25246
|
/** @type {SampleGroup[]} */
|
25237
|
-
|
25247
|
+
M0(t).map((e) => at(e))
|
25238
25248
|
);
|
25239
25249
|
}
|
25240
25250
|
function Ch(t) {
|
25241
25251
|
return t.provenance.present[Xi];
|
25242
25252
|
}
|
25243
|
-
function
|
25253
|
+
function M0(t) {
|
25244
25254
|
const e = [], n = [], r = (i) => {
|
25245
25255
|
if (e.push(i), iu(i))
|
25246
25256
|
for (const o of i.groups)
|
@@ -25263,7 +25273,7 @@ function* P0(t) {
|
|
25263
25273
|
for (const n of P0(e))
|
25264
25274
|
yield [t, ...n];
|
25265
25275
|
}
|
25266
|
-
const $
|
25276
|
+
const $M = fe(".4"), vg = {
|
25267
25277
|
lt: "<",
|
25268
25278
|
lte: "≤",
|
25269
25279
|
eq: "=",
|
@@ -25347,7 +25357,7 @@ function eP(t, e) {
|
|
25347
25357
|
n.operator
|
25348
25358
|
]}</span
|
25349
25359
|
>
|
25350
|
-
<strong>${$
|
25360
|
+
<strong>${$M(n.operand)}</strong>
|
25351
25361
|
`;
|
25352
25362
|
return {
|
25353
25363
|
...s,
|
@@ -25402,7 +25412,7 @@ function eP(t, e) {
|
|
25402
25412
|
title: "Remove group",
|
25403
25413
|
provenanceTitle: E`
|
25404
25414
|
Remove group
|
25405
|
-
${
|
25415
|
+
${KM(
|
25406
25416
|
/** @type {import("./payloadTypes.js").RemoveGroup} */
|
25407
25417
|
n.path.map((c) => E`<strong>${c}</strong>`),
|
25408
25418
|
" / "
|
@@ -25806,7 +25816,7 @@ function Eh(t, e, n, r) {
|
|
25806
25816
|
) : f(i.removeUndefined({ attribute: o }))), c.push({
|
25807
25817
|
icon: Rr,
|
25808
25818
|
label: "Advanced filter...",
|
25809
|
-
callback: () =>
|
25819
|
+
callback: () => jB(e, r)
|
25810
25820
|
}), c;
|
25811
25821
|
}
|
25812
25822
|
function lP(t) {
|
@@ -26037,12 +26047,12 @@ function F0(t) {
|
|
26037
26047
|
function R0(t) {
|
26038
26048
|
return ["top", "bottom"].includes(su(t)) ? "x" : "y";
|
26039
26049
|
}
|
26040
|
-
function
|
26050
|
+
function BA(t) {
|
26041
26051
|
return t === "y" ? "height" : "width";
|
26042
26052
|
}
|
26043
26053
|
function Sg(t, e, n) {
|
26044
26054
|
let { reference: r, floating: i } = t;
|
26045
|
-
const o = r.x + r.width / 2 - i.width / 2, s = r.y + r.height / 2 - i.height / 2, a = R0(e), c =
|
26055
|
+
const o = r.x + r.width / 2 - i.width / 2, s = r.y + r.height / 2 - i.height / 2, a = R0(e), c = BA(a), l = r[c] / 2 - i[c] / 2, f = a === "x";
|
26046
26056
|
let u;
|
26047
26057
|
switch (su(e)) {
|
26048
26058
|
case "top":
|
@@ -26098,7 +26108,7 @@ function Gc(t) {
|
|
26098
26108
|
}
|
26099
26109
|
function xP(t, e, n) {
|
26100
26110
|
n === void 0 && (n = !1);
|
26101
|
-
const r = F0(t), i = R0(t), o =
|
26111
|
+
const r = F0(t), i = R0(t), o = BA(i);
|
26102
26112
|
let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
26103
26113
|
return e.reference[o] > e.floating[o] && (s = Gc(s)), { main: s, cross: Gc(s) };
|
26104
26114
|
}
|
@@ -26129,8 +26139,8 @@ const Eg = function(t) {
|
|
26129
26139
|
switch (h) {
|
26130
26140
|
case "bestFit": {
|
26131
26141
|
var C;
|
26132
|
-
const
|
26133
|
-
|
26142
|
+
const M = (C = A.map((pe) => [pe, pe.overflows.filter((se) => se > 0).reduce((se, Ye) => se + Ye, 0)]).sort((pe, se) => pe[1] - se[1])[0]) == null ? void 0 : C[0].placement;
|
26143
|
+
M && (W = M);
|
26134
26144
|
break;
|
26135
26145
|
}
|
26136
26146
|
case "initialPlacement":
|
@@ -26151,13 +26161,13 @@ const Eg = function(t) {
|
|
26151
26161
|
return { x: n + i.x, y: r + i.y, data: i };
|
26152
26162
|
} };
|
26153
26163
|
};
|
26154
|
-
function
|
26164
|
+
function MA(t) {
|
26155
26165
|
return t && t.document && t.location && t.alert && t.setInterval;
|
26156
26166
|
}
|
26157
26167
|
function hn(t) {
|
26158
26168
|
if (t == null)
|
26159
26169
|
return window;
|
26160
|
-
if (!
|
26170
|
+
if (!MA(t)) {
|
26161
26171
|
const e = t.ownerDocument;
|
26162
26172
|
return e && e.defaultView || window;
|
26163
26173
|
}
|
@@ -26167,7 +26177,7 @@ function Aa(t) {
|
|
26167
26177
|
return hn(t).getComputedStyle(t);
|
26168
26178
|
}
|
26169
26179
|
function en(t) {
|
26170
|
-
return
|
26180
|
+
return MA(t) ? "" : t ? (t.nodeName || "").toLowerCase() : "";
|
26171
26181
|
}
|
26172
26182
|
function PA() {
|
26173
26183
|
const t = navigator.userAgentData;
|
@@ -26268,7 +26278,7 @@ function zA(t, e) {
|
|
26268
26278
|
const r = LA(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = hn(r), s = i ? [o].concat(o.visualViewport || [], au(r) ? r : []) : r, a = e.concat(s);
|
26269
26279
|
return i ? a : a.concat(zA(s));
|
26270
26280
|
}
|
26271
|
-
function
|
26281
|
+
function Bg(t, e, n) {
|
26272
26282
|
return e === "viewport" ? Hc(function(r, i) {
|
26273
26283
|
const o = hn(r), s = Sn(r), a = o.visualViewport;
|
26274
26284
|
let c = s.clientWidth, l = s.clientHeight, f = 0, u = 0;
|
@@ -26309,9 +26319,9 @@ function TP(t) {
|
|
26309
26319
|
const IP = { getClippingRect: function(t) {
|
26310
26320
|
let { element: e, boundary: n, rootBoundary: r, strategy: i } = t;
|
26311
26321
|
const o = [...n === "clippingAncestors" ? TP(e) : [].concat(n), r], s = o[0], a = o.reduce((c, l) => {
|
26312
|
-
const f =
|
26322
|
+
const f = Bg(e, l, i);
|
26313
26323
|
return c.top = Oo(f.top, c.top), c.right = Dg(f.right, c.right), c.bottom = Dg(f.bottom, c.bottom), c.left = Oo(f.left, c.left), c;
|
26314
|
-
},
|
26324
|
+
}, Bg(e, s, i));
|
26315
26325
|
return { width: a.right - a.left, height: a.bottom - a.top, x: a.left, y: a.top };
|
26316
26326
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
|
26317
26327
|
let { rect: e, offsetParent: n, strategy: r } = t;
|
@@ -26328,9 +26338,9 @@ const IP = { getClippingRect: function(t) {
|
|
26328
26338
|
}, isElement: qi, getDimensions: Ig, getOffsetParent: Th, getDocumentElement: Sn, getElementRects: (t) => {
|
26329
26339
|
let { reference: e, floating: n, strategy: r } = t;
|
26330
26340
|
return { reference: DP(e, Th(n), r), floating: { ...Ig(n), x: 0, y: 0 } };
|
26331
|
-
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => Aa(t).direction === "rtl" },
|
26341
|
+
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => Aa(t).direction === "rtl" }, BP = (t, e, n) => bP(t, e, { platform: IP, ...n });
|
26332
26342
|
let It;
|
26333
|
-
const So = [], Ih = Wi((t) => t(), 150, !1),
|
26343
|
+
const So = [], Ih = Wi((t) => t(), 150, !1), Bh = {
|
26334
26344
|
type: "divider"
|
26335
26345
|
};
|
26336
26346
|
function Co(t) {
|
@@ -26349,7 +26359,7 @@ function NA(t) {
|
|
26349
26359
|
n.classList.remove("active");
|
26350
26360
|
}
|
26351
26361
|
}
|
26352
|
-
const
|
26362
|
+
const MP = () => E`<li class="menu-divider"></li>`, PP = (t) => E` <li class="menu-header">${t.label || "-"}</li> `, FP = (t, e) => E`
|
26353
26363
|
<li>
|
26354
26364
|
<a
|
26355
26365
|
class="submenu-item"
|
@@ -26399,7 +26409,7 @@ const BP = () => E`<li class="menu-divider"></li>`, PP = (t) => E` <li class="me
|
|
26399
26409
|
function UA(t, e = 1) {
|
26400
26410
|
switch (t.type) {
|
26401
26411
|
case "divider":
|
26402
|
-
return
|
26412
|
+
return MP();
|
26403
26413
|
case "header":
|
26404
26414
|
return PP(t);
|
26405
26415
|
default:
|
@@ -26417,7 +26427,7 @@ function HA(t, e, n, r) {
|
|
26417
26427
|
}), Re(
|
26418
26428
|
t.map((o) => UA(o, n)),
|
26419
26429
|
i
|
26420
|
-
), It.appendChild(i), NA(n), So[n] = i,
|
26430
|
+
), It.appendChild(i), NA(n), So[n] = i, BP(e, i, {
|
26421
26431
|
placement: r ?? "right-start",
|
26422
26432
|
middleware: n ? [Eg()] : [EP(2), Eg()]
|
26423
26433
|
}).then(({ x: o, y: s }) => {
|
@@ -26459,7 +26469,7 @@ function zP(t) {
|
|
26459
26469
|
}
|
26460
26470
|
};
|
26461
26471
|
}
|
26462
|
-
const
|
26472
|
+
const Mh = {
|
26463
26473
|
NOMINAL: "nominal",
|
26464
26474
|
ORDINAL: "ordinal",
|
26465
26475
|
QUANTITATIVE: "quantitative"
|
@@ -26535,10 +26545,10 @@ class _A extends gi {
|
|
26535
26545
|
abortController: new AbortController()
|
26536
26546
|
}, x(this, ee).compositeAttributeInfoSource.addAttributeInfoSource(
|
26537
26547
|
Ya,
|
26538
|
-
(i) => this.children.map(
|
26548
|
+
(i) => this.children.map(B(this, Sr, Eo).bind(this)).find((o) => o && o.name == i.specifier)
|
26539
26549
|
), x(this, ee).compositeAttributeInfoSource.addAttributeInfoSource(
|
26540
26550
|
VA,
|
26541
|
-
(i) =>
|
26551
|
+
(i) => Mg
|
26542
26552
|
), this.addInteractionEventListener(
|
26543
26553
|
"contextmenu",
|
26544
26554
|
this.handleContextMenu.bind(this)
|
@@ -26547,12 +26557,12 @@ class _A extends gi {
|
|
26547
26557
|
const s = o.target, a = x(this, ee).findSampleForMouseEvent(
|
26548
26558
|
i,
|
26549
26559
|
o
|
26550
|
-
), c = s && ((l =
|
26560
|
+
), c = s && ((l = B(this, Sr, Eo).call(this, s)) == null ? void 0 : l.name) || void 0;
|
26551
26561
|
if (a) {
|
26552
26562
|
const f = JSON.stringify([a.id, c]);
|
26553
26563
|
this.context.updateTooltip(
|
26554
26564
|
f,
|
26555
|
-
(u) => Promise.resolve(
|
26565
|
+
(u) => Promise.resolve(B(this, ol, XA).call(this, u))
|
26556
26566
|
);
|
26557
26567
|
}
|
26558
26568
|
this._handleAttributeHighlight(c);
|
@@ -26631,7 +26641,7 @@ class _A extends gi {
|
|
26631
26641
|
i.preventDefault();
|
26632
26642
|
return;
|
26633
26643
|
}
|
26634
|
-
const s = [x(this, ee).makePeekMenuItem(),
|
26644
|
+
const s = [x(this, ee).makePeekMenuItem(), Bh], a = B(this, Sr, Eo).call(this, r.target);
|
26635
26645
|
if (a) {
|
26636
26646
|
const c = o.attributes[a.name];
|
26637
26647
|
s.push(
|
@@ -26646,7 +26656,7 @@ class _A extends gi {
|
|
26646
26656
|
s.push(
|
26647
26657
|
...Eh(
|
26648
26658
|
E`Sample: <strong>${o.displayName}</strong>`,
|
26649
|
-
|
26659
|
+
Mg,
|
26650
26660
|
o.id,
|
26651
26661
|
x(this, ee)
|
26652
26662
|
)
|
@@ -26695,11 +26705,11 @@ class _A extends gi {
|
|
26695
26705
|
);
|
26696
26706
|
for (const r of this.getAttributeNames()) {
|
26697
26707
|
const i = this.context.createView(
|
26698
|
-
|
26708
|
+
B(this, rl, YA).call(this, r),
|
26699
26709
|
this,
|
26700
26710
|
this
|
26701
26711
|
);
|
26702
|
-
i.opacityFunction = (o) => o *
|
26712
|
+
i.opacityFunction = (o) => o * B(this, tl, jA).call(this, r), n.push(i);
|
26703
26713
|
}
|
26704
26714
|
this.setChildren(n);
|
26705
26715
|
for (const r of this.getDescendants())
|
@@ -26721,7 +26731,7 @@ class _A extends gi {
|
|
26721
26731
|
* @param {string} attribute
|
26722
26732
|
*/
|
26723
26733
|
getAttributeInfo(n) {
|
26724
|
-
return
|
26734
|
+
return B(this, Sr, Eo).call(this, B(this, il, QA).call(this, n));
|
26725
26735
|
}
|
26726
26736
|
/**
|
26727
26737
|
* @param {string} channel
|
@@ -26775,17 +26785,17 @@ ee = new WeakMap(), tl = new WeakSet(), jA = function(n) {
|
|
26775
26785
|
var r, i;
|
26776
26786
|
return (i = (r = x(this, ee).spec.samples) == null ? void 0 : r.attributes) == null ? void 0 : i[n];
|
26777
26787
|
}, rl = new WeakSet(), YA = function(n) {
|
26778
|
-
const r =
|
26788
|
+
const r = B(this, nl, WA).call(this, n);
|
26779
26789
|
let i = r ? r.type : void 0;
|
26780
26790
|
if (!i) {
|
26781
26791
|
const o = x(this, ee).getSamples();
|
26782
26792
|
switch (k1(o.map((s) => s.attributes[n]))) {
|
26783
26793
|
case "integer":
|
26784
26794
|
case "number":
|
26785
|
-
i =
|
26795
|
+
i = Mh.QUANTITATIVE;
|
26786
26796
|
break;
|
26787
26797
|
default:
|
26788
|
-
i =
|
26798
|
+
i = Mh.NOMINAL;
|
26789
26799
|
}
|
26790
26800
|
}
|
26791
26801
|
return UP(
|
@@ -26871,7 +26881,7 @@ function UP(t, e, n) {
|
|
26871
26881
|
},
|
26872
26882
|
opacity: 1
|
26873
26883
|
};
|
26874
|
-
return e.barScale && e.type ==
|
26884
|
+
return e.barScale && e.type == Mh.QUANTITATIVE && (i.encoding.x = {
|
26875
26885
|
field: `attributes["${t}"]`,
|
26876
26886
|
type: e.type,
|
26877
26887
|
scale: e.barScale,
|
@@ -26915,7 +26925,7 @@ function HP(t) {
|
|
26915
26925
|
function GP(t) {
|
26916
26926
|
return t !== "" && !(typeof t == "number" && isNaN(t)) && t !== null;
|
26917
26927
|
}
|
26918
|
-
const
|
26928
|
+
const Mg = Object.freeze({
|
26919
26929
|
name: "sample",
|
26920
26930
|
attribute: { type: VA },
|
26921
26931
|
accessor: (t) => t,
|
@@ -27090,7 +27100,7 @@ class VP extends ti {
|
|
27090
27100
|
);
|
27091
27101
|
if (!r)
|
27092
27102
|
return;
|
27093
|
-
const i =
|
27103
|
+
const i = B(this, sl, qA).call(this), o = n.map((a) => ({
|
27094
27104
|
_index: a.key.index,
|
27095
27105
|
_depth: a.key.depth,
|
27096
27106
|
_rawGroup: a.key.group,
|
@@ -27200,7 +27210,7 @@ class jP {
|
|
27200
27210
|
* @param {WheelEvent} wheelEvent
|
27201
27211
|
*/
|
27202
27212
|
handleWheelEvent(e) {
|
27203
|
-
L(this, vn,
|
27213
|
+
L(this, vn, Bn(
|
27204
27214
|
x(this, vn) + e.deltaY,
|
27205
27215
|
0,
|
27206
27216
|
x(this, Cr) - x(this, me).getHeight()
|
@@ -27217,7 +27227,7 @@ class jP {
|
|
27217
27227
|
const i = x(this, me).viewContext, o = x(this, me).getHeight(), s = {
|
27218
27228
|
requestAnimationFrame: (a) => i.animator.requestTransition(a),
|
27219
27229
|
onUpdate: (a) => {
|
27220
|
-
L(this, rt, Math.pow(a, 2)), x(this, me).onLocationUpdate(),
|
27230
|
+
L(this, rt, Math.pow(a, 2)), x(this, me).onLocationUpdate(), B(this, Vs, Ph).call(this), i.animator.requestRender();
|
27221
27231
|
},
|
27222
27232
|
from: x(this, rt)
|
27223
27233
|
};
|
@@ -27262,7 +27272,7 @@ class jP {
|
|
27262
27272
|
const e = x(this, me).getHeight();
|
27263
27273
|
if (!e)
|
27264
27274
|
return;
|
27265
|
-
const n = x(this, me).getSampleHierarchy(), r =
|
27275
|
+
const n = x(this, me).getSampleHierarchy(), r = M0(n), i = x(this, me).getSummaryHeight(), o = Pg(r, {
|
27266
27276
|
viewHeight: e,
|
27267
27277
|
groupSpacing: 5,
|
27268
27278
|
// TODO: Configurable
|
@@ -27303,7 +27313,7 @@ class jP {
|
|
27303
27313
|
s.summaries
|
27304
27314
|
),
|
27305
27315
|
groups: f
|
27306
|
-
}),
|
27316
|
+
}), B(this, Vs, Ph).call(this), x(this, qt);
|
27307
27317
|
}
|
27308
27318
|
/**
|
27309
27319
|
* @param {import("@genome-spy/core/view/layout/rectangle.js").default} coords
|
@@ -27519,7 +27529,7 @@ function YP(t, e) {
|
|
27519
27529
|
};
|
27520
27530
|
}
|
27521
27531
|
const Fg = "VALUE_AT_LOCUS";
|
27522
|
-
var re,
|
27532
|
+
var re, Be, _s, Oi, al, KA, cl, ZA, ll, JA, js, Rh, ul, $A, fl, ew, hl, tw;
|
27523
27533
|
class Fh extends gt {
|
27524
27534
|
/**
|
27525
27535
|
*
|
@@ -27565,7 +27575,7 @@ class Fh extends gt {
|
|
27565
27575
|
/** @type {SampleGridChild} */
|
27566
27576
|
I(this, re, void 0);
|
27567
27577
|
/** @type {ConcatView} */
|
27568
|
-
I(this,
|
27578
|
+
I(this, Be, void 0);
|
27569
27579
|
/** @type {number} Recorded so that peek can be offset correctly */
|
27570
27580
|
I(this, _s, -1);
|
27571
27581
|
I(this, Oi, !1);
|
@@ -27599,7 +27609,7 @@ class Fh extends gt {
|
|
27599
27609
|
(u) => YP(this, u)
|
27600
27610
|
), this._addBroadcastHandler(
|
27601
27611
|
"dataLoaded",
|
27602
|
-
() =>
|
27612
|
+
() => B(this, cl, ZA).call(this)
|
27603
27613
|
), this._addBroadcastHandler("layout", () => {
|
27604
27614
|
this.locationManager.resetLocations();
|
27605
27615
|
}), this.addInteractionEventListener("mousemove", (u, h) => {
|
@@ -27620,22 +27630,22 @@ class Fh extends gt {
|
|
27620
27630
|
},
|
27621
27631
|
!0
|
27622
27632
|
), r.addKeyboardListener("keydown", (u) => {
|
27623
|
-
u.code == "KeyE" && !u.repeat &&
|
27633
|
+
u.code == "KeyE" && !u.repeat && B(this, js, Rh).call(this);
|
27624
27634
|
}), r.addKeyboardListener("keyup", (u) => {
|
27625
27635
|
u.code == "KeyE" && this.locationManager.togglePeek(!1);
|
27626
27636
|
});
|
27627
|
-
const c = (u) => this.compositeAttributeInfoSource.getAttributeInfo(u), l =
|
27637
|
+
const c = (u) => this.compositeAttributeInfoSource.getAttributeInfo(u), l = JM(c);
|
27628
27638
|
this.provenance.addReducer(l.name, l.reducer), this.provenance.addActionInfoSource(
|
27629
27639
|
(u) => eP(u, c)
|
27630
27640
|
), this.actions = l.actions;
|
27631
|
-
const f =
|
27641
|
+
const f = gM(
|
27632
27642
|
(u) => {
|
27633
27643
|
var h;
|
27634
27644
|
return (h = u.sampleData) == null ? void 0 : h.entities;
|
27635
27645
|
},
|
27636
27646
|
(u) => u && Object.values(u)
|
27637
27647
|
);
|
27638
|
-
this.getSamples = () => f(this.sampleHierarchy), this.spec.samples.data &&
|
27648
|
+
this.getSamples = () => f(this.sampleHierarchy), this.spec.samples.data && B(this, al, KA).call(this);
|
27639
27649
|
}
|
27640
27650
|
async initializeChildren() {
|
27641
27651
|
L(this, re, new qP(
|
@@ -27648,7 +27658,7 @@ class Fh extends gt {
|
|
27648
27658
|
this,
|
27649
27659
|
0,
|
27650
27660
|
this.spec.view
|
27651
|
-
)), L(this,
|
27661
|
+
)), L(this, Be, new gi(
|
27652
27662
|
{
|
27653
27663
|
title: "Sidebar",
|
27654
27664
|
resolve: {
|
@@ -27666,9 +27676,9 @@ class Fh extends gt {
|
|
27666
27676
|
this,
|
27667
27677
|
this,
|
27668
27678
|
"sample-sidebar"
|
27669
|
-
)), this.groupPanel = new VP(this, x(this,
|
27679
|
+
)), this.groupPanel = new VP(this, x(this, Be)), this.metadataView = new _A(this, x(this, Be)), x(this, Be).setChildren([this.groupPanel, this.metadataView]), x(this, re).view instanceof gt && await x(this, re).view.initializeChildren(), x(this, re).summaryViews instanceof gt && await x(this, re).summaryViews.initializeChildren(), await x(this, re).createAxes(), await B(this, hl, tw).call(this), await x(this, re).summaryViews.createAxes(), await this.groupPanel.initializeChildren(), await this.metadataView.initializeChildren(), x(this, re).view.addInteractionEventListener(
|
27670
27680
|
"contextmenu",
|
27671
|
-
|
27681
|
+
B(this, ul, $A).bind(this)
|
27672
27682
|
);
|
27673
27683
|
}
|
27674
27684
|
/**
|
@@ -27676,7 +27686,7 @@ class Fh extends gt {
|
|
27676
27686
|
* @override
|
27677
27687
|
*/
|
27678
27688
|
getOverhang() {
|
27679
|
-
let n = x(this,
|
27689
|
+
let n = x(this, Be).isConfiguredVisible() ? x(this, Be).getSize().width.px + x(this, Be).getPadding().horizontalTotal : 0;
|
27680
27690
|
return new ge(0, 0, 0, n).add(
|
27681
27691
|
x(this, re).getOverhang()
|
27682
27692
|
);
|
@@ -27691,7 +27701,7 @@ class Fh extends gt {
|
|
27691
27701
|
getSize() {
|
27692
27702
|
return this._cache("size/size2", () => {
|
27693
27703
|
const n = super.getSize(), r = (o) => o.getSize().addPadding(o.getOverhang()).addPadding(o.getPadding()), i = ok(
|
27694
|
-
[x(this,
|
27704
|
+
[x(this, Be), x(this, re).view].map(
|
27695
27705
|
(o) => r(o).width
|
27696
27706
|
)
|
27697
27707
|
);
|
@@ -27702,7 +27712,7 @@ class Fh extends gt {
|
|
27702
27712
|
* @returns {IterableIterator<View>}
|
27703
27713
|
*/
|
27704
27714
|
*[Symbol.iterator]() {
|
27705
|
-
yield x(this,
|
27715
|
+
yield x(this, Be), yield* x(this, re).getChildren();
|
27706
27716
|
}
|
27707
27717
|
/**
|
27708
27718
|
* @returns {import("./sampleState.js").SampleHierarchy}
|
@@ -27711,7 +27721,7 @@ class Fh extends gt {
|
|
27711
27721
|
return this.provenance.getPresentState()[Xi];
|
27712
27722
|
}
|
27713
27723
|
get leafSamples() {
|
27714
|
-
return /** @type {import("./sampleState.js").SampleGroup[]} */
|
27724
|
+
return /** @type {import("./sampleState.js").SampleGroup[]} */ M0(this.sampleHierarchy).map(
|
27715
27725
|
(r) => r.at(-1)
|
27716
27726
|
).map((r) => r.samples).flat();
|
27717
27727
|
}
|
@@ -27735,7 +27745,7 @@ class Fh extends gt {
|
|
27735
27745
|
this.layoutParent || (r = r.shrink(this.getPadding())), r = r.shrink(x(this, re).getOverhang()), n.pushView(this, r);
|
27736
27746
|
const o = us(
|
27737
27747
|
[
|
27738
|
-
x(this,
|
27748
|
+
x(this, Be).isConfiguredVisible() ? x(this, Be).getSize().width : { px: 0 },
|
27739
27749
|
{ grow: 1 }
|
27740
27750
|
],
|
27741
27751
|
r.width
|
@@ -27744,7 +27754,7 @@ class Fh extends gt {
|
|
27744
27754
|
x: a.location + r.x,
|
27745
27755
|
width: a.size
|
27746
27756
|
});
|
27747
|
-
this.sidebarCoords = s(o[0]), this.childCoords = s(o[1]), x(this,
|
27757
|
+
this.sidebarCoords = s(o[0]), this.childCoords = s(o[1]), x(this, Be).render(n, this.sidebarCoords, i), B(this, ll, JA).call(this, n, this.childCoords, i), n.popView(this);
|
27748
27758
|
}
|
27749
27759
|
onBeforeRender() {
|
27750
27760
|
this.locationManager.updateFacetTexture();
|
@@ -27764,7 +27774,7 @@ class Fh extends gt {
|
|
27764
27774
|
icon: JT
|
27765
27775
|
} : {
|
27766
27776
|
label: "Open closeup",
|
27767
|
-
callback: () =>
|
27777
|
+
callback: () => B(this, js, Rh).call(this),
|
27768
27778
|
icon: eI
|
27769
27779
|
},
|
27770
27780
|
shortcut: "E"
|
@@ -27785,9 +27795,9 @@ class Fh extends gt {
|
|
27785
27795
|
this.handleInteractionEvent(void 0, n, !0), !n.stopped && (this.childCoords.containsPoint(n.point.x, n.point.y) && (x(this, re).view.propagateInteractionEvent(n), Jb(
|
27786
27796
|
n,
|
27787
27797
|
this.childCoords,
|
27788
|
-
(r) =>
|
27798
|
+
(r) => B(this, fl, ew).call(this, this.childCoords, x(this, re).view, r),
|
27789
27799
|
this.context.getCurrentHover()
|
27790
|
-
)), this.sidebarCoords.containsPoint(n.point.x, n.point.y) && x(this,
|
27800
|
+
)), this.sidebarCoords.containsPoint(n.point.x, n.point.y) && x(this, Be).propagateInteractionEvent(n), !n.stopped && this.handleInteractionEvent(void 0, n, !1));
|
27791
27801
|
}
|
27792
27802
|
/**
|
27793
27803
|
* @param {string} channel
|
@@ -27806,7 +27816,7 @@ class Fh extends gt {
|
|
27806
27816
|
}
|
27807
27817
|
}
|
27808
27818
|
}
|
27809
|
-
re = new WeakMap(),
|
27819
|
+
re = new WeakMap(), Be = new WeakMap(), _s = new WeakMap(), Oi = new WeakMap(), al = new WeakSet(), KA = function() {
|
27810
27820
|
if (!this.spec.samples.data)
|
27811
27821
|
throw new Error(
|
27812
27822
|
"SampleView has no explicit sample metadata specified! Cannot load anything."
|
@@ -27882,7 +27892,7 @@ re = new WeakMap(), Me = new WeakMap(), _s = new WeakMap(), Oi = new WeakMap(),
|
|
27882
27892
|
const S = () => {
|
27883
27893
|
const C = A.locSize.location;
|
27884
27894
|
let D = r.y + C;
|
27885
|
-
return x(this, Oi) ? D +
|
27895
|
+
return x(this, Oi) ? D + Bn(
|
27886
27896
|
-C,
|
27887
27897
|
0,
|
27888
27898
|
A.locSize.size - p
|
@@ -27912,12 +27922,12 @@ re = new WeakMap(), Me = new WeakMap(), _s = new WeakMap(), Oi = new WeakMap(),
|
|
27912
27922
|
).filter((y) => f.has(y.view.name));
|
27913
27923
|
let d = [
|
27914
27924
|
this.makePeekMenuItem(),
|
27915
|
-
|
27925
|
+
Bh,
|
27916
27926
|
{
|
27917
27927
|
label: c.type === "locus" ? `Locus: ${Eb(l)}` : `${u ? u + ": " : ""}${l}`,
|
27918
27928
|
type: "header"
|
27919
27929
|
},
|
27920
|
-
|
27930
|
+
Bh
|
27921
27931
|
], p = "";
|
27922
27932
|
for (const [y, b] of h.entries()) {
|
27923
27933
|
const v = {
|
@@ -28672,7 +28682,7 @@ function lw(t) {
|
|
28672
28682
|
const gF = "data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20clip-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='1.5'%3e%3cpath%20d='M4.7%2021.2s.4%202.3%201.3%203.6C7%2026%209.8%2028%209.8%2028s3.4-2.6%206.4-8.5c0%200%201%20.1%201.9-.4.9-.6.8-.4%201-1.2%200%200%202.9.5%206.6%200%202.1-.3%204.3-1%206.2-2.5%200%200-1.1-1.7-2.5-5.1-.5-1.3-2-1.8-4.6-4.6l-8.2%208.6-11.9%206.9z'%20fill-opacity='.1'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='%237fbbdd'/%3e%3cpath%20d='M12.4%2015.5c-.7-.5-2.4-.8-4.4-.4-2%20.4-4%201.3-4.8%201.8-.5.3-1.2%201-1.2%201.4%200%20.7.3%201.8.8%202.4.3.3.7.5%201.4.6.8%200%202.5-1.4%203.5-2%201-.6%201.6-.8%202.7-1.2l-2.9%202.4c-1.3%201.2-2.2%201.5-2.4%202.3%200%20.5%200%201.4.5%201.8.4.5.6.8%201.6.8.6%200%201%200%202.6-1.5.9-.9%202.3-3%202.7-3.7.6-1.1%201-2.2.7-3-.2-1-.4-1.4-.8-1.7zM17.4%2014.2c-.3-.5-.9-1.2-.2-2.5l1.9-3c.5-.8%202-2.3%202.6-2.6.6-.4%201.5-.6%202-.2.6.4%201%201%201.3%201.5.4.6.7%201.3.2%202-.7%201-1.6.9-2.8%201.7-1.2.8-1.9%201.2-2.5%201.9l3.8-1.8c1.3-.6%202.7-1.1%203.4-.7.8.5.8.7%201%201.4.3%201-.2%201.9-.8%202.4-.5.6-1.5.9-2.6%201.2-1.4.4-4.5%201-5.8.5-1.3-.5-1.3-1.4-1.5-1.8z'%20fill='%23fff'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='%237fbbdd'/%3e%3cpath%20d='M13.8%2015.3c.9.8.6%202%201.4%201.8%201-.2%201.4-.8%201.3-1.5%200-.7%200-.8-.4-1.6-.3-.7-1-1.1-2-.5-.7.5-1.4%201.3-1.4%201.3s.2-.3%201.1.5z'%20fill='%23fff'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3c/svg%3e", yF = "@genome-spy/app", bF = "GenomeSpy-based visualization tool for multiple patient samples", vF = {
|
28673
28683
|
name: "Kari Lavikka",
|
28674
28684
|
email: "kari.lavikka@helsinki.fi"
|
28675
|
-
}, AF = [], wF = "MIT", xF = "0.43.
|
28685
|
+
}, AF = [], wF = "MIT", xF = "0.43.2", SF = "dist/index.js", CF = "module", EF = [
|
28676
28686
|
"dist/"
|
28677
28687
|
], kF = {
|
28678
28688
|
type: "git",
|
@@ -28688,7 +28698,7 @@ const gF = "data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http:
|
|
28688
28698
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
28689
28699
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
28690
28700
|
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
28691
|
-
"@genome-spy/core": "^0.43.
|
28701
|
+
"@genome-spy/core": "^0.43.2",
|
28692
28702
|
"@reduxjs/toolkit": "^1.8.4",
|
28693
28703
|
idb: "^7.1.1",
|
28694
28704
|
lit: "^3.1.0",
|
@@ -28697,7 +28707,7 @@ const gF = "data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http:
|
|
28697
28707
|
"redux-batched-actions": "^0.5.0",
|
28698
28708
|
"redux-undo": "^1.0.1",
|
28699
28709
|
snarkdown: "^2.0.0"
|
28700
|
-
}, IF = "
|
28710
|
+
}, IF = "12ff70326672ed7ca34ef081c01fc25f19cf1ede", zg = {
|
28701
28711
|
name: yF,
|
28702
28712
|
description: bF,
|
28703
28713
|
author: vF,
|
@@ -28717,7 +28727,7 @@ const gF = "data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http:
|
|
28717
28727
|
* Copyright 2020 Google LLC
|
28718
28728
|
* SPDX-License-Identifier: BSD-3-Clause
|
28719
28729
|
*/
|
28720
|
-
const
|
28730
|
+
const BF = Jr(class extends Ki {
|
28721
28731
|
constructor(t) {
|
28722
28732
|
if (super(t), t.type !== Tt.PROPERTY && t.type !== Tt.ATTRIBUTE && t.type !== Tt.BOOLEAN_ATTRIBUTE)
|
28723
28733
|
throw Error("The `live` directive is not allowed on child or event bindings");
|
@@ -28748,7 +28758,7 @@ function uw(t, e) {
|
|
28748
28758
|
bubbles: !0
|
28749
28759
|
});
|
28750
28760
|
}
|
28751
|
-
function
|
28761
|
+
function MF(t) {
|
28752
28762
|
if (!(t != null && t.length))
|
28753
28763
|
throw new Error("Can't nest an empty array!");
|
28754
28764
|
const e = Ng(null);
|
@@ -28876,7 +28886,7 @@ class PF extends Ot {
|
|
28876
28886
|
const r = n.filter(
|
28877
28887
|
(i) => AD(i.name) && Ug(i)
|
28878
28888
|
).map((i) => [...i.getDataAncestors()].reverse());
|
28879
|
-
this.nestedPaths =
|
28889
|
+
this.nestedPaths = MF(r);
|
28880
28890
|
}
|
28881
28891
|
renderToggles() {
|
28882
28892
|
const e = this.getVisibilities(), n = this.app.genomeSpy.viewRoot, r = Qb(n);
|
@@ -28891,7 +28901,7 @@ class PF extends Ot {
|
|
28891
28901
|
><input
|
28892
28902
|
type="checkbox"
|
28893
28903
|
?disabled=${!r.has(a.name) || !Ug(a)}
|
28894
|
-
.checked=${
|
28904
|
+
.checked=${BF(c)}
|
28895
28905
|
@change=${(l) => this.handleCheckboxClick(l, a)}
|
28896
28906
|
/>${a.getTitleText() ?? a.name}
|
28897
28907
|
</label>
|
@@ -29051,7 +29061,7 @@ class OF {
|
|
29051
29061
|
* Copyright 2017 Google LLC
|
29052
29062
|
* SPDX-License-Identifier: BSD-3-Clause
|
29053
29063
|
*/
|
29054
|
-
const Hg = (t) => !
|
29064
|
+
const Hg = (t) => !OB(t) && typeof t.then == "function", Gg = 1073741823;
|
29055
29065
|
class LF extends sw {
|
29056
29066
|
constructor() {
|
29057
29067
|
super(...arguments), this._$C_t = Gg, this._$Cwt = [], this._$Cq = new RF(this), this._$CK = new OF();
|
@@ -29516,7 +29526,7 @@ function jg(t, e) {
|
|
29516
29526
|
type="text"
|
29517
29527
|
.value=${i}
|
29518
29528
|
/>
|
29519
|
-
<button @click=${(s) => navigator.clipboard.writeText(i).then(() => s.target.dispatchEvent(
|
29529
|
+
<button @click=${(s) => navigator.clipboard.writeText(i).then(() => s.target.dispatchEvent(UB())).catch(() => Je("Failed to copy!"))}>Copy</button>
|
29520
29530
|
</div>
|
29521
29531
|
<small
|
29522
29532
|
>The bookmark URL contains all the bookmarked data,
|
@@ -29830,7 +29840,7 @@ class qF extends Ot {
|
|
29830
29840
|
), n.push(E`
|
29831
29841
|
<genome-spy-bookmark-button></genome-spy-bookmark-button>
|
29832
29842
|
`);
|
29833
|
-
const r = this.app.config.description ?
|
29843
|
+
const r = this.app.config.description ? Me(this.app.config.description) : [];
|
29834
29844
|
return r.length > 1 && n.push(E`
|
29835
29845
|
<button
|
29836
29846
|
class="tool-btn"
|
@@ -29859,7 +29869,7 @@ class qF extends Ot {
|
|
29859
29869
|
title="Fullscreen"
|
29860
29870
|
@click=${() => this.app.toggleFullScreen()}
|
29861
29871
|
>
|
29862
|
-
${q(
|
29872
|
+
${q(MT).node[0]}
|
29863
29873
|
</button>
|
29864
29874
|
` : z}
|
29865
29875
|
|
@@ -30038,17 +30048,18 @@ class KF {
|
|
30038
30048
|
return (e = this.getActionHistory()) == null ? void 0 : e.slice(1);
|
30039
30049
|
}
|
30040
30050
|
}
|
30041
|
-
function
|
30042
|
-
const
|
30043
|
-
for (const [
|
30044
|
-
|
30045
|
-
let
|
30046
|
-
for (; (
|
30047
|
-
const
|
30048
|
-
let
|
30049
|
-
|
30050
|
-
|
30051
|
-
|
30051
|
+
function ZF(t, e, n = (r) => +r) {
|
30052
|
+
const r = t.length, i = new hs(), o = new Array(r).fill(0);
|
30053
|
+
for (const [a, c] of t.entries())
|
30054
|
+
c.length && i.push(a, n(c[0]));
|
30055
|
+
let s = 0;
|
30056
|
+
for (; (s = i.pop()) !== void 0; ) {
|
30057
|
+
const a = t[s];
|
30058
|
+
let c = o[s];
|
30059
|
+
const l = a[c++];
|
30060
|
+
if (e(l), c < a.length) {
|
30061
|
+
const f = n(a[c]);
|
30062
|
+
i.push(s, f), o[s] = c;
|
30052
30063
|
}
|
30053
30064
|
}
|
30054
30065
|
}
|
@@ -30115,14 +30126,14 @@ class $F extends oe {
|
|
30115
30126
|
const s = at(o);
|
30116
30127
|
if (bg(s)) {
|
30117
30128
|
this.contextObject[JF] = s.samples.length, this.beginBatch({ type: "facet", facetId: [i] });
|
30118
|
-
const a = s.samples, c = this._getCollector()
|
30129
|
+
const a = s.samples, c = this._getCollector();
|
30130
|
+
ZF(
|
30119
30131
|
a.map(
|
30120
|
-
(
|
30132
|
+
(l) => c.facetBatches.get([l]) ?? []
|
30121
30133
|
),
|
30134
|
+
(l) => this._propagate(l),
|
30122
30135
|
this.xAccessor
|
30123
30136
|
);
|
30124
|
-
for (const f of l)
|
30125
|
-
this._propagate(f);
|
30126
30137
|
}
|
30127
30138
|
}
|
30128
30139
|
this._updateScales();
|
@@ -30175,7 +30186,7 @@ class iR {
|
|
30175
30186
|
* @param {import("redux").ReducersMapObject} [reducers]
|
30176
30187
|
*/
|
30177
30188
|
constructor(e) {
|
30178
|
-
this._reducers = e ?? {}, this.store =
|
30189
|
+
this._reducers = e ?? {}, this.store = TM({
|
30179
30190
|
reducer: {}
|
30180
30191
|
}), this._listeners = /* @__PURE__ */ new Set(), this.store.subscribe(() => {
|
30181
30192
|
const n = this.store.getState();
|
@@ -30362,7 +30373,7 @@ class sR {
|
|
30362
30373
|
this.toolbarRef.value
|
30363
30374
|
);
|
30364
30375
|
i.appInitialized = !0;
|
30365
|
-
const o =
|
30376
|
+
const o = Me(this.genomeSpy.spec.description ?? []);
|
30366
30377
|
this.isFullPage() && o.length > 0 && (document.title = "GenomeSpy - " + o);
|
30367
30378
|
for (const a of this._initializationListeners)
|
30368
30379
|
a();
|