@carbon/charts 1.21.4 → 1.22.3
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/CHANGELOG.md +48 -0
- package/README.md +3 -2
- package/dist/{angle-utils-CGNI01fr.mjs → angle-utils-RQSA_x-9.mjs} +29 -29
- package/dist/{angle-utils-CGNI01fr.mjs.map → angle-utils-RQSA_x-9.mjs.map} +1 -1
- package/dist/{array-D7iT_STy.mjs → array-DUMAG1_w.mjs} +2 -2
- package/dist/{array-D7iT_STy.mjs.map → array-DUMAG1_w.mjs.map} +1 -1
- package/dist/{choropleth-CeqRIFeN.mjs → choropleth-C1BTZZfm.mjs} +954 -919
- package/dist/choropleth-C1BTZZfm.mjs.map +1 -0
- package/dist/{color-scale-utils-f3PWy_Op.mjs → color-scale-utils-CKd_DujW.mjs} +1380 -1375
- package/dist/color-scale-utils-CKd_DujW.mjs.map +1 -0
- package/dist/components/component.d.ts +3 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{index-DFubnvsv.mjs → index-CiAo-vQV.mjs} +558 -534
- package/dist/index-CiAo-vQV.mjs.map +1 -0
- package/dist/index.mjs +35 -35
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/charts.d.ts +3 -0
- package/dist/model/index.mjs +4 -4
- package/dist/model/index.mjs.map +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/styles.css +294 -288
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/umd/bundle.umd.cjs +17 -22
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +17 -22
- package/package.json +23 -23
- package/scss/components/_axis.scss +8 -0
- package/styles.css +294 -288
- package/styles.min.css +1 -1
- package/telemetry.yml +1 -1
- package/dist/choropleth-CeqRIFeN.mjs.map +0 -1
- package/dist/color-scale-utils-f3PWy_Op.mjs.map +0 -1
- package/dist/index-DFubnvsv.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as
|
|
2
|
-
import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as
|
|
1
|
+
import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as Hl, a2 as vo, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as en, a8 as zr, a9 as yo, g as T, p as qt, a as tn, C as Fr, aa as vt, w as wt, ab as kn, E as Wr, H as Yt, ac as Eo, ad as Is, c as Xl, ae as ye, I as Si, K as xi, e as ee, af as mn, ag as fe, f as me, x as ge, ah as jl, h as qe, O as Yl, ai as Ce, z as mt, l as jt, aj as $t, ak as ql, M as Zl, al as So, y as _t, q as un, n as Un, am as Fs, an as Kl, ao as Jl, ap as bi, aq as Xr, A as Te, ar as jr, as as xo, at as Ql } from "./color-scale-utils-CKd_DujW.mjs";
|
|
2
|
+
import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as Ws, d as ec, F as zn, n as Xs, H as js, C as Ys, p as Fn, b as qr, D as qs, U as nc, x as we, a0 as Wn, O as Zs } from "./axis-scales-CPuwbFQf.mjs";
|
|
3
3
|
import { R as it } from "./a11y-ePqvrObQ.mjs";
|
|
4
|
-
import { t as
|
|
5
|
-
import { b as bo, c as lt, a as
|
|
4
|
+
import { t as ss, s as R, h as Zr, e as Gt, c as Kr, f as is, g as Le, i as oe, m as Ks, j as Jr, k as Ke, l as Ct, n as sc, o as Qr, q as ic, u as ur, D as _, v as rc, w as Ti, G as ta, x as hr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-RQSA_x-9.mjs";
|
|
5
|
+
import { b as bo, c as lt, a as dr, s as cc } from "./array-DUMAG1_w.mjs";
|
|
6
6
|
function uc(s, t, e, n) {
|
|
7
7
|
for (var i = -1, r = s == null ? 0 : s.length; ++i < r; )
|
|
8
8
|
e = t(e, s[i], i, s);
|
|
@@ -218,8 +218,8 @@ var Oc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
218
218
|
function wc(s) {
|
|
219
219
|
return Oc.test(s);
|
|
220
220
|
}
|
|
221
|
-
var To = "\\ud800-\\udfff", Lc = "\\u0300-\\u036f", Ac = "\\ufe20-\\ufe2f", Mc = "\\u20d0-\\u20ff", _c = Lc + Ac + Mc, Oo = "\\u2700-\\u27bf", wo = "a-z\\xdf-\\xf6\\xf8-\\xff",
|
|
222
|
-
Xe + "?" +
|
|
221
|
+
var To = "\\ud800-\\udfff", Lc = "\\u0300-\\u036f", Ac = "\\ufe20-\\ufe2f", Mc = "\\u20d0-\\u20ff", _c = Lc + Ac + Mc, Oo = "\\u2700-\\u27bf", wo = "a-z\\xdf-\\xf6\\xf8-\\xff", kc = "\\xac\\xb1\\xd7\\xf7", Cc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rc = "\\u2000-\\u206f", Ic = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Lo = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dc = "\\ufe0e\\ufe0f", Ao = kc + Cc + Rc + Ic, Mo = "['’]", na = "[" + Ao + "]", Pc = "[" + _c + "]", _o = "\\d+", Nc = "[" + Oo + "]", ko = "[" + wo + "]", Co = "[^" + To + Ao + _o + Oo + wo + Lo + "]", $c = "\\ud83c[\\udffb-\\udfff]", Vc = "(?:" + Pc + "|" + $c + ")", Bc = "[^" + To + "]", Ro = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xe = "[" + Lo + "]", Gc = "\\u200d", sa = "(?:" + ko + "|" + Co + ")", Hc = "(?:" + Xe + "|" + Co + ")", ia = "(?:" + Mo + "(?:d|ll|m|re|s|t|ve))?", ra = "(?:" + Mo + "(?:D|LL|M|RE|S|T|VE))?", Do = Vc + "?", Po = "[" + Dc + "]?", Uc = "(?:" + Gc + "(?:" + [Bc, Ro, Io].join("|") + ")" + Po + Do + ")*", zc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Fc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Wc = Po + Do + Uc, Xc = "(?:" + [Nc, Ro, Io].join("|") + ")" + Wc, jc = RegExp([
|
|
222
|
+
Xe + "?" + ko + "+" + ia + "(?=" + [na, Xe, "$"].join("|") + ")",
|
|
223
223
|
Hc + "+" + ra + "(?=" + [na, Xe + sa, "$"].join("|") + ")",
|
|
224
224
|
Xe + "?" + sa + "+" + ia,
|
|
225
225
|
Xe + "+" + ra,
|
|
@@ -244,7 +244,7 @@ function Qc(s, t, e) {
|
|
|
244
244
|
return s === s && (e !== void 0 && (s = s <= e ? s : e), t !== void 0 && (s = s >= t ? s : t)), s;
|
|
245
245
|
}
|
|
246
246
|
function No(s, t, e) {
|
|
247
|
-
return e === void 0 && (e = t, t = void 0), e !== void 0 && (e =
|
|
247
|
+
return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = ss(e), e = e === e ? e : 0), t !== void 0 && (t = ss(t), t = t === t ? t : 0), Qc(ss(s), t, e);
|
|
248
248
|
}
|
|
249
249
|
var tu = "Expected a function";
|
|
250
250
|
function eu(s, t, e) {
|
|
@@ -255,7 +255,7 @@ function eu(s, t, e) {
|
|
|
255
255
|
}, t);
|
|
256
256
|
}
|
|
257
257
|
var nu = Bl(function(s, t, e) {
|
|
258
|
-
return eu(s,
|
|
258
|
+
return eu(s, ss(t) || 0, e);
|
|
259
259
|
});
|
|
260
260
|
function su(s, t) {
|
|
261
261
|
var e = -1, n = Gl(s) ? Array(s.length) : [];
|
|
@@ -264,8 +264,8 @@ function su(s, t) {
|
|
|
264
264
|
}), n;
|
|
265
265
|
}
|
|
266
266
|
function iu(s, t) {
|
|
267
|
-
var e =
|
|
268
|
-
return e(s,
|
|
267
|
+
var e = mo(s) ? Hl : su;
|
|
268
|
+
return e(s, vo(t));
|
|
269
269
|
}
|
|
270
270
|
var ru = 1 / 0;
|
|
271
271
|
function au(s, t) {
|
|
@@ -284,8 +284,8 @@ function ou(s, t) {
|
|
|
284
284
|
}), !!e;
|
|
285
285
|
}
|
|
286
286
|
function lu(s, t, e) {
|
|
287
|
-
var n =
|
|
288
|
-
return n(s,
|
|
287
|
+
var n = mo(s) ? Fl : ou;
|
|
288
|
+
return n(s, vo(t));
|
|
289
289
|
}
|
|
290
290
|
class Re {
|
|
291
291
|
constructor() {
|
|
@@ -321,7 +321,7 @@ function Vo(s) {
|
|
|
321
321
|
function uu(s) {
|
|
322
322
|
return s;
|
|
323
323
|
}
|
|
324
|
-
var
|
|
324
|
+
var rs = 1, as = 2, Oi = 3, vn = 4, aa = 1e-6;
|
|
325
325
|
function hu(s) {
|
|
326
326
|
return "translate(" + s + ",0)";
|
|
327
327
|
}
|
|
@@ -337,18 +337,18 @@ function fu(s, t) {
|
|
|
337
337
|
function gu() {
|
|
338
338
|
return !this.__axis;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s ===
|
|
340
|
+
function Ds(s, t) {
|
|
341
|
+
var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s === rs || s === vn ? -1 : 1, h = s === vn || s === as ? "x" : "y", d = s === rs || s === Oi ? hu : du;
|
|
342
342
|
function u(p) {
|
|
343
|
-
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(),
|
|
344
|
-
O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G),
|
|
343
|
+
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(), C = I.exit(), G = I.enter().append("g").attr("class", "tick"), k = I.select("line"), L = I.select("text");
|
|
344
|
+
O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G), k = k.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === rs ? "0em" : s === Oi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), I = I.transition(p), k = k.transition(p), L = L.transition(p), C = C.transition(p).attr("opacity", aa).attr("transform", function(B) {
|
|
345
345
|
return isFinite(B = S(B)) ? d(B + c) : this.getAttribute("transform");
|
|
346
346
|
}), G.attr("opacity", aa).attr("transform", function(B) {
|
|
347
347
|
var D = this.parentNode.__axis;
|
|
348
348
|
return d((D && isFinite(D = D(B)) ? D : S(B)) + c);
|
|
349
|
-
})),
|
|
349
|
+
})), C.remove(), O.attr("d", s === vn || s === as ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), I.attr("opacity", 1).attr("transform", function(B) {
|
|
350
350
|
return d(S(B) + c);
|
|
351
|
-
}),
|
|
351
|
+
}), k.attr(h + "2", l * r), L.attr(h, l * m).text(g), b.filter(gu).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", s === as ? "start" : s === vn ? "end" : "middle"), b.each(function() {
|
|
352
352
|
this.__axis = S;
|
|
353
353
|
});
|
|
354
354
|
}
|
|
@@ -375,28 +375,28 @@ function Rs(s, t) {
|
|
|
375
375
|
}, u;
|
|
376
376
|
}
|
|
377
377
|
function mu(s) {
|
|
378
|
-
return
|
|
378
|
+
return Ds(rs, s);
|
|
379
379
|
}
|
|
380
380
|
function vu(s) {
|
|
381
|
-
return
|
|
381
|
+
return Ds(as, s);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function pr(s) {
|
|
384
|
+
return Ds(Oi, s);
|
|
385
385
|
}
|
|
386
386
|
function Bo(s) {
|
|
387
|
-
return
|
|
387
|
+
return Ds(vn, s);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
390
|
-
function
|
|
389
|
+
const wi = { capture: !0, passive: !1 };
|
|
390
|
+
function Li(s) {
|
|
391
391
|
s.preventDefault(), s.stopImmediatePropagation();
|
|
392
392
|
}
|
|
393
393
|
function yu(s) {
|
|
394
|
-
var t = s.document.documentElement, e = R(s).on("dragstart.drag",
|
|
395
|
-
"onselectstart" in t ? e.on("selectstart.drag",
|
|
394
|
+
var t = s.document.documentElement, e = R(s).on("dragstart.drag", Li, wi);
|
|
395
|
+
"onselectstart" in t ? e.on("selectstart.drag", Li, wi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
396
396
|
}
|
|
397
397
|
function Eu(s, t) {
|
|
398
398
|
var e = s.document.documentElement, n = R(s).on("dragstart.drag", null);
|
|
399
|
-
t && (n.on("click.drag",
|
|
399
|
+
t && (n.on("click.drag", Li, wi), setTimeout(function() {
|
|
400
400
|
n.on("click.drag", null);
|
|
401
401
|
}, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
|
|
402
402
|
}
|
|
@@ -404,7 +404,7 @@ function Su(s, t) {
|
|
|
404
404
|
for (var e = new Array(t), n = 0; n < t; ++n) e[n] = s(n / (t - 1));
|
|
405
405
|
return e;
|
|
406
406
|
}
|
|
407
|
-
const xu = (s) => +s,
|
|
407
|
+
const xu = (s) => +s, Js = (s) => () => s;
|
|
408
408
|
function bu(s, {
|
|
409
409
|
sourceEvent: t,
|
|
410
410
|
target: e,
|
|
@@ -424,10 +424,10 @@ function bu(s, {
|
|
|
424
424
|
function Tu(s) {
|
|
425
425
|
s.stopImmediatePropagation();
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Qs(s) {
|
|
428
428
|
s.preventDefault(), s.stopImmediatePropagation();
|
|
429
429
|
}
|
|
430
|
-
var oa = { name: "drag" },
|
|
430
|
+
var oa = { name: "drag" }, ti = { name: "space" }, Ue = { name: "handle" }, ze = { name: "center" };
|
|
431
431
|
const { abs: la, max: Rt, min: It } = Math;
|
|
432
432
|
function ca(s) {
|
|
433
433
|
return [+s[0], +s[1]];
|
|
@@ -435,18 +435,18 @@ function ca(s) {
|
|
|
435
435
|
function ua(s) {
|
|
436
436
|
return [ca(s[0]), ca(s[1])];
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var os = {
|
|
439
439
|
name: "x",
|
|
440
|
-
handles: ["w", "e"].map(
|
|
440
|
+
handles: ["w", "e"].map(fs),
|
|
441
441
|
input: function(s, t) {
|
|
442
442
|
return s == null ? null : [[+s[0], t[0][1]], [+s[1], t[1][1]]];
|
|
443
443
|
},
|
|
444
444
|
output: function(s) {
|
|
445
445
|
return s && [s[0][0], s[1][0]];
|
|
446
446
|
}
|
|
447
|
-
},
|
|
447
|
+
}, ei = {
|
|
448
448
|
name: "y",
|
|
449
|
-
handles: ["n", "s"].map(
|
|
449
|
+
handles: ["n", "s"].map(fs),
|
|
450
450
|
input: function(s, t) {
|
|
451
451
|
return s == null ? null : [[t[0][0], +s[0]], [t[1][0], +s[1]]];
|
|
452
452
|
},
|
|
@@ -501,7 +501,7 @@ var rs = {
|
|
|
501
501
|
se: 1,
|
|
502
502
|
sw: 1
|
|
503
503
|
};
|
|
504
|
-
function
|
|
504
|
+
function fs(s) {
|
|
505
505
|
return { type: s };
|
|
506
506
|
}
|
|
507
507
|
function Lu(s) {
|
|
@@ -514,7 +514,7 @@ function Au() {
|
|
|
514
514
|
function Mu() {
|
|
515
515
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function ni(s) {
|
|
518
518
|
for (; !s.__brush; ) if (!(s = s.parentNode)) return;
|
|
519
519
|
return s.__brush;
|
|
520
520
|
}
|
|
@@ -522,16 +522,16 @@ function _u(s) {
|
|
|
522
522
|
return s[0][0] === s[1][0] || s[0][1] === s[1][1];
|
|
523
523
|
}
|
|
524
524
|
function Go() {
|
|
525
|
-
return
|
|
525
|
+
return ku(os);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function ku(s) {
|
|
528
528
|
var t = Au, e = Lu, n = Mu, i = !0, r = Wl("start", "brush", "end"), a = 6, o;
|
|
529
529
|
function c(m) {
|
|
530
|
-
var E = m.property("__brush", g).selectAll(".overlay").data([
|
|
530
|
+
var E = m.property("__brush", g).selectAll(".overlay").data([fs("overlay")]);
|
|
531
531
|
E.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", pe.overlay).merge(E).each(function() {
|
|
532
|
-
var v =
|
|
532
|
+
var v = ni(this).extent;
|
|
533
533
|
R(this).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]);
|
|
534
|
-
}), m.selectAll(".selection").data([
|
|
534
|
+
}), m.selectAll(".selection").data([fs("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", pe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
|
|
535
535
|
var y = m.selectAll(".handle").data(s.handles, function(v) {
|
|
536
536
|
return v.type;
|
|
537
537
|
});
|
|
@@ -547,9 +547,9 @@ function Cu(s) {
|
|
|
547
547
|
}).on("interrupt.brush end.brush", function(v) {
|
|
548
548
|
h(this, arguments).end(v);
|
|
549
549
|
}).tween("brush", function() {
|
|
550
|
-
var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent),
|
|
551
|
-
function G(
|
|
552
|
-
S.selection =
|
|
550
|
+
var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), C = yo(O, I);
|
|
551
|
+
function G(k) {
|
|
552
|
+
S.selection = k === 1 && I === null ? null : C(k), l.call(v), b.brush();
|
|
553
553
|
}
|
|
554
554
|
return O !== null && I !== null ? G : G(1);
|
|
555
555
|
}) : m.each(function() {
|
|
@@ -560,7 +560,7 @@ function Cu(s) {
|
|
|
560
560
|
c.move(m, null, E);
|
|
561
561
|
};
|
|
562
562
|
function l() {
|
|
563
|
-
var m = R(this), E =
|
|
563
|
+
var m = R(this), E = ni(this).selection;
|
|
564
564
|
E ? (m.selectAll(".selection").style("display", null).attr("x", E[0][0]).attr("y", E[0][1]).attr("width", E[1][0] - E[0][0]).attr("height", E[1][1] - E[0][1]), m.selectAll(".handle").style("display", null).attr("x", function(y) {
|
|
565
565
|
return y.type[y.type.length - 1] === "e" ? E[1][0] - a / 2 : E[0][0] - a / 2;
|
|
566
566
|
}).attr("y", function(y) {
|
|
@@ -609,26 +609,26 @@ function Cu(s) {
|
|
|
609
609
|
};
|
|
610
610
|
function u(m) {
|
|
611
611
|
if (o && !m.touches || !e.apply(this, arguments)) return;
|
|
612
|
-
var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s ===
|
|
613
|
-
const
|
|
614
|
-
return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier =
|
|
612
|
+
var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === ei ? null : Ou[y], b = s === os ? null : wu[y], O = ni(E), I = O.extent, C = O.selection, G = I[0][0], k, L, B = I[0][1], D, A, w = I[1][0], V, N, P = I[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, K = Array.from(m.touches || [m], (nt) => {
|
|
613
|
+
const Et = nt.identifier;
|
|
614
|
+
return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier = Et, nt;
|
|
615
615
|
});
|
|
616
616
|
zr(E);
|
|
617
617
|
var ut = h(E, arguments, !0).beforestart();
|
|
618
618
|
if (y === "overlay") {
|
|
619
|
-
|
|
620
|
-
const nt = [
|
|
621
|
-
O.selection =
|
|
622
|
-
|
|
623
|
-
D = s ===
|
|
619
|
+
C && (J = !0);
|
|
620
|
+
const nt = [K[0], K[1] || K[0]];
|
|
621
|
+
O.selection = C = [[
|
|
622
|
+
k = s === ei ? G : It(nt[0][0], nt[1][0]),
|
|
623
|
+
D = s === os ? B : It(nt[0][1], nt[1][1])
|
|
624
624
|
], [
|
|
625
|
-
V = s ===
|
|
626
|
-
$ = s ===
|
|
627
|
-
]],
|
|
625
|
+
V = s === ei ? w : Rt(nt[0][0], nt[1][0]),
|
|
626
|
+
$ = s === os ? P : Rt(nt[0][1], nt[1][1])
|
|
627
|
+
]], K.length > 1 && U(m);
|
|
628
628
|
} else
|
|
629
|
-
|
|
630
|
-
L =
|
|
631
|
-
var ht = R(E).attr("pointer-events", "none"),
|
|
629
|
+
k = C[0][0], D = C[0][1], V = C[1][0], $ = C[1][1];
|
|
630
|
+
L = k, A = D, N = V, X = $;
|
|
631
|
+
var ht = R(E).attr("pointer-events", "none"), yt = ht.selectAll(".overlay").attr("cursor", pe[y]);
|
|
632
632
|
if (m.touches)
|
|
633
633
|
ut.moved = H, ut.ended = W;
|
|
634
634
|
else {
|
|
@@ -637,36 +637,36 @@ function Cu(s) {
|
|
|
637
637
|
}
|
|
638
638
|
l.call(E), ut.start(m, v.name);
|
|
639
639
|
function H(nt) {
|
|
640
|
-
for (const
|
|
641
|
-
for (const ie of
|
|
642
|
-
ie.identifier ===
|
|
643
|
-
if (ct && !Q && !j &&
|
|
644
|
-
const
|
|
645
|
-
la(
|
|
640
|
+
for (const Et of nt.changedTouches || [nt])
|
|
641
|
+
for (const ie of K)
|
|
642
|
+
ie.identifier === Et.identifier && (ie.cur = en(Et, E));
|
|
643
|
+
if (ct && !Q && !j && K.length === 1) {
|
|
644
|
+
const Et = K[0];
|
|
645
|
+
la(Et.cur[0] - Et[0]) > la(Et.cur[1] - Et[1]) ? j = !0 : Q = !0;
|
|
646
646
|
}
|
|
647
|
-
for (const
|
|
648
|
-
|
|
649
|
-
J = !0,
|
|
647
|
+
for (const Et of K)
|
|
648
|
+
Et.cur && (Et[0] = Et.cur[0], Et[1] = Et.cur[1]);
|
|
649
|
+
J = !0, Qs(nt), U(nt);
|
|
650
650
|
}
|
|
651
651
|
function U(nt) {
|
|
652
|
-
const
|
|
652
|
+
const Et = K[0], ie = Et.point0;
|
|
653
653
|
var te;
|
|
654
|
-
switch (F =
|
|
655
|
-
case
|
|
654
|
+
switch (F = Et[0] - ie[0], et = Et[1] - ie[1], v) {
|
|
655
|
+
case ti:
|
|
656
656
|
case oa: {
|
|
657
|
-
S && (F = Rt(G -
|
|
657
|
+
S && (F = Rt(G - k, It(w - V, F)), L = k + F, N = V + F), b && (et = Rt(B - D, It(P - $, et)), A = D + et, X = $ + et);
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
660
660
|
case Ue: {
|
|
661
|
-
|
|
661
|
+
K[1] ? (S && (L = Rt(G, It(w, K[0][0])), N = Rt(G, It(w, K[1][0])), S = 1), b && (A = Rt(B, It(P, K[0][1])), X = Rt(B, It(P, K[1][1])), b = 1)) : (S < 0 ? (F = Rt(G - k, It(w - k, F)), L = k + F, N = V) : S > 0 && (F = Rt(G - V, It(w - V, F)), L = k, N = V + F), b < 0 ? (et = Rt(B - D, It(P - D, et)), A = D + et, X = $) : b > 0 && (et = Rt(B - $, It(P - $, et)), A = D, X = $ + et));
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
664
664
|
case ze: {
|
|
665
|
-
S && (L = Rt(G, It(w,
|
|
665
|
+
S && (L = Rt(G, It(w, k - F * S)), N = Rt(G, It(w, V + F * S))), b && (A = Rt(B, It(P, D - et * b)), X = Rt(B, It(P, $ + et * b)));
|
|
666
666
|
break;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
N < L && (S *= -1, te =
|
|
669
|
+
N < L && (S *= -1, te = k, k = V, V = te, te = L, L = N, N = te, y in ha && yt.attr("cursor", pe[y = ha[y]])), X < A && (b *= -1, te = D, D = $, $ = te, te = A, A = X, X = te, y in da && yt.attr("cursor", pe[y = da[y]])), O.selection && (C = O.selection), Q && (L = C[0][0], N = C[1][0]), j && (A = C[0][1], X = C[1][1]), (C[0][0] !== L || C[0][1] !== A || C[1][0] !== N || C[1][1] !== X) && (O.selection = [[L, A], [N, X]], l.call(E), ut.brush(nt, v.name));
|
|
670
670
|
}
|
|
671
671
|
function W(nt) {
|
|
672
672
|
if (Tu(nt), nt.touches) {
|
|
@@ -676,7 +676,7 @@ function Cu(s) {
|
|
|
676
676
|
}, 500);
|
|
677
677
|
} else
|
|
678
678
|
Eu(nt.view, J), Ut.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
|
|
679
|
-
ht.attr("pointer-events", "all"),
|
|
679
|
+
ht.attr("pointer-events", "all"), yt.attr("cursor", pe.overlay), O.selection && (C = O.selection), _u(C) && (O.selection = null, l.call(E)), ut.end(nt, v.name);
|
|
680
680
|
}
|
|
681
681
|
function zt(nt) {
|
|
682
682
|
switch (nt.keyCode) {
|
|
@@ -685,17 +685,17 @@ function Cu(s) {
|
|
|
685
685
|
break;
|
|
686
686
|
}
|
|
687
687
|
case 18: {
|
|
688
|
-
v === Ue && (S && (V = N - F * S,
|
|
688
|
+
v === Ue && (S && (V = N - F * S, k = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze, U(nt));
|
|
689
689
|
break;
|
|
690
690
|
}
|
|
691
691
|
case 32: {
|
|
692
|
-
(v === Ue || v === ze) && (S < 0 ? V = N - F : S > 0 && (
|
|
692
|
+
(v === Ue || v === ze) && (S < 0 ? V = N - F : S > 0 && (k = L - F), b < 0 ? $ = X - et : b > 0 && (D = A - et), v = ti, yt.attr("cursor", pe.selection), U(nt));
|
|
693
693
|
break;
|
|
694
694
|
}
|
|
695
695
|
default:
|
|
696
696
|
return;
|
|
697
697
|
}
|
|
698
|
-
|
|
698
|
+
Qs(nt);
|
|
699
699
|
}
|
|
700
700
|
function an(nt) {
|
|
701
701
|
switch (nt.keyCode) {
|
|
@@ -704,17 +704,17 @@ function Cu(s) {
|
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
706
|
case 18: {
|
|
707
|
-
v === ze && (S < 0 ? V = N : S > 0 && (
|
|
707
|
+
v === ze && (S < 0 ? V = N : S > 0 && (k = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue, U(nt));
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
710
|
case 32: {
|
|
711
|
-
v ===
|
|
711
|
+
v === ti && (nt.altKey ? (S && (V = N - F * S, k = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze) : (S < 0 ? V = N : S > 0 && (k = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue), yt.attr("cursor", pe[y]), U(nt));
|
|
712
712
|
break;
|
|
713
713
|
}
|
|
714
714
|
default:
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
Qs(nt);
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
function p(m) {
|
|
@@ -728,11 +728,11 @@ function Cu(s) {
|
|
|
728
728
|
return m.extent = ua(t.apply(this, arguments)), m.dim = s, m;
|
|
729
729
|
}
|
|
730
730
|
return c.extent = function(m) {
|
|
731
|
-
return arguments.length ? (t = typeof m == "function" ? m :
|
|
731
|
+
return arguments.length ? (t = typeof m == "function" ? m : Js(ua(m)), c) : t;
|
|
732
732
|
}, c.filter = function(m) {
|
|
733
|
-
return arguments.length ? (e = typeof m == "function" ? m :
|
|
733
|
+
return arguments.length ? (e = typeof m == "function" ? m : Js(!!m), c) : e;
|
|
734
734
|
}, c.touchable = function(m) {
|
|
735
|
-
return arguments.length ? (n = typeof m == "function" ? m :
|
|
735
|
+
return arguments.length ? (n = typeof m == "function" ? m : Js(!!m), c) : n;
|
|
736
736
|
}, c.handleSize = function(m) {
|
|
737
737
|
return arguments.length ? (a = +m, c) : a;
|
|
738
738
|
}, c.keyModifiers = function(m) {
|
|
@@ -742,7 +742,7 @@ function Cu(s) {
|
|
|
742
742
|
return m === r ? c : m;
|
|
743
743
|
}, c;
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const Ai = Math.PI, Mi = 2 * Ai, Ae = 1e-6, Cu = Mi - Ae;
|
|
746
746
|
function Ho(s) {
|
|
747
747
|
this._ += s[0];
|
|
748
748
|
for (let t = 1, e = s.length; t < e; ++t)
|
|
@@ -759,7 +759,7 @@ function Ru(s) {
|
|
|
759
759
|
this._ += Math.round(arguments[i] * e) / e + n[i];
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
let
|
|
762
|
+
let fr = class {
|
|
763
763
|
constructor(t) {
|
|
764
764
|
this._x0 = this._y0 = // start of current subpath
|
|
765
765
|
this._x1 = this._y1 = null, this._ = "", this._append = t == null ? Ho : Ru(t);
|
|
@@ -787,14 +787,14 @@ let dr = class {
|
|
|
787
787
|
else if (u > Ae) if (!(Math.abs(d * c - l * h) > Ae) || !r)
|
|
788
788
|
this._append`L${this._x1 = t},${this._y1 = e}`;
|
|
789
789
|
else {
|
|
790
|
-
let p = n - a, f = i - o, g = c * c + l * l, m = p * p + f * f, E = Math.sqrt(g), y = Math.sqrt(u), v = r * Math.tan((
|
|
790
|
+
let p = n - a, f = i - o, g = c * c + l * l, m = p * p + f * f, E = Math.sqrt(g), y = Math.sqrt(u), v = r * Math.tan((Ai - Math.acos((g + u - m) / (2 * E * y))) / 2), S = v / y, b = v / E;
|
|
791
791
|
Math.abs(S - 1) > Ae && this._append`L${t + S * h},${e + S * d}`, this._append`A${r},${r},0,0,${+(d * p > h * f)},${this._x1 = t + b * c},${this._y1 = e + b * l}`;
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
arc(t, e, n, i, r, a) {
|
|
795
795
|
if (t = +t, e = +e, n = +n, a = !!a, n < 0) throw new Error(`negative radius: ${n}`);
|
|
796
796
|
let o = n * Math.cos(i), c = n * Math.sin(i), l = t + o, h = e + c, d = 1 ^ a, u = a ? i - r : r - i;
|
|
797
|
-
this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > Ae || Math.abs(this._y1 - h) > Ae) && this._append`L${l},${h}`, n && (u < 0 && (u = u %
|
|
797
|
+
this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > Ae || Math.abs(this._y1 - h) > Ae) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Mi + Mi), u > Cu ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > Ae && this._append`A${n},${n},0,${+(u >= Ai)},${d},${this._x1 = t + n * Math.cos(r)},${this._y1 = e + n * Math.sin(r)}`);
|
|
798
798
|
}
|
|
799
799
|
rect(t, e, n, i) {
|
|
800
800
|
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}h${n = +n}v${+i}h${-n}Z`;
|
|
@@ -803,10 +803,10 @@ let dr = class {
|
|
|
803
803
|
return this._;
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
|
-
function
|
|
807
|
-
return new
|
|
806
|
+
function Ps() {
|
|
807
|
+
return new fr();
|
|
808
808
|
}
|
|
809
|
-
|
|
809
|
+
Ps.prototype = fr.prototype;
|
|
810
810
|
var pt = 1e-6, Uo = 1e-12, at = Math.PI, Ht = at / 2, pa = at / 4, Wt = at * 2, Nt = 180 / at, Tt = at / 180, ft = Math.abs, zo = Math.atan, Ie = Math.atan2, gt = Math.cos, Iu = Math.exp, Du = Math.log, dt = Math.sin, be = Math.sign || function(s) {
|
|
811
811
|
return s > 0 ? 1 : s < 0 ? -1 : 0;
|
|
812
812
|
}, se = Math.sqrt, Pu = Math.tan;
|
|
@@ -818,15 +818,15 @@ function Ee(s) {
|
|
|
818
818
|
}
|
|
819
819
|
function Kt() {
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function gs(s, t) {
|
|
822
822
|
s && ga.hasOwnProperty(s.type) && ga[s.type](s, t);
|
|
823
823
|
}
|
|
824
824
|
var fa = {
|
|
825
825
|
Feature: function(s, t) {
|
|
826
|
-
|
|
826
|
+
gs(s.geometry, t);
|
|
827
827
|
},
|
|
828
828
|
FeatureCollection: function(s, t) {
|
|
829
|
-
for (var e = s.features, n = -1, i = e.length; ++n < i; )
|
|
829
|
+
for (var e = s.features, n = -1, i = e.length; ++n < i; ) gs(e[n].geometry, t);
|
|
830
830
|
}
|
|
831
831
|
}, ga = {
|
|
832
832
|
Sphere: function(s, t) {
|
|
@@ -839,10 +839,10 @@ var fa = {
|
|
|
839
839
|
for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) s = e[n], t.point(s[0], s[1], s[2]);
|
|
840
840
|
},
|
|
841
841
|
LineString: function(s, t) {
|
|
842
|
-
|
|
842
|
+
_i(s.coordinates, t, 0);
|
|
843
843
|
},
|
|
844
844
|
MultiLineString: function(s, t) {
|
|
845
|
-
for (var e = s.coordinates, n = -1, i = e.length; ++n < i; )
|
|
845
|
+
for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) _i(e[n], t, 0);
|
|
846
846
|
},
|
|
847
847
|
Polygon: function(s, t) {
|
|
848
848
|
ma(s.coordinates, t);
|
|
@@ -851,46 +851,46 @@ var fa = {
|
|
|
851
851
|
for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) ma(e[n], t);
|
|
852
852
|
},
|
|
853
853
|
GeometryCollection: function(s, t) {
|
|
854
|
-
for (var e = s.geometries, n = -1, i = e.length; ++n < i; )
|
|
854
|
+
for (var e = s.geometries, n = -1, i = e.length; ++n < i; ) gs(e[n], t);
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
|
-
function
|
|
857
|
+
function _i(s, t, e) {
|
|
858
858
|
var n = -1, i = s.length - e, r;
|
|
859
859
|
for (t.lineStart(); ++n < i; ) r = s[n], t.point(r[0], r[1], r[2]);
|
|
860
860
|
t.lineEnd();
|
|
861
861
|
}
|
|
862
862
|
function ma(s, t) {
|
|
863
863
|
var e = -1, n = s.length;
|
|
864
|
-
for (t.polygonStart(); ++e < n; )
|
|
864
|
+
for (t.polygonStart(); ++e < n; ) _i(s[e], t, 1);
|
|
865
865
|
t.polygonEnd();
|
|
866
866
|
}
|
|
867
867
|
function je(s, t) {
|
|
868
|
-
s && fa.hasOwnProperty(s.type) ? fa[s.type](s, t) :
|
|
868
|
+
s && fa.hasOwnProperty(s.type) ? fa[s.type](s, t) : gs(s, t);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function ki(s) {
|
|
871
871
|
return [Ie(s[1], s[0]), Ee(s[2])];
|
|
872
872
|
}
|
|
873
873
|
function nn(s) {
|
|
874
874
|
var t = s[0], e = s[1], n = gt(e);
|
|
875
875
|
return [n * gt(t), n * dt(t), dt(e)];
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Xn(s, t) {
|
|
878
878
|
return s[0] * t[0] + s[1] * t[1] + s[2] * t[2];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function ms(s, t) {
|
|
881
881
|
return [s[1] * t[2] - s[2] * t[1], s[2] * t[0] - s[0] * t[2], s[0] * t[1] - s[1] * t[0]];
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function si(s, t) {
|
|
884
884
|
s[0] += t[0], s[1] += t[1], s[2] += t[2];
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function jn(s, t) {
|
|
887
887
|
return [s[0] * t, s[1] * t, s[2] * t];
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Ci(s) {
|
|
890
890
|
var t = se(s[0] * s[0] + s[1] * s[1] + s[2] * s[2]);
|
|
891
891
|
s[0] /= t, s[1] /= t, s[2] /= t;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Ri(s, t) {
|
|
894
894
|
function e(n, i) {
|
|
895
895
|
return n = s(n, i), t(n[0], n[1]);
|
|
896
896
|
}
|
|
@@ -898,12 +898,12 @@ function Ci(s, t) {
|
|
|
898
898
|
return n = t.invert(n, i), n && s.invert(n[0], n[1]);
|
|
899
899
|
}), e;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Ii(s, t) {
|
|
902
902
|
return ft(s) > at && (s -= Math.round(s / Wt) * Wt), [s, t];
|
|
903
903
|
}
|
|
904
|
-
|
|
904
|
+
Ii.invert = Ii;
|
|
905
905
|
function Fo(s, t, e) {
|
|
906
|
-
return (s %= Wt) ? t || e ?
|
|
906
|
+
return (s %= Wt) ? t || e ? Ri(ya(s), Ea(t, e)) : ya(s) : t || e ? Ea(t, e) : Ii;
|
|
907
907
|
}
|
|
908
908
|
function va(s) {
|
|
909
909
|
return function(t, e) {
|
|
@@ -945,11 +945,11 @@ function Vu(s, t, e, n, i, r) {
|
|
|
945
945
|
var a = gt(t), o = dt(t), c = n * e;
|
|
946
946
|
i == null ? (i = t + n * Wt, r = t - c / 2) : (i = Sa(a, i), r = Sa(a, r), (n > 0 ? i < r : i > r) && (i += n * Wt));
|
|
947
947
|
for (var l, h = i; n > 0 ? h > r : h < r; h -= c)
|
|
948
|
-
l =
|
|
948
|
+
l = ki([a, -o * gt(h), -o * dt(h)]), s.point(l[0], l[1]);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
function Sa(s, t) {
|
|
952
|
-
t = nn(t), t[0] -= s,
|
|
952
|
+
t = nn(t), t[0] -= s, Ci(t);
|
|
953
953
|
var e = Nu(-t[1]);
|
|
954
954
|
return ((-t[2] < 0 ? -e : e) + Wt - pt) % Wt;
|
|
955
955
|
}
|
|
@@ -972,10 +972,10 @@ function Wo() {
|
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function ls(s, t) {
|
|
976
976
|
return ft(s[0] - t[0]) < pt && ft(s[1] - t[1]) < pt;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Yn(s, t, e, n) {
|
|
979
979
|
this.x = s, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
980
980
|
}
|
|
981
981
|
function Xo(s, t, e, n, i) {
|
|
@@ -983,7 +983,7 @@ function Xo(s, t, e, n, i) {
|
|
|
983
983
|
if (s.forEach(function(f) {
|
|
984
984
|
if (!((g = f.length - 1) <= 0)) {
|
|
985
985
|
var g, m = f[0], E = f[g], y;
|
|
986
|
-
if (
|
|
986
|
+
if (ls(m, E)) {
|
|
987
987
|
if (!m[2] && !E[2]) {
|
|
988
988
|
for (i.lineStart(), o = 0; o < g; ++o) i.point((m = f[o])[0], m[1]);
|
|
989
989
|
i.lineEnd();
|
|
@@ -991,7 +991,7 @@ function Xo(s, t, e, n, i) {
|
|
|
991
991
|
}
|
|
992
992
|
E[0] += 2 * pt;
|
|
993
993
|
}
|
|
994
|
-
r.push(y = new
|
|
994
|
+
r.push(y = new Yn(m, f, null, !0)), a.push(y.o = new Yn(m, null, y, !1)), r.push(y = new Yn(E, f, null, !1)), a.push(y.o = new Yn(E, null, y, !0));
|
|
995
995
|
}
|
|
996
996
|
}), !!r.length) {
|
|
997
997
|
for (a.sort(t), xa(r), xa(a), o = 0, c = a.length; o < c; ++o)
|
|
@@ -1026,23 +1026,23 @@ function xa(s) {
|
|
|
1026
1026
|
n.n = i = s[0], i.p = n;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function ii(s) {
|
|
1030
1030
|
return ft(s[0]) <= at ? s[0] : be(s[0]) * ((ft(s[0]) + at) % Wt - at);
|
|
1031
1031
|
}
|
|
1032
1032
|
function Bu(s, t) {
|
|
1033
|
-
var e =
|
|
1033
|
+
var e = ii(t), n = t[1], i = dt(n), r = [dt(e), -gt(e), 0], a = 0, o = 0, c = new Re();
|
|
1034
1034
|
i === 1 ? n = Ht + pt : i === -1 && (n = -Ht - pt);
|
|
1035
1035
|
for (var l = 0, h = s.length; l < h; ++l)
|
|
1036
1036
|
if (u = (d = s[l]).length)
|
|
1037
|
-
for (var d, u, p = d[u - 1], f =
|
|
1038
|
-
var v = d[y], S =
|
|
1039
|
-
if (c.add(Ie(B * G * dt(
|
|
1040
|
-
var D =
|
|
1041
|
-
|
|
1042
|
-
var A =
|
|
1043
|
-
|
|
1044
|
-
var w = (L ^
|
|
1045
|
-
(n > w || n === w && (D[0] || D[1])) && (o += L ^
|
|
1037
|
+
for (var d, u, p = d[u - 1], f = ii(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = I, p = v) {
|
|
1038
|
+
var v = d[y], S = ii(v), b = v[1] / 2 + pa, O = dt(b), I = gt(b), C = S - f, G = C >= 0 ? 1 : -1, k = G * C, L = k > at, B = m * O;
|
|
1039
|
+
if (c.add(Ie(B * G * dt(k), E * I + B * gt(k))), a += L ? C + G * Wt : C, L ^ f >= e ^ S >= e) {
|
|
1040
|
+
var D = ms(nn(p), nn(v));
|
|
1041
|
+
Ci(D);
|
|
1042
|
+
var A = ms(r, D);
|
|
1043
|
+
Ci(A);
|
|
1044
|
+
var w = (L ^ C >= 0 ? -1 : 1) * Ee(A[2]);
|
|
1045
|
+
(n > w || n === w && (D[0] || D[1])) && (o += L ^ C >= 0 ? 1 : -1);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
return (a < -pt || a < pt && c < -Uo) ^ o & 1;
|
|
@@ -1085,11 +1085,11 @@ function jo(s, t, e, n) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function v() {
|
|
1087
1087
|
E(d[0][0], d[0][1]), o.lineEnd();
|
|
1088
|
-
var S = o.clean(), b = a.result(), O, I = b.length,
|
|
1088
|
+
var S = o.clean(), b = a.result(), O, I = b.length, C, G, k;
|
|
1089
1089
|
if (d.pop(), l.push(d), d = null, !!I) {
|
|
1090
1090
|
if (S & 1) {
|
|
1091
|
-
if (G = b[0], (
|
|
1092
|
-
for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O <
|
|
1091
|
+
if (G = b[0], (C = G.length - 1) > 0) {
|
|
1092
|
+
for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O < C; ++O) i.point((k = G[O])[0], k[1]);
|
|
1093
1093
|
i.lineEnd();
|
|
1094
1094
|
}
|
|
1095
1095
|
return;
|
|
@@ -1162,13 +1162,13 @@ function Wu(s) {
|
|
|
1162
1162
|
},
|
|
1163
1163
|
point: function(m, E) {
|
|
1164
1164
|
var y = [m, E], v, S = a(m, E), b = n ? S ? 0 : l(m, E) : S ? l(m + (m < 0 ? at : -at), E) : 0;
|
|
1165
|
-
if (!d && (f = p = S) && h.lineStart(), S !== p && (v = c(d, y), (!v ||
|
|
1165
|
+
if (!d && (f = p = S) && h.lineStart(), S !== p && (v = c(d, y), (!v || ls(d, v) || ls(y, v)) && (y[2] = 1)), S !== p)
|
|
1166
1166
|
g = 0, S ? (h.lineStart(), v = c(y, d), h.point(v[0], v[1])) : (v = c(d, y), h.point(v[0], v[1], 2), h.lineEnd()), d = v;
|
|
1167
1167
|
else if (i && d && n ^ S) {
|
|
1168
1168
|
var O;
|
|
1169
1169
|
!(b & u) && (O = c(y, d, !0)) && (g = 0, n ? (h.lineStart(), h.point(O[0][0], O[0][1]), h.point(O[1][0], O[1][1]), h.lineEnd()) : (h.point(O[1][0], O[1][1]), h.lineEnd(), h.lineStart(), h.point(O[0][0], O[0][1], 3)));
|
|
1170
1170
|
}
|
|
1171
|
-
S && (!d || !
|
|
1171
|
+
S && (!d || !ls(d, y)) && h.point(y[0], y[1]), d = y, p = S, u = b;
|
|
1172
1172
|
},
|
|
1173
1173
|
lineEnd: function() {
|
|
1174
1174
|
p && h.lineEnd(), d = null;
|
|
@@ -1181,20 +1181,20 @@ function Wu(s) {
|
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
function c(h, d, u) {
|
|
1184
|
-
var p = nn(h), f = nn(d), g = [1, 0, 0], m =
|
|
1184
|
+
var p = nn(h), f = nn(d), g = [1, 0, 0], m = ms(p, f), E = Xn(m, m), y = m[0], v = E - y * y;
|
|
1185
1185
|
if (!v) return !u && h;
|
|
1186
|
-
var S = t * E / v, b = -t * y / v, O =
|
|
1187
|
-
|
|
1188
|
-
var G = O,
|
|
1186
|
+
var S = t * E / v, b = -t * y / v, O = ms(g, m), I = jn(g, S), C = jn(m, b);
|
|
1187
|
+
si(I, C);
|
|
1188
|
+
var G = O, k = Xn(I, G), L = Xn(G, G), B = k * k - L * (Xn(I, I) - 1);
|
|
1189
1189
|
if (!(B < 0)) {
|
|
1190
|
-
var D = se(B), A =
|
|
1191
|
-
if (
|
|
1190
|
+
var D = se(B), A = jn(G, (-k - D) / L);
|
|
1191
|
+
if (si(A, I), A = ki(A), !u) return A;
|
|
1192
1192
|
var w = h[0], V = d[0], N = h[1], P = d[1], $;
|
|
1193
1193
|
V < w && ($ = w, w = V, V = $);
|
|
1194
1194
|
var X = V - w, F = ft(X - at) < pt, et = F || X < pt;
|
|
1195
1195
|
if (!F && P < N && ($ = N, N = P, P = $), et ? F ? N + P > 0 ^ A[1] < (ft(A[0] - w) < pt ? N : P) : N <= A[1] && A[1] <= P : X > at ^ (w <= A[0] && A[0] <= V)) {
|
|
1196
|
-
var J =
|
|
1197
|
-
return
|
|
1196
|
+
var J = jn(G, (-k + D) / L);
|
|
1197
|
+
return si(J, I), [A, ki(J)];
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1244,7 +1244,7 @@ function Xu(s, t, e, n, i, r) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
var yn = 1e9,
|
|
1247
|
+
var yn = 1e9, qn = -yn;
|
|
1248
1248
|
function ju(s, t, e, n) {
|
|
1249
1249
|
function i(l, h) {
|
|
1250
1250
|
return s <= l && l <= e && t <= h && h <= n;
|
|
@@ -1270,13 +1270,13 @@ function ju(s, t, e, n) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
return function(l) {
|
|
1272
1272
|
var h = l, d = Wo(), u, p, f, g, m, E, y, v, S, b, O, I = {
|
|
1273
|
-
point:
|
|
1273
|
+
point: C,
|
|
1274
1274
|
lineStart: B,
|
|
1275
1275
|
lineEnd: D,
|
|
1276
|
-
polygonStart:
|
|
1276
|
+
polygonStart: k,
|
|
1277
1277
|
polygonEnd: L
|
|
1278
1278
|
};
|
|
1279
|
-
function
|
|
1279
|
+
function C(w, V) {
|
|
1280
1280
|
i(w, V) && h.point(w, V);
|
|
1281
1281
|
}
|
|
1282
1282
|
function G() {
|
|
@@ -1285,7 +1285,7 @@ function ju(s, t, e, n) {
|
|
|
1285
1285
|
et = ct, J = Q, F = P[$], ct = F[0], Q = F[1], J <= n ? Q > n && (ct - et) * (n - J) > (Q - J) * (s - et) && ++w : Q <= n && (ct - et) * (n - J) < (Q - J) * (s - et) && --w;
|
|
1286
1286
|
return w;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function k() {
|
|
1289
1289
|
h = d, u = [], p = [], O = !0;
|
|
1290
1290
|
}
|
|
1291
1291
|
function L() {
|
|
@@ -1296,7 +1296,7 @@ function ju(s, t, e, n) {
|
|
|
1296
1296
|
I.point = A, p && p.push(f = []), b = !0, S = !1, y = v = NaN;
|
|
1297
1297
|
}
|
|
1298
1298
|
function D() {
|
|
1299
|
-
u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point =
|
|
1299
|
+
u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point = C, S && h.lineEnd();
|
|
1300
1300
|
}
|
|
1301
1301
|
function A(w, V) {
|
|
1302
1302
|
var N = i(w, V);
|
|
@@ -1304,7 +1304,7 @@ function ju(s, t, e, n) {
|
|
|
1304
1304
|
g = w, m = V, E = N, b = !1, N && (h.lineStart(), h.point(w, V));
|
|
1305
1305
|
else if (N && S) h.point(w, V);
|
|
1306
1306
|
else {
|
|
1307
|
-
var P = [y = Math.max(
|
|
1307
|
+
var P = [y = Math.max(qn, Math.min(yn, y)), v = Math.max(qn, Math.min(yn, v))], $ = [w = Math.max(qn, Math.min(yn, w)), V = Math.max(qn, Math.min(yn, V))];
|
|
1308
1308
|
Xu(P, $, s, t, e, n) ? (S || (h.lineStart(), h.point(P[0], P[1])), h.point($[0], $[1]), N || h.lineEnd(), O = !1) : N && (h.lineStart(), h.point(w, V), O = !1);
|
|
1309
1309
|
}
|
|
1310
1310
|
y = w, v = V, S = N;
|
|
@@ -1312,8 +1312,8 @@ function ju(s, t, e, n) {
|
|
|
1312
1312
|
return I;
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
|
-
const
|
|
1316
|
-
var
|
|
1315
|
+
const Di = (s) => s;
|
|
1316
|
+
var ri = new Re(), Pi = new Re(), Yo, qo, Ni, $i, ve = {
|
|
1317
1317
|
point: Kt,
|
|
1318
1318
|
lineStart: Kt,
|
|
1319
1319
|
lineEnd: Kt,
|
|
@@ -1321,40 +1321,40 @@ var si = new Re(), Ii = new Re(), Yo, qo, Di, Pi, ve = {
|
|
|
1321
1321
|
ve.lineStart = Yu, ve.lineEnd = Zu;
|
|
1322
1322
|
},
|
|
1323
1323
|
polygonEnd: function() {
|
|
1324
|
-
ve.lineStart = ve.lineEnd = ve.point = Kt,
|
|
1324
|
+
ve.lineStart = ve.lineEnd = ve.point = Kt, ri.add(ft(Pi)), Pi = new Re();
|
|
1325
1325
|
},
|
|
1326
1326
|
result: function() {
|
|
1327
|
-
var s =
|
|
1328
|
-
return
|
|
1327
|
+
var s = ri / 2;
|
|
1328
|
+
return ri = new Re(), s;
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
1331
1331
|
function Yu() {
|
|
1332
1332
|
ve.point = qu;
|
|
1333
1333
|
}
|
|
1334
1334
|
function qu(s, t) {
|
|
1335
|
-
ve.point = Zo, Yo =
|
|
1335
|
+
ve.point = Zo, Yo = Ni = s, qo = $i = t;
|
|
1336
1336
|
}
|
|
1337
1337
|
function Zo(s, t) {
|
|
1338
|
-
|
|
1338
|
+
Pi.add($i * s - Ni * t), Ni = s, $i = t;
|
|
1339
1339
|
}
|
|
1340
1340
|
function Zu() {
|
|
1341
1341
|
Zo(Yo, qo);
|
|
1342
1342
|
}
|
|
1343
|
-
var sn = 1 / 0,
|
|
1343
|
+
var sn = 1 / 0, vs = sn, Cn = -sn, ys = Cn, Es = {
|
|
1344
1344
|
point: Ku,
|
|
1345
1345
|
lineStart: Kt,
|
|
1346
1346
|
lineEnd: Kt,
|
|
1347
1347
|
polygonStart: Kt,
|
|
1348
1348
|
polygonEnd: Kt,
|
|
1349
1349
|
result: function() {
|
|
1350
|
-
var s = [[sn,
|
|
1351
|
-
return
|
|
1350
|
+
var s = [[sn, vs], [Cn, ys]];
|
|
1351
|
+
return Cn = ys = -(vs = sn = 1 / 0), s;
|
|
1352
1352
|
}
|
|
1353
1353
|
};
|
|
1354
1354
|
function Ku(s, t) {
|
|
1355
|
-
s < sn && (sn = s), s >
|
|
1355
|
+
s < sn && (sn = s), s > Cn && (Cn = s), t < vs && (vs = t), t > ys && (ys = t);
|
|
1356
1356
|
}
|
|
1357
|
-
var
|
|
1357
|
+
var Vi = 0, Bi = 0, En = 0, Ss = 0, xs = 0, Je = 0, Gi = 0, Hi = 0, Sn = 0, Ko, Jo, le, ce, Zt = {
|
|
1358
1358
|
point: De,
|
|
1359
1359
|
lineStart: Ta,
|
|
1360
1360
|
lineEnd: Oa,
|
|
@@ -1365,12 +1365,12 @@ var Ni = 0, $i = 0, En = 0, ys = 0, Es = 0, Je = 0, Vi = 0, Bi = 0, Sn = 0, Ko,
|
|
|
1365
1365
|
Zt.point = De, Zt.lineStart = Ta, Zt.lineEnd = Oa;
|
|
1366
1366
|
},
|
|
1367
1367
|
result: function() {
|
|
1368
|
-
var s = Sn ? [
|
|
1369
|
-
return
|
|
1368
|
+
var s = Sn ? [Gi / Sn, Hi / Sn] : Je ? [Ss / Je, xs / Je] : En ? [Vi / En, Bi / En] : [NaN, NaN];
|
|
1369
|
+
return Vi = Bi = En = Ss = xs = Je = Gi = Hi = Sn = 0, s;
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
1372
|
function De(s, t) {
|
|
1373
|
-
|
|
1373
|
+
Vi += s, Bi += t, ++En;
|
|
1374
1374
|
}
|
|
1375
1375
|
function Ta() {
|
|
1376
1376
|
Zt.point = Ju;
|
|
@@ -1380,7 +1380,7 @@ function Ju(s, t) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
function Qu(s, t) {
|
|
1382
1382
|
var e = s - le, n = t - ce, i = se(e * e + n * n);
|
|
1383
|
-
|
|
1383
|
+
Ss += i * (le + s) / 2, xs += i * (ce + t) / 2, Je += i, De(le = s, ce = t);
|
|
1384
1384
|
}
|
|
1385
1385
|
function Oa() {
|
|
1386
1386
|
Zt.point = De;
|
|
@@ -1396,7 +1396,7 @@ function nh(s, t) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
function Qo(s, t) {
|
|
1398
1398
|
var e = s - le, n = t - ce, i = se(e * e + n * n);
|
|
1399
|
-
|
|
1399
|
+
Ss += i * (le + s) / 2, xs += i * (ce + t) / 2, Je += i, i = ce * s - le * t, Gi += i * (le + s), Hi += i * (ce + t), Sn += i * 3, De(le = s, ce = t);
|
|
1400
1400
|
}
|
|
1401
1401
|
function tl(s) {
|
|
1402
1402
|
this._context = s;
|
|
@@ -1436,32 +1436,32 @@ tl.prototype = {
|
|
|
1436
1436
|
},
|
|
1437
1437
|
result: Kt
|
|
1438
1438
|
};
|
|
1439
|
-
var
|
|
1439
|
+
var Ui = new Re(), ai, el, nl, xn, bn, Rn = {
|
|
1440
1440
|
point: Kt,
|
|
1441
1441
|
lineStart: function() {
|
|
1442
1442
|
Rn.point = sh;
|
|
1443
1443
|
},
|
|
1444
1444
|
lineEnd: function() {
|
|
1445
|
-
|
|
1445
|
+
ai && sl(el, nl), Rn.point = Kt;
|
|
1446
1446
|
},
|
|
1447
1447
|
polygonStart: function() {
|
|
1448
|
-
|
|
1448
|
+
ai = !0;
|
|
1449
1449
|
},
|
|
1450
1450
|
polygonEnd: function() {
|
|
1451
|
-
|
|
1451
|
+
ai = null;
|
|
1452
1452
|
},
|
|
1453
1453
|
result: function() {
|
|
1454
|
-
var s = +
|
|
1455
|
-
return
|
|
1454
|
+
var s = +Ui;
|
|
1455
|
+
return Ui = new Re(), s;
|
|
1456
1456
|
}
|
|
1457
1457
|
};
|
|
1458
1458
|
function sh(s, t) {
|
|
1459
1459
|
Rn.point = sl, el = xn = s, nl = bn = t;
|
|
1460
1460
|
}
|
|
1461
1461
|
function sl(s, t) {
|
|
1462
|
-
xn -= s, bn -= t,
|
|
1462
|
+
xn -= s, bn -= t, Ui.add(se(xn * xn + bn * bn)), xn = s, bn = t;
|
|
1463
1463
|
}
|
|
1464
|
-
let wa,
|
|
1464
|
+
let wa, bs, La, Aa;
|
|
1465
1465
|
class Ma {
|
|
1466
1466
|
constructor(t) {
|
|
1467
1467
|
this._append = t == null ? il : ih(t), this._radius = 4.5, this._ = "";
|
|
@@ -1492,9 +1492,9 @@ class Ma {
|
|
|
1492
1492
|
break;
|
|
1493
1493
|
}
|
|
1494
1494
|
default: {
|
|
1495
|
-
if (this._append`M${t},${e}`, this._radius !== La || this._append !==
|
|
1495
|
+
if (this._append`M${t},${e}`, this._radius !== La || this._append !== bs) {
|
|
1496
1496
|
const n = this._radius, i = this._;
|
|
1497
|
-
this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, La = n,
|
|
1497
|
+
this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, La = n, bs = this._append, Aa = this._, this._ = i;
|
|
1498
1498
|
}
|
|
1499
1499
|
this._ += Aa;
|
|
1500
1500
|
break;
|
|
@@ -1518,14 +1518,14 @@ function ih(s) {
|
|
|
1518
1518
|
if (t > 15) return il;
|
|
1519
1519
|
if (t !== wa) {
|
|
1520
1520
|
const e = 10 ** t;
|
|
1521
|
-
wa = t,
|
|
1521
|
+
wa = t, bs = function(i) {
|
|
1522
1522
|
let r = 1;
|
|
1523
1523
|
this._ += i[0];
|
|
1524
1524
|
for (const a = i.length; r < a; ++r)
|
|
1525
1525
|
this._ += Math.round(arguments[r] * e) / e + i[r];
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
|
-
return
|
|
1528
|
+
return bs;
|
|
1529
1529
|
}
|
|
1530
1530
|
function rh(s, t) {
|
|
1531
1531
|
let e = 3, n = 4.5, i, r;
|
|
@@ -1537,11 +1537,11 @@ function rh(s, t) {
|
|
|
1537
1537
|
}, a.measure = function(o) {
|
|
1538
1538
|
return je(o, i(Rn)), Rn.result();
|
|
1539
1539
|
}, a.bounds = function(o) {
|
|
1540
|
-
return je(o, i(
|
|
1540
|
+
return je(o, i(Es)), Es.result();
|
|
1541
1541
|
}, a.centroid = function(o) {
|
|
1542
1542
|
return je(o, i(Zt)), Zt.result();
|
|
1543
1543
|
}, a.projection = function(o) {
|
|
1544
|
-
return arguments.length ? (i = o == null ? (s = null,
|
|
1544
|
+
return arguments.length ? (i = o == null ? (s = null, Di) : (s = o).stream, a) : s;
|
|
1545
1545
|
}, a.context = function(o) {
|
|
1546
1546
|
return arguments.length ? (r = o == null ? (t = null, new Ma(e)) : new tl(t = o), typeof n != "function" && r.pointRadius(n), a) : t;
|
|
1547
1547
|
}, a.pointRadius = function(o) {
|
|
@@ -1557,17 +1557,17 @@ function rh(s, t) {
|
|
|
1557
1557
|
return t === null && (r = new Ma(e)), a;
|
|
1558
1558
|
}, a.projection(s).digits(e).context(t);
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function gr(s) {
|
|
1561
1561
|
return function(t) {
|
|
1562
|
-
var e = new
|
|
1562
|
+
var e = new zi();
|
|
1563
1563
|
for (var n in s) e[n] = s[n];
|
|
1564
1564
|
return e.stream = t, e;
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function zi() {
|
|
1568
1568
|
}
|
|
1569
|
-
|
|
1570
|
-
constructor:
|
|
1569
|
+
zi.prototype = {
|
|
1570
|
+
constructor: zi,
|
|
1571
1571
|
point: function(s, t) {
|
|
1572
1572
|
this.stream.point(s, t);
|
|
1573
1573
|
},
|
|
@@ -1587,12 +1587,12 @@ Hi.prototype = {
|
|
|
1587
1587
|
this.stream.polygonEnd();
|
|
1588
1588
|
}
|
|
1589
1589
|
};
|
|
1590
|
-
function
|
|
1590
|
+
function mr(s, t, e) {
|
|
1591
1591
|
var n = s.clipExtent && s.clipExtent();
|
|
1592
|
-
return s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), je(e, s.stream(
|
|
1592
|
+
return s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), je(e, s.stream(Es)), t(Es.result()), n != null && s.clipExtent(n), s;
|
|
1593
1593
|
}
|
|
1594
1594
|
function rl(s, t, e) {
|
|
1595
|
-
return
|
|
1595
|
+
return mr(s, function(n) {
|
|
1596
1596
|
var i = t[1][0] - t[0][0], r = t[1][1] - t[0][1], a = Math.min(i / (n[1][0] - n[0][0]), r / (n[1][1] - n[0][1])), o = +t[0][0] + (i - a * (n[1][0] + n[0][0])) / 2, c = +t[0][1] + (r - a * (n[1][1] + n[0][1])) / 2;
|
|
1597
1597
|
s.scale(150 * a).translate([o, c]);
|
|
1598
1598
|
}, e);
|
|
@@ -1601,23 +1601,23 @@ function ah(s, t, e) {
|
|
|
1601
1601
|
return rl(s, [[0, 0], t], e);
|
|
1602
1602
|
}
|
|
1603
1603
|
function oh(s, t, e) {
|
|
1604
|
-
return
|
|
1604
|
+
return mr(s, function(n) {
|
|
1605
1605
|
var i = +t, r = i / (n[1][0] - n[0][0]), a = (i - r * (n[1][0] + n[0][0])) / 2, o = -r * n[0][1];
|
|
1606
1606
|
s.scale(150 * r).translate([a, o]);
|
|
1607
1607
|
}, e);
|
|
1608
1608
|
}
|
|
1609
1609
|
function lh(s, t, e) {
|
|
1610
|
-
return
|
|
1610
|
+
return mr(s, function(n) {
|
|
1611
1611
|
var i = +t, r = i / (n[1][1] - n[0][1]), a = -r * n[0][0], o = (i - r * (n[1][1] + n[0][1])) / 2;
|
|
1612
1612
|
s.scale(150 * r).translate([a, o]);
|
|
1613
1613
|
}, e);
|
|
1614
1614
|
}
|
|
1615
1615
|
var _a = 16, ch = gt(30 * Tt);
|
|
1616
|
-
function
|
|
1616
|
+
function ka(s, t) {
|
|
1617
1617
|
return +t ? hh(s, t) : uh(s);
|
|
1618
1618
|
}
|
|
1619
1619
|
function uh(s) {
|
|
1620
|
-
return
|
|
1620
|
+
return gr({
|
|
1621
1621
|
point: function(t, e) {
|
|
1622
1622
|
t = s(t, e), this.stream.point(t[0], t[1]);
|
|
1623
1623
|
}
|
|
@@ -1627,7 +1627,7 @@ function hh(s, t) {
|
|
|
1627
1627
|
function e(n, i, r, a, o, c, l, h, d, u, p, f, g, m) {
|
|
1628
1628
|
var E = l - n, y = h - i, v = E * E + y * y;
|
|
1629
1629
|
if (v > 4 * t && g--) {
|
|
1630
|
-
var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O),
|
|
1630
|
+
var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O), C = Ee(O /= I), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), k = s(G, C), L = k[0], B = k[1], D = L - n, A = B - i, w = y * D - E * A;
|
|
1631
1631
|
(w * w / v > t || ft((E * D + y * A) / v - 0.5) > 0.3 || a * u + o * p + c * f < ch) && (e(n, i, r, a, o, c, L, B, G, S /= I, b /= I, O, g, m), m.point(L, B), e(L, B, G, S, b, O, l, h, d, u, p, f, g, m));
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
@@ -1643,15 +1643,15 @@ function hh(s, t) {
|
|
|
1643
1643
|
n.polygonEnd(), m.lineStart = y;
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
|
-
function E(
|
|
1647
|
-
|
|
1646
|
+
function E(C, G) {
|
|
1647
|
+
C = s(C, G), n.point(C[0], C[1]);
|
|
1648
1648
|
}
|
|
1649
1649
|
function y() {
|
|
1650
1650
|
d = NaN, m.point = v, n.lineStart();
|
|
1651
1651
|
}
|
|
1652
|
-
function v(
|
|
1653
|
-
var
|
|
1654
|
-
e(d, u, h, p, f, g, d = L[0], u = L[1], h =
|
|
1652
|
+
function v(C, G) {
|
|
1653
|
+
var k = nn([C, G]), L = s(C, G);
|
|
1654
|
+
e(d, u, h, p, f, g, d = L[0], u = L[1], h = C, p = k[0], f = k[1], g = k[2], _a, n), n.point(d, u);
|
|
1655
1655
|
}
|
|
1656
1656
|
function S() {
|
|
1657
1657
|
m.point = E, n.lineEnd();
|
|
@@ -1659,8 +1659,8 @@ function hh(s, t) {
|
|
|
1659
1659
|
function b() {
|
|
1660
1660
|
y(), m.point = O, m.lineEnd = I;
|
|
1661
1661
|
}
|
|
1662
|
-
function O(
|
|
1663
|
-
v(i =
|
|
1662
|
+
function O(C, G) {
|
|
1663
|
+
v(i = C, G), r = d, a = u, o = p, c = f, l = g, m.point = v;
|
|
1664
1664
|
}
|
|
1665
1665
|
function I() {
|
|
1666
1666
|
e(d, u, h, p, f, g, r, a, i, o, c, l, _a, n), m.lineEnd = S, S();
|
|
@@ -1668,13 +1668,13 @@ function hh(s, t) {
|
|
|
1668
1668
|
return m;
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
1671
|
-
var dh =
|
|
1671
|
+
var dh = gr({
|
|
1672
1672
|
point: function(s, t) {
|
|
1673
1673
|
this.stream.point(s * Tt, t * Tt);
|
|
1674
1674
|
}
|
|
1675
1675
|
});
|
|
1676
1676
|
function ph(s) {
|
|
1677
|
-
return
|
|
1677
|
+
return gr({
|
|
1678
1678
|
point: function(t, e) {
|
|
1679
1679
|
var n = s(t, e);
|
|
1680
1680
|
return this.stream.point(n[0], n[1]);
|
|
@@ -1689,7 +1689,7 @@ function fh(s, t, e, n, i) {
|
|
|
1689
1689
|
return [(a - t) / s * n, (e - o) / s * i];
|
|
1690
1690
|
}, r;
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Ca(s, t, e, n, i, r) {
|
|
1693
1693
|
if (!r) return fh(s, t, e, n, i);
|
|
1694
1694
|
var a = gt(r), o = dt(r), c = a * s, l = o * s, h = a / s, d = o / s, u = (o * e - a * t) / s, p = (o * t + a * e) / s;
|
|
1695
1695
|
function f(g, m) {
|
|
@@ -1699,21 +1699,21 @@ function ka(s, t, e, n, i, r) {
|
|
|
1699
1699
|
return [n * (h * g - d * m + u), i * (p - d * g - h * m)];
|
|
1700
1700
|
}, f;
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Ns(s) {
|
|
1703
1703
|
return al(function() {
|
|
1704
1704
|
return s;
|
|
1705
1705
|
})();
|
|
1706
1706
|
}
|
|
1707
1707
|
function al(s) {
|
|
1708
|
-
var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S =
|
|
1708
|
+
var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Di, b = 0.5, O, I, C, G, k;
|
|
1709
1709
|
function L(w) {
|
|
1710
|
-
return
|
|
1710
|
+
return C(w[0] * Tt, w[1] * Tt);
|
|
1711
1711
|
}
|
|
1712
1712
|
function B(w) {
|
|
1713
|
-
return w =
|
|
1713
|
+
return w = C.invert(w[0], w[1]), w && [w[0] * Nt, w[1] * Nt];
|
|
1714
1714
|
}
|
|
1715
1715
|
L.stream = function(w) {
|
|
1716
|
-
return G &&
|
|
1716
|
+
return G && k === w ? G : G = dh(ph(h)(g(O(S(k = w)))));
|
|
1717
1717
|
}, L.preclip = function(w) {
|
|
1718
1718
|
return arguments.length ? (g = w, f = void 0, A()) : g;
|
|
1719
1719
|
}, L.postclip = function(w) {
|
|
@@ -1721,7 +1721,7 @@ function al(s) {
|
|
|
1721
1721
|
}, L.clipAngle = function(w) {
|
|
1722
1722
|
return arguments.length ? (g = +w ? Wu(f = w * Tt) : (f = null, ba), A()) : f * Nt;
|
|
1723
1723
|
}, L.clipExtent = function(w) {
|
|
1724
|
-
return arguments.length ? (S = w == null ? (m = E = y = v = null,
|
|
1724
|
+
return arguments.length ? (S = w == null ? (m = E = y = v = null, Di) : ju(m = +w[0][0], E = +w[0][1], y = +w[1][0], v = +w[1][1]), A()) : m == null ? null : [[m, E], [y, v]];
|
|
1725
1725
|
}, L.scale = function(w) {
|
|
1726
1726
|
return arguments.length ? (e = +w, D()) : e;
|
|
1727
1727
|
}, L.translate = function(w) {
|
|
@@ -1737,7 +1737,7 @@ function al(s) {
|
|
|
1737
1737
|
}, L.reflectY = function(w) {
|
|
1738
1738
|
return arguments.length ? (p = w ? -1 : 1, D()) : p < 0;
|
|
1739
1739
|
}, L.precision = function(w) {
|
|
1740
|
-
return arguments.length ? (O =
|
|
1740
|
+
return arguments.length ? (O = ka(I, b = w * w), A()) : se(b);
|
|
1741
1741
|
}, L.fitExtent = function(w, V) {
|
|
1742
1742
|
return rl(L, w, V);
|
|
1743
1743
|
}, L.fitSize = function(w, V) {
|
|
@@ -1748,11 +1748,11 @@ function al(s) {
|
|
|
1748
1748
|
return lh(L, w, V);
|
|
1749
1749
|
};
|
|
1750
1750
|
function D() {
|
|
1751
|
-
var w =
|
|
1752
|
-
return h = Fo(o, c, l), I =
|
|
1751
|
+
var w = Ca(e, 0, 0, u, p, d).apply(null, t(r, a)), V = Ca(e, n - w[0], i - w[1], u, p, d);
|
|
1752
|
+
return h = Fo(o, c, l), I = Ri(t, V), C = Ri(h, I), O = ka(I, b), A();
|
|
1753
1753
|
}
|
|
1754
1754
|
function A() {
|
|
1755
|
-
return G =
|
|
1755
|
+
return G = k = null, L;
|
|
1756
1756
|
}
|
|
1757
1757
|
return function() {
|
|
1758
1758
|
return t = s.apply(this, arguments), L.invert = t.invert && B, D();
|
|
@@ -1792,17 +1792,17 @@ function ll() {
|
|
|
1792
1792
|
function vh() {
|
|
1793
1793
|
return ll().parallels([29.5, 45.5]).scale(1070).translate([480, 250]).rotate([96, 0]).center([-0.6, 38.7]);
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function vr(s, t) {
|
|
1796
1796
|
return [s, Du(Pu((Ht + t) / 2))];
|
|
1797
1797
|
}
|
|
1798
|
-
|
|
1798
|
+
vr.invert = function(s, t) {
|
|
1799
1799
|
return [s, 2 * zo(Iu(t)) - Ht];
|
|
1800
1800
|
};
|
|
1801
1801
|
function yh() {
|
|
1802
|
-
return Eh(
|
|
1802
|
+
return Eh(vr).scale(961 / Wt);
|
|
1803
1803
|
}
|
|
1804
1804
|
function Eh(s) {
|
|
1805
|
-
var t =
|
|
1805
|
+
var t = Ns(s), e = t.center, n = t.scale, i = t.translate, r = t.clipExtent, a = null, o, c, l;
|
|
1806
1806
|
t.scale = function(d) {
|
|
1807
1807
|
return arguments.length ? (n(d), h()) : n();
|
|
1808
1808
|
}, t.translate = function(d) {
|
|
@@ -1814,20 +1814,20 @@ function Eh(s) {
|
|
|
1814
1814
|
};
|
|
1815
1815
|
function h() {
|
|
1816
1816
|
var d = at * n(), u = t($u(t.rotate()).invert([0, 0]));
|
|
1817
|
-
return r(a == null ? [[u[0] - d, u[1] - d], [u[0] + d, u[1] + d]] : s ===
|
|
1817
|
+
return r(a == null ? [[u[0] - d, u[1] - d], [u[0] + d, u[1] + d]] : s === vr ? [[Math.max(u[0] - d, a), o], [Math.min(u[0] + d, c), l]] : [[a, Math.max(u[1] - d, o)], [c, Math.min(u[1] + d, l)]]);
|
|
1818
1818
|
}
|
|
1819
1819
|
return h();
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Ts(s, t) {
|
|
1822
1822
|
return [s, t];
|
|
1823
1823
|
}
|
|
1824
|
-
|
|
1824
|
+
Ts.invert = Ts;
|
|
1825
1825
|
function Sh() {
|
|
1826
|
-
return
|
|
1826
|
+
return Ns(Ts).scale(152.63);
|
|
1827
1827
|
}
|
|
1828
1828
|
function xh(s, t) {
|
|
1829
1829
|
var e = gt(s), n = s === t ? dt(s) : (e - gt(t)) / (t - s), i = e / n + s;
|
|
1830
|
-
if (ft(n) < pt) return
|
|
1830
|
+
if (ft(n) < pt) return Ts;
|
|
1831
1831
|
function r(a, o) {
|
|
1832
1832
|
var c = i - o, l = n * a;
|
|
1833
1833
|
return [c * dt(l), i - c * gt(l)];
|
|
@@ -1840,11 +1840,11 @@ function xh(s, t) {
|
|
|
1840
1840
|
function bh() {
|
|
1841
1841
|
return ol(xh).scale(131.154).center([0, 13.9389]);
|
|
1842
1842
|
}
|
|
1843
|
-
var Ln = 1.340264, An = -0.081106, Mn = 893e-6, _n = 3796e-6,
|
|
1843
|
+
var Ln = 1.340264, An = -0.081106, Mn = 893e-6, _n = 3796e-6, Os = se(3) / 2, Th = 12;
|
|
1844
1844
|
function cl(s, t) {
|
|
1845
|
-
var e = Ee(
|
|
1845
|
+
var e = Ee(Os * dt(t)), n = e * e, i = n * n * n;
|
|
1846
1846
|
return [
|
|
1847
|
-
s * gt(e) / (
|
|
1847
|
+
s * gt(e) / (Os * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n))),
|
|
1848
1848
|
e * (Ln + An * n + i * (Mn + _n * n))
|
|
1849
1849
|
];
|
|
1850
1850
|
}
|
|
@@ -1852,12 +1852,12 @@ cl.invert = function(s, t) {
|
|
|
1852
1852
|
for (var e = t, n = e * e, i = n * n * n, r = 0, a, o, c; r < Th && (o = e * (Ln + An * n + i * (Mn + _n * n)) - t, c = Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n), e -= a = o / c, n = e * e, i = n * n * n, !(ft(a) < Uo)); ++r)
|
|
1853
1853
|
;
|
|
1854
1854
|
return [
|
|
1855
|
-
|
|
1856
|
-
Ee(dt(e) /
|
|
1855
|
+
Os * s * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n)) / gt(e),
|
|
1856
|
+
Ee(dt(e) / Os)
|
|
1857
1857
|
];
|
|
1858
1858
|
};
|
|
1859
1859
|
function Oh() {
|
|
1860
|
-
return
|
|
1860
|
+
return Ns(cl).scale(177.158);
|
|
1861
1861
|
}
|
|
1862
1862
|
function ul(s, t) {
|
|
1863
1863
|
var e = t * t, n = e * e;
|
|
@@ -1878,7 +1878,7 @@ ul.invert = function(s, t) {
|
|
|
1878
1878
|
];
|
|
1879
1879
|
};
|
|
1880
1880
|
function wh() {
|
|
1881
|
-
return
|
|
1881
|
+
return Ns(ul).scale(175.295);
|
|
1882
1882
|
}
|
|
1883
1883
|
function Lh(s, t) {
|
|
1884
1884
|
return s.parent === t.parent ? 1 : 2;
|
|
@@ -1890,12 +1890,12 @@ function Mh(s, t) {
|
|
|
1890
1890
|
return s + t.x;
|
|
1891
1891
|
}
|
|
1892
1892
|
function _h(s) {
|
|
1893
|
-
return 1 + s.reduce(
|
|
1893
|
+
return 1 + s.reduce(kh, 0);
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function kh(s, t) {
|
|
1896
1896
|
return Math.max(s, t.y);
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Ch(s) {
|
|
1899
1899
|
for (var t; t = s.children; ) s = t[0];
|
|
1900
1900
|
return s;
|
|
1901
1901
|
}
|
|
@@ -1911,7 +1911,7 @@ function Ih() {
|
|
|
1911
1911
|
var p = u.children;
|
|
1912
1912
|
p ? (u.x = Ah(p), u.y = _h(p)) : (u.x = a ? o += s(u, a) : 0, u.y = 0, a = u);
|
|
1913
1913
|
});
|
|
1914
|
-
var c =
|
|
1914
|
+
var c = Ch(r), l = Rh(r), h = c.x - s(c, l) / 2, d = l.x + s(l, c) / 2;
|
|
1915
1915
|
return r.eachAfter(n ? function(u) {
|
|
1916
1916
|
u.x = (u.x - r.x) * t, u.y = (r.y - u.y) * e;
|
|
1917
1917
|
} : function(u) {
|
|
@@ -2070,7 +2070,7 @@ function hl(s) {
|
|
|
2070
2070
|
if (typeof s != "function") throw new Error();
|
|
2071
2071
|
return s;
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function ke() {
|
|
2074
2074
|
return 0;
|
|
2075
2075
|
}
|
|
2076
2076
|
function Ye(s) {
|
|
@@ -2099,17 +2099,17 @@ function ad(s, t) {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
function od(s, t) {
|
|
2101
2101
|
var e, n;
|
|
2102
|
-
if (
|
|
2102
|
+
if (oi(t, s)) return [t];
|
|
2103
2103
|
for (e = 0; e < s.length; ++e)
|
|
2104
|
-
if (
|
|
2104
|
+
if (Zn(t, s[e]) && oi(Tn(s[e], t), s))
|
|
2105
2105
|
return [s[e], t];
|
|
2106
2106
|
for (e = 0; e < s.length - 1; ++e)
|
|
2107
2107
|
for (n = e + 1; n < s.length; ++n)
|
|
2108
|
-
if (
|
|
2108
|
+
if (Zn(Tn(s[e], s[n]), t) && Zn(Tn(s[e], t), s[n]) && Zn(Tn(s[n], t), s[e]) && oi(pl(s[e], s[n], t), s))
|
|
2109
2109
|
return [s[e], s[n], t];
|
|
2110
2110
|
throw new Error();
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function Zn(s, t) {
|
|
2113
2113
|
var e = s.r - t.r, n = t.x - s.x, i = t.y - s.y;
|
|
2114
2114
|
return e < 0 || e * e < n * n + i * i;
|
|
2115
2115
|
}
|
|
@@ -2117,7 +2117,7 @@ function dl(s, t) {
|
|
|
2117
2117
|
var e = s.r - t.r + Math.max(s.r, t.r, 1) * 1e-9, n = t.x - s.x, i = t.y - s.y;
|
|
2118
2118
|
return e > 0 && e * e > n * n + i * i;
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function oi(s, t) {
|
|
2121
2121
|
for (var e = 0; e < t.length; ++e)
|
|
2122
2122
|
if (!dl(s, t[e]))
|
|
2123
2123
|
return !1;
|
|
@@ -2149,10 +2149,10 @@ function Tn(s, t) {
|
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
2151
|
function pl(s, t, e) {
|
|
2152
|
-
var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b,
|
|
2152
|
+
var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b, C = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, k = I * I + G * G - 1, L = 2 * (r + O * I + C * G), B = O * O + C * C - r * r, D = -(Math.abs(k) > 1e-6 ? (L + Math.sqrt(L * L - 4 * k * B)) / (2 * k) : B / L);
|
|
2153
2153
|
return {
|
|
2154
2154
|
x: n + O + I * D,
|
|
2155
|
-
y: i +
|
|
2155
|
+
y: i + C + G * D,
|
|
2156
2156
|
r: D
|
|
2157
2157
|
};
|
|
2158
2158
|
}
|
|
@@ -2168,7 +2168,7 @@ function Pa(s) {
|
|
|
2168
2168
|
var t = s._, e = s.next._, n = t.r + e.r, i = (t.x * e.r + e.x * t.r) / n, r = (t.y * e.r + e.y * t.r) / n;
|
|
2169
2169
|
return i * i + r * r;
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Kn(s) {
|
|
2172
2172
|
this._ = s, this.next = null, this.previous = null;
|
|
2173
2173
|
}
|
|
2174
2174
|
function ud(s, t) {
|
|
@@ -2176,9 +2176,9 @@ function ud(s, t) {
|
|
|
2176
2176
|
var e, n, i, r, a, o, c, l, h, d, u;
|
|
2177
2177
|
if (e = s[0], e.x = 0, e.y = 0, !(r > 1)) return e.r;
|
|
2178
2178
|
if (n = s[1], e.x = -n.r, n.x = e.r, n.y = 0, !(r > 2)) return e.r + n.r;
|
|
2179
|
-
Ia(n, e, i = s[2]), e = new
|
|
2179
|
+
Ia(n, e, i = s[2]), e = new Kn(e), n = new Kn(n), i = new Kn(i), e.next = i.previous = n, n.next = e.previous = i, i.next = n.previous = e;
|
|
2180
2180
|
t: for (c = 3; c < r; ++c) {
|
|
2181
|
-
Ia(e._, n._, i = s[c]), i = new
|
|
2181
|
+
Ia(e._, n._, i = s[c]), i = new Kn(i), l = n.next, h = e.previous, d = n._.r, u = e._.r;
|
|
2182
2182
|
do
|
|
2183
2183
|
if (d <= u) {
|
|
2184
2184
|
if (Da(l._, i._)) {
|
|
@@ -2206,10 +2206,10 @@ function hd(s) {
|
|
|
2206
2206
|
return Math.sqrt(s.value);
|
|
2207
2207
|
}
|
|
2208
2208
|
function dd() {
|
|
2209
|
-
var s = null, t = 1, e = 1, n =
|
|
2209
|
+
var s = null, t = 1, e = 1, n = ke;
|
|
2210
2210
|
function i(r) {
|
|
2211
2211
|
const a = sd();
|
|
2212
|
-
return r.x = t / 2, r.y = e / 2, s ? r.eachBefore(Na(s)).eachAfter(
|
|
2212
|
+
return r.x = t / 2, r.y = e / 2, s ? r.eachBefore(Na(s)).eachAfter(li(n, 0.5, a)).eachBefore($a(1)) : r.eachBefore(Na(hd)).eachAfter(li(ke, 1, a)).eachAfter(li(n, r.r / Math.min(t, e), a)).eachBefore($a(Math.min(t, e) / (2 * r.r))), r;
|
|
2213
2213
|
}
|
|
2214
2214
|
return i.radius = function(r) {
|
|
2215
2215
|
return arguments.length ? (s = td(r), i) : s;
|
|
@@ -2224,7 +2224,7 @@ function Na(s) {
|
|
|
2224
2224
|
t.children || (t.r = Math.max(0, +s(t) || 0));
|
|
2225
2225
|
};
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function li(s, t, e) {
|
|
2228
2228
|
return function(n) {
|
|
2229
2229
|
if (i = n.children) {
|
|
2230
2230
|
var i, r, a = i.length, o = s(n) * t || 0, c;
|
|
@@ -2250,11 +2250,11 @@ function fd(s, t, e, n, i) {
|
|
|
2250
2250
|
function gd(s, t) {
|
|
2251
2251
|
return s.parent === t.parent ? 1 : 2;
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function ci(s) {
|
|
2254
2254
|
var t = s.children;
|
|
2255
2255
|
return t ? t[0] : s.t;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function ui(s) {
|
|
2258
2258
|
var t = s.children;
|
|
2259
2259
|
return t ? t[t.length - 1] : s.t;
|
|
2260
2260
|
}
|
|
@@ -2269,16 +2269,16 @@ function vd(s) {
|
|
|
2269
2269
|
function yd(s, t, e) {
|
|
2270
2270
|
return s.a.parent === t.parent ? s.a : e;
|
|
2271
2271
|
}
|
|
2272
|
-
function
|
|
2272
|
+
function cs(s, t) {
|
|
2273
2273
|
this._ = s, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
|
|
2274
2274
|
}
|
|
2275
|
-
|
|
2275
|
+
cs.prototype = Object.create(In.prototype);
|
|
2276
2276
|
function Ed(s) {
|
|
2277
|
-
for (var t = new
|
|
2277
|
+
for (var t = new cs(s, 0), e, n = [t], i, r, a, o; e = n.pop(); )
|
|
2278
2278
|
if (r = e._.children)
|
|
2279
2279
|
for (e.children = new Array(o = r.length), a = o - 1; a >= 0; --a)
|
|
2280
|
-
n.push(i = e.children[a] = new
|
|
2281
|
-
return (t.parent = new
|
|
2280
|
+
n.push(i = e.children[a] = new cs(r[a], a)), i.parent = e;
|
|
2281
|
+
return (t.parent = new cs(null, 0)).children = [t], t;
|
|
2282
2282
|
}
|
|
2283
2283
|
function Sd() {
|
|
2284
2284
|
var s = gd, t = 1, e = 1, n = null;
|
|
@@ -2311,9 +2311,9 @@ function Sd() {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
function o(l, h, d) {
|
|
2313
2313
|
if (h) {
|
|
2314
|
-
for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, E = p.m, y = f.m, v = g.m, S; f =
|
|
2315
|
-
g =
|
|
2316
|
-
f && !
|
|
2314
|
+
for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, E = p.m, y = f.m, v = g.m, S; f = ui(f), u = ci(u), f && u; )
|
|
2315
|
+
g = ci(g), p = ui(p), p.a = l, S = f.z + y - u.z - m + s(f._, u._), S > 0 && (md(yd(f, l, d), l, S), m += S, E += S), y += f.m, m += u.m, v += g.m, E += p.m;
|
|
2316
|
+
f && !ui(p) && (p.t = f, p.m += y - E), u && !ci(g) && (g.t = u, g.m += m - v, d = l);
|
|
2317
2317
|
}
|
|
2318
2318
|
return d;
|
|
2319
2319
|
}
|
|
@@ -2359,7 +2359,7 @@ const Od = function s(t) {
|
|
|
2359
2359
|
}, e;
|
|
2360
2360
|
}(bd);
|
|
2361
2361
|
function wd() {
|
|
2362
|
-
var s = Od, t = !1, e = 1, n = 1, i = [0], r =
|
|
2362
|
+
var s = Od, t = !1, e = 1, n = 1, i = [0], r = ke, a = ke, o = ke, c = ke, l = ke;
|
|
2363
2363
|
function h(u) {
|
|
2364
2364
|
return u.x0 = u.y0 = 0, u.x1 = e, u.y1 = n, u.eachBefore(d), i = [0], t && u.eachBefore(pd), u;
|
|
2365
2365
|
}
|
|
@@ -2389,7 +2389,7 @@ function wd() {
|
|
|
2389
2389
|
return arguments.length ? (l = typeof u == "function" ? u : Ye(+u), h) : l;
|
|
2390
2390
|
}, h;
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function $s(s) {
|
|
2393
2393
|
let t = 3;
|
|
2394
2394
|
return s.digits = function(e) {
|
|
2395
2395
|
if (!arguments.length) return t;
|
|
@@ -2401,7 +2401,7 @@ function Ps(s) {
|
|
|
2401
2401
|
t = n;
|
|
2402
2402
|
}
|
|
2403
2403
|
return s;
|
|
2404
|
-
}, () => new
|
|
2404
|
+
}, () => new fr(t);
|
|
2405
2405
|
}
|
|
2406
2406
|
function Ld(s) {
|
|
2407
2407
|
return s.innerRadius;
|
|
@@ -2415,54 +2415,54 @@ function Md(s) {
|
|
|
2415
2415
|
function _d(s) {
|
|
2416
2416
|
return s.endAngle;
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function kd(s) {
|
|
2419
2419
|
return s && s.padAngle;
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2421
|
+
function Cd(s, t, e, n, i, r, a, o) {
|
|
2422
2422
|
var c = e - s, l = n - t, h = a - i, d = o - r, u = d * c - h * l;
|
|
2423
2423
|
if (!(u * u < Gt))
|
|
2424
2424
|
return u = (h * (t - r) - d * (s - i)) / u, [s + u * c, t + u * l];
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2427
|
-
var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(
|
|
2428
|
-
return B * B + D * D > A * A + w * w && (
|
|
2429
|
-
cx:
|
|
2426
|
+
function Jn(s, t, e, n, i, r, a) {
|
|
2427
|
+
var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(sc(0, b * b * S - O * O)), C = (O * v - y * I) / S, G = (-O * y - v * I) / S, k = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = C - m, D = G - E, A = k - m, w = L - E;
|
|
2428
|
+
return B * B + D * D > A * A + w * w && (C = k, G = L), {
|
|
2429
|
+
cx: C,
|
|
2430
2430
|
cy: G,
|
|
2431
2431
|
x01: -h,
|
|
2432
2432
|
y01: -d,
|
|
2433
|
-
x11:
|
|
2433
|
+
x11: C * (i / b - 1),
|
|
2434
2434
|
y11: G * (i / b - 1)
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
2437
|
function Dn() {
|
|
2438
|
-
var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a =
|
|
2438
|
+
var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a = kd, o = null, c = $s(l);
|
|
2439
2439
|
function l() {
|
|
2440
|
-
var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) -
|
|
2440
|
+
var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) - Zr, g = r.apply(this, arguments) - Zr, m = Kr(g - f), E = g > f;
|
|
2441
2441
|
if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Gt)) o.moveTo(0, 0);
|
|
2442
|
-
else if (m >
|
|
2442
|
+
else if (m > is - Gt)
|
|
2443
2443
|
o.moveTo(p * Le(f), p * oe(f)), o.arc(0, 0, p, f, g, !E), u > Gt && (o.moveTo(u * Le(g), u * oe(g)), o.arc(0, 0, u, g, f, E));
|
|
2444
2444
|
else {
|
|
2445
|
-
var y = f, v = g, S = f, b = g, O = m, I = m,
|
|
2445
|
+
var y = f, v = g, S = f, b = g, O = m, I = m, C = a.apply(this, arguments) / 2, G = C > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), k = Ks(Kr(p - u) / 2, +e.apply(this, arguments)), L = k, B = k, D, A;
|
|
2446
2446
|
if (G > Gt) {
|
|
2447
|
-
var w = Qr(G / u * oe(
|
|
2447
|
+
var w = Qr(G / u * oe(C)), V = Qr(G / p * oe(C));
|
|
2448
2448
|
(O -= w * 2) > Gt ? (w *= E ? 1 : -1, S += w, b -= w) : (O = 0, S = b = (f + g) / 2), (I -= V * 2) > Gt ? (V *= E ? 1 : -1, y += V, v -= V) : (I = 0, y = v = (f + g) / 2);
|
|
2449
2449
|
}
|
|
2450
2450
|
var N = p * Le(y), P = p * oe(y), $ = u * Le(b), X = u * oe(b);
|
|
2451
|
-
if (
|
|
2451
|
+
if (k > Gt) {
|
|
2452
2452
|
var F = p * Le(v), et = p * oe(v), J = u * Le(S), ct = u * oe(S), Q;
|
|
2453
|
-
if (m <
|
|
2454
|
-
if (Q =
|
|
2455
|
-
var j = N - Q[0],
|
|
2456
|
-
L =
|
|
2453
|
+
if (m < Jr)
|
|
2454
|
+
if (Q = Cd(N, P, J, ct, F, et, $, X)) {
|
|
2455
|
+
var j = N - Q[0], K = P - Q[1], ut = F - Q[0], ht = et - Q[1], yt = 1 / oe(ic((j * ut + K * ht) / (Ke(j * j + K * K) * Ke(ut * ut + ht * ht))) / 2), Ut = Ke(Q[0] * Q[0] + Q[1] * Q[1]);
|
|
2456
|
+
L = Ks(k, (u - Ut) / (yt - 1)), B = Ks(k, (p - Ut) / (yt + 1));
|
|
2457
2457
|
} else
|
|
2458
2458
|
L = B = 0;
|
|
2459
2459
|
}
|
|
2460
|
-
I > Gt ? B > Gt ? (D =
|
|
2460
|
+
I > Gt ? B > Gt ? (D = Jn(J, ct, N, P, p, B, E), A = Jn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < k ? o.arc(D.cx, D.cy, B, Ct(D.y01, D.x01), Ct(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, Ct(D.y01, D.x01), Ct(D.y11, D.x11), !E), o.arc(0, 0, p, Ct(D.cy + D.y11, D.cx + D.x11), Ct(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, Ct(A.y11, A.x11), Ct(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Jn($, X, F, et, u, -L, E), A = Jn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < k ? o.arc(D.cx, D.cy, L, Ct(D.y01, D.x01), Ct(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, Ct(D.y01, D.x01), Ct(D.y11, D.x11), !E), o.arc(0, 0, u, Ct(D.cy + D.y11, D.cx + D.x11), Ct(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, Ct(A.y11, A.x11), Ct(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
|
|
2461
2461
|
}
|
|
2462
2462
|
if (o.closePath(), h) return o = null, h + "" || null;
|
|
2463
2463
|
}
|
|
2464
2464
|
return l.centroid = function() {
|
|
2465
|
-
var h = (+s.apply(this, arguments) + +t.apply(this, arguments)) / 2, d = (+i.apply(this, arguments) + +r.apply(this, arguments)) / 2 -
|
|
2465
|
+
var h = (+s.apply(this, arguments) + +t.apply(this, arguments)) / 2, d = (+i.apply(this, arguments) + +r.apply(this, arguments)) / 2 - Jr / 2;
|
|
2466
2466
|
return [Le(d) * h, oe(d) * h];
|
|
2467
2467
|
}, l.innerRadius = function(h) {
|
|
2468
2468
|
return arguments.length ? (s = typeof h == "function" ? h : lt(+h), l) : s;
|
|
@@ -2482,17 +2482,17 @@ function Dn() {
|
|
|
2482
2482
|
return arguments.length ? (o = h ?? null, l) : o;
|
|
2483
2483
|
}, l;
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2485
|
+
function yr(s) {
|
|
2486
2486
|
return s[0];
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function Er(s) {
|
|
2489
2489
|
return s[1];
|
|
2490
2490
|
}
|
|
2491
2491
|
function Nn(s, t) {
|
|
2492
|
-
var e = lt(!0), n = null, i =
|
|
2493
|
-
s = typeof s == "function" ? s : s === void 0 ?
|
|
2492
|
+
var e = lt(!0), n = null, i = ur, r = null, a = $s(o);
|
|
2493
|
+
s = typeof s == "function" ? s : s === void 0 ? yr : lt(s), t = typeof t == "function" ? t : t === void 0 ? Er : lt(t);
|
|
2494
2494
|
function o(c) {
|
|
2495
|
-
var l, h = (c =
|
|
2495
|
+
var l, h = (c = dr(c)).length, d, u = !1, p;
|
|
2496
2496
|
for (n == null && (r = i(p = a())), l = 0; l <= h; ++l)
|
|
2497
2497
|
!(l < h && e(d = c[l], l, c)) === u && ((u = !u) ? r.lineStart() : r.lineEnd()), u && r.point(+s(d, l, c), +t(d, l, c));
|
|
2498
2498
|
if (p) return r = null, p + "" || null;
|
|
@@ -2509,11 +2509,11 @@ function Nn(s, t) {
|
|
|
2509
2509
|
return arguments.length ? (c == null ? n = r = null : r = i(n = c), o) : n;
|
|
2510
2510
|
}, o;
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2513
|
-
var n = null, i = lt(!0), r = null, a =
|
|
2514
|
-
s = typeof s == "function" ? s : s === void 0 ?
|
|
2512
|
+
function Sr(s, t, e) {
|
|
2513
|
+
var n = null, i = lt(!0), r = null, a = ur, o = null, c = $s(l);
|
|
2514
|
+
s = typeof s == "function" ? s : s === void 0 ? yr : lt(+s), t = typeof t == "function" ? t : t === void 0 ? lt(0) : lt(+t), e = typeof e == "function" ? e : e === void 0 ? Er : lt(+e);
|
|
2515
2515
|
function l(d) {
|
|
2516
|
-
var u, p, f, g = (d =
|
|
2516
|
+
var u, p, f, g = (d = dr(d)).length, m, E = !1, y, v = new Array(g), S = new Array(g);
|
|
2517
2517
|
for (r == null && (o = a(y = c())), u = 0; u <= g; ++u) {
|
|
2518
2518
|
if (!(u < g && i(m = d[u], u, d)) === E)
|
|
2519
2519
|
if (E = !E)
|
|
@@ -2563,9 +2563,9 @@ function Id(s) {
|
|
|
2563
2563
|
return s;
|
|
2564
2564
|
}
|
|
2565
2565
|
function Dd() {
|
|
2566
|
-
var s = Id, t = Rd, e = null, n = lt(0), i = lt(
|
|
2566
|
+
var s = Id, t = Rd, e = null, n = lt(0), i = lt(is), r = lt(0);
|
|
2567
2567
|
function a(o) {
|
|
2568
|
-
var c, l = (o =
|
|
2568
|
+
var c, l = (o = dr(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(is, Math.max(-is, i.apply(this, arguments) - g)), E, y = Math.min(Math.abs(m) / l, r.apply(this, arguments)), v = y * (m < 0 ? -1 : 1), S;
|
|
2569
2569
|
for (c = 0; c < l; ++c)
|
|
2570
2570
|
(S = f[p[c] = c] = +s(o[c], c, o)) > 0 && (u += S);
|
|
2571
2571
|
for (t != null ? p.sort(function(b, O) {
|
|
@@ -2597,7 +2597,7 @@ function Dd() {
|
|
|
2597
2597
|
return arguments.length ? (r = typeof o == "function" ? o : lt(+o), a) : r;
|
|
2598
2598
|
}, a;
|
|
2599
2599
|
}
|
|
2600
|
-
var Pd = gl(
|
|
2600
|
+
var Pd = gl(ur);
|
|
2601
2601
|
function fl(s) {
|
|
2602
2602
|
this._curve = s;
|
|
2603
2603
|
}
|
|
@@ -2675,7 +2675,7 @@ function Hd(s) {
|
|
|
2675
2675
|
return s.target;
|
|
2676
2676
|
}
|
|
2677
2677
|
function Ud(s) {
|
|
2678
|
-
let t = Gd, e = Hd, n =
|
|
2678
|
+
let t = Gd, e = Hd, n = yr, i = Er, r = null, a = null, o = $s(c);
|
|
2679
2679
|
function c() {
|
|
2680
2680
|
let l;
|
|
2681
2681
|
const h = cc.call(arguments), d = t.apply(this, h), u = e.apply(this, h);
|
|
@@ -2737,13 +2737,13 @@ class ot {
|
|
|
2737
2737
|
getParent() {
|
|
2738
2738
|
return this.parent;
|
|
2739
2739
|
}
|
|
2740
|
-
getComponentContainer(t = { withinChartClip: !1 }) {
|
|
2740
|
+
getComponentContainer(t = { ariaLabel: null, isPresentational: !1, withinChartClip: !1 }) {
|
|
2741
2741
|
if (this.type) {
|
|
2742
2742
|
const e = T(this.model.getOptions(), "style", "prefix"), n = this.id ? `#${this.id}` : "", i = _.appendOrSelect(
|
|
2743
2743
|
this.parent,
|
|
2744
2744
|
`${this.renderType === st.SVG ? "svg" : "div"}${n}.${qt}--${e}--${this.type}`
|
|
2745
2745
|
);
|
|
2746
|
-
if (t.withinChartClip) {
|
|
2746
|
+
if (t.ariaLabel && i.attr("aria-label", t.ariaLabel), t.isPresentational && i.attr("role", "presentation"), t.withinChartClip) {
|
|
2747
2747
|
const r = this.model.get("chartClipId");
|
|
2748
2748
|
if (r) {
|
|
2749
2749
|
const o = R(`#${r}`).select("rect");
|
|
@@ -2763,7 +2763,7 @@ class ot {
|
|
|
2763
2763
|
return this.configs.options ? tn({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
|
-
/*! @license DOMPurify 3.
|
|
2766
|
+
/*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */
|
|
2767
2767
|
const {
|
|
2768
2768
|
entries: ml,
|
|
2769
2769
|
setPrototypeOf: Va,
|
|
@@ -2776,8 +2776,8 @@ let {
|
|
|
2776
2776
|
seal: Qt,
|
|
2777
2777
|
create: vl
|
|
2778
2778
|
} = Object, {
|
|
2779
|
-
apply:
|
|
2780
|
-
construct:
|
|
2779
|
+
apply: Fi,
|
|
2780
|
+
construct: Wi
|
|
2781
2781
|
} = typeof Reflect < "u" && Reflect;
|
|
2782
2782
|
Vt || (Vt = function(t) {
|
|
2783
2783
|
return t;
|
|
@@ -2785,29 +2785,29 @@ Vt || (Vt = function(t) {
|
|
|
2785
2785
|
Qt || (Qt = function(t) {
|
|
2786
2786
|
return t;
|
|
2787
2787
|
});
|
|
2788
|
-
|
|
2788
|
+
Fi || (Fi = function(t, e, n) {
|
|
2789
2789
|
return t.apply(e, n);
|
|
2790
2790
|
});
|
|
2791
|
-
|
|
2791
|
+
Wi || (Wi = function(t, e) {
|
|
2792
2792
|
return new t(...e);
|
|
2793
2793
|
});
|
|
2794
|
-
const
|
|
2794
|
+
const Qn = Xt(Array.prototype.forEach), Ba = Xt(Array.prototype.pop), hn = Xt(Array.prototype.push), us = Xt(String.prototype.toLowerCase), hi = Xt(String.prototype.toString), Ga = Xt(String.prototype.match), dn = Xt(String.prototype.replace), jd = Xt(String.prototype.indexOf), Yd = Xt(String.prototype.trim), ne = Xt(Object.prototype.hasOwnProperty), Pt = Xt(RegExp.prototype.test), pn = qd(TypeError);
|
|
2795
2795
|
function Xt(s) {
|
|
2796
2796
|
return function(t) {
|
|
2797
2797
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2798
2798
|
n[i - 1] = arguments[i];
|
|
2799
|
-
return
|
|
2799
|
+
return Fi(s, t, n);
|
|
2800
2800
|
};
|
|
2801
2801
|
}
|
|
2802
2802
|
function qd(s) {
|
|
2803
2803
|
return function() {
|
|
2804
2804
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
2805
2805
|
e[n] = arguments[n];
|
|
2806
|
-
return
|
|
2806
|
+
return Wi(s, e);
|
|
2807
2807
|
};
|
|
2808
2808
|
}
|
|
2809
2809
|
function rt(s, t) {
|
|
2810
|
-
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
2810
|
+
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : us;
|
|
2811
2811
|
Va && Va(s, null);
|
|
2812
2812
|
let n = t.length;
|
|
2813
2813
|
for (; n--; ) {
|
|
@@ -2847,7 +2847,7 @@ function fn(s, t) {
|
|
|
2847
2847
|
}
|
|
2848
2848
|
return e;
|
|
2849
2849
|
}
|
|
2850
|
-
const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
2850
|
+
const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), di = Vt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pi = Vt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Kd = Vt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), fi = Vt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jd = Vt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ua = Vt(["#text"]), za = Vt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), gi = Vt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Vt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ts = Vt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qd = Qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tp = Qt(/<%[\w\W]*|[\w\W]*%>/gm), ep = Qt(/\${[\w\W]*}/gm), np = Qt(/^data-[\-\w.\u00B7-\uFFFF]/), sp = Qt(/^aria-[\-\w]+$/), yl = Qt(
|
|
2851
2851
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2852
2852
|
// eslint-disable-line no-useless-escape
|
|
2853
2853
|
), ip = Qt(/^(?:\w+script|data):/i), rp = Qt(
|
|
@@ -2856,33 +2856,24 @@ const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
2856
2856
|
), El = Qt(/^html$/i), ap = Qt(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2857
2857
|
var Wa = /* @__PURE__ */ Object.freeze({
|
|
2858
2858
|
__proto__: null,
|
|
2859
|
-
MUSTACHE_EXPR: Qd,
|
|
2860
|
-
ERB_EXPR: tp,
|
|
2861
|
-
TMPLIT_EXPR: ep,
|
|
2862
|
-
DATA_ATTR: np,
|
|
2863
2859
|
ARIA_ATTR: sp,
|
|
2864
|
-
IS_ALLOWED_URI: yl,
|
|
2865
|
-
IS_SCRIPT_OR_DATA: ip,
|
|
2866
2860
|
ATTR_WHITESPACE: rp,
|
|
2861
|
+
CUSTOM_ELEMENT: ap,
|
|
2862
|
+
DATA_ATTR: np,
|
|
2867
2863
|
DOCTYPE_NAME: El,
|
|
2868
|
-
|
|
2864
|
+
ERB_EXPR: tp,
|
|
2865
|
+
IS_ALLOWED_URI: yl,
|
|
2866
|
+
IS_SCRIPT_OR_DATA: ip,
|
|
2867
|
+
MUSTACHE_EXPR: Qd,
|
|
2868
|
+
TMPLIT_EXPR: ep
|
|
2869
2869
|
});
|
|
2870
2870
|
const gn = {
|
|
2871
2871
|
element: 1,
|
|
2872
|
-
attribute: 2,
|
|
2873
2872
|
text: 3,
|
|
2874
|
-
cdataSection: 4,
|
|
2875
|
-
entityReference: 5,
|
|
2876
|
-
// Deprecated
|
|
2877
|
-
entityNode: 6,
|
|
2878
2873
|
// Deprecated
|
|
2879
2874
|
progressingInstruction: 7,
|
|
2880
2875
|
comment: 8,
|
|
2881
|
-
document: 9
|
|
2882
|
-
documentType: 10,
|
|
2883
|
-
documentFragment: 11,
|
|
2884
|
-
notation: 12
|
|
2885
|
-
// Deprecated
|
|
2876
|
+
document: 9
|
|
2886
2877
|
}, op = function() {
|
|
2887
2878
|
return typeof window > "u" ? null : window;
|
|
2888
2879
|
}, lp = function(t, e) {
|
|
@@ -2907,8 +2898,8 @@ const gn = {
|
|
|
2907
2898
|
};
|
|
2908
2899
|
function Sl() {
|
|
2909
2900
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : op();
|
|
2910
|
-
const t = (
|
|
2911
|
-
if (t.version = "3.
|
|
2901
|
+
const t = (Z) => Sl(Z);
|
|
2902
|
+
if (t.version = "3.2.0", t.removed = [], !s || !s.document || s.document.nodeType !== gn.document)
|
|
2912
2903
|
return t.isSupported = !1, t;
|
|
2913
2904
|
let {
|
|
2914
2905
|
document: e
|
|
@@ -2925,17 +2916,17 @@ function Sl() {
|
|
|
2925
2916
|
trustedTypes: p
|
|
2926
2917
|
} = s, f = c.prototype, g = fn(f, "cloneNode"), m = fn(f, "remove"), E = fn(f, "nextSibling"), y = fn(f, "childNodes"), v = fn(f, "parentNode");
|
|
2927
2918
|
if (typeof a == "function") {
|
|
2928
|
-
const
|
|
2929
|
-
|
|
2919
|
+
const Z = e.createElement("template");
|
|
2920
|
+
Z.content && Z.content.ownerDocument && (e = Z.content.ownerDocument);
|
|
2930
2921
|
}
|
|
2931
2922
|
let S, b = "";
|
|
2932
2923
|
const {
|
|
2933
2924
|
implementation: O,
|
|
2934
2925
|
createNodeIterator: I,
|
|
2935
|
-
createDocumentFragment:
|
|
2926
|
+
createDocumentFragment: C,
|
|
2936
2927
|
getElementsByTagName: G
|
|
2937
2928
|
} = e, {
|
|
2938
|
-
importNode:
|
|
2929
|
+
importNode: k
|
|
2939
2930
|
} = n;
|
|
2940
2931
|
let L = {};
|
|
2941
2932
|
t.isSupported = typeof ml == "function" && typeof v == "function" && O && O.createHTMLDocument !== void 0;
|
|
@@ -2952,9 +2943,9 @@ function Sl() {
|
|
|
2952
2943
|
let {
|
|
2953
2944
|
IS_ALLOWED_URI: X
|
|
2954
2945
|
} = Wa, F = null;
|
|
2955
|
-
const et = rt({}, [...Ha, ...
|
|
2946
|
+
const et = rt({}, [...Ha, ...di, ...pi, ...fi, ...Ua]);
|
|
2956
2947
|
let J = null;
|
|
2957
|
-
const ct = rt({}, [...za, ...
|
|
2948
|
+
const ct = rt({}, [...za, ...gi, ...Fa, ...ts]);
|
|
2958
2949
|
let Q = Object.seal(vl(null, {
|
|
2959
2950
|
tagNameCheck: {
|
|
2960
2951
|
writable: !0,
|
|
@@ -2974,40 +2965,28 @@ function Sl() {
|
|
|
2974
2965
|
enumerable: !0,
|
|
2975
2966
|
value: !1
|
|
2976
2967
|
}
|
|
2977
|
-
})), j = null,
|
|
2978
|
-
const
|
|
2979
|
-
let
|
|
2980
|
-
const
|
|
2981
|
-
let
|
|
2982
|
-
const
|
|
2983
|
-
let
|
|
2984
|
-
const
|
|
2985
|
-
let $e = he,
|
|
2986
|
-
const Rl = rt({}, [$n, Vn, he],
|
|
2968
|
+
})), j = null, K = null, ut = !0, ht = !0, yt = !1, Ut = !0, H = !1, U = !0, W = !1, zt = !1, an = !1, nt = !1, Et = !1, ie = !1, te = !0, wr = !1;
|
|
2969
|
+
const Cl = "user-content-";
|
|
2970
|
+
let Bs = !0, on = !1, Pe = {}, Ne = null;
|
|
2971
|
+
const Lr = rt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
2972
|
+
let Ar = null;
|
|
2973
|
+
const Mr = rt({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2974
|
+
let Gs = null;
|
|
2975
|
+
const _r = rt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
|
|
2976
|
+
let $e = he, Hs = !1, Us = null;
|
|
2977
|
+
const Rl = rt({}, [$n, Vn, he], hi);
|
|
2978
|
+
let Bn = rt({}, ["mi", "mo", "mn", "ms", "mtext"]), Gn = rt({}, ["annotation-xml"]);
|
|
2979
|
+
const Il = rt({}, ["title", "style", "font", "a", "script"]);
|
|
2987
2980
|
let ln = null;
|
|
2988
|
-
const
|
|
2981
|
+
const Dl = ["application/xhtml+xml", "text/html"], Pl = "text/html";
|
|
2989
2982
|
let Lt = null, Ve = null;
|
|
2990
|
-
const
|
|
2983
|
+
const Nl = e.createElement("form"), kr = function(M) {
|
|
2991
2984
|
return M instanceof RegExp || M instanceof Function;
|
|
2992
|
-
},
|
|
2985
|
+
}, zs = function() {
|
|
2993
2986
|
let M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2994
2987
|
if (!(Ve && Ve === M)) {
|
|
2995
2988
|
if ((!M || typeof M != "object") && (M = {}), M = Me(M), ln = // eslint-disable-next-line unicorn/prefer-includes
|
|
2996
|
-
|
|
2997
|
-
Me(Ar),
|
|
2998
|
-
// eslint-disable-line indent
|
|
2999
|
-
M.ADD_URI_SAFE_ATTR,
|
|
3000
|
-
// eslint-disable-line indent
|
|
3001
|
-
Lt
|
|
3002
|
-
// eslint-disable-line indent
|
|
3003
|
-
) : Ar, wr = ne(M, "ADD_DATA_URI_TAGS") ? rt(
|
|
3004
|
-
Me(Lr),
|
|
3005
|
-
// eslint-disable-line indent
|
|
3006
|
-
M.ADD_DATA_URI_TAGS,
|
|
3007
|
-
// eslint-disable-line indent
|
|
3008
|
-
Lt
|
|
3009
|
-
// eslint-disable-line indent
|
|
3010
|
-
) : Lr, Ne = ne(M, "FORBID_CONTENTS") ? rt({}, M.FORBID_CONTENTS, Lt) : Or, j = ne(M, "FORBID_TAGS") ? rt({}, M.FORBID_TAGS, Lt) : {}, Z = ne(M, "FORBID_ATTR") ? rt({}, M.FORBID_ATTR, Lt) : {}, Pe = ne(M, "USE_PROFILES") ? M.USE_PROFILES : !1, ut = M.ALLOW_ARIA_ATTR !== !1, ht = M.ALLOW_DATA_ATTR !== !1, Et = M.ALLOW_UNKNOWN_PROTOCOLS || !1, Ut = M.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = M.SAFE_FOR_TEMPLATES || !1, U = M.SAFE_FOR_XML !== !1, W = M.WHOLE_DOCUMENT || !1, nt = M.RETURN_DOM || !1, St = M.RETURN_DOM_FRAGMENT || !1, ie = M.RETURN_TRUSTED_TYPE || !1, an = M.FORCE_BODY || !1, te = M.SANITIZE_DOM !== !1, Tr = M.SANITIZE_NAMED_PROPS || !1, $s = M.KEEP_CONTENT !== !1, on = M.IN_PLACE || !1, X = M.ALLOWED_URI_REGEXP || yl, $e = M.NAMESPACE || he, Q = M.CUSTOM_ELEMENT_HANDLING || {}, M.CUSTOM_ELEMENT_HANDLING && Mr(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = M.CUSTOM_ELEMENT_HANDLING.tagNameCheck), M.CUSTOM_ELEMENT_HANDLING && Mr(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), M.CUSTOM_ELEMENT_HANDLING && typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (ht = !1), St && (nt = !0), Pe && (F = rt({}, Ua), J = [], Pe.html === !0 && (rt(F, Ha), rt(J, za)), Pe.svg === !0 && (rt(F, ui), rt(J, pi), rt(J, Jn)), Pe.svgFilters === !0 && (rt(F, hi), rt(J, pi), rt(J, Jn)), Pe.mathMl === !0 && (rt(F, di), rt(J, Fa), rt(J, Jn))), M.ADD_TAGS && (F === et && (F = Me(F)), rt(F, M.ADD_TAGS, Lt)), M.ADD_ATTR && (J === ct && (J = Me(J)), rt(J, M.ADD_ATTR, Lt)), M.ADD_URI_SAFE_ATTR && rt(Vs, M.ADD_URI_SAFE_ATTR, Lt), M.FORBID_CONTENTS && (Ne === Or && (Ne = Me(Ne)), rt(Ne, M.FORBID_CONTENTS, Lt)), $s && (F["#text"] = !0), W && rt(F, ["html", "head", "body"]), F.table && (rt(F, ["tbody"]), delete j.tbody), M.TRUSTED_TYPES_POLICY) {
|
|
2989
|
+
Dl.indexOf(M.PARSER_MEDIA_TYPE) === -1 ? Pl : M.PARSER_MEDIA_TYPE, Lt = ln === "application/xhtml+xml" ? hi : us, F = ne(M, "ALLOWED_TAGS") ? rt({}, M.ALLOWED_TAGS, Lt) : et, J = ne(M, "ALLOWED_ATTR") ? rt({}, M.ALLOWED_ATTR, Lt) : ct, Us = ne(M, "ALLOWED_NAMESPACES") ? rt({}, M.ALLOWED_NAMESPACES, hi) : Rl, Gs = ne(M, "ADD_URI_SAFE_ATTR") ? rt(Me(_r), M.ADD_URI_SAFE_ATTR, Lt) : _r, Ar = ne(M, "ADD_DATA_URI_TAGS") ? rt(Me(Mr), M.ADD_DATA_URI_TAGS, Lt) : Mr, Ne = ne(M, "FORBID_CONTENTS") ? rt({}, M.FORBID_CONTENTS, Lt) : Lr, j = ne(M, "FORBID_TAGS") ? rt({}, M.FORBID_TAGS, Lt) : {}, K = ne(M, "FORBID_ATTR") ? rt({}, M.FORBID_ATTR, Lt) : {}, Pe = ne(M, "USE_PROFILES") ? M.USE_PROFILES : !1, ut = M.ALLOW_ARIA_ATTR !== !1, ht = M.ALLOW_DATA_ATTR !== !1, yt = M.ALLOW_UNKNOWN_PROTOCOLS || !1, Ut = M.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = M.SAFE_FOR_TEMPLATES || !1, U = M.SAFE_FOR_XML !== !1, W = M.WHOLE_DOCUMENT || !1, nt = M.RETURN_DOM || !1, Et = M.RETURN_DOM_FRAGMENT || !1, ie = M.RETURN_TRUSTED_TYPE || !1, an = M.FORCE_BODY || !1, te = M.SANITIZE_DOM !== !1, wr = M.SANITIZE_NAMED_PROPS || !1, Bs = M.KEEP_CONTENT !== !1, on = M.IN_PLACE || !1, X = M.ALLOWED_URI_REGEXP || yl, $e = M.NAMESPACE || he, Bn = M.MATHML_TEXT_INTEGRATION_POINTS || Bn, Gn = M.HTML_INTEGRATION_POINTS || Gn, Q = M.CUSTOM_ELEMENT_HANDLING || {}, M.CUSTOM_ELEMENT_HANDLING && kr(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = M.CUSTOM_ELEMENT_HANDLING.tagNameCheck), M.CUSTOM_ELEMENT_HANDLING && kr(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), M.CUSTOM_ELEMENT_HANDLING && typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (ht = !1), Et && (nt = !0), Pe && (F = rt({}, Ua), J = [], Pe.html === !0 && (rt(F, Ha), rt(J, za)), Pe.svg === !0 && (rt(F, di), rt(J, gi), rt(J, ts)), Pe.svgFilters === !0 && (rt(F, pi), rt(J, gi), rt(J, ts)), Pe.mathMl === !0 && (rt(F, fi), rt(J, Fa), rt(J, ts))), M.ADD_TAGS && (F === et && (F = Me(F)), rt(F, M.ADD_TAGS, Lt)), M.ADD_ATTR && (J === ct && (J = Me(J)), rt(J, M.ADD_ATTR, Lt)), M.ADD_URI_SAFE_ATTR && rt(Gs, M.ADD_URI_SAFE_ATTR, Lt), M.FORBID_CONTENTS && (Ne === Lr && (Ne = Me(Ne)), rt(Ne, M.FORBID_CONTENTS, Lt)), Bs && (F["#text"] = !0), W && rt(F, ["html", "head", "body"]), F.table && (rt(F, ["tbody"]), delete j.tbody), M.TRUSTED_TYPES_POLICY) {
|
|
3011
2990
|
if (typeof M.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3012
2991
|
throw pn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3013
2992
|
if (typeof M.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3017,14 +2996,14 @@ function Sl() {
|
|
|
3017
2996
|
S === void 0 && (S = lp(p, i)), S !== null && typeof b == "string" && (b = S.createHTML(""));
|
|
3018
2997
|
Vt && Vt(M), Ve = M;
|
|
3019
2998
|
}
|
|
3020
|
-
},
|
|
2999
|
+
}, Cr = rt({}, [...di, ...pi, ...Kd]), Rr = rt({}, [...fi, ...Jd]), $l = function(M) {
|
|
3021
3000
|
let z = v(M);
|
|
3022
3001
|
(!z || !z.tagName) && (z = {
|
|
3023
3002
|
namespaceURI: $e,
|
|
3024
3003
|
tagName: "template"
|
|
3025
3004
|
});
|
|
3026
|
-
const q =
|
|
3027
|
-
return
|
|
3005
|
+
const q = us(M.tagName), St = us(z.tagName);
|
|
3006
|
+
return Us[M.namespaceURI] ? M.namespaceURI === Vn ? z.namespaceURI === he ? q === "svg" : z.namespaceURI === $n ? q === "svg" && (St === "annotation-xml" || Bn[St]) : !!Cr[q] : M.namespaceURI === $n ? z.namespaceURI === he ? q === "math" : z.namespaceURI === Vn ? q === "math" && Gn[St] : !!Rr[q] : M.namespaceURI === he ? z.namespaceURI === Vn && !Gn[St] || z.namespaceURI === $n && !Bn[St] ? !1 : !Rr[q] && (Il[q] || !Cr[q]) : !!(ln === "application/xhtml+xml" && Us[M.namespaceURI]) : !1;
|
|
3028
3007
|
}, re = function(M) {
|
|
3029
3008
|
hn(t.removed, {
|
|
3030
3009
|
element: M
|
|
@@ -3034,7 +3013,7 @@ function Sl() {
|
|
|
3034
3013
|
} catch {
|
|
3035
3014
|
m(M);
|
|
3036
3015
|
}
|
|
3037
|
-
},
|
|
3016
|
+
}, Hn = function(M, z) {
|
|
3038
3017
|
try {
|
|
3039
3018
|
hn(t.removed, {
|
|
3040
3019
|
attribute: z.getAttributeNode(M),
|
|
@@ -3047,7 +3026,7 @@ function Sl() {
|
|
|
3047
3026
|
});
|
|
3048
3027
|
}
|
|
3049
3028
|
if (z.removeAttribute(M), M === "is" && !J[M])
|
|
3050
|
-
if (nt ||
|
|
3029
|
+
if (nt || Et)
|
|
3051
3030
|
try {
|
|
3052
3031
|
re(z);
|
|
3053
3032
|
} catch {
|
|
@@ -3066,21 +3045,21 @@ function Sl() {
|
|
|
3066
3045
|
q = At && At[0];
|
|
3067
3046
|
}
|
|
3068
3047
|
ln === "application/xhtml+xml" && $e === he && (M = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + M + "</body></html>");
|
|
3069
|
-
const
|
|
3048
|
+
const St = S ? S.createHTML(M) : M;
|
|
3070
3049
|
if ($e === he)
|
|
3071
3050
|
try {
|
|
3072
|
-
z = new u().parseFromString(
|
|
3051
|
+
z = new u().parseFromString(St, ln);
|
|
3073
3052
|
} catch {
|
|
3074
3053
|
}
|
|
3075
3054
|
if (!z || !z.documentElement) {
|
|
3076
3055
|
z = O.createDocument($e, "template", null);
|
|
3077
3056
|
try {
|
|
3078
|
-
z.documentElement.innerHTML =
|
|
3057
|
+
z.documentElement.innerHTML = Hs ? b : St;
|
|
3079
3058
|
} catch {
|
|
3080
3059
|
}
|
|
3081
3060
|
}
|
|
3082
|
-
const
|
|
3083
|
-
return M && q &&
|
|
3061
|
+
const kt = z.body || z.documentElement;
|
|
3062
|
+
return M && q && kt.insertBefore(e.createTextNode(q), kt.childNodes[0] || null), $e === he ? G.call(z, W ? "html" : "body")[0] : W ? z.documentElement : kt;
|
|
3084
3063
|
}, Dr = function(M) {
|
|
3085
3064
|
return I.call(
|
|
3086
3065
|
M.ownerDocument || M,
|
|
@@ -3093,11 +3072,13 @@ function Sl() {
|
|
|
3093
3072
|
return M instanceof d && (typeof M.nodeName != "string" || typeof M.textContent != "string" || typeof M.removeChild != "function" || !(M.attributes instanceof h) || typeof M.removeAttribute != "function" || typeof M.setAttribute != "function" || typeof M.namespaceURI != "string" || typeof M.insertBefore != "function" || typeof M.hasChildNodes != "function");
|
|
3094
3073
|
}, Nr = function(M) {
|
|
3095
3074
|
return typeof o == "function" && M instanceof o;
|
|
3096
|
-
}
|
|
3097
|
-
|
|
3098
|
-
|
|
3075
|
+
};
|
|
3076
|
+
function de(Z, M, z) {
|
|
3077
|
+
L[Z] && Qn(L[Z], (q) => {
|
|
3078
|
+
q.call(t, M, z, Ve);
|
|
3099
3079
|
});
|
|
3100
|
-
}
|
|
3080
|
+
}
|
|
3081
|
+
const $r = function(M) {
|
|
3101
3082
|
let z = null;
|
|
3102
3083
|
if (de("beforeSanitizeElements", M, null), Pr(M))
|
|
3103
3084
|
return re(M), !0;
|
|
@@ -3110,29 +3091,29 @@ function Sl() {
|
|
|
3110
3091
|
if (!F[q] || j[q]) {
|
|
3111
3092
|
if (!j[q] && Br(q) && (Q.tagNameCheck instanceof RegExp && Pt(Q.tagNameCheck, q) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(q)))
|
|
3112
3093
|
return !1;
|
|
3113
|
-
if (
|
|
3114
|
-
const
|
|
3115
|
-
if (
|
|
3116
|
-
const At =
|
|
3094
|
+
if (Bs && !Ne[q]) {
|
|
3095
|
+
const St = v(M) || M.parentNode, kt = y(M) || M.childNodes;
|
|
3096
|
+
if (kt && St) {
|
|
3097
|
+
const At = kt.length;
|
|
3117
3098
|
for (let Bt = At - 1; Bt >= 0; --Bt) {
|
|
3118
|
-
const ae = g(
|
|
3119
|
-
ae.__removalCount = (M.__removalCount || 0) + 1,
|
|
3099
|
+
const ae = g(kt[Bt], !0);
|
|
3100
|
+
ae.__removalCount = (M.__removalCount || 0) + 1, St.insertBefore(ae, E(M));
|
|
3120
3101
|
}
|
|
3121
3102
|
}
|
|
3122
3103
|
}
|
|
3123
3104
|
return re(M), !0;
|
|
3124
3105
|
}
|
|
3125
|
-
return M instanceof c && !$l(M) || (q === "noscript" || q === "noembed" || q === "noframes") && Pt(/<\/no(script|embed|frames)/i, M.innerHTML) ? (re(M), !0) : (H && M.nodeType === gn.text && (z = M.textContent,
|
|
3126
|
-
z = dn(z,
|
|
3106
|
+
return M instanceof c && !$l(M) || (q === "noscript" || q === "noembed" || q === "noframes") && Pt(/<\/no(script|embed|frames)/i, M.innerHTML) ? (re(M), !0) : (H && M.nodeType === gn.text && (z = M.textContent, Qn([B, D, A], (St) => {
|
|
3107
|
+
z = dn(z, St, " ");
|
|
3127
3108
|
}), M.textContent !== z && (hn(t.removed, {
|
|
3128
3109
|
element: M.cloneNode()
|
|
3129
3110
|
}), M.textContent = z)), de("afterSanitizeElements", M, null), !1);
|
|
3130
3111
|
}, Vr = function(M, z, q) {
|
|
3131
|
-
if (te && (z === "id" || z === "name") && (q in e || q in
|
|
3112
|
+
if (te && (z === "id" || z === "name") && (q in e || q in Nl))
|
|
3132
3113
|
return !1;
|
|
3133
|
-
if (!(ht && !
|
|
3114
|
+
if (!(ht && !K[z] && Pt(w, z))) {
|
|
3134
3115
|
if (!(ut && Pt(V, z))) {
|
|
3135
|
-
if (!J[z] ||
|
|
3116
|
+
if (!J[z] || K[z]) {
|
|
3136
3117
|
if (
|
|
3137
3118
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
3138
3119
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -3141,10 +3122,10 @@ function Sl() {
|
|
|
3141
3122
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3142
3123
|
z === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && Pt(Q.tagNameCheck, q) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(q)))
|
|
3143
3124
|
) return !1;
|
|
3144
|
-
} else if (!
|
|
3125
|
+
} else if (!Gs[z]) {
|
|
3145
3126
|
if (!Pt(X, dn(q, P, ""))) {
|
|
3146
|
-
if (!((z === "src" || z === "xlink:href" || z === "href") && M !== "script" && jd(q, "data:") === 0 &&
|
|
3147
|
-
if (!(
|
|
3127
|
+
if (!((z === "src" || z === "xlink:href" || z === "href") && M !== "script" && jd(q, "data:") === 0 && Ar[M])) {
|
|
3128
|
+
if (!(yt && !Pt(N, dn(q, P, "")))) {
|
|
3148
3129
|
if (q)
|
|
3149
3130
|
return !1;
|
|
3150
3131
|
}
|
|
@@ -3167,32 +3148,33 @@ function Sl() {
|
|
|
3167
3148
|
attrName: "",
|
|
3168
3149
|
attrValue: "",
|
|
3169
3150
|
keepAttr: !0,
|
|
3170
|
-
allowedAttributes: J
|
|
3151
|
+
allowedAttributes: J,
|
|
3152
|
+
forceKeepAttr: void 0
|
|
3171
3153
|
};
|
|
3172
|
-
let
|
|
3173
|
-
for (;
|
|
3174
|
-
const
|
|
3154
|
+
let St = z.length;
|
|
3155
|
+
for (; St--; ) {
|
|
3156
|
+
const kt = z[St], {
|
|
3175
3157
|
name: At,
|
|
3176
3158
|
namespaceURI: Bt,
|
|
3177
3159
|
value: ae
|
|
3178
|
-
} =
|
|
3160
|
+
} = kt, cn = Lt(At);
|
|
3179
3161
|
let Dt = At === "value" ? ae : Yd(ae);
|
|
3180
|
-
if (q.attrName = cn, q.attrValue = Dt, q.keepAttr = !0, q.forceKeepAttr = void 0, de("uponSanitizeAttribute", M, q), Dt = q.attrValue, U && Pt(/((--!?|])>)|<\/(style|title)/i, Dt)) {
|
|
3181
|
-
|
|
3162
|
+
if (q.attrName = cn, q.attrValue = Dt, q.keepAttr = !0, q.forceKeepAttr = void 0, de("uponSanitizeAttribute", M, q), Dt = q.attrValue, wr && (cn === "id" || cn === "name") && (Hn(At, M), Dt = Cl + Dt), U && Pt(/((--!?|])>)|<\/(style|title)/i, Dt)) {
|
|
3163
|
+
Hn(At, M);
|
|
3182
3164
|
continue;
|
|
3183
3165
|
}
|
|
3184
|
-
if (q.forceKeepAttr || (
|
|
3166
|
+
if (q.forceKeepAttr || (Hn(At, M), !q.keepAttr))
|
|
3185
3167
|
continue;
|
|
3186
3168
|
if (!Ut && Pt(/\/>/i, Dt)) {
|
|
3187
|
-
|
|
3169
|
+
Hn(At, M);
|
|
3188
3170
|
continue;
|
|
3189
3171
|
}
|
|
3190
|
-
H &&
|
|
3172
|
+
H && Qn([B, D, A], (Ur) => {
|
|
3191
3173
|
Dt = dn(Dt, Ur, " ");
|
|
3192
3174
|
});
|
|
3193
3175
|
const Hr = Lt(M.nodeName);
|
|
3194
3176
|
if (Vr(Hr, cn, Dt)) {
|
|
3195
|
-
if (
|
|
3177
|
+
if (S && typeof p == "object" && typeof p.getAttributeType == "function" && !Bt)
|
|
3196
3178
|
switch (p.getAttributeType(Hr, cn)) {
|
|
3197
3179
|
case "TrustedHTML": {
|
|
3198
3180
|
Dt = S.createHTML(Dt);
|
|
@@ -3210,92 +3192,92 @@ function Sl() {
|
|
|
3210
3192
|
}
|
|
3211
3193
|
}
|
|
3212
3194
|
de("afterSanitizeAttributes", M, null);
|
|
3213
|
-
}, Vl = function
|
|
3195
|
+
}, Vl = function Z(M) {
|
|
3214
3196
|
let z = null;
|
|
3215
3197
|
const q = Dr(M);
|
|
3216
3198
|
for (de("beforeSanitizeShadowDOM", M, null); z = q.nextNode(); )
|
|
3217
|
-
de("uponSanitizeShadowNode", z, null), !$r(z) && (z.content instanceof r &&
|
|
3199
|
+
de("uponSanitizeShadowNode", z, null), !$r(z) && (z.content instanceof r && Z(z.content), Gr(z));
|
|
3218
3200
|
de("afterSanitizeShadowDOM", M, null);
|
|
3219
3201
|
};
|
|
3220
|
-
return t.sanitize = function(
|
|
3221
|
-
let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, q = null,
|
|
3222
|
-
if (
|
|
3223
|
-
if (typeof
|
|
3224
|
-
if (
|
|
3202
|
+
return t.sanitize = function(Z) {
|
|
3203
|
+
let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, q = null, St = null, kt = null;
|
|
3204
|
+
if (Hs = !Z, Hs && (Z = "<!-->"), typeof Z != "string" && !Nr(Z))
|
|
3205
|
+
if (typeof Z.toString == "function") {
|
|
3206
|
+
if (Z = Z.toString(), typeof Z != "string")
|
|
3225
3207
|
throw pn("dirty is not a string, aborting");
|
|
3226
3208
|
} else
|
|
3227
3209
|
throw pn("toString is not a function");
|
|
3228
3210
|
if (!t.isSupported)
|
|
3229
|
-
return
|
|
3230
|
-
if (zt ||
|
|
3231
|
-
if (
|
|
3232
|
-
const ae = Lt(
|
|
3211
|
+
return Z;
|
|
3212
|
+
if (zt || zs(M), t.removed = [], typeof Z == "string" && (on = !1), on) {
|
|
3213
|
+
if (Z.nodeName) {
|
|
3214
|
+
const ae = Lt(Z.nodeName);
|
|
3233
3215
|
if (!F[ae] || j[ae])
|
|
3234
3216
|
throw pn("root node is forbidden and cannot be sanitized in-place");
|
|
3235
3217
|
}
|
|
3236
|
-
} else if (
|
|
3237
|
-
z = Ir("<!---->"), q = z.ownerDocument.importNode(
|
|
3218
|
+
} else if (Z instanceof o)
|
|
3219
|
+
z = Ir("<!---->"), q = z.ownerDocument.importNode(Z, !0), q.nodeType === gn.element && q.nodeName === "BODY" || q.nodeName === "HTML" ? z = q : z.appendChild(q);
|
|
3238
3220
|
else {
|
|
3239
3221
|
if (!nt && !H && !W && // eslint-disable-next-line unicorn/prefer-includes
|
|
3240
|
-
|
|
3241
|
-
return S && ie ? S.createHTML(
|
|
3242
|
-
if (z = Ir(
|
|
3222
|
+
Z.indexOf("<") === -1)
|
|
3223
|
+
return S && ie ? S.createHTML(Z) : Z;
|
|
3224
|
+
if (z = Ir(Z), !z)
|
|
3243
3225
|
return nt ? null : ie ? b : "";
|
|
3244
3226
|
}
|
|
3245
3227
|
z && an && re(z.firstChild);
|
|
3246
|
-
const At = Dr(on ?
|
|
3247
|
-
for (;
|
|
3248
|
-
$r(
|
|
3228
|
+
const At = Dr(on ? Z : z);
|
|
3229
|
+
for (; St = At.nextNode(); )
|
|
3230
|
+
$r(St) || (St.content instanceof r && Vl(St.content), Gr(St));
|
|
3249
3231
|
if (on)
|
|
3250
|
-
return
|
|
3232
|
+
return Z;
|
|
3251
3233
|
if (nt) {
|
|
3252
|
-
if (
|
|
3253
|
-
for (
|
|
3254
|
-
|
|
3234
|
+
if (Et)
|
|
3235
|
+
for (kt = C.call(z.ownerDocument); z.firstChild; )
|
|
3236
|
+
kt.appendChild(z.firstChild);
|
|
3255
3237
|
else
|
|
3256
|
-
|
|
3257
|
-
return (J.shadowroot || J.shadowrootmode) && (
|
|
3238
|
+
kt = z;
|
|
3239
|
+
return (J.shadowroot || J.shadowrootmode) && (kt = k.call(n, kt, !0)), kt;
|
|
3258
3240
|
}
|
|
3259
3241
|
let Bt = W ? z.outerHTML : z.innerHTML;
|
|
3260
3242
|
return W && F["!doctype"] && z.ownerDocument && z.ownerDocument.doctype && z.ownerDocument.doctype.name && Pt(El, z.ownerDocument.doctype.name) && (Bt = "<!DOCTYPE " + z.ownerDocument.doctype.name + `>
|
|
3261
|
-
` + Bt), H &&
|
|
3243
|
+
` + Bt), H && Qn([B, D, A], (ae) => {
|
|
3262
3244
|
Bt = dn(Bt, ae, " ");
|
|
3263
3245
|
}), S && ie ? S.createHTML(Bt) : Bt;
|
|
3264
3246
|
}, t.setConfig = function() {
|
|
3265
|
-
let
|
|
3266
|
-
|
|
3247
|
+
let Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3248
|
+
zs(Z), zt = !0;
|
|
3267
3249
|
}, t.clearConfig = function() {
|
|
3268
3250
|
Ve = null, zt = !1;
|
|
3269
|
-
}, t.isValidAttribute = function(
|
|
3270
|
-
Ve ||
|
|
3271
|
-
const q = Lt(
|
|
3272
|
-
return Vr(q,
|
|
3273
|
-
}, t.addHook = function(
|
|
3274
|
-
typeof M == "function" && (L[
|
|
3275
|
-
}, t.removeHook = function(
|
|
3276
|
-
if (L[
|
|
3277
|
-
return Ba(L[
|
|
3278
|
-
}, t.removeHooks = function(
|
|
3279
|
-
L[
|
|
3251
|
+
}, t.isValidAttribute = function(Z, M, z) {
|
|
3252
|
+
Ve || zs({});
|
|
3253
|
+
const q = Lt(Z), St = Lt(M);
|
|
3254
|
+
return Vr(q, St, z);
|
|
3255
|
+
}, t.addHook = function(Z, M) {
|
|
3256
|
+
typeof M == "function" && (L[Z] = L[Z] || [], hn(L[Z], M));
|
|
3257
|
+
}, t.removeHook = function(Z) {
|
|
3258
|
+
if (L[Z])
|
|
3259
|
+
return Ba(L[Z]);
|
|
3260
|
+
}, t.removeHooks = function(Z) {
|
|
3261
|
+
L[Z] && (L[Z] = []);
|
|
3280
3262
|
}, t.removeAllHooks = function() {
|
|
3281
3263
|
L = {};
|
|
3282
3264
|
}, t;
|
|
3283
3265
|
}
|
|
3284
|
-
var
|
|
3285
|
-
const
|
|
3266
|
+
var xr = Sl();
|
|
3267
|
+
const es = (s) => xr.sanitize(s, {
|
|
3286
3268
|
USE_PROFILES: {
|
|
3287
3269
|
html: !0,
|
|
3288
3270
|
svg: !0,
|
|
3289
3271
|
svgFilters: !0
|
|
3290
3272
|
}
|
|
3291
|
-
}), cp = (s) =>
|
|
3273
|
+
}), cp = (s) => xr.sanitize(s, {
|
|
3292
3274
|
NAMESPACE: "http://www.w3.org/2000/svg",
|
|
3293
3275
|
USE_PROFILES: {
|
|
3294
3276
|
html: !0,
|
|
3295
3277
|
svg: !0,
|
|
3296
3278
|
svgFilters: !0
|
|
3297
3279
|
}
|
|
3298
|
-
}), ue = (s) =>
|
|
3280
|
+
}), ue = (s) => xr.sanitize(s, { ALLOWED_TAGS: [] }), Cs = class Cs extends ot {
|
|
3299
3281
|
constructor() {
|
|
3300
3282
|
super(...arguments), this.type = "toolbar", this.renderType = st.HTML;
|
|
3301
3283
|
}
|
|
@@ -3311,7 +3293,9 @@ const Qn = (s) => Er.sanitize(s, {
|
|
|
3311
3293
|
// @ts-ignore
|
|
3312
3294
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3313
3295
|
render(t = !0) {
|
|
3314
|
-
const e = this.getComponentContainer(
|
|
3296
|
+
const e = this.getComponentContainer({
|
|
3297
|
+
ariaLabel: "toolbar"
|
|
3298
|
+
}).attr("role", "group");
|
|
3315
3299
|
if (T(this.getOptions(), "data", "loading"))
|
|
3316
3300
|
e.html(""), this.overflowMenu = null;
|
|
3317
3301
|
else {
|
|
@@ -3471,7 +3455,7 @@ const Qn = (s) => Er.sanitize(s, {
|
|
|
3471
3455
|
return e.forEach((a) => {
|
|
3472
3456
|
let o = null;
|
|
3473
3457
|
if (a.type === xt.CUSTOM)
|
|
3474
|
-
T(a, "id") === null && (a.id = `toolbar-button-${
|
|
3458
|
+
T(a, "id") === null && (a.id = `toolbar-button-${Cs.buttonID++}`), T(a, "shouldBeDisabled") === null && (a.shouldBeDisabled = () => !1), o = a;
|
|
3475
3459
|
else {
|
|
3476
3460
|
const c = this.services.domUtils.isFullScreenMode();
|
|
3477
3461
|
a.type === xt.MAKE_FULLSCREEN && c ? a.type = xt.EXIT_FULLSCREEN : a.type === xt.EXIT_FULLSCREEN && !c && (a.type = xt.MAKE_FULLSCREEN), o = this.getControlConfigByType(a.type);
|
|
@@ -3665,11 +3649,11 @@ const Qn = (s) => Er.sanitize(s, {
|
|
|
3665
3649
|
}
|
|
3666
3650
|
}
|
|
3667
3651
|
};
|
|
3668
|
-
|
|
3669
|
-
let Xa =
|
|
3670
|
-
const
|
|
3652
|
+
Cs.buttonID = 0;
|
|
3653
|
+
let Xa = Cs;
|
|
3654
|
+
const Rs = class Rs extends ot {
|
|
3671
3655
|
constructor(t, e, n, i) {
|
|
3672
|
-
super(t, e, i), this.type = "layout", this.configs = i, this.children = n, this._instanceID =
|
|
3656
|
+
super(t, e, i), this.type = "layout", this.configs = i, this.children = n, this._instanceID = Rs.instanceID++, this.init();
|
|
3673
3657
|
}
|
|
3674
3658
|
init() {
|
|
3675
3659
|
this.children.forEach((t) => {
|
|
@@ -3692,46 +3676,47 @@ const Cs = class Cs extends ot {
|
|
|
3692
3676
|
return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((e) => T(e, "growth") === Se.STRETCH).size();
|
|
3693
3677
|
}
|
|
3694
3678
|
render(t = !0) {
|
|
3695
|
-
const e = this.parent, { width:
|
|
3696
|
-
`${qt}--${
|
|
3679
|
+
const e = this.model.getOptions(), n = this.parent, { width: i, height: r } = _.getHTMLElementSize(n.node()), a = this.configs.direction === Be.ROW || this.configs.direction === Be.ROW_REVERSE, o = T(this.model.getOptions(), "style", "prefix"), c = n.classed(
|
|
3680
|
+
`${qt}--${o}--layout-row`,
|
|
3697
3681
|
this.configs.direction === Be.ROW
|
|
3698
3682
|
).classed(
|
|
3699
|
-
`${qt}--${
|
|
3683
|
+
`${qt}--${o}--layout-row-reverse`,
|
|
3700
3684
|
this.configs.direction === Be.ROW_REVERSE
|
|
3701
3685
|
).classed(
|
|
3702
|
-
`${qt}--${
|
|
3686
|
+
`${qt}--${o}--layout-column`,
|
|
3703
3687
|
this.configs.direction === Be.COLUMN
|
|
3704
3688
|
).classed(
|
|
3705
|
-
`${qt}--${
|
|
3689
|
+
`${qt}--${o}--layout-column-reverse`,
|
|
3706
3690
|
this.configs.direction === Be.COLUMN_REVERSE
|
|
3707
3691
|
).classed(
|
|
3708
|
-
`${qt}--${
|
|
3692
|
+
`${qt}--${o}--layout-alignitems-center`,
|
|
3709
3693
|
this.configs.alignItems === tc.CENTER
|
|
3710
|
-
).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
d.
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3694
|
+
).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
|
|
3695
|
+
c.enter().append("div").merge(n.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
|
|
3696
|
+
d.components.forEach((u) => {
|
|
3697
|
+
var E;
|
|
3698
|
+
const p = R(this), g = T(d, "renderType") === st.SVG;
|
|
3699
|
+
u.setParent(
|
|
3700
|
+
g ? _.appendOrSelect(p, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : p
|
|
3701
|
+
), g && !p.select("svg.layout-svg-wrapper").attr("aria-label") && p.select("svg.layout-svg-wrapper").attr("aria-label", ((E = e == null ? void 0 : e.accessibility) == null ? void 0 : E.svgAriaLabel) || (e == null ? void 0 : e.title));
|
|
3702
|
+
const m = T(d, "growth");
|
|
3703
|
+
(m === Se.PREFERRED || m === Se.FIXED) && u.render(t);
|
|
3704
|
+
});
|
|
3705
|
+
}), n.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(d) {
|
|
3706
|
+
const u = T(d, "growth"), f = T(d, "renderType") === st.SVG ? _.getSVGElementSize(R(this).select("svg.layout-svg-wrapper"), {
|
|
3722
3707
|
useBBox: !0
|
|
3723
3708
|
}) : _.getHTMLElementSize(this);
|
|
3724
|
-
if (
|
|
3725
|
-
const
|
|
3726
|
-
|
|
3709
|
+
if (u === Se.PREFERRED) {
|
|
3710
|
+
const g = a ? f.width : f.height, m = a ? i : r;
|
|
3711
|
+
d.size = g / m * 100;
|
|
3727
3712
|
}
|
|
3728
|
-
}),
|
|
3729
|
-
|
|
3713
|
+
}), c.exit().remove(), this.children.filter((d) => T(d, "growth") === Se.STRETCH).forEach((d) => {
|
|
3714
|
+
d.size = (100 - +this.getPreferedAndFixedSizeSum()) / +this.getNumOfStretchChildren();
|
|
3730
3715
|
});
|
|
3731
|
-
const
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
T(
|
|
3716
|
+
const h = n.selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
|
|
3717
|
+
a ? h.style("width", (d) => `${d.size / 100 * i}px`).style("height", "100%") : h.style("height", (d) => `${d.size / 100 * r}px`).style("width", "100%"), h.each(function(d) {
|
|
3718
|
+
d.components.forEach((u) => {
|
|
3719
|
+
T(d, "growth") === Se.STRETCH && u.render(t);
|
|
3735
3720
|
});
|
|
3736
3721
|
});
|
|
3737
3722
|
}
|
|
@@ -3753,8 +3738,8 @@ const Cs = class Cs extends ot {
|
|
|
3753
3738
|
});
|
|
3754
3739
|
}
|
|
3755
3740
|
};
|
|
3756
|
-
|
|
3757
|
-
let ja =
|
|
3741
|
+
Rs.instanceID = Math.floor(Math.random() * 99999999999);
|
|
3742
|
+
let ja = Rs;
|
|
3758
3743
|
class h0 extends ot {
|
|
3759
3744
|
constructor() {
|
|
3760
3745
|
super(...arguments), this.type = "spacer";
|
|
@@ -3763,7 +3748,9 @@ class h0 extends ot {
|
|
|
3763
3748
|
// @ts-ignore
|
|
3764
3749
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3765
3750
|
render(t = !1) {
|
|
3766
|
-
this.getComponentContainer(
|
|
3751
|
+
this.getComponentContainer({
|
|
3752
|
+
isPresentational: !0
|
|
3753
|
+
}).style("width", `${this.configs.size || Fr.default.size}px`).style("height", `${this.configs.size || Fr.default.size}px`).attr("opacity", 0);
|
|
3767
3754
|
}
|
|
3768
3755
|
}
|
|
3769
3756
|
var up = {
|
|
@@ -3773,14 +3760,8 @@ var up = {
|
|
|
3773
3760
|
button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
|
|
3774
3761
|
textarea:not([disabled]):not([tabindex='-1']),
|
|
3775
3762
|
iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]
|
|
3776
|
-
`,
|
|
3777
|
-
selectorFocusable: `
|
|
3778
|
-
a[href], area[href], input:not([disabled]),
|
|
3779
|
-
button:not([disabled]),select:not([disabled]),
|
|
3780
|
-
textarea:not([disabled]),
|
|
3781
|
-
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
3782
3763
|
`
|
|
3783
|
-
},
|
|
3764
|
+
}, mi = up;
|
|
3784
3765
|
function hp(s, t, e) {
|
|
3785
3766
|
return Object.defineProperty(s, "prototype", {
|
|
3786
3767
|
writable: !1
|
|
@@ -3799,19 +3780,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3799
3780
|
}
|
|
3800
3781
|
function gp(s, t) {
|
|
3801
3782
|
if (s) {
|
|
3802
|
-
if (typeof s == "string") return
|
|
3783
|
+
if (typeof s == "string") return Xi(s, t);
|
|
3803
3784
|
var e = Object.prototype.toString.call(s).slice(8, -1);
|
|
3804
3785
|
if (e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set") return Array.from(s);
|
|
3805
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return
|
|
3786
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Xi(s, t);
|
|
3806
3787
|
}
|
|
3807
3788
|
}
|
|
3808
3789
|
function mp(s) {
|
|
3809
3790
|
if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null) return Array.from(s);
|
|
3810
3791
|
}
|
|
3811
3792
|
function vp(s) {
|
|
3812
|
-
if (Array.isArray(s)) return
|
|
3793
|
+
if (Array.isArray(s)) return Xi(s);
|
|
3813
3794
|
}
|
|
3814
|
-
function
|
|
3795
|
+
function Xi(s, t) {
|
|
3815
3796
|
(t == null || t > s.length) && (t = s.length);
|
|
3816
3797
|
for (var e = 0, n = new Array(t); e < t; e++)
|
|
3817
3798
|
n[e] = s[e];
|
|
@@ -3834,13 +3815,13 @@ function yp() {
|
|
|
3834
3815
|
return hp(n);
|
|
3835
3816
|
}());
|
|
3836
3817
|
}
|
|
3837
|
-
function
|
|
3818
|
+
function ji(s) {
|
|
3838
3819
|
"@babel/helpers - typeof";
|
|
3839
|
-
return
|
|
3820
|
+
return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3840
3821
|
return typeof t;
|
|
3841
3822
|
} : function(t) {
|
|
3842
3823
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3843
|
-
},
|
|
3824
|
+
}, ji(s);
|
|
3844
3825
|
}
|
|
3845
3826
|
function Ep(s, t) {
|
|
3846
3827
|
if (!(s instanceof t))
|
|
@@ -3868,19 +3849,19 @@ function xp(s, t) {
|
|
|
3868
3849
|
}
|
|
3869
3850
|
}), Object.defineProperty(s, "prototype", {
|
|
3870
3851
|
writable: !1
|
|
3871
|
-
}), t &&
|
|
3852
|
+
}), t && Yi(s, t);
|
|
3872
3853
|
}
|
|
3873
|
-
function
|
|
3874
|
-
return
|
|
3854
|
+
function Yi(s, t) {
|
|
3855
|
+
return Yi = Object.setPrototypeOf || function(n, i) {
|
|
3875
3856
|
return n.__proto__ = i, n;
|
|
3876
|
-
},
|
|
3857
|
+
}, Yi(s, t);
|
|
3877
3858
|
}
|
|
3878
3859
|
function bp(s) {
|
|
3879
3860
|
var t = Op();
|
|
3880
3861
|
return function() {
|
|
3881
|
-
var n =
|
|
3862
|
+
var n = ws(s), i;
|
|
3882
3863
|
if (t) {
|
|
3883
|
-
var r =
|
|
3864
|
+
var r = ws(this).constructor;
|
|
3884
3865
|
i = Reflect.construct(n, arguments, r);
|
|
3885
3866
|
} else
|
|
3886
3867
|
i = n.apply(this, arguments);
|
|
@@ -3888,7 +3869,7 @@ function bp(s) {
|
|
|
3888
3869
|
};
|
|
3889
3870
|
}
|
|
3890
3871
|
function Tp(s, t) {
|
|
3891
|
-
if (t && (
|
|
3872
|
+
if (t && (ji(t) === "object" || typeof t == "function"))
|
|
3892
3873
|
return t;
|
|
3893
3874
|
if (t !== void 0)
|
|
3894
3875
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -3909,10 +3890,10 @@ function Op() {
|
|
|
3909
3890
|
return !1;
|
|
3910
3891
|
}
|
|
3911
3892
|
}
|
|
3912
|
-
function
|
|
3913
|
-
return
|
|
3893
|
+
function ws(s) {
|
|
3894
|
+
return ws = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
3914
3895
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
3915
|
-
},
|
|
3896
|
+
}, ws(s);
|
|
3916
3897
|
}
|
|
3917
3898
|
function wp(s) {
|
|
3918
3899
|
var t = /* @__PURE__ */ function(e) {
|
|
@@ -3945,13 +3926,13 @@ function wp(s) {
|
|
|
3945
3926
|
}(s);
|
|
3946
3927
|
return t;
|
|
3947
3928
|
}
|
|
3948
|
-
function
|
|
3929
|
+
function qi(s) {
|
|
3949
3930
|
"@babel/helpers - typeof";
|
|
3950
|
-
return
|
|
3931
|
+
return qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3951
3932
|
return typeof t;
|
|
3952
3933
|
} : function(t) {
|
|
3953
3934
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3954
|
-
},
|
|
3935
|
+
}, qi(s);
|
|
3955
3936
|
}
|
|
3956
3937
|
function Lp(s, t) {
|
|
3957
3938
|
if (!(s instanceof t))
|
|
@@ -3968,21 +3949,21 @@ function Mp(s, t, e) {
|
|
|
3968
3949
|
writable: !1
|
|
3969
3950
|
}), s;
|
|
3970
3951
|
}
|
|
3971
|
-
function
|
|
3972
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
3952
|
+
function hs() {
|
|
3953
|
+
return typeof Reflect < "u" && Reflect.get ? hs = Reflect.get : hs = function(t, e, n) {
|
|
3973
3954
|
var i = _p(t, e);
|
|
3974
3955
|
if (i) {
|
|
3975
3956
|
var r = Object.getOwnPropertyDescriptor(i, e);
|
|
3976
3957
|
return r.get ? r.get.call(arguments.length < 3 ? t : n) : r.value;
|
|
3977
3958
|
}
|
|
3978
|
-
},
|
|
3959
|
+
}, hs.apply(this, arguments);
|
|
3979
3960
|
}
|
|
3980
3961
|
function _p(s, t) {
|
|
3981
3962
|
for (; !Object.prototype.hasOwnProperty.call(s, t) && (s = rn(s), s !== null); )
|
|
3982
3963
|
;
|
|
3983
3964
|
return s;
|
|
3984
3965
|
}
|
|
3985
|
-
function
|
|
3966
|
+
function kp(s, t) {
|
|
3986
3967
|
if (typeof t != "function" && t !== null)
|
|
3987
3968
|
throw new TypeError("Super expression must either be null or a function");
|
|
3988
3969
|
s.prototype = Object.create(t && t.prototype, {
|
|
@@ -3993,14 +3974,14 @@ function Cp(s, t) {
|
|
|
3993
3974
|
}
|
|
3994
3975
|
}), Object.defineProperty(s, "prototype", {
|
|
3995
3976
|
writable: !1
|
|
3996
|
-
}), t &&
|
|
3977
|
+
}), t && Zi(s, t);
|
|
3997
3978
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return
|
|
3979
|
+
function Zi(s, t) {
|
|
3980
|
+
return Zi = Object.setPrototypeOf || function(n, i) {
|
|
4000
3981
|
return n.__proto__ = i, n;
|
|
4001
|
-
},
|
|
3982
|
+
}, Zi(s, t);
|
|
4002
3983
|
}
|
|
4003
|
-
function
|
|
3984
|
+
function Cp(s) {
|
|
4004
3985
|
var t = Dp();
|
|
4005
3986
|
return function() {
|
|
4006
3987
|
var n = rn(s), i;
|
|
@@ -4013,7 +3994,7 @@ function kp(s) {
|
|
|
4013
3994
|
};
|
|
4014
3995
|
}
|
|
4015
3996
|
function Rp(s, t) {
|
|
4016
|
-
if (t && (
|
|
3997
|
+
if (t && (qi(t) === "object" || typeof t == "function"))
|
|
4017
3998
|
return t;
|
|
4018
3999
|
if (t !== void 0)
|
|
4019
4000
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -4041,8 +4022,8 @@ function rn(s) {
|
|
|
4041
4022
|
}
|
|
4042
4023
|
function Pp(s) {
|
|
4043
4024
|
var t = /* @__PURE__ */ function(e) {
|
|
4044
|
-
|
|
4045
|
-
var n =
|
|
4025
|
+
kp(i, e);
|
|
4026
|
+
var n = Cp(i);
|
|
4046
4027
|
function i() {
|
|
4047
4028
|
var r;
|
|
4048
4029
|
Lp(this, i);
|
|
@@ -4078,7 +4059,7 @@ function Pp(s) {
|
|
|
4078
4059
|
var a = this;
|
|
4079
4060
|
return this.handles.forEach(function(o) {
|
|
4080
4061
|
o.release(), a.handles.delete(o);
|
|
4081
|
-
}),
|
|
4062
|
+
}), hs(rn(i.prototype), "release", this).call(this);
|
|
4082
4063
|
}
|
|
4083
4064
|
}]), i;
|
|
4084
4065
|
}(s);
|
|
@@ -4093,13 +4074,13 @@ function On(s) {
|
|
|
4093
4074
|
}
|
|
4094
4075
|
};
|
|
4095
4076
|
}
|
|
4096
|
-
function
|
|
4077
|
+
function Ki(s) {
|
|
4097
4078
|
"@babel/helpers - typeof";
|
|
4098
|
-
return
|
|
4079
|
+
return Ki = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4099
4080
|
return typeof t;
|
|
4100
4081
|
} : function(t) {
|
|
4101
4082
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4102
|
-
},
|
|
4083
|
+
}, Ki(s);
|
|
4103
4084
|
}
|
|
4104
4085
|
function Np(s) {
|
|
4105
4086
|
return Gp(s) || Bp(s) || Vp(s) || $p();
|
|
@@ -4110,19 +4091,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4110
4091
|
}
|
|
4111
4092
|
function Vp(s, t) {
|
|
4112
4093
|
if (s) {
|
|
4113
|
-
if (typeof s == "string") return
|
|
4094
|
+
if (typeof s == "string") return Ji(s, t);
|
|
4114
4095
|
var e = Object.prototype.toString.call(s).slice(8, -1);
|
|
4115
4096
|
if (e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set") return Array.from(s);
|
|
4116
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return
|
|
4097
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Ji(s, t);
|
|
4117
4098
|
}
|
|
4118
4099
|
}
|
|
4119
4100
|
function Bp(s) {
|
|
4120
4101
|
if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null) return Array.from(s);
|
|
4121
4102
|
}
|
|
4122
4103
|
function Gp(s) {
|
|
4123
|
-
if (Array.isArray(s)) return
|
|
4104
|
+
if (Array.isArray(s)) return Ji(s);
|
|
4124
4105
|
}
|
|
4125
|
-
function
|
|
4106
|
+
function Ji(s, t) {
|
|
4126
4107
|
(t == null || t > s.length) && (t = s.length);
|
|
4127
4108
|
for (var e = 0, n = new Array(t); e < t; e++)
|
|
4128
4109
|
n[e] = s[e];
|
|
@@ -4154,19 +4135,19 @@ function Fp(s, t) {
|
|
|
4154
4135
|
}
|
|
4155
4136
|
}), Object.defineProperty(s, "prototype", {
|
|
4156
4137
|
writable: !1
|
|
4157
|
-
}), t &&
|
|
4138
|
+
}), t && Qi(s, t);
|
|
4158
4139
|
}
|
|
4159
|
-
function
|
|
4160
|
-
return
|
|
4140
|
+
function Qi(s, t) {
|
|
4141
|
+
return Qi = Object.setPrototypeOf || function(n, i) {
|
|
4161
4142
|
return n.__proto__ = i, n;
|
|
4162
|
-
},
|
|
4143
|
+
}, Qi(s, t);
|
|
4163
4144
|
}
|
|
4164
4145
|
function Wp(s) {
|
|
4165
4146
|
var t = Yp();
|
|
4166
4147
|
return function() {
|
|
4167
|
-
var n =
|
|
4148
|
+
var n = Ls(s), i;
|
|
4168
4149
|
if (t) {
|
|
4169
|
-
var r =
|
|
4150
|
+
var r = Ls(this).constructor;
|
|
4170
4151
|
i = Reflect.construct(n, arguments, r);
|
|
4171
4152
|
} else
|
|
4172
4153
|
i = n.apply(this, arguments);
|
|
@@ -4174,7 +4155,7 @@ function Wp(s) {
|
|
|
4174
4155
|
};
|
|
4175
4156
|
}
|
|
4176
4157
|
function Xp(s, t) {
|
|
4177
|
-
if (t && (
|
|
4158
|
+
if (t && (Ki(t) === "object" || typeof t == "function"))
|
|
4178
4159
|
return t;
|
|
4179
4160
|
if (t !== void 0)
|
|
4180
4161
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -4195,10 +4176,10 @@ function Yp() {
|
|
|
4195
4176
|
return !1;
|
|
4196
4177
|
}
|
|
4197
4178
|
}
|
|
4198
|
-
function
|
|
4199
|
-
return
|
|
4179
|
+
function Ls(s) {
|
|
4180
|
+
return Ls = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
4200
4181
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
4201
|
-
},
|
|
4182
|
+
}, Ls(s);
|
|
4202
4183
|
}
|
|
4203
4184
|
function qp(s) {
|
|
4204
4185
|
var t = /* @__PURE__ */ function(e) {
|
|
@@ -4284,7 +4265,7 @@ function qp(s) {
|
|
|
4284
4265
|
}(s);
|
|
4285
4266
|
return t;
|
|
4286
4267
|
}
|
|
4287
|
-
function
|
|
4268
|
+
function tr(s, t) {
|
|
4288
4269
|
var e = s.target, n = s.currentTarget;
|
|
4289
4270
|
if (typeof e.matches == "function") {
|
|
4290
4271
|
if (e.matches(t))
|
|
@@ -4312,13 +4293,13 @@ function qa(s) {
|
|
|
4312
4293
|
launchingEvent: e
|
|
4313
4294
|
};
|
|
4314
4295
|
}
|
|
4315
|
-
function
|
|
4296
|
+
function er(s) {
|
|
4316
4297
|
"@babel/helpers - typeof";
|
|
4317
|
-
return
|
|
4298
|
+
return er = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4318
4299
|
return typeof t;
|
|
4319
4300
|
} : function(t) {
|
|
4320
4301
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4321
|
-
},
|
|
4302
|
+
}, er(s);
|
|
4322
4303
|
}
|
|
4323
4304
|
function Zp(s, t) {
|
|
4324
4305
|
if (!(s instanceof t))
|
|
@@ -4346,19 +4327,19 @@ function Qp(s, t) {
|
|
|
4346
4327
|
}
|
|
4347
4328
|
}), Object.defineProperty(s, "prototype", {
|
|
4348
4329
|
writable: !1
|
|
4349
|
-
}), t &&
|
|
4330
|
+
}), t && nr(s, t);
|
|
4350
4331
|
}
|
|
4351
|
-
function
|
|
4352
|
-
return
|
|
4332
|
+
function nr(s, t) {
|
|
4333
|
+
return nr = Object.setPrototypeOf || function(n, i) {
|
|
4353
4334
|
return n.__proto__ = i, n;
|
|
4354
|
-
},
|
|
4335
|
+
}, nr(s, t);
|
|
4355
4336
|
}
|
|
4356
4337
|
function tf(s) {
|
|
4357
4338
|
var t = sf();
|
|
4358
4339
|
return function() {
|
|
4359
|
-
var n =
|
|
4340
|
+
var n = As(s), i;
|
|
4360
4341
|
if (t) {
|
|
4361
|
-
var r =
|
|
4342
|
+
var r = As(this).constructor;
|
|
4362
4343
|
i = Reflect.construct(n, arguments, r);
|
|
4363
4344
|
} else
|
|
4364
4345
|
i = n.apply(this, arguments);
|
|
@@ -4366,7 +4347,7 @@ function tf(s) {
|
|
|
4366
4347
|
};
|
|
4367
4348
|
}
|
|
4368
4349
|
function ef(s, t) {
|
|
4369
|
-
if (t && (
|
|
4350
|
+
if (t && (er(t) === "object" || typeof t == "function"))
|
|
4370
4351
|
return t;
|
|
4371
4352
|
if (t !== void 0)
|
|
4372
4353
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -4387,10 +4368,10 @@ function sf() {
|
|
|
4387
4368
|
return !1;
|
|
4388
4369
|
}
|
|
4389
4370
|
}
|
|
4390
|
-
function
|
|
4391
|
-
return
|
|
4371
|
+
function As(s) {
|
|
4372
|
+
return As = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
4392
4373
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
4393
|
-
},
|
|
4374
|
+
}, As(s);
|
|
4394
4375
|
}
|
|
4395
4376
|
function rf(s) {
|
|
4396
4377
|
var t = /* @__PURE__ */ function(e) {
|
|
@@ -4478,13 +4459,13 @@ process.env.NODE_ENV !== "production" && (Ol = function(s, t, e) {
|
|
|
4478
4459
|
});
|
|
4479
4460
|
var lf = Ol;
|
|
4480
4461
|
const cf = /* @__PURE__ */ Tl(lf);
|
|
4481
|
-
function
|
|
4462
|
+
function sr(s) {
|
|
4482
4463
|
"@babel/helpers - typeof";
|
|
4483
|
-
return
|
|
4464
|
+
return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4484
4465
|
return typeof t;
|
|
4485
4466
|
} : function(t) {
|
|
4486
4467
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4487
|
-
},
|
|
4468
|
+
}, sr(s);
|
|
4488
4469
|
}
|
|
4489
4470
|
function uf(s, t) {
|
|
4490
4471
|
if (!(s instanceof t))
|
|
@@ -4512,19 +4493,19 @@ function pf(s, t) {
|
|
|
4512
4493
|
}
|
|
4513
4494
|
}), Object.defineProperty(s, "prototype", {
|
|
4514
4495
|
writable: !1
|
|
4515
|
-
}), t &&
|
|
4496
|
+
}), t && ir(s, t);
|
|
4516
4497
|
}
|
|
4517
|
-
function
|
|
4518
|
-
return
|
|
4498
|
+
function ir(s, t) {
|
|
4499
|
+
return ir = Object.setPrototypeOf || function(n, i) {
|
|
4519
4500
|
return n.__proto__ = i, n;
|
|
4520
|
-
},
|
|
4501
|
+
}, ir(s, t);
|
|
4521
4502
|
}
|
|
4522
4503
|
function ff(s) {
|
|
4523
4504
|
var t = vf();
|
|
4524
4505
|
return function() {
|
|
4525
|
-
var n =
|
|
4506
|
+
var n = Ms(s), i;
|
|
4526
4507
|
if (t) {
|
|
4527
|
-
var r =
|
|
4508
|
+
var r = Ms(this).constructor;
|
|
4528
4509
|
i = Reflect.construct(n, arguments, r);
|
|
4529
4510
|
} else
|
|
4530
4511
|
i = n.apply(this, arguments);
|
|
@@ -4532,7 +4513,7 @@ function ff(s) {
|
|
|
4532
4513
|
};
|
|
4533
4514
|
}
|
|
4534
4515
|
function gf(s, t) {
|
|
4535
|
-
if (t && (
|
|
4516
|
+
if (t && (sr(t) === "object" || typeof t == "function"))
|
|
4536
4517
|
return t;
|
|
4537
4518
|
if (t !== void 0)
|
|
4538
4519
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -4553,10 +4534,10 @@ function vf() {
|
|
|
4553
4534
|
return !1;
|
|
4554
4535
|
}
|
|
4555
4536
|
}
|
|
4556
|
-
function
|
|
4557
|
-
return
|
|
4537
|
+
function Ms(s) {
|
|
4538
|
+
return Ms = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
4558
4539
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
4559
|
-
},
|
|
4540
|
+
}, Ms(s);
|
|
4560
4541
|
}
|
|
4561
4542
|
function yf(s) {
|
|
4562
4543
|
var t = /* @__PURE__ */ function(e) {
|
|
@@ -4592,7 +4573,7 @@ function yf(s) {
|
|
|
4592
4573
|
else {
|
|
4593
4574
|
var h = l.initEventNames.map(function(d) {
|
|
4594
4575
|
return On(o, d, function(u) {
|
|
4595
|
-
var p =
|
|
4576
|
+
var p = tr(u, "[".concat(l.attribInitTarget, "]"));
|
|
4596
4577
|
if (p) {
|
|
4597
4578
|
u.delegateTarget = p;
|
|
4598
4579
|
var f = p.ownerDocument.querySelectorAll(p.getAttribute(l.attribInitTarget));
|
|
@@ -4620,13 +4601,13 @@ function yf(s) {
|
|
|
4620
4601
|
}(s);
|
|
4621
4602
|
return t;
|
|
4622
4603
|
}
|
|
4623
|
-
function
|
|
4604
|
+
function rr(s) {
|
|
4624
4605
|
"@babel/helpers - typeof";
|
|
4625
|
-
return
|
|
4606
|
+
return rr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4626
4607
|
return typeof t;
|
|
4627
4608
|
} : function(t) {
|
|
4628
4609
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4629
|
-
},
|
|
4610
|
+
}, rr(s);
|
|
4630
4611
|
}
|
|
4631
4612
|
function Ef(s, t) {
|
|
4632
4613
|
if (!(s instanceof t))
|
|
@@ -4654,19 +4635,19 @@ function xf(s, t) {
|
|
|
4654
4635
|
}
|
|
4655
4636
|
}), Object.defineProperty(s, "prototype", {
|
|
4656
4637
|
writable: !1
|
|
4657
|
-
}), t &&
|
|
4638
|
+
}), t && ar(s, t);
|
|
4658
4639
|
}
|
|
4659
|
-
function
|
|
4660
|
-
return
|
|
4640
|
+
function ar(s, t) {
|
|
4641
|
+
return ar = Object.setPrototypeOf || function(n, i) {
|
|
4661
4642
|
return n.__proto__ = i, n;
|
|
4662
|
-
},
|
|
4643
|
+
}, ar(s, t);
|
|
4663
4644
|
}
|
|
4664
4645
|
function bf(s) {
|
|
4665
4646
|
var t = wf();
|
|
4666
4647
|
return function() {
|
|
4667
|
-
var n =
|
|
4648
|
+
var n = _s(s), i;
|
|
4668
4649
|
if (t) {
|
|
4669
|
-
var r =
|
|
4650
|
+
var r = _s(this).constructor;
|
|
4670
4651
|
i = Reflect.construct(n, arguments, r);
|
|
4671
4652
|
} else
|
|
4672
4653
|
i = n.apply(this, arguments);
|
|
@@ -4674,7 +4655,7 @@ function bf(s) {
|
|
|
4674
4655
|
};
|
|
4675
4656
|
}
|
|
4676
4657
|
function Tf(s, t) {
|
|
4677
|
-
if (t && (
|
|
4658
|
+
if (t && (rr(t) === "object" || typeof t == "function"))
|
|
4678
4659
|
return t;
|
|
4679
4660
|
if (t !== void 0)
|
|
4680
4661
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -4695,10 +4676,10 @@ function wf() {
|
|
|
4695
4676
|
return !1;
|
|
4696
4677
|
}
|
|
4697
4678
|
}
|
|
4698
|
-
function
|
|
4699
|
-
return
|
|
4679
|
+
function _s(s) {
|
|
4680
|
+
return _s = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
4700
4681
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
4701
|
-
},
|
|
4682
|
+
}, _s(s);
|
|
4702
4683
|
}
|
|
4703
4684
|
var Lf = /* @__PURE__ */ function(s) {
|
|
4704
4685
|
xf(e, s);
|
|
@@ -4708,8 +4689,8 @@ var Lf = /* @__PURE__ */ function(s) {
|
|
|
4708
4689
|
return Ef(this, e), r = t.call(this, n, i), r._handleFocusinListener = void 0, r._handleKeydownListener = void 0, r._handleFocusin = function(a) {
|
|
4709
4690
|
var o = r.element.querySelector(r.options.selectorModalContainer) || r.element;
|
|
4710
4691
|
r.element.classList.contains(r.options.classVisible) && !o.contains(a.target) && r.options.selectorsFloatingMenus.every(function(c) {
|
|
4711
|
-
return !
|
|
4712
|
-
}) && r.element.querySelector(
|
|
4692
|
+
return !tr(a, c);
|
|
4693
|
+
}) && r.element.querySelector(mi.selectorTabbable).focus();
|
|
4713
4694
|
}, r._hookCloseActions(), r;
|
|
4714
4695
|
}
|
|
4715
4696
|
return Sf(e, [{
|
|
@@ -4746,7 +4727,7 @@ var Lf = /* @__PURE__ */ function(s) {
|
|
|
4746
4727
|
var o = this, c, l = function() {
|
|
4747
4728
|
if (c && (c = o.unmanage(c).release()), i === "shown" && o.element.offsetWidth > 0 && o.element.offsetHeight > 0) {
|
|
4748
4729
|
o.previouslyFocusedNode = o.element.ownerDocument.activeElement;
|
|
4749
|
-
var p = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(
|
|
4730
|
+
var p = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(mi.selectorTabbable);
|
|
4750
4731
|
p.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && cf(p, "Modals need to contain a focusable element by either using " + "`".concat(o.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
|
|
4751
4732
|
}
|
|
4752
4733
|
a();
|
|
@@ -4762,7 +4743,7 @@ var Lf = /* @__PURE__ */ function(s) {
|
|
|
4762
4743
|
value: function() {
|
|
4763
4744
|
var i = this;
|
|
4764
4745
|
this.manage(On(this.element, "click", function(r) {
|
|
4765
|
-
var a =
|
|
4746
|
+
var a = tr(r, i.options.selectorModalClose);
|
|
4766
4747
|
a && (r.delegateTarget = a), (a || r.target === i.element) && i.hide(r);
|
|
4767
4748
|
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(On(this.element.ownerDocument.body, "keydown", function(r) {
|
|
4768
4749
|
r.which === 27 && i.shouldStateBeChanged("hidden") && (r.stopPropagation(), i.hide(r));
|
|
@@ -4809,7 +4790,7 @@ var Lf = /* @__PURE__ */ function(s) {
|
|
|
4809
4790
|
* without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
|
|
4810
4791
|
*/
|
|
4811
4792
|
function() {
|
|
4812
|
-
var i =
|
|
4793
|
+
var i = mi.prefix;
|
|
4813
4794
|
return {
|
|
4814
4795
|
selectorInit: "[data-modal]",
|
|
4815
4796
|
selectorModalClose: "[data-modal-close]",
|
|
@@ -4867,7 +4848,7 @@ class d0 extends ot {
|
|
|
4867
4848
|
<table class="cds--data-table cds--data-table--no-border">
|
|
4868
4849
|
<thead>
|
|
4869
4850
|
<tr>
|
|
4870
|
-
${
|
|
4851
|
+
${vt(a, 0).map(
|
|
4871
4852
|
(o) => `<th scope="col">
|
|
4872
4853
|
<div class="cds--table-header-label">${ue(o)}</div>
|
|
4873
4854
|
</th>`
|
|
@@ -5023,15 +5004,15 @@ class Mf extends ot {
|
|
|
5023
5004
|
v.exit().remove();
|
|
5024
5005
|
const S = v.enter().append("div").merge(v).classed("legend-item", !0).classed("additional", !0).attr(
|
|
5025
5006
|
"aria-labelledby",
|
|
5026
|
-
(I,
|
|
5027
|
-
`legend-datagroup-${m.size() +
|
|
5007
|
+
(I, C) => this.services.domUtils.generateElementIDString(
|
|
5008
|
+
`legend-datagroup-${m.size() + C}-title`
|
|
5028
5009
|
)
|
|
5029
5010
|
);
|
|
5030
5011
|
S.selectAll("*").remove();
|
|
5031
5012
|
let b, O = 1;
|
|
5032
5013
|
S.append("svg").classed("icon", !0).each(function(I) {
|
|
5033
|
-
const
|
|
5034
|
-
!b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(
|
|
5014
|
+
const C = R(this);
|
|
5015
|
+
!b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(C, I, O);
|
|
5035
5016
|
}), S.append("p").merge(S.select("p")), this.truncateLegendText();
|
|
5036
5017
|
}
|
|
5037
5018
|
d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
|
|
@@ -5081,7 +5062,7 @@ class Mf extends ot {
|
|
|
5081
5062
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
5082
5063
|
}), n !== Ze.NONE ? a.html(function(o) {
|
|
5083
5064
|
const c = ue(o.name);
|
|
5084
|
-
return c.length > i && c.length !== r ?
|
|
5065
|
+
return c.length > i && c.length !== r ? kn(c, n, r) : c;
|
|
5085
5066
|
}) : a.html((o) => ue(o.name));
|
|
5086
5067
|
}
|
|
5087
5068
|
addEventListeners() {
|
|
@@ -5200,10 +5181,8 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
|
|
|
5200
5181
|
};
|
|
5201
5182
|
}, Fe), Ja = typeof window < "u" ? window : {
|
|
5202
5183
|
innerHeight: 0,
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
scrollX: 0
|
|
5206
|
-
}, Ns = (
|
|
5184
|
+
innerWidth: 0
|
|
5185
|
+
}, Vs = (
|
|
5207
5186
|
/** @class */
|
|
5208
5187
|
function() {
|
|
5209
5188
|
function s(t) {
|
|
@@ -5291,24 +5270,24 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
|
|
|
5291
5270
|
}, s;
|
|
5292
5271
|
}()
|
|
5293
5272
|
);
|
|
5294
|
-
new
|
|
5295
|
-
class
|
|
5273
|
+
new Vs();
|
|
5274
|
+
class kf extends ot {
|
|
5296
5275
|
constructor(t, e, n) {
|
|
5297
|
-
super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new
|
|
5276
|
+
super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Vs(), this.handleShowTooltip = (i) => {
|
|
5298
5277
|
const r = i.detail.data || i.detail.items, a = R(i.detail.event.target).datum();
|
|
5299
5278
|
let o;
|
|
5300
5279
|
const c = this.formatItems(this.getItems(i));
|
|
5301
|
-
i.detail.content ? o = `<div class="title-tooltip"><p>${
|
|
5280
|
+
i.detail.content ? o = `<div class="title-tooltip"><p>${es(i.detail.content)}</p></div>` : o = es(this.getTooltipHTML(c));
|
|
5302
5281
|
const l = _.appendOrSelect(this.tooltip, "div.content-box");
|
|
5303
5282
|
if (T(this.getOptions(), "tooltip", "customHTML"))
|
|
5304
5283
|
if (i.detail.content) {
|
|
5305
|
-
const h = `<div class="title-tooltip"><p>${
|
|
5284
|
+
const h = `<div class="title-tooltip"><p>${es(
|
|
5306
5285
|
i.detail.content
|
|
5307
5286
|
)}</p></div>`;
|
|
5308
5287
|
l.html(h);
|
|
5309
5288
|
} else
|
|
5310
5289
|
l.html(
|
|
5311
|
-
`<div class="title-tooltip"><p>${
|
|
5290
|
+
`<div class="title-tooltip"><p>${es(
|
|
5312
5291
|
this.model.getOptions().tooltip.customHTML(r, o, a)
|
|
5313
5292
|
)}</p></div>`
|
|
5314
5293
|
);
|
|
@@ -5337,7 +5316,7 @@ class Cf extends ot {
|
|
|
5337
5316
|
const e = this.getOptions(), n = T(e, "tooltip", "truncation", "type"), i = T(e, "tooltip", "truncation", "threshold"), r = T(e, "tooltip", "truncation", "numCharacter");
|
|
5338
5317
|
return n !== Ze.NONE ? t.map((a) => {
|
|
5339
5318
|
const o = a.labelIcon ? 12 : 0;
|
|
5340
|
-
return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label =
|
|
5319
|
+
return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = kn(a.label, n, r)), a.value && a.value.length > i && (a.value = kn(a.value, n, r)), a;
|
|
5341
5320
|
}) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
|
|
5342
5321
|
}
|
|
5343
5322
|
getTooltipHTML(t) {
|
|
@@ -5463,7 +5442,9 @@ const Qe = class Qe extends ot {
|
|
|
5463
5442
|
// @ts-ignore
|
|
5464
5443
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5465
5444
|
render(t = !0) {
|
|
5466
|
-
const e = this.parent, n = this.getComponentContainer(
|
|
5445
|
+
const e = this.parent, n = this.getComponentContainer({
|
|
5446
|
+
isPresentational: !0
|
|
5447
|
+
});
|
|
5467
5448
|
if (!e) throw new Error("SVG was not defined");
|
|
5468
5449
|
const i = _.appendOrSelect(
|
|
5469
5450
|
e,
|
|
@@ -5479,17 +5460,17 @@ const Qe = class Qe extends ot {
|
|
|
5479
5460
|
const g = (b) => {
|
|
5480
5461
|
const O = b[1] - b[0];
|
|
5481
5462
|
let I = "0," + O.toString();
|
|
5482
|
-
const
|
|
5483
|
-
for (let
|
|
5463
|
+
const C = Math.floor(c / Qe.DASH_LENGTH), G = C * Qe.DASH_LENGTH;
|
|
5464
|
+
for (let k = 0; k < C; k++)
|
|
5484
5465
|
I += "," + Qe.DASH_LENGTH;
|
|
5485
|
-
I += "," + (c - G),
|
|
5466
|
+
I += "," + (c - G), C % 2 === 1 && (I += ",0"), I += "," + O.toString(), I += "," + c.toString(), p.attr("stroke-dasharray", I);
|
|
5486
5467
|
}, m = (b) => {
|
|
5487
5468
|
const O = b.selection;
|
|
5488
5469
|
O === null || O[0] === O[1] || (p.attr("x", parseFloat(a.attr("x")) + parseFloat(i.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), g(O));
|
|
5489
5470
|
}, E = (b, O) => {
|
|
5490
5471
|
const I = rc().range([0, o]).domain(f);
|
|
5491
|
-
let
|
|
5492
|
-
|
|
5472
|
+
let C = [I.invert(b), I.invert(O)];
|
|
5473
|
+
C[0].valueOf() === C[1].valueOf() && (C = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== C[0].valueOf() || f[1].valueOf() !== C[1].valueOf()) && this.services.zoom.handleDomainChange(C);
|
|
5493
5474
|
};
|
|
5494
5475
|
let y;
|
|
5495
5476
|
const v = (b) => {
|
|
@@ -5504,10 +5485,10 @@ const Qe = class Qe extends ot {
|
|
|
5504
5485
|
i.on("click", function(b) {
|
|
5505
5486
|
if (b.shiftKey) {
|
|
5506
5487
|
const O = this.services.domUtils.getHolder(), I = en(r.node(), O)[0];
|
|
5507
|
-
let
|
|
5508
|
-
|
|
5488
|
+
let C = I - o * S / 2;
|
|
5489
|
+
C < 0 && (C = 0);
|
|
5509
5490
|
let G = I + o * S / 2;
|
|
5510
|
-
G > o && (G = o), E(
|
|
5491
|
+
G > o && (G = o), E(C, G);
|
|
5511
5492
|
}
|
|
5512
5493
|
});
|
|
5513
5494
|
}
|
|
@@ -5528,7 +5509,9 @@ class f0 extends ot {
|
|
|
5528
5509
|
// @ts-ignore
|
|
5529
5510
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5530
5511
|
render(t = !0) {
|
|
5531
|
-
const e = this.getComponentContainer(
|
|
5512
|
+
const e = this.getComponentContainer({
|
|
5513
|
+
ariaLabel: "zoom bar"
|
|
5514
|
+
}), n = this.services.zoom.isZoomBarLoading(Y.TOP), i = this.services.zoom.isZoomBarLocked(Y.TOP), r = T(this.getOptions(), "zoomBar", Y.TOP, "type"), a = T(this.getOptions(), "axes", Y.BOTTOM, "highlights"), o = Yt.height[r], { width: c } = _.getSVGElementSize(this.parent, {
|
|
5532
5515
|
useAttrs: !0
|
|
5533
5516
|
});
|
|
5534
5517
|
if (c === 0)
|
|
@@ -5574,20 +5557,20 @@ class f0 extends ot {
|
|
|
5574
5557
|
zoomDomain: tn([], E)
|
|
5575
5558
|
},
|
|
5576
5559
|
{ skipUpdate: !0 }
|
|
5577
|
-
), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(
|
|
5560
|
+
), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Is(m, (O) => O.value));
|
|
5578
5561
|
const S = this.model.get("zoomDomain");
|
|
5579
5562
|
if (r === Ge.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, l, c), a)) {
|
|
5580
|
-
const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo,
|
|
5581
|
-
a.data.forEach((
|
|
5582
|
-
_.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(
|
|
5563
|
+
const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo, C = a.color, G = a.labelMapsTo;
|
|
5564
|
+
a.data.forEach((k, L) => {
|
|
5565
|
+
_.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(k[O])).attr(
|
|
5583
5566
|
"width",
|
|
5584
|
-
this.xScale(
|
|
5567
|
+
this.xScale(k[I]) - this.xScale(k[O])
|
|
5585
5568
|
).style(
|
|
5586
5569
|
"fill",
|
|
5587
|
-
|
|
5570
|
+
C && C.scale[k[G]] ? C.scale[k[G]] : null
|
|
5588
5571
|
).style("fill-opacity", 0.1).style(
|
|
5589
5572
|
"stroke",
|
|
5590
|
-
|
|
5573
|
+
C && C.scale[k[G]] ? C.scale[k[G]] : null
|
|
5591
5574
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
5592
5575
|
});
|
|
5593
5576
|
}
|
|
@@ -5664,7 +5647,7 @@ class f0 extends ot {
|
|
|
5664
5647
|
_.appendOrSelect(r, "rect.zoom-slider-selected-area").attr("x", t[0]).attr("y", n / 2 - 1).attr("width", t[1] - t[0]).attr("height", 2);
|
|
5665
5648
|
}
|
|
5666
5649
|
renderZoomBarArea(t, e, n, i) {
|
|
5667
|
-
const { cartesianScales: r } = this.services, a = r.getMainXAxisPosition(), o = r.getMainYAxisPosition(), c = r.getMainXScaleType(), l = r.getMainYScaleType(), h = (E, y, v) => (S) => r.getValueFromScale(E, y, v, S), d = h(this.xScale, c, a), u = h(this.yScale, l, o), p = T(this.getOptions(), "zoomBar", Y.TOP, "type"), f = Yt.height[p], g =
|
|
5650
|
+
const { cartesianScales: r } = this.services, a = r.getMainXAxisPosition(), o = r.getMainYAxisPosition(), c = r.getMainXScaleType(), l = r.getMainYScaleType(), h = (E, y, v) => (S) => r.getValueFromScale(E, y, v, S), d = h(this.xScale, c, a), u = h(this.yScale, l, o), p = T(this.getOptions(), "zoomBar", Y.TOP, "type"), f = Yt.height[p], g = Sr().x((E) => d(E)).y0(f).y1((E) => f - u(E)), m = _.appendOrSelect(t, e).datum(n).attr("d", g);
|
|
5668
5651
|
i && m.attr("clip-path", `url(#${i})`);
|
|
5669
5652
|
}
|
|
5670
5653
|
updateClipPath(t, e, n, i, r, a) {
|
|
@@ -5710,7 +5693,7 @@ class f0 extends ot {
|
|
|
5710
5693
|
}
|
|
5711
5694
|
class g0 extends ot {
|
|
5712
5695
|
constructor(t, e) {
|
|
5713
|
-
super(t, e), this.type = "threshold", this.renderType = st.SVG, this.positionService = new
|
|
5696
|
+
super(t, e), this.type = "threshold", this.renderType = st.SVG, this.positionService = new Vs();
|
|
5714
5697
|
}
|
|
5715
5698
|
render(t = !1) {
|
|
5716
5699
|
const e = T(this.getOptions(), "axes"), n = [];
|
|
@@ -5725,7 +5708,10 @@ class g0 extends ot {
|
|
|
5725
5708
|
});
|
|
5726
5709
|
}
|
|
5727
5710
|
});
|
|
5728
|
-
const r = this.getComponentContainer({
|
|
5711
|
+
const r = this.getComponentContainer({
|
|
5712
|
+
ariaLabel: "threshold lines",
|
|
5713
|
+
withinChartClip: !0
|
|
5714
|
+
}).selectAll("g.axis-thresholds").data(n, (u) => u.axisPosition);
|
|
5729
5715
|
r.exit().attr("opacity", 0).remove();
|
|
5730
5716
|
const o = r.enter().append("g").merge(r);
|
|
5731
5717
|
o.attr("class", (u) => `axis-thresholds ${u.axisPosition}`);
|
|
@@ -5742,8 +5728,8 @@ class g0 extends ot {
|
|
|
5742
5728
|
), f = d.services.cartesianScales.getScaleTypeByPosition(u);
|
|
5743
5729
|
let g = null, m = null;
|
|
5744
5730
|
u === Y.LEFT || u === Y.RIGHT ? (m = p, g = d.services.cartesianScales.getMainXScale()) : (g = p, m = d.services.cartesianScales.getMainYScale());
|
|
5745
|
-
const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(),
|
|
5746
|
-
|
|
5731
|
+
const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(), C = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [k, L] = ye(
|
|
5732
|
+
C,
|
|
5747
5733
|
G,
|
|
5748
5734
|
I
|
|
5749
5735
|
), B = R(this);
|
|
@@ -5755,11 +5741,11 @@ class g0 extends ot {
|
|
|
5755
5741
|
})
|
|
5756
5742
|
).attr("y1", b).attr("y2", S).attr(
|
|
5757
5743
|
"x1",
|
|
5758
|
-
({ datum: D }) =>
|
|
5744
|
+
({ datum: D }) => k(D) + (E ? p.step() / 2 : 0)
|
|
5759
5745
|
).attr(
|
|
5760
5746
|
"x2",
|
|
5761
|
-
({ datum: D }) =>
|
|
5762
|
-
).style("stroke", ({ fillColor: D }) => D), B.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: D }) => -
|
|
5747
|
+
({ datum: D }) => k(D) + (E ? p.step() / 2 : 0)
|
|
5748
|
+
).style("stroke", ({ fillColor: D }) => D), B.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: D }) => -k(D)).attr("width", Math.abs(S - b)).classed("rotate", !0)) : (B.selectAll("line.threshold-line").transition().call(
|
|
5763
5749
|
(D) => d.services.transitions.setupTransition({
|
|
5764
5750
|
transition: D,
|
|
5765
5751
|
name: "threshold-line-update",
|
|
@@ -5781,11 +5767,11 @@ class g0 extends ot {
|
|
|
5781
5767
|
getFormattedValue(t) {
|
|
5782
5768
|
const { value: e, axisPosition: n } = t, i = this.getOptions(), r = this.services.cartesianScales.getScaleTypeByPosition(n), { code: a, number: o } = T(i, "locale");
|
|
5783
5769
|
if (r === Mt.TIME) {
|
|
5784
|
-
const c = [Y.LEFT, Y.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = T(i, "timeScale"), p =
|
|
5770
|
+
const c = [Y.LEFT, Y.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = T(i, "timeScale"), p = Si(
|
|
5785
5771
|
d.ticks(),
|
|
5786
5772
|
T(u, "timeInterval")
|
|
5787
5773
|
);
|
|
5788
|
-
return
|
|
5774
|
+
return xi(e, 0, d.ticks(), p, u, i.locale);
|
|
5789
5775
|
}
|
|
5790
5776
|
return o(e, a);
|
|
5791
5777
|
}
|
|
@@ -5848,7 +5834,7 @@ class g0 extends ot {
|
|
|
5848
5834
|
}
|
|
5849
5835
|
class m0 extends ot {
|
|
5850
5836
|
constructor(t, e) {
|
|
5851
|
-
super(t, e), this.type = "highlight", this.renderType = st.SVG, this.positionService = new
|
|
5837
|
+
super(t, e), this.type = "highlight", this.renderType = st.SVG, this.positionService = new Vs(), this.highlightStrokeWidth = 1;
|
|
5852
5838
|
}
|
|
5853
5839
|
render(t = !1) {
|
|
5854
5840
|
const e = T(this.getOptions(), "axes"), n = [];
|
|
@@ -5865,7 +5851,10 @@ class m0 extends ot {
|
|
|
5865
5851
|
});
|
|
5866
5852
|
}
|
|
5867
5853
|
});
|
|
5868
|
-
const r = this.getComponentContainer({
|
|
5854
|
+
const r = this.getComponentContainer({
|
|
5855
|
+
ariaLabel: "highlight areas",
|
|
5856
|
+
withinChartClip: !0
|
|
5857
|
+
}).selectAll("g.axis-highlight").data(n, (u) => u.axisPosition);
|
|
5869
5858
|
r.exit().attr("opacity", 0).remove();
|
|
5870
5859
|
const o = r.enter().append("g").merge(r);
|
|
5871
5860
|
o.attr("class", (u) => `axis-highlight ${u.axisPosition}`);
|
|
@@ -5877,34 +5866,34 @@ class m0 extends ot {
|
|
|
5877
5866
|
l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
|
|
5878
5867
|
const d = this;
|
|
5879
5868
|
o.each(function({ axisPosition: u }) {
|
|
5880
|
-
const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (
|
|
5869
|
+
const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (k) => v.getDomainValue(k), O = (k) => v.getRangeValue(k), [I, C] = ye(
|
|
5881
5870
|
b,
|
|
5882
5871
|
O,
|
|
5883
5872
|
S
|
|
5884
5873
|
), G = R(this);
|
|
5885
5874
|
u === Y.TOP || u === Y.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
|
|
5886
|
-
(
|
|
5887
|
-
transition:
|
|
5875
|
+
(k) => d.services.transitions.setupTransition({
|
|
5876
|
+
transition: k,
|
|
5888
5877
|
name: "highlight-bar-update",
|
|
5889
5878
|
animate: t
|
|
5890
5879
|
})
|
|
5891
|
-
).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo:
|
|
5880
|
+
).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: k, ...L }) => I(L[k])).attr(
|
|
5892
5881
|
"width",
|
|
5893
|
-
({ highlightStartMapsTo:
|
|
5894
|
-
).style("stroke", ({ color:
|
|
5895
|
-
(
|
|
5896
|
-
transition:
|
|
5882
|
+
({ highlightStartMapsTo: k, highlightEndMapsTo: L, ...B }) => Math.max(I(B[L]) - I(B[k]), 0)
|
|
5883
|
+
).style("stroke", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null) : G.selectAll("rect.highlight-bar").transition().call(
|
|
5884
|
+
(k) => d.services.transitions.setupTransition({
|
|
5885
|
+
transition: k,
|
|
5897
5886
|
name: "highlight-bar-update",
|
|
5898
5887
|
animate: t
|
|
5899
5888
|
})
|
|
5900
|
-
).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo:
|
|
5889
|
+
).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: k, ...L }) => C(L[k])).attr(
|
|
5901
5890
|
"height",
|
|
5902
|
-
({ highlightStartMapsTo:
|
|
5903
|
-
).style("stroke", ({ color:
|
|
5891
|
+
({ highlightStartMapsTo: k, highlightEndMapsTo: L, ...B }) => Math.max(C(B[k]) - C(B[L]), 0)
|
|
5892
|
+
).style("stroke", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null);
|
|
5904
5893
|
});
|
|
5905
5894
|
}
|
|
5906
5895
|
}
|
|
5907
|
-
class v0 extends
|
|
5896
|
+
class v0 extends kf {
|
|
5908
5897
|
getItems(t) {
|
|
5909
5898
|
if (t.detail.items)
|
|
5910
5899
|
return t.detail.items;
|
|
@@ -5951,7 +5940,7 @@ class v0 extends Cf {
|
|
|
5951
5940
|
value: g.value
|
|
5952
5941
|
})
|
|
5953
5942
|
), d.push({
|
|
5954
|
-
label:
|
|
5943
|
+
label: vt(n, "locale.translations.group") || vt(n, "tooltip.groupLabel"),
|
|
5955
5944
|
value: u[o],
|
|
5956
5945
|
color: this.model.getFillColor(u[o]),
|
|
5957
5946
|
class: this.model.getColorClassName({
|
|
@@ -5980,7 +5969,7 @@ class v0 extends Cf {
|
|
|
5980
5969
|
), !a && T(n, "tooltip", "showTotal") === !0)) {
|
|
5981
5970
|
const u = i.getRangeIdentifier();
|
|
5982
5971
|
d.push({
|
|
5983
|
-
label:
|
|
5972
|
+
label: vt(n, "locale.translations.total") || vt(n, "tooltip.totalLabel") || "Total",
|
|
5984
5973
|
value: e.reduce(
|
|
5985
5974
|
(p, f) => p + f[u],
|
|
5986
5975
|
0
|
|
@@ -6003,7 +5992,7 @@ function to(s, t) {
|
|
|
6003
5992
|
}
|
|
6004
5993
|
return e;
|
|
6005
5994
|
}
|
|
6006
|
-
function
|
|
5995
|
+
function Cf(s, t) {
|
|
6007
5996
|
let e;
|
|
6008
5997
|
if (t === void 0)
|
|
6009
5998
|
for (const n of s)
|
|
@@ -6015,7 +6004,7 @@ function kf(s, t) {
|
|
|
6015
6004
|
}
|
|
6016
6005
|
return e;
|
|
6017
6006
|
}
|
|
6018
|
-
function
|
|
6007
|
+
function vi(s, t) {
|
|
6019
6008
|
let e = 0;
|
|
6020
6009
|
if (t === void 0)
|
|
6021
6010
|
for (let n of s)
|
|
@@ -6036,21 +6025,21 @@ function If(s, t) {
|
|
|
6036
6025
|
function wl(s, t) {
|
|
6037
6026
|
return s.sourceLinks.length ? s.depth : t - 1;
|
|
6038
6027
|
}
|
|
6039
|
-
function
|
|
6028
|
+
function ns(s) {
|
|
6040
6029
|
return function() {
|
|
6041
6030
|
return s;
|
|
6042
6031
|
};
|
|
6043
6032
|
}
|
|
6044
6033
|
function eo(s, t) {
|
|
6045
|
-
return
|
|
6034
|
+
return ks(s.source, t.source) || s.index - t.index;
|
|
6046
6035
|
}
|
|
6047
6036
|
function no(s, t) {
|
|
6048
|
-
return
|
|
6037
|
+
return ks(s.target, t.target) || s.index - t.index;
|
|
6049
6038
|
}
|
|
6050
|
-
function
|
|
6039
|
+
function ks(s, t) {
|
|
6051
6040
|
return s.y0 - t.y0;
|
|
6052
6041
|
}
|
|
6053
|
-
function
|
|
6042
|
+
function yi(s) {
|
|
6054
6043
|
return s.value;
|
|
6055
6044
|
}
|
|
6056
6045
|
function Df(s) {
|
|
@@ -6085,9 +6074,9 @@ function $f() {
|
|
|
6085
6074
|
f.update = function(w) {
|
|
6086
6075
|
return io(w), w;
|
|
6087
6076
|
}, f.nodeId = function(w) {
|
|
6088
|
-
return arguments.length ? (o = typeof w == "function" ? w :
|
|
6077
|
+
return arguments.length ? (o = typeof w == "function" ? w : ns(w), f) : o;
|
|
6089
6078
|
}, f.nodeAlign = function(w) {
|
|
6090
|
-
return arguments.length ? (c = typeof w == "function" ? w :
|
|
6079
|
+
return arguments.length ? (c = typeof w == "function" ? w : ns(w), f) : c;
|
|
6091
6080
|
}, f.nodeSort = function(w) {
|
|
6092
6081
|
return arguments.length ? (l = w, f) : l;
|
|
6093
6082
|
}, f.nodeWidth = function(w) {
|
|
@@ -6095,9 +6084,9 @@ function $f() {
|
|
|
6095
6084
|
}, f.nodePadding = function(w) {
|
|
6096
6085
|
return arguments.length ? (r = a = +w, f) : r;
|
|
6097
6086
|
}, f.nodes = function(w) {
|
|
6098
|
-
return arguments.length ? (d = typeof w == "function" ? w :
|
|
6087
|
+
return arguments.length ? (d = typeof w == "function" ? w : ns(w), f) : d;
|
|
6099
6088
|
}, f.links = function(w) {
|
|
6100
|
-
return arguments.length ? (u = typeof w == "function" ? w :
|
|
6089
|
+
return arguments.length ? (u = typeof w == "function" ? w : ns(w), f) : u;
|
|
6101
6090
|
}, f.linkSort = function(w) {
|
|
6102
6091
|
return arguments.length ? (h = w, f) : h;
|
|
6103
6092
|
}, f.size = function(w) {
|
|
@@ -6122,7 +6111,7 @@ function $f() {
|
|
|
6122
6111
|
}
|
|
6123
6112
|
function m({ nodes: w }) {
|
|
6124
6113
|
for (const V of w)
|
|
6125
|
-
V.value = V.fixedValue === void 0 ? Math.max(
|
|
6114
|
+
V.value = V.fixedValue === void 0 ? Math.max(vi(V.sourceLinks, yi), vi(V.targetLinks, yi)) : V.fixedValue;
|
|
6126
6115
|
}
|
|
6127
6116
|
function E({ nodes: w }) {
|
|
6128
6117
|
const V = w.length;
|
|
@@ -6161,7 +6150,7 @@ function $f() {
|
|
|
6161
6150
|
return P;
|
|
6162
6151
|
}
|
|
6163
6152
|
function S(w) {
|
|
6164
|
-
const V =
|
|
6153
|
+
const V = Cf(w, (N) => (n - t - (N.length - 1) * a) / vi(N, yi));
|
|
6165
6154
|
for (const N of w) {
|
|
6166
6155
|
let P = t;
|
|
6167
6156
|
for (const $ of N) {
|
|
@@ -6191,14 +6180,14 @@ function $f() {
|
|
|
6191
6180
|
for (const F of X) {
|
|
6192
6181
|
let et = 0, J = 0;
|
|
6193
6182
|
for (const { source: Q, value: j } of F.targetLinks) {
|
|
6194
|
-
let
|
|
6195
|
-
et += D(Q, F) *
|
|
6183
|
+
let K = j * (F.layer - Q.layer);
|
|
6184
|
+
et += D(Q, F) * K, J += K;
|
|
6196
6185
|
}
|
|
6197
6186
|
if (!(J > 0)) continue;
|
|
6198
6187
|
let ct = (et / J - F.y0) * V;
|
|
6199
6188
|
F.y0 += ct, F.y1 += ct, L(F);
|
|
6200
6189
|
}
|
|
6201
|
-
l === void 0 && X.sort(
|
|
6190
|
+
l === void 0 && X.sort(ks), C(X, N);
|
|
6202
6191
|
}
|
|
6203
6192
|
}
|
|
6204
6193
|
function I(w, V, N) {
|
|
@@ -6207,19 +6196,19 @@ function $f() {
|
|
|
6207
6196
|
for (const F of X) {
|
|
6208
6197
|
let et = 0, J = 0;
|
|
6209
6198
|
for (const { target: Q, value: j } of F.sourceLinks) {
|
|
6210
|
-
let
|
|
6211
|
-
et += A(F, Q) *
|
|
6199
|
+
let K = j * (Q.layer - F.layer);
|
|
6200
|
+
et += A(F, Q) * K, J += K;
|
|
6212
6201
|
}
|
|
6213
6202
|
if (!(J > 0)) continue;
|
|
6214
6203
|
let ct = (et / J - F.y0) * V;
|
|
6215
6204
|
F.y0 += ct, F.y1 += ct, L(F);
|
|
6216
6205
|
}
|
|
6217
|
-
l === void 0 && X.sort(
|
|
6206
|
+
l === void 0 && X.sort(ks), C(X, N);
|
|
6218
6207
|
}
|
|
6219
6208
|
}
|
|
6220
|
-
function
|
|
6209
|
+
function C(w, V) {
|
|
6221
6210
|
const N = w.length >> 1, P = w[N];
|
|
6222
|
-
|
|
6211
|
+
k(w, P.y0 - a, N - 1, V), G(w, P.y1 + a, N + 1, V), k(w, n, w.length - 1, V), G(w, t, 0, V);
|
|
6223
6212
|
}
|
|
6224
6213
|
function G(w, V, N, P) {
|
|
6225
6214
|
for (; N < w.length; ++N) {
|
|
@@ -6227,7 +6216,7 @@ function $f() {
|
|
|
6227
6216
|
X > 1e-6 && ($.y0 += X, $.y1 += X), V = $.y1 + a;
|
|
6228
6217
|
}
|
|
6229
6218
|
}
|
|
6230
|
-
function
|
|
6219
|
+
function k(w, V, N, P) {
|
|
6231
6220
|
for (; N >= 0; --N) {
|
|
6232
6221
|
const $ = w[N], X = ($.y1 - V) * P;
|
|
6233
6222
|
X > 1e-6 && ($.y0 -= X, $.y1 -= X), V = $.y0 - a;
|
|
@@ -6272,16 +6261,16 @@ function $f() {
|
|
|
6272
6261
|
}
|
|
6273
6262
|
return f;
|
|
6274
6263
|
}
|
|
6275
|
-
var
|
|
6276
|
-
function
|
|
6264
|
+
var or = Math.PI, lr = 2 * or, _e = 1e-6, Vf = lr - _e;
|
|
6265
|
+
function cr() {
|
|
6277
6266
|
this._x0 = this._y0 = // start of current subpath
|
|
6278
6267
|
this._x1 = this._y1 = null, this._ = "";
|
|
6279
6268
|
}
|
|
6280
6269
|
function Ll() {
|
|
6281
|
-
return new
|
|
6270
|
+
return new cr();
|
|
6282
6271
|
}
|
|
6283
|
-
|
|
6284
|
-
constructor:
|
|
6272
|
+
cr.prototype = Ll.prototype = {
|
|
6273
|
+
constructor: cr,
|
|
6285
6274
|
moveTo: function(s, t) {
|
|
6286
6275
|
this._ += "M" + (this._x0 = this._x1 = +s) + "," + (this._y0 = this._y1 = +t);
|
|
6287
6276
|
},
|
|
@@ -6306,7 +6295,7 @@ or.prototype = Ll.prototype = {
|
|
|
6306
6295
|
else if (d > _e) if (!(Math.abs(h * o - c * l) > _e) || !i)
|
|
6307
6296
|
this._ += "L" + (this._x1 = s) + "," + (this._y1 = t);
|
|
6308
6297
|
else {
|
|
6309
|
-
var u = e - r, p = n - a, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), E = Math.sqrt(d), y = i * Math.tan((
|
|
6298
|
+
var u = e - r, p = n - a, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), E = Math.sqrt(d), y = i * Math.tan((or - Math.acos((f + d - g) / (2 * m * E))) / 2), v = y / E, S = y / m;
|
|
6310
6299
|
Math.abs(v - 1) > _e && (this._ += "L" + (s + v * l) + "," + (t + v * h)), this._ += "A" + i + "," + i + ",0,0," + +(h * u > l * p) + "," + (this._x1 = s + S * o) + "," + (this._y1 = t + S * c);
|
|
6311
6300
|
}
|
|
6312
6301
|
},
|
|
@@ -6314,7 +6303,7 @@ or.prototype = Ll.prototype = {
|
|
|
6314
6303
|
s = +s, t = +t, e = +e, r = !!r;
|
|
6315
6304
|
var a = e * Math.cos(n), o = e * Math.sin(n), c = s + a, l = t + o, h = 1 ^ r, d = r ? n - i : i - n;
|
|
6316
6305
|
if (e < 0) throw new Error("negative radius: " + e);
|
|
6317
|
-
this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d %
|
|
6306
|
+
this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % lr + lr), d > Vf ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (s - a) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= or) + "," + h + "," + (this._x1 = s + e * Math.cos(i)) + "," + (this._y1 = t + e * Math.sin(i))));
|
|
6318
6307
|
},
|
|
6319
6308
|
rect: function(s, t, e, n) {
|
|
6320
6309
|
this._ += "M" + (this._x0 = this._x1 = +s) + "," + (this._y0 = this._y1 = +t) + "h" + +e + "v" + +n + "h" + -e + "Z";
|
|
@@ -6382,7 +6371,7 @@ class y0 extends ot {
|
|
|
6382
6371
|
// @ts-ignore
|
|
6383
6372
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6384
6373
|
render(t = !0) {
|
|
6385
|
-
const e = this.getComponentContainer({ withinChartClip: !0 });
|
|
6374
|
+
const e = this.getComponentContainer({ ariaLabel: "alluvial graphs", withinChartClip: !0 });
|
|
6386
6375
|
e.html("");
|
|
6387
6376
|
const { width: n, height: i } = _.getSVGElementSize(e, {
|
|
6388
6377
|
useAttrs: !0
|
|
@@ -6477,12 +6466,12 @@ class y0 extends ot {
|
|
|
6477
6466
|
), { width: O } = _.getSVGElementSize(R(`text#${b}`), {
|
|
6478
6467
|
useBBox: !0
|
|
6479
6468
|
}), I = (v.y1 - v.y0) / 2 - 9;
|
|
6480
|
-
let
|
|
6481
|
-
return v.x1 >= O ?
|
|
6469
|
+
let C = v.x1 - v.x0;
|
|
6470
|
+
return v.x1 >= O ? C = C - (O + 16) : C += 4, `translate(${C}, ${I})`;
|
|
6482
6471
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
6483
6472
|
}
|
|
6484
6473
|
addLineEventListener() {
|
|
6485
|
-
const t = this.getOptions(), e = this, { number: n, code: i } = T(this.getOptions(), "locale"), r =
|
|
6474
|
+
const t = this.getOptions(), e = this, { number: n, code: i } = T(this.getOptions(), "locale"), r = Ti((a, o = "mouseover") => {
|
|
6486
6475
|
const c = e.parent.selectAll("path.link").transition().call(
|
|
6487
6476
|
(l) => e.services.transitions.setupTransition({
|
|
6488
6477
|
transition: l,
|
|
@@ -6540,7 +6529,7 @@ class y0 extends ot {
|
|
|
6540
6529
|
});
|
|
6541
6530
|
}
|
|
6542
6531
|
addNodeEventListener() {
|
|
6543
|
-
const t = this, e =
|
|
6532
|
+
const t = this, e = Ti((n = [], i = "mouseover") => {
|
|
6544
6533
|
if (i === "mouseout" || n.length === 0) {
|
|
6545
6534
|
t.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (a) => a.index).order().style("stroke-opacity", ee.opacity.default);
|
|
6546
6535
|
return;
|
|
@@ -6632,7 +6621,7 @@ class E0 extends ot {
|
|
|
6632
6621
|
this.drawBackdrop(e, n), !(!e && !n) && (e && (_.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(t)), n && (_.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(t)));
|
|
6633
6622
|
}
|
|
6634
6623
|
drawXGrid(t) {
|
|
6635
|
-
const e = this.parent, n = this.backdrop.attr("height"), i = this.services.cartesianScales.getMainXScale(), r =
|
|
6624
|
+
const e = this.parent, n = this.backdrop.attr("height"), i = this.services.cartesianScales.getMainXScale(), r = pr(i).tickSizeInner(-n).tickSizeOuter(0);
|
|
6636
6625
|
if (T(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
|
|
6637
6626
|
const c = this.services.cartesianScales.getDomainAxisPosition(), l = T(this.getOptions(), "axes", c, "ticks", "values");
|
|
6638
6627
|
l && r.tickValues(l);
|
|
@@ -6708,7 +6697,10 @@ class E0 extends ot {
|
|
|
6708
6697
|
}
|
|
6709
6698
|
drawBackdrop(t, e) {
|
|
6710
6699
|
const n = this.parent, i = this.services.cartesianScales.getMainXScale(), r = this.services.cartesianScales.getMainYScale(), [a, o] = i.range(), [c, l] = r.range();
|
|
6711
|
-
this.backdrop = _.appendOrSelect(n, "svg.chart-grid-backdrop")
|
|
6700
|
+
this.backdrop = _.appendOrSelect(n, "svg.chart-grid-backdrop").attr(
|
|
6701
|
+
"role",
|
|
6702
|
+
"presentation"
|
|
6703
|
+
);
|
|
6712
6704
|
const h = _.appendOrSelect(
|
|
6713
6705
|
this.backdrop,
|
|
6714
6706
|
t || e ? "rect.chart-grid-backdrop.stroked" : "rect.chart-grid-backdrop"
|
|
@@ -6743,9 +6735,9 @@ class S0 extends ot {
|
|
|
6743
6735
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6744
6736
|
}
|
|
6745
6737
|
render(t = !0) {
|
|
6746
|
-
const e = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions();
|
|
6738
|
+
const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
|
|
6747
6739
|
let i = [0, 0];
|
|
6748
|
-
const { cartesianScales: r } = this.services, a = r.getOrientation(), o =
|
|
6740
|
+
const { cartesianScales: r } = this.services, a = r.getOrientation(), o = Sr().curve(this.services.curves.getD3Curve()).defined((b) => {
|
|
6749
6741
|
const O = r.getRangeIdentifier(), I = b[O];
|
|
6750
6742
|
return I != null;
|
|
6751
6743
|
}), c = this.model.getGroupedData(this.configs.groups), l = T(n, "bounds"), h = l && c && c.length === 1;
|
|
@@ -6777,8 +6769,8 @@ class S0 extends ot {
|
|
|
6777
6769
|
else {
|
|
6778
6770
|
const I = T(this.model.getOptions(), "color", "scale");
|
|
6779
6771
|
if (I !== null) {
|
|
6780
|
-
const
|
|
6781
|
-
O = I[
|
|
6772
|
+
const C = Object.keys(I);
|
|
6773
|
+
O = I[C[0]];
|
|
6782
6774
|
}
|
|
6783
6775
|
}
|
|
6784
6776
|
ta.appendOrUpdateLinearGradient({
|
|
@@ -6859,7 +6851,7 @@ class x0 extends ot {
|
|
|
6859
6851
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6860
6852
|
}
|
|
6861
6853
|
render(t = !0) {
|
|
6862
|
-
const e = this.getComponentContainer({ withinChartClip: !0 }), { cartesianScales: n, curves: i } = this.services, r = (f) => n.getDomainValue(f), a = (f) => n.getRangeValue(f), [o, c] = ye(
|
|
6854
|
+
const e = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), { cartesianScales: n, curves: i } = this.services, r = (f) => n.getDomainValue(f), a = (f) => n.getRangeValue(f), [o, c] = ye(
|
|
6863
6855
|
r,
|
|
6864
6856
|
a,
|
|
6865
6857
|
n.getOrientation()
|
|
@@ -7007,7 +6999,7 @@ class Al extends ot {
|
|
|
7007
6999
|
this.backdrop = _.appendOrSelect(t, "svg.chart-grid-backdrop");
|
|
7008
7000
|
}
|
|
7009
7001
|
}
|
|
7010
|
-
class
|
|
7002
|
+
class br extends ot {
|
|
7011
7003
|
constructor() {
|
|
7012
7004
|
super(...arguments), this.type = "scatter", this.renderType = st.SVG, this.handleChartHolderOnHover = () => {
|
|
7013
7005
|
if (!this.parent) throw new Error("Parent not defined");
|
|
@@ -7096,7 +7088,7 @@ class Sr extends ot {
|
|
|
7096
7088
|
render(t) {
|
|
7097
7089
|
if (!(T(this.getOptions(), "points", "enabled") || T(this.getOptions(), "bubble", "enabled")))
|
|
7098
7090
|
return;
|
|
7099
|
-
const n = this.getComponentContainer({ withinChartClip: !0 }), i = this.getOptions(), { groupMapsTo: r } = i.data, { cartesianScales: a } = this.services;
|
|
7091
|
+
const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), i = this.getOptions(), { groupMapsTo: r } = i.data, { cartesianScales: a } = this.services;
|
|
7100
7092
|
if (!a) throw new Error("Services cartesianScales are undefined.");
|
|
7101
7093
|
const o = a.getDomainIdentifier(), c = n.selectAll("circle.dot").data(
|
|
7102
7094
|
this.getScatterData(),
|
|
@@ -7259,7 +7251,9 @@ class Ml extends ot {
|
|
|
7259
7251
|
}, n && (this.configs = n), this.margins = this.configs.margins;
|
|
7260
7252
|
}
|
|
7261
7253
|
render(t = !0) {
|
|
7262
|
-
const { position: e } = this.configs, n = this.getOptions(), i = T(n, "axes", e, "visible"), r = this.getComponentContainer(
|
|
7254
|
+
const { position: e } = this.configs, n = this.getOptions(), i = T(n, "axes", e, "visible"), r = this.getComponentContainer({
|
|
7255
|
+
ariaLabel: "axes"
|
|
7256
|
+
}), { width: a, height: o } = _.getSVGElementSize(r, {
|
|
7263
7257
|
useAttrs: !0
|
|
7264
7258
|
}), c = _.appendOrSelect(r, `g.axis.${e}`);
|
|
7265
7259
|
let l, h;
|
|
@@ -7272,7 +7266,7 @@ class Ml extends ot {
|
|
|
7272
7266
|
u = Bo;
|
|
7273
7267
|
break;
|
|
7274
7268
|
case Y.BOTTOM:
|
|
7275
|
-
u =
|
|
7269
|
+
u = pr;
|
|
7276
7270
|
break;
|
|
7277
7271
|
case Y.RIGHT:
|
|
7278
7272
|
u = vu;
|
|
@@ -7290,7 +7284,7 @@ class Ml extends ot {
|
|
|
7290
7284
|
f.attr("aria-hidden", !0);
|
|
7291
7285
|
return;
|
|
7292
7286
|
}
|
|
7293
|
-
const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"),
|
|
7287
|
+
const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"), C = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), k = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
|
|
7294
7288
|
useBBox: !0
|
|
7295
7289
|
}).height;
|
|
7296
7290
|
D.remove();
|
|
@@ -7305,29 +7299,29 @@ class Ml extends ot {
|
|
|
7305
7299
|
if (!d.ticks(j).length)
|
|
7306
7300
|
N.tickValues([]);
|
|
7307
7301
|
else {
|
|
7308
|
-
const
|
|
7309
|
-
|
|
7310
|
-
const
|
|
7311
|
-
|
|
7302
|
+
const K = T(n, "timeScale", "addSpaceOnEdges"), ut = T(n, "axes", e, "domain"), ht = d.copy();
|
|
7303
|
+
K && !ut && ht.nice(j);
|
|
7304
|
+
const yt = ht.ticks(j);
|
|
7305
|
+
K && yt.length > 2 && !ut && (yt.splice(yt.length - 1, 1), yt.splice(0, 1)), N.tickValues(yt);
|
|
7312
7306
|
}
|
|
7313
7307
|
}
|
|
7314
7308
|
let P;
|
|
7315
7309
|
const $ = T(m, "ticks", "formatter"), { code: X, number: F } = T(n, "locale");
|
|
7316
7310
|
if (E) {
|
|
7317
|
-
const j =
|
|
7311
|
+
const j = Si(
|
|
7318
7312
|
N.tickValues(),
|
|
7319
7313
|
T(n, "timeScale", "timeInterval")
|
|
7320
7314
|
);
|
|
7321
|
-
$ === null ? P = (
|
|
7322
|
-
const ht =
|
|
7323
|
-
|
|
7315
|
+
$ === null ? P = (K, ut) => xi(K, ut, N.tickValues(), j, B, n.locale) : P = (K, ut) => {
|
|
7316
|
+
const ht = xi(
|
|
7317
|
+
K,
|
|
7324
7318
|
ut,
|
|
7325
7319
|
N.tickValues(),
|
|
7326
7320
|
j,
|
|
7327
7321
|
B,
|
|
7328
7322
|
n.locale
|
|
7329
7323
|
);
|
|
7330
|
-
return $(
|
|
7324
|
+
return $(K, ut, ht);
|
|
7331
7325
|
};
|
|
7332
7326
|
} else
|
|
7333
7327
|
$ === null ? V === Mt.LINEAR && (P = (j) => F(j, X)) : P = $;
|
|
@@ -7336,15 +7330,15 @@ class Ml extends ot {
|
|
|
7336
7330
|
let ct;
|
|
7337
7331
|
if (I) {
|
|
7338
7332
|
if (E)
|
|
7339
|
-
I.forEach((j,
|
|
7340
|
-
j.getTime === void 0 && (I[
|
|
7333
|
+
I.forEach((j, K) => {
|
|
7334
|
+
j.getTime === void 0 && (I[K] = new Date(j));
|
|
7341
7335
|
}), ct = I.filter((j) => {
|
|
7342
|
-
const
|
|
7343
|
-
return
|
|
7336
|
+
const K = j.getTime();
|
|
7337
|
+
return K >= new Date(et).getTime() && K <= new Date(J).getTime();
|
|
7344
7338
|
});
|
|
7345
7339
|
else if (S === Mt.LABELS) {
|
|
7346
7340
|
const j = this.services.cartesianScales.getScaleByPosition(e).domain();
|
|
7347
|
-
ct = I.filter((
|
|
7341
|
+
ct = I.filter((K) => j.includes(K));
|
|
7348
7342
|
} else
|
|
7349
7343
|
ct = I.filter(
|
|
7350
7344
|
(j) => j >= et && j <= J
|
|
@@ -7369,11 +7363,11 @@ class Ml extends ot {
|
|
|
7369
7363
|
if (m.title) {
|
|
7370
7364
|
const j = _.appendOrSelect(c, "text.axis-title").html(
|
|
7371
7365
|
Q || b ? "" : ue(m.title)
|
|
7372
|
-
),
|
|
7366
|
+
), K = T(m, "titleOrientation");
|
|
7373
7367
|
let ut;
|
|
7374
7368
|
switch (e) {
|
|
7375
7369
|
case Y.LEFT:
|
|
7376
|
-
|
|
7370
|
+
K === Yr.RIGHT ? j.attr("transform", "rotate(90)").attr("y", 0).attr("x", d.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : j.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(d.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
7377
7371
|
break;
|
|
7378
7372
|
case Y.BOTTOM:
|
|
7379
7373
|
j.attr(
|
|
@@ -7382,7 +7376,7 @@ class Ml extends ot {
|
|
|
7382
7376
|
).style("text-anchor", "middle");
|
|
7383
7377
|
break;
|
|
7384
7378
|
case Y.RIGHT:
|
|
7385
|
-
|
|
7379
|
+
K === Yr.LEFT ? j.attr("transform", "rotate(-90)").attr("y", a).attr("x", -(d.range()[0] / 2)).style("text-anchor", "middle") : j.attr("transform", "rotate(90)").attr("y", -a).attr("x", d.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
7386
7380
|
break;
|
|
7387
7381
|
case Y.TOP:
|
|
7388
7382
|
ut = _.getSVGElementSize(j, {
|
|
@@ -7395,17 +7389,20 @@ class Ml extends ot {
|
|
|
7395
7389
|
}
|
|
7396
7390
|
}
|
|
7397
7391
|
if (E) {
|
|
7398
|
-
const j =
|
|
7392
|
+
const j = Si(
|
|
7399
7393
|
N.tickValues(),
|
|
7400
7394
|
T(n, "timeScale", "timeInterval")
|
|
7401
|
-
),
|
|
7395
|
+
), K = B.showDayName, ut = f;
|
|
7402
7396
|
t && (f = f.transition().call(
|
|
7403
|
-
(
|
|
7404
|
-
transition:
|
|
7397
|
+
(yt) => this.services.transitions.setupTransition({
|
|
7398
|
+
transition: yt,
|
|
7405
7399
|
name: "axis-update",
|
|
7406
7400
|
animate: t
|
|
7407
7401
|
})
|
|
7408
|
-
)), f = f.call(N), ut.selectAll(".tick").data(N.tickValues(), d).order().select("text").
|
|
7402
|
+
)), f = f.call(N), ut.selectAll(".tick").data(N.tickValues(), d).order().select("text").attr(
|
|
7403
|
+
"class",
|
|
7404
|
+
(yt, Ut) => Yl(yt, Ut, N.tickValues(), j, K) ? "tick-label--primary" : "tick-label"
|
|
7405
|
+
);
|
|
7409
7406
|
} else
|
|
7410
7407
|
!t || !p ? f = f.call(N) : f = f.transition().call(
|
|
7411
7408
|
(j) => this.services.transitions.setupTransition({
|
|
@@ -7416,12 +7413,12 @@ class Ml extends ot {
|
|
|
7416
7413
|
).call(N);
|
|
7417
7414
|
if (g.call(N), e === Y.BOTTOM || e === Y.TOP) {
|
|
7418
7415
|
let j = !1;
|
|
7419
|
-
const
|
|
7420
|
-
if (
|
|
7416
|
+
const K = T(m, "ticks", "rotation");
|
|
7417
|
+
if (K === Ws.ALWAYS)
|
|
7421
7418
|
j = !0;
|
|
7422
|
-
else if (
|
|
7419
|
+
else if (K === Ws.NEVER)
|
|
7423
7420
|
j = !1;
|
|
7424
|
-
else if (!
|
|
7421
|
+
else if (!K || K === Ws.AUTO)
|
|
7425
7422
|
if (d.step)
|
|
7426
7423
|
j = g.selectAll("g.tick text").nodes().some(
|
|
7427
7424
|
(ht) => _.getSVGElementSize(ht, {
|
|
@@ -7433,26 +7430,26 @@ class Ml extends ot {
|
|
|
7433
7430
|
const ut = g.append("text").text("A"), ht = _.getSVGElementSize(ut.node(), {
|
|
7434
7431
|
useBBox: !0
|
|
7435
7432
|
}).width;
|
|
7436
|
-
let
|
|
7433
|
+
let yt;
|
|
7437
7434
|
g.selectAll("g.tick").each(function() {
|
|
7438
7435
|
const Ut = R(this), H = parseFloat(T(fe(this), "tx"));
|
|
7439
|
-
H !== null &&
|
|
7436
|
+
H !== null && yt + Ut.text().length * ht * 0.8 >= H && (j = !0), yt = H;
|
|
7440
7437
|
}), ut.remove();
|
|
7441
7438
|
}
|
|
7442
7439
|
j ? (L || (N.ticks(
|
|
7443
7440
|
this.getNumberOfFittingTicks(a, w, qe.ticks.horizontalSpaceRatio)
|
|
7444
7441
|
), g.call(N), f.call(N)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === Y.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
7445
7442
|
}
|
|
7446
|
-
if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j),
|
|
7443
|
+
if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), C !== Ze.NONE && S === Mt.LABELS && !I) {
|
|
7447
7444
|
const j = this.services.cartesianScales.getScaleDomain(e);
|
|
7448
7445
|
if (j.length > 0) {
|
|
7449
|
-
const
|
|
7450
|
-
c.selectAll("g.ticks g.tick").html(
|
|
7446
|
+
const K = r.select(`g.axis.${e} g.ticks g.tick`).html();
|
|
7447
|
+
c.selectAll("g.ticks g.tick").html(K);
|
|
7451
7448
|
const ut = this;
|
|
7452
7449
|
c.selectAll("g.tick text").data(j).text(function(ht) {
|
|
7453
|
-
return ht.length > G ? (ut.truncation[e] = !0,
|
|
7450
|
+
return ht.length > G ? (ut.truncation[e] = !0, kn(ht, C, k)) : ht;
|
|
7454
7451
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(j).text(function(ht) {
|
|
7455
|
-
return ht.length > G ?
|
|
7452
|
+
return ht.length > G ? kn(ht, C, k) : ht;
|
|
7456
7453
|
}), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(j);
|
|
7457
7454
|
}
|
|
7458
7455
|
}
|
|
@@ -7515,7 +7512,9 @@ class Kf extends Ml {
|
|
|
7515
7512
|
}
|
|
7516
7513
|
render(t = !0) {
|
|
7517
7514
|
super.render(t), super.destroy();
|
|
7518
|
-
const e = this.configs.position, n = this.getComponentContainer(
|
|
7515
|
+
const e = this.configs.position, n = this.getComponentContainer({
|
|
7516
|
+
ariaLabel: "axes"
|
|
7517
|
+
}), i = _.appendOrSelect(n, `g.axis.${e}`), r = this;
|
|
7519
7518
|
i.selectAll("g.tick").each(function(a, o) {
|
|
7520
7519
|
const c = R(this);
|
|
7521
7520
|
c.classed("tick-hover", !0).attr("tabindex", o === 0 ? 0 : -1);
|
|
@@ -7679,13 +7678,13 @@ class Jf extends ot {
|
|
|
7679
7678
|
e ? this.renderSkeleton(e) : this.removeSkeleton();
|
|
7680
7679
|
}
|
|
7681
7680
|
renderSkeleton(t) {
|
|
7682
|
-
if (this.configs.skeleton ===
|
|
7681
|
+
if (this.configs.skeleton === zn.GRID)
|
|
7683
7682
|
this.renderGridSkeleton(t);
|
|
7684
|
-
else if (this.configs.skeleton ===
|
|
7683
|
+
else if (this.configs.skeleton === zn.VERT_OR_HORIZ)
|
|
7685
7684
|
this.renderVertOrHorizSkeleton(t);
|
|
7686
|
-
else if (this.configs.skeleton ===
|
|
7685
|
+
else if (this.configs.skeleton === zn.PIE)
|
|
7687
7686
|
this.renderPieSkeleton(t);
|
|
7688
|
-
else if (this.configs.skeleton ===
|
|
7687
|
+
else if (this.configs.skeleton === zn.DONUT)
|
|
7689
7688
|
this.renderDonutSkeleton(t);
|
|
7690
7689
|
else
|
|
7691
7690
|
throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
|
|
@@ -7707,7 +7706,7 @@ class Jf extends ot {
|
|
|
7707
7706
|
}
|
|
7708
7707
|
setScales() {
|
|
7709
7708
|
const t = this.services.cartesianScales.getMainXScale().range(), e = this.services.cartesianScales.getMainYScale().range();
|
|
7710
|
-
this.xScale =
|
|
7709
|
+
this.xScale = Ce().domain([0, 1]).range(t), this.yScale = Ce().domain([0, 1]).range(e);
|
|
7711
7710
|
}
|
|
7712
7711
|
drawBackdrop(t) {
|
|
7713
7712
|
const e = this.parent, { width: n, height: i } = _.getSVGElementSize(e, {
|
|
@@ -7741,13 +7740,13 @@ class Jf extends ot {
|
|
|
7741
7740
|
useAttrs: !0
|
|
7742
7741
|
}), o = _.appendOrSelect(i, "svg.chart-skeleton").attr("width", r).attr("height", a), c = e === 0 ? "pie" : "donut", l = T(this.getOptions(), c, "alignment");
|
|
7743
7742
|
_.appendOrSelect(o, "rect.chart-skeleton-area-container").attr("width", r).attr("height", a).attr("fill", "none");
|
|
7744
|
-
const h = Dn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(
|
|
7743
|
+
const h = Dn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(mt.radiusOffset), u = t + (Math.min(r, a) - t * 2) / 2, p = _.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
|
|
7745
7744
|
"fill",
|
|
7746
7745
|
n ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
|
|
7747
7746
|
);
|
|
7748
|
-
let f = t +
|
|
7749
|
-
l === Jt.CENTER ? f = r / 2 : l === Jt.RIGHT && (f = r - t -
|
|
7750
|
-
const g = t +
|
|
7747
|
+
let f = t + mt.xOffset;
|
|
7748
|
+
l === Jt.CENTER ? f = r / 2 : l === Jt.RIGHT && (f = r - t - mt.xOffset);
|
|
7749
|
+
const g = t + mt.yOffset;
|
|
7751
7750
|
p.attr("transform", `translate(${f}, ${g})`);
|
|
7752
7751
|
}
|
|
7753
7752
|
// same logic in pie
|
|
@@ -7755,7 +7754,7 @@ class Jf extends ot {
|
|
|
7755
7754
|
const { width: t, height: e } = _.getSVGElementSize(this.parent, {
|
|
7756
7755
|
useAttrs: !0
|
|
7757
7756
|
});
|
|
7758
|
-
return Math.min(t, e) / 2 +
|
|
7757
|
+
return Math.min(t, e) / 2 + mt.radiusOffset;
|
|
7759
7758
|
}
|
|
7760
7759
|
// same logic in donut
|
|
7761
7760
|
computeInnerRadius() {
|
|
@@ -7783,7 +7782,7 @@ class T0 extends ot {
|
|
|
7783
7782
|
super(...arguments), this.type = "boxplot", this.renderType = st.SVG;
|
|
7784
7783
|
}
|
|
7785
7784
|
render(t) {
|
|
7786
|
-
const e = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: i } = n.data, r = this.model.getDataGroupNames(), a = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [c, l] = a.range(), [h, d] = o.range(), u = l - c, p = h - d;
|
|
7785
|
+
const e = this.getComponentContainer({ ariaLabel: "box plots", withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: i } = n.data, r = this.model.getDataGroupNames(), a = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [c, l] = a.range(), [h, d] = o.range(), u = l - c, p = h - d;
|
|
7787
7786
|
if (u === 0)
|
|
7788
7787
|
return;
|
|
7789
7788
|
const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Ft.VERTICAL, [E, y] = ye(
|
|
@@ -7792,7 +7791,7 @@ class T0 extends ot {
|
|
|
7792
7791
|
g
|
|
7793
7792
|
), v = Math.floor((m ? u : p) / r.length), S = Math.min(v / 2, 16), b = this.model.getBoxplotData(), O = e.selectAll(".box-group").data(b);
|
|
7794
7793
|
O.exit().remove();
|
|
7795
|
-
const I = O.enter().append("g").attr("class", "box-group"),
|
|
7794
|
+
const I = O.enter().append("g").attr("class", "box-group"), C = O.merge(I);
|
|
7796
7795
|
I.append("path").merge(O.select("path.vertical-line.start")).attr(
|
|
7797
7796
|
"class",
|
|
7798
7797
|
() => this.model.getColorClassName({
|
|
@@ -7891,7 +7890,7 @@ class T0 extends ot {
|
|
|
7891
7890
|
const B = f.getDomainValue(L[i]) - S / 4, D = B + S / 2, A = f.getRangeValue(L.whiskers.max), w = f.getRangeValue(L.whiskers.max);
|
|
7892
7891
|
return $t({ x0: B, x1: D, y0: A, y1: w }, g);
|
|
7893
7892
|
});
|
|
7894
|
-
const G =
|
|
7893
|
+
const G = C.selectAll("circle.outlier").data(
|
|
7895
7894
|
(L) => L.outliers.map((B) => ({
|
|
7896
7895
|
min: L.whiskers.min,
|
|
7897
7896
|
max: L.whiskers.max,
|
|
@@ -7900,8 +7899,8 @@ class T0 extends ot {
|
|
|
7900
7899
|
}))
|
|
7901
7900
|
);
|
|
7902
7901
|
G.exit().remove();
|
|
7903
|
-
const
|
|
7904
|
-
G.merge(
|
|
7902
|
+
const k = G.enter().append("circle");
|
|
7903
|
+
G.merge(k).attr("r", jt.circle.radius).attr(
|
|
7905
7904
|
"class",
|
|
7906
7905
|
() => this.model.getColorClassName({
|
|
7907
7906
|
classNameTypes: [tt.FILL, tt.STROKE],
|
|
@@ -8045,7 +8044,9 @@ class O0 extends ot {
|
|
|
8045
8044
|
render(t) {
|
|
8046
8045
|
const e = this.services.cartesianScales.getRangeAxisPosition({
|
|
8047
8046
|
groups: this.configs.groups
|
|
8048
|
-
}), n = this.services.cartesianScales.getScaleByPosition(e), [i, r] = n.domain(), a = i > 0 && r < 0 || i < 0 && r > 0, o = this.getComponentContainer(
|
|
8047
|
+
}), n = this.services.cartesianScales.getScaleByPosition(e), [i, r] = n.domain(), a = i > 0 && r < 0 || i < 0 && r > 0, o = this.getComponentContainer({
|
|
8048
|
+
isPresentational: !0
|
|
8049
|
+
});
|
|
8049
8050
|
if (!a) {
|
|
8050
8051
|
o.selectAll("line.domain").remove();
|
|
8051
8052
|
return;
|
|
@@ -8071,13 +8072,13 @@ class O0 extends ot {
|
|
|
8071
8072
|
).attr("y1", d.y0).attr("y2", d.y1).attr("x1", d.x0).attr("x2", d.x1);
|
|
8072
8073
|
}
|
|
8073
8074
|
}
|
|
8074
|
-
class w0 extends
|
|
8075
|
+
class w0 extends br {
|
|
8075
8076
|
constructor() {
|
|
8076
8077
|
super(...arguments), this.type = "bubble", this.renderType = st.SVG;
|
|
8077
8078
|
}
|
|
8078
8079
|
getRadiusScale(t) {
|
|
8079
|
-
const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, i = t.data(), r = i.map((l) => l[n]).filter((l) => l), a = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = r.length > 0, c = o ?
|
|
8080
|
-
return
|
|
8080
|
+
const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, i = t.data(), r = i.map((l) => l[n]).filter((l) => l), a = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = r.length > 0, c = o ? Is(r) : [1, 1];
|
|
8081
|
+
return Ce().domain(c).range(o ? e.bubble.radiusRange(a, i) : [4, 4]);
|
|
8081
8082
|
}
|
|
8082
8083
|
styleCircles(t, e) {
|
|
8083
8084
|
const n = this.getOptions(), { radiusMapsTo: i } = n.bubble, r = this.getRadiusScale(t), { groupMapsTo: a } = n.data, { cartesianScales: o } = this.services, c = (u) => o.getDomainValue(u), l = (u) => o.getRangeValue(u), [h, d] = ye(
|
|
@@ -8143,7 +8144,7 @@ class L0 extends ot {
|
|
|
8143
8144
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8144
8145
|
}
|
|
8145
8146
|
render(t) {
|
|
8146
|
-
const e = this.getOptions(), { groupMapsTo: n } = e.data, i = this.getComponentContainer({ withinChartClip: !0 }), r = this.model.getDisplayData(this.configs.groups), a = this.services.cartesianScales.getRangeScale(), o = this.services.cartesianScales.getRangeIdentifier(), [c, l] = a.range(), [, h] = a.domain(), d = () => {
|
|
8147
|
+
const e = this.getOptions(), { groupMapsTo: n } = e.data, i = this.getComponentContainer({ ariaLabel: "bullet graphs", withinChartClip: !0 }), r = this.model.getDisplayData(this.configs.groups), a = this.services.cartesianScales.getRangeScale(), o = this.services.cartesianScales.getRangeIdentifier(), [c, l] = a.range(), [, h] = a.domain(), d = () => {
|
|
8147
8148
|
const g = [];
|
|
8148
8149
|
r.forEach((y) => {
|
|
8149
8150
|
y.ranges ? y.ranges.forEach((v, S) => {
|
|
@@ -8336,10 +8337,10 @@ function ng(s, t) {
|
|
|
8336
8337
|
}) } : oo(s, t);
|
|
8337
8338
|
}
|
|
8338
8339
|
function oo(s, t) {
|
|
8339
|
-
var e = t.id, n = t.bbox, i = t.properties == null ? {} : t.properties, r =
|
|
8340
|
+
var e = t.id, n = t.bbox, i = t.properties == null ? {} : t.properties, r = Tr(s, t);
|
|
8340
8341
|
return e == null && n == null ? { type: "Feature", properties: i, geometry: r } : n == null ? { type: "Feature", id: e, properties: i, geometry: r } : { type: "Feature", id: e, bbox: n, properties: i, geometry: r };
|
|
8341
8342
|
}
|
|
8342
|
-
function
|
|
8343
|
+
function Tr(s, t) {
|
|
8343
8344
|
var e = tg(s.transform), n = s.arcs;
|
|
8344
8345
|
function i(h, d) {
|
|
8345
8346
|
d.length && d.pop();
|
|
@@ -8438,7 +8439,7 @@ function ig(s) {
|
|
|
8438
8439
|
return Math.abs(r);
|
|
8439
8440
|
}
|
|
8440
8441
|
function rg(s) {
|
|
8441
|
-
return
|
|
8442
|
+
return Tr(s, ag.apply(this, arguments));
|
|
8442
8443
|
}
|
|
8443
8444
|
function ag(s, t) {
|
|
8444
8445
|
var e = {}, n = [], i = [];
|
|
@@ -8464,7 +8465,7 @@ function ag(s, t) {
|
|
|
8464
8465
|
}), n.push(c);
|
|
8465
8466
|
}
|
|
8466
8467
|
function o(c) {
|
|
8467
|
-
return ig(
|
|
8468
|
+
return ig(Tr(s, { type: "Polygon", arcs: [c] }).coordinates[0]);
|
|
8468
8469
|
}
|
|
8469
8470
|
return n.forEach(function(c) {
|
|
8470
8471
|
if (!c._) {
|
|
@@ -8507,14 +8508,14 @@ class A0 extends Al {
|
|
|
8507
8508
|
const i = this.parent, r = this.model.getOptions(), { cartesianScales: a } = this.services, o = a.getOrientation(), c = a.getRangeScale(), [l, h] = c.range(), d = a.getDomainScale(), u = d.invert(
|
|
8508
8509
|
o === Ft.VERTICAL ? e : n
|
|
8509
8510
|
), p = _.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), f = _.appendOrSelect(p, "line.ruler-line"), m = i.selectAll("[role=graphics-symbol]").filter((E) => {
|
|
8510
|
-
if (parseFloat(
|
|
8511
|
+
if (parseFloat(vt(E, "data.x0")) <= u && parseFloat(vt(E, "data.x1")) >= u)
|
|
8511
8512
|
return !0;
|
|
8512
8513
|
});
|
|
8513
8514
|
if (m.size() > 0) {
|
|
8514
8515
|
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !$o(this.elementsToHighlight, m) && this.hideRuler(), m.dispatch("mouseover"), this.elementsToHighlight = m;
|
|
8515
|
-
const E = R(m.nodes()[0]).datum(), y = parseFloat(
|
|
8516
|
+
const E = R(m.nodes()[0]).datum(), y = parseFloat(vt(E, "data.x0")), v = parseFloat(vt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((I) => ({
|
|
8516
8517
|
label: I,
|
|
8517
|
-
value:
|
|
8518
|
+
value: vt(E, `data.${I}`),
|
|
8518
8519
|
class: this.model.getColorClassName({
|
|
8519
8520
|
classNameTypes: [tt.TOOLTIP],
|
|
8520
8521
|
dataGroupName: I
|
|
@@ -8527,15 +8528,15 @@ class A0 extends Al {
|
|
|
8527
8528
|
hoveredElement: f,
|
|
8528
8529
|
items: [
|
|
8529
8530
|
{
|
|
8530
|
-
label:
|
|
8531
|
+
label: vt(r, "bins.rangeLabel") || "Range",
|
|
8531
8532
|
value: `${y} – ${v}`
|
|
8532
8533
|
},
|
|
8533
8534
|
...b,
|
|
8534
8535
|
...T(r, "tooltip", "showTotal") === !0 ? [
|
|
8535
8536
|
{
|
|
8536
|
-
label:
|
|
8537
|
+
label: vt(r, "locale.translations.total") || vt(r, "tooltip.totalLabel") || "Total",
|
|
8537
8538
|
value: S.reduce(
|
|
8538
|
-
(
|
|
8539
|
+
(C, G) => C + parseFloat(vt(E, `data.${G}`)),
|
|
8539
8540
|
0
|
|
8540
8541
|
)
|
|
8541
8542
|
}
|
|
@@ -8556,13 +8557,13 @@ class M0 extends Al {
|
|
|
8556
8557
|
}
|
|
8557
8558
|
}
|
|
8558
8559
|
const _0 = (s, t) => {
|
|
8559
|
-
const e = s.x, n = s.y, i = t.x, r = t.y, a =
|
|
8560
|
+
const e = s.x, n = s.y, i = t.x, r = t.y, a = Ps();
|
|
8560
8561
|
return a.moveTo(e, n), a.lineTo(i, r), a.toString();
|
|
8561
|
-
},
|
|
8562
|
-
const n = s.x, i = s.y, r = t.x, a = t.y, o =
|
|
8562
|
+
}, k0 = (s, t, e = 0.5) => {
|
|
8563
|
+
const n = s.x, i = s.y, r = t.x, a = t.y, o = Ps();
|
|
8563
8564
|
return o.moveTo(n, i), o.lineTo(n + (r - n) * e, i), o.lineTo(n + (r - n) * e, a), o.lineTo(r, a), o.toString();
|
|
8564
|
-
},
|
|
8565
|
-
const a = s.x, o = s.y, c = t.x, l = t.y, h =
|
|
8565
|
+
}, C0 = (s, t, e, n, i, r) => {
|
|
8566
|
+
const a = s.x, o = s.y, c = t.x, l = t.y, h = Ps();
|
|
8566
8567
|
return h.moveTo(a, o), h.bezierCurveTo(e, n, i, r, c, l), h.toString();
|
|
8567
8568
|
}, R0 = {
|
|
8568
8569
|
d: "M7 0v8L0 4z",
|
|
@@ -8621,7 +8622,9 @@ class V0 extends Mf {
|
|
|
8621
8622
|
// @ts-ignore
|
|
8622
8623
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8623
8624
|
render(t = !1) {
|
|
8624
|
-
const e = this.getOptions(), n = this.getComponentContainer(
|
|
8625
|
+
const e = this.getOptions(), n = this.getComponentContainer({
|
|
8626
|
+
ariaLabel: "legend"
|
|
8627
|
+
}), { width: i } = _.getSVGElementSize(n, {
|
|
8625
8628
|
useAttrs: !0
|
|
8626
8629
|
}), r = T(e, "color", "gradient", "colors"), a = T(e, this.chartType, "colorLegend", "type");
|
|
8627
8630
|
let o = T(e, "color", "pairing", "option");
|
|
@@ -8632,8 +8635,8 @@ class V0 extends Mf {
|
|
|
8632
8635
|
}
|
|
8633
8636
|
const h = !Eo(r), d = Zl(this.model.getDisplayData()), u = !(i <= wt.color.barWidth), p = u ? wt.color.barWidth : i, f = _.appendOrSelect(n, "g.legend"), g = _.appendOrSelect(f, "g.legend-axis");
|
|
8634
8637
|
if (c) {
|
|
8635
|
-
const
|
|
8636
|
-
_.appendOrSelect(
|
|
8638
|
+
const k = _.appendOrSelect(n, "g.legend-title");
|
|
8639
|
+
_.appendOrSelect(k, "text").text(c).attr("dy", "0.7em"), f.attr("transform", "translate(0, 16)");
|
|
8637
8640
|
}
|
|
8638
8641
|
const m = d[0] < 0 && d[1] > 0 ? "diverge" : "mono";
|
|
8639
8642
|
(o < 1 && o > 4 && m === "mono" || o < 1 && o > 2 && m === "diverge") && (o = 1);
|
|
@@ -8642,18 +8645,18 @@ class V0 extends Mf {
|
|
|
8642
8645
|
if (h)
|
|
8643
8646
|
E = r;
|
|
8644
8647
|
else
|
|
8645
|
-
for (let
|
|
8648
|
+
for (let k = 1; k < y + 1; k++)
|
|
8646
8649
|
E.push(
|
|
8647
|
-
a ===
|
|
8650
|
+
a === Xs.LINEAR ? `stop-color-${m}-${o}-${k}` : `fill-${m}-${o}-${k}`
|
|
8648
8651
|
);
|
|
8649
|
-
const v = So(d[0], d[1]), S = Su(v, 3), b =
|
|
8650
|
-
O.tickFormat((
|
|
8652
|
+
const v = So(d[0], d[1]), S = Su(v, 3), b = Ce().domain(d).range([0, p]), O = pr(b).tickSize(0).tickValues(S), { code: I, number: C } = T(e, "locale");
|
|
8653
|
+
O.tickFormat((k) => C(k, I));
|
|
8651
8654
|
let G;
|
|
8652
8655
|
switch (a) {
|
|
8653
|
-
case
|
|
8656
|
+
case Xs.LINEAR:
|
|
8654
8657
|
this.drawLinear(E, f, p);
|
|
8655
8658
|
break;
|
|
8656
|
-
case
|
|
8659
|
+
case Xs.QUANTIZE:
|
|
8657
8660
|
G = this.drawQuantize(
|
|
8658
8661
|
E,
|
|
8659
8662
|
m,
|
|
@@ -8681,7 +8684,7 @@ class V0 extends Mf {
|
|
|
8681
8684
|
*/
|
|
8682
8685
|
drawQuantize(t, e, n, i, r) {
|
|
8683
8686
|
!n && e === "diverge" && t.splice(t.length / 2, 1);
|
|
8684
|
-
const a =
|
|
8687
|
+
const a = hr().domain(t).range([0, r]);
|
|
8685
8688
|
return _.appendOrSelect(i, "g.quantized-rect").selectAll("rect").data(a.domain()).join("rect").attr("x", (c) => a(c)).attr("y", 0).attr("width", Math.max(0, a.bandwidth() - 1)).attr("height", wt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? a.bandwidth() - 1 : 0;
|
|
8686
8689
|
}
|
|
8687
8690
|
destroy() {
|
|
@@ -8696,7 +8699,9 @@ class B0 extends Af {
|
|
|
8696
8699
|
// @ts-ignore
|
|
8697
8700
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8698
8701
|
render(t = !1) {
|
|
8699
|
-
const e = T(this.model.getDisplayData(), 0), n = this.getOptions(), i = this.getComponentContainer(
|
|
8702
|
+
const e = T(this.model.getDisplayData(), 0), n = this.getOptions(), i = this.getComponentContainer({
|
|
8703
|
+
ariaLabel: "meter title"
|
|
8704
|
+
}), { groupMapsTo: r } = n.data, a = n.locale.translations.meter.title;
|
|
8700
8705
|
if (T(n, "meter", "proportional"))
|
|
8701
8706
|
this.displayTotal(), this.displayBreakdownTitle();
|
|
8702
8707
|
else {
|
|
@@ -8782,16 +8787,16 @@ class B0 extends Af {
|
|
|
8782
8787
|
*/
|
|
8783
8788
|
getStatusIconPathString(t) {
|
|
8784
8789
|
switch (t) {
|
|
8785
|
-
case
|
|
8790
|
+
case js.SUCCESS:
|
|
8786
8791
|
return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
|
|
8787
|
-
case
|
|
8792
|
+
case js.DANGER:
|
|
8788
8793
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
8789
|
-
case
|
|
8794
|
+
case js.WARNING:
|
|
8790
8795
|
return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
|
|
8791
8796
|
}
|
|
8792
8797
|
}
|
|
8793
8798
|
}
|
|
8794
|
-
class
|
|
8799
|
+
class Or extends ot {
|
|
8795
8800
|
// Gets the correct width for bars based on options & configurations
|
|
8796
8801
|
getBarWidth() {
|
|
8797
8802
|
const t = this.getOptions();
|
|
@@ -8840,7 +8845,10 @@ class G0 extends ot {
|
|
|
8840
8845
|
// @ts-ignore
|
|
8841
8846
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8842
8847
|
render(t = !0) {
|
|
8843
|
-
const e = this.getComponentContainer({
|
|
8848
|
+
const e = this.getComponentContainer({
|
|
8849
|
+
ariaLabel: "circle packs",
|
|
8850
|
+
withinChartClip: !0
|
|
8851
|
+
}), { width: n, height: i } = _.getSVGElementSize(this.parent, {
|
|
8844
8852
|
useAttrs: !0
|
|
8845
8853
|
});
|
|
8846
8854
|
if (n < 1 || i < 1)
|
|
@@ -8863,7 +8871,7 @@ class G0 extends ot {
|
|
|
8863
8871
|
transition: g,
|
|
8864
8872
|
name: "circlepack-leaf-update-enter"
|
|
8865
8873
|
})
|
|
8866
|
-
).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", un.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f,
|
|
8874
|
+
).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", un.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f, Un), this.setBackgroundListeners()), a || this.addLegendListeners(), this.addEventListeners();
|
|
8867
8875
|
}
|
|
8868
8876
|
// turn off the highlight class on children circles
|
|
8869
8877
|
unhighlightChildren(t) {
|
|
@@ -8888,7 +8896,7 @@ class G0 extends ot {
|
|
|
8888
8896
|
setBackgroundListeners() {
|
|
8889
8897
|
const t = R(this.services.domUtils.getMainContainer()), e = this, n = this.parent.selectAll("circle.node");
|
|
8890
8898
|
t.on("click", () => {
|
|
8891
|
-
e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n,
|
|
8899
|
+
e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Un);
|
|
8892
8900
|
});
|
|
8893
8901
|
}
|
|
8894
8902
|
// Zoom icon to be appended to the label in the tooltip
|
|
@@ -8924,7 +8932,7 @@ class G0 extends ot {
|
|
|
8924
8932
|
const p = t.model.getOptions();
|
|
8925
8933
|
h = [
|
|
8926
8934
|
{
|
|
8927
|
-
label:
|
|
8935
|
+
label: vt(p, "locale.translations.total") || vt(p, "tooltip.totalLabel") || "Total",
|
|
8928
8936
|
value: n.value,
|
|
8929
8937
|
bold: !0
|
|
8930
8938
|
}
|
|
@@ -8974,10 +8982,10 @@ class G0 extends ot {
|
|
|
8974
8982
|
const i = R(this), r = i.classed("non-focal"), a = T(t.model.getOptions(), "canvasZoom", "enabled");
|
|
8975
8983
|
if (a && t.model.getHierarchyLevel() > 2) {
|
|
8976
8984
|
const o = t.parent.selectAll("circle.node");
|
|
8977
|
-
R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o,
|
|
8985
|
+
R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Un);
|
|
8978
8986
|
} else if (n.depth === 2 && n.children && !r && a) {
|
|
8979
8987
|
const o = t.parent.selectAll("circle.node");
|
|
8980
|
-
R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o,
|
|
8988
|
+
R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Un), e.stopPropagation();
|
|
8981
8989
|
}
|
|
8982
8990
|
t.services.events.dispatchEvent(x.CirclePack.CIRCLE_CLICK, {
|
|
8983
8991
|
event: e,
|
|
@@ -9023,14 +9031,16 @@ class lg extends ot {
|
|
|
9023
9031
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9024
9032
|
}
|
|
9025
9033
|
getInnerRadius() {
|
|
9026
|
-
return
|
|
9034
|
+
return mt.innerRadius;
|
|
9027
9035
|
}
|
|
9028
9036
|
render(t = !0) {
|
|
9029
|
-
const e = this, n = this.getComponentContainer(
|
|
9037
|
+
const e = this, n = this.getComponentContainer({
|
|
9038
|
+
ariaLabel: "pie graph"
|
|
9039
|
+
}), i = this.getOptions(), { groupMapsTo: r } = i.data, { valueMapsTo: a } = i.pie;
|
|
9030
9040
|
this.isRendering = !0;
|
|
9031
9041
|
const o = this.model.getDisplayData().filter((A) => A[a] > 0), c = this.computeRadius();
|
|
9032
|
-
this.arc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c +
|
|
9033
|
-
const h = Dd().value((A) => A[a]).sort(T(i, "pie", "sortFunction")).padAngle(
|
|
9042
|
+
this.arc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c + mt.hoverArc.outerRadiusOffset);
|
|
9043
|
+
const h = Dd().value((A) => A[a]).sort(T(i, "pie", "sortFunction")).padAngle(mt.padAngle)(o), u = _.appendOrSelect(n, "g.slices").attr("role", it.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (A) => A.data[r]);
|
|
9034
9044
|
u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
|
|
9035
9045
|
"class",
|
|
9036
9046
|
(A) => this.model.getColorClassName({
|
|
@@ -9046,7 +9056,7 @@ class lg extends ot {
|
|
|
9046
9056
|
})
|
|
9047
9057
|
).attr("opacity", 1).attr("role", it.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
|
|
9048
9058
|
"aria-label",
|
|
9049
|
-
(A) => `${A[a]}, ${
|
|
9059
|
+
(A) => `${A[a]}, ${Fs(A.data[a], o, a) + "%"}`
|
|
9050
9060
|
).attrTween("d", function(A) {
|
|
9051
9061
|
return og.bind(this)(A, e.arc);
|
|
9052
9062
|
}).on("end", () => {
|
|
@@ -9057,33 +9067,33 @@ class lg extends ot {
|
|
|
9057
9067
|
const b = S.enter().append("text").classed("pie-label", !0), O = [];
|
|
9058
9068
|
b.merge(S).style("text-anchor", "middle").text((A) => i.pie.labels.formatter ? i.pie.labels.formatter({
|
|
9059
9069
|
...A,
|
|
9060
|
-
percentageValue:
|
|
9070
|
+
percentageValue: Fs(
|
|
9061
9071
|
A.data[a],
|
|
9062
9072
|
o,
|
|
9063
9073
|
a,
|
|
9064
9074
|
!0
|
|
9065
9075
|
)
|
|
9066
9076
|
}) : m(
|
|
9067
|
-
|
|
9077
|
+
Fs(A.data[a], o, a),
|
|
9068
9078
|
g
|
|
9069
9079
|
) + "%").datum(function(A) {
|
|
9070
9080
|
const w = c + 7, V = (A.endAngle - A.startAngle) / 2 + A.startAngle, N = V / Math.PI * 180, P = this.getComputedTextLength();
|
|
9071
9081
|
return A.textOffsetX = P / 2, A.textOffsetY = N > 90 && N < 270 ? 10 : 0, A.xPosition = (A.textOffsetX + w) * Math.sin(V), A.yPosition = (A.textOffsetY + w) * -Math.cos(V), A;
|
|
9072
9082
|
}).attr("transform", function(A, w) {
|
|
9073
9083
|
const V = y.length, N = (A.endAngle - A.startAngle) * (180 / Math.PI);
|
|
9074
|
-
if (w >= V - 2 && N <
|
|
9084
|
+
if (w >= V - 2 && N < mt.callout.minSliceDegree) {
|
|
9075
9085
|
let P, $;
|
|
9076
|
-
return A.index === V - 1 ? (P = A.xPosition +
|
|
9086
|
+
return A.index === V - 1 ? (P = A.xPosition + mt.callout.offsetX + mt.callout.textMargin + A.textOffsetX, $ = A.yPosition - mt.callout.offsetY, A.direction = Ys.RIGHT, O.push(A)) : (P = A.xPosition - mt.callout.offsetX - A.textOffsetX - mt.callout.textMargin, $ = A.yPosition - mt.callout.offsetY, A.direction = Ys.LEFT, O.push(A)), `translate(${P}, ${$})`;
|
|
9077
9087
|
}
|
|
9078
9088
|
return `translate(${A.xPosition}, ${A.yPosition})`;
|
|
9079
9089
|
}), this.renderCallouts(O);
|
|
9080
|
-
const I = T(i, "donut") ? "donut" : "pie",
|
|
9090
|
+
const I = T(i, "donut") ? "donut" : "pie", C = T(i, I, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
|
|
9081
9091
|
useAttrs: !0
|
|
9082
|
-
}),
|
|
9083
|
-
let B = c +
|
|
9084
|
-
|
|
9092
|
+
}), k = E ? mt.xOffset : 0, L = E ? mt.yOffset : 0;
|
|
9093
|
+
let B = c + k;
|
|
9094
|
+
C === Jt.CENTER ? B = G / 2 : C === Jt.RIGHT && (B = G - c - mt.xOffset);
|
|
9085
9095
|
let D = c + L;
|
|
9086
|
-
O.length > 0 && (D +=
|
|
9096
|
+
O.length > 0 && (D += mt.yOffsetCallout), n.attr("x", B + 7).attr("y", D), this.addEventListeners();
|
|
9087
9097
|
}
|
|
9088
9098
|
renderCallouts(t) {
|
|
9089
9099
|
const e = _.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", it.GROUP).attr("data-name", "callouts"), n = e.selectAll("g.callout").data(t);
|
|
@@ -9091,19 +9101,19 @@ class lg extends ot {
|
|
|
9091
9101
|
const i = n.enter().append("g").classed("callout", !0).attr("role", it.GROUP).attr("aria-roledescription", "label callout");
|
|
9092
9102
|
i.merge(n).datum(function(o) {
|
|
9093
9103
|
const { xPosition: c, yPosition: l, direction: h } = o;
|
|
9094
|
-
return h ===
|
|
9104
|
+
return h === Ys.RIGHT ? (o.startPos = {
|
|
9095
9105
|
x: c,
|
|
9096
9106
|
y: l + o.textOffsetY
|
|
9097
9107
|
}, o.endPos = {
|
|
9098
|
-
x: c +
|
|
9099
|
-
y: l -
|
|
9100
|
-
}, o.intersectPointX = o.endPos.x -
|
|
9108
|
+
x: c + mt.callout.offsetX,
|
|
9109
|
+
y: l - mt.callout.offsetY + o.textOffsetY
|
|
9110
|
+
}, o.intersectPointX = o.endPos.x - mt.callout.horizontalLineLength) : (o.startPos = {
|
|
9101
9111
|
x: c,
|
|
9102
9112
|
y: l + o.textOffsetY
|
|
9103
9113
|
}, o.endPos = {
|
|
9104
|
-
x: c -
|
|
9105
|
-
y: l -
|
|
9106
|
-
}, o.intersectPointX = o.endPos.x +
|
|
9114
|
+
x: c - mt.callout.offsetX,
|
|
9115
|
+
y: l - mt.callout.offsetY + o.textOffsetY
|
|
9116
|
+
}, o.intersectPointX = o.endPos.x + mt.callout.horizontalLineLength), o;
|
|
9107
9117
|
}), i.append("line").classed("vertical-line", !0).merge(e.selectAll("line.vertical-line")).datum(function() {
|
|
9108
9118
|
return R(this.parentNode).datum();
|
|
9109
9119
|
}).style("stroke-width", "1px").attr("x1", (o) => o.startPos.x).attr("y1", (o) => o.startPos.y).attr("x2", (o) => o.intersectPointX).attr("y2", (o) => o.endPos.y), i.append("line").classed("horizontal-line", !0).merge(e.selectAll("line.horizontal-line")).datum(function() {
|
|
@@ -9173,7 +9183,7 @@ class lg extends ot {
|
|
|
9173
9183
|
const { width: t, height: e } = _.getSVGElementSize(this.parent, {
|
|
9174
9184
|
useAttrs: !0
|
|
9175
9185
|
}), n = this.getOptions(), i = Math.min(t, e) / 2;
|
|
9176
|
-
return n.pie.labels.enabled ? i +
|
|
9186
|
+
return n.pie.labels.enabled ? i + mt.radiusOffset : i;
|
|
9177
9187
|
}
|
|
9178
9188
|
}
|
|
9179
9189
|
class H0 extends lg {
|
|
@@ -9184,10 +9194,17 @@ class H0 extends lg {
|
|
|
9184
9194
|
super.render(t);
|
|
9185
9195
|
const e = this;
|
|
9186
9196
|
if (this.model.isDataEmpty()) {
|
|
9187
|
-
this.getComponentContainer(
|
|
9197
|
+
this.getComponentContainer({
|
|
9198
|
+
ariaLabel: "donut graph"
|
|
9199
|
+
}).select("g.center").remove();
|
|
9188
9200
|
return;
|
|
9189
9201
|
}
|
|
9190
|
-
const n = _.appendOrSelect(
|
|
9202
|
+
const n = _.appendOrSelect(
|
|
9203
|
+
this.getComponentContainer({
|
|
9204
|
+
ariaLabel: "donut graph"
|
|
9205
|
+
}),
|
|
9206
|
+
"g.center"
|
|
9207
|
+
), i = this.getOptions(), r = this.computeRadius(), a = T(i, "donut", "center", "label");
|
|
9191
9208
|
_.appendOrSelect(n, "text.donut-figure").attr("text-anchor", "middle").style("dominant-baseline", () => a === null || a === "" ? "central" : "initial").style("font-size", () => i.donut.center.numberFontSize(r)).transition().call(
|
|
9192
9209
|
(o) => this.services.transitions.setupTransition({
|
|
9193
9210
|
transition: o,
|
|
@@ -9238,7 +9255,7 @@ class U0 extends ot {
|
|
|
9238
9255
|
}
|
|
9239
9256
|
getArcRatio() {
|
|
9240
9257
|
const t = this.getOptions();
|
|
9241
|
-
return T(t, "gauge", "type") ===
|
|
9258
|
+
return T(t, "gauge", "type") === Fn.FULL ? 1 : 0.5;
|
|
9242
9259
|
}
|
|
9243
9260
|
getArcSize() {
|
|
9244
9261
|
return this.getArcRatio() * Math.PI * 2;
|
|
@@ -9263,7 +9280,9 @@ class U0 extends ot {
|
|
|
9263
9280
|
// @ts-ignore
|
|
9264
9281
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9265
9282
|
render(t = !0) {
|
|
9266
|
-
const e = this.getComponentContainer(
|
|
9283
|
+
const e = this.getComponentContainer({
|
|
9284
|
+
ariaLabel: "gauge graph"
|
|
9285
|
+
}).attr("width", "100%").attr("height", "100%"), n = this.getOptions(), i = this.getValue(), r = this.getValueRatio(), a = this.getArcSize(), o = this.getStartAngle(), c = r * a, l = o + c, h = o + a, d = this.computeRadius(), u = this.getInnerRadius();
|
|
9267
9286
|
this.backgroundArc = Dn().innerRadius(u).outerRadius(d).startAngle(l).endAngle(h), this.arc = Dn().innerRadius(u).outerRadius(d).startAngle(o).endAngle(l), _.appendOrSelect(e, "path.arc-background").attr("d", this.backgroundArc);
|
|
9268
9287
|
const p = e.selectAll("path.arc-foreground").data([i]);
|
|
9269
9288
|
p.enter().append("path").merge(p).attr(
|
|
@@ -9286,22 +9305,22 @@ class U0 extends ot {
|
|
|
9286
9305
|
drawValueNumber() {
|
|
9287
9306
|
const t = this.getComponentContainer(), e = this.getOptions(), n = T(e, "gauge", "type"), i = this.getValue(), r = this.getDelta(), a = this.computeRadius(), o = T(e, "gauge", "valueFontSize"), c = T(e, "gauge", "deltaFontSize"), l = T(e, "gauge", "numberSpacing"), h = T(e, "gauge", "showPercentageSymbol");
|
|
9288
9307
|
let d = 0;
|
|
9289
|
-
n ===
|
|
9308
|
+
n === Fn.FULL && !r ? d = c(a) : n === Fn.SEMI && r && (d = -(c(a) + l));
|
|
9290
9309
|
const u = _.appendOrSelect(t, "g.gauge-numbers").attr(
|
|
9291
9310
|
"transform",
|
|
9292
9311
|
`translate(0, ${d})`
|
|
9293
9312
|
), p = o(a), f = _.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = T(e, "locale"), E = T(e, "gauge", "numberFormatter"), y = f.selectAll("text.gauge-value-number").data([i]);
|
|
9294
9313
|
y.enter().append("text").attr("class", "gauge-value-number").merge(y).style("font-size", `${p}px`).attr("text-anchor", "middle").text((G) => {
|
|
9295
|
-
let
|
|
9296
|
-
return G != null ?
|
|
9314
|
+
let k;
|
|
9315
|
+
return G != null ? k = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : k = 0, E ? E(k) : m(Number(k), g);
|
|
9297
9316
|
});
|
|
9298
9317
|
const { width: v } = _.getSVGElementSize(
|
|
9299
9318
|
_.appendOrSelect(t, "text.gauge-value-number"),
|
|
9300
9319
|
{ useBBox: !0 }
|
|
9301
|
-
), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height:
|
|
9320
|
+
), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height: C } = _.getSVGElementSize(O, {
|
|
9302
9321
|
useBBox: !0
|
|
9303
9322
|
});
|
|
9304
|
-
O.attr("y", `-${
|
|
9323
|
+
O.attr("y", `-${C / 2}px`), f.attr("transform", `translate(-${I / 2}, 0)`);
|
|
9305
9324
|
}
|
|
9306
9325
|
/**
|
|
9307
9326
|
* adds the delta number for the gauge
|
|
@@ -9371,10 +9390,10 @@ class U0 extends ot {
|
|
|
9371
9390
|
const t = this.getOptions(), e = T(t, "gauge", "type"), { width: n, height: i } = _.getSVGElementSize(this.parent, {
|
|
9372
9391
|
useAttrs: !0
|
|
9373
9392
|
});
|
|
9374
|
-
return e ===
|
|
9393
|
+
return e === Fn.SEMI ? Math.min(n / 2, i) : Math.min(n / 2, i / 2);
|
|
9375
9394
|
}
|
|
9376
9395
|
}
|
|
9377
|
-
class z0 extends
|
|
9396
|
+
class z0 extends Or {
|
|
9378
9397
|
constructor() {
|
|
9379
9398
|
super(...arguments), this.type = "grouped-bar", this.renderType = st.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (t) => {
|
|
9380
9399
|
const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -9400,7 +9419,7 @@ class z0 extends br {
|
|
|
9400
9419
|
render(t) {
|
|
9401
9420
|
const e = this.model.getDisplayData(this.configs.groups), n = this.getOptions(), { groupMapsTo: i } = n.data;
|
|
9402
9421
|
this.setGroupScale();
|
|
9403
|
-
const r = this.getComponentContainer({ withinChartClip: !0 }), a = Jl(
|
|
9422
|
+
const r = this.getComponentContainer({ ariaLabel: "grouped bar graphs", withinChartClip: !0 }), a = Jl(
|
|
9404
9423
|
e.map((u) => {
|
|
9405
9424
|
const p = this.services.cartesianScales.getDomainIdentifier(u);
|
|
9406
9425
|
return u[p] && typeof u[p].toString == "function" ? u[p].toString() : u[p];
|
|
@@ -9537,7 +9556,7 @@ class z0 extends br {
|
|
|
9537
9556
|
}
|
|
9538
9557
|
setGroupScale() {
|
|
9539
9558
|
const t = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
9540
|
-
this.groupScale =
|
|
9559
|
+
this.groupScale = hr().domain(t).rangeRound([0, this.getGroupWidth()]);
|
|
9541
9560
|
}
|
|
9542
9561
|
}
|
|
9543
9562
|
class F0 extends ot {
|
|
@@ -9566,7 +9585,7 @@ class F0 extends ot {
|
|
|
9566
9585
|
}
|
|
9567
9586
|
d += g, u = g < u ? g : u, p = g > p ? g : p;
|
|
9568
9587
|
}
|
|
9569
|
-
})), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${
|
|
9588
|
+
})), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${bi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${bi(c.range())},${l(n)})`), this.services.events.dispatchEvent(x.Tooltip.SHOW, {
|
|
9570
9589
|
event: e.event,
|
|
9571
9590
|
hoveredElement: R(t.detail.element),
|
|
9572
9591
|
items: [
|
|
@@ -9603,7 +9622,7 @@ class F0 extends ot {
|
|
|
9603
9622
|
// @ts-ignore
|
|
9604
9623
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9605
9624
|
render(t = !0) {
|
|
9606
|
-
const e = this.getComponentContainer({ withinChartClip: !0 });
|
|
9625
|
+
const e = this.getComponentContainer({ ariaLabel: "heatmap", withinChartClip: !0 });
|
|
9607
9626
|
e.lower();
|
|
9608
9627
|
const { cartesianScales: n } = this.services;
|
|
9609
9628
|
if (this.matrix = this.model.getMatrix(), e.html(""), T(this.getOptions(), "data", "loading"))
|
|
@@ -9648,10 +9667,10 @@ class F0 extends ot {
|
|
|
9648
9667
|
}
|
|
9649
9668
|
determineDividerStatus() {
|
|
9650
9669
|
const t = T(this.getOptions(), "heatmap", "divider", "state");
|
|
9651
|
-
return t !==
|
|
9670
|
+
return t !== qs.OFF && (t === qs.AUTO && Xr.minCellDividerDimension <= this.xBandwidth && Xr.minCellDividerDimension <= this.yBandwidth || t === qs.ON);
|
|
9652
9671
|
}
|
|
9653
9672
|
addEventListener() {
|
|
9654
|
-
const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i =
|
|
9673
|
+
const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i = vt(n, "locale.translations.total") || vt(n, "tooltip.totalLabel") || "Total", r = e.getDomainIdentifier(), a = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
|
|
9655
9674
|
this.parent.selectAll("g.cell").on("mouseover", function(l, h) {
|
|
9656
9675
|
const d = R(this), u = d.select("rect.heat");
|
|
9657
9676
|
if (!u.classed("null-state")) {
|
|
@@ -9739,7 +9758,9 @@ class W0 extends ot {
|
|
|
9739
9758
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9740
9759
|
}
|
|
9741
9760
|
render(t) {
|
|
9742
|
-
const e = this.getComponentContainer(
|
|
9761
|
+
const e = this.getComponentContainer({
|
|
9762
|
+
ariaLabel: "histogram bars"
|
|
9763
|
+
}), n = this.model.getOptions(), { groupIdentifier: i } = n, { groupMapsTo: r } = n.data, a = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), c = e.selectAll("g.bars").data(a, (h) => vt(h, `0.${r}`));
|
|
9743
9764
|
c.exit().attr("opacity", 0).remove(), c.enter().append("g").classed("bars", !0).attr("role", it.GROUP);
|
|
9744
9765
|
const l = e.selectAll("g.bars").selectAll("path.bar").data((h) => h);
|
|
9745
9766
|
l.exit().remove(), l.enter().append("path").merge(l).classed("bar", !0).attr(i, (h, d) => d).transition().call(
|
|
@@ -9756,7 +9777,7 @@ class W0 extends ot {
|
|
|
9756
9777
|
originalClassName: "bar"
|
|
9757
9778
|
})
|
|
9758
9779
|
).style("fill", (h) => this.model.getFillColor(h[r], null, h)).attr("d", (h) => {
|
|
9759
|
-
const d =
|
|
9780
|
+
const d = vt(h, "data");
|
|
9760
9781
|
if (!d)
|
|
9761
9782
|
return;
|
|
9762
9783
|
const u = o(d.x1) - o(d.x0) - 1, p = this.services.cartesianScales.getDomainValue(d.x0), f = p + u, g = this.services.cartesianScales.getRangeValue(h[0]);
|
|
@@ -9772,13 +9793,13 @@ class W0 extends ot {
|
|
|
9772
9793
|
this.parent.selectAll("path.bar").on("mouseover", function(a, o) {
|
|
9773
9794
|
const c = R(this);
|
|
9774
9795
|
c.classed("hovered", !0);
|
|
9775
|
-
const l = i(parseFloat(
|
|
9796
|
+
const l = i(parseFloat(vt(o, "data.x0")), n), h = i(parseFloat(vt(o, "data.x1")), n), d = r.services.cartesianScales.getRangeAxisPosition(), u = r.services.cartesianScales.getScaleLabel(d);
|
|
9776
9797
|
r.services.events.dispatchEvent(x.Tooltip.SHOW, {
|
|
9777
9798
|
event: a,
|
|
9778
9799
|
hoveredElement: c,
|
|
9779
9800
|
items: [
|
|
9780
9801
|
{
|
|
9781
|
-
label:
|
|
9802
|
+
label: vt(t, "bins.rangeLabel") || "Range",
|
|
9782
9803
|
value: `${l} – ${h}`
|
|
9783
9804
|
},
|
|
9784
9805
|
{
|
|
@@ -9791,7 +9812,7 @@ class W0 extends ot {
|
|
|
9791
9812
|
},
|
|
9792
9813
|
{
|
|
9793
9814
|
label: u,
|
|
9794
|
-
value:
|
|
9815
|
+
value: vt(o, `data.${o[e]}`)
|
|
9795
9816
|
}
|
|
9796
9817
|
]
|
|
9797
9818
|
});
|
|
@@ -9809,7 +9830,7 @@ class W0 extends ot {
|
|
|
9809
9830
|
t.removeEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9810
9831
|
}
|
|
9811
9832
|
}
|
|
9812
|
-
class X0 extends
|
|
9833
|
+
class X0 extends br {
|
|
9813
9834
|
constructor() {
|
|
9814
9835
|
super(...arguments), this.type = "lollipop", this.renderType = st.SVG, this.handleScatterOnHover = (t) => {
|
|
9815
9836
|
const e = t.detail, n = this.getOptions(), { groupMapsTo: i } = n.data;
|
|
@@ -9838,7 +9859,7 @@ class X0 extends Sr {
|
|
|
9838
9859
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9839
9860
|
}
|
|
9840
9861
|
render(t) {
|
|
9841
|
-
const e = this.getComponentContainer({ withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: i } = n.data, { cartesianScales: r } = this.services, a = r.getMainXScale(), o = r.getMainYScale(), c = r.getDomainIdentifier(), l = (E) => r.getDomainValue(E), h = (E) => r.getRangeValue(E), d = r.getOrientation(), [u, p] = ye(
|
|
9862
|
+
const e = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: i } = n.data, { cartesianScales: r } = this.services, a = r.getMainXScale(), o = r.getMainYScale(), c = r.getDomainIdentifier(), l = (E) => r.getDomainValue(E), h = (E) => r.getRangeValue(E), d = r.getOrientation(), [u, p] = ye(
|
|
9842
9863
|
l,
|
|
9843
9864
|
h,
|
|
9844
9865
|
d
|
|
@@ -9898,7 +9919,9 @@ class j0 extends ot {
|
|
|
9898
9919
|
}));
|
|
9899
9920
|
}
|
|
9900
9921
|
render(t = !0) {
|
|
9901
|
-
const e = this, n = this.getComponentContainer(
|
|
9922
|
+
const e = this, n = this.getComponentContainer({
|
|
9923
|
+
ariaLabel: "meter lines"
|
|
9924
|
+
}), i = this.getOptions(), r = T(i, "meter", "proportional"), a = this.model.getDisplayData(), o = this.model.getStatus(), { width: c } = _.getSVGElementSize(n, {
|
|
9902
9925
|
useAttrs: !0
|
|
9903
9926
|
}), { groupMapsTo: l } = i.data;
|
|
9904
9927
|
let h;
|
|
@@ -9908,7 +9931,7 @@ class j0 extends ot {
|
|
|
9908
9931
|
const v = T(i, "meter", "proportional", "total");
|
|
9909
9932
|
h = v || this.model.getMaximumDomain(this.model.getDisplayData());
|
|
9910
9933
|
}
|
|
9911
|
-
const d =
|
|
9934
|
+
const d = Ce().domain([0, h]).range([0, c]), u = this.getStackedBounds(a, d), p = T(i, "meter", "height");
|
|
9912
9935
|
_.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", c).attr(
|
|
9913
9936
|
"height",
|
|
9914
9937
|
p || (r ? _t.height.proportional : _t.height.default)
|
|
@@ -10038,17 +10061,19 @@ class Y0 extends ot {
|
|
|
10038
10061
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10039
10062
|
}
|
|
10040
10063
|
render(t = !0) {
|
|
10041
|
-
const e = this.getComponentContainer(
|
|
10064
|
+
const e = this.getComponentContainer({
|
|
10065
|
+
ariaLabel: "radar graph"
|
|
10066
|
+
}), { width: n, height: i } = _.getSVGElementSize(e, {
|
|
10042
10067
|
useAttrs: !0
|
|
10043
10068
|
}), r = this.model.getData(), a = this.model.getGroupedData(), o = this.getOptions(), c = T(o, "data", "groupMapsTo"), l = T(o, "radar", "axes", "value"), { angle: h, value: d } = T(o, "radar", "axes"), { xLabelPadding: u, yLabelPadding: p, yTicksNumber: f, minRange: g, xAxisRectHeight: m } = Te;
|
|
10044
10069
|
this.uniqueKeys = Array.from(new Set(r.map((H) => H[h]))), this.uniqueGroups = Array.from(new Set(r.map((H) => H[c]))), this.fullDataNormalized = this.normalizeFlatData(r), this.groupedDataNormalized = this.normalizeGroupedData(a);
|
|
10045
10070
|
const y = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), b = (Math.min(n, i) - y) / 2;
|
|
10046
10071
|
if (b <= 0)
|
|
10047
10072
|
return;
|
|
10048
|
-
const O =
|
|
10073
|
+
const O = hr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), I = bi(this.fullDataNormalized.map((H) => H[d])), C = Ce().domain([
|
|
10049
10074
|
I >= 0 ? 0 : I,
|
|
10050
10075
|
jr(this.fullDataNormalized.map((H) => H[d]))
|
|
10051
|
-
]).range([g, b]).nice(f), G =
|
|
10076
|
+
]).range([g, b]).nice(f), G = C.ticks(f), k = (H, U, W) => this.model.getFillColor(H, U, W), L = $d().angle((H) => O(H[h]) + Math.PI / 2).radius((H) => C(H[d])).curve(ac), B = this.uniqueKeys.map((H) => {
|
|
10052
10077
|
const U = this.getLabelDimensions(H).width, W = oc(
|
|
10053
10078
|
O(H),
|
|
10054
10079
|
b
|
|
@@ -10094,7 +10119,7 @@ class Y0 extends ot {
|
|
|
10094
10119
|
name: "radar_x_axes_enter",
|
|
10095
10120
|
animate: t
|
|
10096
10121
|
})
|
|
10097
|
-
).attr("opacity", 1).attr("x1", (W) => bt(O(W),
|
|
10122
|
+
).attr("opacity", 1).attr("x1", (W) => bt(O(W), C.range()[0], A).x).attr("y1", (W) => bt(O(W), C.range()[0], A).y).attr("x2", (W) => bt(O(W), C.range()[1], A).x).attr("y2", (W) => bt(O(W), C.range()[1], A).y)
|
|
10098
10123
|
),
|
|
10099
10124
|
(H) => H.call(
|
|
10100
10125
|
(U) => U.transition().call(
|
|
@@ -10103,7 +10128,7 @@ class Y0 extends ot {
|
|
|
10103
10128
|
name: "radar_x_axes_update",
|
|
10104
10129
|
animate: t
|
|
10105
10130
|
})
|
|
10106
|
-
).attr("opacity", 1).attr("x1", (W) => bt(O(W),
|
|
10131
|
+
).attr("opacity", 1).attr("x1", (W) => bt(O(W), C.range()[0], A).x).attr("y1", (W) => bt(O(W), C.range()[0], A).y).attr("x2", (W) => bt(O(W), C.range()[1], A).x).attr("y2", (W) => bt(O(W), C.range()[1], A).y)
|
|
10107
10132
|
),
|
|
10108
10133
|
(H) => H.call(
|
|
10109
10134
|
(U) => U.transition().call(
|
|
@@ -10117,10 +10142,10 @@ class Y0 extends ot {
|
|
|
10117
10142
|
), _.appendOrSelect(e, "g.x-labels").attr("role", it.GROUP).selectAll("text").data(this.uniqueKeys).join(
|
|
10118
10143
|
(H) => H.append("text").text((U) => U).attr("opacity", 0).attr(
|
|
10119
10144
|
"x",
|
|
10120
|
-
(U) => bt(O(U),
|
|
10145
|
+
(U) => bt(O(U), C.range()[1] + u, A).x
|
|
10121
10146
|
).attr(
|
|
10122
10147
|
"y",
|
|
10123
|
-
(U) => bt(O(U),
|
|
10148
|
+
(U) => bt(O(U), C.range()[1] + u, A).y
|
|
10124
10149
|
).style("text-anchor", (U) => ea(O(U)).textAnchor).style(
|
|
10125
10150
|
"dominant-baseline",
|
|
10126
10151
|
(U) => ea(O(U)).dominantBaseline
|
|
@@ -10142,10 +10167,10 @@ class Y0 extends ot {
|
|
|
10142
10167
|
})
|
|
10143
10168
|
).attr("opacity", 1).attr(
|
|
10144
10169
|
"x",
|
|
10145
|
-
(W) => bt(O(W),
|
|
10170
|
+
(W) => bt(O(W), C.range()[1] + u, A).x
|
|
10146
10171
|
).attr(
|
|
10147
10172
|
"y",
|
|
10148
|
-
(W) => bt(O(W),
|
|
10173
|
+
(W) => bt(O(W), C.range()[1] + u, A).y
|
|
10149
10174
|
).end().finally(() => {
|
|
10150
10175
|
const W = T(o, "radar", "alignment"), zt = this.getAlignmentXOffset(W, e, this.getParent());
|
|
10151
10176
|
e.attr("x", zt);
|
|
@@ -10171,7 +10196,7 @@ class Y0 extends ot {
|
|
|
10171
10196
|
).attr("role", it.GRAPHICS_SYMBOL).attr("aria-label", (U) => U.name).attr("opacity", 0).attr(
|
|
10172
10197
|
"transform",
|
|
10173
10198
|
t ? () => `translate(${A.x}, ${A.y}) scale(${1 + Math.random() * 0.35})` : `translate(${A.x}, ${A.y})`
|
|
10174
|
-
).style("fill", (U) =>
|
|
10199
|
+
).style("fill", (U) => k(U.name, null, U.data)).style("fill-opacity", Te.opacity.selected).style("stroke", (U) => k(U.name, null, U.data)).call((U) => {
|
|
10175
10200
|
const W = U.transition().call(
|
|
10176
10201
|
(zt) => this.services.transitions.setupTransition({
|
|
10177
10202
|
transition: zt,
|
|
@@ -10188,7 +10213,7 @@ class Y0 extends ot {
|
|
|
10188
10213
|
dataGroupName: U.name,
|
|
10189
10214
|
originalClassName: "blob"
|
|
10190
10215
|
})
|
|
10191
|
-
).style("fill", (U) =>
|
|
10216
|
+
).style("fill", (U) => k(U.name, null, U.data)).style("stroke", (U) => k(U.name, null, U.data)), H.call(
|
|
10192
10217
|
(U) => U.transition().call(
|
|
10193
10218
|
(W) => this.services.transitions.setupTransition({
|
|
10194
10219
|
transition: W,
|
|
@@ -10221,17 +10246,17 @@ class Y0 extends ot {
|
|
|
10221
10246
|
dataGroupName: H[c],
|
|
10222
10247
|
originalClassName: He(H[h])
|
|
10223
10248
|
})
|
|
10224
|
-
).attr("cx", (H) => bt(O(H[h]),
|
|
10249
|
+
).attr("cx", (H) => bt(O(H[h]), C(H[d]), A).x).attr("cy", (H) => bt(O(H[h]), C(H[d]), A).y).attr("r", 0).attr("opacity", 0).style("fill", (H) => k(H[c])), _.appendOrSelect(e, "g.x-axes-rect").attr("role", it.GROUP).selectAll("rect").data(this.uniqueKeys).join(
|
|
10225
10250
|
(H) => H.append("rect"),
|
|
10226
10251
|
(H) => H,
|
|
10227
10252
|
(H) => H.remove()
|
|
10228
|
-
).attr("x", A.x).attr("y", A.y - m / 2).attr("width",
|
|
10253
|
+
).attr("x", A.x).attr("y", A.y - m / 2).attr("width", C.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (H) => `rotate(${lc(O(H))}, ${A.x}, ${A.y})`);
|
|
10229
10254
|
const { code: ut, number: ht } = T(o, "locale");
|
|
10230
|
-
_.appendOrSelect(e, "g.y-labels").attr("role", it.GROUP).selectAll("text").data(
|
|
10255
|
+
_.appendOrSelect(e, "g.y-labels").attr("role", it.GROUP).selectAll("text").data(Is(G)).join(
|
|
10231
10256
|
(H) => H.append("text").attr("opacity", 0).text((U) => ht(U, ut)).attr(
|
|
10232
10257
|
"x",
|
|
10233
|
-
(U) => bt(-Math.PI / 2,
|
|
10234
|
-
).attr("y", (U) => bt(-Math.PI / 2,
|
|
10258
|
+
(U) => bt(-Math.PI / 2, C(U), A).x + p
|
|
10259
|
+
).attr("y", (U) => bt(-Math.PI / 2, C(U), A).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
|
|
10235
10260
|
(U) => U.transition().call(
|
|
10236
10261
|
(W) => this.services.transitions.setupTransition({
|
|
10237
10262
|
transition: W,
|
|
@@ -10249,8 +10274,8 @@ class Y0 extends ot {
|
|
|
10249
10274
|
})
|
|
10250
10275
|
).text((W) => W).attr("opacity", 1).attr(
|
|
10251
10276
|
"x",
|
|
10252
|
-
(W) => bt(-Math.PI / 2,
|
|
10253
|
-
).attr("y", (W) => bt(-Math.PI / 2,
|
|
10277
|
+
(W) => bt(-Math.PI / 2, C(W), A).x + p
|
|
10278
|
+
).attr("y", (W) => bt(-Math.PI / 2, C(W), A).y)
|
|
10254
10279
|
),
|
|
10255
10280
|
(H) => H.call(
|
|
10256
10281
|
(U) => U.transition().call(
|
|
@@ -10334,7 +10359,7 @@ class Y0 extends ot {
|
|
|
10334
10359
|
});
|
|
10335
10360
|
}
|
|
10336
10361
|
}
|
|
10337
|
-
class q0 extends
|
|
10362
|
+
class q0 extends Or {
|
|
10338
10363
|
constructor() {
|
|
10339
10364
|
super(...arguments), this.type = "simple-bar", this.renderType = st.SVG, this.handleLegendOnHover = (t) => {
|
|
10340
10365
|
const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -10358,7 +10383,10 @@ class q0 extends br {
|
|
|
10358
10383
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10359
10384
|
}
|
|
10360
10385
|
render(t) {
|
|
10361
|
-
const e = this.getOptions(), { groupMapsTo: n } = e.data, i = this.getComponentContainer({
|
|
10386
|
+
const e = this.getOptions(), { groupMapsTo: n } = e.data, i = this.getComponentContainer({
|
|
10387
|
+
ariaLabel: "bar graphs",
|
|
10388
|
+
withinChartClip: !0
|
|
10389
|
+
}), r = this.model.getDisplayData(this.configs.groups), a = this.services.cartesianScales.getOrientation(), o = i.selectAll("path.bar").data(r, (l) => l[n]);
|
|
10362
10390
|
o.exit().attr("opacity", 0).remove(), o.enter().append("path").attr("opacity", 0).merge(o).classed("bar", !0).attr("width", this.getBarWidth.bind(this)).transition().call(
|
|
10363
10391
|
(l) => this.services.transitions.setupTransition({
|
|
10364
10392
|
transition: l,
|
|
@@ -10483,11 +10511,14 @@ class K0 extends ot {
|
|
|
10483
10511
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10484
10512
|
}
|
|
10485
10513
|
render(t = !0) {
|
|
10486
|
-
const e = this.getComponentContainer({
|
|
10514
|
+
const e = this.getComponentContainer({
|
|
10515
|
+
ariaLabel: "stacked area graphs",
|
|
10516
|
+
withinChartClip: !0
|
|
10517
|
+
}), n = this, i = this.getOptions(), { groupMapsTo: r } = i.data, a = Object.keys(i.axes).some((f) => i.axes[f].percentage), o = this.model.getStackedData({
|
|
10487
10518
|
percentage: a,
|
|
10488
10519
|
groups: this.configs.groups
|
|
10489
10520
|
}), c = T(o, 0, 0), l = this.services.cartesianScales.getDomainAxisPosition({ datum: c }), h = this.services.cartesianScales.getRangeAxisPosition({ datum: c }), d = this.services.cartesianScales.getScaleByPosition(h), u = e.selectAll("path.area").data(o, (f) => T(f, 0, r));
|
|
10490
|
-
this.areaGenerator =
|
|
10521
|
+
this.areaGenerator = Sr().x(
|
|
10491
10522
|
(f) => this.services.cartesianScales.getValueThroughAxisPosition(
|
|
10492
10523
|
l,
|
|
10493
10524
|
f.data.sharedStackKey
|
|
@@ -10508,7 +10539,7 @@ class K0 extends ot {
|
|
|
10508
10539
|
).attr("opacity", me.opacity.selected).attr("d", this.areaGenerator);
|
|
10509
10540
|
}
|
|
10510
10541
|
}
|
|
10511
|
-
class J0 extends
|
|
10542
|
+
class J0 extends Or {
|
|
10512
10543
|
constructor() {
|
|
10513
10544
|
super(...arguments), this.type = "stacked-bar", this.renderType = st.SVG, this.handleLegendOnHover = (t) => {
|
|
10514
10545
|
const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.model.getOptions().data;
|
|
@@ -10532,7 +10563,7 @@ class J0 extends br {
|
|
|
10532
10563
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10533
10564
|
}
|
|
10534
10565
|
render(t) {
|
|
10535
|
-
const e = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: i } = n.data, r = this.model.getStackedData({
|
|
10566
|
+
const e = this.getComponentContainer({ ariaLabel: "stacked bar graphs", withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: i } = n.data, r = this.model.getStackedData({
|
|
10536
10567
|
groups: this.configs.groups,
|
|
10537
10568
|
divergent: !0
|
|
10538
10569
|
}), a = this.model.getActiveDataGroupNames(), o = e.selectAll("g.bars").data(r, (l) => T(l, 0, i));
|
|
@@ -10639,14 +10670,14 @@ class J0 extends br {
|
|
|
10639
10670
|
t.removeEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10640
10671
|
}
|
|
10641
10672
|
}
|
|
10642
|
-
class Q0 extends
|
|
10673
|
+
class Q0 extends br {
|
|
10643
10674
|
constructor() {
|
|
10644
10675
|
super(...arguments), this.type = "scatter-stacked", this.renderType = st.SVG;
|
|
10645
10676
|
}
|
|
10646
10677
|
render(t) {
|
|
10647
10678
|
if (!T(this.getOptions(), "points", "enabled"))
|
|
10648
10679
|
return;
|
|
10649
|
-
const n = this.getComponentContainer({ withinChartClip: !0 }), i = this.getOptions(), { groupMapsTo: r } = i.data, a = Object.keys(i.axes).some((p) => i.axes[p].percentage), o = this.model.getStackedData({
|
|
10680
|
+
const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), i = this.getOptions(), { groupMapsTo: r } = i.data, a = Object.keys(i.axes).some((p) => i.axes[p].percentage), o = this.model.getStackedData({
|
|
10650
10681
|
groups: this.configs.groups,
|
|
10651
10682
|
percentage: a
|
|
10652
10683
|
}), c = n.selectAll("g.dots").data(o, (p) => T(p, 0, r));
|
|
@@ -10709,7 +10740,9 @@ class ty extends ot {
|
|
|
10709
10740
|
// @ts-ignore
|
|
10710
10741
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10711
10742
|
render(t = !0) {
|
|
10712
|
-
const e = this.getComponentContainer(
|
|
10743
|
+
const e = this.getComponentContainer({
|
|
10744
|
+
ariaLabel: "tree diagram"
|
|
10745
|
+
});
|
|
10713
10746
|
e.html("");
|
|
10714
10747
|
const { width: n, height: i } = _.getSVGElementSize(this.parent, {
|
|
10715
10748
|
useAttrs: !0
|
|
@@ -10718,19 +10751,17 @@ class ty extends ot {
|
|
|
10718
10751
|
return;
|
|
10719
10752
|
const r = this.model.getOptions(), a = this.model.getDisplayData(), o = T(r, "tree", "rootTitle") || "Tree", c = this.getMockLabelWidth(e, o), l = this.getLongestLabel(a), h = this.getMockLabelWidth(e, l), d = {
|
|
10720
10753
|
top: 0,
|
|
10721
|
-
right: 0,
|
|
10722
|
-
bottom: 0,
|
|
10723
10754
|
left: c > 0 ? c + We : 30 - We
|
|
10724
10755
|
}, u = Pn({
|
|
10725
10756
|
name: o,
|
|
10726
10757
|
children: a
|
|
10727
10758
|
}), p = 10, f = n / 6, g = (O) => {
|
|
10728
|
-
const I = u.descendants().reverse(),
|
|
10729
|
-
let G = u,
|
|
10759
|
+
const I = u.descendants().reverse(), C = u.links();
|
|
10760
|
+
let G = u, k = u;
|
|
10730
10761
|
u.eachBefore((P) => {
|
|
10731
|
-
P.x < G.x && (G = P), P.x >
|
|
10762
|
+
P.x < G.x && (G = P), P.x > k.x && (k = P);
|
|
10732
10763
|
});
|
|
10733
|
-
const L =
|
|
10764
|
+
const L = k.x - G.x, B = e.transition().call(
|
|
10734
10765
|
(P) => this.services.transitions.setupTransition({
|
|
10735
10766
|
transition: P,
|
|
10736
10767
|
name: "tree-update-viewbox",
|
|
@@ -10759,7 +10790,7 @@ class ty extends ot {
|
|
|
10759
10790
|
});
|
|
10760
10791
|
});
|
|
10761
10792
|
w.append("circle").attr("r", 2.5).attr("class", (P) => P._children ? "parent" : "child").attr("stroke-width", 10), w.append("text").attr("dy", "0.31em").attr("x", (P) => P._children ? -We : We).attr("text-anchor", (P) => P._children ? "end" : "start").text((P) => P.data.name).clone(!0).attr("class", "text-stroke").lower(), D.merge(w).transition(B).attr("transform", (P) => `translate(${P.y},${P.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), D.exit().transition(B).remove().attr("transform", () => `translate(${O.y},${O.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
10762
|
-
const V = S.selectAll("path").data(
|
|
10793
|
+
const V = S.selectAll("path").data(C, (P) => P.target.id), N = V.enter().append("path").attr("d", () => {
|
|
10763
10794
|
const P = { x: O.x0, y: O.y0 };
|
|
10764
10795
|
return v({ source: P, target: P });
|
|
10765
10796
|
});
|
|
@@ -10794,7 +10825,7 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
|
|
|
10794
10825
|
80: yg,
|
|
10795
10826
|
90: Eg,
|
|
10796
10827
|
100: Sg
|
|
10797
|
-
}, bg = "#fff2e8", Tg = "#ffd9be", Og = "#ffb784", wg = "#ff832b", Lg = "#eb6200", Ag = "#ba4e00", Mg = "#8a3800", _g = "#5e2900",
|
|
10828
|
+
}, bg = "#fff2e8", Tg = "#ffd9be", Og = "#ffb784", wg = "#ff832b", Lg = "#eb6200", Ag = "#ba4e00", Mg = "#8a3800", _g = "#5e2900", kg = "#3e1a00", Cg = "#231000", Rg = {
|
|
10798
10829
|
10: bg,
|
|
10799
10830
|
20: Tg,
|
|
10800
10831
|
30: Og,
|
|
@@ -10803,8 +10834,8 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
|
|
|
10803
10834
|
60: Ag,
|
|
10804
10835
|
70: Mg,
|
|
10805
10836
|
80: _g,
|
|
10806
|
-
90:
|
|
10807
|
-
100:
|
|
10837
|
+
90: kg,
|
|
10838
|
+
100: Cg
|
|
10808
10839
|
}, Ig = "#fff1f1", Dg = "#ffd7d9", Pg = "#ffb3b8", Ng = "#ff8389", $g = "#fa4d56", Vg = "#da1e28", Bg = "#a2191f", Gg = "#750e13", Hg = "#520408", Ug = "#2d0709", zg = {
|
|
10809
10840
|
10: Ig,
|
|
10810
10841
|
20: Dg,
|
|
@@ -10849,7 +10880,7 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
|
|
|
10849
10880
|
80: Em,
|
|
10850
10881
|
90: Sm,
|
|
10851
10882
|
100: xm
|
|
10852
|
-
}, Tm = "#e5f6ff", Om = "#bae6ff", wm = "#82cfff", Lm = "#33b1ff", Am = "#1192e8", Mm = "#0072c3", _m = "#00539a",
|
|
10883
|
+
}, Tm = "#e5f6ff", Om = "#bae6ff", wm = "#82cfff", Lm = "#33b1ff", Am = "#1192e8", Mm = "#0072c3", _m = "#00539a", km = "#003a6d", Cm = "#012749", Rm = "#061727", Im = {
|
|
10853
10884
|
10: Tm,
|
|
10854
10885
|
20: Om,
|
|
10855
10886
|
30: wm,
|
|
@@ -10857,8 +10888,8 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
|
|
|
10857
10888
|
50: Am,
|
|
10858
10889
|
60: Mm,
|
|
10859
10890
|
70: _m,
|
|
10860
|
-
80:
|
|
10861
|
-
90:
|
|
10891
|
+
80: km,
|
|
10892
|
+
90: Cm,
|
|
10862
10893
|
100: Rm
|
|
10863
10894
|
}, Dm = "#d9fbfb", Pm = "#9ef0f0", Nm = "#3ddbd9", $m = "#08bdba", Vm = "#009d9a", Bm = "#007d79", Gm = "#005d5d", Hm = "#004144", Um = "#022b30", zm = "#081a1c", Fm = {
|
|
10864
10895
|
10: Dm,
|
|
@@ -10904,15 +10935,15 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
|
|
|
10904
10935
|
80: Sv,
|
|
10905
10936
|
90: xv,
|
|
10906
10937
|
100: bv
|
|
10907
|
-
}, Ov = "#f7f3f2", wv = "#e5e0df", Lv = "#cac5c4", Av = "#ada8a8", Mv = "#8f8b8b", _v = "#726e6e",
|
|
10938
|
+
}, Ov = "#f7f3f2", wv = "#e5e0df", Lv = "#cac5c4", Av = "#ada8a8", Mv = "#8f8b8b", _v = "#726e6e", kv = "#565151", Cv = "#3c3838", Rv = "#272525", Iv = "#171414", Dv = {
|
|
10908
10939
|
10: Ov,
|
|
10909
10940
|
20: wv,
|
|
10910
10941
|
30: Lv,
|
|
10911
10942
|
40: Av,
|
|
10912
10943
|
50: Mv,
|
|
10913
10944
|
60: _v,
|
|
10914
|
-
70:
|
|
10915
|
-
80:
|
|
10945
|
+
70: kv,
|
|
10946
|
+
80: Cv,
|
|
10916
10947
|
90: Rv,
|
|
10917
10948
|
100: Iv
|
|
10918
10949
|
}, uo = {
|
|
@@ -10982,7 +11013,9 @@ class ey extends ot {
|
|
|
10982
11013
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10983
11014
|
}
|
|
10984
11015
|
render(t = !0) {
|
|
10985
|
-
const e = this.getComponentContainer(
|
|
11016
|
+
const e = this.getComponentContainer({
|
|
11017
|
+
ariaLabel: "treemap"
|
|
11018
|
+
});
|
|
10986
11019
|
this.model.getData();
|
|
10987
11020
|
const n = this.model.getDisplayData(), i = this.model.getOptions(), r = T(window, "location"), { width: a, height: o } = _.getSVGElementSize(e, {
|
|
10988
11021
|
useAttrs: !0
|
|
@@ -11138,9 +11171,9 @@ function _l() {
|
|
|
11138
11171
|
if (!(n = arguments[s] + "") || n in e || /[\s.]/.test(n)) throw new Error("illegal type: " + n);
|
|
11139
11172
|
e[n] = [];
|
|
11140
11173
|
}
|
|
11141
|
-
return new
|
|
11174
|
+
return new ds(e);
|
|
11142
11175
|
}
|
|
11143
|
-
function
|
|
11176
|
+
function ds(s) {
|
|
11144
11177
|
this._ = s;
|
|
11145
11178
|
}
|
|
11146
11179
|
function Vv(s, t) {
|
|
@@ -11150,8 +11183,8 @@ function Vv(s, t) {
|
|
|
11150
11183
|
return { type: e, name: n };
|
|
11151
11184
|
});
|
|
11152
11185
|
}
|
|
11153
|
-
|
|
11154
|
-
constructor:
|
|
11186
|
+
ds.prototype = _l.prototype = {
|
|
11187
|
+
constructor: ds,
|
|
11155
11188
|
on: function(s, t) {
|
|
11156
11189
|
var e = this._, n = Vv(s + "", e), i, r = -1, a = n.length;
|
|
11157
11190
|
if (arguments.length < 2) {
|
|
@@ -11167,7 +11200,7 @@ us.prototype = _l.prototype = {
|
|
|
11167
11200
|
copy: function() {
|
|
11168
11201
|
var s = {}, t = this._;
|
|
11169
11202
|
for (var e in t) s[e] = t[e].slice();
|
|
11170
|
-
return new
|
|
11203
|
+
return new ds(s);
|
|
11171
11204
|
},
|
|
11172
11205
|
call: function(s, t) {
|
|
11173
11206
|
if ((i = arguments.length - 2) > 0) for (var e = new Array(i), n = 0, i, r; n < i; ++n) e[n] = arguments[n + 2];
|
|
@@ -11195,25 +11228,25 @@ function po(s, t, e) {
|
|
|
11195
11228
|
const Gv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11196
11229
|
__proto__: null,
|
|
11197
11230
|
dispatch: _l
|
|
11198
|
-
}, Symbol.toStringTag, { value: "Module" })), Hv = /* @__PURE__ */ of(Gv), Uv = Hv.dispatch,
|
|
11199
|
-
archimedean:
|
|
11231
|
+
}, Symbol.toStringTag, { value: "Module" })), Hv = /* @__PURE__ */ of(Gv), Uv = Hv.dispatch, Ei = Math.PI / 180, zv = {
|
|
11232
|
+
archimedean: kl,
|
|
11200
11233
|
rectangular: t0
|
|
11201
|
-
}, wn = 64,
|
|
11234
|
+
}, wn = 64, ps = 2048;
|
|
11202
11235
|
var Fv = function() {
|
|
11203
|
-
var s = [256, 256], t = Wv, e = Xv, n = jv, i = fo, r = fo, a = Yv, o = qv, c =
|
|
11236
|
+
var s = [256, 256], t = Wv, e = Xv, n = jv, i = fo, r = fo, a = Yv, o = qv, c = kl, l = [], h = 1 / 0, d = Uv("word", "end"), u = null, p = Math.random, f = {}, g = n0;
|
|
11204
11237
|
f.canvas = function(y) {
|
|
11205
11238
|
return arguments.length ? (g = xe(y), f) : g;
|
|
11206
11239
|
}, f.start = function() {
|
|
11207
|
-
var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [],
|
|
11208
|
-
return
|
|
11209
|
-
}).sort(function(
|
|
11210
|
-
return L.size -
|
|
11240
|
+
var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [], C = l.map(function(k, L) {
|
|
11241
|
+
return k.text = t.call(this, k, L), k.font = e.call(this, k, L), k.style = i.call(this, k, L), k.weight = r.call(this, k, L), k.rotate = a.call(this, k, L), k.size = ~~n.call(this, k, L), k.padding = o.call(this, k, L), k;
|
|
11242
|
+
}).sort(function(k, L) {
|
|
11243
|
+
return L.size - k.size;
|
|
11211
11244
|
});
|
|
11212
11245
|
return u && clearInterval(u), u = setInterval(G, 0), G(), f;
|
|
11213
11246
|
function G() {
|
|
11214
|
-
for (var
|
|
11215
|
-
var L =
|
|
11216
|
-
L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L,
|
|
11247
|
+
for (var k = Date.now(); Date.now() - k < h && ++O < b && u; ) {
|
|
11248
|
+
var L = C[O];
|
|
11249
|
+
L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, C, O), L.hasText && E(v, L, S) && (I.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
|
|
11217
11250
|
}
|
|
11218
11251
|
O >= b && (f.stop(), d.call("end", f, I, S));
|
|
11219
11252
|
}
|
|
@@ -11227,11 +11260,11 @@ var Fv = function() {
|
|
|
11227
11260
|
const v = y.getContext("2d", { willReadFrequently: !0 });
|
|
11228
11261
|
y.width = y.height = 1;
|
|
11229
11262
|
const S = Math.sqrt(v.getImageData(0, 0, 1, 1).data.length >> 2);
|
|
11230
|
-
return y.width = (wn << 5) / S, y.height =
|
|
11263
|
+
return y.width = (wn << 5) / S, y.height = ps / S, v.fillStyle = v.strokeStyle = "red", { context: v, ratio: S };
|
|
11231
11264
|
}
|
|
11232
11265
|
function E(y, v, S) {
|
|
11233
11266
|
s[0], s[1];
|
|
11234
|
-
for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]),
|
|
11267
|
+
for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]), C = c(s), G = p() < 0.5 ? 1 : -1, k = -G, L, B, D; (L = C(k += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= I)); )
|
|
11235
11268
|
if (v.x = b + B, v.y = O + D, !(v.x + v.x0 < 0 || v.y + v.y0 < 0 || v.x + v.x1 > s[0] || v.y + v.y1 > s[1]) && (!S || Qv(v, S)) && !Kv(v, y, s[0])) {
|
|
11236
11269
|
for (var A = v.sprite, w = v.width >> 5, V = s[0] >> 5, N = v.x - (w << 4), P = N & 127, $ = 32 - P, X = v.y1 - v.y0, F = (v.y + v.y0) * V + (N >> 5), et, J = 0; J < X; J++) {
|
|
11237
11270
|
et = 0;
|
|
@@ -11293,31 +11326,31 @@ function qv() {
|
|
|
11293
11326
|
function Zv(s, t, e, n) {
|
|
11294
11327
|
if (!t.sprite) {
|
|
11295
11328
|
var i = s.context, r = s.ratio;
|
|
11296
|
-
i.clearRect(0, 0, (wn << 5) / r,
|
|
11329
|
+
i.clearRect(0, 0, (wn << 5) / r, ps / r);
|
|
11297
11330
|
var a = 0, o = 0, c = 0, l = e.length;
|
|
11298
11331
|
for (--n; ++n < l; ) {
|
|
11299
11332
|
t = e[n], i.save(), i.font = t.style + " " + t.weight + " " + ~~((t.size + 1) / r) + "px " + t.font;
|
|
11300
11333
|
const L = i.measureText(t.text), B = -Math.floor(L.width / 2);
|
|
11301
11334
|
let D = (L.width + 1) * r, A = t.size << 1;
|
|
11302
11335
|
if (t.rotate) {
|
|
11303
|
-
var h = Math.sin(t.rotate *
|
|
11336
|
+
var h = Math.sin(t.rotate * Ei), d = Math.cos(t.rotate * Ei), u = D * d, p = D * h, f = A * d, g = A * h;
|
|
11304
11337
|
D = Math.max(Math.abs(u + g), Math.abs(u - g)) + 31 >> 5 << 5, A = ~~Math.max(Math.abs(p + f), Math.abs(p - f));
|
|
11305
11338
|
} else
|
|
11306
11339
|
D = D + 31 >> 5 << 5;
|
|
11307
|
-
if (A > c && (c = A), a + D >= wn << 5 && (a = 0, o += c, c = 0), o + A >=
|
|
11308
|
-
i.translate((a + (D >> 1)) / r, (o + (A >> 1)) / r), t.rotate && i.rotate(t.rotate *
|
|
11340
|
+
if (A > c && (c = A), a + D >= wn << 5 && (a = 0, o += c, c = 0), o + A >= ps) break;
|
|
11341
|
+
i.translate((a + (D >> 1)) / r, (o + (A >> 1)) / r), t.rotate && i.rotate(t.rotate * Ei), i.fillText(t.text, B, 0), t.padding && (i.lineWidth = 2 * t.padding, i.strokeText(t.text, B, 0)), i.restore(), t.width = D, t.height = A, t.xoff = a, t.yoff = o, t.x1 = D >> 1, t.y1 = A >> 1, t.x0 = -t.x1, t.y0 = -t.y1, t.hasText = !0, a += D;
|
|
11309
11342
|
}
|
|
11310
|
-
for (var m = i.getImageData(0, 0, (wn << 5) / r,
|
|
11343
|
+
for (var m = i.getImageData(0, 0, (wn << 5) / r, ps / r).data, E = []; --n >= 0; )
|
|
11311
11344
|
if (t = e[n], !!t.hasText) {
|
|
11312
11345
|
for (var y = t.width, v = y >> 5, S = t.y1 - t.y0, b = 0; b < S * v; b++) E[b] = 0;
|
|
11313
11346
|
if (a = t.xoff, a == null) return;
|
|
11314
11347
|
o = t.yoff;
|
|
11315
|
-
for (var O = 0, I = -1,
|
|
11348
|
+
for (var O = 0, I = -1, C = 0; C < S; C++) {
|
|
11316
11349
|
for (var b = 0; b < y; b++) {
|
|
11317
|
-
var G = v *
|
|
11318
|
-
E[G] |=
|
|
11350
|
+
var G = v * C + (b >> 5), k = m[(o + C) * (wn << 5) + (a + b) << 2] ? 1 << 31 - b % 32 : 0;
|
|
11351
|
+
E[G] |= k, O |= k;
|
|
11319
11352
|
}
|
|
11320
|
-
O ? I =
|
|
11353
|
+
O ? I = C : (t.y0++, S--, C--, o++);
|
|
11321
11354
|
}
|
|
11322
11355
|
t.y1 = t.y0 + I, t.sprite = E.slice(0, (t.y1 - t.y0) * v);
|
|
11323
11356
|
}
|
|
@@ -11340,7 +11373,7 @@ function Jv(s, t) {
|
|
|
11340
11373
|
function Qv(s, t) {
|
|
11341
11374
|
return s.x + s.x1 > t[0].x && s.x + s.x0 < t[1].x && s.y + s.y1 > t[0].y && s.y + s.y0 < t[1].y;
|
|
11342
11375
|
}
|
|
11343
|
-
function
|
|
11376
|
+
function kl(s) {
|
|
11344
11377
|
var t = s[0] / s[1];
|
|
11345
11378
|
return function(e) {
|
|
11346
11379
|
return [t * (e *= 0.1) * Math.cos(e), e * Math.sin(e)];
|
|
@@ -11404,7 +11437,9 @@ class ny extends ot {
|
|
|
11404
11437
|
t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
11405
11438
|
}
|
|
11406
11439
|
render(t = !0) {
|
|
11407
|
-
const e = this, n = this.getComponentContainer(
|
|
11440
|
+
const e = this, n = this.getComponentContainer({
|
|
11441
|
+
ariaLabel: "word cloud"
|
|
11442
|
+
}).attr("width", "100%").attr("height", "100%"), i = this.model.getDisplayData(), r = this.getFontSizeScale(i), a = this.getOptions(), { fontSizeMapsTo: o, wordMapsTo: c } = a.wordCloud, { groupMapsTo: l } = a.data, { width: h, height: d } = _.getSVGElementSize(n, {
|
|
11408
11443
|
useAttrs: !0
|
|
11409
11444
|
});
|
|
11410
11445
|
if (h === 0 || d === 0)
|
|
@@ -11449,11 +11484,11 @@ class ny extends ot {
|
|
|
11449
11484
|
this.addEventListeners();
|
|
11450
11485
|
}
|
|
11451
11486
|
getFontSizeScale(t) {
|
|
11452
|
-
const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, i = t.map((c) => c[n]).filter((c) => c), r = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), a = i.length > 0, o = a ?
|
|
11453
|
-
return
|
|
11487
|
+
const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, i = t.map((c) => c[n]).filter((c) => c), r = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), a = i.length > 0, o = a ? Is(i) : [1, 1];
|
|
11488
|
+
return Ce().domain(o).range(a ? e.wordCloud.fontSizeRange(r, t) : [4, 4]);
|
|
11454
11489
|
}
|
|
11455
11490
|
addEventListeners() {
|
|
11456
|
-
const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i =
|
|
11491
|
+
const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i = Ti((r) => {
|
|
11457
11492
|
const a = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
|
|
11458
11493
|
(o) => n.services.transitions.setupTransition({
|
|
11459
11494
|
transition: o,
|
|
@@ -11483,7 +11518,7 @@ class ny extends ot {
|
|
|
11483
11518
|
value: a.value
|
|
11484
11519
|
},
|
|
11485
11520
|
{
|
|
11486
|
-
label:
|
|
11521
|
+
label: vt(t, "locale.translations.group") || vt(t, "tooltip.groupLabel") || "Group",
|
|
11487
11522
|
value: a[e],
|
|
11488
11523
|
class: n.model.getColorClassName({
|
|
11489
11524
|
classNameTypes: [tt.TOOLTIP],
|
|
@@ -11599,7 +11634,7 @@ class sy extends i0 {
|
|
|
11599
11634
|
render(t = !0) {
|
|
11600
11635
|
super.render();
|
|
11601
11636
|
const e = this.model.getCombinedData();
|
|
11602
|
-
this.getComponentContainer({ withinChartClip: !0 }).select("g.geo").selectAll("path").classed("border", !0).attr("class", (r) => this.model.getColorClassName({
|
|
11637
|
+
this.getComponentContainer({ ariaLabel: "map", withinChartClip: !0 }).select("g.geo").selectAll("path").classed("border", !0).attr("class", (r) => this.model.getColorClassName({
|
|
11603
11638
|
value: e[r.properties.NAME].value,
|
|
11604
11639
|
originalClassName: "border"
|
|
11605
11640
|
})), this.addCountryAreaEventListener();
|
|
@@ -11608,11 +11643,11 @@ class sy extends i0 {
|
|
|
11608
11643
|
const t = this, e = this.model.getCombinedData();
|
|
11609
11644
|
this.parent.selectAll("path.border").on("mouseover", function(n, i) {
|
|
11610
11645
|
const r = R(this);
|
|
11611
|
-
t.services.events.dispatchEvent(
|
|
11646
|
+
t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEOVER, {
|
|
11612
11647
|
event: n,
|
|
11613
11648
|
element: r,
|
|
11614
11649
|
datum: e[i.properties.NAME]
|
|
11615
|
-
}), t.services.events.dispatchEvent(
|
|
11650
|
+
}), t.services.events.dispatchEvent(Zs.SHOW, {
|
|
11616
11651
|
event: n,
|
|
11617
11652
|
hoveredElement: r,
|
|
11618
11653
|
items: [
|
|
@@ -11623,26 +11658,26 @@ class sy extends i0 {
|
|
|
11623
11658
|
]
|
|
11624
11659
|
});
|
|
11625
11660
|
}).on("mousemove", function(n, i) {
|
|
11626
|
-
t.services.events.dispatchEvent(
|
|
11661
|
+
t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEMOVE, {
|
|
11627
11662
|
event: n,
|
|
11628
11663
|
element: R(this),
|
|
11629
11664
|
datum: e[i.properties.NAME]
|
|
11630
|
-
}), t.services.events.dispatchEvent(
|
|
11665
|
+
}), t.services.events.dispatchEvent(Zs.MOVE, {
|
|
11631
11666
|
event: n
|
|
11632
11667
|
});
|
|
11633
11668
|
}).on("click", function(n, i) {
|
|
11634
|
-
t.services.events.dispatchEvent(
|
|
11669
|
+
t.services.events.dispatchEvent(Wn.CHOROPLETH_CLICK, {
|
|
11635
11670
|
event: n,
|
|
11636
11671
|
element: R(this),
|
|
11637
11672
|
datum: e[i.properties.NAME]
|
|
11638
11673
|
});
|
|
11639
11674
|
}).on("mouseout", function(n, i) {
|
|
11640
11675
|
const r = R(this);
|
|
11641
|
-
t.services.events.dispatchEvent(
|
|
11676
|
+
t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEOUT, {
|
|
11642
11677
|
event: n,
|
|
11643
11678
|
element: r,
|
|
11644
11679
|
datum: e[i.properties.NAME]
|
|
11645
|
-
}), t.services.events.dispatchEvent(
|
|
11680
|
+
}), t.services.events.dispatchEvent(Zs.HIDE, {
|
|
11646
11681
|
event: n,
|
|
11647
11682
|
hoveredElement: r
|
|
11648
11683
|
});
|
|
@@ -11679,19 +11714,19 @@ export {
|
|
|
11679
11714
|
f0 as Z,
|
|
11680
11715
|
R0 as _,
|
|
11681
11716
|
Xa as a,
|
|
11682
|
-
|
|
11683
|
-
|
|
11717
|
+
C0 as a0,
|
|
11718
|
+
k0 as a1,
|
|
11684
11719
|
_0 as a2,
|
|
11685
11720
|
D0 as a3,
|
|
11686
11721
|
P0 as a4,
|
|
11687
11722
|
N0 as a5,
|
|
11688
11723
|
$0 as a6,
|
|
11689
11724
|
i0 as a7,
|
|
11690
|
-
|
|
11725
|
+
Or as a8,
|
|
11691
11726
|
ot as a9,
|
|
11692
11727
|
ja as b,
|
|
11693
11728
|
Jc as c,
|
|
11694
|
-
|
|
11729
|
+
kf as d,
|
|
11695
11730
|
_f as e,
|
|
11696
11731
|
Qa as f,
|
|
11697
11732
|
g0 as g,
|
|
@@ -11699,7 +11734,7 @@ export {
|
|
|
11699
11734
|
b0 as i,
|
|
11700
11735
|
x0 as j,
|
|
11701
11736
|
S0 as k,
|
|
11702
|
-
|
|
11737
|
+
br as l,
|
|
11703
11738
|
Jf as m,
|
|
11704
11739
|
O0 as n,
|
|
11705
11740
|
w0 as o,
|
|
@@ -11707,12 +11742,12 @@ export {
|
|
|
11707
11742
|
V0 as q,
|
|
11708
11743
|
sy as r,
|
|
11709
11744
|
G0 as s,
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11745
|
+
J0 as t,
|
|
11746
|
+
M0 as u,
|
|
11747
|
+
z0 as v,
|
|
11713
11748
|
q0 as w,
|
|
11714
|
-
|
|
11715
|
-
|
|
11749
|
+
K0 as x,
|
|
11750
|
+
Q0 as y,
|
|
11716
11751
|
U0 as z
|
|
11717
11752
|
};
|
|
11718
|
-
//# sourceMappingURL=choropleth-
|
|
11753
|
+
//# sourceMappingURL=choropleth-C1BTZZfm.mjs.map
|