@dpuse/dpuse-tool-d3-visualiser 1.0.106 → 1.0.107
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/README.md +85 -201
- package/dist/chordDiagram-BG0jW2g9.js +3663 -0
- package/dist/chordDiagram-BG0jW2g9.js.map +1 -0
- package/dist/dpuse-tool-d3-visualiser.es.js +6 -35
- package/dist/dpuse-tool-d3-visualiser.es.js.map +1 -1
- package/dist/{erdDiagram-CtPeCq0f.js → erdDiagram-CHPY-zaP.js} +1 -1
- package/dist/{erdDiagram-CtPeCq0f.js.map → erdDiagram-CHPY-zaP.js.map} +1 -1
- package/dist/{linear-q6e-7JBm.js → linear-DytAYqu2.js} +152 -106
- package/dist/linear-DytAYqu2.js.map +1 -0
- package/dist/{link-DRDgTeij.js → link-BfoIl3p5.js} +1 -1
- package/dist/{link-DRDgTeij.js.map → link-BfoIl3p5.js.map} +1 -1
- package/dist/networkDiagram-XI0c9kJR.js +1029 -0
- package/dist/networkDiagram-XI0c9kJR.js.map +1 -0
- package/dist/{palette-BuTjISrV.js → palette-Ca7C6aNE.js} +17 -6
- package/dist/palette-Ca7C6aNE.js.map +1 -0
- package/dist/{path-BoJ8LMXE.js → point-DSPrfIZi.js} +23 -3
- package/dist/point-DSPrfIZi.js.map +1 -0
- package/dist/{sankeyDiagram-DOF6arSJ.js → sankeyDiagram-w2TGSqb7.js} +72 -52
- package/dist/sankeyDiagram-w2TGSqb7.js.map +1 -0
- package/dist/{select-BIuoFcZG.js → select-Bs4oiNEZ.js} +1 -1
- package/dist/{select-BIuoFcZG.js.map → select-Bs4oiNEZ.js.map} +1 -1
- package/dist/shipped-packages.json +1 -11
- package/dist/{src-kLpf-6r0.js → src-Bo8my4B8.js} +185 -188
- package/dist/{src-kLpf-6r0.js.map → src-Bo8my4B8.js.map} +1 -1
- package/dist/{string-BOhFwaZD.js → string-iJh48M7Y.js} +22 -48
- package/dist/string-iJh48M7Y.js.map +1 -0
- package/dist/{tanStackCharts-DuJwwUCO.js → tanStackCharts-LPqRQGD9.js} +1228 -1176
- package/dist/tanStackCharts-LPqRQGD9.js.map +1 -0
- package/dist/{treeDiagram-FUVkkblR.js → treeDiagram-C798R8hL.js} +2 -2
- package/dist/{treeDiagram-FUVkkblR.js.map → treeDiagram-C798R8hL.js.map} +1 -1
- package/dist/types/src/index.d.ts +2 -12
- package/dist/types/src/tanStackCharts.d.ts +8 -2
- package/package.json +7 -11
- package/dist/axis-EpX3kBPs.js +0 -67
- package/dist/axis-EpX3kBPs.js.map +0 -1
- package/dist/band-p1VbTxZM.js +0 -56
- package/dist/band-p1VbTxZM.js.map +0 -1
- package/dist/billboardJs-CIT1-a2_.js +0 -6996
- package/dist/billboardJs-CIT1-a2_.js.map +0 -1
- package/dist/chordDiagram-B1_nfC1m.js +0 -2925
- package/dist/chordDiagram-B1_nfC1m.js.map +0 -1
- package/dist/d3BarChart-BC05DvRv.js +0 -48
- package/dist/d3BarChart-BC05DvRv.js.map +0 -1
- package/dist/dpuse-tool-d3-visualiser.css +0 -11
- package/dist/drag-Ieen6R0z.js +0 -168
- package/dist/drag-Ieen6R0z.js.map +0 -1
- package/dist/linear-q6e-7JBm.js.map +0 -1
- package/dist/math-C5EhTgJw.js +0 -10
- package/dist/math-C5EhTgJw.js.map +0 -1
- package/dist/max-CPVNm4tn.js +0 -12
- package/dist/max-CPVNm4tn.js.map +0 -1
- package/dist/networkDiagram-DZwLfY_R.js +0 -493
- package/dist/networkDiagram-DZwLfY_R.js.map +0 -1
- package/dist/nodrag-Dq2tlBbe.js +0 -49
- package/dist/nodrag-Dq2tlBbe.js.map +0 -1
- package/dist/observablePlot-Bk7j7AUD.js +0 -6919
- package/dist/observablePlot-Bk7j7AUD.js.map +0 -1
- package/dist/ordinal-BtWaYSDN.js +0 -81
- package/dist/ordinal-BtWaYSDN.js.map +0 -1
- package/dist/palette-BuTjISrV.js.map +0 -1
- package/dist/path-BoJ8LMXE.js.map +0 -1
- package/dist/point-GXxVI808.js +0 -25
- package/dist/point-GXxVI808.js.map +0 -1
- package/dist/pow-Bp6eSqVs.js +0 -76
- package/dist/pow-Bp6eSqVs.js.map +0 -1
- package/dist/sankeyDiagram-DOF6arSJ.js.map +0 -1
- package/dist/src-Clugeype.js +0 -331
- package/dist/src-Clugeype.js.map +0 -1
- package/dist/step-C2rRFtYO.js +0 -670
- package/dist/step-C2rRFtYO.js.map +0 -1
- package/dist/string-BOhFwaZD.js.map +0 -1
- package/dist/sum-CNP0Xric.js +0 -23
- package/dist/sum-CNP0Xric.js.map +0 -1
- package/dist/tanStackCharts-DuJwwUCO.js.map +0 -1
- package/dist/types/src/billboardJs.d.ts +0 -15
- package/dist/types/src/d3BarChart.d.ts +0 -7
- package/dist/types/src/observablePlot.d.ts +0 -8
- package/dist/utcTime-DLfrQXna.js +0 -957
- package/dist/utcTime-DLfrQXna.js.map +0 -1
|
@@ -1,2925 +0,0 @@
|
|
|
1
|
-
import { i as e, r as t, s as n, t as r } from "./pow-Bp6eSqVs.js";
|
|
2
|
-
import { p as i } from "./linear-q6e-7JBm.js";
|
|
3
|
-
import { n as a } from "./ordinal-BtWaYSDN.js";
|
|
4
|
-
import { t as o } from "./max-CPVNm4tn.js";
|
|
5
|
-
import { n as s } from "./src-kLpf-6r0.js";
|
|
6
|
-
import { t as c } from "./select-BIuoFcZG.js";
|
|
7
|
-
import { d as l, p as u } from "./string-BOhFwaZD.js";
|
|
8
|
-
import { r as d, t as f } from "./array-Cv4-2llb.js";
|
|
9
|
-
import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, p as b, r as x, s as S, t as C, u as w } from "./math-C5EhTgJw.js";
|
|
10
|
-
import { n as T } from "./path-BoJ8LMXE.js";
|
|
11
|
-
import { n as E, r as D, t as O } from "./point-GXxVI808.js";
|
|
12
|
-
import { _ as k, a as A, c as j, d as ee, f as te, g as ne, h as re, i as ie, l as M, m as N, n as P, o as F, p as ae, r as oe, s as se, t as ce, u as le, v as ue } from "./step-C2rRFtYO.js";
|
|
13
|
-
import { n as de } from "./hierarchy-CDFAetye.js";
|
|
14
|
-
import { r as fe, t as pe } from "./palette-BuTjISrV.js";
|
|
15
|
-
//#region node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
16
|
-
function me(e) {
|
|
17
|
-
if (e.sheet) return e.sheet;
|
|
18
|
-
/* istanbul ignore next */
|
|
19
|
-
for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
|
|
20
|
-
}
|
|
21
|
-
function I(e) {
|
|
22
|
-
var t = document.createElement("style");
|
|
23
|
-
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
24
|
-
}
|
|
25
|
-
var he = /*#__PURE__*/ function() {
|
|
26
|
-
function e(e) {
|
|
27
|
-
var t = this;
|
|
28
|
-
this._insertTag = function(e) {
|
|
29
|
-
var n = t.tags.length === 0 ? t.insertionPoint ? t.insertionPoint.nextSibling : t.prepend ? t.container.firstChild : t.before : t.tags[t.tags.length - 1].nextSibling;
|
|
30
|
-
t.container.insertBefore(e, n), t.tags.push(e);
|
|
31
|
-
}, this.isSpeedy = e.speedy === void 0 || e.speedy, this.tags = [], this.ctr = 0, this.nonce = e.nonce, this.key = e.key, this.container = e.container, this.prepend = e.prepend, this.insertionPoint = e.insertionPoint, this.before = null;
|
|
32
|
-
}
|
|
33
|
-
var t = e.prototype;
|
|
34
|
-
return t.hydrate = function(e) {
|
|
35
|
-
e.forEach(this._insertTag);
|
|
36
|
-
}, t.insert = function(e) {
|
|
37
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(I(this));
|
|
38
|
-
var t = this.tags[this.tags.length - 1];
|
|
39
|
-
if (this.isSpeedy) {
|
|
40
|
-
var n = me(t);
|
|
41
|
-
try {
|
|
42
|
-
n.insertRule(e, n.cssRules.length);
|
|
43
|
-
} catch {}
|
|
44
|
-
} else t.appendChild(document.createTextNode(e));
|
|
45
|
-
this.ctr++;
|
|
46
|
-
}, t.flush = function() {
|
|
47
|
-
this.tags.forEach(function(e) {
|
|
48
|
-
return e.parentNode?.removeChild(e);
|
|
49
|
-
}), this.tags = [], this.ctr = 0;
|
|
50
|
-
}, e;
|
|
51
|
-
}(), L = "-ms-", ge = "-moz-", R = "-webkit-", _e = "comm", ve = "rule", ye = "decl", be = "@import", xe = "@keyframes", Se = "@layer", Ce = Math.abs, we = String.fromCharCode, Te = Object.assign;
|
|
52
|
-
function Ee(e, t) {
|
|
53
|
-
return B(e, 0) ^ 45 ? (((t << 2 ^ B(e, 0)) << 2 ^ B(e, 1)) << 2 ^ B(e, 2)) << 2 ^ B(e, 3) : 0;
|
|
54
|
-
}
|
|
55
|
-
function De(e) {
|
|
56
|
-
return e.trim();
|
|
57
|
-
}
|
|
58
|
-
function Oe(e, t) {
|
|
59
|
-
return (e = t.exec(e)) ? e[0] : e;
|
|
60
|
-
}
|
|
61
|
-
function z(e, t, n) {
|
|
62
|
-
return e.replace(t, n);
|
|
63
|
-
}
|
|
64
|
-
function ke(e, t) {
|
|
65
|
-
return e.indexOf(t);
|
|
66
|
-
}
|
|
67
|
-
function B(e, t) {
|
|
68
|
-
return e.charCodeAt(t) | 0;
|
|
69
|
-
}
|
|
70
|
-
function Ae(e, t, n) {
|
|
71
|
-
return e.slice(t, n);
|
|
72
|
-
}
|
|
73
|
-
function V(e) {
|
|
74
|
-
return e.length;
|
|
75
|
-
}
|
|
76
|
-
function je(e) {
|
|
77
|
-
return e.length;
|
|
78
|
-
}
|
|
79
|
-
function Me(e, t) {
|
|
80
|
-
return t.push(e), e;
|
|
81
|
-
}
|
|
82
|
-
function Ne(e, t) {
|
|
83
|
-
return e.map(t).join("");
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region node_modules/stylis/src/Tokenizer.js
|
|
87
|
-
var Pe = 1, Fe = 1, Ie = 0, H = 0, U = 0, Le = "";
|
|
88
|
-
function Re(e, t, n, r, i, a, o) {
|
|
89
|
-
return {
|
|
90
|
-
value: e,
|
|
91
|
-
root: t,
|
|
92
|
-
parent: n,
|
|
93
|
-
type: r,
|
|
94
|
-
props: i,
|
|
95
|
-
children: a,
|
|
96
|
-
line: Pe,
|
|
97
|
-
column: Fe,
|
|
98
|
-
length: o,
|
|
99
|
-
return: ""
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function ze(e, t) {
|
|
103
|
-
return Te(Re("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
104
|
-
}
|
|
105
|
-
function Be() {
|
|
106
|
-
return U;
|
|
107
|
-
}
|
|
108
|
-
function Ve() {
|
|
109
|
-
return U = H > 0 ? B(Le, --H) : 0, Fe--, U === 10 && (Fe = 1, Pe--), U;
|
|
110
|
-
}
|
|
111
|
-
function W() {
|
|
112
|
-
return U = H < Ie ? B(Le, H++) : 0, Fe++, U === 10 && (Fe = 1, Pe++), U;
|
|
113
|
-
}
|
|
114
|
-
function G() {
|
|
115
|
-
return B(Le, H);
|
|
116
|
-
}
|
|
117
|
-
function He() {
|
|
118
|
-
return H;
|
|
119
|
-
}
|
|
120
|
-
function Ue(e, t) {
|
|
121
|
-
return Ae(Le, e, t);
|
|
122
|
-
}
|
|
123
|
-
function We(e) {
|
|
124
|
-
switch (e) {
|
|
125
|
-
case 0:
|
|
126
|
-
case 9:
|
|
127
|
-
case 10:
|
|
128
|
-
case 13:
|
|
129
|
-
case 32: return 5;
|
|
130
|
-
case 33:
|
|
131
|
-
case 43:
|
|
132
|
-
case 44:
|
|
133
|
-
case 47:
|
|
134
|
-
case 62:
|
|
135
|
-
case 64:
|
|
136
|
-
case 126:
|
|
137
|
-
case 59:
|
|
138
|
-
case 123:
|
|
139
|
-
case 125: return 4;
|
|
140
|
-
case 58: return 3;
|
|
141
|
-
case 34:
|
|
142
|
-
case 39:
|
|
143
|
-
case 40:
|
|
144
|
-
case 91: return 2;
|
|
145
|
-
case 41:
|
|
146
|
-
case 93: return 1;
|
|
147
|
-
}
|
|
148
|
-
return 0;
|
|
149
|
-
}
|
|
150
|
-
function Ge(e) {
|
|
151
|
-
return Pe = Fe = 1, Ie = V(Le = e), H = 0, [];
|
|
152
|
-
}
|
|
153
|
-
function Ke(e) {
|
|
154
|
-
return Le = "", e;
|
|
155
|
-
}
|
|
156
|
-
function qe(e) {
|
|
157
|
-
return De(Ue(H - 1, Xe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
158
|
-
}
|
|
159
|
-
function Je(e) {
|
|
160
|
-
for (; (U = G()) && U < 33;) W();
|
|
161
|
-
return We(e) > 2 || We(U) > 3 ? "" : " ";
|
|
162
|
-
}
|
|
163
|
-
function Ye(e, t) {
|
|
164
|
-
for (; --t && W() && !(U < 48 || U > 102 || U > 57 && U < 65 || U > 70 && U < 97););
|
|
165
|
-
return Ue(e, He() + (t < 6 && G() == 32 && W() == 32));
|
|
166
|
-
}
|
|
167
|
-
function Xe(e) {
|
|
168
|
-
for (; W();) switch (U) {
|
|
169
|
-
case e: return H;
|
|
170
|
-
case 34:
|
|
171
|
-
case 39:
|
|
172
|
-
e !== 34 && e !== 39 && Xe(U);
|
|
173
|
-
break;
|
|
174
|
-
case 40:
|
|
175
|
-
e === 41 && Xe(e);
|
|
176
|
-
break;
|
|
177
|
-
case 92: W();
|
|
178
|
-
}
|
|
179
|
-
return H;
|
|
180
|
-
}
|
|
181
|
-
function Ze(e, t) {
|
|
182
|
-
for (; W() && e + U !== 57 && (e + U !== 84 || G() !== 47););
|
|
183
|
-
return "/*" + Ue(t, H - 1) + "*" + we(e === 47 ? e : W());
|
|
184
|
-
}
|
|
185
|
-
function Qe(e) {
|
|
186
|
-
for (; !We(G());) W();
|
|
187
|
-
return Ue(e, H);
|
|
188
|
-
}
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region node_modules/stylis/src/Parser.js
|
|
191
|
-
function $e(e) {
|
|
192
|
-
return Ke(et("", null, null, null, [""], e = Ge(e), 0, [0], e));
|
|
193
|
-
}
|
|
194
|
-
function et(e, t, n, r, i, a, o, s, c) {
|
|
195
|
-
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = W()) {
|
|
196
|
-
case 40: if (m != 108 && B(C, d - 1) == 58) {
|
|
197
|
-
ke(C += z(qe(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
case 34:
|
|
201
|
-
case 39:
|
|
202
|
-
case 91:
|
|
203
|
-
C += qe(v);
|
|
204
|
-
break;
|
|
205
|
-
case 9:
|
|
206
|
-
case 10:
|
|
207
|
-
case 13:
|
|
208
|
-
case 32:
|
|
209
|
-
C += Je(m);
|
|
210
|
-
break;
|
|
211
|
-
case 92:
|
|
212
|
-
C += Ye(He() - 1, 7);
|
|
213
|
-
continue;
|
|
214
|
-
case 47:
|
|
215
|
-
switch (G()) {
|
|
216
|
-
case 42:
|
|
217
|
-
case 47:
|
|
218
|
-
Me(nt(Ze(W(), He()), t, n), c);
|
|
219
|
-
break;
|
|
220
|
-
default: C += "/";
|
|
221
|
-
}
|
|
222
|
-
break;
|
|
223
|
-
case 123 * h: s[l++] = V(C) * _;
|
|
224
|
-
case 125 * h:
|
|
225
|
-
case 59:
|
|
226
|
-
case 0:
|
|
227
|
-
switch (v) {
|
|
228
|
-
case 0:
|
|
229
|
-
case 125: g = 0;
|
|
230
|
-
case 59 + u:
|
|
231
|
-
_ == -1 && (C = z(C, /\f/g, "")), p > 0 && V(C) - d && Me(p > 32 ? rt(C + ";", r, n, d - 1) : rt(z(C, " ", "") + ";", r, n, d - 2), c);
|
|
232
|
-
break;
|
|
233
|
-
case 59: C += ";";
|
|
234
|
-
default: if (Me(S = tt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) {
|
|
235
|
-
if (u === 0) et(C, t, S, S, b, a, d, s, x);
|
|
236
|
-
else switch (f === 99 && B(C, 3) === 110 ? 100 : f) {
|
|
237
|
-
case 100:
|
|
238
|
-
case 108:
|
|
239
|
-
case 109:
|
|
240
|
-
case 115:
|
|
241
|
-
et(e, S, S, r && Me(tt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
|
|
242
|
-
break;
|
|
243
|
-
default: et(C, S, S, S, [""], x, 0, s, x);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
l = u = p = 0, h = _ = 1, y = C = "", d = o;
|
|
248
|
-
break;
|
|
249
|
-
case 58: d = 1 + V(C), p = m;
|
|
250
|
-
default:
|
|
251
|
-
if (h < 1) {
|
|
252
|
-
if (v == 123) --h;
|
|
253
|
-
else if (v == 125 && h++ == 0 && Ve() == 125) continue;
|
|
254
|
-
}
|
|
255
|
-
switch (C += we(v), v * h) {
|
|
256
|
-
case 38:
|
|
257
|
-
_ = u > 0 ? 1 : (C += "\f", -1);
|
|
258
|
-
break;
|
|
259
|
-
case 44:
|
|
260
|
-
s[l++] = (V(C) - 1) * _, _ = 1;
|
|
261
|
-
break;
|
|
262
|
-
case 64:
|
|
263
|
-
G() === 45 && (C += qe(W())), f = G(), u = d = V(y = C += Qe(He())), v++;
|
|
264
|
-
break;
|
|
265
|
-
case 45: m === 45 && V(C) == 2 && (h = 0);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return a;
|
|
269
|
-
}
|
|
270
|
-
function tt(e, t, n, r, i, a, o, s, c, l, u) {
|
|
271
|
-
for (var d = i - 1, f = i === 0 ? a : [""], p = je(f), m = 0, h = 0, g = 0; m < r; ++m) for (var _ = 0, v = Ae(e, d + 1, d = Ce(h = o[m])), y = e; _ < p; ++_) (y = De(h > 0 ? f[_] + " " + v : z(v, /&\f/g, f[_]))) && (c[g++] = y);
|
|
272
|
-
return Re(e, t, n, i === 0 ? ve : s, c, l, u);
|
|
273
|
-
}
|
|
274
|
-
function nt(e, t, n) {
|
|
275
|
-
return Re(e, t, n, _e, we(Be()), Ae(e, 2, -2), 0);
|
|
276
|
-
}
|
|
277
|
-
function rt(e, t, n, r) {
|
|
278
|
-
return Re(e, t, n, ye, Ae(e, 0, r), Ae(e, r + 1, -1), r);
|
|
279
|
-
}
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region node_modules/stylis/src/Serializer.js
|
|
282
|
-
function it(e, t) {
|
|
283
|
-
for (var n = "", r = je(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
|
|
284
|
-
return n;
|
|
285
|
-
}
|
|
286
|
-
function at(e, t, n, r) {
|
|
287
|
-
switch (e.type) {
|
|
288
|
-
case Se: if (e.children.length) break;
|
|
289
|
-
case be:
|
|
290
|
-
case ye: return e.return = e.return || e.value;
|
|
291
|
-
case _e: return "";
|
|
292
|
-
case xe: return e.return = e.value + "{" + it(e.children, r) + "}";
|
|
293
|
-
case ve: e.value = e.props.join(",");
|
|
294
|
-
}
|
|
295
|
-
return V(n = it(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
296
|
-
}
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region node_modules/stylis/src/Middleware.js
|
|
299
|
-
function ot(e) {
|
|
300
|
-
var t = je(e);
|
|
301
|
-
return function(n, r, i, a) {
|
|
302
|
-
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
303
|
-
return o;
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
function st(e) {
|
|
307
|
-
return function(t) {
|
|
308
|
-
t.root || (t = t.return) && e(t);
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
//#endregion
|
|
312
|
-
//#region node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
313
|
-
function ct(e) {
|
|
314
|
-
var t = Object.create(null);
|
|
315
|
-
return function(n) {
|
|
316
|
-
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
//#endregion
|
|
320
|
-
//#region node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
321
|
-
var lt = function(e, t, n) {
|
|
322
|
-
for (var r = 0, i = 0; r = i, i = G(), r === 38 && i === 12 && (t[n] = 1), !We(i);) W();
|
|
323
|
-
return Ue(e, H);
|
|
324
|
-
}, ut = function(e, t) {
|
|
325
|
-
var n = -1, r = 44;
|
|
326
|
-
do
|
|
327
|
-
switch (We(r)) {
|
|
328
|
-
case 0:
|
|
329
|
-
r === 38 && G() === 12 && (t[n] = 1), e[n] += lt(H - 1, t, n);
|
|
330
|
-
break;
|
|
331
|
-
case 2:
|
|
332
|
-
e[n] += qe(r);
|
|
333
|
-
break;
|
|
334
|
-
case 4: if (r === 44) {
|
|
335
|
-
e[++n] = G() === 58 ? "&\f" : "", t[n] = e[n].length;
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
default: e[n] += we(r);
|
|
339
|
-
}
|
|
340
|
-
while (r = W());
|
|
341
|
-
return e;
|
|
342
|
-
}, dt = function(e, t) {
|
|
343
|
-
return Ke(ut(Ge(e), t));
|
|
344
|
-
}, ft = /* #__PURE__ */ new WeakMap(), pt = function(e) {
|
|
345
|
-
if (!(e.type !== "rule" || !e.parent || e.length < 1)) {
|
|
346
|
-
for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule";) if (n = n.parent, !n) return;
|
|
347
|
-
if ((e.props.length !== 1 || t.charCodeAt(0) === 58 || ft.get(n)) && !r) {
|
|
348
|
-
ft.set(e, !0);
|
|
349
|
-
for (var i = [], a = dt(t, i), o = n.props, s = 0, c = 0; s < a.length; s++) for (var l = 0; l < o.length; l++, c++) e.props[c] = i[s] ? a[s].replace(/&\f/g, o[l]) : o[l] + " " + a[s];
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}, mt = function(e) {
|
|
353
|
-
if (e.type === "decl") {
|
|
354
|
-
var t = e.value;
|
|
355
|
-
t.charCodeAt(0) === 108 && t.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
function ht(e, t) {
|
|
359
|
-
switch (Ee(e, t)) {
|
|
360
|
-
case 5103: return R + "print-" + e + e;
|
|
361
|
-
case 5737:
|
|
362
|
-
case 4201:
|
|
363
|
-
case 3177:
|
|
364
|
-
case 3433:
|
|
365
|
-
case 1641:
|
|
366
|
-
case 4457:
|
|
367
|
-
case 2921:
|
|
368
|
-
case 5572:
|
|
369
|
-
case 6356:
|
|
370
|
-
case 5844:
|
|
371
|
-
case 3191:
|
|
372
|
-
case 6645:
|
|
373
|
-
case 3005:
|
|
374
|
-
case 6391:
|
|
375
|
-
case 5879:
|
|
376
|
-
case 5623:
|
|
377
|
-
case 6135:
|
|
378
|
-
case 4599:
|
|
379
|
-
case 4855:
|
|
380
|
-
case 4215:
|
|
381
|
-
case 6389:
|
|
382
|
-
case 5109:
|
|
383
|
-
case 5365:
|
|
384
|
-
case 5621:
|
|
385
|
-
case 3829: return R + e + e;
|
|
386
|
-
case 5349:
|
|
387
|
-
case 4246:
|
|
388
|
-
case 4810:
|
|
389
|
-
case 6968:
|
|
390
|
-
case 2756: return R + e + ge + e + L + e + e;
|
|
391
|
-
case 6828:
|
|
392
|
-
case 4268: return R + e + L + e + e;
|
|
393
|
-
case 6165: return R + e + L + "flex-" + e + e;
|
|
394
|
-
case 5187: return R + e + z(e, /(\w+).+(:[^]+)/, R + "box-$1$2" + L + "flex-$1$2") + e;
|
|
395
|
-
case 5443: return R + e + L + "flex-item-" + z(e, /flex-|-self/, "") + e;
|
|
396
|
-
case 4675: return R + e + L + "flex-line-pack" + z(e, /align-content|flex-|-self/, "") + e;
|
|
397
|
-
case 5548: return R + e + L + z(e, "shrink", "negative") + e;
|
|
398
|
-
case 5292: return R + e + L + z(e, "basis", "preferred-size") + e;
|
|
399
|
-
case 6060: return R + "box-" + z(e, "-grow", "") + R + e + L + z(e, "grow", "positive") + e;
|
|
400
|
-
case 4554: return R + z(e, /([^-])(transform)/g, "$1" + R + "$2") + e;
|
|
401
|
-
case 6187: return z(z(z(e, /(zoom-|grab)/, R + "$1"), /(image-set)/, R + "$1"), e, "") + e;
|
|
402
|
-
case 5495:
|
|
403
|
-
case 3959: return z(e, /(image-set\([^]*)/, R + "$1$`$1");
|
|
404
|
-
case 4968: return z(z(e, /(.+:)(flex-)?(.*)/, R + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + R + e + e;
|
|
405
|
-
case 4095:
|
|
406
|
-
case 3583:
|
|
407
|
-
case 4068:
|
|
408
|
-
case 2532: return z(e, /(.+)-inline(.+)/, R + "$1$2") + e;
|
|
409
|
-
case 8116:
|
|
410
|
-
case 7059:
|
|
411
|
-
case 5753:
|
|
412
|
-
case 5535:
|
|
413
|
-
case 5445:
|
|
414
|
-
case 5701:
|
|
415
|
-
case 4933:
|
|
416
|
-
case 4677:
|
|
417
|
-
case 5533:
|
|
418
|
-
case 5789:
|
|
419
|
-
case 5021:
|
|
420
|
-
case 4765:
|
|
421
|
-
if (V(e) - 1 - t > 6) switch (B(e, t + 1)) {
|
|
422
|
-
case 109: if (B(e, t + 4) !== 45) break;
|
|
423
|
-
case 102: return z(e, /(.+:)(.+)-([^]+)/, "$1" + R + "$2-$3$1" + ge + (B(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
424
|
-
case 115: return ~ke(e, "stretch") ? ht(z(e, "stretch", "fill-available"), t) + e : e;
|
|
425
|
-
}
|
|
426
|
-
break;
|
|
427
|
-
case 4949: if (B(e, t + 1) !== 115) break;
|
|
428
|
-
case 6444:
|
|
429
|
-
switch (B(e, V(e) - 3 - (~ke(e, "!important") && 10))) {
|
|
430
|
-
case 107: return z(e, ":", ":" + R) + e;
|
|
431
|
-
case 101: return z(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + R + (B(e, 14) === 45 ? "inline-" : "") + "box$3$1" + R + "$2$3$1" + L + "$2box$3") + e;
|
|
432
|
-
}
|
|
433
|
-
break;
|
|
434
|
-
case 5936:
|
|
435
|
-
switch (B(e, t + 11)) {
|
|
436
|
-
case 114: return R + e + L + z(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
437
|
-
case 108: return R + e + L + z(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
438
|
-
case 45: return R + e + L + z(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
439
|
-
}
|
|
440
|
-
return R + e + L + e + e;
|
|
441
|
-
}
|
|
442
|
-
return e;
|
|
443
|
-
}
|
|
444
|
-
var gt = [function(e, t, n, r) {
|
|
445
|
-
if (e.length > -1 && !e.return) switch (e.type) {
|
|
446
|
-
case ye:
|
|
447
|
-
e.return = ht(e.value, e.length);
|
|
448
|
-
break;
|
|
449
|
-
case xe: return it([ze(e, { value: z(e.value, "@", "@" + R) })], r);
|
|
450
|
-
case ve: if (e.length) return Ne(e.props, function(t) {
|
|
451
|
-
switch (Oe(t, /(::plac\w+|:read-\w+)/)) {
|
|
452
|
-
case ":read-only":
|
|
453
|
-
case ":read-write": return it([ze(e, { props: [z(t, /:(read-\w+)/, ":" + ge + "$1")] })], r);
|
|
454
|
-
case "::placeholder": return it([
|
|
455
|
-
ze(e, { props: [z(t, /:(plac\w+)/, ":" + R + "input-$1")] }),
|
|
456
|
-
ze(e, { props: [z(t, /:(plac\w+)/, ":" + ge + "$1")] }),
|
|
457
|
-
ze(e, { props: [z(t, /:(plac\w+)/, L + "input-$1")] })
|
|
458
|
-
], r);
|
|
459
|
-
}
|
|
460
|
-
return "";
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
}], _t = function(e) {
|
|
464
|
-
var t = e.key;
|
|
465
|
-
if (t === "css") {
|
|
466
|
-
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
467
|
-
Array.prototype.forEach.call(n, function(e) {
|
|
468
|
-
e.getAttribute("data-emotion").indexOf(" ") !== -1 && (document.head.appendChild(e), e.setAttribute("data-s", ""));
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
var r = e.stylisPlugins || gt, i = {}, a, o = [];
|
|
472
|
-
a = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion^=\"" + t + " \"]"), function(e) {
|
|
473
|
-
for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) i[t[n]] = !0;
|
|
474
|
-
o.push(e);
|
|
475
|
-
});
|
|
476
|
-
var s, c = [pt, mt], l, u = [at, st(function(e) {
|
|
477
|
-
l.insert(e);
|
|
478
|
-
})], d = ot(c.concat(r, u)), f = function(e) {
|
|
479
|
-
return it($e(e), d);
|
|
480
|
-
};
|
|
481
|
-
s = function(e, t, n, r) {
|
|
482
|
-
l = n, f(e ? e + "{" + t.styles + "}" : t.styles), r && (p.inserted[t.name] = !0);
|
|
483
|
-
};
|
|
484
|
-
var p = {
|
|
485
|
-
key: t,
|
|
486
|
-
sheet: new he({
|
|
487
|
-
key: t,
|
|
488
|
-
container: a,
|
|
489
|
-
nonce: e.nonce,
|
|
490
|
-
speedy: e.speedy,
|
|
491
|
-
prepend: e.prepend,
|
|
492
|
-
insertionPoint: e.insertionPoint
|
|
493
|
-
}),
|
|
494
|
-
nonce: e.nonce,
|
|
495
|
-
inserted: i,
|
|
496
|
-
registered: {},
|
|
497
|
-
insert: s
|
|
498
|
-
};
|
|
499
|
-
return p.sheet.hydrate(o), p;
|
|
500
|
-
};
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
503
|
-
function vt(e) {
|
|
504
|
-
for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4) n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= n >>> 24, t = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
505
|
-
switch (i) {
|
|
506
|
-
case 3: t ^= (e.charCodeAt(r + 2) & 255) << 16;
|
|
507
|
-
case 2: t ^= (e.charCodeAt(r + 1) & 255) << 8;
|
|
508
|
-
case 1: t ^= e.charCodeAt(r) & 255, t = (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
509
|
-
}
|
|
510
|
-
return t ^= t >>> 13, t = (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
511
|
-
}
|
|
512
|
-
//#endregion
|
|
513
|
-
//#region node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
514
|
-
var yt = {
|
|
515
|
-
animationIterationCount: 1,
|
|
516
|
-
aspectRatio: 1,
|
|
517
|
-
borderImageOutset: 1,
|
|
518
|
-
borderImageSlice: 1,
|
|
519
|
-
borderImageWidth: 1,
|
|
520
|
-
boxFlex: 1,
|
|
521
|
-
boxFlexGroup: 1,
|
|
522
|
-
boxOrdinalGroup: 1,
|
|
523
|
-
columnCount: 1,
|
|
524
|
-
columns: 1,
|
|
525
|
-
flex: 1,
|
|
526
|
-
flexGrow: 1,
|
|
527
|
-
flexPositive: 1,
|
|
528
|
-
flexShrink: 1,
|
|
529
|
-
flexNegative: 1,
|
|
530
|
-
flexOrder: 1,
|
|
531
|
-
gridRow: 1,
|
|
532
|
-
gridRowEnd: 1,
|
|
533
|
-
gridRowSpan: 1,
|
|
534
|
-
gridRowStart: 1,
|
|
535
|
-
gridColumn: 1,
|
|
536
|
-
gridColumnEnd: 1,
|
|
537
|
-
gridColumnSpan: 1,
|
|
538
|
-
gridColumnStart: 1,
|
|
539
|
-
msGridRow: 1,
|
|
540
|
-
msGridRowSpan: 1,
|
|
541
|
-
msGridColumn: 1,
|
|
542
|
-
msGridColumnSpan: 1,
|
|
543
|
-
fontWeight: 1,
|
|
544
|
-
lineHeight: 1,
|
|
545
|
-
opacity: 1,
|
|
546
|
-
order: 1,
|
|
547
|
-
orphans: 1,
|
|
548
|
-
scale: 1,
|
|
549
|
-
tabSize: 1,
|
|
550
|
-
widows: 1,
|
|
551
|
-
zIndex: 1,
|
|
552
|
-
zoom: 1,
|
|
553
|
-
WebkitLineClamp: 1,
|
|
554
|
-
fillOpacity: 1,
|
|
555
|
-
floodOpacity: 1,
|
|
556
|
-
stopOpacity: 1,
|
|
557
|
-
strokeDasharray: 1,
|
|
558
|
-
strokeDashoffset: 1,
|
|
559
|
-
strokeMiterlimit: 1,
|
|
560
|
-
strokeOpacity: 1,
|
|
561
|
-
strokeWidth: 1
|
|
562
|
-
}, bt = /[A-Z]|^ms/g, xt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, St = function(e) {
|
|
563
|
-
return e.charCodeAt(1) === 45;
|
|
564
|
-
}, Ct = function(e) {
|
|
565
|
-
return e != null && typeof e != "boolean";
|
|
566
|
-
}, wt = /* #__PURE__ */ ct(function(e) {
|
|
567
|
-
return St(e) ? e : e.replace(bt, "-$&").toLowerCase();
|
|
568
|
-
}), Tt = function(e, t) {
|
|
569
|
-
switch (e) {
|
|
570
|
-
case "animation":
|
|
571
|
-
case "animationName": if (typeof t == "string") return t.replace(xt, function(e, t, n) {
|
|
572
|
-
return K = {
|
|
573
|
-
name: t,
|
|
574
|
-
styles: n,
|
|
575
|
-
next: K
|
|
576
|
-
}, t;
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
return yt[e] !== 1 && !St(e) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
580
|
-
};
|
|
581
|
-
function Et(e, t, n) {
|
|
582
|
-
if (n == null) return "";
|
|
583
|
-
var r = n;
|
|
584
|
-
if (r.__emotion_styles !== void 0) return r;
|
|
585
|
-
switch (typeof n) {
|
|
586
|
-
case "boolean": return "";
|
|
587
|
-
case "object":
|
|
588
|
-
var i = n;
|
|
589
|
-
if (i.anim === 1) return K = {
|
|
590
|
-
name: i.name,
|
|
591
|
-
styles: i.styles,
|
|
592
|
-
next: K
|
|
593
|
-
}, i.name;
|
|
594
|
-
var a = n;
|
|
595
|
-
if (a.styles !== void 0) {
|
|
596
|
-
var o = a.next;
|
|
597
|
-
if (o !== void 0) for (; o !== void 0;) K = {
|
|
598
|
-
name: o.name,
|
|
599
|
-
styles: o.styles,
|
|
600
|
-
next: K
|
|
601
|
-
}, o = o.next;
|
|
602
|
-
return a.styles + ";";
|
|
603
|
-
}
|
|
604
|
-
return Dt(e, t, n);
|
|
605
|
-
case "function": if (e !== void 0) {
|
|
606
|
-
var s = K, c = n(e);
|
|
607
|
-
return K = s, Et(e, t, c);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
var l = n;
|
|
611
|
-
if (t == null) return l;
|
|
612
|
-
var u = t[l];
|
|
613
|
-
return u === void 0 ? l : u;
|
|
614
|
-
}
|
|
615
|
-
function Dt(e, t, n) {
|
|
616
|
-
var r = "";
|
|
617
|
-
if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r += Et(e, t, n[i]) + ";";
|
|
618
|
-
else for (var a in n) {
|
|
619
|
-
var o = n[a];
|
|
620
|
-
if (typeof o != "object") {
|
|
621
|
-
var s = o;
|
|
622
|
-
t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" : Ct(s) && (r += wt(a) + ":" + Tt(a, s) + ";");
|
|
623
|
-
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++) Ct(o[c]) && (r += wt(a) + ":" + Tt(a, o[c]) + ";");
|
|
624
|
-
else {
|
|
625
|
-
var l = Et(e, t, o);
|
|
626
|
-
switch (a) {
|
|
627
|
-
case "animation":
|
|
628
|
-
case "animationName":
|
|
629
|
-
r += wt(a) + ":" + l + ";";
|
|
630
|
-
break;
|
|
631
|
-
default: r += a + "{" + l + "}";
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return r;
|
|
636
|
-
}
|
|
637
|
-
var Ot = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
|
|
638
|
-
function kt(e, t, n) {
|
|
639
|
-
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0];
|
|
640
|
-
var r = !0, i = "";
|
|
641
|
-
K = void 0;
|
|
642
|
-
var a = e[0];
|
|
643
|
-
a == null || a.raw === void 0 ? (r = !1, i += Et(n, t, a)) : i += a[0];
|
|
644
|
-
for (var o = 1; o < e.length; o++) i += Et(n, t, e[o]), r && (i += a[o]);
|
|
645
|
-
Ot.lastIndex = 0;
|
|
646
|
-
for (var s = "", c; (c = Ot.exec(i)) !== null;) s += "-" + c[1];
|
|
647
|
-
return {
|
|
648
|
-
name: vt(i) + s,
|
|
649
|
-
styles: i,
|
|
650
|
-
next: K
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
//#endregion
|
|
654
|
-
//#region node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
655
|
-
function At(e, t, n) {
|
|
656
|
-
var r = "";
|
|
657
|
-
return n.split(" ").forEach(function(n) {
|
|
658
|
-
e[n] === void 0 ? n && (r += n + " ") : t.push(e[n] + ";");
|
|
659
|
-
}), r;
|
|
660
|
-
}
|
|
661
|
-
var jt = function(e, t, n) {
|
|
662
|
-
var r = e.key + "-" + t.name;
|
|
663
|
-
n === !1 && e.registered[r] === void 0 && (e.registered[r] = t.styles);
|
|
664
|
-
}, Mt = function(e, t, n) {
|
|
665
|
-
jt(e, t, n);
|
|
666
|
-
var r = e.key + "-" + t.name;
|
|
667
|
-
if (e.inserted[t.name] === void 0) {
|
|
668
|
-
var i = t;
|
|
669
|
-
do
|
|
670
|
-
e.insert(t === i ? "." + r : "", i, e.sheet, !0), i = i.next;
|
|
671
|
-
while (i !== void 0);
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
//#endregion
|
|
675
|
-
//#region node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
676
|
-
function Nt(e, t) {
|
|
677
|
-
if (e.inserted[t.name] === void 0) return e.insert("", t, e.sheet, !0);
|
|
678
|
-
}
|
|
679
|
-
function Pt(e, t, n) {
|
|
680
|
-
var r = [], i = At(e, r, n);
|
|
681
|
-
return r.length < 2 ? n : i + t(r);
|
|
682
|
-
}
|
|
683
|
-
var Ft = function(e) {
|
|
684
|
-
var t = _t(e);
|
|
685
|
-
t.sheet.speedy = function(e) {
|
|
686
|
-
this.isSpeedy = e;
|
|
687
|
-
}, t.compat = !0;
|
|
688
|
-
var n = function() {
|
|
689
|
-
var e = kt([...arguments], t.registered, void 0);
|
|
690
|
-
return Mt(t, e, !1), t.key + "-" + e.name;
|
|
691
|
-
};
|
|
692
|
-
return {
|
|
693
|
-
css: n,
|
|
694
|
-
cx: function() {
|
|
695
|
-
var e = [...arguments];
|
|
696
|
-
return Pt(t.registered, n, It(e));
|
|
697
|
-
},
|
|
698
|
-
injectGlobal: function() {
|
|
699
|
-
Nt(t, kt([...arguments], t.registered));
|
|
700
|
-
},
|
|
701
|
-
keyframes: function() {
|
|
702
|
-
var e = kt([...arguments], t.registered), n = "animation-" + e.name;
|
|
703
|
-
return Nt(t, {
|
|
704
|
-
name: e.name,
|
|
705
|
-
styles: "@keyframes " + n + "{" + e.styles + "}"
|
|
706
|
-
}), n;
|
|
707
|
-
},
|
|
708
|
-
hydrate: function(e) {
|
|
709
|
-
e.forEach(function(e) {
|
|
710
|
-
t.inserted[e] = !0;
|
|
711
|
-
});
|
|
712
|
-
},
|
|
713
|
-
flush: function() {
|
|
714
|
-
t.registered = {}, t.inserted = {}, t.sheet.flush();
|
|
715
|
-
},
|
|
716
|
-
sheet: t.sheet,
|
|
717
|
-
cache: t,
|
|
718
|
-
getRegisteredStyles: At.bind(null, t.registered),
|
|
719
|
-
merge: Pt.bind(null, t.registered, n)
|
|
720
|
-
};
|
|
721
|
-
}, It = function e(t) {
|
|
722
|
-
for (var n = "", r = 0; r < t.length; r++) {
|
|
723
|
-
var i = t[r];
|
|
724
|
-
if (i != null) {
|
|
725
|
-
var a = void 0;
|
|
726
|
-
switch (typeof i) {
|
|
727
|
-
case "boolean": break;
|
|
728
|
-
case "object":
|
|
729
|
-
if (Array.isArray(i)) a = e(i);
|
|
730
|
-
else for (var o in a = "", i) i[o] && o && (a && (a += " "), a += o);
|
|
731
|
-
break;
|
|
732
|
-
default: a = i;
|
|
733
|
-
}
|
|
734
|
-
a && (n && (n += " "), n += a);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
return n;
|
|
738
|
-
}, Lt = /* @__PURE__ */ n({
|
|
739
|
-
cache: () => qt,
|
|
740
|
-
css: () => Gt,
|
|
741
|
-
cx: () => Bt,
|
|
742
|
-
flush: () => Rt,
|
|
743
|
-
getRegisteredStyles: () => Ht,
|
|
744
|
-
hydrate: () => zt,
|
|
745
|
-
injectGlobal: () => Ut,
|
|
746
|
-
keyframes: () => Wt,
|
|
747
|
-
merge: () => Vt,
|
|
748
|
-
sheet: () => Kt
|
|
749
|
-
}), q = Ft({ key: "css" }), Rt = q.flush, zt = q.hydrate, Bt = q.cx, Vt = q.merge, Ht = q.getRegisteredStyles, Ut = q.injectGlobal, Wt = q.keyframes, Gt = q.css, Kt = q.sheet, qt = q.cache, Jt = globalThis?.UNOVIS_NONCE, { css: J, cx: Yt, injectGlobal: Xt, keyframes: Zt, cache: Qt, sheet: $t } = Jt ? Ft({
|
|
750
|
-
key: "unovis",
|
|
751
|
-
nonce: Jt
|
|
752
|
-
}) : Lt;
|
|
753
|
-
//#endregion
|
|
754
|
-
//#region node_modules/throttle-debounce/esm/index.js
|
|
755
|
-
function en(e, t, n) {
|
|
756
|
-
var r = n || {}, i = r.noTrailing, a = i !== void 0 && i, o = r.noLeading, s = o !== void 0 && o, c = r.debounceMode, l = c === void 0 ? void 0 : c, u, d = !1, f = 0;
|
|
757
|
-
function p() {
|
|
758
|
-
u && clearTimeout(u);
|
|
759
|
-
}
|
|
760
|
-
function m(e) {
|
|
761
|
-
var t = (e || {}).upcomingOnly, n = t !== void 0 && t;
|
|
762
|
-
p(), d = !n;
|
|
763
|
-
}
|
|
764
|
-
function h() {
|
|
765
|
-
var n = [...arguments], r = this, i = Date.now() - f;
|
|
766
|
-
if (d) return;
|
|
767
|
-
function o() {
|
|
768
|
-
f = Date.now(), t.apply(r, n);
|
|
769
|
-
}
|
|
770
|
-
function c() {
|
|
771
|
-
u = void 0;
|
|
772
|
-
}
|
|
773
|
-
!s && l && !u && o(), p(), l === void 0 && i > e ? s ? (f = Date.now(), a || (u = setTimeout(l ? c : o, e))) : o() : a !== !0 && (u = setTimeout(l ? c : o, l === void 0 ? e - i : e));
|
|
774
|
-
}
|
|
775
|
-
return h.cancel = m, h;
|
|
776
|
-
}
|
|
777
|
-
//#endregion
|
|
778
|
-
//#region node_modules/@unovis/ts/utils/data.js
|
|
779
|
-
var tn = (e) => typeof e == "number", nn = (e) => typeof e == "function", rn = (e) => e === void 0, an = (e) => typeof e == "string", on = (e) => Array.isArray(e), sn = (e) => e instanceof Object, cn = (e) => e.constructor.name !== "Function" && e.constructor.name !== "Object", ln = (e) => sn(e) && !on(e) && !nn(e) && !cn(e), un = (e, t, n = [], r = /* @__PURE__ */ new Set()) => {
|
|
780
|
-
if (e === t) return !0;
|
|
781
|
-
if (Array.isArray(e)) {
|
|
782
|
-
if (!Array.isArray(t) || e.length !== t.length) return !1;
|
|
783
|
-
if (r.has(e)) return !0;
|
|
784
|
-
r.add(e);
|
|
785
|
-
for (let i = 0; i < e.length; i++) if (!un(e[i], t[i], n, r)) return !1;
|
|
786
|
-
return r.delete(e), !0;
|
|
787
|
-
}
|
|
788
|
-
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
789
|
-
if (typeof e == "object" && e && t !== null) {
|
|
790
|
-
if (typeof t != "object") return !1;
|
|
791
|
-
let i = Object.keys(e).filter((e) => !n.includes(e)), a = Object.keys(t).filter((e) => !n.includes(e));
|
|
792
|
-
if (i.length !== a.length) return !1;
|
|
793
|
-
if (r.has(e)) return !0;
|
|
794
|
-
r.add(e);
|
|
795
|
-
for (let a of i) if (!un(e[a], t[a], n, r)) return !1;
|
|
796
|
-
return r.delete(e), !0;
|
|
797
|
-
}
|
|
798
|
-
return e === t;
|
|
799
|
-
}, dn = (e, t = /* @__PURE__ */ new Map()) => {
|
|
800
|
-
if (typeof e != "object" || !e) return e;
|
|
801
|
-
if (e instanceof Date) return new Date(e.getTime());
|
|
802
|
-
if (e instanceof Array) {
|
|
803
|
-
let n = [];
|
|
804
|
-
t.set(e, n);
|
|
805
|
-
for (let r of e) n.push(t.has(r) ? t.get(r) : dn(r, t));
|
|
806
|
-
return n;
|
|
807
|
-
}
|
|
808
|
-
if (cn(e)) return e;
|
|
809
|
-
if (e instanceof Object) {
|
|
810
|
-
let n = {};
|
|
811
|
-
t.set(e, n);
|
|
812
|
-
let r = e;
|
|
813
|
-
return Object.keys(e).reduce((e, n) => (e[n] = t.has(r[n]) ? t.get(r[n]) : dn(r[n], t), e), n), n;
|
|
814
|
-
}
|
|
815
|
-
return e;
|
|
816
|
-
}, fn = (e, t, n = /* @__PURE__ */ new Map()) => {
|
|
817
|
-
if (!e || !t) return e && dn(e);
|
|
818
|
-
if (e === t) return e;
|
|
819
|
-
let r = cn(e) ? e : dn(e);
|
|
820
|
-
return n.has(t) ? n.get(t) : (n.set(t, r), Object.keys(t).forEach((i) => {
|
|
821
|
-
i !== "__proto__" && i !== "constructor" && (ln(e[i]) && ln(t[i]) ? r[i] = fn(e[i], t[i], n) : r[i] = dn(t[i]));
|
|
822
|
-
}), r);
|
|
823
|
-
}, pn = (e, t) => e.reduce((e, n, r, i, a = t(n, r)) => ((e[a] || (e[a] = [])).push(n), e), {}), mn = (e, t, n) => en(t, e, n);
|
|
824
|
-
function Y(e, t, n) {
|
|
825
|
-
return nn(t) ? t(e, n) : t;
|
|
826
|
-
}
|
|
827
|
-
function hn(e, t, n) {
|
|
828
|
-
return Y(e, t, n);
|
|
829
|
-
}
|
|
830
|
-
function X(e, t, n) {
|
|
831
|
-
return Y(e, t, n);
|
|
832
|
-
}
|
|
833
|
-
function gn(e, t, n) {
|
|
834
|
-
return Math.min(Math.max(e, t), n);
|
|
835
|
-
}
|
|
836
|
-
//#endregion
|
|
837
|
-
//#region node_modules/d3-shape/src/arc.js
|
|
838
|
-
function _n(e) {
|
|
839
|
-
return e.innerRadius;
|
|
840
|
-
}
|
|
841
|
-
function vn(e) {
|
|
842
|
-
return e.outerRadius;
|
|
843
|
-
}
|
|
844
|
-
function yn(e) {
|
|
845
|
-
return e.startAngle;
|
|
846
|
-
}
|
|
847
|
-
function bn(e) {
|
|
848
|
-
return e.endAngle;
|
|
849
|
-
}
|
|
850
|
-
function xn(e) {
|
|
851
|
-
return e && e.padAngle;
|
|
852
|
-
}
|
|
853
|
-
function Sn(e, t, n, r, i, a, o, s) {
|
|
854
|
-
var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
|
|
855
|
-
if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
|
|
856
|
-
}
|
|
857
|
-
function Cn(e, t, n, r, i, a, o) {
|
|
858
|
-
var s = e - n, c = t - r, l = (o ? a : -a) / g(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, h = n + u, _ = r + d, v = (f + h) / 2, y = (p + _) / 2, b = h - f, x = _ - p, S = b * b + x * x, C = i - a, w = f * _ - h * p, T = (x < 0 ? -1 : 1) * g(m(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - v, j = D - y, ee = O - v, te = k - y;
|
|
859
|
-
return A * A + j * j > ee * ee + te * te && (E = O, D = k), {
|
|
860
|
-
cx: E,
|
|
861
|
-
cy: D,
|
|
862
|
-
x01: -u,
|
|
863
|
-
y01: -d,
|
|
864
|
-
x11: E * (i / C - 1),
|
|
865
|
-
y11: D * (i / C - 1)
|
|
866
|
-
};
|
|
867
|
-
}
|
|
868
|
-
function wn() {
|
|
869
|
-
var e = _n, t = vn, n = d(0), r = null, i = yn, a = bn, o = xn, s = null, c = D(l);
|
|
870
|
-
function l() {
|
|
871
|
-
var l, u, d = +e.apply(this, arguments), f = +t.apply(this, arguments), m = i.apply(this, arguments) - S, T = a.apply(this, arguments) - S, E = C(T - m), D = T > m;
|
|
872
|
-
if (s ||= l = c(), f < d && (u = f, f = d, d = u), !(f > 1e-12)) s.moveTo(0, 0);
|
|
873
|
-
else if (E > b - 1e-12) s.moveTo(f * p(m), f * h(m)), s.arc(0, 0, f, m, T, !D), d > 1e-12 && (s.moveTo(d * p(T), d * h(T)), s.arc(0, 0, d, T, m, D));
|
|
874
|
-
else {
|
|
875
|
-
var O = m, k = T, A = m, j = T, ee = E, te = E, ne = o.apply(this, arguments) / 2, re = ne > 1e-12 && (r ? +r.apply(this, arguments) : g(d * d + f * f)), ie = v(C(f - d) / 2, +n.apply(this, arguments)), M = ie, N = ie, P, F;
|
|
876
|
-
if (re > 1e-12) {
|
|
877
|
-
var ae = x(re / d * h(ne)), oe = x(re / f * h(ne));
|
|
878
|
-
(ee -= ae * 2) > 1e-12 ? (ae *= D ? 1 : -1, A += ae, j -= ae) : (ee = 0, A = j = (m + T) / 2), (te -= oe * 2) > 1e-12 ? (oe *= D ? 1 : -1, O += oe, k -= oe) : (te = 0, O = k = (m + T) / 2);
|
|
879
|
-
}
|
|
880
|
-
var se = f * p(O), ce = f * h(O), le = d * p(j), ue = d * h(j);
|
|
881
|
-
if (ie > 1e-12) {
|
|
882
|
-
var de = f * p(k), fe = f * h(k), pe = d * p(A), me = d * h(A), I;
|
|
883
|
-
if (E < w) {
|
|
884
|
-
if (I = Sn(se, ce, pe, me, de, fe, le, ue)) {
|
|
885
|
-
var he = se - I[0], L = ce - I[1], ge = de - I[0], R = fe - I[1], _e = 1 / h(y((he * ge + L * R) / (g(he * he + L * L) * g(ge * ge + R * R))) / 2), ve = g(I[0] * I[0] + I[1] * I[1]);
|
|
886
|
-
M = v(ie, (d - ve) / (_e - 1)), N = v(ie, (f - ve) / (_e + 1));
|
|
887
|
-
} else M = N = 0;
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
te > 1e-12 ? N > 1e-12 ? (P = Cn(pe, me, se, ce, f, N, D), F = Cn(de, fe, le, ue, f, N, D), s.moveTo(P.cx + P.x01, P.cy + P.y01), N < ie ? s.arc(P.cx, P.cy, N, _(P.y01, P.x01), _(F.y01, F.x01), !D) : (s.arc(P.cx, P.cy, N, _(P.y01, P.x01), _(P.y11, P.x11), !D), s.arc(0, 0, f, _(P.cy + P.y11, P.cx + P.x11), _(F.cy + F.y11, F.cx + F.x11), !D), s.arc(F.cx, F.cy, N, _(F.y11, F.x11), _(F.y01, F.x01), !D))) : (s.moveTo(se, ce), s.arc(0, 0, f, O, k, !D)) : s.moveTo(se, ce), !(d > 1e-12) || !(ee > 1e-12) ? s.lineTo(le, ue) : M > 1e-12 ? (P = Cn(le, ue, de, fe, d, -M, D), F = Cn(se, ce, pe, me, d, -M, D), s.lineTo(P.cx + P.x01, P.cy + P.y01), M < ie ? s.arc(P.cx, P.cy, M, _(P.y01, P.x01), _(F.y01, F.x01), !D) : (s.arc(P.cx, P.cy, M, _(P.y01, P.x01), _(P.y11, P.x11), !D), s.arc(0, 0, d, _(P.cy + P.y11, P.cx + P.x11), _(F.cy + F.y11, F.cx + F.x11), D), s.arc(F.cx, F.cy, M, _(F.y11, F.x11), _(F.y01, F.x01), !D))) : s.arc(0, 0, d, j, A, D);
|
|
891
|
-
}
|
|
892
|
-
if (s.closePath(), l) return s = null, l + "" || null;
|
|
893
|
-
}
|
|
894
|
-
return l.centroid = function() {
|
|
895
|
-
var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, r = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - w / 2;
|
|
896
|
-
return [p(r) * n, h(r) * n];
|
|
897
|
-
}, l.innerRadius = function(t) {
|
|
898
|
-
return arguments.length ? (e = typeof t == "function" ? t : d(+t), l) : e;
|
|
899
|
-
}, l.outerRadius = function(e) {
|
|
900
|
-
return arguments.length ? (t = typeof e == "function" ? e : d(+e), l) : t;
|
|
901
|
-
}, l.cornerRadius = function(e) {
|
|
902
|
-
return arguments.length ? (n = typeof e == "function" ? e : d(+e), l) : n;
|
|
903
|
-
}, l.padRadius = function(e) {
|
|
904
|
-
return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : d(+e), l) : r;
|
|
905
|
-
}, l.startAngle = function(e) {
|
|
906
|
-
return arguments.length ? (i = typeof e == "function" ? e : d(+e), l) : i;
|
|
907
|
-
}, l.endAngle = function(e) {
|
|
908
|
-
return arguments.length ? (a = typeof e == "function" ? e : d(+e), l) : a;
|
|
909
|
-
}, l.padAngle = function(e) {
|
|
910
|
-
return arguments.length ? (o = typeof e == "function" ? e : d(+e), l) : o;
|
|
911
|
-
}, l.context = function(e) {
|
|
912
|
-
return arguments.length ? (s = e ?? null, l) : s;
|
|
913
|
-
}, l;
|
|
914
|
-
}
|
|
915
|
-
//#endregion
|
|
916
|
-
//#region node_modules/d3-shape/src/line.js
|
|
917
|
-
function Tn(e, t) {
|
|
918
|
-
var n = d(!0), r = null, i = ue, a = null, o = D(s);
|
|
919
|
-
e = typeof e == "function" ? e : e === void 0 ? O : d(e), t = typeof t == "function" ? t : t === void 0 ? E : d(t);
|
|
920
|
-
function s(s) {
|
|
921
|
-
var c, l = (s = f(s)).length, u, d = !1, p;
|
|
922
|
-
for (r ?? (a = i(p = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
|
|
923
|
-
if (p) return a = null, p + "" || null;
|
|
924
|
-
}
|
|
925
|
-
return s.x = function(t) {
|
|
926
|
-
return arguments.length ? (e = typeof t == "function" ? t : d(+t), s) : e;
|
|
927
|
-
}, s.y = function(e) {
|
|
928
|
-
return arguments.length ? (t = typeof e == "function" ? e : d(+e), s) : t;
|
|
929
|
-
}, s.defined = function(e) {
|
|
930
|
-
return arguments.length ? (n = typeof e == "function" ? e : d(!!e), s) : n;
|
|
931
|
-
}, s.curve = function(e) {
|
|
932
|
-
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
|
|
933
|
-
}, s.context = function(e) {
|
|
934
|
-
return arguments.length ? (e == null ? r = a = null : a = i(r = e), s) : r;
|
|
935
|
-
}, s;
|
|
936
|
-
}
|
|
937
|
-
//#endregion
|
|
938
|
-
//#region node_modules/d3-shape/src/area.js
|
|
939
|
-
function En(e, t, n) {
|
|
940
|
-
var r = null, i = d(!0), a = null, o = ue, s = null, c = D(l);
|
|
941
|
-
e = typeof e == "function" ? e : e === void 0 ? O : d(+e), t = typeof t == "function" ? t : d(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? E : d(+n);
|
|
942
|
-
function l(l) {
|
|
943
|
-
var u, d, p, m = (l = f(l)).length, h, g = !1, _, v = Array(m), y = Array(m);
|
|
944
|
-
for (a ?? (s = o(_ = c())), u = 0; u <= m; ++u) {
|
|
945
|
-
if (!(u < m && i(h = l[u], u, l)) === g) {
|
|
946
|
-
if (g = !g) d = u, s.areaStart(), s.lineStart();
|
|
947
|
-
else {
|
|
948
|
-
for (s.lineEnd(), s.lineStart(), p = u - 1; p >= d; --p) s.point(v[p], y[p]);
|
|
949
|
-
s.lineEnd(), s.areaEnd();
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
g && (v[u] = +e(h, u, l), y[u] = +t(h, u, l), s.point(r ? +r(h, u, l) : v[u], n ? +n(h, u, l) : y[u]));
|
|
953
|
-
}
|
|
954
|
-
if (_) return s = null, _ + "" || null;
|
|
955
|
-
}
|
|
956
|
-
function u() {
|
|
957
|
-
return Tn().defined(i).curve(o).context(a);
|
|
958
|
-
}
|
|
959
|
-
return l.x = function(t) {
|
|
960
|
-
return arguments.length ? (e = typeof t == "function" ? t : d(+t), r = null, l) : e;
|
|
961
|
-
}, l.x0 = function(t) {
|
|
962
|
-
return arguments.length ? (e = typeof t == "function" ? t : d(+t), l) : e;
|
|
963
|
-
}, l.x1 = function(e) {
|
|
964
|
-
return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : d(+e), l) : r;
|
|
965
|
-
}, l.y = function(e) {
|
|
966
|
-
return arguments.length ? (t = typeof e == "function" ? e : d(+e), n = null, l) : t;
|
|
967
|
-
}, l.y0 = function(e) {
|
|
968
|
-
return arguments.length ? (t = typeof e == "function" ? e : d(+e), l) : t;
|
|
969
|
-
}, l.y1 = function(e) {
|
|
970
|
-
return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : d(+e), l) : n;
|
|
971
|
-
}, l.lineX0 = l.lineY0 = function() {
|
|
972
|
-
return u().x(e).y(t);
|
|
973
|
-
}, l.lineY1 = function() {
|
|
974
|
-
return u().x(e).y(n);
|
|
975
|
-
}, l.lineX1 = function() {
|
|
976
|
-
return u().x(r).y(t);
|
|
977
|
-
}, l.defined = function(e) {
|
|
978
|
-
return arguments.length ? (i = typeof e == "function" ? e : d(!!e), l) : i;
|
|
979
|
-
}, l.curve = function(e) {
|
|
980
|
-
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
|
|
981
|
-
}, l.context = function(e) {
|
|
982
|
-
return arguments.length ? (e == null ? a = s = null : s = o(a = e), l) : a;
|
|
983
|
-
}, l;
|
|
984
|
-
}
|
|
985
|
-
//#endregion
|
|
986
|
-
//#region node_modules/d3-shape/src/descending.js
|
|
987
|
-
function Dn(e, t) {
|
|
988
|
-
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
989
|
-
}
|
|
990
|
-
//#endregion
|
|
991
|
-
//#region node_modules/d3-shape/src/identity.js
|
|
992
|
-
function On(e) {
|
|
993
|
-
return e;
|
|
994
|
-
}
|
|
995
|
-
//#endregion
|
|
996
|
-
//#region node_modules/d3-shape/src/pie.js
|
|
997
|
-
function kn() {
|
|
998
|
-
var e = On, t = Dn, n = null, r = d(0), i = d(b), a = d(0);
|
|
999
|
-
function o(o) {
|
|
1000
|
-
var s, c = (o = f(o)).length, l, u, d = 0, p = Array(c), m = Array(c), h = +r.apply(this, arguments), g = Math.min(b, Math.max(-b, i.apply(this, arguments) - h)), _, v = Math.min(Math.abs(g) / c, a.apply(this, arguments)), y = v * (g < 0 ? -1 : 1), x;
|
|
1001
|
-
for (s = 0; s < c; ++s) (x = m[p[s] = s] = +e(o[s], s, o)) > 0 && (d += x);
|
|
1002
|
-
for (t == null ? n != null && p.sort(function(e, t) {
|
|
1003
|
-
return n(o[e], o[t]);
|
|
1004
|
-
}) : p.sort(function(e, n) {
|
|
1005
|
-
return t(m[e], m[n]);
|
|
1006
|
-
}), s = 0, u = d ? (g - c * y) / d : 0; s < c; ++s, h = _) l = p[s], x = m[l], _ = h + (x > 0 ? x * u : 0) + y, m[l] = {
|
|
1007
|
-
data: o[l],
|
|
1008
|
-
index: s,
|
|
1009
|
-
value: x,
|
|
1010
|
-
startAngle: h,
|
|
1011
|
-
endAngle: _,
|
|
1012
|
-
padAngle: v
|
|
1013
|
-
};
|
|
1014
|
-
return m;
|
|
1015
|
-
}
|
|
1016
|
-
return o.value = function(t) {
|
|
1017
|
-
return arguments.length ? (e = typeof t == "function" ? t : d(+t), o) : e;
|
|
1018
|
-
}, o.sortValues = function(e) {
|
|
1019
|
-
return arguments.length ? (t = e, n = null, o) : t;
|
|
1020
|
-
}, o.sort = function(e) {
|
|
1021
|
-
return arguments.length ? (n = e, t = null, o) : n;
|
|
1022
|
-
}, o.startAngle = function(e) {
|
|
1023
|
-
return arguments.length ? (r = typeof e == "function" ? e : d(+e), o) : r;
|
|
1024
|
-
}, o.endAngle = function(e) {
|
|
1025
|
-
return arguments.length ? (i = typeof e == "function" ? e : d(+e), o) : i;
|
|
1026
|
-
}, o.padAngle = function(e) {
|
|
1027
|
-
return arguments.length ? (a = typeof e == "function" ? e : d(+e), o) : a;
|
|
1028
|
-
}, o;
|
|
1029
|
-
}
|
|
1030
|
-
//#endregion
|
|
1031
|
-
//#region node_modules/d3-shape/src/curve/radial.js
|
|
1032
|
-
var An = Mn(ue);
|
|
1033
|
-
function jn(e) {
|
|
1034
|
-
this._curve = e;
|
|
1035
|
-
}
|
|
1036
|
-
jn.prototype = {
|
|
1037
|
-
areaStart: function() {
|
|
1038
|
-
this._curve.areaStart();
|
|
1039
|
-
},
|
|
1040
|
-
areaEnd: function() {
|
|
1041
|
-
this._curve.areaEnd();
|
|
1042
|
-
},
|
|
1043
|
-
lineStart: function() {
|
|
1044
|
-
this._curve.lineStart();
|
|
1045
|
-
},
|
|
1046
|
-
lineEnd: function() {
|
|
1047
|
-
this._curve.lineEnd();
|
|
1048
|
-
},
|
|
1049
|
-
point: function(e, t) {
|
|
1050
|
-
this._curve.point(t * Math.sin(e), t * -Math.cos(e));
|
|
1051
|
-
}
|
|
1052
|
-
};
|
|
1053
|
-
function Mn(e) {
|
|
1054
|
-
function t(t) {
|
|
1055
|
-
return new jn(e(t));
|
|
1056
|
-
}
|
|
1057
|
-
return t._curve = e, t;
|
|
1058
|
-
}
|
|
1059
|
-
//#endregion
|
|
1060
|
-
//#region node_modules/d3-shape/src/lineRadial.js
|
|
1061
|
-
function Nn(e) {
|
|
1062
|
-
var t = e.curve;
|
|
1063
|
-
return e.angle = e.x, delete e.x, e.radius = e.y, delete e.y, e.curve = function(e) {
|
|
1064
|
-
return arguments.length ? t(Mn(e)) : t()._curve;
|
|
1065
|
-
}, e;
|
|
1066
|
-
}
|
|
1067
|
-
//#endregion
|
|
1068
|
-
//#region node_modules/d3-shape/src/areaRadial.js
|
|
1069
|
-
function Pn() {
|
|
1070
|
-
var e = En().curve(An), t = e.curve, n = e.lineX0, r = e.lineX1, i = e.lineY0, a = e.lineY1;
|
|
1071
|
-
return e.angle = e.x, delete e.x, e.startAngle = e.x0, delete e.x0, e.endAngle = e.x1, delete e.x1, e.radius = e.y, delete e.y, e.innerRadius = e.y0, delete e.y0, e.outerRadius = e.y1, delete e.y1, e.lineStartAngle = function() {
|
|
1072
|
-
return Nn(n());
|
|
1073
|
-
}, delete e.lineX0, e.lineEndAngle = function() {
|
|
1074
|
-
return Nn(r());
|
|
1075
|
-
}, delete e.lineX1, e.lineInnerRadius = function() {
|
|
1076
|
-
return Nn(i());
|
|
1077
|
-
}, delete e.lineY0, e.lineOuterRadius = function() {
|
|
1078
|
-
return Nn(a());
|
|
1079
|
-
}, delete e.lineY1, e.curve = function(e) {
|
|
1080
|
-
return arguments.length ? t(Mn(e)) : t()._curve;
|
|
1081
|
-
}, e;
|
|
1082
|
-
}
|
|
1083
|
-
//#endregion
|
|
1084
|
-
//#region node_modules/d3-hierarchy/src/treemap/round.js
|
|
1085
|
-
function Fn(e) {
|
|
1086
|
-
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
1087
|
-
}
|
|
1088
|
-
//#endregion
|
|
1089
|
-
//#region node_modules/d3-hierarchy/src/treemap/dice.js
|
|
1090
|
-
function In(e, t, n, r, i) {
|
|
1091
|
-
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
|
|
1092
|
-
}
|
|
1093
|
-
//#endregion
|
|
1094
|
-
//#region node_modules/d3-hierarchy/src/partition.js
|
|
1095
|
-
function Ln() {
|
|
1096
|
-
var e = 1, t = 1, n = 0, r = !1;
|
|
1097
|
-
function i(i) {
|
|
1098
|
-
var o = i.height + 1;
|
|
1099
|
-
return i.x0 = i.y0 = n, i.x1 = e, i.y1 = t / o, i.eachBefore(a(t, o)), r && i.eachBefore(Fn), i;
|
|
1100
|
-
}
|
|
1101
|
-
function a(e, t) {
|
|
1102
|
-
return function(r) {
|
|
1103
|
-
r.children && In(r, r.x0, e * (r.depth + 1) / t, r.x1, e * (r.depth + 2) / t);
|
|
1104
|
-
var i = r.x0, a = r.y0, o = r.x1 - n, s = r.y1 - n;
|
|
1105
|
-
o < i && (i = o = (i + o) / 2), s < a && (a = s = (a + s) / 2), r.x0 = i, r.y0 = a, r.x1 = o, r.y1 = s;
|
|
1106
|
-
};
|
|
1107
|
-
}
|
|
1108
|
-
return i.round = function(e) {
|
|
1109
|
-
return arguments.length ? (r = !!e, i) : r;
|
|
1110
|
-
}, i.size = function(n) {
|
|
1111
|
-
return arguments.length ? (e = +n[0], t = +n[1], i) : [e, t];
|
|
1112
|
-
}, i.padding = function(e) {
|
|
1113
|
-
return arguments.length ? (n = +e, i) : n;
|
|
1114
|
-
}, i;
|
|
1115
|
-
}
|
|
1116
|
-
//#endregion
|
|
1117
|
-
//#region node_modules/@unovis/ts/types/component.js
|
|
1118
|
-
var Rn = /* @__PURE__ */ ((e) => (e[e.SVG = 0] = "SVG", e[e.HTML = 1] = "HTML", e))(Rn || {}), Z = /* @__PURE__ */ ((e) => (e.Fit = "fit", e.Extend = "extend", e.FitWidth = "fit_width", e))(Z || {});
|
|
1119
|
-
//#endregion
|
|
1120
|
-
//#region node_modules/@unovis/ts/utils/to-px.js
|
|
1121
|
-
function zn(e) {
|
|
1122
|
-
return e = String(e), [parseFloat(e), e.match(/[\d.\-+]*\s*(.*)/)?.[1] || ""];
|
|
1123
|
-
}
|
|
1124
|
-
function Bn() {
|
|
1125
|
-
return typeof window < "u" && typeof document < "u";
|
|
1126
|
-
}
|
|
1127
|
-
function Vn(e, t) {
|
|
1128
|
-
let n = zn(getComputedStyle(e).getPropertyValue(t));
|
|
1129
|
-
return n[0] * (Gn(n[1], e) ?? 1);
|
|
1130
|
-
}
|
|
1131
|
-
function Hn(e, t) {
|
|
1132
|
-
let n = document.createElement("div");
|
|
1133
|
-
n.style.height = `128${e}`, t.appendChild(n);
|
|
1134
|
-
let r = Vn(n, "height") / 128;
|
|
1135
|
-
return t.removeChild(n), r;
|
|
1136
|
-
}
|
|
1137
|
-
var Un = null;
|
|
1138
|
-
function Wn() {
|
|
1139
|
-
return Bn() ? (Un === null && (Un = 96, Un = Hn("in", document.body)), Un) : 96;
|
|
1140
|
-
}
|
|
1141
|
-
function Gn(e, t) {
|
|
1142
|
-
if (!e && e !== 0) return null;
|
|
1143
|
-
if (!Bn()) {
|
|
1144
|
-
let t = zn(String(e));
|
|
1145
|
-
if (!isNaN(t[0])) {
|
|
1146
|
-
let e = t[1]?.toLowerCase() || "px";
|
|
1147
|
-
if (e === "px" || e === "") return t[0];
|
|
1148
|
-
if (e === "em" || e === "rem") return t[0] * 16;
|
|
1149
|
-
if (e === "in") return t[0] * 96;
|
|
1150
|
-
if (e === "cm") return t[0] * (96 / 2.54);
|
|
1151
|
-
if (e === "mm") return t[0] * (96 / 25.4);
|
|
1152
|
-
if (e === "pt") return t[0] * (96 / 72);
|
|
1153
|
-
if (e === "pc") return t[0] * 16;
|
|
1154
|
-
}
|
|
1155
|
-
return null;
|
|
1156
|
-
}
|
|
1157
|
-
let n = document.body;
|
|
1158
|
-
t && t !== window && t !== document && (n = t);
|
|
1159
|
-
let r = (String(e) || "px").trim().toLowerCase();
|
|
1160
|
-
switch (r) {
|
|
1161
|
-
case "%": return n.clientHeight / 100;
|
|
1162
|
-
case "ch":
|
|
1163
|
-
case "ex": return Hn(r, n);
|
|
1164
|
-
case "em": return Vn(n, "font-size");
|
|
1165
|
-
case "rem": return Vn(document.body, "font-size");
|
|
1166
|
-
case "vw": return window.innerWidth / 100;
|
|
1167
|
-
case "vh": return window.innerHeight / 100;
|
|
1168
|
-
case "vmin": return Math.min(window.innerWidth, window.innerHeight) / 100;
|
|
1169
|
-
case "vmax": return Math.max(window.innerWidth, window.innerHeight) / 100;
|
|
1170
|
-
case "in": return Wn();
|
|
1171
|
-
case "cm": return Wn() / 2.54;
|
|
1172
|
-
case "mm": return Wn() / 25.4;
|
|
1173
|
-
case "pt": return Wn() / 72;
|
|
1174
|
-
case "pc": return Wn() / 6;
|
|
1175
|
-
case "px": return 1;
|
|
1176
|
-
}
|
|
1177
|
-
let i = zn(r);
|
|
1178
|
-
if (!isNaN(i[0])) {
|
|
1179
|
-
if (i[1]) {
|
|
1180
|
-
let e = Gn(i[1], n);
|
|
1181
|
-
return typeof e == "number" ? i[0] * e : null;
|
|
1182
|
-
}
|
|
1183
|
-
return i[0];
|
|
1184
|
-
}
|
|
1185
|
-
return null;
|
|
1186
|
-
}
|
|
1187
|
-
//#endregion
|
|
1188
|
-
//#region node_modules/@unovis/ts/utils/misc.js
|
|
1189
|
-
function Kn() {
|
|
1190
|
-
let e = () => Math.floor((1 + crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(1))[0]) * 65536).toString(16).substring(1);
|
|
1191
|
-
return `${e() + e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`;
|
|
1192
|
-
}
|
|
1193
|
-
var qn = /* @__PURE__ */ new WeakMap();
|
|
1194
|
-
function Jn(e, t) {
|
|
1195
|
-
if (!an(e)) return "";
|
|
1196
|
-
let n = e.substr(4, e.length - 5), r = qn.get(t);
|
|
1197
|
-
if (r || (r = /* @__PURE__ */ new Map(), qn.set(t, r)), r.has(n)) return r.get(n);
|
|
1198
|
-
let i = getComputedStyle(t).getPropertyValue(n);
|
|
1199
|
-
return r.set(n, i), i;
|
|
1200
|
-
}
|
|
1201
|
-
function Yn(e, t) {
|
|
1202
|
-
return Gn(Jn(e, t));
|
|
1203
|
-
}
|
|
1204
|
-
function Xn(e) {
|
|
1205
|
-
return typeof e == "number" ? e : Gn(e);
|
|
1206
|
-
}
|
|
1207
|
-
//#endregion
|
|
1208
|
-
//#region node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js
|
|
1209
|
-
var Zn = [], Qn = function() {
|
|
1210
|
-
return Zn.some(function(e) {
|
|
1211
|
-
return e.activeTargets.length > 0;
|
|
1212
|
-
});
|
|
1213
|
-
}, $n = function() {
|
|
1214
|
-
return Zn.some(function(e) {
|
|
1215
|
-
return e.skippedTargets.length > 0;
|
|
1216
|
-
});
|
|
1217
|
-
}, er = "ResizeObserver loop completed with undelivered notifications.", tr = function() {
|
|
1218
|
-
var e;
|
|
1219
|
-
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", { message: er }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = er), window.dispatchEvent(e);
|
|
1220
|
-
}, nr;
|
|
1221
|
-
(function(e) {
|
|
1222
|
-
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1223
|
-
})(nr ||= {});
|
|
1224
|
-
//#endregion
|
|
1225
|
-
//#region node_modules/@juggle/resize-observer/lib/utils/freeze.js
|
|
1226
|
-
var rr = function(e) {
|
|
1227
|
-
return Object.freeze(e);
|
|
1228
|
-
}, ir = function() {
|
|
1229
|
-
function e(e, t) {
|
|
1230
|
-
this.inlineSize = e, this.blockSize = t, rr(this);
|
|
1231
|
-
}
|
|
1232
|
-
return e;
|
|
1233
|
-
}(), ar = function() {
|
|
1234
|
-
function e(e, t, n, r) {
|
|
1235
|
-
return this.x = e, this.y = t, this.width = n, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, rr(this);
|
|
1236
|
-
}
|
|
1237
|
-
return e.prototype.toJSON = function() {
|
|
1238
|
-
var e = this;
|
|
1239
|
-
return {
|
|
1240
|
-
x: e.x,
|
|
1241
|
-
y: e.y,
|
|
1242
|
-
top: e.top,
|
|
1243
|
-
right: e.right,
|
|
1244
|
-
bottom: e.bottom,
|
|
1245
|
-
left: e.left,
|
|
1246
|
-
width: e.width,
|
|
1247
|
-
height: e.height
|
|
1248
|
-
};
|
|
1249
|
-
}, e.fromRect = function(t) {
|
|
1250
|
-
return new e(t.x, t.y, t.width, t.height);
|
|
1251
|
-
}, e;
|
|
1252
|
-
}(), or = function(e) {
|
|
1253
|
-
return e instanceof SVGElement && "getBBox" in e;
|
|
1254
|
-
}, sr = function(e) {
|
|
1255
|
-
if (or(e)) {
|
|
1256
|
-
var t = e.getBBox(), n = t.width, r = t.height;
|
|
1257
|
-
return !n && !r;
|
|
1258
|
-
}
|
|
1259
|
-
var i = e, a = i.offsetWidth, o = i.offsetHeight;
|
|
1260
|
-
return !(a || o || e.getClientRects().length);
|
|
1261
|
-
}, cr = function(e) {
|
|
1262
|
-
if (e instanceof Element) return !0;
|
|
1263
|
-
var t = e?.ownerDocument?.defaultView;
|
|
1264
|
-
return !!(t && e instanceof t.Element);
|
|
1265
|
-
}, lr = function(e) {
|
|
1266
|
-
switch (e.tagName) {
|
|
1267
|
-
case "INPUT": if (e.type !== "image") break;
|
|
1268
|
-
case "VIDEO":
|
|
1269
|
-
case "AUDIO":
|
|
1270
|
-
case "EMBED":
|
|
1271
|
-
case "OBJECT":
|
|
1272
|
-
case "CANVAS":
|
|
1273
|
-
case "IFRAME":
|
|
1274
|
-
case "IMG": return !0;
|
|
1275
|
-
}
|
|
1276
|
-
return !1;
|
|
1277
|
-
}, ur = typeof window < "u" ? window : {}, dr = /* @__PURE__ */ new WeakMap(), fr = /auto|scroll/, pr = /^tb|vertical/, mr = /msie|trident/i.test(ur.navigator && ur.navigator.userAgent), Q = function(e) {
|
|
1278
|
-
return parseFloat(e || "0");
|
|
1279
|
-
}, hr = function(e, t, n) {
|
|
1280
|
-
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new ir((n ? t : e) || 0, (n ? e : t) || 0);
|
|
1281
|
-
}, gr = rr({
|
|
1282
|
-
devicePixelContentBoxSize: hr(),
|
|
1283
|
-
borderBoxSize: hr(),
|
|
1284
|
-
contentBoxSize: hr(),
|
|
1285
|
-
contentRect: new ar(0, 0, 0, 0)
|
|
1286
|
-
}), _r = function(e, t) {
|
|
1287
|
-
if (t === void 0 && (t = !1), dr.has(e) && !t) return dr.get(e);
|
|
1288
|
-
if (sr(e)) return dr.set(e, gr), gr;
|
|
1289
|
-
var n = getComputedStyle(e), r = or(e) && e.ownerSVGElement && e.getBBox(), i = !mr && n.boxSizing === "border-box", a = pr.test(n.writingMode || ""), o = !r && fr.test(n.overflowY || ""), s = !r && fr.test(n.overflowX || ""), c = r ? 0 : Q(n.paddingTop), l = r ? 0 : Q(n.paddingRight), u = r ? 0 : Q(n.paddingBottom), d = r ? 0 : Q(n.paddingLeft), f = r ? 0 : Q(n.borderTopWidth), p = r ? 0 : Q(n.borderRightWidth), m = r ? 0 : Q(n.borderBottomWidth), h = r ? 0 : Q(n.borderLeftWidth), g = d + l, _ = c + u, v = h + p, y = f + m, b = s ? e.offsetHeight - y - e.clientHeight : 0, x = o ? e.offsetWidth - v - e.clientWidth : 0, S = i ? g + v : 0, C = i ? _ + y : 0, w = r ? r.width : Q(n.width) - S - x, T = r ? r.height : Q(n.height) - C - b, E = w + g + x + v, D = T + _ + b + y, O = rr({
|
|
1290
|
-
devicePixelContentBoxSize: hr(Math.round(w * devicePixelRatio), Math.round(T * devicePixelRatio), a),
|
|
1291
|
-
borderBoxSize: hr(E, D, a),
|
|
1292
|
-
contentBoxSize: hr(w, T, a),
|
|
1293
|
-
contentRect: new ar(d, c, w, T)
|
|
1294
|
-
});
|
|
1295
|
-
return dr.set(e, O), O;
|
|
1296
|
-
}, vr = function(e, t, n) {
|
|
1297
|
-
var r = _r(e, n), i = r.borderBoxSize, a = r.contentBoxSize, o = r.devicePixelContentBoxSize;
|
|
1298
|
-
switch (t) {
|
|
1299
|
-
case nr.DEVICE_PIXEL_CONTENT_BOX: return o;
|
|
1300
|
-
case nr.BORDER_BOX: return i;
|
|
1301
|
-
default: return a;
|
|
1302
|
-
}
|
|
1303
|
-
}, yr = function() {
|
|
1304
|
-
function e(e) {
|
|
1305
|
-
var t = _r(e);
|
|
1306
|
-
this.target = e, this.contentRect = t.contentRect, this.borderBoxSize = rr([t.borderBoxSize]), this.contentBoxSize = rr([t.contentBoxSize]), this.devicePixelContentBoxSize = rr([t.devicePixelContentBoxSize]);
|
|
1307
|
-
}
|
|
1308
|
-
return e;
|
|
1309
|
-
}(), br = function(e) {
|
|
1310
|
-
if (sr(e)) return Infinity;
|
|
1311
|
-
for (var t = 0, n = e.parentNode; n;) t += 1, n = n.parentNode;
|
|
1312
|
-
return t;
|
|
1313
|
-
}, xr = function() {
|
|
1314
|
-
var e = Infinity, t = [];
|
|
1315
|
-
Zn.forEach(function(n) {
|
|
1316
|
-
if (n.activeTargets.length !== 0) {
|
|
1317
|
-
var r = [];
|
|
1318
|
-
n.activeTargets.forEach(function(t) {
|
|
1319
|
-
var n = new yr(t.target), i = br(t.target);
|
|
1320
|
-
r.push(n), t.lastReportedSize = vr(t.target, t.observedBox), i < e && (e = i);
|
|
1321
|
-
}), t.push(function() {
|
|
1322
|
-
n.callback.call(n.observer, r, n.observer);
|
|
1323
|
-
}), n.activeTargets.splice(0, n.activeTargets.length);
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
for (var n = 0, r = t; n < r.length; n++) {
|
|
1327
|
-
var i = r[n];
|
|
1328
|
-
i();
|
|
1329
|
-
}
|
|
1330
|
-
return e;
|
|
1331
|
-
}, Sr = function(e) {
|
|
1332
|
-
Zn.forEach(function(t) {
|
|
1333
|
-
t.activeTargets.splice(0, t.activeTargets.length), t.skippedTargets.splice(0, t.skippedTargets.length), t.observationTargets.forEach(function(n) {
|
|
1334
|
-
n.isActive() && (br(n.target) > e ? t.activeTargets.push(n) : t.skippedTargets.push(n));
|
|
1335
|
-
});
|
|
1336
|
-
});
|
|
1337
|
-
}, Cr = function() {
|
|
1338
|
-
var e = 0;
|
|
1339
|
-
for (Sr(e); Qn();) e = xr(), Sr(e);
|
|
1340
|
-
return $n() && tr(), e > 0;
|
|
1341
|
-
}, wr, Tr = [], Er = function() {
|
|
1342
|
-
return Tr.splice(0).forEach(function(e) {
|
|
1343
|
-
return e();
|
|
1344
|
-
});
|
|
1345
|
-
}, Dr = function(e) {
|
|
1346
|
-
if (!wr) {
|
|
1347
|
-
var t = 0, n = document.createTextNode("");
|
|
1348
|
-
new MutationObserver(function() {
|
|
1349
|
-
return Er();
|
|
1350
|
-
}).observe(n, { characterData: !0 }), wr = function() {
|
|
1351
|
-
n.textContent = `${t ? t-- : t++}`;
|
|
1352
|
-
};
|
|
1353
|
-
}
|
|
1354
|
-
Tr.push(e), wr();
|
|
1355
|
-
}, Or = function(e) {
|
|
1356
|
-
Dr(function() {
|
|
1357
|
-
requestAnimationFrame(e);
|
|
1358
|
-
});
|
|
1359
|
-
}, kr = 0, Ar = function() {
|
|
1360
|
-
return !!kr;
|
|
1361
|
-
}, jr = 250, Mr = {
|
|
1362
|
-
attributes: !0,
|
|
1363
|
-
characterData: !0,
|
|
1364
|
-
childList: !0,
|
|
1365
|
-
subtree: !0
|
|
1366
|
-
}, Nr = [
|
|
1367
|
-
"resize",
|
|
1368
|
-
"load",
|
|
1369
|
-
"transitionend",
|
|
1370
|
-
"animationend",
|
|
1371
|
-
"animationstart",
|
|
1372
|
-
"animationiteration",
|
|
1373
|
-
"keyup",
|
|
1374
|
-
"keydown",
|
|
1375
|
-
"mouseup",
|
|
1376
|
-
"mousedown",
|
|
1377
|
-
"mouseover",
|
|
1378
|
-
"mouseout",
|
|
1379
|
-
"blur",
|
|
1380
|
-
"focus"
|
|
1381
|
-
], Pr = function(e) {
|
|
1382
|
-
return e === void 0 && (e = 0), Date.now() + e;
|
|
1383
|
-
}, Fr = !1, Ir = new (function() {
|
|
1384
|
-
function e() {
|
|
1385
|
-
var e = this;
|
|
1386
|
-
this.stopped = !0, this.listener = function() {
|
|
1387
|
-
return e.schedule();
|
|
1388
|
-
};
|
|
1389
|
-
}
|
|
1390
|
-
return e.prototype.run = function(e) {
|
|
1391
|
-
var t = this;
|
|
1392
|
-
if (e === void 0 && (e = jr), !Fr) {
|
|
1393
|
-
Fr = !0;
|
|
1394
|
-
var n = Pr(e);
|
|
1395
|
-
Or(function() {
|
|
1396
|
-
var r = !1;
|
|
1397
|
-
try {
|
|
1398
|
-
r = Cr();
|
|
1399
|
-
} finally {
|
|
1400
|
-
if (Fr = !1, e = n - Pr(), !Ar()) return;
|
|
1401
|
-
r ? t.run(1e3) : e > 0 ? t.run(e) : t.start();
|
|
1402
|
-
}
|
|
1403
|
-
});
|
|
1404
|
-
}
|
|
1405
|
-
}, e.prototype.schedule = function() {
|
|
1406
|
-
this.stop(), this.run();
|
|
1407
|
-
}, e.prototype.observe = function() {
|
|
1408
|
-
var e = this, t = function() {
|
|
1409
|
-
return e.observer && e.observer.observe(document.body, Mr);
|
|
1410
|
-
};
|
|
1411
|
-
document.body ? t() : ur.addEventListener("DOMContentLoaded", t);
|
|
1412
|
-
}, e.prototype.start = function() {
|
|
1413
|
-
var e = this;
|
|
1414
|
-
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nr.forEach(function(t) {
|
|
1415
|
-
return ur.addEventListener(t, e.listener, !0);
|
|
1416
|
-
}));
|
|
1417
|
-
}, e.prototype.stop = function() {
|
|
1418
|
-
var e = this;
|
|
1419
|
-
this.stopped ||= (this.observer && this.observer.disconnect(), Nr.forEach(function(t) {
|
|
1420
|
-
return ur.removeEventListener(t, e.listener, !0);
|
|
1421
|
-
}), !0);
|
|
1422
|
-
}, e;
|
|
1423
|
-
}())(), Lr = function(e) {
|
|
1424
|
-
!kr && e > 0 && Ir.start(), kr += e, !kr && Ir.stop();
|
|
1425
|
-
}, Rr = function(e) {
|
|
1426
|
-
return !or(e) && !lr(e) && getComputedStyle(e).display === "inline";
|
|
1427
|
-
}, zr = function() {
|
|
1428
|
-
function e(e, t) {
|
|
1429
|
-
this.target = e, this.observedBox = t || nr.CONTENT_BOX, this.lastReportedSize = {
|
|
1430
|
-
inlineSize: 0,
|
|
1431
|
-
blockSize: 0
|
|
1432
|
-
};
|
|
1433
|
-
}
|
|
1434
|
-
return e.prototype.isActive = function() {
|
|
1435
|
-
var e = vr(this.target, this.observedBox, !0);
|
|
1436
|
-
return Rr(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
|
|
1437
|
-
}, e;
|
|
1438
|
-
}(), Br = function() {
|
|
1439
|
-
function e(e, t) {
|
|
1440
|
-
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = t;
|
|
1441
|
-
}
|
|
1442
|
-
return e;
|
|
1443
|
-
}(), Vr = /* @__PURE__ */ new WeakMap(), Hr = function(e, t) {
|
|
1444
|
-
for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n;
|
|
1445
|
-
return -1;
|
|
1446
|
-
}, Ur = function() {
|
|
1447
|
-
function e() {}
|
|
1448
|
-
return e.connect = function(e, t) {
|
|
1449
|
-
var n = new Br(e, t);
|
|
1450
|
-
Vr.set(e, n);
|
|
1451
|
-
}, e.observe = function(e, t, n) {
|
|
1452
|
-
var r = Vr.get(e), i = r.observationTargets.length === 0;
|
|
1453
|
-
Hr(r.observationTargets, t) < 0 && (i && Zn.push(r), r.observationTargets.push(new zr(t, n && n.box)), Lr(1), Ir.schedule());
|
|
1454
|
-
}, e.unobserve = function(e, t) {
|
|
1455
|
-
var n = Vr.get(e), r = Hr(n.observationTargets, t), i = n.observationTargets.length === 1;
|
|
1456
|
-
r >= 0 && (i && Zn.splice(Zn.indexOf(n), 1), n.observationTargets.splice(r, 1), Lr(-1));
|
|
1457
|
-
}, e.disconnect = function(e) {
|
|
1458
|
-
var t = this, n = Vr.get(e);
|
|
1459
|
-
n.observationTargets.slice().forEach(function(n) {
|
|
1460
|
-
return t.unobserve(e, n.target);
|
|
1461
|
-
}), n.activeTargets.splice(0, n.activeTargets.length);
|
|
1462
|
-
}, e;
|
|
1463
|
-
}(), Wr = function() {
|
|
1464
|
-
function e(e) {
|
|
1465
|
-
if (arguments.length === 0) throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1466
|
-
if (typeof e != "function") throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
1467
|
-
Ur.connect(this, e);
|
|
1468
|
-
}
|
|
1469
|
-
return e.prototype.observe = function(e, t) {
|
|
1470
|
-
if (arguments.length === 0) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1471
|
-
if (!cr(e)) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1472
|
-
Ur.observe(this, e, t);
|
|
1473
|
-
}, e.prototype.unobserve = function(e) {
|
|
1474
|
-
if (arguments.length === 0) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1475
|
-
if (!cr(e)) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1476
|
-
Ur.unobserve(this, e);
|
|
1477
|
-
}, e.prototype.disconnect = function() {
|
|
1478
|
-
Ur.disconnect(this);
|
|
1479
|
-
}, e.toString = function() {
|
|
1480
|
-
return "function ResizeObserver () { [polyfill code] }";
|
|
1481
|
-
}, e;
|
|
1482
|
-
}(), Gr = globalThis.ResizeObserver || Wr, Kr = {
|
|
1483
|
-
duration: void 0,
|
|
1484
|
-
margin: {
|
|
1485
|
-
top: 0,
|
|
1486
|
-
bottom: 0,
|
|
1487
|
-
left: 0,
|
|
1488
|
-
right: 0
|
|
1489
|
-
},
|
|
1490
|
-
padding: {
|
|
1491
|
-
top: 0,
|
|
1492
|
-
bottom: 0,
|
|
1493
|
-
left: 0,
|
|
1494
|
-
right: 0
|
|
1495
|
-
},
|
|
1496
|
-
sizing: Z.Fit,
|
|
1497
|
-
width: void 0,
|
|
1498
|
-
height: void 0,
|
|
1499
|
-
svgDefs: void 0,
|
|
1500
|
-
ariaLabel: void 0,
|
|
1501
|
-
colorFunction: void 0
|
|
1502
|
-
}, qr = class e {
|
|
1503
|
-
constructor(t) {
|
|
1504
|
-
this._defaultConfig = Kr, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = t;
|
|
1505
|
-
let n = c(this._container);
|
|
1506
|
-
n.attr("role", "figure"), this.svg = n.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", e.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
|
|
1507
|
-
}
|
|
1508
|
-
updateContainer(e) {
|
|
1509
|
-
this.prevConfig = this.config, this.config = fn(this._defaultConfig, e), e?.svgDefs !== this.prevConfig?.svgDefs && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
|
|
1510
|
-
}
|
|
1511
|
-
_preRender() {}
|
|
1512
|
-
_propagateSizeAndStyleToComponents(e, t) {
|
|
1513
|
-
for (let n of e) n && (n.setSize(this.width, this.height, this.containerWidth, this.containerHeight), n.setContainerMargin(t), n.setColorFunction(this.config.colorFunction));
|
|
1514
|
-
}
|
|
1515
|
-
_render(e) {
|
|
1516
|
-
let { config: t } = this;
|
|
1517
|
-
c(this._container).attr("aria-label", t.ariaLabel), this._isFirstRender = !1;
|
|
1518
|
-
}
|
|
1519
|
-
render(e = this.config.duration) {
|
|
1520
|
-
let t = this.config.width || this.containerWidth, n = this.config.height || this.containerHeight;
|
|
1521
|
-
this.svg.attr("width", t).attr("height", n), this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
1522
|
-
this._preRender(), this._render(e);
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
get containerWidth() {
|
|
1526
|
-
return this.config.width ? this.element.clientWidth || Xn(this.config.width) || 0 : this._container.clientWidth || this._container.getBoundingClientRect().width;
|
|
1527
|
-
}
|
|
1528
|
-
get containerHeight() {
|
|
1529
|
-
return this.config.height ? this.element.clientHeight || Xn(this.config.height) || 0 : this._container.clientHeight || this._container.getBoundingClientRect().height || e.DEFAULT_CONTAINER_HEIGHT;
|
|
1530
|
-
}
|
|
1531
|
-
get width() {
|
|
1532
|
-
return gn(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Infinity);
|
|
1533
|
-
}
|
|
1534
|
-
get height() {
|
|
1535
|
-
return gn(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Infinity);
|
|
1536
|
-
}
|
|
1537
|
-
_removeAllChildren() {
|
|
1538
|
-
for (; this.element.firstChild;) this.element.removeChild(this.element.firstChild);
|
|
1539
|
-
}
|
|
1540
|
-
_reconcileChildren(e) {
|
|
1541
|
-
let t = e.filter(Boolean), n = new Set(t), r = this.element.firstChild;
|
|
1542
|
-
for (; r;) {
|
|
1543
|
-
let e = r.nextSibling;
|
|
1544
|
-
n.has(r) || this.element.removeChild(r), r = e;
|
|
1545
|
-
}
|
|
1546
|
-
let i = this.element.firstChild;
|
|
1547
|
-
for (let e of t) e === i ? i = i.nextSibling : this.element.insertBefore(e, i);
|
|
1548
|
-
}
|
|
1549
|
-
_onResize() {
|
|
1550
|
-
let { config: e } = this;
|
|
1551
|
-
(e.sizing === Z.Fit || e.sizing === Z.FitWidth) && this.render(0);
|
|
1552
|
-
}
|
|
1553
|
-
_setUpResizeObserver() {
|
|
1554
|
-
if (this._resizeObserver) return;
|
|
1555
|
-
let e = this._container.getBoundingClientRect();
|
|
1556
|
-
this._containerSize = {
|
|
1557
|
-
width: e.width,
|
|
1558
|
-
height: e.height
|
|
1559
|
-
}, this._resizeObserver = new Gr((e, t) => {
|
|
1560
|
-
cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
|
|
1561
|
-
let e = this._container.getBoundingClientRect(), t = {
|
|
1562
|
-
width: e.width,
|
|
1563
|
-
height: e.height
|
|
1564
|
-
};
|
|
1565
|
-
!un(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
|
|
1566
|
-
});
|
|
1567
|
-
}), this._resizeObserver.observe(this._container);
|
|
1568
|
-
}
|
|
1569
|
-
destroy() {
|
|
1570
|
-
cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserver?.disconnect(), this.svg.remove();
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
qr.DEFAULT_CONTAINER_HEIGHT = 300;
|
|
1574
|
-
var Jr = qr, Yr = "html[data-theme=\"dark\"],html.dark-theme,body.dark-theme,html.theme-dark,body.theme-dark", Xr = globalThis?.UNOVIS_COLORS || [
|
|
1575
|
-
"#4D8CFD",
|
|
1576
|
-
"#FF6B7E",
|
|
1577
|
-
"#F4B83E",
|
|
1578
|
-
"#A6CC74",
|
|
1579
|
-
"#00C19A",
|
|
1580
|
-
"#6859BE"
|
|
1581
|
-
], Zr = globalThis?.UNOVIS_COLORS_DARK || [
|
|
1582
|
-
"#4D8CFD",
|
|
1583
|
-
"#FF6B7E",
|
|
1584
|
-
"#FFC16D",
|
|
1585
|
-
"#A6CC74",
|
|
1586
|
-
"#00C19A",
|
|
1587
|
-
"#7887E0"
|
|
1588
|
-
], Qr = (e) => `--vis-${tn(e) ? `color${e % Xr.length}` : e}`;
|
|
1589
|
-
function $r(e, t = .4) {
|
|
1590
|
-
let n = u(e);
|
|
1591
|
-
return n.l *= 1 + t, n.formatHex();
|
|
1592
|
-
}
|
|
1593
|
-
function ei(e, t = .4, n = .6) {
|
|
1594
|
-
let r = u(e);
|
|
1595
|
-
return r.s *= 1 - n, r.l *= 1 - t, r.formatHex();
|
|
1596
|
-
}
|
|
1597
|
-
var ti = [
|
|
1598
|
-
{
|
|
1599
|
-
id: "stripes-diagonal",
|
|
1600
|
-
svg: "<path d=\"M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2\" stroke=\"#000\"/>"
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
id: "dots",
|
|
1604
|
-
svg: "<path d=\"m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3\" fill\"#000\"/>"
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
id: "stripes-vertical",
|
|
1608
|
-
svg: "<path d=\"M 5,-1 L5,11\" stroke=\"#000\"/>"
|
|
1609
|
-
},
|
|
1610
|
-
{
|
|
1611
|
-
id: "crosshatch",
|
|
1612
|
-
svg: "<path d=\"M0 0L10 10ZM10 0L0 10Z\" stroke=\"#000\"/>"
|
|
1613
|
-
},
|
|
1614
|
-
{
|
|
1615
|
-
id: "waves",
|
|
1616
|
-
svg: "<path d=\"M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z\" fill=\"#000\"/>"
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
id: "circles",
|
|
1620
|
-
svg: "<circle cx=\"5\" cy=\"5\" r=\"3\" stroke=\"#000\" fill=\"#fff\"/>"
|
|
1621
|
-
}
|
|
1622
|
-
], ni = [
|
|
1623
|
-
{
|
|
1624
|
-
id: "circle",
|
|
1625
|
-
marker: "<circle cx=\"5\" cy=\"5\" r=\"5\"/>",
|
|
1626
|
-
dashArray: []
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
id: "triangle",
|
|
1630
|
-
marker: "<path d=\"M5,0 L10,9 L0,9Z\">",
|
|
1631
|
-
dashArray: [9, 1]
|
|
1632
|
-
},
|
|
1633
|
-
{
|
|
1634
|
-
id: "diamond",
|
|
1635
|
-
marker: "<path d=\"M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z\">",
|
|
1636
|
-
dashArray: [2]
|
|
1637
|
-
},
|
|
1638
|
-
{
|
|
1639
|
-
id: "arrow",
|
|
1640
|
-
marker: "<path d=\"M4 0 0 0 6 5 0 10 4 10 10 5Z\">",
|
|
1641
|
-
dashArray: [
|
|
1642
|
-
2,
|
|
1643
|
-
3,
|
|
1644
|
-
8,
|
|
1645
|
-
3
|
|
1646
|
-
]
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
id: "square",
|
|
1650
|
-
marker: "<rect x=\"1\" y=\"1\" width=\"8\" height=\"8\"/>",
|
|
1651
|
-
dashArray: [6]
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
id: "star",
|
|
1655
|
-
marker: "<path d=\"m2 9 3-9 3 9L0 3h10Z\"/>",
|
|
1656
|
-
dashArray: [1, 6]
|
|
1657
|
-
}
|
|
1658
|
-
], ri = new Map(ti.map((e) => [e.id, e])), ii = new Map(ni.map((e) => [e.id, e]));
|
|
1659
|
-
function ai(e) {
|
|
1660
|
-
return `vis-${`pattern-${e.svg ? "fill" : "marker"}`}-${e.id}`;
|
|
1661
|
-
}
|
|
1662
|
-
function oi(e) {
|
|
1663
|
-
return `vis-pattern-fill-${e}`;
|
|
1664
|
-
}
|
|
1665
|
-
function si(e) {
|
|
1666
|
-
return `vis-pattern-marker-${e}`;
|
|
1667
|
-
}
|
|
1668
|
-
function ci(e) {
|
|
1669
|
-
return `vis-pattern-marker-ctx-${e}`;
|
|
1670
|
-
}
|
|
1671
|
-
function li(e) {
|
|
1672
|
-
return ri.get(e) ?? ii.get(e) ?? null;
|
|
1673
|
-
}
|
|
1674
|
-
var ui = (e) => `<mask id="${oi(e.id)}">
|
|
1675
|
-
<pattern id="vis-pattern-tile-${e.id}" viewBox="0 0 10 10" width="10" height="10" patternUnits="userSpaceOnUse">
|
|
1676
|
-
<rect width="10" height="10" fill="#fff"/>
|
|
1677
|
-
${e.svg}
|
|
1678
|
-
</pattern>
|
|
1679
|
-
<rect x="-100000" y="-100000" width="200000" height="200000" fill="url(#vis-pattern-tile-${e.id})"/>
|
|
1680
|
-
</mask>`, di = (e, t) => `<marker id="${si(e.id)}"
|
|
1681
|
-
fill="var(${Qr(t)})"
|
|
1682
|
-
markerUnits="userSpaceOnUse"
|
|
1683
|
-
refX="5"
|
|
1684
|
-
refY="5"
|
|
1685
|
-
markerWidth="10"
|
|
1686
|
-
markerHeight="10">
|
|
1687
|
-
${e.marker}
|
|
1688
|
-
</marker>`, fi = (e) => `<marker id="${ci(e.id)}"
|
|
1689
|
-
fill="context-stroke"
|
|
1690
|
-
markerUnits="userSpaceOnUse"
|
|
1691
|
-
refX="5"
|
|
1692
|
-
refY="5"
|
|
1693
|
-
markerWidth="10"
|
|
1694
|
-
markerHeight="10">
|
|
1695
|
-
${e.marker}
|
|
1696
|
-
</marker>`;
|
|
1697
|
-
function pi() {
|
|
1698
|
-
let e = ni.map((e, t) => di(e, t)).concat(ni.map(fi)), t = ti.map(ui).concat(e).join(""), n = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
1699
|
-
n.setAttribute("height", "0"), n.setAttribute("width", "0"), n.style.position = "fixed", n.style.zIndex = "-99999999", n.innerHTML = `<defs>${t}</defs>`, document.body.appendChild(n);
|
|
1700
|
-
}
|
|
1701
|
-
typeof window < "u" && pi();
|
|
1702
|
-
//#endregion
|
|
1703
|
-
//#region node_modules/@unovis/ts/utils/color.js
|
|
1704
|
-
var mi = a().range(Array.from({ length: Xr.length }, (e, t) => `var(${Qr(t)})`)).domain(Array.from({ length: Xr.length }, (e, t) => t));
|
|
1705
|
-
function hi(e, t, n, r, i) {
|
|
1706
|
-
if (Array.isArray(t) && isFinite(n)) return t[n % t.length];
|
|
1707
|
-
let a;
|
|
1708
|
-
if (a = nn(t) ? t(e, n, r) : t, a) return a;
|
|
1709
|
-
let o = i?.colorFn ?? mi;
|
|
1710
|
-
if (typeof r == "string" && r) return o(r);
|
|
1711
|
-
let s = i?.dontFallbackToCssVar ?? r === !0;
|
|
1712
|
-
return tn(n) && !s ? o(n % Xr.length) : null;
|
|
1713
|
-
}
|
|
1714
|
-
function gi(e) {
|
|
1715
|
-
let t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
|
|
1716
|
-
return t ? {
|
|
1717
|
-
r: parseInt(t[1], 16),
|
|
1718
|
-
g: parseInt(t[2], 16),
|
|
1719
|
-
b: parseInt(t[3], 16)
|
|
1720
|
-
} : {
|
|
1721
|
-
r: 0,
|
|
1722
|
-
g: 0,
|
|
1723
|
-
b: 0
|
|
1724
|
-
};
|
|
1725
|
-
}
|
|
1726
|
-
function _i(e) {
|
|
1727
|
-
return (.2126 * e.r + .7152 * e.g + .0722 * e.b) / 255;
|
|
1728
|
-
}
|
|
1729
|
-
function vi(e) {
|
|
1730
|
-
return _i(gi(e));
|
|
1731
|
-
}
|
|
1732
|
-
//#endregion
|
|
1733
|
-
//#region node_modules/@unovis/ts/utils/pattern.js
|
|
1734
|
-
var yi = "unovis-pattern-index";
|
|
1735
|
-
function bi(e, t, n) {
|
|
1736
|
-
let r = Y(e, t, n);
|
|
1737
|
-
return r ? li(r) : null;
|
|
1738
|
-
}
|
|
1739
|
-
function xi(e) {
|
|
1740
|
-
return !e || !("svg" in e) ? null : `url(#${oi(e.id)})`;
|
|
1741
|
-
}
|
|
1742
|
-
globalThis?.UNOVIS_ICON_FONT_FAMILY;
|
|
1743
|
-
var Si = globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT || .5;
|
|
1744
|
-
globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT, globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT;
|
|
1745
|
-
var Ci = globalThis?.UNOVIS_TEXT_DEFAULT_FONT_SIZE || 12, wi = globalThis?.UNOVIS_TEXT_DEFAULT || {
|
|
1746
|
-
text: "",
|
|
1747
|
-
fontSize: Ci,
|
|
1748
|
-
fontFamily: "var(--vis-font-family)",
|
|
1749
|
-
lineHeight: 1.25,
|
|
1750
|
-
marginTop: 0,
|
|
1751
|
-
marginBottom: 0
|
|
1752
|
-
};
|
|
1753
|
-
Xt`
|
|
1754
|
-
:root {
|
|
1755
|
-
label: vis-root-styles;
|
|
1756
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
1757
|
-
--vis-font-wh-ratio: ${Si};
|
|
1758
|
-
--vis-color-main: var(${Qr(0)});
|
|
1759
|
-
--vis-color-main-light: ${$r(Xr[0])};
|
|
1760
|
-
--vis-color-main-dark: ${ei(Xr[0])};
|
|
1761
|
-
--vis-color-grey: #2a2a2a;
|
|
1762
|
-
${Xr.map((e, t) => `${Qr(t)}: ${e};`)}
|
|
1763
|
-
${Zr.map((e, t) => `--vis-dark-color${t}: ${e};`)}
|
|
1764
|
-
${ti.map((e, t) => `
|
|
1765
|
-
--${ai(e)}: url(#${ai(e)});
|
|
1766
|
-
--vis-pattern-fill${t}: var(--${ai(e)});
|
|
1767
|
-
`)}
|
|
1768
|
-
${ni.map((e, t) => `
|
|
1769
|
-
--${ai(e)}: url(#${ai(e)});
|
|
1770
|
-
--vis-pattern-marker${t}: var(--${ai(e)});
|
|
1771
|
-
--vis-pattern-dasharray${t}: ${e.dashArray?.join(" ")};
|
|
1772
|
-
`)}
|
|
1773
|
-
|
|
1774
|
-
${Yr} {
|
|
1775
|
-
${Xr.map((e, t) => `${Qr(t)}: var(--vis-dark-color${t});`)}
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
body.theme-patterns {
|
|
1779
|
-
${ti.map((e, t) => `path[${yi}="${t}"][style*="fill"]:not([style*="mask"]) {
|
|
1780
|
-
mask: var(--vis-pattern-fill${t});
|
|
1781
|
-
}`)}
|
|
1782
|
-
${ni.map((e, t) => `
|
|
1783
|
-
path[${yi}="${t}"]:not([style*="fill"]):not([style*="marker"]) {
|
|
1784
|
-
marker: var(--vis-pattern-marker${t});
|
|
1785
|
-
stroke-dasharray: var(--vis-pattern-dasharray${t});
|
|
1786
|
-
}
|
|
1787
|
-
`)}
|
|
1788
|
-
}
|
|
1789
|
-
`;
|
|
1790
|
-
function Ti(e = window?.document.body) {
|
|
1791
|
-
return e ? +Jn("var(--vis-font-wh-ratio)", e) : Si;
|
|
1792
|
-
}
|
|
1793
|
-
//#endregion
|
|
1794
|
-
//#region node_modules/@unovis/ts/types/text.js
|
|
1795
|
-
var Ei = /* @__PURE__ */ ((e) => (e.Start = "start", e.Middle = "middle", e.End = "end", e))(Ei || {}), Di = 5e3;
|
|
1796
|
-
function Oi(e, t, n) {
|
|
1797
|
-
if (e.size >= Di && !e.has(t)) {
|
|
1798
|
-
let t = e.keys().next().value;
|
|
1799
|
-
t !== void 0 && e.delete(t);
|
|
1800
|
-
}
|
|
1801
|
-
e.set(t, n);
|
|
1802
|
-
}
|
|
1803
|
-
//#endregion
|
|
1804
|
-
//#region node_modules/@unovis/ts/utils/text-measure.js
|
|
1805
|
-
var ki = "", Ai = /* @__PURE__ */ new Map(), ji = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new Map(), Ni = globalThis?.document?.createElement("canvas").getContext("2d") ?? null, Pi = (e, t) => `${t}${ki}${e}`;
|
|
1806
|
-
function Fi() {
|
|
1807
|
-
Ai.clear(), Mi.clear();
|
|
1808
|
-
}
|
|
1809
|
-
globalThis?.document?.fonts?.ready?.then(Fi);
|
|
1810
|
-
function Ii(e, t, n = Ti()) {
|
|
1811
|
-
return e.length * t * n || 0;
|
|
1812
|
-
}
|
|
1813
|
-
function Li(e, t) {
|
|
1814
|
-
if (Ni) return Ni.font !== t && (Ni.font = t), Ni.measureText(e).width;
|
|
1815
|
-
let n = /(\d*\.?\d+)(px|pt|pc|rem|em|ex|ch|cm|mm|in|vmin|vmax|vw|vh|%)/.exec(t)?.[0];
|
|
1816
|
-
return Ii(e, Gn(n) ?? Ci, Ti());
|
|
1817
|
-
}
|
|
1818
|
-
function Ri(e) {
|
|
1819
|
-
let t = "", n = e;
|
|
1820
|
-
for (; n && (t += `${ki}${n.getAttribute("class") || ""};${n.getAttribute("style") || ""}`, n.localName !== "svg");) n = n.parentElement;
|
|
1821
|
-
return t;
|
|
1822
|
-
}
|
|
1823
|
-
function zi(e) {
|
|
1824
|
-
let t = ji.get(e);
|
|
1825
|
-
if (t) return t;
|
|
1826
|
-
let n = Ri(e);
|
|
1827
|
-
if (t = Mi.get(n), t) return ji.set(e, t), t;
|
|
1828
|
-
let r = window.getComputedStyle(e), i = r.fontSize || `${Ci}px`, a = r.fontFamily || "sans-serif";
|
|
1829
|
-
return t = {
|
|
1830
|
-
font: `${r.fontStyle || "normal"} ${r.fontWeight || "normal"} ${i} ${a}`,
|
|
1831
|
-
fontFamily: a,
|
|
1832
|
-
fontSizePx: Gn(i)
|
|
1833
|
-
}, Oi(Mi, n, t), ji.set(e, t), t;
|
|
1834
|
-
}
|
|
1835
|
-
function Bi(e) {
|
|
1836
|
-
let t = e.textContent || "", { font: n } = zi(e), r = Pi(t, n), i = Ai.get(r);
|
|
1837
|
-
if (i !== void 0) return i;
|
|
1838
|
-
let a = Ni ? Li(t, n) : e.getComputedTextLength();
|
|
1839
|
-
return Oi(Ai, r, a), a;
|
|
1840
|
-
}
|
|
1841
|
-
//#endregion
|
|
1842
|
-
//#region node_modules/@unovis/ts/utils/text.js
|
|
1843
|
-
function Vi(e, t = 15) {
|
|
1844
|
-
return e ? e.length > t ? `…${e.substr(e.length - t, t)}` : e : "";
|
|
1845
|
-
}
|
|
1846
|
-
function Hi(e, t = 15) {
|
|
1847
|
-
if (!e) return "";
|
|
1848
|
-
let n = Math.floor((t - 3) / 2);
|
|
1849
|
-
return e.length > t ? `${e.substr(0, n)}…${e.substr(-n, n)}` : e;
|
|
1850
|
-
}
|
|
1851
|
-
function Ui(e, t = 15) {
|
|
1852
|
-
return e ? e.length > t ? `${e.substr(0, t)}…` : e : "";
|
|
1853
|
-
}
|
|
1854
|
-
function Wi(e, t = 15, n = Ei.Middle) {
|
|
1855
|
-
if (!e) return "";
|
|
1856
|
-
let r = Ui(e, t);
|
|
1857
|
-
return n === Ei.Start ? r = Vi(e, t) : n === Ei.Middle && (r = Hi(e, t)), r;
|
|
1858
|
-
}
|
|
1859
|
-
function Gi(e, t = 50, n = Ei.Middle, r = !1, i = Gn(window.getComputedStyle(e.node())?.fontSize || wi.fontSize), a = Ti()) {
|
|
1860
|
-
let o = e.text() || "", s = o.length;
|
|
1861
|
-
if (!s) return !1;
|
|
1862
|
-
if (r) {
|
|
1863
|
-
let r = Ii(o, i, a), c = Math.ceil(s * t / (1.1 * r));
|
|
1864
|
-
return c < s && (e.text(Wi(o, c, n)), !0);
|
|
1865
|
-
}
|
|
1866
|
-
let c = e.node();
|
|
1867
|
-
if (Bi(c) <= t) return !1;
|
|
1868
|
-
let l = 0, u = s, d = 0;
|
|
1869
|
-
for (; l <= u;) {
|
|
1870
|
-
let r = l + u >> 1;
|
|
1871
|
-
e.text(Wi(o, r, n)), Bi(c) <= t ? (d = r, l = r + 1) : u = r - 1;
|
|
1872
|
-
}
|
|
1873
|
-
return e.text(Wi(o, d, n)), !0;
|
|
1874
|
-
}
|
|
1875
|
-
//#endregion
|
|
1876
|
-
//#region node_modules/@unovis/ts/utils/d3.js
|
|
1877
|
-
function Ki(e, t, n) {
|
|
1878
|
-
if (e.nodes().forEach((e) => s(e)), t) {
|
|
1879
|
-
let r = e.transition().duration(t);
|
|
1880
|
-
return n && r.ease(n), r;
|
|
1881
|
-
}
|
|
1882
|
-
return e;
|
|
1883
|
-
}
|
|
1884
|
-
//#endregion
|
|
1885
|
-
//#region node_modules/@unovis/ts/containers/single-container/config.js
|
|
1886
|
-
var qi = {
|
|
1887
|
-
...Kr,
|
|
1888
|
-
tooltip: void 0,
|
|
1889
|
-
annotations: void 0
|
|
1890
|
-
}, Ji = class extends Jr {
|
|
1891
|
-
constructor(e, t, n) {
|
|
1892
|
-
super(e), this._defaultConfig = qi, this.config = this._defaultConfig, t && (this.updateContainer(t, !0), this.component = t.component), n && this.setData(n, !0), this.component?.datamodel.data && this.render();
|
|
1893
|
-
}
|
|
1894
|
-
setData(e, t) {
|
|
1895
|
-
let { config: n } = this, r = this.component?.datamodel.data !== e;
|
|
1896
|
-
this.component && this.component.setData(e), t || this.render(), r && n.tooltip?.hide();
|
|
1897
|
-
}
|
|
1898
|
-
updateContainer(e, t) {
|
|
1899
|
-
super.updateContainer(e), this.component = e.component, e.sizing && (this.component.sizing = e.sizing);
|
|
1900
|
-
let n = e.tooltip;
|
|
1901
|
-
n && (n.hasContainer() || n.setContainer(this._container), n.setComponents([this.component])), this._reconcileChildren([
|
|
1902
|
-
this.component?.element,
|
|
1903
|
-
e.annotations?.element,
|
|
1904
|
-
this._svgDefs.node(),
|
|
1905
|
-
this._svgDefsExternal.node()
|
|
1906
|
-
]), t || this.render();
|
|
1907
|
-
}
|
|
1908
|
-
updateComponent(e, t) {
|
|
1909
|
-
this.component.setConfig(e), t || this.render();
|
|
1910
|
-
}
|
|
1911
|
-
update(e, t, n) {
|
|
1912
|
-
e && this.updateContainer(e, !0), t && this.updateComponent(t, !0), n && this.setData(n, !0), this.render();
|
|
1913
|
-
}
|
|
1914
|
-
getFitWidthScale() {
|
|
1915
|
-
let { config: e, component: t } = this, n = t;
|
|
1916
|
-
if (!n.getWidth) return 1;
|
|
1917
|
-
let r = n.getWidth() + e.margin.left + e.margin.right;
|
|
1918
|
-
return this.width / r;
|
|
1919
|
-
}
|
|
1920
|
-
_preRender() {
|
|
1921
|
-
let { config: e } = this;
|
|
1922
|
-
super._preRender(), this._propagateSizeAndStyleToComponents([this.component, e.annotations], e.margin);
|
|
1923
|
-
}
|
|
1924
|
-
_render(e) {
|
|
1925
|
-
let { config: t, component: n } = this;
|
|
1926
|
-
super._render(e), n.g.attr("transform", `translate(${t.margin.left},${t.margin.top})`), n.render(e), t.annotations?.render(e), t.tooltip && t.tooltip.update(), t.onRenderComplete?.(this.svg.node(), t.margin, this.containerWidth, this.containerHeight, this.width, this.height);
|
|
1927
|
-
}
|
|
1928
|
-
render(e = this.config.duration) {
|
|
1929
|
-
let { config: t, component: n } = this;
|
|
1930
|
-
if (t.sizing === Z.Extend || t.sizing === Z.FitWidth) {
|
|
1931
|
-
let r = t.sizing === Z.FitWidth, i = n, a = i.getWidth() + t.margin.left + t.margin.right, o = i.getHeight() + t.margin.top + t.margin.bottom, s = r ? this.getFitWidthScale() : 1, c = this.svg.attr("width"), l = this.svg.attr("height"), u = a * s, d = o * s, f = c || l;
|
|
1932
|
-
Ki(this.svg, f ? e : 0).attr("width", u).attr("height", d).attr("viewBox", `0 0 ${a} ${r ? d : o}`).attr("preserveAspectRatio", "xMinYMin");
|
|
1933
|
-
} else this.svg.attr("width", this.config.width || this.containerWidth).attr("height", this.config.height || this.containerHeight);
|
|
1934
|
-
this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
1935
|
-
this._preRender(), this._render(e);
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
_onResize() {
|
|
1939
|
-
let { config: e } = this;
|
|
1940
|
-
super._onResize(), e.tooltip?.hide();
|
|
1941
|
-
}
|
|
1942
|
-
destroy() {
|
|
1943
|
-
let { component: e, config: t } = this;
|
|
1944
|
-
super.destroy(), e?.destroy(), t.tooltip?.destroy(), t.annotations?.destroy();
|
|
1945
|
-
}
|
|
1946
|
-
}, Yi = class {
|
|
1947
|
-
get data() {
|
|
1948
|
-
return this._data;
|
|
1949
|
-
}
|
|
1950
|
-
set data(e) {
|
|
1951
|
-
this._data = e;
|
|
1952
|
-
}
|
|
1953
|
-
constructor(e) {
|
|
1954
|
-
this.data = e;
|
|
1955
|
-
}
|
|
1956
|
-
}, Xi = {
|
|
1957
|
-
duration: 600,
|
|
1958
|
-
events: {},
|
|
1959
|
-
attributes: {}
|
|
1960
|
-
}, Zi = class {
|
|
1961
|
-
constructor(e = Rn.SVG) {
|
|
1962
|
-
this.type = Rn.SVG, this.datamodel = new Yi(), this.sizing = Z.Fit, this.events = {}, this._defaultConfig = Xi, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._containerMargin = {
|
|
1963
|
-
top: 0,
|
|
1964
|
-
bottom: 0,
|
|
1965
|
-
left: 0,
|
|
1966
|
-
right: 0
|
|
1967
|
-
}, this._colorFunction = void 0, this._setUpComponentEventsThrottled = mn(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = mn(this._setCustomAttributes, 500), this.element = e === Rn.SVG ? document.createElementNS("http://www.w3.org/2000/svg", "g") : document.createElement("div"), this.uid = Kn(), this.g = c(this.element);
|
|
1968
|
-
let t = this.constructor?.selectors?.root;
|
|
1969
|
-
t && this.g.attr("class", t);
|
|
1970
|
-
}
|
|
1971
|
-
setContainerMargin(e) {
|
|
1972
|
-
this._containerMargin = e;
|
|
1973
|
-
}
|
|
1974
|
-
setColorFunction(e) {
|
|
1975
|
-
this._colorFunction = e;
|
|
1976
|
-
}
|
|
1977
|
-
setConfig(e) {
|
|
1978
|
-
this.prevConfig = this.config, this.config = fn(this._defaultConfig, e);
|
|
1979
|
-
}
|
|
1980
|
-
setData(e) {
|
|
1981
|
-
this.datamodel.data = e;
|
|
1982
|
-
}
|
|
1983
|
-
setSize(e, t, n, r) {
|
|
1984
|
-
isFinite(e) && (this._width = e), isFinite(t) && (this._height = t), isFinite(n) && (this._containerWidth = n), isFinite(r) && (this._containerHeight = r);
|
|
1985
|
-
}
|
|
1986
|
-
render(e = this.config.duration) {
|
|
1987
|
-
this._render(e);
|
|
1988
|
-
let t = "animating";
|
|
1989
|
-
e && (this.g.attr(t, ""), this.g.transition(t).duration(e).on("end interrupt", () => {
|
|
1990
|
-
this.g.attr(t, null);
|
|
1991
|
-
})), this._setUpComponentEventsThrottled(), this._setCustomAttributesThrottled();
|
|
1992
|
-
}
|
|
1993
|
-
get bleed() {
|
|
1994
|
-
return {
|
|
1995
|
-
top: 0,
|
|
1996
|
-
bottom: 0,
|
|
1997
|
-
left: 0,
|
|
1998
|
-
right: 0
|
|
1999
|
-
};
|
|
2000
|
-
}
|
|
2001
|
-
_render(e = this.config.duration) {}
|
|
2002
|
-
_setCustomAttributes() {
|
|
2003
|
-
let e = this.config.attributes;
|
|
2004
|
-
Object.keys(e).forEach((t) => {
|
|
2005
|
-
Object.keys(e[t]).forEach((n) => {
|
|
2006
|
-
this.g.selectAll(`.${t}`).attr(n, e[t][n]);
|
|
2007
|
-
});
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
_setUpComponentEvents() {
|
|
2011
|
-
this._bindEvents(() => this.events), this._bindEvents(() => this.config.events, ".user");
|
|
2012
|
-
}
|
|
2013
|
-
_mapEventDatum(e, t) {
|
|
2014
|
-
return {
|
|
2015
|
-
datum: e,
|
|
2016
|
-
index: t
|
|
2017
|
-
};
|
|
2018
|
-
}
|
|
2019
|
-
_bindEvents(e, t = "") {
|
|
2020
|
-
let n = e() ?? {};
|
|
2021
|
-
Object.keys(n).forEach((r) => {
|
|
2022
|
-
Object.keys(n[r]).forEach((n) => {
|
|
2023
|
-
let i = this.g.selectAll(`.${r}`), a = i.nodes();
|
|
2024
|
-
i.on(n + t, (t, i) => {
|
|
2025
|
-
let o = e()?.[r]?.[n];
|
|
2026
|
-
if (!o) return;
|
|
2027
|
-
let s = a.indexOf(t.currentTarget), { datum: c, index: l } = this._mapEventDatum(i, s);
|
|
2028
|
-
return o(c, t, l, a);
|
|
2029
|
-
});
|
|
2030
|
-
});
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
_onDestroy() {}
|
|
2034
|
-
destroy() {
|
|
2035
|
-
this.isDestroyed() || (this._onDestroy(), this.g?.remove(), this.element = void 0);
|
|
2036
|
-
}
|
|
2037
|
-
isDestroyed() {
|
|
2038
|
-
return !this.element;
|
|
2039
|
-
}
|
|
2040
|
-
};
|
|
2041
|
-
//#endregion
|
|
2042
|
-
//#region node_modules/d3-interpolate-path/build/d3-interpolate-path.mjs
|
|
2043
|
-
function Qi(e, t) {
|
|
2044
|
-
var n = Object.keys(e);
|
|
2045
|
-
if (Object.getOwnPropertySymbols) {
|
|
2046
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
2047
|
-
t && (r = r.filter(function(t) {
|
|
2048
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2049
|
-
})), n.push.apply(n, r);
|
|
2050
|
-
}
|
|
2051
|
-
return n;
|
|
2052
|
-
}
|
|
2053
|
-
function $i(e) {
|
|
2054
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
2055
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
2056
|
-
t % 2 ? Qi(Object(n), !0).forEach(function(t) {
|
|
2057
|
-
ta(e, t, n[t]);
|
|
2058
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qi(Object(n)).forEach(function(t) {
|
|
2059
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
return e;
|
|
2063
|
-
}
|
|
2064
|
-
function ea(e) {
|
|
2065
|
-
"@babel/helpers - typeof";
|
|
2066
|
-
return ea = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2067
|
-
return typeof e;
|
|
2068
|
-
} : function(e) {
|
|
2069
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2070
|
-
}, ea(e);
|
|
2071
|
-
}
|
|
2072
|
-
function ta(e, t, n) {
|
|
2073
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
2074
|
-
value: n,
|
|
2075
|
-
enumerable: !0,
|
|
2076
|
-
configurable: !0,
|
|
2077
|
-
writable: !0
|
|
2078
|
-
}) : e[t] = n, e;
|
|
2079
|
-
}
|
|
2080
|
-
function na() {
|
|
2081
|
-
return na = Object.assign || function(e) {
|
|
2082
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
2083
|
-
var n = arguments[t];
|
|
2084
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2085
|
-
}
|
|
2086
|
-
return e;
|
|
2087
|
-
}, na.apply(this, arguments);
|
|
2088
|
-
}
|
|
2089
|
-
function ra(e, t) {
|
|
2090
|
-
if (e) {
|
|
2091
|
-
if (typeof e == "string") return ia(e, t);
|
|
2092
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2093
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2094
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ia(e, t);
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
function ia(e, t) {
|
|
2098
|
-
(t == null || t > e.length) && (t = e.length);
|
|
2099
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2100
|
-
return r;
|
|
2101
|
-
}
|
|
2102
|
-
function aa(e, t) {
|
|
2103
|
-
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2104
|
-
if (!n) {
|
|
2105
|
-
if (Array.isArray(e) || (n = ra(e)) || t && e && typeof e.length == "number") {
|
|
2106
|
-
n && (e = n);
|
|
2107
|
-
var r = 0, i = function() {};
|
|
2108
|
-
return {
|
|
2109
|
-
s: i,
|
|
2110
|
-
n: function() {
|
|
2111
|
-
return r >= e.length ? { done: !0 } : {
|
|
2112
|
-
done: !1,
|
|
2113
|
-
value: e[r++]
|
|
2114
|
-
};
|
|
2115
|
-
},
|
|
2116
|
-
e: function(e) {
|
|
2117
|
-
throw e;
|
|
2118
|
-
},
|
|
2119
|
-
f: i
|
|
2120
|
-
};
|
|
2121
|
-
}
|
|
2122
|
-
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2123
|
-
}
|
|
2124
|
-
var a = !0, o = !1, s;
|
|
2125
|
-
return {
|
|
2126
|
-
s: function() {
|
|
2127
|
-
n = n.call(e);
|
|
2128
|
-
},
|
|
2129
|
-
n: function() {
|
|
2130
|
-
var e = n.next();
|
|
2131
|
-
return a = e.done, e;
|
|
2132
|
-
},
|
|
2133
|
-
e: function(e) {
|
|
2134
|
-
o = !0, s = e;
|
|
2135
|
-
},
|
|
2136
|
-
f: function() {
|
|
2137
|
-
try {
|
|
2138
|
-
!a && n.return != null && n.return();
|
|
2139
|
-
} finally {
|
|
2140
|
-
if (o) throw s;
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
}
|
|
2145
|
-
function oa(e, t) {
|
|
2146
|
-
var n = [], r = [];
|
|
2147
|
-
function i(e, t) {
|
|
2148
|
-
if (e.length === 1) n.push(e[0]), r.push(e[0]);
|
|
2149
|
-
else {
|
|
2150
|
-
for (var a = Array(e.length - 1), o = 0; o < a.length; o++) o === 0 && n.push(e[0]), o === a.length - 1 && r.push(e[o + 1]), a[o] = [(1 - t) * e[o][0] + t * e[o + 1][0], (1 - t) * e[o][1] + t * e[o + 1][1]];
|
|
2151
|
-
i(a, t);
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
return e.length && i(e, t), {
|
|
2155
|
-
left: n,
|
|
2156
|
-
right: r.reverse()
|
|
2157
|
-
};
|
|
2158
|
-
}
|
|
2159
|
-
function sa(e) {
|
|
2160
|
-
var t = {};
|
|
2161
|
-
return e.length === 4 && (t.x2 = e[2][0], t.y2 = e[2][1]), e.length >= 3 && (t.x1 = e[1][0], t.y1 = e[1][1]), t.x = e[e.length - 1][0], t.y = e[e.length - 1][1], t.type = e.length === 4 ? "C" : e.length === 3 ? "Q" : "L", t;
|
|
2162
|
-
}
|
|
2163
|
-
function ca(e, t) {
|
|
2164
|
-
t ||= 2;
|
|
2165
|
-
for (var n = [], r = e, i = 1 / t, a = 0; a < t - 1; a++) {
|
|
2166
|
-
var o = i / (1 - i * a), s = oa(r, o);
|
|
2167
|
-
n.push(s.left), r = s.right;
|
|
2168
|
-
}
|
|
2169
|
-
return n.push(r), n;
|
|
2170
|
-
}
|
|
2171
|
-
function la(e, t, n) {
|
|
2172
|
-
var r = [[e.x, e.y]];
|
|
2173
|
-
return t.x1 != null && r.push([t.x1, t.y1]), t.x2 != null && r.push([t.x2, t.y2]), r.push([t.x, t.y]), ca(r, n).map(sa);
|
|
2174
|
-
}
|
|
2175
|
-
var ua = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, da = {
|
|
2176
|
-
M: ["x", "y"],
|
|
2177
|
-
L: ["x", "y"],
|
|
2178
|
-
H: ["x"],
|
|
2179
|
-
V: ["y"],
|
|
2180
|
-
C: [
|
|
2181
|
-
"x1",
|
|
2182
|
-
"y1",
|
|
2183
|
-
"x2",
|
|
2184
|
-
"y2",
|
|
2185
|
-
"x",
|
|
2186
|
-
"y"
|
|
2187
|
-
],
|
|
2188
|
-
S: [
|
|
2189
|
-
"x2",
|
|
2190
|
-
"y2",
|
|
2191
|
-
"x",
|
|
2192
|
-
"y"
|
|
2193
|
-
],
|
|
2194
|
-
Q: [
|
|
2195
|
-
"x1",
|
|
2196
|
-
"y1",
|
|
2197
|
-
"x",
|
|
2198
|
-
"y"
|
|
2199
|
-
],
|
|
2200
|
-
T: ["x", "y"],
|
|
2201
|
-
A: [
|
|
2202
|
-
"rx",
|
|
2203
|
-
"ry",
|
|
2204
|
-
"xAxisRotation",
|
|
2205
|
-
"largeArcFlag",
|
|
2206
|
-
"sweepFlag",
|
|
2207
|
-
"x",
|
|
2208
|
-
"y"
|
|
2209
|
-
],
|
|
2210
|
-
Z: []
|
|
2211
|
-
};
|
|
2212
|
-
Object.keys(da).forEach(function(e) {
|
|
2213
|
-
da[e.toLowerCase()] = da[e];
|
|
2214
|
-
});
|
|
2215
|
-
function fa(e, t) {
|
|
2216
|
-
for (var n = Array(e), r = 0; r < e; r++) n[r] = t;
|
|
2217
|
-
return n;
|
|
2218
|
-
}
|
|
2219
|
-
function pa(e) {
|
|
2220
|
-
return `${e.type}${da[e.type].map(function(t) {
|
|
2221
|
-
return e[t];
|
|
2222
|
-
}).join(",")}`;
|
|
2223
|
-
}
|
|
2224
|
-
function ma(e, t) {
|
|
2225
|
-
var n = {
|
|
2226
|
-
x1: "x",
|
|
2227
|
-
y1: "y",
|
|
2228
|
-
x2: "x",
|
|
2229
|
-
y2: "y"
|
|
2230
|
-
}, r = [
|
|
2231
|
-
"xAxisRotation",
|
|
2232
|
-
"largeArcFlag",
|
|
2233
|
-
"sweepFlag"
|
|
2234
|
-
];
|
|
2235
|
-
if (e.type !== t.type && t.type.toUpperCase() !== "M") {
|
|
2236
|
-
var i = {};
|
|
2237
|
-
Object.keys(t).forEach(function(a) {
|
|
2238
|
-
var o = t[a], s = e[a];
|
|
2239
|
-
s === void 0 && (r.includes(a) ? s = o : (s === void 0 && n[a] && (s = e[n[a]]), s === void 0 && (s = 0))), i[a] = s;
|
|
2240
|
-
}), i.type = t.type, e = i;
|
|
2241
|
-
}
|
|
2242
|
-
return e;
|
|
2243
|
-
}
|
|
2244
|
-
function ha(e, t, n) {
|
|
2245
|
-
var r = [];
|
|
2246
|
-
if (t.type === "L" || t.type === "Q" || t.type === "C") r = r.concat(la(e, t, n));
|
|
2247
|
-
else {
|
|
2248
|
-
var i = na({}, e);
|
|
2249
|
-
i.type === "M" && (i.type = "L"), r = r.concat(fa(n - 1).map(function() {
|
|
2250
|
-
return i;
|
|
2251
|
-
})), r.push(t);
|
|
2252
|
-
}
|
|
2253
|
-
return r;
|
|
2254
|
-
}
|
|
2255
|
-
function ga(e, t, n) {
|
|
2256
|
-
var r = e.length - 1, i = t.length - 1, a = r / i, o = fa(i).reduce(function(t, r, i) {
|
|
2257
|
-
var o = Math.floor(a * i);
|
|
2258
|
-
if (n && o < e.length - 1 && n(e[o], e[o + 1])) {
|
|
2259
|
-
var s = a * i % 1 < .5;
|
|
2260
|
-
t[o] && (s ? o > 0 ? --o : o < e.length - 1 && (o += 1) : o < e.length - 1 ? o += 1 : o > 0 && --o);
|
|
2261
|
-
}
|
|
2262
|
-
return t[o] = (t[o] || 0) + 1, t;
|
|
2263
|
-
}, []).reduce(function(t, n, r) {
|
|
2264
|
-
if (r === e.length - 1) {
|
|
2265
|
-
var i = fa(n, na({}, e[e.length - 1]));
|
|
2266
|
-
return i[0].type === "M" && i.forEach(function(e) {
|
|
2267
|
-
e.type = "L";
|
|
2268
|
-
}), t.concat(i);
|
|
2269
|
-
}
|
|
2270
|
-
return t.concat(ha(e[r], e[r + 1], n));
|
|
2271
|
-
}, []);
|
|
2272
|
-
return o.unshift(e[0]), o;
|
|
2273
|
-
}
|
|
2274
|
-
function _a(e) {
|
|
2275
|
-
for (var t = (e || "").match(ua) || [], n = [], r, i, a = 0; a < t.length; ++a) if (r = da[t[a]], r) {
|
|
2276
|
-
i = { type: t[a] };
|
|
2277
|
-
for (var o = 0; o < r.length; ++o) i[r[o]] = +t[a + o + 1];
|
|
2278
|
-
a += r.length, n.push(i);
|
|
2279
|
-
}
|
|
2280
|
-
return n;
|
|
2281
|
-
}
|
|
2282
|
-
function va(e, t, n) {
|
|
2283
|
-
var r = e == null ? [] : e.slice(), i = t == null ? [] : t.slice(), a = ea(n) === "object" ? n : {
|
|
2284
|
-
excludeSegment: n,
|
|
2285
|
-
snapEndsToInput: !0
|
|
2286
|
-
}, o = a.excludeSegment, s = a.snapEndsToInput;
|
|
2287
|
-
if (!r.length && !i.length) return function() {
|
|
2288
|
-
return [];
|
|
2289
|
-
};
|
|
2290
|
-
var c = (r.length === 0 || r[r.length - 1].type === "Z") && (i.length === 0 || i[i.length - 1].type === "Z");
|
|
2291
|
-
r.length > 0 && r[r.length - 1].type === "Z" && r.pop(), i.length > 0 && i[i.length - 1].type === "Z" && i.pop(), r.length ? i.length || i.push(r[0]) : r.push(i[0]), Math.abs(i.length - r.length) !== 0 && (i.length > r.length ? r = ga(r, i, o) : i.length < r.length && (i = ga(i, r, o))), r = r.map(function(e, t) {
|
|
2292
|
-
return ma(e, i[t]);
|
|
2293
|
-
});
|
|
2294
|
-
var l = r.map(function(e) {
|
|
2295
|
-
return $i({}, e);
|
|
2296
|
-
});
|
|
2297
|
-
return c && (l.push({ type: "Z" }), r.push({ type: "Z" })), function(e) {
|
|
2298
|
-
if (e === 1 && s) return t ?? [];
|
|
2299
|
-
if (e === 0) return r;
|
|
2300
|
-
for (var n = 0; n < l.length; ++n) {
|
|
2301
|
-
var a = r[n], o = i[n], c = l[n], u = aa(da[c.type]), d;
|
|
2302
|
-
try {
|
|
2303
|
-
for (u.s(); !(d = u.n()).done;) {
|
|
2304
|
-
var f = d.value;
|
|
2305
|
-
c[f] = (1 - e) * a[f] + e * o[f], (f === "largeArcFlag" || f === "sweepFlag") && (c[f] = Math.round(c[f]));
|
|
2306
|
-
}
|
|
2307
|
-
} catch (e) {
|
|
2308
|
-
u.e(e);
|
|
2309
|
-
} finally {
|
|
2310
|
-
u.f();
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
return l;
|
|
2314
|
-
};
|
|
2315
|
-
}
|
|
2316
|
-
function ya(e, t, n) {
|
|
2317
|
-
var r = _a(e), i = _a(t), a = ea(n) === "object" ? n : {
|
|
2318
|
-
excludeSegment: n,
|
|
2319
|
-
snapEndsToInput: !0
|
|
2320
|
-
}, o = a.excludeSegment, s = a.snapEndsToInput;
|
|
2321
|
-
if (!r.length && !i.length) return function() {
|
|
2322
|
-
return "";
|
|
2323
|
-
};
|
|
2324
|
-
var c = va(r, i, {
|
|
2325
|
-
excludeSegment: o,
|
|
2326
|
-
snapEndsToInput: s
|
|
2327
|
-
});
|
|
2328
|
-
return function(e) {
|
|
2329
|
-
if (e === 1 && s) return t ?? "";
|
|
2330
|
-
var n = c(e), r = "", i = aa(n), a;
|
|
2331
|
-
try {
|
|
2332
|
-
for (i.s(); !(a = i.n()).done;) {
|
|
2333
|
-
var o = a.value;
|
|
2334
|
-
r += pa(o);
|
|
2335
|
-
}
|
|
2336
|
-
} catch (e) {
|
|
2337
|
-
i.e(e);
|
|
2338
|
-
} finally {
|
|
2339
|
-
i.f();
|
|
2340
|
-
}
|
|
2341
|
-
return r;
|
|
2342
|
-
};
|
|
2343
|
-
}
|
|
2344
|
-
//#endregion
|
|
2345
|
-
//#region node_modules/@unovis/ts/types/curve.js
|
|
2346
|
-
var ba = {
|
|
2347
|
-
basis: k,
|
|
2348
|
-
basisClosed: ne,
|
|
2349
|
-
basisOpen: re,
|
|
2350
|
-
bundle: N,
|
|
2351
|
-
cardinal: ae,
|
|
2352
|
-
cardinalClosed: te,
|
|
2353
|
-
cardinalOpen: ee,
|
|
2354
|
-
catmullRom: le,
|
|
2355
|
-
catmullRomClosed: M,
|
|
2356
|
-
catmullRomOpen: j,
|
|
2357
|
-
linear: ue,
|
|
2358
|
-
linearClosed: se,
|
|
2359
|
-
monotoneX: A,
|
|
2360
|
-
monotoneY: F,
|
|
2361
|
-
natural: ie,
|
|
2362
|
-
step: oe,
|
|
2363
|
-
stepAfter: ce,
|
|
2364
|
-
stepBefore: P
|
|
2365
|
-
};
|
|
2366
|
-
//#endregion
|
|
2367
|
-
//#region node_modules/@unovis/ts/utils/path.js
|
|
2368
|
-
function xa(e, t) {
|
|
2369
|
-
return e.toString().replace(/L(?<x>-?\d*\.?\d*),(?<y>-?\d+\.?\d*)/gm, (e, n, r) => `A ${t} ${t} 0 0 0 ${n} ${r}`);
|
|
2370
|
-
}
|
|
2371
|
-
//#endregion
|
|
2372
|
-
//#region node_modules/@unovis/ts/components/chord-diagram/types.js
|
|
2373
|
-
var $ = /* @__PURE__ */ ((e) => (e.Along = "along", e.Perpendicular = "perpendicular", e))($ || {}), Sa = class extends Yi {
|
|
2374
|
-
constructor() {
|
|
2375
|
-
super(...arguments), this._nodes = [], this._links = [], this._inputNodesMap = /* @__PURE__ */ new Map(), this._nodesMap = /* @__PURE__ */ new Map(), this._nodesByUserId = /* @__PURE__ */ new Map(), this._nodesByInputRef = /* @__PURE__ */ new Map(), this.nodeId = (e) => an(e.id) || isFinite(e.id) ? `${e.id}` : void 0, this.linkId = (e) => an(e.id) || isFinite(e.id) ? `${e.id}` : void 0;
|
|
2376
|
-
}
|
|
2377
|
-
getNodeById(e) {
|
|
2378
|
-
return this._nodesMap.get(e);
|
|
2379
|
-
}
|
|
2380
|
-
get data() {
|
|
2381
|
-
return this._data;
|
|
2382
|
-
}
|
|
2383
|
-
set data(e) {
|
|
2384
|
-
if (!e) return;
|
|
2385
|
-
this._data = e;
|
|
2386
|
-
let t = this.nodes, n = this.links;
|
|
2387
|
-
this._inputNodesMap.clear(), this._nodesMap.clear(), this._nodesByUserId.clear(), this._nodesByInputRef.clear();
|
|
2388
|
-
let r = dn(e?.nodes ?? []), i = dn(e?.links ?? []);
|
|
2389
|
-
this.transferState(r, t, this.nodeId), this.transferState(i, n, this.linkId), r.forEach((t, n) => {
|
|
2390
|
-
t._index = n, t._id = this.nodeId(t) || `${n}`, this._inputNodesMap.set(t, e.nodes[n]), this._nodesMap.set(t._id, t), this._nodesByInputRef.set(e.nodes[n], t);
|
|
2391
|
-
let r = this.nodeId(t);
|
|
2392
|
-
r !== void 0 && !this._nodesByUserId.has(r) && this._nodesByUserId.set(r, t);
|
|
2393
|
-
}), nn(this.nodeSort) && r.sort(this.nodeSort), i.forEach((e, t) => {
|
|
2394
|
-
e._indexGlobal = t, e.source = this.findNode(r, e.source), e.target = this.findNode(r, e.target);
|
|
2395
|
-
});
|
|
2396
|
-
let a = /* @__PURE__ */ new Map();
|
|
2397
|
-
for (let e of i) {
|
|
2398
|
-
let t = e.source?._index ?? -1, n = e.target?._index ?? -1, r = t <= n ? `${t}|${n}` : `${n}|${t}`, i = a.get(r);
|
|
2399
|
-
i ? i.push(e) : a.set(r, [e]);
|
|
2400
|
-
}
|
|
2401
|
-
a.forEach((e) => {
|
|
2402
|
-
if (e.every((e) => !rn(e._index) && !rn(e._neighbours))) return;
|
|
2403
|
-
let t = e[0];
|
|
2404
|
-
e.forEach((n, r) => {
|
|
2405
|
-
n._index = r, n._id = this.linkId(n) || `${n.source?._id}-${n.target?._id}-${r}`, n._neighbours = e.length, n._direction = t.source === n.source && t.target === n.target ? 1 : -1;
|
|
2406
|
-
});
|
|
2407
|
-
});
|
|
2408
|
-
let o = /* @__PURE__ */ new Map();
|
|
2409
|
-
r.forEach((e) => o.set(e, []));
|
|
2410
|
-
for (let e of i) e.source && o.get(e.source)?.push(e), e.target && e.target !== e.source && o.get(e.target)?.push(e);
|
|
2411
|
-
r.forEach((e) => {
|
|
2412
|
-
e.links = o.get(e), e._isConnected = e.links.length !== 0;
|
|
2413
|
-
}), this._nonConnectedNodes = r.filter((e) => !e._isConnected), this._connectedNodes = r.filter((e) => e._isConnected), this._nodes = r, this._links = i.filter((e) => e.source === e.target ? (console.warn(`Unovis | Graph Data Model: Skipping link ${e._id} because it has the same source and target`), !1) : e.source && e.target);
|
|
2414
|
-
}
|
|
2415
|
-
get nodes() {
|
|
2416
|
-
return this._nodes;
|
|
2417
|
-
}
|
|
2418
|
-
get links() {
|
|
2419
|
-
return this._links;
|
|
2420
|
-
}
|
|
2421
|
-
get connectedNodes() {
|
|
2422
|
-
return this._connectedNodes;
|
|
2423
|
-
}
|
|
2424
|
-
get nonConnectedNodes() {
|
|
2425
|
-
return this._nonConnectedNodes;
|
|
2426
|
-
}
|
|
2427
|
-
findNode(e, t) {
|
|
2428
|
-
let n;
|
|
2429
|
-
return tn(t) ? n = e[t] : an(t) ? n = this._nodesByUserId.get(t) : sn(t) && (n = this._nodesByInputRef.get(t) ?? e.find((e) => un(this._inputNodesMap.get(e), t))), n || console.warn(`Unovis | Graph Data Model: Node ${t} is missing from the nodes list`), n;
|
|
2430
|
-
}
|
|
2431
|
-
transferState(e, t, n) {
|
|
2432
|
-
let r = /* @__PURE__ */ new Map();
|
|
2433
|
-
for (let e of t) {
|
|
2434
|
-
let t = n(e);
|
|
2435
|
-
r.has(t) || r.set(t, e);
|
|
2436
|
-
}
|
|
2437
|
-
for (let t of e) {
|
|
2438
|
-
let e = r.get(n(t));
|
|
2439
|
-
t._state = e ? { ...e._state } : {};
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
setNodeStateById(e, t) {
|
|
2443
|
-
let n = this.getNodeById(e);
|
|
2444
|
-
if (!n) {
|
|
2445
|
-
console.warn(`Unovis | Graph Data Model: Node ${e} not found`);
|
|
2446
|
-
return;
|
|
2447
|
-
}
|
|
2448
|
-
n._state = t;
|
|
2449
|
-
}
|
|
2450
|
-
}, Ca = {
|
|
2451
|
-
...Xi,
|
|
2452
|
-
duration: 800,
|
|
2453
|
-
highlightedNodeId: void 0,
|
|
2454
|
-
highlightedLinkIds: [],
|
|
2455
|
-
linkColor: void 0,
|
|
2456
|
-
linkPattern: void 0,
|
|
2457
|
-
linkValue: (e) => e.value,
|
|
2458
|
-
nodeLevels: [],
|
|
2459
|
-
nodeWidth: 15,
|
|
2460
|
-
nodeColor: (e) => e.color,
|
|
2461
|
-
nodePattern: void 0,
|
|
2462
|
-
nodeLabel: (e) => e.label ?? e.key,
|
|
2463
|
-
nodeLabelColor: void 0,
|
|
2464
|
-
nodeLabelAlignment: $.Along,
|
|
2465
|
-
padAngle: .02,
|
|
2466
|
-
cornerRadius: 2,
|
|
2467
|
-
angleRange: [0, 2 * Math.PI],
|
|
2468
|
-
radiusScaleExponent: 2
|
|
2469
|
-
};
|
|
2470
|
-
//#endregion
|
|
2471
|
-
//#region node_modules/@unovis/ts/components/chord-diagram/modules/node.js
|
|
2472
|
-
function wa(e) {
|
|
2473
|
-
e.style("opacity", 0).each((e, t, n) => {
|
|
2474
|
-
let r = n[t], i = (e.x0 + e.x1) / 2, a = (e.x1 - e.x0) / 2;
|
|
2475
|
-
r._animState = {
|
|
2476
|
-
x0: i - a * .8,
|
|
2477
|
-
x1: i + a * .8,
|
|
2478
|
-
y0: e.y0,
|
|
2479
|
-
y1: e.y1
|
|
2480
|
-
};
|
|
2481
|
-
});
|
|
2482
|
-
}
|
|
2483
|
-
function Ta(e, t, n, r) {
|
|
2484
|
-
let a = (e) => hi(e.data, t.nodeColor, e.height);
|
|
2485
|
-
e.attr("id", (e) => e.uid).style("transition", `fill ${r}ms`).style("fill", a).style("stroke", a).style("mask", (e) => xi(bi(e.data, t.nodePattern, e.height))), r ? Ki(e, r).style("opacity", 1).attrTween("d", (e, t, r) => {
|
|
2486
|
-
let a = r[t], o = {
|
|
2487
|
-
x0: e.x0,
|
|
2488
|
-
x1: e.x1,
|
|
2489
|
-
y0: e.y0,
|
|
2490
|
-
y1: e.y1
|
|
2491
|
-
}, s = i(a._animState, o);
|
|
2492
|
-
return (e) => (a._animState = s(e), n(a._animState));
|
|
2493
|
-
}) : e.attr("d", (e) => n(e)).style("opacity", 1);
|
|
2494
|
-
}
|
|
2495
|
-
function Ea(e, t) {
|
|
2496
|
-
Ki(e, t).style("opacity", 0).remove();
|
|
2497
|
-
}
|
|
2498
|
-
//#endregion
|
|
2499
|
-
//#region node_modules/@unovis/ts/components/chord-diagram/style.js
|
|
2500
|
-
var Da = /* @__PURE__ */ n({
|
|
2501
|
-
background: () => Aa,
|
|
2502
|
-
highlightedLink: () => Ba,
|
|
2503
|
-
highlightedNode: () => Fa,
|
|
2504
|
-
label: () => Ia,
|
|
2505
|
-
labelExit: () => Ra,
|
|
2506
|
-
labelText: () => La,
|
|
2507
|
-
labels: () => Na,
|
|
2508
|
-
link: () => za,
|
|
2509
|
-
links: () => Ma,
|
|
2510
|
-
node: () => Pa,
|
|
2511
|
-
nodes: () => ja,
|
|
2512
|
-
root: () => Oa,
|
|
2513
|
-
transparent: () => Va,
|
|
2514
|
-
variables: () => ka
|
|
2515
|
-
}), Oa = J`
|
|
2516
|
-
label: chord-diagram-component;
|
|
2517
|
-
`, ka = Xt`
|
|
2518
|
-
:root {
|
|
2519
|
-
--vis-chord-diagram-link-fill-color: #cad5f6;
|
|
2520
|
-
--vis-chord-diagram-link-stroke-color: #777777;
|
|
2521
|
-
--vis-chord-diagram-link-opacity: 0.5;
|
|
2522
|
-
--vis-chord-diagram-link-stroke-opacity: 0.15;
|
|
2523
|
-
--vis-chord-diagram-link-highlighted-opacity: 0.9;
|
|
2524
|
-
--vis-chord-diagram-link-dimmed-opacity: 0.25;
|
|
2525
|
-
|
|
2526
|
-
--vis-chord-diagram-node-highlighted-opacity: 0.9;
|
|
2527
|
-
--vis-chord-diagram-node-dimmed-opacity: 0.25;
|
|
2528
|
-
|
|
2529
|
-
--vis-chord-diagram-label-text-fill-color-bright: #ffffff;
|
|
2530
|
-
--vis-chord-diagram-label-text-fill-color-dark: #a5abb2;
|
|
2531
|
-
--vis-chord-diagram-label-text-font-size: 1em;
|
|
2532
|
-
|
|
2533
|
-
--vis-dark-chord-diagram-link-fill-color: #575c65;
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
${Yr} ${`.${Oa}`} {
|
|
2537
|
-
--vis-chord-diagram-link-fill-color: var(--vis-dark-chord-diagram-link-fill-color);
|
|
2538
|
-
}
|
|
2539
|
-
`, Aa = J`
|
|
2540
|
-
label: background;
|
|
2541
|
-
`, ja = J`
|
|
2542
|
-
label: nodes;
|
|
2543
|
-
`, Ma = J`
|
|
2544
|
-
label: links;
|
|
2545
|
-
`, Na = J`
|
|
2546
|
-
label: labels;
|
|
2547
|
-
`, Pa = J`
|
|
2548
|
-
label: node;
|
|
2549
|
-
stroke-width: 0;
|
|
2550
|
-
fill: var(--vis-color-main);
|
|
2551
|
-
stroke: var(--vis-color-main);
|
|
2552
|
-
transition: .1s fill-opacity;
|
|
2553
|
-
`, Fa = J`
|
|
2554
|
-
label: highlighted;
|
|
2555
|
-
fill-opacity: var(--vis-chord-diagram-node-highlighted-opacity);
|
|
2556
|
-
stroke-width: 1.5;
|
|
2557
|
-
`, Ia = J`
|
|
2558
|
-
label: label;
|
|
2559
|
-
`, La = J`
|
|
2560
|
-
label: label-text;
|
|
2561
|
-
|
|
2562
|
-
dominant-baseline: middle;
|
|
2563
|
-
user-select: none;
|
|
2564
|
-
font-size: var(--vis-chord-diagram-label-text-font-size);
|
|
2565
|
-
|
|
2566
|
-
> textPath {
|
|
2567
|
-
dominant-baseline: central;
|
|
2568
|
-
}
|
|
2569
|
-
`, Ra = J`
|
|
2570
|
-
label: label-exit;
|
|
2571
|
-
`, za = J`
|
|
2572
|
-
label: link;
|
|
2573
|
-
|
|
2574
|
-
fill: var(--vis-chord-diagram-link-fill-color);
|
|
2575
|
-
fill-opacity: var(--vis-chord-diagram-link-opacity);
|
|
2576
|
-
stroke: var(--vis-chord-diagram-link-stroke-color);
|
|
2577
|
-
stroke-opacity: var(--vis-chord-diagram-link-stroke-opacity);
|
|
2578
|
-
transition: .1s fill-opacity;
|
|
2579
|
-
`, Ba = J`
|
|
2580
|
-
label: highlighted;
|
|
2581
|
-
fill-opacity: var(--vis-chord-diagram-link-highlighted-opacity);
|
|
2582
|
-
`, Va = J`
|
|
2583
|
-
label: transparent;
|
|
2584
|
-
|
|
2585
|
-
${`.${za}`}:not(${`.${Ba}`}) {
|
|
2586
|
-
fill-opacity: var(--vis-chord-diagram-link-dimmed-opacity);
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
${`.${Pa}`}:not(${`.${Fa}`}) {
|
|
2590
|
-
fill-opacity: var(--vis-chord-diagram-node-dimmed-opacity);
|
|
2591
|
-
}
|
|
2592
|
-
`;
|
|
2593
|
-
function Ha(e, t) {
|
|
2594
|
-
switch (Y(e.data, t.nodeLabelAlignment) ?? $.Along) {
|
|
2595
|
-
case $.Perpendicular: return hi(e.data, t.nodeColor, e.height);
|
|
2596
|
-
case $.Along: {
|
|
2597
|
-
let n = hi(e.data, t.nodeColor, e.height), r = l(n);
|
|
2598
|
-
return (r ? vi(r.hex()) : 0) > .65 ? "var(--vis-chord-diagram-label-text-fill-color-dark)" : "var(--vis-chord-diagram-label-text-fill-color-bright)";
|
|
2599
|
-
}
|
|
2600
|
-
}
|
|
2601
|
-
}
|
|
2602
|
-
function Ua(e, t) {
|
|
2603
|
-
switch (Y(e.data, t.nodeLabelAlignment) ?? $.Along) {
|
|
2604
|
-
case $.Perpendicular: return (e.x0 + e.x1) / 2 * 180 / Math.PI < 180 ? "start" : "end";
|
|
2605
|
-
case $.Along: return null;
|
|
2606
|
-
}
|
|
2607
|
-
}
|
|
2608
|
-
function Wa(e, t, n) {
|
|
2609
|
-
switch (Y(e.data, t.nodeLabelAlignment) ?? $.Along) {
|
|
2610
|
-
case $.Perpendicular: {
|
|
2611
|
-
let t = n(e.y1) + 3, r = (e.x0 + e.x1) / 2 - Math.PI / 2;
|
|
2612
|
-
return `translate(${t * Math.cos(r)}, ${t * Math.sin(r)})`;
|
|
2613
|
-
}
|
|
2614
|
-
case $.Along: return null;
|
|
2615
|
-
}
|
|
2616
|
-
}
|
|
2617
|
-
function Ga(e, t, n) {
|
|
2618
|
-
e.style("opacity", 0).attr("transform", (e) => Wa(e, t, n)), e.append("text").attr("class", La).style("fill", (e) => hi(e.data, t.nodeColor, e.height));
|
|
2619
|
-
}
|
|
2620
|
-
function Ka(e, t, n, r, i) {
|
|
2621
|
-
let { nodeLabel: a, nodeLabelColor: o, nodeWidth: s } = t;
|
|
2622
|
-
Ki(e, i).attr("transform", (e) => Wa(e, t, r)).style("opacity", 1);
|
|
2623
|
-
let l = e.select(`.${La}`);
|
|
2624
|
-
l.selectAll("textPath").remove(), l.text((e) => hn(e.data, a)).style("transition", `fill ${i}ms`).style("fill", (e) => hi(e.data, o) ?? Ha(e, t)).style("text-anchor", (e) => Ua(e, t)).each((e, i, a) => {
|
|
2625
|
-
let o = Y(e.data, t.nodeLabelAlignment) ?? $.Along, l = e.x1 - e.x0 - X(e.data, t.padAngle) * 2, u = (r(e.y1) - X(e, t.nodeWidth) / 2) * l, d = o === $.Along ? u : n - 6, f = c(a[i]).call(Gi, d).attr("dx", o === $.Along ? 3 : null).attr("dy", o === $.Along ? X(e.data, s) / 2 : null), p = Bi(f.node()), m = f.text();
|
|
2626
|
-
o === $.Along && (f.text(""), p <= d && f.append("textPath").attr("href", `#${e.uid}`).text(m));
|
|
2627
|
-
}), Ki(l, i).attr("transform", (e) => {
|
|
2628
|
-
if (Y(e.data, t.nodeLabelAlignment) !== $.Perpendicular) return null;
|
|
2629
|
-
let n = (e.x0 + e.x1) / 2 * 180 / Math.PI;
|
|
2630
|
-
return `rotate(${n < 180 ? n - 90 : n + 90})`;
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
function qa(e, t) {
|
|
2634
|
-
Ki(e, t).style("opacity", 0).remove();
|
|
2635
|
-
}
|
|
2636
|
-
//#endregion
|
|
2637
|
-
//#region node_modules/@unovis/ts/components/chord-diagram/modules/layout.js
|
|
2638
|
-
function Ja(e) {
|
|
2639
|
-
let { height: t, depth: n } = e;
|
|
2640
|
-
if (t > 0) {
|
|
2641
|
-
let r = e.data, i = e;
|
|
2642
|
-
i.data = {
|
|
2643
|
-
key: r[0],
|
|
2644
|
-
values: r[1],
|
|
2645
|
-
depth: n,
|
|
2646
|
-
height: t,
|
|
2647
|
-
ancestors: i.ancestors().map((e) => e.data.key)
|
|
2648
|
-
};
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
function Ya(e, n, r = []) {
|
|
2652
|
-
let i = r.map((e) => (t) => t[e]), a = r.length ? t(e, ...i) : {
|
|
2653
|
-
key: "root",
|
|
2654
|
-
children: e
|
|
2655
|
-
};
|
|
2656
|
-
return de(a).sum((e) => X(e, n)).each(Ja);
|
|
2657
|
-
}
|
|
2658
|
-
function Xa(e, t, n = .95) {
|
|
2659
|
-
if (!e.children) return;
|
|
2660
|
-
let r = e.value > 0, i = e.x1 - e.x0, a = i * (e.y0 === 0 ? 1 : n), o = i - a, s = r ? t : a / e.children.length, c = kn().startAngle(e.x0 + o / 2).endAngle(e.x1 - o / 2).padAngle(s).value((e) => r ? e.value : 1).sort((t, n) => e.children.indexOf(t) - e.children.indexOf(n))(e.children);
|
|
2661
|
-
e.children.forEach((e, i) => {
|
|
2662
|
-
let a = c[i].startAngle, o = c[i].endAngle, s = (o - a) * (1 - n), l = (a + o) / 2;
|
|
2663
|
-
e.x0 = r ? a + s / 2 : l - t / 2, e.x1 = r ? o - s / 2 : l + t / 2;
|
|
2664
|
-
});
|
|
2665
|
-
}
|
|
2666
|
-
function Za(t, n, r) {
|
|
2667
|
-
let i = pn(n, (e) => e.source._id), a = pn(n, (e) => e.target._id), o = t.leaves(), s = e(o, (e) => e.data._id), c = (e, t, n, r = []) => (r[e.height] = e, r[n * 2 - t.height] = t, e.parent && t.parent && c(e.parent, t.parent, n, r), r), l = (e, t, n, i) => {
|
|
2668
|
-
e.forEach((e) => {
|
|
2669
|
-
e._state.points || (e._state.points = []);
|
|
2670
|
-
let a = s.get(e.source._id), o = s.get(e.target._id), l = c(t === "out" ? a : o, t === "out" ? o : a, i)[n], u = l.x1 - l.x0 - r, d = l._prevX1 ?? l.x0 + r / 2, f = d + u * e._state.value / l.value;
|
|
2671
|
-
l._prevX1 = f;
|
|
2672
|
-
let p = t === "out" ? n : i * 2 - 1 - n;
|
|
2673
|
-
e._state.points[p] = {
|
|
2674
|
-
a0: d,
|
|
2675
|
-
a1: f,
|
|
2676
|
-
r: l.y1
|
|
2677
|
-
};
|
|
2678
|
-
});
|
|
2679
|
-
};
|
|
2680
|
-
return o.forEach((e) => {
|
|
2681
|
-
let t = i[e.data._id] || [], n = a[e.data._id] || [];
|
|
2682
|
-
for (let r = 0; r < e.depth; r += 1) l(t, "out", r, e.depth), l(n, "in", r, e.depth);
|
|
2683
|
-
}), n.map((e) => ({
|
|
2684
|
-
source: s.get(e.source._id),
|
|
2685
|
-
target: s.get(e.target._id),
|
|
2686
|
-
data: e,
|
|
2687
|
-
points: e._state.points,
|
|
2688
|
-
_state: {}
|
|
2689
|
-
}));
|
|
2690
|
-
}
|
|
2691
|
-
//#endregion
|
|
2692
|
-
//#region node_modules/d3-chord/src/math.js
|
|
2693
|
-
var Qa = Math.abs, $a = Math.cos, eo = Math.sin, to = Math.PI, no = to / 2;
|
|
2694
|
-
to * 2;
|
|
2695
|
-
//#endregion
|
|
2696
|
-
//#region node_modules/d3-chord/src/array.js
|
|
2697
|
-
var ro = Array.prototype.slice;
|
|
2698
|
-
//#endregion
|
|
2699
|
-
//#region node_modules/d3-chord/src/constant.js
|
|
2700
|
-
function io(e) {
|
|
2701
|
-
return function() {
|
|
2702
|
-
return e;
|
|
2703
|
-
};
|
|
2704
|
-
}
|
|
2705
|
-
//#endregion
|
|
2706
|
-
//#region node_modules/d3-chord/src/ribbon.js
|
|
2707
|
-
function ao(e) {
|
|
2708
|
-
return e.source;
|
|
2709
|
-
}
|
|
2710
|
-
function oo(e) {
|
|
2711
|
-
return e.target;
|
|
2712
|
-
}
|
|
2713
|
-
function so(e) {
|
|
2714
|
-
return e.radius;
|
|
2715
|
-
}
|
|
2716
|
-
function co(e) {
|
|
2717
|
-
return e.startAngle;
|
|
2718
|
-
}
|
|
2719
|
-
function lo(e) {
|
|
2720
|
-
return e.endAngle;
|
|
2721
|
-
}
|
|
2722
|
-
function uo() {
|
|
2723
|
-
return 0;
|
|
2724
|
-
}
|
|
2725
|
-
function fo(e) {
|
|
2726
|
-
var t = ao, n = oo, r = so, i = so, a = co, o = lo, s = uo, c = null;
|
|
2727
|
-
function l() {
|
|
2728
|
-
var l, u = t.apply(this, arguments), d = n.apply(this, arguments), f = s.apply(this, arguments) / 2, p = ro.call(arguments), m = +r.apply(this, (p[0] = u, p)), h = a.apply(this, p) - no, g = o.apply(this, p) - no, _ = +i.apply(this, (p[0] = d, p)), v = a.apply(this, p) - no, y = o.apply(this, p) - no;
|
|
2729
|
-
if (c ||= l = T(), f > 1e-12 && (Qa(g - h) > f * 2 + 1e-12 ? g > h ? (h += f, g -= f) : (h -= f, g += f) : h = g = (h + g) / 2, Qa(y - v) > f * 2 + 1e-12 ? y > v ? (v += f, y -= f) : (v -= f, y += f) : v = y = (v + y) / 2), c.moveTo(m * $a(h), m * eo(h)), c.arc(0, 0, m, h, g), h !== v || g !== y) {
|
|
2730
|
-
if (e) {
|
|
2731
|
-
var b = _ - +e.apply(this, arguments), x = (v + y) / 2;
|
|
2732
|
-
c.quadraticCurveTo(0, 0, b * $a(v), b * eo(v)), c.lineTo(_ * $a(x), _ * eo(x)), c.lineTo(b * $a(y), b * eo(y));
|
|
2733
|
-
} else c.quadraticCurveTo(0, 0, _ * $a(v), _ * eo(v)), c.arc(0, 0, _, v, y);
|
|
2734
|
-
}
|
|
2735
|
-
if (c.quadraticCurveTo(0, 0, m * $a(h), m * eo(h)), c.closePath(), l) return c = null, l + "" || null;
|
|
2736
|
-
}
|
|
2737
|
-
return e && (l.headRadius = function(t) {
|
|
2738
|
-
return arguments.length ? (e = typeof t == "function" ? t : io(+t), l) : e;
|
|
2739
|
-
}), l.radius = function(e) {
|
|
2740
|
-
return arguments.length ? (r = i = typeof e == "function" ? e : io(+e), l) : r;
|
|
2741
|
-
}, l.sourceRadius = function(e) {
|
|
2742
|
-
return arguments.length ? (r = typeof e == "function" ? e : io(+e), l) : r;
|
|
2743
|
-
}, l.targetRadius = function(e) {
|
|
2744
|
-
return arguments.length ? (i = typeof e == "function" ? e : io(+e), l) : i;
|
|
2745
|
-
}, l.startAngle = function(e) {
|
|
2746
|
-
return arguments.length ? (a = typeof e == "function" ? e : io(+e), l) : a;
|
|
2747
|
-
}, l.endAngle = function(e) {
|
|
2748
|
-
return arguments.length ? (o = typeof e == "function" ? e : io(+e), l) : o;
|
|
2749
|
-
}, l.padAngle = function(e) {
|
|
2750
|
-
return arguments.length ? (s = typeof e == "function" ? e : io(+e), l) : s;
|
|
2751
|
-
}, l.source = function(e) {
|
|
2752
|
-
return arguments.length ? (t = e, l) : t;
|
|
2753
|
-
}, l.target = function(e) {
|
|
2754
|
-
return arguments.length ? (n = e, l) : n;
|
|
2755
|
-
}, l.context = function(e) {
|
|
2756
|
-
return arguments.length ? (c = e ?? null, l) : c;
|
|
2757
|
-
}, l;
|
|
2758
|
-
}
|
|
2759
|
-
function po() {
|
|
2760
|
-
return fo();
|
|
2761
|
-
}
|
|
2762
|
-
//#endregion
|
|
2763
|
-
//#region node_modules/@unovis/ts/components/chord-diagram/modules/link.js
|
|
2764
|
-
function mo() {
|
|
2765
|
-
return "M0,0 L0,0";
|
|
2766
|
-
}
|
|
2767
|
-
var ho = po().source((e) => e[0]).target((e) => e[e.length - 1]).startAngle((e) => e.a0).endAngle((e) => e.a1), go = Pn().curve(ba.catmullRom.alpha(.5)).startAngle((e, t, n) => t < n.length / 2 ? e.a1 : e.a0).endAngle((e, t, n) => t < n.length / 2 ? e.a0 : e.a1);
|
|
2768
|
-
function _o(e, t) {
|
|
2769
|
-
let n = e.length === 2 ? ho : go;
|
|
2770
|
-
n.radius((e) => t(e.r));
|
|
2771
|
-
let r = n(e);
|
|
2772
|
-
if (e.length === 2) return r;
|
|
2773
|
-
let i = r.slice(0, -1);
|
|
2774
|
-
return xa(i.concat(`L${i.match(/M-?\d*\.?\d*[,\s*]-?\d*\.?\d*/)?.[0].slice(1)}`), Math.max(t(e[0].r), 0));
|
|
2775
|
-
}
|
|
2776
|
-
function vo(e, t) {
|
|
2777
|
-
e.attr("d", (e) => _o(e.points, t) || mo()).style("opacity", 0);
|
|
2778
|
-
}
|
|
2779
|
-
function yo(e, t, n, r) {
|
|
2780
|
-
e.style("transition", `fill ${r}ms`).style("fill", (e) => hi(e.data, t.linkColor)).style("stroke", (e) => hi(e.data, t.linkColor)).style("mask", (e) => xi(bi(e.data, t.linkPattern)));
|
|
2781
|
-
let i = Ki(e, r).style("opacity", 1);
|
|
2782
|
-
r ? i.attrTween("d", (e, t, r) => ya(c(r[t]).attr("d"), _o(e.points, n) || mo())) : i.attr("d", (e) => _o(e.points, n) || mo());
|
|
2783
|
-
}
|
|
2784
|
-
function bo(e, t) {
|
|
2785
|
-
Ki(e, t).style("opacity", 0).remove();
|
|
2786
|
-
}
|
|
2787
|
-
//#endregion
|
|
2788
|
-
//#region node_modules/@unovis/ts/components/chord-diagram/index.js
|
|
2789
|
-
var xo = class e extends Zi {
|
|
2790
|
-
constructor(t) {
|
|
2791
|
-
super(), this._defaultConfig = Ca, this.config = this._defaultConfig, this.datamodel = new Sa(), this.arcGen = wn(), this.radiusScale = r(), this.events = {
|
|
2792
|
-
[e.selectors.node]: {
|
|
2793
|
-
mouseover: this._onNodeMouseOver.bind(this),
|
|
2794
|
-
mouseout: this._onNodeMouseOut.bind(this)
|
|
2795
|
-
},
|
|
2796
|
-
[e.selectors.link]: {
|
|
2797
|
-
mouseover: this._onLinkMouseOver.bind(this),
|
|
2798
|
-
mouseout: this._onLinkMouseOut.bind(this)
|
|
2799
|
-
},
|
|
2800
|
-
[e.selectors.label]: {
|
|
2801
|
-
mouseover: this._onNodeMouseOver.bind(this),
|
|
2802
|
-
mouseout: this._onNodeMouseOut.bind(this)
|
|
2803
|
-
}
|
|
2804
|
-
}, this._nodes = [], this._links = [], this.setConfig(t), this.background = this.g.append("rect").attr("class", Aa), this.linkGroup = this.g.append("g").attr("class", Ma), this.nodeGroup = this.g.append("g").attr("class", ja), this.labelGroup = this.g.append("g").attr("class", Na);
|
|
2805
|
-
}
|
|
2806
|
-
get _forceHighlight() {
|
|
2807
|
-
return this.config.highlightedNodeId !== void 0 || this.config.highlightedLinkIds?.length > 0;
|
|
2808
|
-
}
|
|
2809
|
-
get bleed() {
|
|
2810
|
-
let { config: e } = this, t = 0, n = 0, r = 0, i = 0;
|
|
2811
|
-
return this._nodes.forEach((a) => {
|
|
2812
|
-
let o = Y(a.data, e.nodeLabelAlignment);
|
|
2813
|
-
if (a.height === 0 && o === $.Perpendicular) {
|
|
2814
|
-
let o = Ii(hn(a.data, e.nodeLabel) ?? "", Yn("var(--vis-chord-diagram-label-text-font-size)", this.element)), [s, c] = this.arcGen.centroid(a);
|
|
2815
|
-
s < 0 ? i = Math.max(i, o) : r = Math.max(r, o), c < 0 ? t = Math.max(t, o) : n = Math.max(n, o);
|
|
2816
|
-
}
|
|
2817
|
-
}), i += 6, r += 6, n += 6, t += 6, {
|
|
2818
|
-
top: t,
|
|
2819
|
-
bottom: n,
|
|
2820
|
-
left: i,
|
|
2821
|
-
right: r
|
|
2822
|
-
};
|
|
2823
|
-
}
|
|
2824
|
-
setSize(e, t, n, r) {
|
|
2825
|
-
super.setSize(e, t, n, r), this.radiusScale.exponent(this.config.radiusScaleExponent).range([0, Math.min(e, t) / 2]);
|
|
2826
|
-
}
|
|
2827
|
-
setData(e) {
|
|
2828
|
-
super.setData(e), this._layoutData();
|
|
2829
|
-
}
|
|
2830
|
-
_layoutData() {
|
|
2831
|
-
let { nodes: e } = this.datamodel, { links: t } = this.datamodel, { padAngle: n, linkValue: r, nodeLevels: i } = this.config;
|
|
2832
|
-
e.forEach((e) => {
|
|
2833
|
-
delete e._state.value;
|
|
2834
|
-
}), t.forEach((e) => {
|
|
2835
|
-
delete e._state.points, e._state.value = X(e, r), e.source._state.value = (e.source._state.value || 0) + X(e, r), e.target._state.value = (e.target._state.value || 0) + X(e, r);
|
|
2836
|
-
}), t = t.filter((e) => e._state.value);
|
|
2837
|
-
let a = Ya(e, (e) => e._state?.value, i), o = Ln().size([this.config.angleRange[1], 1])(a);
|
|
2838
|
-
o.each((e, t) => {
|
|
2839
|
-
Xa(e, n), e.uid = `${this.uid.substr(0, 4)}-${t}`, e.x0 = Number.isNaN(e.x0) ? 0 : e.x0, e.x1 = Number.isNaN(e.x1) ? 0 : e.x1, e._state = {};
|
|
2840
|
-
});
|
|
2841
|
-
let s = o.descendants();
|
|
2842
|
-
this._rootNode = s.find((e) => e.depth === 0), this._nodes = s.filter((e) => e.depth !== 0), this._links = Za(o, t, n);
|
|
2843
|
-
}
|
|
2844
|
-
_render(e) {
|
|
2845
|
-
super._render(e);
|
|
2846
|
-
let { config: t, bleed: n } = this;
|
|
2847
|
-
this._layoutData();
|
|
2848
|
-
let r = tn(e) ? e : t.duration, i = Math.min(this._width, this._height), a = i / 2 - o([
|
|
2849
|
-
n.top,
|
|
2850
|
-
n.bottom,
|
|
2851
|
-
n.left,
|
|
2852
|
-
n.right
|
|
2853
|
-
]), s = 1 + t.nodeLevels?.length, c = a > t.nodeWidth * s ? t.nodeWidth : Math.max(a / s, 0);
|
|
2854
|
-
this.radiusScale.range([0, Math.max(a, 0)]), this.arcGen.startAngle((e) => e.x0 + t.padAngle / 2 - (e.value ? 0 : Math.PI / 360)).endAngle((e) => e.x1 - t.padAngle / 2 + (e.value ? 0 : Math.PI / 360)).cornerRadius((e) => X(e.data, t.cornerRadius)).innerRadius((e) => Math.max(this.radiusScale(e.y1) - c, 0)).outerRadius((e) => this.radiusScale(e.y1)), this.g.classed(Va, this._forceHighlight), this.background.attr("width", this._width).attr("height", this._height).style("opacity", 0), this.nodeGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.labelGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.linkGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`);
|
|
2855
|
-
let l = this.linkGroup.selectAll(`.${za}`).data(this._links, (e) => String(e.data._id)), u = l.enter().append("path").attr("class", za).call(vo, this.radiusScale);
|
|
2856
|
-
l.merge(u).classed(Ba, (e) => {
|
|
2857
|
-
let n = e.data.id ?? e.data._indexGlobal;
|
|
2858
|
-
return t.highlightedLinkIds?.includes(n);
|
|
2859
|
-
}).call(yo, t, this.radiusScale, r), l.exit().call(bo, r);
|
|
2860
|
-
let d = this.nodeGroup.selectAll(`.${Pa}`).data(this._nodes, (e) => String(e.uid)), f = d.enter().append("path").attr("class", Pa).call(wa);
|
|
2861
|
-
d.merge(f).classed(Fa, (e) => t.highlightedNodeId === e.data._id).call(Ta, t, this.arcGen, r), d.exit().call(Ea, r);
|
|
2862
|
-
let p = i - a, m = this.labelGroup.selectAll(`.${Ia}`).data(this._nodes, (e) => String(e.uid)), h = m.enter().append("g").attr("class", Ia).call(Ga, t, this.radiusScale);
|
|
2863
|
-
m.merge(h).call(Ka, t, p, this.radiusScale, r), m.exit().attr("class", Ra).call(qa, r);
|
|
2864
|
-
}
|
|
2865
|
-
_onNodeMouseOver(e) {
|
|
2866
|
-
let t;
|
|
2867
|
-
if (e.children) {
|
|
2868
|
-
let n = e.leaves();
|
|
2869
|
-
t = this._links.filter((e) => n.find((t) => e.source.data.id === t.data.id || e.target.data.id === t.data.id));
|
|
2870
|
-
} else {
|
|
2871
|
-
let n = e;
|
|
2872
|
-
t = this._links.filter((e) => e.source.data.id === n.data.id || e.target.data.id === n.data.id);
|
|
2873
|
-
}
|
|
2874
|
-
t.length || (e._state.hovered = !0), this._highlightOnHover(t);
|
|
2875
|
-
}
|
|
2876
|
-
_onNodeMouseOut() {
|
|
2877
|
-
this._highlightOnHover();
|
|
2878
|
-
}
|
|
2879
|
-
_onLinkMouseOver(e) {
|
|
2880
|
-
this._highlightOnHover([e]);
|
|
2881
|
-
}
|
|
2882
|
-
_onLinkMouseOut() {
|
|
2883
|
-
this._highlightOnHover();
|
|
2884
|
-
}
|
|
2885
|
-
_highlightOnHover(e) {
|
|
2886
|
-
this._forceHighlight || (e ? e.forEach((e) => {
|
|
2887
|
-
e._state.hovered = !0;
|
|
2888
|
-
let t = e.source.path(this._rootNode), n = e.target.path(this._rootNode);
|
|
2889
|
-
t.forEach((e) => {
|
|
2890
|
-
e.depth && (e._state.hovered = !0);
|
|
2891
|
-
}), n.forEach((e) => {
|
|
2892
|
-
e.depth && (e._state.hovered = !0);
|
|
2893
|
-
});
|
|
2894
|
-
}) : (this._nodes.forEach((e) => {
|
|
2895
|
-
delete e._state.hovered;
|
|
2896
|
-
}), this._links.forEach((e) => {
|
|
2897
|
-
delete e._state.hovered;
|
|
2898
|
-
})), this.nodeGroup.selectAll(`.${Pa}`).classed(Fa, (e) => e._state.hovered), this.linkGroup.selectAll(`.${za}`).classed(Ba, (e) => e._state.hovered), this.g.classed(Va, !!e));
|
|
2899
|
-
}
|
|
2900
|
-
};
|
|
2901
|
-
xo.selectors = Da;
|
|
2902
|
-
var So = xo, Co = 16, wo = .02;
|
|
2903
|
-
function To(e, t, n = {}) {
|
|
2904
|
-
let r = n.colorModeId ?? "light", i = pe[r], a = new So({
|
|
2905
|
-
linkColor: (t) => fe(e.nodes.findIndex((e) => e.id === t.source), r),
|
|
2906
|
-
nodeColor: (e, t) => fe(t, r),
|
|
2907
|
-
nodeLabel: (e) => "label" in e ? e.label : e.key,
|
|
2908
|
-
nodeLabelColor: i.primary,
|
|
2909
|
-
nodeWidth: n.nodeWidth ?? Co,
|
|
2910
|
-
padAngle: n.padAngle ?? wo
|
|
2911
|
-
}), o = {
|
|
2912
|
-
links: e.links,
|
|
2913
|
-
nodes: e.nodes
|
|
2914
|
-
}, s = new Ji(t, { component: a }, o);
|
|
2915
|
-
return {
|
|
2916
|
-
resize: () => {
|
|
2917
|
-
s.render();
|
|
2918
|
-
},
|
|
2919
|
-
get svg() {
|
|
2920
|
-
return s.element;
|
|
2921
|
-
}
|
|
2922
|
-
};
|
|
2923
|
-
}
|
|
2924
|
-
//#endregion
|
|
2925
|
-
export { To as renderChordDiagram };
|