@dpuse/dpuse-tool-d3-visualiser 1.0.118 → 1.0.122

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 (38) hide show
  1. package/README.md +205 -243
  2. package/dist/chordDiagram-Cm91Tmgo.js +1729 -0
  3. package/dist/d3-hierarchy-Dtx4jD78.js +269 -0
  4. package/dist/{linear-CNetDix0.js → d3-scale-BYykLEPO.js} +238 -177
  5. package/dist/{select-SZKizDc7.js → d3-selection-CL8c_tE2.js} +230 -232
  6. package/dist/d3-shape-gf8U18pS.js +1133 -0
  7. package/dist/dpuse-tool-d3-visualiser.es.js +6 -6
  8. package/dist/{erdDiagram-DKsqCN08.js → erdDiagram-DmYSx8Dh.js} +1 -1
  9. package/dist/{networkDiagram-BiCPMNf8.js → networkDiagram-UdFs1ySs.js} +385 -368
  10. package/dist/{sankeyDiagram-DcI-D1uh.js → sankeyDiagram-Dbl1-v5p.js} +31 -31
  11. package/dist/shipped-packages.json +11 -20
  12. package/dist/{src-DAMkWOaT.js → src-YHHReglY.js} +32 -32
  13. package/dist/{tanStackCharts-5HHGfe6p.js → tanStackCharts-DEINbmRi.js} +1041 -1096
  14. package/dist/treeDiagram-t0oFwi1c.js +49 -0
  15. package/dist/types/src/networkDiagram.d.ts +4 -0
  16. package/package.json +25 -23
  17. package/dist/array-CpxKKsZm.js +0 -12
  18. package/dist/array-CpxKKsZm.js.map +0 -1
  19. package/dist/chordDiagram-Dbu2uT_s.js +0 -3588
  20. package/dist/chordDiagram-Dbu2uT_s.js.map +0 -1
  21. package/dist/dpuse-tool-d3-visualiser.es.js.map +0 -1
  22. package/dist/erdDiagram-DKsqCN08.js.map +0 -1
  23. package/dist/hierarchy-DU9LihDu.js +0 -135
  24. package/dist/hierarchy-DU9LihDu.js.map +0 -1
  25. package/dist/linear-CNetDix0.js.map +0 -1
  26. package/dist/link-CAkrxHYd.js +0 -62
  27. package/dist/link-CAkrxHYd.js.map +0 -1
  28. package/dist/networkDiagram-BiCPMNf8.js.map +0 -1
  29. package/dist/palette-D5DTPmuA.js.map +0 -1
  30. package/dist/point-_U9MxSuk.js +0 -85
  31. package/dist/point-_U9MxSuk.js.map +0 -1
  32. package/dist/sankeyDiagram-DcI-D1uh.js.map +0 -1
  33. package/dist/select-SZKizDc7.js.map +0 -1
  34. package/dist/src-DAMkWOaT.js.map +0 -1
  35. package/dist/string-BzfQLSds.js.map +0 -1
  36. package/dist/tanStackCharts-5HHGfe6p.js.map +0 -1
  37. package/dist/treeDiagram-fmrYqvXl.js +0 -126
  38. package/dist/treeDiagram-fmrYqvXl.js.map +0 -1
