@marimo-team/islands 0.14.8-dev19 → 0.14.8-dev21
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/{ConnectedDataExplorerComponent-C7ZUNt37.js → ConnectedDataExplorerComponent-CIKVFyEK.js} +2 -2
- package/dist/{ImageComparisonComponent-DZDRcHFY.js → ImageComparisonComponent-2_mvNMDj.js} +1 -1
- package/dist/VegaLite-4HveKhfS.js +36029 -0
- package/dist/{_baseUniq-BzHghS1u.js → _baseUniq-DK93QInS.js} +70 -70
- package/dist/{any-language-editor-BCb2v34j.js → any-language-editor-Dqs3hkh-.js} +1 -1
- package/dist/arc-BXrety1g.js +83 -0
- package/dist/{architectureDiagram-IEHRJDOE-B7iONzmg.js → architectureDiagram-IEHRJDOE-BKlxF7se.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-CZ7B1WVe.js → blockDiagram-JOT3LUYC-C1Xm0XTZ.js} +5 -5
- package/dist/{c4Diagram-VJAJSXHY-Dcnvc4YK.js → c4Diagram-VJAJSXHY-C7rT425g.js} +2 -2
- package/dist/{channel-hDZ13A2O.js → channel-xZj6E-mJ.js} +1 -1
- package/dist/{chunk-4BMEZGHF-DqVUMgdD.js → chunk-4BMEZGHF-BXotumNq.js} +1 -1
- package/dist/{chunk-A2AXSNBT-8e3qBHUm.js → chunk-A2AXSNBT-DHeCLbwY.js} +2 -2
- package/dist/{chunk-AEK57VVT-Crc-zWQj.js → chunk-AEK57VVT-BKc7NKa0.js} +2 -2
- package/dist/{chunk-D6G4REZN-nd5ZGVJg.js → chunk-D6G4REZN-DdhdhP6J.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-WfwR1UIX.js → chunk-RZ5BOZE2-BFvMQe-j.js} +1 -1
- package/dist/{chunk-XZIHB7SX-eczcJ1vJ.js → chunk-XZIHB7SX-CJ4xl08D.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-NZfO5AVp.js → classDiagram-GIVACNV2-DwYfS79-.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-NZfO5AVp.js → classDiagram-v2-COTLJTTW-DwYfS79-.js} +2 -2
- package/dist/{clone-D3FLvY4q.js → clone-rjjo36_T.js} +1 -1
- package/dist/colors-BD7LS4qt.js +7 -0
- package/dist/{dagre-OKDRZEBW-DZLSEN8N.js → dagre-OKDRZEBW-B3ZUT07z.js} +6 -6
- package/dist/{data-editor-eH0Vx_Ij.js → data-editor-BV13-AvQ.js} +1 -1
- package/dist/{diagram-SSKATNLV-C2wtcOHI.js → diagram-SSKATNLV-BSDYZP_p.js} +3 -3
- package/dist/{diagram-VNBRO52H-buF5kva-.js → diagram-VNBRO52H-Fnp_GpYO.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-BRfCI-Mj.js → erDiagram-Q7BY3M3F-BbpOxb-V.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-wBdCcAka.js → flowDiagram-4HSFHLVR-BU2iqB5k.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-B01k-9UE.js → ganttDiagram-APWFNJXF-CRs9upQ5.js} +282 -280
- package/dist/{gitGraphDiagram-7IBYFJ6S-Cj25wny2.js → gitGraphDiagram-7IBYFJ6S-DwwA4JtF.js} +4 -4
- package/dist/{graph-BFouWpLE.js → graph-CqWR-IH1.js} +3 -3
- package/dist/{index-LMqdruQ-.js → index-C3RZrcIM.js} +1 -1
- package/dist/{index-D-9U5sYa.js → index-D1HY5xjT.js} +3 -3
- package/dist/{index-Bg3QUPmP.js → index-DdVF89d9.js} +1 -1
- package/dist/{index-BO3kh0BM.js → index-DdraxiEu.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-DtEg1dRg.js → infoDiagram-PH2N3AL5-1k7uGX46.js} +2 -2
- package/dist/init-DxzjmxYy.js +32 -0
- package/dist/{journeyDiagram-U35MCT3I-Ksshlivy.js → journeyDiagram-U35MCT3I-Dpi1JSq2.js} +3 -3
- package/dist/{kanban-definition-NDS4AKOZ-BpT4kyEe.js → kanban-definition-NDS4AKOZ-CKvzoLX4.js} +1 -1
- package/dist/{layout-CQ3anPtU.js → layout-BldMzBeT.js} +55 -55
- package/dist/linear-D8457tpx.js +211 -0
- package/dist/{main-BlJnYpay.js → main-AdvRoC03.js} +51942 -74124
- package/dist/main.js +1 -1
- package/dist/{mermaid-Ddvgb_0_.js → mermaid-dgQIP0_c.js} +339 -338
- package/dist/min-ICV4hAE9.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-CCJPWvq8.js → mindmap-definition-ALO5MXBD-CEOv2JKB.js} +2 -2
- package/dist/ordinal-CYN5qNoq.js +77 -0
- package/dist/{pieDiagram-IB7DONF6-B_Pa8tIn.js → pieDiagram-IB7DONF6-DPhqJqsw.js} +17 -15
- package/dist/{quadrantDiagram-7GDLP6J5-C-Q7o9Yw.js → quadrantDiagram-7GDLP6J5-Cq1lOq3h.js} +2 -2
- package/dist/{radar-MK3ICKWK-fBfcDmYz.js → radar-MK3ICKWK-DzKpgYou.js} +5 -5
- package/dist/range-DdOGybNB.js +9 -0
- package/dist/{react-plotly-nXJ3VUWg.js → react-plotly-96P-Y7f_.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-X3AwYzVz.js → requirementDiagram-KVF5MWMF-B1wGIWzW.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-mb0Waj5Y.js → sankeyDiagram-QLVOVGJD-KKLYWNHG.js} +69 -68
- package/dist/{sequenceDiagram-X6HHIX6F-Benwk5SQ.js → sequenceDiagram-X6HHIX6F-BsMGq6wR.js} +3 -3
- package/dist/{slides-component-C2zZpZew.js → slides-component-CdQpRlk4.js} +1 -1
- package/dist/{stateDiagram-DGXRK772-Bj82jp3H.js → stateDiagram-DGXRK772-CH6ODo83.js} +5 -5
- package/dist/{stateDiagram-v2-YXO3MK2T-BEVOGugG.js → stateDiagram-v2-YXO3MK2T-B2ncmTl5.js} +2 -2
- package/dist/time-LXtJoASL.js +195 -0
- package/dist/{timeline-definition-BDJGKUSR-B2bH-gHg.js → timeline-definition-BDJGKUSR-DwRQvUFh.js} +2 -2
- package/dist/timer-BYwnU4DF.js +1475 -0
- package/dist/{vega-component-Di0LS9eg.js → vega-component-DZHc38nn.js} +75 -75
- package/dist/{xychartDiagram-VJFVF3MP-D4X1H71-.js → xychartDiagram-VJFVF3MP-BQnQ1xbv.js} +10 -6
- package/package.json +1 -1
- package/dist/VegaLite-ChsFHneq.js +0 -16431
- package/dist/min-CD1Cy68N.js +0 -80
|
@@ -0,0 +1,1475 @@
|
|
|
1
|
+
function N(t9) {
|
|
2
|
+
return function() {
|
|
3
|
+
return t9;
|
|
4
|
+
};
|
|
5
|
+
}
|
|
6
|
+
const Li = Math.abs, Di = Math.atan2, Fi = Math.cos, Zi = Math.max, Gi = Math.min, Ki = Math.sin, Qi = Math.sqrt, wt = 1e-12, rt = Math.PI, mt = rt / 2, Vi = 2 * rt;
|
|
7
|
+
function Wi(t9) {
|
|
8
|
+
return t9 > 1 ? 0 : t9 < -1 ? rt : Math.acos(t9);
|
|
9
|
+
}
|
|
10
|
+
function Ji(t9) {
|
|
11
|
+
return t9 >= 1 ? mt : t9 <= -1 ? -mt : Math.asin(t9);
|
|
12
|
+
}
|
|
13
|
+
const it = Math.PI, nt = 2 * it, w = 1e-6, hi = nt - w;
|
|
14
|
+
function It(t9) {
|
|
15
|
+
this._ += t9[0];
|
|
16
|
+
for (let i = 1, n = t9.length; i < n; ++i)
|
|
17
|
+
this._ += arguments[i] + t9[i];
|
|
18
|
+
}
|
|
19
|
+
function ri(t9) {
|
|
20
|
+
let i = Math.floor(t9);
|
|
21
|
+
if (!(i >= 0)) throw new Error(`invalid digits: ${t9}`);
|
|
22
|
+
if (i > 15) return It;
|
|
23
|
+
const n = 10 ** i;
|
|
24
|
+
return function(e) {
|
|
25
|
+
this._ += e[0];
|
|
26
|
+
for (let s = 1, o = e.length; s < o; ++s)
|
|
27
|
+
this._ += Math.round(arguments[s] * n) / n + e[s];
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
class at {
|
|
31
|
+
constructor(i) {
|
|
32
|
+
this._x0 = this._y0 = // start of current subpath
|
|
33
|
+
this._x1 = this._y1 = null, this._ = "", this._append = i == null ? It : ri(i);
|
|
34
|
+
}
|
|
35
|
+
moveTo(i, n) {
|
|
36
|
+
this._append`M${this._x0 = this._x1 = +i},${this._y0 = this._y1 = +n}`;
|
|
37
|
+
}
|
|
38
|
+
closePath() {
|
|
39
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
40
|
+
}
|
|
41
|
+
lineTo(i, n) {
|
|
42
|
+
this._append`L${this._x1 = +i},${this._y1 = +n}`;
|
|
43
|
+
}
|
|
44
|
+
quadraticCurveTo(i, n, e, s) {
|
|
45
|
+
this._append`Q${+i},${+n},${this._x1 = +e},${this._y1 = +s}`;
|
|
46
|
+
}
|
|
47
|
+
bezierCurveTo(i, n, e, s, o, h) {
|
|
48
|
+
this._append`C${+i},${+n},${+e},${+s},${this._x1 = +o},${this._y1 = +h}`;
|
|
49
|
+
}
|
|
50
|
+
arcTo(i, n, e, s, o) {
|
|
51
|
+
if (i = +i, n = +n, e = +e, s = +s, o = +o, o < 0) throw new Error(`negative radius: ${o}`);
|
|
52
|
+
let h = this._x1, r = this._y1, a = e - i, l = s - n, _ = h - i, c = r - n, f = _ * _ + c * c;
|
|
53
|
+
if (this._x1 === null)
|
|
54
|
+
this._append`M${this._x1 = i},${this._y1 = n}`;
|
|
55
|
+
else if (f > w) if (!(Math.abs(c * a - l * _) > w) || !o)
|
|
56
|
+
this._append`L${this._x1 = i},${this._y1 = n}`;
|
|
57
|
+
else {
|
|
58
|
+
let u = e - h, d = s - r, y = a * a + l * l, X = u * u + d * d, dt = Math.sqrt(y), yt = Math.sqrt(f), gt = o * Math.tan((it - Math.acos((y + f - X) / (2 * dt * yt))) / 2), W = gt / yt, bt = gt / dt;
|
|
59
|
+
Math.abs(W - 1) > w && this._append`L${i + W * _},${n + W * c}`, this._append`A${o},${o},0,0,${+(c * u > _ * d)},${this._x1 = i + bt * a},${this._y1 = n + bt * l}`;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
arc(i, n, e, s, o, h) {
|
|
63
|
+
if (i = +i, n = +n, e = +e, h = !!h, e < 0) throw new Error(`negative radius: ${e}`);
|
|
64
|
+
let r = e * Math.cos(s), a = e * Math.sin(s), l = i + r, _ = n + a, c = 1 ^ h, f = h ? s - o : o - s;
|
|
65
|
+
this._x1 === null ? this._append`M${l},${_}` : (Math.abs(this._x1 - l) > w || Math.abs(this._y1 - _) > w) && this._append`L${l},${_}`, e && (f < 0 && (f = f % nt + nt), f > hi ? this._append`A${e},${e},0,1,${c},${i - r},${n - a}A${e},${e},0,1,${c},${this._x1 = l},${this._y1 = _}` : f > w && this._append`A${e},${e},0,${+(f >= it)},${c},${this._x1 = i + e * Math.cos(o)},${this._y1 = n + e * Math.sin(o)}`);
|
|
66
|
+
}
|
|
67
|
+
rect(i, n, e, s) {
|
|
68
|
+
this._append`M${this._x0 = this._x1 = +i},${this._y0 = this._y1 = +n}h${e = +e}v${+s}h${-e}Z`;
|
|
69
|
+
}
|
|
70
|
+
toString() {
|
|
71
|
+
return this._;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function ai() {
|
|
75
|
+
return new at();
|
|
76
|
+
}
|
|
77
|
+
ai.prototype = at.prototype;
|
|
78
|
+
function _i(t9) {
|
|
79
|
+
let i = 3;
|
|
80
|
+
return t9.digits = function(n) {
|
|
81
|
+
if (!arguments.length) return i;
|
|
82
|
+
if (n == null)
|
|
83
|
+
i = null;
|
|
84
|
+
else {
|
|
85
|
+
const e = Math.floor(n);
|
|
86
|
+
if (!(e >= 0)) throw new RangeError(`invalid digits: ${n}`);
|
|
87
|
+
i = e;
|
|
88
|
+
}
|
|
89
|
+
return t9;
|
|
90
|
+
}, () => new at(i);
|
|
91
|
+
}
|
|
92
|
+
function li(t9) {
|
|
93
|
+
return typeof t9 == "object" && "length" in t9 ? t9 : Array.from(t9);
|
|
94
|
+
}
|
|
95
|
+
function Ot(t9) {
|
|
96
|
+
this._context = t9;
|
|
97
|
+
}
|
|
98
|
+
Ot.prototype = {
|
|
99
|
+
areaStart: function() {
|
|
100
|
+
this._line = 0;
|
|
101
|
+
},
|
|
102
|
+
areaEnd: function() {
|
|
103
|
+
this._line = NaN;
|
|
104
|
+
},
|
|
105
|
+
lineStart: function() {
|
|
106
|
+
this._point = 0;
|
|
107
|
+
},
|
|
108
|
+
lineEnd: function() {
|
|
109
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
110
|
+
},
|
|
111
|
+
point: function(t9, i) {
|
|
112
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
113
|
+
case 0:
|
|
114
|
+
this._point = 1, this._line ? this._context.lineTo(t9, i) : this._context.moveTo(t9, i);
|
|
115
|
+
break;
|
|
116
|
+
case 1:
|
|
117
|
+
this._point = 2;
|
|
118
|
+
// falls through
|
|
119
|
+
default:
|
|
120
|
+
this._context.lineTo(t9, i);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
function ci(t9) {
|
|
126
|
+
return new Ot(t9);
|
|
127
|
+
}
|
|
128
|
+
function fi(t9) {
|
|
129
|
+
return t9[0];
|
|
130
|
+
}
|
|
131
|
+
function ui(t9) {
|
|
132
|
+
return t9[1];
|
|
133
|
+
}
|
|
134
|
+
function Ui(t9, i) {
|
|
135
|
+
var n = N(true), e = null, s = ci, o = null, h = _i(r);
|
|
136
|
+
t9 = typeof t9 == "function" ? t9 : t9 === void 0 ? fi : N(t9), i = typeof i == "function" ? i : i === void 0 ? ui : N(i);
|
|
137
|
+
function r(a) {
|
|
138
|
+
var l, _ = (a = li(a)).length, c, f = false, u;
|
|
139
|
+
for (e == null && (o = s(u = h())), l = 0; l <= _; ++l)
|
|
140
|
+
!(l < _ && n(c = a[l], l, a)) === f && ((f = !f) ? o.lineStart() : o.lineEnd()), f && o.point(+t9(c, l, a), +i(c, l, a));
|
|
141
|
+
if (u) return o = null, u + "" || null;
|
|
142
|
+
}
|
|
143
|
+
return r.x = function(a) {
|
|
144
|
+
return arguments.length ? (t9 = typeof a == "function" ? a : N(+a), r) : t9;
|
|
145
|
+
}, r.y = function(a) {
|
|
146
|
+
return arguments.length ? (i = typeof a == "function" ? a : N(+a), r) : i;
|
|
147
|
+
}, r.defined = function(a) {
|
|
148
|
+
return arguments.length ? (n = typeof a == "function" ? a : N(!!a), r) : n;
|
|
149
|
+
}, r.curve = function(a) {
|
|
150
|
+
return arguments.length ? (s = a, e != null && (o = s(e)), r) : s;
|
|
151
|
+
}, r.context = function(a) {
|
|
152
|
+
return arguments.length ? (a == null ? e = o = null : o = s(e = a), r) : e;
|
|
153
|
+
}, r;
|
|
154
|
+
}
|
|
155
|
+
function b() {
|
|
156
|
+
}
|
|
157
|
+
function Y(t9, i, n) {
|
|
158
|
+
t9._context.bezierCurveTo(
|
|
159
|
+
(2 * t9._x0 + t9._x1) / 3,
|
|
160
|
+
(2 * t9._y0 + t9._y1) / 3,
|
|
161
|
+
(t9._x0 + 2 * t9._x1) / 3,
|
|
162
|
+
(t9._y0 + 2 * t9._y1) / 3,
|
|
163
|
+
(t9._x0 + 4 * t9._x1 + i) / 6,
|
|
164
|
+
(t9._y0 + 4 * t9._y1 + n) / 6
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
function K(t9) {
|
|
168
|
+
this._context = t9;
|
|
169
|
+
}
|
|
170
|
+
K.prototype = {
|
|
171
|
+
areaStart: function() {
|
|
172
|
+
this._line = 0;
|
|
173
|
+
},
|
|
174
|
+
areaEnd: function() {
|
|
175
|
+
this._line = NaN;
|
|
176
|
+
},
|
|
177
|
+
lineStart: function() {
|
|
178
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
179
|
+
},
|
|
180
|
+
lineEnd: function() {
|
|
181
|
+
switch (this._point) {
|
|
182
|
+
case 3:
|
|
183
|
+
Y(this, this._x1, this._y1);
|
|
184
|
+
// falls through
|
|
185
|
+
case 2:
|
|
186
|
+
this._context.lineTo(this._x1, this._y1);
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
190
|
+
},
|
|
191
|
+
point: function(t9, i) {
|
|
192
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
193
|
+
case 0:
|
|
194
|
+
this._point = 1, this._line ? this._context.lineTo(t9, i) : this._context.moveTo(t9, i);
|
|
195
|
+
break;
|
|
196
|
+
case 1:
|
|
197
|
+
this._point = 2;
|
|
198
|
+
break;
|
|
199
|
+
case 2:
|
|
200
|
+
this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
201
|
+
// falls through
|
|
202
|
+
default:
|
|
203
|
+
Y(this, t9, i);
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
this._x0 = this._x1, this._x1 = t9, this._y0 = this._y1, this._y1 = i;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
function tn(t9) {
|
|
210
|
+
return new K(t9);
|
|
211
|
+
}
|
|
212
|
+
function Bt(t9) {
|
|
213
|
+
this._context = t9;
|
|
214
|
+
}
|
|
215
|
+
Bt.prototype = {
|
|
216
|
+
areaStart: b,
|
|
217
|
+
areaEnd: b,
|
|
218
|
+
lineStart: function() {
|
|
219
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
220
|
+
},
|
|
221
|
+
lineEnd: function() {
|
|
222
|
+
switch (this._point) {
|
|
223
|
+
case 1: {
|
|
224
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
case 2: {
|
|
228
|
+
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();
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
case 3: {
|
|
232
|
+
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
point: function(t9, i) {
|
|
238
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
239
|
+
case 0:
|
|
240
|
+
this._point = 1, this._x2 = t9, this._y2 = i;
|
|
241
|
+
break;
|
|
242
|
+
case 1:
|
|
243
|
+
this._point = 2, this._x3 = t9, this._y3 = i;
|
|
244
|
+
break;
|
|
245
|
+
case 2:
|
|
246
|
+
this._point = 3, this._x4 = t9, this._y4 = i, this._context.moveTo((this._x0 + 4 * this._x1 + t9) / 6, (this._y0 + 4 * this._y1 + i) / 6);
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
Y(this, t9, i);
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
this._x0 = this._x1, this._x1 = t9, this._y0 = this._y1, this._y1 = i;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
function nn(t9) {
|
|
256
|
+
return new Bt(t9);
|
|
257
|
+
}
|
|
258
|
+
function Yt(t9) {
|
|
259
|
+
this._context = t9;
|
|
260
|
+
}
|
|
261
|
+
Yt.prototype = {
|
|
262
|
+
areaStart: function() {
|
|
263
|
+
this._line = 0;
|
|
264
|
+
},
|
|
265
|
+
areaEnd: function() {
|
|
266
|
+
this._line = NaN;
|
|
267
|
+
},
|
|
268
|
+
lineStart: function() {
|
|
269
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
270
|
+
},
|
|
271
|
+
lineEnd: function() {
|
|
272
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
273
|
+
},
|
|
274
|
+
point: function(t9, i) {
|
|
275
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
276
|
+
case 0:
|
|
277
|
+
this._point = 1;
|
|
278
|
+
break;
|
|
279
|
+
case 1:
|
|
280
|
+
this._point = 2;
|
|
281
|
+
break;
|
|
282
|
+
case 2:
|
|
283
|
+
this._point = 3;
|
|
284
|
+
var n = (this._x0 + 4 * this._x1 + t9) / 6, e = (this._y0 + 4 * this._y1 + i) / 6;
|
|
285
|
+
this._line ? this._context.lineTo(n, e) : this._context.moveTo(n, e);
|
|
286
|
+
break;
|
|
287
|
+
case 3:
|
|
288
|
+
this._point = 4;
|
|
289
|
+
// falls through
|
|
290
|
+
default:
|
|
291
|
+
Y(this, t9, i);
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
this._x0 = this._x1, this._x1 = t9, this._y0 = this._y1, this._y1 = i;
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
function en(t9) {
|
|
298
|
+
return new Yt(t9);
|
|
299
|
+
}
|
|
300
|
+
function jt(t9, i) {
|
|
301
|
+
this._basis = new K(t9), this._beta = i;
|
|
302
|
+
}
|
|
303
|
+
jt.prototype = {
|
|
304
|
+
lineStart: function() {
|
|
305
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
306
|
+
},
|
|
307
|
+
lineEnd: function() {
|
|
308
|
+
var t9 = this._x, i = this._y, n = t9.length - 1;
|
|
309
|
+
if (n > 0)
|
|
310
|
+
for (var e = t9[0], s = i[0], o = t9[n] - e, h = i[n] - s, r = -1, a; ++r <= n; )
|
|
311
|
+
a = r / n, this._basis.point(
|
|
312
|
+
this._beta * t9[r] + (1 - this._beta) * (e + a * o),
|
|
313
|
+
this._beta * i[r] + (1 - this._beta) * (s + a * h)
|
|
314
|
+
);
|
|
315
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
316
|
+
},
|
|
317
|
+
point: function(t9, i) {
|
|
318
|
+
this._x.push(+t9), this._y.push(+i);
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
const sn = function t(i) {
|
|
322
|
+
function n(e) {
|
|
323
|
+
return i === 1 ? new K(e) : new jt(e, i);
|
|
324
|
+
}
|
|
325
|
+
return n.beta = function(e) {
|
|
326
|
+
return t(+e);
|
|
327
|
+
}, n;
|
|
328
|
+
}(0.85);
|
|
329
|
+
function j(t9, i, n) {
|
|
330
|
+
t9._context.bezierCurveTo(
|
|
331
|
+
t9._x1 + t9._k * (t9._x2 - t9._x0),
|
|
332
|
+
t9._y1 + t9._k * (t9._y2 - t9._y0),
|
|
333
|
+
t9._x2 + t9._k * (t9._x1 - i),
|
|
334
|
+
t9._y2 + t9._k * (t9._y1 - n),
|
|
335
|
+
t9._x2,
|
|
336
|
+
t9._y2
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
function _t(t9, i) {
|
|
340
|
+
this._context = t9, this._k = (1 - i) / 6;
|
|
341
|
+
}
|
|
342
|
+
_t.prototype = {
|
|
343
|
+
areaStart: function() {
|
|
344
|
+
this._line = 0;
|
|
345
|
+
},
|
|
346
|
+
areaEnd: function() {
|
|
347
|
+
this._line = NaN;
|
|
348
|
+
},
|
|
349
|
+
lineStart: function() {
|
|
350
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
351
|
+
},
|
|
352
|
+
lineEnd: function() {
|
|
353
|
+
switch (this._point) {
|
|
354
|
+
case 2:
|
|
355
|
+
this._context.lineTo(this._x2, this._y2);
|
|
356
|
+
break;
|
|
357
|
+
case 3:
|
|
358
|
+
j(this, this._x1, this._y1);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
362
|
+
},
|
|
363
|
+
point: function(t9, i) {
|
|
364
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
365
|
+
case 0:
|
|
366
|
+
this._point = 1, this._line ? this._context.lineTo(t9, i) : this._context.moveTo(t9, i);
|
|
367
|
+
break;
|
|
368
|
+
case 1:
|
|
369
|
+
this._point = 2, this._x1 = t9, this._y1 = i;
|
|
370
|
+
break;
|
|
371
|
+
case 2:
|
|
372
|
+
this._point = 3;
|
|
373
|
+
// falls through
|
|
374
|
+
default:
|
|
375
|
+
j(this, t9, i);
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
const on = function t2(i) {
|
|
382
|
+
function n(e) {
|
|
383
|
+
return new _t(e, i);
|
|
384
|
+
}
|
|
385
|
+
return n.tension = function(e) {
|
|
386
|
+
return t2(+e);
|
|
387
|
+
}, n;
|
|
388
|
+
}(0);
|
|
389
|
+
function lt(t9, i) {
|
|
390
|
+
this._context = t9, this._k = (1 - i) / 6;
|
|
391
|
+
}
|
|
392
|
+
lt.prototype = {
|
|
393
|
+
areaStart: b,
|
|
394
|
+
areaEnd: b,
|
|
395
|
+
lineStart: function() {
|
|
396
|
+
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;
|
|
397
|
+
},
|
|
398
|
+
lineEnd: function() {
|
|
399
|
+
switch (this._point) {
|
|
400
|
+
case 1: {
|
|
401
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
case 2: {
|
|
405
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
case 3: {
|
|
409
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
410
|
+
break;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
point: function(t9, i) {
|
|
415
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
416
|
+
case 0:
|
|
417
|
+
this._point = 1, this._x3 = t9, this._y3 = i;
|
|
418
|
+
break;
|
|
419
|
+
case 1:
|
|
420
|
+
this._point = 2, this._context.moveTo(this._x4 = t9, this._y4 = i);
|
|
421
|
+
break;
|
|
422
|
+
case 2:
|
|
423
|
+
this._point = 3, this._x5 = t9, this._y5 = i;
|
|
424
|
+
break;
|
|
425
|
+
default:
|
|
426
|
+
j(this, t9, i);
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const hn = function t3(i) {
|
|
433
|
+
function n(e) {
|
|
434
|
+
return new lt(e, i);
|
|
435
|
+
}
|
|
436
|
+
return n.tension = function(e) {
|
|
437
|
+
return t3(+e);
|
|
438
|
+
}, n;
|
|
439
|
+
}(0);
|
|
440
|
+
function ct(t9, i) {
|
|
441
|
+
this._context = t9, this._k = (1 - i) / 6;
|
|
442
|
+
}
|
|
443
|
+
ct.prototype = {
|
|
444
|
+
areaStart: function() {
|
|
445
|
+
this._line = 0;
|
|
446
|
+
},
|
|
447
|
+
areaEnd: function() {
|
|
448
|
+
this._line = NaN;
|
|
449
|
+
},
|
|
450
|
+
lineStart: function() {
|
|
451
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
452
|
+
},
|
|
453
|
+
lineEnd: function() {
|
|
454
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
455
|
+
},
|
|
456
|
+
point: function(t9, i) {
|
|
457
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
458
|
+
case 0:
|
|
459
|
+
this._point = 1;
|
|
460
|
+
break;
|
|
461
|
+
case 1:
|
|
462
|
+
this._point = 2;
|
|
463
|
+
break;
|
|
464
|
+
case 2:
|
|
465
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
466
|
+
break;
|
|
467
|
+
case 3:
|
|
468
|
+
this._point = 4;
|
|
469
|
+
// falls through
|
|
470
|
+
default:
|
|
471
|
+
j(this, t9, i);
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
const rn = function t4(i) {
|
|
478
|
+
function n(e) {
|
|
479
|
+
return new ct(e, i);
|
|
480
|
+
}
|
|
481
|
+
return n.tension = function(e) {
|
|
482
|
+
return t4(+e);
|
|
483
|
+
}, n;
|
|
484
|
+
}(0);
|
|
485
|
+
function ft(t9, i, n) {
|
|
486
|
+
var e = t9._x1, s = t9._y1, o = t9._x2, h = t9._y2;
|
|
487
|
+
if (t9._l01_a > wt) {
|
|
488
|
+
var r = 2 * t9._l01_2a + 3 * t9._l01_a * t9._l12_a + t9._l12_2a, a = 3 * t9._l01_a * (t9._l01_a + t9._l12_a);
|
|
489
|
+
e = (e * r - t9._x0 * t9._l12_2a + t9._x2 * t9._l01_2a) / a, s = (s * r - t9._y0 * t9._l12_2a + t9._y2 * t9._l01_2a) / a;
|
|
490
|
+
}
|
|
491
|
+
if (t9._l23_a > wt) {
|
|
492
|
+
var l = 2 * t9._l23_2a + 3 * t9._l23_a * t9._l12_a + t9._l12_2a, _ = 3 * t9._l23_a * (t9._l23_a + t9._l12_a);
|
|
493
|
+
o = (o * l + t9._x1 * t9._l23_2a - i * t9._l12_2a) / _, h = (h * l + t9._y1 * t9._l23_2a - n * t9._l12_2a) / _;
|
|
494
|
+
}
|
|
495
|
+
t9._context.bezierCurveTo(e, s, o, h, t9._x2, t9._y2);
|
|
496
|
+
}
|
|
497
|
+
function zt(t9, i) {
|
|
498
|
+
this._context = t9, this._alpha = i;
|
|
499
|
+
}
|
|
500
|
+
zt.prototype = {
|
|
501
|
+
areaStart: function() {
|
|
502
|
+
this._line = 0;
|
|
503
|
+
},
|
|
504
|
+
areaEnd: function() {
|
|
505
|
+
this._line = NaN;
|
|
506
|
+
},
|
|
507
|
+
lineStart: function() {
|
|
508
|
+
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;
|
|
509
|
+
},
|
|
510
|
+
lineEnd: function() {
|
|
511
|
+
switch (this._point) {
|
|
512
|
+
case 2:
|
|
513
|
+
this._context.lineTo(this._x2, this._y2);
|
|
514
|
+
break;
|
|
515
|
+
case 3:
|
|
516
|
+
this.point(this._x2, this._y2);
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
520
|
+
},
|
|
521
|
+
point: function(t9, i) {
|
|
522
|
+
if (t9 = +t9, i = +i, this._point) {
|
|
523
|
+
var n = this._x2 - t9, e = this._y2 - i;
|
|
524
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + e * e, this._alpha));
|
|
525
|
+
}
|
|
526
|
+
switch (this._point) {
|
|
527
|
+
case 0:
|
|
528
|
+
this._point = 1, this._line ? this._context.lineTo(t9, i) : this._context.moveTo(t9, i);
|
|
529
|
+
break;
|
|
530
|
+
case 1:
|
|
531
|
+
this._point = 2;
|
|
532
|
+
break;
|
|
533
|
+
case 2:
|
|
534
|
+
this._point = 3;
|
|
535
|
+
// falls through
|
|
536
|
+
default:
|
|
537
|
+
ft(this, t9, i);
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
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 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
const an = function t5(i) {
|
|
544
|
+
function n(e) {
|
|
545
|
+
return i ? new zt(e, i) : new _t(e, 0);
|
|
546
|
+
}
|
|
547
|
+
return n.alpha = function(e) {
|
|
548
|
+
return t5(+e);
|
|
549
|
+
}, n;
|
|
550
|
+
}(0.5);
|
|
551
|
+
function Lt(t9, i) {
|
|
552
|
+
this._context = t9, this._alpha = i;
|
|
553
|
+
}
|
|
554
|
+
Lt.prototype = {
|
|
555
|
+
areaStart: b,
|
|
556
|
+
areaEnd: b,
|
|
557
|
+
lineStart: function() {
|
|
558
|
+
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;
|
|
559
|
+
},
|
|
560
|
+
lineEnd: function() {
|
|
561
|
+
switch (this._point) {
|
|
562
|
+
case 1: {
|
|
563
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
case 2: {
|
|
567
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
case 3: {
|
|
571
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
point: function(t9, i) {
|
|
577
|
+
if (t9 = +t9, i = +i, this._point) {
|
|
578
|
+
var n = this._x2 - t9, e = this._y2 - i;
|
|
579
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + e * e, this._alpha));
|
|
580
|
+
}
|
|
581
|
+
switch (this._point) {
|
|
582
|
+
case 0:
|
|
583
|
+
this._point = 1, this._x3 = t9, this._y3 = i;
|
|
584
|
+
break;
|
|
585
|
+
case 1:
|
|
586
|
+
this._point = 2, this._context.moveTo(this._x4 = t9, this._y4 = i);
|
|
587
|
+
break;
|
|
588
|
+
case 2:
|
|
589
|
+
this._point = 3, this._x5 = t9, this._y5 = i;
|
|
590
|
+
break;
|
|
591
|
+
default:
|
|
592
|
+
ft(this, t9, i);
|
|
593
|
+
break;
|
|
594
|
+
}
|
|
595
|
+
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 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
const _n = function t6(i) {
|
|
599
|
+
function n(e) {
|
|
600
|
+
return i ? new Lt(e, i) : new lt(e, 0);
|
|
601
|
+
}
|
|
602
|
+
return n.alpha = function(e) {
|
|
603
|
+
return t6(+e);
|
|
604
|
+
}, n;
|
|
605
|
+
}(0.5);
|
|
606
|
+
function Dt(t9, i) {
|
|
607
|
+
this._context = t9, this._alpha = i;
|
|
608
|
+
}
|
|
609
|
+
Dt.prototype = {
|
|
610
|
+
areaStart: function() {
|
|
611
|
+
this._line = 0;
|
|
612
|
+
},
|
|
613
|
+
areaEnd: function() {
|
|
614
|
+
this._line = NaN;
|
|
615
|
+
},
|
|
616
|
+
lineStart: function() {
|
|
617
|
+
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;
|
|
618
|
+
},
|
|
619
|
+
lineEnd: function() {
|
|
620
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
621
|
+
},
|
|
622
|
+
point: function(t9, i) {
|
|
623
|
+
if (t9 = +t9, i = +i, this._point) {
|
|
624
|
+
var n = this._x2 - t9, e = this._y2 - i;
|
|
625
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + e * e, this._alpha));
|
|
626
|
+
}
|
|
627
|
+
switch (this._point) {
|
|
628
|
+
case 0:
|
|
629
|
+
this._point = 1;
|
|
630
|
+
break;
|
|
631
|
+
case 1:
|
|
632
|
+
this._point = 2;
|
|
633
|
+
break;
|
|
634
|
+
case 2:
|
|
635
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
636
|
+
break;
|
|
637
|
+
case 3:
|
|
638
|
+
this._point = 4;
|
|
639
|
+
// falls through
|
|
640
|
+
default:
|
|
641
|
+
ft(this, t9, i);
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
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 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
const ln = function t7(i) {
|
|
648
|
+
function n(e) {
|
|
649
|
+
return i ? new Dt(e, i) : new ct(e, 0);
|
|
650
|
+
}
|
|
651
|
+
return n.alpha = function(e) {
|
|
652
|
+
return t7(+e);
|
|
653
|
+
}, n;
|
|
654
|
+
}(0.5);
|
|
655
|
+
function Ft(t9) {
|
|
656
|
+
this._context = t9;
|
|
657
|
+
}
|
|
658
|
+
Ft.prototype = {
|
|
659
|
+
areaStart: b,
|
|
660
|
+
areaEnd: b,
|
|
661
|
+
lineStart: function() {
|
|
662
|
+
this._point = 0;
|
|
663
|
+
},
|
|
664
|
+
lineEnd: function() {
|
|
665
|
+
this._point && this._context.closePath();
|
|
666
|
+
},
|
|
667
|
+
point: function(t9, i) {
|
|
668
|
+
t9 = +t9, i = +i, this._point ? this._context.lineTo(t9, i) : (this._point = 1, this._context.moveTo(t9, i));
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
function cn(t9) {
|
|
672
|
+
return new Ft(t9);
|
|
673
|
+
}
|
|
674
|
+
function vt(t9) {
|
|
675
|
+
return t9 < 0 ? -1 : 1;
|
|
676
|
+
}
|
|
677
|
+
function kt(t9, i, n) {
|
|
678
|
+
var e = t9._x1 - t9._x0, s = i - t9._x1, o = (t9._y1 - t9._y0) / (e || s < 0 && -0), h = (n - t9._y1) / (s || e < 0 && -0), r = (o * s + h * e) / (e + s);
|
|
679
|
+
return (vt(o) + vt(h)) * Math.min(Math.abs(o), Math.abs(h), 0.5 * Math.abs(r)) || 0;
|
|
680
|
+
}
|
|
681
|
+
function $t(t9, i) {
|
|
682
|
+
var n = t9._x1 - t9._x0;
|
|
683
|
+
return n ? (3 * (t9._y1 - t9._y0) / n - i) / 2 : i;
|
|
684
|
+
}
|
|
685
|
+
function J(t9, i, n) {
|
|
686
|
+
var e = t9._x0, s = t9._y0, o = t9._x1, h = t9._y1, r = (o - e) / 3;
|
|
687
|
+
t9._context.bezierCurveTo(e + r, s + r * i, o - r, h - r * n, o, h);
|
|
688
|
+
}
|
|
689
|
+
function z(t9) {
|
|
690
|
+
this._context = t9;
|
|
691
|
+
}
|
|
692
|
+
z.prototype = {
|
|
693
|
+
areaStart: function() {
|
|
694
|
+
this._line = 0;
|
|
695
|
+
},
|
|
696
|
+
areaEnd: function() {
|
|
697
|
+
this._line = NaN;
|
|
698
|
+
},
|
|
699
|
+
lineStart: function() {
|
|
700
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
701
|
+
},
|
|
702
|
+
lineEnd: function() {
|
|
703
|
+
switch (this._point) {
|
|
704
|
+
case 2:
|
|
705
|
+
this._context.lineTo(this._x1, this._y1);
|
|
706
|
+
break;
|
|
707
|
+
case 3:
|
|
708
|
+
J(this, this._t0, $t(this, this._t0));
|
|
709
|
+
break;
|
|
710
|
+
}
|
|
711
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
712
|
+
},
|
|
713
|
+
point: function(t9, i) {
|
|
714
|
+
var n = NaN;
|
|
715
|
+
if (t9 = +t9, i = +i, !(t9 === this._x1 && i === this._y1)) {
|
|
716
|
+
switch (this._point) {
|
|
717
|
+
case 0:
|
|
718
|
+
this._point = 1, this._line ? this._context.lineTo(t9, i) : this._context.moveTo(t9, i);
|
|
719
|
+
break;
|
|
720
|
+
case 1:
|
|
721
|
+
this._point = 2;
|
|
722
|
+
break;
|
|
723
|
+
case 2:
|
|
724
|
+
this._point = 3, J(this, $t(this, n = kt(this, t9, i)), n);
|
|
725
|
+
break;
|
|
726
|
+
default:
|
|
727
|
+
J(this, this._t0, n = kt(this, t9, i));
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
this._x0 = this._x1, this._x1 = t9, this._y0 = this._y1, this._y1 = i, this._t0 = n;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
function Zt(t9) {
|
|
735
|
+
this._context = new Gt(t9);
|
|
736
|
+
}
|
|
737
|
+
(Zt.prototype = Object.create(z.prototype)).point = function(t9, i) {
|
|
738
|
+
z.prototype.point.call(this, i, t9);
|
|
739
|
+
};
|
|
740
|
+
function Gt(t9) {
|
|
741
|
+
this._context = t9;
|
|
742
|
+
}
|
|
743
|
+
Gt.prototype = {
|
|
744
|
+
moveTo: function(t9, i) {
|
|
745
|
+
this._context.moveTo(i, t9);
|
|
746
|
+
},
|
|
747
|
+
closePath: function() {
|
|
748
|
+
this._context.closePath();
|
|
749
|
+
},
|
|
750
|
+
lineTo: function(t9, i) {
|
|
751
|
+
this._context.lineTo(i, t9);
|
|
752
|
+
},
|
|
753
|
+
bezierCurveTo: function(t9, i, n, e, s, o) {
|
|
754
|
+
this._context.bezierCurveTo(i, t9, e, n, o, s);
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
function fn(t9) {
|
|
758
|
+
return new z(t9);
|
|
759
|
+
}
|
|
760
|
+
function un(t9) {
|
|
761
|
+
return new Zt(t9);
|
|
762
|
+
}
|
|
763
|
+
function Kt(t9) {
|
|
764
|
+
this._context = t9;
|
|
765
|
+
}
|
|
766
|
+
Kt.prototype = {
|
|
767
|
+
areaStart: function() {
|
|
768
|
+
this._line = 0;
|
|
769
|
+
},
|
|
770
|
+
areaEnd: function() {
|
|
771
|
+
this._line = NaN;
|
|
772
|
+
},
|
|
773
|
+
lineStart: function() {
|
|
774
|
+
this._x = [], this._y = [];
|
|
775
|
+
},
|
|
776
|
+
lineEnd: function() {
|
|
777
|
+
var t9 = this._x, i = this._y, n = t9.length;
|
|
778
|
+
if (n)
|
|
779
|
+
if (this._line ? this._context.lineTo(t9[0], i[0]) : this._context.moveTo(t9[0], i[0]), n === 2)
|
|
780
|
+
this._context.lineTo(t9[1], i[1]);
|
|
781
|
+
else
|
|
782
|
+
for (var e = Nt(t9), s = Nt(i), o = 0, h = 1; h < n; ++o, ++h)
|
|
783
|
+
this._context.bezierCurveTo(e[0][o], s[0][o], e[1][o], s[1][o], t9[h], i[h]);
|
|
784
|
+
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
785
|
+
},
|
|
786
|
+
point: function(t9, i) {
|
|
787
|
+
this._x.push(+t9), this._y.push(+i);
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
function Nt(t9) {
|
|
791
|
+
var i, n = t9.length - 1, e, s = new Array(n), o = new Array(n), h = new Array(n);
|
|
792
|
+
for (s[0] = 0, o[0] = 2, h[0] = t9[0] + 2 * t9[1], i = 1; i < n - 1; ++i) s[i] = 1, o[i] = 4, h[i] = 4 * t9[i] + 2 * t9[i + 1];
|
|
793
|
+
for (s[n - 1] = 2, o[n - 1] = 7, h[n - 1] = 8 * t9[n - 1] + t9[n], i = 1; i < n; ++i) e = s[i] / o[i - 1], o[i] -= e, h[i] -= e * h[i - 1];
|
|
794
|
+
for (s[n - 1] = h[n - 1] / o[n - 1], i = n - 2; i >= 0; --i) s[i] = (h[i] - s[i + 1]) / o[i];
|
|
795
|
+
for (o[n - 1] = (t9[n] + s[n - 1]) / 2, i = 0; i < n - 1; ++i) o[i] = 2 * t9[i + 1] - s[i + 1];
|
|
796
|
+
return [s, o];
|
|
797
|
+
}
|
|
798
|
+
function xn(t9) {
|
|
799
|
+
return new Kt(t9);
|
|
800
|
+
}
|
|
801
|
+
function Q(t9, i) {
|
|
802
|
+
this._context = t9, this._t = i;
|
|
803
|
+
}
|
|
804
|
+
Q.prototype = {
|
|
805
|
+
areaStart: function() {
|
|
806
|
+
this._line = 0;
|
|
807
|
+
},
|
|
808
|
+
areaEnd: function() {
|
|
809
|
+
this._line = NaN;
|
|
810
|
+
},
|
|
811
|
+
lineStart: function() {
|
|
812
|
+
this._x = this._y = NaN, this._point = 0;
|
|
813
|
+
},
|
|
814
|
+
lineEnd: function() {
|
|
815
|
+
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);
|
|
816
|
+
},
|
|
817
|
+
point: function(t9, i) {
|
|
818
|
+
switch (t9 = +t9, i = +i, this._point) {
|
|
819
|
+
case 0:
|
|
820
|
+
this._point = 1, this._line ? this._context.lineTo(t9, i) : this._context.moveTo(t9, i);
|
|
821
|
+
break;
|
|
822
|
+
case 1:
|
|
823
|
+
this._point = 2;
|
|
824
|
+
// falls through
|
|
825
|
+
default: {
|
|
826
|
+
if (this._t <= 0)
|
|
827
|
+
this._context.lineTo(this._x, i), this._context.lineTo(t9, i);
|
|
828
|
+
else {
|
|
829
|
+
var n = this._x * (1 - this._t) + t9 * this._t;
|
|
830
|
+
this._context.lineTo(n, this._y), this._context.lineTo(n, i);
|
|
831
|
+
}
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
this._x = t9, this._y = i;
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
function pn(t9) {
|
|
839
|
+
return new Q(t9, 0.5);
|
|
840
|
+
}
|
|
841
|
+
function dn(t9) {
|
|
842
|
+
return new Q(t9, 0);
|
|
843
|
+
}
|
|
844
|
+
function yn(t9) {
|
|
845
|
+
return new Q(t9, 1);
|
|
846
|
+
}
|
|
847
|
+
function ut(t9, i, n) {
|
|
848
|
+
t9.prototype = i.prototype = n, n.constructor = t9;
|
|
849
|
+
}
|
|
850
|
+
function Qt(t9, i) {
|
|
851
|
+
var n = Object.create(t9.prototype);
|
|
852
|
+
for (var e in i) n[e] = i[e];
|
|
853
|
+
return n;
|
|
854
|
+
}
|
|
855
|
+
function H() {
|
|
856
|
+
}
|
|
857
|
+
var P = 0.7, L = 1 / P, M = "\\s*([+-]?\\d+)\\s*", R = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", g = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", xi = /^#([0-9a-f]{3,8})$/, pi = new RegExp(`^rgb\\(${M},${M},${M}\\)$`), di = new RegExp(`^rgb\\(${g},${g},${g}\\)$`), yi = new RegExp(`^rgba\\(${M},${M},${M},${R}\\)$`), gi = new RegExp(`^rgba\\(${g},${g},${g},${R}\\)$`), bi = new RegExp(`^hsl\\(${R},${g},${g}\\)$`), wi = new RegExp(`^hsla\\(${R},${g},${g},${R}\\)$`), Mt = {
|
|
858
|
+
aliceblue: 15792383,
|
|
859
|
+
antiquewhite: 16444375,
|
|
860
|
+
aqua: 65535,
|
|
861
|
+
aquamarine: 8388564,
|
|
862
|
+
azure: 15794175,
|
|
863
|
+
beige: 16119260,
|
|
864
|
+
bisque: 16770244,
|
|
865
|
+
black: 0,
|
|
866
|
+
blanchedalmond: 16772045,
|
|
867
|
+
blue: 255,
|
|
868
|
+
blueviolet: 9055202,
|
|
869
|
+
brown: 10824234,
|
|
870
|
+
burlywood: 14596231,
|
|
871
|
+
cadetblue: 6266528,
|
|
872
|
+
chartreuse: 8388352,
|
|
873
|
+
chocolate: 13789470,
|
|
874
|
+
coral: 16744272,
|
|
875
|
+
cornflowerblue: 6591981,
|
|
876
|
+
cornsilk: 16775388,
|
|
877
|
+
crimson: 14423100,
|
|
878
|
+
cyan: 65535,
|
|
879
|
+
darkblue: 139,
|
|
880
|
+
darkcyan: 35723,
|
|
881
|
+
darkgoldenrod: 12092939,
|
|
882
|
+
darkgray: 11119017,
|
|
883
|
+
darkgreen: 25600,
|
|
884
|
+
darkgrey: 11119017,
|
|
885
|
+
darkkhaki: 12433259,
|
|
886
|
+
darkmagenta: 9109643,
|
|
887
|
+
darkolivegreen: 5597999,
|
|
888
|
+
darkorange: 16747520,
|
|
889
|
+
darkorchid: 10040012,
|
|
890
|
+
darkred: 9109504,
|
|
891
|
+
darksalmon: 15308410,
|
|
892
|
+
darkseagreen: 9419919,
|
|
893
|
+
darkslateblue: 4734347,
|
|
894
|
+
darkslategray: 3100495,
|
|
895
|
+
darkslategrey: 3100495,
|
|
896
|
+
darkturquoise: 52945,
|
|
897
|
+
darkviolet: 9699539,
|
|
898
|
+
deeppink: 16716947,
|
|
899
|
+
deepskyblue: 49151,
|
|
900
|
+
dimgray: 6908265,
|
|
901
|
+
dimgrey: 6908265,
|
|
902
|
+
dodgerblue: 2003199,
|
|
903
|
+
firebrick: 11674146,
|
|
904
|
+
floralwhite: 16775920,
|
|
905
|
+
forestgreen: 2263842,
|
|
906
|
+
fuchsia: 16711935,
|
|
907
|
+
gainsboro: 14474460,
|
|
908
|
+
ghostwhite: 16316671,
|
|
909
|
+
gold: 16766720,
|
|
910
|
+
goldenrod: 14329120,
|
|
911
|
+
gray: 8421504,
|
|
912
|
+
green: 32768,
|
|
913
|
+
greenyellow: 11403055,
|
|
914
|
+
grey: 8421504,
|
|
915
|
+
honeydew: 15794160,
|
|
916
|
+
hotpink: 16738740,
|
|
917
|
+
indianred: 13458524,
|
|
918
|
+
indigo: 4915330,
|
|
919
|
+
ivory: 16777200,
|
|
920
|
+
khaki: 15787660,
|
|
921
|
+
lavender: 15132410,
|
|
922
|
+
lavenderblush: 16773365,
|
|
923
|
+
lawngreen: 8190976,
|
|
924
|
+
lemonchiffon: 16775885,
|
|
925
|
+
lightblue: 11393254,
|
|
926
|
+
lightcoral: 15761536,
|
|
927
|
+
lightcyan: 14745599,
|
|
928
|
+
lightgoldenrodyellow: 16448210,
|
|
929
|
+
lightgray: 13882323,
|
|
930
|
+
lightgreen: 9498256,
|
|
931
|
+
lightgrey: 13882323,
|
|
932
|
+
lightpink: 16758465,
|
|
933
|
+
lightsalmon: 16752762,
|
|
934
|
+
lightseagreen: 2142890,
|
|
935
|
+
lightskyblue: 8900346,
|
|
936
|
+
lightslategray: 7833753,
|
|
937
|
+
lightslategrey: 7833753,
|
|
938
|
+
lightsteelblue: 11584734,
|
|
939
|
+
lightyellow: 16777184,
|
|
940
|
+
lime: 65280,
|
|
941
|
+
limegreen: 3329330,
|
|
942
|
+
linen: 16445670,
|
|
943
|
+
magenta: 16711935,
|
|
944
|
+
maroon: 8388608,
|
|
945
|
+
mediumaquamarine: 6737322,
|
|
946
|
+
mediumblue: 205,
|
|
947
|
+
mediumorchid: 12211667,
|
|
948
|
+
mediumpurple: 9662683,
|
|
949
|
+
mediumseagreen: 3978097,
|
|
950
|
+
mediumslateblue: 8087790,
|
|
951
|
+
mediumspringgreen: 64154,
|
|
952
|
+
mediumturquoise: 4772300,
|
|
953
|
+
mediumvioletred: 13047173,
|
|
954
|
+
midnightblue: 1644912,
|
|
955
|
+
mintcream: 16121850,
|
|
956
|
+
mistyrose: 16770273,
|
|
957
|
+
moccasin: 16770229,
|
|
958
|
+
navajowhite: 16768685,
|
|
959
|
+
navy: 128,
|
|
960
|
+
oldlace: 16643558,
|
|
961
|
+
olive: 8421376,
|
|
962
|
+
olivedrab: 7048739,
|
|
963
|
+
orange: 16753920,
|
|
964
|
+
orangered: 16729344,
|
|
965
|
+
orchid: 14315734,
|
|
966
|
+
palegoldenrod: 15657130,
|
|
967
|
+
palegreen: 10025880,
|
|
968
|
+
paleturquoise: 11529966,
|
|
969
|
+
palevioletred: 14381203,
|
|
970
|
+
papayawhip: 16773077,
|
|
971
|
+
peachpuff: 16767673,
|
|
972
|
+
peru: 13468991,
|
|
973
|
+
pink: 16761035,
|
|
974
|
+
plum: 14524637,
|
|
975
|
+
powderblue: 11591910,
|
|
976
|
+
purple: 8388736,
|
|
977
|
+
rebeccapurple: 6697881,
|
|
978
|
+
red: 16711680,
|
|
979
|
+
rosybrown: 12357519,
|
|
980
|
+
royalblue: 4286945,
|
|
981
|
+
saddlebrown: 9127187,
|
|
982
|
+
salmon: 16416882,
|
|
983
|
+
sandybrown: 16032864,
|
|
984
|
+
seagreen: 3050327,
|
|
985
|
+
seashell: 16774638,
|
|
986
|
+
sienna: 10506797,
|
|
987
|
+
silver: 12632256,
|
|
988
|
+
skyblue: 8900331,
|
|
989
|
+
slateblue: 6970061,
|
|
990
|
+
slategray: 7372944,
|
|
991
|
+
slategrey: 7372944,
|
|
992
|
+
snow: 16775930,
|
|
993
|
+
springgreen: 65407,
|
|
994
|
+
steelblue: 4620980,
|
|
995
|
+
tan: 13808780,
|
|
996
|
+
teal: 32896,
|
|
997
|
+
thistle: 14204888,
|
|
998
|
+
tomato: 16737095,
|
|
999
|
+
turquoise: 4251856,
|
|
1000
|
+
violet: 15631086,
|
|
1001
|
+
wheat: 16113331,
|
|
1002
|
+
white: 16777215,
|
|
1003
|
+
whitesmoke: 16119285,
|
|
1004
|
+
yellow: 16776960,
|
|
1005
|
+
yellowgreen: 10145074
|
|
1006
|
+
};
|
|
1007
|
+
ut(H, xt, {
|
|
1008
|
+
copy(t9) {
|
|
1009
|
+
return Object.assign(new this.constructor(), this, t9);
|
|
1010
|
+
},
|
|
1011
|
+
displayable() {
|
|
1012
|
+
return this.rgb().displayable();
|
|
1013
|
+
},
|
|
1014
|
+
hex: Tt,
|
|
1015
|
+
// Deprecated! Use color.formatHex.
|
|
1016
|
+
formatHex: Tt,
|
|
1017
|
+
formatHex8: mi,
|
|
1018
|
+
formatHsl: vi,
|
|
1019
|
+
formatRgb: Et,
|
|
1020
|
+
toString: Et
|
|
1021
|
+
});
|
|
1022
|
+
function Tt() {
|
|
1023
|
+
return this.rgb().formatHex();
|
|
1024
|
+
}
|
|
1025
|
+
function mi() {
|
|
1026
|
+
return this.rgb().formatHex8();
|
|
1027
|
+
}
|
|
1028
|
+
function vi() {
|
|
1029
|
+
return Vt(this).formatHsl();
|
|
1030
|
+
}
|
|
1031
|
+
function Et() {
|
|
1032
|
+
return this.rgb().formatRgb();
|
|
1033
|
+
}
|
|
1034
|
+
function xt(t9) {
|
|
1035
|
+
var i, n;
|
|
1036
|
+
return t9 = (t9 + "").trim().toLowerCase(), (i = xi.exec(t9)) ? (n = i[1].length, i = parseInt(i[1], 16), n === 6 ? St(i) : n === 3 ? new x(i >> 8 & 15 | i >> 4 & 240, i >> 4 & 15 | i & 240, (i & 15) << 4 | i & 15, 1) : n === 8 ? A(i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, (i & 255) / 255) : n === 4 ? A(i >> 12 & 15 | i >> 8 & 240, i >> 8 & 15 | i >> 4 & 240, i >> 4 & 15 | i & 240, ((i & 15) << 4 | i & 15) / 255) : null) : (i = pi.exec(t9)) ? new x(i[1], i[2], i[3], 1) : (i = di.exec(t9)) ? new x(i[1] * 255 / 100, i[2] * 255 / 100, i[3] * 255 / 100, 1) : (i = yi.exec(t9)) ? A(i[1], i[2], i[3], i[4]) : (i = gi.exec(t9)) ? A(i[1] * 255 / 100, i[2] * 255 / 100, i[3] * 255 / 100, i[4]) : (i = bi.exec(t9)) ? Rt(i[1], i[2] / 100, i[3] / 100, 1) : (i = wi.exec(t9)) ? Rt(i[1], i[2] / 100, i[3] / 100, i[4]) : Mt.hasOwnProperty(t9) ? St(Mt[t9]) : t9 === "transparent" ? new x(NaN, NaN, NaN, 0) : null;
|
|
1037
|
+
}
|
|
1038
|
+
function St(t9) {
|
|
1039
|
+
return new x(t9 >> 16 & 255, t9 >> 8 & 255, t9 & 255, 1);
|
|
1040
|
+
}
|
|
1041
|
+
function A(t9, i, n, e) {
|
|
1042
|
+
return e <= 0 && (t9 = i = n = NaN), new x(t9, i, n, e);
|
|
1043
|
+
}
|
|
1044
|
+
function ki(t9) {
|
|
1045
|
+
return t9 instanceof H || (t9 = xt(t9)), t9 ? (t9 = t9.rgb(), new x(t9.r, t9.g, t9.b, t9.opacity)) : new x();
|
|
1046
|
+
}
|
|
1047
|
+
function D(t9, i, n, e) {
|
|
1048
|
+
return arguments.length === 1 ? ki(t9) : new x(t9, i, n, e ?? 1);
|
|
1049
|
+
}
|
|
1050
|
+
function x(t9, i, n, e) {
|
|
1051
|
+
this.r = +t9, this.g = +i, this.b = +n, this.opacity = +e;
|
|
1052
|
+
}
|
|
1053
|
+
ut(x, D, Qt(H, {
|
|
1054
|
+
brighter(t9) {
|
|
1055
|
+
return t9 = t9 == null ? L : Math.pow(L, t9), new x(this.r * t9, this.g * t9, this.b * t9, this.opacity);
|
|
1056
|
+
},
|
|
1057
|
+
darker(t9) {
|
|
1058
|
+
return t9 = t9 == null ? P : Math.pow(P, t9), new x(this.r * t9, this.g * t9, this.b * t9, this.opacity);
|
|
1059
|
+
},
|
|
1060
|
+
rgb() {
|
|
1061
|
+
return this;
|
|
1062
|
+
},
|
|
1063
|
+
clamp() {
|
|
1064
|
+
return new x(k(this.r), k(this.g), k(this.b), F(this.opacity));
|
|
1065
|
+
},
|
|
1066
|
+
displayable() {
|
|
1067
|
+
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1068
|
+
},
|
|
1069
|
+
hex: Ct,
|
|
1070
|
+
// Deprecated! Use color.formatHex.
|
|
1071
|
+
formatHex: Ct,
|
|
1072
|
+
formatHex8: $i,
|
|
1073
|
+
formatRgb: Pt,
|
|
1074
|
+
toString: Pt
|
|
1075
|
+
}));
|
|
1076
|
+
function Ct() {
|
|
1077
|
+
return `#${v(this.r)}${v(this.g)}${v(this.b)}`;
|
|
1078
|
+
}
|
|
1079
|
+
function $i() {
|
|
1080
|
+
return `#${v(this.r)}${v(this.g)}${v(this.b)}${v((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1081
|
+
}
|
|
1082
|
+
function Pt() {
|
|
1083
|
+
const t9 = F(this.opacity);
|
|
1084
|
+
return `${t9 === 1 ? "rgb(" : "rgba("}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${t9 === 1 ? ")" : `, ${t9})`}`;
|
|
1085
|
+
}
|
|
1086
|
+
function F(t9) {
|
|
1087
|
+
return isNaN(t9) ? 1 : Math.max(0, Math.min(1, t9));
|
|
1088
|
+
}
|
|
1089
|
+
function k(t9) {
|
|
1090
|
+
return Math.max(0, Math.min(255, Math.round(t9) || 0));
|
|
1091
|
+
}
|
|
1092
|
+
function v(t9) {
|
|
1093
|
+
return t9 = k(t9), (t9 < 16 ? "0" : "") + t9.toString(16);
|
|
1094
|
+
}
|
|
1095
|
+
function Rt(t9, i, n, e) {
|
|
1096
|
+
return e <= 0 ? t9 = i = n = NaN : n <= 0 || n >= 1 ? t9 = i = NaN : i <= 0 && (t9 = NaN), new p(t9, i, n, e);
|
|
1097
|
+
}
|
|
1098
|
+
function Vt(t9) {
|
|
1099
|
+
if (t9 instanceof p) return new p(t9.h, t9.s, t9.l, t9.opacity);
|
|
1100
|
+
if (t9 instanceof H || (t9 = xt(t9)), !t9) return new p();
|
|
1101
|
+
if (t9 instanceof p) return t9;
|
|
1102
|
+
t9 = t9.rgb();
|
|
1103
|
+
var i = t9.r / 255, n = t9.g / 255, e = t9.b / 255, s = Math.min(i, n, e), o = Math.max(i, n, e), h = NaN, r = o - s, a = (o + s) / 2;
|
|
1104
|
+
return r ? (i === o ? h = (n - e) / r + (n < e) * 6 : n === o ? h = (e - i) / r + 2 : h = (i - n) / r + 4, r /= a < 0.5 ? o + s : 2 - o - s, h *= 60) : r = a > 0 && a < 1 ? 0 : h, new p(h, r, a, t9.opacity);
|
|
1105
|
+
}
|
|
1106
|
+
function Ni(t9, i, n, e) {
|
|
1107
|
+
return arguments.length === 1 ? Vt(t9) : new p(t9, i, n, e ?? 1);
|
|
1108
|
+
}
|
|
1109
|
+
function p(t9, i, n, e) {
|
|
1110
|
+
this.h = +t9, this.s = +i, this.l = +n, this.opacity = +e;
|
|
1111
|
+
}
|
|
1112
|
+
ut(p, Ni, Qt(H, {
|
|
1113
|
+
brighter(t9) {
|
|
1114
|
+
return t9 = t9 == null ? L : Math.pow(L, t9), new p(this.h, this.s, this.l * t9, this.opacity);
|
|
1115
|
+
},
|
|
1116
|
+
darker(t9) {
|
|
1117
|
+
return t9 = t9 == null ? P : Math.pow(P, t9), new p(this.h, this.s, this.l * t9, this.opacity);
|
|
1118
|
+
},
|
|
1119
|
+
rgb() {
|
|
1120
|
+
var t9 = this.h % 360 + (this.h < 0) * 360, i = isNaN(t9) || isNaN(this.s) ? 0 : this.s, n = this.l, e = n + (n < 0.5 ? n : 1 - n) * i, s = 2 * n - e;
|
|
1121
|
+
return new x(
|
|
1122
|
+
U(t9 >= 240 ? t9 - 240 : t9 + 120, s, e),
|
|
1123
|
+
U(t9, s, e),
|
|
1124
|
+
U(t9 < 120 ? t9 + 240 : t9 - 120, s, e),
|
|
1125
|
+
this.opacity
|
|
1126
|
+
);
|
|
1127
|
+
},
|
|
1128
|
+
clamp() {
|
|
1129
|
+
return new p(qt(this.h), I(this.s), I(this.l), F(this.opacity));
|
|
1130
|
+
},
|
|
1131
|
+
displayable() {
|
|
1132
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1133
|
+
},
|
|
1134
|
+
formatHsl() {
|
|
1135
|
+
const t9 = F(this.opacity);
|
|
1136
|
+
return `${t9 === 1 ? "hsl(" : "hsla("}${qt(this.h)}, ${I(this.s) * 100}%, ${I(this.l) * 100}%${t9 === 1 ? ")" : `, ${t9})`}`;
|
|
1137
|
+
}
|
|
1138
|
+
}));
|
|
1139
|
+
function qt(t9) {
|
|
1140
|
+
return t9 = (t9 || 0) % 360, t9 < 0 ? t9 + 360 : t9;
|
|
1141
|
+
}
|
|
1142
|
+
function I(t9) {
|
|
1143
|
+
return Math.max(0, Math.min(1, t9 || 0));
|
|
1144
|
+
}
|
|
1145
|
+
function U(t9, i, n) {
|
|
1146
|
+
return (t9 < 60 ? i + (n - i) * t9 / 60 : t9 < 180 ? n : t9 < 240 ? i + (n - i) * (240 - t9) / 60 : i) * 255;
|
|
1147
|
+
}
|
|
1148
|
+
function Wt(t9, i, n, e, s) {
|
|
1149
|
+
var o = t9 * t9, h = o * t9;
|
|
1150
|
+
return ((1 - 3 * t9 + 3 * o - h) * i + (4 - 6 * o + 3 * h) * n + (1 + 3 * t9 + 3 * o - 3 * h) * e + h * s) / 6;
|
|
1151
|
+
}
|
|
1152
|
+
function Mi(t9) {
|
|
1153
|
+
var i = t9.length - 1;
|
|
1154
|
+
return function(n) {
|
|
1155
|
+
var e = n <= 0 ? n = 0 : n >= 1 ? (n = 1, i - 1) : Math.floor(n * i), s = t9[e], o = t9[e + 1], h = e > 0 ? t9[e - 1] : 2 * s - o, r = e < i - 1 ? t9[e + 2] : 2 * o - s;
|
|
1156
|
+
return Wt((n - e / i) * i, h, s, o, r);
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
function Ti(t9) {
|
|
1160
|
+
var i = t9.length;
|
|
1161
|
+
return function(n) {
|
|
1162
|
+
var e = Math.floor(((n %= 1) < 0 ? ++n : n) * i), s = t9[(e + i - 1) % i], o = t9[e % i], h = t9[(e + 1) % i], r = t9[(e + 2) % i];
|
|
1163
|
+
return Wt((n - e / i) * i, s, o, h, r);
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
const pt = (t9) => () => t9;
|
|
1167
|
+
function Jt(t9, i) {
|
|
1168
|
+
return function(n) {
|
|
1169
|
+
return t9 + n * i;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
function Ei(t9, i, n) {
|
|
1173
|
+
return t9 = Math.pow(t9, n), i = Math.pow(i, n) - t9, n = 1 / n, function(e) {
|
|
1174
|
+
return Math.pow(t9 + e * i, n);
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
function gn(t9, i) {
|
|
1178
|
+
var n = i - t9;
|
|
1179
|
+
return n ? Jt(t9, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) : pt(isNaN(t9) ? i : t9);
|
|
1180
|
+
}
|
|
1181
|
+
function Si(t9) {
|
|
1182
|
+
return (t9 = +t9) == 1 ? Ut : function(i, n) {
|
|
1183
|
+
return n - i ? Ei(i, n, t9) : pt(isNaN(i) ? n : i);
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
function Ut(t9, i) {
|
|
1187
|
+
var n = i - t9;
|
|
1188
|
+
return n ? Jt(t9, n) : pt(isNaN(t9) ? i : t9);
|
|
1189
|
+
}
|
|
1190
|
+
const bn = function t8(i) {
|
|
1191
|
+
var n = Si(i);
|
|
1192
|
+
function e(s, o) {
|
|
1193
|
+
var h = n((s = D(s)).r, (o = D(o)).r), r = n(s.g, o.g), a = n(s.b, o.b), l = Ut(s.opacity, o.opacity);
|
|
1194
|
+
return function(_) {
|
|
1195
|
+
return s.r = h(_), s.g = r(_), s.b = a(_), s.opacity = l(_), s + "";
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
return e.gamma = t8, e;
|
|
1199
|
+
}(1);
|
|
1200
|
+
function ti(t9) {
|
|
1201
|
+
return function(i) {
|
|
1202
|
+
var n = i.length, e = new Array(n), s = new Array(n), o = new Array(n), h, r;
|
|
1203
|
+
for (h = 0; h < n; ++h)
|
|
1204
|
+
r = D(i[h]), e[h] = r.r || 0, s[h] = r.g || 0, o[h] = r.b || 0;
|
|
1205
|
+
return e = t9(e), s = t9(s), o = t9(o), r.opacity = 1, function(a) {
|
|
1206
|
+
return r.r = e(a), r.g = s(a), r.b = o(a), r + "";
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
var wn = ti(Mi), mn = ti(Ti);
|
|
1211
|
+
function m(t9, i) {
|
|
1212
|
+
return t9 = +t9, i = +i, function(n) {
|
|
1213
|
+
return t9 * (1 - n) + i * n;
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
var et = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, tt = new RegExp(et.source, "g");
|
|
1217
|
+
function Ci(t9) {
|
|
1218
|
+
return function() {
|
|
1219
|
+
return t9;
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
function Pi(t9) {
|
|
1223
|
+
return function(i) {
|
|
1224
|
+
return t9(i) + "";
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
function vn(t9, i) {
|
|
1228
|
+
var n = et.lastIndex = tt.lastIndex = 0, e, s, o, h = -1, r = [], a = [];
|
|
1229
|
+
for (t9 = t9 + "", i = i + ""; (e = et.exec(t9)) && (s = tt.exec(i)); )
|
|
1230
|
+
(o = s.index) > n && (o = i.slice(n, o), r[h] ? r[h] += o : r[++h] = o), (e = e[0]) === (s = s[0]) ? r[h] ? r[h] += s : r[++h] = s : (r[++h] = null, a.push({ i: h, x: m(e, s) })), n = tt.lastIndex;
|
|
1231
|
+
return n < i.length && (o = i.slice(n), r[h] ? r[h] += o : r[++h] = o), r.length < 2 ? a[0] ? Pi(a[0].x) : Ci(i) : (i = a.length, function(l) {
|
|
1232
|
+
for (var _ = 0, c; _ < i; ++_) r[(c = a[_]).i] = c.x(l);
|
|
1233
|
+
return r.join("");
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
var Ht = 180 / Math.PI, st = {
|
|
1237
|
+
translateX: 0,
|
|
1238
|
+
translateY: 0,
|
|
1239
|
+
rotate: 0,
|
|
1240
|
+
skewX: 0,
|
|
1241
|
+
scaleX: 1,
|
|
1242
|
+
scaleY: 1
|
|
1243
|
+
};
|
|
1244
|
+
function ii(t9, i, n, e, s, o) {
|
|
1245
|
+
var h, r, a;
|
|
1246
|
+
return (h = Math.sqrt(t9 * t9 + i * i)) && (t9 /= h, i /= h), (a = t9 * n + i * e) && (n -= t9 * a, e -= i * a), (r = Math.sqrt(n * n + e * e)) && (n /= r, e /= r, a /= r), t9 * e < i * n && (t9 = -t9, i = -i, a = -a, h = -h), {
|
|
1247
|
+
translateX: s,
|
|
1248
|
+
translateY: o,
|
|
1249
|
+
rotate: Math.atan2(i, t9) * Ht,
|
|
1250
|
+
skewX: Math.atan(a) * Ht,
|
|
1251
|
+
scaleX: h,
|
|
1252
|
+
scaleY: r
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
var O;
|
|
1256
|
+
function Ri(t9) {
|
|
1257
|
+
const i = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t9 + "");
|
|
1258
|
+
return i.isIdentity ? st : ii(i.a, i.b, i.c, i.d, i.e, i.f);
|
|
1259
|
+
}
|
|
1260
|
+
function qi(t9) {
|
|
1261
|
+
return t9 == null || (O || (O = document.createElementNS("http://www.w3.org/2000/svg", "g")), O.setAttribute("transform", t9), !(t9 = O.transform.baseVal.consolidate())) ? st : (t9 = t9.matrix, ii(t9.a, t9.b, t9.c, t9.d, t9.e, t9.f));
|
|
1262
|
+
}
|
|
1263
|
+
function ni(t9, i, n, e) {
|
|
1264
|
+
function s(l) {
|
|
1265
|
+
return l.length ? l.pop() + " " : "";
|
|
1266
|
+
}
|
|
1267
|
+
function o(l, _, c, f, u, d) {
|
|
1268
|
+
if (l !== c || _ !== f) {
|
|
1269
|
+
var y = u.push("translate(", null, i, null, n);
|
|
1270
|
+
d.push({ i: y - 4, x: m(l, c) }, { i: y - 2, x: m(_, f) });
|
|
1271
|
+
} else (c || f) && u.push("translate(" + c + i + f + n);
|
|
1272
|
+
}
|
|
1273
|
+
function h(l, _, c, f) {
|
|
1274
|
+
l !== _ ? (l - _ > 180 ? _ += 360 : _ - l > 180 && (l += 360), f.push({ i: c.push(s(c) + "rotate(", null, e) - 2, x: m(l, _) })) : _ && c.push(s(c) + "rotate(" + _ + e);
|
|
1275
|
+
}
|
|
1276
|
+
function r(l, _, c, f) {
|
|
1277
|
+
l !== _ ? f.push({ i: c.push(s(c) + "skewX(", null, e) - 2, x: m(l, _) }) : _ && c.push(s(c) + "skewX(" + _ + e);
|
|
1278
|
+
}
|
|
1279
|
+
function a(l, _, c, f, u, d) {
|
|
1280
|
+
if (l !== c || _ !== f) {
|
|
1281
|
+
var y = u.push(s(u) + "scale(", null, ",", null, ")");
|
|
1282
|
+
d.push({ i: y - 4, x: m(l, c) }, { i: y - 2, x: m(_, f) });
|
|
1283
|
+
} else (c !== 1 || f !== 1) && u.push(s(u) + "scale(" + c + "," + f + ")");
|
|
1284
|
+
}
|
|
1285
|
+
return function(l, _) {
|
|
1286
|
+
var c = [], f = [];
|
|
1287
|
+
return l = t9(l), _ = t9(_), o(l.translateX, l.translateY, _.translateX, _.translateY, c, f), h(l.rotate, _.rotate, c, f), r(l.skewX, _.skewX, c, f), a(l.scaleX, l.scaleY, _.scaleX, _.scaleY, c, f), l = _ = null, function(u) {
|
|
1288
|
+
for (var d = -1, y = f.length, X; ++d < y; ) c[(X = f[d]).i] = X.x(u);
|
|
1289
|
+
return c.join("");
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
var kn = ni(Ri, "px, ", "px)", "deg)"), $n = ni(qi, ", ", ")", ")"), Hi = { value: () => {
|
|
1294
|
+
} };
|
|
1295
|
+
function Xi() {
|
|
1296
|
+
for (var t9 = 0, i = arguments.length, n = {}, e; t9 < i; ++t9) {
|
|
1297
|
+
if (!(e = arguments[t9] + "") || e in n || /[\s.]/.test(e)) throw new Error("illegal type: " + e);
|
|
1298
|
+
n[e] = [];
|
|
1299
|
+
}
|
|
1300
|
+
return new B(n);
|
|
1301
|
+
}
|
|
1302
|
+
function B(t9) {
|
|
1303
|
+
this._ = t9;
|
|
1304
|
+
}
|
|
1305
|
+
function Ai(t9, i) {
|
|
1306
|
+
return t9.trim().split(/^|\s+/).map(function(n) {
|
|
1307
|
+
var e = "", s = n.indexOf(".");
|
|
1308
|
+
if (s >= 0 && (e = n.slice(s + 1), n = n.slice(0, s)), n && !i.hasOwnProperty(n)) throw new Error("unknown type: " + n);
|
|
1309
|
+
return { type: n, name: e };
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
B.prototype = Xi.prototype = {
|
|
1313
|
+
constructor: B,
|
|
1314
|
+
on: function(t9, i) {
|
|
1315
|
+
var n = this._, e = Ai(t9 + "", n), s, o = -1, h = e.length;
|
|
1316
|
+
if (arguments.length < 2) {
|
|
1317
|
+
for (; ++o < h; ) if ((s = (t9 = e[o]).type) && (s = Ii(n[s], t9.name))) return s;
|
|
1318
|
+
return;
|
|
1319
|
+
}
|
|
1320
|
+
if (i != null && typeof i != "function") throw new Error("invalid callback: " + i);
|
|
1321
|
+
for (; ++o < h; )
|
|
1322
|
+
if (s = (t9 = e[o]).type) n[s] = Xt(n[s], t9.name, i);
|
|
1323
|
+
else if (i == null) for (s in n) n[s] = Xt(n[s], t9.name, null);
|
|
1324
|
+
return this;
|
|
1325
|
+
},
|
|
1326
|
+
copy: function() {
|
|
1327
|
+
var t9 = {}, i = this._;
|
|
1328
|
+
for (var n in i) t9[n] = i[n].slice();
|
|
1329
|
+
return new B(t9);
|
|
1330
|
+
},
|
|
1331
|
+
call: function(t9, i) {
|
|
1332
|
+
if ((s = arguments.length - 2) > 0) for (var n = new Array(s), e = 0, s, o; e < s; ++e) n[e] = arguments[e + 2];
|
|
1333
|
+
if (!this._.hasOwnProperty(t9)) throw new Error("unknown type: " + t9);
|
|
1334
|
+
for (o = this._[t9], e = 0, s = o.length; e < s; ++e) o[e].value.apply(i, n);
|
|
1335
|
+
},
|
|
1336
|
+
apply: function(t9, i, n) {
|
|
1337
|
+
if (!this._.hasOwnProperty(t9)) throw new Error("unknown type: " + t9);
|
|
1338
|
+
for (var e = this._[t9], s = 0, o = e.length; s < o; ++s) e[s].value.apply(i, n);
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
function Ii(t9, i) {
|
|
1342
|
+
for (var n = 0, e = t9.length, s; n < e; ++n)
|
|
1343
|
+
if ((s = t9[n]).name === i)
|
|
1344
|
+
return s.value;
|
|
1345
|
+
}
|
|
1346
|
+
function Xt(t9, i, n) {
|
|
1347
|
+
for (var e = 0, s = t9.length; e < s; ++e)
|
|
1348
|
+
if (t9[e].name === i) {
|
|
1349
|
+
t9[e] = Hi, t9 = t9.slice(0, e).concat(t9.slice(e + 1));
|
|
1350
|
+
break;
|
|
1351
|
+
}
|
|
1352
|
+
return n != null && t9.push({ name: i, value: n }), t9;
|
|
1353
|
+
}
|
|
1354
|
+
var T = 0, S = 0, E = 0, ei = 1e3, Z, C, G = 0, $ = 0, V = 0, q = typeof performance == "object" && performance.now ? performance : Date, si = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t9) {
|
|
1355
|
+
setTimeout(t9, 17);
|
|
1356
|
+
};
|
|
1357
|
+
function oi() {
|
|
1358
|
+
return $ || (si(Oi), $ = q.now() + V);
|
|
1359
|
+
}
|
|
1360
|
+
function Oi() {
|
|
1361
|
+
$ = 0;
|
|
1362
|
+
}
|
|
1363
|
+
function ot() {
|
|
1364
|
+
this._call = this._time = this._next = null;
|
|
1365
|
+
}
|
|
1366
|
+
ot.prototype = Bi.prototype = {
|
|
1367
|
+
constructor: ot,
|
|
1368
|
+
restart: function(t9, i, n) {
|
|
1369
|
+
if (typeof t9 != "function") throw new TypeError("callback is not a function");
|
|
1370
|
+
n = (n == null ? oi() : +n) + (i == null ? 0 : +i), !this._next && C !== this && (C ? C._next = this : Z = this, C = this), this._call = t9, this._time = n, ht();
|
|
1371
|
+
},
|
|
1372
|
+
stop: function() {
|
|
1373
|
+
this._call && (this._call = null, this._time = 1 / 0, ht());
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
function Bi(t9, i, n) {
|
|
1377
|
+
var e = new ot();
|
|
1378
|
+
return e.restart(t9, i, n), e;
|
|
1379
|
+
}
|
|
1380
|
+
function Yi() {
|
|
1381
|
+
oi(), ++T;
|
|
1382
|
+
for (var t9 = Z, i; t9; )
|
|
1383
|
+
(i = $ - t9._time) >= 0 && t9._call.call(void 0, i), t9 = t9._next;
|
|
1384
|
+
--T;
|
|
1385
|
+
}
|
|
1386
|
+
function At() {
|
|
1387
|
+
$ = (G = q.now()) + V, T = S = 0;
|
|
1388
|
+
try {
|
|
1389
|
+
Yi();
|
|
1390
|
+
} finally {
|
|
1391
|
+
T = 0, zi(), $ = 0;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
function ji() {
|
|
1395
|
+
var t9 = q.now(), i = t9 - G;
|
|
1396
|
+
i > ei && (V -= i, G = t9);
|
|
1397
|
+
}
|
|
1398
|
+
function zi() {
|
|
1399
|
+
for (var t9, i = Z, n, e = 1 / 0; i; )
|
|
1400
|
+
i._call ? (e > i._time && (e = i._time), t9 = i, i = i._next) : (n = i._next, i._next = null, i = t9 ? t9._next = n : Z = n);
|
|
1401
|
+
C = t9, ht(e);
|
|
1402
|
+
}
|
|
1403
|
+
function ht(t9) {
|
|
1404
|
+
if (!T) {
|
|
1405
|
+
S && (S = clearTimeout(S));
|
|
1406
|
+
var i = t9 - $;
|
|
1407
|
+
i > 24 ? (t9 < 1 / 0 && (S = setTimeout(At, t9 - q.now() - V)), E && (E = clearInterval(E))) : (E || (G = q.now(), E = setInterval(ji, ei)), T = 1, si(At));
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
export {
|
|
1411
|
+
fi as $,
|
|
1412
|
+
vn as A,
|
|
1413
|
+
xt as B,
|
|
1414
|
+
H as C,
|
|
1415
|
+
Bi as D,
|
|
1416
|
+
Xi as E,
|
|
1417
|
+
$n as F,
|
|
1418
|
+
kn as G,
|
|
1419
|
+
oi as H,
|
|
1420
|
+
dn as I,
|
|
1421
|
+
yn as J,
|
|
1422
|
+
pn as K,
|
|
1423
|
+
xn as L,
|
|
1424
|
+
un as M,
|
|
1425
|
+
fn as N,
|
|
1426
|
+
cn as O,
|
|
1427
|
+
ci as P,
|
|
1428
|
+
an as Q,
|
|
1429
|
+
x as R,
|
|
1430
|
+
ln as S,
|
|
1431
|
+
ot as T,
|
|
1432
|
+
_n as U,
|
|
1433
|
+
on as V,
|
|
1434
|
+
rn as W,
|
|
1435
|
+
hn as X,
|
|
1436
|
+
sn as Y,
|
|
1437
|
+
en as Z,
|
|
1438
|
+
nn as _,
|
|
1439
|
+
N as a,
|
|
1440
|
+
ui as a0,
|
|
1441
|
+
P as a1,
|
|
1442
|
+
L as a2,
|
|
1443
|
+
Ni as a3,
|
|
1444
|
+
Mi as a4,
|
|
1445
|
+
Ti as a5,
|
|
1446
|
+
wn as a6,
|
|
1447
|
+
mn as a7,
|
|
1448
|
+
ai as a8,
|
|
1449
|
+
D as a9,
|
|
1450
|
+
Qi as b,
|
|
1451
|
+
Fi as c,
|
|
1452
|
+
Li as d,
|
|
1453
|
+
wt as e,
|
|
1454
|
+
Di as f,
|
|
1455
|
+
Ji as g,
|
|
1456
|
+
mt as h,
|
|
1457
|
+
Zi as i,
|
|
1458
|
+
Wi as j,
|
|
1459
|
+
tn as k,
|
|
1460
|
+
Ui as l,
|
|
1461
|
+
Gi as m,
|
|
1462
|
+
li as n,
|
|
1463
|
+
ut as o,
|
|
1464
|
+
rt as p,
|
|
1465
|
+
Qt as q,
|
|
1466
|
+
ki as r,
|
|
1467
|
+
Ki as s,
|
|
1468
|
+
Vi as t,
|
|
1469
|
+
Ut as u,
|
|
1470
|
+
gn as v,
|
|
1471
|
+
_i as w,
|
|
1472
|
+
pt as x,
|
|
1473
|
+
m as y,
|
|
1474
|
+
bn as z
|
|
1475
|
+
};
|