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