@oneclick.dev/cms-core-modules 0.0.110 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Acquisition-Dt2rREU8.js → Acquisition-DgzDQH51.js} +1 -1
- package/dist/{Acquisition-DNCy8nQz.mjs → Acquisition-FV3QpaUX.mjs} +2 -2
- package/dist/{Audience-Bs7b0TNm.js → Audience-BSgNvcVb.js} +1 -1
- package/dist/{Audience-CUeMVYRy.mjs → Audience-ka0b7YPE.mjs} +2 -2
- package/dist/{ContentEditor-D9-1SJ5F.mjs → ContentEditor-pZPfo0qN.mjs} +4384 -4282
- package/dist/{ContentEditor-BprPiHMJ.js → ContentEditor-tYkh4vRV.js} +42 -42
- package/dist/{Create-89z41K73.js → Create--MOBOTA-.js} +1 -1
- package/dist/{Create-BCklc_T1.mjs → Create-BXNLRQag.mjs} +1 -1
- package/dist/DateFormatter-CSAbE3BC.js +1 -0
- package/dist/{DateFormatter-DUxlo8X8.mjs → DateFormatter-qbhRYxI_.mjs} +226 -222
- package/dist/{Detail-CNlljBfH.mjs → Detail-ChD5XurA.mjs} +1 -1
- package/dist/{Detail-C857g62L.js → Detail-RISEJJab.js} +1 -1
- package/dist/{Find-DIISO5GO.mjs → Find-zN_dKz4p.mjs} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -0
- package/dist/{Overview-Di84CsR5.mjs → Overview-98nkJUWN.mjs} +162 -157
- package/dist/{Overview-C-Jb_BxY.mjs → Overview-BR_y8x3W.mjs} +1 -1
- package/dist/{Overview-DC9io1bk.js → Overview-CX-n6W7d.js} +1 -1
- package/dist/Overview-Dl8cMlsr.js +1 -0
- package/dist/{Overview-BKAti8nc.mjs → Overview-MpgkLB6m.mjs} +36 -36
- package/dist/{SeoHealth-az1YuNF2.js → SeoHealth-C5npw7mE.js} +1 -1
- package/dist/{SeoHealth-MC3lSCOY.mjs → SeoHealth-bVQj_Xgm.mjs} +29 -29
- package/dist/{TableView-DXHhJ-jm.mjs → TableView-Bf1fdJrD.mjs} +1838 -1822
- package/dist/TableView-DNcXyIMu.js +4 -0
- package/dist/{agenda-IOqtALWf.js → agenda-BaJu3-1c.js} +1 -1
- package/dist/{agenda-DcatSSYQ.mjs → agenda-BwVY_8oM.mjs} +3 -3
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-CI0B4xVj.js → exceptions-B6P9UiCj.js} +1 -1
- package/dist/{exceptions-YCQkHa6a.mjs → exceptions-De9-FvdP.mjs} +67 -67
- package/dist/{index-CpzDEMeC.mjs → index-B8GvmAwh.mjs} +438 -478
- package/dist/{index-wjkEPsNx.mjs → index-BIF2RB7k.mjs} +1212 -1316
- package/dist/index-ByRsp77L.js +70 -0
- package/dist/{index-BhWvXMOp.mjs → index-CFzn2Lus.mjs} +5 -9
- package/dist/{index-BFLV54kw.mjs → index-CkVwMqpn.mjs} +1114 -1100
- package/dist/index-DL6orwdK.js +35 -0
- package/dist/index-DUlYrnXH.js +58 -0
- package/dist/index-DZV720u-.mjs +439 -0
- package/dist/index-D_nfGegA.js +184 -0
- package/dist/index-DtSvAFLL.js +54 -0
- package/dist/{index-D30apIn-.mjs → index-L54VBzwJ.mjs} +2 -3
- package/dist/{index-BzWmWCo5.mjs → index-hH3e-IYz.mjs} +267 -267
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +15 -15
- package/dist/math-BJ-oX_IM.mjs +80 -0
- package/dist/math-emotyaF6.js +1 -0
- package/dist/{resources-CYOb5Bl6.mjs → resources-DwYxn2Vi.mjs} +1 -1
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +1 -2
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +1 -0
- package/package.json +2 -2
- package/dist/DateFormatter-CYAD4GBN.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +0 -1255
- package/dist/Overview-UoZHUMUz.js +0 -1
- package/dist/TableView-DQW0A1oG.js +0 -4
- package/dist/array-CbATeQbk.js +0 -1
- package/dist/array-DT5pE8Gm.mjs +0 -108
- package/dist/index-A2kp8Isi.js +0 -75
- package/dist/index-B5aBwdxY.js +0 -54
- package/dist/index-BiT55eU0.js +0 -58
- package/dist/index-G7cIlnGN.js +0 -158
- package/dist/index-V78huaSJ.mjs +0 -442
- package/dist/index-vHmvbEwa.js +0 -35
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
1
|
+
import { defineComponent as gt, inject as bt, computed as mt, ref as kt, onMounted as St, nextTick as wt, onUnmounted as Tt, watch as L, openBlock as Ot, createElementBlock as Nt } from "vue";
|
|
2
|
+
import { l as T, D as Pt, M as H, I as U, v as F, q as j, z as Ct, Y as At, A as te, Z as D, w as ee, o as ie, x as ne, R as Mt, N as jt, n as Dt } from "./index-CkVwMqpn.mjs";
|
|
3
|
+
import { b as Et, X as Rt, D as q } from "./index-BIF2RB7k.mjs";
|
|
4
|
+
import { e as k, p as Bt, g as _t } from "./math-BJ-oX_IM.mjs";
|
|
5
|
+
function $t(t) {
|
|
6
6
|
this._context = t;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
$t.prototype = {
|
|
9
9
|
areaStart: function() {
|
|
10
10
|
this._line = 0;
|
|
11
11
|
},
|
|
@@ -25,93 +25,91 @@ Gt.prototype = {
|
|
|
25
25
|
break;
|
|
26
26
|
case 1:
|
|
27
27
|
this._point = 2;
|
|
28
|
-
//
|
|
28
|
+
// proceed
|
|
29
29
|
default:
|
|
30
30
|
this._context.lineTo(t, e);
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
function
|
|
36
|
-
return new
|
|
35
|
+
function ot(t) {
|
|
36
|
+
return new $t(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ht(t) {
|
|
39
39
|
return t[0];
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Lt(t) {
|
|
42
42
|
return t[1];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
var i = k(!0), n = null, s =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (g) return o = null, g + "" || null;
|
|
44
|
+
function Ft() {
|
|
45
|
+
var t = Ht, e = Lt, i = k(!0), n = null, s = ot, o = null;
|
|
46
|
+
function a(r) {
|
|
47
|
+
var l, y = r.length, _, h = !1, c;
|
|
48
|
+
for (n == null && (o = s(c = Bt())), l = 0; l <= y; ++l)
|
|
49
|
+
!(l < y && i(_ = r[l], l, r)) === h && ((h = !h) ? o.lineStart() : o.lineEnd()), h && o.point(+t(_, l, r), +e(_, l, r));
|
|
50
|
+
if (c) return o = null, c + "" || null;
|
|
52
51
|
}
|
|
53
|
-
return
|
|
54
|
-
return arguments.length ? (t = typeof
|
|
55
|
-
},
|
|
56
|
-
return arguments.length ? (e = typeof
|
|
57
|
-
},
|
|
58
|
-
return arguments.length ? (i = typeof
|
|
59
|
-
},
|
|
60
|
-
return arguments.length ? (s =
|
|
61
|
-
},
|
|
62
|
-
return arguments.length ? (
|
|
63
|
-
},
|
|
52
|
+
return a.x = function(r) {
|
|
53
|
+
return arguments.length ? (t = typeof r == "function" ? r : k(+r), a) : t;
|
|
54
|
+
}, a.y = function(r) {
|
|
55
|
+
return arguments.length ? (e = typeof r == "function" ? r : k(+r), a) : e;
|
|
56
|
+
}, a.defined = function(r) {
|
|
57
|
+
return arguments.length ? (i = typeof r == "function" ? r : k(!!r), a) : i;
|
|
58
|
+
}, a.curve = function(r) {
|
|
59
|
+
return arguments.length ? (s = r, n != null && (o = s(n)), a) : s;
|
|
60
|
+
}, a.context = function(r) {
|
|
61
|
+
return arguments.length ? (r == null ? n = o = null : o = s(n = r), a) : n;
|
|
62
|
+
}, a;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
g = _, r.areaStart(), r.lineStart();
|
|
64
|
+
function se() {
|
|
65
|
+
var t = Ht, e = null, i = k(0), n = Lt, s = k(!0), o = null, a = ot, r = null;
|
|
66
|
+
function l(_) {
|
|
67
|
+
var h, c, v, g = _.length, m, u = !1, f, d = new Array(g), p = new Array(g);
|
|
68
|
+
for (o == null && (r = a(f = Bt())), h = 0; h <= g; ++h) {
|
|
69
|
+
if (!(h < g && s(m = _[h], h, _)) === u)
|
|
70
|
+
if (u = !u)
|
|
71
|
+
c = h, r.areaStart(), r.lineStart();
|
|
74
72
|
else {
|
|
75
|
-
for (r.lineEnd(), r.lineStart(),
|
|
76
|
-
r.point(
|
|
73
|
+
for (r.lineEnd(), r.lineStart(), v = h - 1; v >= c; --v)
|
|
74
|
+
r.point(d[v], p[v]);
|
|
77
75
|
r.lineEnd(), r.areaEnd();
|
|
78
76
|
}
|
|
79
|
-
|
|
77
|
+
u && (d[h] = +t(m, h, _), p[h] = +i(m, h, _), r.point(e ? +e(m, h, _) : d[h], n ? +n(m, h, _) : p[h]));
|
|
80
78
|
}
|
|
81
|
-
if (
|
|
79
|
+
if (f) return r = null, f + "" || null;
|
|
82
80
|
}
|
|
83
81
|
function y() {
|
|
84
|
-
return
|
|
82
|
+
return Ft().defined(s).curve(a).context(o);
|
|
85
83
|
}
|
|
86
|
-
return
|
|
87
|
-
return arguments.length ? (t = typeof
|
|
88
|
-
},
|
|
89
|
-
return arguments.length ? (t = typeof
|
|
90
|
-
},
|
|
91
|
-
return arguments.length ? (
|
|
92
|
-
},
|
|
93
|
-
return arguments.length ? (
|
|
94
|
-
},
|
|
95
|
-
return arguments.length ? (
|
|
96
|
-
},
|
|
97
|
-
return arguments.length ? (
|
|
98
|
-
},
|
|
99
|
-
return y().x(t).y(e);
|
|
100
|
-
}, c.lineY1 = function() {
|
|
84
|
+
return l.x = function(_) {
|
|
85
|
+
return arguments.length ? (t = typeof _ == "function" ? _ : k(+_), e = null, l) : t;
|
|
86
|
+
}, l.x0 = function(_) {
|
|
87
|
+
return arguments.length ? (t = typeof _ == "function" ? _ : k(+_), l) : t;
|
|
88
|
+
}, l.x1 = function(_) {
|
|
89
|
+
return arguments.length ? (e = _ == null ? null : typeof _ == "function" ? _ : k(+_), l) : e;
|
|
90
|
+
}, l.y = function(_) {
|
|
91
|
+
return arguments.length ? (i = typeof _ == "function" ? _ : k(+_), n = null, l) : i;
|
|
92
|
+
}, l.y0 = function(_) {
|
|
93
|
+
return arguments.length ? (i = typeof _ == "function" ? _ : k(+_), l) : i;
|
|
94
|
+
}, l.y1 = function(_) {
|
|
95
|
+
return arguments.length ? (n = _ == null ? null : typeof _ == "function" ? _ : k(+_), l) : n;
|
|
96
|
+
}, l.lineX0 = l.lineY0 = function() {
|
|
101
97
|
return y().x(t).y(i);
|
|
102
|
-
},
|
|
103
|
-
return y().x(
|
|
104
|
-
},
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
return arguments.length ? (
|
|
108
|
-
},
|
|
109
|
-
return arguments.length ? (a
|
|
110
|
-
},
|
|
98
|
+
}, l.lineY1 = function() {
|
|
99
|
+
return y().x(t).y(n);
|
|
100
|
+
}, l.lineX1 = function() {
|
|
101
|
+
return y().x(e).y(i);
|
|
102
|
+
}, l.defined = function(_) {
|
|
103
|
+
return arguments.length ? (s = typeof _ == "function" ? _ : k(!!_), l) : s;
|
|
104
|
+
}, l.curve = function(_) {
|
|
105
|
+
return arguments.length ? (a = _, o != null && (r = a(o)), l) : a;
|
|
106
|
+
}, l.context = function(_) {
|
|
107
|
+
return arguments.length ? (_ == null ? o = r = null : r = a(o = _), l) : o;
|
|
108
|
+
}, l;
|
|
111
109
|
}
|
|
112
|
-
function
|
|
110
|
+
function w() {
|
|
113
111
|
}
|
|
114
|
-
function
|
|
112
|
+
function I(t, e, i) {
|
|
115
113
|
t._context.bezierCurveTo(
|
|
116
114
|
(2 * t._x0 + t._x1) / 3,
|
|
117
115
|
(2 * t._y0 + t._y1) / 3,
|
|
@@ -121,10 +119,10 @@ function X(t, e, i) {
|
|
|
121
119
|
(t._y0 + 4 * t._y1 + i) / 6
|
|
122
120
|
);
|
|
123
121
|
}
|
|
124
|
-
function
|
|
122
|
+
function G(t) {
|
|
125
123
|
this._context = t;
|
|
126
124
|
}
|
|
127
|
-
|
|
125
|
+
G.prototype = {
|
|
128
126
|
areaStart: function() {
|
|
129
127
|
this._line = 0;
|
|
130
128
|
},
|
|
@@ -137,8 +135,8 @@ Z.prototype = {
|
|
|
137
135
|
lineEnd: function() {
|
|
138
136
|
switch (this._point) {
|
|
139
137
|
case 3:
|
|
140
|
-
|
|
141
|
-
//
|
|
138
|
+
I(this, this._x1, this._y1);
|
|
139
|
+
// proceed
|
|
142
140
|
case 2:
|
|
143
141
|
this._context.lineTo(this._x1, this._y1);
|
|
144
142
|
break;
|
|
@@ -155,23 +153,23 @@ Z.prototype = {
|
|
|
155
153
|
break;
|
|
156
154
|
case 2:
|
|
157
155
|
this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
158
|
-
//
|
|
156
|
+
// proceed
|
|
159
157
|
default:
|
|
160
|
-
|
|
158
|
+
I(this, t, e);
|
|
161
159
|
break;
|
|
162
160
|
}
|
|
163
161
|
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
|
|
164
162
|
}
|
|
165
163
|
};
|
|
166
|
-
function
|
|
167
|
-
return new
|
|
164
|
+
function oe(t) {
|
|
165
|
+
return new G(t);
|
|
168
166
|
}
|
|
169
|
-
function
|
|
167
|
+
function It(t) {
|
|
170
168
|
this._context = t;
|
|
171
169
|
}
|
|
172
|
-
|
|
173
|
-
areaStart:
|
|
174
|
-
areaEnd:
|
|
170
|
+
It.prototype = {
|
|
171
|
+
areaStart: w,
|
|
172
|
+
areaEnd: w,
|
|
175
173
|
lineStart: function() {
|
|
176
174
|
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
177
175
|
},
|
|
@@ -203,19 +201,19 @@ Vt.prototype = {
|
|
|
203
201
|
this._point = 3, this._x4 = t, this._y4 = e, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + e) / 6);
|
|
204
202
|
break;
|
|
205
203
|
default:
|
|
206
|
-
|
|
204
|
+
I(this, t, e);
|
|
207
205
|
break;
|
|
208
206
|
}
|
|
209
207
|
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
|
|
210
208
|
}
|
|
211
209
|
};
|
|
212
|
-
function
|
|
213
|
-
return new
|
|
210
|
+
function re(t) {
|
|
211
|
+
return new It(t);
|
|
214
212
|
}
|
|
215
|
-
function
|
|
213
|
+
function Xt(t) {
|
|
216
214
|
this._context = t;
|
|
217
215
|
}
|
|
218
|
-
|
|
216
|
+
Xt.prototype = {
|
|
219
217
|
areaStart: function() {
|
|
220
218
|
this._line = 0;
|
|
221
219
|
},
|
|
@@ -243,31 +241,31 @@ zt.prototype = {
|
|
|
243
241
|
break;
|
|
244
242
|
case 3:
|
|
245
243
|
this._point = 4;
|
|
246
|
-
//
|
|
244
|
+
// proceed
|
|
247
245
|
default:
|
|
248
|
-
|
|
246
|
+
I(this, t, e);
|
|
249
247
|
break;
|
|
250
248
|
}
|
|
251
249
|
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
|
|
252
250
|
}
|
|
253
251
|
};
|
|
254
|
-
function
|
|
255
|
-
return new
|
|
252
|
+
function ae(t) {
|
|
253
|
+
return new Xt(t);
|
|
256
254
|
}
|
|
257
|
-
function
|
|
258
|
-
this._basis = new
|
|
255
|
+
function Yt(t, e) {
|
|
256
|
+
this._basis = new G(t), this._beta = e;
|
|
259
257
|
}
|
|
260
|
-
|
|
258
|
+
Yt.prototype = {
|
|
261
259
|
lineStart: function() {
|
|
262
260
|
this._x = [], this._y = [], this._basis.lineStart();
|
|
263
261
|
},
|
|
264
262
|
lineEnd: function() {
|
|
265
263
|
var t = this._x, e = this._y, i = t.length - 1;
|
|
266
264
|
if (i > 0)
|
|
267
|
-
for (var n = t[0], s = e[0], o = t[i] - n,
|
|
268
|
-
|
|
269
|
-
this._beta * t[r] + (1 - this._beta) * (n +
|
|
270
|
-
this._beta * e[r] + (1 - this._beta) * (s +
|
|
265
|
+
for (var n = t[0], s = e[0], o = t[i] - n, a = e[i] - s, r = -1, l; ++r <= i; )
|
|
266
|
+
l = r / i, this._basis.point(
|
|
267
|
+
this._beta * t[r] + (1 - this._beta) * (n + l * o),
|
|
268
|
+
this._beta * e[r] + (1 - this._beta) * (s + l * a)
|
|
271
269
|
);
|
|
272
270
|
this._x = this._y = null, this._basis.lineEnd();
|
|
273
271
|
},
|
|
@@ -275,15 +273,15 @@ Wt.prototype = {
|
|
|
275
273
|
this._x.push(+t), this._y.push(+e);
|
|
276
274
|
}
|
|
277
275
|
};
|
|
278
|
-
const
|
|
276
|
+
const le = (function t(e) {
|
|
279
277
|
function i(n) {
|
|
280
|
-
return e === 1 ? new
|
|
278
|
+
return e === 1 ? new G(n) : new Yt(n, e);
|
|
281
279
|
}
|
|
282
280
|
return i.beta = function(n) {
|
|
283
281
|
return t(+n);
|
|
284
282
|
}, i;
|
|
285
283
|
})(0.85);
|
|
286
|
-
function
|
|
284
|
+
function X(t, e, i) {
|
|
287
285
|
t._context.bezierCurveTo(
|
|
288
286
|
t._x1 + t._k * (t._x2 - t._x0),
|
|
289
287
|
t._y1 + t._k * (t._y2 - t._y0),
|
|
@@ -293,10 +291,10 @@ function Y(t, e, i) {
|
|
|
293
291
|
t._y2
|
|
294
292
|
);
|
|
295
293
|
}
|
|
296
|
-
function
|
|
294
|
+
function rt(t, e) {
|
|
297
295
|
this._context = t, this._k = (1 - e) / 6;
|
|
298
296
|
}
|
|
299
|
-
|
|
297
|
+
rt.prototype = {
|
|
300
298
|
areaStart: function() {
|
|
301
299
|
this._line = 0;
|
|
302
300
|
},
|
|
@@ -312,7 +310,7 @@ _t.prototype = {
|
|
|
312
310
|
this._context.lineTo(this._x2, this._y2);
|
|
313
311
|
break;
|
|
314
312
|
case 3:
|
|
315
|
-
|
|
313
|
+
X(this, this._x1, this._y1);
|
|
316
314
|
break;
|
|
317
315
|
}
|
|
318
316
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
@@ -327,28 +325,28 @@ _t.prototype = {
|
|
|
327
325
|
break;
|
|
328
326
|
case 2:
|
|
329
327
|
this._point = 3;
|
|
330
|
-
//
|
|
328
|
+
// proceed
|
|
331
329
|
default:
|
|
332
|
-
|
|
330
|
+
X(this, t, e);
|
|
333
331
|
break;
|
|
334
332
|
}
|
|
335
333
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
336
334
|
}
|
|
337
335
|
};
|
|
338
|
-
const
|
|
336
|
+
const he = (function t(e) {
|
|
339
337
|
function i(n) {
|
|
340
|
-
return new
|
|
338
|
+
return new rt(n, e);
|
|
341
339
|
}
|
|
342
340
|
return i.tension = function(n) {
|
|
343
341
|
return t(+n);
|
|
344
342
|
}, i;
|
|
345
343
|
})(0);
|
|
346
|
-
function
|
|
344
|
+
function at(t, e) {
|
|
347
345
|
this._context = t, this._k = (1 - e) / 6;
|
|
348
346
|
}
|
|
349
|
-
|
|
350
|
-
areaStart:
|
|
351
|
-
areaEnd:
|
|
347
|
+
at.prototype = {
|
|
348
|
+
areaStart: w,
|
|
349
|
+
areaEnd: w,
|
|
352
350
|
lineStart: function() {
|
|
353
351
|
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;
|
|
354
352
|
},
|
|
@@ -380,24 +378,24 @@ ut.prototype = {
|
|
|
380
378
|
this._point = 3, this._x5 = t, this._y5 = e;
|
|
381
379
|
break;
|
|
382
380
|
default:
|
|
383
|
-
|
|
381
|
+
X(this, t, e);
|
|
384
382
|
break;
|
|
385
383
|
}
|
|
386
384
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
387
385
|
}
|
|
388
386
|
};
|
|
389
|
-
const
|
|
387
|
+
const _e = (function t(e) {
|
|
390
388
|
function i(n) {
|
|
391
|
-
return new
|
|
389
|
+
return new at(n, e);
|
|
392
390
|
}
|
|
393
391
|
return i.tension = function(n) {
|
|
394
392
|
return t(+n);
|
|
395
393
|
}, i;
|
|
396
394
|
})(0);
|
|
397
|
-
function
|
|
395
|
+
function lt(t, e) {
|
|
398
396
|
this._context = t, this._k = (1 - e) / 6;
|
|
399
397
|
}
|
|
400
|
-
|
|
398
|
+
lt.prototype = {
|
|
401
399
|
areaStart: function() {
|
|
402
400
|
this._line = 0;
|
|
403
401
|
},
|
|
@@ -423,38 +421,38 @@ ft.prototype = {
|
|
|
423
421
|
break;
|
|
424
422
|
case 3:
|
|
425
423
|
this._point = 4;
|
|
426
|
-
//
|
|
424
|
+
// proceed
|
|
427
425
|
default:
|
|
428
|
-
|
|
426
|
+
X(this, t, e);
|
|
429
427
|
break;
|
|
430
428
|
}
|
|
431
429
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
432
430
|
}
|
|
433
431
|
};
|
|
434
|
-
const
|
|
432
|
+
const ce = (function t(e) {
|
|
435
433
|
function i(n) {
|
|
436
|
-
return new
|
|
434
|
+
return new lt(n, e);
|
|
437
435
|
}
|
|
438
436
|
return i.tension = function(n) {
|
|
439
437
|
return t(+n);
|
|
440
438
|
}, i;
|
|
441
439
|
})(0);
|
|
442
|
-
function
|
|
443
|
-
var n = t._x1, s = t._y1, o = t._x2,
|
|
444
|
-
if (t._l01_a >
|
|
445
|
-
var r = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a,
|
|
446
|
-
n = (n * r - t._x0 * t._l12_2a + t._x2 * t._l01_2a) /
|
|
440
|
+
function ht(t, e, i) {
|
|
441
|
+
var n = t._x1, s = t._y1, o = t._x2, a = t._y2;
|
|
442
|
+
if (t._l01_a > _t) {
|
|
443
|
+
var r = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, l = 3 * t._l01_a * (t._l01_a + t._l12_a);
|
|
444
|
+
n = (n * r - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / l, s = (s * r - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / l;
|
|
447
445
|
}
|
|
448
|
-
if (t._l23_a >
|
|
449
|
-
var
|
|
450
|
-
o = (o *
|
|
446
|
+
if (t._l23_a > _t) {
|
|
447
|
+
var y = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, _ = 3 * t._l23_a * (t._l23_a + t._l12_a);
|
|
448
|
+
o = (o * y + t._x1 * t._l23_2a - e * t._l12_2a) / _, a = (a * y + t._y1 * t._l23_2a - i * t._l12_2a) / _;
|
|
451
449
|
}
|
|
452
|
-
t._context.bezierCurveTo(n, s, o,
|
|
450
|
+
t._context.bezierCurveTo(n, s, o, a, t._x2, t._y2);
|
|
453
451
|
}
|
|
454
|
-
function
|
|
452
|
+
function zt(t, e) {
|
|
455
453
|
this._context = t, this._alpha = e;
|
|
456
454
|
}
|
|
457
|
-
|
|
455
|
+
zt.prototype = {
|
|
458
456
|
areaStart: function() {
|
|
459
457
|
this._line = 0;
|
|
460
458
|
},
|
|
@@ -489,28 +487,28 @@ Zt.prototype = {
|
|
|
489
487
|
break;
|
|
490
488
|
case 2:
|
|
491
489
|
this._point = 3;
|
|
492
|
-
//
|
|
490
|
+
// proceed
|
|
493
491
|
default:
|
|
494
|
-
|
|
492
|
+
ht(this, t, e);
|
|
495
493
|
break;
|
|
496
494
|
}
|
|
497
495
|
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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
498
496
|
}
|
|
499
497
|
};
|
|
500
|
-
const
|
|
498
|
+
const ue = (function t(e) {
|
|
501
499
|
function i(n) {
|
|
502
|
-
return e ? new
|
|
500
|
+
return e ? new zt(n, e) : new rt(n, 0);
|
|
503
501
|
}
|
|
504
502
|
return i.alpha = function(n) {
|
|
505
503
|
return t(+n);
|
|
506
504
|
}, i;
|
|
507
505
|
})(0.5);
|
|
508
|
-
function
|
|
506
|
+
function Gt(t, e) {
|
|
509
507
|
this._context = t, this._alpha = e;
|
|
510
508
|
}
|
|
511
|
-
|
|
512
|
-
areaStart:
|
|
513
|
-
areaEnd:
|
|
509
|
+
Gt.prototype = {
|
|
510
|
+
areaStart: w,
|
|
511
|
+
areaEnd: w,
|
|
514
512
|
lineStart: function() {
|
|
515
513
|
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;
|
|
516
514
|
},
|
|
@@ -546,24 +544,24 @@ qt.prototype = {
|
|
|
546
544
|
this._point = 3, this._x5 = t, this._y5 = e;
|
|
547
545
|
break;
|
|
548
546
|
default:
|
|
549
|
-
|
|
547
|
+
ht(this, t, e);
|
|
550
548
|
break;
|
|
551
549
|
}
|
|
552
550
|
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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
553
551
|
}
|
|
554
552
|
};
|
|
555
|
-
const
|
|
553
|
+
const fe = (function t(e) {
|
|
556
554
|
function i(n) {
|
|
557
|
-
return e ? new
|
|
555
|
+
return e ? new Gt(n, e) : new at(n, 0);
|
|
558
556
|
}
|
|
559
557
|
return i.alpha = function(n) {
|
|
560
558
|
return t(+n);
|
|
561
559
|
}, i;
|
|
562
560
|
})(0.5);
|
|
563
|
-
function
|
|
561
|
+
function Vt(t, e) {
|
|
564
562
|
this._context = t, this._alpha = e;
|
|
565
563
|
}
|
|
566
|
-
|
|
564
|
+
Vt.prototype = {
|
|
567
565
|
areaStart: function() {
|
|
568
566
|
this._line = 0;
|
|
569
567
|
},
|
|
@@ -593,28 +591,28 @@ Qt.prototype = {
|
|
|
593
591
|
break;
|
|
594
592
|
case 3:
|
|
595
593
|
this._point = 4;
|
|
596
|
-
//
|
|
594
|
+
// proceed
|
|
597
595
|
default:
|
|
598
|
-
|
|
596
|
+
ht(this, t, e);
|
|
599
597
|
break;
|
|
600
598
|
}
|
|
601
599
|
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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
602
600
|
}
|
|
603
601
|
};
|
|
604
|
-
const
|
|
602
|
+
const pe = (function t(e) {
|
|
605
603
|
function i(n) {
|
|
606
|
-
return e ? new
|
|
604
|
+
return e ? new Vt(n, e) : new lt(n, 0);
|
|
607
605
|
}
|
|
608
606
|
return i.alpha = function(n) {
|
|
609
607
|
return t(+n);
|
|
610
608
|
}, i;
|
|
611
609
|
})(0.5);
|
|
612
|
-
function
|
|
610
|
+
function Zt(t) {
|
|
613
611
|
this._context = t;
|
|
614
612
|
}
|
|
615
|
-
|
|
616
|
-
areaStart:
|
|
617
|
-
areaEnd:
|
|
613
|
+
Zt.prototype = {
|
|
614
|
+
areaStart: w,
|
|
615
|
+
areaEnd: w,
|
|
618
616
|
lineStart: function() {
|
|
619
617
|
this._point = 0;
|
|
620
618
|
},
|
|
@@ -625,28 +623,28 @@ Ut.prototype = {
|
|
|
625
623
|
t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e));
|
|
626
624
|
}
|
|
627
625
|
};
|
|
628
|
-
function
|
|
629
|
-
return new
|
|
626
|
+
function ye(t) {
|
|
627
|
+
return new Zt(t);
|
|
630
628
|
}
|
|
631
|
-
function
|
|
629
|
+
function ct(t) {
|
|
632
630
|
return t < 0 ? -1 : 1;
|
|
633
631
|
}
|
|
634
|
-
function
|
|
635
|
-
var n = t._x1 - t._x0, s = e - t._x1, o = (t._y1 - t._y0) / (n || s < 0 && -0),
|
|
636
|
-
return (
|
|
632
|
+
function ut(t, e, i) {
|
|
633
|
+
var n = t._x1 - t._x0, s = e - t._x1, o = (t._y1 - t._y0) / (n || s < 0 && -0), a = (i - t._y1) / (s || n < 0 && -0), r = (o * s + a * n) / (n + s);
|
|
634
|
+
return (ct(o) + ct(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(r)) || 0;
|
|
637
635
|
}
|
|
638
|
-
function
|
|
636
|
+
function ft(t, e) {
|
|
639
637
|
var i = t._x1 - t._x0;
|
|
640
638
|
return i ? (3 * (t._y1 - t._y0) / i - e) / 2 : e;
|
|
641
639
|
}
|
|
642
|
-
function
|
|
643
|
-
var n = t._x0, s = t._y0, o = t._x1,
|
|
644
|
-
t._context.bezierCurveTo(n + r, s + r * e, o - r,
|
|
640
|
+
function Q(t, e, i) {
|
|
641
|
+
var n = t._x0, s = t._y0, o = t._x1, a = t._y1, r = (o - n) / 3;
|
|
642
|
+
t._context.bezierCurveTo(n + r, s + r * e, o - r, a - r * i, o, a);
|
|
645
643
|
}
|
|
646
|
-
function
|
|
644
|
+
function Y(t) {
|
|
647
645
|
this._context = t;
|
|
648
646
|
}
|
|
649
|
-
|
|
647
|
+
Y.prototype = {
|
|
650
648
|
areaStart: function() {
|
|
651
649
|
this._line = 0;
|
|
652
650
|
},
|
|
@@ -662,7 +660,7 @@ V.prototype = {
|
|
|
662
660
|
this._context.lineTo(this._x1, this._y1);
|
|
663
661
|
break;
|
|
664
662
|
case 3:
|
|
665
|
-
|
|
663
|
+
Q(this, this._t0, ft(this, this._t0));
|
|
666
664
|
break;
|
|
667
665
|
}
|
|
668
666
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
@@ -678,26 +676,26 @@ V.prototype = {
|
|
|
678
676
|
this._point = 2;
|
|
679
677
|
break;
|
|
680
678
|
case 2:
|
|
681
|
-
this._point = 3,
|
|
679
|
+
this._point = 3, Q(this, ft(this, i = ut(this, t, e)), i);
|
|
682
680
|
break;
|
|
683
681
|
default:
|
|
684
|
-
|
|
682
|
+
Q(this, this._t0, i = ut(this, t, e));
|
|
685
683
|
break;
|
|
686
684
|
}
|
|
687
685
|
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = i;
|
|
688
686
|
}
|
|
689
687
|
}
|
|
690
688
|
};
|
|
691
|
-
function
|
|
692
|
-
this._context = new
|
|
689
|
+
function Wt(t) {
|
|
690
|
+
this._context = new qt(t);
|
|
693
691
|
}
|
|
694
|
-
(
|
|
695
|
-
|
|
692
|
+
(Wt.prototype = Object.create(Y.prototype)).point = function(t, e) {
|
|
693
|
+
Y.prototype.point.call(this, e, t);
|
|
696
694
|
};
|
|
697
|
-
function
|
|
695
|
+
function qt(t) {
|
|
698
696
|
this._context = t;
|
|
699
697
|
}
|
|
700
|
-
|
|
698
|
+
qt.prototype = {
|
|
701
699
|
moveTo: function(t, e) {
|
|
702
700
|
this._context.moveTo(e, t);
|
|
703
701
|
},
|
|
@@ -711,16 +709,16 @@ Kt.prototype = {
|
|
|
711
709
|
this._context.bezierCurveTo(e, t, n, i, o, s);
|
|
712
710
|
}
|
|
713
711
|
};
|
|
714
|
-
function
|
|
715
|
-
return new
|
|
712
|
+
function de(t) {
|
|
713
|
+
return new Y(t);
|
|
716
714
|
}
|
|
717
|
-
function
|
|
718
|
-
return new
|
|
715
|
+
function ve(t) {
|
|
716
|
+
return new Wt(t);
|
|
719
717
|
}
|
|
720
|
-
function
|
|
718
|
+
function Qt(t) {
|
|
721
719
|
this._context = t;
|
|
722
720
|
}
|
|
723
|
-
|
|
721
|
+
Qt.prototype = {
|
|
724
722
|
areaStart: function() {
|
|
725
723
|
this._line = 0;
|
|
726
724
|
},
|
|
@@ -736,29 +734,29 @@ te.prototype = {
|
|
|
736
734
|
if (this._line ? this._context.lineTo(t[0], e[0]) : this._context.moveTo(t[0], e[0]), i === 2)
|
|
737
735
|
this._context.lineTo(t[1], e[1]);
|
|
738
736
|
else
|
|
739
|
-
for (var n =
|
|
740
|
-
this._context.bezierCurveTo(n[0][o], s[0][o], n[1][o], s[1][o], t[
|
|
737
|
+
for (var n = pt(t), s = pt(e), o = 0, a = 1; a < i; ++o, ++a)
|
|
738
|
+
this._context.bezierCurveTo(n[0][o], s[0][o], n[1][o], s[1][o], t[a], e[a]);
|
|
741
739
|
(this._line || this._line !== 0 && i === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
742
740
|
},
|
|
743
741
|
point: function(t, e) {
|
|
744
742
|
this._x.push(+t), this._y.push(+e);
|
|
745
743
|
}
|
|
746
744
|
};
|
|
747
|
-
function
|
|
748
|
-
var e, i = t.length - 1, n, s = new Array(i), o = new Array(i),
|
|
749
|
-
for (s[0] = 0, o[0] = 2,
|
|
750
|
-
for (s[i - 1] = 2, o[i - 1] = 7,
|
|
751
|
-
for (s[i - 1] =
|
|
745
|
+
function pt(t) {
|
|
746
|
+
var e, i = t.length - 1, n, s = new Array(i), o = new Array(i), a = new Array(i);
|
|
747
|
+
for (s[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; e < i - 1; ++e) s[e] = 1, o[e] = 4, a[e] = 4 * t[e] + 2 * t[e + 1];
|
|
748
|
+
for (s[i - 1] = 2, o[i - 1] = 7, a[i - 1] = 8 * t[i - 1] + t[i], e = 1; e < i; ++e) n = s[e] / o[e - 1], o[e] -= n, a[e] -= n * a[e - 1];
|
|
749
|
+
for (s[i - 1] = a[i - 1] / o[i - 1], e = i - 2; e >= 0; --e) s[e] = (a[e] - s[e + 1]) / o[e];
|
|
752
750
|
for (o[i - 1] = (t[i] + s[i - 1]) / 2, e = 0; e < i - 1; ++e) o[e] = 2 * t[e + 1] - s[e + 1];
|
|
753
751
|
return [s, o];
|
|
754
752
|
}
|
|
755
|
-
function
|
|
756
|
-
return new
|
|
753
|
+
function xe(t) {
|
|
754
|
+
return new Qt(t);
|
|
757
755
|
}
|
|
758
|
-
function
|
|
756
|
+
function V(t, e) {
|
|
759
757
|
this._context = t, this._t = e;
|
|
760
758
|
}
|
|
761
|
-
|
|
759
|
+
V.prototype = {
|
|
762
760
|
areaStart: function() {
|
|
763
761
|
this._line = 0;
|
|
764
762
|
},
|
|
@@ -778,7 +776,7 @@ q.prototype = {
|
|
|
778
776
|
break;
|
|
779
777
|
case 1:
|
|
780
778
|
this._point = 2;
|
|
781
|
-
//
|
|
779
|
+
// proceed
|
|
782
780
|
default: {
|
|
783
781
|
if (this._t <= 0)
|
|
784
782
|
this._context.lineTo(this._x, e), this._context.lineTo(t, e);
|
|
@@ -792,16 +790,16 @@ q.prototype = {
|
|
|
792
790
|
this._x = t, this._y = e;
|
|
793
791
|
}
|
|
794
792
|
};
|
|
795
|
-
function
|
|
796
|
-
return new
|
|
793
|
+
function ge(t) {
|
|
794
|
+
return new V(t, 0.5);
|
|
797
795
|
}
|
|
798
|
-
function
|
|
799
|
-
return new
|
|
796
|
+
function be(t) {
|
|
797
|
+
return new V(t, 0);
|
|
800
798
|
}
|
|
801
|
-
function
|
|
802
|
-
return new
|
|
799
|
+
function me(t) {
|
|
800
|
+
return new V(t, 1);
|
|
803
801
|
}
|
|
804
|
-
function
|
|
802
|
+
function yt(t, e) {
|
|
805
803
|
var i = Object.keys(t);
|
|
806
804
|
if (Object.getOwnPropertySymbols) {
|
|
807
805
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -811,26 +809,26 @@ function bt(t, e) {
|
|
|
811
809
|
}
|
|
812
810
|
return i;
|
|
813
811
|
}
|
|
814
|
-
function
|
|
812
|
+
function ke(t) {
|
|
815
813
|
for (var e = 1; e < arguments.length; e++) {
|
|
816
814
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
817
|
-
e % 2 ?
|
|
818
|
-
|
|
819
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) :
|
|
815
|
+
e % 2 ? yt(Object(i), !0).forEach(function(n) {
|
|
816
|
+
Se(t, n, i[n]);
|
|
817
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : yt(Object(i)).forEach(function(n) {
|
|
820
818
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
|
|
821
819
|
});
|
|
822
820
|
}
|
|
823
821
|
return t;
|
|
824
822
|
}
|
|
825
|
-
function
|
|
823
|
+
function E(t) {
|
|
826
824
|
"@babel/helpers - typeof";
|
|
827
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
825
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? E = function(e) {
|
|
828
826
|
return typeof e;
|
|
829
|
-
} :
|
|
827
|
+
} : E = function(e) {
|
|
830
828
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
831
|
-
},
|
|
829
|
+
}, E(t);
|
|
832
830
|
}
|
|
833
|
-
function
|
|
831
|
+
function Se(t, e, i) {
|
|
834
832
|
return e in t ? Object.defineProperty(t, e, {
|
|
835
833
|
value: i,
|
|
836
834
|
enumerable: !0,
|
|
@@ -848,23 +846,23 @@ function z() {
|
|
|
848
846
|
return t;
|
|
849
847
|
}, z.apply(this, arguments);
|
|
850
848
|
}
|
|
851
|
-
function
|
|
849
|
+
function we(t, e) {
|
|
852
850
|
if (t) {
|
|
853
|
-
if (typeof t == "string") return
|
|
851
|
+
if (typeof t == "string") return dt(t, e);
|
|
854
852
|
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
855
853
|
if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
|
|
856
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
|
854
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return dt(t, e);
|
|
857
855
|
}
|
|
858
856
|
}
|
|
859
|
-
function
|
|
857
|
+
function dt(t, e) {
|
|
860
858
|
(e == null || e > t.length) && (e = t.length);
|
|
861
859
|
for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
|
|
862
860
|
return n;
|
|
863
861
|
}
|
|
864
|
-
function
|
|
862
|
+
function Ut(t, e) {
|
|
865
863
|
var i = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
866
864
|
if (!i) {
|
|
867
|
-
if (Array.isArray(t) || (i =
|
|
865
|
+
if (Array.isArray(t) || (i = we(t)) || e) {
|
|
868
866
|
i && (t = i);
|
|
869
867
|
var n = 0, s = function() {
|
|
870
868
|
};
|
|
@@ -878,8 +876,8 @@ function ee(t, e) {
|
|
|
878
876
|
value: t[n++]
|
|
879
877
|
};
|
|
880
878
|
},
|
|
881
|
-
e: function(
|
|
882
|
-
throw
|
|
879
|
+
e: function(l) {
|
|
880
|
+
throw l;
|
|
883
881
|
},
|
|
884
882
|
f: s
|
|
885
883
|
};
|
|
@@ -887,36 +885,36 @@ function ee(t, e) {
|
|
|
887
885
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
888
886
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
889
887
|
}
|
|
890
|
-
var o = !0,
|
|
888
|
+
var o = !0, a = !1, r;
|
|
891
889
|
return {
|
|
892
890
|
s: function() {
|
|
893
891
|
i = i.call(t);
|
|
894
892
|
},
|
|
895
893
|
n: function() {
|
|
896
|
-
var
|
|
897
|
-
return o =
|
|
894
|
+
var l = i.next();
|
|
895
|
+
return o = l.done, l;
|
|
898
896
|
},
|
|
899
|
-
e: function(
|
|
900
|
-
|
|
897
|
+
e: function(l) {
|
|
898
|
+
a = !0, r = l;
|
|
901
899
|
},
|
|
902
900
|
f: function() {
|
|
903
901
|
try {
|
|
904
902
|
!o && i.return != null && i.return();
|
|
905
903
|
} finally {
|
|
906
|
-
if (
|
|
904
|
+
if (a) throw r;
|
|
907
905
|
}
|
|
908
906
|
}
|
|
909
907
|
};
|
|
910
908
|
}
|
|
911
|
-
function
|
|
909
|
+
function Te(t, e) {
|
|
912
910
|
var i = [], n = [];
|
|
913
|
-
function s(o,
|
|
911
|
+
function s(o, a) {
|
|
914
912
|
if (o.length === 1)
|
|
915
913
|
i.push(o[0]), n.push(o[0]);
|
|
916
914
|
else {
|
|
917
|
-
for (var r = Array(o.length - 1),
|
|
918
|
-
|
|
919
|
-
s(r,
|
|
915
|
+
for (var r = Array(o.length - 1), l = 0; l < r.length; l++)
|
|
916
|
+
l === 0 && i.push(o[0]), l === r.length - 1 && n.push(o[l + 1]), r[l] = [(1 - a) * o[l][0] + a * o[l + 1][0], (1 - a) * o[l][1] + a * o[l + 1][1]];
|
|
917
|
+
s(r, a);
|
|
920
918
|
}
|
|
921
919
|
}
|
|
922
920
|
return t.length && s(t, e), {
|
|
@@ -924,23 +922,23 @@ function Pe(t, e) {
|
|
|
924
922
|
right: n.reverse()
|
|
925
923
|
};
|
|
926
924
|
}
|
|
927
|
-
function
|
|
925
|
+
function Oe(t) {
|
|
928
926
|
var e = {};
|
|
929
927
|
return t.length === 4 && (e.x2 = t[2][0], e.y2 = t[2][1]), t.length >= 3 && (e.x1 = t[1][0], e.y1 = t[1][1]), e.x = t[t.length - 1][0], e.y = t[t.length - 1][1], t.length === 4 ? e.type = "C" : t.length === 3 ? e.type = "Q" : e.type = "L", e;
|
|
930
928
|
}
|
|
931
|
-
function
|
|
929
|
+
function Ne(t, e) {
|
|
932
930
|
e = e || 2;
|
|
933
931
|
for (var i = [], n = t, s = 1 / e, o = 0; o < e - 1; o++) {
|
|
934
|
-
var
|
|
932
|
+
var a = s / (1 - s * o), r = Te(n, a);
|
|
935
933
|
i.push(r.left), n = r.right;
|
|
936
934
|
}
|
|
937
935
|
return i.push(n), i;
|
|
938
936
|
}
|
|
939
|
-
function
|
|
937
|
+
function Pe(t, e, i) {
|
|
940
938
|
var n = [[t.x, t.y]];
|
|
941
|
-
return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]),
|
|
939
|
+
return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]), Ne(n, i).map(Oe);
|
|
942
940
|
}
|
|
943
|
-
var
|
|
941
|
+
var Ce = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, A = {
|
|
944
942
|
M: ["x", "y"],
|
|
945
943
|
L: ["x", "y"],
|
|
946
944
|
H: ["x"],
|
|
@@ -952,20 +950,20 @@ var Me = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, j = {
|
|
|
952
950
|
A: ["rx", "ry", "xAxisRotation", "largeArcFlag", "sweepFlag", "x", "y"],
|
|
953
951
|
Z: []
|
|
954
952
|
};
|
|
955
|
-
Object.keys(
|
|
956
|
-
|
|
953
|
+
Object.keys(A).forEach(function(t) {
|
|
954
|
+
A[t.toLowerCase()] = A[t];
|
|
957
955
|
});
|
|
958
|
-
function
|
|
956
|
+
function J(t, e) {
|
|
959
957
|
for (var i = Array(t), n = 0; n < t; n++)
|
|
960
958
|
i[n] = e;
|
|
961
959
|
return i;
|
|
962
960
|
}
|
|
963
|
-
function
|
|
964
|
-
return "".concat(t.type).concat(
|
|
961
|
+
function Ae(t) {
|
|
962
|
+
return "".concat(t.type).concat(A[t.type].map(function(e) {
|
|
965
963
|
return t[e];
|
|
966
964
|
}).join(","));
|
|
967
965
|
}
|
|
968
|
-
function
|
|
966
|
+
function Me(t, e) {
|
|
969
967
|
var i = {
|
|
970
968
|
x1: "x",
|
|
971
969
|
y1: "y",
|
|
@@ -975,88 +973,88 @@ function je(t, e) {
|
|
|
975
973
|
if (t.type !== e.type && e.type.toUpperCase() !== "M") {
|
|
976
974
|
var s = {};
|
|
977
975
|
Object.keys(e).forEach(function(o) {
|
|
978
|
-
var
|
|
979
|
-
r === void 0 && (n.includes(o) ? r =
|
|
976
|
+
var a = e[o], r = t[o];
|
|
977
|
+
r === void 0 && (n.includes(o) ? r = a : (r === void 0 && i[o] && (r = t[i[o]]), r === void 0 && (r = 0))), s[o] = r;
|
|
980
978
|
}), s.type = e.type, t = s;
|
|
981
979
|
}
|
|
982
980
|
return t;
|
|
983
981
|
}
|
|
984
|
-
function
|
|
982
|
+
function je(t, e, i) {
|
|
985
983
|
var n = [];
|
|
986
984
|
if (e.type === "L" || e.type === "Q" || e.type === "C")
|
|
987
|
-
n = n.concat(
|
|
985
|
+
n = n.concat(Pe(t, e, i));
|
|
988
986
|
else {
|
|
989
987
|
var s = z({}, t);
|
|
990
|
-
s.type === "M" && (s.type = "L"), n = n.concat(
|
|
988
|
+
s.type === "M" && (s.type = "L"), n = n.concat(J(i - 1).map(function() {
|
|
991
989
|
return s;
|
|
992
990
|
})), n.push(e);
|
|
993
991
|
}
|
|
994
992
|
return n;
|
|
995
993
|
}
|
|
996
|
-
function
|
|
997
|
-
var n = t.length - 1, s = e.length - 1, o = n / s,
|
|
998
|
-
var
|
|
999
|
-
if (i &&
|
|
1000
|
-
var
|
|
1001
|
-
h
|
|
994
|
+
function vt(t, e, i) {
|
|
995
|
+
var n = t.length - 1, s = e.length - 1, o = n / s, a = J(s).reduce(function(l, y, _) {
|
|
996
|
+
var h = Math.floor(o * _);
|
|
997
|
+
if (i && h < t.length - 1 && i(t[h], t[h + 1])) {
|
|
998
|
+
var c = o * _ % 1 < 0.5;
|
|
999
|
+
l[h] && (c ? h > 0 ? h -= 1 : h < t.length - 1 && (h += 1) : h < t.length - 1 ? h += 1 : h > 0 && (h -= 1));
|
|
1002
1000
|
}
|
|
1003
|
-
return h
|
|
1004
|
-
}, []), r =
|
|
1005
|
-
if (
|
|
1006
|
-
var
|
|
1007
|
-
return
|
|
1008
|
-
|
|
1009
|
-
}),
|
|
1001
|
+
return l[h] = (l[h] || 0) + 1, l;
|
|
1002
|
+
}, []), r = a.reduce(function(l, y, _) {
|
|
1003
|
+
if (_ === t.length - 1) {
|
|
1004
|
+
var h = J(y, z({}, t[t.length - 1]));
|
|
1005
|
+
return h[0].type === "M" && h.forEach(function(c) {
|
|
1006
|
+
c.type = "L";
|
|
1007
|
+
}), l.concat(h);
|
|
1010
1008
|
}
|
|
1011
|
-
return
|
|
1009
|
+
return l.concat(je(t[_], t[_ + 1], y));
|
|
1012
1010
|
}, []);
|
|
1013
1011
|
return r.unshift(t[0]), r;
|
|
1014
1012
|
}
|
|
1015
|
-
function
|
|
1016
|
-
for (var e = (t || "").match(
|
|
1017
|
-
if (n =
|
|
1013
|
+
function xt(t) {
|
|
1014
|
+
for (var e = (t || "").match(Ce) || [], i = [], n, s, o = 0; o < e.length; ++o)
|
|
1015
|
+
if (n = A[e[o]], n) {
|
|
1018
1016
|
s = {
|
|
1019
1017
|
type: e[o]
|
|
1020
1018
|
};
|
|
1021
|
-
for (var
|
|
1022
|
-
s[n[
|
|
1019
|
+
for (var a = 0; a < n.length; ++a)
|
|
1020
|
+
s[n[a]] = +e[o + a + 1];
|
|
1023
1021
|
o += n.length, i.push(s);
|
|
1024
1022
|
}
|
|
1025
1023
|
return i;
|
|
1026
1024
|
}
|
|
1027
|
-
function
|
|
1028
|
-
var n = t == null ? [] : t.slice(), s = e == null ? [] : e.slice(), o =
|
|
1025
|
+
function De(t, e, i) {
|
|
1026
|
+
var n = t == null ? [] : t.slice(), s = e == null ? [] : e.slice(), o = E(i) === "object" ? i : {
|
|
1029
1027
|
excludeSegment: i,
|
|
1030
1028
|
snapEndsToInput: !0
|
|
1031
|
-
},
|
|
1029
|
+
}, a = o.excludeSegment, r = o.snapEndsToInput;
|
|
1032
1030
|
if (!n.length && !s.length)
|
|
1033
1031
|
return function() {
|
|
1034
1032
|
return [];
|
|
1035
1033
|
};
|
|
1036
|
-
var
|
|
1034
|
+
var l = (n.length === 0 || n[n.length - 1].type === "Z") && (s.length === 0 || s[s.length - 1].type === "Z");
|
|
1037
1035
|
n.length > 0 && n[n.length - 1].type === "Z" && n.pop(), s.length > 0 && s[s.length - 1].type === "Z" && s.pop(), n.length ? s.length || s.push(n[0]) : n.push(s[0]);
|
|
1038
|
-
var
|
|
1039
|
-
|
|
1040
|
-
return
|
|
1036
|
+
var y = Math.abs(s.length - n.length);
|
|
1037
|
+
y !== 0 && (s.length > n.length ? n = vt(n, s, a) : s.length < n.length && (s = vt(s, n, a))), n = n.map(function(h, c) {
|
|
1038
|
+
return Me(h, s[c]);
|
|
1041
1039
|
});
|
|
1042
|
-
var
|
|
1043
|
-
return
|
|
1040
|
+
var _ = n.map(function(h) {
|
|
1041
|
+
return ke({}, h);
|
|
1044
1042
|
});
|
|
1045
|
-
return
|
|
1043
|
+
return l && (_.push({
|
|
1046
1044
|
type: "Z"
|
|
1047
1045
|
}), n.push({
|
|
1048
1046
|
type: "Z"
|
|
1049
|
-
})), function(
|
|
1050
|
-
if (
|
|
1047
|
+
})), function(c) {
|
|
1048
|
+
if (c === 1 && r)
|
|
1051
1049
|
return e ?? [];
|
|
1052
|
-
if (
|
|
1050
|
+
if (c === 0)
|
|
1053
1051
|
return n;
|
|
1054
|
-
for (var
|
|
1055
|
-
var
|
|
1052
|
+
for (var v = 0; v < _.length; ++v) {
|
|
1053
|
+
var g = n[v], m = s[v], u = _[v], f = Ut(A[u.type]), d;
|
|
1056
1054
|
try {
|
|
1057
|
-
for (f.s(); !(
|
|
1058
|
-
var p =
|
|
1059
|
-
u[p] = (1 -
|
|
1055
|
+
for (f.s(); !(d = f.n()).done; ) {
|
|
1056
|
+
var p = d.value;
|
|
1057
|
+
u[p] = (1 - c) * g[p] + c * m[p], (p === "largeArcFlag" || p === "sweepFlag") && (u[p] = Math.round(u[p]));
|
|
1060
1058
|
}
|
|
1061
1059
|
} catch (b) {
|
|
1062
1060
|
f.e(b);
|
|
@@ -1064,63 +1062,63 @@ function Re(t, e, i) {
|
|
|
1064
1062
|
f.f();
|
|
1065
1063
|
}
|
|
1066
1064
|
}
|
|
1067
|
-
return
|
|
1065
|
+
return _;
|
|
1068
1066
|
};
|
|
1069
1067
|
}
|
|
1070
|
-
function
|
|
1071
|
-
var n =
|
|
1068
|
+
function Jt(t, e, i) {
|
|
1069
|
+
var n = xt(t), s = xt(e), o = E(i) === "object" ? i : {
|
|
1072
1070
|
excludeSegment: i,
|
|
1073
1071
|
snapEndsToInput: !0
|
|
1074
|
-
},
|
|
1072
|
+
}, a = o.excludeSegment, r = o.snapEndsToInput;
|
|
1075
1073
|
if (!n.length && !s.length)
|
|
1076
1074
|
return function() {
|
|
1077
1075
|
return "";
|
|
1078
1076
|
};
|
|
1079
|
-
var
|
|
1080
|
-
excludeSegment:
|
|
1077
|
+
var l = De(n, s, {
|
|
1078
|
+
excludeSegment: a,
|
|
1081
1079
|
snapEndsToInput: r
|
|
1082
1080
|
});
|
|
1083
|
-
return function(
|
|
1084
|
-
if (
|
|
1081
|
+
return function(_) {
|
|
1082
|
+
if (_ === 1 && r)
|
|
1085
1083
|
return e ?? "";
|
|
1086
|
-
var
|
|
1084
|
+
var h = l(_), c = "", v = Ut(h), g;
|
|
1087
1085
|
try {
|
|
1088
|
-
for (
|
|
1089
|
-
var
|
|
1090
|
-
|
|
1086
|
+
for (v.s(); !(g = v.n()).done; ) {
|
|
1087
|
+
var m = g.value;
|
|
1088
|
+
c += Ae(m);
|
|
1091
1089
|
}
|
|
1092
1090
|
} catch (u) {
|
|
1093
|
-
|
|
1091
|
+
v.e(u);
|
|
1094
1092
|
} finally {
|
|
1095
|
-
|
|
1093
|
+
v.f();
|
|
1096
1094
|
}
|
|
1097
|
-
return
|
|
1095
|
+
return c;
|
|
1098
1096
|
};
|
|
1099
1097
|
}
|
|
1100
|
-
var
|
|
1098
|
+
var x;
|
|
1101
1099
|
(function(t) {
|
|
1102
1100
|
t.Basis = "basis", t.BasisClosed = "basisClosed", t.BasisOpen = "basisOpen", t.Bundle = "bundle", t.Cardinal = "cardinal", t.CardinalClosed = "cardinalClosed", t.CardinalOpen = "cardinalOpen", t.CatmullRom = "catmullRom", t.CatmullRomClosed = "catmullRomClosed", t.CatmullRomOpen = "catmullRomOpen", t.Linear = "linear", t.LinearClosed = "linearClosed", t.MonotoneX = "monotoneX", t.MonotoneY = "monotoneY", t.Natural = "natural", t.Step = "step", t.StepAfter = "stepAfter", t.StepBefore = "stepBefore";
|
|
1103
|
-
})(
|
|
1104
|
-
const
|
|
1105
|
-
[
|
|
1106
|
-
[
|
|
1107
|
-
[
|
|
1108
|
-
[
|
|
1109
|
-
[
|
|
1110
|
-
[
|
|
1111
|
-
[
|
|
1112
|
-
[
|
|
1113
|
-
[
|
|
1114
|
-
[
|
|
1115
|
-
[
|
|
1116
|
-
[
|
|
1117
|
-
[
|
|
1118
|
-
[
|
|
1119
|
-
[
|
|
1120
|
-
[
|
|
1121
|
-
[
|
|
1122
|
-
[
|
|
1123
|
-
},
|
|
1101
|
+
})(x || (x = {}));
|
|
1102
|
+
const K = {
|
|
1103
|
+
[x.Basis]: oe,
|
|
1104
|
+
[x.BasisClosed]: re,
|
|
1105
|
+
[x.BasisOpen]: ae,
|
|
1106
|
+
[x.Bundle]: le,
|
|
1107
|
+
[x.Cardinal]: he,
|
|
1108
|
+
[x.CardinalClosed]: _e,
|
|
1109
|
+
[x.CardinalOpen]: ce,
|
|
1110
|
+
[x.CatmullRom]: ue,
|
|
1111
|
+
[x.CatmullRomClosed]: fe,
|
|
1112
|
+
[x.CatmullRomOpen]: pe,
|
|
1113
|
+
[x.Linear]: ot,
|
|
1114
|
+
[x.LinearClosed]: ye,
|
|
1115
|
+
[x.MonotoneX]: de,
|
|
1116
|
+
[x.MonotoneY]: ve,
|
|
1117
|
+
[x.Natural]: xe,
|
|
1118
|
+
[x.Step]: ge,
|
|
1119
|
+
[x.StepAfter]: me,
|
|
1120
|
+
[x.StepBefore]: be
|
|
1121
|
+
}, Ee = Object.assign(Object.assign({}, Et), { curveType: x.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Re = Pt`
|
|
1124
1122
|
:root {
|
|
1125
1123
|
--vis-line-cursor: default;
|
|
1126
1124
|
--vis-line-stroke-dasharray: none;
|
|
@@ -1130,54 +1128,54 @@ const W = {
|
|
|
1130
1128
|
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
1131
1129
|
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
1132
1130
|
}
|
|
1133
|
-
`,
|
|
1131
|
+
`, Be = T`
|
|
1134
1132
|
label: line-component;
|
|
1135
|
-
`,
|
|
1133
|
+
`, M = T`
|
|
1136
1134
|
label: line;
|
|
1137
1135
|
transition: opacity 200ms;
|
|
1138
1136
|
cursor: var(--vis-line-cursor);
|
|
1139
|
-
`,
|
|
1137
|
+
`, tt = T`
|
|
1140
1138
|
label: linePath;
|
|
1141
1139
|
fill: none;
|
|
1142
1140
|
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
1143
1141
|
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
1144
|
-
`,
|
|
1142
|
+
`, et = T`
|
|
1145
1143
|
label: lineSelectionHelper;
|
|
1146
1144
|
fill: none;
|
|
1147
1145
|
stroke: rgba(0, 0, 0, 0);
|
|
1148
1146
|
stroke-width: 8px;
|
|
1149
|
-
`,
|
|
1147
|
+
`, it = T`
|
|
1150
1148
|
opacity: 0.2;
|
|
1151
|
-
`,
|
|
1149
|
+
`, nt = T`
|
|
1152
1150
|
label: interpolated-path;
|
|
1153
1151
|
fill: none;
|
|
1154
1152
|
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
1155
1153
|
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
1156
1154
|
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
1157
|
-
`,
|
|
1155
|
+
`, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1158
1156
|
__proto__: null,
|
|
1159
|
-
dim:
|
|
1160
|
-
globalStyles:
|
|
1161
|
-
interpolatedPath:
|
|
1162
|
-
line:
|
|
1163
|
-
linePath:
|
|
1164
|
-
lineSelectionHelper:
|
|
1165
|
-
root:
|
|
1157
|
+
dim: it,
|
|
1158
|
+
globalStyles: Re,
|
|
1159
|
+
interpolatedPath: nt,
|
|
1160
|
+
line: M,
|
|
1161
|
+
linePath: tt,
|
|
1162
|
+
lineSelectionHelper: et,
|
|
1163
|
+
root: Be
|
|
1166
1164
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1167
|
-
class
|
|
1165
|
+
class Z extends Rt {
|
|
1168
1166
|
constructor(e) {
|
|
1169
|
-
super(), this._defaultConfig =
|
|
1170
|
-
[
|
|
1167
|
+
super(), this._defaultConfig = Ee, this.config = this._defaultConfig, this.curve = K[x.MonotoneX], this.events = {
|
|
1168
|
+
[Z.selectors.line]: {
|
|
1171
1169
|
mouseover: this._highlight.bind(this),
|
|
1172
1170
|
mouseleave: this._resetHighlight.bind(this)
|
|
1173
1171
|
}
|
|
1174
1172
|
}, e && this.setConfig(e);
|
|
1175
1173
|
}
|
|
1176
1174
|
get bleed() {
|
|
1177
|
-
const { config: { lineWidth: e } } = this, i = this.yScale.domain(), s = (this.yScale.range()[0] > this.yScale.range()[1] ?
|
|
1175
|
+
const { config: { lineWidth: e } } = this, i = this.yScale.domain(), s = (this.yScale.range()[0] > this.yScale.range()[1] ? q.North : q.South) === q.South, o = e > 3, a = e >= 10;
|
|
1178
1176
|
return {
|
|
1179
|
-
top: !
|
|
1180
|
-
bottom: !
|
|
1177
|
+
top: !a && (!s && i[1] === 0 || s && i[0] === 0) ? 0 : e / 2,
|
|
1178
|
+
bottom: !a && (!s && i[0] === 0 || s && i[1] === 0) ? 0 : e / 2,
|
|
1181
1179
|
left: o ? e / 2 : 0,
|
|
1182
1180
|
right: o ? e / 2 : 0
|
|
1183
1181
|
};
|
|
@@ -1185,41 +1183,41 @@ class Q extends Ht {
|
|
|
1185
1183
|
_render(e) {
|
|
1186
1184
|
super._render(e);
|
|
1187
1185
|
const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration;
|
|
1188
|
-
this.curve =
|
|
1189
|
-
const o =
|
|
1190
|
-
const
|
|
1191
|
-
const p =
|
|
1186
|
+
this.curve = K[i.curveType], this.lineGen = Ft().x((h) => h.x).y((h) => h.y).defined((h) => h.defined).curve(this.curve);
|
|
1187
|
+
const o = U(i.y) ? i.y : [i.y], a = n.map((h, c) => this.xScale(F(h, i.x, c))), r = o.map((h) => {
|
|
1188
|
+
const c = n.map((f, d) => {
|
|
1189
|
+
const p = F(f, h, d), b = (H(p) || p === null) && isFinite(p) ? p : i.fallbackValue, S = i.interpolateMissingData ? (H(p) || p === null) && isFinite(p) : isFinite(b);
|
|
1192
1190
|
return {
|
|
1193
|
-
x:
|
|
1191
|
+
x: a[d],
|
|
1194
1192
|
y: this.yScale(b ?? 0),
|
|
1195
|
-
defined:
|
|
1193
|
+
defined: S,
|
|
1196
1194
|
value: b
|
|
1197
1195
|
};
|
|
1198
|
-
}),
|
|
1199
|
-
let
|
|
1200
|
-
const
|
|
1201
|
-
!
|
|
1202
|
-
const b = p > 0 && !
|
|
1203
|
-
return
|
|
1204
|
-
}, []), u =
|
|
1196
|
+
}), v = c.reduce((f, d) => d.defined || f, !1);
|
|
1197
|
+
let g = !1;
|
|
1198
|
+
const m = c.reduce((f, d, p) => {
|
|
1199
|
+
!d.defined && isFinite(i.fallbackValue) && f.push(Object.assign(Object.assign({}, d), { defined: !0 })), !d.defined && !g && (g = !0);
|
|
1200
|
+
const b = p > 0 && !c[p - 1].defined || p < c.length - 1 && !c[p + 1].defined;
|
|
1201
|
+
return d.defined && b && (g || f.push(Object.assign(Object.assign({}, d), { defined: !1 })), f.push(d), g = !1), f;
|
|
1202
|
+
}, []), u = v && c.some((f) => f.value !== null);
|
|
1205
1203
|
return {
|
|
1206
|
-
values:
|
|
1207
|
-
defined:
|
|
1208
|
-
gaps:
|
|
1204
|
+
values: c,
|
|
1205
|
+
defined: v,
|
|
1206
|
+
gaps: m,
|
|
1209
1207
|
visible: u
|
|
1210
1208
|
};
|
|
1211
|
-
}),
|
|
1212
|
-
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
var
|
|
1216
|
-
const
|
|
1217
|
-
if (s && !
|
|
1218
|
-
const
|
|
1219
|
-
|
|
1220
|
-
} else
|
|
1221
|
-
f.attr("d",
|
|
1222
|
-
}),
|
|
1209
|
+
}), l = this.g.selectAll(`.${M}`).data(r), y = l.enter().append("g").attr("class", M);
|
|
1210
|
+
y.append("path").attr("class", tt).attr("stroke", (h, c) => j(n, i.color, c)).attr("stroke-opacity", 0).attr("stroke-width", i.lineWidth), y.append("path").attr("class", et).attr("d", this._emptyPath()), y.append("path").attr("class", nt).attr("d", this._emptyPath()).style("opacity", 0);
|
|
1211
|
+
const _ = y.merge(l);
|
|
1212
|
+
_.style("cursor", (h, c) => Ct(n, i.cursor, c)), _.each((h, c, v) => {
|
|
1213
|
+
var g;
|
|
1214
|
+
const m = At(v[c]), u = m.select(`.${tt}`), f = m.select(`.${et}`), d = m.select(`.${nt}`), p = h.visible, b = te(n, i.lineDashArray, c), S = D(u, s).attr("stroke", j(n, i.color, c)).attr("stroke-width", i.lineWidth).attr("stroke-opacity", p ? 1 : 0).style("stroke-dasharray", (g = b?.join(" ")) !== null && g !== void 0 ? g : null), C = h.values.some((N) => !N.defined), O = this.lineGen(h.values);
|
|
1215
|
+
if (s && !C) {
|
|
1216
|
+
const N = u.attr("d") || this._emptyPath(), P = O || this._emptyPath();
|
|
1217
|
+
S.attrTween("d", () => Jt(N, P));
|
|
1218
|
+
} else h.visible && S.attr("d", O);
|
|
1219
|
+
f.attr("d", O).attr("visibility", p ? null : "hidden"), C && i.interpolateMissingData ? D(d, s).attr("d", this.lineGen(h.gaps)).attr("stroke", j(n, i.color, c)).attr("stroke-width", i.lineWidth - 1).style("opacity", 1) : d.transition().duration(s).style("opacity", 0);
|
|
1220
|
+
}), D(l.exit(), s).style("opacity", 0).remove();
|
|
1223
1221
|
}
|
|
1224
1222
|
_emptyPath() {
|
|
1225
1223
|
const e = this.xScale.range(), i = this.yScale.range();
|
|
@@ -1227,17 +1225,17 @@ class Q extends Ht {
|
|
|
1227
1225
|
}
|
|
1228
1226
|
_highlight(e) {
|
|
1229
1227
|
const { config: i } = this;
|
|
1230
|
-
i.highlightOnHover && this.g.selectAll(`.${
|
|
1228
|
+
i.highlightOnHover && this.g.selectAll(`.${M}`).classed(it, (n) => n !== e);
|
|
1231
1229
|
}
|
|
1232
1230
|
_resetHighlight() {
|
|
1233
1231
|
const { config: e } = this;
|
|
1234
|
-
e.highlightOnHover && this.g.selectAll(`.${
|
|
1232
|
+
e.highlightOnHover && this.g.selectAll(`.${M}`).classed(it, !1);
|
|
1235
1233
|
}
|
|
1236
1234
|
}
|
|
1237
|
-
|
|
1238
|
-
const
|
|
1235
|
+
Z.selectors = $e;
|
|
1236
|
+
const He = Object.assign(Object.assign({}, Et), { color: void 0, curveType: x.MonotoneX, baseline: () => 0, opacity: 1, cursor: null, minHeight1Px: !1, minHeight: void 0 }), Kt = T`
|
|
1239
1237
|
label: area-component;
|
|
1240
|
-
`,
|
|
1238
|
+
`, Le = Pt`
|
|
1241
1239
|
:root {
|
|
1242
1240
|
--vis-area-cursor: default;
|
|
1243
1241
|
--vis-area-fill-opacity: 1;
|
|
@@ -1252,11 +1250,11 @@ const $e = Object.assign(Object.assign({}, Lt), { color: void 0, curveType: m.Mo
|
|
|
1252
1250
|
--vis-dark-area-stroke-color: none;
|
|
1253
1251
|
}
|
|
1254
1252
|
|
|
1255
|
-
body.theme-dark ${`.${
|
|
1253
|
+
body.theme-dark ${`.${Kt}`} {
|
|
1256
1254
|
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
1257
1255
|
}
|
|
1258
1256
|
|
|
1259
|
-
`,
|
|
1257
|
+
`, st = T`
|
|
1260
1258
|
label: area;
|
|
1261
1259
|
cursor: var(--vis-area-cursor);
|
|
1262
1260
|
fill-opacity: var(--vis-area-fill-opacity);
|
|
@@ -1269,71 +1267,42 @@ const $e = Object.assign(Object.assign({}, Lt), { color: void 0, curveType: m.Mo
|
|
|
1269
1267
|
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
1270
1268
|
stroke-width: var(--vis-area-hover-stroke-width);
|
|
1271
1269
|
}
|
|
1272
|
-
`,
|
|
1273
|
-
label: areaLinePath;
|
|
1274
|
-
fill: none;
|
|
1275
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
1276
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
1277
|
-
`, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1270
|
+
`, Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1278
1271
|
__proto__: null,
|
|
1279
|
-
area:
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
root: ie
|
|
1272
|
+
area: st,
|
|
1273
|
+
globalStyles: Le,
|
|
1274
|
+
root: Kt
|
|
1283
1275
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1284
|
-
class
|
|
1276
|
+
class W extends Rt {
|
|
1285
1277
|
constructor(e) {
|
|
1286
|
-
super(), this._defaultConfig =
|
|
1287
|
-
[
|
|
1278
|
+
super(), this._defaultConfig = He, this.config = this._defaultConfig, this.stacked = !0, this.events = {
|
|
1279
|
+
[W.selectors.area]: {}
|
|
1288
1280
|
}, e && this.setConfig(e), this.stacked = Array.isArray(this.config.y);
|
|
1289
1281
|
}
|
|
1290
|
-
get bleed() {
|
|
1291
|
-
const { config: { line: e, lineWidth: i } } = this;
|
|
1292
|
-
if (!e)
|
|
1293
|
-
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
1294
|
-
const n = this.yScale.domain(), o = (this.yScale.range()[0] > this.yScale.range()[1] ? D.North : D.South) === D.South, l = i > 3, r = i >= 10;
|
|
1295
|
-
return {
|
|
1296
|
-
top: !r && (!o && n[1] === 0 || o && n[0] === 0) ? 0 : i / 2,
|
|
1297
|
-
bottom: !r && (!o && n[0] === 0 || o && n[1] === 0) ? 0 : i / 2,
|
|
1298
|
-
left: l ? i / 2 : 0,
|
|
1299
|
-
right: l ? i / 2 : 0
|
|
1300
|
-
};
|
|
1301
|
-
}
|
|
1302
1282
|
_render(e) {
|
|
1303
1283
|
super._render(e);
|
|
1304
|
-
const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration, o =
|
|
1305
|
-
this._areaGen =
|
|
1306
|
-
const
|
|
1307
|
-
this._prevNegative =
|
|
1308
|
-
const
|
|
1284
|
+
const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration, o = K[i.curveType];
|
|
1285
|
+
this._areaGen = se().x((u) => u.x).y0((u) => u.y0).y1((u) => u.y1).curve(o);
|
|
1286
|
+
const a = U(i.y) ? i.y : [i.y], r = n.map((u, f) => this.xScale(F(u, i.x, f))), l = ee(n, i.baseline, a, this._prevNegative);
|
|
1287
|
+
this._prevNegative = l.map((u) => !!u.isMostlyNegative);
|
|
1288
|
+
const y = [], _ = l.map((u) => u.map((f, d) => {
|
|
1309
1289
|
var p, b;
|
|
1310
|
-
const
|
|
1311
|
-
let
|
|
1312
|
-
return (i.minHeight || i.minHeight1Px) && Math.abs(
|
|
1313
|
-
x:
|
|
1314
|
-
y0:
|
|
1315
|
-
y1:
|
|
1290
|
+
const S = r[d], C = this.yScale(f[0]), O = this.yScale(f[1]), N = O > C, P = y[d] || 0, R = N ? C + P : C - P, B = N ? O + P : O - P;
|
|
1291
|
+
let $ = 0;
|
|
1292
|
+
return (i.minHeight || i.minHeight1Px) && Math.abs(B - R) < ((p = i.minHeight) !== null && p !== void 0 ? p : 1) && ($ = ((b = i.minHeight) !== null && b !== void 0 ? b : 1) - Math.abs(B - R), y[d] = P + $), {
|
|
1293
|
+
x: S,
|
|
1294
|
+
y0: R,
|
|
1295
|
+
y1: N ? B + $ : B - $
|
|
1316
1296
|
};
|
|
1317
|
-
})),
|
|
1318
|
-
s ?
|
|
1319
|
-
const b =
|
|
1320
|
-
return
|
|
1321
|
-
}) :
|
|
1322
|
-
}
|
|
1323
|
-
_renderLines(e, i) {
|
|
1324
|
-
var n;
|
|
1325
|
-
const { config: s, datamodel: { data: o } } = this, l = i.length - 1, r = [...i].reverse(), h = (n = s.lineColor) !== null && n !== void 0 ? n : s.color, c = this.g.selectAll(`.${lt}`).data(r), y = this.g.selectAll(`.${$}`).nodes(), a = c.enter().insert("path", (d, x) => y[x + 1]).attr("class", lt).attr("stroke", (d, x) => O(o, h, l - x)).attr("stroke-width", s.lineWidth).attr("stroke-opacity", 0), _ = C(a.merge(c), e).attr("stroke", (d, x) => O(o, h, l - x)).attr("stroke-width", s.lineWidth).attr("stroke-opacity", 1).attr("cursor", (d, x) => tt(o, s.cursor, l - x)).style("stroke-dasharray", (d, x) => {
|
|
1326
|
-
var u, f;
|
|
1327
|
-
return (f = (u = Et(o, s.lineDashArray, x)) === null || u === void 0 ? void 0 : u.join(" ")) !== null && f !== void 0 ? f : null;
|
|
1328
|
-
}), g = W[s.curveType];
|
|
1329
|
-
this._lineGen = ct().x((d) => d.x).y((d) => d.y1).curve(g), e ? _.attrTween("d", (x, u, f) => {
|
|
1330
|
-
const v = et(f[u]).attr("d") || this._emptyLinePath(), p = this._lineGen(x) || this._emptyLinePath();
|
|
1331
|
-
return nt(v, p);
|
|
1332
|
-
}) : _.attr("d", (d) => this._lineGen(d) || this._emptyLinePath()), C(c.exit(), e).style("opacity", 0).remove();
|
|
1297
|
+
})), h = _.length - 1, c = _.reverse(), v = this.g.selectAll(`.${st}`).data(c), g = v.enter().append("path").attr("class", st).attr("d", (u) => this._areaGen(u) || this._emptyPath()).style("opacity", 0).style("fill", (u, f) => j(n, i.color, h - f)), m = D(g.merge(v), s).style("opacity", (u, f) => u.some((p) => p.y0 - p.y1 !== 0) ? F(n, i.opacity, h - f) : 0).style("fill", (u, f) => j(n, i.color, h - f)).style("cursor", (u, f) => Ct(n, i.cursor, h - f));
|
|
1298
|
+
s ? m.attrTween("d", (f, d, p) => {
|
|
1299
|
+
const b = At(p[d]).attr("d"), S = this._areaGen(f) || this._emptyPath();
|
|
1300
|
+
return Jt(b, S);
|
|
1301
|
+
}) : m.attr("d", (u) => this._areaGen(u) || this._emptyPath()), D(v.exit(), s).style("opacity", 0).remove();
|
|
1333
1302
|
}
|
|
1334
1303
|
getYDataExtent(e) {
|
|
1335
|
-
const { config: i, datamodel: n } = this, s =
|
|
1336
|
-
return
|
|
1304
|
+
const { config: i, datamodel: n } = this, s = U(i.y) ? i.y : [i.y], o = e ? ie(n.data, this.xScale.domain(), i.x) : n.data;
|
|
1305
|
+
return ne(o, i.baseline, ...s);
|
|
1337
1306
|
}
|
|
1338
1307
|
_emptyPath() {
|
|
1339
1308
|
const e = this.xScale.range(), i = this.yScale.domain(), n = this.yScale((i[0] + i[1]) / 2), s = n;
|
|
@@ -1342,29 +1311,20 @@ class U extends Ht {
|
|
|
1342
1311
|
{ y0: n, y1: s, x: e[1] }
|
|
1343
1312
|
]);
|
|
1344
1313
|
}
|
|
1345
|
-
_emptyLinePath() {
|
|
1346
|
-
const e = this.xScale.range(), i = this.yScale.range();
|
|
1347
|
-
return `M${e[0]},${i[0]} L${e[1]},${i[0]}`;
|
|
1348
|
-
}
|
|
1349
1314
|
}
|
|
1350
|
-
|
|
1351
|
-
const
|
|
1315
|
+
W.selectors = Fe;
|
|
1316
|
+
const Ie = { "data-vis-component": "" }, Ze = /* @__PURE__ */ gt({
|
|
1352
1317
|
__name: "index",
|
|
1353
1318
|
props: {
|
|
1354
|
-
color: {
|
|
1319
|
+
color: {},
|
|
1355
1320
|
curveType: {},
|
|
1356
|
-
baseline: {
|
|
1357
|
-
opacity: {
|
|
1358
|
-
cursor: {
|
|
1359
|
-
line: { type: Boolean },
|
|
1360
|
-
lineColor: { type: [Function, String, Array, null] },
|
|
1361
|
-
lineWidth: {},
|
|
1362
|
-
lineDashArray: { type: [Function, Array, null] },
|
|
1321
|
+
baseline: {},
|
|
1322
|
+
opacity: {},
|
|
1323
|
+
cursor: {},
|
|
1363
1324
|
minHeight1Px: { type: Boolean },
|
|
1364
1325
|
minHeight: {},
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
y: { type: [Function, Number, null, Array] },
|
|
1326
|
+
x: {},
|
|
1327
|
+
y: {},
|
|
1368
1328
|
id: { type: Function },
|
|
1369
1329
|
xScale: { type: [Object, Function] },
|
|
1370
1330
|
yScale: { type: [Object, Function] },
|
|
@@ -1375,38 +1335,38 @@ const Xe = { "data-vis-component": "" }, qe = /* @__PURE__ */ wt({
|
|
|
1375
1335
|
data: {}
|
|
1376
1336
|
},
|
|
1377
1337
|
setup(t, { expose: e }) {
|
|
1378
|
-
const i =
|
|
1379
|
-
return
|
|
1380
|
-
|
|
1338
|
+
const i = bt(Mt), n = t, s = mt(() => i.data.value ?? n.data), o = jt(n), a = kt();
|
|
1339
|
+
return St(() => {
|
|
1340
|
+
wt(() => {
|
|
1381
1341
|
var r;
|
|
1382
|
-
|
|
1342
|
+
a.value = new W(o.value), (r = a.value) == null || r.setData(s.value), i.update(a.value);
|
|
1383
1343
|
});
|
|
1384
|
-
}),
|
|
1344
|
+
}), Tt(() => {
|
|
1385
1345
|
var r;
|
|
1386
|
-
(r =
|
|
1387
|
-
}),
|
|
1388
|
-
var
|
|
1389
|
-
|
|
1390
|
-
}),
|
|
1346
|
+
(r = a.value) == null || r.destroy(), i.destroy();
|
|
1347
|
+
}), L(o, (r, l) => {
|
|
1348
|
+
var y;
|
|
1349
|
+
Dt(r, l) || (y = a.value) == null || y.setConfig(o.value);
|
|
1350
|
+
}), L(s, () => {
|
|
1391
1351
|
var r;
|
|
1392
|
-
(r =
|
|
1352
|
+
(r = a.value) == null || r.setData(s.value);
|
|
1393
1353
|
}), e({
|
|
1394
|
-
component:
|
|
1395
|
-
}), (r,
|
|
1354
|
+
component: a
|
|
1355
|
+
}), (r, l) => (Ot(), Nt("div", Ie));
|
|
1396
1356
|
}
|
|
1397
|
-
}),
|
|
1357
|
+
}), Xe = { "data-vis-component": "" }, We = /* @__PURE__ */ gt({
|
|
1398
1358
|
__name: "index",
|
|
1399
1359
|
props: {
|
|
1400
|
-
color: {
|
|
1360
|
+
color: {},
|
|
1401
1361
|
curveType: {},
|
|
1402
1362
|
lineWidth: {},
|
|
1403
|
-
lineDashArray: {
|
|
1363
|
+
lineDashArray: {},
|
|
1404
1364
|
fallbackValue: {},
|
|
1405
1365
|
highlightOnHover: { type: Boolean },
|
|
1406
|
-
cursor: {
|
|
1366
|
+
cursor: {},
|
|
1407
1367
|
interpolateMissingData: { type: Boolean },
|
|
1408
|
-
x: {
|
|
1409
|
-
y: {
|
|
1368
|
+
x: {},
|
|
1369
|
+
y: {},
|
|
1410
1370
|
id: { type: Function },
|
|
1411
1371
|
xScale: { type: [Object, Function] },
|
|
1412
1372
|
yScale: { type: [Object, Function] },
|
|
@@ -1417,27 +1377,27 @@ const Xe = { "data-vis-component": "" }, qe = /* @__PURE__ */ wt({
|
|
|
1417
1377
|
data: {}
|
|
1418
1378
|
},
|
|
1419
1379
|
setup(t, { expose: e }) {
|
|
1420
|
-
const i =
|
|
1421
|
-
return
|
|
1422
|
-
|
|
1380
|
+
const i = bt(Mt), n = t, s = mt(() => i.data.value ?? n.data), o = jt(n), a = kt();
|
|
1381
|
+
return St(() => {
|
|
1382
|
+
wt(() => {
|
|
1423
1383
|
var r;
|
|
1424
|
-
|
|
1384
|
+
a.value = new Z(o.value), (r = a.value) == null || r.setData(s.value), i.update(a.value);
|
|
1425
1385
|
});
|
|
1426
|
-
}),
|
|
1386
|
+
}), Tt(() => {
|
|
1427
1387
|
var r;
|
|
1428
|
-
(r =
|
|
1429
|
-
}),
|
|
1430
|
-
var
|
|
1431
|
-
|
|
1432
|
-
}),
|
|
1388
|
+
(r = a.value) == null || r.destroy(), i.destroy();
|
|
1389
|
+
}), L(o, (r, l) => {
|
|
1390
|
+
var y;
|
|
1391
|
+
Dt(r, l) || (y = a.value) == null || y.setConfig(o.value);
|
|
1392
|
+
}), L(s, () => {
|
|
1433
1393
|
var r;
|
|
1434
|
-
(r =
|
|
1394
|
+
(r = a.value) == null || r.setData(s.value);
|
|
1435
1395
|
}), e({
|
|
1436
|
-
component:
|
|
1437
|
-
}), (r,
|
|
1396
|
+
component: a
|
|
1397
|
+
}), (r, l) => (Ot(), Nt("div", Xe));
|
|
1438
1398
|
}
|
|
1439
1399
|
});
|
|
1440
1400
|
export {
|
|
1441
|
-
|
|
1442
|
-
|
|
1401
|
+
Ze as P,
|
|
1402
|
+
We as S
|
|
1443
1403
|
};
|