@opensystemslab/map 1.0.0-alpha.5 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +137 -138
- package/dist/{index-B7jZERBa.mjs → index-D01mRj0Z.mjs} +16916 -14570
- package/dist/{index.es-Cki5MeFv.mjs → index.es-DVcWaq6t.mjs} +494 -494
- package/dist/index.html +108 -111
- package/dist/{purify.es-BGDLgQxM.mjs → purify.es-DHbHSKL1.mjs} +244 -235
- package/package.json +13 -13
@@ -1,17 +1,17 @@
|
|
1
|
-
import { c as Ma, _ as qa, g as Zu } from "./index-
|
2
|
-
var un = {}, ln = {},
|
1
|
+
import { c as Ma, _ as qa, g as Zu } from "./index-D01mRj0Z.mjs";
|
2
|
+
var un = {}, ln = {}, ur, hn;
|
3
3
|
function Z() {
|
4
|
-
if (hn) return
|
4
|
+
if (hn) return ur;
|
5
5
|
hn = 1;
|
6
6
|
var n = function(e) {
|
7
7
|
return e && e.Math === Math && e;
|
8
8
|
};
|
9
|
-
return
|
9
|
+
return ur = // eslint-disable-next-line es/no-global-this -- safe
|
10
10
|
n(typeof globalThis == "object" && globalThis) || n(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
11
|
-
n(typeof self == "object" && self) || n(typeof Ma == "object" && Ma) || n(typeof
|
11
|
+
n(typeof self == "object" && self) || n(typeof Ma == "object" && Ma) || n(typeof ur == "object" && ur) || // eslint-disable-next-line no-new-func -- fallback
|
12
12
|
/* @__PURE__ */ function() {
|
13
13
|
return this;
|
14
|
-
}() || Function("return this")(),
|
14
|
+
}() || Function("return this")(), ur;
|
15
15
|
}
|
16
16
|
var Qr = {}, Zr, fn;
|
17
17
|
function ee() {
|
@@ -24,7 +24,7 @@ function ee() {
|
|
24
24
|
}), Zr;
|
25
25
|
}
|
26
26
|
var Jr, cn;
|
27
|
-
function
|
27
|
+
function Re() {
|
28
28
|
if (cn) return Jr;
|
29
29
|
cn = 1;
|
30
30
|
var n = ee();
|
@@ -35,7 +35,7 @@ function Ee() {
|
|
35
35
|
}), Jr;
|
36
36
|
}
|
37
37
|
var et, vn;
|
38
|
-
function
|
38
|
+
function Pr() {
|
39
39
|
if (vn) return et;
|
40
40
|
vn = 1;
|
41
41
|
var n = ee();
|
@@ -49,7 +49,7 @@ var rt, gn;
|
|
49
49
|
function se() {
|
50
50
|
if (gn) return rt;
|
51
51
|
gn = 1;
|
52
|
-
var n =
|
52
|
+
var n = Pr(), e = Function.prototype.call;
|
53
53
|
return rt = n ? e.bind(e) : function() {
|
54
54
|
return e.apply(e, arguments);
|
55
55
|
}, rt;
|
@@ -65,7 +65,7 @@ function Gl() {
|
|
65
65
|
} : n, tt;
|
66
66
|
}
|
67
67
|
var it, pn;
|
68
|
-
function
|
68
|
+
function ja() {
|
69
69
|
return pn || (pn = 1, it = function(n, e) {
|
70
70
|
return {
|
71
71
|
enumerable: !(n & 1),
|
@@ -79,7 +79,7 @@ var at, yn;
|
|
79
79
|
function re() {
|
80
80
|
if (yn) return at;
|
81
81
|
yn = 1;
|
82
|
-
var n =
|
82
|
+
var n = Pr(), e = Function.prototype, r = e.call, t = n && e.bind.bind(r, r);
|
83
83
|
return at = n ? t : function(i) {
|
84
84
|
return function() {
|
85
85
|
return r.apply(i, arguments);
|
@@ -107,26 +107,26 @@ function Ju() {
|
|
107
107
|
} : t, st;
|
108
108
|
}
|
109
109
|
var ot, xn;
|
110
|
-
function
|
110
|
+
function Ar() {
|
111
111
|
return xn || (xn = 1, ot = function(n) {
|
112
112
|
return n == null;
|
113
113
|
}), ot;
|
114
114
|
}
|
115
|
-
var ut,
|
116
|
-
function
|
117
|
-
if (
|
118
|
-
|
119
|
-
var n =
|
115
|
+
var ut, On;
|
116
|
+
function Ce() {
|
117
|
+
if (On) return ut;
|
118
|
+
On = 1;
|
119
|
+
var n = Ar(), e = TypeError;
|
120
120
|
return ut = function(r) {
|
121
121
|
if (n(r)) throw new e("Can't call method on " + r);
|
122
122
|
return r;
|
123
123
|
}, ut;
|
124
124
|
}
|
125
|
-
var lt,
|
126
|
-
function
|
127
|
-
if (
|
128
|
-
|
129
|
-
var n = Ju(), e =
|
125
|
+
var lt, Tn;
|
126
|
+
function fr() {
|
127
|
+
if (Tn) return lt;
|
128
|
+
Tn = 1;
|
129
|
+
var n = Ju(), e = Ce();
|
130
130
|
return lt = function(r) {
|
131
131
|
return n(e(r));
|
132
132
|
}, lt;
|
@@ -143,7 +143,7 @@ function te() {
|
|
143
143
|
}, ht;
|
144
144
|
}
|
145
145
|
var ft, En;
|
146
|
-
function
|
146
|
+
function ve() {
|
147
147
|
if (En) return ft;
|
148
148
|
En = 1;
|
149
149
|
var n = te();
|
@@ -152,7 +152,7 @@ function Ce() {
|
|
152
152
|
}, ft;
|
153
153
|
}
|
154
154
|
var ct, Rn;
|
155
|
-
function
|
155
|
+
function Je() {
|
156
156
|
if (Rn) return ct;
|
157
157
|
Rn = 1;
|
158
158
|
var n = Z(), e = te(), r = function(t) {
|
@@ -170,24 +170,24 @@ function Ir() {
|
|
170
170
|
return vt = n({}.isPrototypeOf), vt;
|
171
171
|
}
|
172
172
|
var gt, wn;
|
173
|
-
function
|
173
|
+
function cr() {
|
174
174
|
if (wn) return gt;
|
175
175
|
wn = 1;
|
176
176
|
var n = Z(), e = n.navigator, r = e && e.userAgent;
|
177
177
|
return gt = r ? String(r) : "", gt;
|
178
178
|
}
|
179
179
|
var dt, Pn;
|
180
|
-
function
|
180
|
+
function Ba() {
|
181
181
|
if (Pn) return dt;
|
182
182
|
Pn = 1;
|
183
|
-
var n = Z(), e =
|
183
|
+
var n = Z(), e = cr(), r = n.process, t = n.Deno, i = r && r.versions || t && t.version, a = i && i.v8, s, o;
|
184
184
|
return a && (s = a.split("."), o = s[0] > 0 && s[0] < 4 ? 1 : +(s[0] + s[1])), !o && e && (s = e.match(/Edge\/(\d+)/), (!s || s[1] >= 74) && (s = e.match(/Chrome\/(\d+)/), s && (o = +s[1]))), dt = o, dt;
|
185
185
|
}
|
186
186
|
var pt, An;
|
187
187
|
function el() {
|
188
188
|
if (An) return pt;
|
189
189
|
An = 1;
|
190
|
-
var n =
|
190
|
+
var n = Ba(), e = ee(), r = Z(), t = r.String;
|
191
191
|
return pt = !!Object.getOwnPropertySymbols && !e(function() {
|
192
192
|
var i = Symbol("symbol detection");
|
193
193
|
return !t(i) || !(Object(i) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
@@ -205,7 +205,7 @@ var mt, Nn;
|
|
205
205
|
function tl() {
|
206
206
|
if (Nn) return mt;
|
207
207
|
Nn = 1;
|
208
|
-
var n =
|
208
|
+
var n = Je(), e = te(), r = Ir(), t = rl(), i = Object;
|
209
209
|
return mt = t ? function(a) {
|
210
210
|
return typeof a == "symbol";
|
211
211
|
} : function(a) {
|
@@ -227,7 +227,7 @@ function Nr() {
|
|
227
227
|
}, bt;
|
228
228
|
}
|
229
229
|
var xt, Mn;
|
230
|
-
function
|
230
|
+
function Be() {
|
231
231
|
if (Mn) return xt;
|
232
232
|
Mn = 1;
|
233
233
|
var n = te(), e = Nr(), r = TypeError;
|
@@ -236,26 +236,26 @@ function je() {
|
|
236
236
|
throw new r(e(t) + " is not a function");
|
237
237
|
}, xt;
|
238
238
|
}
|
239
|
-
var
|
240
|
-
function
|
241
|
-
if (qn) return
|
239
|
+
var Ot, qn;
|
240
|
+
function ir() {
|
241
|
+
if (qn) return Ot;
|
242
242
|
qn = 1;
|
243
|
-
var n =
|
244
|
-
return
|
243
|
+
var n = Be(), e = Ar();
|
244
|
+
return Ot = function(r, t) {
|
245
245
|
var i = r[t];
|
246
246
|
return e(i) ? void 0 : n(i);
|
247
|
-
},
|
247
|
+
}, Ot;
|
248
248
|
}
|
249
|
-
var
|
249
|
+
var Tt, Dn;
|
250
250
|
function $l() {
|
251
|
-
if (Dn) return
|
251
|
+
if (Dn) return Tt;
|
252
252
|
Dn = 1;
|
253
|
-
var n = se(), e = te(), r =
|
254
|
-
return
|
253
|
+
var n = se(), e = te(), r = ve(), t = TypeError;
|
254
|
+
return Tt = function(i, a) {
|
255
255
|
var s, o;
|
256
256
|
if (a === "string" && e(s = i.toString) && !r(o = n(s, i)) || e(s = i.valueOf) && !r(o = n(s, i)) || a !== "string" && e(s = i.toString) && !r(o = n(s, i))) return o;
|
257
257
|
throw new t("Can't convert object to primitive value");
|
258
|
-
},
|
258
|
+
}, Tt;
|
259
259
|
}
|
260
260
|
var St = { exports: {} }, Et, Vn;
|
261
261
|
function Me() {
|
@@ -281,27 +281,27 @@ function Ua() {
|
|
281
281
|
kn = 1;
|
282
282
|
var n = Me(), e = Z(), r = Fa(), t = "__core-js_shared__", i = St.exports = e[t] || r(t, {});
|
283
283
|
return (i.versions || (i.versions = [])).push({
|
284
|
-
version: "3.
|
284
|
+
version: "3.42.0",
|
285
285
|
mode: n ? "pure" : "global",
|
286
286
|
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
287
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
287
|
+
license: "https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",
|
288
288
|
source: "https://github.com/zloirock/core-js"
|
289
289
|
}), St.exports;
|
290
290
|
}
|
291
|
-
var Ct,
|
291
|
+
var Ct, jn;
|
292
292
|
function Ga() {
|
293
|
-
if (
|
294
|
-
|
293
|
+
if (jn) return Ct;
|
294
|
+
jn = 1;
|
295
295
|
var n = Ua();
|
296
296
|
return Ct = function(e, r) {
|
297
297
|
return n[e] || (n[e] = r || {});
|
298
298
|
}, Ct;
|
299
299
|
}
|
300
|
-
var wt,
|
300
|
+
var wt, Bn;
|
301
301
|
function _r() {
|
302
|
-
if (
|
303
|
-
|
304
|
-
var n =
|
302
|
+
if (Bn) return wt;
|
303
|
+
Bn = 1;
|
304
|
+
var n = Ce(), e = Object;
|
305
305
|
return wt = function(r) {
|
306
306
|
return e(n(r));
|
307
307
|
}, wt;
|
@@ -337,7 +337,7 @@ var Nt, $n;
|
|
337
337
|
function zl() {
|
338
338
|
if ($n) return Nt;
|
339
339
|
$n = 1;
|
340
|
-
var n = se(), e =
|
340
|
+
var n = se(), e = ve(), r = tl(), t = ir(), i = $l(), a = ne(), s = TypeError, o = a("toPrimitive");
|
341
341
|
return Nt = function(u, l) {
|
342
342
|
if (!e(u) || r(u)) return u;
|
343
343
|
var h = t(u, o), c;
|
@@ -362,7 +362,7 @@ var Mt, Hn;
|
|
362
362
|
function Mr() {
|
363
363
|
if (Hn) return Mt;
|
364
364
|
Hn = 1;
|
365
|
-
var n = Z(), e =
|
365
|
+
var n = Z(), e = ve(), r = n.document, t = e(r) && e(r.createElement);
|
366
366
|
return Mt = function(i) {
|
367
367
|
return t ? r.createElement(i) : {};
|
368
368
|
}, Mt;
|
@@ -371,7 +371,7 @@ var qt, Wn;
|
|
371
371
|
function nl() {
|
372
372
|
if (Wn) return qt;
|
373
373
|
Wn = 1;
|
374
|
-
var n =
|
374
|
+
var n = Re(), e = ee(), r = Mr();
|
375
375
|
return qt = !n && !e(function() {
|
376
376
|
return Object.defineProperty(r("div"), "a", {
|
377
377
|
get: function() {
|
@@ -384,7 +384,7 @@ var Yn;
|
|
384
384
|
function qr() {
|
385
385
|
if (Yn) return Qr;
|
386
386
|
Yn = 1;
|
387
|
-
var n =
|
387
|
+
var n = Re(), e = se(), r = Gl(), t = ja(), i = fr(), a = al(), s = we(), o = nl(), u = Object.getOwnPropertyDescriptor;
|
388
388
|
return Qr.f = n ? u : function(h, c) {
|
389
389
|
if (h = i(h), c = a(c), o) try {
|
390
390
|
return u(h, c);
|
@@ -397,7 +397,7 @@ var Dt = {}, Vt, Xn;
|
|
397
397
|
function sl() {
|
398
398
|
if (Xn) return Vt;
|
399
399
|
Xn = 1;
|
400
|
-
var n =
|
400
|
+
var n = Re(), e = ee();
|
401
401
|
return Vt = n && e(function() {
|
402
402
|
return Object.defineProperty(function() {
|
403
403
|
}, "prototype", {
|
@@ -410,7 +410,7 @@ var Lt, Kn;
|
|
410
410
|
function ue() {
|
411
411
|
if (Kn) return Lt;
|
412
412
|
Kn = 1;
|
413
|
-
var n =
|
413
|
+
var n = ve(), e = String, r = TypeError;
|
414
414
|
return Lt = function(t) {
|
415
415
|
if (n(t)) return t;
|
416
416
|
throw new r(e(t) + " is not an object");
|
@@ -420,7 +420,7 @@ var Qn;
|
|
420
420
|
function He() {
|
421
421
|
if (Qn) return Dt;
|
422
422
|
Qn = 1;
|
423
|
-
var n =
|
423
|
+
var n = Re(), e = nl(), r = sl(), t = ue(), i = al(), a = TypeError, s = Object.defineProperty, o = Object.getOwnPropertyDescriptor, u = "enumerable", l = "configurable", h = "writable";
|
424
424
|
return Dt.f = n ? r ? function(v, f, g) {
|
425
425
|
if (t(v), f = i(f), t(g), typeof v == "function" && f === "prototype" && "value" in g && h in g && !g[h]) {
|
426
426
|
var d = o(v, f);
|
@@ -441,27 +441,27 @@ function He() {
|
|
441
441
|
}, Dt;
|
442
442
|
}
|
443
443
|
var kt, Zn;
|
444
|
-
function
|
444
|
+
function vr() {
|
445
445
|
if (Zn) return kt;
|
446
446
|
Zn = 1;
|
447
|
-
var n =
|
447
|
+
var n = Re(), e = He(), r = ja();
|
448
448
|
return kt = n ? function(t, i, a) {
|
449
449
|
return e.f(t, i, r(1, a));
|
450
450
|
} : function(t, i, a) {
|
451
451
|
return t[i] = a, t;
|
452
452
|
}, kt;
|
453
453
|
}
|
454
|
-
var
|
454
|
+
var jt = { exports: {} }, Bt, Jn;
|
455
455
|
function Dr() {
|
456
|
-
if (Jn) return
|
456
|
+
if (Jn) return Bt;
|
457
457
|
Jn = 1;
|
458
|
-
var n =
|
458
|
+
var n = Re(), e = we(), r = Function.prototype, t = n && Object.getOwnPropertyDescriptor, i = e(r, "name"), a = i && (function() {
|
459
459
|
}).name === "something", s = i && (!n || n && t(r, "name").configurable);
|
460
|
-
return
|
460
|
+
return Bt = {
|
461
461
|
EXISTS: i,
|
462
462
|
PROPER: a,
|
463
463
|
CONFIGURABLE: s
|
464
|
-
},
|
464
|
+
}, Bt;
|
465
465
|
}
|
466
466
|
var Ft, es;
|
467
467
|
function $a() {
|
@@ -496,7 +496,7 @@ var zt, as;
|
|
496
496
|
function Vr() {
|
497
497
|
if (as) return zt;
|
498
498
|
as = 1;
|
499
|
-
var n = Hl(), e = Z(), r =
|
499
|
+
var n = Hl(), e = Z(), r = ve(), t = vr(), i = we(), a = Ua(), s = za(), o = Ha(), u = "Object already initialized", l = e.TypeError, h = e.WeakMap, c, v, f, g = function(m) {
|
500
500
|
return f(m) ? v(m) : c(m, {});
|
501
501
|
}, d = function(m) {
|
502
502
|
return function(b) {
|
@@ -537,12 +537,12 @@ function Vr() {
|
|
537
537
|
}
|
538
538
|
var ns;
|
539
539
|
function ol() {
|
540
|
-
if (ns) return
|
540
|
+
if (ns) return jt.exports;
|
541
541
|
ns = 1;
|
542
|
-
var n = re(), e = ee(), r = te(), t = we(), i =
|
542
|
+
var n = re(), e = ee(), r = te(), t = we(), i = Re(), a = Dr().CONFIGURABLE, s = $a(), o = Vr(), u = o.enforce, l = o.get, h = String, c = Object.defineProperty, v = n("".slice), f = n("".replace), g = n([].join), d = i && !e(function() {
|
543
543
|
return c(function() {
|
544
544
|
}, "length", { value: 8 }).length !== 8;
|
545
|
-
}), p = String(String).split("String"), y =
|
545
|
+
}), p = String(String).split("String"), y = jt.exports = function(m, b, x) {
|
546
546
|
v(h(b), 0, 7) === "Symbol(" && (b = "[" + f(h(b), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), x && x.getter && (b = "get " + b), x && x.setter && (b = "set " + b), (!t(m, "name") || a && m.name !== b) && (i ? c(m, "name", { value: b, configurable: !0 }) : m.name = b), d && x && t(x, "arity") && m.length !== x.arity && c(m, "length", { value: x.arity });
|
547
547
|
try {
|
548
548
|
x && t(x, "constructor") && x.constructor ? i && c(m, "prototype", { writable: !1 }) : m.prototype && (m.prototype = void 0);
|
@@ -553,10 +553,10 @@ function ol() {
|
|
553
553
|
};
|
554
554
|
return Function.prototype.toString = y(function() {
|
555
555
|
return r(this) && l(this).source || s(this);
|
556
|
-
}, "toString"),
|
556
|
+
}, "toString"), jt.exports;
|
557
557
|
}
|
558
558
|
var Ht, ss;
|
559
|
-
function
|
559
|
+
function er() {
|
560
560
|
if (ss) return Ht;
|
561
561
|
ss = 1;
|
562
562
|
var n = te(), e = He(), r = ol(), t = Fa();
|
@@ -611,7 +611,7 @@ function Yl() {
|
|
611
611
|
}, Kt;
|
612
612
|
}
|
613
613
|
var Qt, hs;
|
614
|
-
function
|
614
|
+
function ar() {
|
615
615
|
if (hs) return Qt;
|
616
616
|
hs = 1;
|
617
617
|
var n = Lr(), e = Math.min;
|
@@ -624,7 +624,7 @@ var Zt, fs;
|
|
624
624
|
function Wa() {
|
625
625
|
if (fs) return Zt;
|
626
626
|
fs = 1;
|
627
|
-
var n =
|
627
|
+
var n = ar();
|
628
628
|
return Zt = function(e) {
|
629
629
|
return n(e.length);
|
630
630
|
}, Zt;
|
@@ -633,7 +633,7 @@ var Jt, cs;
|
|
633
633
|
function ul() {
|
634
634
|
if (cs) return Jt;
|
635
635
|
cs = 1;
|
636
|
-
var n =
|
636
|
+
var n = fr(), e = Yl(), r = Wa(), t = function(i) {
|
637
637
|
return function(a, s, o) {
|
638
638
|
var u = n(a), l = r(u);
|
639
639
|
if (l === 0) return !i && -1;
|
@@ -659,7 +659,7 @@ var ei, vs;
|
|
659
659
|
function ll() {
|
660
660
|
if (vs) return ei;
|
661
661
|
vs = 1;
|
662
|
-
var n = re(), e = we(), r =
|
662
|
+
var n = re(), e = we(), r = fr(), t = ul().indexOf, i = Ha(), a = n([].push);
|
663
663
|
return ei = function(s, o) {
|
664
664
|
var u = r(s), l = 0, h = [], c;
|
665
665
|
for (c in u) !e(i, c) && e(u, c) && a(h, c);
|
@@ -696,7 +696,7 @@ var ii, ys;
|
|
696
696
|
function Ql() {
|
697
697
|
if (ys) return ii;
|
698
698
|
ys = 1;
|
699
|
-
var n =
|
699
|
+
var n = Je(), e = re(), r = Xl(), t = Kl(), i = ue(), a = e([].concat);
|
700
700
|
return ii = n("Reflect", "ownKeys") || function(o) {
|
701
701
|
var u = r.f(i(o)), l = t.f;
|
702
702
|
return l ? a(u, l(o)) : u;
|
@@ -730,7 +730,7 @@ var si, xs;
|
|
730
730
|
function le() {
|
731
731
|
if (xs) return si;
|
732
732
|
xs = 1;
|
733
|
-
var n = Z(), e = qr().f, r =
|
733
|
+
var n = Z(), e = qr().f, r = vr(), t = er(), i = Fa(), a = Zl(), s = hl();
|
734
734
|
return si = function(o, u) {
|
735
735
|
var l = o.target, h = o.global, c = o.stat, v, f, g, d, p, y;
|
736
736
|
if (h ? f = n : c ? f = n[l] || i(l, {}) : f = n[l] && n[l].prototype, f) for (g in u) {
|
@@ -742,21 +742,21 @@ function le() {
|
|
742
742
|
}
|
743
743
|
}, si;
|
744
744
|
}
|
745
|
-
var oi,
|
745
|
+
var oi, Os;
|
746
746
|
function fl() {
|
747
|
-
if (
|
748
|
-
|
749
|
-
var n = Z(), e =
|
747
|
+
if (Os) return oi;
|
748
|
+
Os = 1;
|
749
|
+
var n = Z(), e = cr(), r = Ze(), t = function(i) {
|
750
750
|
return e.slice(0, i.length) === i;
|
751
751
|
};
|
752
752
|
return oi = function() {
|
753
753
|
return t("Bun/") ? "BUN" : t("Cloudflare-Workers") ? "CLOUDFLARE" : t("Deno/") ? "DENO" : t("Node.js/") ? "NODE" : n.Bun && typeof Bun.version == "string" ? "BUN" : n.Deno && typeof Deno.version == "object" ? "DENO" : r(n.process) === "process" ? "NODE" : n.window && n.document ? "BROWSER" : "REST";
|
754
754
|
}(), oi;
|
755
755
|
}
|
756
|
-
var ui,
|
756
|
+
var ui, Ts;
|
757
757
|
function kr() {
|
758
|
-
if (
|
759
|
-
|
758
|
+
if (Ts) return ui;
|
759
|
+
Ts = 1;
|
760
760
|
var n = fl();
|
761
761
|
return ui = n === "NODE", ui;
|
762
762
|
}
|
@@ -764,7 +764,7 @@ var li, Ss;
|
|
764
764
|
function Jl() {
|
765
765
|
if (Ss) return li;
|
766
766
|
Ss = 1;
|
767
|
-
var n = re(), e =
|
767
|
+
var n = re(), e = Be();
|
768
768
|
return li = function(r, t, i) {
|
769
769
|
try {
|
770
770
|
return n(e(Object.getOwnPropertyDescriptor(r, t)[i]));
|
@@ -776,7 +776,7 @@ var hi, Es;
|
|
776
776
|
function eh() {
|
777
777
|
if (Es) return hi;
|
778
778
|
Es = 1;
|
779
|
-
var n =
|
779
|
+
var n = ve();
|
780
780
|
return hi = function(e) {
|
781
781
|
return n(e) || e === null;
|
782
782
|
}, hi;
|
@@ -795,7 +795,7 @@ var ci, Cs;
|
|
795
795
|
function cl() {
|
796
796
|
if (Cs) return ci;
|
797
797
|
Cs = 1;
|
798
|
-
var n = Jl(), e =
|
798
|
+
var n = Jl(), e = ve(), r = Ce(), t = rh();
|
799
799
|
return ci = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
800
800
|
var i = !1, a = {}, s;
|
801
801
|
try {
|
@@ -808,7 +808,7 @@ function cl() {
|
|
808
808
|
}() : void 0), ci;
|
809
809
|
}
|
810
810
|
var vi, ws;
|
811
|
-
function
|
811
|
+
function jr() {
|
812
812
|
if (ws) return vi;
|
813
813
|
ws = 1;
|
814
814
|
var n = He().f, e = we(), r = ne(), t = r("toStringTag");
|
@@ -829,7 +829,7 @@ var di, As;
|
|
829
829
|
function ih() {
|
830
830
|
if (As) return di;
|
831
831
|
As = 1;
|
832
|
-
var n =
|
832
|
+
var n = Je(), e = th(), r = ne(), t = Re(), i = r("species");
|
833
833
|
return di = function(a) {
|
834
834
|
var s = n(a);
|
835
835
|
t && s && !s[i] && e(s, i, {
|
@@ -878,7 +878,7 @@ var bi, Ms;
|
|
878
878
|
function sh() {
|
879
879
|
if (Ms) return bi;
|
880
880
|
Ms = 1;
|
881
|
-
var n = re(), e = ee(), r = te(), t = Xa(), i =
|
881
|
+
var n = re(), e = ee(), r = te(), t = Xa(), i = Je(), a = $a(), s = function() {
|
882
882
|
}, o = i("Reflect", "construct"), u = /^\s*(?:class|function)\b/, l = n(u.exec), h = !u.test(s), c = function(g) {
|
883
883
|
if (!r(g)) return !1;
|
884
884
|
try {
|
@@ -917,27 +917,27 @@ function oh() {
|
|
917
917
|
throw new r(e(t) + " is not a constructor");
|
918
918
|
}, xi;
|
919
919
|
}
|
920
|
-
var
|
920
|
+
var Oi, Ds;
|
921
921
|
function vl() {
|
922
|
-
if (Ds) return
|
922
|
+
if (Ds) return Oi;
|
923
923
|
Ds = 1;
|
924
|
-
var n = ue(), e = oh(), r =
|
925
|
-
return
|
924
|
+
var n = ue(), e = oh(), r = Ar(), t = ne(), i = t("species");
|
925
|
+
return Oi = function(a, s) {
|
926
926
|
var o = n(a).constructor, u;
|
927
927
|
return o === void 0 || r(u = n(o)[i]) ? s : e(u);
|
928
|
-
},
|
928
|
+
}, Oi;
|
929
929
|
}
|
930
|
-
var
|
930
|
+
var Ti, Vs;
|
931
931
|
function gl() {
|
932
|
-
if (Vs) return
|
932
|
+
if (Vs) return Ti;
|
933
933
|
Vs = 1;
|
934
|
-
var n =
|
935
|
-
return
|
934
|
+
var n = Pr(), e = Function.prototype, r = e.apply, t = e.call;
|
935
|
+
return Ti = typeof Reflect == "object" && Reflect.apply || (n ? t.bind(r) : function() {
|
936
936
|
return t.apply(r, arguments);
|
937
|
-
}),
|
937
|
+
}), Ti;
|
938
938
|
}
|
939
939
|
var Si, Ls;
|
940
|
-
function
|
940
|
+
function Br() {
|
941
941
|
if (Ls) return Si;
|
942
942
|
Ls = 1;
|
943
943
|
var n = Ze(), e = re();
|
@@ -949,24 +949,24 @@ var Ei, ks;
|
|
949
949
|
function Ka() {
|
950
950
|
if (ks) return Ei;
|
951
951
|
ks = 1;
|
952
|
-
var n =
|
952
|
+
var n = Br(), e = Be(), r = Pr(), t = n(n.bind);
|
953
953
|
return Ei = function(i, a) {
|
954
954
|
return e(i), a === void 0 ? i : r ? t(i, a) : function() {
|
955
955
|
return i.apply(a, arguments);
|
956
956
|
};
|
957
957
|
}, Ei;
|
958
958
|
}
|
959
|
-
var Ri,
|
959
|
+
var Ri, js;
|
960
960
|
function dl() {
|
961
|
-
if (
|
962
|
-
|
963
|
-
var n =
|
961
|
+
if (js) return Ri;
|
962
|
+
js = 1;
|
963
|
+
var n = Je();
|
964
964
|
return Ri = n("document", "documentElement"), Ri;
|
965
965
|
}
|
966
|
-
var Ci,
|
966
|
+
var Ci, Bs;
|
967
967
|
function uh() {
|
968
|
-
if (
|
969
|
-
|
968
|
+
if (Bs) return Ci;
|
969
|
+
Bs = 1;
|
970
970
|
var n = re();
|
971
971
|
return Ci = n([].slice), Ci;
|
972
972
|
}
|
@@ -984,14 +984,14 @@ var Pi, Us;
|
|
984
984
|
function pl() {
|
985
985
|
if (Us) return Pi;
|
986
986
|
Us = 1;
|
987
|
-
var n =
|
987
|
+
var n = cr();
|
988
988
|
return Pi = /(?:ipad|iphone|ipod).*applewebkit/i.test(n), Pi;
|
989
989
|
}
|
990
990
|
var Ai, Gs;
|
991
991
|
function yl() {
|
992
992
|
if (Gs) return Ai;
|
993
993
|
Gs = 1;
|
994
|
-
var n = Z(), e = gl(), r = Ka(), t = te(), i = we(), a = ee(), s = dl(), o = uh(), u = Mr(), l = lh(), h = pl(), c = kr(), v = n.setImmediate, f = n.clearImmediate, g = n.process, d = n.Dispatch, p = n.Function, y = n.MessageChannel, m = n.String, b = 0, x = {}, S = "onreadystatechange", E,
|
994
|
+
var n = Z(), e = gl(), r = Ka(), t = te(), i = we(), a = ee(), s = dl(), o = uh(), u = Mr(), l = lh(), h = pl(), c = kr(), v = n.setImmediate, f = n.clearImmediate, g = n.process, d = n.Dispatch, p = n.Function, y = n.MessageChannel, m = n.String, b = 0, x = {}, S = "onreadystatechange", E, O, _, V;
|
995
995
|
a(function() {
|
996
996
|
E = n.location;
|
997
997
|
});
|
@@ -1014,18 +1014,18 @@ function yl() {
|
|
1014
1014
|
var U = t(A) ? A : p(A), I = o(arguments, 1);
|
1015
1015
|
return x[++b] = function() {
|
1016
1016
|
e(U, void 0, I);
|
1017
|
-
},
|
1017
|
+
}, O(b), b;
|
1018
1018
|
}, f = function(A) {
|
1019
1019
|
delete x[A];
|
1020
|
-
}, c ?
|
1020
|
+
}, c ? O = function(R) {
|
1021
1021
|
g.nextTick(M(R));
|
1022
|
-
} : d && d.now ?
|
1022
|
+
} : d && d.now ? O = function(R) {
|
1023
1023
|
d.now(M(R));
|
1024
|
-
} : y && !h ? (_ = new y(), V = _.port2, _.port1.onmessage = w,
|
1024
|
+
} : y && !h ? (_ = new y(), V = _.port2, _.port1.onmessage = w, O = r(V.postMessage, V)) : n.addEventListener && t(n.postMessage) && !n.importScripts && E && E.protocol !== "file:" && !a(k) ? (O = k, n.addEventListener("message", w, !1)) : S in u("script") ? O = function(R) {
|
1025
1025
|
s.appendChild(u("script"))[S] = function() {
|
1026
1026
|
s.removeChild(this), P(R);
|
1027
1027
|
};
|
1028
|
-
} :
|
1028
|
+
} : O = function(R) {
|
1029
1029
|
setTimeout(M(R), 0);
|
1030
1030
|
}), Ai = {
|
1031
1031
|
set: v,
|
@@ -1036,7 +1036,7 @@ var Ii, $s;
|
|
1036
1036
|
function hh() {
|
1037
1037
|
if ($s) return Ii;
|
1038
1038
|
$s = 1;
|
1039
|
-
var n = Z(), e =
|
1039
|
+
var n = Z(), e = Re(), r = Object.getOwnPropertyDescriptor;
|
1040
1040
|
return Ii = function(t) {
|
1041
1041
|
if (!e) return n[t];
|
1042
1042
|
var i = r(n, t);
|
@@ -1068,14 +1068,14 @@ var _i, Hs;
|
|
1068
1068
|
function fh() {
|
1069
1069
|
if (Hs) return _i;
|
1070
1070
|
Hs = 1;
|
1071
|
-
var n =
|
1071
|
+
var n = cr();
|
1072
1072
|
return _i = /ipad|iphone|ipod/i.test(n) && typeof Pebble < "u", _i;
|
1073
1073
|
}
|
1074
1074
|
var Mi, Ws;
|
1075
1075
|
function ch() {
|
1076
1076
|
if (Ws) return Mi;
|
1077
1077
|
Ws = 1;
|
1078
|
-
var n =
|
1078
|
+
var n = cr();
|
1079
1079
|
return Mi = /web0s(?!.*chrome)/i.test(n), Mi;
|
1080
1080
|
}
|
1081
1081
|
var qi, Ys;
|
@@ -1088,8 +1088,8 @@ function vh() {
|
|
1088
1088
|
var S, E;
|
1089
1089
|
for (u && (S = c.domain) && S.exit(); E = b.get(); ) try {
|
1090
1090
|
E();
|
1091
|
-
} catch (
|
1092
|
-
throw b.head && g(),
|
1091
|
+
} catch (O) {
|
1092
|
+
throw b.head && g(), O;
|
1093
1093
|
}
|
1094
1094
|
S && S.enter();
|
1095
1095
|
};
|
@@ -1127,17 +1127,17 @@ function Qa() {
|
|
1127
1127
|
}), Vi;
|
1128
1128
|
}
|
1129
1129
|
var Li, Qs;
|
1130
|
-
function
|
1130
|
+
function gr() {
|
1131
1131
|
if (Qs) return Li;
|
1132
1132
|
Qs = 1;
|
1133
1133
|
var n = Z();
|
1134
1134
|
return Li = n.Promise, Li;
|
1135
1135
|
}
|
1136
1136
|
var ki, Zs;
|
1137
|
-
function
|
1137
|
+
function dr() {
|
1138
1138
|
if (Zs) return ki;
|
1139
1139
|
Zs = 1;
|
1140
|
-
var n = Z(), e =
|
1140
|
+
var n = Z(), e = gr(), r = te(), t = hl(), i = $a(), a = ne(), s = fl(), o = Me(), u = Ba(), l = e && e.prototype, h = a("species"), c = !1, v = r(n.PromiseRejectionEvent), f = t("Promise", function() {
|
1141
1141
|
var g = i(e), d = g !== String(e);
|
1142
1142
|
if (!d && u === 66 || o && !(l.catch && l.finally)) return !0;
|
1143
1143
|
if (!u || u < 51 || !/native code/.test(g)) {
|
@@ -1159,66 +1159,66 @@ function pr() {
|
|
1159
1159
|
SUBCLASSING: c
|
1160
1160
|
}, ki;
|
1161
1161
|
}
|
1162
|
-
var
|
1163
|
-
function
|
1164
|
-
if (Js) return
|
1162
|
+
var ji = {}, Js;
|
1163
|
+
function pr() {
|
1164
|
+
if (Js) return ji;
|
1165
1165
|
Js = 1;
|
1166
|
-
var n =
|
1166
|
+
var n = Be(), e = TypeError, r = function(t) {
|
1167
1167
|
var i, a;
|
1168
1168
|
this.promise = new t(function(s, o) {
|
1169
1169
|
if (i !== void 0 || a !== void 0) throw new e("Bad Promise constructor");
|
1170
1170
|
i = s, a = o;
|
1171
1171
|
}), this.resolve = n(i), this.reject = n(a);
|
1172
1172
|
};
|
1173
|
-
return
|
1173
|
+
return ji.f = function(t) {
|
1174
1174
|
return new r(t);
|
1175
|
-
},
|
1175
|
+
}, ji;
|
1176
1176
|
}
|
1177
1177
|
var eo;
|
1178
1178
|
function dh() {
|
1179
1179
|
if (eo) return ln;
|
1180
1180
|
eo = 1;
|
1181
|
-
var n = le(), e = Me(), r = kr(), t = Z(), i = se(), a =
|
1181
|
+
var n = le(), e = Me(), r = kr(), t = Z(), i = se(), a = er(), s = cl(), o = jr(), u = ih(), l = Be(), h = te(), c = ve(), v = ah(), f = vl(), g = yl().set, d = vh(), p = gh(), y = Qa(), m = ml(), b = Vr(), x = gr(), S = dr(), E = pr(), O = "Promise", _ = S.CONSTRUCTOR, V = S.REJECTION_EVENT, P = S.SUBCLASSING, M = b.getterFor(O), w = b.set, k = x && x.prototype, R = x, A = k, U = t.TypeError, I = t.document, j = t.process, N = E.f, L = N, B = !!(I && I.createEvent && t.dispatchEvent), z = "unhandledrejection", X = "rejectionhandled", H = 0, Q = 1, Fe = 2, De = 1, Ae = 2, pe, ye, me, Ie, Ne = function(C) {
|
1182
1182
|
var q;
|
1183
1183
|
return c(C) && h(q = C.then) ? q : !1;
|
1184
1184
|
}, he = function(C, q) {
|
1185
|
-
var G = q.value, $ = q.state === Q, W = $ ? C.ok : C.fail, _e = C.resolve, Ve = C.reject,
|
1185
|
+
var G = q.value, $ = q.state === Q, W = $ ? C.ok : C.fail, _e = C.resolve, Ve = C.reject, Oe = C.domain, Te, We, or;
|
1186
1186
|
try {
|
1187
|
-
W ? ($ || (q.rejection === Ae &&
|
1187
|
+
W ? ($ || (q.rejection === Ae && xr(q), q.rejection = De), W === !0 ? Te = G : (Oe && Oe.enter(), Te = W(G), Oe && (Oe.exit(), or = !0)), Te === C.promise ? Ve(new U("Promise-chain cycle")) : (We = Ne(Te)) ? i(We, Te, _e, Ve) : _e(Te)) : Ve(G);
|
1188
1188
|
} catch (Or) {
|
1189
|
-
|
1189
|
+
Oe && !or && Oe.exit(), Ve(Or);
|
1190
1190
|
}
|
1191
|
-
},
|
1191
|
+
}, be = function(C, q) {
|
1192
1192
|
C.notified || (C.notified = !0, d(function() {
|
1193
1193
|
for (var G = C.reactions, $; $ = G.get(); )
|
1194
1194
|
he($, C);
|
1195
|
-
C.notified = !1, q && !C.rejection &&
|
1195
|
+
C.notified = !1, q && !C.rejection && br(C);
|
1196
1196
|
}));
|
1197
1197
|
}, Ue = function(C, q, G) {
|
1198
1198
|
var $, W;
|
1199
|
-
|
1200
|
-
},
|
1199
|
+
B ? ($ = I.createEvent("Event"), $.promise = q, $.reason = G, $.initEvent(C, !1, !0), t.dispatchEvent($)) : $ = { promise: q, reason: G }, !V && (W = t["on" + C]) ? W($) : C === z && p("Unhandled promise rejection", G);
|
1200
|
+
}, br = function(C) {
|
1201
1201
|
i(g, t, function() {
|
1202
|
-
var q = C.facade, G = C.value, $ =
|
1202
|
+
var q = C.facade, G = C.value, $ = sr(C), W;
|
1203
1203
|
if ($ && (W = y(function() {
|
1204
|
-
r ?
|
1205
|
-
}), C.rejection = r ||
|
1204
|
+
r ? j.emit("unhandledRejection", G, q) : Ue(z, q, G);
|
1205
|
+
}), C.rejection = r || sr(C) ? Ae : De, W.error))
|
1206
1206
|
throw W.value;
|
1207
1207
|
});
|
1208
|
-
},
|
1208
|
+
}, sr = function(C) {
|
1209
1209
|
return C.rejection !== De && !C.parent;
|
1210
|
-
},
|
1210
|
+
}, xr = function(C) {
|
1211
1211
|
i(g, t, function() {
|
1212
1212
|
var q = C.facade;
|
1213
|
-
r ?
|
1213
|
+
r ? j.emit("rejectionHandled", q) : Ue(X, q, C.value);
|
1214
1214
|
});
|
1215
|
-
},
|
1215
|
+
}, ge = function(C, q, G) {
|
1216
1216
|
return function($) {
|
1217
1217
|
C(q, $, G);
|
1218
1218
|
};
|
1219
1219
|
}, fe = function(C, q, G) {
|
1220
|
-
C.done || (C.done = !0, G && (C = G), C.value = q, C.state = Fe,
|
1221
|
-
},
|
1220
|
+
C.done || (C.done = !0, G && (C = G), C.value = q, C.state = Fe, be(C, !0));
|
1221
|
+
}, xe = function(C, q, G) {
|
1222
1222
|
if (!C.done) {
|
1223
1223
|
C.done = !0, G && (C = G);
|
1224
1224
|
try {
|
@@ -1230,29 +1230,29 @@ function dh() {
|
|
1230
1230
|
i(
|
1231
1231
|
$,
|
1232
1232
|
q,
|
1233
|
-
|
1234
|
-
|
1233
|
+
ge(xe, W, C),
|
1234
|
+
ge(fe, W, C)
|
1235
1235
|
);
|
1236
1236
|
} catch (_e) {
|
1237
1237
|
fe(W, _e, C);
|
1238
1238
|
}
|
1239
|
-
}) : (C.value = q, C.state = Q,
|
1239
|
+
}) : (C.value = q, C.state = Q, be(C, !1));
|
1240
1240
|
} catch (W) {
|
1241
1241
|
fe({ done: !1 }, W, C);
|
1242
1242
|
}
|
1243
1243
|
}
|
1244
1244
|
};
|
1245
1245
|
if (_ && (R = function(q) {
|
1246
|
-
v(this, A), l(q), i(
|
1246
|
+
v(this, A), l(q), i(pe, this);
|
1247
1247
|
var G = M(this);
|
1248
1248
|
try {
|
1249
|
-
q(
|
1249
|
+
q(ge(xe, G), ge(fe, G));
|
1250
1250
|
} catch ($) {
|
1251
1251
|
fe(G, $);
|
1252
1252
|
}
|
1253
|
-
}, A = R.prototype,
|
1253
|
+
}, A = R.prototype, pe = function(q) {
|
1254
1254
|
w(this, {
|
1255
|
-
type:
|
1255
|
+
type: O,
|
1256
1256
|
done: !1,
|
1257
1257
|
notified: !1,
|
1258
1258
|
parent: !1,
|
@@ -1261,16 +1261,16 @@ function dh() {
|
|
1261
1261
|
state: H,
|
1262
1262
|
value: null
|
1263
1263
|
});
|
1264
|
-
},
|
1264
|
+
}, pe.prototype = a(A, "then", function(q, G) {
|
1265
1265
|
var $ = M(this), W = N(f(this, R));
|
1266
|
-
return $.parent = !0, W.ok = h(q) ? q : !0, W.fail = h(G) && G, W.domain = r ?
|
1266
|
+
return $.parent = !0, W.ok = h(q) ? q : !0, W.fail = h(G) && G, W.domain = r ? j.domain : void 0, $.state === H ? $.reactions.add(W) : d(function() {
|
1267
1267
|
he(W, $);
|
1268
1268
|
}), W.promise;
|
1269
|
-
}),
|
1270
|
-
var C = new
|
1271
|
-
this.promise = C, this.resolve =
|
1269
|
+
}), ye = function() {
|
1270
|
+
var C = new pe(), q = M(C);
|
1271
|
+
this.promise = C, this.resolve = ge(xe, q), this.reject = ge(fe, q);
|
1272
1272
|
}, E.f = N = function(C) {
|
1273
|
-
return C === R || C ===
|
1273
|
+
return C === R || C === me ? new ye(C) : L(C);
|
1274
1274
|
}, !e && h(x) && k !== Object.prototype)) {
|
1275
1275
|
Ie = k.then, P || a(k, "then", function(q, G) {
|
1276
1276
|
var $ = this;
|
@@ -1286,17 +1286,17 @@ function dh() {
|
|
1286
1286
|
}
|
1287
1287
|
return n({ global: !0, constructor: !0, wrap: !0, forced: _ }, {
|
1288
1288
|
Promise: R
|
1289
|
-
}), o(R,
|
1289
|
+
}), o(R, O, !1, !0), u(O), ln;
|
1290
1290
|
}
|
1291
|
-
var ro = {},
|
1292
|
-
function
|
1293
|
-
return to || (to = 1,
|
1291
|
+
var ro = {}, Bi, to;
|
1292
|
+
function yr() {
|
1293
|
+
return to || (to = 1, Bi = {}), Bi;
|
1294
1294
|
}
|
1295
1295
|
var Fi, io;
|
1296
1296
|
function ph() {
|
1297
1297
|
if (io) return Fi;
|
1298
1298
|
io = 1;
|
1299
|
-
var n = ne(), e =
|
1299
|
+
var n = ne(), e = yr(), r = n("iterator"), t = Array.prototype;
|
1300
1300
|
return Fi = function(i) {
|
1301
1301
|
return i !== void 0 && (e.Array === i || t[r] === i);
|
1302
1302
|
}, Fi;
|
@@ -1305,7 +1305,7 @@ var Ui, ao;
|
|
1305
1305
|
function bl() {
|
1306
1306
|
if (ao) return Ui;
|
1307
1307
|
ao = 1;
|
1308
|
-
var n = Xa(), e =
|
1308
|
+
var n = Xa(), e = ir(), r = Ar(), t = yr(), i = ne(), a = i("iterator");
|
1309
1309
|
return Ui = function(s) {
|
1310
1310
|
if (!r(s)) return e(s, a) || e(s, "@@iterator") || t[n(s)];
|
1311
1311
|
}, Ui;
|
@@ -1314,7 +1314,7 @@ var Gi, no;
|
|
1314
1314
|
function yh() {
|
1315
1315
|
if (no) return Gi;
|
1316
1316
|
no = 1;
|
1317
|
-
var n = se(), e =
|
1317
|
+
var n = se(), e = Be(), r = ue(), t = Nr(), i = bl(), a = TypeError;
|
1318
1318
|
return Gi = function(s, o) {
|
1319
1319
|
var u = arguments.length < 2 ? i(s) : o;
|
1320
1320
|
if (e(u)) return r(n(u, s));
|
@@ -1325,7 +1325,7 @@ var $i, so;
|
|
1325
1325
|
function mh() {
|
1326
1326
|
if (so) return $i;
|
1327
1327
|
so = 1;
|
1328
|
-
var n = se(), e = ue(), r =
|
1328
|
+
var n = se(), e = ue(), r = ir();
|
1329
1329
|
return $i = function(t, i, a) {
|
1330
1330
|
var s, o;
|
1331
1331
|
e(t);
|
@@ -1351,7 +1351,7 @@ function xl() {
|
|
1351
1351
|
this.stopped = f, this.result = g;
|
1352
1352
|
}, v = c.prototype;
|
1353
1353
|
return zi = function(f, g, d) {
|
1354
|
-
var p = d && d.that, y = !!(d && d.AS_ENTRIES), m = !!(d && d.IS_RECORD), b = !!(d && d.IS_ITERATOR), x = !!(d && d.INTERRUPTED), S = n(g, p), E,
|
1354
|
+
var p = d && d.that, y = !!(d && d.AS_ENTRIES), m = !!(d && d.IS_RECORD), b = !!(d && d.IS_ITERATOR), x = !!(d && d.INTERRUPTED), S = n(g, p), E, O, _, V, P, M, w, k = function(A) {
|
1355
1355
|
return E && l(E, "normal", A), new c(!0, A);
|
1356
1356
|
}, R = function(A) {
|
1357
1357
|
return y ? (r(A), x ? S(A[0], A[1], k) : S(A[0], A[1])) : x ? S(A, k) : S(A);
|
@@ -1361,13 +1361,13 @@ function xl() {
|
|
1361
1361
|
else if (b)
|
1362
1362
|
E = f;
|
1363
1363
|
else {
|
1364
|
-
if (
|
1365
|
-
if (i(
|
1364
|
+
if (O = u(f), !O) throw new h(t(f) + " is not iterable");
|
1365
|
+
if (i(O)) {
|
1366
1366
|
for (_ = 0, V = a(f); V > _; _++)
|
1367
1367
|
if (P = R(f[_]), P && s(v, P)) return P;
|
1368
1368
|
return new c(!1);
|
1369
1369
|
}
|
1370
|
-
E = o(f,
|
1370
|
+
E = o(f, O);
|
1371
1371
|
}
|
1372
1372
|
for (M = m ? f.next : E.next; !(w = e(M, E)).done; ) {
|
1373
1373
|
try {
|
@@ -1423,10 +1423,10 @@ function bh() {
|
|
1423
1423
|
}, Hi;
|
1424
1424
|
}
|
1425
1425
|
var Wi, lo;
|
1426
|
-
function
|
1426
|
+
function Ol() {
|
1427
1427
|
if (lo) return Wi;
|
1428
1428
|
lo = 1;
|
1429
|
-
var n =
|
1429
|
+
var n = gr(), e = bh(), r = dr().CONSTRUCTOR;
|
1430
1430
|
return Wi = r || !e(function(t) {
|
1431
1431
|
n.all(t).then(void 0, function() {
|
1432
1432
|
});
|
@@ -1436,7 +1436,7 @@ var ho;
|
|
1436
1436
|
function xh() {
|
1437
1437
|
if (ho) return ro;
|
1438
1438
|
ho = 1;
|
1439
|
-
var n = le(), e = se(), r =
|
1439
|
+
var n = le(), e = se(), r = Be(), t = pr(), i = Qa(), a = xl(), s = Ol();
|
1440
1440
|
return n({ target: "Promise", stat: !0, forced: s }, {
|
1441
1441
|
all: function(u) {
|
1442
1442
|
var l = this, h = t.f(l), c = h.resolve, v = h.reject, f = i(function() {
|
@@ -1453,10 +1453,10 @@ function xh() {
|
|
1453
1453
|
}), ro;
|
1454
1454
|
}
|
1455
1455
|
var fo = {}, co;
|
1456
|
-
function
|
1456
|
+
function Oh() {
|
1457
1457
|
if (co) return fo;
|
1458
1458
|
co = 1;
|
1459
|
-
var n = le(), e = Me(), r =
|
1459
|
+
var n = le(), e = Me(), r = dr().CONSTRUCTOR, t = gr(), i = Je(), a = te(), s = er(), o = t && t.prototype;
|
1460
1460
|
if (n({ target: "Promise", proto: !0, forced: r, real: !0 }, {
|
1461
1461
|
catch: function(l) {
|
1462
1462
|
return this.then(void 0, l);
|
@@ -1468,10 +1468,10 @@ function Th() {
|
|
1468
1468
|
return fo;
|
1469
1469
|
}
|
1470
1470
|
var vo = {}, go;
|
1471
|
-
function
|
1471
|
+
function Th() {
|
1472
1472
|
if (go) return vo;
|
1473
1473
|
go = 1;
|
1474
|
-
var n = le(), e = se(), r =
|
1474
|
+
var n = le(), e = se(), r = Be(), t = pr(), i = Qa(), a = xl(), s = Ol();
|
1475
1475
|
return n({ target: "Promise", stat: !0, forced: s }, {
|
1476
1476
|
race: function(u) {
|
1477
1477
|
var l = this, h = t.f(l), c = h.reject, v = i(function() {
|
@@ -1488,7 +1488,7 @@ var po = {}, yo;
|
|
1488
1488
|
function Sh() {
|
1489
1489
|
if (yo) return po;
|
1490
1490
|
yo = 1;
|
1491
|
-
var n = le(), e =
|
1491
|
+
var n = le(), e = pr(), r = dr().CONSTRUCTOR;
|
1492
1492
|
return n({ target: "Promise", stat: !0, forced: r }, {
|
1493
1493
|
reject: function(i) {
|
1494
1494
|
var a = e.f(this), s = a.reject;
|
@@ -1500,7 +1500,7 @@ var mo = {}, Yi, bo;
|
|
1500
1500
|
function Eh() {
|
1501
1501
|
if (bo) return Yi;
|
1502
1502
|
bo = 1;
|
1503
|
-
var n = ue(), e =
|
1503
|
+
var n = ue(), e = ve(), r = pr();
|
1504
1504
|
return Yi = function(t, i) {
|
1505
1505
|
if (n(t), e(i) && i.constructor === t) return i;
|
1506
1506
|
var a = r.f(t), s = a.resolve;
|
@@ -1511,19 +1511,19 @@ var xo;
|
|
1511
1511
|
function Rh() {
|
1512
1512
|
if (xo) return mo;
|
1513
1513
|
xo = 1;
|
1514
|
-
var n = le(), e =
|
1514
|
+
var n = le(), e = Je(), r = Me(), t = gr(), i = dr().CONSTRUCTOR, a = Eh(), s = e("Promise"), o = r && !i;
|
1515
1515
|
return n({ target: "Promise", stat: !0, forced: r || i }, {
|
1516
1516
|
resolve: function(l) {
|
1517
1517
|
return a(o && this === s ? t : this, l);
|
1518
1518
|
}
|
1519
1519
|
}), mo;
|
1520
1520
|
}
|
1521
|
-
var
|
1521
|
+
var Oo;
|
1522
1522
|
function Ch() {
|
1523
|
-
return
|
1523
|
+
return Oo || (Oo = 1, dh(), xh(), Oh(), Th(), Sh(), Rh()), un;
|
1524
1524
|
}
|
1525
1525
|
Ch();
|
1526
|
-
function
|
1526
|
+
function To(n, e, r, t, i, a, s) {
|
1527
1527
|
try {
|
1528
1528
|
var o = n[a](s), u = o.value;
|
1529
1529
|
} catch (l) {
|
@@ -1531,16 +1531,16 @@ function Oo(n, e, r, t, i, a, s) {
|
|
1531
1531
|
}
|
1532
1532
|
o.done ? e(u) : Promise.resolve(u).then(t, i);
|
1533
1533
|
}
|
1534
|
-
function
|
1534
|
+
function je(n) {
|
1535
1535
|
return function() {
|
1536
1536
|
var e = this, r = arguments;
|
1537
1537
|
return new Promise(function(t, i) {
|
1538
1538
|
var a = n.apply(e, r);
|
1539
1539
|
function s(u) {
|
1540
|
-
|
1540
|
+
To(a, t, i, s, o, "next", u);
|
1541
1541
|
}
|
1542
1542
|
function o(u) {
|
1543
|
-
|
1543
|
+
To(a, t, i, s, o, "throw", u);
|
1544
1544
|
}
|
1545
1545
|
s(void 0);
|
1546
1546
|
});
|
@@ -1557,7 +1557,7 @@ function qe() {
|
|
1557
1557
|
}, Xi;
|
1558
1558
|
}
|
1559
1559
|
var Ki, Co;
|
1560
|
-
function
|
1560
|
+
function Tl() {
|
1561
1561
|
if (Co) return Ki;
|
1562
1562
|
Co = 1;
|
1563
1563
|
var n = ue();
|
@@ -1598,7 +1598,7 @@ var Ao;
|
|
1598
1598
|
function Ph() {
|
1599
1599
|
if (Ao) return Zi;
|
1600
1600
|
Ao = 1;
|
1601
|
-
var n =
|
1601
|
+
var n = Re(), e = sl(), r = He(), t = ue(), i = fr(), a = wh();
|
1602
1602
|
return Zi.f = n && !e ? Object.defineProperties : function(o, u) {
|
1603
1603
|
t(o);
|
1604
1604
|
for (var l = i(u), h = a(u), c = h.length, v = 0, f; c > v; ) r.f(o, f = h[v++], l[f]);
|
@@ -1658,22 +1658,22 @@ var ia, Mo;
|
|
1658
1658
|
function Za() {
|
1659
1659
|
if (Mo) return ia;
|
1660
1660
|
Mo = 1;
|
1661
|
-
var n = se(), e = re(), r = qe(), t =
|
1661
|
+
var n = se(), e = re(), r = qe(), t = Tl(), i = Sl(), a = Ga(), s = Fr(), o = Vr().get, u = Ah(), l = Ih(), h = a("native-string-replace", String.prototype.replace), c = RegExp.prototype.exec, v = c, f = e("".charAt), g = e("".indexOf), d = e("".replace), p = e("".slice), y = function() {
|
1662
1662
|
var S = /a/, E = /b*/g;
|
1663
1663
|
return n(c, S, "a"), n(c, E, "a"), S.lastIndex !== 0 || E.lastIndex !== 0;
|
1664
1664
|
}(), m = i.BROKEN_CARET, b = /()??/.exec("")[1] !== void 0, x = y || b || m || u || l;
|
1665
1665
|
return x && (v = function(E) {
|
1666
|
-
var
|
1666
|
+
var O = this, _ = o(O), V = r(E), P = _.raw, M, w, k, R, A, U, I;
|
1667
1667
|
if (P)
|
1668
|
-
return P.lastIndex =
|
1669
|
-
var
|
1670
|
-
if (N && (L = d(L, "y", ""), g(L, "g") === -1 && (L += "g"), X = p(V,
|
1671
|
-
`) && (
|
1668
|
+
return P.lastIndex = O.lastIndex, M = n(v, P, V), O.lastIndex = P.lastIndex, M;
|
1669
|
+
var j = _.groups, N = m && O.sticky, L = n(t, O), B = O.source, z = 0, X = V;
|
1670
|
+
if (N && (L = d(L, "y", ""), g(L, "g") === -1 && (L += "g"), X = p(V, O.lastIndex), O.lastIndex > 0 && (!O.multiline || O.multiline && f(V, O.lastIndex - 1) !== `
|
1671
|
+
`) && (B = "(?: " + B + ")", X = " " + X, z++), w = new RegExp("^(?:" + B + ")", L)), b && (w = new RegExp("^" + B + "$(?!\\s)", L)), y && (k = O.lastIndex), R = n(c, N ? w : O, X), N ? R ? (R.input = p(R.input, z), R[0] = p(R[0], z), R.index = O.lastIndex, O.lastIndex += R[0].length) : O.lastIndex = 0 : y && R && (O.lastIndex = O.global ? R.index + R[0].length : k), b && R && R.length > 1 && n(h, R[0], w, function() {
|
1672
1672
|
for (A = 1; A < arguments.length - 2; A++)
|
1673
1673
|
arguments[A] === void 0 && (R[A] = void 0);
|
1674
|
-
}), R &&
|
1675
|
-
for (R.groups = U = s(null), A = 0; A <
|
1676
|
-
I =
|
1674
|
+
}), R && j)
|
1675
|
+
for (R.groups = U = s(null), A = 0; A < j.length; A++)
|
1676
|
+
I = j[A], U[I[0]] = R[I[1]];
|
1677
1677
|
return R;
|
1678
1678
|
}), ia = v, ia;
|
1679
1679
|
}
|
@@ -1690,7 +1690,7 @@ var aa, Do;
|
|
1690
1690
|
function Ja() {
|
1691
1691
|
if (Do) return aa;
|
1692
1692
|
Do = 1, Nh();
|
1693
|
-
var n = se(), e =
|
1693
|
+
var n = se(), e = er(), r = Za(), t = ee(), i = ne(), a = vr(), s = i("species"), o = RegExp.prototype;
|
1694
1694
|
return aa = function(u, l, h, c) {
|
1695
1695
|
var v = i(u), f = !t(function() {
|
1696
1696
|
var y = {};
|
@@ -1719,7 +1719,7 @@ var na, Vo;
|
|
1719
1719
|
function _h() {
|
1720
1720
|
if (Vo) return na;
|
1721
1721
|
Vo = 1;
|
1722
|
-
var n = re(), e = Lr(), r = qe(), t =
|
1722
|
+
var n = re(), e = Lr(), r = qe(), t = Ce(), i = n("".charAt), a = n("".charCodeAt), s = n("".slice), o = function(u) {
|
1723
1723
|
return function(l, h) {
|
1724
1724
|
var c = r(t(l)), v = e(h), f = c.length, g, d;
|
1725
1725
|
return v < 0 || v >= f ? u ? "" : void 0 : (g = a(c, v), g < 55296 || g > 56319 || v + 1 === f || (d = a(c, v + 1)) < 56320 || d > 57343 ? u ? i(c, v) : g : u ? s(c, v, v + 2) : (g - 55296 << 10) + (d - 56320) + 65536);
|
@@ -1758,17 +1758,17 @@ function rn() {
|
|
1758
1758
|
throw new a("RegExp#exec called on incompatible receiver");
|
1759
1759
|
}, oa;
|
1760
1760
|
}
|
1761
|
-
var
|
1761
|
+
var jo;
|
1762
1762
|
function Mh() {
|
1763
|
-
if (
|
1764
|
-
|
1765
|
-
var n = se(), e = Ja(), r = ue(), t =
|
1763
|
+
if (jo) return So;
|
1764
|
+
jo = 1;
|
1765
|
+
var n = se(), e = Ja(), r = ue(), t = ve(), i = ar(), a = qe(), s = Ce(), o = ir(), u = en(), l = rn();
|
1766
1766
|
return e("match", function(h, c, v) {
|
1767
1767
|
return [
|
1768
1768
|
// `String.prototype.match` method
|
1769
1769
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
1770
1770
|
function(g) {
|
1771
|
-
var d = s(this), p = t(g) ?
|
1771
|
+
var d = s(this), p = t(g) ? o(g, h) : void 0;
|
1772
1772
|
return p ? n(p, g, d) : new RegExp(g)[h](a(d));
|
1773
1773
|
},
|
1774
1774
|
// `RegExp.prototype[@@match]` method
|
@@ -1789,7 +1789,7 @@ function Mh() {
|
|
1789
1789
|
}), So;
|
1790
1790
|
}
|
1791
1791
|
Mh();
|
1792
|
-
var
|
1792
|
+
var Bo = {}, ua, Fo;
|
1793
1793
|
function qh() {
|
1794
1794
|
if (Fo) return ua;
|
1795
1795
|
Fo = 1;
|
@@ -1825,9 +1825,9 @@ function qh() {
|
|
1825
1825
|
}
|
1826
1826
|
var Uo;
|
1827
1827
|
function Dh() {
|
1828
|
-
if (Uo) return
|
1828
|
+
if (Uo) return Bo;
|
1829
1829
|
Uo = 1;
|
1830
|
-
var n = gl(), e = se(), r = re(), t = Ja(), i = ee(), a = ue(), s = te(), o =
|
1830
|
+
var n = gl(), e = se(), r = re(), t = Ja(), i = ee(), a = ue(), s = te(), o = ve(), u = Lr(), l = ar(), h = qe(), c = Ce(), v = en(), f = ir(), g = qh(), d = rn(), p = ne(), y = p("replace"), m = Math.max, b = Math.min, x = r([].concat), S = r([].push), E = r("".indexOf), O = r("".slice), _ = function(w) {
|
1831
1831
|
return w === void 0 ? w : String(w);
|
1832
1832
|
}, V = function() {
|
1833
1833
|
return "a".replace(/./, "$0") === "$0";
|
@@ -1845,48 +1845,48 @@ function Dh() {
|
|
1845
1845
|
return [
|
1846
1846
|
// `String.prototype.replace` method
|
1847
1847
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1848
|
-
function(I,
|
1849
|
-
var N = c(this), L = o(I) ?
|
1850
|
-
return L ? e(L, I, N,
|
1848
|
+
function(I, j) {
|
1849
|
+
var N = c(this), L = o(I) ? f(I, y) : void 0;
|
1850
|
+
return L ? e(L, I, N, j) : e(k, h(N), I, j);
|
1851
1851
|
},
|
1852
1852
|
// `RegExp.prototype[@@replace]` method
|
1853
1853
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1854
1854
|
function(U, I) {
|
1855
|
-
var
|
1855
|
+
var j = a(this), N = h(U);
|
1856
1856
|
if (typeof I == "string" && E(I, A) === -1 && E(I, "$<") === -1) {
|
1857
|
-
var L = R(k,
|
1857
|
+
var L = R(k, j, N, I);
|
1858
1858
|
if (L.done) return L.value;
|
1859
1859
|
}
|
1860
|
-
var
|
1861
|
-
|
1862
|
-
var z =
|
1863
|
-
z && (X =
|
1864
|
-
for (var H = [], Q; Q = d(
|
1860
|
+
var B = s(I);
|
1861
|
+
B || (I = h(I));
|
1862
|
+
var z = j.global, X;
|
1863
|
+
z && (X = j.unicode, j.lastIndex = 0);
|
1864
|
+
for (var H = [], Q; Q = d(j, N), !(Q === null || (S(H, Q), !z)); ) {
|
1865
1865
|
var Fe = h(Q[0]);
|
1866
|
-
Fe === "" && (
|
1866
|
+
Fe === "" && (j.lastIndex = v(N, l(j.lastIndex), X));
|
1867
1867
|
}
|
1868
|
-
for (var De = "", Ae = 0,
|
1869
|
-
Q = H[
|
1870
|
-
for (var
|
1871
|
-
var
|
1872
|
-
if (
|
1873
|
-
var Ue = x([
|
1874
|
-
|
1868
|
+
for (var De = "", Ae = 0, pe = 0; pe < H.length; pe++) {
|
1869
|
+
Q = H[pe];
|
1870
|
+
for (var ye = h(Q[0]), me = m(b(u(Q.index), N.length), 0), Ie = [], Ne, he = 1; he < Q.length; he++) S(Ie, _(Q[he]));
|
1871
|
+
var be = Q.groups;
|
1872
|
+
if (B) {
|
1873
|
+
var Ue = x([ye], Ie, me, N);
|
1874
|
+
be !== void 0 && S(Ue, be), Ne = h(n(I, void 0, Ue));
|
1875
1875
|
} else
|
1876
|
-
Ne = g(
|
1877
|
-
|
1876
|
+
Ne = g(ye, N, me, Ie, be, I);
|
1877
|
+
me >= Ae && (De += O(N, Ae, me) + Ne, Ae = me + ye.length);
|
1878
1878
|
}
|
1879
|
-
return De +
|
1879
|
+
return De + O(N, Ae);
|
1880
1880
|
}
|
1881
1881
|
];
|
1882
|
-
}, !M || !V || P),
|
1882
|
+
}, !M || !V || P), Bo;
|
1883
1883
|
}
|
1884
1884
|
Dh();
|
1885
1885
|
var Go = {}, la, $o;
|
1886
1886
|
function Vh() {
|
1887
1887
|
if ($o) return la;
|
1888
1888
|
$o = 1;
|
1889
|
-
var n =
|
1889
|
+
var n = ve(), e = Ze(), r = ne(), t = r("match");
|
1890
1890
|
return la = function(i) {
|
1891
1891
|
var a;
|
1892
1892
|
return n(i) && ((a = i[t]) !== void 0 ? !!a : e(i) === "RegExp");
|
@@ -1925,7 +1925,7 @@ var Wo;
|
|
1925
1925
|
function Lh() {
|
1926
1926
|
if (Wo) return Go;
|
1927
1927
|
Wo = 1;
|
1928
|
-
var n = le(), e =
|
1928
|
+
var n = le(), e = Br(), r = qr().f, t = ar(), i = qe(), a = tn(), s = Ce(), o = an(), u = Me(), l = e("".slice), h = Math.min, c = o("startsWith"), v = !u && !c && !!function() {
|
1929
1929
|
var f = r(String.prototype, "startsWith");
|
1930
1930
|
return f && !f.writable;
|
1931
1931
|
}();
|
@@ -1952,7 +1952,7 @@ function kh() {
|
|
1952
1952
|
}, ca;
|
1953
1953
|
}
|
1954
1954
|
var va, Xo;
|
1955
|
-
function
|
1955
|
+
function jh() {
|
1956
1956
|
if (Xo) return va;
|
1957
1957
|
Xo = 1;
|
1958
1958
|
var n = ee();
|
@@ -1966,7 +1966,7 @@ var ga, Ko;
|
|
1966
1966
|
function El() {
|
1967
1967
|
if (Ko) return ga;
|
1968
1968
|
Ko = 1;
|
1969
|
-
var n = we(), e = te(), r = _r(), t = za(), i =
|
1969
|
+
var n = we(), e = te(), r = _r(), t = za(), i = jh(), a = t("IE_PROTO"), s = Object, o = s.prototype;
|
1970
1970
|
return ga = i ? s.getPrototypeOf : function(u) {
|
1971
1971
|
var l = r(u);
|
1972
1972
|
if (n(l, a)) return l[a];
|
@@ -1978,7 +1978,7 @@ var da, Qo;
|
|
1978
1978
|
function Rl() {
|
1979
1979
|
if (Qo) return da;
|
1980
1980
|
Qo = 1;
|
1981
|
-
var n = ee(), e = te(), r =
|
1981
|
+
var n = ee(), e = te(), r = ve(), t = Fr(), i = El(), a = er(), s = ne(), o = Me(), u = s("iterator"), l = !1, h, c, v;
|
1982
1982
|
[].keys && (v = [].keys(), "next" in v ? (c = i(i(v)), c !== Object.prototype && (h = c)) : l = !0);
|
1983
1983
|
var f = !r(h) || n(function() {
|
1984
1984
|
var g = {};
|
@@ -1992,10 +1992,10 @@ function Rl() {
|
|
1992
1992
|
}, da;
|
1993
1993
|
}
|
1994
1994
|
var pa, Zo;
|
1995
|
-
function
|
1995
|
+
function Bh() {
|
1996
1996
|
if (Zo) return pa;
|
1997
1997
|
Zo = 1;
|
1998
|
-
var n = Rl().IteratorPrototype, e = Fr(), r =
|
1998
|
+
var n = Rl().IteratorPrototype, e = Fr(), r = ja(), t = jr(), i = yr(), a = function() {
|
1999
1999
|
return this;
|
2000
2000
|
};
|
2001
2001
|
return pa = function(s, o, u, l) {
|
@@ -2007,10 +2007,10 @@ var ya, Jo;
|
|
2007
2007
|
function Fh() {
|
2008
2008
|
if (Jo) return ya;
|
2009
2009
|
Jo = 1;
|
2010
|
-
var n = le(), e = se(), r = Me(), t = Dr(), i = te(), a =
|
2010
|
+
var n = le(), e = se(), r = Me(), t = Dr(), i = te(), a = Bh(), s = El(), o = cl(), u = jr(), l = vr(), h = er(), c = ne(), v = yr(), f = Rl(), g = t.PROPER, d = t.CONFIGURABLE, p = f.IteratorPrototype, y = f.BUGGY_SAFARI_ITERATORS, m = c("iterator"), b = "keys", x = "values", S = "entries", E = function() {
|
2011
2011
|
return this;
|
2012
2012
|
};
|
2013
|
-
return ya = function(
|
2013
|
+
return ya = function(O, _, V, P, M, w, k) {
|
2014
2014
|
a(V, _, P);
|
2015
2015
|
var R = function(H) {
|
2016
2016
|
if (H === M && N) return N;
|
@@ -2032,9 +2032,9 @@ function Fh() {
|
|
2032
2032
|
return function() {
|
2033
2033
|
return new V(this);
|
2034
2034
|
};
|
2035
|
-
}, A = _ + " Iterator", U = !1, I =
|
2036
|
-
if (L && (
|
2037
|
-
return e(
|
2035
|
+
}, A = _ + " Iterator", U = !1, I = O.prototype, j = I[m] || I["@@iterator"] || M && I[M], N = !y && j || R(M), L = _ === "Array" && I.entries || j, B, z, X;
|
2036
|
+
if (L && (B = s(L.call(new O())), B !== Object.prototype && B.next && (!r && s(B) !== p && (o ? o(B, p) : i(B[m]) || h(B, m, E)), u(B, A, !0, !0), r && (v[A] = E))), g && M === x && j && j.name !== x && (!r && d ? l(I, "name", x) : (U = !0, N = function() {
|
2037
|
+
return e(j, this);
|
2038
2038
|
})), M)
|
2039
2039
|
if (z = {
|
2040
2040
|
values: R(x),
|
@@ -2056,7 +2056,7 @@ var ba, ru;
|
|
2056
2056
|
function Cl() {
|
2057
2057
|
if (ru) return ba;
|
2058
2058
|
ru = 1;
|
2059
|
-
var n =
|
2059
|
+
var n = fr(), e = kh(), r = yr(), t = Vr(), i = He().f, a = Fh(), s = Uh(), o = Me(), u = Re(), l = "Array Iterator", h = t.set, c = t.getterFor(l);
|
2060
2060
|
ba = a(Array, "Array", function(f, g) {
|
2061
2061
|
h(this, {
|
2062
2062
|
type: l,
|
@@ -2123,18 +2123,18 @@ function Gh() {
|
|
2123
2123
|
TouchList: 0
|
2124
2124
|
}), xa;
|
2125
2125
|
}
|
2126
|
-
var
|
2126
|
+
var Oa, au;
|
2127
2127
|
function $h() {
|
2128
|
-
if (au) return
|
2128
|
+
if (au) return Oa;
|
2129
2129
|
au = 1;
|
2130
2130
|
var n = Mr(), e = n("span").classList, r = e && e.constructor && e.constructor.prototype;
|
2131
|
-
return
|
2131
|
+
return Oa = r === Object.prototype ? void 0 : r, Oa;
|
2132
2132
|
}
|
2133
2133
|
var nu;
|
2134
2134
|
function zh() {
|
2135
2135
|
if (nu) return tu;
|
2136
2136
|
nu = 1;
|
2137
|
-
var n = Z(), e = Gh(), r = $h(), t = Cl(), i =
|
2137
|
+
var n = Z(), e = Gh(), r = $h(), t = Cl(), i = vr(), a = jr(), s = ne(), o = s("iterator"), u = t.values, l = function(c, v) {
|
2138
2138
|
if (c) {
|
2139
2139
|
if (c[o] !== u) try {
|
2140
2140
|
i(c, o, u);
|
@@ -2178,11 +2178,11 @@ function nn(n, e, r) {
|
|
2178
2178
|
writable: !0
|
2179
2179
|
}) : n[e] = r, n;
|
2180
2180
|
}
|
2181
|
-
var su = {},
|
2181
|
+
var su = {}, Ta, ou;
|
2182
2182
|
function Yh() {
|
2183
|
-
if (ou) return
|
2183
|
+
if (ou) return Ta;
|
2184
2184
|
ou = 1;
|
2185
|
-
var n =
|
2185
|
+
var n = Be(), e = _r(), r = Ju(), t = Wa(), i = TypeError, a = "Reduce of empty array with no initial value", s = function(o) {
|
2186
2186
|
return function(u, l, h, c) {
|
2187
2187
|
var v = e(u), f = r(v), g = t(v);
|
2188
2188
|
if (n(l), g === 0 && h < 2) throw new i(a);
|
@@ -2199,14 +2199,14 @@ function Yh() {
|
|
2199
2199
|
return c;
|
2200
2200
|
};
|
2201
2201
|
};
|
2202
|
-
return
|
2202
|
+
return Ta = {
|
2203
2203
|
// `Array.prototype.reduce` method
|
2204
2204
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
2205
2205
|
left: s(!1),
|
2206
2206
|
// `Array.prototype.reduceRight` method
|
2207
2207
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
2208
2208
|
right: s(!0)
|
2209
|
-
},
|
2209
|
+
}, Ta;
|
2210
2210
|
}
|
2211
2211
|
var Sa, uu;
|
2212
2212
|
function wl() {
|
@@ -2226,7 +2226,7 @@ var lu;
|
|
2226
2226
|
function Xh() {
|
2227
2227
|
if (lu) return su;
|
2228
2228
|
lu = 1;
|
2229
|
-
var n = le(), e = Yh().left, r = wl(), t =
|
2229
|
+
var n = le(), e = Yh().left, r = wl(), t = Ba(), i = kr(), a = !i && t > 79 && t < 83, s = a || !r("reduce");
|
2230
2230
|
return n({ target: "Array", proto: !0, forced: s }, {
|
2231
2231
|
reduce: function(u) {
|
2232
2232
|
var l = arguments.length;
|
@@ -2239,7 +2239,7 @@ var hu = {}, fu;
|
|
2239
2239
|
function Kh() {
|
2240
2240
|
if (fu) return hu;
|
2241
2241
|
fu = 1;
|
2242
|
-
var n = le(), e =
|
2242
|
+
var n = le(), e = Br(), r = qr().f, t = ar(), i = qe(), a = tn(), s = Ce(), o = an(), u = Me(), l = e("".slice), h = Math.min, c = o("endsWith"), v = !u && !c && !!function() {
|
2243
2243
|
var f = r(String.prototype, "endsWith");
|
2244
2244
|
return f && !f.writable;
|
2245
2245
|
}();
|
@@ -2257,17 +2257,17 @@ var cu = {}, vu;
|
|
2257
2257
|
function Qh() {
|
2258
2258
|
if (vu) return cu;
|
2259
2259
|
vu = 1;
|
2260
|
-
var n = se(), e = re(), r = Ja(), t = ue(), i =
|
2260
|
+
var n = se(), e = re(), r = Ja(), t = ue(), i = ve(), a = Ce(), s = vl(), o = en(), u = ar(), l = qe(), h = ir(), c = rn(), v = Sl(), f = ee(), g = v.UNSUPPORTED_Y, d = 4294967295, p = Math.min, y = e([].push), m = e("".slice), b = !f(function() {
|
2261
2261
|
var S = /(?:)/, E = S.exec;
|
2262
2262
|
S.exec = function() {
|
2263
2263
|
return E.apply(this, arguments);
|
2264
2264
|
};
|
2265
|
-
var
|
2266
|
-
return
|
2265
|
+
var O = "ab".split(S);
|
2266
|
+
return O.length !== 2 || O[0] !== "a" || O[1] !== "b";
|
2267
2267
|
}), x = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
2268
2268
|
"test".split(/(?:)/, -1).length !== 4 || "ab".split(/(?:ab)*/).length !== 2 || ".".split(/(.?)(.?)/).length !== 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
2269
2269
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
2270
|
-
return r("split", function(S, E,
|
2270
|
+
return r("split", function(S, E, O) {
|
2271
2271
|
var _ = "0".split(void 0, 0).length ? function(V, P) {
|
2272
2272
|
return V === void 0 && P === 0 ? [] : n(E, this, V, P);
|
2273
2273
|
} : E;
|
@@ -2275,7 +2275,7 @@ function Qh() {
|
|
2275
2275
|
// `String.prototype.split` method
|
2276
2276
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
2277
2277
|
function(P, M) {
|
2278
|
-
var w = a(this), k = i(P) ?
|
2278
|
+
var w = a(this), k = i(P) ? h(P, S) : void 0;
|
2279
2279
|
return k ? n(k, P, w, M) : n(_, l(w), P, M);
|
2280
2280
|
},
|
2281
2281
|
// `RegExp.prototype[@@split]` method
|
@@ -2286,31 +2286,31 @@ function Qh() {
|
|
2286
2286
|
function(V, P) {
|
2287
2287
|
var M = t(this), w = l(V);
|
2288
2288
|
if (!x) {
|
2289
|
-
var k =
|
2289
|
+
var k = O(_, M, w, P, _ !== E);
|
2290
2290
|
if (k.done) return k.value;
|
2291
2291
|
}
|
2292
|
-
var R = s(M, RegExp), A = M.unicode, U = (M.ignoreCase ? "i" : "") + (M.multiline ? "m" : "") + (M.unicode ? "u" : "") + (g ? "g" : "y"), I = new R(g ? "^(?:" + M.source + ")" : M, U),
|
2293
|
-
if (
|
2292
|
+
var R = s(M, RegExp), A = M.unicode, U = (M.ignoreCase ? "i" : "") + (M.multiline ? "m" : "") + (M.unicode ? "u" : "") + (g ? "g" : "y"), I = new R(g ? "^(?:" + M.source + ")" : M, U), j = P === void 0 ? d : P >>> 0;
|
2293
|
+
if (j === 0) return [];
|
2294
2294
|
if (w.length === 0) return c(I, w) === null ? [w] : [];
|
2295
|
-
for (var N = 0, L = 0,
|
2295
|
+
for (var N = 0, L = 0, B = []; L < w.length; ) {
|
2296
2296
|
I.lastIndex = g ? 0 : L;
|
2297
2297
|
var z = c(I, g ? m(w, L) : w), X;
|
2298
2298
|
if (z === null || (X = p(u(I.lastIndex + (g ? L : 0)), w.length)) === N)
|
2299
2299
|
L = o(w, L, A);
|
2300
2300
|
else {
|
2301
|
-
if (y(
|
2301
|
+
if (y(B, m(w, N, L)), B.length === j) return B;
|
2302
2302
|
for (var H = 1; H <= z.length - 1; H++)
|
2303
|
-
if (y(
|
2303
|
+
if (y(B, z[H]), B.length === j) return B;
|
2304
2304
|
L = N = X;
|
2305
2305
|
}
|
2306
2306
|
}
|
2307
|
-
return y(
|
2307
|
+
return y(B, m(w, N)), B;
|
2308
2308
|
}
|
2309
2309
|
];
|
2310
2310
|
}, x || !b, g), cu;
|
2311
2311
|
}
|
2312
2312
|
Qh();
|
2313
|
-
var
|
2313
|
+
var lr = { exports: {} }, Ke = { exports: {} }, Zh = Ke.exports, gu;
|
2314
2314
|
function Jh() {
|
2315
2315
|
return gu || (gu = 1, (function() {
|
2316
2316
|
var n, e, r, t, i, a;
|
@@ -2330,7 +2330,7 @@ function Jh() {
|
|
2330
2330
|
}
|
2331
2331
|
var du;
|
2332
2332
|
function ef() {
|
2333
|
-
if (du) return
|
2333
|
+
if (du) return lr.exports;
|
2334
2334
|
du = 1;
|
2335
2335
|
for (var n = Jh(), e = typeof window > "u" ? Ma : window, r = ["moz", "webkit"], t = "AnimationFrame", i = e["request" + t], a = e["cancel" + t] || e["cancelRequest" + t], s = 0; !i && s < r.length; s++)
|
2336
2336
|
i = e[r[s] + "Request" + t], a = e[r[s] + "Cancel" + t] || e[r[s] + "CancelRequest" + t];
|
@@ -2363,13 +2363,13 @@ function ef() {
|
|
2363
2363
|
l[v].handle === c && (l[v].cancelled = !0);
|
2364
2364
|
};
|
2365
2365
|
}
|
2366
|
-
return
|
2366
|
+
return lr.exports = function(c) {
|
2367
2367
|
return i.call(e, c);
|
2368
|
-
},
|
2368
|
+
}, lr.exports.cancel = function() {
|
2369
2369
|
a.apply(e, arguments);
|
2370
|
-
},
|
2370
|
+
}, lr.exports.polyfill = function(c) {
|
2371
2371
|
c || (c = e), c.requestAnimationFrame = i, c.cancelAnimationFrame = a;
|
2372
|
-
},
|
2372
|
+
}, lr.exports;
|
2373
2373
|
}
|
2374
2374
|
var rf = ef();
|
2375
2375
|
const Ea = /* @__PURE__ */ Zu(rf);
|
@@ -2382,7 +2382,7 @@ var Ca, mu;
|
|
2382
2382
|
function tf() {
|
2383
2383
|
if (mu) return Ca;
|
2384
2384
|
mu = 1;
|
2385
|
-
var n = re(), e =
|
2385
|
+
var n = re(), e = Ce(), r = qe(), t = Pl(), i = n("".replace), a = RegExp("^[" + t + "]+"), s = RegExp("(^|[^" + t + "])[" + t + "]+$"), o = function(u) {
|
2386
2386
|
return function(l) {
|
2387
2387
|
var h = r(e(l));
|
2388
2388
|
return u & 1 && (h = i(h, a, "")), u & 2 && (h = i(h, s, "$1")), h;
|
@@ -2423,9 +2423,9 @@ function nf() {
|
|
2423
2423
|
}), pu;
|
2424
2424
|
}
|
2425
2425
|
nf();
|
2426
|
-
var Pa,
|
2426
|
+
var Pa, Ou;
|
2427
2427
|
function sf() {
|
2428
|
-
return
|
2428
|
+
return Ou || (Ou = 1, Pa = function(n) {
|
2429
2429
|
this.ok = !1, this.alpha = 1, n.charAt(0) == "#" && (n = n.substr(1, 6)), n = n.replace(/ /g, ""), n = n.toLowerCase();
|
2430
2430
|
var e = {
|
2431
2431
|
aliceblue: "f0f8ff",
|
@@ -2658,24 +2658,24 @@ function sf() {
|
|
2658
2658
|
}
|
2659
2659
|
var of = sf();
|
2660
2660
|
const Da = /* @__PURE__ */ Zu(of);
|
2661
|
-
var
|
2661
|
+
var Tu = {}, Su;
|
2662
2662
|
function uf() {
|
2663
|
-
if (Su) return
|
2663
|
+
if (Su) return Tu;
|
2664
2664
|
Su = 1;
|
2665
|
-
var n = le(), e =
|
2665
|
+
var n = le(), e = Br(), r = ul().indexOf, t = wl(), i = e([].indexOf), a = !!i && 1 / i([1], 1, -0) < 0, s = a || !t("indexOf");
|
2666
2666
|
return n({ target: "Array", proto: !0, forced: s }, {
|
2667
2667
|
indexOf: function(u) {
|
2668
2668
|
var l = arguments.length > 1 ? arguments[1] : void 0;
|
2669
2669
|
return a ? i(this, u, l) || 0 : r(this, u, l);
|
2670
2670
|
}
|
2671
|
-
}),
|
2671
|
+
}), Tu;
|
2672
2672
|
}
|
2673
2673
|
uf();
|
2674
2674
|
var Eu = {}, Ru;
|
2675
2675
|
function lf() {
|
2676
2676
|
if (Ru) return Eu;
|
2677
2677
|
Ru = 1;
|
2678
|
-
var n = le(), e = re(), r = tn(), t =
|
2678
|
+
var n = le(), e = re(), r = tn(), t = Ce(), i = qe(), a = an(), s = e("".indexOf);
|
2679
2679
|
return n({ target: "String", proto: !0, forced: !a("includes") }, {
|
2680
2680
|
includes: function(u) {
|
2681
2681
|
return !!~s(
|
@@ -2741,17 +2741,17 @@ function cf(n) {
|
|
2741
2741
|
Array.isArray(n) || (n = [n]);
|
2742
2742
|
for (var r = 0; r < n.length; r++) {
|
2743
2743
|
var t = n[r];
|
2744
|
-
if (t.type ===
|
2745
|
-
else if (t.type ===
|
2746
|
-
else if (t.type ===
|
2747
|
-
else if (t.type ===
|
2748
|
-
else if (t.type ===
|
2749
|
-
else if (t.type ===
|
2750
|
-
else if (t.type ===
|
2751
|
-
else if (t.type ===
|
2752
|
-
else if (t.type ===
|
2744
|
+
if (t.type === T.CLOSE_PATH) e += "z";
|
2745
|
+
else if (t.type === T.HORIZ_LINE_TO) e += (t.relative ? "h" : "H") + t.x;
|
2746
|
+
else if (t.type === T.VERT_LINE_TO) e += (t.relative ? "v" : "V") + t.y;
|
2747
|
+
else if (t.type === T.MOVE_TO) e += (t.relative ? "m" : "M") + t.x + " " + t.y;
|
2748
|
+
else if (t.type === T.LINE_TO) e += (t.relative ? "l" : "L") + t.x + " " + t.y;
|
2749
|
+
else if (t.type === T.CURVE_TO) e += (t.relative ? "c" : "C") + t.x1 + " " + t.y1 + " " + t.x2 + " " + t.y2 + " " + t.x + " " + t.y;
|
2750
|
+
else if (t.type === T.SMOOTH_CURVE_TO) e += (t.relative ? "s" : "S") + t.x2 + " " + t.y2 + " " + t.x + " " + t.y;
|
2751
|
+
else if (t.type === T.QUAD_TO) e += (t.relative ? "q" : "Q") + t.x1 + " " + t.y1 + " " + t.x + " " + t.y;
|
2752
|
+
else if (t.type === T.SMOOTH_QUAD_TO) e += (t.relative ? "t" : "T") + t.x + " " + t.y;
|
2753
2753
|
else {
|
2754
|
-
if (t.type !==
|
2754
|
+
if (t.type !== T.ARC) throw new Error('Unexpected command type "' + t.type + '" at index ' + r + ".");
|
2755
2755
|
e += (t.relative ? "a" : "A") + t.rX + " " + t.rY + " " + t.xRot + " " + +t.lArcFlag + " " + +t.sweepFlag + " " + t.x + " " + t.y;
|
2756
2756
|
}
|
2757
2757
|
}
|
@@ -2761,7 +2761,7 @@ function Va(n, e) {
|
|
2761
2761
|
var r = n[0], t = n[1];
|
2762
2762
|
return [r * Math.cos(e) - t * Math.sin(e), r * Math.sin(e) + t * Math.cos(e)];
|
2763
2763
|
}
|
2764
|
-
function
|
2764
|
+
function Ee() {
|
2765
2765
|
for (var n = [], e = 0; e < arguments.length; e++) n[e] = arguments[e];
|
2766
2766
|
for (var r = 0; r < n.length; r++) if (typeof n[r] != "number") throw new Error("assertNumbers arguments[" + r + "] is not a number. " + typeof n[r] + " == typeof " + n[r]);
|
2767
2767
|
return !0;
|
@@ -2777,7 +2777,7 @@ function Ia(n, e, r) {
|
|
2777
2777
|
n.cX = d[0] + (e + a) / 2, n.cY = d[1] + (r + s) / 2, n.phi1 = Math.atan2((l - g) / i, (u - f) / t), n.phi2 = Math.atan2((-l - g) / i, (-u - f) / t), n.sweepFlag === 0 && n.phi2 > n.phi1 && (n.phi2 -= 2 * Ge), n.sweepFlag === 1 && n.phi2 < n.phi1 && (n.phi2 += 2 * Ge), n.phi1 *= 180 / Ge, n.phi2 *= 180 / Ge;
|
2778
2778
|
}
|
2779
2779
|
function Au(n, e, r) {
|
2780
|
-
|
2780
|
+
Ee(n, e, r);
|
2781
2781
|
var t = n * n + e * e - r * r;
|
2782
2782
|
if (0 > t) return [];
|
2783
2783
|
if (t === 0) return [[n * r / (n * n + e * e), e * r / (n * n + e * e)]];
|
@@ -2814,16 +2814,16 @@ function Mu(n, e, r, t, i) {
|
|
2814
2814
|
function r() {
|
2815
2815
|
var o = NaN, u = NaN, l = NaN, h = NaN;
|
2816
2816
|
return i(function(c, v, f) {
|
2817
|
-
return c.type &
|
2817
|
+
return c.type & T.SMOOTH_CURVE_TO && (c.type = T.CURVE_TO, o = isNaN(o) ? v : o, u = isNaN(u) ? f : u, c.x1 = c.relative ? v - o : 2 * v - o, c.y1 = c.relative ? f - u : 2 * f - u), c.type & T.CURVE_TO ? (o = c.relative ? v + c.x2 : c.x2, u = c.relative ? f + c.y2 : c.y2) : (o = NaN, u = NaN), c.type & T.SMOOTH_QUAD_TO && (c.type = T.QUAD_TO, l = isNaN(l) ? v : l, h = isNaN(h) ? f : h, c.x1 = c.relative ? v - l : 2 * v - l, c.y1 = c.relative ? f - h : 2 * f - h), c.type & T.QUAD_TO ? (l = c.relative ? v + c.x1 : c.x1, h = c.relative ? f + c.y1 : c.y1) : (l = NaN, h = NaN), c;
|
2818
2818
|
});
|
2819
2819
|
}
|
2820
2820
|
function t() {
|
2821
2821
|
var o = NaN, u = NaN;
|
2822
2822
|
return i(function(l, h, c) {
|
2823
|
-
if (l.type &
|
2823
|
+
if (l.type & T.SMOOTH_QUAD_TO && (l.type = T.QUAD_TO, o = isNaN(o) ? h : o, u = isNaN(u) ? c : u, l.x1 = l.relative ? h - o : 2 * h - o, l.y1 = l.relative ? c - u : 2 * c - u), l.type & T.QUAD_TO) {
|
2824
2824
|
o = l.relative ? h + l.x1 : l.x1, u = l.relative ? c + l.y1 : l.y1;
|
2825
2825
|
var v = l.x1, f = l.y1;
|
2826
|
-
l.type =
|
2826
|
+
l.type = T.CURVE_TO, l.x1 = ((l.relative ? 0 : h) + 2 * v) / 3, l.y1 = ((l.relative ? 0 : c) + 2 * f) / 3, l.x2 = (l.x + 2 * v) / 3, l.y2 = (l.y + 2 * f) / 3;
|
2827
2827
|
} else o = NaN, u = NaN;
|
2828
2828
|
return l;
|
2829
2829
|
});
|
@@ -2831,25 +2831,25 @@ function Mu(n, e, r, t, i) {
|
|
2831
2831
|
function i(o) {
|
2832
2832
|
var u = 0, l = 0, h = NaN, c = NaN;
|
2833
2833
|
return function(v) {
|
2834
|
-
if (isNaN(h) && !(v.type &
|
2834
|
+
if (isNaN(h) && !(v.type & T.MOVE_TO)) throw new Error("path must start with moveto");
|
2835
2835
|
var f = o(v, u, l, h, c);
|
2836
|
-
return v.type &
|
2836
|
+
return v.type & T.CLOSE_PATH && (u = h, l = c), v.x !== void 0 && (u = v.relative ? u + v.x : v.x), v.y !== void 0 && (l = v.relative ? l + v.y : v.y), v.type & T.MOVE_TO && (h = u, c = l), f;
|
2837
2837
|
};
|
2838
2838
|
}
|
2839
2839
|
function a(o, u, l, h, c, v) {
|
2840
|
-
return
|
2840
|
+
return Ee(o, u, l, h, c, v), i(function(f, g, d, p) {
|
2841
2841
|
var y = f.x1, m = f.x2, b = f.relative && !isNaN(p), x = f.x !== void 0 ? f.x : b ? 0 : g, S = f.y !== void 0 ? f.y : b ? 0 : d;
|
2842
2842
|
function E(z) {
|
2843
2843
|
return z * z;
|
2844
2844
|
}
|
2845
|
-
f.type &
|
2846
|
-
var
|
2847
|
-
if (f.xRot !== void 0 && (o !== 1 || u !== 0 || l !== 0 || h !== 1)) if (
|
2845
|
+
f.type & T.HORIZ_LINE_TO && u !== 0 && (f.type = T.LINE_TO, f.y = f.relative ? 0 : d), f.type & T.VERT_LINE_TO && l !== 0 && (f.type = T.LINE_TO, f.x = f.relative ? 0 : g), f.x !== void 0 && (f.x = f.x * o + S * l + (b ? 0 : c)), f.y !== void 0 && (f.y = x * u + f.y * h + (b ? 0 : v)), f.x1 !== void 0 && (f.x1 = f.x1 * o + f.y1 * l + (b ? 0 : c)), f.y1 !== void 0 && (f.y1 = y * u + f.y1 * h + (b ? 0 : v)), f.x2 !== void 0 && (f.x2 = f.x2 * o + f.y2 * l + (b ? 0 : c)), f.y2 !== void 0 && (f.y2 = m * u + f.y2 * h + (b ? 0 : v));
|
2846
|
+
var O = o * h - u * l;
|
2847
|
+
if (f.xRot !== void 0 && (o !== 1 || u !== 0 || l !== 0 || h !== 1)) if (O === 0) delete f.rX, delete f.rY, delete f.xRot, delete f.lArcFlag, delete f.sweepFlag, f.type = T.LINE_TO;
|
2848
2848
|
else {
|
2849
|
-
var _ = f.xRot * Math.PI / 180, V = Math.sin(_), P = Math.cos(_), M = 1 / E(f.rX), w = 1 / E(f.rY), k = E(P) * M + E(V) * w, R = 2 * V * P * (M - w), A = E(V) * M + E(P) * w, U = k * h * h - R * u * h + A * u * u, I = R * (o * h + u * l) - 2 * (k * l * h + A * o * u),
|
2850
|
-
f.rX = Math.abs(
|
2849
|
+
var _ = f.xRot * Math.PI / 180, V = Math.sin(_), P = Math.cos(_), M = 1 / E(f.rX), w = 1 / E(f.rY), k = E(P) * M + E(V) * w, R = 2 * V * P * (M - w), A = E(V) * M + E(P) * w, U = k * h * h - R * u * h + A * u * u, I = R * (o * h + u * l) - 2 * (k * l * h + A * o * u), j = k * l * l - R * o * l + A * o * o, N = (Math.atan2(I, U - j) + Math.PI) % Math.PI / 2, L = Math.sin(N), B = Math.cos(N);
|
2850
|
+
f.rX = Math.abs(O) / Math.sqrt(U * E(B) + I * L * B + j * E(L)), f.rY = Math.abs(O) / Math.sqrt(U * E(L) - I * L * B + j * E(B)), f.xRot = 180 * N / Math.PI;
|
2851
2851
|
}
|
2852
|
-
return f.sweepFlag !== void 0 && 0 >
|
2852
|
+
return f.sweepFlag !== void 0 && 0 > O && (f.sweepFlag = +!f.sweepFlag), f;
|
2853
2853
|
});
|
2854
2854
|
}
|
2855
2855
|
function s() {
|
@@ -2863,7 +2863,7 @@ function Mu(n, e, r, t, i) {
|
|
2863
2863
|
function u(l) {
|
2864
2864
|
return Math.round(l * o) / o;
|
2865
2865
|
}
|
2866
|
-
return o === void 0 && (o = 1e13),
|
2866
|
+
return o === void 0 && (o = 1e13), Ee(o), function(l) {
|
2867
2867
|
return l.x1 !== void 0 && (l.x1 = u(l.x1)), l.y1 !== void 0 && (l.y1 = u(l.y1)), l.x2 !== void 0 && (l.x2 = u(l.x2)), l.y2 !== void 0 && (l.y2 = u(l.y2)), l.x !== void 0 && (l.x = u(l.x)), l.y !== void 0 && (l.y = u(l.y)), l.rX !== void 0 && (l.rX = u(l.rX)), l.rY !== void 0 && (l.rY = u(l.rY)), l;
|
2868
2868
|
};
|
2869
2869
|
}, n.TO_ABS = e, n.TO_REL = function() {
|
@@ -2872,58 +2872,58 @@ function Mu(n, e, r, t, i) {
|
|
2872
2872
|
});
|
2873
2873
|
}, n.NORMALIZE_HVZ = function(o, u, l) {
|
2874
2874
|
return o === void 0 && (o = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, c, v, f, g) {
|
2875
|
-
if (isNaN(f) && !(h.type &
|
2876
|
-
return u && h.type &
|
2875
|
+
if (isNaN(f) && !(h.type & T.MOVE_TO)) throw new Error("path must start with moveto");
|
2876
|
+
return u && h.type & T.HORIZ_LINE_TO && (h.type = T.LINE_TO, h.y = h.relative ? 0 : v), l && h.type & T.VERT_LINE_TO && (h.type = T.LINE_TO, h.x = h.relative ? 0 : c), o && h.type & T.CLOSE_PATH && (h.type = T.LINE_TO, h.x = h.relative ? f - c : f, h.y = h.relative ? g - v : g), h.type & T.ARC && (h.rX === 0 || h.rY === 0) && (h.type = T.LINE_TO, delete h.rX, delete h.rY, delete h.xRot, delete h.lArcFlag, delete h.sweepFlag), h;
|
2877
2877
|
});
|
2878
2878
|
}, n.NORMALIZE_ST = r, n.QT_TO_C = t, n.INFO = i, n.SANITIZE = function(o) {
|
2879
|
-
o === void 0 && (o = 0),
|
2879
|
+
o === void 0 && (o = 0), Ee(o);
|
2880
2880
|
var u = NaN, l = NaN, h = NaN, c = NaN;
|
2881
2881
|
return i(function(v, f, g, d, p) {
|
2882
2882
|
var y = Math.abs, m = !1, b = 0, x = 0;
|
2883
|
-
if (v.type &
|
2883
|
+
if (v.type & T.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : f - u, x = isNaN(l) ? 0 : g - l), v.type & (T.CURVE_TO | T.SMOOTH_CURVE_TO) ? (u = v.relative ? f + v.x2 : v.x2, l = v.relative ? g + v.y2 : v.y2) : (u = NaN, l = NaN), v.type & T.SMOOTH_QUAD_TO ? (h = isNaN(h) ? f : 2 * f - h, c = isNaN(c) ? g : 2 * g - c) : v.type & T.QUAD_TO ? (h = v.relative ? f + v.x1 : v.x1, c = v.relative ? g + v.y1 : v.y2) : (h = NaN, c = NaN), v.type & T.LINE_COMMANDS || v.type & T.ARC && (v.rX === 0 || v.rY === 0 || !v.lArcFlag) || v.type & T.CURVE_TO || v.type & T.SMOOTH_CURVE_TO || v.type & T.QUAD_TO || v.type & T.SMOOTH_QUAD_TO) {
|
2884
2884
|
var S = v.x === void 0 ? 0 : v.relative ? v.x : v.x - f, E = v.y === void 0 ? 0 : v.relative ? v.y : v.y - g;
|
2885
2885
|
b = isNaN(h) ? v.x1 === void 0 ? b : v.relative ? v.x : v.x1 - f : h - f, x = isNaN(c) ? v.y1 === void 0 ? x : v.relative ? v.y : v.y1 - g : c - g;
|
2886
|
-
var
|
2887
|
-
y(S) <= o && y(E) <= o && y(b) <= o && y(x) <= o && y(
|
2886
|
+
var O = v.x2 === void 0 ? 0 : v.relative ? v.x : v.x2 - f, _ = v.y2 === void 0 ? 0 : v.relative ? v.y : v.y2 - g;
|
2887
|
+
y(S) <= o && y(E) <= o && y(b) <= o && y(x) <= o && y(O) <= o && y(_) <= o && (m = !0);
|
2888
2888
|
}
|
2889
|
-
return v.type &
|
2889
|
+
return v.type & T.CLOSE_PATH && y(f - d) <= o && y(g - p) <= o && (m = !0), m ? [] : v;
|
2890
2890
|
});
|
2891
2891
|
}, n.MATRIX = a, n.ROTATE = function(o, u, l) {
|
2892
|
-
u === void 0 && (u = 0), l === void 0 && (l = 0),
|
2892
|
+
u === void 0 && (u = 0), l === void 0 && (l = 0), Ee(o, u, l);
|
2893
2893
|
var h = Math.sin(o), c = Math.cos(o);
|
2894
2894
|
return a(c, h, -h, c, u - u * c + l * h, l - u * h - l * c);
|
2895
2895
|
}, n.TRANSLATE = function(o, u) {
|
2896
|
-
return u === void 0 && (u = 0),
|
2896
|
+
return u === void 0 && (u = 0), Ee(o, u), a(1, 0, 0, 1, o, u);
|
2897
2897
|
}, n.SCALE = function(o, u) {
|
2898
|
-
return u === void 0 && (u = o),
|
2898
|
+
return u === void 0 && (u = o), Ee(o, u), a(o, 0, 0, u, 0, 0);
|
2899
2899
|
}, n.SKEW_X = function(o) {
|
2900
|
-
return
|
2900
|
+
return Ee(o), a(1, 0, Math.atan(o), 1, 0, 0);
|
2901
2901
|
}, n.SKEW_Y = function(o) {
|
2902
|
-
return
|
2902
|
+
return Ee(o), a(1, Math.atan(o), 0, 1, 0, 0);
|
2903
2903
|
}, n.X_AXIS_SYMMETRY = function(o) {
|
2904
|
-
return o === void 0 && (o = 0),
|
2904
|
+
return o === void 0 && (o = 0), Ee(o), a(-1, 0, 0, 1, o, 0);
|
2905
2905
|
}, n.Y_AXIS_SYMMETRY = function(o) {
|
2906
|
-
return o === void 0 && (o = 0),
|
2906
|
+
return o === void 0 && (o = 0), Ee(o), a(1, 0, 0, -1, 0, o);
|
2907
2907
|
}, n.A_TO_C = function() {
|
2908
2908
|
return i(function(o, u, l) {
|
2909
|
-
return
|
2909
|
+
return T.ARC === o.type ? function(h, c, v) {
|
2910
2910
|
var f, g, d, p;
|
2911
2911
|
h.cX || Ia(h, c, v);
|
2912
|
-
for (var y = Math.min(h.phi1, h.phi2), m = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(m / 90), x = new Array(b), S = c, E = v,
|
2913
|
-
var _ = Iu(h.phi1, h.phi2,
|
2914
|
-
x[
|
2915
|
-
var
|
2912
|
+
for (var y = Math.min(h.phi1, h.phi2), m = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(m / 90), x = new Array(b), S = c, E = v, O = 0; O < b; O++) {
|
2913
|
+
var _ = Iu(h.phi1, h.phi2, O / b), V = Iu(h.phi1, h.phi2, (O + 1) / b), P = V - _, M = 4 / 3 * Math.tan(P * Le / 4), w = [Math.cos(_ * Le) - M * Math.sin(_ * Le), Math.sin(_ * Le) + M * Math.cos(_ * Le)], k = w[0], R = w[1], A = [Math.cos(V * Le), Math.sin(V * Le)], U = A[0], I = A[1], j = [U + M * Math.sin(V * Le), I - M * Math.cos(V * Le)], N = j[0], L = j[1];
|
2914
|
+
x[O] = { relative: h.relative, type: T.CURVE_TO };
|
2915
|
+
var B = function(z, X) {
|
2916
2916
|
var H = Va([z * h.rX, X * h.rY], h.xRot), Q = H[0], Fe = H[1];
|
2917
2917
|
return [h.cX + Q, h.cY + Fe];
|
2918
2918
|
};
|
2919
|
-
f =
|
2919
|
+
f = B(k, R), x[O].x1 = f[0], x[O].y1 = f[1], g = B(N, L), x[O].x2 = g[0], x[O].y2 = g[1], d = B(U, I), x[O].x = d[0], x[O].y = d[1], h.relative && (x[O].x1 -= S, x[O].y1 -= E, x[O].x2 -= S, x[O].y2 -= E, x[O].x -= S, x[O].y -= E), S = (p = [x[O].x, x[O].y])[0], E = p[1];
|
2920
2920
|
}
|
2921
2921
|
return x;
|
2922
2922
|
}(o, o.relative ? 0 : u, o.relative ? 0 : l) : o;
|
2923
2923
|
});
|
2924
2924
|
}, n.ANNOTATE_ARCS = function() {
|
2925
2925
|
return i(function(o, u, l) {
|
2926
|
-
return o.relative && (u = 0, l = 0),
|
2926
|
+
return o.relative && (u = 0, l = 0), T.ARC === o.type && Ia(o, u, l), o;
|
2927
2927
|
});
|
2928
2928
|
}, n.CLONE = s, n.CALCULATE_BOUNDS = function() {
|
2929
2929
|
var o = function(v) {
|
@@ -2938,23 +2938,23 @@ function Mu(n, e, r, t, i) {
|
|
2938
2938
|
function y(L) {
|
2939
2939
|
L > c.maxY && (c.maxY = L), L < c.minY && (c.minY = L);
|
2940
2940
|
}
|
2941
|
-
if (d.type &
|
2941
|
+
if (d.type & T.DRAWING_COMMANDS && (p(f), y(g)), d.type & T.HORIZ_LINE_TO && p(d.x), d.type & T.VERT_LINE_TO && y(d.y), d.type & T.LINE_TO && (p(d.x), y(d.y)), d.type & T.CURVE_TO) {
|
2942
2942
|
p(d.x), y(d.y);
|
2943
2943
|
for (var m = 0, b = _u(f, d.x1, d.x2, d.x); m < b.length; m++)
|
2944
2944
|
0 < (N = b[m]) && 1 > N && p(Mu(f, d.x1, d.x2, d.x, N));
|
2945
2945
|
for (var x = 0, S = _u(g, d.y1, d.y2, d.y); x < S.length; x++)
|
2946
2946
|
0 < (N = S[x]) && 1 > N && y(Mu(g, d.y1, d.y2, d.y, N));
|
2947
2947
|
}
|
2948
|
-
if (d.type &
|
2948
|
+
if (d.type & T.ARC) {
|
2949
2949
|
p(d.x), y(d.y), Ia(d, f, g);
|
2950
|
-
for (var E = d.xRot / 180 * Math.PI,
|
2951
|
-
var
|
2950
|
+
for (var E = d.xRot / 180 * Math.PI, O = Math.cos(E) * d.rX, _ = Math.sin(E) * d.rX, V = -Math.sin(E) * d.rY, P = Math.cos(E) * d.rY, M = d.phi1 < d.phi2 ? [d.phi1, d.phi2] : -180 > d.phi2 ? [d.phi2 + 360, d.phi1 + 360] : [d.phi2, d.phi1], w = M[0], k = M[1], R = function(L) {
|
2951
|
+
var B = L[0], z = L[1], X = 180 * Math.atan2(z, B) / Math.PI;
|
2952
2952
|
return X < w ? X + 360 : X;
|
2953
|
-
}, A = 0, U = Au(V, -
|
2954
|
-
(N = U[A]) > w && N < k && p(Nu(d.cX,
|
2955
|
-
for (var I = 0,
|
2953
|
+
}, A = 0, U = Au(V, -O, 0).map(R); A < U.length; A++)
|
2954
|
+
(N = U[A]) > w && N < k && p(Nu(d.cX, O, V, N));
|
2955
|
+
for (var I = 0, j = Au(P, -_, 0).map(R); I < j.length; I++) {
|
2956
2956
|
var N;
|
2957
|
-
(N =
|
2957
|
+
(N = j[I]) > w && N < k && y(Nu(d.cY, _, P, N));
|
2958
2958
|
}
|
2959
2959
|
}
|
2960
2960
|
return v;
|
@@ -2962,7 +2962,7 @@ function Mu(n, e, r, t, i) {
|
|
2962
2962
|
return c.minX = 1 / 0, c.maxX = -1 / 0, c.minY = 1 / 0, c.maxY = -1 / 0, c;
|
2963
2963
|
};
|
2964
2964
|
})(ae || (ae = {}));
|
2965
|
-
var
|
2965
|
+
var Se, Nl = function() {
|
2966
2966
|
function n() {
|
2967
2967
|
}
|
2968
2968
|
return n.prototype.round = function(e) {
|
@@ -3019,36 +3019,36 @@ var Oe, Nl = function() {
|
|
3019
3019
|
for (var a = function(c) {
|
3020
3020
|
t.push(c), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
3021
3021
|
}, s = 0; s < r.length; s++) {
|
3022
|
-
var o = r[s], u = !(this.curCommandType !==
|
3022
|
+
var o = r[s], u = !(this.curCommandType !== T.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l = qu(o) && (this.curNumber === "0" && o === "0" || u);
|
3023
3023
|
if (!qu(o) || l) if (o !== "e" && o !== "E") if (o !== "-" && o !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (o !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
3024
3024
|
if (this.curNumber && this.curCommandType !== -1) {
|
3025
3025
|
var h = Number(this.curNumber);
|
3026
3026
|
if (isNaN(h)) throw new SyntaxError("Invalid number ending at " + s);
|
3027
|
-
if (this.curCommandType ===
|
3027
|
+
if (this.curCommandType === T.ARC) {
|
3028
3028
|
if (this.curArgs.length === 0 || this.curArgs.length === 1) {
|
3029
3029
|
if (0 > h) throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + s + '"');
|
3030
3030
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1") throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + s + '"');
|
3031
3031
|
}
|
3032
|
-
this.curArgs.push(h), this.curArgs.length === df[this.curCommandType] && (
|
3032
|
+
this.curArgs.push(h), this.curArgs.length === df[this.curCommandType] && (T.HORIZ_LINE_TO === this.curCommandType ? a({ type: T.HORIZ_LINE_TO, relative: this.curCommandRelative, x: h }) : T.VERT_LINE_TO === this.curCommandType ? a({ type: T.VERT_LINE_TO, relative: this.curCommandRelative, y: h }) : this.curCommandType === T.MOVE_TO || this.curCommandType === T.LINE_TO || this.curCommandType === T.SMOOTH_QUAD_TO ? (a({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), T.MOVE_TO === this.curCommandType && (this.curCommandType = T.LINE_TO)) : this.curCommandType === T.CURVE_TO ? a({ type: T.CURVE_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x2: this.curArgs[2], y2: this.curArgs[3], x: this.curArgs[4], y: this.curArgs[5] }) : this.curCommandType === T.SMOOTH_CURVE_TO ? a({ type: T.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === T.QUAD_TO ? a({ type: T.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === T.ARC && a({ type: T.ARC, relative: this.curCommandRelative, rX: this.curArgs[0], rY: this.curArgs[1], xRot: this.curArgs[2], lArcFlag: this.curArgs[3], sweepFlag: this.curArgs[4], x: this.curArgs[5], y: this.curArgs[6] })), this.curNumber = "", this.curNumberHasExpDigits = !1, this.curNumberHasExp = !1, this.curNumberHasDecimal = !1, this.canParseCommandOrComma = !0;
|
3033
3033
|
}
|
3034
3034
|
if (!vf(o)) if (o === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
|
3035
3035
|
else if (o !== "+" && o !== "-" && o !== ".") if (l) this.curNumber = o, this.curNumberHasDecimal = !1;
|
3036
3036
|
else {
|
3037
3037
|
if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + s + ".");
|
3038
3038
|
if (!this.canParseCommandOrComma) throw new SyntaxError('Unexpected character "' + o + '" at index ' + s + ". Command cannot follow comma");
|
3039
|
-
if (this.canParseCommandOrComma = !1, o !== "z" && o !== "Z") if (o === "h" || o === "H") this.curCommandType =
|
3040
|
-
else if (o === "v" || o === "V") this.curCommandType =
|
3041
|
-
else if (o === "m" || o === "M") this.curCommandType =
|
3042
|
-
else if (o === "l" || o === "L") this.curCommandType =
|
3043
|
-
else if (o === "c" || o === "C") this.curCommandType =
|
3044
|
-
else if (o === "s" || o === "S") this.curCommandType =
|
3045
|
-
else if (o === "q" || o === "Q") this.curCommandType =
|
3046
|
-
else if (o === "t" || o === "T") this.curCommandType =
|
3039
|
+
if (this.canParseCommandOrComma = !1, o !== "z" && o !== "Z") if (o === "h" || o === "H") this.curCommandType = T.HORIZ_LINE_TO, this.curCommandRelative = o === "h";
|
3040
|
+
else if (o === "v" || o === "V") this.curCommandType = T.VERT_LINE_TO, this.curCommandRelative = o === "v";
|
3041
|
+
else if (o === "m" || o === "M") this.curCommandType = T.MOVE_TO, this.curCommandRelative = o === "m";
|
3042
|
+
else if (o === "l" || o === "L") this.curCommandType = T.LINE_TO, this.curCommandRelative = o === "l";
|
3043
|
+
else if (o === "c" || o === "C") this.curCommandType = T.CURVE_TO, this.curCommandRelative = o === "c";
|
3044
|
+
else if (o === "s" || o === "S") this.curCommandType = T.SMOOTH_CURVE_TO, this.curCommandRelative = o === "s";
|
3045
|
+
else if (o === "q" || o === "Q") this.curCommandType = T.QUAD_TO, this.curCommandRelative = o === "q";
|
3046
|
+
else if (o === "t" || o === "T") this.curCommandType = T.SMOOTH_QUAD_TO, this.curCommandRelative = o === "t";
|
3047
3047
|
else {
|
3048
3048
|
if (o !== "a" && o !== "A") throw new SyntaxError('Unexpected character "' + o + '" at index ' + s + ".");
|
3049
|
-
this.curCommandType =
|
3049
|
+
this.curCommandType = T.ARC, this.curCommandRelative = o === "a";
|
3050
3050
|
}
|
3051
|
-
else t.push({ type:
|
3051
|
+
else t.push({ type: T.CLOSE_PATH }), this.canParseCommandOrComma = !0, this.curCommandType = -1;
|
3052
3052
|
}
|
3053
3053
|
else this.curNumber = o, this.curNumberHasDecimal = o === ".";
|
3054
3054
|
} else this.curNumber += o, this.curNumberHasDecimal = !0;
|
@@ -3067,7 +3067,7 @@ var Oe, Nl = function() {
|
|
3067
3067
|
return i;
|
3068
3068
|
} } });
|
3069
3069
|
}, e;
|
3070
|
-
}(Nl),
|
3070
|
+
}(Nl), T = function(n) {
|
3071
3071
|
function e(r) {
|
3072
3072
|
var t = n.call(this) || this;
|
3073
3073
|
return t.commands = typeof r == "string" ? e.parse(r) : r, t;
|
@@ -3089,11 +3089,11 @@ var Oe, Nl = function() {
|
|
3089
3089
|
var t = new gf(), i = [];
|
3090
3090
|
return t.parse(r, i), t.finish(i), i;
|
3091
3091
|
}, e.CLOSE_PATH = 1, e.MOVE_TO = 2, e.HORIZ_LINE_TO = 4, e.VERT_LINE_TO = 8, e.LINE_TO = 16, e.CURVE_TO = 32, e.SMOOTH_CURVE_TO = 64, e.QUAD_TO = 128, e.SMOOTH_QUAD_TO = 256, e.ARC = 512, e.LINE_COMMANDS = e.LINE_TO | e.HORIZ_LINE_TO | e.VERT_LINE_TO, e.DRAWING_COMMANDS = e.HORIZ_LINE_TO | e.VERT_LINE_TO | e.LINE_TO | e.CURVE_TO | e.SMOOTH_CURVE_TO | e.QUAD_TO | e.SMOOTH_QUAD_TO | e.ARC, e;
|
3092
|
-
}(Nl), df = ((
|
3092
|
+
}(Nl), df = ((Se = {})[T.MOVE_TO] = 2, Se[T.LINE_TO] = 2, Se[T.HORIZ_LINE_TO] = 1, Se[T.VERT_LINE_TO] = 1, Se[T.CLOSE_PATH] = 0, Se[T.QUAD_TO] = 4, Se[T.SMOOTH_QUAD_TO] = 2, Se[T.CURVE_TO] = 6, Se[T.SMOOTH_CURVE_TO] = 4, Se[T.ARC] = 7, Se), Du = {}, Na, Vu;
|
3093
3093
|
function pf() {
|
3094
3094
|
if (Vu) return Na;
|
3095
3095
|
Vu = 1;
|
3096
|
-
var n = se(), e = we(), r = Ir(), t =
|
3096
|
+
var n = se(), e = we(), r = Ir(), t = Tl(), i = RegExp.prototype;
|
3097
3097
|
return Na = function(a) {
|
3098
3098
|
var s = a.flags;
|
3099
3099
|
return s === void 0 && !("flags" in i) && !e(a, "flags") && r(i, a) ? n(t, a) : s;
|
@@ -3103,7 +3103,7 @@ var Lu;
|
|
3103
3103
|
function yf() {
|
3104
3104
|
if (Lu) return Du;
|
3105
3105
|
Lu = 1;
|
3106
|
-
var n = Dr().PROPER, e =
|
3106
|
+
var n = Dr().PROPER, e = er(), r = ue(), t = qe(), i = ee(), a = pf(), s = "toString", o = RegExp.prototype, u = o[s], l = i(function() {
|
3107
3107
|
return u.call({ source: "a", flags: "b" }) !== "/a/b";
|
3108
3108
|
}), h = n && u.name !== s;
|
3109
3109
|
return (l || h) && e(o, s, function() {
|
@@ -3112,21 +3112,21 @@ function yf() {
|
|
3112
3112
|
}, { unsafe: !0 }), Du;
|
3113
3113
|
}
|
3114
3114
|
yf();
|
3115
|
-
function
|
3115
|
+
function wr(n) {
|
3116
3116
|
"@babel/helpers - typeof";
|
3117
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
3117
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? wr = function(e) {
|
3118
3118
|
return typeof e;
|
3119
|
-
} :
|
3119
|
+
} : wr = function(e) {
|
3120
3120
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
3121
|
-
},
|
3121
|
+
}, wr(n);
|
3122
3122
|
}
|
3123
3123
|
function mf(n, e) {
|
3124
3124
|
if (!(n instanceof e))
|
3125
3125
|
throw new TypeError("Cannot call a class as a function");
|
3126
3126
|
}
|
3127
3127
|
var bf = [512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512, 454, 405, 364, 328, 298, 271, 496, 456, 420, 388, 360, 335, 312, 292, 273, 512, 482, 454, 428, 405, 383, 364, 345, 328, 312, 298, 284, 271, 259, 496, 475, 456, 437, 420, 404, 388, 374, 360, 347, 335, 323, 312, 302, 292, 282, 273, 265, 512, 497, 482, 468, 454, 441, 428, 417, 405, 394, 383, 373, 364, 354, 345, 337, 328, 320, 312, 305, 298, 291, 284, 278, 271, 265, 259, 507, 496, 485, 475, 465, 456, 446, 437, 428, 420, 412, 404, 396, 388, 381, 374, 367, 360, 354, 347, 341, 335, 329, 323, 318, 312, 307, 302, 297, 292, 287, 282, 278, 273, 269, 265, 261, 512, 505, 497, 489, 482, 475, 468, 461, 454, 447, 441, 435, 428, 422, 417, 411, 405, 399, 394, 389, 383, 378, 373, 368, 364, 359, 354, 350, 345, 341, 337, 332, 328, 324, 320, 316, 312, 309, 305, 301, 298, 294, 291, 287, 284, 281, 278, 274, 271, 268, 265, 262, 259, 257, 507, 501, 496, 491, 485, 480, 475, 470, 465, 460, 456, 451, 446, 442, 437, 433, 428, 424, 420, 416, 412, 408, 404, 400, 396, 392, 388, 385, 381, 377, 374, 370, 367, 363, 360, 357, 354, 350, 347, 344, 341, 338, 335, 332, 329, 326, 323, 320, 318, 315, 312, 310, 307, 304, 302, 299, 297, 294, 292, 289, 287, 285, 282, 280, 278, 275, 273, 271, 269, 267, 265, 263, 261, 259], xf = [9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24];
|
3128
|
-
function
|
3129
|
-
if (typeof n == "string" && (n = document.getElementById(n)), !n ||
|
3128
|
+
function Of(n, e, r, t, i) {
|
3129
|
+
if (typeof n == "string" && (n = document.getElementById(n)), !n || wr(n) !== "object" || !("getContext" in n))
|
3130
3130
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
3131
3131
|
var a = n.getContext("2d");
|
3132
3132
|
try {
|
@@ -3135,10 +3135,10 @@ function Tf(n, e, r, t, i) {
|
|
3135
3135
|
throw new Error("unable to access image data: " + s);
|
3136
3136
|
}
|
3137
3137
|
}
|
3138
|
-
function
|
3138
|
+
function Tf(n, e, r, t, i, a) {
|
3139
3139
|
if (!(isNaN(a) || a < 1)) {
|
3140
3140
|
a |= 0;
|
3141
|
-
var s =
|
3141
|
+
var s = Of(n, e, r, t, i);
|
3142
3142
|
s = Sf(s, e, r, t, i, a), n.getContext("2d").putImageData(s, e, r);
|
3143
3143
|
}
|
3144
3144
|
}
|
@@ -3148,43 +3148,43 @@ function Sf(n, e, r, t, i, a) {
|
|
3148
3148
|
f.next = v;
|
3149
3149
|
for (var p = null, y = null, m = 0, b = 0, x = bf[a], S = xf[a], E = 0; E < i; E++) {
|
3150
3150
|
f = v;
|
3151
|
-
for (var
|
3152
|
-
f.r =
|
3153
|
-
for (var w = 0, k = 0, R = 0, A = 0, U = h *
|
3154
|
-
var Q = b + ((u < H ? u : H) << 2), Fe = s[Q], De = s[Q + 1], Ae = s[Q + 2],
|
3155
|
-
L += (f.r = Fe) *
|
3151
|
+
for (var O = s[b], _ = s[b + 1], V = s[b + 2], P = s[b + 3], M = 0; M < h; M++)
|
3152
|
+
f.r = O, f.g = _, f.b = V, f.a = P, f = f.next;
|
3153
|
+
for (var w = 0, k = 0, R = 0, A = 0, U = h * O, I = h * _, j = h * V, N = h * P, L = c * O, B = c * _, z = c * V, X = c * P, H = 1; H < h; H++) {
|
3154
|
+
var Q = b + ((u < H ? u : H) << 2), Fe = s[Q], De = s[Q + 1], Ae = s[Q + 2], pe = s[Q + 3], ye = h - H;
|
3155
|
+
L += (f.r = Fe) * ye, B += (f.g = De) * ye, z += (f.b = Ae) * ye, X += (f.a = pe) * ye, w += Fe, k += De, R += Ae, A += pe, f = f.next;
|
3156
3156
|
}
|
3157
3157
|
p = v, y = g;
|
3158
|
-
for (var
|
3158
|
+
for (var me = 0; me < t; me++) {
|
3159
3159
|
var Ie = X * x >>> S;
|
3160
3160
|
if (s[b + 3] = Ie, Ie !== 0) {
|
3161
3161
|
var Ne = 255 / Ie;
|
3162
|
-
s[b] = (L * x >>> S) * Ne, s[b + 1] = (
|
3162
|
+
s[b] = (L * x >>> S) * Ne, s[b + 1] = (B * x >>> S) * Ne, s[b + 2] = (z * x >>> S) * Ne;
|
3163
3163
|
} else
|
3164
3164
|
s[b] = s[b + 1] = s[b + 2] = 0;
|
3165
|
-
L -= U,
|
3166
|
-
var he =
|
3167
|
-
he = m + (he < u ? he : u) << 2, w += p.r = s[he], k += p.g = s[he + 1], R += p.b = s[he + 2], A += p.a = s[he + 3], L += w,
|
3168
|
-
var
|
3169
|
-
U += Ue, I +=
|
3165
|
+
L -= U, B -= I, z -= j, X -= N, U -= p.r, I -= p.g, j -= p.b, N -= p.a;
|
3166
|
+
var he = me + a + 1;
|
3167
|
+
he = m + (he < u ? he : u) << 2, w += p.r = s[he], k += p.g = s[he + 1], R += p.b = s[he + 2], A += p.a = s[he + 3], L += w, B += k, z += R, X += A, p = p.next;
|
3168
|
+
var be = y, Ue = be.r, br = be.g, sr = be.b, xr = be.a;
|
3169
|
+
U += Ue, I += br, j += sr, N += xr, w -= Ue, k -= br, R -= sr, A -= xr, y = y.next, b += 4;
|
3170
3170
|
}
|
3171
3171
|
m += t;
|
3172
3172
|
}
|
3173
|
-
for (var
|
3174
|
-
b =
|
3175
|
-
var fe = s[b],
|
3173
|
+
for (var ge = 0; ge < t; ge++) {
|
3174
|
+
b = ge << 2;
|
3175
|
+
var fe = s[b], xe = s[b + 1], C = s[b + 2], q = s[b + 3], G = h * fe, $ = h * xe, W = h * C, _e = h * q, Ve = c * fe, Oe = c * xe, Te = c * C, We = c * q;
|
3176
3176
|
f = v;
|
3177
|
-
for (var
|
3178
|
-
f.r = fe, f.g =
|
3179
|
-
for (var Or = t, Hr = 0, Wr = 0, Yr = 0, Xr = 0,
|
3180
|
-
b = Or +
|
3181
|
-
var
|
3182
|
-
Ve += (f.r = fe = s[b]) *
|
3177
|
+
for (var or = 0; or < h; or++)
|
3178
|
+
f.r = fe, f.g = xe, f.b = C, f.a = q, f = f.next;
|
3179
|
+
for (var Or = t, Hr = 0, Wr = 0, Yr = 0, Xr = 0, Tr = 1; Tr <= a; Tr++) {
|
3180
|
+
b = Or + ge << 2;
|
3181
|
+
var Sr = h - Tr;
|
3182
|
+
Ve += (f.r = fe = s[b]) * Sr, Oe += (f.g = xe = s[b + 1]) * Sr, Te += (f.b = C = s[b + 2]) * Sr, We += (f.a = q = s[b + 3]) * Sr, Xr += fe, Hr += xe, Wr += C, Yr += q, f = f.next, Tr < l && (Or += t);
|
3183
3183
|
}
|
3184
|
-
b =
|
3184
|
+
b = ge, p = v, y = g;
|
3185
3185
|
for (var Kr = 0; Kr < i; Kr++) {
|
3186
3186
|
var ce = b << 2;
|
3187
|
-
s[ce + 3] = q = We * x >>> S, q > 0 ? (q = 255 / q, s[ce] = (Ve * x >>> S) * q, s[ce + 1] = (
|
3187
|
+
s[ce + 3] = q = We * x >>> S, q > 0 ? (q = 255 / q, s[ce] = (Ve * x >>> S) * q, s[ce + 1] = (Oe * x >>> S) * q, s[ce + 2] = (Te * x >>> S) * q) : s[ce] = s[ce + 1] = s[ce + 2] = 0, Ve -= G, Oe -= $, Te -= W, We -= _e, G -= p.r, $ -= p.g, W -= p.b, _e -= p.a, ce = ge + ((ce = Kr + h) < l ? ce : l) * t << 2, Ve += Xr += p.r = s[ce], Oe += Hr += p.g = s[ce + 1], Te += Wr += p.b = s[ce + 2], We += Yr += p.a = s[ce + 3], p = p.next, G += fe = y.r, $ += xe = y.g, W += C = y.b, _e += q = y.a, Xr -= fe, Hr -= xe, Wr -= C, Yr -= q, y = y.next, b += t;
|
3188
3188
|
}
|
3189
3189
|
}
|
3190
3190
|
return n;
|
@@ -3209,7 +3209,7 @@ function Ef() {
|
|
3209
3209
|
return new OffscreenCanvas(r, t);
|
3210
3210
|
},
|
3211
3211
|
createImage(r) {
|
3212
|
-
return
|
3212
|
+
return je(function* () {
|
3213
3213
|
var t = yield fetch(r), i = yield t.blob(), a = yield createImageBitmap(i);
|
3214
3214
|
return a;
|
3215
3215
|
})();
|
@@ -3238,7 +3238,7 @@ var Lc = /* @__PURE__ */ Object.freeze({
|
|
3238
3238
|
offscreen: Ef,
|
3239
3239
|
node: Rf
|
3240
3240
|
});
|
3241
|
-
function
|
3241
|
+
function nr(n) {
|
3242
3242
|
return n.replace(/(?!\u3000)\s+/gm, " ");
|
3243
3243
|
}
|
3244
3244
|
function Cf(n) {
|
@@ -3247,7 +3247,7 @@ function Cf(n) {
|
|
3247
3247
|
function wf(n) {
|
3248
3248
|
return n.replace(/[\n \t]+$/, "");
|
3249
3249
|
}
|
3250
|
-
function
|
3250
|
+
function de(n) {
|
3251
3251
|
var e = (n || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
3252
3252
|
return e.map(parseFloat);
|
3253
3253
|
}
|
@@ -3274,14 +3274,14 @@ function kf(n) {
|
|
3274
3274
|
var e = [0, 0, 0], r = n.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), t = 0;
|
3275
3275
|
return [r, t] = Ye(r, Nf), e[1] += t, [r, t] = Ye(r, _f), e[0] += t, [r, t] = Ye(r, Mf), e[1] += t, [r, t] = Ye(r, qf), e[2] += t, [r, t] = Ye(r, Df), e[1] += t, [r, t] = Ye(r, Vf), e[1] += t, r = r.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [r, t] = Ye(r, Lf), e[2] += t, e.join("");
|
3276
3276
|
}
|
3277
|
-
var
|
3278
|
-
function
|
3277
|
+
var tr = 1e-8;
|
3278
|
+
function ju(n) {
|
3279
3279
|
return Math.sqrt(Math.pow(n[0], 2) + Math.pow(n[1], 2));
|
3280
3280
|
}
|
3281
3281
|
function La(n, e) {
|
3282
|
-
return (n[0] * e[0] + n[1] * e[1]) / (
|
3282
|
+
return (n[0] * e[0] + n[1] * e[1]) / (ju(n) * ju(e));
|
3283
3283
|
}
|
3284
|
-
function
|
3284
|
+
function Bu(n, e) {
|
3285
3285
|
return (n[0] * e[1] < n[1] * e[0] ? -1 : 1) * Math.acos(La(n, e));
|
3286
3286
|
}
|
3287
3287
|
function Fu(n) {
|
@@ -3317,7 +3317,7 @@ class D {
|
|
3317
3317
|
document: r,
|
3318
3318
|
name: t
|
3319
3319
|
} = this;
|
3320
|
-
return
|
3320
|
+
return nr(this.getString()).trim().split(e).map((i) => new D(r, t, i));
|
3321
3321
|
}
|
3322
3322
|
hasValue(e) {
|
3323
3323
|
var {
|
@@ -3485,7 +3485,7 @@ D.textBaselineMapping = {
|
|
3485
3485
|
hanging: "hanging",
|
3486
3486
|
mathematical: "alphabetic"
|
3487
3487
|
};
|
3488
|
-
class
|
3488
|
+
class jf {
|
3489
3489
|
constructor() {
|
3490
3490
|
this.viewPorts = [];
|
3491
3491
|
}
|
@@ -3522,15 +3522,15 @@ class J {
|
|
3522
3522
|
this.x = e, this.y = r;
|
3523
3523
|
}
|
3524
3524
|
static parse(e) {
|
3525
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [t = r, i = r] =
|
3525
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [t = r, i = r] = de(e);
|
3526
3526
|
return new J(t, i);
|
3527
3527
|
}
|
3528
3528
|
static parseScale(e) {
|
3529
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [t = r, i = t] =
|
3529
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [t = r, i = t] = de(e);
|
3530
3530
|
return new J(t, i);
|
3531
3531
|
}
|
3532
3532
|
static parsePath(e) {
|
3533
|
-
for (var r =
|
3533
|
+
for (var r = de(e), t = r.length, i = [], a = 0; a < t; a += 2)
|
3534
3534
|
i.push(new J(r[a], r[a + 1]));
|
3535
3535
|
return i;
|
3536
3536
|
}
|
@@ -3545,7 +3545,7 @@ class J {
|
|
3545
3545
|
this.x = i, this.y = a;
|
3546
3546
|
}
|
3547
3547
|
}
|
3548
|
-
class
|
3548
|
+
class Bf {
|
3549
3549
|
constructor(e) {
|
3550
3550
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
3551
3551
|
}
|
@@ -3662,7 +3662,7 @@ class Ur {
|
|
3662
3662
|
fetch: r = ql,
|
3663
3663
|
window: t = Ml
|
3664
3664
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
3665
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
3665
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new jf(), this.mouse = new Bf(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = t, this.fetch = r;
|
3666
3666
|
}
|
3667
3667
|
wait(e) {
|
3668
3668
|
this.waits.push(e);
|
@@ -3695,23 +3695,23 @@ class Ur {
|
|
3695
3695
|
clip: f = !1,
|
3696
3696
|
clipX: g = 0,
|
3697
3697
|
clipY: d = 0
|
3698
|
-
} = e, p =
|
3699
|
-
x === "meet" && (V *=
|
3698
|
+
} = e, p = nr(i).replace(/^defer\s/, ""), [y, m] = p.split(" "), b = y || "xMidYMid", x = m || "meet", S = a / s, E = o / u, O = Math.min(S, E), _ = Math.max(S, E), V = s, P = u;
|
3699
|
+
x === "meet" && (V *= O, P *= O), x === "slice" && (V *= _, P *= _);
|
3700
3700
|
var M = new D(r, "refX", c), w = new D(r, "refY", v), k = M.hasValue() && w.hasValue();
|
3701
|
-
if (k && t.translate(-
|
3702
|
-
var R =
|
3701
|
+
if (k && t.translate(-O * M.getPixels("x"), -O * w.getPixels("y")), f) {
|
3702
|
+
var R = O * g, A = O * d;
|
3703
3703
|
t.beginPath(), t.moveTo(R, A), t.lineTo(a, A), t.lineTo(a, o), t.lineTo(R, o), t.closePath(), t.clip();
|
3704
3704
|
}
|
3705
3705
|
if (!k) {
|
3706
|
-
var U = x === "meet" &&
|
3707
|
-
b.startsWith("xMid") && (U || I) && t.translate(a / 2 - V / 2, 0), b.endsWith("YMid") && (
|
3706
|
+
var U = x === "meet" && O === E, I = x === "slice" && _ === E, j = x === "meet" && O === S, N = x === "slice" && _ === S;
|
3707
|
+
b.startsWith("xMid") && (U || I) && t.translate(a / 2 - V / 2, 0), b.endsWith("YMid") && (j || N) && t.translate(0, o / 2 - P / 2), b.startsWith("xMax") && (U || I) && t.translate(a - V, 0), b.endsWith("YMax") && (j || N) && t.translate(0, o - P);
|
3708
3708
|
}
|
3709
3709
|
switch (!0) {
|
3710
3710
|
case b === "none":
|
3711
3711
|
t.scale(S, E);
|
3712
3712
|
break;
|
3713
3713
|
case x === "meet":
|
3714
|
-
t.scale(
|
3714
|
+
t.scale(O, O);
|
3715
3715
|
break;
|
3716
3716
|
case x === "slice":
|
3717
3717
|
t.scale(_, _);
|
@@ -3770,7 +3770,7 @@ class Ur {
|
|
3770
3770
|
!r && (v || typeof i != "number" && typeof a != "number") && (g.hasValue() && (f.width = g.getPixels("x"), f.style && (f.style.width = "".concat(f.width, "px"))), d.hasValue() && (f.height = d.getPixels("y"), f.style && (f.style.height = "".concat(f.height, "px"))));
|
3771
3771
|
var p = f.clientWidth || f.width, y = f.clientHeight || f.height;
|
3772
3772
|
if (r && g.hasValue() && d.hasValue() && (p = g.getPixels("x"), y = d.getPixels("y")), h.setCurrent(p, y), typeof s == "number" && e.getAttribute("x", !0).setValue(s), typeof o == "number" && e.getAttribute("y", !0).setValue(o), typeof i == "number" || typeof a == "number") {
|
3773
|
-
var m =
|
3773
|
+
var m = de(e.getAttribute("viewBox").getString()), b = 0, x = 0;
|
3774
3774
|
if (typeof i == "number") {
|
3775
3775
|
var S = e.getStyle("width");
|
3776
3776
|
S.hasValue() ? b = S.getPixels("x") / i : isNaN(m[2]) || (b = m[2] / i);
|
@@ -3780,8 +3780,8 @@ class Ur {
|
|
3780
3780
|
E.hasValue() ? x = E.getPixels("y") / a : isNaN(m[3]) || (x = m[3] / a);
|
3781
3781
|
}
|
3782
3782
|
b || (b = x), x || (x = b), e.getAttribute("width", !0).setValue(i), e.getAttribute("height", !0).setValue(a);
|
3783
|
-
var
|
3784
|
-
|
3783
|
+
var O = e.getStyle("transform", !0, !0);
|
3784
|
+
O.setValue("".concat(O.getString(), " scale(").concat(1 / b, ", ").concat(1 / x, ")"));
|
3785
3785
|
}
|
3786
3786
|
t || c.clearRect(0, 0, p, y), e.render(c), v && (this.isFirstRender = !1);
|
3787
3787
|
}
|
@@ -3801,7 +3801,7 @@ class _a {
|
|
3801
3801
|
}
|
3802
3802
|
parse(e) {
|
3803
3803
|
var r = this;
|
3804
|
-
return
|
3804
|
+
return je(function* () {
|
3805
3805
|
return e.startsWith("<") ? r.parseFromString(e) : r.load(e);
|
3806
3806
|
})();
|
3807
3807
|
}
|
@@ -3821,7 +3821,7 @@ class _a {
|
|
3821
3821
|
}
|
3822
3822
|
load(e) {
|
3823
3823
|
var r = this;
|
3824
|
-
return
|
3824
|
+
return je(function* () {
|
3825
3825
|
var t = yield r.fetch(e), i = yield t.text();
|
3826
3826
|
return r.parseFromString(i);
|
3827
3827
|
})();
|
@@ -3856,7 +3856,7 @@ class Gf {
|
|
3856
3856
|
class $f {
|
3857
3857
|
constructor(e, r, t) {
|
3858
3858
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
3859
|
-
var i =
|
3859
|
+
var i = de(r);
|
3860
3860
|
this.angle = new D(e, "angle", i[0]), this.originX = t[0], this.originY = t[1], this.cx = i[1] || 0, this.cy = i[2] || 0;
|
3861
3861
|
}
|
3862
3862
|
apply(e) {
|
@@ -3908,7 +3908,7 @@ class zf {
|
|
3908
3908
|
constructor(e, r, t) {
|
3909
3909
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
3910
3910
|
var i = J.parseScale(r);
|
3911
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
3911
|
+
(i.x === 0 || i.y === 0) && (i.x = tr, i.y = tr), this.scale = i, this.originX = t[0], this.originY = t[1];
|
3912
3912
|
}
|
3913
3913
|
apply(e) {
|
3914
3914
|
var {
|
@@ -3942,7 +3942,7 @@ class zf {
|
|
3942
3942
|
}
|
3943
3943
|
class Dl {
|
3944
3944
|
constructor(e, r, t) {
|
3945
|
-
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix =
|
3945
|
+
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = de(r), this.originX = t[0], this.originY = t[1];
|
3946
3946
|
}
|
3947
3947
|
apply(e) {
|
3948
3948
|
var {
|
@@ -3980,7 +3980,7 @@ class Wf extends Vl {
|
|
3980
3980
|
}
|
3981
3981
|
}
|
3982
3982
|
function Yf(n) {
|
3983
|
-
return
|
3983
|
+
return nr(n).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
3984
3984
|
}
|
3985
3985
|
function Xf(n) {
|
3986
3986
|
var [e, r] = n.split("(");
|
@@ -4032,7 +4032,7 @@ Qe.transformTypes = {
|
|
4032
4032
|
class K {
|
4033
4033
|
constructor(e, r) {
|
4034
4034
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
4035
|
-
if (this.document = e, this.node = r, this.captureTextNodes = t, this.attributes =
|
4035
|
+
if (this.document = e, this.node = r, this.captureTextNodes = t, this.attributes = /* @__PURE__ */ Object.create(null), this.styles = /* @__PURE__ */ Object.create(null), this.stylesSpecificity = /* @__PURE__ */ Object.create(null), this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!r || r.nodeType !== 1)) {
|
4036
4036
|
if (Array.from(r.attributes).forEach((o) => {
|
4037
4037
|
var u = Af(o.nodeName);
|
4038
4038
|
this.attributes[u] = new D(e, u, o.value);
|
@@ -4227,7 +4227,7 @@ class oe {
|
|
4227
4227
|
this.fontFamily = a || o.fontFamily, this.fontSize = i || o.fontSize, this.fontStyle = e || o.fontStyle, this.fontWeight = t || o.fontWeight, this.fontVariant = r || o.fontVariant;
|
4228
4228
|
}
|
4229
4229
|
static parse() {
|
4230
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = arguments.length > 1 ? arguments[1] : void 0, t = "", i = "", a = "", s = "", o = "", u =
|
4230
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = arguments.length > 1 ? arguments[1] : void 0, t = "", i = "", a = "", s = "", o = "", u = nr(e).trim().split(" "), l = {
|
4231
4231
|
fontSize: !1,
|
4232
4232
|
fontStyle: !1,
|
4233
4233
|
fontWeight: !1,
|
@@ -4341,7 +4341,7 @@ class Pe {
|
|
4341
4341
|
return t <= e && e <= a && i <= r && r <= s;
|
4342
4342
|
}
|
4343
4343
|
}
|
4344
|
-
class F extends
|
4344
|
+
class F extends T {
|
4345
4345
|
constructor(e) {
|
4346
4346
|
super(e.replace(/([+\-.])\s+/gm, "$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g, "")), this.control = null, this.start = null, this.current = null, this.command = null, this.commands = this.commands, this.i = -1, this.previousCommand = null, this.points = [], this.angles = [];
|
4347
4347
|
}
|
@@ -4373,7 +4373,7 @@ class F extends O {
|
|
4373
4373
|
}
|
4374
4374
|
getReflectedControlPoint() {
|
4375
4375
|
var e = this.previousCommand.type;
|
4376
|
-
if (e !==
|
4376
|
+
if (e !== T.CURVE_TO && e !== T.SMOOTH_CURVE_TO && e !== T.QUAD_TO && e !== T.SMOOTH_QUAD_TO)
|
4377
4377
|
return this.current;
|
4378
4378
|
var {
|
4379
4379
|
current: {
|
@@ -4424,7 +4424,7 @@ class F extends O {
|
|
4424
4424
|
return e;
|
4425
4425
|
}
|
4426
4426
|
}
|
4427
|
-
class
|
4427
|
+
class rr extends K {
|
4428
4428
|
constructor() {
|
4429
4429
|
super(...arguments), this.modifiedEmSizeStack = !1;
|
4430
4430
|
}
|
@@ -4466,19 +4466,19 @@ class tr extends K {
|
|
4466
4466
|
var f = this.getStyle("stroke-width");
|
4467
4467
|
if (f.hasValue()) {
|
4468
4468
|
var g = f.getPixels();
|
4469
|
-
e.lineWidth = g ||
|
4469
|
+
e.lineWidth = g || tr;
|
4470
4470
|
}
|
4471
4471
|
var d = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), m = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
4472
4472
|
if (d.hasValue() && (e.lineCap = d.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), m.hasValue() && m.getString() !== "none") {
|
4473
|
-
var x =
|
4473
|
+
var x = de(m.getString());
|
4474
4474
|
typeof e.setLineDash < "u" ? e.setLineDash(x) : typeof e.webkitLineDash < "u" ? e.webkitLineDash = x : typeof e.mozDash < "u" && !(x.length === 1 && x[0] === 0) && (e.mozDash = x);
|
4475
4475
|
var S = b.getPixels();
|
4476
4476
|
typeof e.lineDashOffset < "u" ? e.lineDashOffset = S : typeof e.webkitLineDashOffset < "u" ? e.webkitLineDashOffset = S : typeof e.mozDashOffset < "u" && (e.mozDashOffset = S);
|
4477
4477
|
}
|
4478
4478
|
}
|
4479
4479
|
if (this.modifiedEmSizeStack = !1, typeof e.font < "u") {
|
4480
|
-
var E = this.getStyle("font"),
|
4481
|
-
|
4480
|
+
var E = this.getStyle("font"), O = this.getStyle("font-style"), _ = this.getStyle("font-variant"), V = this.getStyle("font-weight"), P = this.getStyle("font-size"), M = this.getStyle("font-family"), w = new oe(O.getString(), _.getString(), V.getString(), P.hasValue() ? "".concat(P.getPixels(!0), "px") : "", M.getString(), oe.parse(E.getString(), e.font));
|
4481
|
+
O.setValue(w.fontStyle), _.setValue(w.fontVariant), V.setValue(w.fontWeight), P.setValue(w.fontSize), M.setValue(w.fontFamily), e.font = w.toString(), P.isPixels() && (this.document.emSize = P.getPixels(), this.modifiedEmSizeStack = !0);
|
4482
4482
|
}
|
4483
4483
|
r || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
4484
4484
|
}
|
@@ -4486,7 +4486,7 @@ class tr extends K {
|
|
4486
4486
|
super.clearContext(e), this.modifiedEmSizeStack && this.document.popEmSize();
|
4487
4487
|
}
|
4488
4488
|
}
|
4489
|
-
class Y extends
|
4489
|
+
class Y extends rr {
|
4490
4490
|
constructor(e, r, t) {
|
4491
4491
|
super(e, r, t), this.type = "path", this.pathParser = null, this.pathParser = new F(this.getAttribute("d").getString());
|
4492
4492
|
}
|
@@ -4742,7 +4742,7 @@ class Y extends tr {
|
|
4742
4742
|
v > 1 && (i *= Math.sqrt(v), a *= Math.sqrt(v));
|
4743
4743
|
var f = (o === u ? -1 : 1) * Math.sqrt((Math.pow(i, 2) * Math.pow(a, 2) - Math.pow(i, 2) * Math.pow(c.y, 2) - Math.pow(a, 2) * Math.pow(c.x, 2)) / (Math.pow(i, 2) * Math.pow(c.y, 2) + Math.pow(a, 2) * Math.pow(c.x, 2)));
|
4744
4744
|
isNaN(f) && (f = 0);
|
4745
|
-
var g = new J(f * i * c.y / a, f * -a * c.x / i), d = new J((r.x + h.x) / 2 + Math.cos(l) * g.x - Math.sin(l) * g.y, (r.y + h.y) / 2 + Math.sin(l) * g.x + Math.cos(l) * g.y), p =
|
4745
|
+
var g = new J(f * i * c.y / a, f * -a * c.x / i), d = new J((r.x + h.x) / 2 + Math.cos(l) * g.x - Math.sin(l) * g.y, (r.y + h.y) / 2 + Math.sin(l) * g.x + Math.cos(l) * g.y), p = Bu([1, 0], [(c.x - g.x) / i, (c.y - g.y) / a]), y = [(c.x - g.x) / i, (c.y - g.y) / a], m = [(-c.x - g.x) / i, (-c.y - g.y) / a], b = Bu(y, m);
|
4746
4746
|
return La(y, m) <= -1 && (b = Math.PI), La(y, m) >= 1 && (b = 0), {
|
4747
4747
|
currentPoint: h,
|
4748
4748
|
rX: i,
|
@@ -4784,7 +4784,7 @@ class Ll extends Y {
|
|
4784
4784
|
super(e, r, t), this.type = "glyph", this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber(), this.unicode = this.getAttribute("unicode").getString(), this.arabicForm = this.getAttribute("arabic-form").getString();
|
4785
4785
|
}
|
4786
4786
|
}
|
4787
|
-
class ze extends
|
4787
|
+
class ze extends rr {
|
4788
4788
|
constructor(e, r, t) {
|
4789
4789
|
super(e, r, new.target === ze ? !0 : t), this.type = "text", this.x = 0, this.y = 0, this.measureCache = -1;
|
4790
4790
|
}
|
@@ -4834,7 +4834,7 @@ class ze extends tr {
|
|
4834
4834
|
return "";
|
4835
4835
|
}
|
4836
4836
|
getTextFromNode(e) {
|
4837
|
-
var r = e || this.node, t = Array.from(r.parentNode.childNodes), i = t.indexOf(r), a = t.length - 1, s =
|
4837
|
+
var r = e || this.node, t = Array.from(r.parentNode.childNodes), i = t.indexOf(r), a = t.length - 1, s = nr(
|
4838
4838
|
// textNode.value
|
4839
4839
|
// || textNode.text
|
4840
4840
|
r.textContent || ""
|
@@ -4862,7 +4862,7 @@ class ze extends tr {
|
|
4862
4862
|
if (a) {
|
4863
4863
|
for (var {
|
4864
4864
|
unitsPerEm: s
|
4865
|
-
} = a.fontFace, o = oe.parse(r.ctx.font), u = t.getStyle("font-size").getNumber(o.fontSize), l = t.getStyle("font-style").getString(o.fontStyle), h = u / s, c = a.isRTL ? i.split("").reverse().join("") : i, v =
|
4865
|
+
} = a.fontFace, o = oe.parse(r.ctx.font), u = t.getStyle("font-size").getNumber(o.fontSize), l = t.getStyle("font-style").getString(o.fontStyle), h = u / s, c = a.isRTL ? i.split("").reverse().join("") : i, v = de(t.getAttribute("dx").getString()), f = c.length, g = 0; g < f; g++) {
|
4866
4866
|
var d = this.getGlyph(a, c, g);
|
4867
4867
|
e.translate(this.x, this.y), e.scale(h, -h);
|
4868
4868
|
var p = e.lineWidth;
|
@@ -4938,7 +4938,7 @@ class ze extends tr {
|
|
4938
4938
|
parent: t
|
4939
4939
|
} = this, i = t.getStyle("font-family").getDefinition();
|
4940
4940
|
if (i) {
|
4941
|
-
for (var a = this.getFontSize(), s = i.isRTL ? r.split("").reverse().join("") : r, o =
|
4941
|
+
for (var a = this.getFontSize(), s = i.isRTL ? r.split("").reverse().join("") : r, o = de(t.getAttribute("dx").getString()), u = s.length, l = 0, h = 0; h < u; h++) {
|
4942
4942
|
var c = this.getGlyph(i, s, h);
|
4943
4943
|
l += (c.horizAdvX || i.horizAdvX) * a / i.fontFace.unitsPerEm, typeof o[h] < "u" && !isNaN(o[h]) && (l += o[h]);
|
4944
4944
|
}
|
@@ -4981,7 +4981,7 @@ class rc extends Gr {
|
|
4981
4981
|
super(...arguments), this.type = "textNode";
|
4982
4982
|
}
|
4983
4983
|
}
|
4984
|
-
class
|
4984
|
+
class mr extends rr {
|
4985
4985
|
constructor() {
|
4986
4986
|
super(...arguments), this.type = "svg", this.root = !1;
|
4987
4987
|
}
|
@@ -5003,7 +5003,7 @@ class br extends tr {
|
|
5003
5003
|
height: l
|
5004
5004
|
} = i.viewPort;
|
5005
5005
|
this.getStyle("width").hasValue() || this.getStyle("width", !0).setValue("100%"), this.getStyle("height").hasValue() || this.getStyle("height", !0).setValue("100%"), this.getStyle("color").hasValue() || this.getStyle("color", !0).setValue("black");
|
5006
|
-
var h = this.getAttribute("refX"), c = this.getAttribute("refY"), v = this.getAttribute("viewBox"), f = v.hasValue() ?
|
5006
|
+
var h = this.getAttribute("refX"), c = this.getAttribute("refY"), v = this.getAttribute("viewBox"), f = v.hasValue() ? de(v.getString()) : null, g = !this.root && this.getStyle("overflow").getValue("hidden") !== "visible", d = 0, p = 0, y = 0, m = 0;
|
5007
5007
|
f && (d = f[0], p = f[1]), this.root || (u = this.getStyle("width").getPixels("x"), l = this.getStyle("height").getPixels("y"), this.type === "marker" && (y = d, m = p, d = 0, p = 0)), i.viewPort.setCurrent(u, l), this.node && (!this.parent || ((r = this.node.parentNode) === null || r === void 0 ? void 0 : r.nodeName) === "foreignObject") && this.getStyle("transform", !1, !0).hasValue() && !this.getStyle("transform-origin", !1, !0).hasValue() && this.getStyle("transform-origin", !0, !0).setValue("50% 50%"), super.setContext(e), e.translate(this.getAttribute("x").getPixels("x"), this.getAttribute("y").getPixels("y")), f && (u = f[2], l = f[3]), t.setViewBox({
|
5008
5008
|
ctx: e,
|
5009
5009
|
aspectRatio: this.getAttribute("preserveAspectRatio").getString(),
|
@@ -5106,7 +5106,7 @@ class ac extends Y {
|
|
5106
5106
|
return [[e, t], [r, t]];
|
5107
5107
|
}
|
5108
5108
|
}
|
5109
|
-
class
|
5109
|
+
class jl extends Y {
|
5110
5110
|
constructor(e, r, t) {
|
5111
5111
|
super(e, r, t), this.type = "polyline", this.points = [], this.points = J.parsePath(this.getAttribute("points").getString());
|
5112
5112
|
}
|
@@ -5134,7 +5134,7 @@ class Bl extends Y {
|
|
5134
5134
|
}), t.length > 0 && t.push([e[e.length - 1], t[t.length - 1][1]]), t;
|
5135
5135
|
}
|
5136
5136
|
}
|
5137
|
-
class nc extends
|
5137
|
+
class nc extends jl {
|
5138
5138
|
constructor() {
|
5139
5139
|
super(...arguments), this.type = "polygon";
|
5140
5140
|
}
|
@@ -5151,7 +5151,7 @@ class sc extends K {
|
|
5151
5151
|
super(...arguments), this.type = "pattern";
|
5152
5152
|
}
|
5153
5153
|
createPattern(e, r, t) {
|
5154
|
-
var i = this.getStyle("width").getPixels("x", !0), a = this.getStyle("height").getPixels("y", !0), s = new
|
5154
|
+
var i = this.getStyle("width").getPixels("x", !0), a = this.getStyle("height").getPixels("y", !0), s = new mr(this.document, null);
|
5155
5155
|
s.attributes.viewBox = new D(this.document, "viewBox", this.getAttribute("viewBox").getValue()), s.attributes.width = new D(this.document, "width", "".concat(i, "px")), s.attributes.height = new D(this.document, "height", "".concat(a, "px")), s.attributes.transform = new D(this.document, "transform", this.getAttribute("patternTransform").getValue()), s.children = this.children;
|
5156
5156
|
var o = this.document.createCanvas(i, a), u = o.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
5157
5157
|
l.hasValue() && h.hasValue() && u.translate(l.getPixels("x", !0), h.getPixels("y", !0)), t.hasValue() ? this.styles["fill-opacity"] = t : Reflect.deleteProperty(this.styles, "fill-opacity");
|
@@ -5173,7 +5173,7 @@ class oc extends K {
|
|
5173
5173
|
y: a
|
5174
5174
|
} = r, s = this.getAttribute("orient").getString("auto"), o = this.getAttribute("markerUnits").getString("strokeWidth");
|
5175
5175
|
e.translate(i, a), s === "auto" && e.rotate(t), o === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
5176
|
-
var u = new
|
5176
|
+
var u = new mr(this.document, null);
|
5177
5177
|
u.type = this.type, u.attributes.viewBox = new D(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new D(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new D(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new D(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new D(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new D(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new D(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new D(this.document, "stroke", this.getAttribute("stroke").getValue("none")), u.children = this.children, u.render(e), e.restore(), o === "strokeWidth" && e.scale(1 / e.lineWidth, 1 / e.lineWidth), s === "auto" && e.rotate(-t), e.translate(-i, -a);
|
5178
5178
|
}
|
5179
5179
|
}
|
@@ -5185,7 +5185,7 @@ class uc extends K {
|
|
5185
5185
|
render() {
|
5186
5186
|
}
|
5187
5187
|
}
|
5188
|
-
class sn extends
|
5188
|
+
class sn extends rr {
|
5189
5189
|
constructor() {
|
5190
5190
|
super(...arguments), this.type = "g";
|
5191
5191
|
}
|
@@ -5196,7 +5196,7 @@ class sn extends tr {
|
|
5196
5196
|
}), r;
|
5197
5197
|
}
|
5198
5198
|
}
|
5199
|
-
class
|
5199
|
+
class Bl extends K {
|
5200
5200
|
constructor(e, r, t) {
|
5201
5201
|
super(e, r, t), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
5202
5202
|
var {
|
@@ -5230,7 +5230,7 @@ class jl extends K {
|
|
5230
5230
|
c.attributes.x = new D(o, "x", -u / 3), c.attributes.y = new D(o, "y", -u / 3), c.attributes.width = new D(o, "width", u), c.attributes.height = new D(o, "height", u);
|
5231
5231
|
var v = new sn(o, null);
|
5232
5232
|
v.attributes.transform = new D(o, "transform", this.getAttribute("gradientTransform").getValue()), v.children = [c];
|
5233
|
-
var f = new
|
5233
|
+
var f = new mr(o, null);
|
5234
5234
|
f.attributes.x = new D(o, "x", 0), f.attributes.y = new D(o, "y", 0), f.attributes.width = new D(o, "width", h.width), f.attributes.height = new D(o, "height", h.height), f.children = [v];
|
5235
5235
|
var g = o.createCanvas(h.width, h.height), d = g.getContext("2d");
|
5236
5236
|
return d.fillStyle = s, f.render(d), d.createPattern(g, "no-repeat");
|
@@ -5250,7 +5250,7 @@ class jl extends K {
|
|
5250
5250
|
return r;
|
5251
5251
|
}
|
5252
5252
|
}
|
5253
|
-
class lc extends
|
5253
|
+
class lc extends Bl {
|
5254
5254
|
constructor(e, r, t) {
|
5255
5255
|
super(e, r, t), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
5256
5256
|
}
|
@@ -5263,7 +5263,7 @@ class lc extends jl {
|
|
5263
5263
|
return a === o && s === u ? null : e.createLinearGradient(a, s, o, u);
|
5264
5264
|
}
|
5265
5265
|
}
|
5266
|
-
class hc extends
|
5266
|
+
class hc extends Bl {
|
5267
5267
|
constructor(e, r, t) {
|
5268
5268
|
super(e, r, t), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
5269
5269
|
}
|
@@ -5372,7 +5372,7 @@ class vc extends on {
|
|
5372
5372
|
progress: e,
|
5373
5373
|
from: r,
|
5374
5374
|
to: t
|
5375
|
-
} = this.getProgress(), i =
|
5375
|
+
} = this.getProgress(), i = de(r.getString()), a = de(t.getString()), s = i.map((o, u) => {
|
5376
5376
|
var l = a[u];
|
5377
5377
|
return o + (l - o) * e;
|
5378
5378
|
}).join(" ");
|
@@ -5381,7 +5381,7 @@ class vc extends on {
|
|
5381
5381
|
}
|
5382
5382
|
class gc extends K {
|
5383
5383
|
constructor(e, r, t) {
|
5384
|
-
super(e, r, t), this.type = "font", this.glyphs =
|
5384
|
+
super(e, r, t), this.type = "font", this.glyphs = /* @__PURE__ */ Object.create(null), this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
5385
5385
|
var {
|
5386
5386
|
definitions: i
|
5387
5387
|
} = e, {
|
@@ -5400,7 +5400,7 @@ class gc extends K {
|
|
5400
5400
|
break;
|
5401
5401
|
case "glyph": {
|
5402
5402
|
var u = s;
|
5403
|
-
u.arabicForm ? (this.isRTL = !0, this.isArabic = !0, typeof this.glyphs[u.unicode] > "u" && (this.glyphs[u.unicode] =
|
5403
|
+
u.arabicForm ? (this.isRTL = !0, this.isArabic = !0, typeof this.glyphs[u.unicode] > "u" && (this.glyphs[u.unicode] = /* @__PURE__ */ Object.create(null)), this.glyphs[u.unicode][u.arabicForm] = u) : this.glyphs[u.unicode] = u;
|
5404
5404
|
break;
|
5405
5405
|
}
|
5406
5406
|
}
|
@@ -5480,7 +5480,7 @@ function Yu(n, e) {
|
|
5480
5480
|
}
|
5481
5481
|
return r;
|
5482
5482
|
}
|
5483
|
-
function
|
5483
|
+
function Er(n) {
|
5484
5484
|
for (var e = 1; e < arguments.length; e++) {
|
5485
5485
|
var r = arguments[e] != null ? arguments[e] : {};
|
5486
5486
|
e % 2 ? Yu(Object(r), !0).forEach(function(t) {
|
@@ -5561,10 +5561,10 @@ class bc extends ze {
|
|
5561
5561
|
}, p = f && g ? Math.atan2(g.y - f.y, g.x - f.x) : 0;
|
5562
5562
|
if (o) {
|
5563
5563
|
var y = Math.cos(Math.PI / 2 + p) * o, m = Math.cos(-p) * o;
|
5564
|
-
d.p0 =
|
5564
|
+
d.p0 = Er(Er({}, f), {}, {
|
5565
5565
|
x: f.x + y,
|
5566
5566
|
y: f.y + m
|
5567
|
-
}), d.p1 =
|
5567
|
+
}), d.p1 = Er(Er({}, g), {}, {
|
5568
5568
|
x: g.x + y,
|
5569
5569
|
y: g.y + m
|
5570
5570
|
});
|
@@ -5601,15 +5601,15 @@ class bc extends ze {
|
|
5601
5601
|
(o === "middle" || o === "center") && (b = -p / 2), (o === "end" || o === "right") && (b = -p), b += m, t.forEach((x, S) => {
|
5602
5602
|
var {
|
5603
5603
|
offset: E,
|
5604
|
-
segment:
|
5604
|
+
segment: O,
|
5605
5605
|
rotation: _
|
5606
5606
|
} = this.findSegmentToFitChar(e, o, p, y, i, b, s, x, S);
|
5607
|
-
b = E, !(!
|
5607
|
+
b = E, !(!O.p0 || !O.p1) && this.glyphInfo.push({
|
5608
5608
|
// transposeX: midpoint.x,
|
5609
5609
|
// transposeY: midpoint.y,
|
5610
5610
|
text: t[S],
|
5611
|
-
p0:
|
5612
|
-
p1:
|
5611
|
+
p0: O.p0,
|
5612
|
+
p1: O.p1,
|
5613
5613
|
rotation: _
|
5614
5614
|
});
|
5615
5615
|
});
|
@@ -5771,7 +5771,7 @@ class bc extends ze {
|
|
5771
5771
|
return 0;
|
5772
5772
|
}
|
5773
5773
|
getPointOnLine(e, r, t, i, a) {
|
5774
|
-
var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : r, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : t, u = (a - t) / (i - r +
|
5774
|
+
var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : r, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : t, u = (a - t) / (i - r + tr), l = Math.sqrt(e * e / (1 + u * u));
|
5775
5775
|
i < r && (l *= -1);
|
5776
5776
|
var h = u * l, c = null;
|
5777
5777
|
if (i === r)
|
@@ -5779,14 +5779,14 @@ class bc extends ze {
|
|
5779
5779
|
x: s,
|
5780
5780
|
y: o + h
|
5781
5781
|
};
|
5782
|
-
else if ((o - t) / (s - r +
|
5782
|
+
else if ((o - t) / (s - r + tr) === u)
|
5783
5783
|
c = {
|
5784
5784
|
x: s + l,
|
5785
5785
|
y: o + h
|
5786
5786
|
};
|
5787
5787
|
else {
|
5788
5788
|
var v = 0, f = 0, g = this.getLineLength(r, t, i, a);
|
5789
|
-
if (g <
|
5789
|
+
if (g < tr)
|
5790
5790
|
return null;
|
5791
5791
|
var d = (s - r) * (i - r) + (o - t) * (a - t);
|
5792
5792
|
d /= g * g, v = r + d * (i - r), f = t + d * (a - t);
|
@@ -5892,7 +5892,7 @@ class bc extends ze {
|
|
5892
5892
|
}
|
5893
5893
|
}
|
5894
5894
|
var xc = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
5895
|
-
class
|
5895
|
+
class Oc extends rr {
|
5896
5896
|
constructor(e, r, t) {
|
5897
5897
|
super(e, r, t), this.type = "image", this.loaded = !1;
|
5898
5898
|
var i = this.getHrefAttribute().getString();
|
@@ -5903,7 +5903,7 @@ class Tc extends tr {
|
|
5903
5903
|
}
|
5904
5904
|
loadImage(e) {
|
5905
5905
|
var r = this;
|
5906
|
-
return
|
5906
|
+
return je(function* () {
|
5907
5907
|
try {
|
5908
5908
|
var t = yield r.document.createImage(e);
|
5909
5909
|
r.image = t;
|
@@ -5915,7 +5915,7 @@ class Tc extends tr {
|
|
5915
5915
|
}
|
5916
5916
|
loadSvg(e) {
|
5917
5917
|
var r = this;
|
5918
|
-
return
|
5918
|
+
return je(function* () {
|
5919
5919
|
var t = xc.exec(e);
|
5920
5920
|
if (t) {
|
5921
5921
|
var i = t[5];
|
@@ -5968,7 +5968,7 @@ class Tc extends tr {
|
|
5968
5968
|
return new Pe(e, r, e + t, r + i);
|
5969
5969
|
}
|
5970
5970
|
}
|
5971
|
-
class
|
5971
|
+
class Tc extends rr {
|
5972
5972
|
constructor() {
|
5973
5973
|
super(...arguments), this.type = "symbol";
|
5974
5974
|
}
|
@@ -5981,7 +5981,7 @@ class Sc {
|
|
5981
5981
|
}
|
5982
5982
|
load(e, r) {
|
5983
5983
|
var t = this;
|
5984
|
-
return
|
5984
|
+
return je(function* () {
|
5985
5985
|
try {
|
5986
5986
|
var {
|
5987
5987
|
document: i
|
@@ -6000,7 +6000,7 @@ class Sc {
|
|
6000
6000
|
class Fl extends K {
|
6001
6001
|
constructor(e, r, t) {
|
6002
6002
|
super(e, r, t), this.type = "style";
|
6003
|
-
var i =
|
6003
|
+
var i = nr(
|
6004
6004
|
Array.from(r.childNodes).map((s) => s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
6005
6005
|
// remove imports
|
6006
6006
|
), a = i.split("}");
|
@@ -6031,7 +6031,7 @@ class Fl extends K {
|
|
6031
6031
|
}
|
6032
6032
|
}
|
6033
6033
|
Fl.parseExternalUrl = _l;
|
6034
|
-
class Ec extends
|
6034
|
+
class Ec extends rr {
|
6035
6035
|
constructor() {
|
6036
6036
|
super(...arguments), this.type = "use";
|
6037
6037
|
}
|
@@ -6053,7 +6053,7 @@ class Ec extends tr {
|
|
6053
6053
|
} = this;
|
6054
6054
|
if (t) {
|
6055
6055
|
var i = t;
|
6056
|
-
if (t.type === "symbol" && (i = new
|
6056
|
+
if (t.type === "symbol" && (i = new mr(r, null), i.attributes.viewBox = new D(r, "viewBox", t.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new D(r, "preserveAspectRatio", t.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new D(r, "overflow", t.getAttribute("overflow").getString()), i.children = t.children, t.styles.opacity = new D(r, "opacity", this.calculateOpacity())), i.type === "svg") {
|
6057
6057
|
var a = this.getStyle("width", !1, !0), s = this.getStyle("height", !1, !0);
|
6058
6058
|
a.hasValue() && (i.attributes.width = new D(r, "width", a.getString())), s.hasValue() && (i.attributes.height = new D(r, "height", s.getString()));
|
6059
6059
|
}
|
@@ -6078,10 +6078,10 @@ class Ec extends tr {
|
|
6078
6078
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
6079
6079
|
}
|
6080
6080
|
}
|
6081
|
-
function
|
6081
|
+
function Rr(n, e, r, t, i, a) {
|
6082
6082
|
return n[r * t * 4 + e * 4 + a];
|
6083
6083
|
}
|
6084
|
-
function
|
6084
|
+
function Cr(n, e, r, t, i, a, s) {
|
6085
6085
|
n[r * t * 4 + e * 4 + a] = s;
|
6086
6086
|
}
|
6087
6087
|
function ie(n, e, r) {
|
@@ -6094,7 +6094,7 @@ function ke(n, e, r, t) {
|
|
6094
6094
|
class Ul extends K {
|
6095
6095
|
constructor(e, r, t) {
|
6096
6096
|
super(e, r, t), this.type = "feColorMatrix";
|
6097
|
-
var i =
|
6097
|
+
var i = de(this.getAttribute("values").getString());
|
6098
6098
|
switch (this.getAttribute("type").getString("matrix")) {
|
6099
6099
|
// http://www.w3.org/TR/SVG/filters.html#feColorMatrixElement
|
6100
6100
|
case "saturate": {
|
@@ -6119,8 +6119,8 @@ class Ul extends K {
|
|
6119
6119
|
matrix: o
|
6120
6120
|
} = this, u = e.getImageData(0, 0, i, a), l = 0; l < a; l++)
|
6121
6121
|
for (var h = 0; h < i; h++) {
|
6122
|
-
var c =
|
6123
|
-
s && (d = 0, p = 0, y = 0, m *= g / 255),
|
6122
|
+
var c = Rr(u.data, h, l, i, a, 0), v = Rr(u.data, h, l, i, a, 1), f = Rr(u.data, h, l, i, a, 2), g = Rr(u.data, h, l, i, a, 3), d = ie(o, 0, c) + ie(o, 1, v) + ie(o, 2, f) + ie(o, 3, g) + ie(o, 4, 1), p = ie(o, 5, c) + ie(o, 6, v) + ie(o, 7, f) + ie(o, 8, g) + ie(o, 9, 1), y = ie(o, 10, c) + ie(o, 11, v) + ie(o, 12, f) + ie(o, 13, g) + ie(o, 14, 1), m = ie(o, 15, c) + ie(o, 16, v) + ie(o, 17, f) + ie(o, 18, g) + ie(o, 19, 1);
|
6123
|
+
s && (d = 0, p = 0, y = 0, m *= g / 255), Cr(u.data, h, l, i, a, 0, d), Cr(u.data, h, l, i, a, 1, p), Cr(u.data, h, l, i, a, 2, y), Cr(u.data, h, l, i, a, 3, m);
|
6124
6124
|
}
|
6125
6125
|
e.clearRect(0, 0, i, a), e.putImageData(u, 0, 0);
|
6126
6126
|
}
|
@@ -6239,7 +6239,7 @@ class Ac extends K {
|
|
6239
6239
|
document: s,
|
6240
6240
|
blurRadius: o
|
6241
6241
|
} = this, u = s.window ? s.window.document.body : null, l = e.canvas;
|
6242
|
-
l.id = s.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
6242
|
+
l.id = s.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Tf(l, r, t, i, a, o), u && u.removeChild(l);
|
6243
6243
|
}
|
6244
6244
|
}
|
6245
6245
|
class Ic extends K {
|
@@ -6253,12 +6253,12 @@ class Nc extends K {
|
|
6253
6253
|
}
|
6254
6254
|
}
|
6255
6255
|
var _c = {
|
6256
|
-
svg:
|
6256
|
+
svg: mr,
|
6257
6257
|
rect: kl,
|
6258
6258
|
circle: tc,
|
6259
6259
|
ellipse: ic,
|
6260
6260
|
line: ac,
|
6261
|
-
polyline:
|
6261
|
+
polyline: jl,
|
6262
6262
|
polygon: nc,
|
6263
6263
|
path: Y,
|
6264
6264
|
pattern: sc,
|
@@ -6279,9 +6279,9 @@ var _c = {
|
|
6279
6279
|
tref: yc,
|
6280
6280
|
a: mc,
|
6281
6281
|
textPath: bc,
|
6282
|
-
image:
|
6282
|
+
image: Oc,
|
6283
6283
|
g: sn,
|
6284
|
-
symbol:
|
6284
|
+
symbol: Tc,
|
6285
6285
|
style: Fl,
|
6286
6286
|
use: Ec,
|
6287
6287
|
mask: $r,
|
@@ -6324,7 +6324,7 @@ function Dc(n) {
|
|
6324
6324
|
return ka.apply(this, arguments);
|
6325
6325
|
}
|
6326
6326
|
function ka() {
|
6327
|
-
return ka =
|
6327
|
+
return ka = je(function* (n) {
|
6328
6328
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = document.createElement("img");
|
6329
6329
|
return e && (r.crossOrigin = "Anonymous"), new Promise((t, i) => {
|
6330
6330
|
r.onload = () => {
|
@@ -6344,7 +6344,7 @@ class $e {
|
|
6344
6344
|
createImage: a = $e.createImage,
|
6345
6345
|
anonymousCrossOrigin: s
|
6346
6346
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6347
|
-
this.canvg = e, this.definitions =
|
6347
|
+
this.canvg = e, this.definitions = /* @__PURE__ */ Object.create(null), this.styles = /* @__PURE__ */ Object.create(null), this.stylesSpecificity = /* @__PURE__ */ Object.create(null), this.images = [], this.fonts = [], this.emSizeStack = [], this.uniqueId = 0, this.screen = e.screen, this.rootEmSize = r, this.emSize = t, this.createCanvas = i, this.createImage = this.bindCreateImage(a, s), this.screen.wait(this.isImagesLoaded.bind(this)), this.screen.wait(this.isFontsLoaded.bind(this));
|
6348
6348
|
}
|
6349
6349
|
bindCreateImage(e, r) {
|
6350
6350
|
return typeof r == "boolean" ? (t, i) => e(t, typeof i == "boolean" ? i : r) : e;
|
@@ -6426,7 +6426,7 @@ function Xe(n) {
|
|
6426
6426
|
}
|
6427
6427
|
return n;
|
6428
6428
|
}
|
6429
|
-
class
|
6429
|
+
class hr {
|
6430
6430
|
/**
|
6431
6431
|
* Main constructor.
|
6432
6432
|
* @param ctx - Rendering context.
|
@@ -6448,9 +6448,9 @@ class fr {
|
|
6448
6448
|
*/
|
6449
6449
|
static from(e, r) {
|
6450
6450
|
var t = arguments;
|
6451
|
-
return
|
6451
|
+
return je(function* () {
|
6452
6452
|
var i = t.length > 2 && t[2] !== void 0 ? t[2] : {}, a = new _a(i), s = yield a.parse(r);
|
6453
|
-
return new
|
6453
|
+
return new hr(e, s, i);
|
6454
6454
|
})();
|
6455
6455
|
}
|
6456
6456
|
/**
|
@@ -6462,7 +6462,7 @@ class fr {
|
|
6462
6462
|
*/
|
6463
6463
|
static fromString(e, r) {
|
6464
6464
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new _a(t), a = i.parseFromString(r);
|
6465
|
-
return new
|
6465
|
+
return new hr(e, a, t);
|
6466
6466
|
}
|
6467
6467
|
/**
|
6468
6468
|
* Create new Canvg instance with inherited options.
|
@@ -6473,7 +6473,7 @@ class fr {
|
|
6473
6473
|
*/
|
6474
6474
|
fork(e, r) {
|
6475
6475
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
6476
|
-
return
|
6476
|
+
return hr.from(e, r, Xe(Xe({}, this.options), t));
|
6477
6477
|
}
|
6478
6478
|
/**
|
6479
6479
|
* Create new Canvg instance with inherited options.
|
@@ -6484,7 +6484,7 @@ class fr {
|
|
6484
6484
|
*/
|
6485
6485
|
forkString(e, r) {
|
6486
6486
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
6487
|
-
return
|
6487
|
+
return hr.fromString(e, r, Xe(Xe({}, this.options), t));
|
6488
6488
|
}
|
6489
6489
|
/**
|
6490
6490
|
* Document is ready promise.
|
@@ -6506,7 +6506,7 @@ class fr {
|
|
6506
6506
|
*/
|
6507
6507
|
render() {
|
6508
6508
|
var e = arguments, r = this;
|
6509
|
-
return
|
6509
|
+
return je(function* () {
|
6510
6510
|
var t = e.length > 0 && e[0] !== void 0 ? e[0] : {};
|
6511
6511
|
r.start(Xe({
|
6512
6512
|
enableRedraw: !0,
|
@@ -6556,7 +6556,7 @@ export {
|
|
6556
6556
|
Uu as CB2,
|
6557
6557
|
Gu as CB3,
|
6558
6558
|
$u as CB4,
|
6559
|
-
|
6559
|
+
hr as Canvg,
|
6560
6560
|
tc as CircleElement,
|
6561
6561
|
Rc as ClipPathElement,
|
6562
6562
|
uc as DefsElement,
|
@@ -6575,32 +6575,32 @@ export {
|
|
6575
6575
|
dc as FontFaceElement,
|
6576
6576
|
sn as GElement,
|
6577
6577
|
Ll as GlyphElement,
|
6578
|
-
|
6579
|
-
|
6578
|
+
Bl as GradientElement,
|
6579
|
+
Oc as ImageElement,
|
6580
6580
|
ac as LineElement,
|
6581
6581
|
lc as LinearGradientElement,
|
6582
6582
|
oc as MarkerElement,
|
6583
6583
|
$r as MaskElement,
|
6584
6584
|
Dl as Matrix,
|
6585
6585
|
pc as MissingGlyphElement,
|
6586
|
-
|
6587
|
-
|
6586
|
+
Bf as Mouse,
|
6587
|
+
tr as PSEUDO_ZERO,
|
6588
6588
|
_a as Parser,
|
6589
6589
|
Y as PathElement,
|
6590
6590
|
F as PathParser,
|
6591
6591
|
sc as PatternElement,
|
6592
6592
|
J as Point,
|
6593
6593
|
nc as PolygonElement,
|
6594
|
-
|
6594
|
+
jl as PolylineElement,
|
6595
6595
|
D as Property,
|
6596
6596
|
zu as QB1,
|
6597
6597
|
Hu as QB2,
|
6598
6598
|
Wu as QB3,
|
6599
6599
|
hc as RadialGradientElement,
|
6600
6600
|
kl as RectElement,
|
6601
|
-
|
6601
|
+
rr as RenderedElement,
|
6602
6602
|
$f as Rotate,
|
6603
|
-
|
6603
|
+
mr as SVGElement,
|
6604
6604
|
Sc as SVGFontLoader,
|
6605
6605
|
zf as Scale,
|
6606
6606
|
Ur as Screen,
|
@@ -6609,7 +6609,7 @@ export {
|
|
6609
6609
|
Wf as SkewY,
|
6610
6610
|
fc as StopElement,
|
6611
6611
|
Fl as StyleElement,
|
6612
|
-
|
6612
|
+
Tc as SymbolElement,
|
6613
6613
|
yc as TRefElement,
|
6614
6614
|
Gr as TSpanElement,
|
6615
6615
|
ze as TextElement,
|
@@ -6619,18 +6619,18 @@ export {
|
|
6619
6619
|
Gf as Translate,
|
6620
6620
|
Kf as UnknownElement,
|
6621
6621
|
Ec as UseElement,
|
6622
|
-
|
6623
|
-
|
6624
|
-
|
6622
|
+
jf as ViewPort,
|
6623
|
+
nr as compressSpaces,
|
6624
|
+
hr as default,
|
6625
6625
|
kf as getSelectorSpecificity,
|
6626
6626
|
Af as normalizeAttributeName,
|
6627
6627
|
If as normalizeColor,
|
6628
6628
|
_l as parseExternalUrl,
|
6629
6629
|
Lc as presets,
|
6630
|
-
|
6630
|
+
de as toNumbers,
|
6631
6631
|
Cf as trimLeft,
|
6632
6632
|
wf as trimRight,
|
6633
|
-
|
6634
|
-
|
6633
|
+
ju as vectorMagnitude,
|
6634
|
+
Bu as vectorsAngle,
|
6635
6635
|
La as vectorsRatio
|
6636
6636
|
};
|