@genome-spy/core 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.
@@ -236,15 +236,15 @@ function Ff(t) {
236
236
  var e = new RegExp('["' + t + `
237
237
  \r]`), n = t.charCodeAt(0);
238
238
  function r(l, h) {
239
- var p, d, g = i(l, function(m, A) {
239
+ var p, d, g = i(l, function(A, m) {
240
240
  if (p)
241
- return p(m, A - 1);
242
- d = m, p = h ? Kp(m, h) : Bf(m);
241
+ return p(A, m - 1);
242
+ d = A, p = h ? Kp(A, h) : Bf(A);
243
243
  });
244
244
  return g.columns = d || [], g;
245
245
  }
246
246
  function i(l, h) {
247
- var p = [], d = l.length, g = 0, m = 0, A, y = d <= 0, b = !1;
247
+ var p = [], d = l.length, g = 0, A = 0, m, y = d <= 0, b = !1;
248
248
  l.charCodeAt(d - 1) === br && --d, l.charCodeAt(d - 1) === Uo && --d;
249
249
  function w() {
250
250
  if (y)
@@ -268,10 +268,10 @@ function Ff(t) {
268
268
  }
269
269
  return y = !0, l.slice(D, d);
270
270
  }
271
- for (; (A = w()) !== zo; ) {
272
- for (var S = []; A !== Tu && A !== zo; )
273
- S.push(A), A = w();
274
- h && (S = h(S, m++)) == null || p.push(S);
271
+ for (; (m = w()) !== zo; ) {
272
+ for (var S = []; m !== Tu && m !== zo; )
273
+ S.push(m), m = w();
274
+ h && (S = h(S, A++)) == null || p.push(S);
275
275
  }
276
276
  return p;
277
277
  }
@@ -410,8 +410,8 @@ function ig(t, e) {
410
410
  else if (p = r[h])
411
411
  if (delete r[p.start], p.unshift(u), p.start = l, d = i[l]) {
412
412
  delete i[d.end];
413
- var m = d === p ? p : d.concat(p);
414
- r[m.start = d.start] = i[m.end = p.end] = m;
413
+ var A = d === p ? p : d.concat(p);
414
+ r[A.start = d.start] = i[A.end = p.end] = A;
415
415
  } else
416
416
  r[p.start] = i[p.end] = p;
417
417
  else
@@ -766,8 +766,8 @@ function wg(t) {
766
766
  var e = t.grouping === void 0 || t.thousands === void 0 ? Lu : mg(Ou.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? Lu : Ag(Ou.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", a = t.minus === void 0 ? "−" : t.minus + "", c = t.nan === void 0 ? "NaN" : t.nan + "";
767
767
  function u(l) {
768
768
  l = Bt(l);
769
- var h = l.fill, p = l.align, d = l.sign, g = l.symbol, m = l.zero, A = l.width, y = l.comma, b = l.precision, w = l.trim, S = l.type;
770
- S === "n" ? (y = !0, S = "g") : ku[S] || (b === void 0 && (b = 12), w = !0, S = "g"), (m || h === "0" && p === "=") && (m = !0, h = "0", p = "=");
769
+ var h = l.fill, p = l.align, d = l.sign, g = l.symbol, A = l.zero, m = l.width, y = l.comma, b = l.precision, w = l.trim, S = l.type;
770
+ S === "n" ? (y = !0, S = "g") : ku[S] || (b === void 0 && (b = 12), w = !0, S = "g"), (A || h === "0" && p === "=") && (A = !0, h = "0", p = "=");
771
771
  var C = g === "$" ? n : g === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", D = g === "$" ? r : /[%p]/.test(S) ? o : "", L = ku[S], q = /[defgprs%]/.test(S);
772
772
  b = b === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
773
773
  function J(B) {
@@ -785,9 +785,9 @@ function wg(t) {
785
785
  }
786
786
  }
787
787
  }
788
- y && !m && (B = e(B, 1 / 0));
789
- var bt = Fe.length + B.length + le.length, Te = bt < A ? new Array(A - bt + 1).join(h) : "";
790
- switch (y && m && (B = e(Te + B, Te.length ? A - le.length : 1 / 0), Te = ""), p) {
788
+ y && !A && (B = e(B, 1 / 0));
789
+ var bt = Fe.length + B.length + le.length, Te = bt < m ? new Array(m - bt + 1).join(h) : "";
790
+ switch (y && A && (B = e(Te + B, Te.length ? m - le.length : 1 / 0), Te = ""), p) {
791
791
  case "<":
792
792
  B = Fe + B + le + Te;
793
793
  break;
@@ -808,9 +808,9 @@ function wg(t) {
808
808
  }, J;
809
809
  }
810
810
  function f(l, h) {
811
- var p = u((l = Bt(l), l.type = "f", l)), d = Math.max(-8, Math.min(8, Math.floor(nr(h) / 3))) * 3, g = Math.pow(10, -d), m = zu[8 + d / 3];
812
- return function(A) {
813
- return p(g * A) + m;
811
+ var p = u((l = Bt(l), l.type = "f", l)), d = Math.max(-8, Math.min(8, Math.floor(nr(h) / 3))) * 3, g = Math.pow(10, -d), A = zu[8 + d / 3];
812
+ return function(m) {
813
+ return p(g * m) + A;
814
814
  };
815
815
  }
816
816
  return {
@@ -1094,7 +1094,7 @@ function jf(t, e, n, r, i, s) {
1094
1094
  return h ? d.reverse() : d;
1095
1095
  }
1096
1096
  function c(u, f, l) {
1097
- const h = Math.abs(f - u) / l, p = $s(([, , m]) => m).right(o, h);
1097
+ const h = Math.abs(f - u) / l, p = $s(([, , A]) => A).right(o, h);
1098
1098
  if (p === o.length)
1099
1099
  return t.every(wn(u / Vo, f / Vo, l));
1100
1100
  if (p === 0)
@@ -1155,7 +1155,7 @@ function wr(t, e, n) {
1155
1155
  return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
1156
1156
  }
1157
1157
  function Xf(t) {
1158
- var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, a = t.months, c = t.shortMonths, u = vr(i), f = Cr(i), l = vr(s), h = Cr(s), p = vr(o), d = Cr(o), g = vr(a), m = Cr(a), A = vr(c), y = Cr(c), b = {
1158
+ var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, a = t.months, c = t.shortMonths, u = vr(i), f = Cr(i), l = vr(s), h = Cr(s), p = vr(o), d = Cr(o), g = vr(a), A = Cr(a), m = vr(c), y = Cr(c), b = {
1159
1159
  a: at,
1160
1160
  A: bt,
1161
1161
  b: Te,
@@ -1307,12 +1307,12 @@ function Xf(t) {
1307
1307
  return v ? (F.w = h.get(v[0].toLowerCase()), k + v[0].length) : -1;
1308
1308
  }
1309
1309
  function Fe(F, R, k) {
1310
- var v = A.exec(R.slice(k));
1310
+ var v = m.exec(R.slice(k));
1311
1311
  return v ? (F.m = y.get(v[0].toLowerCase()), k + v[0].length) : -1;
1312
1312
  }
1313
1313
  function le(F, R, k) {
1314
1314
  var v = g.exec(R.slice(k));
1315
- return v ? (F.m = m.get(v[0].toLowerCase()), k + v[0].length) : -1;
1315
+ return v ? (F.m = A.get(v[0].toLowerCase()), k + v[0].length) : -1;
1316
1316
  }
1317
1317
  function ze(F, R, k) {
1318
1318
  return L(F, e, R, k);
@@ -1717,8 +1717,8 @@ function Qm() {
1717
1717
  }
1718
1718
  function Ku(t, e, n) {
1719
1719
  n = n || {}, De(n) || X("Invalid time multi-format specifier: ".concat(n));
1720
- const r = e(Zr), i = e(Xr), s = e(jr), o = e(Yr), a = e(Wr), c = e(Qr), u = e(Vr), f = e(Hr), l = t(n[no] || ".%L"), h = t(n[Zr] || ":%S"), p = t(n[Xr] || "%I:%M"), d = t(n[jr] || "%I %p"), g = t(n[Yr] || n[to] || "%a %d"), m = t(n[Wr] || "%b %d"), A = t(n[Qr] || "%B"), y = t(n[Vr] || "%B"), b = t(n[Hr] || "%Y");
1721
- return (w) => (r(w) < w ? l : i(w) < w ? h : s(w) < w ? p : o(w) < w ? d : c(w) < w ? a(w) < w ? g : m : f(w) < w ? u(w) < w ? A : y : b)(w);
1720
+ const r = e(Zr), i = e(Xr), s = e(jr), o = e(Yr), a = e(Wr), c = e(Qr), u = e(Vr), f = e(Hr), l = t(n[no] || ".%L"), h = t(n[Zr] || ":%S"), p = t(n[Xr] || "%I:%M"), d = t(n[jr] || "%I %p"), g = t(n[Yr] || n[to] || "%a %d"), A = t(n[Wr] || "%b %d"), m = t(n[Qr] || "%B"), y = t(n[Vr] || "%B"), b = t(n[Hr] || "%Y");
1721
+ return (w) => (r(w) < w ? l : i(w) < w ? h : s(w) < w ? p : o(w) < w ? d : c(w) < w ? a(w) < w ? g : A : f(w) < w ? u(w) < w ? m : y : b)(w);
1722
1722
  }
1723
1723
  function eh(t) {
1724
1724
  const e = Br(t.format), n = Br(t.utcFormat);
@@ -1871,9 +1871,9 @@ function d1(t, e, n, r) {
1871
1871
  e === "auto" && (e = u1(t, s)), s = Object.keys(e);
1872
1872
  const h = s.map((p) => {
1873
1873
  const d = e[p];
1874
- let g, m;
1874
+ let g, A;
1875
1875
  if (d && (d.startsWith("date:") || d.startsWith("utc:")))
1876
- return g = d.split(/:(.+)?/, 2), m = g[1], (m[0] === "'" && m[m.length - 1] === "'" || m[0] === '"' && m[m.length - 1] === '"') && (m = m.slice(1, -1)), (g[0] === "utc" ? r : n)(m);
1876
+ return g = d.split(/:(.+)?/, 2), A = g[1], (A[0] === "'" && A[A.length - 1] === "'" || A[0] === '"' && A[A.length - 1] === '"') && (A = A.slice(1, -1)), (g[0] === "utc" ? r : n)(A);
1877
1877
  if (!Ju[d])
1878
1878
  throw Error("Illegal format pattern: " + p + ":" + d);
1879
1879
  return Ju[d];
@@ -3227,15 +3227,15 @@ function W2(t) {
3227
3227
  return f > 0 ? g : tn(n, g) ? X("Illegal identifier: " + g) : tn(r, g) ? r[g] : tn(e, g) ? g : (c[g] = 1, a(g));
3228
3228
  },
3229
3229
  MemberExpression: (d) => {
3230
- const g = !d.computed, m = l(d.object);
3230
+ const g = !d.computed, A = l(d.object);
3231
3231
  g && (f += 1);
3232
- const A = l(d.property);
3233
- return m === o && (u[Q2(A)] = 1), g && (f -= 1), m + (g ? "." + A : "[" + A + "]");
3232
+ const m = l(d.property);
3233
+ return A === o && (u[Q2(m)] = 1), g && (f -= 1), A + (g ? "." + m : "[" + m + "]");
3234
3234
  },
3235
3235
  CallExpression: (d) => {
3236
3236
  d.callee.type !== "Identifier" && X("Illegal callee type: " + d.callee.type);
3237
- const g = d.callee.name, m = d.arguments, A = tn(i, g) && i[g];
3238
- return A || X("Unrecognized function: " + g), Ee(A) ? A(m) : A + "(" + m.map(l).join(",") + ")";
3237
+ const g = d.callee.name, A = d.arguments, m = tn(i, g) && i[g];
3238
+ return m || X("Unrecognized function: " + g), Ee(m) ? m(A) : m + "(" + A.map(l).join(",") + ")";
3239
3239
  },
3240
3240
  ArrayExpression: (d) => "[" + d.elements.map(l).join(",") + "]",
3241
3241
  BinaryExpression: (d) => "(" + l(d.left) + " " + d.operator + " " + l(d.right) + ")",
@@ -3990,8 +3990,8 @@ function Vh(t, e, n, r) {
3990
3990
  return function(u, f) {
3991
3991
  var l = [], h = [];
3992
3992
  return u = t(u), f = t(f), s(u.translateX, u.translateY, f.translateX, f.translateY, l, h), o(u.rotate, f.rotate, l, h), a(u.skewX, f.skewX, l, h), c(u.scaleX, u.scaleY, f.scaleX, f.scaleY, l, h), u = f = null, function(p) {
3993
- for (var d = -1, g = h.length, m; ++d < g; )
3994
- l[(m = h[d]).i] = m.x(p);
3993
+ for (var d = -1, g = h.length, A; ++d < g; )
3994
+ l[(A = h[d]).i] = A.x(p);
3995
3995
  return l.join("");
3996
3996
  };
3997
3997
  };
@@ -4008,19 +4008,19 @@ function vA(t) {
4008
4008
  }
4009
4009
  const CA = function t(e, n, r) {
4010
4010
  function i(s, o) {
4011
- var a = s[0], c = s[1], u = s[2], f = o[0], l = o[1], h = o[2], p = f - a, d = l - c, g = p * p + d * d, m, A;
4011
+ var a = s[0], c = s[1], u = s[2], f = o[0], l = o[1], h = o[2], p = f - a, d = l - c, g = p * p + d * d, A, m;
4012
4012
  if (g < bA)
4013
- A = Math.log(h / u) / e, m = function(D) {
4013
+ m = Math.log(h / u) / e, A = function(D) {
4014
4014
  return [
4015
4015
  a + D * p,
4016
4016
  c + D * d,
4017
- u * Math.exp(e * D * A)
4017
+ u * Math.exp(e * D * m)
4018
4018
  ];
4019
4019
  };
4020
4020
  else {
4021
4021
  var y = Math.sqrt(g), b = (h * h - u * u + r * g) / (2 * u * n * y), w = (h * h - u * u - r * g) / (2 * h * n * y), S = Math.log(Math.sqrt(b * b + 1) - b), C = Math.log(Math.sqrt(w * w + 1) - w);
4022
- A = (C - S) / e, m = function(D) {
4023
- var L = D * A, q = El(S), J = u / (n * y) * (q * vA(e * L + S) - wA(S));
4022
+ m = (C - S) / e, A = function(D) {
4023
+ var L = D * m, q = El(S), J = u / (n * y) * (q * vA(e * L + S) - wA(S));
4024
4024
  return [
4025
4025
  a + J * p,
4026
4026
  c + J * d,
@@ -4028,7 +4028,7 @@ const CA = function t(e, n, r) {
4028
4028
  ];
4029
4029
  };
4030
4030
  }
4031
- return m.duration = A * 1e3 * e / Math.SQRT2, m;
4031
+ return A.duration = m * 1e3 * e / Math.SQRT2, A;
4032
4032
  }
4033
4033
  return i.rho = function(s) {
4034
4034
  var o = Math.max(1e-3, +s), a = o * o, c = a * a;
@@ -4302,16 +4302,16 @@ function Gc(t) {
4302
4302
  const l = f < u;
4303
4303
  l && ([u, f] = [f, u]);
4304
4304
  let h = i(u), p = i(f), d, g;
4305
- const m = a == null ? 10 : +a;
4306
- let A = [];
4307
- if (!(r % 1) && p - h < m) {
4305
+ const A = a == null ? 10 : +a;
4306
+ let m = [];
4307
+ if (!(r % 1) && p - h < A) {
4308
4308
  if (h = Math.floor(h), p = Math.ceil(p), u > 0) {
4309
4309
  for (; h <= p; ++h)
4310
4310
  for (d = 1; d < r; ++d)
4311
4311
  if (g = h < 0 ? d / s(-h) : d * s(h), !(g < u)) {
4312
4312
  if (g > f)
4313
4313
  break;
4314
- A.push(g);
4314
+ m.push(g);
4315
4315
  }
4316
4316
  } else
4317
4317
  for (; h <= p; ++h)
@@ -4319,12 +4319,12 @@ function Gc(t) {
4319
4319
  if (g = h > 0 ? d / s(-h) : d * s(h), !(g < u)) {
4320
4320
  if (g > f)
4321
4321
  break;
4322
- A.push(g);
4322
+ m.push(g);
4323
4323
  }
4324
- A.length * 2 < m && (A = xs(u, f, m));
4324
+ m.length * 2 < A && (m = xs(u, f, A));
4325
4325
  } else
4326
- A = xs(h, p, Math.min(p - h, m)).map(s);
4327
- return l ? A.reverse() : A;
4326
+ m = xs(h, p, Math.min(p - h, A)).map(s);
4327
+ return l ? m.reverse() : m;
4328
4328
  }, e.tickFormat = (a, c) => {
4329
4329
  if (a == null && (a = 10), c == null && (c = r === 10 ? "s" : ","), typeof c != "function" && (!(r % 1) && (c = Bt(c)).precision == null && (c.trim = !0), c = ue(c)), a === 1 / 0)
4330
4330
  return c;
@@ -4478,9 +4478,9 @@ function jA(t) {
4478
4478
  return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
4479
4479
  }
4480
4480
  function Yc(t, e, n, r, i, s, o, a, c, u) {
4481
- var f = jh(), l = f.invert, h = f.domain, p = u(".%L"), d = u(":%S"), g = u("%I:%M"), m = u("%I %p"), A = u("%a %d"), y = u("%b %d"), b = u("%B"), w = u("%Y");
4481
+ var f = jh(), l = f.invert, h = f.domain, p = u(".%L"), d = u(":%S"), g = u("%I:%M"), A = u("%I %p"), m = u("%a %d"), y = u("%b %d"), b = u("%B"), w = u("%Y");
4482
4482
  function S(C) {
4483
- return (c(C) < C ? p : a(C) < C ? d : o(C) < C ? g : s(C) < C ? m : r(C) < C ? i(C) < C ? A : y : n(C) < C ? b : w)(C);
4483
+ return (c(C) < C ? p : a(C) < C ? d : o(C) < C ? g : s(C) < C ? A : r(C) < C ? i(C) < C ? m : y : n(C) < C ? b : w)(C);
4484
4484
  }
4485
4485
  return f.invert = function(C) {
4486
4486
  return new Date(l(C));
@@ -4571,9 +4571,9 @@ function mo() {
4571
4571
  return arguments.length ? (u = g, p) : u;
4572
4572
  };
4573
4573
  function d(g) {
4574
- return function(m) {
4575
- var A, y, b;
4576
- return arguments.length ? ([A, y, b] = m, u = Uc(g, [A, y, b]), p) : [u(0), u(0.5), u(1)];
4574
+ return function(A) {
4575
+ var m, y, b;
4576
+ return arguments.length ? ([m, y, b] = A, u = Uc(g, [m, y, b]), p) : [u(0), u(0.5), u(1)];
4577
4577
  };
4578
4578
  }
4579
4579
  return p.range = d(Gt), p.rangeRound = d(ki), p.unknown = function(g) {
@@ -4638,8 +4638,8 @@ function _c() {
4638
4638
  const l = e().length, h = r[1] < r[0], p = r[1 - h], d = Kc(l, a, c);
4639
4639
  let g = r[h - 0];
4640
4640
  i = (p - g) / (d || 1), o && (i = Math.floor(i)), g += (p - g - i * (l - a)) * u, s = i * (1 - a), o && (g = Math.round(g), s = Math.round(s));
4641
- const m = Nr(l).map((A) => g + i * A);
4642
- return n(h ? m.reverse() : m);
4641
+ const A = Nr(l).map((m) => g + i * m);
4642
+ return n(h ? A.reverse() : A);
4643
4643
  }
4644
4644
  return t.domain = function(l) {
4645
4645
  return arguments.length ? (e(l), f()) : e();
@@ -4665,9 +4665,9 @@ function _c() {
4665
4665
  if (l[0] == null || l[1] == null)
4666
4666
  return;
4667
4667
  const h = r[1] < r[0], p = h ? n().reverse() : n(), d = p.length - 1;
4668
- let g = +l[0], m = +l[1], A, y, b;
4669
- if (!(g !== g || m !== m) && (m < g && (b = g, g = m, m = b), !(m < p[0] || g > r[1 - h])))
4670
- return A = Math.max(0, St(p, g) - 1), y = g === m ? A : St(p, m) - 1, g - p[A] > s + 1e-10 && ++A, h && (b = A, A = d - y, y = d - b), A > y ? void 0 : e().slice(A, y + 1);
4668
+ let g = +l[0], A = +l[1], m, y, b;
4669
+ if (!(g !== g || A !== A) && (A < g && (b = g, g = A, A = b), !(A < p[0] || g > r[1 - h])))
4670
+ return m = Math.max(0, St(p, g) - 1), y = g === A ? m : St(p, A) - 1, g - p[m] > s + 1e-10 && ++m, h && (b = m, m = d - y, y = d - b), m > y ? void 0 : e().slice(m, y + 1);
4671
4671
  }, t.invert = function(l) {
4672
4672
  const h = t.invertRange([l, l]);
4673
4673
  return h && h[0];
@@ -5467,28 +5467,28 @@ function G0(t, e, n, r) {
5467
5467
  d = h / 2, g = [0, 0, 1, 0, 0, 1, 1, 1, 0, 2, 1, 2];
5468
5468
  else
5469
5469
  throw "can't figure out cube map from element: " + (n.src ? n.src : n.nodeName);
5470
- const m = M0();
5471
- m ? (m.canvas.width = d, m.canvas.height = d, o = d, a = d, Ha(t, r).forEach(function(A) {
5472
- const y = g[A.ndx * 2 + 0] * d, b = g[A.ndx * 2 + 1] * d;
5473
- m.drawImage(n, y, b, d, d, 0, 0, d, d), t.texImage2D(A.face, s, c, f, l, m.canvas);
5474
- }), m.canvas.width = 1, m.canvas.height = 1) : typeof createImageBitmap < "u" && (o = d, a = d, Ha(t, r).forEach(function(A) {
5475
- const y = g[A.ndx * 2 + 0] * d, b = g[A.ndx * 2 + 1] * d;
5476
- t.texImage2D(A.face, s, c, d, d, 0, f, l, null), createImageBitmap(n, y, b, d, d, {
5470
+ const A = M0();
5471
+ A ? (A.canvas.width = d, A.canvas.height = d, o = d, a = d, Ha(t, r).forEach(function(m) {
5472
+ const y = g[m.ndx * 2 + 0] * d, b = g[m.ndx * 2 + 1] * d;
5473
+ A.drawImage(n, y, b, d, d, 0, 0, d, d), t.texImage2D(m.face, s, c, f, l, A.canvas);
5474
+ }), A.canvas.width = 1, A.canvas.height = 1) : typeof createImageBitmap < "u" && (o = d, a = d, Ha(t, r).forEach(function(m) {
5475
+ const y = g[m.ndx * 2 + 0] * d, b = g[m.ndx * 2 + 1] * d;
5476
+ t.texImage2D(m.face, s, c, d, d, 0, f, l, null), createImageBitmap(n, y, b, d, d, {
5477
5477
  premultiplyAlpha: "none",
5478
5478
  colorSpaceConversion: "none"
5479
5479
  }).then(function(w) {
5480
- lr(t, r), t.bindTexture(i, e), t.texImage2D(A.face, s, c, f, l, w), si(r) && Ua(t, e, r, o, a, c);
5480
+ lr(t, r), t.bindTexture(i, e), t.texImage2D(m.face, s, c, f, l, w), si(r) && Ua(t, e, r, o, a, c);
5481
5481
  });
5482
5482
  }));
5483
5483
  } else if (i === Pt || i === Rt) {
5484
5484
  const h = Math.min(n.width, n.height), p = Math.max(n.width, n.height), d = p / h;
5485
5485
  if (d % 1 !== 0)
5486
5486
  throw "can not compute 3D dimensions of element";
5487
- const g = n.width === p ? 1 : 0, m = n.height === p ? 1 : 0;
5487
+ const g = n.width === p ? 1 : 0, A = n.height === p ? 1 : 0;
5488
5488
  t.pixelStorei(uu, 1), t.pixelStorei(P0, n.width), t.pixelStorei(R0, 0), t.pixelStorei(O0, 0), t.texImage3D(i, s, c, h, h, h, 0, f, l, null);
5489
- for (let A = 0; A < d; ++A) {
5490
- const y = A * h * g, b = A * h * m;
5491
- t.pixelStorei(k0, y), t.pixelStorei(L0, b), t.texSubImage3D(i, s, 0, 0, A, h, h, 1, f, l, n);
5489
+ for (let m = 0; m < d; ++m) {
5490
+ const y = m * h * g, b = m * h * A;
5491
+ t.pixelStorei(k0, y), t.pixelStorei(L0, b), t.texSubImage3D(i, s, 0, 0, m, h, h, 1, f, l, n);
5492
5492
  }
5493
5493
  N0(t);
5494
5494
  } else
@@ -5582,15 +5582,15 @@ function B3(t, e, n, r) {
5582
5582
  let l = 6;
5583
5583
  const h = [], p = Ga(t, n);
5584
5584
  let d;
5585
- function g(m) {
5586
- return function(A, y) {
5587
- --l, A ? h.push(A) : y.width !== y.height ? h.push("cubemap face img is not a square: " + y.src) : (lr(t, n), t.bindTexture(f, e), l === 5 ? Ga().forEach(function(b) {
5585
+ function g(A) {
5586
+ return function(m, y) {
5587
+ --l, m ? h.push(m) : y.width !== y.height ? h.push("cubemap face img is not a square: " + y.src) : (lr(t, n), t.bindTexture(f, e), l === 5 ? Ga().forEach(function(b) {
5588
5588
  t.texImage2D(b, s, o, c, u, y);
5589
- }) : t.texImage2D(m, s, o, c, u, y), si(n) && t.generateMipmap(f)), l === 0 && r(h.length ? h : void 0, e, d);
5589
+ }) : t.texImage2D(A, s, o, c, u, y), si(n) && t.generateMipmap(f)), l === 0 && r(h.length ? h : void 0, e, d);
5590
5590
  };
5591
5591
  }
5592
- d = i.map(function(m, A) {
5593
- return lu(m, n.crossOrigin, g(p[A]));
5592
+ d = i.map(function(A, m) {
5593
+ return lu(A, n.crossOrigin, g(p[m]));
5594
5594
  });
5595
5595
  }
5596
5596
  function F3(t, e, n, r) {
@@ -5604,16 +5604,16 @@ function F3(t, e, n, r) {
5604
5604
  let h;
5605
5605
  const p = n.level || 0;
5606
5606
  let d = n.width, g = n.height;
5607
- const m = i.length;
5608
- let A = !0;
5607
+ const A = i.length;
5608
+ let m = !0;
5609
5609
  function y(b) {
5610
5610
  return function(w, S) {
5611
5611
  if (--f, w)
5612
5612
  l.push(w);
5613
5613
  else {
5614
- if (lr(t, n), t.bindTexture(u, e), A) {
5615
- A = !1, d = n.width || S.width, g = n.height || S.height, t.texImage3D(u, p, s, d, g, m, 0, a, c, null);
5616
- for (let C = 0; C < m; ++C)
5614
+ if (lr(t, n), t.bindTexture(u, e), m) {
5615
+ m = !1, d = n.width || S.width, g = n.height || S.height, t.texImage3D(u, p, s, d, g, A, 0, a, c, null);
5616
+ for (let C = 0; C < A; ++C)
5617
5617
  t.texSubImage3D(u, p, 0, 0, C, d, g, 1, a, c, S);
5618
5618
  } else {
5619
5619
  let C = S, D;
@@ -5637,8 +5637,8 @@ function V0(t, e, n, r) {
5637
5637
  if (ur(n))
5638
5638
  n instanceof Uint8ClampedArray && (n = new Uint8Array(n.buffer));
5639
5639
  else {
5640
- const m = Iy(h);
5641
- n = new m(n);
5640
+ const A = Iy(h);
5641
+ n = new A(n);
5642
5642
  }
5643
5643
  const p = y3(u, h), d = n.byteLength / p;
5644
5644
  if (d % 1)
@@ -5646,18 +5646,18 @@ function V0(t, e, n, r) {
5646
5646
  let g;
5647
5647
  if (i === Pt || i === Rt)
5648
5648
  if (!s && !o && !a) {
5649
- const m = Math.cbrt(d);
5650
- if (m % 1 !== 0)
5649
+ const A = Math.cbrt(d);
5650
+ if (A % 1 !== 0)
5651
5651
  throw "can't guess cube size of array of numElements: " + d;
5652
- s = m, o = m, a = m;
5652
+ s = A, o = A, a = A;
5653
5653
  } else
5654
5654
  s && (!o || !a) ? (g = cs(t, i, o, a, d / s), o = g.width, a = g.height) : o && (!s || !a) ? (g = cs(t, i, s, a, d / o), s = g.width, a = g.height) : (g = cs(t, i, s, o, d / a), s = g.width, o = g.height);
5655
5655
  else
5656
5656
  g = cs(t, i, s, o, d), s = g.width, o = g.height;
5657
5657
  if (N0(t), t.pixelStorei(uu, r.unpackAlignment || 1), lr(t, r), i === yt) {
5658
- const m = p / n.BYTES_PER_ELEMENT, A = d / 6 * m;
5658
+ const A = p / n.BYTES_PER_ELEMENT, m = d / 6 * A;
5659
5659
  Ha(t, r).forEach((y) => {
5660
- const b = A * y.ndx, w = n.subarray(b, b + A);
5660
+ const b = m * y.ndx, w = n.subarray(b, b + m);
5661
5661
  t.texImage2D(y.face, c, u, s, o, 0, l, h, w);
5662
5662
  });
5663
5663
  } else
@@ -6133,14 +6133,14 @@ function kb(t, e, n, r) {
6133
6133
  const l = {}, h = {}, p = {};
6134
6134
  return o.uniformIndices.forEach(function(d) {
6135
6135
  const g = s[d];
6136
- let m = g.name;
6137
- m.startsWith(f) && (m = m.substr(f.length));
6138
- const A = m.endsWith("[0]");
6139
- A && (m = m.substr(0, m.length - 3));
6140
- const y = P[g.type], b = y.Type, w = A ? Pb(y.size, 16) * g.size : y.size * g.size, S = new b(a, g.offset, w / b.BYTES_PER_ELEMENT);
6141
- l[m] = S;
6142
- const C = Rb(S, A, y.rows, y.cols);
6143
- h[m] = C, dd(m, C, p, h);
6136
+ let A = g.name;
6137
+ A.startsWith(f) && (A = A.substr(f.length));
6138
+ const m = A.endsWith("[0]");
6139
+ m && (A = A.substr(0, A.length - 3));
6140
+ const y = P[g.type], b = y.Type, w = m ? Pb(y.size, 16) * g.size : y.size * g.size, S = new b(a, g.offset, w / b.BYTES_PER_ELEMENT);
6141
+ l[A] = S;
6142
+ const C = Rb(S, m, y.rows, y.cols);
6143
+ h[A] = C, dd(A, C, p, h);
6144
6144
  }), {
6145
6145
  name: r,
6146
6146
  array: a,
@@ -6457,17 +6457,17 @@ function hw(t, e, n, r = [t]) {
6457
6457
  let p;
6458
6458
  const d = [];
6459
6459
  d.push(""), d.push("/".repeat(70)), d.push(`// Channel: ${t}`), d.push(""), d.push(`#define ${t}_DEFINED`);
6460
- const { transform: g } = lw(e.type), m = (B, ...Fe) => (
6460
+ const { transform: g } = lw(e.type), A = (B, ...Fe) => (
6461
6461
  // eslint-disable-next-line no-useless-call
6462
6462
  pw.apply(null, [B, "value", ...Fe])
6463
6463
  );
6464
- let A;
6464
+ let m;
6465
6465
  switch (g) {
6466
6466
  case "linear":
6467
- A = m("scaleLinear", "domain", a);
6467
+ m = A("scaleLinear", "domain", a);
6468
6468
  break;
6469
6469
  case "log":
6470
- A = m(
6470
+ m = A(
6471
6471
  "scaleLog",
6472
6472
  "domain",
6473
6473
  a,
@@ -6475,7 +6475,7 @@ function hw(t, e, n, r = [t]) {
6475
6475
  );
6476
6476
  break;
6477
6477
  case "symlog":
6478
- A = m(
6478
+ m = A(
6479
6479
  "scaleSymlog",
6480
6480
  "domain",
6481
6481
  a,
@@ -6484,7 +6484,7 @@ function hw(t, e, n, r = [t]) {
6484
6484
  break;
6485
6485
  case "pow":
6486
6486
  case "sqrt":
6487
- A = m(
6487
+ m = A(
6488
6488
  "scalePow",
6489
6489
  "domain",
6490
6490
  a,
@@ -6493,7 +6493,7 @@ function hw(t, e, n, r = [t]) {
6493
6493
  break;
6494
6494
  case "index":
6495
6495
  case "locus":
6496
- A = m(
6496
+ m = A(
6497
6497
  "scaleBandHp",
6498
6498
  "domain",
6499
6499
  a,
@@ -6506,7 +6506,7 @@ function hw(t, e, n, r = [t]) {
6506
6506
  break;
6507
6507
  case "point":
6508
6508
  case "band":
6509
- A = m(
6509
+ m = A(
6510
6510
  "scaleBand",
6511
6511
  "domain",
6512
6512
  a,
@@ -6520,7 +6520,7 @@ function hw(t, e, n, r = [t]) {
6520
6520
  case "ordinal":
6521
6521
  case "null":
6522
6522
  case "identity":
6523
- A = m("scaleIdentity");
6523
+ m = A("scaleIdentity");
6524
6524
  break;
6525
6525
  case "threshold":
6526
6526
  break;
@@ -6558,11 +6558,11 @@ function hw(t, e, n, r = [t]) {
6558
6558
  );
6559
6559
  }
6560
6560
  const q = ae(e.type) || en(e.type) || ["band", "point"].includes(e.type);
6561
- if (A) {
6561
+ if (m) {
6562
6562
  const B = o;
6563
6563
  q && (u ? C.push(`vec3 domain = ${B};`) : C.push(
6564
6564
  `vec2 domain = vec2(${B}[slot], ${B}[slot + 1]);`
6565
- )), C.push(`float transformed = ${A};`), D && C.push(
6565
+ )), C.push(`float transformed = ${m};`), D && C.push(
6566
6566
  `transformed = (float(slot) + transformed) / (float(${B}.length() - 1));`
6567
6567
  );
6568
6568
  } else
@@ -6823,10 +6823,10 @@ function ja(t) {
6823
6823
  }
6824
6824
  const o = t.common.base, a = s("x"), c = s("X"), u = s("q"), f = a.height - Hn * 2, l = c.height - Hn * 2, h = u.height - a.height + u.yoffset - a.yoffset;
6825
6825
  function p(d, g = 1) {
6826
- let m = 0;
6827
- for (let A = 0; A < d.length; A++)
6828
- m += i(d.charCodeAt(A)).xadvance;
6829
- return m / o * g;
6826
+ let A = 0;
6827
+ for (let m = 0; m < d.length; m++)
6828
+ A += i(d.charCodeAt(m)).xadvance;
6829
+ return A / o * g;
6830
6830
  }
6831
6831
  return {
6832
6832
  measureWidth: p,
@@ -6845,15 +6845,15 @@ function Cw(t, e, n, r = n) {
6845
6845
  let s = vw, o = -1 / 0, a = !1;
6846
6846
  const c = new Array(t);
6847
6847
  c.fill(0);
6848
- const u = e[0], l = (e[1] - e[0]) / t, h = (A, y) => {
6849
- const b = (A - u) / l, w = Math.floor(b);
6848
+ const u = e[0], l = (e[1] - e[0]) / t, h = (m, y) => {
6849
+ const b = (m - u) / l, w = Math.floor(b);
6850
6850
  return ei(
6851
6851
  y && w == b ? w - 1 : w,
6852
6852
  0,
6853
6853
  t - 1
6854
6854
  );
6855
6855
  };
6856
- function p(A, y, b) {
6856
+ function p(m, y, b) {
6857
6857
  if (a)
6858
6858
  return;
6859
6859
  if (y > s)
@@ -6864,7 +6864,7 @@ function Cw(t, e, n, r = n) {
6864
6864
  );
6865
6865
  return;
6866
6866
  }
6867
- const w = n(A);
6867
+ const w = n(m);
6868
6868
  if (w < o) {
6869
6869
  a = !0, console.debug(
6870
6870
  "Items are not ordered properly. Disabling binned index."
@@ -6875,7 +6875,7 @@ function Cw(t, e, n, r = n) {
6875
6875
  const S = h(w, !1);
6876
6876
  i[S] > y && (i[S] = y), c[S] < b && (c[S] = b);
6877
6877
  }
6878
- function d(A, y, b) {
6878
+ function d(m, y, b) {
6879
6879
  if (a)
6880
6880
  return;
6881
6881
  if (y > s)
@@ -6886,7 +6886,7 @@ function Cw(t, e, n, r = n) {
6886
6886
  );
6887
6887
  return;
6888
6888
  }
6889
- const w = n(A), S = r(A);
6889
+ const w = n(m), S = r(m);
6890
6890
  if (w < o) {
6891
6891
  a = !0, console.debug(
6892
6892
  "Items are not ordered properly. Disabling binned index."
@@ -6895,7 +6895,7 @@ function Cw(t, e, n, r = n) {
6895
6895
  } else if (S < w) {
6896
6896
  a = !0, console.debug(
6897
6897
  "End index is less than start index. Disabling binned index. Datum: ",
6898
- A
6898
+ m
6899
6899
  );
6900
6900
  return;
6901
6901
  }
@@ -6904,20 +6904,20 @@ function Cw(t, e, n, r = n) {
6904
6904
  for (let L = C; L <= D; L++)
6905
6905
  i[L] > y && (i[L] = y), c[L] < b && (c[L] = b);
6906
6906
  }
6907
- const g = (A, y, b = [0, 0]) => {
6908
- const w = h(A, !1), S = h(y, !0), C = i[w], D = Math.max(c[S], C);
6907
+ const g = (m, y, b = [0, 0]) => {
6908
+ const w = h(m, !1), S = h(y, !0), C = i[w], D = Math.max(c[S], C);
6909
6909
  return b[0] = C, b[1] = D, b;
6910
- }, m = () => {
6910
+ }, A = () => {
6911
6911
  if (a)
6912
6912
  return;
6913
6913
  for (let y = 1; y < c.length; y++)
6914
6914
  c[y] < c[y - 1] && (c[y] = c[y - 1]);
6915
- let A = !0;
6915
+ let m = !0;
6916
6916
  for (let y = i.length - 1; y > 0; y--)
6917
- A && i[y] == Kl ? (i[y] = c[y], A = !1) : i[y - 1] > i[y] && (i[y - 1] = i[y]);
6917
+ m && i[y] == Kl ? (i[y] = c[y], m = !1) : i[y - 1] > i[y] && (i[y - 1] = i[y]);
6918
6918
  return g;
6919
6919
  };
6920
- return p.getIndex = m, d.getIndex = m, n == r ? p : d;
6920
+ return p.getIndex = A, d.getIndex = A, n == r ? p : d;
6921
6921
  }
6922
6922
  class Qi {
6923
6923
  /**
@@ -6943,7 +6943,7 @@ class Qi {
6943
6943
  this.allocatedVertices = n, this.variableBuilder = new ww(n);
6944
6944
  for (const [s, o] of Object.entries(this.variableEncoders)) {
6945
6945
  const a = i.find(
6946
- (g) => g.find((m) => m == s)
6946
+ (g) => g.find((A) => A == s)
6947
6947
  );
6948
6948
  if (a && s != a[0])
6949
6949
  continue;
@@ -7233,20 +7233,20 @@ class Fw extends Qi {
7233
7233
  const h = [0, 0];
7234
7234
  this.updateTextureCoord(h), this.prepareXIndexer(n, r, i);
7235
7235
  for (let p = r; p < i; p++) {
7236
- const d = n[p], g = this.numberFormat(f(d)), m = V(g) ? g : g === null ? "" : "" + g;
7237
- if (m.length == 0)
7236
+ const d = n[p], g = this.numberFormat(f(d)), A = V(g) ? g : g === null ? "" : "" + g;
7237
+ if (A.length == 0)
7238
7238
  continue;
7239
7239
  this.variableBuilder.updateFromDatum(d);
7240
- const A = o ? m.length : this.metrics.measureWidth(m);
7241
- this.updateWidth(A);
7242
- let y = s == "right" ? -A : s == "center" ? -A / 2 : 0;
7240
+ const m = o ? A.length : this.metrics.measureWidth(A);
7241
+ this.updateWidth(m);
7242
+ let y = s == "right" ? -m : s == "center" ? -m / 2 : 0;
7243
7243
  if (!o) {
7244
- const C = this.metrics.getCharByCode(m.charCodeAt(0));
7244
+ const C = this.metrics.getCharByCode(A.charCodeAt(0));
7245
7245
  y -= (C.width - C.xadvance) / a / 2;
7246
7246
  }
7247
7247
  let b = -0.5, w = 1, S = 1;
7248
- for (let C = 0; C < m.length; C++) {
7249
- const D = this.metrics.getCharByCode(m.charCodeAt(C)), L = o ? 1 : D.xadvance / a;
7248
+ for (let C = 0; C < A.length; C++) {
7249
+ const D = this.metrics.getCharByCode(A.charCodeAt(C)), L = o ? 1 : D.xadvance / a;
7250
7250
  if (D.id == 32) {
7251
7251
  y += L;
7252
7252
  continue;
@@ -7849,22 +7849,22 @@ class Wi {
7849
7849
  const a = /* @__PURE__ */ new Set(), c = Sd(this.encoders), u = this.getSampleFacetMode();
7850
7850
  u && r.push(`#define ${u}`);
7851
7851
  for (const g of i) {
7852
- let m;
7852
+ let A;
7853
7853
  if (g in this.encoding)
7854
- m = /** @type {Channel} */
7854
+ A = /** @type {Channel} */
7855
7855
  g;
7856
7856
  else
7857
7857
  continue;
7858
- const A = this.encoding[m];
7859
- if (A)
7860
- if (Ye(A))
7861
- o.push(fw(m, A.value));
7858
+ const m = this.encoding[A];
7859
+ if (m)
7860
+ if (Ye(m))
7861
+ o.push(fw(A, m.value));
7862
7862
  else {
7863
- const y = Ce(A) && A.resolutionChannel || m, b = xn(y) ? this.unitView.getScaleResolution(y).getScale() : bo(), w = kn(A) ? c.get([A.field, !0]) : [m], S = hw(
7864
- m,
7865
- b,
7863
+ const y = Ce(m) && m.resolutionChannel || A, b = xn(y) ? this.unitView.getScaleResolution(y).getScale() : bo(), w = kn(m) ? c.get([m.field, !0]) : [A], S = hw(
7866
7864
  A,
7867
- w != null && w.includes(m) ? w : [m]
7865
+ b,
7866
+ m,
7867
+ w != null && w.includes(A) ? w : [A]
7868
7868
  );
7869
7869
  o.push(S.glsl), S.domainUniform && this.domainUniforms.push(S.domainUniform), S.attributeGlsl && a.add(S.attributeGlsl);
7870
7870
  }
@@ -8169,8 +8169,8 @@ class Wi {
8169
8169
  p[0] + a,
8170
8170
  p[1],
8171
8171
  c
8172
- ), g = d[0], m = d[1] - g;
8173
- m > 0 && e(g, m);
8172
+ ), g = d[0], A = d[1] - g;
8173
+ A > 0 && e(g, A);
8174
8174
  } else
8175
8175
  e(h.offset, h.count);
8176
8176
  };
@@ -8208,12 +8208,12 @@ class Wi {
8208
8208
  o.height - l.y2,
8209
8209
  l.width,
8210
8210
  l.height
8211
- ].map((b) => b * r), m = g.map((b) => Math.round(b)), [A, y] = g.map(
8212
- (b, w) => b - m[w]
8211
+ ].map((b) => b * r), A = g.map((b) => Math.round(b)), [m, y] = g.map(
8212
+ (b, w) => b - A[w]
8213
8213
  );
8214
- i.viewport(...m), i.scissor(...m), i.enable(i.SCISSOR_TEST), f = {
8214
+ i.viewport(...A), i.scissor(...A), i.enable(i.SCISSOR_TEST), f = {
8215
8215
  uViewOffset: [
8216
- (c + h + A / r) / l.width,
8216
+ (c + h + m / r) / l.width,
8217
8217
  -(u + p - y / r) / l.height
8218
8218
  ],
8219
8219
  uViewScale: d
@@ -9441,14 +9441,14 @@ function _l(t, e, { spacing: n, devicePixelRatio: r, offset: i, reverse: s } = {
9441
9441
  const g = f.length;
9442
9442
  if (!g)
9443
9443
  return;
9444
- const m = (d ? n : 0) * (s ? -1 : 1);
9445
- p -= m;
9446
- for (let A = 0; A < g; A++)
9444
+ const A = (d ? n : 0) * (s ? -1 : 1);
9445
+ p -= A;
9446
+ for (let m = 0; m < g; m++)
9447
9447
  l.push({
9448
- location: p + (A + 1) / (g + 1) * m,
9448
+ location: p + (m + 1) / (g + 1) * A,
9449
9449
  size: 0
9450
9450
  });
9451
- p += m, f.length = 0;
9451
+ p += A, f.length = 0;
9452
9452
  };
9453
9453
  let p = s ? Math.max(e, o) : 0 + i;
9454
9454
  if (t.length == 1 && ua(t[0]))
@@ -9459,8 +9459,8 @@ function _l(t, e, { spacing: n, devicePixelRatio: r, offset: i, reverse: s } = {
9459
9459
  f.push(g);
9460
9460
  else {
9461
9461
  h(l.length > 0);
9462
- const m = us(g.px) + (a ? us(g.grow) / a * c : 0);
9463
- s && (p -= m), l.push({ location: u(p), size: u(m) }), s ? p -= n : p += m + n;
9462
+ const A = us(g.px) + (a ? us(g.grow) / a * c : 0);
9463
+ s && (p -= A), l.push({ location: u(p), size: u(A) }), s ? p -= n : p += A + n;
9464
9464
  }
9465
9465
  }
9466
9466
  return p += s ? n : -n, h(!1), l;
@@ -11988,36 +11988,38 @@ class f4 extends Z {
11988
11988
  let c, u, f, l = 0, h;
11989
11989
  const p = this.ends;
11990
11990
  p.clear();
11991
- const d = (m, A, y) => {
11992
- if (m == A)
11991
+ const d = (A, m, y) => {
11992
+ if (A == m)
11993
11993
  return;
11994
11994
  let b = !1;
11995
- c && (c[e] === y ? (c[n] = A, b = !0) : c[e] != 0 && this._propagate(c)), b || (c = this.createSegment(
11996
- m,
11995
+ c && (c[e] === y ? (c[n] = m, b = !0) : c[e] != 0 && this._propagate(c)), b || (c = this.createSegment(
11997
11996
  A,
11997
+ m,
11998
11998
  y,
11999
11999
  f
12000
12000
  ));
12001
12001
  }, g = () => {
12002
- let m;
12003
- for (; (m = p.peekValue()) !== void 0; )
12004
- d(h, m, l), h = m, l -= p.pop();
12002
+ let A = 0;
12003
+ for (; (A = p.peekValue()) !== void 0; )
12004
+ d(h, A, l), h = A, l -= p.pop();
12005
12005
  h = void 0, c && (this._propagate(c), c = void 0);
12006
12006
  };
12007
- this.handle = (m) => {
12008
- const A = i(m);
12009
- let y;
12010
- for (; (y = p.peekValue()) !== void 0 && y < A; )
12007
+ this.handle = (A) => {
12008
+ const m = i(A);
12009
+ let y = 0;
12010
+ for (; (y = p.peekValue()) !== void 0 && y < m; )
12011
12011
  d(h, y, l), h = y, l -= p.pop();
12012
12012
  if (r) {
12013
- let w = o(m);
12013
+ let w = o(A);
12014
12014
  w !== u && (g(), f = w, u = f);
12015
12015
  }
12016
- h !== void 0 && d(h, A, l), h = A;
12017
- const b = a(m);
12018
- l += b, p.push(b, s(m));
12016
+ h !== void 0 && d(h, m, l), h = m;
12017
+ const b = a(A);
12018
+ l += b, p.push(b, s(A));
12019
12019
  }, this.complete = () => {
12020
12020
  g(), super.complete();
12021
+ }, this.beginBatch = (A) => {
12022
+ g(), u = void 0, super.beginBatch(A);
12021
12023
  };
12022
12024
  }
12023
12025
  }
@@ -13782,34 +13784,34 @@ class R4 extends Z {
13782
13784
  const i = e.skipRegex ? new RegExp(e.skipRegex) : void 0, s = e.asKey || "sample";
13783
13785
  let o, a, c;
13784
13786
  const u = (h) => {
13785
- var m;
13787
+ var A;
13786
13788
  const p = (
13787
13789
  /** @type {string[]} */
13788
13790
  Object.keys(h)
13789
13791
  );
13790
- for (const A of n)
13791
- if (!p.some((y) => A.test(y)))
13792
+ for (const m of n)
13793
+ if (!p.some((y) => m.test(y)))
13792
13794
  throw new Error(
13793
- `No columns matching the regex ${A.toString()} found in the data!`
13795
+ `No columns matching the regex ${m.toString()} found in the data!`
13794
13796
  );
13795
13797
  const d = /* @__PURE__ */ new Map();
13796
- for (const [A, y] of n.entries())
13798
+ for (const [m, y] of n.entries())
13797
13799
  for (const b of p) {
13798
- const w = (m = y.exec(b)) == null ? void 0 : m[1];
13800
+ const w = (A = y.exec(b)) == null ? void 0 : A[1];
13799
13801
  if (w !== void 0) {
13800
13802
  let S = d.get(w);
13801
- S || (S = [], d.set(w, S)), S[A] = b;
13803
+ S || (S = [], d.set(w, S)), S[m] = b;
13802
13804
  }
13803
13805
  }
13804
13806
  o = [...d.entries()], a = p.filter(
13805
- (A) => !n.some((y) => y.test(A)) && !(i && i.test(A))
13807
+ (m) => !n.some((y) => y.test(m)) && !(i && i.test(m))
13806
13808
  );
13807
13809
  const g = [
13808
13810
  ...a.map(
13809
- (A) => JSON.stringify(A) + ": datum[" + JSON.stringify(A) + "]"
13811
+ (m) => JSON.stringify(m) + ": datum[" + JSON.stringify(m) + "]"
13810
13812
  ),
13811
13813
  JSON.stringify(s) + ": sampleId",
13812
- ...r.map((A, y) => JSON.stringify(A) + `: datum[attrs[${y}]]`)
13814
+ ...r.map((m, y) => JSON.stringify(m) + `: datum[attrs[${y}]]`)
13813
13815
  ];
13814
13816
  c = /** @type {any} */
13815
13817
  new Function(
@@ -13824,8 +13826,8 @@ class R4 extends Z {
13824
13826
  }, f = (h) => {
13825
13827
  o || u(h);
13826
13828
  for (let p = 0; p < o.length; p++) {
13827
- const [d, g] = o[p], m = c(h, d, g);
13828
- this._propagate(m);
13829
+ const [d, g] = o[p], A = c(h, d, g);
13830
+ this._propagate(A);
13829
13831
  }
13830
13832
  }, l = (h) => {
13831
13833
  u(h), f(h), this.handle = f;
@@ -13880,16 +13882,16 @@ class k4 extends Z {
13880
13882
  const d = _i(
13881
13883
  l,
13882
13884
  (y) => +!a(y)
13883
- ), g = _i(l, h), m = g - d;
13884
- let A = 0;
13885
+ ), g = _i(l, h), A = g - d;
13886
+ let m = 0;
13885
13887
  for (let y = 0; y < l.length; y++) {
13886
13888
  const b = l[y];
13887
13889
  if (a(b)) {
13888
- const w = h(b) / m;
13889
- A -= w * Math.log2(w);
13890
+ const w = h(b) / A;
13891
+ m -= w * Math.log2(w);
13890
13892
  }
13891
13893
  }
13892
- return m / (f - (A + 0)) * (m / g);
13894
+ return A / (f - (m + 0)) * (A / g);
13893
13895
  };
13894
13896
  }
13895
13897
  break;
@@ -14633,57 +14635,65 @@ class $4 extends Zi {
14633
14635
  }
14634
14636
  }
14635
14637
  function eC(t) {
14636
- const e = t.autoSql.fields.filter((g) => g.type).slice(3);
14638
+ const e = t.autoSql.fields.filter((m) => m.type).slice(3);
14637
14639
  let n = 0, r = "", i = 0, s = {};
14638
14640
  const o = " ", a = o.charCodeAt(0), c = "0".charCodeAt(0), u = "-".charCodeAt(0);
14639
14641
  function f() {
14640
- let g = r.indexOf(o, n);
14641
- g < 0 && (g = i);
14642
- const m = r.substring(n, g);
14643
- return n = g + 1, m;
14642
+ let m = r.indexOf(o, n);
14643
+ m < 0 && (m = i);
14644
+ const y = r.substring(n, m);
14645
+ return n = m + 1, y;
14644
14646
  }
14645
14647
  function l() {
14646
- let g = 0, m = r.charCodeAt(n), A = 1;
14647
- m === u && (A = -1, n++, m = r.charCodeAt(n));
14648
+ let m = 0, y = r.charCodeAt(n), b = 1;
14649
+ y === u && (b = -1, n++, y = r.charCodeAt(n));
14648
14650
  do {
14649
- if (m === a) {
14651
+ if (y === a) {
14650
14652
  n++;
14651
14653
  break;
14652
14654
  }
14653
- g = g * 10 + m - c, m = r.charCodeAt(++n);
14655
+ m = m * 10 + y - c, y = r.charCodeAt(++n);
14654
14656
  } while (n < i);
14655
- return g * A;
14657
+ return m * b;
14656
14658
  }
14657
- const h = e.map((g) => {
14658
- const { name: m, type: A } = g;
14659
- if (["ubyte", "int", "uint"].includes(A))
14659
+ const h = e.map((m) => {
14660
+ const { name: y, type: b } = m;
14661
+ if (["ubyte", "int", "uint"].includes(b))
14660
14662
  return () => {
14661
- s[m] = l();
14663
+ s[y] = l();
14662
14664
  };
14663
- if (g.isNumeric)
14665
+ if (m.isNumeric)
14664
14666
  return () => {
14665
- s[m] = Number(f());
14667
+ s[y] = Number(f());
14666
14668
  };
14667
- if (["char", "string", "lstring"].includes(A))
14669
+ if (["char", "string", "lstring"].includes(b))
14668
14670
  return () => {
14669
- s[m] = f();
14671
+ s[y] = f();
14670
14672
  };
14671
- throw new Error("Unsupported type: " + A);
14672
- });
14673
- function p(g) {
14674
- r = g, i = g.length, n = 0;
14673
+ throw new Error("Unsupported type: " + b);
14674
+ }), p = e.map(
14675
+ (m) => `"${m.name}": ${m.isNumeric ? "0" : "emptyString"}`
14676
+ ), d = new Function(`
14677
+ const emptyString = "";
14678
+ return function makeTemplate(chrom, chromStart, chromEnd) {
14679
+ return {
14680
+ chrom,
14681
+ chromStart,
14682
+ chromEnd,
14683
+ ${p.join(`,
14684
+ `)}
14685
+ }
14686
+ };`)();
14687
+ function g(m) {
14688
+ r = m, i = m.length, n = 0;
14675
14689
  }
14676
- function d(g, m, A, y) {
14677
- p(y), s = {
14678
- chrom: g,
14679
- chromStart: m,
14680
- chromEnd: A
14681
- };
14682
- for (let b = 0, w = h.length; b < w; b++)
14683
- h[b]();
14690
+ function A(m, y, b, w) {
14691
+ g(w), s = d(m, y, b);
14692
+ for (let S = 0, C = h.length; S < C; S++)
14693
+ h[S]();
14684
14694
  return s;
14685
14695
  }
14686
- return d;
14696
+ return A;
14687
14697
  }
14688
14698
  var un;
14689
14699
  class tC extends Zi {
@@ -15218,16 +15228,16 @@ function xC(t) {
15218
15228
  for (const [c, u] of a.entries()) {
15219
15229
  const f = [], l = [], h = [];
15220
15230
  for (const { channel: p, chromPosDef: d } of u) {
15221
- const g = (y) => y.replace(/[^A-Za-z0-9_]/g, ""), m = [
15231
+ const g = (y) => y.replace(/[^A-Za-z0-9_]/g, ""), A = [
15222
15232
  "_linearized_",
15223
15233
  g(d.chrom),
15224
15234
  "_",
15225
15235
  g(d.pos)
15226
- ].join(""), A = {
15236
+ ].join(""), m = {
15227
15237
  ...((s = t.spec.encoding) == null ? void 0 : s[p]) ?? t.getEncoding()[p] ?? {},
15228
- field: m
15238
+ field: A
15229
15239
  };
15230
- delete A.chrom, delete A.pos, !A.type && d.type && (A.type = d.type), n[p] = A, f.push(d.pos), h.push(d.offset ?? 0), l.push(m);
15240
+ delete m.chrom, delete m.pos, !m.type && d.type && (m.type = d.type), n[p] = m, f.push(d.pos), h.push(d.offset ?? 0), l.push(A);
15231
15241
  }
15232
15242
  e.push(new Gs()), e.push(
15233
15243
  new tp(
@@ -17280,8 +17290,8 @@ class d8 extends Tn {
17280
17290
  axes: p,
17281
17291
  gridLines: d,
17282
17292
  background: g,
17283
- backgroundStroke: m,
17284
- title: A
17293
+ backgroundStroke: A,
17294
+ title: m
17285
17295
  } = l, [y, b] = c.getCellCoords(f), w = o[I(this, Ci, uc).call(this, "column", y)], S = a[I(this, Ci, uc).call(this, "row", b)], C = h.getViewportSize(), D = h.getSize(), L = h.getOverhang(), q = w.location - L.left, J = S.location - L.top, B = (se, Ze) => (se[Ze].grow ? (Ze == "width" ? w : S).size : se[Ze].px) + L[Ze], Fe = B(C, "width"), le = B(C, "height"), ze = B(D, "width"), jt = B(D, "height"), ot = l.scrollbars.horizontal, at = l.scrollbars.vertical, bt = ot ? () => u(ot.viewportOffset) : () => 0, Te = at ? () => u(at.viewportOffset) : () => 0, Ie = new At(
17286
17296
  () => r.x + q,
17287
17297
  () => r.y + J,
@@ -17305,7 +17315,7 @@ class d8 extends Tn {
17305
17315
  Ji && h.render(n, Xt, {
17306
17316
  ...i,
17307
17317
  clipRect: yr
17308
- }), m == null || m.render(n, yr, {
17318
+ }), A == null || A.render(n, yr, {
17309
17319
  ...i,
17310
17320
  clipRect: void 0
17311
17321
  });
@@ -17355,7 +17365,7 @@ class d8 extends Tn {
17355
17365
  Ji || h.render(n, Xt, i);
17356
17366
  for (const se of Object.values(l.scrollbars))
17357
17367
  se.updateScrollbar(Ie, Xt), se.render(n, r, i);
17358
- A == null || A.render(n, Ie, i);
17368
+ m == null || m.render(n, Ie, i);
17359
17369
  }
17360
17370
  n.popView(this);
17361
17371
  }