@carbon/charts 1.13.22 → 1.13.24
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 +18 -0
- package/dist/{_baseEach-hXZ_iCmx.mjs → _baseEach-hCF4b-EZ.mjs} +2 -2
- package/dist/{_baseEach-hXZ_iCmx.mjs.map → _baseEach-hCF4b-EZ.mjs.map} +1 -1
- package/dist/{angle-utils-A-okg7PT.mjs → angle-utils-to7NH0_1.mjs} +2 -2
- package/dist/{angle-utils-A-okg7PT.mjs.map → angle-utils-to7NH0_1.mjs.map} +1 -1
- package/dist/{choropleth-s-WBhiE4.mjs → choropleth-a9b8bAaz.mjs} +880 -879
- package/dist/choropleth-a9b8bAaz.mjs.map +1 -0
- package/dist/{color-scale-utils-H9cC5d7N.mjs → color-scale-utils-W9pcGG6t.mjs} +367 -374
- package/dist/{color-scale-utils-H9cC5d7N.mjs.map → color-scale-utils-W9pcGG6t.mjs.map} +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/demo/index.mjs +44 -43
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +352 -78
- package/dist/demo/styles.css.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/model/index.mjs +3 -3
- package/dist/services/index.mjs +3 -3
- package/dist/styles.css +50 -14
- 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.js +14 -14
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-je962F3R.mjs → wordcloud-y7csbPwp.mjs} +3 -3
- package/dist/{wordcloud-je962F3R.mjs.map → wordcloud-y7csbPwp.mjs.map} +1 -1
- package/dist/{zoom-_zg_D2pq.mjs → zoom-z1-4lR5l.mjs} +16 -13
- package/dist/zoom-z1-4lR5l.mjs.map +1 -0
- package/package.json +14 -14
- package/styles.css +50 -14
- package/styles.min.css +1 -1
- package/dist/choropleth-s-WBhiE4.mjs.map +0 -1
- package/dist/zoom-_zg_D2pq.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as
|
|
2
|
-
import { select as x, pointer as
|
|
3
|
-
import { t as
|
|
4
|
-
import { y as W, _ as f, K as de, r as He, q as tt, L as Ti, A as Me, m as F, s as
|
|
1
|
+
import { M as qs, h as Ha, o as Ks, a5 as $a, p as Js, C as Ua, a6 as za, a7 as Fa, a8 as Wa, m as y, n as Ae, x as dt, a1 as us, B as ce, s as oe, a9 as St, z as ps, L as Le, a3 as ja, A as Qs, t as Xa, aa as Be, c as gn, b as mn, Q as _e, ab as Et, ac as Ne, R as Ve, Y as Pe, ad as Za, K as ot, i as Ya, _ as te, U as Te, ae as ye, af as qa, a as Ka, Z as ue, V as mt, I as Mt, ag as Qt, v as Ja, ah as gs, $ as Fe } from "./color-scale-utils-W9pcGG6t.mjs";
|
|
2
|
+
import { select as x, pointer as Ft, brushX as ea, scaleTime as Qa, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ta, axisTop as ei, axisRight as ti, scaleLinear as Ze, arc as Ot, easeLinear as ni, path as Bn, interpolateNumber as na, quantize as si, scaleBand as Gn, hierarchy as Hn, pack as ai, pie as ii, interpolate as ri, interpolateRound as oi, min as fn, max as ms, lineRadial as li, curveLinearClosed as ci, cluster as di, tree as hi, linkHorizontal as ui, treemap as pi, hsl as sa, color as aa, geoPath as gi, geoNaturalEarth1 as mi, geoMercator as fi, geoEquirectangular as vi, geoConicEquidistant as yi, geoConicEqualArea as Ei, geoAlbers as bi, geoEqualEarth as Si } from "d3";
|
|
3
|
+
import { t as en, D as S, c as vn, G as fs, a as Oi, p as re, r as vs, b as xi } from "./angle-utils-to7NH0_1.mjs";
|
|
4
|
+
import { y as W, _ as f, K as de, r as He, q as tt, L as Ti, A as Me, m as F, s as We, V as lt, S as he, e as B, Z as nt, i as xe, f as ys, J as tn, d as Li, F as wt, n as nn, H as sn, C as an, p as Ct, b as Es, D as rn, Q as Ai, x as je, $ as _t, N as on } from "./enums-tMKLWMMm.mjs";
|
|
5
5
|
import { sankey as Mi, sankeyLinkHorizontal as wi, sankeyJustify as Ci, sankeyLeft as _i, sankeyRight as Ii } from "d3-sankey";
|
|
6
6
|
import { R as j } from "./a11y-SOU26cr5.mjs";
|
|
7
|
-
import { b as
|
|
7
|
+
import { b as ia } from "./_baseEach-hCF4b-EZ.mjs";
|
|
8
8
|
import ki from "d3-cloud";
|
|
9
9
|
function Ri(o, e, t, n) {
|
|
10
10
|
var s = -1, a = o == null ? 0 : o.length;
|
|
@@ -214,7 +214,7 @@ var Ni = {
|
|
|
214
214
|
const Vi = Pi;
|
|
215
215
|
var Bi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Gi = "\\u0300-\\u036f", Hi = "\\ufe20-\\ufe2f", $i = "\\u20d0-\\u20ff", Ui = Gi + Hi + $i, zi = "[" + Ui + "]", Fi = RegExp(zi, "g");
|
|
216
216
|
function Wi(o) {
|
|
217
|
-
return o =
|
|
217
|
+
return o = qs(o), o && o.replace(Bi, Vi).replace(Fi, "");
|
|
218
218
|
}
|
|
219
219
|
var ji = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
220
220
|
function Xi(o) {
|
|
@@ -224,21 +224,21 @@ var Zi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
224
224
|
function Yi(o) {
|
|
225
225
|
return Zi.test(o);
|
|
226
226
|
}
|
|
227
|
-
var
|
|
228
|
-
|
|
229
|
-
hr + "+" +
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
var ra = "\\ud800-\\udfff", qi = "\\u0300-\\u036f", Ki = "\\ufe20-\\ufe2f", Ji = "\\u20d0-\\u20ff", Qi = qi + Ki + Ji, oa = "\\u2700-\\u27bf", la = "a-z\\xdf-\\xf6\\xf8-\\xff", er = "\\xac\\xb1\\xd7\\xf7", tr = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", nr = "\\u2000-\\u206f", sr = " \\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", ca = "A-Z\\xc0-\\xd6\\xd8-\\xde", ar = "\\ufe0e\\ufe0f", da = er + tr + nr + sr, ha = "['’]", bs = "[" + da + "]", ir = "[" + Qi + "]", ua = "\\d+", rr = "[" + oa + "]", pa = "[" + la + "]", ga = "[^" + ra + da + ua + oa + la + ca + "]", or = "\\ud83c[\\udffb-\\udfff]", lr = "(?:" + ir + "|" + or + ")", cr = "[^" + ra + "]", ma = "(?:\\ud83c[\\udde6-\\uddff]){2}", fa = "[\\ud800-\\udbff][\\udc00-\\udfff]", rt = "[" + ca + "]", dr = "\\u200d", Ss = "(?:" + pa + "|" + ga + ")", hr = "(?:" + rt + "|" + ga + ")", Os = "(?:" + ha + "(?:d|ll|m|re|s|t|ve))?", xs = "(?:" + ha + "(?:D|LL|M|RE|S|T|VE))?", va = lr + "?", ya = "[" + ar + "]?", ur = "(?:" + dr + "(?:" + [cr, ma, fa].join("|") + ")" + ya + va + ")*", pr = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", gr = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", mr = ya + va + ur, fr = "(?:" + [rr, ma, fa].join("|") + ")" + mr, vr = RegExp([
|
|
228
|
+
rt + "?" + pa + "+" + Os + "(?=" + [bs, rt, "$"].join("|") + ")",
|
|
229
|
+
hr + "+" + xs + "(?=" + [bs, rt + Ss, "$"].join("|") + ")",
|
|
230
|
+
rt + "?" + Ss + "+" + Os,
|
|
231
|
+
rt + "+" + xs,
|
|
232
232
|
gr,
|
|
233
233
|
pr,
|
|
234
|
-
|
|
234
|
+
ua,
|
|
235
235
|
fr
|
|
236
236
|
].join("|"), "g");
|
|
237
237
|
function yr(o) {
|
|
238
238
|
return o.match(vr) || [];
|
|
239
239
|
}
|
|
240
240
|
function Er(o, e, t) {
|
|
241
|
-
return o =
|
|
241
|
+
return o = qs(o), e = t ? void 0 : e, e === void 0 ? Yi(o) ? yr(o) : Xi(o) : o.match(e) || [];
|
|
242
242
|
}
|
|
243
243
|
var br = "['’]", Sr = RegExp(br, "g");
|
|
244
244
|
function Or(o) {
|
|
@@ -249,24 +249,24 @@ function Or(o) {
|
|
|
249
249
|
function xr(o, e, t) {
|
|
250
250
|
return o === o && (t !== void 0 && (o = o <= t ? o : t), e !== void 0 && (o = o >= e ? o : e)), o;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t =
|
|
252
|
+
function Ea(o, e, t) {
|
|
253
|
+
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = en(t), t = t === t ? t : 0), e !== void 0 && (e = en(e), e = e === e ? e : 0), xr(en(o), e, t);
|
|
254
254
|
}
|
|
255
255
|
function Tr(o, e) {
|
|
256
256
|
var t = -1, n = Ha(o) ? Array(o.length) : [];
|
|
257
|
-
return
|
|
257
|
+
return ia(o, function(s, a, i) {
|
|
258
258
|
n[++t] = e(s, a, i);
|
|
259
259
|
}), n;
|
|
260
260
|
}
|
|
261
261
|
function Lr(o, e) {
|
|
262
|
-
var t =
|
|
263
|
-
return t(o,
|
|
262
|
+
var t = Ks(o) ? $a : Tr;
|
|
263
|
+
return t(o, Js(e));
|
|
264
264
|
}
|
|
265
265
|
var Ar = 1 / 0;
|
|
266
266
|
function Mr(o, e) {
|
|
267
267
|
return Ua(Lr(o, e), Ar);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ba(o, e) {
|
|
270
270
|
return za(o, e);
|
|
271
271
|
}
|
|
272
272
|
var wr = Or(function(o, e, t) {
|
|
@@ -275,13 +275,13 @@ var wr = Or(function(o, e, t) {
|
|
|
275
275
|
const st = wr;
|
|
276
276
|
function Cr(o, e) {
|
|
277
277
|
var t;
|
|
278
|
-
return
|
|
278
|
+
return ia(o, function(n, s, a) {
|
|
279
279
|
return t = e(n, s, a), !t;
|
|
280
280
|
}), !!t;
|
|
281
281
|
}
|
|
282
282
|
function _r(o, e, t) {
|
|
283
|
-
var n =
|
|
284
|
-
return t && Wa(o, e, t) && (e = void 0), n(o,
|
|
283
|
+
var n = Ks(o) ? Fa : Cr;
|
|
284
|
+
return t && Wa(o, e, t) && (e = void 0), n(o, Js(e));
|
|
285
285
|
}
|
|
286
286
|
class Y {
|
|
287
287
|
constructor(e, t, n) {
|
|
@@ -347,24 +347,24 @@ class Y {
|
|
|
347
347
|
* component's config.options object.
|
|
348
348
|
*/
|
|
349
349
|
getOptions() {
|
|
350
|
-
return this.configs.options ?
|
|
350
|
+
return this.configs.options ? dt({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
/*! @license DOMPurify 3.0.
|
|
353
|
+
/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */
|
|
354
354
|
const {
|
|
355
|
-
entries:
|
|
356
|
-
setPrototypeOf:
|
|
355
|
+
entries: Sa,
|
|
356
|
+
setPrototypeOf: Ts,
|
|
357
357
|
isFrozen: Ir,
|
|
358
358
|
getPrototypeOf: kr,
|
|
359
|
-
getOwnPropertyDescriptor:
|
|
359
|
+
getOwnPropertyDescriptor: $n
|
|
360
360
|
} = Object;
|
|
361
361
|
let {
|
|
362
362
|
freeze: Ee,
|
|
363
363
|
seal: Ie,
|
|
364
364
|
create: Oa
|
|
365
365
|
} = Object, {
|
|
366
|
-
apply:
|
|
367
|
-
construct:
|
|
366
|
+
apply: yn,
|
|
367
|
+
construct: En
|
|
368
368
|
} = typeof Reflect < "u" && Reflect;
|
|
369
369
|
Ee || (Ee = function(e) {
|
|
370
370
|
return e;
|
|
@@ -372,30 +372,30 @@ Ee || (Ee = function(e) {
|
|
|
372
372
|
Ie || (Ie = function(e) {
|
|
373
373
|
return e;
|
|
374
374
|
});
|
|
375
|
-
|
|
375
|
+
yn || (yn = function(e, t, n) {
|
|
376
376
|
return e.apply(t, n);
|
|
377
377
|
});
|
|
378
|
-
|
|
378
|
+
En || (En = function(e, t) {
|
|
379
379
|
return new e(...t);
|
|
380
380
|
});
|
|
381
|
-
const
|
|
381
|
+
const It = we(Array.prototype.forEach), Ls = we(Array.prototype.pop), ft = we(Array.prototype.push), Nt = we(String.prototype.toLowerCase), ln = we(String.prototype.toString), Rr = we(String.prototype.match), vt = we(String.prototype.replace), Dr = we(String.prototype.indexOf), Nr = we(String.prototype.trim), Oe = we(RegExp.prototype.test), yt = Pr(TypeError);
|
|
382
382
|
function we(o) {
|
|
383
383
|
return function(e) {
|
|
384
384
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
385
385
|
n[s - 1] = arguments[s];
|
|
386
|
-
return
|
|
386
|
+
return yn(o, e, n);
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
function Pr(o) {
|
|
390
390
|
return function() {
|
|
391
391
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
392
392
|
t[n] = arguments[n];
|
|
393
|
-
return
|
|
393
|
+
return En(o, t);
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
398
|
-
|
|
396
|
+
function Z(o, e) {
|
|
397
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
|
|
398
|
+
Ts && Ts(o, null);
|
|
399
399
|
let n = e.length;
|
|
400
400
|
for (; n--; ) {
|
|
401
401
|
let s = e[n];
|
|
@@ -407,15 +407,20 @@ function X(o, e) {
|
|
|
407
407
|
}
|
|
408
408
|
return o;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Vr(o) {
|
|
411
|
+
for (let e = 0; e < o.length; e++)
|
|
412
|
+
$n(o, e) === void 0 && (o[e] = null);
|
|
413
|
+
return o;
|
|
414
|
+
}
|
|
415
|
+
function Xe(o) {
|
|
411
416
|
const e = Oa(null);
|
|
412
|
-
for (const [t, n] of
|
|
413
|
-
|
|
417
|
+
for (const [t, n] of Sa(o))
|
|
418
|
+
$n(o, t) !== void 0 && (Array.isArray(n) ? e[t] = Vr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Xe(n) : e[t] = n);
|
|
414
419
|
return e;
|
|
415
420
|
}
|
|
416
|
-
function
|
|
421
|
+
function kt(o, e) {
|
|
417
422
|
for (; o !== null; ) {
|
|
418
|
-
const n =
|
|
423
|
+
const n = $n(o, e);
|
|
419
424
|
if (n) {
|
|
420
425
|
if (n.get)
|
|
421
426
|
return we(n.get);
|
|
@@ -429,28 +434,28 @@ function Rt(o, e) {
|
|
|
429
434
|
}
|
|
430
435
|
return t;
|
|
431
436
|
}
|
|
432
|
-
const
|
|
437
|
+
const As = Ee(["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"]), cn = Ee(["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"]), dn = Ee(["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"]), Br = Ee(["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"]), hn = Ee(["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"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ms = Ee(["#text"]), ws = Ee(["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", "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", "xmlns", "slot"]), un = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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"]), Cs = Ee(["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"]), Rt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Hr = Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), $r = Ie(/<%[\w\W]*|[\w\W]*%>/gm), Ur = Ie(/\${[\w\W]*}/gm), zr = Ie(/^data-[\-\w.\u00B7-\uFFFF]/), Fr = Ie(/^aria-[\-\w]+$/), xa = Ie(
|
|
433
438
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
434
439
|
// eslint-disable-line no-useless-escape
|
|
435
|
-
),
|
|
440
|
+
), Wr = Ie(/^(?:\w+script|data):/i), jr = Ie(
|
|
436
441
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
437
442
|
// eslint-disable-line no-control-regex
|
|
438
443
|
), Ta = Ie(/^html$/i);
|
|
439
|
-
var
|
|
444
|
+
var _s = /* @__PURE__ */ Object.freeze({
|
|
440
445
|
__proto__: null,
|
|
441
|
-
MUSTACHE_EXPR:
|
|
442
|
-
ERB_EXPR:
|
|
443
|
-
TMPLIT_EXPR:
|
|
444
|
-
DATA_ATTR:
|
|
445
|
-
ARIA_ATTR:
|
|
446
|
+
MUSTACHE_EXPR: Hr,
|
|
447
|
+
ERB_EXPR: $r,
|
|
448
|
+
TMPLIT_EXPR: Ur,
|
|
449
|
+
DATA_ATTR: zr,
|
|
450
|
+
ARIA_ATTR: Fr,
|
|
446
451
|
IS_ALLOWED_URI: xa,
|
|
447
|
-
IS_SCRIPT_OR_DATA:
|
|
448
|
-
ATTR_WHITESPACE:
|
|
452
|
+
IS_SCRIPT_OR_DATA: Wr,
|
|
453
|
+
ATTR_WHITESPACE: jr,
|
|
449
454
|
DOCTYPE_NAME: Ta
|
|
450
455
|
});
|
|
451
|
-
const
|
|
456
|
+
const Xr = function() {
|
|
452
457
|
return typeof window > "u" ? null : window;
|
|
453
|
-
},
|
|
458
|
+
}, Zr = function(e, t) {
|
|
454
459
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
455
460
|
return null;
|
|
456
461
|
let n = null;
|
|
@@ -471,9 +476,9 @@ const jr = function() {
|
|
|
471
476
|
}
|
|
472
477
|
};
|
|
473
478
|
function La() {
|
|
474
|
-
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
479
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xr();
|
|
475
480
|
const e = ($) => La($);
|
|
476
|
-
if (e.version = "3.0.
|
|
481
|
+
if (e.version = "3.0.8", e.removed = [], !o || !o.document || o.document.nodeType !== 9)
|
|
477
482
|
return e.isSupported = !1, e;
|
|
478
483
|
let {
|
|
479
484
|
document: t
|
|
@@ -488,7 +493,7 @@ function La() {
|
|
|
488
493
|
HTMLFormElement: p,
|
|
489
494
|
DOMParser: h,
|
|
490
495
|
trustedTypes: u
|
|
491
|
-
} = o, g = l.prototype, m =
|
|
496
|
+
} = o, g = l.prototype, m = kt(g, "cloneNode"), E = kt(g, "nextSibling"), v = kt(g, "childNodes"), O = kt(g, "parentNode");
|
|
492
497
|
if (typeof i == "function") {
|
|
493
498
|
const $ = t.createElement("template");
|
|
494
499
|
$.content && $.content.ownerDocument && (t = $.content.ownerDocument);
|
|
@@ -500,10 +505,10 @@ function La() {
|
|
|
500
505
|
createDocumentFragment: I,
|
|
501
506
|
getElementsByTagName: D
|
|
502
507
|
} = t, {
|
|
503
|
-
importNode:
|
|
508
|
+
importNode: X
|
|
504
509
|
} = n;
|
|
505
510
|
let N = {};
|
|
506
|
-
e.isSupported = typeof
|
|
511
|
+
e.isSupported = typeof Sa == "function" && typeof O == "function" && A && A.createHTMLDocument !== void 0;
|
|
507
512
|
const {
|
|
508
513
|
MUSTACHE_EXPR: _,
|
|
509
514
|
ERB_EXPR: w,
|
|
@@ -512,13 +517,13 @@ function La() {
|
|
|
512
517
|
ARIA_ATTR: Q,
|
|
513
518
|
IS_SCRIPT_OR_DATA: ve,
|
|
514
519
|
ATTR_WHITESPACE: K
|
|
515
|
-
} =
|
|
520
|
+
} = _s;
|
|
516
521
|
let {
|
|
517
522
|
IS_ALLOWED_URI: z
|
|
518
|
-
} =
|
|
519
|
-
const Ye =
|
|
523
|
+
} = _s, q = null;
|
|
524
|
+
const Ye = Z({}, [...As, ...cn, ...dn, ...hn, ...Ms]);
|
|
520
525
|
let se = null;
|
|
521
|
-
const Ge =
|
|
526
|
+
const Ge = Z({}, [...ws, ...un, ...Cs, ...Rt]);
|
|
522
527
|
let ne = Object.seal(Oa(null, {
|
|
523
528
|
tagNameCheck: {
|
|
524
529
|
writable: !0,
|
|
@@ -538,62 +543,58 @@ function La() {
|
|
|
538
543
|
enumerable: !0,
|
|
539
544
|
value: !1
|
|
540
545
|
}
|
|
541
|
-
})), H = null, J = null, ae = !0, ie = !0, ge = !1, $e = !0, C = !1, R = !1, P = !1, Ce = !1, qe = !1, xt = !1, Tt = !1,
|
|
546
|
+
})), H = null, J = null, ae = !0, ie = !0, ge = !1, $e = !0, C = !1, R = !1, P = !1, Ce = !1, qe = !1, xt = !1, Tt = !1, jn = !0, Xn = !1;
|
|
542
547
|
const Ia = "user-content-";
|
|
543
|
-
let
|
|
544
|
-
const
|
|
545
|
-
let
|
|
546
|
-
const
|
|
547
|
-
let
|
|
548
|
-
const
|
|
549
|
-
let Qe = Re,
|
|
550
|
-
const ka =
|
|
551
|
-
let
|
|
548
|
+
let Xt = !0, ut = !1, Ke = {}, Je = null;
|
|
549
|
+
const Zn = Z({}, ["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"]);
|
|
550
|
+
let Yn = null;
|
|
551
|
+
const qn = Z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
552
|
+
let Zt = null;
|
|
553
|
+
const Kn = Z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lt = "http://www.w3.org/1998/Math/MathML", At = "http://www.w3.org/2000/svg", Re = "http://www.w3.org/1999/xhtml";
|
|
554
|
+
let Qe = Re, Yt = !1, qt = null;
|
|
555
|
+
const ka = Z({}, [Lt, At, Re], ln);
|
|
556
|
+
let pt = null;
|
|
552
557
|
const Ra = ["application/xhtml+xml", "text/html"], Da = "text/html";
|
|
553
558
|
let le = null, et = null;
|
|
554
|
-
const Na = t.createElement("form"),
|
|
559
|
+
const Na = t.createElement("form"), Jn = function(b) {
|
|
555
560
|
return b instanceof RegExp || b instanceof Function;
|
|
556
|
-
},
|
|
561
|
+
}, Kt = function() {
|
|
557
562
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
558
563
|
if (!(et && et === b)) {
|
|
559
|
-
if ((!b || typeof b != "object") && (b = {}), b =
|
|
560
|
-
Ra.indexOf(b.PARSER_MEDIA_TYPE) === -1 ?
|
|
561
|
-
|
|
564
|
+
if ((!b || typeof b != "object") && (b = {}), b = Xe(b), pt = // eslint-disable-next-line unicorn/prefer-includes
|
|
565
|
+
Ra.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Da : b.PARSER_MEDIA_TYPE, le = pt === "application/xhtml+xml" ? ln : Nt, q = "ALLOWED_TAGS" in b ? Z({}, b.ALLOWED_TAGS, le) : Ye, se = "ALLOWED_ATTR" in b ? Z({}, b.ALLOWED_ATTR, le) : Ge, qt = "ALLOWED_NAMESPACES" in b ? Z({}, b.ALLOWED_NAMESPACES, ln) : ka, Zt = "ADD_URI_SAFE_ATTR" in b ? Z(
|
|
566
|
+
Xe(Kn),
|
|
562
567
|
// eslint-disable-line indent
|
|
563
568
|
b.ADD_URI_SAFE_ATTR,
|
|
564
569
|
// eslint-disable-line indent
|
|
565
570
|
le
|
|
566
571
|
// eslint-disable-line indent
|
|
567
|
-
) :
|
|
568
|
-
|
|
572
|
+
) : Kn, Yn = "ADD_DATA_URI_TAGS" in b ? Z(
|
|
573
|
+
Xe(qn),
|
|
569
574
|
// eslint-disable-line indent
|
|
570
575
|
b.ADD_DATA_URI_TAGS,
|
|
571
576
|
// eslint-disable-line indent
|
|
572
577
|
le
|
|
573
578
|
// eslint-disable-line indent
|
|
574
|
-
) :
|
|
579
|
+
) : qn, Je = "FORBID_CONTENTS" in b ? Z({}, b.FORBID_CONTENTS, le) : Zn, H = "FORBID_TAGS" in b ? Z({}, b.FORBID_TAGS, le) : {}, J = "FORBID_ATTR" in b ? Z({}, b.FORBID_ATTR, le) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, ae = b.ALLOW_ARIA_ATTR !== !1, ie = b.ALLOW_DATA_ATTR !== !1, ge = b.ALLOW_UNKNOWN_PROTOCOLS || !1, $e = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, C = b.SAFE_FOR_TEMPLATES || !1, R = b.WHOLE_DOCUMENT || !1, qe = b.RETURN_DOM || !1, xt = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, Ce = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, ut = b.IN_PLACE || !1, z = b.ALLOWED_URI_REGEXP || xa, Qe = b.NAMESPACE || Re, ne = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), C && (ie = !1), xt && (qe = !0), Ke && (q = Z({}, Ms), se = [], Ke.html === !0 && (Z(q, As), Z(se, ws)), Ke.svg === !0 && (Z(q, cn), Z(se, un), Z(se, Rt)), Ke.svgFilters === !0 && (Z(q, dn), Z(se, un), Z(se, Rt)), Ke.mathMl === !0 && (Z(q, hn), Z(se, Cs), Z(se, Rt))), b.ADD_TAGS && (q === Ye && (q = Xe(q)), Z(q, b.ADD_TAGS, le)), b.ADD_ATTR && (se === Ge && (se = Xe(se)), Z(se, b.ADD_ATTR, le)), b.ADD_URI_SAFE_ATTR && Z(Zt, b.ADD_URI_SAFE_ATTR, le), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Z(Je, b.FORBID_CONTENTS, le)), Xt && (q["#text"] = !0), R && Z(q, ["html", "head", "body"]), q.table && (Z(q, ["tbody"]), delete H.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
575
580
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
576
581
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
577
582
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
578
583
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
579
584
|
T = b.TRUSTED_TYPES_POLICY, M = T.createHTML("");
|
|
580
585
|
} else
|
|
581
|
-
T === void 0 && (T =
|
|
586
|
+
T === void 0 && (T = Zr(u, s)), T !== null && typeof M == "string" && (M = T.createHTML(""));
|
|
582
587
|
Ee && Ee(b), et = b;
|
|
583
588
|
}
|
|
584
|
-
},
|
|
585
|
-
X(Mt, un), X(Mt, Vr);
|
|
586
|
-
const Qt = X({}, pn);
|
|
587
|
-
X(Qt, Br);
|
|
588
|
-
const Va = function(b) {
|
|
589
|
+
}, Qn = Z({}, ["mi", "mo", "mn", "ms", "mtext"]), es = Z({}, ["foreignobject", "desc", "title", "annotation-xml"]), Pa = Z({}, ["title", "style", "font", "a", "script"]), ts = Z({}, [...cn, ...dn, ...Br]), ns = Z({}, [...hn, ...Gr]), Va = function(b) {
|
|
589
590
|
let k = O(b);
|
|
590
591
|
(!k || !k.tagName) && (k = {
|
|
591
592
|
namespaceURI: Qe,
|
|
592
593
|
tagName: "template"
|
|
593
594
|
});
|
|
594
|
-
const G =
|
|
595
|
-
return
|
|
596
|
-
},
|
|
595
|
+
const G = Nt(b.tagName), ee = Nt(k.tagName);
|
|
596
|
+
return qt[b.namespaceURI] ? b.namespaceURI === At ? k.namespaceURI === Re ? G === "svg" : k.namespaceURI === Lt ? G === "svg" && (ee === "annotation-xml" || Qn[ee]) : !!ts[G] : b.namespaceURI === Lt ? k.namespaceURI === Re ? G === "math" : k.namespaceURI === At ? G === "math" && es[ee] : !!ns[G] : b.namespaceURI === Re ? k.namespaceURI === At && !es[ee] || k.namespaceURI === Lt && !Qn[ee] ? !1 : !ns[G] && (Pa[G] || !ts[G]) : !!(pt === "application/xhtml+xml" && qt[b.namespaceURI]) : !1;
|
|
597
|
+
}, Ue = function(b) {
|
|
597
598
|
ft(e.removed, {
|
|
598
599
|
element: b
|
|
599
600
|
});
|
|
@@ -602,7 +603,7 @@ function La() {
|
|
|
602
603
|
} catch {
|
|
603
604
|
b.remove();
|
|
604
605
|
}
|
|
605
|
-
},
|
|
606
|
+
}, Jt = function(b, k) {
|
|
606
607
|
try {
|
|
607
608
|
ft(e.removed, {
|
|
608
609
|
attribute: k.getAttributeNode(b),
|
|
@@ -617,7 +618,7 @@ function La() {
|
|
|
617
618
|
if (k.removeAttribute(b), b === "is" && !se[b])
|
|
618
619
|
if (qe || xt)
|
|
619
620
|
try {
|
|
620
|
-
|
|
621
|
+
Ue(k);
|
|
621
622
|
} catch {
|
|
622
623
|
}
|
|
623
624
|
else
|
|
@@ -625,7 +626,7 @@ function La() {
|
|
|
625
626
|
k.setAttribute(b, "");
|
|
626
627
|
} catch {
|
|
627
628
|
}
|
|
628
|
-
},
|
|
629
|
+
}, ss = function(b) {
|
|
629
630
|
let k = null, G = null;
|
|
630
631
|
if (Ce)
|
|
631
632
|
b = "<remove></remove>" + b;
|
|
@@ -633,23 +634,23 @@ function La() {
|
|
|
633
634
|
const fe = Rr(b, /^[\r\n\t ]+/);
|
|
634
635
|
G = fe && fe[0];
|
|
635
636
|
}
|
|
636
|
-
|
|
637
|
+
pt === "application/xhtml+xml" && Qe === Re && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
637
638
|
const ee = T ? T.createHTML(b) : b;
|
|
638
639
|
if (Qe === Re)
|
|
639
640
|
try {
|
|
640
|
-
k = new h().parseFromString(ee,
|
|
641
|
+
k = new h().parseFromString(ee, pt);
|
|
641
642
|
} catch {
|
|
642
643
|
}
|
|
643
644
|
if (!k || !k.documentElement) {
|
|
644
645
|
k = A.createDocument(Qe, "template", null);
|
|
645
646
|
try {
|
|
646
|
-
k.documentElement.innerHTML =
|
|
647
|
+
k.documentElement.innerHTML = Yt ? M : ee;
|
|
647
648
|
} catch {
|
|
648
649
|
}
|
|
649
650
|
}
|
|
650
651
|
const me = k.body || k.documentElement;
|
|
651
652
|
return b && G && me.insertBefore(t.createTextNode(G), me.childNodes[0] || null), Qe === Re ? D.call(k, R ? "html" : "body")[0] : R ? k.documentElement : me;
|
|
652
|
-
},
|
|
653
|
+
}, as = function(b) {
|
|
653
654
|
return L.call(
|
|
654
655
|
b.ownerDocument || b,
|
|
655
656
|
b,
|
|
@@ -659,26 +660,26 @@ function La() {
|
|
|
659
660
|
);
|
|
660
661
|
}, Ba = function(b) {
|
|
661
662
|
return b instanceof p && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof d) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
|
|
662
|
-
},
|
|
663
|
+
}, is = function(b) {
|
|
663
664
|
return typeof r == "function" && b instanceof r;
|
|
664
665
|
}, De = function(b, k, G) {
|
|
665
|
-
N[b] &&
|
|
666
|
+
N[b] && It(N[b], (ee) => {
|
|
666
667
|
ee.call(e, k, G, et);
|
|
667
668
|
});
|
|
668
|
-
},
|
|
669
|
+
}, rs = function(b) {
|
|
669
670
|
let k = null;
|
|
670
671
|
if (De("beforeSanitizeElements", b, null), Ba(b))
|
|
671
|
-
return
|
|
672
|
+
return Ue(b), !0;
|
|
672
673
|
const G = le(b.nodeName);
|
|
673
674
|
if (De("uponSanitizeElement", b, {
|
|
674
675
|
tagName: G,
|
|
675
676
|
allowedTags: q
|
|
676
|
-
}), b.hasChildNodes() && !
|
|
677
|
-
return
|
|
677
|
+
}), b.hasChildNodes() && !is(b.firstElementChild) && Oe(/<[/\w]/g, b.innerHTML) && Oe(/<[/\w]/g, b.textContent))
|
|
678
|
+
return Ue(b), !0;
|
|
678
679
|
if (!q[G] || H[G]) {
|
|
679
|
-
if (!H[G] &&
|
|
680
|
+
if (!H[G] && ls(G) && (ne.tagNameCheck instanceof RegExp && Oe(ne.tagNameCheck, G) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(G)))
|
|
680
681
|
return !1;
|
|
681
|
-
if (
|
|
682
|
+
if (Xt && !Je[G]) {
|
|
682
683
|
const ee = O(b) || b.parentNode, me = v(b) || b.childNodes;
|
|
683
684
|
if (me && ee) {
|
|
684
685
|
const fe = me.length;
|
|
@@ -686,15 +687,15 @@ function La() {
|
|
|
686
687
|
ee.insertBefore(m(me[be], !0), E(b));
|
|
687
688
|
}
|
|
688
689
|
}
|
|
689
|
-
return
|
|
690
|
+
return Ue(b), !0;
|
|
690
691
|
}
|
|
691
|
-
return b instanceof l && !Va(b) || (G === "noscript" || G === "noembed" || G === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (
|
|
692
|
+
return b instanceof l && !Va(b) || (G === "noscript" || G === "noembed" || G === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (C && b.nodeType === 3 && (k = b.textContent, It([_, w, U], (ee) => {
|
|
692
693
|
k = vt(k, ee, " ");
|
|
693
694
|
}), b.textContent !== k && (ft(e.removed, {
|
|
694
695
|
element: b.cloneNode()
|
|
695
696
|
}), b.textContent = k)), De("afterSanitizeElements", b, null), !1);
|
|
696
|
-
},
|
|
697
|
-
if (
|
|
697
|
+
}, os = function(b, k, G) {
|
|
698
|
+
if (jn && (k === "id" || k === "name") && (G in t || G in Na))
|
|
698
699
|
return !1;
|
|
699
700
|
if (!(ie && !J[k] && Oe(V, k))) {
|
|
700
701
|
if (!(ae && Oe(Q, k))) {
|
|
@@ -703,14 +704,14 @@ function La() {
|
|
|
703
704
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
704
705
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
705
706
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
706
|
-
!(
|
|
707
|
+
!(ls(b) && (ne.tagNameCheck instanceof RegExp && Oe(ne.tagNameCheck, b) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(b)) && (ne.attributeNameCheck instanceof RegExp && Oe(ne.attributeNameCheck, k) || ne.attributeNameCheck instanceof Function && ne.attributeNameCheck(k)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
707
708
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
708
709
|
k === "is" && ne.allowCustomizedBuiltInElements && (ne.tagNameCheck instanceof RegExp && Oe(ne.tagNameCheck, G) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(G)))
|
|
709
710
|
)
|
|
710
711
|
return !1;
|
|
711
|
-
} else if (!
|
|
712
|
+
} else if (!Zt[k]) {
|
|
712
713
|
if (!Oe(z, vt(G, K, ""))) {
|
|
713
|
-
if (!((k === "src" || k === "xlink:href" || k === "href") && b !== "script" && Dr(G, "data:") === 0 &&
|
|
714
|
+
if (!((k === "src" || k === "xlink:href" || k === "href") && b !== "script" && Dr(G, "data:") === 0 && Yn[b])) {
|
|
714
715
|
if (!(ge && !Oe(ve, vt(G, K, "")))) {
|
|
715
716
|
if (G)
|
|
716
717
|
return !1;
|
|
@@ -721,9 +722,9 @@ function La() {
|
|
|
721
722
|
}
|
|
722
723
|
}
|
|
723
724
|
return !0;
|
|
724
|
-
}, os = function(b) {
|
|
725
|
-
return b.indexOf("-") > 0;
|
|
726
725
|
}, ls = function(b) {
|
|
726
|
+
return b.indexOf("-") > 0;
|
|
727
|
+
}, cs = function(b) {
|
|
727
728
|
De("beforeSanitizeAttributes", b, null);
|
|
728
729
|
const {
|
|
729
730
|
attributes: k
|
|
@@ -741,22 +742,22 @@ function La() {
|
|
|
741
742
|
const me = k[ee], {
|
|
742
743
|
name: fe,
|
|
743
744
|
namespaceURI: be,
|
|
744
|
-
value:
|
|
745
|
+
value: ze
|
|
745
746
|
} = me, gt = le(fe);
|
|
746
|
-
let Se = fe === "value" ?
|
|
747
|
-
if (G.attrName = gt, G.attrValue = Se, G.keepAttr = !0, G.forceKeepAttr = void 0, De("uponSanitizeAttribute", b, G), Se = G.attrValue, G.forceKeepAttr || (
|
|
747
|
+
let Se = fe === "value" ? ze : Nr(ze);
|
|
748
|
+
if (G.attrName = gt, G.attrValue = Se, G.keepAttr = !0, G.forceKeepAttr = void 0, De("uponSanitizeAttribute", b, G), Se = G.attrValue, G.forceKeepAttr || (Jt(fe, b), !G.keepAttr))
|
|
748
749
|
continue;
|
|
749
750
|
if (!$e && Oe(/\/>/i, Se)) {
|
|
750
|
-
|
|
751
|
+
Jt(fe, b);
|
|
751
752
|
continue;
|
|
752
753
|
}
|
|
753
|
-
C &&
|
|
754
|
-
Se = vt(Se,
|
|
754
|
+
C && It([_, w, U], (hs) => {
|
|
755
|
+
Se = vt(Se, hs, " ");
|
|
755
756
|
});
|
|
756
|
-
const
|
|
757
|
-
if (
|
|
758
|
-
if (
|
|
759
|
-
switch (u.getAttributeType(
|
|
757
|
+
const ds = le(b.nodeName);
|
|
758
|
+
if (os(ds, gt, Se)) {
|
|
759
|
+
if (Xn && (gt === "id" || gt === "name") && (Jt(fe, b), Se = Ia + Se), T && typeof u == "object" && typeof u.getAttributeType == "function" && !be)
|
|
760
|
+
switch (u.getAttributeType(ds, gt)) {
|
|
760
761
|
case "TrustedHTML": {
|
|
761
762
|
Se = T.createHTML(Se);
|
|
762
763
|
break;
|
|
@@ -767,7 +768,7 @@ function La() {
|
|
|
767
768
|
}
|
|
768
769
|
}
|
|
769
770
|
try {
|
|
770
|
-
be ? b.setAttributeNS(be, fe, Se) : b.setAttribute(fe, Se),
|
|
771
|
+
be ? b.setAttributeNS(be, fe, Se) : b.setAttribute(fe, Se), Ls(e.removed);
|
|
771
772
|
} catch {
|
|
772
773
|
}
|
|
773
774
|
}
|
|
@@ -775,14 +776,14 @@ function La() {
|
|
|
775
776
|
De("afterSanitizeAttributes", b, null);
|
|
776
777
|
}, Ga = function $(b) {
|
|
777
778
|
let k = null;
|
|
778
|
-
const G =
|
|
779
|
+
const G = as(b);
|
|
779
780
|
for (De("beforeSanitizeShadowDOM", b, null); k = G.nextNode(); )
|
|
780
|
-
De("uponSanitizeShadowNode", k, null), !
|
|
781
|
+
De("uponSanitizeShadowNode", k, null), !rs(k) && (k.content instanceof a && $(k.content), cs(k));
|
|
781
782
|
De("afterSanitizeShadowDOM", b, null);
|
|
782
783
|
};
|
|
783
784
|
return e.sanitize = function($) {
|
|
784
785
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, G = null, ee = null, me = null;
|
|
785
|
-
if (
|
|
786
|
+
if (Yt = !$, Yt && ($ = "<!-->"), typeof $ != "string" && !is($))
|
|
786
787
|
if (typeof $.toString == "function") {
|
|
787
788
|
if ($ = $.toString(), typeof $ != "string")
|
|
788
789
|
throw yt("dirty is not a string, aborting");
|
|
@@ -790,26 +791,26 @@ function La() {
|
|
|
790
791
|
throw yt("toString is not a function");
|
|
791
792
|
if (!e.isSupported)
|
|
792
793
|
return $;
|
|
793
|
-
if (P ||
|
|
794
|
+
if (P || Kt(b), e.removed = [], typeof $ == "string" && (ut = !1), ut) {
|
|
794
795
|
if ($.nodeName) {
|
|
795
|
-
const
|
|
796
|
-
if (!q[
|
|
796
|
+
const ze = le($.nodeName);
|
|
797
|
+
if (!q[ze] || H[ze])
|
|
797
798
|
throw yt("root node is forbidden and cannot be sanitized in-place");
|
|
798
799
|
}
|
|
799
800
|
} else if ($ instanceof r)
|
|
800
|
-
k =
|
|
801
|
+
k = ss("<!---->"), G = k.ownerDocument.importNode($, !0), G.nodeType === 1 && G.nodeName === "BODY" || G.nodeName === "HTML" ? k = G : k.appendChild(G);
|
|
801
802
|
else {
|
|
802
803
|
if (!qe && !C && !R && // eslint-disable-next-line unicorn/prefer-includes
|
|
803
804
|
$.indexOf("<") === -1)
|
|
804
805
|
return T && Tt ? T.createHTML($) : $;
|
|
805
|
-
if (k =
|
|
806
|
+
if (k = ss($), !k)
|
|
806
807
|
return qe ? null : Tt ? M : "";
|
|
807
808
|
}
|
|
808
|
-
k && Ce &&
|
|
809
|
-
const fe =
|
|
809
|
+
k && Ce && Ue(k.firstChild);
|
|
810
|
+
const fe = as(ut ? $ : k);
|
|
810
811
|
for (; ee = fe.nextNode(); )
|
|
811
|
-
|
|
812
|
-
if (
|
|
812
|
+
rs(ee) || (ee.content instanceof a && Ga(ee.content), cs(ee));
|
|
813
|
+
if (ut)
|
|
813
814
|
return $;
|
|
814
815
|
if (qe) {
|
|
815
816
|
if (xt)
|
|
@@ -817,48 +818,48 @@ function La() {
|
|
|
817
818
|
me.appendChild(k.firstChild);
|
|
818
819
|
else
|
|
819
820
|
me = k;
|
|
820
|
-
return (se.shadowroot || se.shadowrootmode) && (me =
|
|
821
|
+
return (se.shadowroot || se.shadowrootmode) && (me = X.call(n, me, !0)), me;
|
|
821
822
|
}
|
|
822
823
|
let be = R ? k.outerHTML : k.innerHTML;
|
|
823
824
|
return R && q["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && Oe(Ta, k.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + k.ownerDocument.doctype.name + `>
|
|
824
|
-
` + be), C &&
|
|
825
|
-
be = vt(be,
|
|
825
|
+
` + be), C && It([_, w, U], (ze) => {
|
|
826
|
+
be = vt(be, ze, " ");
|
|
826
827
|
}), T && Tt ? T.createHTML(be) : be;
|
|
827
828
|
}, e.setConfig = function() {
|
|
828
829
|
let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
829
|
-
|
|
830
|
+
Kt($), P = !0;
|
|
830
831
|
}, e.clearConfig = function() {
|
|
831
832
|
et = null, P = !1;
|
|
832
833
|
}, e.isValidAttribute = function($, b, k) {
|
|
833
|
-
et ||
|
|
834
|
+
et || Kt({});
|
|
834
835
|
const G = le($), ee = le(b);
|
|
835
|
-
return
|
|
836
|
+
return os(G, ee, k);
|
|
836
837
|
}, e.addHook = function($, b) {
|
|
837
838
|
typeof b == "function" && (N[$] = N[$] || [], ft(N[$], b));
|
|
838
839
|
}, e.removeHook = function($) {
|
|
839
840
|
if (N[$])
|
|
840
|
-
return
|
|
841
|
+
return Ls(N[$]);
|
|
841
842
|
}, e.removeHooks = function($) {
|
|
842
843
|
N[$] && (N[$] = []);
|
|
843
844
|
}, e.removeAllHooks = function() {
|
|
844
845
|
N = {};
|
|
845
846
|
}, e;
|
|
846
847
|
}
|
|
847
|
-
var
|
|
848
|
-
const
|
|
848
|
+
var Un = La();
|
|
849
|
+
const Dt = (o) => Un.sanitize(o, {
|
|
849
850
|
USE_PROFILES: {
|
|
850
851
|
html: !0,
|
|
851
852
|
svg: !0,
|
|
852
853
|
svgFilters: !0
|
|
853
854
|
}
|
|
854
|
-
}),
|
|
855
|
+
}), Yr = (o) => Un.sanitize(o, {
|
|
855
856
|
NAMESPACE: "http://www.w3.org/2000/svg",
|
|
856
857
|
USE_PROFILES: {
|
|
857
858
|
html: !0,
|
|
858
859
|
svg: !0,
|
|
859
860
|
svgFilters: !0
|
|
860
861
|
}
|
|
861
|
-
}), ke = (o) =>
|
|
862
|
+
}), ke = (o) => Un.sanitize(o, { ALLOWED_TAGS: [] }), Ut = class Ut extends Y {
|
|
862
863
|
constructor() {
|
|
863
864
|
super(...arguments), this.type = "toolbar", this.renderType = W.HTML;
|
|
864
865
|
}
|
|
@@ -894,7 +895,7 @@ const Nt = (o) => zn.sanitize(o, {
|
|
|
894
895
|
`control-${ke(c.id)}`
|
|
895
896
|
)}" aria-label="${ke(c.title)}">
|
|
896
897
|
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" class="cds--overflow-menu__icon cds--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">
|
|
897
|
-
${
|
|
898
|
+
${Yr(c.iconSVG.content)}
|
|
898
899
|
</svg>
|
|
899
900
|
</button>`).each(function(c, d) {
|
|
900
901
|
x(this).select("svg").style("will-change", "transform").style("width", c.iconSVG.width !== void 0 ? c.iconSVG.width : "20px").style("height", c.iconSVG.height !== void 0 ? c.iconSVG.height : "20px"), x(this).select("button").on("click", (p) => {
|
|
@@ -1022,7 +1023,7 @@ const Nt = (o) => zn.sanitize(o, {
|
|
|
1022
1023
|
const e = y(this.getOptions(), "toolbar", "numberOfIcons") - 1, t = y(this.getOptions(), "toolbar", "controls"), n = [], s = [], a = [];
|
|
1023
1024
|
return t.forEach((i) => {
|
|
1024
1025
|
let r = null;
|
|
1025
|
-
i.type === de.CUSTOM ? (y(i, "id") === null && (i.id = `toolbar-button-${
|
|
1026
|
+
i.type === de.CUSTOM ? (y(i, "id") === null && (i.id = `toolbar-button-${Ut.buttonID++}`), y(i, "shouldBeDisabled") === null && (i.shouldBeDisabled = () => !1), r = i) : r = this.getControlConfigByType(i.type), r && (r.text = i.text ? i.text : i.type, r.id.indexOf("toolbar-export") !== -1 ? n.push(r) : s.length < e ? y(r, "iconSVG", "content") === null ? a.push(r) : s.push(r) : a.push(r));
|
|
1026
1027
|
}), a.push(...n), a.length ? {
|
|
1027
1028
|
buttonList: s,
|
|
1028
1029
|
overflowMenuItemList: a
|
|
@@ -1178,11 +1179,11 @@ const Nt = (o) => zn.sanitize(o, {
|
|
|
1178
1179
|
}
|
|
1179
1180
|
}
|
|
1180
1181
|
};
|
|
1181
|
-
|
|
1182
|
-
let
|
|
1183
|
-
const
|
|
1182
|
+
Ut.buttonID = 0;
|
|
1183
|
+
let Is = Ut;
|
|
1184
|
+
const zt = class zt extends Y {
|
|
1184
1185
|
constructor(e, t, n, s) {
|
|
1185
|
-
super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID =
|
|
1186
|
+
super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = zt.instanceID++, this.init();
|
|
1186
1187
|
}
|
|
1187
1188
|
init() {
|
|
1188
1189
|
this.children.forEach((e) => {
|
|
@@ -1266,9 +1267,9 @@ const Ft = class Ft extends Y {
|
|
|
1266
1267
|
});
|
|
1267
1268
|
}
|
|
1268
1269
|
};
|
|
1269
|
-
|
|
1270
|
-
let
|
|
1271
|
-
class
|
|
1270
|
+
zt.instanceID = Math.floor(Math.random() * 99999999999);
|
|
1271
|
+
let ks = zt;
|
|
1272
|
+
class hh extends Y {
|
|
1272
1273
|
constructor() {
|
|
1273
1274
|
super(...arguments), this.type = "spacer";
|
|
1274
1275
|
}
|
|
@@ -1276,10 +1277,10 @@ class dh extends Y {
|
|
|
1276
1277
|
// @ts-ignore
|
|
1277
1278
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1278
1279
|
render(e = !1) {
|
|
1279
|
-
this.getComponentContainer().style("width", `${this.configs.size ||
|
|
1280
|
+
this.getComponentContainer().style("width", `${this.configs.size || us.default.size}px`).style("height", `${this.configs.size || us.default.size}px`).attr("opacity", 0);
|
|
1280
1281
|
}
|
|
1281
1282
|
}
|
|
1282
|
-
var
|
|
1283
|
+
var qr = {
|
|
1283
1284
|
prefix: "bx",
|
|
1284
1285
|
selectorTabbable: `
|
|
1285
1286
|
a[href], area[href], input:not([disabled]):not([tabindex='-1']),
|
|
@@ -1293,49 +1294,49 @@ var Yr = {
|
|
|
1293
1294
|
textarea:not([disabled]),
|
|
1294
1295
|
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
1295
1296
|
`
|
|
1296
|
-
},
|
|
1297
|
-
function
|
|
1297
|
+
}, pn = qr;
|
|
1298
|
+
function Rs(o, e) {
|
|
1298
1299
|
for (var t = 0; t < e.length; t++) {
|
|
1299
1300
|
var n = e[t];
|
|
1300
1301
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
1301
1302
|
}
|
|
1302
1303
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return e &&
|
|
1304
|
+
function Kr(o, e, t) {
|
|
1305
|
+
return e && Rs(o.prototype, e), t && Rs(o, t), Object.defineProperty(o, "prototype", {
|
|
1305
1306
|
writable: !1
|
|
1306
1307
|
}), o;
|
|
1307
1308
|
}
|
|
1308
|
-
function
|
|
1309
|
+
function Jr(o, e) {
|
|
1309
1310
|
if (!(o instanceof e))
|
|
1310
1311
|
throw new TypeError("Cannot call a class as a function");
|
|
1311
1312
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1313
|
+
function Qr(o) {
|
|
1314
|
+
return so(o) || no(o) || to(o) || eo();
|
|
1314
1315
|
}
|
|
1315
|
-
function
|
|
1316
|
+
function eo() {
|
|
1316
1317
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1317
1318
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1318
1319
|
}
|
|
1319
|
-
function
|
|
1320
|
+
function to(o, e) {
|
|
1320
1321
|
if (o) {
|
|
1321
1322
|
if (typeof o == "string")
|
|
1322
|
-
return
|
|
1323
|
+
return bn(o, e);
|
|
1323
1324
|
var t = Object.prototype.toString.call(o).slice(8, -1);
|
|
1324
1325
|
if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
|
|
1325
1326
|
return Array.from(o);
|
|
1326
1327
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
1327
|
-
return
|
|
1328
|
+
return bn(o, e);
|
|
1328
1329
|
}
|
|
1329
1330
|
}
|
|
1330
|
-
function
|
|
1331
|
+
function no(o) {
|
|
1331
1332
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
1332
1333
|
return Array.from(o);
|
|
1333
1334
|
}
|
|
1334
|
-
function
|
|
1335
|
+
function so(o) {
|
|
1335
1336
|
if (Array.isArray(o))
|
|
1336
|
-
return
|
|
1337
|
+
return bn(o);
|
|
1337
1338
|
}
|
|
1338
|
-
function
|
|
1339
|
+
function bn(o, e) {
|
|
1339
1340
|
(e == null || e > o.length) && (e = o.length);
|
|
1340
1341
|
for (var t = 0, n = new Array(e); t < e; t++)
|
|
1341
1342
|
n[t] = o[t];
|
|
@@ -1343,45 +1344,45 @@ function On(o, e) {
|
|
|
1343
1344
|
}
|
|
1344
1345
|
function Aa(o) {
|
|
1345
1346
|
return o.reduce(function(e, t) {
|
|
1346
|
-
return Array.isArray(t) ? e.push.apply(e,
|
|
1347
|
+
return Array.isArray(t) ? e.push.apply(e, Qr(Aa(t))) : e.push(t), e;
|
|
1347
1348
|
}, []);
|
|
1348
1349
|
}
|
|
1349
|
-
function
|
|
1350
|
+
function ao() {
|
|
1350
1351
|
for (var o = arguments.length, e = new Array(o), t = 0; t < o; t++)
|
|
1351
1352
|
e[t] = arguments[t];
|
|
1352
1353
|
return Aa(e).reduce(function(n, s) {
|
|
1353
1354
|
return s(n);
|
|
1354
1355
|
}, /* @__PURE__ */ function() {
|
|
1355
1356
|
function n() {
|
|
1356
|
-
|
|
1357
|
+
Jr(this, n);
|
|
1357
1358
|
}
|
|
1358
|
-
return
|
|
1359
|
+
return Kr(n);
|
|
1359
1360
|
}());
|
|
1360
1361
|
}
|
|
1361
|
-
function
|
|
1362
|
+
function Sn(o) {
|
|
1362
1363
|
"@babel/helpers - typeof";
|
|
1363
|
-
return
|
|
1364
|
+
return Sn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1364
1365
|
return typeof e;
|
|
1365
1366
|
} : function(e) {
|
|
1366
1367
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1367
|
-
},
|
|
1368
|
+
}, Sn(o);
|
|
1368
1369
|
}
|
|
1369
|
-
function
|
|
1370
|
+
function io(o, e) {
|
|
1370
1371
|
if (!(o instanceof e))
|
|
1371
1372
|
throw new TypeError("Cannot call a class as a function");
|
|
1372
1373
|
}
|
|
1373
|
-
function
|
|
1374
|
+
function Ds(o, e) {
|
|
1374
1375
|
for (var t = 0; t < e.length; t++) {
|
|
1375
1376
|
var n = e[t];
|
|
1376
1377
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
1377
1378
|
}
|
|
1378
1379
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return e &&
|
|
1380
|
+
function ro(o, e, t) {
|
|
1381
|
+
return e && Ds(o.prototype, e), t && Ds(o, t), Object.defineProperty(o, "prototype", {
|
|
1381
1382
|
writable: !1
|
|
1382
1383
|
}), o;
|
|
1383
1384
|
}
|
|
1384
|
-
function
|
|
1385
|
+
function oo(o, e) {
|
|
1385
1386
|
if (typeof e != "function" && e !== null)
|
|
1386
1387
|
throw new TypeError("Super expression must either be null or a function");
|
|
1387
1388
|
o.prototype = Object.create(e && e.prototype, {
|
|
@@ -1392,27 +1393,27 @@ function ro(o, e) {
|
|
|
1392
1393
|
}
|
|
1393
1394
|
}), Object.defineProperty(o, "prototype", {
|
|
1394
1395
|
writable: !1
|
|
1395
|
-
}), e &&
|
|
1396
|
+
}), e && On(o, e);
|
|
1396
1397
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1398
|
+
function On(o, e) {
|
|
1399
|
+
return On = Object.setPrototypeOf || function(n, s) {
|
|
1399
1400
|
return n.__proto__ = s, n;
|
|
1400
|
-
},
|
|
1401
|
+
}, On(o, e);
|
|
1401
1402
|
}
|
|
1402
|
-
function
|
|
1403
|
-
var e =
|
|
1403
|
+
function lo(o) {
|
|
1404
|
+
var e = ho();
|
|
1404
1405
|
return function() {
|
|
1405
|
-
var n =
|
|
1406
|
+
var n = Vt(o), s;
|
|
1406
1407
|
if (e) {
|
|
1407
|
-
var a =
|
|
1408
|
+
var a = Vt(this).constructor;
|
|
1408
1409
|
s = Reflect.construct(n, arguments, a);
|
|
1409
1410
|
} else
|
|
1410
1411
|
s = n.apply(this, arguments);
|
|
1411
|
-
return
|
|
1412
|
+
return co(this, s);
|
|
1412
1413
|
};
|
|
1413
1414
|
}
|
|
1414
|
-
function
|
|
1415
|
-
if (e && (
|
|
1415
|
+
function co(o, e) {
|
|
1416
|
+
if (e && (Sn(e) === "object" || typeof e == "function"))
|
|
1416
1417
|
return e;
|
|
1417
1418
|
if (e !== void 0)
|
|
1418
1419
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1423,7 +1424,7 @@ function Ma(o) {
|
|
|
1423
1424
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1424
1425
|
return o;
|
|
1425
1426
|
}
|
|
1426
|
-
function
|
|
1427
|
+
function ho() {
|
|
1427
1428
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1428
1429
|
return !1;
|
|
1429
1430
|
if (typeof Proxy == "function")
|
|
@@ -1435,22 +1436,22 @@ function co() {
|
|
|
1435
1436
|
return !1;
|
|
1436
1437
|
}
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
-
return
|
|
1439
|
+
function Vt(o) {
|
|
1440
|
+
return Vt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1440
1441
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1441
|
-
},
|
|
1442
|
+
}, Vt(o);
|
|
1442
1443
|
}
|
|
1443
|
-
function
|
|
1444
|
+
function uo(o) {
|
|
1444
1445
|
var e = /* @__PURE__ */ function(t) {
|
|
1445
|
-
|
|
1446
|
-
var n =
|
|
1446
|
+
oo(s, t);
|
|
1447
|
+
var n = lo(s);
|
|
1447
1448
|
function s(a) {
|
|
1448
1449
|
var i, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1449
|
-
if (
|
|
1450
|
+
if (io(this, s), i = n.call(this, a, r), i.children = [], !a || a.nodeType !== Node.ELEMENT_NODE)
|
|
1450
1451
|
throw new TypeError("DOM element should be given to initialize this widget.");
|
|
1451
1452
|
return i.element = a, i.options = Object.assign(Object.create(i.constructor.options), r), i.constructor.components.set(i.element, Ma(i)), i;
|
|
1452
1453
|
}
|
|
1453
|
-
return
|
|
1454
|
+
return ro(s, [{
|
|
1454
1455
|
key: "release",
|
|
1455
1456
|
value: (
|
|
1456
1457
|
/**
|
|
@@ -1471,44 +1472,44 @@ function ho(o) {
|
|
|
1471
1472
|
}(o);
|
|
1472
1473
|
return e;
|
|
1473
1474
|
}
|
|
1474
|
-
function
|
|
1475
|
+
function xn(o) {
|
|
1475
1476
|
"@babel/helpers - typeof";
|
|
1476
|
-
return
|
|
1477
|
+
return xn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1477
1478
|
return typeof e;
|
|
1478
1479
|
} : function(e) {
|
|
1479
1480
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1480
|
-
},
|
|
1481
|
+
}, xn(o);
|
|
1481
1482
|
}
|
|
1482
|
-
function
|
|
1483
|
+
function po(o, e) {
|
|
1483
1484
|
if (!(o instanceof e))
|
|
1484
1485
|
throw new TypeError("Cannot call a class as a function");
|
|
1485
1486
|
}
|
|
1486
|
-
function
|
|
1487
|
+
function Ns(o, e) {
|
|
1487
1488
|
for (var t = 0; t < e.length; t++) {
|
|
1488
1489
|
var n = e[t];
|
|
1489
1490
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
1490
1491
|
}
|
|
1491
1492
|
}
|
|
1492
|
-
function
|
|
1493
|
-
return e &&
|
|
1493
|
+
function go(o, e, t) {
|
|
1494
|
+
return e && Ns(o.prototype, e), t && Ns(o, t), Object.defineProperty(o, "prototype", {
|
|
1494
1495
|
writable: !1
|
|
1495
1496
|
}), o;
|
|
1496
1497
|
}
|
|
1497
|
-
function
|
|
1498
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
1499
|
-
var s =
|
|
1498
|
+
function Pt() {
|
|
1499
|
+
return typeof Reflect < "u" && Reflect.get ? Pt = Reflect.get : Pt = function(e, t, n) {
|
|
1500
|
+
var s = mo(e, t);
|
|
1500
1501
|
if (s) {
|
|
1501
1502
|
var a = Object.getOwnPropertyDescriptor(s, t);
|
|
1502
1503
|
return a.get ? a.get.call(arguments.length < 3 ? e : n) : a.value;
|
|
1503
1504
|
}
|
|
1504
|
-
},
|
|
1505
|
+
}, Pt.apply(this, arguments);
|
|
1505
1506
|
}
|
|
1506
|
-
function
|
|
1507
|
-
for (; !Object.prototype.hasOwnProperty.call(o, e) && (o =
|
|
1507
|
+
function mo(o, e) {
|
|
1508
|
+
for (; !Object.prototype.hasOwnProperty.call(o, e) && (o = ht(o), o !== null); )
|
|
1508
1509
|
;
|
|
1509
1510
|
return o;
|
|
1510
1511
|
}
|
|
1511
|
-
function
|
|
1512
|
+
function fo(o, e) {
|
|
1512
1513
|
if (typeof e != "function" && e !== null)
|
|
1513
1514
|
throw new TypeError("Super expression must either be null or a function");
|
|
1514
1515
|
o.prototype = Object.create(e && e.prototype, {
|
|
@@ -1519,38 +1520,38 @@ function mo(o, e) {
|
|
|
1519
1520
|
}
|
|
1520
1521
|
}), Object.defineProperty(o, "prototype", {
|
|
1521
1522
|
writable: !1
|
|
1522
|
-
}), e &&
|
|
1523
|
+
}), e && Tn(o, e);
|
|
1523
1524
|
}
|
|
1524
|
-
function
|
|
1525
|
-
return
|
|
1525
|
+
function Tn(o, e) {
|
|
1526
|
+
return Tn = Object.setPrototypeOf || function(n, s) {
|
|
1526
1527
|
return n.__proto__ = s, n;
|
|
1527
|
-
},
|
|
1528
|
+
}, Tn(o, e);
|
|
1528
1529
|
}
|
|
1529
|
-
function
|
|
1530
|
-
var e =
|
|
1530
|
+
function vo(o) {
|
|
1531
|
+
var e = bo();
|
|
1531
1532
|
return function() {
|
|
1532
|
-
var n =
|
|
1533
|
+
var n = ht(o), s;
|
|
1533
1534
|
if (e) {
|
|
1534
|
-
var a =
|
|
1535
|
+
var a = ht(this).constructor;
|
|
1535
1536
|
s = Reflect.construct(n, arguments, a);
|
|
1536
1537
|
} else
|
|
1537
1538
|
s = n.apply(this, arguments);
|
|
1538
|
-
return
|
|
1539
|
+
return yo(this, s);
|
|
1539
1540
|
};
|
|
1540
1541
|
}
|
|
1541
|
-
function
|
|
1542
|
-
if (e && (
|
|
1542
|
+
function yo(o, e) {
|
|
1543
|
+
if (e && (xn(e) === "object" || typeof e == "function"))
|
|
1543
1544
|
return e;
|
|
1544
1545
|
if (e !== void 0)
|
|
1545
1546
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1546
|
-
return
|
|
1547
|
+
return Eo(o);
|
|
1547
1548
|
}
|
|
1548
|
-
function
|
|
1549
|
+
function Eo(o) {
|
|
1549
1550
|
if (o === void 0)
|
|
1550
1551
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1551
1552
|
return o;
|
|
1552
1553
|
}
|
|
1553
|
-
function
|
|
1554
|
+
function bo() {
|
|
1554
1555
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1555
1556
|
return !1;
|
|
1556
1557
|
if (typeof Proxy == "function")
|
|
@@ -1562,23 +1563,23 @@ function Eo() {
|
|
|
1562
1563
|
return !1;
|
|
1563
1564
|
}
|
|
1564
1565
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return
|
|
1566
|
+
function ht(o) {
|
|
1567
|
+
return ht = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1567
1568
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1568
|
-
},
|
|
1569
|
+
}, ht(o);
|
|
1569
1570
|
}
|
|
1570
|
-
function
|
|
1571
|
+
function So(o) {
|
|
1571
1572
|
var e = /* @__PURE__ */ function(t) {
|
|
1572
|
-
|
|
1573
|
-
var n =
|
|
1573
|
+
fo(s, t);
|
|
1574
|
+
var n = vo(s);
|
|
1574
1575
|
function s() {
|
|
1575
1576
|
var a;
|
|
1576
|
-
|
|
1577
|
+
po(this, s);
|
|
1577
1578
|
for (var i = arguments.length, r = new Array(i), l = 0; l < i; l++)
|
|
1578
1579
|
r[l] = arguments[l];
|
|
1579
1580
|
return a = n.call.apply(n, [this].concat(r)), a.handles = /* @__PURE__ */ new Set(), a;
|
|
1580
1581
|
}
|
|
1581
|
-
return
|
|
1582
|
+
return go(s, [{
|
|
1582
1583
|
key: "manage",
|
|
1583
1584
|
value: (
|
|
1584
1585
|
/**
|
|
@@ -1606,7 +1607,7 @@ function bo(o) {
|
|
|
1606
1607
|
var i = this;
|
|
1607
1608
|
return this.handles.forEach(function(r) {
|
|
1608
1609
|
r.release(), i.handles.delete(r);
|
|
1609
|
-
}),
|
|
1610
|
+
}), Pt(ht(s.prototype), "release", this).call(this);
|
|
1610
1611
|
}
|
|
1611
1612
|
}]), s;
|
|
1612
1613
|
}(o);
|
|
@@ -1621,62 +1622,62 @@ function bt(o) {
|
|
|
1621
1622
|
}
|
|
1622
1623
|
};
|
|
1623
1624
|
}
|
|
1624
|
-
function
|
|
1625
|
+
function Ln(o) {
|
|
1625
1626
|
"@babel/helpers - typeof";
|
|
1626
|
-
return
|
|
1627
|
+
return Ln = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1627
1628
|
return typeof e;
|
|
1628
1629
|
} : function(e) {
|
|
1629
1630
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1630
|
-
},
|
|
1631
|
+
}, Ln(o);
|
|
1631
1632
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return
|
|
1633
|
+
function Oo(o) {
|
|
1634
|
+
return Ao(o) || Lo(o) || To(o) || xo();
|
|
1634
1635
|
}
|
|
1635
|
-
function
|
|
1636
|
+
function xo() {
|
|
1636
1637
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1637
1638
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1638
1639
|
}
|
|
1639
|
-
function
|
|
1640
|
+
function To(o, e) {
|
|
1640
1641
|
if (o) {
|
|
1641
1642
|
if (typeof o == "string")
|
|
1642
|
-
return
|
|
1643
|
+
return An(o, e);
|
|
1643
1644
|
var t = Object.prototype.toString.call(o).slice(8, -1);
|
|
1644
1645
|
if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
|
|
1645
1646
|
return Array.from(o);
|
|
1646
1647
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
1647
|
-
return
|
|
1648
|
+
return An(o, e);
|
|
1648
1649
|
}
|
|
1649
1650
|
}
|
|
1650
|
-
function
|
|
1651
|
+
function Lo(o) {
|
|
1651
1652
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
1652
1653
|
return Array.from(o);
|
|
1653
1654
|
}
|
|
1654
|
-
function
|
|
1655
|
+
function Ao(o) {
|
|
1655
1656
|
if (Array.isArray(o))
|
|
1656
|
-
return
|
|
1657
|
+
return An(o);
|
|
1657
1658
|
}
|
|
1658
|
-
function
|
|
1659
|
+
function An(o, e) {
|
|
1659
1660
|
(e == null || e > o.length) && (e = o.length);
|
|
1660
1661
|
for (var t = 0, n = new Array(e); t < e; t++)
|
|
1661
1662
|
n[t] = o[t];
|
|
1662
1663
|
return n;
|
|
1663
1664
|
}
|
|
1664
|
-
function
|
|
1665
|
+
function Mo(o, e) {
|
|
1665
1666
|
if (!(o instanceof e))
|
|
1666
1667
|
throw new TypeError("Cannot call a class as a function");
|
|
1667
1668
|
}
|
|
1668
|
-
function
|
|
1669
|
+
function Ps(o, e) {
|
|
1669
1670
|
for (var t = 0; t < e.length; t++) {
|
|
1670
1671
|
var n = e[t];
|
|
1671
1672
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
1672
1673
|
}
|
|
1673
1674
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return e &&
|
|
1675
|
+
function wo(o, e, t) {
|
|
1676
|
+
return e && Ps(o.prototype, e), t && Ps(o, t), Object.defineProperty(o, "prototype", {
|
|
1676
1677
|
writable: !1
|
|
1677
1678
|
}), o;
|
|
1678
1679
|
}
|
|
1679
|
-
function
|
|
1680
|
+
function Co(o, e) {
|
|
1680
1681
|
if (typeof e != "function" && e !== null)
|
|
1681
1682
|
throw new TypeError("Super expression must either be null or a function");
|
|
1682
1683
|
o.prototype = Object.create(e && e.prototype, {
|
|
@@ -1687,38 +1688,38 @@ function wo(o, e) {
|
|
|
1687
1688
|
}
|
|
1688
1689
|
}), Object.defineProperty(o, "prototype", {
|
|
1689
1690
|
writable: !1
|
|
1690
|
-
}), e &&
|
|
1691
|
+
}), e && Mn(o, e);
|
|
1691
1692
|
}
|
|
1692
|
-
function
|
|
1693
|
-
return
|
|
1693
|
+
function Mn(o, e) {
|
|
1694
|
+
return Mn = Object.setPrototypeOf || function(n, s) {
|
|
1694
1695
|
return n.__proto__ = s, n;
|
|
1695
|
-
},
|
|
1696
|
+
}, Mn(o, e);
|
|
1696
1697
|
}
|
|
1697
|
-
function
|
|
1698
|
-
var e =
|
|
1698
|
+
function _o(o) {
|
|
1699
|
+
var e = Ro();
|
|
1699
1700
|
return function() {
|
|
1700
|
-
var n =
|
|
1701
|
+
var n = Bt(o), s;
|
|
1701
1702
|
if (e) {
|
|
1702
|
-
var a =
|
|
1703
|
+
var a = Bt(this).constructor;
|
|
1703
1704
|
s = Reflect.construct(n, arguments, a);
|
|
1704
1705
|
} else
|
|
1705
1706
|
s = n.apply(this, arguments);
|
|
1706
|
-
return
|
|
1707
|
+
return Io(this, s);
|
|
1707
1708
|
};
|
|
1708
1709
|
}
|
|
1709
|
-
function
|
|
1710
|
-
if (e && (
|
|
1710
|
+
function Io(o, e) {
|
|
1711
|
+
if (e && (Ln(e) === "object" || typeof e == "function"))
|
|
1711
1712
|
return e;
|
|
1712
1713
|
if (e !== void 0)
|
|
1713
1714
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1714
|
-
return
|
|
1715
|
+
return ko(o);
|
|
1715
1716
|
}
|
|
1716
|
-
function
|
|
1717
|
+
function ko(o) {
|
|
1717
1718
|
if (o === void 0)
|
|
1718
1719
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1719
1720
|
return o;
|
|
1720
1721
|
}
|
|
1721
|
-
function
|
|
1722
|
+
function Ro() {
|
|
1722
1723
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1723
1724
|
return !1;
|
|
1724
1725
|
if (typeof Proxy == "function")
|
|
@@ -1730,19 +1731,19 @@ function ko() {
|
|
|
1730
1731
|
return !1;
|
|
1731
1732
|
}
|
|
1732
1733
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return
|
|
1734
|
+
function Bt(o) {
|
|
1735
|
+
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1735
1736
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1736
|
-
},
|
|
1737
|
+
}, Bt(o);
|
|
1737
1738
|
}
|
|
1738
|
-
function
|
|
1739
|
+
function Do(o) {
|
|
1739
1740
|
var e = /* @__PURE__ */ function(t) {
|
|
1740
|
-
|
|
1741
|
-
var n =
|
|
1741
|
+
Co(s, t);
|
|
1742
|
+
var n = _o(s);
|
|
1742
1743
|
function s() {
|
|
1743
|
-
return
|
|
1744
|
+
return Mo(this, s), n.apply(this, arguments);
|
|
1744
1745
|
}
|
|
1745
|
-
return
|
|
1746
|
+
return wo(s, [{
|
|
1746
1747
|
key: "_changeState",
|
|
1747
1748
|
value: (
|
|
1748
1749
|
/* eslint-disable jsdoc/check-param-names */
|
|
@@ -1794,7 +1795,7 @@ function Ro(o) {
|
|
|
1794
1795
|
}
|
|
1795
1796
|
} else {
|
|
1796
1797
|
var T = [d, p].filter(Boolean);
|
|
1797
|
-
this._changeState.apply(this,
|
|
1798
|
+
this._changeState.apply(this, Oo(T).concat([function() {
|
|
1798
1799
|
E.dispatchEvent(new CustomEvent(i.options["eventAfter".concat(g)], {
|
|
1799
1800
|
bubbles: !0,
|
|
1800
1801
|
cancelable: !0,
|
|
@@ -1819,7 +1820,7 @@ function Ro(o) {
|
|
|
1819
1820
|
}(o);
|
|
1820
1821
|
return e;
|
|
1821
1822
|
}
|
|
1822
|
-
function
|
|
1823
|
+
function wn(o, e) {
|
|
1823
1824
|
var t = o.target, n = o.currentTarget;
|
|
1824
1825
|
if (typeof t.matches == "function") {
|
|
1825
1826
|
if (t.matches(e))
|
|
@@ -1831,7 +1832,7 @@ function _n(o, e) {
|
|
|
1831
1832
|
}
|
|
1832
1833
|
}
|
|
1833
1834
|
}
|
|
1834
|
-
function
|
|
1835
|
+
function Vs(o) {
|
|
1835
1836
|
if (!o || typeof o == "function")
|
|
1836
1837
|
return {
|
|
1837
1838
|
launchingElement: null,
|
|
@@ -1847,30 +1848,30 @@ function Ps(o) {
|
|
|
1847
1848
|
launchingEvent: t
|
|
1848
1849
|
};
|
|
1849
1850
|
}
|
|
1850
|
-
function
|
|
1851
|
+
function Cn(o) {
|
|
1851
1852
|
"@babel/helpers - typeof";
|
|
1852
|
-
return
|
|
1853
|
+
return Cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1853
1854
|
return typeof e;
|
|
1854
1855
|
} : function(e) {
|
|
1855
1856
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1856
|
-
},
|
|
1857
|
+
}, Cn(o);
|
|
1857
1858
|
}
|
|
1858
|
-
function
|
|
1859
|
+
function No(o, e) {
|
|
1859
1860
|
if (!(o instanceof e))
|
|
1860
1861
|
throw new TypeError("Cannot call a class as a function");
|
|
1861
1862
|
}
|
|
1862
|
-
function
|
|
1863
|
+
function Bs(o, e) {
|
|
1863
1864
|
for (var t = 0; t < e.length; t++) {
|
|
1864
1865
|
var n = e[t];
|
|
1865
1866
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
1866
1867
|
}
|
|
1867
1868
|
}
|
|
1868
|
-
function
|
|
1869
|
-
return e &&
|
|
1869
|
+
function Po(o, e, t) {
|
|
1870
|
+
return e && Bs(o.prototype, e), t && Bs(o, t), Object.defineProperty(o, "prototype", {
|
|
1870
1871
|
writable: !1
|
|
1871
1872
|
}), o;
|
|
1872
1873
|
}
|
|
1873
|
-
function
|
|
1874
|
+
function Vo(o, e) {
|
|
1874
1875
|
if (typeof e != "function" && e !== null)
|
|
1875
1876
|
throw new TypeError("Super expression must either be null or a function");
|
|
1876
1877
|
o.prototype = Object.create(e && e.prototype, {
|
|
@@ -1881,38 +1882,38 @@ function Po(o, e) {
|
|
|
1881
1882
|
}
|
|
1882
1883
|
}), Object.defineProperty(o, "prototype", {
|
|
1883
1884
|
writable: !1
|
|
1884
|
-
}), e &&
|
|
1885
|
+
}), e && _n(o, e);
|
|
1885
1886
|
}
|
|
1886
|
-
function
|
|
1887
|
-
return
|
|
1887
|
+
function _n(o, e) {
|
|
1888
|
+
return _n = Object.setPrototypeOf || function(n, s) {
|
|
1888
1889
|
return n.__proto__ = s, n;
|
|
1889
|
-
},
|
|
1890
|
+
}, _n(o, e);
|
|
1890
1891
|
}
|
|
1891
|
-
function
|
|
1892
|
-
var e =
|
|
1892
|
+
function Bo(o) {
|
|
1893
|
+
var e = $o();
|
|
1893
1894
|
return function() {
|
|
1894
|
-
var n =
|
|
1895
|
+
var n = Gt(o), s;
|
|
1895
1896
|
if (e) {
|
|
1896
|
-
var a =
|
|
1897
|
+
var a = Gt(this).constructor;
|
|
1897
1898
|
s = Reflect.construct(n, arguments, a);
|
|
1898
1899
|
} else
|
|
1899
1900
|
s = n.apply(this, arguments);
|
|
1900
|
-
return
|
|
1901
|
+
return Go(this, s);
|
|
1901
1902
|
};
|
|
1902
1903
|
}
|
|
1903
|
-
function
|
|
1904
|
-
if (e && (
|
|
1904
|
+
function Go(o, e) {
|
|
1905
|
+
if (e && (Cn(e) === "object" || typeof e == "function"))
|
|
1905
1906
|
return e;
|
|
1906
1907
|
if (e !== void 0)
|
|
1907
1908
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1908
|
-
return
|
|
1909
|
+
return Ho(o);
|
|
1909
1910
|
}
|
|
1910
|
-
function
|
|
1911
|
+
function Ho(o) {
|
|
1911
1912
|
if (o === void 0)
|
|
1912
1913
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1913
1914
|
return o;
|
|
1914
1915
|
}
|
|
1915
|
-
function
|
|
1916
|
+
function $o() {
|
|
1916
1917
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1917
1918
|
return !1;
|
|
1918
1919
|
if (typeof Proxy == "function")
|
|
@@ -1924,19 +1925,19 @@ function Ho() {
|
|
|
1924
1925
|
return !1;
|
|
1925
1926
|
}
|
|
1926
1927
|
}
|
|
1927
|
-
function
|
|
1928
|
-
return
|
|
1928
|
+
function Gt(o) {
|
|
1929
|
+
return Gt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1929
1930
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1930
|
-
},
|
|
1931
|
+
}, Gt(o);
|
|
1931
1932
|
}
|
|
1932
|
-
function
|
|
1933
|
+
function Uo(o) {
|
|
1933
1934
|
var e = /* @__PURE__ */ function(t) {
|
|
1934
|
-
|
|
1935
|
-
var n =
|
|
1935
|
+
Vo(s, t);
|
|
1936
|
+
var n = Bo(s);
|
|
1936
1937
|
function s() {
|
|
1937
|
-
return
|
|
1938
|
+
return No(this, s), n.apply(this, arguments);
|
|
1938
1939
|
}
|
|
1939
|
-
return
|
|
1940
|
+
return Po(s, [{
|
|
1940
1941
|
key: "show",
|
|
1941
1942
|
value: (
|
|
1942
1943
|
/**
|
|
@@ -1947,7 +1948,7 @@ function $o(o) {
|
|
|
1947
1948
|
* @param {EventedState~changeStateCallback} [callback] The callback.
|
|
1948
1949
|
*/
|
|
1949
1950
|
function(i, r) {
|
|
1950
|
-
(!i || typeof i == "function") && (r = i), this.changeState("shown",
|
|
1951
|
+
(!i || typeof i == "function") && (r = i), this.changeState("shown", Vs(i), r);
|
|
1951
1952
|
}
|
|
1952
1953
|
)
|
|
1953
1954
|
/**
|
|
@@ -1958,15 +1959,15 @@ function $o(o) {
|
|
|
1958
1959
|
}, {
|
|
1959
1960
|
key: "hide",
|
|
1960
1961
|
value: function(i, r) {
|
|
1961
|
-
(!i || typeof i == "function") && (r = i), this.changeState("hidden",
|
|
1962
|
+
(!i || typeof i == "function") && (r = i), this.changeState("hidden", Vs(i), r);
|
|
1962
1963
|
}
|
|
1963
1964
|
}]), s;
|
|
1964
1965
|
}(o);
|
|
1965
1966
|
return e;
|
|
1966
1967
|
}
|
|
1967
|
-
var
|
|
1968
|
-
const
|
|
1969
|
-
function
|
|
1968
|
+
var zo = [Do, Uo];
|
|
1969
|
+
const Fo = zo;
|
|
1970
|
+
function Wo(o) {
|
|
1970
1971
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
1971
1972
|
}
|
|
1972
1973
|
var wa = function() {
|
|
@@ -1995,32 +1996,32 @@ process.env.NODE_ENV !== "production" && (wa = function(o, e, t) {
|
|
|
1995
1996
|
}
|
|
1996
1997
|
}
|
|
1997
1998
|
});
|
|
1998
|
-
var
|
|
1999
|
-
const
|
|
2000
|
-
function
|
|
1999
|
+
var jo = wa;
|
|
2000
|
+
const Xo = /* @__PURE__ */ Wo(jo);
|
|
2001
|
+
function In(o) {
|
|
2001
2002
|
"@babel/helpers - typeof";
|
|
2002
|
-
return
|
|
2003
|
+
return In = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2003
2004
|
return typeof e;
|
|
2004
2005
|
} : function(e) {
|
|
2005
2006
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2006
|
-
},
|
|
2007
|
+
}, In(o);
|
|
2007
2008
|
}
|
|
2008
|
-
function
|
|
2009
|
+
function Zo(o, e) {
|
|
2009
2010
|
if (!(o instanceof e))
|
|
2010
2011
|
throw new TypeError("Cannot call a class as a function");
|
|
2011
2012
|
}
|
|
2012
|
-
function
|
|
2013
|
+
function Gs(o, e) {
|
|
2013
2014
|
for (var t = 0; t < e.length; t++) {
|
|
2014
2015
|
var n = e[t];
|
|
2015
2016
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
2016
2017
|
}
|
|
2017
2018
|
}
|
|
2018
|
-
function
|
|
2019
|
-
return e &&
|
|
2019
|
+
function Yo(o, e, t) {
|
|
2020
|
+
return e && Gs(o.prototype, e), t && Gs(o, t), Object.defineProperty(o, "prototype", {
|
|
2020
2021
|
writable: !1
|
|
2021
2022
|
}), o;
|
|
2022
2023
|
}
|
|
2023
|
-
function
|
|
2024
|
+
function qo(o, e) {
|
|
2024
2025
|
if (typeof e != "function" && e !== null)
|
|
2025
2026
|
throw new TypeError("Super expression must either be null or a function");
|
|
2026
2027
|
o.prototype = Object.create(e && e.prototype, {
|
|
@@ -2031,38 +2032,38 @@ function Yo(o, e) {
|
|
|
2031
2032
|
}
|
|
2032
2033
|
}), Object.defineProperty(o, "prototype", {
|
|
2033
2034
|
writable: !1
|
|
2034
|
-
}), e &&
|
|
2035
|
+
}), e && kn(o, e);
|
|
2035
2036
|
}
|
|
2036
|
-
function
|
|
2037
|
-
return
|
|
2037
|
+
function kn(o, e) {
|
|
2038
|
+
return kn = Object.setPrototypeOf || function(n, s) {
|
|
2038
2039
|
return n.__proto__ = s, n;
|
|
2039
|
-
},
|
|
2040
|
+
}, kn(o, e);
|
|
2040
2041
|
}
|
|
2041
|
-
function
|
|
2042
|
-
var e =
|
|
2042
|
+
function Ko(o) {
|
|
2043
|
+
var e = el();
|
|
2043
2044
|
return function() {
|
|
2044
|
-
var n =
|
|
2045
|
+
var n = Ht(o), s;
|
|
2045
2046
|
if (e) {
|
|
2046
|
-
var a =
|
|
2047
|
+
var a = Ht(this).constructor;
|
|
2047
2048
|
s = Reflect.construct(n, arguments, a);
|
|
2048
2049
|
} else
|
|
2049
2050
|
s = n.apply(this, arguments);
|
|
2050
|
-
return
|
|
2051
|
+
return Jo(this, s);
|
|
2051
2052
|
};
|
|
2052
2053
|
}
|
|
2053
|
-
function
|
|
2054
|
-
if (e && (
|
|
2054
|
+
function Jo(o, e) {
|
|
2055
|
+
if (e && (In(e) === "object" || typeof e == "function"))
|
|
2055
2056
|
return e;
|
|
2056
2057
|
if (e !== void 0)
|
|
2057
2058
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2058
|
-
return
|
|
2059
|
+
return Qo(o);
|
|
2059
2060
|
}
|
|
2060
|
-
function
|
|
2061
|
+
function Qo(o) {
|
|
2061
2062
|
if (o === void 0)
|
|
2062
2063
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2063
2064
|
return o;
|
|
2064
2065
|
}
|
|
2065
|
-
function
|
|
2066
|
+
function el() {
|
|
2066
2067
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2067
2068
|
return !1;
|
|
2068
2069
|
if (typeof Proxy == "function")
|
|
@@ -2074,19 +2075,19 @@ function Qo() {
|
|
|
2074
2075
|
return !1;
|
|
2075
2076
|
}
|
|
2076
2077
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return
|
|
2078
|
+
function Ht(o) {
|
|
2079
|
+
return Ht = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
2079
2080
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2080
|
-
},
|
|
2081
|
+
}, Ht(o);
|
|
2081
2082
|
}
|
|
2082
|
-
function
|
|
2083
|
+
function tl(o) {
|
|
2083
2084
|
var e = /* @__PURE__ */ function(t) {
|
|
2084
|
-
|
|
2085
|
-
var n =
|
|
2085
|
+
qo(s, t);
|
|
2086
|
+
var n = Ko(s);
|
|
2086
2087
|
function s() {
|
|
2087
|
-
return
|
|
2088
|
+
return Zo(this, s), n.apply(this, arguments);
|
|
2088
2089
|
}
|
|
2089
|
-
return
|
|
2090
|
+
return Yo(s, null, [{
|
|
2090
2091
|
key: "init",
|
|
2091
2092
|
value: (
|
|
2092
2093
|
/**
|
|
@@ -2113,7 +2114,7 @@ function el(o) {
|
|
|
2113
2114
|
else {
|
|
2114
2115
|
var d = c.initEventNames.map(function(p) {
|
|
2115
2116
|
return bt(r, p, function(h) {
|
|
2116
|
-
var u =
|
|
2117
|
+
var u = wn(h, "[".concat(c.attribInitTarget, "]"));
|
|
2117
2118
|
if (u) {
|
|
2118
2119
|
h.delegateTarget = u;
|
|
2119
2120
|
var g = u.ownerDocument.querySelectorAll(u.getAttribute(c.attribInitTarget));
|
|
@@ -2141,30 +2142,30 @@ function el(o) {
|
|
|
2141
2142
|
}(o);
|
|
2142
2143
|
return e;
|
|
2143
2144
|
}
|
|
2144
|
-
function
|
|
2145
|
+
function Rn(o) {
|
|
2145
2146
|
"@babel/helpers - typeof";
|
|
2146
|
-
return
|
|
2147
|
+
return Rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2147
2148
|
return typeof e;
|
|
2148
2149
|
} : function(e) {
|
|
2149
2150
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2150
|
-
},
|
|
2151
|
+
}, Rn(o);
|
|
2151
2152
|
}
|
|
2152
|
-
function
|
|
2153
|
+
function nl(o, e) {
|
|
2153
2154
|
if (!(o instanceof e))
|
|
2154
2155
|
throw new TypeError("Cannot call a class as a function");
|
|
2155
2156
|
}
|
|
2156
|
-
function
|
|
2157
|
+
function Hs(o, e) {
|
|
2157
2158
|
for (var t = 0; t < e.length; t++) {
|
|
2158
2159
|
var n = e[t];
|
|
2159
2160
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
2160
2161
|
}
|
|
2161
2162
|
}
|
|
2162
|
-
function
|
|
2163
|
-
return e &&
|
|
2163
|
+
function sl(o, e, t) {
|
|
2164
|
+
return e && Hs(o.prototype, e), t && Hs(o, t), Object.defineProperty(o, "prototype", {
|
|
2164
2165
|
writable: !1
|
|
2165
2166
|
}), o;
|
|
2166
2167
|
}
|
|
2167
|
-
function
|
|
2168
|
+
function al(o, e) {
|
|
2168
2169
|
if (typeof e != "function" && e !== null)
|
|
2169
2170
|
throw new TypeError("Super expression must either be null or a function");
|
|
2170
2171
|
o.prototype = Object.create(e && e.prototype, {
|
|
@@ -2175,38 +2176,38 @@ function sl(o, e) {
|
|
|
2175
2176
|
}
|
|
2176
2177
|
}), Object.defineProperty(o, "prototype", {
|
|
2177
2178
|
writable: !1
|
|
2178
|
-
}), e &&
|
|
2179
|
+
}), e && Dn(o, e);
|
|
2179
2180
|
}
|
|
2180
|
-
function
|
|
2181
|
-
return
|
|
2181
|
+
function Dn(o, e) {
|
|
2182
|
+
return Dn = Object.setPrototypeOf || function(n, s) {
|
|
2182
2183
|
return n.__proto__ = s, n;
|
|
2183
|
-
},
|
|
2184
|
+
}, Dn(o, e);
|
|
2184
2185
|
}
|
|
2185
|
-
function
|
|
2186
|
-
var e =
|
|
2186
|
+
function il(o) {
|
|
2187
|
+
var e = ll();
|
|
2187
2188
|
return function() {
|
|
2188
|
-
var n =
|
|
2189
|
+
var n = $t(o), s;
|
|
2189
2190
|
if (e) {
|
|
2190
|
-
var a =
|
|
2191
|
+
var a = $t(this).constructor;
|
|
2191
2192
|
s = Reflect.construct(n, arguments, a);
|
|
2192
2193
|
} else
|
|
2193
2194
|
s = n.apply(this, arguments);
|
|
2194
|
-
return
|
|
2195
|
+
return rl(this, s);
|
|
2195
2196
|
};
|
|
2196
2197
|
}
|
|
2197
|
-
function
|
|
2198
|
-
if (e && (
|
|
2198
|
+
function rl(o, e) {
|
|
2199
|
+
if (e && (Rn(e) === "object" || typeof e == "function"))
|
|
2199
2200
|
return e;
|
|
2200
2201
|
if (e !== void 0)
|
|
2201
2202
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2202
|
-
return
|
|
2203
|
+
return ol(o);
|
|
2203
2204
|
}
|
|
2204
|
-
function
|
|
2205
|
+
function ol(o) {
|
|
2205
2206
|
if (o === void 0)
|
|
2206
2207
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2207
2208
|
return o;
|
|
2208
2209
|
}
|
|
2209
|
-
function
|
|
2210
|
+
function ll() {
|
|
2210
2211
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2211
2212
|
return !1;
|
|
2212
2213
|
if (typeof Proxy == "function")
|
|
@@ -2218,24 +2219,24 @@ function ol() {
|
|
|
2218
2219
|
return !1;
|
|
2219
2220
|
}
|
|
2220
2221
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
2222
|
+
function $t(o) {
|
|
2223
|
+
return $t = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
2223
2224
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2224
|
-
},
|
|
2225
|
+
}, $t(o);
|
|
2225
2226
|
}
|
|
2226
|
-
var
|
|
2227
|
-
|
|
2228
|
-
var e =
|
|
2227
|
+
var cl = /* @__PURE__ */ function(o) {
|
|
2228
|
+
al(t, o);
|
|
2229
|
+
var e = il(t);
|
|
2229
2230
|
function t(n, s) {
|
|
2230
2231
|
var a;
|
|
2231
|
-
return
|
|
2232
|
+
return nl(this, t), a = e.call(this, n, s), a._handleFocusinListener = void 0, a._handleKeydownListener = void 0, a._handleFocusin = function(i) {
|
|
2232
2233
|
var r = a.element.querySelector(a.options.selectorModalContainer) || a.element;
|
|
2233
2234
|
a.element.classList.contains(a.options.classVisible) && !r.contains(i.target) && a.options.selectorsFloatingMenus.every(function(l) {
|
|
2234
|
-
return !
|
|
2235
|
-
}) && a.element.querySelector(
|
|
2235
|
+
return !wn(i, l);
|
|
2236
|
+
}) && a.element.querySelector(pn.selectorTabbable).focus();
|
|
2236
2237
|
}, a._hookCloseActions(), a;
|
|
2237
2238
|
}
|
|
2238
|
-
return
|
|
2239
|
+
return sl(t, [{
|
|
2239
2240
|
key: "createdByLauncher",
|
|
2240
2241
|
value: (
|
|
2241
2242
|
/**
|
|
@@ -2269,8 +2270,8 @@ var ll = /* @__PURE__ */ function(o) {
|
|
|
2269
2270
|
var r = this, l, c = function() {
|
|
2270
2271
|
if (l && (l = r.unmanage(l).release()), s === "shown" && r.element.offsetWidth > 0 && r.element.offsetHeight > 0) {
|
|
2271
2272
|
r.previouslyFocusedNode = r.element.ownerDocument.activeElement;
|
|
2272
|
-
var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(
|
|
2273
|
-
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" &&
|
|
2273
|
+
var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(pn.selectorTabbable);
|
|
2274
|
+
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Xo(u, "Modals need to contain a focusable element by either using " + "`".concat(r.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
|
|
2274
2275
|
}
|
|
2275
2276
|
i();
|
|
2276
2277
|
};
|
|
@@ -2285,7 +2286,7 @@ var ll = /* @__PURE__ */ function(o) {
|
|
|
2285
2286
|
value: function() {
|
|
2286
2287
|
var s = this;
|
|
2287
2288
|
this.manage(bt(this.element, "click", function(a) {
|
|
2288
|
-
var i =
|
|
2289
|
+
var i = wn(a, s.options.selectorModalClose);
|
|
2289
2290
|
i && (a.delegateTarget = i), (i || a.target === s.element) && s.hide(a);
|
|
2290
2291
|
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(bt(this.element.ownerDocument.body, "keydown", function(a) {
|
|
2291
2292
|
a.which === 27 && s.shouldStateBeChanged("hidden") && (a.stopPropagation(), s.hide(a));
|
|
@@ -2332,7 +2333,7 @@ var ll = /* @__PURE__ */ function(o) {
|
|
|
2332
2333
|
* without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
|
|
2333
2334
|
*/
|
|
2334
2335
|
function() {
|
|
2335
|
-
var s =
|
|
2336
|
+
var s = pn.prefix;
|
|
2336
2337
|
return {
|
|
2337
2338
|
selectorInit: "[data-modal]",
|
|
2338
2339
|
selectorModalClose: "[data-modal-close]",
|
|
@@ -2351,13 +2352,13 @@ var ll = /* @__PURE__ */ function(o) {
|
|
|
2351
2352
|
}
|
|
2352
2353
|
)
|
|
2353
2354
|
}]), t.components = /* @__PURE__ */ new WeakMap(), t;
|
|
2354
|
-
}(
|
|
2355
|
-
const
|
|
2356
|
-
class
|
|
2355
|
+
}(ao(uo, tl, Fo, So));
|
|
2356
|
+
const dl = cl;
|
|
2357
|
+
class uh extends Y {
|
|
2357
2358
|
constructor(e, t, n) {
|
|
2358
2359
|
super(e, t, n), this.type = "modal", this.isEventListenerAdded = !1, this.handleShowModal = () => {
|
|
2359
2360
|
const s = this.services.domUtils.getChartID();
|
|
2360
|
-
this.modal.attr("data-modal", !0).attr("class", "cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", `${s}__modal-title`).attr("aria-describedby", `${s}__modal-description`).attr("tabindex", -1), this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()),
|
|
2361
|
+
this.modal.attr("data-modal", !0).attr("class", "cds--modal").attr("role", "dialog").attr("aria-modal", !0).attr("aria-labelledby", `${s}__modal-title`).attr("aria-describedby", `${s}__modal-description`).attr("tabindex", -1), this.modal.html(this.getModalHTML()), this.modal.select("div.cds--modal-footer button.cds--btn").on("click", () => this.model.exportToCSV()), dl.create(this.modal.node()).show(), document.addEventListener("modal-hidden", this.handleHideModal);
|
|
2361
2362
|
}, this.handleHideModal = () => {
|
|
2362
2363
|
this.modal.attr("role", null).attr("aria-modal", null).attr("aria-labelledby", null).attr("aria-describedby", null).attr("tabindex", null), document.removeEventListener("modal-hidden", this.handleHideModal);
|
|
2363
2364
|
}, this.init();
|
|
@@ -2428,7 +2429,7 @@ class hh extends Y {
|
|
|
2428
2429
|
this.removeEventListeners(), this.isEventListenerAdded = !1;
|
|
2429
2430
|
}
|
|
2430
2431
|
}
|
|
2431
|
-
class
|
|
2432
|
+
class hl extends Y {
|
|
2432
2433
|
constructor() {
|
|
2433
2434
|
super(...arguments), this.type = "title", this.renderType = W.HTML;
|
|
2434
2435
|
}
|
|
@@ -2505,7 +2506,7 @@ class dl extends Y {
|
|
|
2505
2506
|
return e.getSubStringLength(0, a) > s ? this.getSubstringIndex(e, t, a, s) : e.getSubStringLength(0, a) < s ? e.getSubStringLength(0, a + 1) > s ? a : this.getSubstringIndex(e, a, n, s) : a;
|
|
2506
2507
|
}
|
|
2507
2508
|
}
|
|
2508
|
-
class
|
|
2509
|
+
class ul extends Y {
|
|
2509
2510
|
constructor() {
|
|
2510
2511
|
super(...arguments), this.type = "legend", this.renderType = W.HTML;
|
|
2511
2512
|
}
|
|
@@ -2570,24 +2571,24 @@ class hl extends Y {
|
|
|
2570
2571
|
}
|
|
2571
2572
|
addAdditionalItem(e, t, n) {
|
|
2572
2573
|
const { width: s, height: a } = oe.area;
|
|
2573
|
-
if (t.type ===
|
|
2574
|
+
if (t.type === We.RADIUS ? e.style("width", `${a}px`).style("height", `${a}px`) : e.style("width", `${s}px`).style("height", `${a}px`), t.type === We.RADIUS) {
|
|
2574
2575
|
const { iconData: i, fill: r, stroke: l } = oe.radius;
|
|
2575
2576
|
e.attr("fill", "none").selectAll("circle").data(i).enter().append("circle").classed("radius", !0).attr("role", j.IMG).attr("aria-label", "radius").attr("cx", (d) => d.cx).attr("cy", (d) => d.cy).attr("r", (d) => d.r).style("fill", t.fill ? t.fill : r).style("stroke", t.stroke ? t.stroke : l);
|
|
2576
|
-
} else if (t.type ===
|
|
2577
|
+
} else if (t.type === We.LINE) {
|
|
2577
2578
|
const i = oe.line;
|
|
2578
2579
|
e.select("line.line").empty() && e.append("line").classed(`line-${n}`, !0).attr("role", j.IMG).attr("aria-label", "line").attr("x1", 0).attr("y1", i.yPosition).attr("x2", s).attr("y2", i.yPosition).style("stroke", t.stroke ? t.stroke : i.stroke).style("stroke-width", i.strokeWidth);
|
|
2579
|
-
} else if (t.type ===
|
|
2580
|
+
} else if (t.type === We.AREA)
|
|
2580
2581
|
e.select("rect.area").empty() && e.append("rect").classed(`area-${n}`, !0).attr("role", j.IMG).attr("aria-label", "area").attr("width", s).attr("height", a).style(
|
|
2581
2582
|
"fill",
|
|
2582
2583
|
n > 3 && !t.fill ? oe.area.fill : t.fill
|
|
2583
2584
|
).style("stroke", t.stroke);
|
|
2584
|
-
else if (t.type ===
|
|
2585
|
+
else if (t.type === We.SIZE) {
|
|
2585
2586
|
const { iconData: i, fill: r, stroke: l } = oe.size;
|
|
2586
2587
|
e.attr("fill", "none").attr("role", j.IMG).attr("aria-label", "size").selectAll("rect").data(i).enter().append("rect").classed("size", !0).attr("width", (d) => d.width).attr("height", (d) => d.height).attr("y", () => 0).style("fill", t.fill ? t.fill : r).style("stroke", t.stroke ? t.stroke : l).style("stroke-width", 1);
|
|
2587
|
-
} else if (t.type ===
|
|
2588
|
+
} else if (t.type === We.QUARTILE) {
|
|
2588
2589
|
const { iconData: i } = oe.quartile;
|
|
2589
2590
|
e.selectAll("rect").attr("role", j.IMG).attr("aria-label", "quartile").data(i).enter().append("rect").attr("class", (l, c) => `quartile-${c === 0 ? "wrapper" : "line"}`).attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height);
|
|
2590
|
-
} else if (t.type ===
|
|
2591
|
+
} else if (t.type === We.ZOOM) {
|
|
2591
2592
|
const { iconData: i, color: r } = y(oe, "zoom"), l = e.attr("role", j.IMG).attr("aria-label", "zoom").selectAll("g.icon").data(i).enter();
|
|
2592
2593
|
l.append("g").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).append("polygon").attr(
|
|
2593
2594
|
"points",
|
|
@@ -2602,7 +2603,7 @@ class hl extends Y {
|
|
|
2602
2603
|
const e = this.getComponentContainer(), t = y(this.getOptions(), "legend", "truncation"), n = y(t, "type"), s = y(t, "threshold"), a = y(t, "numCharacter"), i = e.selectAll("div.legend-item p");
|
|
2603
2604
|
i.attr("id", function() {
|
|
2604
2605
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
2605
|
-
}), n !==
|
|
2606
|
+
}), n !== lt.NONE ? i.html(function(r) {
|
|
2606
2607
|
const l = ke(r.name);
|
|
2607
2608
|
return l.length > s && l.length !== a ? St(l, n, a) : l;
|
|
2608
2609
|
}) : i.html((r) => ke(r.name));
|
|
@@ -2616,13 +2617,13 @@ class hl extends Y {
|
|
|
2616
2617
|
const r = x(this);
|
|
2617
2618
|
r.select("div.checkbox").classed("hovered", !0);
|
|
2618
2619
|
const l = r.datum();
|
|
2619
|
-
l.name.length > a.threshold && a.numCharacter < l.name.length && a.type !==
|
|
2620
|
+
l.name.length > a.threshold && a.numCharacter < l.name.length && a.type !== lt.NONE && e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
2620
2621
|
event: i,
|
|
2621
2622
|
hoveredElement: r,
|
|
2622
2623
|
content: l.name
|
|
2623
2624
|
});
|
|
2624
2625
|
}).on("mousemove", function(i) {
|
|
2625
|
-
x(this).datum().name.length > a.threshold && a.type !==
|
|
2626
|
+
x(this).datum().name.length > a.threshold && a.type !== lt.NONE && e.services.events.dispatchEvent(f.Tooltip.MOVE, {
|
|
2626
2627
|
event: i
|
|
2627
2628
|
});
|
|
2628
2629
|
}).on("click", function() {
|
|
@@ -2633,7 +2634,7 @@ class hl extends Y {
|
|
|
2633
2634
|
e.model.toggleDataLabel(r.name);
|
|
2634
2635
|
}).on("mouseout", function() {
|
|
2635
2636
|
const i = x(this);
|
|
2636
|
-
i.select("div.checkbox").classed("hovered", !1), i.datum().name.length > a.threshold && a.type !==
|
|
2637
|
+
i.select("div.checkbox").classed("hovered", !1), i.datum().name.length > a.threshold && a.type !== lt.NONE && e.services.events.dispatchEvent(f.Tooltip.HIDE), e.services.events.dispatchEvent(f.Legend.ITEM_MOUSEOUT, {
|
|
2637
2638
|
hoveredElement: i
|
|
2638
2639
|
});
|
|
2639
2640
|
}), t.selectAll("div.legend-item div.checkbox").on("keyup", function(i) {
|
|
@@ -2654,7 +2655,7 @@ class hl extends Y {
|
|
|
2654
2655
|
});
|
|
2655
2656
|
}
|
|
2656
2657
|
}
|
|
2657
|
-
class
|
|
2658
|
+
class pl extends Y {
|
|
2658
2659
|
constructor(e, t, n) {
|
|
2659
2660
|
super(e, t, n), this.type = "chart-clip", this.renderType = W.SVG, this.chartClipId = "chart-clip-id-" + Math.floor(Math.random() * 99999999999), this.init();
|
|
2660
2661
|
}
|
|
@@ -2682,7 +2683,7 @@ class ul extends Y {
|
|
|
2682
2683
|
i - a > 0 && c.attr("x", a).attr("y", l).attr("width", i - a).attr("height", r - l), this.chartClipPath.merge(c).lower();
|
|
2683
2684
|
}
|
|
2684
2685
|
}
|
|
2685
|
-
class
|
|
2686
|
+
class ph extends pl {
|
|
2686
2687
|
constructor() {
|
|
2687
2688
|
super(...arguments), this.type = "canvas-chart-clip", this.chartClipId = "canvas-chart-clip-id-" + Math.floor(Math.random() * 99999999999);
|
|
2688
2689
|
}
|
|
@@ -2698,40 +2699,40 @@ class uh extends ul {
|
|
|
2698
2699
|
s.attr("x", 0).attr("y", 0).attr("width", t).attr("height", n), this.chartClipPath.merge(s).lower();
|
|
2699
2700
|
}
|
|
2700
2701
|
}
|
|
2701
|
-
var
|
|
2702
|
+
var at, pe;
|
|
2702
2703
|
(function(o) {
|
|
2703
2704
|
o.LEFT = "left", o.RIGHT = "right", o.TOP = "top", o.BOTTOM = "bottom";
|
|
2704
2705
|
})(pe || (pe = {}));
|
|
2705
|
-
var
|
|
2706
|
+
var $s = (at = {}, at[pe.LEFT] = function(o, e, t) {
|
|
2706
2707
|
return {
|
|
2707
2708
|
top: o.top - Math.round(e.offsetHeight / 2) + Math.round(t.height / 2),
|
|
2708
2709
|
left: Math.round(o.left - e.offsetWidth)
|
|
2709
2710
|
};
|
|
2710
|
-
},
|
|
2711
|
+
}, at[pe.RIGHT] = function(o, e, t) {
|
|
2711
2712
|
return {
|
|
2712
2713
|
top: o.top - Math.round(e.offsetHeight / 2) + Math.round(t.height / 2),
|
|
2713
2714
|
left: Math.round(o.left + t.width)
|
|
2714
2715
|
};
|
|
2715
|
-
},
|
|
2716
|
+
}, at[pe.TOP] = function(o, e, t) {
|
|
2716
2717
|
return {
|
|
2717
2718
|
top: Math.round(o.top - e.offsetHeight),
|
|
2718
2719
|
left: o.left - Math.round(e.offsetWidth / 2) + Math.round(t.width / 2)
|
|
2719
2720
|
};
|
|
2720
|
-
},
|
|
2721
|
+
}, at[pe.BOTTOM] = function(o, e, t) {
|
|
2721
2722
|
return {
|
|
2722
2723
|
top: Math.round(o.top + t.height),
|
|
2723
2724
|
left: o.left - Math.round(e.offsetWidth / 2) + Math.round(t.width / 2)
|
|
2724
2725
|
};
|
|
2725
|
-
},
|
|
2726
|
+
}, at), Us = typeof window < "u" ? window : {
|
|
2726
2727
|
innerHeight: 0,
|
|
2727
2728
|
scrollY: 0,
|
|
2728
2729
|
innerWidth: 0,
|
|
2729
2730
|
scrollX: 0
|
|
2730
|
-
},
|
|
2731
|
+
}, jt = (
|
|
2731
2732
|
/** @class */
|
|
2732
2733
|
function() {
|
|
2733
2734
|
function o(e) {
|
|
2734
|
-
e === void 0 && (e = {}), this.positions =
|
|
2735
|
+
e === void 0 && (e = {}), this.positions = $s, this.positions = Object.assign({}, $s, e);
|
|
2735
2736
|
}
|
|
2736
2737
|
return o.prototype.getRelativeOffset = function(e) {
|
|
2737
2738
|
for (var t = {
|
|
@@ -2807,32 +2808,32 @@ var Hs = (it = {}, it[pe.LEFT] = function(o, e, t) {
|
|
|
2807
2808
|
// we go with window here, because that's going to be the simple/common case
|
|
2808
2809
|
top: 0,
|
|
2809
2810
|
left: 0,
|
|
2810
|
-
height:
|
|
2811
|
-
width:
|
|
2811
|
+
height: Us.innerHeight,
|
|
2812
|
+
width: Us.innerWidth
|
|
2812
2813
|
};
|
|
2813
2814
|
}, o.prototype.calculatePosition = function(e, t, n, s) {
|
|
2814
2815
|
return this.positions[s] ? this.positions[s](e, n, t) : (console.error("No function found for placement, defaulting to 0,0"), { left: 0, top: 0 });
|
|
2815
2816
|
}, o;
|
|
2816
2817
|
}()
|
|
2817
2818
|
);
|
|
2818
|
-
new
|
|
2819
|
-
class
|
|
2819
|
+
new jt();
|
|
2820
|
+
class gl extends Y {
|
|
2820
2821
|
constructor(e, t, n) {
|
|
2821
|
-
super(e, t, n), this.type = "tooltip", this.renderType = W.HTML, this.isEventListenerAdded = !1, this.positionService = new
|
|
2822
|
+
super(e, t, n), this.type = "tooltip", this.renderType = W.HTML, this.isEventListenerAdded = !1, this.positionService = new jt(), this.handleShowTooltip = (s) => {
|
|
2822
2823
|
const a = s.detail.data || s.detail.items;
|
|
2823
2824
|
let i;
|
|
2824
2825
|
const r = this.formatItems(this.getItems(s));
|
|
2825
|
-
s.detail.content ? i = `<div class="title-tooltip"><p>${
|
|
2826
|
+
s.detail.content ? i = `<div class="title-tooltip"><p>${Dt(s.detail.content)}</p></div>` : i = Dt(this.getTooltipHTML(r));
|
|
2826
2827
|
const l = S.appendOrSelect(this.tooltip, "div.content-box");
|
|
2827
2828
|
if (y(this.getOptions(), "tooltip", "customHTML"))
|
|
2828
2829
|
if (s.detail.content) {
|
|
2829
|
-
const c = `<div class="title-tooltip"><p>${
|
|
2830
|
+
const c = `<div class="title-tooltip"><p>${Dt(
|
|
2830
2831
|
s.detail.content
|
|
2831
2832
|
)}</p></div>`;
|
|
2832
2833
|
l.html(c);
|
|
2833
2834
|
} else
|
|
2834
2835
|
l.html(
|
|
2835
|
-
`<div class="title-tooltip"><p>${
|
|
2836
|
+
`<div class="title-tooltip"><p>${Dt(
|
|
2836
2837
|
this.model.getOptions().tooltip.customHTML(a, i)
|
|
2837
2838
|
)}</p></div>`
|
|
2838
2839
|
);
|
|
@@ -2859,7 +2860,7 @@ class pl extends Y {
|
|
|
2859
2860
|
}
|
|
2860
2861
|
formatItems(e) {
|
|
2861
2862
|
const t = this.getOptions(), n = y(t, "tooltip", "truncation", "type"), s = y(t, "tooltip", "truncation", "threshold"), a = y(t, "tooltip", "truncation", "numCharacter");
|
|
2862
|
-
return n !==
|
|
2863
|
+
return n !== lt.NONE ? e.map((i) => {
|
|
2863
2864
|
const r = i.labelIcon ? 12 : 0;
|
|
2864
2865
|
return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > s && (i.label = St(i.label, n, a)), i.value && i.value.length > s && (i.value = St(i.value, n, a)), i;
|
|
2865
2866
|
}) : e.map((i) => (i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i));
|
|
@@ -2883,10 +2884,10 @@ class pl extends Y {
|
|
|
2883
2884
|
if (s)
|
|
2884
2885
|
return s(e, t);
|
|
2885
2886
|
if (typeof e.getTime == "function")
|
|
2886
|
-
return
|
|
2887
|
+
return ps(e, "MMM d, yyyy");
|
|
2887
2888
|
try {
|
|
2888
2889
|
if (typeof e == "string" && /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(e))
|
|
2889
|
-
return
|
|
2890
|
+
return ps(Date.parse(e), "MMM d, yyyy");
|
|
2890
2891
|
} catch {
|
|
2891
2892
|
}
|
|
2892
2893
|
return e.toLocaleString();
|
|
@@ -2906,7 +2907,7 @@ class pl extends Y {
|
|
|
2906
2907
|
const t = this.services.domUtils.getHolder(), n = this.tooltip.node(), s = this.getOptions(), a = y(s, "zoomBar", "top", "enabled");
|
|
2907
2908
|
let i = y(e, "detail", "mousePosition");
|
|
2908
2909
|
if (!i)
|
|
2909
|
-
i =
|
|
2910
|
+
i = Ft(y(e, "detail", "event"), t);
|
|
2910
2911
|
else {
|
|
2911
2912
|
const h = y(s, "zoomBar", "top", "type"), u = Le.height[h];
|
|
2912
2913
|
a && (i[1] += u + Le.spacerHeight);
|
|
@@ -2942,7 +2943,7 @@ class pl extends Y {
|
|
|
2942
2943
|
this.positionService.setElement(n, p);
|
|
2943
2944
|
}
|
|
2944
2945
|
}
|
|
2945
|
-
const
|
|
2946
|
+
const ct = class ct extends Y {
|
|
2946
2947
|
constructor() {
|
|
2947
2948
|
super(...arguments), this.type = "grid-brush", this.renderType = W.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
|
|
2948
2949
|
}
|
|
@@ -2968,10 +2969,10 @@ const dt = class dt extends Y {
|
|
|
2968
2969
|
const m = (A) => {
|
|
2969
2970
|
const L = A[1] - A[0];
|
|
2970
2971
|
let I = "0," + L.toString();
|
|
2971
|
-
const D = Math.floor(l /
|
|
2972
|
+
const D = Math.floor(l / ct.DASH_LENGTH), X = D * ct.DASH_LENGTH;
|
|
2972
2973
|
for (let N = 0; N < D; N++)
|
|
2973
|
-
I += "," +
|
|
2974
|
-
I += "," + (l -
|
|
2974
|
+
I += "," + ct.DASH_LENGTH;
|
|
2975
|
+
I += "," + (l - X), D % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
|
|
2975
2976
|
}, E = (A) => {
|
|
2976
2977
|
const L = A.selection;
|
|
2977
2978
|
L === null || L[0] === L[1] || (u.attr("x", parseFloat(i.attr("x")) + parseFloat(s.attr("x"))).attr("y", i.attr("y")).attr("width", i.attr("width")).attr("height", i.attr("height")).style("cursor", "pointer").style("display", null), m(L));
|
|
@@ -2985,28 +2986,28 @@ const dt = class dt extends Y {
|
|
|
2985
2986
|
const L = A.selection;
|
|
2986
2987
|
L !== null && (v(L[0], L[1]), a.call(O.move, null), u.style("display", "none"));
|
|
2987
2988
|
};
|
|
2988
|
-
l != 0 && r != 0 && (O =
|
|
2989
|
+
l != 0 && r != 0 && (O = ea().extent([
|
|
2989
2990
|
[0, 0],
|
|
2990
2991
|
[r - 1, l]
|
|
2991
2992
|
]).on("start brush end", E).on("end.brushed", T), a.call(O));
|
|
2992
2993
|
const M = this.services.zoom.getZoomRatio();
|
|
2993
2994
|
s.on("click", function(A) {
|
|
2994
2995
|
if (A.shiftKey) {
|
|
2995
|
-
const L = this.services.domUtils.getHolder(), I =
|
|
2996
|
+
const L = this.services.domUtils.getHolder(), I = Ft(a.node(), L)[0];
|
|
2996
2997
|
let D = I - r * M / 2;
|
|
2997
2998
|
D < 0 && (D = 0);
|
|
2998
|
-
let
|
|
2999
|
-
|
|
2999
|
+
let X = I + r * M / 2;
|
|
3000
|
+
X > r && (X = r), v(D, X);
|
|
3000
3001
|
}
|
|
3001
3002
|
});
|
|
3002
3003
|
}
|
|
3003
3004
|
}
|
|
3004
3005
|
};
|
|
3005
|
-
|
|
3006
|
-
let
|
|
3007
|
-
class
|
|
3006
|
+
ct.DASH_LENGTH = 4;
|
|
3007
|
+
let zs = ct;
|
|
3008
|
+
class gh extends Y {
|
|
3008
3009
|
constructor() {
|
|
3009
|
-
super(...arguments), this.type = "zoom-bar", this.renderType = W.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush =
|
|
3010
|
+
super(...arguments), this.type = "zoom-bar", this.renderType = W.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = ea(), this.highlightStrokeWidth = 1;
|
|
3010
3011
|
}
|
|
3011
3012
|
init() {
|
|
3012
3013
|
this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
@@ -3039,7 +3040,7 @@ class ph extends Y {
|
|
|
3039
3040
|
const { cartesianScales: h } = this.services, u = h.getMainXScale(), g = h.getMainYScale(), m = h.getMainXScaleType();
|
|
3040
3041
|
if (u && m === he.TIME) {
|
|
3041
3042
|
let E = this.services.zoom.getZoomBarData();
|
|
3042
|
-
if (
|
|
3043
|
+
if (Qs(E) || E.length === 1)
|
|
3043
3044
|
return;
|
|
3044
3045
|
this.xScale = u.copy(), this.yScale = g.copy();
|
|
3045
3046
|
const v = this.services.zoom.getDefaultZoomBarDomain(E);
|
|
@@ -3053,30 +3054,30 @@ class ph extends Y {
|
|
|
3053
3054
|
T && T[0] && T[1] && (T[0] = new Date(T[0]), T[1] = new Date(T[1])), T && !(O && O[0].valueOf() === T[0].valueOf() && O[1].valueOf() === T[1].valueOf()) ? this.model.set(
|
|
3054
3055
|
{
|
|
3055
3056
|
// use a new object instead of newInitialZoomDomain
|
|
3056
|
-
initialZoomDomain:
|
|
3057
|
-
zoomDomain: T ?
|
|
3057
|
+
initialZoomDomain: dt([], T),
|
|
3058
|
+
zoomDomain: T ? dt([], T) : v
|
|
3058
3059
|
},
|
|
3059
3060
|
{ skipUpdate: !0 }
|
|
3060
3061
|
) : T === null && O !== null && this.model.set(
|
|
3061
3062
|
{
|
|
3062
3063
|
initialZoomDomain: null,
|
|
3063
|
-
zoomDomain:
|
|
3064
|
+
zoomDomain: dt([], v)
|
|
3064
3065
|
},
|
|
3065
3066
|
{ skipUpdate: !0 }
|
|
3066
|
-
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(
|
|
3067
|
+
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Wt(E, (L) => L.value));
|
|
3067
3068
|
const M = this.model.get("zoomDomain");
|
|
3068
3069
|
if (a === nt.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", E, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", E, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
|
|
3069
|
-
const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, D = i.color,
|
|
3070
|
+
const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, D = i.color, X = i.labelMapsTo;
|
|
3070
3071
|
i.data.forEach((N, _) => {
|
|
3071
3072
|
S.appendOrSelect(p, `rect.highlight-${_}`).attr("height", r - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(N[L])).attr(
|
|
3072
3073
|
"width",
|
|
3073
3074
|
this.xScale(N[I]) - this.xScale(N[L])
|
|
3074
3075
|
).style(
|
|
3075
3076
|
"fill",
|
|
3076
|
-
D && D.scale[N[
|
|
3077
|
+
D && D.scale[N[X]] ? D.scale[N[X]] : null
|
|
3077
3078
|
).style("fill-opacity", 0.1).style(
|
|
3078
3079
|
"stroke",
|
|
3079
|
-
D && D.scale[N[
|
|
3080
|
+
D && D.scale[N[X]] ? D.scale[N[X]] : null
|
|
3080
3081
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
3081
3082
|
});
|
|
3082
3083
|
}
|
|
@@ -3154,7 +3155,7 @@ class ph extends Y {
|
|
|
3154
3155
|
S.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", e[0]).attr("y", n / 2 - 1).attr("width", e[1] - e[0]).attr("height", 2);
|
|
3155
3156
|
}
|
|
3156
3157
|
renderZoomBarArea(e, t, n, s) {
|
|
3157
|
-
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (v, O, T) => (M) => a.getValueFromScale(v, O, T, M), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = y(this.getOptions(), "zoomBar", B.TOP, "type"), g = Le.height[u], m =
|
|
3158
|
+
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (v, O, T) => (M) => a.getValueFromScale(v, O, T, M), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = y(this.getOptions(), "zoomBar", B.TOP, "type"), g = Le.height[u], m = Nn().x((v) => p(v)).y0(g).y1((v) => g - h(v)), E = S.appendOrSelect(e, t).datum(n).attr("d", m);
|
|
3158
3159
|
s && E.attr("clip-path", `url(#${s})`);
|
|
3159
3160
|
}
|
|
3160
3161
|
updateClipPath(e, t, n, s, a, i) {
|
|
@@ -3182,7 +3183,7 @@ class ph extends Y {
|
|
|
3182
3183
|
"zoomBar",
|
|
3183
3184
|
B.TOP,
|
|
3184
3185
|
"type"
|
|
3185
|
-
), i = Le.height[a], r =
|
|
3186
|
+
), i = Le.height[a], r = Pn()([
|
|
3186
3187
|
[t, i],
|
|
3187
3188
|
[n, i]
|
|
3188
3189
|
]);
|
|
@@ -3198,9 +3199,9 @@ class ph extends Y {
|
|
|
3198
3199
|
this.brush.on("start brush end", null), this.services.events.removeEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
3199
3200
|
}
|
|
3200
3201
|
}
|
|
3201
|
-
class
|
|
3202
|
+
class mh extends Y {
|
|
3202
3203
|
constructor(e, t) {
|
|
3203
|
-
super(e, t), this.type = "threshold", this.renderType = W.SVG, this.positionService = new
|
|
3204
|
+
super(e, t), this.type = "threshold", this.renderType = W.SVG, this.positionService = new jt();
|
|
3204
3205
|
}
|
|
3205
3206
|
render(e = !1) {
|
|
3206
3207
|
const t = y(this.getOptions(), "axes"), n = [];
|
|
@@ -3232,9 +3233,9 @@ class gh extends Y {
|
|
|
3232
3233
|
), g = p.services.cartesianScales.getScaleTypeByPosition(h);
|
|
3233
3234
|
let m = null, E = null;
|
|
3234
3235
|
h === B.LEFT || h === B.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
|
|
3235
|
-
const v = g === he.LABELS, [O, T] = m.range(), [M, A] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), D = (U) => L.getDomainValue(U),
|
|
3236
|
+
const v = g === he.LABELS, [O, T] = m.range(), [M, A] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), D = (U) => L.getDomainValue(U), X = (U) => L.getRangeValue(U), [N, _] = Be(
|
|
3236
3237
|
D,
|
|
3237
|
-
|
|
3238
|
+
X,
|
|
3238
3239
|
I
|
|
3239
3240
|
), w = x(this);
|
|
3240
3241
|
h === B.TOP || h === B.BOTTOM ? (w.selectAll("line.threshold-line").transition().call(
|
|
@@ -3271,11 +3272,11 @@ class gh extends Y {
|
|
|
3271
3272
|
getFormattedValue(e) {
|
|
3272
3273
|
const { value: t, axisPosition: n } = e, s = this.getOptions();
|
|
3273
3274
|
if (this.services.cartesianScales.getScaleTypeByPosition(n) === he.TIME) {
|
|
3274
|
-
const i = [B.LEFT, B.RIGHT].includes(n), r = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : r, d = y(s, "timeScale"), p =
|
|
3275
|
+
const i = [B.LEFT, B.RIGHT].includes(n), r = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : r, d = y(s, "timeScale"), p = gn(
|
|
3275
3276
|
c.ticks(),
|
|
3276
3277
|
y(d, "timeInterval")
|
|
3277
3278
|
);
|
|
3278
|
-
return
|
|
3279
|
+
return mn(t, 0, c.ticks(), p, d);
|
|
3279
3280
|
}
|
|
3280
3281
|
return t.toLocaleString("en");
|
|
3281
3282
|
}
|
|
@@ -3287,7 +3288,7 @@ class gh extends Y {
|
|
|
3287
3288
|
).classed("hidden", !0);
|
|
3288
3289
|
}
|
|
3289
3290
|
setThresholdLabelPosition({ event: e, datum: t }) {
|
|
3290
|
-
const n = this.services.domUtils.getHolder(), s =
|
|
3291
|
+
const n = this.services.domUtils.getHolder(), s = Ft(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
|
|
3291
3292
|
this.label.html(ke(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
|
|
3292
3293
|
const i = this.label.node(), r = this.positionService.findBestPlacementAt(
|
|
3293
3294
|
{
|
|
@@ -3336,9 +3337,9 @@ class gh extends Y {
|
|
|
3336
3337
|
});
|
|
3337
3338
|
}
|
|
3338
3339
|
}
|
|
3339
|
-
class
|
|
3340
|
+
class fh extends Y {
|
|
3340
3341
|
constructor(e, t) {
|
|
3341
|
-
super(e, t), this.type = "highlight", this.renderType = W.SVG, this.positionService = new
|
|
3342
|
+
super(e, t), this.type = "highlight", this.renderType = W.SVG, this.positionService = new jt(), this.highlightStrokeWidth = 1;
|
|
3342
3343
|
}
|
|
3343
3344
|
render(e = !1) {
|
|
3344
3345
|
const t = y(this.getOptions(), "axes"), n = [];
|
|
@@ -3371,8 +3372,8 @@ class mh extends Y {
|
|
|
3371
3372
|
A,
|
|
3372
3373
|
L,
|
|
3373
3374
|
M
|
|
3374
|
-
),
|
|
3375
|
-
h === B.TOP || h === B.BOTTOM ?
|
|
3375
|
+
), X = x(this);
|
|
3376
|
+
h === B.TOP || h === B.BOTTOM ? X.selectAll("rect.highlight-bar").transition().call(
|
|
3376
3377
|
(N) => p.services.transitions.setupTransition({
|
|
3377
3378
|
transition: N,
|
|
3378
3379
|
name: "highlight-bar-update",
|
|
@@ -3381,7 +3382,7 @@ class mh extends Y {
|
|
|
3381
3382
|
).attr("y", Math.max(O + p.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: N, ..._ }) => I(_[N])).attr(
|
|
3382
3383
|
"width",
|
|
3383
3384
|
({ highlightStartMapsTo: N, highlightEndMapsTo: _, ...w }) => Math.max(I(w[_]) - I(w[N]), 0)
|
|
3384
|
-
).style("stroke", ({ color: N, labelMapsTo: _, ...w }) => N && N.scale[w[_]] ? N.scale[w[_]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: N, labelMapsTo: _, ...w }) => N && N.scale[w[_]] ? N.scale[w[_]] : null) :
|
|
3385
|
+
).style("stroke", ({ color: N, labelMapsTo: _, ...w }) => N && N.scale[w[_]] ? N.scale[w[_]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: N, labelMapsTo: _, ...w }) => N && N.scale[w[_]] ? N.scale[w[_]] : null) : X.selectAll("rect.highlight-bar").transition().call(
|
|
3385
3386
|
(N) => p.services.transitions.setupTransition({
|
|
3386
3387
|
transition: N,
|
|
3387
3388
|
name: "highlight-bar-update",
|
|
@@ -3394,7 +3395,7 @@ class mh extends Y {
|
|
|
3394
3395
|
});
|
|
3395
3396
|
}
|
|
3396
3397
|
}
|
|
3397
|
-
class
|
|
3398
|
+
class vh extends gl {
|
|
3398
3399
|
getItems(e) {
|
|
3399
3400
|
if (e.detail.items)
|
|
3400
3401
|
return e.detail.items;
|
|
@@ -3481,7 +3482,7 @@ class fh extends pl {
|
|
|
3481
3482
|
return p;
|
|
3482
3483
|
}
|
|
3483
3484
|
}
|
|
3484
|
-
class
|
|
3485
|
+
class yh extends Y {
|
|
3485
3486
|
constructor() {
|
|
3486
3487
|
super(...arguments), this.type = "alluvial", this.renderType = W.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
|
|
3487
3488
|
}
|
|
@@ -3585,7 +3586,7 @@ class vh extends Y {
|
|
|
3585
3586
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
3586
3587
|
}
|
|
3587
3588
|
addLineEventListener() {
|
|
3588
|
-
const e = this.getOptions(), t = this, n =
|
|
3589
|
+
const e = this.getOptions(), t = this, n = vn((s, a = "mouseover") => {
|
|
3589
3590
|
const i = t.parent.selectAll("path.link").transition().call(
|
|
3590
3591
|
(r) => t.services.transitions.setupTransition({
|
|
3591
3592
|
transition: r,
|
|
@@ -3643,7 +3644,7 @@ class vh extends Y {
|
|
|
3643
3644
|
});
|
|
3644
3645
|
}
|
|
3645
3646
|
addNodeEventListener() {
|
|
3646
|
-
const e = this, t =
|
|
3647
|
+
const e = this, t = vn((n = [], s = "mouseover") => {
|
|
3647
3648
|
if (s === "mouseout" || n.length === 0) {
|
|
3648
3649
|
e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", _e.opacity.default);
|
|
3649
3650
|
return;
|
|
@@ -3726,7 +3727,7 @@ class vh extends Y {
|
|
|
3726
3727
|
this.parent.selectAll("path.line,.node-group").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
|
|
3727
3728
|
}
|
|
3728
3729
|
}
|
|
3729
|
-
class
|
|
3730
|
+
class Eh extends Y {
|
|
3730
3731
|
constructor() {
|
|
3731
3732
|
super(...arguments), this.type = "grid", this.renderType = W.SVG;
|
|
3732
3733
|
}
|
|
@@ -3735,7 +3736,7 @@ class yh extends Y {
|
|
|
3735
3736
|
this.drawBackdrop(t, n), !(!t && !n) && (t && (S.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(e)), n && (S.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(e)));
|
|
3736
3737
|
}
|
|
3737
3738
|
drawXGrid(e) {
|
|
3738
|
-
const t = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a =
|
|
3739
|
+
const t = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a = Vn(s).tickSizeInner(-n).tickSizeOuter(0);
|
|
3739
3740
|
if (y(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
|
|
3740
3741
|
const l = this.services.cartesianScales.getDomainAxisPosition(), c = y(this.getOptions(), "axes", l, "ticks", "values");
|
|
3741
3742
|
c && a.tickValues(c);
|
|
@@ -3753,7 +3754,7 @@ class yh extends Y {
|
|
|
3753
3754
|
).call(a) : r.call(a), this.cleanGrid(r);
|
|
3754
3755
|
}
|
|
3755
3756
|
drawYGrid(e) {
|
|
3756
|
-
const t = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a =
|
|
3757
|
+
const t = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a = ta(s).tickSizeInner(-n).tickSizeOuter(0);
|
|
3757
3758
|
if (y(this.getOptions(), "grid", "y", "alignWithAxisTicks")) {
|
|
3758
3759
|
const l = this.services.cartesianScales.getRangeAxisPosition(), c = y(this.getOptions(), "axes", l, "ticks", "values");
|
|
3759
3760
|
c && a.tickValues(c);
|
|
@@ -3822,7 +3823,7 @@ class yh extends Y {
|
|
|
3822
3823
|
e.selectAll("text").remove(), e.select(".domain").remove();
|
|
3823
3824
|
}
|
|
3824
3825
|
}
|
|
3825
|
-
class
|
|
3826
|
+
class bh extends Y {
|
|
3826
3827
|
constructor() {
|
|
3827
3828
|
super(...arguments), this.type = "area", this.renderType = W.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
|
|
3828
3829
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3848,7 +3849,7 @@ class Eh extends Y {
|
|
|
3848
3849
|
render(e = !0) {
|
|
3849
3850
|
const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions();
|
|
3850
3851
|
let s = [0, 0];
|
|
3851
|
-
const { cartesianScales: a } = this.services, i = a.getOrientation(), r =
|
|
3852
|
+
const { cartesianScales: a } = this.services, i = a.getOrientation(), r = Nn().curve(this.services.curves.getD3Curve()).defined((A) => {
|
|
3852
3853
|
const L = a.getRangeIdentifier(), I = A[L];
|
|
3853
3854
|
return I != null;
|
|
3854
3855
|
}), l = this.model.getGroupedData(this.configs.groups), c = y(n, "bounds"), d = c && l && l.length === 1;
|
|
@@ -3884,7 +3885,7 @@ class Eh extends Y {
|
|
|
3884
3885
|
L = I[D[0]];
|
|
3885
3886
|
}
|
|
3886
3887
|
}
|
|
3887
|
-
|
|
3888
|
+
fs.appendOrUpdateLinearGradient({
|
|
3888
3889
|
svg: this.parent,
|
|
3889
3890
|
id: this.services.domUtils.generateElementIDString(
|
|
3890
3891
|
`${l[0].name.replace(" ", "")}_${this.gradient_id}`
|
|
@@ -3893,7 +3894,7 @@ class Eh extends Y {
|
|
|
3893
3894
|
x2: "0%",
|
|
3894
3895
|
y1: "0%",
|
|
3895
3896
|
y2: "100%",
|
|
3896
|
-
stops:
|
|
3897
|
+
stops: fs.getStops(s, L)
|
|
3897
3898
|
});
|
|
3898
3899
|
} else
|
|
3899
3900
|
this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
|
|
@@ -3938,7 +3939,7 @@ class Eh extends Y {
|
|
|
3938
3939
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
3939
3940
|
}
|
|
3940
3941
|
}
|
|
3941
|
-
class
|
|
3942
|
+
class Sh extends Y {
|
|
3942
3943
|
constructor() {
|
|
3943
3944
|
super(...arguments), this.type = "line", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
3944
3945
|
const { hoveredElement: t } = e.detail;
|
|
@@ -3966,7 +3967,7 @@ class bh extends Y {
|
|
|
3966
3967
|
a,
|
|
3967
3968
|
i,
|
|
3968
3969
|
n.getOrientation()
|
|
3969
|
-
), c = this.getOptions(), d =
|
|
3970
|
+
), c = this.getOptions(), d = Pn().x(r).y(l).curve(s.getD3Curve()).defined((g) => {
|
|
3970
3971
|
const m = n.getRangeIdentifier(g), E = g[m];
|
|
3971
3972
|
return E != null;
|
|
3972
3973
|
});
|
|
@@ -4020,9 +4021,9 @@ class bh extends Y {
|
|
|
4020
4021
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
4021
4022
|
}
|
|
4022
4023
|
}
|
|
4023
|
-
const
|
|
4024
|
-
function
|
|
4025
|
-
return o > e -
|
|
4024
|
+
const Fs = 5;
|
|
4025
|
+
function ml(o, e) {
|
|
4026
|
+
return o > e - Fs && o < e + Fs;
|
|
4026
4027
|
}
|
|
4027
4028
|
class Ca extends Y {
|
|
4028
4029
|
constructor() {
|
|
@@ -4048,7 +4049,7 @@ class Ca extends Y {
|
|
|
4048
4049
|
const s = this.parent, a = this.services.cartesianScales.getOrientation(), i = this.model.getDisplayData(), r = this.services.cartesianScales.getRangeScale(), [l, c] = r.range(), d = a === xe.HORIZONTAL ? n : t, p = S.appendOrSelect(s, "g.ruler").attr("aria-label", "ruler"), h = S.appendOrSelect(p, "line.ruler-line"), u = s.selectAll("[role=graphics-symbol]"), g = i.map((E) => ({
|
|
4049
4050
|
domainValue: this.services.cartesianScales.getDomainValue(E),
|
|
4050
4051
|
originalData: E
|
|
4051
|
-
})).filter((E) =>
|
|
4052
|
+
})).filter((E) => ml(E.domainValue, d));
|
|
4052
4053
|
if (this.pointsWithinLine && g.length === this.pointsWithinLine.length && g.map((E) => E.domainValue).join() === this.pointsWithinLine.map((E) => E.domainValue).join())
|
|
4053
4054
|
return this.pointsWithinLine = g, this.services.events.dispatchEvent(f.Tooltip.MOVE, {
|
|
4054
4055
|
mousePosition: [t, n]
|
|
@@ -4070,7 +4071,7 @@ class Ca extends Y {
|
|
|
4070
4071
|
const A = this.services.cartesianScales.getDomainValue(M);
|
|
4071
4072
|
return v.includes(A);
|
|
4072
4073
|
});
|
|
4073
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
4074
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !ba(this.elementsToHighlight, O) && this.hideRuler(), O.dispatch("mouseover"), this.elementsToHighlight = O, this.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
4074
4075
|
mousePosition: [t, n],
|
|
4075
4076
|
hoveredElement: h,
|
|
4076
4077
|
data: this.formatTooltipData(E)
|
|
@@ -4091,7 +4092,7 @@ class Ca extends Y {
|
|
|
4091
4092
|
this.isEventListenerAdded = !0;
|
|
4092
4093
|
const e = this, t = this.services.domUtils.getHolder(), n = this.model.getDisplayData();
|
|
4093
4094
|
let s = function(a) {
|
|
4094
|
-
const i =
|
|
4095
|
+
const i = Ft(a, e.parent.node());
|
|
4095
4096
|
e.showRuler(a, i);
|
|
4096
4097
|
};
|
|
4097
4098
|
if (n.length > 100) {
|
|
@@ -4112,7 +4113,7 @@ class Ca extends Y {
|
|
|
4112
4113
|
this.backdrop = S.appendOrSelect(e, "svg.chart-grid-backdrop");
|
|
4113
4114
|
}
|
|
4114
4115
|
}
|
|
4115
|
-
class
|
|
4116
|
+
class zn extends Y {
|
|
4116
4117
|
constructor() {
|
|
4117
4118
|
super(...arguments), this.type = "scatter", this.renderType = W.SVG, this.handleChartHolderOnHover = () => {
|
|
4118
4119
|
if (!this.parent)
|
|
@@ -4387,10 +4388,10 @@ class _a extends Y {
|
|
|
4387
4388
|
let h;
|
|
4388
4389
|
switch (t) {
|
|
4389
4390
|
case B.LEFT:
|
|
4390
|
-
h =
|
|
4391
|
+
h = ta;
|
|
4391
4392
|
break;
|
|
4392
4393
|
case B.BOTTOM:
|
|
4393
|
-
h =
|
|
4394
|
+
h = Vn;
|
|
4394
4395
|
break;
|
|
4395
4396
|
case B.RIGHT:
|
|
4396
4397
|
h = ti;
|
|
@@ -4408,17 +4409,17 @@ class _a extends Y {
|
|
|
4408
4409
|
g.attr("aria-hidden", !0);
|
|
4409
4410
|
return;
|
|
4410
4411
|
}
|
|
4411
|
-
const M = y(E, "scaleType"), A = y(n, "data", "loading"), L = y(E, "ticks", "number"), I = y(E, "ticks", "values"), D = y(E, "truncation", "type"),
|
|
4412
|
+
const M = y(E, "scaleType"), A = y(n, "data", "loading"), L = y(E, "ticks", "number"), I = y(E, "ticks", "values"), D = y(E, "truncation", "type"), X = y(E, "truncation", "threshold"), N = y(E, "truncation", "numCharacter"), _ = L !== null, w = y(n, "timeScale"), U = S.appendOrSelect(m, "g.tick"), V = S.appendOrSelect(U, "text").text("0"), Q = S.getSVGElementSize(V.node(), {
|
|
4412
4413
|
useBBox: !0
|
|
4413
4414
|
}).height;
|
|
4414
4415
|
U.remove();
|
|
4415
4416
|
const ve = this.scaleType || E.scaleType || he.LINEAR, K = h(p).tickSizeOuter(0);
|
|
4416
4417
|
if (p.ticks) {
|
|
4417
4418
|
let H;
|
|
4418
|
-
if (_ ? H = L : (H =
|
|
4419
|
+
if (_ ? H = L : (H = ot.ticks.number, O && (H = this.getNumberOfFittingTicks(
|
|
4419
4420
|
r,
|
|
4420
4421
|
Q,
|
|
4421
|
-
|
|
4422
|
+
ot.ticks.verticalSpaceRatio
|
|
4422
4423
|
))), p.ticks().length === 1 && p.ticks()[0] === 0 && (H = 0), K.ticks(H), v)
|
|
4423
4424
|
if (!p.ticks(H).length)
|
|
4424
4425
|
K.tickValues([]);
|
|
@@ -4432,12 +4433,12 @@ class _a extends Y {
|
|
|
4432
4433
|
let z;
|
|
4433
4434
|
const q = y(E, "ticks", "formatter");
|
|
4434
4435
|
if (v) {
|
|
4435
|
-
const H =
|
|
4436
|
+
const H = gn(
|
|
4436
4437
|
K.tickValues(),
|
|
4437
4438
|
y(n, "timeScale", "timeInterval")
|
|
4438
4439
|
);
|
|
4439
|
-
q === null ? z = (J, ae) =>
|
|
4440
|
-
const ie =
|
|
4440
|
+
q === null ? z = (J, ae) => mn(J, ae, K.tickValues(), H, w) : z = (J, ae) => {
|
|
4441
|
+
const ie = mn(
|
|
4441
4442
|
J,
|
|
4442
4443
|
ae,
|
|
4443
4444
|
K.tickValues(),
|
|
@@ -4490,7 +4491,7 @@ class _a extends Y {
|
|
|
4490
4491
|
let ae;
|
|
4491
4492
|
switch (t) {
|
|
4492
4493
|
case B.LEFT:
|
|
4493
|
-
J ===
|
|
4494
|
+
J === ys.RIGHT ? H.attr("transform", "rotate(90)").attr("y", 0).attr("x", p.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : H.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(p.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
4494
4495
|
break;
|
|
4495
4496
|
case B.BOTTOM:
|
|
4496
4497
|
H.attr(
|
|
@@ -4499,7 +4500,7 @@ class _a extends Y {
|
|
|
4499
4500
|
).style("text-anchor", "middle");
|
|
4500
4501
|
break;
|
|
4501
4502
|
case B.RIGHT:
|
|
4502
|
-
J ===
|
|
4503
|
+
J === ys.LEFT ? H.attr("transform", "rotate(-90)").attr("y", i).attr("x", -(p.range()[0] / 2)).style("text-anchor", "middle") : H.attr("transform", "rotate(90)").attr("y", -i).attr("x", p.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
4503
4504
|
break;
|
|
4504
4505
|
case B.TOP:
|
|
4505
4506
|
ae = S.getSVGElementSize(H, {
|
|
@@ -4512,7 +4513,7 @@ class _a extends Y {
|
|
|
4512
4513
|
}
|
|
4513
4514
|
}
|
|
4514
4515
|
if (v) {
|
|
4515
|
-
const H =
|
|
4516
|
+
const H = gn(
|
|
4516
4517
|
K.tickValues(),
|
|
4517
4518
|
y(n, "timeScale", "timeInterval")
|
|
4518
4519
|
), J = w.showDayName, ae = g;
|
|
@@ -4534,11 +4535,11 @@ class _a extends Y {
|
|
|
4534
4535
|
if (m.call(K), t === B.BOTTOM || t === B.TOP) {
|
|
4535
4536
|
let H = !1;
|
|
4536
4537
|
const J = y(E, "ticks", "rotation");
|
|
4537
|
-
if (J ===
|
|
4538
|
+
if (J === tn.ALWAYS)
|
|
4538
4539
|
H = !0;
|
|
4539
|
-
else if (J ===
|
|
4540
|
+
else if (J === tn.NEVER)
|
|
4540
4541
|
H = !1;
|
|
4541
|
-
else if (!J || J ===
|
|
4542
|
+
else if (!J || J === tn.AUTO)
|
|
4542
4543
|
if (p.step)
|
|
4543
4544
|
H = m.selectAll("g.tick text").nodes().some(
|
|
4544
4545
|
(ie) => S.getSVGElementSize(ie, {
|
|
@@ -4557,19 +4558,19 @@ class _a extends Y {
|
|
|
4557
4558
|
}), ae.remove();
|
|
4558
4559
|
}
|
|
4559
4560
|
H ? (_ || (K.ticks(
|
|
4560
|
-
this.getNumberOfFittingTicks(i, Q,
|
|
4561
|
+
this.getNumberOfFittingTicks(i, Q, ot.ticks.horizontalSpaceRatio)
|
|
4561
4562
|
), m.call(K), g.call(K)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === B.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
4562
4563
|
}
|
|
4563
|
-
if (A ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (H) => H), m.selectAll("g.tick").attr("aria-label", (H) => H), D !==
|
|
4564
|
+
if (A ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (H) => H), m.selectAll("g.tick").attr("aria-label", (H) => H), D !== lt.NONE && M === he.LABELS && !I) {
|
|
4564
4565
|
const H = this.services.cartesianScales.getScaleDomain(t);
|
|
4565
4566
|
if (H.length > 0) {
|
|
4566
4567
|
const J = a.select(`g.axis.${t} g.ticks g.tick`).html();
|
|
4567
4568
|
l.selectAll("g.ticks g.tick").html(J);
|
|
4568
4569
|
const ae = this;
|
|
4569
4570
|
l.selectAll("g.tick text").data(H).text(function(ie) {
|
|
4570
|
-
return ie.length >
|
|
4571
|
+
return ie.length > X ? (ae.truncation[t] = !0, St(ie, D, N)) : ie;
|
|
4571
4572
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(H).text(function(ie) {
|
|
4572
|
-
return ie.length >
|
|
4573
|
+
return ie.length > X ? St(ie, D, N) : ie;
|
|
4573
4574
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(H);
|
|
4574
4575
|
}
|
|
4575
4576
|
}
|
|
@@ -4619,14 +4620,14 @@ class _a extends Y {
|
|
|
4619
4620
|
}
|
|
4620
4621
|
getNumberOfFittingTicks(e, t, n) {
|
|
4621
4622
|
const s = Math.floor(e / (t * n));
|
|
4622
|
-
return
|
|
4623
|
+
return Ea(s, 2, ot.ticks.number);
|
|
4623
4624
|
}
|
|
4624
4625
|
destroy() {
|
|
4625
4626
|
const e = this.getComponentContainer(), { position: t } = this.configs;
|
|
4626
4627
|
S.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick text").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
4627
4628
|
}
|
|
4628
4629
|
}
|
|
4629
|
-
class
|
|
4630
|
+
class fl extends _a {
|
|
4630
4631
|
constructor(e, t, n) {
|
|
4631
4632
|
super(e, t, n);
|
|
4632
4633
|
}
|
|
@@ -4654,7 +4655,7 @@ class ml extends _a {
|
|
|
4654
4655
|
u = -(d / 2), g = p / 2 - 2, a.truncation[t] && (u = -d, h.attr("transform", "rotate(-45)"));
|
|
4655
4656
|
break;
|
|
4656
4657
|
}
|
|
4657
|
-
h.attr("x", u -
|
|
4658
|
+
h.attr("x", u - ot.hover.rectanglePadding).attr("y", g).attr("width", d + ot.hover.rectanglePadding * 2).attr("height", p).lower();
|
|
4658
4659
|
}), this.addEventListeners();
|
|
4659
4660
|
}
|
|
4660
4661
|
addEventListeners() {
|
|
@@ -4730,7 +4731,7 @@ class ml extends _a {
|
|
|
4730
4731
|
S.appendOrSelect(e, `g.axis.${t}`).selectAll("g.tick.tick-hover").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("focus", null).on("blur", null);
|
|
4731
4732
|
}
|
|
4732
4733
|
}
|
|
4733
|
-
class
|
|
4734
|
+
class Oh extends Y {
|
|
4734
4735
|
constructor() {
|
|
4735
4736
|
super(...arguments), this.type = "2D-axes", this.renderType = W.SVG, this.children = {}, this.thresholds = [], this.margins = {
|
|
4736
4737
|
top: 0,
|
|
@@ -4750,7 +4751,7 @@ class Sh extends Y {
|
|
|
4750
4751
|
position: l,
|
|
4751
4752
|
axes: this.configs.axes,
|
|
4752
4753
|
margins: this.margins
|
|
4753
|
-
}, d = this.model.axisFlavor === Li.DEFAULT ? new _a(this.model, this.services, c) : new
|
|
4754
|
+
}, d = this.model.axisFlavor === Li.DEFAULT ? new _a(this.model, this.services, c) : new fl(this.model, this.services, c);
|
|
4754
4755
|
d.setModel(this.model), d.setServices(this.services), d.setParent(this.parent), this.children[l] = d;
|
|
4755
4756
|
}
|
|
4756
4757
|
}), Object.keys(this.children).forEach((r) => {
|
|
@@ -4784,7 +4785,7 @@ class Sh extends Y {
|
|
|
4784
4785
|
}), this.render(!0));
|
|
4785
4786
|
}
|
|
4786
4787
|
}
|
|
4787
|
-
class
|
|
4788
|
+
class vl extends Y {
|
|
4788
4789
|
constructor() {
|
|
4789
4790
|
super(...arguments), this.type = "skeleton";
|
|
4790
4791
|
}
|
|
@@ -4796,13 +4797,13 @@ class fl extends Y {
|
|
|
4796
4797
|
t ? this.renderSkeleton(t) : this.removeSkeleton();
|
|
4797
4798
|
}
|
|
4798
4799
|
renderSkeleton(e) {
|
|
4799
|
-
if (this.configs.skeleton ===
|
|
4800
|
+
if (this.configs.skeleton === wt.GRID)
|
|
4800
4801
|
this.renderGridSkeleton(e);
|
|
4801
|
-
else if (this.configs.skeleton ===
|
|
4802
|
+
else if (this.configs.skeleton === wt.VERT_OR_HORIZ)
|
|
4802
4803
|
this.renderVertOrHorizSkeleton(e);
|
|
4803
|
-
else if (this.configs.skeleton ===
|
|
4804
|
+
else if (this.configs.skeleton === wt.PIE)
|
|
4804
4805
|
this.renderPieSkeleton(e);
|
|
4805
|
-
else if (this.configs.skeleton ===
|
|
4806
|
+
else if (this.configs.skeleton === wt.DONUT)
|
|
4806
4807
|
this.renderDonutSkeleton(e);
|
|
4807
4808
|
else
|
|
4808
4809
|
throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
|
|
@@ -4895,7 +4896,7 @@ class fl extends Y {
|
|
|
4895
4896
|
this.parent.select(".chart-skeleton").remove();
|
|
4896
4897
|
}
|
|
4897
4898
|
}
|
|
4898
|
-
class
|
|
4899
|
+
class xh extends Y {
|
|
4899
4900
|
constructor() {
|
|
4900
4901
|
super(...arguments), this.type = "boxplot", this.renderType = W.SVG;
|
|
4901
4902
|
}
|
|
@@ -5008,7 +5009,7 @@ class Oh extends Y {
|
|
|
5008
5009
|
const w = g.getDomainValue(_[s]) - M / 4, U = w + M / 2, V = g.getRangeValue(_.whiskers.max), Q = g.getRangeValue(_.whiskers.max);
|
|
5009
5010
|
return ye({ x0: w, x1: U, y0: V, y1: Q }, m);
|
|
5010
5011
|
});
|
|
5011
|
-
const
|
|
5012
|
+
const X = D.selectAll("circle.outlier").data(
|
|
5012
5013
|
(_) => _.outliers.map((w) => ({
|
|
5013
5014
|
min: _.whiskers.min,
|
|
5014
5015
|
max: _.whiskers.max,
|
|
@@ -5016,9 +5017,9 @@ class Oh extends Y {
|
|
|
5016
5017
|
value: w
|
|
5017
5018
|
}))
|
|
5018
5019
|
);
|
|
5019
|
-
|
|
5020
|
-
const N =
|
|
5021
|
-
|
|
5020
|
+
X.exit().remove();
|
|
5021
|
+
const N = X.enter().append("circle");
|
|
5022
|
+
X.merge(N).attr("r", Te.circle.radius).attr(
|
|
5022
5023
|
"class",
|
|
5023
5024
|
() => this.model.getColorClassName({
|
|
5024
5025
|
classNameTypes: [F.FILL, F.STROKE],
|
|
@@ -5155,7 +5156,7 @@ class Oh extends Y {
|
|
|
5155
5156
|
});
|
|
5156
5157
|
}
|
|
5157
5158
|
}
|
|
5158
|
-
class
|
|
5159
|
+
class Th extends Y {
|
|
5159
5160
|
constructor() {
|
|
5160
5161
|
super(...arguments), this.type = "zero-line", this.renderType = W.SVG;
|
|
5161
5162
|
}
|
|
@@ -5188,12 +5189,12 @@ class xh extends Y {
|
|
|
5188
5189
|
).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
|
|
5189
5190
|
}
|
|
5190
5191
|
}
|
|
5191
|
-
class
|
|
5192
|
+
class Lh extends zn {
|
|
5192
5193
|
constructor() {
|
|
5193
5194
|
super(...arguments), this.type = "bubble", this.renderType = W.SVG;
|
|
5194
5195
|
}
|
|
5195
5196
|
getRadiusScale(e) {
|
|
5196
|
-
const t = this.getOptions(), { radiusMapsTo: n } = t.bubble, s = e.data(), a = s.map((c) => c[n]).filter((c) => c), i = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = a.length > 0, l = r ?
|
|
5197
|
+
const t = this.getOptions(), { radiusMapsTo: n } = t.bubble, s = e.data(), a = s.map((c) => c[n]).filter((c) => c), i = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = a.length > 0, l = r ? Wt(a) : [1, 1];
|
|
5197
5198
|
return Ze().domain(l).range(r ? t.bubble.radiusRange(i, s) : [4, 4]);
|
|
5198
5199
|
}
|
|
5199
5200
|
styleCircles(e, t) {
|
|
@@ -5236,7 +5237,7 @@ class Th extends Fn {
|
|
|
5236
5237
|
];
|
|
5237
5238
|
}
|
|
5238
5239
|
}
|
|
5239
|
-
class
|
|
5240
|
+
class Ah extends Y {
|
|
5240
5241
|
constructor() {
|
|
5241
5242
|
super(...arguments), this.type = "bullet", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
5242
5243
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -5428,12 +5429,12 @@ class Lh extends Y {
|
|
|
5428
5429
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
5429
5430
|
}
|
|
5430
5431
|
}
|
|
5431
|
-
function
|
|
5432
|
+
function yl(o) {
|
|
5432
5433
|
return o;
|
|
5433
5434
|
}
|
|
5434
|
-
function
|
|
5435
|
+
function El(o) {
|
|
5435
5436
|
if (o == null)
|
|
5436
|
-
return
|
|
5437
|
+
return yl;
|
|
5437
5438
|
var e, t, n = o.scale[0], s = o.scale[1], a = o.translate[0], i = o.translate[1];
|
|
5438
5439
|
return function(r, l) {
|
|
5439
5440
|
l || (e = t = 0);
|
|
@@ -5443,26 +5444,26 @@ function yl(o) {
|
|
|
5443
5444
|
return p;
|
|
5444
5445
|
};
|
|
5445
5446
|
}
|
|
5446
|
-
function
|
|
5447
|
+
function bl(o, e) {
|
|
5447
5448
|
for (var t, n = o.length, s = n - e; s < --n; )
|
|
5448
5449
|
t = o[s], o[s++] = o[n], o[n] = t;
|
|
5449
5450
|
}
|
|
5450
|
-
function
|
|
5451
|
+
function Sl(o, e) {
|
|
5451
5452
|
return typeof e == "string" && (e = o.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
|
|
5452
|
-
return
|
|
5453
|
-
}) } :
|
|
5453
|
+
return Ws(o, t);
|
|
5454
|
+
}) } : Ws(o, e);
|
|
5454
5455
|
}
|
|
5455
|
-
function
|
|
5456
|
-
var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a =
|
|
5456
|
+
function Ws(o, e) {
|
|
5457
|
+
var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = Fn(o, e);
|
|
5457
5458
|
return t == null && n == null ? { type: "Feature", properties: s, geometry: a } : n == null ? { type: "Feature", id: t, properties: s, geometry: a } : { type: "Feature", id: t, bbox: n, properties: s, geometry: a };
|
|
5458
5459
|
}
|
|
5459
|
-
function
|
|
5460
|
-
var t =
|
|
5460
|
+
function Fn(o, e) {
|
|
5461
|
+
var t = El(o.transform), n = o.arcs;
|
|
5461
5462
|
function s(d, p) {
|
|
5462
5463
|
p.length && p.pop();
|
|
5463
5464
|
for (var h = n[d < 0 ? ~d : d], u = 0, g = h.length; u < g; ++u)
|
|
5464
5465
|
p.push(t(h[u], u));
|
|
5465
|
-
d < 0 &&
|
|
5466
|
+
d < 0 && bl(p, g);
|
|
5466
5467
|
}
|
|
5467
5468
|
function a(d) {
|
|
5468
5469
|
return t(d);
|
|
@@ -5510,7 +5511,7 @@ function Wn(o, e) {
|
|
|
5510
5511
|
}
|
|
5511
5512
|
return c(e);
|
|
5512
5513
|
}
|
|
5513
|
-
function
|
|
5514
|
+
function Ol(o, e) {
|
|
5514
5515
|
var t = {}, n = {}, s = {}, a = [], i = -1;
|
|
5515
5516
|
e.forEach(function(c, d) {
|
|
5516
5517
|
var p = o.arcs[c < 0 ? ~c : c], h;
|
|
@@ -5552,15 +5553,15 @@ function Sl(o, e) {
|
|
|
5552
5553
|
t[c < 0 ? ~c : c] || a.push([c]);
|
|
5553
5554
|
}), a;
|
|
5554
5555
|
}
|
|
5555
|
-
function
|
|
5556
|
+
function xl(o) {
|
|
5556
5557
|
for (var e = -1, t = o.length, n, s = o[t - 1], a = 0; ++e < t; )
|
|
5557
5558
|
n = s, s = o[e], a += n[0] * s[1] - n[1] * s[0];
|
|
5558
5559
|
return Math.abs(a);
|
|
5559
5560
|
}
|
|
5560
|
-
function
|
|
5561
|
-
return
|
|
5561
|
+
function Tl(o) {
|
|
5562
|
+
return Fn(o, Ll.apply(this, arguments));
|
|
5562
5563
|
}
|
|
5563
|
-
function
|
|
5564
|
+
function Ll(o, e) {
|
|
5564
5565
|
var t = {}, n = [], s = [];
|
|
5565
5566
|
e.forEach(a);
|
|
5566
5567
|
function a(l) {
|
|
@@ -5584,7 +5585,7 @@ function Tl(o, e) {
|
|
|
5584
5585
|
}), n.push(l);
|
|
5585
5586
|
}
|
|
5586
5587
|
function r(l) {
|
|
5587
|
-
return
|
|
5588
|
+
return xl(Fn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
|
|
5588
5589
|
}
|
|
5589
5590
|
return n.forEach(function(l) {
|
|
5590
5591
|
if (!l._) {
|
|
@@ -5610,7 +5611,7 @@ function Tl(o, e) {
|
|
|
5610
5611
|
t[v < 0 ? ~v : v].length < 2 && c.push(v);
|
|
5611
5612
|
});
|
|
5612
5613
|
});
|
|
5613
|
-
}), c =
|
|
5614
|
+
}), c = Ol(o, c), (d = c.length) > 1)
|
|
5614
5615
|
for (var p = 1, h = r(c[0]), u, g; p < d; ++p)
|
|
5615
5616
|
(u = r(c[p])) > h && (g = c[0], c[0] = c[p], c[p] = g, h = u);
|
|
5616
5617
|
return c;
|
|
@@ -5619,7 +5620,7 @@ function Tl(o, e) {
|
|
|
5619
5620
|
})
|
|
5620
5621
|
};
|
|
5621
5622
|
}
|
|
5622
|
-
class
|
|
5623
|
+
class Mh extends Ca {
|
|
5623
5624
|
constructor() {
|
|
5624
5625
|
super(...arguments), this.type = "ruler-binned", this.renderType = W.SVG;
|
|
5625
5626
|
}
|
|
@@ -5634,7 +5635,7 @@ class Ah extends Ca {
|
|
|
5634
5635
|
return !0;
|
|
5635
5636
|
});
|
|
5636
5637
|
if (E.size() > 0) {
|
|
5637
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !
|
|
5638
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !ba(this.elementsToHighlight, E) && this.hideRuler(), E.dispatch("mouseover"), this.elementsToHighlight = E;
|
|
5638
5639
|
const v = x(E.nodes()[0]).datum(), O = parseFloat(ce(v, "data.x0")), T = parseFloat(ce(v, "data.x1")), M = this.model.getActiveDataGroupNames(), A = M.reverse().map((I) => ({
|
|
5639
5640
|
label: I,
|
|
5640
5641
|
value: ce(v, `data.${I}`),
|
|
@@ -5657,7 +5658,7 @@ class Ah extends Ca {
|
|
|
5657
5658
|
{
|
|
5658
5659
|
label: ce(a, "tooltip.totalLabel") || "Total",
|
|
5659
5660
|
value: M.reduce(
|
|
5660
|
-
(D,
|
|
5661
|
+
(D, X) => D + parseFloat(ce(v, `data.${X}`)),
|
|
5661
5662
|
0
|
|
5662
5663
|
)
|
|
5663
5664
|
}
|
|
@@ -5672,52 +5673,52 @@ class Ah extends Ca {
|
|
|
5672
5673
|
this.hideRuler();
|
|
5673
5674
|
}
|
|
5674
5675
|
}
|
|
5675
|
-
class
|
|
5676
|
+
class wh extends Ca {
|
|
5676
5677
|
formatTooltipData(e) {
|
|
5677
5678
|
return e.reverse();
|
|
5678
5679
|
}
|
|
5679
5680
|
}
|
|
5680
|
-
const
|
|
5681
|
-
const t = o.x, n = o.y, s = e.x, a = e.y, i =
|
|
5681
|
+
const Ch = (o, e) => {
|
|
5682
|
+
const t = o.x, n = o.y, s = e.x, a = e.y, i = Bn();
|
|
5682
5683
|
return i.moveTo(t, n), i.lineTo(s, a), i.toString();
|
|
5683
|
-
},
|
|
5684
|
-
const n = o.x, s = o.y, a = e.x, i = e.y, r =
|
|
5684
|
+
}, _h = (o, e, t = 0.5) => {
|
|
5685
|
+
const n = o.x, s = o.y, a = e.x, i = e.y, r = Bn();
|
|
5685
5686
|
return r.moveTo(n, s), r.lineTo(n + (a - n) * t, s), r.lineTo(n + (a - n) * t, i), r.lineTo(a, i), r.toString();
|
|
5686
|
-
},
|
|
5687
|
-
const i = o.x, r = o.y, l = e.x, c = e.y, d =
|
|
5687
|
+
}, Ih = (o, e, t, n, s, a) => {
|
|
5688
|
+
const i = o.x, r = o.y, l = e.x, c = e.y, d = Bn();
|
|
5688
5689
|
return d.moveTo(i, r), d.bezierCurveTo(t, n, s, a, l, c), d.toString();
|
|
5689
|
-
},
|
|
5690
|
+
}, kh = {
|
|
5690
5691
|
d: "M7 0v8L0 4z",
|
|
5691
5692
|
height: 8,
|
|
5692
5693
|
width: 7.5,
|
|
5693
5694
|
id: "arrowLeft"
|
|
5694
|
-
},
|
|
5695
|
+
}, Rh = {
|
|
5695
5696
|
d: "M0 0v8l7-4z",
|
|
5696
5697
|
height: 8,
|
|
5697
5698
|
width: 7.5,
|
|
5698
5699
|
id: "arrowRight"
|
|
5699
|
-
},
|
|
5700
|
+
}, Dh = {
|
|
5700
5701
|
d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
|
|
5701
5702
|
height: 10,
|
|
5702
5703
|
width: 10,
|
|
5703
5704
|
id: "circle"
|
|
5704
|
-
},
|
|
5705
|
+
}, Nh = {
|
|
5705
5706
|
d: "M5.03517654-1e-7l4.99999996 5-4.99999996 5-5-5L2.4517844 2.58339204z",
|
|
5706
5707
|
height: 10,
|
|
5707
5708
|
width: 10,
|
|
5708
5709
|
id: "diamond"
|
|
5709
|
-
},
|
|
5710
|
+
}, Ph = {
|
|
5710
5711
|
d: "M0 .44974747h8v8H0v-3.6830331z",
|
|
5711
5712
|
height: 9,
|
|
5712
5713
|
width: 8,
|
|
5713
5714
|
id: "square"
|
|
5714
|
-
},
|
|
5715
|
+
}, Vh = {
|
|
5715
5716
|
d: "M0 0h1.5v8H0z",
|
|
5716
5717
|
height: 8,
|
|
5717
5718
|
width: 2,
|
|
5718
5719
|
id: "tee"
|
|
5719
5720
|
};
|
|
5720
|
-
class
|
|
5721
|
+
class Bh extends ul {
|
|
5721
5722
|
constructor(e, t, n) {
|
|
5722
5723
|
super(e, t, n), this.type = "color-legend", this.renderType = W.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
|
|
5723
5724
|
const s = this.getComponentContainer(), { width: a } = S.getSVGElementSize(s, {
|
|
@@ -5752,7 +5753,7 @@ class Vh extends hl {
|
|
|
5752
5753
|
n.html("");
|
|
5753
5754
|
return;
|
|
5754
5755
|
}
|
|
5755
|
-
const d = !
|
|
5756
|
+
const d = !Qs(a), p = Ka(this.model.getDisplayData()), h = !(s <= oe.color.barWidth), u = h ? oe.color.barWidth : s, g = S.appendOrSelect(n, "g.legend"), m = S.appendOrSelect(g, "g.legend-axis");
|
|
5756
5757
|
if (l) {
|
|
5757
5758
|
const D = S.appendOrSelect(n, "g.legend-title");
|
|
5758
5759
|
S.appendOrSelect(D, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
|
|
@@ -5766,15 +5767,15 @@ class Vh extends hl {
|
|
|
5766
5767
|
else
|
|
5767
5768
|
for (let D = 1; D < O + 1; D++)
|
|
5768
5769
|
v.push(
|
|
5769
|
-
i ===
|
|
5770
|
+
i === nn.LINEAR ? `stop-color-${E}-${r}-${D}` : `fill-${E}-${r}-${D}`
|
|
5770
5771
|
);
|
|
5771
|
-
const T =
|
|
5772
|
+
const T = na(p[0], p[1]), M = si(T, 3), A = Ze().domain(p).range([0, u]), L = Vn(A).tickSize(0).tickValues(M);
|
|
5772
5773
|
let I;
|
|
5773
5774
|
switch (i) {
|
|
5774
|
-
case
|
|
5775
|
+
case nn.LINEAR:
|
|
5775
5776
|
this.drawLinear(v, g, u);
|
|
5776
5777
|
break;
|
|
5777
|
-
case
|
|
5778
|
+
case nn.QUANTIZE:
|
|
5778
5779
|
I = this.drawQuantize(
|
|
5779
5780
|
v,
|
|
5780
5781
|
E,
|
|
@@ -5802,14 +5803,14 @@ class Vh extends hl {
|
|
|
5802
5803
|
*/
|
|
5803
5804
|
drawQuantize(e, t, n, s, a) {
|
|
5804
5805
|
!n && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5805
|
-
const i =
|
|
5806
|
+
const i = Gn().domain(e).range([0, a]);
|
|
5806
5807
|
return S.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height", oe.color.barHeight).attr("class", (l) => l).attr("fill", (l) => l), (!n && t) === "mono" ? i.bandwidth() - 1 : 0;
|
|
5807
5808
|
}
|
|
5808
5809
|
destroy() {
|
|
5809
5810
|
this.chartType === "heatmap" && this.services.events.removeEventListener(f.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
|
|
5810
5811
|
}
|
|
5811
5812
|
}
|
|
5812
|
-
class
|
|
5813
|
+
class Gh extends hl {
|
|
5813
5814
|
constructor() {
|
|
5814
5815
|
super(...arguments), this.type = "meter-title", this.renderType = W.SVG;
|
|
5815
5816
|
}
|
|
@@ -5906,16 +5907,16 @@ class Bh extends dl {
|
|
|
5906
5907
|
*/
|
|
5907
5908
|
getStatusIconPathString(e) {
|
|
5908
5909
|
switch (e) {
|
|
5909
|
-
case
|
|
5910
|
+
case sn.SUCCESS:
|
|
5910
5911
|
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";
|
|
5911
|
-
case
|
|
5912
|
+
case sn.DANGER:
|
|
5912
5913
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
5913
|
-
case
|
|
5914
|
+
case sn.WARNING:
|
|
5914
5915
|
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";
|
|
5915
5916
|
}
|
|
5916
5917
|
}
|
|
5917
5918
|
}
|
|
5918
|
-
class
|
|
5919
|
+
class Wn extends Y {
|
|
5919
5920
|
// Gets the correct width for bars based on options & configurations
|
|
5920
5921
|
getBarWidth() {
|
|
5921
5922
|
const e = this.getOptions();
|
|
@@ -5941,7 +5942,7 @@ class jn extends Y {
|
|
|
5941
5942
|
return !1;
|
|
5942
5943
|
}
|
|
5943
5944
|
}
|
|
5944
|
-
class
|
|
5945
|
+
class Hh extends Y {
|
|
5945
5946
|
constructor() {
|
|
5946
5947
|
super(...arguments), this.type = "circle-pack", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
5947
5948
|
const { hoveredElement: t } = e.detail;
|
|
@@ -5972,7 +5973,7 @@ class Gh extends Y {
|
|
|
5972
5973
|
let a = this.model.getDisplayData();
|
|
5973
5974
|
const i = this.model.hasParentNode(), r = this.model.getHierarchyLevel(), l = this.getOptions(), c = y(l, "canvasZoom", "enabled");
|
|
5974
5975
|
i && y(a, 0, "children") && (a = y(a, 0, "children"));
|
|
5975
|
-
const d =
|
|
5976
|
+
const d = Hn({ children: a }).sum((m) => m.value).sort((m, E) => E.value - m.value), h = ai().size([n, s]).padding((m) => m.depth >= 1 ? mt.padding.children + 3 : mt.padding.mainGroup + 3)(d).descendants().splice(1).filter((m) => m.depth <= r), u = t.selectAll("circle.node").data(h);
|
|
5976
5977
|
u.exit().attr("width", 0).attr("height", 0).remove();
|
|
5977
5978
|
const g = u.enter().append("circle").classed("node", !0);
|
|
5978
5979
|
g.merge(u).attr("class", (m) => {
|
|
@@ -5987,7 +5988,7 @@ class Gh extends Y {
|
|
|
5987
5988
|
transition: m,
|
|
5988
5989
|
name: "circlepack-leaf-update-enter"
|
|
5989
5990
|
})
|
|
5990
|
-
).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity", mt.circles.fillOpacity), c === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, g,
|
|
5991
|
+
).attr("r", (m) => m.r).attr("opacity", 1).attr("fill-opacity", mt.circles.fillOpacity), c === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, g, Mt), this.setBackgroundListeners()), i || this.addLegendListeners(), this.addEventListeners();
|
|
5991
5992
|
}
|
|
5992
5993
|
// turn off the highlight class on children circles
|
|
5993
5994
|
unhighlightChildren(e) {
|
|
@@ -6012,7 +6013,7 @@ class Gh extends Y {
|
|
|
6012
6013
|
setBackgroundListeners() {
|
|
6013
6014
|
const e = x(this.services.domUtils.getMainContainer()), t = this, n = this.parent.selectAll("circle.node");
|
|
6014
6015
|
e.on("click", () => {
|
|
6015
|
-
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(n,
|
|
6016
|
+
t.focal = null, t.model.updateHierarchyLevel(2), e.classed("zoomed-in", !1), t.services.canvasZoom.zoomOut(n, Mt);
|
|
6016
6017
|
});
|
|
6017
6018
|
}
|
|
6018
6019
|
// Zoom icon to be appended to the label in the tooltip
|
|
@@ -6098,10 +6099,10 @@ class Gh extends Y {
|
|
|
6098
6099
|
const s = x(this), a = s.classed("non-focal"), i = y(e.model.getOptions(), "canvasZoom", "enabled");
|
|
6099
6100
|
if (i && e.model.getHierarchyLevel() > 2) {
|
|
6100
6101
|
const r = e.parent.selectAll("circle.node");
|
|
6101
|
-
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r,
|
|
6102
|
+
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !1), e.focal = null, e.model.updateHierarchyLevel(2), e.services.canvasZoom.zoomOut(r, Mt);
|
|
6102
6103
|
} else if (n.depth === 2 && n.children && !a && i) {
|
|
6103
6104
|
const r = e.parent.selectAll("circle.node");
|
|
6104
|
-
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = n, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(n, r,
|
|
6105
|
+
x(e.services.domUtils.getMainContainer()).classed("zoomed-in", !0), e.focal = n, e.model.updateHierarchyLevel(3), e.services.canvasZoom.zoomIn(n, r, Mt), t.stopPropagation();
|
|
6105
6106
|
}
|
|
6106
6107
|
e.services.events.dispatchEvent(f.CirclePack.CIRCLE_CLICK, {
|
|
6107
6108
|
event: t,
|
|
@@ -6116,11 +6117,11 @@ class Gh extends Y {
|
|
|
6116
6117
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
|
|
6117
6118
|
}
|
|
6118
6119
|
}
|
|
6119
|
-
function
|
|
6120
|
+
function Al(o, e) {
|
|
6120
6121
|
const t = ri(this._current, o);
|
|
6121
6122
|
return (n) => (this._current = t(n), e(this._current));
|
|
6122
6123
|
}
|
|
6123
|
-
class
|
|
6124
|
+
class Ml extends Y {
|
|
6124
6125
|
constructor() {
|
|
6125
6126
|
super(...arguments), this.type = "pie", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
6126
6127
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -6168,38 +6169,38 @@ class Al extends Y {
|
|
|
6168
6169
|
})
|
|
6169
6170
|
).attr("opacity", 1).attr("role", j.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
|
|
6170
6171
|
"aria-label",
|
|
6171
|
-
(w) => `${w[i]}, ${
|
|
6172
|
+
(w) => `${w[i]}, ${Qt(w.data[i], r, i) + "%"}`
|
|
6172
6173
|
).attrTween("d", function(w) {
|
|
6173
|
-
return
|
|
6174
|
+
return Al.bind(this)(w, t.arc);
|
|
6174
6175
|
});
|
|
6175
6176
|
const m = s.pie.labels.enabled, E = m ? d.filter((w) => w.data[i] > 0) : [], O = S.appendOrSelect(n, "g.labels").attr("role", j.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(E, (w) => w.data[a]);
|
|
6176
6177
|
O.exit().attr("opacity", 0).remove();
|
|
6177
6178
|
const T = O.enter().append("text").classed("pie-label", !0), M = [];
|
|
6178
6179
|
T.merge(O).style("text-anchor", "middle").text((w) => s.pie.labels.formatter ? s.pie.labels.formatter({
|
|
6179
6180
|
...w,
|
|
6180
|
-
percentageValue:
|
|
6181
|
+
percentageValue: Qt(
|
|
6181
6182
|
w.data[i],
|
|
6182
6183
|
r,
|
|
6183
6184
|
i,
|
|
6184
6185
|
!0
|
|
6185
6186
|
)
|
|
6186
|
-
}) :
|
|
6187
|
+
}) : Qt(w.data[i], r, i) + "%").datum(function(w) {
|
|
6187
6188
|
const U = l + 7, V = (w.endAngle - w.startAngle) / 2 + w.startAngle, Q = V / Math.PI * 180, ve = this.getComputedTextLength();
|
|
6188
6189
|
return w.textOffsetX = ve / 2, w.textOffsetY = Q > 90 && Q < 270 ? 10 : 0, w.xPosition = (w.textOffsetX + U) * Math.sin(V), w.yPosition = (w.textOffsetY + U) * -Math.cos(V), w;
|
|
6189
6190
|
}).attr("transform", function(w, U) {
|
|
6190
6191
|
const V = E.length, Q = (w.endAngle - w.startAngle) * (180 / Math.PI);
|
|
6191
6192
|
if (U >= V - 2 && Q < te.callout.minSliceDegree) {
|
|
6192
6193
|
let ve, K;
|
|
6193
|
-
return w.index === V - 1 ? (ve = w.xPosition + te.callout.offsetX + te.callout.textMargin + w.textOffsetX, K = w.yPosition - te.callout.offsetY, w.direction =
|
|
6194
|
+
return w.index === V - 1 ? (ve = w.xPosition + te.callout.offsetX + te.callout.textMargin + w.textOffsetX, K = w.yPosition - te.callout.offsetY, w.direction = an.RIGHT, M.push(w)) : (ve = w.xPosition - te.callout.offsetX - w.textOffsetX - te.callout.textMargin, K = w.yPosition - te.callout.offsetY, w.direction = an.LEFT, M.push(w)), `translate(${ve}, ${K})`;
|
|
6194
6195
|
}
|
|
6195
6196
|
return `translate(${w.xPosition}, ${w.yPosition})`;
|
|
6196
6197
|
}), this.renderCallouts(M);
|
|
6197
6198
|
const A = y(s, "donut") ? "donut" : "pie", L = y(s, A, "alignment"), { width: I } = S.getSVGElementSize(this.getParent(), {
|
|
6198
6199
|
useAttrs: !0
|
|
6199
|
-
}), D = m ? te.xOffset : 0,
|
|
6200
|
+
}), D = m ? te.xOffset : 0, X = m ? te.yOffset : 0;
|
|
6200
6201
|
let N = l + D;
|
|
6201
6202
|
L === Me.CENTER ? N = I / 2 : L === Me.RIGHT && (N = I - l - te.xOffset);
|
|
6202
|
-
let _ = l +
|
|
6203
|
+
let _ = l + X;
|
|
6203
6204
|
M.length > 0 && (_ += te.yOffsetCallout), n.attr("x", N + 7).attr("y", _), this.addEventListeners();
|
|
6204
6205
|
}
|
|
6205
6206
|
renderCallouts(e) {
|
|
@@ -6208,7 +6209,7 @@ class Al extends Y {
|
|
|
6208
6209
|
const s = n.enter().append("g").classed("callout", !0).attr("role", j.GROUP).attr("aria-roledescription", "label callout");
|
|
6209
6210
|
s.merge(n).datum(function(r) {
|
|
6210
6211
|
const { xPosition: l, yPosition: c, direction: d } = r;
|
|
6211
|
-
return d ===
|
|
6212
|
+
return d === an.RIGHT ? (r.startPos = {
|
|
6212
6213
|
x: l,
|
|
6213
6214
|
y: c + r.textOffsetY
|
|
6214
6215
|
}, r.endPos = {
|
|
@@ -6291,7 +6292,7 @@ class Al extends Y {
|
|
|
6291
6292
|
return n.pie.labels.enabled ? s + te.radiusOffset : s;
|
|
6292
6293
|
}
|
|
6293
6294
|
}
|
|
6294
|
-
class
|
|
6295
|
+
class $h extends Ml {
|
|
6295
6296
|
constructor() {
|
|
6296
6297
|
super(...arguments), this.type = "donut", this.renderType = W.SVG;
|
|
6297
6298
|
}
|
|
@@ -6322,7 +6323,7 @@ class Hh extends Al {
|
|
|
6322
6323
|
n === null && (n = this.model.getDisplayData().reduce((r, l) => r + l[t.pie.valueMapsTo], 0));
|
|
6323
6324
|
const s = parseInt(e.text().replace(/[, ]+/g, ""), 10) || 0;
|
|
6324
6325
|
let a;
|
|
6325
|
-
s % 1 === 0 && n % 1 === 0 ? a = oi : a =
|
|
6326
|
+
s % 1 === 0 && n % 1 === 0 ? a = oi : a = na;
|
|
6326
6327
|
const i = a(s, n);
|
|
6327
6328
|
return (r) => {
|
|
6328
6329
|
const { numberFormatter: l } = t.donut.center;
|
|
@@ -6330,8 +6331,8 @@ class Hh extends Al {
|
|
|
6330
6331
|
};
|
|
6331
6332
|
}
|
|
6332
6333
|
}
|
|
6333
|
-
const
|
|
6334
|
-
class
|
|
6334
|
+
const js = "4,10 8,6 12,10", Xs = "12,6 8,10 4,6";
|
|
6335
|
+
class Uh extends Y {
|
|
6335
6336
|
constructor() {
|
|
6336
6337
|
super(...arguments), this.type = "gauge", this.renderType = W.SVG;
|
|
6337
6338
|
}
|
|
@@ -6340,7 +6341,7 @@ class $h extends Y {
|
|
|
6340
6341
|
return ((n = this.model.getData().find((s) => s.group === "value")) == null ? void 0 : n.value) ?? null;
|
|
6341
6342
|
}
|
|
6342
6343
|
getValueRatio() {
|
|
6343
|
-
return
|
|
6344
|
+
return Ea(this.getValue(), 0, 100) / 100;
|
|
6344
6345
|
}
|
|
6345
6346
|
getDelta() {
|
|
6346
6347
|
var n;
|
|
@@ -6348,7 +6349,7 @@ class $h extends Y {
|
|
|
6348
6349
|
}
|
|
6349
6350
|
getArcRatio() {
|
|
6350
6351
|
const e = this.getOptions();
|
|
6351
|
-
return y(e, "gauge", "type") ===
|
|
6352
|
+
return y(e, "gauge", "type") === Ct.FULL ? 1 : 0.5;
|
|
6352
6353
|
}
|
|
6353
6354
|
getArcSize() {
|
|
6354
6355
|
return this.getArcRatio() * Math.PI * 2;
|
|
@@ -6361,12 +6362,12 @@ class $h extends Y {
|
|
|
6361
6362
|
getArrow(e) {
|
|
6362
6363
|
const t = this.getOptions();
|
|
6363
6364
|
switch (y(t, "gauge", "deltaArrow", "direction")) {
|
|
6364
|
-
case
|
|
6365
|
-
return Ws;
|
|
6366
|
-
case ys.DOWN:
|
|
6365
|
+
case Es.UP:
|
|
6367
6366
|
return js;
|
|
6367
|
+
case Es.DOWN:
|
|
6368
|
+
return Xs;
|
|
6368
6369
|
default:
|
|
6369
|
-
return e > 0 ?
|
|
6370
|
+
return e > 0 ? js : Xs;
|
|
6370
6371
|
}
|
|
6371
6372
|
}
|
|
6372
6373
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -6396,7 +6397,7 @@ class $h extends Y {
|
|
|
6396
6397
|
drawValueNumber() {
|
|
6397
6398
|
const e = this.getComponentContainer(), t = this.getOptions(), n = y(t, "gauge", "type"), s = this.getValue(), a = this.getDelta(), i = this.computeRadius(), r = y(t, "gauge", "valueFontSize"), l = y(t, "gauge", "deltaFontSize"), c = y(t, "gauge", "numberSpacing"), d = y(t, "gauge", "showPercentageSymbol");
|
|
6398
6399
|
let p = 0;
|
|
6399
|
-
n ===
|
|
6400
|
+
n === Ct.FULL && !a ? p = l(i) : n === Ct.SEMI && a && (p = -(l(i) + c));
|
|
6400
6401
|
const h = S.appendOrSelect(e, "g.gauge-numbers").attr(
|
|
6401
6402
|
"transform",
|
|
6402
6403
|
`translate(0, ${p})`
|
|
@@ -6475,10 +6476,10 @@ class $h extends Y {
|
|
|
6475
6476
|
const e = this.getOptions(), t = y(e, "gauge", "type"), { width: n, height: s } = S.getSVGElementSize(this.parent, {
|
|
6476
6477
|
useAttrs: !0
|
|
6477
6478
|
});
|
|
6478
|
-
return t ===
|
|
6479
|
+
return t === Ct.SEMI ? Math.min(n / 2, s) : Math.min(n / 2, s / 2);
|
|
6479
6480
|
}
|
|
6480
6481
|
}
|
|
6481
|
-
class
|
|
6482
|
+
class zh extends Wn {
|
|
6482
6483
|
constructor() {
|
|
6483
6484
|
super(...arguments), this.type = "grouped-bar", this.renderType = W.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
|
|
6484
6485
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -6638,10 +6639,10 @@ class Uh extends jn {
|
|
|
6638
6639
|
}
|
|
6639
6640
|
setGroupScale() {
|
|
6640
6641
|
const e = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
6641
|
-
this.groupScale =
|
|
6642
|
+
this.groupScale = Gn().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6642
6643
|
}
|
|
6643
6644
|
}
|
|
6644
|
-
class
|
|
6645
|
+
class Fh extends Y {
|
|
6645
6646
|
constructor() {
|
|
6646
6647
|
super(...arguments), this.type = "heatmap", this.renderType = W.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
|
|
6647
6648
|
x: 0,
|
|
@@ -6667,7 +6668,7 @@ class zh extends Y {
|
|
|
6667
6668
|
}
|
|
6668
6669
|
p += m, h = m < h ? m : h, u = m > u ? m : u;
|
|
6669
6670
|
}
|
|
6670
|
-
})), l(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(n)}, ${
|
|
6671
|
+
})), l(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(n)}, ${fn(c.range())})`) : c(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${fn(l.range())},${c(n)})`), this.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
6671
6672
|
event: t.event,
|
|
6672
6673
|
hoveredElement: x(e.detail.element),
|
|
6673
6674
|
items: [
|
|
@@ -6746,7 +6747,7 @@ class zh extends Y {
|
|
|
6746
6747
|
}
|
|
6747
6748
|
determineDividerStatus() {
|
|
6748
6749
|
const e = y(this.getOptions(), "heatmap", "divider", "state");
|
|
6749
|
-
return e !==
|
|
6750
|
+
return e !== rn.OFF && (e === rn.AUTO && gs.minCellDividerDimension <= this.xBandwidth && gs.minCellDividerDimension <= this.yBandwidth || e === rn.ON);
|
|
6750
6751
|
}
|
|
6751
6752
|
addEventListener() {
|
|
6752
6753
|
const e = this, { cartesianScales: t } = this.services, n = this.getOptions(), s = ce(n, "tooltip.totalLabel"), a = t.getDomainIdentifier(), i = t.getRangeIdentifier(), r = t.getDomainLabel(), l = t.getRangeLabel();
|
|
@@ -6813,7 +6814,7 @@ class zh extends Y {
|
|
|
6813
6814
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
|
|
6814
6815
|
}
|
|
6815
6816
|
}
|
|
6816
|
-
class
|
|
6817
|
+
class Wh extends Y {
|
|
6817
6818
|
constructor() {
|
|
6818
6819
|
super(...arguments), this.type = "histogram", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
6819
6820
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
@@ -6907,7 +6908,7 @@ class Fh extends Y {
|
|
|
6907
6908
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6908
6909
|
}
|
|
6909
6910
|
}
|
|
6910
|
-
class
|
|
6911
|
+
class jh extends zn {
|
|
6911
6912
|
constructor() {
|
|
6912
6913
|
super(...arguments), this.type = "lollipop", this.renderType = W.SVG, this.handleScatterOnHover = (e) => {
|
|
6913
6914
|
const t = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
@@ -6979,7 +6980,7 @@ class Wh extends Fn {
|
|
|
6979
6980
|
);
|
|
6980
6981
|
}
|
|
6981
6982
|
}
|
|
6982
|
-
class
|
|
6983
|
+
class Xh extends Y {
|
|
6983
6984
|
constructor() {
|
|
6984
6985
|
super(...arguments), this.type = "meter", this.renderType = W.SVG;
|
|
6985
6986
|
}
|
|
@@ -7090,7 +7091,7 @@ class jh extends Y {
|
|
|
7090
7091
|
this.parent.selectAll("rect.value").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
|
|
7091
7092
|
}
|
|
7092
7093
|
}
|
|
7093
|
-
class
|
|
7094
|
+
class Zh extends Y {
|
|
7094
7095
|
constructor() {
|
|
7095
7096
|
super(...arguments), this.type = "radar", this.renderType = W.SVG, this.getLabelDimensions = (e) => {
|
|
7096
7097
|
const t = S.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), n = S.appendOrSelect(t, "text").text(e), { width: s, height: a } = S.getSVGElementSize(n.node(), { useBBox: !0 });
|
|
@@ -7103,7 +7104,7 @@ class Xh extends Y {
|
|
|
7103
7104
|
[s]: null
|
|
7104
7105
|
})))
|
|
7105
7106
|
);
|
|
7106
|
-
return
|
|
7107
|
+
return dt(i, e);
|
|
7107
7108
|
}, this.normalizeGroupedData = (e) => {
|
|
7108
7109
|
const t = this.getOptions(), { angle: n, value: s } = y(t, "radar", "axes"), a = y(t, "data", "groupMapsTo");
|
|
7109
7110
|
return e.map(({ name: i, data: r }) => {
|
|
@@ -7112,7 +7113,7 @@ class Xh extends Y {
|
|
|
7112
7113
|
[n]: c,
|
|
7113
7114
|
[s]: null
|
|
7114
7115
|
}));
|
|
7115
|
-
return { name: i, data:
|
|
7116
|
+
return { name: i, data: dt(l, r) };
|
|
7116
7117
|
});
|
|
7117
7118
|
}, this.handleLegendOnHover = (e) => {
|
|
7118
7119
|
const { hoveredElement: t } = e.detail;
|
|
@@ -7121,14 +7122,14 @@ class Xh extends Y {
|
|
|
7121
7122
|
transition: n,
|
|
7122
7123
|
name: "legend-hover-blob"
|
|
7123
7124
|
})
|
|
7124
|
-
).style("fill-opacity", (n) => n.name !== t.datum().name ?
|
|
7125
|
+
).style("fill-opacity", (n) => n.name !== t.datum().name ? Fe.opacity.unselected : Fe.opacity.selected).style("stroke-opacity", (n) => n.name !== t.datum().name ? Fe.opacity.unselected : 1);
|
|
7125
7126
|
}, this.handleLegendMouseOut = () => {
|
|
7126
7127
|
this.parent.selectAll("g.blobs path").transition("legend-mouseout-blob").call(
|
|
7127
7128
|
(e) => this.services.transitions.setupTransition({
|
|
7128
7129
|
transition: e,
|
|
7129
7130
|
name: "legend-mouseout-blob"
|
|
7130
7131
|
})
|
|
7131
|
-
).style("fill-opacity",
|
|
7132
|
+
).style("fill-opacity", Fe.opacity.selected).style("stroke-opacity", 1);
|
|
7132
7133
|
};
|
|
7133
7134
|
}
|
|
7134
7135
|
init() {
|
|
@@ -7138,24 +7139,24 @@ class Xh extends Y {
|
|
|
7138
7139
|
render(e = !0) {
|
|
7139
7140
|
const t = this.getComponentContainer(), { width: n, height: s } = S.getSVGElementSize(t, {
|
|
7140
7141
|
useAttrs: !0
|
|
7141
|
-
}), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = y(r, "data", "groupMapsTo"), c = y(r, "radar", "axes", "value"), { angle: d, value: p } = y(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } =
|
|
7142
|
+
}), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = y(r, "data", "groupMapsTo"), c = y(r, "radar", "axes", "value"), { angle: d, value: p } = y(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } = Fe;
|
|
7142
7143
|
this.uniqueKeys = Array.from(new Set(a.map((C) => C[d]))), this.uniqueGroups = Array.from(new Set(a.map((C) => C[l]))), this.fullDataNormalized = this.normalizeFlatData(a), this.groupedDataNormalized = this.normalizeGroupedData(i);
|
|
7143
7144
|
const O = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), A = (Math.min(n, s) - O) / 2;
|
|
7144
7145
|
if (A <= 0)
|
|
7145
7146
|
return;
|
|
7146
|
-
const L =
|
|
7147
|
+
const L = Gn().domain(this.fullDataNormalized.map((C) => C[d])).range([0, 2 * Math.PI].map((C) => C - Math.PI / 2)), I = fn(this.fullDataNormalized.map((C) => C[p])), D = Ze().domain([
|
|
7147
7148
|
I >= 0 ? 0 : I,
|
|
7148
|
-
|
|
7149
|
-
]).range([m, A]).nice(g),
|
|
7149
|
+
ms(this.fullDataNormalized.map((C) => C[p]))
|
|
7150
|
+
]).range([m, A]).nice(g), X = D.ticks(g), N = (C) => this.model.getFillColor(C), _ = li().angle((C) => L(C[d]) + Math.PI / 2).radius((C) => D(C[p])).curve(ci), w = this.uniqueKeys.map((C) => {
|
|
7150
7151
|
const R = this.getLabelDimensions(C).width, P = Oi(
|
|
7151
7152
|
L(C),
|
|
7152
7153
|
A
|
|
7153
7154
|
);
|
|
7154
7155
|
return R + P;
|
|
7155
7156
|
}), V = {
|
|
7156
|
-
x:
|
|
7157
|
+
x: ms(w) + h,
|
|
7157
7158
|
y: s / 2
|
|
7158
|
-
}, ve = S.appendOrSelect(t, "g.y-axes").attr("role", j.GROUP).selectAll("path").data(
|
|
7159
|
+
}, ve = S.appendOrSelect(t, "g.y-axes").attr("role", j.GROUP).selectAll("path").data(X, (C) => C), K = (C) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: C }));
|
|
7159
7160
|
ve.join(
|
|
7160
7161
|
(C) => C.append("path").attr("opacity", 0).attr("transform", `translate(${V.x}, ${V.y})`).attr("fill", "none").call(
|
|
7161
7162
|
(R) => R.transition().call(
|
|
@@ -7219,9 +7220,9 @@ class Xh extends Y {
|
|
|
7219
7220
|
).attr(
|
|
7220
7221
|
"y",
|
|
7221
7222
|
(R) => re(L(R), D.range()[1] + h, V).y
|
|
7222
|
-
).style("text-anchor", (R) =>
|
|
7223
|
+
).style("text-anchor", (R) => vs(L(R)).textAnchor).style(
|
|
7223
7224
|
"dominant-baseline",
|
|
7224
|
-
(R) =>
|
|
7225
|
+
(R) => vs(L(R)).dominantBaseline
|
|
7225
7226
|
).call(
|
|
7226
7227
|
(R) => R.transition().call(
|
|
7227
7228
|
(P) => this.services.transitions.setupTransition({
|
|
@@ -7269,7 +7270,7 @@ class Xh extends Y {
|
|
|
7269
7270
|
).attr("role", j.GRAPHICS_SYMBOL).attr("aria-label", (R) => R.name).attr("opacity", 0).attr(
|
|
7270
7271
|
"transform",
|
|
7271
7272
|
e ? () => `translate(${V.x}, ${V.y}) scale(${1 + Math.random() * 0.35})` : `translate(${V.x}, ${V.y})`
|
|
7272
|
-
).style("fill", (R) => N(R.name)).style("fill-opacity",
|
|
7273
|
+
).style("fill", (R) => N(R.name)).style("fill-opacity", Fe.opacity.selected).style("stroke", (R) => N(R.name)).call((R) => {
|
|
7273
7274
|
const P = R.transition().call(
|
|
7274
7275
|
(Ce) => this.services.transitions.setupTransition({
|
|
7275
7276
|
transition: Ce,
|
|
@@ -7323,7 +7324,7 @@ class Xh extends Y {
|
|
|
7323
7324
|
(C) => C.append("rect"),
|
|
7324
7325
|
(C) => C,
|
|
7325
7326
|
(C) => C.remove()
|
|
7326
|
-
).attr("x", V.x).attr("y", V.y - E / 2).attr("width", D.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${xi(L(C))}, ${V.x}, ${V.y})`), S.appendOrSelect(t, "g.y-labels").attr("role", j.GROUP).selectAll("text").data(
|
|
7327
|
+
).attr("x", V.x).attr("y", V.y - E / 2).attr("width", D.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${xi(L(C))}, ${V.x}, ${V.y})`), S.appendOrSelect(t, "g.y-labels").attr("role", j.GROUP).selectAll("text").data(Wt(X)).join(
|
|
7327
7328
|
(C) => C.append("text").attr("opacity", 0).text((R) => R).attr(
|
|
7328
7329
|
"x",
|
|
7329
7330
|
(R) => re(-Math.PI / 2, D(R), V).x + u
|
|
@@ -7388,7 +7389,7 @@ class Xh extends Y {
|
|
|
7388
7389
|
i.classed("hovered", !0).attr("stroke-dasharray", "4 4"), r.classed("hovered", !0).attr(
|
|
7389
7390
|
"opacity",
|
|
7390
7391
|
(u) => l.indexOf(u[d]) !== -1 ? 1 : 0
|
|
7391
|
-
).attr("r",
|
|
7392
|
+
).attr("r", Fe.dotsRadius);
|
|
7392
7393
|
const h = e.fullDataNormalized.filter(
|
|
7393
7394
|
(u) => u[t] === s && l.indexOf(u[d]) !== -1
|
|
7394
7395
|
);
|
|
@@ -7430,7 +7431,7 @@ class Xh extends Y {
|
|
|
7430
7431
|
});
|
|
7431
7432
|
}
|
|
7432
7433
|
}
|
|
7433
|
-
class
|
|
7434
|
+
class Yh extends Wn {
|
|
7434
7435
|
constructor() {
|
|
7435
7436
|
super(...arguments), this.type = "simple-bar", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
7436
7437
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -7526,7 +7527,7 @@ class Zh extends jn {
|
|
|
7526
7527
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7527
7528
|
}
|
|
7528
7529
|
}
|
|
7529
|
-
class
|
|
7530
|
+
class qh extends vl {
|
|
7530
7531
|
constructor() {
|
|
7531
7532
|
super(...arguments), this.type = "skeleton-lines";
|
|
7532
7533
|
}
|
|
@@ -7552,7 +7553,7 @@ class Yh extends fl {
|
|
|
7552
7553
|
this.backdrop = S.appendOrSelect(e, "svg.chart-skeleton.DAII"), S.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
|
|
7553
7554
|
}
|
|
7554
7555
|
}
|
|
7555
|
-
class
|
|
7556
|
+
class Kh extends Y {
|
|
7556
7557
|
constructor() {
|
|
7557
7558
|
super(...arguments), this.type = "area-stacked", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
7558
7559
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
@@ -7580,7 +7581,7 @@ class qh extends Y {
|
|
|
7580
7581
|
percentage: i,
|
|
7581
7582
|
groups: this.configs.groups
|
|
7582
7583
|
}), l = y(r, 0, 0), c = this.services.cartesianScales.getDomainAxisPosition({ datum: l }), d = this.services.cartesianScales.getRangeAxisPosition({ datum: l }), p = this.services.cartesianScales.getScaleByPosition(d), h = t.selectAll("path.area").data(r, (g) => y(g, 0, a));
|
|
7583
|
-
this.areaGenerator =
|
|
7584
|
+
this.areaGenerator = Nn().x(
|
|
7584
7585
|
(g) => this.services.cartesianScales.getValueThroughAxisPosition(
|
|
7585
7586
|
c,
|
|
7586
7587
|
g.data.sharedStackKey
|
|
@@ -7601,7 +7602,7 @@ class qh extends Y {
|
|
|
7601
7602
|
).attr("opacity", Ve.opacity.selected).attr("d", this.areaGenerator);
|
|
7602
7603
|
}
|
|
7603
7604
|
}
|
|
7604
|
-
class
|
|
7605
|
+
class Jh extends Wn {
|
|
7605
7606
|
constructor() {
|
|
7606
7607
|
super(...arguments), this.type = "stacked-bar", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
7607
7608
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.model.getOptions().data;
|
|
@@ -7729,7 +7730,7 @@ class Kh extends jn {
|
|
|
7729
7730
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7730
7731
|
}
|
|
7731
7732
|
}
|
|
7732
|
-
class
|
|
7733
|
+
class Qh extends zn {
|
|
7733
7734
|
constructor() {
|
|
7734
7735
|
super(...arguments), this.type = "scatter-stacked", this.renderType = W.SVG;
|
|
7735
7736
|
}
|
|
@@ -7777,8 +7778,8 @@ class Jh extends Fn {
|
|
|
7777
7778
|
});
|
|
7778
7779
|
}
|
|
7779
7780
|
}
|
|
7780
|
-
const
|
|
7781
|
-
class
|
|
7781
|
+
const it = 6;
|
|
7782
|
+
class eu extends Y {
|
|
7782
7783
|
constructor() {
|
|
7783
7784
|
super(...arguments), this.type = "tree", this.renderType = W.SVG;
|
|
7784
7785
|
}
|
|
@@ -7810,23 +7811,23 @@ class Qh extends Y {
|
|
|
7810
7811
|
top: 0,
|
|
7811
7812
|
right: 0,
|
|
7812
7813
|
bottom: 0,
|
|
7813
|
-
left: l > 0 ? l +
|
|
7814
|
-
}, h =
|
|
7814
|
+
left: l > 0 ? l + it : 30 - it
|
|
7815
|
+
}, h = Hn({
|
|
7815
7816
|
name: r,
|
|
7816
7817
|
children: i
|
|
7817
7818
|
}), u = 10, g = n / 6, m = (L) => {
|
|
7818
7819
|
const I = h.descendants().reverse(), D = h.links();
|
|
7819
|
-
let
|
|
7820
|
+
let X = h, N = h;
|
|
7820
7821
|
h.eachBefore((z) => {
|
|
7821
|
-
z.x <
|
|
7822
|
+
z.x < X.x && (X = z), z.x > N.x && (N = z);
|
|
7822
7823
|
});
|
|
7823
|
-
const _ = N.x -
|
|
7824
|
+
const _ = N.x - X.x, w = t.transition().call(
|
|
7824
7825
|
(z) => this.services.transitions.setupTransition({
|
|
7825
7826
|
transition: z,
|
|
7826
7827
|
name: "tree-update-viewbox",
|
|
7827
7828
|
animate: !0
|
|
7828
7829
|
})
|
|
7829
|
-
).attr("viewBox", [-p.left,
|
|
7830
|
+
).attr("viewBox", [-p.left, X.x, n, _].join(" ")), U = A.selectAll("g").data(I, (z) => z.id), V = this, Q = U.enter().append("g").attr("transform", () => `translate(${L.y0},${L.x0})`).attr(
|
|
7830
7831
|
"class",
|
|
7831
7832
|
(z) => z.depth !== 0 && z.children && z.children.length > 0 ? "clickable" : null
|
|
7832
7833
|
).on("mouseover", function(z, q) {
|
|
@@ -7848,7 +7849,7 @@ class Qh extends Y {
|
|
|
7848
7849
|
datum: q
|
|
7849
7850
|
});
|
|
7850
7851
|
});
|
|
7851
|
-
Q.append("circle").attr("r", 2.5).attr("class", (z) => z._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (z) => z._children ? -
|
|
7852
|
+
Q.append("circle").attr("r", 2.5).attr("class", (z) => z._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (z) => z._children ? -it : it).attr("text-anchor", (z) => z._children ? "end" : "start").text((z) => z.data.name).clone(!0).attr("class", "text-stroke").lower(), U.merge(Q).transition(w).attr("transform", (z) => `translate(${z.y},${z.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), U.exit().transition(w).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
7852
7853
|
const ve = M.selectAll("path").data(D, (z) => z.target.id), K = ve.enter().append("path").attr("d", () => {
|
|
7853
7854
|
const z = { x: L.x0, y: L.y0 };
|
|
7854
7855
|
return T({ source: z, target: z });
|
|
@@ -7861,10 +7862,10 @@ class Qh extends Y {
|
|
|
7861
7862
|
});
|
|
7862
7863
|
}, E = h.descendants(), v = E[E.length - 1].depth, O = y(a, "tree", "type") === Ai.DENDROGRAM ? di().size([
|
|
7863
7864
|
s,
|
|
7864
|
-
n - d - v *
|
|
7865
|
+
n - d - v * it - l
|
|
7865
7866
|
]) : hi().nodeSize([u, g]).size([
|
|
7866
7867
|
s,
|
|
7867
|
-
n - d - v *
|
|
7868
|
+
n - d - v * it - l
|
|
7868
7869
|
]), T = ui().x((L) => L.y).y((L) => L.x);
|
|
7869
7870
|
h.x0 = g / 2, h.y0 = 0, h.descendants().forEach((L, I) => {
|
|
7870
7871
|
L.id = I, L._children = L.children;
|
|
@@ -7873,181 +7874,181 @@ class Qh extends Y {
|
|
|
7873
7874
|
m(h);
|
|
7874
7875
|
}
|
|
7875
7876
|
}
|
|
7876
|
-
var
|
|
7877
|
-
10:
|
|
7878
|
-
20:
|
|
7879
|
-
30:
|
|
7880
|
-
40:
|
|
7881
|
-
50:
|
|
7882
|
-
60:
|
|
7883
|
-
70:
|
|
7884
|
-
80:
|
|
7885
|
-
90:
|
|
7886
|
-
100:
|
|
7887
|
-
},
|
|
7888
|
-
10:
|
|
7889
|
-
20:
|
|
7890
|
-
30:
|
|
7891
|
-
40:
|
|
7892
|
-
50:
|
|
7893
|
-
60:
|
|
7894
|
-
70:
|
|
7895
|
-
80:
|
|
7896
|
-
90:
|
|
7897
|
-
100:
|
|
7898
|
-
},
|
|
7899
|
-
10:
|
|
7900
|
-
20:
|
|
7901
|
-
30:
|
|
7902
|
-
40:
|
|
7903
|
-
50:
|
|
7904
|
-
60:
|
|
7905
|
-
70:
|
|
7906
|
-
80:
|
|
7907
|
-
90:
|
|
7908
|
-
100:
|
|
7909
|
-
},
|
|
7910
|
-
10:
|
|
7911
|
-
20:
|
|
7912
|
-
30:
|
|
7913
|
-
40:
|
|
7914
|
-
50:
|
|
7915
|
-
60:
|
|
7916
|
-
70:
|
|
7917
|
-
80:
|
|
7918
|
-
90:
|
|
7919
|
-
100:
|
|
7920
|
-
},
|
|
7921
|
-
10:
|
|
7922
|
-
20:
|
|
7923
|
-
30:
|
|
7924
|
-
40:
|
|
7925
|
-
50:
|
|
7926
|
-
60:
|
|
7927
|
-
70:
|
|
7928
|
-
80:
|
|
7929
|
-
90:
|
|
7930
|
-
100:
|
|
7931
|
-
},
|
|
7932
|
-
10:
|
|
7933
|
-
20:
|
|
7934
|
-
30:
|
|
7935
|
-
40:
|
|
7936
|
-
50:
|
|
7937
|
-
60:
|
|
7938
|
-
70:
|
|
7939
|
-
80:
|
|
7940
|
-
90:
|
|
7941
|
-
100:
|
|
7942
|
-
},
|
|
7943
|
-
10:
|
|
7944
|
-
20:
|
|
7945
|
-
30:
|
|
7946
|
-
40:
|
|
7947
|
-
50:
|
|
7948
|
-
60:
|
|
7949
|
-
70:
|
|
7950
|
-
80:
|
|
7951
|
-
90:
|
|
7952
|
-
100:
|
|
7953
|
-
},
|
|
7954
|
-
10:
|
|
7955
|
-
20:
|
|
7956
|
-
30:
|
|
7957
|
-
40:
|
|
7958
|
-
50:
|
|
7959
|
-
60:
|
|
7960
|
-
70:
|
|
7961
|
-
80:
|
|
7962
|
-
90:
|
|
7963
|
-
100:
|
|
7964
|
-
},
|
|
7965
|
-
10:
|
|
7966
|
-
20:
|
|
7967
|
-
30:
|
|
7968
|
-
40:
|
|
7969
|
-
50:
|
|
7970
|
-
60:
|
|
7971
|
-
70:
|
|
7972
|
-
80:
|
|
7973
|
-
90:
|
|
7974
|
-
100:
|
|
7975
|
-
},
|
|
7976
|
-
10:
|
|
7977
|
-
20:
|
|
7978
|
-
30:
|
|
7979
|
-
40:
|
|
7980
|
-
50:
|
|
7981
|
-
60:
|
|
7982
|
-
70:
|
|
7983
|
-
80:
|
|
7984
|
-
90:
|
|
7985
|
-
100:
|
|
7986
|
-
},
|
|
7987
|
-
10:
|
|
7988
|
-
20:
|
|
7989
|
-
30:
|
|
7990
|
-
40:
|
|
7991
|
-
50:
|
|
7992
|
-
60:
|
|
7993
|
-
70:
|
|
7994
|
-
80:
|
|
7995
|
-
90:
|
|
7996
|
-
100:
|
|
7997
|
-
},
|
|
7998
|
-
10:
|
|
7999
|
-
20:
|
|
8000
|
-
30:
|
|
8001
|
-
40:
|
|
8002
|
-
50:
|
|
8003
|
-
60:
|
|
8004
|
-
70:
|
|
8005
|
-
80:
|
|
8006
|
-
90:
|
|
8007
|
-
100:
|
|
8008
|
-
},
|
|
7877
|
+
var wl = "#000000", Cl = "#ffffff", _l = "#fcf4d6", Il = "#fddc69", kl = "#f1c21b", Rl = "#d2a106", Dl = "#b28600", Nl = "#8e6a00", Pl = "#684e00", Vl = "#483700", Bl = "#302400", Gl = "#1c1500", Hl = {
|
|
7878
|
+
10: _l,
|
|
7879
|
+
20: Il,
|
|
7880
|
+
30: kl,
|
|
7881
|
+
40: Rl,
|
|
7882
|
+
50: Dl,
|
|
7883
|
+
60: Nl,
|
|
7884
|
+
70: Pl,
|
|
7885
|
+
80: Vl,
|
|
7886
|
+
90: Bl,
|
|
7887
|
+
100: Gl
|
|
7888
|
+
}, $l = "#fff2e8", Ul = "#ffd9be", zl = "#ffb784", Fl = "#ff832b", Wl = "#eb6200", jl = "#ba4e00", Xl = "#8a3800", Zl = "#5e2900", Yl = "#3e1a00", ql = "#231000", Kl = {
|
|
7889
|
+
10: $l,
|
|
7890
|
+
20: Ul,
|
|
7891
|
+
30: zl,
|
|
7892
|
+
40: Fl,
|
|
7893
|
+
50: Wl,
|
|
7894
|
+
60: jl,
|
|
7895
|
+
70: Xl,
|
|
7896
|
+
80: Zl,
|
|
7897
|
+
90: Yl,
|
|
7898
|
+
100: ql
|
|
7899
|
+
}, Jl = "#fff1f1", Ql = "#ffd7d9", ec = "#ffb3b8", tc = "#ff8389", nc = "#fa4d56", sc = "#da1e28", ac = "#a2191f", ic = "#750e13", rc = "#520408", oc = "#2d0709", lc = {
|
|
7900
|
+
10: Jl,
|
|
7901
|
+
20: Ql,
|
|
7902
|
+
30: ec,
|
|
7903
|
+
40: tc,
|
|
7904
|
+
50: nc,
|
|
7905
|
+
60: sc,
|
|
7906
|
+
70: ac,
|
|
7907
|
+
80: ic,
|
|
7908
|
+
90: rc,
|
|
7909
|
+
100: oc
|
|
7910
|
+
}, cc = "#fff0f7", dc = "#ffd6e8", hc = "#ffafd2", uc = "#ff7eb6", pc = "#ee5396", gc = "#d02670", mc = "#9f1853", fc = "#740937", vc = "#510224", yc = "#2a0a18", Ec = {
|
|
7911
|
+
10: cc,
|
|
7912
|
+
20: dc,
|
|
7913
|
+
30: hc,
|
|
7914
|
+
40: uc,
|
|
7915
|
+
50: pc,
|
|
7916
|
+
60: gc,
|
|
7917
|
+
70: mc,
|
|
7918
|
+
80: fc,
|
|
7919
|
+
90: vc,
|
|
7920
|
+
100: yc
|
|
7921
|
+
}, bc = "#f6f2ff", Sc = "#e8daff", Oc = "#d4bbff", xc = "#be95ff", Tc = "#a56eff", Lc = "#8a3ffc", Ac = "#6929c4", Mc = "#491d8b", wc = "#31135e", Cc = "#1c0f30", _c = {
|
|
7922
|
+
10: bc,
|
|
7923
|
+
20: Sc,
|
|
7924
|
+
30: Oc,
|
|
7925
|
+
40: xc,
|
|
7926
|
+
50: Tc,
|
|
7927
|
+
60: Lc,
|
|
7928
|
+
70: Ac,
|
|
7929
|
+
80: Mc,
|
|
7930
|
+
90: wc,
|
|
7931
|
+
100: Cc
|
|
7932
|
+
}, Ic = "#edf5ff", kc = "#d0e2ff", Rc = "#a6c8ff", Dc = "#78a9ff", Nc = "#4589ff", Pc = "#0f62fe", Vc = "#0043ce", Bc = "#002d9c", Gc = "#001d6c", Hc = "#001141", $c = {
|
|
7933
|
+
10: Ic,
|
|
7934
|
+
20: kc,
|
|
7935
|
+
30: Rc,
|
|
7936
|
+
40: Dc,
|
|
7937
|
+
50: Nc,
|
|
7938
|
+
60: Pc,
|
|
7939
|
+
70: Vc,
|
|
7940
|
+
80: Bc,
|
|
7941
|
+
90: Gc,
|
|
7942
|
+
100: Hc
|
|
7943
|
+
}, Uc = "#e5f6ff", zc = "#bae6ff", Fc = "#82cfff", Wc = "#33b1ff", jc = "#1192e8", Xc = "#0072c3", Zc = "#00539a", Yc = "#003a6d", qc = "#012749", Kc = "#061727", Jc = {
|
|
7944
|
+
10: Uc,
|
|
7945
|
+
20: zc,
|
|
7946
|
+
30: Fc,
|
|
7947
|
+
40: Wc,
|
|
7948
|
+
50: jc,
|
|
7949
|
+
60: Xc,
|
|
7950
|
+
70: Zc,
|
|
7951
|
+
80: Yc,
|
|
7952
|
+
90: qc,
|
|
7953
|
+
100: Kc
|
|
7954
|
+
}, Qc = "#d9fbfb", ed = "#9ef0f0", td = "#3ddbd9", nd = "#08bdba", sd = "#009d9a", ad = "#007d79", id = "#005d5d", rd = "#004144", od = "#022b30", ld = "#081a1c", cd = {
|
|
7955
|
+
10: Qc,
|
|
7956
|
+
20: ed,
|
|
7957
|
+
30: td,
|
|
7958
|
+
40: nd,
|
|
7959
|
+
50: sd,
|
|
7960
|
+
60: ad,
|
|
7961
|
+
70: id,
|
|
7962
|
+
80: rd,
|
|
7963
|
+
90: od,
|
|
7964
|
+
100: ld
|
|
7965
|
+
}, dd = "#defbe6", hd = "#a7f0ba", ud = "#6fdc8c", pd = "#42be65", gd = "#24a148", md = "#198038", fd = "#0e6027", vd = "#044317", yd = "#022d0d", Ed = "#071908", bd = {
|
|
7966
|
+
10: dd,
|
|
7967
|
+
20: hd,
|
|
7968
|
+
30: ud,
|
|
7969
|
+
40: pd,
|
|
7970
|
+
50: gd,
|
|
7971
|
+
60: md,
|
|
7972
|
+
70: fd,
|
|
7973
|
+
80: vd,
|
|
7974
|
+
90: yd,
|
|
7975
|
+
100: Ed
|
|
7976
|
+
}, Sd = "#f2f4f8", Od = "#dde1e6", xd = "#c1c7cd", Td = "#a2a9b0", Ld = "#878d96", Ad = "#697077", Md = "#4d5358", wd = "#343a3f", Cd = "#21272a", _d = "#121619", Id = {
|
|
7977
|
+
10: Sd,
|
|
7978
|
+
20: Od,
|
|
7979
|
+
30: xd,
|
|
7980
|
+
40: Td,
|
|
7981
|
+
50: Ld,
|
|
7982
|
+
60: Ad,
|
|
7983
|
+
70: Md,
|
|
7984
|
+
80: wd,
|
|
7985
|
+
90: Cd,
|
|
7986
|
+
100: _d
|
|
7987
|
+
}, kd = "#f4f4f4", Rd = "#e0e0e0", Dd = "#c6c6c6", Nd = "#a8a8a8", Pd = "#8d8d8d", Vd = "#6f6f6f", Bd = "#525252", Gd = "#393939", Hd = "#262626", $d = "#161616", Ud = {
|
|
7988
|
+
10: kd,
|
|
7989
|
+
20: Rd,
|
|
7990
|
+
30: Dd,
|
|
7991
|
+
40: Nd,
|
|
7992
|
+
50: Pd,
|
|
7993
|
+
60: Vd,
|
|
7994
|
+
70: Bd,
|
|
7995
|
+
80: Gd,
|
|
7996
|
+
90: Hd,
|
|
7997
|
+
100: $d
|
|
7998
|
+
}, zd = "#f7f3f2", Fd = "#e5e0df", Wd = "#cac5c4", jd = "#ada8a8", Xd = "#8f8b8b", Zd = "#726e6e", Yd = "#565151", qd = "#3c3838", Kd = "#272525", Jd = "#171414", Qd = {
|
|
7999
|
+
10: zd,
|
|
8000
|
+
20: Fd,
|
|
8001
|
+
30: Wd,
|
|
8002
|
+
40: jd,
|
|
8003
|
+
50: Xd,
|
|
8004
|
+
60: Zd,
|
|
8005
|
+
70: Yd,
|
|
8006
|
+
80: qd,
|
|
8007
|
+
90: Kd,
|
|
8008
|
+
100: Jd
|
|
8009
|
+
}, Zs = {
|
|
8009
8010
|
black: {
|
|
8010
|
-
100:
|
|
8011
|
+
100: wl
|
|
8011
8012
|
},
|
|
8012
|
-
blue:
|
|
8013
|
-
coolGray:
|
|
8014
|
-
cyan:
|
|
8015
|
-
gray:
|
|
8016
|
-
green:
|
|
8017
|
-
magenta:
|
|
8018
|
-
orange:
|
|
8019
|
-
purple:
|
|
8020
|
-
red:
|
|
8021
|
-
teal:
|
|
8022
|
-
warmGray:
|
|
8013
|
+
blue: $c,
|
|
8014
|
+
coolGray: Id,
|
|
8015
|
+
cyan: Jc,
|
|
8016
|
+
gray: Ud,
|
|
8017
|
+
green: bd,
|
|
8018
|
+
magenta: Ec,
|
|
8019
|
+
orange: Kl,
|
|
8020
|
+
purple: _c,
|
|
8021
|
+
red: lc,
|
|
8022
|
+
teal: cd,
|
|
8023
|
+
warmGray: Qd,
|
|
8023
8024
|
white: {
|
|
8024
|
-
0:
|
|
8025
|
+
0: Cl
|
|
8025
8026
|
},
|
|
8026
|
-
yellow:
|
|
8027
|
+
yellow: Hl
|
|
8027
8028
|
};
|
|
8028
|
-
const
|
|
8029
|
+
const eh = (o) => {
|
|
8029
8030
|
if (!o)
|
|
8030
8031
|
return null;
|
|
8031
|
-
for (const e of Object.keys(
|
|
8032
|
-
const t =
|
|
8032
|
+
for (const e of Object.keys(Zs)) {
|
|
8033
|
+
const t = Zs[e];
|
|
8033
8034
|
for (const n of Object.keys(t))
|
|
8034
8035
|
if (t[+n] === o)
|
|
8035
8036
|
return n;
|
|
8036
8037
|
}
|
|
8037
8038
|
return null;
|
|
8038
|
-
},
|
|
8039
|
+
}, Ys = function() {
|
|
8039
8040
|
const o = x(this.parentNode).select("rect.leaf"), e = getComputedStyle(o.node(), null).getPropertyValue(
|
|
8040
8041
|
"fill"
|
|
8041
|
-
), t =
|
|
8042
|
+
), t = aa(e);
|
|
8042
8043
|
let n;
|
|
8043
|
-
if (t && (n =
|
|
8044
|
-
const s =
|
|
8044
|
+
if (t && (n = eh(t ? t.hex() : null)), n == null) {
|
|
8045
|
+
const s = sa(t).l;
|
|
8045
8046
|
n = Math.abs(s * 100 - 100);
|
|
8046
8047
|
}
|
|
8047
8048
|
return n > 50 ? "white" : "black";
|
|
8048
8049
|
};
|
|
8049
|
-
let
|
|
8050
|
-
class
|
|
8050
|
+
let th = 0;
|
|
8051
|
+
class tu extends Y {
|
|
8051
8052
|
constructor() {
|
|
8052
8053
|
super(...arguments), this.type = "treemap", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
8053
8054
|
const { hoveredElement: t } = e.detail;
|
|
@@ -8078,14 +8079,14 @@ class eu extends Y {
|
|
|
8078
8079
|
this.model.getData();
|
|
8079
8080
|
const n = this.model.getDisplayData(), s = this.model.getOptions(), a = y(window, "location"), { width: i, height: r } = S.getSVGElementSize(t, {
|
|
8080
8081
|
useAttrs: !0
|
|
8081
|
-
}), l =
|
|
8082
|
+
}), l = Hn({
|
|
8082
8083
|
name: s.title || "Treemap",
|
|
8083
8084
|
children: n
|
|
8084
8085
|
}).sum((m) => m.value).sort((m, E) => E.value - m.value), c = pi().size([i, r]).paddingInner(1).paddingOuter(0).round(!0)(
|
|
8085
8086
|
l
|
|
8086
8087
|
), d = t.selectAll("g[data-name='leaf']").data(c.leaves(), (m) => m.data.name);
|
|
8087
8088
|
d.exit().attr("opacity", 0).remove();
|
|
8088
|
-
const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () =>
|
|
8089
|
+
const h = d.enter().append("g").attr("data-name", "leaf").attr("data-uid", () => th++).merge(d);
|
|
8089
8090
|
h.attr("data-name", "leaf").transition().call(
|
|
8090
8091
|
(m) => this.services.transitions.setupTransition({
|
|
8091
8092
|
transition: m,
|
|
@@ -8138,7 +8139,7 @@ class eu extends Y {
|
|
|
8138
8139
|
let E = m;
|
|
8139
8140
|
for (; E.depth > 1; )
|
|
8140
8141
|
E = E.parent;
|
|
8141
|
-
const v =
|
|
8142
|
+
const v = sa(this.model.getFillColor(E.data.name));
|
|
8142
8143
|
return [
|
|
8143
8144
|
{
|
|
8144
8145
|
text: m.data.name,
|
|
@@ -8149,13 +8150,13 @@ class eu extends Y {
|
|
|
8149
8150
|
(m) => m
|
|
8150
8151
|
).join(
|
|
8151
8152
|
(m) => {
|
|
8152
|
-
const E = m.append("text").text((v) => v.text).style("fill",
|
|
8153
|
+
const E = m.append("text").text((v) => v.text).style("fill", Ys).attr("x", 7).attr("y", 18);
|
|
8153
8154
|
return a && E.attr("clip-path", function() {
|
|
8154
8155
|
const v = x(this.parentNode).attr("data-uid"), O = `${s.style.prefix}-clip-${v}`;
|
|
8155
8156
|
return `url(${new URL(`#${O}`, a) + ""})`;
|
|
8156
8157
|
}), E;
|
|
8157
8158
|
},
|
|
8158
|
-
(m) => m.text((E) => E.text).style("fill",
|
|
8159
|
+
(m) => m.text((E) => E.text).style("fill", Ys),
|
|
8159
8160
|
(m) => m.remove()
|
|
8160
8161
|
), this.addEventListeners();
|
|
8161
8162
|
}
|
|
@@ -8173,7 +8174,7 @@ class eu extends Y {
|
|
|
8173
8174
|
})
|
|
8174
8175
|
).style("fill", (r) => {
|
|
8175
8176
|
const l = e.model.getFillColor(r.parent.data.name);
|
|
8176
|
-
return l && (a = l),
|
|
8177
|
+
return l && (a = l), aa(a).darker(0.7).toString();
|
|
8177
8178
|
}), e.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
8178
8179
|
event: t,
|
|
8179
8180
|
hoveredElement: s,
|
|
@@ -8229,7 +8230,7 @@ class eu extends Y {
|
|
|
8229
8230
|
});
|
|
8230
8231
|
}
|
|
8231
8232
|
}
|
|
8232
|
-
class
|
|
8233
|
+
class nu extends Y {
|
|
8233
8234
|
constructor() {
|
|
8234
8235
|
super(...arguments), this.type = "wordcloud", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
8235
8236
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -8298,11 +8299,11 @@ class tu extends Y {
|
|
|
8298
8299
|
this.addEventListeners();
|
|
8299
8300
|
}
|
|
8300
8301
|
getFontSizeScale(e) {
|
|
8301
|
-
const t = this.getOptions(), { fontSizeMapsTo: n } = t.wordCloud, s = e.map((l) => l[n]).filter((l) => l), a = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), i = s.length > 0, r = i ?
|
|
8302
|
+
const t = this.getOptions(), { fontSizeMapsTo: n } = t.wordCloud, s = e.map((l) => l[n]).filter((l) => l), a = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), i = s.length > 0, r = i ? Wt(s) : [1, 1];
|
|
8302
8303
|
return Ze().domain(r).range(i ? t.wordCloud.fontSizeRange(a, e) : [4, 4]);
|
|
8303
8304
|
}
|
|
8304
8305
|
addEventListeners() {
|
|
8305
|
-
const e = this.getOptions(), { groupMapsTo: t } = e.data, n = this, s =
|
|
8306
|
+
const e = this.getOptions(), { groupMapsTo: t } = e.data, n = this, s = vn((a) => {
|
|
8306
8307
|
const i = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
|
|
8307
8308
|
(r) => n.services.transitions.setupTransition({
|
|
8308
8309
|
transition: r,
|
|
@@ -8367,7 +8368,7 @@ class tu extends Y {
|
|
|
8367
8368
|
});
|
|
8368
8369
|
}
|
|
8369
8370
|
}
|
|
8370
|
-
class
|
|
8371
|
+
class nh extends Y {
|
|
8371
8372
|
constructor() {
|
|
8372
8373
|
super(...arguments), this.type = "geo", this.renderType = W.SVG;
|
|
8373
8374
|
}
|
|
@@ -8381,7 +8382,7 @@ class th extends Y {
|
|
|
8381
8382
|
Object.keys(i).forEach((v) => {
|
|
8382
8383
|
typeof i[v].value == "number" ? r[v] = i[v] : l[v] = i[v];
|
|
8383
8384
|
});
|
|
8384
|
-
const c =
|
|
8385
|
+
const c = Tl(a, Object.values(l)), d = Sl(a, {
|
|
8385
8386
|
// We need to specify that we are converting geometry collections
|
|
8386
8387
|
type: "GeometryCollection",
|
|
8387
8388
|
geometries: Object.values(r)
|
|
@@ -8390,7 +8391,7 @@ class th extends Y {
|
|
|
8390
8391
|
const g = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), m = S.appendOrSelect(e, "defs");
|
|
8391
8392
|
S.appendOrSelect(m, "pattern").attr("id", g).attr("width", 5).attr("height", 10).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("path").classed("pattern-fill", !0).attr(
|
|
8392
8393
|
"d",
|
|
8393
|
-
|
|
8394
|
+
Pn()([
|
|
8394
8395
|
[0, 0],
|
|
8395
8396
|
[0, 10]
|
|
8396
8397
|
])
|
|
@@ -8409,25 +8410,25 @@ class th extends Y {
|
|
|
8409
8410
|
getProjection() {
|
|
8410
8411
|
let e = null;
|
|
8411
8412
|
switch (y(this.getOptions(), "thematic", "projection")) {
|
|
8412
|
-
case
|
|
8413
|
+
case je.geoEqualEarth:
|
|
8413
8414
|
e = Si();
|
|
8414
8415
|
break;
|
|
8415
|
-
case
|
|
8416
|
+
case je.geoAlbers:
|
|
8416
8417
|
e = bi();
|
|
8417
8418
|
break;
|
|
8418
|
-
case
|
|
8419
|
+
case je.geoConicEqualArea:
|
|
8419
8420
|
e = Ei();
|
|
8420
8421
|
break;
|
|
8421
|
-
case
|
|
8422
|
+
case je.geoConicEquidistant:
|
|
8422
8423
|
e = yi();
|
|
8423
8424
|
break;
|
|
8424
|
-
case
|
|
8425
|
+
case je.geoEquirectangular:
|
|
8425
8426
|
e = vi();
|
|
8426
8427
|
break;
|
|
8427
|
-
case
|
|
8428
|
+
case je.geoMercator:
|
|
8428
8429
|
e = fi();
|
|
8429
8430
|
break;
|
|
8430
|
-
case
|
|
8431
|
+
case je.geoNaturalEarth1:
|
|
8431
8432
|
e = mi();
|
|
8432
8433
|
break;
|
|
8433
8434
|
default:
|
|
@@ -8436,7 +8437,7 @@ class th extends Y {
|
|
|
8436
8437
|
return e;
|
|
8437
8438
|
}
|
|
8438
8439
|
}
|
|
8439
|
-
class
|
|
8440
|
+
class su extends nh {
|
|
8440
8441
|
constructor() {
|
|
8441
8442
|
super(...arguments), this.type = "choropleth";
|
|
8442
8443
|
}
|
|
@@ -8455,11 +8456,11 @@ class nu extends th {
|
|
|
8455
8456
|
const e = this, t = this.model.getCombinedData();
|
|
8456
8457
|
this.parent.selectAll("path.border").on("mouseover", function(n, s) {
|
|
8457
8458
|
const a = x(this);
|
|
8458
|
-
e.services.events.dispatchEvent(
|
|
8459
|
+
e.services.events.dispatchEvent(_t.CHOROPLETH_MOUSEOVER, {
|
|
8459
8460
|
event: n,
|
|
8460
8461
|
element: a,
|
|
8461
8462
|
datum: t[s.properties.NAME]
|
|
8462
|
-
}), e.services.events.dispatchEvent(
|
|
8463
|
+
}), e.services.events.dispatchEvent(on.SHOW, {
|
|
8463
8464
|
event: n,
|
|
8464
8465
|
hoveredElement: a,
|
|
8465
8466
|
items: [
|
|
@@ -8470,26 +8471,26 @@ class nu extends th {
|
|
|
8470
8471
|
]
|
|
8471
8472
|
});
|
|
8472
8473
|
}).on("mousemove", function(n, s) {
|
|
8473
|
-
e.services.events.dispatchEvent(
|
|
8474
|
+
e.services.events.dispatchEvent(_t.CHOROPLETH_MOUSEMOVE, {
|
|
8474
8475
|
event: n,
|
|
8475
8476
|
element: x(this),
|
|
8476
8477
|
datum: t[s.properties.NAME]
|
|
8477
|
-
}), e.services.events.dispatchEvent(
|
|
8478
|
+
}), e.services.events.dispatchEvent(on.MOVE, {
|
|
8478
8479
|
event: n
|
|
8479
8480
|
});
|
|
8480
8481
|
}).on("click", function(n, s) {
|
|
8481
|
-
e.services.events.dispatchEvent(
|
|
8482
|
+
e.services.events.dispatchEvent(_t.CHOROPLETH_CLICK, {
|
|
8482
8483
|
event: n,
|
|
8483
8484
|
element: x(this),
|
|
8484
8485
|
datum: t[s.properties.NAME]
|
|
8485
8486
|
});
|
|
8486
8487
|
}).on("mouseout", function(n, s) {
|
|
8487
8488
|
const a = x(this);
|
|
8488
|
-
e.services.events.dispatchEvent(
|
|
8489
|
+
e.services.events.dispatchEvent(_t.CHOROPLETH_MOUSEOUT, {
|
|
8489
8490
|
event: n,
|
|
8490
8491
|
element: a,
|
|
8491
8492
|
datum: t[s.properties.NAME]
|
|
8492
|
-
}), e.services.events.dispatchEvent(
|
|
8493
|
+
}), e.services.events.dispatchEvent(on.HIDE, {
|
|
8493
8494
|
event: n,
|
|
8494
8495
|
hoveredElement: a
|
|
8495
8496
|
});
|
|
@@ -8497,69 +8498,69 @@ class nu extends th {
|
|
|
8497
8498
|
}
|
|
8498
8499
|
}
|
|
8499
8500
|
export {
|
|
8500
|
-
|
|
8501
|
+
qh as $,
|
|
8501
8502
|
_a as A,
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8503
|
+
Mh as B,
|
|
8504
|
+
pl as C,
|
|
8505
|
+
Ah as D,
|
|
8506
|
+
su as E,
|
|
8507
|
+
Hh as F,
|
|
8508
|
+
Eh as G,
|
|
8509
|
+
fl as H,
|
|
8510
|
+
$h as I,
|
|
8511
|
+
Uh as J,
|
|
8512
|
+
zh as K,
|
|
8513
|
+
ul as L,
|
|
8514
|
+
Gh as M,
|
|
8515
|
+
Fh as N,
|
|
8516
|
+
Wh as O,
|
|
8517
|
+
Sh as P,
|
|
8518
|
+
jh as Q,
|
|
8518
8519
|
Ca as R,
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8520
|
+
wh as S,
|
|
8521
|
+
Is as T,
|
|
8522
|
+
Xh as U,
|
|
8523
|
+
Ml as V,
|
|
8524
|
+
Zh as W,
|
|
8525
|
+
zn as X,
|
|
8526
|
+
Yh as Y,
|
|
8527
|
+
Th as Z,
|
|
8528
|
+
vl as _,
|
|
8529
|
+
zs as a,
|
|
8530
|
+
Kh as a0,
|
|
8531
|
+
Jh as a1,
|
|
8532
|
+
Qh as a2,
|
|
8533
|
+
eu as a3,
|
|
8534
|
+
tu as a4,
|
|
8535
|
+
nu as a5,
|
|
8536
|
+
ks as a6,
|
|
8537
|
+
hh as a7,
|
|
8537
8538
|
Y as a8,
|
|
8538
8539
|
Or as a9,
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8540
|
+
Oh as b,
|
|
8541
|
+
gh as c,
|
|
8542
|
+
kh as d,
|
|
8543
|
+
Rh as e,
|
|
8544
|
+
Ih as f,
|
|
8545
|
+
_h as g,
|
|
8546
|
+
Ch as h,
|
|
8547
|
+
Dh as i,
|
|
8548
|
+
Nh as j,
|
|
8549
|
+
vh as k,
|
|
8550
|
+
ph as l,
|
|
8551
|
+
Bh as m,
|
|
8552
|
+
nh as n,
|
|
8553
|
+
fh as o,
|
|
8554
|
+
uh as p,
|
|
8555
|
+
mh as q,
|
|
8556
|
+
hl as r,
|
|
8557
|
+
Ph as s,
|
|
8558
|
+
Vh as t,
|
|
8559
|
+
gl as u,
|
|
8560
|
+
yh as v,
|
|
8561
|
+
bh as w,
|
|
8562
|
+
Wn as x,
|
|
8563
|
+
xh as y,
|
|
8564
|
+
Lh as z
|
|
8564
8565
|
};
|
|
8565
|
-
//# sourceMappingURL=choropleth-
|
|
8566
|
+
//# sourceMappingURL=choropleth-a9b8bAaz.mjs.map
|