@@ -0,0 +1,1133 @@
1
+ // node_modules/d3-path/dist/d3-path.mjs
2
+ var e = Math.PI, t = 2 * e, n = 1e-6, r = t - n;
3
+ function i(e) {
4
+ this._ += e[0];
5
+ for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
6
+ }
7
+ function a(e) {
8
+ let t = Math.floor(e);
9
+ if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
10
+ if (t > 15) return i;
11
+ let n = 10 ** t;
12
+ return function(e) {
13
+ this._ += e[0];
14
+ for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
15
+ };
16
+ }
17
+ function o(e, t, n, r) {
18
+ return e === n && t === r;
19
+ }
20
+ function s(e) {
21
+ let t = Math.floor(e);
22
+ if (!(t <= 15)) return o;
23
+ let n = 10 ** t, r = function(e) {
24
+ return Math.round(e * n);
25
+ };
26
+ return function(e, t, n, i) {
27
+ return r(e) === r(n) && r(t) === r(i);
28
+ };
29
+ }
30
+ var c = class {
31
+ constructor(e) {
32
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? i : a(e), this._equal = e == null ? o : s(e);
33
+ }
34
+ moveTo(e, t) {
35
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
36
+ }
37
+ closePath() {
38
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
39
+ }
40
+ lineTo(e, t) {
41
+ this._append`L${this._x1 = +e},${this._y1 = +t}`;
42
+ }
43
+ quadraticCurveTo(e, t, n, r) {
44
+ this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
45
+ }
46
+ bezierCurveTo(e, t, n, r, i, a) {
47
+ this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
48
+ }
49
+ arcTo(t, r, i, a, o) {
50
+ if (t = +t, r = +r, i = +i, a = +a, o = +o, o < 0) throw Error(`negative radius: ${o}`);
51
+ let s = this._x1, c = this._y1, l = i - t, u = a - r, d = s - t, f = c - r, p = d * d + f * f;
52
+ if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`;
53
+ else if (p > n) {
54
+ if (!(Math.abs(f * l - u * d) > n) || !o) this._append`L${this._x1 = t},${this._y1 = r}`;
55
+ else {
56
+ let m = i - s, h = a - c, g = l * l + u * u, _ = m * m + h * h, v = Math.sqrt(g), y = Math.sqrt(p), b = o * Math.tan((e - Math.acos((g + p - _) / (2 * v * y))) / 2), x = b / y, S = b / v;
57
+ Math.abs(x - 1) > n && this._append`L${t + x * d},${r + x * f}`, this._append`A${o},${o},0,0,${+(f * m > d * h)},${this._x1 = t + S * l},${this._y1 = r + S * u}`;
58
+ }
59
+ }
60
+ }
61
+ arc(i, a, o, s, c, l) {
62
+ if (i = +i, a = +a, o = +o, l = !!l, o < 0) throw Error(`negative radius: ${o}`);
63
+ let u = o * Math.cos(s), d = o * Math.sin(s), f = i + u, p = a + d, m = 1 ^ l, h = l ? s - c : c - s;
64
+ if (this._x1 === null ? this._append`M${f},${p}` : (Math.abs(this._x1 - f) > n || Math.abs(this._y1 - p) > n) && this._append`L${f},${p}`, o) {
65
+ if (h < 0 && (h = h % t + t), h > r) this._append`A${o},${o},0,1,${m},${i - u},${a - d}A${o},${o},0,1,${m},${this._x1 = f},${this._y1 = p}`;
66
+ else if (h > n) {
67
+ let t = i + o * Math.cos(c), n = a + o * Math.sin(c);
68
+ if (h >= e && this._equal(f, p, t, n)) {
69
+ h /= 2;
70
+ let t = s + h;
71
+ this._append`A${o},${o},0,${+(h >= e)},${m},${i + o * Math.cos(t)},${a + o * Math.sin(t)}`;
72
+ }
73
+ this._append`A${o},${o},0,${+(h >= e)},${m},${this._x1 = t},${this._y1 = n}`;
74
+ }
75
+ }
76
+ }
77
+ rect(e, t, n, r) {
78
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
79
+ }
80
+ toString() {
81
+ return this._;
82
+ }
83
+ };
84
+ function l() {
85
+ return new c();
86
+ }
87
+ l.prototype = c.prototype;
88
+ // node_modules/d3-shape/dist/d3-shape.mjs
89
+ function u(e) {
90
+ return function() {
91
+ return e;
92
+ };
93
+ }
94
+ var d = Math.abs, f = Math.atan2, p = Math.cos, m = Math.max, h = Math.min, g = Math.sin, _ = Math.sqrt, v = 1e-12, y = Math.PI, b = y / 2, x = 2 * y;
95
+ function S(e) {
96
+ return e > 1 ? 0 : e < -1 ? y : Math.acos(e);
97
+ }
98
+ function C(e) {
99
+ return e >= 1 ? b : e <= -1 ? -b : Math.asin(e);
100
+ }
101
+ function w(e) {
102
+ let t = 3;
103
+ return e.digits = function(n) {
104
+ if (!arguments.length) return t;
105
+ if (n == null) t = null;
106
+ else {
107
+ let e = Math.floor(n);
108
+ if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
109
+ t = e;
110
+ }
111
+ return e;
112
+ }, () => new c(t);
113
+ }
114
+ function T(e) {
115
+ return e.innerRadius;
116
+ }
117
+ function E(e) {
118
+ return e.outerRadius;
119
+ }
120
+ function D(e) {
121
+ return e.startAngle;
122
+ }
123
+ function O(e) {
124
+ return e.endAngle;
125
+ }
126
+ function k(e) {
127
+ return e && e.padAngle;
128
+ }
129
+ function ee(e, t, n, r, i, a, o, s) {
130
+ var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
131
+ if (!(f * f < v)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
132
+ }
133
+ function A(e, t, n, r, i, a, o) {
134
+ var s = e - n, c = t - r, l = (o ? a : -a) / _(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, h = n + u, g = r + d, v = (f + h) / 2, y = (p + g) / 2, b = h - f, x = g - p, S = b * b + x * x, C = i - a, w = f * g - h * p, T = (x < 0 ? -1 : 1) * _(m(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, ee = E - v, A = D - y, j = O - v, M = k - y;
135
+ return ee * ee + A * A > j * j + M * M && (E = O, D = k), {
136
+ cx: E,
137
+ cy: D,
138
+ x01: -u,
139
+ y01: -d,
140
+ x11: E * (i / C - 1),
141
+ y11: D * (i / C - 1)
142
+ };
143
+ }
144
+ function j() {
145
+ var e = T, t = E, n = u(0), r = null, i = D, a = O, o = k, s = null, c = w(l);
146
+ function l() {
147
+ var l, u, m = +e.apply(this, arguments), w = +t.apply(this, arguments), T = i.apply(this, arguments) - b, E = a.apply(this, arguments) - b, D = d(E - T), O = E > T;
148
+ if (s ||= l = c(), w < m && (u = w, w = m, m = u), !(w > v)) s.moveTo(0, 0);
149
+ else if (D > x - v) s.moveTo(w * p(T), w * g(T)), s.arc(0, 0, w, T, E, !O), m > v && (s.moveTo(m * p(E), m * g(E)), s.arc(0, 0, m, E, T, O));
150
+ else {
151
+ var k = T, j = E, M = T, N = E, P = D, F = D, I = o.apply(this, arguments) / 2, L = I > v && (r ? +r.apply(this, arguments) : _(m * m + w * w)), R = h(d(w - m) / 2, +n.apply(this, arguments)), z = R, B = R, V, H;
152
+ if (L > v) {
153
+ var U = C(L / m * g(I)), W = C(L / w * g(I));
154
+ (P -= U * 2) > v ? (U *= O ? 1 : -1, M += U, N -= U) : (P = 0, M = N = (T + E) / 2), (F -= W * 2) > v ? (W *= O ? 1 : -1, k += W, j -= W) : (F = 0, k = j = (T + E) / 2);
155
+ }
156
+ var G = w * p(k), K = w * g(k), q = m * p(N), J = m * g(N);
157
+ if (R > v) {
158
+ var te = w * p(j), ne = w * g(j), re = m * p(M), ie = m * g(M), Y;
159
+ if (D < y) {
160
+ if (Y = ee(G, K, re, ie, te, ne, q, J)) {
161
+ var ae = G - Y[0], X = K - Y[1], Z = te - Y[0], Q = ne - Y[1], oe = 1 / g(S((ae * Z + X * Q) / (_(ae * ae + X * X) * _(Z * Z + Q * Q))) / 2), se = _(Y[0] * Y[0] + Y[1] * Y[1]);
162
+ z = h(R, (m - se) / (oe - 1)), B = h(R, (w - se) / (oe + 1));
163
+ } else z = B = 0;
164
+ }
165
+ }
166
+ F > v ? B > v ? (V = A(re, ie, G, K, w, B, O), H = A(te, ne, q, J, w, B, O), s.moveTo(V.cx + V.x01, V.cy + V.y01), B < R ? s.arc(V.cx, V.cy, B, f(V.y01, V.x01), f(H.y01, H.x01), !O) : (s.arc(V.cx, V.cy, B, f(V.y01, V.x01), f(V.y11, V.x11), !O), s.arc(0, 0, w, f(V.cy + V.y11, V.cx + V.x11), f(H.cy + H.y11, H.cx + H.x11), !O), s.arc(H.cx, H.cy, B, f(H.y11, H.x11), f(H.y01, H.x01), !O))) : (s.moveTo(G, K), s.arc(0, 0, w, k, j, !O)) : s.moveTo(G, K), !(m > v) || !(P > v) ? s.lineTo(q, J) : z > v ? (V = A(q, J, te, ne, m, -z, O), H = A(G, K, re, ie, m, -z, O), s.lineTo(V.cx + V.x01, V.cy + V.y01), z < R ? s.arc(V.cx, V.cy, z, f(V.y01, V.x01), f(H.y01, H.x01), !O) : (s.arc(V.cx, V.cy, z, f(V.y01, V.x01), f(V.y11, V.x11), !O), s.arc(0, 0, m, f(V.cy + V.y11, V.cx + V.x11), f(H.cy + H.y11, H.cx + H.x11), O), s.arc(H.cx, H.cy, z, f(H.y11, H.x11), f(H.y01, H.x01), !O))) : s.arc(0, 0, m, N, M, O);
167
+ }
168
+ if (s.closePath(), l) return s = null, l + "" || null;
169
+ }
170
+ return l.centroid = function() {
171
+ var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, r = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - y / 2;
172
+ return [p(r) * n, g(r) * n];
173
+ }, l.innerRadius = function(t) {
174
+ return arguments.length ? (e = typeof t == "function" ? t : u(+t), l) : e;
175
+ }, l.outerRadius = function(e) {
176
+ return arguments.length ? (t = typeof e == "function" ? e : u(+e), l) : t;
177
+ }, l.cornerRadius = function(e) {
178
+ return arguments.length ? (n = typeof e == "function" ? e : u(+e), l) : n;
179
+ }, l.padRadius = function(e) {
180
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : u(+e), l) : r;
181
+ }, l.startAngle = function(e) {
182
+ return arguments.length ? (i = typeof e == "function" ? e : u(+e), l) : i;
183
+ }, l.endAngle = function(e) {
184
+ return arguments.length ? (a = typeof e == "function" ? e : u(+e), l) : a;
185
+ }, l.padAngle = function(e) {
186
+ return arguments.length ? (o = typeof e == "function" ? e : u(+e), l) : o;
187
+ }, l.context = function(e) {
188
+ return arguments.length ? (s = e ?? null, l) : s;
189
+ }, l;
190
+ }
191
+ var M = Array.prototype.slice;
192
+ function N(e) {
193
+ return typeof e == "object" && "length" in e ? e : Array.from(e);
194
+ }
195
+ function P(e) {
196
+ this._context = e;
197
+ }
198
+ P.prototype = {
199
+ areaStart: function() {
200
+ this._line = 0;
201
+ },
202
+ areaEnd: function() {
203
+ this._line = NaN;
204
+ },
205
+ lineStart: function() {
206
+ this._point = 0;
207
+ },
208
+ lineEnd: function() {
209
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
210
+ },
211
+ point: function(e, t) {
212
+ switch (e = +e, t = +t, this._point) {
213
+ case 0:
214
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
215
+ break;
216
+ case 1: this._point = 2;
217
+ default: this._context.lineTo(e, t);
218
+ }
219
+ }
220
+ };
221
+ function F(e) {
222
+ return new P(e);
223
+ }
224
+ function I(e) {
225
+ return e[0];
226
+ }
227
+ function L(e) {
228
+ return e[1];
229
+ }
230
+ function R(e, t) {
231
+ var n = u(!0), r = null, i = F, a = null, o = w(s);
232
+ e = typeof e == "function" ? e : e === void 0 ? I : u(e), t = typeof t == "function" ? t : t === void 0 ? L : u(t);
233
+ function s(s) {
234
+ var c, l = (s = N(s)).length, u, d = !1, f;
235
+ 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));
236
+ if (f) return a = null, f + "" || null;
237
+ }
238
+ return s.x = function(t) {
239
+ return arguments.length ? (e = typeof t == "function" ? t : u(+t), s) : e;
240
+ }, s.y = function(e) {
241
+ return arguments.length ? (t = typeof e == "function" ? e : u(+e), s) : t;
242
+ }, s.defined = function(e) {
243
+ return arguments.length ? (n = typeof e == "function" ? e : u(!!e), s) : n;
244
+ }, s.curve = function(e) {
245
+ return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
246
+ }, s.context = function(e) {
247
+ return arguments.length ? (e == null ? r = a = null : a = i(r = e), s) : r;
248
+ }, s;
249
+ }
250
+ function z(e, t, n) {
251
+ var r = null, i = u(!0), a = null, o = F, s = null, c = w(l);
252
+ e = typeof e == "function" ? e : e === void 0 ? I : u(+e), t = typeof t == "function" ? t : u(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? L : u(+n);
253
+ function l(l) {
254
+ var u, d, f, p = (l = N(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
255
+ for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
256
+ if (!(u < p && i(m = l[u], u, l)) === h) {
257
+ if (h = !h) d = u, s.areaStart(), s.lineStart();
258
+ else {
259
+ for (s.lineEnd(), s.lineStart(), f = u - 1; f >= d; --f) s.point(_[f], v[f]);
260
+ s.lineEnd(), s.areaEnd();
261
+ }
262
+ }
263
+ h && (_[u] = +e(m, u, l), v[u] = +t(m, u, l), s.point(r ? +r(m, u, l) : _[u], n ? +n(m, u, l) : v[u]));
264
+ }
265
+ if (g) return s = null, g + "" || null;
266
+ }
267
+ function d() {
268
+ return R().defined(i).curve(o).context(a);
269
+ }
270
+ return l.x = function(t) {
271
+ return arguments.length ? (e = typeof t == "function" ? t : u(+t), r = null, l) : e;
272
+ }, l.x0 = function(t) {
273
+ return arguments.length ? (e = typeof t == "function" ? t : u(+t), l) : e;
274
+ }, l.x1 = function(e) {
275
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : u(+e), l) : r;
276
+ }, l.y = function(e) {
277
+ return arguments.length ? (t = typeof e == "function" ? e : u(+e), n = null, l) : t;
278
+ }, l.y0 = function(e) {
279
+ return arguments.length ? (t = typeof e == "function" ? e : u(+e), l) : t;
280
+ }, l.y1 = function(e) {
281
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : u(+e), l) : n;
282
+ }, l.lineX0 = l.lineY0 = function() {
283
+ return d().x(e).y(t);
284
+ }, l.lineY1 = function() {
285
+ return d().x(e).y(n);
286
+ }, l.lineX1 = function() {
287
+ return d().x(r).y(t);
288
+ }, l.defined = function(e) {
289
+ return arguments.length ? (i = typeof e == "function" ? e : u(!!e), l) : i;
290
+ }, l.curve = function(e) {
291
+ return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
292
+ }, l.context = function(e) {
293
+ return arguments.length ? (e == null ? a = s = null : s = o(a = e), l) : a;
294
+ }, l;
295
+ }
296
+ function B(e, t) {
297
+ return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
298
+ }
299
+ function V(e) {
300
+ return e;
301
+ }
302
+ function H() {
303
+ var e = V, t = B, n = null, r = u(0), i = u(x), a = u(0);
304
+ function o(o) {
305
+ var s, c = (o = N(o)).length, l, u, d = 0, f = Array(c), p = Array(c), m = +r.apply(this, arguments), h = Math.min(x, Math.max(-x, i.apply(this, arguments) - m)), g, _ = Math.min(Math.abs(h) / c, a.apply(this, arguments)), v = _ * (h < 0 ? -1 : 1), y;
306
+ for (s = 0; s < c; ++s) (y = p[f[s] = s] = +e(o[s], s, o)) > 0 && (d += y);
307
+ for (t == null ? n != null && f.sort(function(e, t) {
308
+ return n(o[e], o[t]);
309
+ }) : f.sort(function(e, n) {
310
+ return t(p[e], p[n]);
311
+ }), s = 0, u = d ? (h - c * v) / d : 0; s < c; ++s, m = g) l = f[s], y = p[l], g = m + (y > 0 ? y * u : 0) + v, p[l] = {
312
+ data: o[l],
313
+ index: s,
314
+ value: y,
315
+ startAngle: m,
316
+ endAngle: g,
317
+ padAngle: _
318
+ };
319
+ return p;
320
+ }
321
+ return o.value = function(t) {
322
+ return arguments.length ? (e = typeof t == "function" ? t : u(+t), o) : e;
323
+ }, o.sortValues = function(e) {
324
+ return arguments.length ? (t = e, n = null, o) : t;
325
+ }, o.sort = function(e) {
326
+ return arguments.length ? (n = e, t = null, o) : n;
327
+ }, o.startAngle = function(e) {
328
+ return arguments.length ? (r = typeof e == "function" ? e : u(+e), o) : r;
329
+ }, o.endAngle = function(e) {
330
+ return arguments.length ? (i = typeof e == "function" ? e : u(+e), o) : i;
331
+ }, o.padAngle = function(e) {
332
+ return arguments.length ? (a = typeof e == "function" ? e : u(+e), o) : a;
333
+ }, o;
334
+ }
335
+ var U = G(F);
336
+ function W(e) {
337
+ this._curve = e;
338
+ }
339
+ W.prototype = {
340
+ areaStart: function() {
341
+ this._curve.areaStart();
342
+ },
343
+ areaEnd: function() {
344
+ this._curve.areaEnd();
345
+ },
346
+ lineStart: function() {
347
+ this._curve.lineStart();
348
+ },
349
+ lineEnd: function() {
350
+ this._curve.lineEnd();
351
+ },
352
+ point: function(e, t) {
353
+ this._curve.point(t * Math.sin(e), t * -Math.cos(e));
354
+ }
355
+ };
356
+ function G(e) {
357
+ function t(t) {
358
+ return new W(e(t));
359
+ }
360
+ return t._curve = e, t;
361
+ }
362
+ function K(e) {
363
+ var t = e.curve;
364
+ return e.angle = e.x, delete e.x, e.radius = e.y, delete e.y, e.curve = function(e) {
365
+ return arguments.length ? t(G(e)) : t()._curve;
366
+ }, e;
367
+ }
368
+ function q() {
369
+ var e = z().curve(U), t = e.curve, n = e.lineX0, r = e.lineX1, i = e.lineY0, a = e.lineY1;
370
+ 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() {
371
+ return K(n());
372
+ }, delete e.lineX0, e.lineEndAngle = function() {
373
+ return K(r());
374
+ }, delete e.lineX1, e.lineInnerRadius = function() {
375
+ return K(i());
376
+ }, delete e.lineY0, e.lineOuterRadius = function() {
377
+ return K(a());
378
+ }, delete e.lineY1, e.curve = function(e) {
379
+ return arguments.length ? t(G(e)) : t()._curve;
380
+ }, e;
381
+ }
382
+ var J = class {
383
+ constructor(e, t) {
384
+ this._context = e, this._x = t;
385
+ }
386
+ areaStart() {
387
+ this._line = 0;
388
+ }
389
+ areaEnd() {
390
+ this._line = NaN;
391
+ }
392
+ lineStart() {
393
+ this._point = 0;
394
+ }
395
+ lineEnd() {
396
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
397
+ }
398
+ point(e, t) {
399
+ switch (e = +e, t = +t, this._point) {
400
+ case 0:
401
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
402
+ break;
403
+ case 1: this._point = 2;
404
+ default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
405
+ }
406
+ this._x0 = e, this._y0 = t;
407
+ }
408
+ };
409
+ function te(e) {
410
+ return new J(e, !0);
411
+ }
412
+ function ne(e) {
413
+ return e.source;
414
+ }
415
+ function re(e) {
416
+ return e.target;
417
+ }
418
+ function ie(e) {
419
+ let t = ne, n = re, r = I, i = L, a = null, o = null, s = w(c);
420
+ function c() {
421
+ let c, l = M.call(arguments), u = t.apply(this, l), d = n.apply(this, l);
422
+ if (a ?? (o = e(c = s())), o.lineStart(), l[0] = u, o.point(+r.apply(this, l), +i.apply(this, l)), l[0] = d, o.point(+r.apply(this, l), +i.apply(this, l)), o.lineEnd(), c) return o = null, c + "" || null;
423
+ }
424
+ return c.source = function(e) {
425
+ return arguments.length ? (t = e, c) : t;
426
+ }, c.target = function(e) {
427
+ return arguments.length ? (n = e, c) : n;
428
+ }, c.x = function(e) {
429
+ return arguments.length ? (r = typeof e == "function" ? e : u(+e), c) : r;
430
+ }, c.y = function(e) {
431
+ return arguments.length ? (i = typeof e == "function" ? e : u(+e), c) : i;
432
+ }, c.context = function(t) {
433
+ return arguments.length ? (t == null ? a = o = null : o = e(a = t), c) : a;
434
+ }, c;
435
+ }
436
+ function Y() {
437
+ return ie(te);
438
+ }
439
+ _(3), _(1 / 3) * 2;
440
+ var ae = g(y / 10) / g(7 * y / 10);
441
+ g(x / 10) * ae, -p(x / 10) * ae, _(3), _(3), _(3) / 2, (1 / _(12) / 2 + 1) * 3;
442
+ function X() {}
443
+ function Z(e, t, n) {
444
+ 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);
445
+ }
446
+ function Q(e) {
447
+ this._context = e;
448
+ }
449
+ Q.prototype = {
450
+ areaStart: function() {
451
+ this._line = 0;
452
+ },
453
+ areaEnd: function() {
454
+ this._line = NaN;
455
+ },
456
+ lineStart: function() {
457
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
458
+ },
459
+ lineEnd: function() {
460
+ switch (this._point) {
461
+ case 3: Z(this, this._x1, this._y1);
462
+ case 2: this._context.lineTo(this._x1, this._y1);
463
+ }
464
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
465
+ },
466
+ point: function(e, t) {
467
+ switch (e = +e, t = +t, this._point) {
468
+ case 0:
469
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
470
+ break;
471
+ case 1:
472
+ this._point = 2;
473
+ break;
474
+ case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
475
+ default: Z(this, e, t);
476
+ }
477
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
478
+ }
479
+ };
480
+ function oe(e) {
481
+ return new Q(e);
482
+ }
483
+ function se(e) {
484
+ this._context = e;
485
+ }
486
+ se.prototype = {
487
+ areaStart: X,
488
+ areaEnd: X,
489
+ lineStart: function() {
490
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
491
+ },
492
+ lineEnd: function() {
493
+ switch (this._point) {
494
+ case 1:
495
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
496
+ break;
497
+ case 2:
498
+ 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();
499
+ break;
500
+ case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
501
+ }
502
+ },
503
+ point: function(e, t) {
504
+ switch (e = +e, t = +t, this._point) {
505
+ case 0:
506
+ this._point = 1, this._x2 = e, this._y2 = t;
507
+ break;
508
+ case 1:
509
+ this._point = 2, this._x3 = e, this._y3 = t;
510
+ break;
511
+ case 2:
512
+ 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);
513
+ break;
514
+ default: Z(this, e, t);
515
+ }
516
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
517
+ }
518
+ };
519
+ function ce(e) {
520
+ return new se(e);
521
+ }
522
+ function le(e) {
523
+ this._context = e;
524
+ }
525
+ le.prototype = {
526
+ areaStart: function() {
527
+ this._line = 0;
528
+ },
529
+ areaEnd: function() {
530
+ this._line = NaN;
531
+ },
532
+ lineStart: function() {
533
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
534
+ },
535
+ lineEnd: function() {
536
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
537
+ },
538
+ point: function(e, t) {
539
+ switch (e = +e, t = +t, this._point) {
540
+ case 0:
541
+ this._point = 1;
542
+ break;
543
+ case 1:
544
+ this._point = 2;
545
+ break;
546
+ case 2:
547
+ this._point = 3;
548
+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
549
+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
550
+ break;
551
+ case 3: this._point = 4;
552
+ default: Z(this, e, t);
553
+ }
554
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
555
+ }
556
+ };
557
+ function ue(e) {
558
+ return new le(e);
559
+ }
560
+ function de(e, t) {
561
+ this._basis = new Q(e), this._beta = t;
562
+ }
563
+ de.prototype = {
564
+ lineStart: function() {
565
+ this._x = [], this._y = [], this._basis.lineStart();
566
+ },
567
+ lineEnd: function() {
568
+ var e = this._x, t = this._y, n = e.length - 1;
569
+ 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));
570
+ this._x = this._y = null, this._basis.lineEnd();
571
+ },
572
+ point: function(e, t) {
573
+ this._x.push(+e), this._y.push(+t);
574
+ }
575
+ };
576
+ var fe = (function e(t) {
577
+ function n(e) {
578
+ return t === 1 ? new Q(e) : new de(e, t);
579
+ }
580
+ return n.beta = function(t) {
581
+ return e(+t);
582
+ }, n;
583
+ })(.85);
584
+ function pe(e, t, n) {
585
+ 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);
586
+ }
587
+ function me(e, t) {
588
+ this._context = e, this._k = (1 - t) / 6;
589
+ }
590
+ me.prototype = {
591
+ areaStart: function() {
592
+ this._line = 0;
593
+ },
594
+ areaEnd: function() {
595
+ this._line = NaN;
596
+ },
597
+ lineStart: function() {
598
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
599
+ },
600
+ lineEnd: function() {
601
+ switch (this._point) {
602
+ case 2:
603
+ this._context.lineTo(this._x2, this._y2);
604
+ break;
605
+ case 3: pe(this, this._x1, this._y1);
606
+ }
607
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
608
+ },
609
+ point: function(e, t) {
610
+ switch (e = +e, t = +t, this._point) {
611
+ case 0:
612
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
613
+ break;
614
+ case 1:
615
+ this._point = 2, this._x1 = e, this._y1 = t;
616
+ break;
617
+ case 2: this._point = 3;
618
+ default: pe(this, e, t);
619
+ }
620
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
621
+ }
622
+ };
623
+ var he = (function e(t) {
624
+ function n(e) {
625
+ return new me(e, t);
626
+ }
627
+ return n.tension = function(t) {
628
+ return e(+t);
629
+ }, n;
630
+ })(0);
631
+ function ge(e, t) {
632
+ this._context = e, this._k = (1 - t) / 6;
633
+ }
634
+ ge.prototype = {
635
+ areaStart: X,
636
+ areaEnd: X,
637
+ lineStart: function() {
638
+ 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;
639
+ },
640
+ lineEnd: function() {
641
+ switch (this._point) {
642
+ case 1:
643
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
644
+ break;
645
+ case 2:
646
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
647
+ break;
648
+ case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
649
+ }
650
+ },
651
+ point: function(e, t) {
652
+ switch (e = +e, t = +t, this._point) {
653
+ case 0:
654
+ this._point = 1, this._x3 = e, this._y3 = t;
655
+ break;
656
+ case 1:
657
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
658
+ break;
659
+ case 2:
660
+ this._point = 3, this._x5 = e, this._y5 = t;
661
+ break;
662
+ default: pe(this, e, t);
663
+ }
664
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
665
+ }
666
+ };
667
+ var _e = (function e(t) {
668
+ function n(e) {
669
+ return new ge(e, t);
670
+ }
671
+ return n.tension = function(t) {
672
+ return e(+t);
673
+ }, n;
674
+ })(0);
675
+ function ve(e, t) {
676
+ this._context = e, this._k = (1 - t) / 6;
677
+ }
678
+ ve.prototype = {
679
+ areaStart: function() {
680
+ this._line = 0;
681
+ },
682
+ areaEnd: function() {
683
+ this._line = NaN;
684
+ },
685
+ lineStart: function() {
686
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
687
+ },
688
+ lineEnd: function() {
689
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
690
+ },
691
+ point: function(e, t) {
692
+ switch (e = +e, t = +t, this._point) {
693
+ case 0:
694
+ this._point = 1;
695
+ break;
696
+ case 1:
697
+ this._point = 2;
698
+ break;
699
+ case 2:
700
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
701
+ break;
702
+ case 3: this._point = 4;
703
+ default: pe(this, e, t);
704
+ }
705
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
706
+ }
707
+ };
708
+ var ye = (function e(t) {
709
+ function n(e) {
710
+ return new ve(e, t);
711
+ }
712
+ return n.tension = function(t) {
713
+ return e(+t);
714
+ }, n;
715
+ })(0);
716
+ function be(e, t, n) {
717
+ var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
718
+ if (e._l01_a > v) {
719
+ 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);
720
+ 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;
721
+ }
722
+ if (e._l23_a > v) {
723
+ 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);
724
+ 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;
725
+ }
726
+ e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
727
+ }
728
+ function xe(e, t) {
729
+ this._context = e, this._alpha = t;
730
+ }
731
+ xe.prototype = {
732
+ areaStart: function() {
733
+ this._line = 0;
734
+ },
735
+ areaEnd: function() {
736
+ this._line = NaN;
737
+ },
738
+ lineStart: function() {
739
+ 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;
740
+ },
741
+ lineEnd: function() {
742
+ switch (this._point) {
743
+ case 2:
744
+ this._context.lineTo(this._x2, this._y2);
745
+ break;
746
+ case 3: this.point(this._x2, this._y2);
747
+ }
748
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
749
+ },
750
+ point: function(e, t) {
751
+ if (e = +e, t = +t, this._point) {
752
+ var n = this._x2 - e, r = this._y2 - t;
753
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
754
+ }
755
+ switch (this._point) {
756
+ case 0:
757
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
758
+ break;
759
+ case 1:
760
+ this._point = 2;
761
+ break;
762
+ case 2: this._point = 3;
763
+ default: be(this, e, t);
764
+ }
765
+ 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;
766
+ }
767
+ };
768
+ var Se = (function e(t) {
769
+ function n(e) {
770
+ return t ? new xe(e, t) : new me(e, 0);
771
+ }
772
+ return n.alpha = function(t) {
773
+ return e(+t);
774
+ }, n;
775
+ })(.5);
776
+ function Ce(e, t) {
777
+ this._context = e, this._alpha = t;
778
+ }
779
+ Ce.prototype = {
780
+ areaStart: X,
781
+ areaEnd: X,
782
+ lineStart: function() {
783
+ 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;
784
+ },
785
+ lineEnd: function() {
786
+ switch (this._point) {
787
+ case 1:
788
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
789
+ break;
790
+ case 2:
791
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
792
+ break;
793
+ case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
794
+ }
795
+ },
796
+ point: function(e, t) {
797
+ if (e = +e, t = +t, this._point) {
798
+ var n = this._x2 - e, r = this._y2 - t;
799
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
800
+ }
801
+ switch (this._point) {
802
+ case 0:
803
+ this._point = 1, this._x3 = e, this._y3 = t;
804
+ break;
805
+ case 1:
806
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
807
+ break;
808
+ case 2:
809
+ this._point = 3, this._x5 = e, this._y5 = t;
810
+ break;
811
+ default: be(this, e, t);
812
+ }
813
+ 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;
814
+ }
815
+ };
816
+ var we = (function e(t) {
817
+ function n(e) {
818
+ return t ? new Ce(e, t) : new ge(e, 0);
819
+ }
820
+ return n.alpha = function(t) {
821
+ return e(+t);
822
+ }, n;
823
+ })(.5);
824
+ function Te(e, t) {
825
+ this._context = e, this._alpha = t;
826
+ }
827
+ Te.prototype = {
828
+ areaStart: function() {
829
+ this._line = 0;
830
+ },
831
+ areaEnd: function() {
832
+ this._line = NaN;
833
+ },
834
+ lineStart: function() {
835
+ 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;
836
+ },
837
+ lineEnd: function() {
838
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
839
+ },
840
+ point: function(e, t) {
841
+ if (e = +e, t = +t, this._point) {
842
+ var n = this._x2 - e, r = this._y2 - t;
843
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
844
+ }
845
+ switch (this._point) {
846
+ case 0:
847
+ this._point = 1;
848
+ break;
849
+ case 1:
850
+ this._point = 2;
851
+ break;
852
+ case 2:
853
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
854
+ break;
855
+ case 3: this._point = 4;
856
+ default: be(this, e, t);
857
+ }
858
+ 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;
859
+ }
860
+ };
861
+ var Ee = (function e(t) {
862
+ function n(e) {
863
+ return t ? new Te(e, t) : new ve(e, 0);
864
+ }
865
+ return n.alpha = function(t) {
866
+ return e(+t);
867
+ }, n;
868
+ })(.5);
869
+ function De(e) {
870
+ this._context = e;
871
+ }
872
+ De.prototype = {
873
+ areaStart: X,
874
+ areaEnd: X,
875
+ lineStart: function() {
876
+ this._point = 0;
877
+ },
878
+ lineEnd: function() {
879
+ this._point && this._context.closePath();
880
+ },
881
+ point: function(e, t) {
882
+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
883
+ }
884
+ };
885
+ function Oe(e) {
886
+ return new De(e);
887
+ }
888
+ function ke(e) {
889
+ return e < 0 ? -1 : 1;
890
+ }
891
+ function Ae(e, t, n) {
892
+ 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);
893
+ return (ke(a) + ke(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
894
+ }
895
+ function je(e, t) {
896
+ var n = e._x1 - e._x0;
897
+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
898
+ }
899
+ function Me(e, t, n) {
900
+ var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
901
+ e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
902
+ }
903
+ function Ne(e) {
904
+ this._context = e;
905
+ }
906
+ Ne.prototype = {
907
+ areaStart: function() {
908
+ this._line = 0;
909
+ },
910
+ areaEnd: function() {
911
+ this._line = NaN;
912
+ },
913
+ lineStart: function() {
914
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
915
+ },
916
+ lineEnd: function() {
917
+ switch (this._point) {
918
+ case 2:
919
+ this._context.lineTo(this._x1, this._y1);
920
+ break;
921
+ case 3: Me(this, this._t0, je(this, this._t0));
922
+ }
923
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
924
+ },
925
+ point: function(e, t) {
926
+ var n = NaN;
927
+ if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {
928
+ switch (this._point) {
929
+ case 0:
930
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
931
+ break;
932
+ case 1:
933
+ this._point = 2;
934
+ break;
935
+ case 2:
936
+ this._point = 3, Me(this, je(this, n = Ae(this, e, t)), n);
937
+ break;
938
+ default: Me(this, this._t0, n = Ae(this, e, t));
939
+ }
940
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
941
+ }
942
+ }
943
+ };
944
+ function Pe(e) {
945
+ this._context = new Fe(e);
946
+ }
947
+ (Pe.prototype = Object.create(Ne.prototype)).point = function(e, t) {
948
+ Ne.prototype.point.call(this, t, e);
949
+ };
950
+ function Fe(e) {
951
+ this._context = e;
952
+ }
953
+ Fe.prototype = {
954
+ moveTo: function(e, t) {
955
+ this._context.moveTo(t, e);
956
+ },
957
+ closePath: function() {
958
+ this._context.closePath();
959
+ },
960
+ lineTo: function(e, t) {
961
+ this._context.lineTo(t, e);
962
+ },
963
+ bezierCurveTo: function(e, t, n, r, i, a) {
964
+ this._context.bezierCurveTo(t, e, r, n, a, i);
965
+ }
966
+ };
967
+ function Ie(e) {
968
+ return new Ne(e);
969
+ }
970
+ function Le(e) {
971
+ return new Pe(e);
972
+ }
973
+ function Re(e) {
974
+ this._context = e;
975
+ }
976
+ Re.prototype = {
977
+ areaStart: function() {
978
+ this._line = 0;
979
+ },
980
+ areaEnd: function() {
981
+ this._line = NaN;
982
+ },
983
+ lineStart: function() {
984
+ this._x = [], this._y = [];
985
+ },
986
+ lineEnd: function() {
987
+ var e = this._x, t = this._y, n = e.length;
988
+ if (n) {
989
+ 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]);
990
+ else for (var r = ze(e), i = ze(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]);
991
+ }
992
+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
993
+ },
994
+ point: function(e, t) {
995
+ this._x.push(+e), this._y.push(+t);
996
+ }
997
+ };
998
+ function ze(e) {
999
+ var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
1000
+ 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];
1001
+ 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];
1002
+ 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];
1003
+ 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];
1004
+ return [i, a];
1005
+ }
1006
+ function Be(e) {
1007
+ return new Re(e);
1008
+ }
1009
+ function Ve(e, t) {
1010
+ this._context = e, this._t = t;
1011
+ }
1012
+ Ve.prototype = {
1013
+ areaStart: function() {
1014
+ this._line = 0;
1015
+ },
1016
+ areaEnd: function() {
1017
+ this._line = NaN;
1018
+ },
1019
+ lineStart: function() {
1020
+ this._x = this._y = NaN, this._point = 0;
1021
+ },
1022
+ lineEnd: function() {
1023
+ 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);
1024
+ },
1025
+ point: function(e, t) {
1026
+ switch (e = +e, t = +t, this._point) {
1027
+ case 0:
1028
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
1029
+ break;
1030
+ case 1: this._point = 2;
1031
+ default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
1032
+ else {
1033
+ var n = this._x * (1 - this._t) + e * this._t;
1034
+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);
1035
+ }
1036
+ }
1037
+ this._x = e, this._y = t;
1038
+ }
1039
+ };
1040
+ function He(e) {
1041
+ return new Ve(e, .5);
1042
+ }
1043
+ function Ue(e) {
1044
+ return new Ve(e, 0);
1045
+ }
1046
+ function We(e) {
1047
+ return new Ve(e, 1);
1048
+ }
1049
+ function $(e, t) {
1050
+ if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
1051
+ }
1052
+ function Ge(e) {
1053
+ for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
1054
+ return n;
1055
+ }
1056
+ function Ke(e, t) {
1057
+ return e[t];
1058
+ }
1059
+ function qe(e) {
1060
+ let t = [];
1061
+ return t.key = e, t;
1062
+ }
1063
+ function Je() {
1064
+ var e = u([]), t = Ge, n = $, r = Ke;
1065
+ function i(i) {
1066
+ var a = Array.from(e.apply(this, arguments), qe), o, s = a.length, c = -1, l;
1067
+ for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
1068
+ for (o = 0, l = N(t(a)); o < s; ++o) a[l[o]].index = o;
1069
+ return n(a, l), a;
1070
+ }
1071
+ return i.keys = function(t) {
1072
+ return arguments.length ? (e = typeof t == "function" ? t : u(Array.from(t)), i) : e;
1073
+ }, i.value = function(e) {
1074
+ return arguments.length ? (r = typeof e == "function" ? e : u(+e), i) : r;
1075
+ }, i.order = function(e) {
1076
+ return arguments.length ? (t = e == null ? Ge : typeof e == "function" ? e : u(Array.from(e)), i) : t;
1077
+ }, i.offset = function(e) {
1078
+ return arguments.length ? (n = e ?? $, i) : n;
1079
+ }, i;
1080
+ }
1081
+ function Ye(e, t) {
1082
+ if ((r = e.length) > 0) {
1083
+ for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
1084
+ for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
1085
+ if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
1086
+ }
1087
+ $(e, t);
1088
+ }
1089
+ }
1090
+ function Xe(e, t) {
1091
+ if ((i = e.length) > 0) {
1092
+ for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
1093
+ for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
1094
+ r[n][1] += r[n][0] = -s / 2;
1095
+ }
1096
+ $(e, t);
1097
+ }
1098
+ }
1099
+ function Ze(e, t) {
1100
+ if ((o = e.length) > 0 && (a = (i = e[t[0]]).length) > 0) {
1101
+ for (var n = 0, r = 1, i, a, o; r < a; ++r) {
1102
+ for (var s = 0, c = 0, l = 0; s < o; ++s) {
1103
+ for (var u = e[t[s]], d = u[r][1] || 0, f = (d - (u[r - 1][1] || 0)) / 2, p = 0; p < s; ++p) {
1104
+ var m = e[t[p]], h = m[r][1] || 0, g = m[r - 1][1] || 0;
1105
+ f += h - g;
1106
+ }
1107
+ c += d, l += f * d;
1108
+ }
1109
+ i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
1110
+ }
1111
+ i[r - 1][1] += i[r - 1][0] = n, $(e, t);
1112
+ }
1113
+ }
1114
+ function Qe(e) {
1115
+ var t = e.map($e);
1116
+ return Ge(e).sort(function(e, n) {
1117
+ return t[e] - t[n];
1118
+ });
1119
+ }
1120
+ function $e(e) {
1121
+ for (var t = -1, n = 0, r = e.length, i, a = -Infinity; ++t < r;) (i = +e[t][1]) > a && (a = i, n = t);
1122
+ return n;
1123
+ }
1124
+ function et(e) {
1125
+ for (var t = 0, n = -1, r = e.length, i; ++n < r;) (i = +e[n][1]) && (t += i);
1126
+ return t;
1127
+ }
1128
+ function tt(e) {
1129
+ var t = e.length, n, r, i = e.map(et), a = Qe(e), o = 0, s = 0, c = [], l = [];
1130
+ for (n = 0; n < t; ++n) r = a[n], o < s ? (o += i[r], c.push(r)) : (s += i[r], l.push(r));
1131
+ return l.reverse().concat(c);
1132
+ }
1133
+ export { Xe as C, Ue as D, We as E, Ze as O, H as S, He as T, Y as _, ue as a, Be as b, _e as c, we as d, Ee as f, Oe as g, tt as h, ce as i, l as k, ye as l, Ye as m, q as n, fe as o, F as p, oe as r, he as s, j as t, Se as u, Ie as v, Je as w, $ as x, Le as y };