@ianicdev/datatables2 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datatables.js +1 -1
- package/dist/datatables.mjs +1 -1
- package/dist/{index-D9axbMgK.js → index-B72z8mEp.js} +79 -79
- package/dist/{index-Cis-UW97.mjs → index-daHrn-R8.mjs} +26979 -26929
- package/dist/{index.es-BuEg1gVe.js → index.es-C5TP_Aqs.js} +6 -6
- package/dist/{index.es-BLQBSzV5.mjs → index.es-Dwaj4zef.mjs} +1137 -1133
- package/dist/style.css +1 -1
- package/package.json +23 -23
|
@@ -1,254 +1,254 @@
|
|
|
1
|
-
import { c as Ke, _ as
|
|
1
|
+
import { c as Ke, _ as za, g as _o } from "./index-daHrn-R8.mjs";
|
|
2
2
|
var vt = function(a) {
|
|
3
3
|
return a && a.Math === Math && a;
|
|
4
|
-
},
|
|
4
|
+
}, V = (
|
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
6
6
|
vt(typeof globalThis == "object" && globalThis) || vt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
7
7
|
vt(typeof self == "object" && self) || vt(typeof Ke == "object" && Ke) || vt(typeof Ke == "object" && Ke) || // eslint-disable-next-line no-new-func -- fallback
|
|
8
8
|
/* @__PURE__ */ function() {
|
|
9
9
|
return this;
|
|
10
10
|
}() || Function("return this")()
|
|
11
|
-
),
|
|
11
|
+
), $t = {}, k = function(a) {
|
|
12
12
|
try {
|
|
13
13
|
return !!a();
|
|
14
14
|
} catch {
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, $l = k, le = !$l(function() {
|
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
|
19
19
|
return 7;
|
|
20
20
|
} })[1] !== 7;
|
|
21
|
-
}),
|
|
21
|
+
}), wl = k, mr = !wl(function() {
|
|
22
22
|
var a = (function() {
|
|
23
23
|
}).bind();
|
|
24
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
25
|
-
}),
|
|
26
|
-
return
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
var t =
|
|
25
|
+
}), Cl = mr, Ut = Function.prototype.call, Y = Cl ? Ut.bind(Ut) : function() {
|
|
26
|
+
return Ut.apply(Ut, arguments);
|
|
27
|
+
}, Vo = {}, Do = {}.propertyIsEnumerable, ko = Object.getOwnPropertyDescriptor, Al = ko && !Do.call({ 1: 2 }, 1);
|
|
28
|
+
Vo.f = Al ? function(e) {
|
|
29
|
+
var t = ko(this, e);
|
|
30
30
|
return !!t && t.enumerable;
|
|
31
|
-
} :
|
|
32
|
-
var
|
|
31
|
+
} : Do;
|
|
32
|
+
var Ti = function(a, e) {
|
|
33
33
|
return {
|
|
34
34
|
enumerable: !(a & 1),
|
|
35
35
|
configurable: !(a & 2),
|
|
36
36
|
writable: !(a & 4),
|
|
37
37
|
value: e
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Lo = mr, Bo = Function.prototype, Ha = Bo.call, Pl = Lo && Bo.bind.bind(Ha, Ha), L = Lo ? Pl : function(a) {
|
|
40
40
|
return function() {
|
|
41
|
-
return
|
|
41
|
+
return Ha.apply(a, arguments);
|
|
42
42
|
};
|
|
43
|
-
},
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
return !
|
|
43
|
+
}, jo = L, Rl = jo({}.toString), Nl = jo("".slice), Be = function(a) {
|
|
44
|
+
return Nl(Rl(a), 8, -1);
|
|
45
|
+
}, Il = L, Ml = k, _l = Be, Qr = Object, Vl = Il("".split), Fo = Ml(function() {
|
|
46
|
+
return !Qr("z").propertyIsEnumerable(0);
|
|
47
47
|
}) ? function(a) {
|
|
48
|
-
return
|
|
49
|
-
} :
|
|
48
|
+
return _l(a) === "String" ? Vl(a, "") : Qr(a);
|
|
49
|
+
} : Qr, je = function(a) {
|
|
50
50
|
return a == null;
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
51
|
+
}, Dl = je, kl = TypeError, he = function(a) {
|
|
52
|
+
if (Dl(a)) throw new kl("Can't call method on " + a);
|
|
53
53
|
return a;
|
|
54
|
-
},
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
return typeof a == "function" || a ===
|
|
54
|
+
}, Ll = Fo, Bl = he, wt = function(a) {
|
|
55
|
+
return Ll(Bl(a));
|
|
56
|
+
}, Kr = typeof document == "object" && document.all, B = typeof Kr > "u" && Kr !== void 0 ? function(a) {
|
|
57
|
+
return typeof a == "function" || a === Kr;
|
|
58
58
|
} : function(a) {
|
|
59
59
|
return typeof a == "function";
|
|
60
|
-
},
|
|
61
|
-
return typeof a == "object" ? a !== null :
|
|
62
|
-
},
|
|
63
|
-
return
|
|
60
|
+
}, jl = B, ve = function(a) {
|
|
61
|
+
return typeof a == "object" ? a !== null : jl(a);
|
|
62
|
+
}, Zr = V, Fl = B, Ul = function(a) {
|
|
63
|
+
return Fl(a) ? a : void 0;
|
|
64
64
|
}, Fe = function(a, e) {
|
|
65
|
-
return arguments.length < 2 ?
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
!
|
|
69
|
-
var
|
|
65
|
+
return arguments.length < 2 ? Ul(Zr[a]) : Zr[a] && Zr[a][e];
|
|
66
|
+
}, Gl = L, br = Gl({}.isPrototypeOf), zl = V, dn = zl.navigator, pn = dn && dn.userAgent, Ct = pn ? String(pn) : "", Uo = V, Jr = Ct, yn = Uo.process, mn = Uo.Deno, bn = yn && yn.versions || mn && mn.version, xn = bn && bn.v8, ue, fr;
|
|
67
|
+
xn && (ue = xn.split("."), fr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
|
68
|
+
!fr && Jr && (ue = Jr.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = Jr.match(/Chrome\/(\d+)/), ue && (fr = +ue[1])));
|
|
69
|
+
var Oi = fr, Tn = Oi, Hl = k, Yl = V, Xl = Yl.String, Go = !!Object.getOwnPropertySymbols && !Hl(function() {
|
|
70
70
|
var a = Symbol("symbol detection");
|
|
71
|
-
return !
|
|
72
|
-
!Symbol.sham &&
|
|
73
|
-
}),
|
|
71
|
+
return !Xl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
72
|
+
!Symbol.sham && Tn && Tn < 41;
|
|
73
|
+
}), Wl = Go, zo = Wl && !Symbol.sham && typeof Symbol.iterator == "symbol", ql = Fe, Ql = B, Kl = br, Zl = zo, Jl = Object, Ho = Zl ? function(a) {
|
|
74
74
|
return typeof a == "symbol";
|
|
75
75
|
} : function(a) {
|
|
76
|
-
var e =
|
|
77
|
-
return
|
|
78
|
-
},
|
|
76
|
+
var e = ql("Symbol");
|
|
77
|
+
return Ql(e) && Kl(e.prototype, Jl(a));
|
|
78
|
+
}, eh = String, xr = function(a) {
|
|
79
79
|
try {
|
|
80
|
-
return
|
|
80
|
+
return eh(a);
|
|
81
81
|
} catch {
|
|
82
82
|
return "Object";
|
|
83
83
|
}
|
|
84
|
-
},
|
|
85
|
-
if (
|
|
86
|
-
throw new
|
|
87
|
-
},
|
|
84
|
+
}, th = B, rh = xr, ah = TypeError, Te = function(a) {
|
|
85
|
+
if (th(a)) return a;
|
|
86
|
+
throw new ah(rh(a) + " is not a function");
|
|
87
|
+
}, ih = Te, nh = je, ot = function(a, e) {
|
|
88
88
|
var t = a[e];
|
|
89
|
-
return
|
|
90
|
-
},
|
|
89
|
+
return nh(t) ? void 0 : ih(t);
|
|
90
|
+
}, ea = Y, ta = B, ra = ve, sh = TypeError, oh = function(a, e) {
|
|
91
91
|
var t, r;
|
|
92
|
-
if (e === "string" &&
|
|
93
|
-
throw new
|
|
94
|
-
},
|
|
92
|
+
if (e === "string" && ta(t = a.toString) && !ra(r = ea(t, a)) || ta(t = a.valueOf) && !ra(r = ea(t, a)) || e !== "string" && ta(t = a.toString) && !ra(r = ea(t, a))) return r;
|
|
93
|
+
throw new sh("Can't convert object to primitive value");
|
|
94
|
+
}, Yo = { exports: {} }, On = V, uh = Object.defineProperty, Si = function(a, e) {
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
uh(On, a, { value: e, configurable: !0, writable: !0 });
|
|
97
97
|
} catch {
|
|
98
|
-
|
|
98
|
+
On[a] = e;
|
|
99
99
|
}
|
|
100
100
|
return e;
|
|
101
|
-
},
|
|
102
|
-
(
|
|
103
|
-
version: "3.
|
|
101
|
+
}, lh = V, hh = Si, Sn = "__core-js_shared__", En = Yo.exports = lh[Sn] || hh(Sn, {});
|
|
102
|
+
(En.versions || (En.versions = [])).push({
|
|
103
|
+
version: "3.38.1",
|
|
104
104
|
mode: "global",
|
|
105
105
|
copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)",
|
|
106
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
106
|
+
license: "https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",
|
|
107
107
|
source: "https://github.com/zloirock/core-js"
|
|
108
108
|
});
|
|
109
|
-
var
|
|
110
|
-
return
|
|
111
|
-
},
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
117
|
-
},
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
if (!
|
|
121
|
-
var t =
|
|
109
|
+
var Ei = Yo.exports, $n = Ei, $i = function(a, e) {
|
|
110
|
+
return $n[a] || ($n[a] = e || {});
|
|
111
|
+
}, vh = he, fh = Object, Tr = function(a) {
|
|
112
|
+
return fh(vh(a));
|
|
113
|
+
}, ch = L, gh = Tr, dh = ch({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
|
114
|
+
return dh(gh(e), t);
|
|
115
|
+
}, ph = L, yh = 0, mh = Math.random(), bh = ph(1 .toString), Xo = function(a) {
|
|
116
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + bh(++yh + mh, 36);
|
|
117
|
+
}, xh = V, Th = $i, wn = fe, Oh = Xo, Sh = Go, Eh = zo, Ze = xh.Symbol, aa = Th("wks"), $h = Eh ? Ze.for || Ze : Ze && Ze.withoutSetter || Oh, z = function(a) {
|
|
118
|
+
return wn(aa, a) || (aa[a] = Sh && wn(Ze, a) ? Ze[a] : $h("Symbol." + a)), aa[a];
|
|
119
|
+
}, wh = Y, Cn = ve, An = Ho, Ch = ot, Ah = oh, Ph = z, Rh = TypeError, Nh = Ph("toPrimitive"), Ih = function(a, e) {
|
|
120
|
+
if (!Cn(a) || An(a)) return a;
|
|
121
|
+
var t = Ch(a, Nh), r;
|
|
122
122
|
if (t) {
|
|
123
|
-
if (e === void 0 && (e = "default"), r =
|
|
124
|
-
throw new
|
|
125
|
-
}
|
|
126
|
-
return e === void 0 && (e = "number"),
|
|
127
|
-
},
|
|
128
|
-
var e =
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
return
|
|
132
|
-
},
|
|
133
|
-
return Object.defineProperty(
|
|
123
|
+
if (e === void 0 && (e = "default"), r = wh(t, a, e), !Cn(r) || An(r)) return r;
|
|
124
|
+
throw new Rh("Can't convert object to primitive value");
|
|
125
|
+
}
|
|
126
|
+
return e === void 0 && (e = "number"), Ah(a, e);
|
|
127
|
+
}, Mh = Ih, _h = Ho, Wo = function(a) {
|
|
128
|
+
var e = Mh(a, "string");
|
|
129
|
+
return _h(e) ? e : e + "";
|
|
130
|
+
}, Vh = V, Pn = ve, Ya = Vh.document, Dh = Pn(Ya) && Pn(Ya.createElement), Or = function(a) {
|
|
131
|
+
return Dh ? Ya.createElement(a) : {};
|
|
132
|
+
}, kh = le, Lh = k, Bh = Or, qo = !kh && !Lh(function() {
|
|
133
|
+
return Object.defineProperty(Bh("div"), "a", {
|
|
134
134
|
get: function() {
|
|
135
135
|
return 7;
|
|
136
136
|
}
|
|
137
137
|
}).a !== 7;
|
|
138
|
-
}),
|
|
139
|
-
|
|
140
|
-
if (e =
|
|
141
|
-
return
|
|
138
|
+
}), jh = le, Fh = Y, Uh = Vo, Gh = Ti, zh = wt, Hh = Wo, Yh = fe, Xh = qo, Rn = Object.getOwnPropertyDescriptor;
|
|
139
|
+
$t.f = jh ? Rn : function(e, t) {
|
|
140
|
+
if (e = zh(e), t = Hh(t), Xh) try {
|
|
141
|
+
return Rn(e, t);
|
|
142
142
|
} catch {
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
144
|
+
if (Yh(e, t)) return Gh(!Fh(Uh.f, e, t), e[t]);
|
|
145
145
|
};
|
|
146
|
-
var Oe = {},
|
|
146
|
+
var Oe = {}, Wh = le, qh = k, Qo = Wh && qh(function() {
|
|
147
147
|
return Object.defineProperty(function() {
|
|
148
148
|
}, "prototype", {
|
|
149
149
|
value: 42,
|
|
150
150
|
writable: !1
|
|
151
151
|
}).prototype !== 42;
|
|
152
|
-
}),
|
|
153
|
-
if (
|
|
154
|
-
throw new
|
|
155
|
-
},
|
|
156
|
-
Oe.f =
|
|
157
|
-
if (
|
|
158
|
-
var i =
|
|
159
|
-
i && i[
|
|
160
|
-
configurable:
|
|
161
|
-
enumerable:
|
|
152
|
+
}), Qh = ve, Kh = String, Zh = TypeError, J = function(a) {
|
|
153
|
+
if (Qh(a)) return a;
|
|
154
|
+
throw new Zh(Kh(a) + " is not an object");
|
|
155
|
+
}, Jh = le, ev = qo, tv = Qo, Gt = J, Nn = Wo, rv = TypeError, ia = Object.defineProperty, av = Object.getOwnPropertyDescriptor, na = "enumerable", sa = "configurable", oa = "writable";
|
|
156
|
+
Oe.f = Jh ? tv ? function(e, t, r) {
|
|
157
|
+
if (Gt(e), t = Nn(t), Gt(r), typeof e == "function" && t === "prototype" && "value" in r && oa in r && !r[oa]) {
|
|
158
|
+
var i = av(e, t);
|
|
159
|
+
i && i[oa] && (e[t] = r.value, r = {
|
|
160
|
+
configurable: sa in r ? r[sa] : i[sa],
|
|
161
|
+
enumerable: na in r ? r[na] : i[na],
|
|
162
162
|
writable: !1
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
return
|
|
166
|
-
} :
|
|
167
|
-
if (
|
|
168
|
-
return
|
|
165
|
+
return ia(e, t, r);
|
|
166
|
+
} : ia : function(e, t, r) {
|
|
167
|
+
if (Gt(e), t = Nn(t), Gt(r), ev) try {
|
|
168
|
+
return ia(e, t, r);
|
|
169
169
|
} catch {
|
|
170
170
|
}
|
|
171
|
-
if ("get" in r || "set" in r) throw new
|
|
171
|
+
if ("get" in r || "set" in r) throw new rv("Accessors not supported");
|
|
172
172
|
return "value" in r && (e[t] = r.value), e;
|
|
173
173
|
};
|
|
174
|
-
var
|
|
175
|
-
return
|
|
174
|
+
var iv = le, nv = Oe, sv = Ti, At = iv ? function(a, e, t) {
|
|
175
|
+
return nv.f(a, e, sv(1, t));
|
|
176
176
|
} : function(a, e, t) {
|
|
177
177
|
return a[e] = t, a;
|
|
178
|
-
},
|
|
179
|
-
}).name === "something",
|
|
180
|
-
EXISTS:
|
|
181
|
-
PROPER:
|
|
182
|
-
CONFIGURABLE:
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
return
|
|
178
|
+
}, Ko = { exports: {} }, Xa = le, ov = fe, Zo = Function.prototype, uv = Xa && Object.getOwnPropertyDescriptor, wi = ov(Zo, "name"), lv = wi && (function() {
|
|
179
|
+
}).name === "something", hv = wi && (!Xa || Xa && uv(Zo, "name").configurable), Sr = {
|
|
180
|
+
EXISTS: wi,
|
|
181
|
+
PROPER: lv,
|
|
182
|
+
CONFIGURABLE: hv
|
|
183
|
+
}, vv = L, fv = B, Wa = Ei, cv = vv(Function.toString);
|
|
184
|
+
fv(Wa.inspectSource) || (Wa.inspectSource = function(a) {
|
|
185
|
+
return cv(a);
|
|
186
186
|
});
|
|
187
|
-
var
|
|
188
|
-
return
|
|
189
|
-
},
|
|
190
|
-
return
|
|
191
|
-
},
|
|
187
|
+
var Ci = Wa.inspectSource, gv = V, dv = B, In = gv.WeakMap, pv = dv(In) && /native code/.test(String(In)), yv = $i, mv = Xo, Mn = yv("keys"), Ai = function(a) {
|
|
188
|
+
return Mn[a] || (Mn[a] = mv(a));
|
|
189
|
+
}, Pi = {}, bv = pv, Jo = V, xv = ve, Tv = At, ua = fe, la = Ei, Ov = Ai, Sv = Pi, _n = "Object already initialized", qa = Jo.TypeError, Ev = Jo.WeakMap, cr, Ot, gr, $v = function(a) {
|
|
190
|
+
return gr(a) ? Ot(a) : cr(a, {});
|
|
191
|
+
}, wv = function(a) {
|
|
192
192
|
return function(e) {
|
|
193
193
|
var t;
|
|
194
|
-
if (!
|
|
195
|
-
throw new
|
|
194
|
+
if (!xv(e) || (t = Ot(e)).type !== a)
|
|
195
|
+
throw new qa("Incompatible receiver, " + a + " required");
|
|
196
196
|
return t;
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
-
if (
|
|
200
|
-
var de =
|
|
201
|
-
de.get = de.get, de.has = de.has, de.set = de.set,
|
|
202
|
-
if (de.has(a)) throw new
|
|
199
|
+
if (bv || la.state) {
|
|
200
|
+
var de = la.state || (la.state = new Ev());
|
|
201
|
+
de.get = de.get, de.has = de.has, de.set = de.set, cr = function(a, e) {
|
|
202
|
+
if (de.has(a)) throw new qa(_n);
|
|
203
203
|
return e.facade = a, de.set(a, e), e;
|
|
204
|
-
},
|
|
204
|
+
}, Ot = function(a) {
|
|
205
205
|
return de.get(a) || {};
|
|
206
|
-
},
|
|
206
|
+
}, gr = function(a) {
|
|
207
207
|
return de.has(a);
|
|
208
208
|
};
|
|
209
209
|
} else {
|
|
210
|
-
var Ye =
|
|
211
|
-
|
|
212
|
-
if (
|
|
213
|
-
return e.facade = a,
|
|
214
|
-
},
|
|
215
|
-
return
|
|
216
|
-
},
|
|
217
|
-
return
|
|
210
|
+
var Ye = Ov("state");
|
|
211
|
+
Sv[Ye] = !0, cr = function(a, e) {
|
|
212
|
+
if (ua(a, Ye)) throw new qa(_n);
|
|
213
|
+
return e.facade = a, Tv(a, Ye, e), e;
|
|
214
|
+
}, Ot = function(a) {
|
|
215
|
+
return ua(a, Ye) ? a[Ye] : {};
|
|
216
|
+
}, gr = function(a) {
|
|
217
|
+
return ua(a, Ye);
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
set:
|
|
222
|
-
get:
|
|
223
|
-
has:
|
|
224
|
-
enforce:
|
|
225
|
-
getterFor:
|
|
226
|
-
},
|
|
227
|
-
return
|
|
220
|
+
var Er = {
|
|
221
|
+
set: cr,
|
|
222
|
+
get: Ot,
|
|
223
|
+
has: gr,
|
|
224
|
+
enforce: $v,
|
|
225
|
+
getterFor: wv
|
|
226
|
+
}, Ri = L, Cv = k, Av = B, zt = fe, Qa = le, Pv = Sr.CONFIGURABLE, Rv = Ci, eu = Er, Nv = eu.enforce, Iv = eu.get, Vn = String, sr = Object.defineProperty, Mv = Ri("".slice), _v = Ri("".replace), Vv = Ri([].join), Dv = Qa && !Cv(function() {
|
|
227
|
+
return sr(function() {
|
|
228
228
|
}, "length", { value: 8 }).length !== 8;
|
|
229
|
-
}),
|
|
230
|
-
|
|
229
|
+
}), kv = String(String).split("String"), Lv = Ko.exports = function(a, e, t) {
|
|
230
|
+
Mv(Vn(e), 0, 7) === "Symbol(" && (e = "[" + _v(Vn(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!zt(a, "name") || Pv && a.name !== e) && (Qa ? sr(a, "name", { value: e, configurable: !0 }) : a.name = e), Dv && t && zt(t, "arity") && a.length !== t.arity && sr(a, "length", { value: t.arity });
|
|
231
231
|
try {
|
|
232
|
-
t &&
|
|
232
|
+
t && zt(t, "constructor") && t.constructor ? Qa && sr(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
233
233
|
} catch {
|
|
234
234
|
}
|
|
235
|
-
var r =
|
|
236
|
-
return
|
|
235
|
+
var r = Nv(a);
|
|
236
|
+
return zt(r, "source") || (r.source = Vv(kv, typeof e == "string" ? e : "")), a;
|
|
237
237
|
};
|
|
238
|
-
Function.prototype.toString =
|
|
239
|
-
return
|
|
238
|
+
Function.prototype.toString = Lv(function() {
|
|
239
|
+
return Av(this) && Iv(this).source || Rv(this);
|
|
240
240
|
}, "toString");
|
|
241
|
-
var
|
|
241
|
+
var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r) {
|
|
242
242
|
r || (r = {});
|
|
243
243
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
244
|
-
if (
|
|
245
|
-
i ? a[e] = t :
|
|
244
|
+
if (Bv(t) && Fv(t, n, r), r.global)
|
|
245
|
+
i ? a[e] = t : Uv(e, t);
|
|
246
246
|
else {
|
|
247
247
|
try {
|
|
248
248
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
249
249
|
} catch {
|
|
250
250
|
}
|
|
251
|
-
i ? a[e] = t :
|
|
251
|
+
i ? a[e] = t : jv.f(a, e, {
|
|
252
252
|
value: t,
|
|
253
253
|
enumerable: !1,
|
|
254
254
|
configurable: !r.nonConfigurable,
|
|
@@ -256,25 +256,25 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
return a;
|
|
259
|
-
},
|
|
259
|
+
}, ru = {}, Gv = Math.ceil, zv = Math.floor, Hv = Math.trunc || function(e) {
|
|
260
260
|
var t = +e;
|
|
261
|
-
return (t > 0 ?
|
|
262
|
-
},
|
|
261
|
+
return (t > 0 ? zv : Gv)(t);
|
|
262
|
+
}, Yv = Hv, $r = function(a) {
|
|
263
263
|
var e = +a;
|
|
264
|
-
return e !== e || e === 0 ? 0 :
|
|
265
|
-
},
|
|
266
|
-
var t =
|
|
267
|
-
return t < 0 ?
|
|
268
|
-
},
|
|
269
|
-
var e =
|
|
270
|
-
return e > 0 ?
|
|
271
|
-
},
|
|
272
|
-
return
|
|
273
|
-
},
|
|
264
|
+
return e !== e || e === 0 ? 0 : Yv(e);
|
|
265
|
+
}, Xv = $r, Wv = Math.max, qv = Math.min, Qv = function(a, e) {
|
|
266
|
+
var t = Xv(a);
|
|
267
|
+
return t < 0 ? Wv(t + e, 0) : qv(t, e);
|
|
268
|
+
}, Kv = $r, Zv = Math.min, ut = function(a) {
|
|
269
|
+
var e = Kv(a);
|
|
270
|
+
return e > 0 ? Zv(e, 9007199254740991) : 0;
|
|
271
|
+
}, Jv = ut, Ni = function(a) {
|
|
272
|
+
return Jv(a.length);
|
|
273
|
+
}, ef = wt, tf = Qv, rf = Ni, Dn = function(a) {
|
|
274
274
|
return function(e, t, r) {
|
|
275
|
-
var i =
|
|
275
|
+
var i = ef(e), n = rf(i);
|
|
276
276
|
if (n === 0) return !a && -1;
|
|
277
|
-
var o =
|
|
277
|
+
var o = tf(r, n), s;
|
|
278
278
|
if (a && t !== t) {
|
|
279
279
|
for (; n > o; )
|
|
280
280
|
if (s = i[o++], s !== s) return !0;
|
|
@@ -282,19 +282,19 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
|
|
|
282
282
|
if ((a || o in i) && i[o] === t) return a || o || 0;
|
|
283
283
|
return !a && -1;
|
|
284
284
|
};
|
|
285
|
-
},
|
|
285
|
+
}, au = {
|
|
286
286
|
// `Array.prototype.includes` method
|
|
287
287
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
288
|
-
includes:
|
|
288
|
+
includes: Dn(!0),
|
|
289
289
|
// `Array.prototype.indexOf` method
|
|
290
290
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
291
|
-
indexOf:
|
|
292
|
-
},
|
|
293
|
-
var t =
|
|
294
|
-
for (n in t) !
|
|
295
|
-
for (; e.length > r; )
|
|
291
|
+
indexOf: Dn(!1)
|
|
292
|
+
}, af = L, ha = fe, nf = wt, sf = au.indexOf, of = Pi, kn = af([].push), iu = function(a, e) {
|
|
293
|
+
var t = nf(a), r = 0, i = [], n;
|
|
294
|
+
for (n in t) !ha(of, n) && ha(t, n) && kn(i, n);
|
|
295
|
+
for (; e.length > r; ) ha(t, n = e[r++]) && (~sf(i, n) || kn(i, n));
|
|
296
296
|
return i;
|
|
297
|
-
},
|
|
297
|
+
}, Ii = [
|
|
298
298
|
"constructor",
|
|
299
299
|
"hasOwnProperty",
|
|
300
300
|
"isPrototypeOf",
|
|
@@ -302,173 +302,177 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
|
|
|
302
302
|
"toLocaleString",
|
|
303
303
|
"toString",
|
|
304
304
|
"valueOf"
|
|
305
|
-
],
|
|
306
|
-
|
|
307
|
-
return
|
|
305
|
+
], uf = iu, lf = Ii, hf = lf.concat("length", "prototype");
|
|
306
|
+
ru.f = Object.getOwnPropertyNames || function(e) {
|
|
307
|
+
return uf(e, hf);
|
|
308
308
|
};
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
var
|
|
312
|
-
var t =
|
|
313
|
-
return r ?
|
|
314
|
-
},
|
|
315
|
-
for (var r =
|
|
309
|
+
var nu = {};
|
|
310
|
+
nu.f = Object.getOwnPropertySymbols;
|
|
311
|
+
var vf = Fe, ff = L, cf = ru, gf = nu, df = J, pf = ff([].concat), yf = vf("Reflect", "ownKeys") || function(e) {
|
|
312
|
+
var t = cf.f(df(e)), r = gf.f;
|
|
313
|
+
return r ? pf(t, r(e)) : t;
|
|
314
|
+
}, Ln = fe, mf = yf, bf = $t, xf = Oe, Tf = function(a, e, t) {
|
|
315
|
+
for (var r = mf(e), i = xf.f, n = bf.f, o = 0; o < r.length; o++) {
|
|
316
316
|
var s = r[o];
|
|
317
|
-
!
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
var t =
|
|
321
|
-
return t ===
|
|
322
|
-
},
|
|
323
|
-
return String(a).replace(
|
|
324
|
-
},
|
|
317
|
+
!Ln(a, s) && !(t && Ln(t, s)) && i(a, s, n(e, s));
|
|
318
|
+
}
|
|
319
|
+
}, Of = k, Sf = B, Ef = /#|\.prototype\./, Pt = function(a, e) {
|
|
320
|
+
var t = wf[$f(a)];
|
|
321
|
+
return t === Af ? !0 : t === Cf ? !1 : Sf(e) ? Of(e) : !!e;
|
|
322
|
+
}, $f = Pt.normalize = function(a) {
|
|
323
|
+
return String(a).replace(Ef, ".").toLowerCase();
|
|
324
|
+
}, wf = Pt.data = {}, Cf = Pt.NATIVE = "N", Af = Pt.POLYFILL = "P", su = Pt, Ht = V, Pf = $t.f, Rf = At, Nf = Ue, If = Si, Mf = Tf, _f = su, ee = function(a, e) {
|
|
325
325
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
326
|
-
if (r ? o =
|
|
327
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
|
326
|
+
if (r ? o = Ht : i ? o = Ht[t] || If(t, {}) : o = Ht[t] && Ht[t].prototype, o) for (s in e) {
|
|
327
|
+
if (l = e[s], a.dontCallGetSet ? (h = Pf(o, s), u = h && h.value) : u = o[s], n = _f(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
328
328
|
if (typeof l == typeof u) continue;
|
|
329
|
-
|
|
329
|
+
Mf(l, u);
|
|
330
330
|
}
|
|
331
|
-
(a.sham || u && u.sham) &&
|
|
331
|
+
(a.sham || u && u.sham) && Rf(l, "sham", !0), Nf(o, s, l, a);
|
|
332
332
|
}
|
|
333
|
-
},
|
|
333
|
+
}, ft = V, Vf = Ct, Df = Be, Yt = function(a) {
|
|
334
|
+
return Vf.slice(0, a.length) === a;
|
|
335
|
+
}, ou = function() {
|
|
336
|
+
return Yt("Bun/") ? "BUN" : Yt("Cloudflare-Workers") ? "CLOUDFLARE" : Yt("Deno/") ? "DENO" : Yt("Node.js/") ? "NODE" : ft.Bun && typeof Bun.version == "string" ? "BUN" : ft.Deno && typeof Deno.version == "object" ? "DENO" : Df(ft.process) === "process" ? "NODE" : ft.window && ft.document ? "BROWSER" : "REST";
|
|
337
|
+
}(), kf = ou, wr = kf === "NODE", Lf = L, Bf = Te, jf = function(a, e, t) {
|
|
334
338
|
try {
|
|
335
|
-
return
|
|
339
|
+
return Lf(Bf(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
336
340
|
} catch {
|
|
337
341
|
}
|
|
338
|
-
},
|
|
339
|
-
return
|
|
340
|
-
},
|
|
341
|
-
if (
|
|
342
|
-
throw new
|
|
343
|
-
},
|
|
342
|
+
}, Ff = ve, Uf = function(a) {
|
|
343
|
+
return Ff(a) || a === null;
|
|
344
|
+
}, Gf = Uf, zf = String, Hf = TypeError, Yf = function(a) {
|
|
345
|
+
if (Gf(a)) return a;
|
|
346
|
+
throw new Hf("Can't set " + zf(a) + " as a prototype");
|
|
347
|
+
}, Xf = jf, Wf = ve, qf = he, Qf = Yf, uu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
344
348
|
var a = !1, e = {}, t;
|
|
345
349
|
try {
|
|
346
|
-
t =
|
|
350
|
+
t = Xf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
347
351
|
} catch {
|
|
348
352
|
}
|
|
349
353
|
return function(i, n) {
|
|
350
|
-
return
|
|
354
|
+
return qf(i), Qf(n), Wf(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
351
355
|
};
|
|
352
|
-
}() : void 0),
|
|
353
|
-
a && !t && (a = a.prototype), a && !
|
|
354
|
-
},
|
|
355
|
-
return t.get &&
|
|
356
|
-
},
|
|
357
|
-
var e =
|
|
358
|
-
|
|
356
|
+
}() : void 0), Kf = Oe.f, Zf = fe, Jf = z, Bn = Jf("toStringTag"), Cr = function(a, e, t) {
|
|
357
|
+
a && !t && (a = a.prototype), a && !Zf(a, Bn) && Kf(a, Bn, { configurable: !0, value: e });
|
|
358
|
+
}, jn = tu, ec = Oe, tc = function(a, e, t) {
|
|
359
|
+
return t.get && jn(t.get, e, { getter: !0 }), t.set && jn(t.set, e, { setter: !0 }), ec.f(a, e, t);
|
|
360
|
+
}, rc = Fe, ac = tc, ic = z, nc = le, Fn = ic("species"), sc = function(a) {
|
|
361
|
+
var e = rc(a);
|
|
362
|
+
nc && e && !e[Fn] && ac(e, Fn, {
|
|
359
363
|
configurable: !0,
|
|
360
364
|
get: function() {
|
|
361
365
|
return this;
|
|
362
366
|
}
|
|
363
367
|
});
|
|
364
|
-
},
|
|
365
|
-
if (
|
|
366
|
-
throw new
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
var
|
|
368
|
+
}, oc = br, uc = TypeError, lc = function(a, e) {
|
|
369
|
+
if (oc(e, a)) return a;
|
|
370
|
+
throw new uc("Incorrect invocation");
|
|
371
|
+
}, hc = z, vc = hc("toStringTag"), lu = {};
|
|
372
|
+
lu[vc] = "z";
|
|
373
|
+
var fc = String(lu) === "[object z]", cc = fc, gc = B, or = Be, dc = z, pc = dc("toStringTag"), yc = Object, mc = or(/* @__PURE__ */ function() {
|
|
370
374
|
return arguments;
|
|
371
|
-
}()) === "Arguments",
|
|
375
|
+
}()) === "Arguments", bc = function(a, e) {
|
|
372
376
|
try {
|
|
373
377
|
return a[e];
|
|
374
378
|
} catch {
|
|
375
379
|
}
|
|
376
|
-
},
|
|
380
|
+
}, Mi = cc ? or : function(a) {
|
|
377
381
|
var e, t, r;
|
|
378
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
|
379
|
-
},
|
|
380
|
-
},
|
|
381
|
-
if (!
|
|
382
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = bc(e = yc(a), pc)) == "string" ? t : mc ? or(e) : (r = or(e)) === "Object" && gc(e.callee) ? "Arguments" : r;
|
|
383
|
+
}, xc = L, Tc = k, hu = B, Oc = Mi, Sc = Fe, Ec = Ci, vu = function() {
|
|
384
|
+
}, fu = Sc("Reflect", "construct"), _i = /^\s*(?:class|function)\b/, $c = xc(_i.exec), wc = !_i.test(vu), ct = function(e) {
|
|
385
|
+
if (!hu(e)) return !1;
|
|
382
386
|
try {
|
|
383
|
-
return
|
|
387
|
+
return fu(vu, [], e), !0;
|
|
384
388
|
} catch {
|
|
385
389
|
return !1;
|
|
386
390
|
}
|
|
387
|
-
},
|
|
388
|
-
if (!
|
|
389
|
-
switch (
|
|
391
|
+
}, cu = function(e) {
|
|
392
|
+
if (!hu(e)) return !1;
|
|
393
|
+
switch (Oc(e)) {
|
|
390
394
|
case "AsyncFunction":
|
|
391
395
|
case "GeneratorFunction":
|
|
392
396
|
case "AsyncGeneratorFunction":
|
|
393
397
|
return !1;
|
|
394
398
|
}
|
|
395
399
|
try {
|
|
396
|
-
return
|
|
400
|
+
return wc || !!$c(_i, Ec(e));
|
|
397
401
|
} catch {
|
|
398
402
|
return !0;
|
|
399
403
|
}
|
|
400
404
|
};
|
|
401
|
-
|
|
402
|
-
var
|
|
405
|
+
cu.sham = !0;
|
|
406
|
+
var Cc = !fu || Tc(function() {
|
|
403
407
|
var a;
|
|
404
|
-
return
|
|
408
|
+
return ct(ct.call) || !ct(Object) || !ct(function() {
|
|
405
409
|
a = !0;
|
|
406
410
|
}) || a;
|
|
407
|
-
}) ?
|
|
408
|
-
if (
|
|
409
|
-
throw new
|
|
410
|
-
},
|
|
411
|
-
var t =
|
|
412
|
-
return t === void 0 ||
|
|
413
|
-
},
|
|
414
|
-
return
|
|
415
|
-
}),
|
|
416
|
-
if (
|
|
417
|
-
},
|
|
418
|
-
return
|
|
411
|
+
}) ? cu : ct, Ac = Cc, Pc = xr, Rc = TypeError, Nc = function(a) {
|
|
412
|
+
if (Ac(a)) return a;
|
|
413
|
+
throw new Rc(Pc(a) + " is not a constructor");
|
|
414
|
+
}, Un = J, Ic = Nc, Mc = je, _c = z, Vc = _c("species"), gu = function(a, e) {
|
|
415
|
+
var t = Un(a).constructor, r;
|
|
416
|
+
return t === void 0 || Mc(r = Un(t)[Vc]) ? e : Ic(r);
|
|
417
|
+
}, Dc = mr, du = Function.prototype, Gn = du.apply, zn = du.call, pu = typeof Reflect == "object" && Reflect.apply || (Dc ? zn.bind(Gn) : function() {
|
|
418
|
+
return zn.apply(Gn, arguments);
|
|
419
|
+
}), kc = Be, Lc = L, Ar = function(a) {
|
|
420
|
+
if (kc(a) === "Function") return Lc(a);
|
|
421
|
+
}, Hn = Ar, Bc = Te, jc = mr, Fc = Hn(Hn.bind), Vi = function(a, e) {
|
|
422
|
+
return Bc(a), e === void 0 ? a : jc ? Fc(a, e) : function() {
|
|
419
423
|
return a.apply(e, arguments);
|
|
420
424
|
};
|
|
421
|
-
},
|
|
422
|
-
if (a < e) throw new
|
|
425
|
+
}, Uc = Fe, yu = Uc("document", "documentElement"), Gc = L, zc = Gc([].slice), Hc = TypeError, Yc = function(a, e) {
|
|
426
|
+
if (a < e) throw new Hc("Not enough arguments");
|
|
423
427
|
return a;
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
|
|
428
|
+
}, Xc = Ct, mu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Xc), ae = V, Wc = pu, qc = Vi, Yn = B, Qc = fe, bu = k, Xn = yu, Kc = zc, Wn = Or, Zc = Yc, Jc = mu, eg = wr, Ka = ae.setImmediate, Za = ae.clearImmediate, tg = ae.process, va = ae.Dispatch, rg = ae.Function, qn = ae.MessageChannel, ag = ae.String, fa = 0, xt = {}, Qn = "onreadystatechange", St, Ie, ca, ga;
|
|
429
|
+
bu(function() {
|
|
430
|
+
St = ae.location;
|
|
427
431
|
});
|
|
428
|
-
var
|
|
429
|
-
if (
|
|
430
|
-
var e =
|
|
431
|
-
delete
|
|
432
|
+
var Di = function(a) {
|
|
433
|
+
if (Qc(xt, a)) {
|
|
434
|
+
var e = xt[a];
|
|
435
|
+
delete xt[a], e();
|
|
432
436
|
}
|
|
433
|
-
},
|
|
437
|
+
}, da = function(a) {
|
|
434
438
|
return function() {
|
|
435
|
-
|
|
439
|
+
Di(a);
|
|
436
440
|
};
|
|
437
|
-
},
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
ae.postMessage(
|
|
441
|
+
}, Kn = function(a) {
|
|
442
|
+
Di(a.data);
|
|
443
|
+
}, Zn = function(a) {
|
|
444
|
+
ae.postMessage(ag(a), St.protocol + "//" + St.host);
|
|
441
445
|
};
|
|
442
|
-
(!
|
|
443
|
-
|
|
444
|
-
var t =
|
|
445
|
-
return
|
|
446
|
-
|
|
447
|
-
}, Ie(
|
|
448
|
-
},
|
|
449
|
-
delete
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
} :
|
|
453
|
-
|
|
454
|
-
} :
|
|
455
|
-
|
|
456
|
-
|
|
446
|
+
(!Ka || !Za) && (Ka = function(e) {
|
|
447
|
+
Zc(arguments.length, 1);
|
|
448
|
+
var t = Yn(e) ? e : rg(e), r = Kc(arguments, 1);
|
|
449
|
+
return xt[++fa] = function() {
|
|
450
|
+
Wc(t, void 0, r);
|
|
451
|
+
}, Ie(fa), fa;
|
|
452
|
+
}, Za = function(e) {
|
|
453
|
+
delete xt[e];
|
|
454
|
+
}, eg ? Ie = function(a) {
|
|
455
|
+
tg.nextTick(da(a));
|
|
456
|
+
} : va && va.now ? Ie = function(a) {
|
|
457
|
+
va.now(da(a));
|
|
458
|
+
} : qn && !Jc ? (ca = new qn(), ga = ca.port2, ca.port1.onmessage = Kn, Ie = qc(ga.postMessage, ga)) : ae.addEventListener && Yn(ae.postMessage) && !ae.importScripts && St && St.protocol !== "file:" && !bu(Zn) ? (Ie = Zn, ae.addEventListener("message", Kn, !1)) : Qn in Wn("script") ? Ie = function(a) {
|
|
459
|
+
Xn.appendChild(Wn("script"))[Qn] = function() {
|
|
460
|
+
Xn.removeChild(this), Di(a);
|
|
457
461
|
};
|
|
458
462
|
} : Ie = function(a) {
|
|
459
|
-
setTimeout(
|
|
463
|
+
setTimeout(da(a), 0);
|
|
460
464
|
});
|
|
461
|
-
var
|
|
462
|
-
set:
|
|
463
|
-
clear:
|
|
464
|
-
},
|
|
465
|
-
if (!
|
|
466
|
-
var e =
|
|
465
|
+
var xu = {
|
|
466
|
+
set: Ka,
|
|
467
|
+
clear: Za
|
|
468
|
+
}, Jn = V, ig = le, ng = Object.getOwnPropertyDescriptor, sg = function(a) {
|
|
469
|
+
if (!ig) return Jn[a];
|
|
470
|
+
var e = ng(Jn, a);
|
|
467
471
|
return e && e.value;
|
|
468
|
-
},
|
|
472
|
+
}, Tu = function() {
|
|
469
473
|
this.head = null, this.tail = null;
|
|
470
474
|
};
|
|
471
|
-
|
|
475
|
+
Tu.prototype = {
|
|
472
476
|
add: function(a) {
|
|
473
477
|
var e = { item: a, next: null }, t = this.tail;
|
|
474
478
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -481,262 +485,262 @@ du.prototype = {
|
|
|
481
485
|
}
|
|
482
486
|
}
|
|
483
487
|
};
|
|
484
|
-
var
|
|
485
|
-
if (!
|
|
486
|
-
var
|
|
488
|
+
var Ou = Tu, og = Ct, ug = /ipad|iphone|ipod/i.test(og) && typeof Pebble < "u", lg = Ct, hg = /web0s(?!.*chrome)/i.test(lg), it = V, vg = sg, es = Vi, pa = xu.set, fg = Ou, cg = mu, gg = ug, dg = hg, ya = wr, ts = it.MutationObserver || it.WebKitMutationObserver, rs = it.document, as = it.process, Xt = it.Promise, Ja = vg("queueMicrotask"), Xe, ma, ba, Wt, is;
|
|
489
|
+
if (!Ja) {
|
|
490
|
+
var qt = new fg(), Qt = function() {
|
|
487
491
|
var a, e;
|
|
488
|
-
for (
|
|
492
|
+
for (ya && (a = as.domain) && a.exit(); e = qt.get(); ) try {
|
|
489
493
|
e();
|
|
490
494
|
} catch (t) {
|
|
491
|
-
throw
|
|
495
|
+
throw qt.head && Xe(), t;
|
|
492
496
|
}
|
|
493
497
|
a && a.enter();
|
|
494
498
|
};
|
|
495
|
-
!
|
|
496
|
-
|
|
497
|
-
}) : !
|
|
498
|
-
|
|
499
|
-
}) :
|
|
500
|
-
|
|
501
|
-
} : (
|
|
502
|
-
|
|
503
|
-
}),
|
|
504
|
-
|
|
499
|
+
!cg && !ya && !dg && ts && rs ? (ma = !0, ba = rs.createTextNode(""), new ts(Qt).observe(ba, { characterData: !0 }), Xe = function() {
|
|
500
|
+
ba.data = ma = !ma;
|
|
501
|
+
}) : !gg && Xt && Xt.resolve ? (Wt = Xt.resolve(void 0), Wt.constructor = Xt, is = es(Wt.then, Wt), Xe = function() {
|
|
502
|
+
is(Qt);
|
|
503
|
+
}) : ya ? Xe = function() {
|
|
504
|
+
as.nextTick(Qt);
|
|
505
|
+
} : (pa = es(pa, it), Xe = function() {
|
|
506
|
+
pa(Qt);
|
|
507
|
+
}), Ja = function(a) {
|
|
508
|
+
qt.head || Xe(), qt.add(a);
|
|
505
509
|
};
|
|
506
510
|
}
|
|
507
|
-
var
|
|
511
|
+
var pg = Ja, yg = function(a, e) {
|
|
508
512
|
try {
|
|
509
513
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
510
514
|
} catch {
|
|
511
515
|
}
|
|
512
|
-
},
|
|
516
|
+
}, ki = function(a) {
|
|
513
517
|
try {
|
|
514
518
|
return { error: !1, value: a() };
|
|
515
519
|
} catch (e) {
|
|
516
520
|
return { error: !0, value: e };
|
|
517
521
|
}
|
|
518
|
-
},
|
|
519
|
-
|
|
520
|
-
var
|
|
521
|
-
var a =
|
|
522
|
-
if (!e &&
|
|
523
|
-
if (!
|
|
524
|
-
var t = new
|
|
522
|
+
}, mg = V, Pr = mg.Promise, bg = V, Tt = Pr, xg = B, Tg = su, Og = Ci, Sg = z, ns = ou, xa = Oi;
|
|
523
|
+
Tt && Tt.prototype;
|
|
524
|
+
var Eg = Sg("species"), ei = !1, Su = xg(bg.PromiseRejectionEvent), $g = Tg("Promise", function() {
|
|
525
|
+
var a = Og(Tt), e = a !== String(Tt);
|
|
526
|
+
if (!e && xa === 66) return !0;
|
|
527
|
+
if (!xa || xa < 51 || !/native code/.test(a)) {
|
|
528
|
+
var t = new Tt(function(n) {
|
|
525
529
|
n(1);
|
|
526
530
|
}), r = function(n) {
|
|
527
531
|
n(function() {
|
|
528
532
|
}, function() {
|
|
529
533
|
});
|
|
530
534
|
}, i = t.constructor = {};
|
|
531
|
-
if (i[
|
|
532
|
-
}) instanceof r, !
|
|
533
|
-
}
|
|
534
|
-
return !e && (
|
|
535
|
-
}),
|
|
536
|
-
CONSTRUCTOR:
|
|
537
|
-
REJECTION_EVENT:
|
|
538
|
-
SUBCLASSING:
|
|
539
|
-
}, lt = {},
|
|
535
|
+
if (i[Eg] = r, ei = t.then(function() {
|
|
536
|
+
}) instanceof r, !ei) return !0;
|
|
537
|
+
}
|
|
538
|
+
return !e && (ns === "BROWSER" || ns === "DENO") && !Su;
|
|
539
|
+
}), Rt = {
|
|
540
|
+
CONSTRUCTOR: $g,
|
|
541
|
+
REJECTION_EVENT: Su,
|
|
542
|
+
SUBCLASSING: ei
|
|
543
|
+
}, lt = {}, ss = Te, wg = TypeError, Cg = function(a) {
|
|
540
544
|
var e, t;
|
|
541
545
|
this.promise = new a(function(r, i) {
|
|
542
|
-
if (e !== void 0 || t !== void 0) throw new
|
|
546
|
+
if (e !== void 0 || t !== void 0) throw new wg("Bad Promise constructor");
|
|
543
547
|
e = r, t = i;
|
|
544
|
-
}), this.resolve =
|
|
548
|
+
}), this.resolve = ss(e), this.reject = ss(t);
|
|
545
549
|
};
|
|
546
550
|
lt.f = function(a) {
|
|
547
|
-
return new
|
|
551
|
+
return new Cg(a);
|
|
548
552
|
};
|
|
549
|
-
var
|
|
553
|
+
var Ag = ee, dr = wr, we = V, nt = Y, os = Ue, us = uu, Pg = Cr, Rg = sc, Ng = Te, ur = B, Ig = ve, Mg = lc, _g = gu, Eu = xu.set, Li = pg, Vg = yg, Dg = ki, kg = Ou, $u = Er, pr = Pr, Bi = Rt, wu = lt, Rr = "Promise", Cu = Bi.CONSTRUCTOR, Lg = Bi.REJECTION_EVENT, Bg = Bi.SUBCLASSING, Ta = $u.getterFor(Rr), jg = $u.set, Qe = pr && pr.prototype, De = pr, Kt = Qe, Au = we.TypeError, ti = we.document, ji = we.process, ri = wu.f, Fg = ri, Ug = !!(ti && ti.createEvent && we.dispatchEvent), Pu = "unhandledrejection", Gg = "rejectionhandled", ls = 0, Ru = 1, zg = 2, Fi = 1, Nu = 2, Zt, hs, Hg, vs, Iu = function(a) {
|
|
550
554
|
var e;
|
|
551
|
-
return
|
|
552
|
-
},
|
|
553
|
-
var t = e.value, r = e.state ===
|
|
555
|
+
return Ig(a) && ur(e = a.then) ? e : !1;
|
|
556
|
+
}, Mu = function(a, e) {
|
|
557
|
+
var t = e.value, r = e.state === Ru, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
554
558
|
try {
|
|
555
|
-
i ? (r || (e.rejection ===
|
|
559
|
+
i ? (r || (e.rejection === Nu && Xg(e), e.rejection = Fi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Au("Promise-chain cycle")) : (l = Iu(u)) ? nt(l, u, n, o) : n(u)) : o(t);
|
|
556
560
|
} catch (f) {
|
|
557
561
|
s && !h && s.exit(), o(f);
|
|
558
562
|
}
|
|
559
|
-
},
|
|
560
|
-
a.notified || (a.notified = !0,
|
|
563
|
+
}, _u = function(a, e) {
|
|
564
|
+
a.notified || (a.notified = !0, Li(function() {
|
|
561
565
|
for (var t = a.reactions, r; r = t.get(); )
|
|
562
|
-
|
|
563
|
-
a.notified = !1, e && !a.rejection &&
|
|
566
|
+
Mu(r, a);
|
|
567
|
+
a.notified = !1, e && !a.rejection && Yg(a);
|
|
564
568
|
}));
|
|
565
|
-
},
|
|
569
|
+
}, Vu = function(a, e, t) {
|
|
566
570
|
var r, i;
|
|
567
|
-
|
|
568
|
-
},
|
|
569
|
-
nt(
|
|
570
|
-
var e = a.facade, t = a.value, r =
|
|
571
|
-
if (r && (i =
|
|
572
|
-
|
|
573
|
-
}), a.rejection =
|
|
571
|
+
Ug ? (r = ti.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Lg && (i = we["on" + a]) ? i(r) : a === Pu && Vg("Unhandled promise rejection", t);
|
|
572
|
+
}, Yg = function(a) {
|
|
573
|
+
nt(Eu, we, function() {
|
|
574
|
+
var e = a.facade, t = a.value, r = fs(a), i;
|
|
575
|
+
if (r && (i = Dg(function() {
|
|
576
|
+
dr ? ji.emit("unhandledRejection", t, e) : Vu(Pu, e, t);
|
|
577
|
+
}), a.rejection = dr || fs(a) ? Nu : Fi, i.error))
|
|
574
578
|
throw i.value;
|
|
575
579
|
});
|
|
576
|
-
},
|
|
577
|
-
return a.rejection !==
|
|
578
|
-
},
|
|
579
|
-
nt(
|
|
580
|
+
}, fs = function(a) {
|
|
581
|
+
return a.rejection !== Fi && !a.parent;
|
|
582
|
+
}, Xg = function(a) {
|
|
583
|
+
nt(Eu, we, function() {
|
|
580
584
|
var e = a.facade;
|
|
581
|
-
|
|
585
|
+
dr ? ji.emit("rejectionHandled", e) : Vu(Gg, e, a.value);
|
|
582
586
|
});
|
|
583
587
|
}, Je = function(a, e, t) {
|
|
584
588
|
return function(r) {
|
|
585
589
|
a(e, r, t);
|
|
586
590
|
};
|
|
587
591
|
}, tt = function(a, e, t) {
|
|
588
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
589
|
-
},
|
|
592
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = zg, _u(a, !0));
|
|
593
|
+
}, ai = function(a, e, t) {
|
|
590
594
|
if (!a.done) {
|
|
591
595
|
a.done = !0, t && (a = t);
|
|
592
596
|
try {
|
|
593
|
-
if (a.facade === e) throw new
|
|
594
|
-
var r =
|
|
595
|
-
r ?
|
|
597
|
+
if (a.facade === e) throw new Au("Promise can't be resolved itself");
|
|
598
|
+
var r = Iu(e);
|
|
599
|
+
r ? Li(function() {
|
|
596
600
|
var i = { done: !1 };
|
|
597
601
|
try {
|
|
598
602
|
nt(
|
|
599
603
|
r,
|
|
600
604
|
e,
|
|
601
|
-
Je(
|
|
605
|
+
Je(ai, i, a),
|
|
602
606
|
Je(tt, i, a)
|
|
603
607
|
);
|
|
604
608
|
} catch (n) {
|
|
605
609
|
tt(i, n, a);
|
|
606
610
|
}
|
|
607
|
-
}) : (a.value = e, a.state =
|
|
611
|
+
}) : (a.value = e, a.state = Ru, _u(a, !1));
|
|
608
612
|
} catch (i) {
|
|
609
613
|
tt({ done: !1 }, i, a);
|
|
610
614
|
}
|
|
611
615
|
}
|
|
612
616
|
};
|
|
613
|
-
if (
|
|
614
|
-
|
|
615
|
-
var t =
|
|
617
|
+
if (Cu && (De = function(e) {
|
|
618
|
+
Mg(this, Kt), Ng(e), nt(Zt, this);
|
|
619
|
+
var t = Ta(this);
|
|
616
620
|
try {
|
|
617
|
-
e(Je(
|
|
621
|
+
e(Je(ai, t), Je(tt, t));
|
|
618
622
|
} catch (r) {
|
|
619
623
|
tt(t, r);
|
|
620
624
|
}
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
type:
|
|
625
|
+
}, Kt = De.prototype, Zt = function(e) {
|
|
626
|
+
jg(this, {
|
|
627
|
+
type: Rr,
|
|
624
628
|
done: !1,
|
|
625
629
|
notified: !1,
|
|
626
630
|
parent: !1,
|
|
627
|
-
reactions: new
|
|
631
|
+
reactions: new kg(),
|
|
628
632
|
rejection: !1,
|
|
629
|
-
state:
|
|
630
|
-
value:
|
|
633
|
+
state: ls,
|
|
634
|
+
value: null
|
|
631
635
|
});
|
|
632
|
-
},
|
|
633
|
-
var r =
|
|
634
|
-
return r.parent = !0, i.ok =
|
|
635
|
-
|
|
636
|
+
}, Zt.prototype = os(Kt, "then", function(e, t) {
|
|
637
|
+
var r = Ta(this), i = ri(_g(this, De));
|
|
638
|
+
return r.parent = !0, i.ok = ur(e) ? e : !0, i.fail = ur(t) && t, i.domain = dr ? ji.domain : void 0, r.state === ls ? r.reactions.add(i) : Li(function() {
|
|
639
|
+
Mu(i, r);
|
|
636
640
|
}), i.promise;
|
|
637
|
-
}),
|
|
638
|
-
var a = new
|
|
639
|
-
this.promise = a, this.resolve = Je(
|
|
640
|
-
},
|
|
641
|
-
return a === De || a ===
|
|
642
|
-
},
|
|
643
|
-
|
|
641
|
+
}), hs = function() {
|
|
642
|
+
var a = new Zt(), e = Ta(a);
|
|
643
|
+
this.promise = a, this.resolve = Je(ai, e), this.reject = Je(tt, e);
|
|
644
|
+
}, wu.f = ri = function(a) {
|
|
645
|
+
return a === De || a === Hg ? new hs(a) : Fg(a);
|
|
646
|
+
}, ur(pr) && Qe !== Object.prototype)) {
|
|
647
|
+
vs = Qe.then, Bg || os(Qe, "then", function(e, t) {
|
|
644
648
|
var r = this;
|
|
645
649
|
return new De(function(i, n) {
|
|
646
|
-
nt(
|
|
650
|
+
nt(vs, r, i, n);
|
|
647
651
|
}).then(e, t);
|
|
648
652
|
}, { unsafe: !0 });
|
|
649
653
|
try {
|
|
650
654
|
delete Qe.constructor;
|
|
651
655
|
} catch {
|
|
652
656
|
}
|
|
653
|
-
|
|
657
|
+
us && us(Qe, Kt);
|
|
654
658
|
}
|
|
655
|
-
|
|
659
|
+
Ag({ global: !0, constructor: !0, wrap: !0, forced: Cu }, {
|
|
656
660
|
Promise: De
|
|
657
661
|
});
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
var
|
|
661
|
-
return a !== void 0 && (
|
|
662
|
-
},
|
|
663
|
-
if (!
|
|
664
|
-
},
|
|
665
|
-
var t = arguments.length < 2 ?
|
|
666
|
-
if (
|
|
667
|
-
throw new od(
|
|
668
|
-
},
|
|
662
|
+
Pg(De, Rr, !1);
|
|
663
|
+
Rg(Rr);
|
|
664
|
+
var Nt = {}, Wg = z, qg = Nt, Qg = Wg("iterator"), Kg = Array.prototype, Zg = function(a) {
|
|
665
|
+
return a !== void 0 && (qg.Array === a || Kg[Qg] === a);
|
|
666
|
+
}, Jg = Mi, cs = ot, ed = je, td = Nt, rd = z, ad = rd("iterator"), Du = function(a) {
|
|
667
|
+
if (!ed(a)) return cs(a, ad) || cs(a, "@@iterator") || td[Jg(a)];
|
|
668
|
+
}, id = Y, nd = Te, sd = J, od = xr, ud = Du, ld = TypeError, hd = function(a, e) {
|
|
669
|
+
var t = arguments.length < 2 ? ud(a) : e;
|
|
670
|
+
if (nd(t)) return sd(id(t, a));
|
|
671
|
+
throw new ld(od(a) + " is not iterable");
|
|
672
|
+
}, vd = Y, gs = J, fd = ot, cd = function(a, e, t) {
|
|
669
673
|
var r, i;
|
|
670
|
-
|
|
674
|
+
gs(a);
|
|
671
675
|
try {
|
|
672
|
-
if (r =
|
|
676
|
+
if (r = fd(a, "return"), !r) {
|
|
673
677
|
if (e === "throw") throw t;
|
|
674
678
|
return t;
|
|
675
679
|
}
|
|
676
|
-
r =
|
|
680
|
+
r = vd(r, a);
|
|
677
681
|
} catch (n) {
|
|
678
682
|
i = !0, r = n;
|
|
679
683
|
}
|
|
680
684
|
if (e === "throw") throw t;
|
|
681
685
|
if (i) throw r;
|
|
682
|
-
return
|
|
683
|
-
},
|
|
686
|
+
return gs(r), t;
|
|
687
|
+
}, gd = Vi, dd = Y, pd = J, yd = xr, md = Zg, bd = Ni, ds = br, xd = hd, Td = Du, ps = cd, Od = TypeError, lr = function(a, e) {
|
|
684
688
|
this.stopped = a, this.result = e;
|
|
685
|
-
},
|
|
686
|
-
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u =
|
|
687
|
-
return l &&
|
|
689
|
+
}, ys = lr.prototype, ku = function(a, e, t) {
|
|
690
|
+
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u = gd(e, r), l, h, f, c, v, d, g, p = function(x) {
|
|
691
|
+
return l && ps(l, "normal", x), new lr(!0, x);
|
|
688
692
|
}, y = function(x) {
|
|
689
|
-
return i ? (
|
|
693
|
+
return i ? (pd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
|
690
694
|
};
|
|
691
695
|
if (n)
|
|
692
696
|
l = a.iterator;
|
|
693
697
|
else if (o)
|
|
694
698
|
l = a;
|
|
695
699
|
else {
|
|
696
|
-
if (h =
|
|
697
|
-
if (
|
|
698
|
-
for (f = 0, c =
|
|
699
|
-
if (v = y(a[f]), v &&
|
|
700
|
-
return new
|
|
700
|
+
if (h = Td(a), !h) throw new Od(yd(a) + " is not iterable");
|
|
701
|
+
if (md(h)) {
|
|
702
|
+
for (f = 0, c = bd(a); c > f; f++)
|
|
703
|
+
if (v = y(a[f]), v && ds(ys, v)) return v;
|
|
704
|
+
return new lr(!1);
|
|
701
705
|
}
|
|
702
|
-
l =
|
|
706
|
+
l = xd(a, h);
|
|
703
707
|
}
|
|
704
|
-
for (d = n ? a.next : l.next; !(g =
|
|
708
|
+
for (d = n ? a.next : l.next; !(g = dd(d, l)).done; ) {
|
|
705
709
|
try {
|
|
706
710
|
v = y(g.value);
|
|
707
711
|
} catch (x) {
|
|
708
|
-
|
|
712
|
+
ps(l, "throw", x);
|
|
709
713
|
}
|
|
710
|
-
if (typeof v == "object" && v &&
|
|
714
|
+
if (typeof v == "object" && v && ds(ys, v)) return v;
|
|
711
715
|
}
|
|
712
|
-
return new
|
|
713
|
-
},
|
|
716
|
+
return new lr(!1);
|
|
717
|
+
}, Sd = z, Lu = Sd("iterator"), Bu = !1;
|
|
714
718
|
try {
|
|
715
|
-
var
|
|
719
|
+
var Ed = 0, ms = {
|
|
716
720
|
next: function() {
|
|
717
|
-
return { done: !!
|
|
721
|
+
return { done: !!Ed++ };
|
|
718
722
|
},
|
|
719
723
|
return: function() {
|
|
720
|
-
|
|
724
|
+
Bu = !0;
|
|
721
725
|
}
|
|
722
726
|
};
|
|
723
|
-
|
|
727
|
+
ms[Lu] = function() {
|
|
724
728
|
return this;
|
|
725
|
-
}, Array.from(
|
|
729
|
+
}, Array.from(ms, function() {
|
|
726
730
|
throw 2;
|
|
727
731
|
});
|
|
728
732
|
} catch {
|
|
729
733
|
}
|
|
730
|
-
var
|
|
734
|
+
var $d = function(a, e) {
|
|
731
735
|
try {
|
|
732
|
-
if (!e && !
|
|
736
|
+
if (!e && !Bu) return !1;
|
|
733
737
|
} catch {
|
|
734
738
|
return !1;
|
|
735
739
|
}
|
|
736
740
|
var t = !1;
|
|
737
741
|
try {
|
|
738
742
|
var r = {};
|
|
739
|
-
r[
|
|
743
|
+
r[Lu] = function() {
|
|
740
744
|
return {
|
|
741
745
|
next: function() {
|
|
742
746
|
return { done: t = !0 };
|
|
@@ -746,17 +750,17 @@ var Sd = function(a, e) {
|
|
|
746
750
|
} catch {
|
|
747
751
|
}
|
|
748
752
|
return t;
|
|
749
|
-
},
|
|
750
|
-
|
|
753
|
+
}, wd = Pr, Cd = $d, Ad = Rt.CONSTRUCTOR, ju = Ad || !Cd(function(a) {
|
|
754
|
+
wd.all(a).then(void 0, function() {
|
|
751
755
|
});
|
|
752
|
-
}),
|
|
753
|
-
|
|
756
|
+
}), Pd = ee, Rd = Y, Nd = Te, Id = lt, Md = ki, _d = ku, Vd = ju;
|
|
757
|
+
Pd({ target: "Promise", stat: !0, forced: Vd }, {
|
|
754
758
|
all: function(e) {
|
|
755
|
-
var t = this, r =
|
|
756
|
-
var s =
|
|
757
|
-
|
|
759
|
+
var t = this, r = Id.f(t), i = r.resolve, n = r.reject, o = Md(function() {
|
|
760
|
+
var s = Nd(t.resolve), u = [], l = 0, h = 1;
|
|
761
|
+
_d(e, function(f) {
|
|
758
762
|
var c = l++, v = !1;
|
|
759
|
-
h++,
|
|
763
|
+
h++, Rd(s, t, f).then(function(d) {
|
|
760
764
|
v || (v = !0, u[c] = d, --h || i(u));
|
|
761
765
|
}, n);
|
|
762
766
|
}), --h || i(u);
|
|
@@ -764,47 +768,47 @@ Cd({ target: "Promise", stat: !0, forced: Md }, {
|
|
|
764
768
|
return o.error && n(o.value), r.promise;
|
|
765
769
|
}
|
|
766
770
|
});
|
|
767
|
-
var
|
|
768
|
-
|
|
771
|
+
var Dd = ee, kd = Rt.CONSTRUCTOR, ii = Pr, Ld = Fe, Bd = B, jd = Ue, bs = ii && ii.prototype;
|
|
772
|
+
Dd({ target: "Promise", proto: !0, forced: kd, real: !0 }, {
|
|
769
773
|
catch: function(a) {
|
|
770
774
|
return this.then(void 0, a);
|
|
771
775
|
}
|
|
772
776
|
});
|
|
773
|
-
if (
|
|
774
|
-
var
|
|
775
|
-
|
|
777
|
+
if (Bd(ii)) {
|
|
778
|
+
var xs = Ld("Promise").prototype.catch;
|
|
779
|
+
bs.catch !== xs && jd(bs, "catch", xs, { unsafe: !0 });
|
|
776
780
|
}
|
|
777
|
-
var
|
|
778
|
-
|
|
781
|
+
var Fd = ee, Ud = Y, Gd = Te, zd = lt, Hd = ki, Yd = ku, Xd = ju;
|
|
782
|
+
Fd({ target: "Promise", stat: !0, forced: Xd }, {
|
|
779
783
|
race: function(e) {
|
|
780
|
-
var t = this, r =
|
|
781
|
-
var o =
|
|
782
|
-
|
|
783
|
-
|
|
784
|
+
var t = this, r = zd.f(t), i = r.reject, n = Hd(function() {
|
|
785
|
+
var o = Gd(t.resolve);
|
|
786
|
+
Yd(e, function(s) {
|
|
787
|
+
Ud(o, t, s).then(r.resolve, i);
|
|
784
788
|
});
|
|
785
789
|
});
|
|
786
790
|
return n.error && i(n.value), r.promise;
|
|
787
791
|
}
|
|
788
792
|
});
|
|
789
|
-
var
|
|
790
|
-
|
|
793
|
+
var Wd = ee, qd = lt, Qd = Rt.CONSTRUCTOR;
|
|
794
|
+
Wd({ target: "Promise", stat: !0, forced: Qd }, {
|
|
791
795
|
reject: function(e) {
|
|
792
|
-
var t =
|
|
796
|
+
var t = qd.f(this), r = t.reject;
|
|
793
797
|
return r(e), t.promise;
|
|
794
798
|
}
|
|
795
799
|
});
|
|
796
|
-
var
|
|
797
|
-
if (
|
|
798
|
-
var t =
|
|
800
|
+
var Kd = J, Zd = ve, Jd = lt, ep = function(a, e) {
|
|
801
|
+
if (Kd(a), Zd(e) && e.constructor === a) return e;
|
|
802
|
+
var t = Jd.f(a), r = t.resolve;
|
|
799
803
|
return r(e), t.promise;
|
|
800
|
-
},
|
|
801
|
-
|
|
802
|
-
|
|
804
|
+
}, tp = ee, rp = Fe, ap = Rt.CONSTRUCTOR, ip = ep;
|
|
805
|
+
rp("Promise");
|
|
806
|
+
tp({ target: "Promise", stat: !0, forced: ap }, {
|
|
803
807
|
resolve: function(e) {
|
|
804
|
-
return
|
|
808
|
+
return ip(this, e);
|
|
805
809
|
}
|
|
806
810
|
});
|
|
807
|
-
function
|
|
811
|
+
function Ts(a, e, t, r, i, n, o) {
|
|
808
812
|
try {
|
|
809
813
|
var s = a[n](o), u = s.value;
|
|
810
814
|
} catch (l) {
|
|
@@ -818,102 +822,102 @@ function xe(a) {
|
|
|
818
822
|
return new Promise(function(r, i) {
|
|
819
823
|
var n = a.apply(e, t);
|
|
820
824
|
function o(u) {
|
|
821
|
-
|
|
825
|
+
Ts(n, r, i, o, s, "next", u);
|
|
822
826
|
}
|
|
823
827
|
function s(u) {
|
|
824
|
-
|
|
828
|
+
Ts(n, r, i, o, s, "throw", u);
|
|
825
829
|
}
|
|
826
830
|
o(void 0);
|
|
827
831
|
});
|
|
828
832
|
};
|
|
829
833
|
}
|
|
830
|
-
var
|
|
831
|
-
if (
|
|
832
|
-
return
|
|
833
|
-
},
|
|
834
|
-
var a =
|
|
834
|
+
var np = Mi, sp = String, pe = function(a) {
|
|
835
|
+
if (np(a) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
836
|
+
return sp(a);
|
|
837
|
+
}, op = J, Fu = function() {
|
|
838
|
+
var a = op(this), e = "";
|
|
835
839
|
return a.hasIndices && (e += "d"), a.global && (e += "g"), a.ignoreCase && (e += "i"), a.multiline && (e += "m"), a.dotAll && (e += "s"), a.unicode && (e += "u"), a.unicodeSets && (e += "v"), a.sticky && (e += "y"), e;
|
|
836
|
-
},
|
|
837
|
-
var a =
|
|
840
|
+
}, Ui = k, up = V, Gi = up.RegExp, zi = Ui(function() {
|
|
841
|
+
var a = Gi("a", "y");
|
|
838
842
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
839
|
-
}),
|
|
840
|
-
return !
|
|
841
|
-
}),
|
|
842
|
-
var a =
|
|
843
|
+
}), lp = zi || Ui(function() {
|
|
844
|
+
return !Gi("a", "y").sticky;
|
|
845
|
+
}), hp = zi || Ui(function() {
|
|
846
|
+
var a = Gi("^r", "gy");
|
|
843
847
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
844
|
-
}),
|
|
845
|
-
BROKEN_CARET:
|
|
846
|
-
MISSED_STICKY:
|
|
847
|
-
UNSUPPORTED_Y:
|
|
848
|
-
},
|
|
849
|
-
return
|
|
850
|
-
},
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
for (var r =
|
|
848
|
+
}), Uu = {
|
|
849
|
+
BROKEN_CARET: hp,
|
|
850
|
+
MISSED_STICKY: lp,
|
|
851
|
+
UNSUPPORTED_Y: zi
|
|
852
|
+
}, Gu = {}, vp = iu, fp = Ii, cp = Object.keys || function(e) {
|
|
853
|
+
return vp(e, fp);
|
|
854
|
+
}, gp = le, dp = Qo, pp = Oe, yp = J, mp = wt, bp = cp;
|
|
855
|
+
Gu.f = gp && !dp ? Object.defineProperties : function(e, t) {
|
|
856
|
+
yp(e);
|
|
857
|
+
for (var r = mp(t), i = bp(t), n = i.length, o = 0, s; n > o; ) pp.f(e, s = i[o++], r[s]);
|
|
854
858
|
return e;
|
|
855
859
|
};
|
|
856
|
-
var
|
|
857
|
-
},
|
|
858
|
-
return
|
|
859
|
-
},
|
|
860
|
-
a.write(
|
|
860
|
+
var xp = J, Tp = Gu, Os = Ii, Op = Pi, Sp = yu, Ep = Or, $p = Ai, Ss = ">", Es = "<", ni = "prototype", si = "script", zu = $p("IE_PROTO"), Oa = function() {
|
|
861
|
+
}, Hu = function(a) {
|
|
862
|
+
return Es + si + Ss + a + Es + "/" + si + Ss;
|
|
863
|
+
}, $s = function(a) {
|
|
864
|
+
a.write(Hu("")), a.close();
|
|
861
865
|
var e = a.parentWindow.Object;
|
|
862
866
|
return a = null, e;
|
|
863
|
-
},
|
|
864
|
-
var a =
|
|
865
|
-
return a.style.display = "none",
|
|
866
|
-
},
|
|
867
|
+
}, wp = function() {
|
|
868
|
+
var a = Ep("iframe"), e = "java" + si + ":", t;
|
|
869
|
+
return a.style.display = "none", Sp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Hu("document.F=Object")), t.close(), t.F;
|
|
870
|
+
}, Jt, hr = function() {
|
|
867
871
|
try {
|
|
868
|
-
|
|
872
|
+
Jt = new ActiveXObject("htmlfile");
|
|
869
873
|
} catch {
|
|
870
874
|
}
|
|
871
|
-
|
|
872
|
-
for (var a =
|
|
873
|
-
return
|
|
875
|
+
hr = typeof document < "u" ? document.domain && Jt ? $s(Jt) : wp() : $s(Jt);
|
|
876
|
+
for (var a = Os.length; a--; ) delete hr[ni][Os[a]];
|
|
877
|
+
return hr();
|
|
874
878
|
};
|
|
875
|
-
|
|
876
|
-
var
|
|
879
|
+
Op[zu] = !0;
|
|
880
|
+
var Hi = Object.create || function(e, t) {
|
|
877
881
|
var r;
|
|
878
|
-
return e !== null ? (
|
|
879
|
-
},
|
|
880
|
-
var a =
|
|
882
|
+
return e !== null ? (Oa[ni] = xp(e), r = new Oa(), Oa[ni] = null, r[zu] = e) : r = hr(), t === void 0 ? r : Tp.f(r, t);
|
|
883
|
+
}, Cp = k, Ap = V, Pp = Ap.RegExp, Rp = Cp(function() {
|
|
884
|
+
var a = Pp(".", "s");
|
|
881
885
|
return !(a.dotAll && a.test(`
|
|
882
886
|
`) && a.flags === "s");
|
|
883
|
-
}),
|
|
884
|
-
var a =
|
|
887
|
+
}), Np = k, Ip = V, Mp = Ip.RegExp, _p = Np(function() {
|
|
888
|
+
var a = Mp("(?<a>b)", "g");
|
|
885
889
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
886
|
-
}), et = Y,
|
|
890
|
+
}), et = Y, Nr = L, Vp = pe, Dp = Fu, kp = Uu, Lp = $i, Bp = Hi, jp = Er.get, Fp = Rp, Up = _p, Gp = Lp("native-string-replace", String.prototype.replace), yr = RegExp.prototype.exec, oi = yr, zp = Nr("".charAt), Hp = Nr("".indexOf), Yp = Nr("".replace), Sa = Nr("".slice), ui = function() {
|
|
887
891
|
var a = /a/, e = /b*/g;
|
|
888
|
-
return et(
|
|
889
|
-
}(),
|
|
890
|
-
|
|
891
|
-
var t = this, r =
|
|
892
|
+
return et(yr, a, "a"), et(yr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
893
|
+
}(), Yu = kp.BROKEN_CARET, li = /()??/.exec("")[1] !== void 0, Xp = ui || li || Yu || Fp || Up;
|
|
894
|
+
Xp && (oi = function(e) {
|
|
895
|
+
var t = this, r = jp(t), i = Vp(e), n = r.raw, o, s, u, l, h, f, c;
|
|
892
896
|
if (n)
|
|
893
|
-
return n.lastIndex = t.lastIndex, o = et(
|
|
894
|
-
var v = r.groups, d =
|
|
895
|
-
if (d && (g =
|
|
896
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)),
|
|
897
|
+
return n.lastIndex = t.lastIndex, o = et(oi, n, i), t.lastIndex = n.lastIndex, o;
|
|
898
|
+
var v = r.groups, d = Yu && t.sticky, g = et(Dp, t), p = t.source, y = 0, x = i;
|
|
899
|
+
if (d && (g = Yp(g, "y", ""), Hp(g, "g") === -1 && (g += "g"), x = Sa(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && zp(i, t.lastIndex - 1) !== `
|
|
900
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), li && (s = new RegExp("^" + p + "$(?!\\s)", g)), ui && (u = t.lastIndex), l = et(yr, d ? s : t, x), d ? l ? (l.input = Sa(l.input, y), l[0] = Sa(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : ui && l && (t.lastIndex = t.global ? l.index + l[0].length : u), li && l && l.length > 1 && et(Gp, l[0], s, function() {
|
|
897
901
|
for (h = 1; h < arguments.length - 2; h++)
|
|
898
902
|
arguments[h] === void 0 && (l[h] = void 0);
|
|
899
903
|
}), l && v)
|
|
900
|
-
for (l.groups = f =
|
|
904
|
+
for (l.groups = f = Bp(null), h = 0; h < v.length; h++)
|
|
901
905
|
c = v[h], f[c[0]] = l[c[1]];
|
|
902
906
|
return l;
|
|
903
907
|
});
|
|
904
|
-
var
|
|
905
|
-
|
|
906
|
-
exec:
|
|
908
|
+
var Yi = oi, Wp = ee, ws = Yi;
|
|
909
|
+
Wp({ target: "RegExp", proto: !0, forced: /./.exec !== ws }, {
|
|
910
|
+
exec: ws
|
|
907
911
|
});
|
|
908
|
-
var
|
|
909
|
-
var i =
|
|
912
|
+
var Cs = Y, As = Ue, qp = Yi, Ps = k, Xu = z, Qp = At, Kp = Xu("species"), Ea = RegExp.prototype, Xi = function(a, e, t, r) {
|
|
913
|
+
var i = Xu(a), n = !Ps(function() {
|
|
910
914
|
var l = {};
|
|
911
915
|
return l[i] = function() {
|
|
912
916
|
return 7;
|
|
913
917
|
}, ""[a](l) !== 7;
|
|
914
|
-
}), o = n && !
|
|
918
|
+
}), o = n && !Ps(function() {
|
|
915
919
|
var l = !1, h = /a/;
|
|
916
|
-
return a === "split" && (h = {}, h.constructor = {}, h.constructor[
|
|
920
|
+
return a === "split" && (h = {}, h.constructor = {}, h.constructor[Kp] = function() {
|
|
917
921
|
return h;
|
|
918
922
|
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
|
|
919
923
|
return l = !0, null;
|
|
@@ -922,219 +926,219 @@ var Os = Y, Ss = Ue, Xp = zi, Es = k, Uu = z, Wp = wt, qp = Uu("species"), Oa =
|
|
|
922
926
|
if (!n || !o || t) {
|
|
923
927
|
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
|
924
928
|
var d = h.exec;
|
|
925
|
-
return d ===
|
|
929
|
+
return d === qp || d === Ea.exec ? n && !v ? { done: !0, value: Cs(s, h, f, c) } : { done: !0, value: Cs(l, f, h, c) } : { done: !1 };
|
|
926
930
|
});
|
|
927
|
-
|
|
931
|
+
As(String.prototype, a, u[0]), As(Ea, i, u[1]);
|
|
928
932
|
}
|
|
929
|
-
r &&
|
|
930
|
-
},
|
|
933
|
+
r && Qp(Ea[i], "sham", !0);
|
|
934
|
+
}, Wi = L, Zp = $r, Jp = pe, ey = he, ty = Wi("".charAt), Rs = Wi("".charCodeAt), ry = Wi("".slice), Ns = function(a) {
|
|
931
935
|
return function(e, t) {
|
|
932
|
-
var r =
|
|
933
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
|
936
|
+
var r = Jp(ey(e)), i = Zp(t), n = r.length, o, s;
|
|
937
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = Rs(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Rs(r, i + 1)) < 56320 || s > 57343 ? a ? ty(r, i) : o : a ? ry(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
934
938
|
};
|
|
935
|
-
},
|
|
939
|
+
}, ay = {
|
|
936
940
|
// `String.prototype.codePointAt` method
|
|
937
941
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
938
|
-
codeAt:
|
|
942
|
+
codeAt: Ns(!1),
|
|
939
943
|
// `String.prototype.at` method
|
|
940
944
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
941
|
-
charAt:
|
|
942
|
-
},
|
|
943
|
-
return e + (t ?
|
|
944
|
-
},
|
|
945
|
+
charAt: Ns(!0)
|
|
946
|
+
}, iy = ay.charAt, qi = function(a, e, t) {
|
|
947
|
+
return e + (t ? iy(a, e).length : 1);
|
|
948
|
+
}, Is = Y, ny = J, sy = B, oy = Be, uy = Yi, ly = TypeError, Qi = function(a, e) {
|
|
945
949
|
var t = a.exec;
|
|
946
|
-
if (
|
|
947
|
-
var r =
|
|
948
|
-
return r !== null &&
|
|
949
|
-
}
|
|
950
|
-
if (
|
|
951
|
-
throw new
|
|
952
|
-
},
|
|
953
|
-
|
|
950
|
+
if (sy(t)) {
|
|
951
|
+
var r = Is(t, a, e);
|
|
952
|
+
return r !== null && ny(r), r;
|
|
953
|
+
}
|
|
954
|
+
if (oy(a) === "RegExp") return Is(uy, a, e);
|
|
955
|
+
throw new ly("RegExp#exec called on incompatible receiver");
|
|
956
|
+
}, hy = Y, vy = Xi, fy = J, cy = je, gy = ut, $a = pe, dy = he, py = ot, yy = qi, Ms = Qi;
|
|
957
|
+
vy("match", function(a, e, t) {
|
|
954
958
|
return [
|
|
955
959
|
// `String.prototype.match` method
|
|
956
960
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
957
961
|
function(i) {
|
|
958
|
-
var n =
|
|
959
|
-
return o ?
|
|
962
|
+
var n = dy(this), o = cy(i) ? void 0 : py(i, a);
|
|
963
|
+
return o ? hy(o, i, n) : new RegExp(i)[a]($a(n));
|
|
960
964
|
},
|
|
961
965
|
// `RegExp.prototype[@@match]` method
|
|
962
966
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
963
967
|
function(r) {
|
|
964
|
-
var i =
|
|
968
|
+
var i = fy(this), n = $a(r), o = t(e, i, n);
|
|
965
969
|
if (o.done) return o.value;
|
|
966
|
-
if (!i.global) return
|
|
970
|
+
if (!i.global) return Ms(i, n);
|
|
967
971
|
var s = i.unicode;
|
|
968
972
|
i.lastIndex = 0;
|
|
969
|
-
for (var u = [], l = 0, h; (h =
|
|
970
|
-
var f =
|
|
971
|
-
u[l] = f, f === "" && (i.lastIndex =
|
|
973
|
+
for (var u = [], l = 0, h; (h = Ms(i, n)) !== null; ) {
|
|
974
|
+
var f = $a(h[0]);
|
|
975
|
+
u[l] = f, f === "" && (i.lastIndex = yy(n, gy(i.lastIndex), s)), l++;
|
|
972
976
|
}
|
|
973
977
|
return l === 0 ? null : u;
|
|
974
978
|
}
|
|
975
979
|
];
|
|
976
980
|
});
|
|
977
|
-
var
|
|
978
|
-
var o = t + a.length, s = r.length, u =
|
|
979
|
-
return i !== void 0 && (i =
|
|
981
|
+
var Ki = L, my = Tr, by = Math.floor, wa = Ki("".charAt), xy = Ki("".replace), Ca = Ki("".slice), Ty = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Oy = /\$([$&'`]|\d{1,2})/g, Sy = function(a, e, t, r, i, n) {
|
|
982
|
+
var o = t + a.length, s = r.length, u = Oy;
|
|
983
|
+
return i !== void 0 && (i = my(i), u = Ty), xy(n, u, function(l, h) {
|
|
980
984
|
var f;
|
|
981
|
-
switch (
|
|
985
|
+
switch (wa(h, 0)) {
|
|
982
986
|
case "$":
|
|
983
987
|
return "$";
|
|
984
988
|
case "&":
|
|
985
989
|
return a;
|
|
986
990
|
case "`":
|
|
987
|
-
return
|
|
991
|
+
return Ca(e, 0, t);
|
|
988
992
|
case "'":
|
|
989
|
-
return
|
|
993
|
+
return Ca(e, o);
|
|
990
994
|
case "<":
|
|
991
|
-
f = i[
|
|
995
|
+
f = i[Ca(h, 1, -1)];
|
|
992
996
|
break;
|
|
993
997
|
default:
|
|
994
998
|
var c = +h;
|
|
995
999
|
if (c === 0) return l;
|
|
996
1000
|
if (c > s) {
|
|
997
|
-
var v =
|
|
998
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
|
1001
|
+
var v = by(c / 10);
|
|
1002
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? wa(h, 1) : r[v - 1] + wa(h, 1) : l;
|
|
999
1003
|
}
|
|
1000
1004
|
f = r[c - 1];
|
|
1001
1005
|
}
|
|
1002
1006
|
return f === void 0 ? "" : f;
|
|
1003
1007
|
});
|
|
1004
|
-
},
|
|
1008
|
+
}, Ey = pu, _s = Y, Ir = L, $y = Xi, wy = k, Cy = J, Ay = B, Py = je, Ry = $r, Ny = ut, We = pe, Iy = he, My = qi, _y = ot, Vy = Sy, Dy = Qi, ky = z, hi = ky("replace"), Ly = Math.max, By = Math.min, jy = Ir([].concat), Aa = Ir([].push), Vs = Ir("".indexOf), Ds = Ir("".slice), Fy = function(a) {
|
|
1005
1009
|
return a === void 0 ? a : String(a);
|
|
1006
|
-
},
|
|
1010
|
+
}, Uy = function() {
|
|
1007
1011
|
return "a".replace(/./, "$0") === "$0";
|
|
1008
|
-
}(),
|
|
1009
|
-
return /./[
|
|
1010
|
-
}(),
|
|
1012
|
+
}(), ks = function() {
|
|
1013
|
+
return /./[hi] ? /./[hi]("a", "$0") === "" : !1;
|
|
1014
|
+
}(), Gy = !wy(function() {
|
|
1011
1015
|
var a = /./;
|
|
1012
1016
|
return a.exec = function() {
|
|
1013
1017
|
var e = [];
|
|
1014
1018
|
return e.groups = { a: "7" }, e;
|
|
1015
1019
|
}, "".replace(a, "$<a>") !== "7";
|
|
1016
1020
|
});
|
|
1017
|
-
|
|
1018
|
-
var r =
|
|
1021
|
+
$y("replace", function(a, e, t) {
|
|
1022
|
+
var r = ks ? "$" : "$0";
|
|
1019
1023
|
return [
|
|
1020
1024
|
// `String.prototype.replace` method
|
|
1021
1025
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1022
1026
|
function(n, o) {
|
|
1023
|
-
var s =
|
|
1024
|
-
return u ?
|
|
1027
|
+
var s = Iy(this), u = Py(n) ? void 0 : _y(n, hi);
|
|
1028
|
+
return u ? _s(u, n, s, o) : _s(e, We(s), n, o);
|
|
1025
1029
|
},
|
|
1026
1030
|
// `RegExp.prototype[@@replace]` method
|
|
1027
1031
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1028
1032
|
function(i, n) {
|
|
1029
|
-
var o =
|
|
1030
|
-
if (typeof n == "string" &&
|
|
1033
|
+
var o = Cy(this), s = We(i);
|
|
1034
|
+
if (typeof n == "string" && Vs(n, r) === -1 && Vs(n, "$<") === -1) {
|
|
1031
1035
|
var u = t(e, o, s, n);
|
|
1032
1036
|
if (u.done) return u.value;
|
|
1033
1037
|
}
|
|
1034
|
-
var l =
|
|
1038
|
+
var l = Ay(n);
|
|
1035
1039
|
l || (n = We(n));
|
|
1036
1040
|
var h = o.global, f;
|
|
1037
1041
|
h && (f = o.unicode, o.lastIndex = 0);
|
|
1038
|
-
for (var c = [], v; v =
|
|
1042
|
+
for (var c = [], v; v = Dy(o, s), !(v === null || (Aa(c, v), !h)); ) {
|
|
1039
1043
|
var d = We(v[0]);
|
|
1040
|
-
d === "" && (o.lastIndex =
|
|
1044
|
+
d === "" && (o.lastIndex = My(s, Ny(o.lastIndex), f));
|
|
1041
1045
|
}
|
|
1042
1046
|
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
|
1043
1047
|
v = c[y];
|
|
1044
|
-
for (var x = We(v[0]), b =
|
|
1048
|
+
for (var x = We(v[0]), b = Ly(By(Ry(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++) Aa(T, Fy(v[E]));
|
|
1045
1049
|
var O = v.groups;
|
|
1046
1050
|
if (l) {
|
|
1047
|
-
var C =
|
|
1048
|
-
O !== void 0 &&
|
|
1051
|
+
var C = jy([x], T, b, s);
|
|
1052
|
+
O !== void 0 && Aa(C, O), $ = We(Ey(n, void 0, C));
|
|
1049
1053
|
} else
|
|
1050
|
-
$ =
|
|
1051
|
-
b >= p && (g +=
|
|
1054
|
+
$ = Vy(x, s, b, T, O, n);
|
|
1055
|
+
b >= p && (g += Ds(s, p, b) + $, p = b + x.length);
|
|
1052
1056
|
}
|
|
1053
|
-
return g +
|
|
1057
|
+
return g + Ds(s, p);
|
|
1054
1058
|
}
|
|
1055
1059
|
];
|
|
1056
|
-
}, !
|
|
1057
|
-
var
|
|
1060
|
+
}, !Gy || !Uy || ks);
|
|
1061
|
+
var zy = ve, Hy = Be, Yy = z, Xy = Yy("match"), Wy = function(a) {
|
|
1058
1062
|
var e;
|
|
1059
|
-
return
|
|
1060
|
-
},
|
|
1061
|
-
if (
|
|
1062
|
-
throw new
|
|
1063
|
+
return zy(a) && ((e = a[Xy]) !== void 0 ? !!e : Hy(a) === "RegExp");
|
|
1064
|
+
}, qy = Wy, Qy = TypeError, Zi = function(a) {
|
|
1065
|
+
if (qy(a))
|
|
1066
|
+
throw new Qy("The method doesn't accept regular expressions");
|
|
1063
1067
|
return a;
|
|
1064
|
-
},
|
|
1068
|
+
}, Ky = z, Zy = Ky("match"), Ji = function(a) {
|
|
1065
1069
|
var e = /./;
|
|
1066
1070
|
try {
|
|
1067
1071
|
"/./"[a](e);
|
|
1068
1072
|
} catch {
|
|
1069
1073
|
try {
|
|
1070
|
-
return e[
|
|
1074
|
+
return e[Zy] = !1, "/./"[a](e);
|
|
1071
1075
|
} catch {
|
|
1072
1076
|
}
|
|
1073
1077
|
}
|
|
1074
1078
|
return !1;
|
|
1075
|
-
},
|
|
1076
|
-
var a =
|
|
1079
|
+
}, Jy = ee, em = Ar, tm = $t.f, rm = ut, Ls = pe, am = Zi, im = he, nm = Ji, sm = em("".slice), om = Math.min, Wu = nm("startsWith"), um = !Wu && !!function() {
|
|
1080
|
+
var a = tm(String.prototype, "startsWith");
|
|
1077
1081
|
return a && !a.writable;
|
|
1078
1082
|
}();
|
|
1079
|
-
|
|
1083
|
+
Jy({ target: "String", proto: !0, forced: !um && !Wu }, {
|
|
1080
1084
|
startsWith: function(e) {
|
|
1081
|
-
var t =
|
|
1082
|
-
|
|
1083
|
-
var r =
|
|
1084
|
-
return
|
|
1085
|
+
var t = Ls(im(this));
|
|
1086
|
+
am(e);
|
|
1087
|
+
var r = rm(om(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Ls(e);
|
|
1088
|
+
return sm(t, r, r + i.length) === i;
|
|
1085
1089
|
}
|
|
1086
1090
|
});
|
|
1087
|
-
var
|
|
1088
|
-
|
|
1091
|
+
var lm = z, hm = Hi, vm = Oe.f, vi = lm("unscopables"), fi = Array.prototype;
|
|
1092
|
+
fi[vi] === void 0 && vm(fi, vi, {
|
|
1089
1093
|
configurable: !0,
|
|
1090
|
-
value:
|
|
1094
|
+
value: hm(null)
|
|
1091
1095
|
});
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1094
|
-
},
|
|
1096
|
+
var fm = function(a) {
|
|
1097
|
+
fi[vi][a] = !0;
|
|
1098
|
+
}, cm = k, gm = !cm(function() {
|
|
1095
1099
|
function a() {
|
|
1096
1100
|
}
|
|
1097
1101
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1098
|
-
}),
|
|
1099
|
-
var e =
|
|
1100
|
-
if (
|
|
1102
|
+
}), dm = fe, pm = B, ym = Tr, mm = Ai, bm = gm, Bs = mm("IE_PROTO"), ci = Object, xm = ci.prototype, qu = bm ? ci.getPrototypeOf : function(a) {
|
|
1103
|
+
var e = ym(a);
|
|
1104
|
+
if (dm(e, Bs)) return e[Bs];
|
|
1101
1105
|
var t = e.constructor;
|
|
1102
|
-
return
|
|
1103
|
-
},
|
|
1104
|
-
[].keys && (
|
|
1105
|
-
var
|
|
1106
|
+
return pm(t) && e instanceof t ? t.prototype : e instanceof ci ? xm : null;
|
|
1107
|
+
}, Tm = k, Om = B, Sm = ve, js = qu, Em = Ue, $m = z, gi = $m("iterator"), Qu = !1, ke, Pa, Ra;
|
|
1108
|
+
[].keys && (Ra = [].keys(), "next" in Ra ? (Pa = js(js(Ra)), Pa !== Object.prototype && (ke = Pa)) : Qu = !0);
|
|
1109
|
+
var wm = !Sm(ke) || Tm(function() {
|
|
1106
1110
|
var a = {};
|
|
1107
|
-
return ke[
|
|
1111
|
+
return ke[gi].call(a) !== a;
|
|
1108
1112
|
});
|
|
1109
|
-
|
|
1110
|
-
|
|
1113
|
+
wm && (ke = {});
|
|
1114
|
+
Om(ke[gi]) || Em(ke, gi, function() {
|
|
1111
1115
|
return this;
|
|
1112
1116
|
});
|
|
1113
|
-
var
|
|
1117
|
+
var Ku = {
|
|
1114
1118
|
IteratorPrototype: ke,
|
|
1115
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1116
|
-
},
|
|
1119
|
+
BUGGY_SAFARI_ITERATORS: Qu
|
|
1120
|
+
}, Cm = Ku.IteratorPrototype, Am = Hi, Pm = Ti, Rm = Cr, Nm = Nt, Im = function() {
|
|
1117
1121
|
return this;
|
|
1118
|
-
},
|
|
1122
|
+
}, Mm = function(a, e, t, r) {
|
|
1119
1123
|
var i = e + " Iterator";
|
|
1120
|
-
return a.prototype =
|
|
1121
|
-
},
|
|
1124
|
+
return a.prototype = Am(Cm, { next: Pm(+!r, t) }), Rm(a, i, !1), Nm[i] = Im, a;
|
|
1125
|
+
}, _m = ee, Vm = Y, Zu = Sr, Dm = B, km = Mm, Fs = qu, Us = uu, Lm = Cr, Bm = At, Na = Ue, jm = z, Fm = Nt, Ju = Ku, Um = Zu.PROPER, Gm = Zu.CONFIGURABLE, Gs = Ju.IteratorPrototype, er = Ju.BUGGY_SAFARI_ITERATORS, gt = jm("iterator"), zs = "keys", dt = "values", Hs = "entries", zm = function() {
|
|
1122
1126
|
return this;
|
|
1123
|
-
},
|
|
1124
|
-
|
|
1127
|
+
}, Hm = function(a, e, t, r, i, n, o) {
|
|
1128
|
+
km(t, e, r);
|
|
1125
1129
|
var s = function(y) {
|
|
1126
1130
|
if (y === i && c) return c;
|
|
1127
|
-
if (!
|
|
1131
|
+
if (!er && y && y in h) return h[y];
|
|
1128
1132
|
switch (y) {
|
|
1129
|
-
case
|
|
1133
|
+
case zs:
|
|
1130
1134
|
return function() {
|
|
1131
1135
|
return new t(this, y);
|
|
1132
1136
|
};
|
|
1133
|
-
case
|
|
1137
|
+
case dt:
|
|
1134
1138
|
return function() {
|
|
1135
1139
|
return new t(this, y);
|
|
1136
1140
|
};
|
|
1137
|
-
case
|
|
1141
|
+
case Hs:
|
|
1138
1142
|
return function() {
|
|
1139
1143
|
return new t(this, y);
|
|
1140
1144
|
};
|
|
@@ -1142,24 +1146,24 @@ var Yu = {
|
|
|
1142
1146
|
return function() {
|
|
1143
1147
|
return new t(this);
|
|
1144
1148
|
};
|
|
1145
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[
|
|
1146
|
-
if (v && (d =
|
|
1147
|
-
return
|
|
1149
|
+
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[gt] || h["@@iterator"] || i && h[i], c = !er && f || s(i), v = e === "Array" && h.entries || f, d, g, p;
|
|
1150
|
+
if (v && (d = Fs(v.call(new a())), d !== Object.prototype && d.next && (Fs(d) !== Gs && (Us ? Us(d, Gs) : Dm(d[gt]) || Na(d, gt, zm)), Lm(d, u, !0))), Um && i === dt && f && f.name !== dt && (Gm ? Bm(h, "name", dt) : (l = !0, c = function() {
|
|
1151
|
+
return Vm(f, this);
|
|
1148
1152
|
})), i)
|
|
1149
1153
|
if (g = {
|
|
1150
|
-
values: s(
|
|
1151
|
-
keys: n ? c : s(
|
|
1152
|
-
entries: s(
|
|
1154
|
+
values: s(dt),
|
|
1155
|
+
keys: n ? c : s(zs),
|
|
1156
|
+
entries: s(Hs)
|
|
1153
1157
|
}, o) for (p in g)
|
|
1154
|
-
(
|
|
1155
|
-
else
|
|
1156
|
-
return h[
|
|
1157
|
-
},
|
|
1158
|
+
(er || l || !(p in h)) && Na(h, p, g[p]);
|
|
1159
|
+
else _m({ target: e, proto: !0, forced: er || l }, g);
|
|
1160
|
+
return h[gt] !== c && Na(h, gt, c, { name: i }), Fm[e] = c, g;
|
|
1161
|
+
}, Ym = function(a, e) {
|
|
1158
1162
|
return { value: a, done: e };
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
type:
|
|
1162
|
-
target:
|
|
1163
|
+
}, Xm = wt, en = fm, Ys = Nt, el = Er, Wm = Oe.f, qm = Hm, tr = Ym, Qm = le, tl = "Array Iterator", Km = el.set, Zm = el.getterFor(tl), Jm = qm(Array, "Array", function(a, e) {
|
|
1164
|
+
Km(this, {
|
|
1165
|
+
type: tl,
|
|
1166
|
+
target: Xm(a),
|
|
1163
1167
|
// target
|
|
1164
1168
|
index: 0,
|
|
1165
1169
|
// next index
|
|
@@ -1167,25 +1171,25 @@ var Yu = {
|
|
|
1167
1171
|
// kind
|
|
1168
1172
|
});
|
|
1169
1173
|
}, function() {
|
|
1170
|
-
var a =
|
|
1174
|
+
var a = Zm(this), e = a.target, t = a.index++;
|
|
1171
1175
|
if (!e || t >= e.length)
|
|
1172
|
-
return a.target =
|
|
1176
|
+
return a.target = null, tr(void 0, !0);
|
|
1173
1177
|
switch (a.kind) {
|
|
1174
1178
|
case "keys":
|
|
1175
|
-
return
|
|
1179
|
+
return tr(t, !1);
|
|
1176
1180
|
case "values":
|
|
1177
|
-
return
|
|
1178
|
-
}
|
|
1179
|
-
return
|
|
1180
|
-
}, "values"),
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
1181
|
+
return tr(e[t], !1);
|
|
1182
|
+
}
|
|
1183
|
+
return tr([t, e[t]], !1);
|
|
1184
|
+
}, "values"), Xs = Ys.Arguments = Ys.Array;
|
|
1185
|
+
en("keys");
|
|
1186
|
+
en("values");
|
|
1187
|
+
en("entries");
|
|
1188
|
+
if (Qm && Xs.name !== "values") try {
|
|
1189
|
+
Wm(Xs, "name", { value: "values" });
|
|
1186
1190
|
} catch {
|
|
1187
1191
|
}
|
|
1188
|
-
var
|
|
1192
|
+
var e0 = {
|
|
1189
1193
|
CSSRuleList: 0,
|
|
1190
1194
|
CSSStyleDeclaration: 0,
|
|
1191
1195
|
CSSValueList: 0,
|
|
@@ -1217,52 +1221,52 @@ var Zm = {
|
|
|
1217
1221
|
TextTrackCueList: 0,
|
|
1218
1222
|
TextTrackList: 0,
|
|
1219
1223
|
TouchList: 0
|
|
1220
|
-
},
|
|
1224
|
+
}, t0 = Or, Ia = t0("span").classList, Ws = Ia && Ia.constructor && Ia.constructor.prototype, r0 = Ws === Object.prototype ? void 0 : Ws, qs = V, rl = e0, a0 = r0, yt = Jm, Qs = At, i0 = Cr, n0 = z, Ma = n0("iterator"), _a = yt.values, al = function(a, e) {
|
|
1221
1225
|
if (a) {
|
|
1222
|
-
if (a[
|
|
1223
|
-
|
|
1226
|
+
if (a[Ma] !== _a) try {
|
|
1227
|
+
Qs(a, Ma, _a);
|
|
1224
1228
|
} catch {
|
|
1225
|
-
a[
|
|
1229
|
+
a[Ma] = _a;
|
|
1226
1230
|
}
|
|
1227
|
-
if (
|
|
1228
|
-
for (var t in
|
|
1229
|
-
if (a[t] !==
|
|
1230
|
-
|
|
1231
|
+
if (i0(a, e, !0), rl[e]) {
|
|
1232
|
+
for (var t in yt)
|
|
1233
|
+
if (a[t] !== yt[t]) try {
|
|
1234
|
+
Qs(a, t, yt[t]);
|
|
1231
1235
|
} catch {
|
|
1232
|
-
a[t] =
|
|
1236
|
+
a[t] = yt[t];
|
|
1233
1237
|
}
|
|
1234
1238
|
}
|
|
1235
1239
|
}
|
|
1236
1240
|
};
|
|
1237
|
-
for (var
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
function
|
|
1241
|
-
if (
|
|
1241
|
+
for (var Va in rl)
|
|
1242
|
+
al(qs[Va] && qs[Va].prototype, Va);
|
|
1243
|
+
al(a0, "DOMTokenList");
|
|
1244
|
+
function s0(a, e) {
|
|
1245
|
+
if (za(a) != "object" || !a) return a;
|
|
1242
1246
|
var t = a[Symbol.toPrimitive];
|
|
1243
1247
|
if (t !== void 0) {
|
|
1244
1248
|
var r = t.call(a, e || "default");
|
|
1245
|
-
if (
|
|
1249
|
+
if (za(r) != "object") return r;
|
|
1246
1250
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1247
1251
|
}
|
|
1248
1252
|
return (e === "string" ? String : Number)(a);
|
|
1249
1253
|
}
|
|
1250
|
-
function
|
|
1251
|
-
var e =
|
|
1252
|
-
return
|
|
1254
|
+
function o0(a) {
|
|
1255
|
+
var e = s0(a, "string");
|
|
1256
|
+
return za(e) == "symbol" ? e : e + "";
|
|
1253
1257
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return (e =
|
|
1258
|
+
function tn(a, e, t) {
|
|
1259
|
+
return (e = o0(e)) in a ? Object.defineProperty(a, e, {
|
|
1256
1260
|
value: t,
|
|
1257
1261
|
enumerable: !0,
|
|
1258
1262
|
configurable: !0,
|
|
1259
1263
|
writable: !0
|
|
1260
1264
|
}) : a[e] = t, a;
|
|
1261
1265
|
}
|
|
1262
|
-
var
|
|
1266
|
+
var u0 = Te, l0 = Tr, h0 = Fo, v0 = Ni, Ks = TypeError, Zs = "Reduce of empty array with no initial value", Js = function(a) {
|
|
1263
1267
|
return function(e, t, r, i) {
|
|
1264
|
-
var n =
|
|
1265
|
-
if (
|
|
1268
|
+
var n = l0(e), o = h0(n), s = v0(n);
|
|
1269
|
+
if (u0(t), s === 0 && r < 2) throw new Ks(Zs);
|
|
1266
1270
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1267
1271
|
if (r < 2) for (; ; ) {
|
|
1268
1272
|
if (u in o) {
|
|
@@ -1270,64 +1274,64 @@ var s0 = Te, o0 = xr, u0 = Do, l0 = Pi, Ys = TypeError, Xs = "Reduce of empty ar
|
|
|
1270
1274
|
break;
|
|
1271
1275
|
}
|
|
1272
1276
|
if (u += l, a ? u < 0 : s <= u)
|
|
1273
|
-
throw new
|
|
1277
|
+
throw new Ks(Zs);
|
|
1274
1278
|
}
|
|
1275
1279
|
for (; a ? u >= 0 : s > u; u += l) u in o && (i = t(i, o[u], u, n));
|
|
1276
1280
|
return i;
|
|
1277
1281
|
};
|
|
1278
|
-
},
|
|
1282
|
+
}, f0 = {
|
|
1279
1283
|
// `Array.prototype.reduce` method
|
|
1280
1284
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1281
|
-
left:
|
|
1285
|
+
left: Js(!1),
|
|
1282
1286
|
// `Array.prototype.reduceRight` method
|
|
1283
1287
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1284
|
-
right:
|
|
1285
|
-
},
|
|
1288
|
+
right: Js(!0)
|
|
1289
|
+
}, c0 = k, il = function(a, e) {
|
|
1286
1290
|
var t = [][a];
|
|
1287
|
-
return !!t &&
|
|
1291
|
+
return !!t && c0(function() {
|
|
1288
1292
|
t.call(null, e || function() {
|
|
1289
1293
|
return 1;
|
|
1290
1294
|
}, 1);
|
|
1291
1295
|
});
|
|
1292
|
-
},
|
|
1293
|
-
|
|
1296
|
+
}, g0 = ee, d0 = f0.left, p0 = il, eo = Oi, y0 = wr, m0 = !y0 && eo > 79 && eo < 83, b0 = m0 || !p0("reduce");
|
|
1297
|
+
g0({ target: "Array", proto: !0, forced: b0 }, {
|
|
1294
1298
|
reduce: function(e) {
|
|
1295
1299
|
var t = arguments.length;
|
|
1296
|
-
return
|
|
1300
|
+
return d0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1297
1301
|
}
|
|
1298
1302
|
});
|
|
1299
|
-
var
|
|
1300
|
-
var a =
|
|
1303
|
+
var x0 = ee, T0 = Ar, O0 = $t.f, S0 = ut, to = pe, E0 = Zi, $0 = he, w0 = Ji, C0 = T0("".slice), A0 = Math.min, nl = w0("endsWith"), P0 = !nl && !!function() {
|
|
1304
|
+
var a = O0(String.prototype, "endsWith");
|
|
1301
1305
|
return a && !a.writable;
|
|
1302
1306
|
}();
|
|
1303
|
-
|
|
1307
|
+
x0({ target: "String", proto: !0, forced: !P0 && !nl }, {
|
|
1304
1308
|
endsWith: function(e) {
|
|
1305
|
-
var t =
|
|
1306
|
-
|
|
1307
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
|
1308
|
-
return
|
|
1309
|
+
var t = to($0(this));
|
|
1310
|
+
E0(e);
|
|
1311
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : A0(S0(r), i), o = to(e);
|
|
1312
|
+
return C0(t, n - o.length, n) === o;
|
|
1309
1313
|
}
|
|
1310
1314
|
});
|
|
1311
|
-
var
|
|
1315
|
+
var Da = Y, sl = L, R0 = Xi, N0 = J, I0 = je, M0 = he, _0 = gu, V0 = qi, D0 = ut, ro = pe, k0 = ot, ao = Qi, L0 = Uu, B0 = k, qe = L0.UNSUPPORTED_Y, j0 = 4294967295, F0 = Math.min, ka = sl([].push), La = sl("".slice), U0 = !B0(function() {
|
|
1312
1316
|
var a = /(?:)/, e = a.exec;
|
|
1313
1317
|
a.exec = function() {
|
|
1314
1318
|
return e.apply(this, arguments);
|
|
1315
1319
|
};
|
|
1316
1320
|
var t = "ab".split(a);
|
|
1317
1321
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
|
1318
|
-
}),
|
|
1322
|
+
}), io = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1319
1323
|
"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
|
|
1320
1324
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1321
|
-
|
|
1325
|
+
R0("split", function(a, e, t) {
|
|
1322
1326
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1323
|
-
return i === void 0 && n === 0 ? [] :
|
|
1327
|
+
return i === void 0 && n === 0 ? [] : Da(e, this, i, n);
|
|
1324
1328
|
} : e;
|
|
1325
1329
|
return [
|
|
1326
1330
|
// `String.prototype.split` method
|
|
1327
1331
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1328
1332
|
function(n, o) {
|
|
1329
|
-
var s =
|
|
1330
|
-
return u ?
|
|
1333
|
+
var s = M0(this), u = I0(n) ? void 0 : k0(n, a);
|
|
1334
|
+
return u ? Da(u, n, s, o) : Da(r, ro(s), n, o);
|
|
1331
1335
|
},
|
|
1332
1336
|
// `RegExp.prototype[@@split]` method
|
|
1333
1337
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1335,61 +1339,61 @@ A0("split", function(a, e, t) {
|
|
|
1335
1339
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1336
1340
|
// the 'y' flag.
|
|
1337
1341
|
function(i, n) {
|
|
1338
|
-
var o =
|
|
1339
|
-
if (!
|
|
1342
|
+
var o = N0(this), s = ro(i);
|
|
1343
|
+
if (!io) {
|
|
1340
1344
|
var u = t(r, o, s, n, r !== e);
|
|
1341
1345
|
if (u.done) return u.value;
|
|
1342
1346
|
}
|
|
1343
|
-
var l =
|
|
1347
|
+
var l = _0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (qe ? "g" : "y"), c = new l(qe ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? j0 : n >>> 0;
|
|
1344
1348
|
if (v === 0) return [];
|
|
1345
|
-
if (s.length === 0) return
|
|
1349
|
+
if (s.length === 0) return ao(c, s) === null ? [s] : [];
|
|
1346
1350
|
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
|
1347
1351
|
c.lastIndex = qe ? 0 : g;
|
|
1348
|
-
var y =
|
|
1349
|
-
if (y === null || (x =
|
|
1350
|
-
g =
|
|
1352
|
+
var y = ao(c, qe ? La(s, g) : s), x;
|
|
1353
|
+
if (y === null || (x = F0(D0(c.lastIndex + (qe ? g : 0)), s.length)) === d)
|
|
1354
|
+
g = V0(s, g, h);
|
|
1351
1355
|
else {
|
|
1352
|
-
if (
|
|
1356
|
+
if (ka(p, La(s, d, g)), p.length === v) return p;
|
|
1353
1357
|
for (var b = 1; b <= y.length - 1; b++)
|
|
1354
|
-
if (
|
|
1358
|
+
if (ka(p, y[b]), p.length === v) return p;
|
|
1355
1359
|
g = d = x;
|
|
1356
1360
|
}
|
|
1357
1361
|
}
|
|
1358
|
-
return
|
|
1362
|
+
return ka(p, La(s, d)), p;
|
|
1359
1363
|
}
|
|
1360
1364
|
];
|
|
1361
|
-
},
|
|
1362
|
-
var
|
|
1365
|
+
}, io || !U0, qe);
|
|
1366
|
+
var Mr = { exports: {} }, mt = { exports: {} };
|
|
1363
1367
|
(function() {
|
|
1364
1368
|
var a, e, t, r, i, n;
|
|
1365
|
-
typeof performance < "u" && performance !== null && performance.now ?
|
|
1369
|
+
typeof performance < "u" && performance !== null && performance.now ? mt.exports = function() {
|
|
1366
1370
|
return performance.now();
|
|
1367
|
-
} : typeof process < "u" && process !== null && process.hrtime ? (
|
|
1371
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (mt.exports = function() {
|
|
1368
1372
|
return (a() - i) / 1e6;
|
|
1369
1373
|
}, e = process.hrtime, a = function() {
|
|
1370
1374
|
var o;
|
|
1371
1375
|
return o = e(), o[0] * 1e9 + o[1];
|
|
1372
|
-
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (
|
|
1376
|
+
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (mt.exports = function() {
|
|
1373
1377
|
return Date.now() - t;
|
|
1374
|
-
}, t = Date.now()) : (
|
|
1378
|
+
}, t = Date.now()) : (mt.exports = function() {
|
|
1375
1379
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1376
1380
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1377
1381
|
}).call(Ke);
|
|
1378
|
-
var
|
|
1379
|
-
for (var
|
|
1380
|
-
st = be[
|
|
1381
|
-
if (!st || !
|
|
1382
|
-
var
|
|
1382
|
+
var G0 = mt.exports, z0 = G0, be = typeof window > "u" ? Ke : window, rr = ["moz", "webkit"], rt = "AnimationFrame", st = be["request" + rt], Et = be["cancel" + rt] || be["cancelRequest" + rt];
|
|
1383
|
+
for (var pt = 0; !st && pt < rr.length; pt++)
|
|
1384
|
+
st = be[rr[pt] + "Request" + rt], Et = be[rr[pt] + "Cancel" + rt] || be[rr[pt] + "CancelRequest" + rt];
|
|
1385
|
+
if (!st || !Et) {
|
|
1386
|
+
var Ba = 0, no = 0, Me = [], H0 = 1e3 / 60;
|
|
1383
1387
|
st = function(a) {
|
|
1384
1388
|
if (Me.length === 0) {
|
|
1385
|
-
var e =
|
|
1386
|
-
|
|
1389
|
+
var e = z0(), t = Math.max(0, H0 - (e - Ba));
|
|
1390
|
+
Ba = t + e, setTimeout(function() {
|
|
1387
1391
|
var r = Me.slice(0);
|
|
1388
1392
|
Me.length = 0;
|
|
1389
1393
|
for (var i = 0; i < r.length; i++)
|
|
1390
1394
|
if (!r[i].cancelled)
|
|
1391
1395
|
try {
|
|
1392
|
-
r[i].callback(
|
|
1396
|
+
r[i].callback(Ba);
|
|
1393
1397
|
} catch (n) {
|
|
1394
1398
|
setTimeout(function() {
|
|
1395
1399
|
throw n;
|
|
@@ -1398,53 +1402,53 @@ if (!st || !St) {
|
|
|
1398
1402
|
}, Math.round(t));
|
|
1399
1403
|
}
|
|
1400
1404
|
return Me.push({
|
|
1401
|
-
handle: ++
|
|
1405
|
+
handle: ++no,
|
|
1402
1406
|
callback: a,
|
|
1403
1407
|
cancelled: !1
|
|
1404
|
-
}),
|
|
1405
|
-
},
|
|
1408
|
+
}), no;
|
|
1409
|
+
}, Et = function(a) {
|
|
1406
1410
|
for (var e = 0; e < Me.length; e++)
|
|
1407
1411
|
Me[e].handle === a && (Me[e].cancelled = !0);
|
|
1408
1412
|
};
|
|
1409
1413
|
}
|
|
1410
|
-
|
|
1414
|
+
Mr.exports = function(a) {
|
|
1411
1415
|
return st.call(be, a);
|
|
1412
1416
|
};
|
|
1413
|
-
|
|
1414
|
-
|
|
1417
|
+
Mr.exports.cancel = function() {
|
|
1418
|
+
Et.apply(be, arguments);
|
|
1415
1419
|
};
|
|
1416
|
-
|
|
1417
|
-
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame =
|
|
1420
|
+
Mr.exports.polyfill = function(a) {
|
|
1421
|
+
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = Et;
|
|
1418
1422
|
};
|
|
1419
|
-
var
|
|
1420
|
-
const
|
|
1421
|
-
var
|
|
1422
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
1423
|
+
var Y0 = Mr.exports;
|
|
1424
|
+
const ja = /* @__PURE__ */ _o(Y0);
|
|
1425
|
+
var ol = `
|
|
1426
|
+
\v\f\r \u2028\u2029\uFEFF`, X0 = L, W0 = he, q0 = pe, di = ol, so = X0("".replace), Q0 = RegExp("^[" + di + "]+"), K0 = RegExp("(^|[^" + di + "])[" + di + "]+$"), Fa = function(a) {
|
|
1423
1427
|
return function(e) {
|
|
1424
|
-
var t =
|
|
1425
|
-
return a & 1 && (t =
|
|
1428
|
+
var t = q0(W0(e));
|
|
1429
|
+
return a & 1 && (t = so(t, Q0, "")), a & 2 && (t = so(t, K0, "$1")), t;
|
|
1426
1430
|
};
|
|
1427
|
-
},
|
|
1431
|
+
}, Z0 = {
|
|
1428
1432
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1429
1433
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1430
|
-
start:
|
|
1434
|
+
start: Fa(1),
|
|
1431
1435
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1432
1436
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1433
|
-
end:
|
|
1437
|
+
end: Fa(2),
|
|
1434
1438
|
// `String.prototype.trim` method
|
|
1435
1439
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1436
|
-
trim:
|
|
1437
|
-
},
|
|
1438
|
-
return
|
|
1439
|
-
return !!
|
|
1440
|
+
trim: Fa(3)
|
|
1441
|
+
}, J0 = Sr.PROPER, eb = k, oo = ol, uo = "
", tb = function(a) {
|
|
1442
|
+
return eb(function() {
|
|
1443
|
+
return !!oo[a]() || uo[a]() !== uo || J0 && oo[a].name !== a;
|
|
1440
1444
|
});
|
|
1441
|
-
},
|
|
1442
|
-
|
|
1445
|
+
}, rb = ee, ab = Z0.trim, ib = tb;
|
|
1446
|
+
rb({ target: "String", proto: !0, forced: ib("trim") }, {
|
|
1443
1447
|
trim: function() {
|
|
1444
|
-
return
|
|
1448
|
+
return ab(this);
|
|
1445
1449
|
}
|
|
1446
1450
|
});
|
|
1447
|
-
var
|
|
1451
|
+
var nb = function(a) {
|
|
1448
1452
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
|
1449
1453
|
var e = {
|
|
1450
1454
|
aliceblue: "f0f8ff",
|
|
@@ -1674,30 +1678,30 @@ var ab = function(a) {
|
|
|
1674
1678
|
return v;
|
|
1675
1679
|
};
|
|
1676
1680
|
};
|
|
1677
|
-
const
|
|
1678
|
-
var
|
|
1679
|
-
|
|
1681
|
+
const pi = /* @__PURE__ */ _o(nb);
|
|
1682
|
+
var sb = ee, ob = Ar, ub = au.indexOf, lb = il, yi = ob([].indexOf), ul = !!yi && 1 / yi([1], 1, -0) < 0, hb = ul || !lb("indexOf");
|
|
1683
|
+
sb({ target: "Array", proto: !0, forced: hb }, {
|
|
1680
1684
|
indexOf: function(e) {
|
|
1681
1685
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1682
|
-
return
|
|
1686
|
+
return ul ? yi(this, e, t) || 0 : ub(this, e, t);
|
|
1683
1687
|
}
|
|
1684
1688
|
});
|
|
1685
|
-
var
|
|
1686
|
-
|
|
1689
|
+
var vb = ee, fb = L, cb = Zi, gb = he, lo = pe, db = Ji, pb = fb("".indexOf);
|
|
1690
|
+
vb({ target: "String", proto: !0, forced: !db("includes") }, {
|
|
1687
1691
|
includes: function(e) {
|
|
1688
|
-
return !!~
|
|
1689
|
-
|
|
1690
|
-
|
|
1692
|
+
return !!~pb(
|
|
1693
|
+
lo(gb(this)),
|
|
1694
|
+
lo(cb(e)),
|
|
1691
1695
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1692
1696
|
);
|
|
1693
1697
|
}
|
|
1694
1698
|
});
|
|
1695
|
-
var
|
|
1696
|
-
return
|
|
1697
|
-
},
|
|
1698
|
-
|
|
1699
|
+
var yb = Be, mb = Array.isArray || function(e) {
|
|
1700
|
+
return yb(e) === "Array";
|
|
1701
|
+
}, bb = ee, xb = L, Tb = mb, Ob = xb([].reverse), ho = [1, 2];
|
|
1702
|
+
bb({ target: "Array", proto: !0, forced: String(ho) === String(ho.reverse()) }, {
|
|
1699
1703
|
reverse: function() {
|
|
1700
|
-
return
|
|
1704
|
+
return Tb(this) && (this.length = this.length), Ob(this);
|
|
1701
1705
|
}
|
|
1702
1706
|
});
|
|
1703
1707
|
/*! *****************************************************************************
|
|
@@ -1714,21 +1718,21 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1714
1718
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1715
1719
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1716
1720
|
***************************************************************************** */
|
|
1717
|
-
var
|
|
1718
|
-
return (
|
|
1721
|
+
var ll = function(a, e) {
|
|
1722
|
+
return (ll = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1719
1723
|
t.__proto__ = r;
|
|
1720
1724
|
} || function(t, r) {
|
|
1721
1725
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1722
1726
|
})(a, e);
|
|
1723
1727
|
};
|
|
1724
|
-
function
|
|
1728
|
+
function hl(a, e) {
|
|
1725
1729
|
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1726
1730
|
function t() {
|
|
1727
1731
|
this.constructor = a;
|
|
1728
1732
|
}
|
|
1729
|
-
|
|
1733
|
+
ll(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1730
1734
|
}
|
|
1731
|
-
function
|
|
1735
|
+
function Sb(a) {
|
|
1732
1736
|
var e = "";
|
|
1733
1737
|
Array.isArray(a) || (a = [a]);
|
|
1734
1738
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1749,7 +1753,7 @@ function Tb(a) {
|
|
|
1749
1753
|
}
|
|
1750
1754
|
return e;
|
|
1751
1755
|
}
|
|
1752
|
-
function
|
|
1756
|
+
function mi(a, e) {
|
|
1753
1757
|
var t = a[0], r = a[1];
|
|
1754
1758
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1755
1759
|
}
|
|
@@ -1759,16 +1763,16 @@ function oe() {
|
|
|
1759
1763
|
return !0;
|
|
1760
1764
|
}
|
|
1761
1765
|
var Ee = Math.PI;
|
|
1762
|
-
function
|
|
1766
|
+
function Ua(a, e, t) {
|
|
1763
1767
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1764
1768
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1765
1769
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1766
|
-
var s =
|
|
1770
|
+
var s = mi([(e - n) / 2, (t - o) / 2], -a.xRot / 180 * Ee), u = s[0], l = s[1], h = Math.pow(u, 2) / Math.pow(r, 2) + Math.pow(l, 2) / Math.pow(i, 2);
|
|
1767
1771
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
|
1768
|
-
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g =
|
|
1772
|
+
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g = mi([v, d], a.xRot / 180 * Ee);
|
|
1769
1773
|
a.cX = g[0] + (e + n) / 2, a.cY = g[1] + (t + o) / 2, a.phi1 = Math.atan2((l - d) / i, (u - v) / r), a.phi2 = Math.atan2((-l - d) / i, (-u - v) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 * Ee), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Ee), a.phi1 *= 180 / Ee, a.phi2 *= 180 / Ee;
|
|
1770
1774
|
}
|
|
1771
|
-
function
|
|
1775
|
+
function vo(a, e, t) {
|
|
1772
1776
|
oe(a, e, t);
|
|
1773
1777
|
var r = a * a + e * e - t * t;
|
|
1774
1778
|
if (0 > r) return [];
|
|
@@ -1777,13 +1781,13 @@ function so(a, e, t) {
|
|
|
1777
1781
|
return [[(a * t + e * i) / (a * a + e * e), (e * t - a * i) / (a * a + e * e)], [(a * t - e * i) / (a * a + e * e), (e * t + a * i) / (a * a + e * e)]];
|
|
1778
1782
|
}
|
|
1779
1783
|
var U, ye = Math.PI / 180;
|
|
1780
|
-
function
|
|
1784
|
+
function fo(a, e, t) {
|
|
1781
1785
|
return (1 - t) * a + t * e;
|
|
1782
1786
|
}
|
|
1783
|
-
function
|
|
1787
|
+
function co(a, e, t, r) {
|
|
1784
1788
|
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1785
1789
|
}
|
|
1786
|
-
function
|
|
1790
|
+
function go(a, e, t, r) {
|
|
1787
1791
|
var i = 1e-6, n = e - a, o = t - e, s = 3 * n + 3 * (r - t) - 6 * o, u = 6 * (o - n), l = 3 * n;
|
|
1788
1792
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1789
1793
|
var v = h * h / 4 - f;
|
|
@@ -1793,7 +1797,7 @@ function lo(a, e, t, r) {
|
|
|
1793
1797
|
return [-h / 2 - d, -h / 2 + d];
|
|
1794
1798
|
}(u / s, l / s, i);
|
|
1795
1799
|
}
|
|
1796
|
-
function
|
|
1800
|
+
function po(a, e, t, r, i) {
|
|
1797
1801
|
var n = 1 - i;
|
|
1798
1802
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
|
1799
1803
|
}
|
|
@@ -1900,13 +1904,13 @@ function ho(a, e, t, r, i) {
|
|
|
1900
1904
|
return i(function(s, u, l) {
|
|
1901
1905
|
return m.ARC === s.type ? function(h, f, c) {
|
|
1902
1906
|
var v, d, g, p;
|
|
1903
|
-
h.cX ||
|
|
1907
|
+
h.cX || Ua(h, f, c);
|
|
1904
1908
|
for (var y = Math.min(h.phi1, h.phi2), x = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(x / 90), T = new Array(b), $ = f, E = c, O = 0; O < b; O++) {
|
|
1905
|
-
var C =
|
|
1909
|
+
var C = fo(h.phi1, h.phi2, O / b), I = fo(h.phi1, h.phi2, (O + 1) / b), _ = I - C, j = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = P[0], W = P[1], G = [Math.cos(I * ye), Math.sin(I * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(I * ye), H - j * Math.cos(I * ye)], R = Q[0], M = Q[1];
|
|
1906
1910
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
1907
1911
|
var K = function(ne, ge) {
|
|
1908
|
-
var Se =
|
|
1909
|
-
return [h.cX + ze, h.cY +
|
|
1912
|
+
var Se = mi([ne * h.rX, ge * h.rY], h.xRot), ze = Se[0], Mt = Se[1];
|
|
1913
|
+
return [h.cX + ze, h.cY + Mt];
|
|
1910
1914
|
};
|
|
1911
1915
|
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1], d = K(R, M), T[O].x2 = d[0], T[O].y2 = d[1], g = K(q, H), T[O].x = g[0], T[O].y = g[1], h.relative && (T[O].x1 -= $, T[O].y1 -= E, T[O].x2 -= $, T[O].y2 -= E, T[O].x -= $, T[O].y -= E), $ = (p = [T[O].x, T[O].y])[0], E = p[1];
|
|
1912
1916
|
}
|
|
@@ -1915,7 +1919,7 @@ function ho(a, e, t, r, i) {
|
|
|
1915
1919
|
});
|
|
1916
1920
|
}, a.ANNOTATE_ARCS = function() {
|
|
1917
1921
|
return i(function(s, u, l) {
|
|
1918
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
|
1922
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && Ua(s, u, l), s;
|
|
1919
1923
|
});
|
|
1920
1924
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
1921
1925
|
var s = function(c) {
|
|
@@ -1932,21 +1936,21 @@ function ho(a, e, t, r, i) {
|
|
|
1932
1936
|
}
|
|
1933
1937
|
if (g.type & m.DRAWING_COMMANDS && (p(v), y(d)), g.type & m.HORIZ_LINE_TO && p(g.x), g.type & m.VERT_LINE_TO && y(g.y), g.type & m.LINE_TO && (p(g.x), y(g.y)), g.type & m.CURVE_TO) {
|
|
1934
1938
|
p(g.x), y(g.y);
|
|
1935
|
-
for (var x = 0, b =
|
|
1936
|
-
0 < (R = b[x]) && 1 > R && p(
|
|
1937
|
-
for (var T = 0, $ =
|
|
1938
|
-
0 < (R = $[T]) && 1 > R && y(
|
|
1939
|
+
for (var x = 0, b = go(v, g.x1, g.x2, g.x); x < b.length; x++)
|
|
1940
|
+
0 < (R = b[x]) && 1 > R && p(po(v, g.x1, g.x2, g.x, R));
|
|
1941
|
+
for (var T = 0, $ = go(d, g.y1, g.y2, g.y); T < $.length; T++)
|
|
1942
|
+
0 < (R = $[T]) && 1 > R && y(po(d, g.y1, g.y2, g.y, R));
|
|
1939
1943
|
}
|
|
1940
1944
|
if (g.type & m.ARC) {
|
|
1941
|
-
p(g.x), y(g.y),
|
|
1945
|
+
p(g.x), y(g.y), Ua(g, v, d);
|
|
1942
1946
|
for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX, C = Math.sin(E) * g.rX, I = -Math.sin(E) * g.rY, _ = Math.cos(E) * g.rY, j = g.phi1 < g.phi2 ? [g.phi1, g.phi2] : -180 > g.phi2 ? [g.phi2 + 360, g.phi1 + 360] : [g.phi2, g.phi1], P = j[0], X = j[1], W = function(M) {
|
|
1943
1947
|
var K = M[0], ne = M[1], ge = 180 * Math.atan2(ne, K) / Math.PI;
|
|
1944
1948
|
return ge < P ? ge + 360 : ge;
|
|
1945
|
-
}, G = 0, q =
|
|
1946
|
-
(R = q[G]) > P && R < X && p(
|
|
1947
|
-
for (var H = 0, Q =
|
|
1949
|
+
}, G = 0, q = vo(I, -O, 0).map(W); G < q.length; G++)
|
|
1950
|
+
(R = q[G]) > P && R < X && p(co(g.cX, O, I, R));
|
|
1951
|
+
for (var H = 0, Q = vo(_, -C, 0).map(W); H < Q.length; H++) {
|
|
1948
1952
|
var R;
|
|
1949
|
-
(R = Q[H]) > P && R < X && y(
|
|
1953
|
+
(R = Q[H]) > P && R < X && y(co(g.cY, C, _, R));
|
|
1950
1954
|
}
|
|
1951
1955
|
}
|
|
1952
1956
|
return c;
|
|
@@ -1954,7 +1958,7 @@ function ho(a, e, t, r, i) {
|
|
|
1954
1958
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
|
1955
1959
|
};
|
|
1956
1960
|
})(U || (U = {}));
|
|
1957
|
-
var se,
|
|
1961
|
+
var se, vl = function() {
|
|
1958
1962
|
function a() {
|
|
1959
1963
|
}
|
|
1960
1964
|
return a.prototype.round = function(e) {
|
|
@@ -1992,17 +1996,17 @@ var se, sl = function() {
|
|
|
1992
1996
|
}, a.prototype.annotateArcs = function() {
|
|
1993
1997
|
return this.transform(U.ANNOTATE_ARCS());
|
|
1994
1998
|
}, a;
|
|
1995
|
-
}(),
|
|
1999
|
+
}(), Eb = function(a) {
|
|
1996
2000
|
return a === " " || a === " " || a === "\r" || a === `
|
|
1997
2001
|
`;
|
|
1998
|
-
},
|
|
2002
|
+
}, yo = function(a) {
|
|
1999
2003
|
return 48 <= a.charCodeAt(0) && a.charCodeAt(0) <= 57;
|
|
2000
|
-
},
|
|
2004
|
+
}, $b = function(a) {
|
|
2001
2005
|
function e() {
|
|
2002
2006
|
var t = a.call(this) || this;
|
|
2003
2007
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2004
2008
|
}
|
|
2005
|
-
return
|
|
2009
|
+
return hl(e, a), e.prototype.finish = function(t) {
|
|
2006
2010
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma) throw new SyntaxError("Unterminated command at the path end.");
|
|
2007
2011
|
return t;
|
|
2008
2012
|
}, e.prototype.parse = function(t, r) {
|
|
@@ -2011,8 +2015,8 @@ var se, sl = function() {
|
|
|
2011
2015
|
for (var n = function(f) {
|
|
2012
2016
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2013
2017
|
}, o = 0; o < t.length; o++) {
|
|
2014
|
-
var s = t[o], u = !(this.curCommandType !== m.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l =
|
|
2015
|
-
if (!
|
|
2018
|
+
var s = t[o], u = !(this.curCommandType !== m.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l = yo(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2019
|
+
if (!yo(s) || l) if (s !== "e" && s !== "E") if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
2016
2020
|
if (this.curNumber && this.curCommandType !== -1) {
|
|
2017
2021
|
var h = Number(this.curNumber);
|
|
2018
2022
|
if (isNaN(h)) throw new SyntaxError("Invalid number ending at " + o);
|
|
@@ -2021,9 +2025,9 @@ var se, sl = function() {
|
|
|
2021
2025
|
if (0 > h) throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + o + '"');
|
|
2022
2026
|
} 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 "' + o + '"');
|
|
2023
2027
|
}
|
|
2024
|
-
this.curArgs.push(h), this.curArgs.length ===
|
|
2028
|
+
this.curArgs.push(h), this.curArgs.length === wb[this.curCommandType] && (m.HORIZ_LINE_TO === this.curCommandType ? n({ type: m.HORIZ_LINE_TO, relative: this.curCommandRelative, x: h }) : m.VERT_LINE_TO === this.curCommandType ? n({ type: m.VERT_LINE_TO, relative: this.curCommandRelative, y: h }) : this.curCommandType === m.MOVE_TO || this.curCommandType === m.LINE_TO || this.curCommandType === m.SMOOTH_QUAD_TO ? (n({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), m.MOVE_TO === this.curCommandType && (this.curCommandType = m.LINE_TO)) : this.curCommandType === m.CURVE_TO ? n({ type: m.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 === m.SMOOTH_CURVE_TO ? n({ type: m.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === m.QUAD_TO ? n({ type: m.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === m.ARC && n({ type: m.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;
|
|
2025
2029
|
}
|
|
2026
|
-
if (!
|
|
2030
|
+
if (!Eb(s)) if (s === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
|
|
2027
2031
|
else if (s !== "+" && s !== "-" && s !== ".") if (l) this.curNumber = s, this.curNumberHasDecimal = !1;
|
|
2028
2032
|
else {
|
|
2029
2033
|
if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + o + ".");
|
|
@@ -2059,12 +2063,12 @@ var se, sl = function() {
|
|
|
2059
2063
|
return i;
|
|
2060
2064
|
} } });
|
|
2061
2065
|
}, e;
|
|
2062
|
-
}(
|
|
2066
|
+
}(vl), m = function(a) {
|
|
2063
2067
|
function e(t) {
|
|
2064
2068
|
var r = a.call(this) || this;
|
|
2065
2069
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2066
2070
|
}
|
|
2067
|
-
return
|
|
2071
|
+
return hl(e, a), e.prototype.encode = function() {
|
|
2068
2072
|
return e.encode(this.commands);
|
|
2069
2073
|
}, e.prototype.getBounds = function() {
|
|
2070
2074
|
var t = U.CALCULATE_BOUNDS();
|
|
@@ -2076,36 +2080,36 @@ var se, sl = function() {
|
|
|
2076
2080
|
}
|
|
2077
2081
|
return this.commands = r, this;
|
|
2078
2082
|
}, e.encode = function(t) {
|
|
2079
|
-
return
|
|
2083
|
+
return Sb(t);
|
|
2080
2084
|
}, e.parse = function(t) {
|
|
2081
|
-
var r = new
|
|
2085
|
+
var r = new $b(), i = [];
|
|
2082
2086
|
return r.parse(t, i), r.finish(i), i;
|
|
2083
2087
|
}, 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;
|
|
2084
|
-
}(
|
|
2088
|
+
}(vl), wb = ((se = {})[m.MOVE_TO] = 2, se[m.LINE_TO] = 2, se[m.HORIZ_LINE_TO] = 1, se[m.VERT_LINE_TO] = 1, se[m.CLOSE_PATH] = 0, se[m.QUAD_TO] = 4, se[m.SMOOTH_QUAD_TO] = 2, se[m.CURVE_TO] = 6, se[m.SMOOTH_CURVE_TO] = 4, se[m.ARC] = 7, se), Cb = Y, Ab = fe, Pb = br, Rb = Fu, mo = RegExp.prototype, Nb = function(a) {
|
|
2085
2089
|
var e = a.flags;
|
|
2086
|
-
return e === void 0 && !("flags" in
|
|
2087
|
-
},
|
|
2088
|
-
return
|
|
2089
|
-
}),
|
|
2090
|
-
(
|
|
2091
|
-
var e =
|
|
2090
|
+
return e === void 0 && !("flags" in mo) && !Ab(a, "flags") && Pb(mo, a) ? Cb(Rb, a) : e;
|
|
2091
|
+
}, Ib = Sr.PROPER, Mb = Ue, _b = J, bo = pe, Vb = k, Db = Nb, rn = "toString", fl = RegExp.prototype, cl = fl[rn], kb = Vb(function() {
|
|
2092
|
+
return cl.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2093
|
+
}), Lb = Ib && cl.name !== rn;
|
|
2094
|
+
(kb || Lb) && Mb(fl, rn, function() {
|
|
2095
|
+
var e = _b(this), t = bo(e.source), r = bo(Db(e));
|
|
2092
2096
|
return "/" + t + "/" + r;
|
|
2093
2097
|
}, { unsafe: !0 });
|
|
2094
|
-
function
|
|
2098
|
+
function vr(a) {
|
|
2095
2099
|
"@babel/helpers - typeof";
|
|
2096
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2100
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? vr = function(e) {
|
|
2097
2101
|
return typeof e;
|
|
2098
|
-
} :
|
|
2102
|
+
} : vr = function(e) {
|
|
2099
2103
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2100
|
-
},
|
|
2104
|
+
}, vr(a);
|
|
2101
2105
|
}
|
|
2102
|
-
function
|
|
2106
|
+
function Bb(a, e) {
|
|
2103
2107
|
if (!(a instanceof e))
|
|
2104
2108
|
throw new TypeError("Cannot call a class as a function");
|
|
2105
2109
|
}
|
|
2106
|
-
var
|
|
2107
|
-
function
|
|
2108
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
|
2110
|
+
var jb = [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], Fb = [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];
|
|
2111
|
+
function Ub(a, e, t, r, i) {
|
|
2112
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || vr(a) !== "object" || !("getContext" in a))
|
|
2109
2113
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
2110
2114
|
var n = a.getContext("2d");
|
|
2111
2115
|
try {
|
|
@@ -2114,69 +2118,69 @@ function jb(a, e, t, r, i) {
|
|
|
2114
2118
|
throw new Error("unable to access image data: " + o);
|
|
2115
2119
|
}
|
|
2116
2120
|
}
|
|
2117
|
-
function
|
|
2121
|
+
function Gb(a, e, t, r, i, n) {
|
|
2118
2122
|
if (!(isNaN(n) || n < 1)) {
|
|
2119
2123
|
n |= 0;
|
|
2120
|
-
var o =
|
|
2121
|
-
o =
|
|
2124
|
+
var o = Ub(a, e, t, r, i);
|
|
2125
|
+
o = zb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2122
2126
|
}
|
|
2123
2127
|
}
|
|
2124
|
-
function
|
|
2125
|
-
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new
|
|
2126
|
-
v = v.next = new
|
|
2128
|
+
function zb(a, e, t, r, i, n) {
|
|
2129
|
+
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new xo(), v = c, d, g = 1; g < s; g++)
|
|
2130
|
+
v = v.next = new xo(), g === h && (d = v);
|
|
2127
2131
|
v.next = c;
|
|
2128
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
|
2132
|
+
for (var p = null, y = null, x = 0, b = 0, T = jb[n], $ = Fb[n], E = 0; E < i; E++) {
|
|
2129
2133
|
v = c;
|
|
2130
2134
|
for (var O = o[b], C = o[b + 1], I = o[b + 2], _ = o[b + 3], j = 0; j < h; j++)
|
|
2131
2135
|
v.r = O, v.g = C, v.b = I, v.a = _, v = v.next;
|
|
2132
2136
|
for (var P = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * I, R = h * _, M = f * O, K = f * C, ne = f * I, ge = f * _, Se = 1; Se < h; Se++) {
|
|
2133
|
-
var ze = b + ((u < Se ? u : Se) << 2),
|
|
2134
|
-
M += (v.r =
|
|
2137
|
+
var ze = b + ((u < Se ? u : Se) << 2), Mt = o[ze], sn = o[ze + 1], on = o[ze + 2], un = o[ze + 3], _t = h - Se;
|
|
2138
|
+
M += (v.r = Mt) * _t, K += (v.g = sn) * _t, ne += (v.b = on) * _t, ge += (v.a = un) * _t, P += Mt, X += sn, W += on, G += un, v = v.next;
|
|
2135
2139
|
}
|
|
2136
2140
|
p = c, y = d;
|
|
2137
|
-
for (var
|
|
2138
|
-
var
|
|
2139
|
-
if (o[b + 3] =
|
|
2140
|
-
var
|
|
2141
|
-
o[b] = (M * T >>> $) *
|
|
2141
|
+
for (var Lr = 0; Lr < r; Lr++) {
|
|
2142
|
+
var Br = ge * T >>> $;
|
|
2143
|
+
if (o[b + 3] = Br, Br !== 0) {
|
|
2144
|
+
var jr = 255 / Br;
|
|
2145
|
+
o[b] = (M * T >>> $) * jr, o[b + 1] = (K * T >>> $) * jr, o[b + 2] = (ne * T >>> $) * jr;
|
|
2142
2146
|
} else
|
|
2143
2147
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
|
2144
2148
|
M -= q, K -= H, ne -= Q, ge -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
|
|
2145
|
-
var Ae =
|
|
2149
|
+
var Ae = Lr + n + 1;
|
|
2146
2150
|
Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], G += p.a = o[Ae + 3], M += P, K += X, ne += W, ge += G, p = p.next;
|
|
2147
|
-
var
|
|
2148
|
-
q +=
|
|
2151
|
+
var Vt = y, ln = Vt.r, hn = Vt.g, vn = Vt.b, fn = Vt.a;
|
|
2152
|
+
q += ln, H += hn, Q += vn, R += fn, P -= ln, X -= hn, W -= vn, G -= fn, y = y.next, b += 4;
|
|
2149
2153
|
}
|
|
2150
2154
|
x += r;
|
|
2151
2155
|
}
|
|
2152
2156
|
for (var He = 0; He < r; He++) {
|
|
2153
2157
|
b = He << 2;
|
|
2154
|
-
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3],
|
|
2158
|
+
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3], Fr = h * Pe, Ur = h * Re, Gr = h * Ne, zr = h * te, Dt = f * Pe, kt = f * Re, Lt = f * Ne, Bt = f * te;
|
|
2155
2159
|
v = c;
|
|
2156
|
-
for (var
|
|
2160
|
+
for (var cn = 0; cn < h; cn++)
|
|
2157
2161
|
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
|
2158
|
-
for (var
|
|
2159
|
-
b =
|
|
2160
|
-
var
|
|
2161
|
-
|
|
2162
|
+
for (var gn = r, Hr = 0, Yr = 0, Xr = 0, Wr = 0, jt = 1; jt <= n; jt++) {
|
|
2163
|
+
b = gn + He << 2;
|
|
2164
|
+
var Ft = h - jt;
|
|
2165
|
+
Dt += (v.r = Pe = o[b]) * Ft, kt += (v.g = Re = o[b + 1]) * Ft, Lt += (v.b = Ne = o[b + 2]) * Ft, Bt += (v.a = te = o[b + 3]) * Ft, Wr += Pe, Hr += Re, Yr += Ne, Xr += te, v = v.next, jt < l && (gn += r);
|
|
2162
2166
|
}
|
|
2163
2167
|
b = He, p = c, y = d;
|
|
2164
|
-
for (var
|
|
2168
|
+
for (var qr = 0; qr < i; qr++) {
|
|
2165
2169
|
var re = b << 2;
|
|
2166
|
-
o[re + 3] = te =
|
|
2170
|
+
o[re + 3] = te = Bt * T >>> $, te > 0 ? (te = 255 / te, o[re] = (Dt * T >>> $) * te, o[re + 1] = (kt * T >>> $) * te, o[re + 2] = (Lt * T >>> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Dt -= Fr, kt -= Ur, Lt -= Gr, Bt -= zr, Fr -= p.r, Ur -= p.g, Gr -= p.b, zr -= p.a, re = He + ((re = qr + h) < l ? re : l) * r << 2, Dt += Wr += p.r = o[re], kt += Hr += p.g = o[re + 1], Lt += Yr += p.b = o[re + 2], Bt += Xr += p.a = o[re + 3], p = p.next, Fr += Pe = y.r, Ur += Re = y.g, Gr += Ne = y.b, zr += te = y.a, Wr -= Pe, Hr -= Re, Yr -= Ne, Xr -= te, y = y.next, b += r;
|
|
2167
2171
|
}
|
|
2168
2172
|
}
|
|
2169
2173
|
return a;
|
|
2170
2174
|
}
|
|
2171
|
-
var
|
|
2175
|
+
var xo = (
|
|
2172
2176
|
/**
|
|
2173
2177
|
* Set properties.
|
|
2174
2178
|
*/
|
|
2175
2179
|
function a() {
|
|
2176
|
-
|
|
2180
|
+
Bb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2177
2181
|
}
|
|
2178
2182
|
);
|
|
2179
|
-
function
|
|
2183
|
+
function Hb() {
|
|
2180
2184
|
var {
|
|
2181
2185
|
DOMParser: a
|
|
2182
2186
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
@@ -2196,7 +2200,7 @@ function Gb() {
|
|
|
2196
2200
|
};
|
|
2197
2201
|
return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
|
|
2198
2202
|
}
|
|
2199
|
-
function
|
|
2203
|
+
function Yb(a) {
|
|
2200
2204
|
var {
|
|
2201
2205
|
DOMParser: e,
|
|
2202
2206
|
canvas: t,
|
|
@@ -2212,76 +2216,76 @@ function zb(a) {
|
|
|
2212
2216
|
createImage: t.loadImage
|
|
2213
2217
|
};
|
|
2214
2218
|
}
|
|
2215
|
-
var
|
|
2219
|
+
var i2 = /* @__PURE__ */ Object.freeze({
|
|
2216
2220
|
__proto__: null,
|
|
2217
|
-
offscreen:
|
|
2218
|
-
node:
|
|
2221
|
+
offscreen: Hb,
|
|
2222
|
+
node: Yb
|
|
2219
2223
|
});
|
|
2220
2224
|
function ht(a) {
|
|
2221
2225
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2222
2226
|
}
|
|
2223
|
-
function
|
|
2227
|
+
function Xb(a) {
|
|
2224
2228
|
return a.replace(/^[\n \t]+/, "");
|
|
2225
2229
|
}
|
|
2226
|
-
function
|
|
2230
|
+
function Wb(a) {
|
|
2227
2231
|
return a.replace(/[\n \t]+$/, "");
|
|
2228
2232
|
}
|
|
2229
2233
|
function ie(a) {
|
|
2230
2234
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2231
2235
|
return e.map(parseFloat);
|
|
2232
2236
|
}
|
|
2233
|
-
var
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
2237
|
+
var qb = /^[A-Z-]+$/;
|
|
2238
|
+
function Qb(a) {
|
|
2239
|
+
return qb.test(a) ? a.toLowerCase() : a;
|
|
2236
2240
|
}
|
|
2237
|
-
function
|
|
2241
|
+
function gl(a) {
|
|
2238
2242
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
2239
2243
|
return e[2] || e[3] || e[4];
|
|
2240
2244
|
}
|
|
2241
|
-
function
|
|
2245
|
+
function Kb(a) {
|
|
2242
2246
|
if (!a.startsWith("rgb"))
|
|
2243
2247
|
return a;
|
|
2244
2248
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
|
2245
2249
|
return t;
|
|
2246
2250
|
}
|
|
2247
|
-
var
|
|
2251
|
+
var Zb = /(\[[^\]]+\])/g, Jb = /(#[^\s+>~.[:]+)/g, e1 = /(\.[^\s+>~.[:]+)/g, t1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, r1 = /(:[\w-]+\([^)]*\))/gi, a1 = /(:[^\s+>~.[:]+)/g, i1 = /([^\s+>~.[:]+)/g;
|
|
2248
2252
|
function _e(a, e) {
|
|
2249
2253
|
var t = e.exec(a);
|
|
2250
2254
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
|
2251
2255
|
}
|
|
2252
|
-
function
|
|
2256
|
+
function n1(a) {
|
|
2253
2257
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
|
2254
|
-
return [t, r] = _e(t,
|
|
2258
|
+
return [t, r] = _e(t, Zb), e[1] += r, [t, r] = _e(t, Jb), e[0] += r, [t, r] = _e(t, e1), e[1] += r, [t, r] = _e(t, t1), e[2] += r, [t, r] = _e(t, r1), e[1] += r, [t, r] = _e(t, a1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, i1), e[2] += r, e.join("");
|
|
2255
2259
|
}
|
|
2256
2260
|
var at = 1e-8;
|
|
2257
|
-
function
|
|
2261
|
+
function To(a) {
|
|
2258
2262
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2259
2263
|
}
|
|
2260
|
-
function
|
|
2261
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2264
|
+
function bi(a, e) {
|
|
2265
|
+
return (a[0] * e[0] + a[1] * e[1]) / (To(a) * To(e));
|
|
2262
2266
|
}
|
|
2263
|
-
function
|
|
2264
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
|
2267
|
+
function Oo(a, e) {
|
|
2268
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(bi(a, e));
|
|
2265
2269
|
}
|
|
2266
|
-
function
|
|
2270
|
+
function So(a) {
|
|
2267
2271
|
return a * a * a;
|
|
2268
2272
|
}
|
|
2269
|
-
function
|
|
2273
|
+
function Eo(a) {
|
|
2270
2274
|
return 3 * a * a * (1 - a);
|
|
2271
2275
|
}
|
|
2272
|
-
function
|
|
2276
|
+
function $o(a) {
|
|
2273
2277
|
return 3 * a * (1 - a) * (1 - a);
|
|
2274
2278
|
}
|
|
2275
|
-
function
|
|
2279
|
+
function wo(a) {
|
|
2276
2280
|
return (1 - a) * (1 - a) * (1 - a);
|
|
2277
2281
|
}
|
|
2278
|
-
function
|
|
2282
|
+
function Co(a) {
|
|
2279
2283
|
return a * a;
|
|
2280
2284
|
}
|
|
2281
|
-
function
|
|
2285
|
+
function Ao(a) {
|
|
2282
2286
|
return 2 * a * (1 - a);
|
|
2283
2287
|
}
|
|
2284
|
-
function
|
|
2288
|
+
function Po(a) {
|
|
2285
2289
|
return (1 - a) * (1 - a);
|
|
2286
2290
|
}
|
|
2287
2291
|
class S {
|
|
@@ -2344,7 +2348,7 @@ class S {
|
|
|
2344
2348
|
}
|
|
2345
2349
|
getColor(e) {
|
|
2346
2350
|
var t = this.getString(e);
|
|
2347
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
|
2351
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = Kb(t), this.value = t), t;
|
|
2348
2352
|
}
|
|
2349
2353
|
getDpi() {
|
|
2350
2354
|
return 96;
|
|
@@ -2445,7 +2449,7 @@ class S {
|
|
|
2445
2449
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
2446
2450
|
;
|
|
2447
2451
|
if (e.hasValue() && this.isString() && i !== 3) {
|
|
2448
|
-
var o = new
|
|
2452
|
+
var o = new pi(t);
|
|
2449
2453
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2450
2454
|
}
|
|
2451
2455
|
return new S(this.document, this.name, t);
|
|
@@ -2464,7 +2468,7 @@ S.textBaselineMapping = {
|
|
|
2464
2468
|
hanging: "hanging",
|
|
2465
2469
|
mathematical: "alphabetic"
|
|
2466
2470
|
};
|
|
2467
|
-
class
|
|
2471
|
+
class s1 {
|
|
2468
2472
|
constructor() {
|
|
2469
2473
|
this.viewPorts = [];
|
|
2470
2474
|
}
|
|
@@ -2496,21 +2500,21 @@ class i1 {
|
|
|
2496
2500
|
return typeof e == "number" ? e : e === "x" ? this.width : e === "y" ? this.height : Math.sqrt(Math.pow(this.width, 2) + Math.pow(this.height, 2)) / Math.sqrt(2);
|
|
2497
2501
|
}
|
|
2498
2502
|
}
|
|
2499
|
-
class
|
|
2503
|
+
class D {
|
|
2500
2504
|
constructor(e, t) {
|
|
2501
2505
|
this.x = e, this.y = t;
|
|
2502
2506
|
}
|
|
2503
2507
|
static parse(e) {
|
|
2504
2508
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] = ie(e);
|
|
2505
|
-
return new
|
|
2509
|
+
return new D(r, i);
|
|
2506
2510
|
}
|
|
2507
2511
|
static parseScale(e) {
|
|
2508
2512
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] = ie(e);
|
|
2509
|
-
return new
|
|
2513
|
+
return new D(r, i);
|
|
2510
2514
|
}
|
|
2511
2515
|
static parsePath(e) {
|
|
2512
2516
|
for (var t = ie(e), r = t.length, i = [], n = 0; n < r; n += 2)
|
|
2513
|
-
i.push(new
|
|
2517
|
+
i.push(new D(t[n], t[n + 1]));
|
|
2514
2518
|
return i;
|
|
2515
2519
|
}
|
|
2516
2520
|
angleTo(e) {
|
|
@@ -2524,7 +2528,7 @@ class V {
|
|
|
2524
2528
|
this.x = i, this.y = n;
|
|
2525
2529
|
}
|
|
2526
2530
|
}
|
|
2527
|
-
class
|
|
2531
|
+
class o1 {
|
|
2528
2532
|
constructor(e) {
|
|
2529
2533
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
2530
2534
|
}
|
|
@@ -2601,7 +2605,7 @@ class n1 {
|
|
|
2601
2605
|
for (var {
|
|
2602
2606
|
window: r,
|
|
2603
2607
|
ctx: i
|
|
2604
|
-
} = this.screen, n = new
|
|
2608
|
+
} = this.screen, n = new D(e, t), o = i.canvas; o; )
|
|
2605
2609
|
n.x -= o.offsetLeft, n.y -= o.offsetTop, o = o.offsetParent;
|
|
2606
2610
|
return r.scrollX && (n.x += r.scrollX), r.scrollY && (n.y += r.scrollY), n;
|
|
2607
2611
|
}
|
|
@@ -2634,14 +2638,14 @@ class n1 {
|
|
|
2634
2638
|
});
|
|
2635
2639
|
}
|
|
2636
2640
|
}
|
|
2637
|
-
var
|
|
2638
|
-
class
|
|
2641
|
+
var dl = typeof window < "u" ? window : null, pl = typeof fetch < "u" ? fetch.bind(void 0) : null;
|
|
2642
|
+
class _r {
|
|
2639
2643
|
constructor(e) {
|
|
2640
2644
|
var {
|
|
2641
|
-
fetch: t =
|
|
2642
|
-
window: r =
|
|
2645
|
+
fetch: t = pl,
|
|
2646
|
+
window: r = dl
|
|
2643
2647
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2644
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
|
2648
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new s1(), this.mouse = new o1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
|
2645
2649
|
}
|
|
2646
2650
|
wait(e) {
|
|
2647
2651
|
this.waits.push(e);
|
|
@@ -2718,13 +2722,13 @@ class Ir {
|
|
|
2718
2722
|
this.resolveReady = b;
|
|
2719
2723
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
|
2720
2724
|
var g = Date.now(), p = g, y = 0, x = () => {
|
|
2721
|
-
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId =
|
|
2725
|
+
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = ja(x);
|
|
2722
2726
|
};
|
|
2723
|
-
r || v.start(), this.intervalId =
|
|
2727
|
+
r || v.start(), this.intervalId = ja(x);
|
|
2724
2728
|
}
|
|
2725
2729
|
}
|
|
2726
2730
|
stop() {
|
|
2727
|
-
this.intervalId && (
|
|
2731
|
+
this.intervalId && (ja.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
|
2728
2732
|
}
|
|
2729
2733
|
shouldUpdate(e, t) {
|
|
2730
2734
|
if (!e) {
|
|
@@ -2765,16 +2769,16 @@ class Ir {
|
|
|
2765
2769
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
|
2766
2770
|
}
|
|
2767
2771
|
}
|
|
2768
|
-
|
|
2769
|
-
|
|
2772
|
+
_r.defaultWindow = dl;
|
|
2773
|
+
_r.defaultFetch = pl;
|
|
2770
2774
|
var {
|
|
2771
|
-
defaultFetch:
|
|
2772
|
-
} =
|
|
2773
|
-
class
|
|
2775
|
+
defaultFetch: u1
|
|
2776
|
+
} = _r, l1 = typeof DOMParser < "u" ? DOMParser : null;
|
|
2777
|
+
class Ga {
|
|
2774
2778
|
constructor() {
|
|
2775
2779
|
var {
|
|
2776
|
-
fetch: e =
|
|
2777
|
-
DOMParser: t =
|
|
2780
|
+
fetch: e = u1,
|
|
2781
|
+
DOMParser: t = l1
|
|
2778
2782
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2779
2783
|
this.fetch = e, this.DOMParser = t;
|
|
2780
2784
|
}
|
|
@@ -2806,9 +2810,9 @@ class Fa {
|
|
|
2806
2810
|
})();
|
|
2807
2811
|
}
|
|
2808
2812
|
}
|
|
2809
|
-
class
|
|
2813
|
+
class h1 {
|
|
2810
2814
|
constructor(e, t) {
|
|
2811
|
-
this.type = "translate", this.point = null, this.point =
|
|
2815
|
+
this.type = "translate", this.point = null, this.point = D.parse(t);
|
|
2812
2816
|
}
|
|
2813
2817
|
apply(e) {
|
|
2814
2818
|
var {
|
|
@@ -2832,7 +2836,7 @@ class u1 {
|
|
|
2832
2836
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
|
2833
2837
|
}
|
|
2834
2838
|
}
|
|
2835
|
-
class
|
|
2839
|
+
class v1 {
|
|
2836
2840
|
constructor(e, t, r) {
|
|
2837
2841
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
2838
2842
|
var i = ie(t);
|
|
@@ -2883,10 +2887,10 @@ class l1 {
|
|
|
2883
2887
|
]);
|
|
2884
2888
|
}
|
|
2885
2889
|
}
|
|
2886
|
-
class
|
|
2890
|
+
class f1 {
|
|
2887
2891
|
constructor(e, t, r) {
|
|
2888
2892
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
2889
|
-
var i =
|
|
2893
|
+
var i = D.parseScale(t);
|
|
2890
2894
|
(i.x === 0 || i.y === 0) && (i.x = at, i.y = at), this.scale = i, this.originX = r[0], this.originY = r[1];
|
|
2891
2895
|
}
|
|
2892
2896
|
apply(e) {
|
|
@@ -2919,7 +2923,7 @@ class h1 {
|
|
|
2919
2923
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
|
2920
2924
|
}
|
|
2921
2925
|
}
|
|
2922
|
-
class
|
|
2926
|
+
class yl {
|
|
2923
2927
|
constructor(e, t, r) {
|
|
2924
2928
|
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
|
|
2925
2929
|
}
|
|
@@ -2943,35 +2947,35 @@ class fl {
|
|
|
2943
2947
|
e.applyTransform(this.matrix);
|
|
2944
2948
|
}
|
|
2945
2949
|
}
|
|
2946
|
-
class
|
|
2950
|
+
class ml extends yl {
|
|
2947
2951
|
constructor(e, t, r) {
|
|
2948
2952
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
|
2949
2953
|
}
|
|
2950
2954
|
}
|
|
2951
|
-
class
|
|
2955
|
+
class c1 extends ml {
|
|
2952
2956
|
constructor(e, t, r) {
|
|
2953
2957
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
|
2954
2958
|
}
|
|
2955
2959
|
}
|
|
2956
|
-
class
|
|
2960
|
+
class g1 extends ml {
|
|
2957
2961
|
constructor(e, t, r) {
|
|
2958
2962
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
|
2959
2963
|
}
|
|
2960
2964
|
}
|
|
2961
|
-
function
|
|
2965
|
+
function d1(a) {
|
|
2962
2966
|
return ht(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
2963
2967
|
}
|
|
2964
|
-
function
|
|
2968
|
+
function p1(a) {
|
|
2965
2969
|
var [e, t] = a.split("(");
|
|
2966
2970
|
return [e.trim(), t.trim().replace(")", "")];
|
|
2967
2971
|
}
|
|
2968
2972
|
class Le {
|
|
2969
2973
|
constructor(e, t, r) {
|
|
2970
2974
|
this.document = e, this.transforms = [];
|
|
2971
|
-
var i =
|
|
2975
|
+
var i = d1(t);
|
|
2972
2976
|
i.forEach((n) => {
|
|
2973
2977
|
if (n !== "none") {
|
|
2974
|
-
var [o, s] =
|
|
2978
|
+
var [o, s] = p1(n), u = Le.transformTypes[o];
|
|
2975
2979
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
|
2976
2980
|
}
|
|
2977
2981
|
});
|
|
@@ -3001,19 +3005,19 @@ class Le {
|
|
|
3001
3005
|
}
|
|
3002
3006
|
}
|
|
3003
3007
|
Le.transformTypes = {
|
|
3004
|
-
translate:
|
|
3005
|
-
rotate:
|
|
3006
|
-
scale:
|
|
3007
|
-
matrix:
|
|
3008
|
-
skewX:
|
|
3009
|
-
skewY:
|
|
3008
|
+
translate: h1,
|
|
3009
|
+
rotate: v1,
|
|
3010
|
+
scale: f1,
|
|
3011
|
+
matrix: yl,
|
|
3012
|
+
skewX: c1,
|
|
3013
|
+
skewY: g1
|
|
3010
3014
|
};
|
|
3011
3015
|
class N {
|
|
3012
3016
|
constructor(e, t) {
|
|
3013
3017
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3014
3018
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = {}, this.styles = {}, this.stylesSpecificity = {}, this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
|
3015
3019
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3016
|
-
var u =
|
|
3020
|
+
var u = Qb(s.nodeName);
|
|
3017
3021
|
this.attributes[u] = new S(e, u, s.value);
|
|
3018
3022
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3019
3023
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
@@ -3155,19 +3159,19 @@ class N {
|
|
|
3155
3159
|
}
|
|
3156
3160
|
}
|
|
3157
3161
|
N.ignoreChildTypes = ["title"];
|
|
3158
|
-
class
|
|
3162
|
+
class y1 extends N {
|
|
3159
3163
|
constructor(e, t, r) {
|
|
3160
3164
|
super(e, t, r);
|
|
3161
3165
|
}
|
|
3162
3166
|
}
|
|
3163
|
-
function
|
|
3167
|
+
function m1(a) {
|
|
3164
3168
|
var e = a.trim();
|
|
3165
3169
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
|
3166
3170
|
}
|
|
3167
|
-
function
|
|
3168
|
-
return typeof process > "u" ? a : a.trim().split(",").map(
|
|
3171
|
+
function b1(a) {
|
|
3172
|
+
return typeof process > "u" ? a : a.trim().split(",").map(m1).join(",");
|
|
3169
3173
|
}
|
|
3170
|
-
function
|
|
3174
|
+
function x1(a) {
|
|
3171
3175
|
if (!a)
|
|
3172
3176
|
return "";
|
|
3173
3177
|
var e = a.trim().toLowerCase();
|
|
@@ -3183,7 +3187,7 @@ function m1(a) {
|
|
|
3183
3187
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3184
3188
|
}
|
|
3185
3189
|
}
|
|
3186
|
-
function
|
|
3190
|
+
function T1(a) {
|
|
3187
3191
|
if (!a)
|
|
3188
3192
|
return "";
|
|
3189
3193
|
var e = a.trim().toLowerCase();
|
|
@@ -3233,12 +3237,12 @@ class Z {
|
|
|
3233
3237
|
}
|
|
3234
3238
|
toString() {
|
|
3235
3239
|
return [
|
|
3236
|
-
|
|
3240
|
+
x1(this.fontStyle),
|
|
3237
3241
|
this.fontVariant,
|
|
3238
|
-
|
|
3242
|
+
T1(this.fontWeight),
|
|
3239
3243
|
this.fontSize,
|
|
3240
3244
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3241
|
-
|
|
3245
|
+
b1(this.fontFamily)
|
|
3242
3246
|
].join(" ").trim();
|
|
3243
3247
|
}
|
|
3244
3248
|
}
|
|
@@ -3325,7 +3329,7 @@ class w extends m {
|
|
|
3325
3329
|
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 = [];
|
|
3326
3330
|
}
|
|
3327
3331
|
reset() {
|
|
3328
|
-
this.i = -1, this.command = null, this.previousCommand = null, this.start = new
|
|
3332
|
+
this.i = -1, this.command = null, this.previousCommand = null, this.start = new D(0, 0), this.control = new D(0, 0), this.current = new D(0, 0), this.points = [], this.angles = [];
|
|
3329
3333
|
}
|
|
3330
3334
|
isEnd() {
|
|
3331
3335
|
var {
|
|
@@ -3339,7 +3343,7 @@ class w extends m {
|
|
|
3339
3343
|
return this.previousCommand = this.command, this.command = e, e;
|
|
3340
3344
|
}
|
|
3341
3345
|
getPoint() {
|
|
3342
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "x", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y", r = new
|
|
3346
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "x", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y", r = new D(this.command[e], this.command[t]);
|
|
3343
3347
|
return this.makeAbsolute(r);
|
|
3344
3348
|
}
|
|
3345
3349
|
getAsControlPoint(e, t) {
|
|
@@ -3363,7 +3367,7 @@ class w extends m {
|
|
|
3363
3367
|
x: i,
|
|
3364
3368
|
y: n
|
|
3365
3369
|
}
|
|
3366
|
-
} = this, o = new
|
|
3370
|
+
} = this, o = new D(2 * t - i, 2 * r - n);
|
|
3367
3371
|
return o;
|
|
3368
3372
|
}
|
|
3369
3373
|
makeAbsolute(e) {
|
|
@@ -3581,7 +3585,7 @@ class A extends Ge {
|
|
|
3581
3585
|
var {
|
|
3582
3586
|
current: t,
|
|
3583
3587
|
command: r
|
|
3584
|
-
} = e, i = new
|
|
3588
|
+
} = e, i = new D((r.relative ? t.x : 0) + r.x, t.y);
|
|
3585
3589
|
return e.current = i, {
|
|
3586
3590
|
current: t,
|
|
3587
3591
|
point: i
|
|
@@ -3603,7 +3607,7 @@ class A extends Ge {
|
|
|
3603
3607
|
var {
|
|
3604
3608
|
current: t,
|
|
3605
3609
|
command: r
|
|
3606
|
-
} = e, i = new
|
|
3610
|
+
} = e, i = new D(t.x, (r.relative ? t.y : 0) + r.y);
|
|
3607
3611
|
return e.current = i, {
|
|
3608
3612
|
current: t,
|
|
3609
3613
|
point: i
|
|
@@ -3717,12 +3721,12 @@ class A extends Ge {
|
|
|
3717
3721
|
xRot: o,
|
|
3718
3722
|
lArcFlag: s,
|
|
3719
3723
|
sweepFlag: u
|
|
3720
|
-
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new
|
|
3724
|
+
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new D(Math.cos(l) * (t.x - h.x) / 2 + Math.sin(l) * (t.y - h.y) / 2, -Math.sin(l) * (t.x - h.x) / 2 + Math.cos(l) * (t.y - h.y) / 2), c = Math.pow(f.x, 2) / Math.pow(i, 2) + Math.pow(f.y, 2) / Math.pow(n, 2);
|
|
3721
3725
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3722
3726
|
var v = (s === u ? -1 : 1) * Math.sqrt((Math.pow(i, 2) * Math.pow(n, 2) - Math.pow(i, 2) * Math.pow(f.y, 2) - Math.pow(n, 2) * Math.pow(f.x, 2)) / (Math.pow(i, 2) * Math.pow(f.y, 2) + Math.pow(n, 2) * Math.pow(f.x, 2)));
|
|
3723
3727
|
isNaN(v) && (v = 0);
|
|
3724
|
-
var d = new
|
|
3725
|
-
return
|
|
3728
|
+
var d = new D(v * i * f.y / n, v * -n * f.x / i), g = new D((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p = Oo([1, 0], [(f.x - d.x) / i, (f.y - d.y) / n]), y = [(f.x - d.x) / i, (f.y - d.y) / n], x = [(-f.x - d.x) / i, (-f.y - d.y) / n], b = Oo(y, x);
|
|
3729
|
+
return bi(y, x) <= -1 && (b = Math.PI), bi(y, x) >= 1 && (b = 0), {
|
|
3726
3730
|
currentPoint: h,
|
|
3727
3731
|
rX: i,
|
|
3728
3732
|
rY: n,
|
|
@@ -3745,7 +3749,7 @@ class A extends Ge {
|
|
|
3745
3749
|
centp: l,
|
|
3746
3750
|
a1: h,
|
|
3747
3751
|
ad: f
|
|
3748
|
-
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), d = new
|
|
3752
|
+
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), d = new D(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
|
|
3749
3753
|
if (r.addMarkerAngle(d, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
|
|
3750
3754
|
var g = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
|
|
3751
3755
|
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, g, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
|
|
@@ -3758,7 +3762,7 @@ class A extends Ge {
|
|
|
3758
3762
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
|
3759
3763
|
}
|
|
3760
3764
|
}
|
|
3761
|
-
class
|
|
3765
|
+
class bl extends A {
|
|
3762
3766
|
constructor(e, t, r) {
|
|
3763
3767
|
super(e, t, r), this.type = "glyph", this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber(), this.unicode = this.getAttribute("unicode").getString(), this.arabicForm = this.getAttribute("arabic-form").getString();
|
|
3764
3768
|
}
|
|
@@ -3803,7 +3807,7 @@ class Ce extends Ge {
|
|
|
3803
3807
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3804
3808
|
if ((r === 0 || s === " ") && r < o - 1 && u !== " " && (l = "terminal"), r > 0 && s !== " " && r < o - 1 && u !== " " && (l = "medial"), r > 0 && s !== " " && (r === o - 1 || u === " ") && (l = "initial"), typeof e.glyphs[i] < "u") {
|
|
3805
3809
|
var h = e.glyphs[i];
|
|
3806
|
-
n = h instanceof
|
|
3810
|
+
n = h instanceof bl ? h : h[l];
|
|
3807
3811
|
}
|
|
3808
3812
|
} else
|
|
3809
3813
|
n = e.glyphs[i];
|
|
@@ -3818,7 +3822,7 @@ class Ce extends Ge {
|
|
|
3818
3822
|
// || textNode.text
|
|
3819
3823
|
t.textContent || ""
|
|
3820
3824
|
);
|
|
3821
|
-
return i === 0 && (o =
|
|
3825
|
+
return i === 0 && (o = Xb(o)), i === n && (o = Wb(o)), o;
|
|
3822
3826
|
}
|
|
3823
3827
|
renderChildren(e) {
|
|
3824
3828
|
if (this.type !== "text") {
|
|
@@ -3947,20 +3951,20 @@ class Ce extends Ge {
|
|
|
3947
3951
|
return null;
|
|
3948
3952
|
}
|
|
3949
3953
|
}
|
|
3950
|
-
class
|
|
3954
|
+
class Vr extends Ce {
|
|
3951
3955
|
constructor(e, t, r) {
|
|
3952
|
-
super(e, t, new.target ===
|
|
3956
|
+
super(e, t, new.target === Vr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
|
3953
3957
|
}
|
|
3954
3958
|
getText() {
|
|
3955
3959
|
return this.text;
|
|
3956
3960
|
}
|
|
3957
3961
|
}
|
|
3958
|
-
class
|
|
3962
|
+
class O1 extends Vr {
|
|
3959
3963
|
constructor() {
|
|
3960
3964
|
super(...arguments), this.type = "textNode";
|
|
3961
3965
|
}
|
|
3962
3966
|
}
|
|
3963
|
-
class
|
|
3967
|
+
class It extends Ge {
|
|
3964
3968
|
constructor() {
|
|
3965
3969
|
super(...arguments), this.type = "svg", this.root = !1;
|
|
3966
3970
|
}
|
|
@@ -4023,7 +4027,7 @@ class Nt extends Ge {
|
|
|
4023
4027
|
}
|
|
4024
4028
|
}
|
|
4025
4029
|
}
|
|
4026
|
-
class
|
|
4030
|
+
class xl extends A {
|
|
4027
4031
|
constructor() {
|
|
4028
4032
|
super(...arguments), this.type = "rect";
|
|
4029
4033
|
}
|
|
@@ -4039,7 +4043,7 @@ class dl extends A {
|
|
|
4039
4043
|
return null;
|
|
4040
4044
|
}
|
|
4041
4045
|
}
|
|
4042
|
-
class
|
|
4046
|
+
class S1 extends A {
|
|
4043
4047
|
constructor() {
|
|
4044
4048
|
super(...arguments), this.type = "circle";
|
|
4045
4049
|
}
|
|
@@ -4051,7 +4055,7 @@ class T1 extends A {
|
|
|
4051
4055
|
return null;
|
|
4052
4056
|
}
|
|
4053
4057
|
}
|
|
4054
|
-
class
|
|
4058
|
+
class E1 extends A {
|
|
4055
4059
|
constructor() {
|
|
4056
4060
|
super(...arguments), this.type = "ellipse";
|
|
4057
4061
|
}
|
|
@@ -4063,12 +4067,12 @@ class O1 extends A {
|
|
|
4063
4067
|
return null;
|
|
4064
4068
|
}
|
|
4065
4069
|
}
|
|
4066
|
-
class
|
|
4070
|
+
class $1 extends A {
|
|
4067
4071
|
constructor() {
|
|
4068
4072
|
super(...arguments), this.type = "line";
|
|
4069
4073
|
}
|
|
4070
4074
|
getPoints() {
|
|
4071
|
-
return [new
|
|
4075
|
+
return [new D(this.getAttribute("x1").getPixels("x"), this.getAttribute("y1").getPixels("y")), new D(this.getAttribute("x2").getPixels("x"), this.getAttribute("y2").getPixels("y"))];
|
|
4072
4076
|
}
|
|
4073
4077
|
path(e) {
|
|
4074
4078
|
var [{
|
|
@@ -4085,9 +4089,9 @@ class S1 extends A {
|
|
|
4085
4089
|
return [[e, r], [t, r]];
|
|
4086
4090
|
}
|
|
4087
4091
|
}
|
|
4088
|
-
class
|
|
4092
|
+
class Tl extends A {
|
|
4089
4093
|
constructor(e, t, r) {
|
|
4090
|
-
super(e, t, r), this.type = "polyline", this.points = [], this.points =
|
|
4094
|
+
super(e, t, r), this.type = "polyline", this.points = [], this.points = D.parsePath(this.getAttribute("points").getString());
|
|
4091
4095
|
}
|
|
4092
4096
|
path(e) {
|
|
4093
4097
|
var {
|
|
@@ -4113,7 +4117,7 @@ class pl extends A {
|
|
|
4113
4117
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4114
4118
|
}
|
|
4115
4119
|
}
|
|
4116
|
-
class
|
|
4120
|
+
class w1 extends Tl {
|
|
4117
4121
|
constructor() {
|
|
4118
4122
|
super(...arguments), this.type = "polygon";
|
|
4119
4123
|
}
|
|
@@ -4125,12 +4129,12 @@ class E1 extends pl {
|
|
|
4125
4129
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
|
4126
4130
|
}
|
|
4127
4131
|
}
|
|
4128
|
-
class
|
|
4132
|
+
class C1 extends N {
|
|
4129
4133
|
constructor() {
|
|
4130
4134
|
super(...arguments), this.type = "pattern";
|
|
4131
4135
|
}
|
|
4132
4136
|
createPattern(e, t, r) {
|
|
4133
|
-
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new
|
|
4137
|
+
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new It(this.document, null);
|
|
4134
4138
|
o.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), o.attributes.width = new S(this.document, "width", "".concat(i, "px")), o.attributes.height = new S(this.document, "height", "".concat(n, "px")), o.attributes.transform = new S(this.document, "transform", this.getAttribute("patternTransform").getValue()), o.children = this.children;
|
|
4135
4139
|
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
|
4136
4140
|
l.hasValue() && h.hasValue() && u.translate(l.getPixels("x", !0), h.getPixels("y", !0)), r.hasValue() ? this.styles["fill-opacity"] = r : Reflect.deleteProperty(this.styles, "fill-opacity");
|
|
@@ -4141,7 +4145,7 @@ class $1 extends N {
|
|
|
4141
4145
|
return v;
|
|
4142
4146
|
}
|
|
4143
4147
|
}
|
|
4144
|
-
class
|
|
4148
|
+
class A1 extends N {
|
|
4145
4149
|
constructor() {
|
|
4146
4150
|
super(...arguments), this.type = "marker";
|
|
4147
4151
|
}
|
|
@@ -4152,19 +4156,19 @@ class w1 extends N {
|
|
|
4152
4156
|
y: n
|
|
4153
4157
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
|
4154
4158
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
|
4155
|
-
var u = new
|
|
4159
|
+
var u = new It(this.document, null);
|
|
4156
4160
|
u.type = this.type, u.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new S(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new S(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new S(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new S(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new S(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new S(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new S(this.document, "stroke", this.getAttribute("stroke").getValue("none")), u.children = this.children, u.render(e), e.restore(), s === "strokeWidth" && e.scale(1 / e.lineWidth, 1 / e.lineWidth), o === "auto" && e.rotate(-r), e.translate(-i, -n);
|
|
4157
4161
|
}
|
|
4158
4162
|
}
|
|
4159
4163
|
}
|
|
4160
|
-
class
|
|
4164
|
+
class P1 extends N {
|
|
4161
4165
|
constructor() {
|
|
4162
4166
|
super(...arguments), this.type = "defs";
|
|
4163
4167
|
}
|
|
4164
4168
|
render() {
|
|
4165
4169
|
}
|
|
4166
4170
|
}
|
|
4167
|
-
class
|
|
4171
|
+
class an extends Ge {
|
|
4168
4172
|
constructor() {
|
|
4169
4173
|
super(...arguments), this.type = "g";
|
|
4170
4174
|
}
|
|
@@ -4175,7 +4179,7 @@ class tn extends Ge {
|
|
|
4175
4179
|
}), t;
|
|
4176
4180
|
}
|
|
4177
4181
|
}
|
|
4178
|
-
class
|
|
4182
|
+
class Ol extends N {
|
|
4179
4183
|
constructor(e, t, r) {
|
|
4180
4184
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4181
4185
|
var {
|
|
@@ -4205,11 +4209,11 @@ class yl extends N {
|
|
|
4205
4209
|
} = this, {
|
|
4206
4210
|
MAX_VIRTUAL_PIXELS: u,
|
|
4207
4211
|
viewPort: l
|
|
4208
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
|
4212
|
+
} = s.screen, [h] = l.viewPorts, f = new xl(s, null);
|
|
4209
4213
|
f.attributes.x = new S(s, "x", -u / 3), f.attributes.y = new S(s, "y", -u / 3), f.attributes.width = new S(s, "width", u), f.attributes.height = new S(s, "height", u);
|
|
4210
|
-
var c = new
|
|
4214
|
+
var c = new an(s, null);
|
|
4211
4215
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
4212
|
-
var v = new
|
|
4216
|
+
var v = new It(s, null);
|
|
4213
4217
|
v.attributes.x = new S(s, "x", 0), v.attributes.y = new S(s, "y", 0), v.attributes.width = new S(s, "width", h.width), v.attributes.height = new S(s, "height", h.height), v.children = [c];
|
|
4214
4218
|
var d = s.createCanvas(h.width, h.height), g = d.getContext("2d");
|
|
4215
4219
|
return g.fillStyle = o, v.render(g), g.createPattern(d, "no-repeat");
|
|
@@ -4229,7 +4233,7 @@ class yl extends N {
|
|
|
4229
4233
|
return t;
|
|
4230
4234
|
}
|
|
4231
4235
|
}
|
|
4232
|
-
class
|
|
4236
|
+
class R1 extends Ol {
|
|
4233
4237
|
constructor(e, t, r) {
|
|
4234
4238
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4235
4239
|
}
|
|
@@ -4242,7 +4246,7 @@ class A1 extends yl {
|
|
|
4242
4246
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4243
4247
|
}
|
|
4244
4248
|
}
|
|
4245
|
-
class
|
|
4249
|
+
class N1 extends Ol {
|
|
4246
4250
|
constructor(e, t, r) {
|
|
4247
4251
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4248
4252
|
}
|
|
@@ -4257,14 +4261,14 @@ class P1 extends yl {
|
|
|
4257
4261
|
return e.createRadialGradient(s, u, h, n, o, l);
|
|
4258
4262
|
}
|
|
4259
4263
|
}
|
|
4260
|
-
class
|
|
4264
|
+
class I1 extends N {
|
|
4261
4265
|
constructor(e, t, r) {
|
|
4262
4266
|
super(e, t, r), this.type = "stop";
|
|
4263
4267
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
|
4264
4268
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
|
4265
4269
|
}
|
|
4266
4270
|
}
|
|
4267
|
-
class
|
|
4271
|
+
class nn extends N {
|
|
4268
4272
|
constructor(e, t, r) {
|
|
4269
4273
|
super(e, t, r), this.type = "animate", this.duration = 0, this.initialValue = null, this.initialUnits = "", this.removed = !1, this.frozen = !1, e.screen.animations.push(this), this.begin = this.getAttribute("begin").getMilliseconds(), this.maxDuration = this.begin + this.getAttribute("dur").getMilliseconds(), this.from = this.getAttribute("from"), this.to = this.getAttribute("to"), this.values = new S(e, "values", null);
|
|
4270
4274
|
var i = this.getAttribute("values");
|
|
@@ -4325,7 +4329,7 @@ class rn extends N {
|
|
|
4325
4329
|
return r;
|
|
4326
4330
|
}
|
|
4327
4331
|
}
|
|
4328
|
-
class
|
|
4332
|
+
class M1 extends nn {
|
|
4329
4333
|
constructor() {
|
|
4330
4334
|
super(...arguments), this.type = "animateColor";
|
|
4331
4335
|
}
|
|
@@ -4334,7 +4338,7 @@ class N1 extends rn {
|
|
|
4334
4338
|
progress: e,
|
|
4335
4339
|
from: t,
|
|
4336
4340
|
to: r
|
|
4337
|
-
} = this.getProgress(), i = new
|
|
4341
|
+
} = this.getProgress(), i = new pi(t.getColor()), n = new pi(r.getColor());
|
|
4338
4342
|
if (i.ok && n.ok) {
|
|
4339
4343
|
var o = i.r + (n.r - i.r) * e, s = i.g + (n.g - i.g) * e, u = i.b + (n.b - i.b) * e;
|
|
4340
4344
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
|
@@ -4342,7 +4346,7 @@ class N1 extends rn {
|
|
|
4342
4346
|
return this.getAttribute("from").getColor();
|
|
4343
4347
|
}
|
|
4344
4348
|
}
|
|
4345
|
-
class
|
|
4349
|
+
class _1 extends nn {
|
|
4346
4350
|
constructor() {
|
|
4347
4351
|
super(...arguments), this.type = "animateTransform";
|
|
4348
4352
|
}
|
|
@@ -4358,7 +4362,7 @@ class I1 extends rn {
|
|
|
4358
4362
|
return o;
|
|
4359
4363
|
}
|
|
4360
4364
|
}
|
|
4361
|
-
class
|
|
4365
|
+
class V1 extends N {
|
|
4362
4366
|
constructor(e, t, r) {
|
|
4363
4367
|
super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4364
4368
|
var {
|
|
@@ -4387,17 +4391,17 @@ class M1 extends N {
|
|
|
4387
4391
|
render() {
|
|
4388
4392
|
}
|
|
4389
4393
|
}
|
|
4390
|
-
class
|
|
4394
|
+
class D1 extends N {
|
|
4391
4395
|
constructor(e, t, r) {
|
|
4392
4396
|
super(e, t, r), this.type = "font-face", this.ascent = this.getAttribute("ascent").getNumber(), this.descent = this.getAttribute("descent").getNumber(), this.unitsPerEm = this.getAttribute("units-per-em").getNumber();
|
|
4393
4397
|
}
|
|
4394
4398
|
}
|
|
4395
|
-
class
|
|
4399
|
+
class k1 extends A {
|
|
4396
4400
|
constructor() {
|
|
4397
4401
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4398
4402
|
}
|
|
4399
4403
|
}
|
|
4400
|
-
class
|
|
4404
|
+
class L1 extends Ce {
|
|
4401
4405
|
constructor() {
|
|
4402
4406
|
super(...arguments), this.type = "tref";
|
|
4403
4407
|
}
|
|
@@ -4411,7 +4415,7 @@ class D1 extends Ce {
|
|
|
4411
4415
|
return "";
|
|
4412
4416
|
}
|
|
4413
4417
|
}
|
|
4414
|
-
class
|
|
4418
|
+
class B1 extends Ce {
|
|
4415
4419
|
constructor(e, t, r) {
|
|
4416
4420
|
super(e, t, r), this.type = "a";
|
|
4417
4421
|
var {
|
|
@@ -4434,7 +4438,7 @@ class k1 extends Ce {
|
|
|
4434
4438
|
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4435
4439
|
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4436
4440
|
} else if (this.children.length > 0) {
|
|
4437
|
-
var s = new
|
|
4441
|
+
var s = new an(this.document, null);
|
|
4438
4442
|
s.children = this.children, s.parent = this, s.render(e);
|
|
4439
4443
|
}
|
|
4440
4444
|
}
|
|
@@ -4449,7 +4453,7 @@ class k1 extends Ce {
|
|
|
4449
4453
|
e.canvas.style.cursor = "pointer";
|
|
4450
4454
|
}
|
|
4451
4455
|
}
|
|
4452
|
-
function
|
|
4456
|
+
function Ro(a, e) {
|
|
4453
4457
|
var t = Object.keys(a);
|
|
4454
4458
|
if (Object.getOwnPropertySymbols) {
|
|
4455
4459
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -4459,18 +4463,18 @@ function $o(a, e) {
|
|
|
4459
4463
|
}
|
|
4460
4464
|
return t;
|
|
4461
4465
|
}
|
|
4462
|
-
function
|
|
4466
|
+
function ar(a) {
|
|
4463
4467
|
for (var e = 1; e < arguments.length; e++) {
|
|
4464
4468
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4465
|
-
e % 2 ?
|
|
4466
|
-
|
|
4467
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
4469
|
+
e % 2 ? Ro(Object(t), !0).forEach(function(r) {
|
|
4470
|
+
tn(a, r, t[r]);
|
|
4471
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ro(Object(t)).forEach(function(r) {
|
|
4468
4472
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4469
4473
|
});
|
|
4470
4474
|
}
|
|
4471
4475
|
return a;
|
|
4472
4476
|
}
|
|
4473
|
-
class
|
|
4477
|
+
class j1 extends Ce {
|
|
4474
4478
|
constructor(e, t, r) {
|
|
4475
4479
|
super(e, t, r), this.type = "textPath", this.textWidth = 0, this.textHeight = 0, this.pathLength = -1, this.glyphInfo = null, this.letterSpacingCache = [], this.measuresCache = /* @__PURE__ */ new Map([["", 0]]);
|
|
4476
4480
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4540,10 +4544,10 @@ class L1 extends Ce {
|
|
|
4540
4544
|
}, p = v && d ? Math.atan2(d.y - v.y, d.x - v.x) : 0;
|
|
4541
4545
|
if (s) {
|
|
4542
4546
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
|
4543
|
-
g.p0 =
|
|
4547
|
+
g.p0 = ar(ar({}, v), {}, {
|
|
4544
4548
|
x: v.x + y,
|
|
4545
4549
|
y: v.y + x
|
|
4546
|
-
}), g.p1 =
|
|
4550
|
+
}), g.p1 = ar(ar({}, d), {}, {
|
|
4547
4551
|
x: d.x + y,
|
|
4548
4552
|
y: d.y + x
|
|
4549
4553
|
});
|
|
@@ -4821,14 +4825,14 @@ class L1 extends Ce {
|
|
|
4821
4825
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4822
4826
|
}
|
|
4823
4827
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4824
|
-
var h = u *
|
|
4828
|
+
var h = u * So(e) + o * Eo(e) + i * $o(e) + t * wo(e), f = l * So(e) + s * Eo(e) + n * $o(e) + r * wo(e);
|
|
4825
4829
|
return {
|
|
4826
4830
|
x: h,
|
|
4827
4831
|
y: f
|
|
4828
4832
|
};
|
|
4829
4833
|
}
|
|
4830
4834
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
|
4831
|
-
var u = o *
|
|
4835
|
+
var u = o * Co(e) + i * Ao(e) + t * Po(e), l = s * Co(e) + n * Ao(e) + r * Po(e);
|
|
4832
4836
|
return {
|
|
4833
4837
|
x: u,
|
|
4834
4838
|
y: l
|
|
@@ -4870,8 +4874,8 @@ class L1 extends Ce {
|
|
|
4870
4874
|
return this.equidistantCache.points[i] || null;
|
|
4871
4875
|
}
|
|
4872
4876
|
}
|
|
4873
|
-
var
|
|
4874
|
-
class
|
|
4877
|
+
var F1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
4878
|
+
class U1 extends Ge {
|
|
4875
4879
|
constructor(e, t, r) {
|
|
4876
4880
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
4877
4881
|
var i = this.getHrefAttribute().getString();
|
|
@@ -4895,7 +4899,7 @@ class j1 extends Ge {
|
|
|
4895
4899
|
loadSvg(e) {
|
|
4896
4900
|
var t = this;
|
|
4897
4901
|
return xe(function* () {
|
|
4898
|
-
var r =
|
|
4902
|
+
var r = F1.exec(e);
|
|
4899
4903
|
if (r) {
|
|
4900
4904
|
var i = r[5];
|
|
4901
4905
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
|
@@ -4947,14 +4951,14 @@ class j1 extends Ge {
|
|
|
4947
4951
|
return new ce(e, t, e + r, t + i);
|
|
4948
4952
|
}
|
|
4949
4953
|
}
|
|
4950
|
-
class
|
|
4954
|
+
class G1 extends Ge {
|
|
4951
4955
|
constructor() {
|
|
4952
4956
|
super(...arguments), this.type = "symbol";
|
|
4953
4957
|
}
|
|
4954
4958
|
render(e) {
|
|
4955
4959
|
}
|
|
4956
4960
|
}
|
|
4957
|
-
class
|
|
4961
|
+
class z1 {
|
|
4958
4962
|
constructor(e) {
|
|
4959
4963
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
|
4960
4964
|
}
|
|
@@ -4976,7 +4980,7 @@ class U1 {
|
|
|
4976
4980
|
})();
|
|
4977
4981
|
}
|
|
4978
4982
|
}
|
|
4979
|
-
class
|
|
4983
|
+
class Sl extends N {
|
|
4980
4984
|
constructor(e, t, r) {
|
|
4981
4985
|
super(e, t, r), this.type = "style";
|
|
4982
4986
|
var i = ht(
|
|
@@ -4994,12 +4998,12 @@ class ml extends N {
|
|
|
4994
4998
|
if (h.forEach((p) => {
|
|
4995
4999
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
|
4996
5000
|
x && b && (v[x] = new S(e, x, b));
|
|
4997
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
|
5001
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = n1(c), c === "@font-face") {
|
|
4998
5002
|
var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
|
|
4999
5003
|
g.forEach((p) => {
|
|
5000
5004
|
if (p.indexOf('format("svg")') > 0) {
|
|
5001
|
-
var y =
|
|
5002
|
-
y && new
|
|
5005
|
+
var y = gl(p);
|
|
5006
|
+
y && new z1(e).load(d, y);
|
|
5003
5007
|
}
|
|
5004
5008
|
});
|
|
5005
5009
|
}
|
|
@@ -5009,8 +5013,8 @@ class ml extends N {
|
|
|
5009
5013
|
});
|
|
5010
5014
|
}
|
|
5011
5015
|
}
|
|
5012
|
-
|
|
5013
|
-
class
|
|
5016
|
+
Sl.parseExternalUrl = gl;
|
|
5017
|
+
class H1 extends Ge {
|
|
5014
5018
|
constructor() {
|
|
5015
5019
|
super(...arguments), this.type = "use";
|
|
5016
5020
|
}
|
|
@@ -5032,7 +5036,7 @@ class G1 extends Ge {
|
|
|
5032
5036
|
} = this;
|
|
5033
5037
|
if (r) {
|
|
5034
5038
|
var i = r;
|
|
5035
|
-
if (r.type === "symbol" && (i = new
|
|
5039
|
+
if (r.type === "symbol" && (i = new It(t, null), i.attributes.viewBox = new S(t, "viewBox", r.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new S(t, "preserveAspectRatio", r.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new S(t, "overflow", r.getAttribute("overflow").getString()), i.children = r.children, r.styles.opacity = new S(t, "opacity", this.calculateOpacity())), i.type === "svg") {
|
|
5036
5040
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
|
5037
5041
|
n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
|
|
5038
5042
|
}
|
|
@@ -5057,10 +5061,10 @@ class G1 extends Ge {
|
|
|
5057
5061
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
5058
5062
|
}
|
|
5059
5063
|
}
|
|
5060
|
-
function
|
|
5064
|
+
function ir(a, e, t, r, i, n) {
|
|
5061
5065
|
return a[t * r * 4 + e * 4 + n];
|
|
5062
5066
|
}
|
|
5063
|
-
function
|
|
5067
|
+
function nr(a, e, t, r, i, n, o) {
|
|
5064
5068
|
a[t * r * 4 + e * 4 + n] = o;
|
|
5065
5069
|
}
|
|
5066
5070
|
function F(a, e, t) {
|
|
@@ -5070,7 +5074,7 @@ function F(a, e, t) {
|
|
|
5070
5074
|
function me(a, e, t, r) {
|
|
5071
5075
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5072
5076
|
}
|
|
5073
|
-
class
|
|
5077
|
+
class El extends N {
|
|
5074
5078
|
constructor(e, t, r) {
|
|
5075
5079
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5076
5080
|
var i = ie(this.getAttribute("values").getString());
|
|
@@ -5097,13 +5101,13 @@ class bl extends N {
|
|
|
5097
5101
|
matrix: s
|
|
5098
5102
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
|
5099
5103
|
for (var h = 0; h < i; h++) {
|
|
5100
|
-
var f =
|
|
5101
|
-
o && (g = 0, p = 0, y = 0, x *= d / 255),
|
|
5104
|
+
var f = ir(u.data, h, l, i, n, 0), c = ir(u.data, h, l, i, n, 1), v = ir(u.data, h, l, i, n, 2), d = ir(u.data, h, l, i, n, 3), g = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, d) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, d) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, d) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, d) + F(s, 19, 1);
|
|
5105
|
+
o && (g = 0, p = 0, y = 0, x *= d / 255), nr(u.data, h, l, i, n, 0, g), nr(u.data, h, l, i, n, 1, p), nr(u.data, h, l, i, n, 2, y), nr(u.data, h, l, i, n, 3, x);
|
|
5102
5106
|
}
|
|
5103
5107
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5104
5108
|
}
|
|
5105
5109
|
}
|
|
5106
|
-
class
|
|
5110
|
+
class Dr extends N {
|
|
5107
5111
|
constructor() {
|
|
5108
5112
|
super(...arguments), this.type = "mask";
|
|
5109
5113
|
}
|
|
@@ -5117,8 +5121,8 @@ class _r extends N {
|
|
|
5117
5121
|
u.addBoundingBox(d.getBoundingBox(e));
|
|
5118
5122
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5119
5123
|
}
|
|
5120
|
-
var l = this.removeStyles(t,
|
|
5121
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
|
5124
|
+
var l = this.removeStyles(t, Dr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5125
|
+
r.screen.setDefaults(f), this.renderChildren(f), new El(r, {
|
|
5122
5126
|
nodeType: 1,
|
|
5123
5127
|
childNodes: [],
|
|
5124
5128
|
attributes: [{
|
|
@@ -5135,10 +5139,10 @@ class _r extends N {
|
|
|
5135
5139
|
render(e) {
|
|
5136
5140
|
}
|
|
5137
5141
|
}
|
|
5138
|
-
|
|
5139
|
-
var
|
|
5142
|
+
Dr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5143
|
+
var No = () => {
|
|
5140
5144
|
};
|
|
5141
|
-
class
|
|
5145
|
+
class Y1 extends N {
|
|
5142
5146
|
constructor() {
|
|
5143
5147
|
super(...arguments), this.type = "clipPath";
|
|
5144
5148
|
}
|
|
@@ -5149,7 +5153,7 @@ class z1 extends N {
|
|
|
5149
5153
|
beginPath: i,
|
|
5150
5154
|
closePath: n
|
|
5151
5155
|
} = e;
|
|
5152
|
-
r && (r.beginPath =
|
|
5156
|
+
r && (r.beginPath = No, r.closePath = No), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5153
5157
|
if (!(typeof o.path > "u")) {
|
|
5154
5158
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
|
5155
5159
|
s || (s = Le.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
@@ -5159,7 +5163,7 @@ class z1 extends N {
|
|
|
5159
5163
|
render(e) {
|
|
5160
5164
|
}
|
|
5161
5165
|
}
|
|
5162
|
-
class
|
|
5166
|
+
class kr extends N {
|
|
5163
5167
|
constructor() {
|
|
5164
5168
|
super(...arguments), this.type = "filter";
|
|
5165
5169
|
}
|
|
@@ -5176,7 +5180,7 @@ class Vr extends N {
|
|
|
5176
5180
|
});
|
|
5177
5181
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
|
5178
5182
|
if (!(h < 1 || f < 1)) {
|
|
5179
|
-
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t,
|
|
5183
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, kr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
|
|
5180
5184
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
|
5181
5185
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
|
5182
5186
|
}), e.drawImage(g, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, d);
|
|
@@ -5186,29 +5190,29 @@ class Vr extends N {
|
|
|
5186
5190
|
render(e) {
|
|
5187
5191
|
}
|
|
5188
5192
|
}
|
|
5189
|
-
|
|
5190
|
-
class
|
|
5193
|
+
kr.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5194
|
+
class X1 extends N {
|
|
5191
5195
|
constructor(e, t, r) {
|
|
5192
5196
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
5193
5197
|
}
|
|
5194
5198
|
apply(e, t, r, i, n) {
|
|
5195
5199
|
}
|
|
5196
5200
|
}
|
|
5197
|
-
class
|
|
5201
|
+
class W1 extends N {
|
|
5198
5202
|
constructor() {
|
|
5199
5203
|
super(...arguments), this.type = "feMorphology";
|
|
5200
5204
|
}
|
|
5201
5205
|
apply(e, t, r, i, n) {
|
|
5202
5206
|
}
|
|
5203
5207
|
}
|
|
5204
|
-
class
|
|
5208
|
+
class q1 extends N {
|
|
5205
5209
|
constructor() {
|
|
5206
5210
|
super(...arguments), this.type = "feComposite";
|
|
5207
5211
|
}
|
|
5208
5212
|
apply(e, t, r, i, n) {
|
|
5209
5213
|
}
|
|
5210
5214
|
}
|
|
5211
|
-
class
|
|
5215
|
+
class Q1 extends N {
|
|
5212
5216
|
constructor(e, t, r) {
|
|
5213
5217
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
|
5214
5218
|
}
|
|
@@ -5217,63 +5221,63 @@ class W1 extends N {
|
|
|
5217
5221
|
document: o,
|
|
5218
5222
|
blurRadius: s
|
|
5219
5223
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5220
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5224
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Gb(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5221
5225
|
}
|
|
5222
5226
|
}
|
|
5223
|
-
class
|
|
5227
|
+
class K1 extends N {
|
|
5224
5228
|
constructor() {
|
|
5225
5229
|
super(...arguments), this.type = "title";
|
|
5226
5230
|
}
|
|
5227
5231
|
}
|
|
5228
|
-
class
|
|
5232
|
+
class Z1 extends N {
|
|
5229
5233
|
constructor() {
|
|
5230
5234
|
super(...arguments), this.type = "desc";
|
|
5231
5235
|
}
|
|
5232
5236
|
}
|
|
5233
|
-
var
|
|
5234
|
-
svg:
|
|
5235
|
-
rect:
|
|
5236
|
-
circle:
|
|
5237
|
-
ellipse:
|
|
5238
|
-
line:
|
|
5239
|
-
polyline:
|
|
5240
|
-
polygon:
|
|
5237
|
+
var J1 = {
|
|
5238
|
+
svg: It,
|
|
5239
|
+
rect: xl,
|
|
5240
|
+
circle: S1,
|
|
5241
|
+
ellipse: E1,
|
|
5242
|
+
line: $1,
|
|
5243
|
+
polyline: Tl,
|
|
5244
|
+
polygon: w1,
|
|
5241
5245
|
path: A,
|
|
5242
|
-
pattern:
|
|
5243
|
-
marker:
|
|
5244
|
-
defs:
|
|
5245
|
-
linearGradient:
|
|
5246
|
-
radialGradient:
|
|
5247
|
-
stop:
|
|
5248
|
-
animate:
|
|
5249
|
-
animateColor:
|
|
5250
|
-
animateTransform:
|
|
5251
|
-
font:
|
|
5252
|
-
"font-face":
|
|
5253
|
-
"missing-glyph":
|
|
5254
|
-
glyph:
|
|
5246
|
+
pattern: C1,
|
|
5247
|
+
marker: A1,
|
|
5248
|
+
defs: P1,
|
|
5249
|
+
linearGradient: R1,
|
|
5250
|
+
radialGradient: N1,
|
|
5251
|
+
stop: I1,
|
|
5252
|
+
animate: nn,
|
|
5253
|
+
animateColor: M1,
|
|
5254
|
+
animateTransform: _1,
|
|
5255
|
+
font: V1,
|
|
5256
|
+
"font-face": D1,
|
|
5257
|
+
"missing-glyph": k1,
|
|
5258
|
+
glyph: bl,
|
|
5255
5259
|
text: Ce,
|
|
5256
|
-
tspan:
|
|
5257
|
-
tref:
|
|
5258
|
-
a:
|
|
5259
|
-
textPath:
|
|
5260
|
-
image:
|
|
5261
|
-
g:
|
|
5262
|
-
symbol:
|
|
5263
|
-
style:
|
|
5264
|
-
use:
|
|
5265
|
-
mask:
|
|
5266
|
-
clipPath:
|
|
5267
|
-
filter:
|
|
5268
|
-
feDropShadow:
|
|
5269
|
-
feMorphology:
|
|
5270
|
-
feComposite:
|
|
5271
|
-
feColorMatrix:
|
|
5272
|
-
feGaussianBlur:
|
|
5273
|
-
title:
|
|
5274
|
-
desc:
|
|
5260
|
+
tspan: Vr,
|
|
5261
|
+
tref: L1,
|
|
5262
|
+
a: B1,
|
|
5263
|
+
textPath: j1,
|
|
5264
|
+
image: U1,
|
|
5265
|
+
g: an,
|
|
5266
|
+
symbol: G1,
|
|
5267
|
+
style: Sl,
|
|
5268
|
+
use: H1,
|
|
5269
|
+
mask: Dr,
|
|
5270
|
+
clipPath: Y1,
|
|
5271
|
+
filter: kr,
|
|
5272
|
+
feDropShadow: X1,
|
|
5273
|
+
feMorphology: W1,
|
|
5274
|
+
feComposite: q1,
|
|
5275
|
+
feColorMatrix: El,
|
|
5276
|
+
feGaussianBlur: Q1,
|
|
5277
|
+
title: K1,
|
|
5278
|
+
desc: Z1
|
|
5275
5279
|
};
|
|
5276
|
-
function
|
|
5280
|
+
function Io(a, e) {
|
|
5277
5281
|
var t = Object.keys(a);
|
|
5278
5282
|
if (Object.getOwnPropertySymbols) {
|
|
5279
5283
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5283,26 +5287,26 @@ function Co(a, e) {
|
|
|
5283
5287
|
}
|
|
5284
5288
|
return t;
|
|
5285
5289
|
}
|
|
5286
|
-
function
|
|
5290
|
+
function e2(a) {
|
|
5287
5291
|
for (var e = 1; e < arguments.length; e++) {
|
|
5288
5292
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5289
|
-
e % 2 ?
|
|
5290
|
-
|
|
5291
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5293
|
+
e % 2 ? Io(Object(t), !0).forEach(function(r) {
|
|
5294
|
+
tn(a, r, t[r]);
|
|
5295
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Io(Object(t)).forEach(function(r) {
|
|
5292
5296
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5293
5297
|
});
|
|
5294
5298
|
}
|
|
5295
5299
|
return a;
|
|
5296
5300
|
}
|
|
5297
|
-
function
|
|
5301
|
+
function t2(a, e) {
|
|
5298
5302
|
var t = document.createElement("canvas");
|
|
5299
5303
|
return t.width = a, t.height = e, t;
|
|
5300
5304
|
}
|
|
5301
|
-
function
|
|
5302
|
-
return
|
|
5305
|
+
function r2(a) {
|
|
5306
|
+
return xi.apply(this, arguments);
|
|
5303
5307
|
}
|
|
5304
|
-
function
|
|
5305
|
-
return
|
|
5308
|
+
function xi() {
|
|
5309
|
+
return xi = xe(function* (a) {
|
|
5306
5310
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
|
5307
5311
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
|
5308
5312
|
t.onload = () => {
|
|
@@ -5311,7 +5315,7 @@ function mi() {
|
|
|
5311
5315
|
i(l);
|
|
5312
5316
|
}, t.src = a;
|
|
5313
5317
|
});
|
|
5314
|
-
}),
|
|
5318
|
+
}), xi.apply(this, arguments);
|
|
5315
5319
|
}
|
|
5316
5320
|
class $e {
|
|
5317
5321
|
constructor(e) {
|
|
@@ -5369,21 +5373,21 @@ class $e {
|
|
|
5369
5373
|
}
|
|
5370
5374
|
createElement(e) {
|
|
5371
5375
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
|
5372
|
-
return typeof r < "u" ? new r(this, e) : new
|
|
5376
|
+
return typeof r < "u" ? new r(this, e) : new y1(this, e);
|
|
5373
5377
|
}
|
|
5374
5378
|
createTextNode(e) {
|
|
5375
|
-
return new
|
|
5379
|
+
return new O1(this, e);
|
|
5376
5380
|
}
|
|
5377
5381
|
setViewBox(e) {
|
|
5378
|
-
this.screen.setViewBox(
|
|
5382
|
+
this.screen.setViewBox(e2({
|
|
5379
5383
|
document: this
|
|
5380
5384
|
}, e));
|
|
5381
5385
|
}
|
|
5382
5386
|
}
|
|
5383
|
-
$e.createCanvas =
|
|
5384
|
-
$e.createImage =
|
|
5385
|
-
$e.elementTypes =
|
|
5386
|
-
function
|
|
5387
|
+
$e.createCanvas = t2;
|
|
5388
|
+
$e.createImage = r2;
|
|
5389
|
+
$e.elementTypes = J1;
|
|
5390
|
+
function Mo(a, e) {
|
|
5387
5391
|
var t = Object.keys(a);
|
|
5388
5392
|
if (Object.getOwnPropertySymbols) {
|
|
5389
5393
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5396,15 +5400,15 @@ function Ao(a, e) {
|
|
|
5396
5400
|
function Ve(a) {
|
|
5397
5401
|
for (var e = 1; e < arguments.length; e++) {
|
|
5398
5402
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5399
|
-
e % 2 ?
|
|
5400
|
-
|
|
5401
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5403
|
+
e % 2 ? Mo(Object(t), !0).forEach(function(r) {
|
|
5404
|
+
tn(a, r, t[r]);
|
|
5405
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Mo(Object(t)).forEach(function(r) {
|
|
5402
5406
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5403
5407
|
});
|
|
5404
5408
|
}
|
|
5405
5409
|
return a;
|
|
5406
5410
|
}
|
|
5407
|
-
class
|
|
5411
|
+
class bt {
|
|
5408
5412
|
/**
|
|
5409
5413
|
* Main constructor.
|
|
5410
5414
|
* @param ctx - Rendering context.
|
|
@@ -5413,7 +5417,7 @@ class mt {
|
|
|
5413
5417
|
*/
|
|
5414
5418
|
constructor(e, t) {
|
|
5415
5419
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5416
|
-
this.parser = new
|
|
5420
|
+
this.parser = new Ga(r), this.screen = new _r(e, r), this.options = r;
|
|
5417
5421
|
var i = new $e(this, r), n = i.createDocumentElement(t);
|
|
5418
5422
|
this.document = i, this.documentElement = n;
|
|
5419
5423
|
}
|
|
@@ -5427,8 +5431,8 @@ class mt {
|
|
|
5427
5431
|
static from(e, t) {
|
|
5428
5432
|
var r = arguments;
|
|
5429
5433
|
return xe(function* () {
|
|
5430
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5431
|
-
return new
|
|
5434
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ga(i), o = yield n.parse(t);
|
|
5435
|
+
return new bt(e, o, i);
|
|
5432
5436
|
})();
|
|
5433
5437
|
}
|
|
5434
5438
|
/**
|
|
@@ -5439,8 +5443,8 @@ class mt {
|
|
|
5439
5443
|
* @returns Canvg instance.
|
|
5440
5444
|
*/
|
|
5441
5445
|
static fromString(e, t) {
|
|
5442
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5443
|
-
return new
|
|
5446
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ga(r), n = i.parseFromString(t);
|
|
5447
|
+
return new bt(e, n, r);
|
|
5444
5448
|
}
|
|
5445
5449
|
/**
|
|
5446
5450
|
* Create new Canvg instance with inherited options.
|
|
@@ -5451,7 +5455,7 @@ class mt {
|
|
|
5451
5455
|
*/
|
|
5452
5456
|
fork(e, t) {
|
|
5453
5457
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5454
|
-
return
|
|
5458
|
+
return bt.from(e, t, Ve(Ve({}, this.options), r));
|
|
5455
5459
|
}
|
|
5456
5460
|
/**
|
|
5457
5461
|
* Create new Canvg instance with inherited options.
|
|
@@ -5462,7 +5466,7 @@ class mt {
|
|
|
5462
5466
|
*/
|
|
5463
5467
|
forkString(e, t) {
|
|
5464
5468
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5465
|
-
return
|
|
5469
|
+
return bt.fromString(e, t, Ve(Ve({}, this.options), r));
|
|
5466
5470
|
}
|
|
5467
5471
|
/**
|
|
5468
5472
|
* Document is ready promise.
|
|
@@ -5525,90 +5529,90 @@ class mt {
|
|
|
5525
5529
|
}
|
|
5526
5530
|
}
|
|
5527
5531
|
export {
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
+
B1 as AElement,
|
|
5533
|
+
M1 as AnimateColorElement,
|
|
5534
|
+
nn as AnimateElement,
|
|
5535
|
+
_1 as AnimateTransformElement,
|
|
5532
5536
|
ce as BoundingBox,
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5537
|
+
So as CB1,
|
|
5538
|
+
Eo as CB2,
|
|
5539
|
+
$o as CB3,
|
|
5540
|
+
wo as CB4,
|
|
5541
|
+
bt as Canvg,
|
|
5542
|
+
S1 as CircleElement,
|
|
5543
|
+
Y1 as ClipPathElement,
|
|
5544
|
+
P1 as DefsElement,
|
|
5545
|
+
Z1 as DescElement,
|
|
5542
5546
|
$e as Document,
|
|
5543
5547
|
N as Element,
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5548
|
+
E1 as EllipseElement,
|
|
5549
|
+
El as FeColorMatrixElement,
|
|
5550
|
+
q1 as FeCompositeElement,
|
|
5551
|
+
X1 as FeDropShadowElement,
|
|
5552
|
+
Q1 as FeGaussianBlurElement,
|
|
5553
|
+
W1 as FeMorphologyElement,
|
|
5554
|
+
kr as FilterElement,
|
|
5551
5555
|
Z as Font,
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5556
|
+
V1 as FontElement,
|
|
5557
|
+
D1 as FontFaceElement,
|
|
5558
|
+
an as GElement,
|
|
5559
|
+
bl as GlyphElement,
|
|
5560
|
+
Ol as GradientElement,
|
|
5561
|
+
U1 as ImageElement,
|
|
5562
|
+
$1 as LineElement,
|
|
5563
|
+
R1 as LinearGradientElement,
|
|
5564
|
+
A1 as MarkerElement,
|
|
5565
|
+
Dr as MaskElement,
|
|
5566
|
+
yl as Matrix,
|
|
5567
|
+
k1 as MissingGlyphElement,
|
|
5568
|
+
o1 as Mouse,
|
|
5565
5569
|
at as PSEUDO_ZERO,
|
|
5566
|
-
|
|
5570
|
+
Ga as Parser,
|
|
5567
5571
|
A as PathElement,
|
|
5568
5572
|
w as PathParser,
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
+
C1 as PatternElement,
|
|
5574
|
+
D as Point,
|
|
5575
|
+
w1 as PolygonElement,
|
|
5576
|
+
Tl as PolylineElement,
|
|
5573
5577
|
S as Property,
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5578
|
+
Co as QB1,
|
|
5579
|
+
Ao as QB2,
|
|
5580
|
+
Po as QB3,
|
|
5581
|
+
N1 as RadialGradientElement,
|
|
5582
|
+
xl as RectElement,
|
|
5579
5583
|
Ge as RenderedElement,
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5584
|
+
v1 as Rotate,
|
|
5585
|
+
It as SVGElement,
|
|
5586
|
+
z1 as SVGFontLoader,
|
|
5587
|
+
f1 as Scale,
|
|
5588
|
+
_r as Screen,
|
|
5589
|
+
ml as Skew,
|
|
5590
|
+
c1 as SkewX,
|
|
5591
|
+
g1 as SkewY,
|
|
5592
|
+
I1 as StopElement,
|
|
5593
|
+
Sl as StyleElement,
|
|
5594
|
+
G1 as SymbolElement,
|
|
5595
|
+
L1 as TRefElement,
|
|
5596
|
+
Vr as TSpanElement,
|
|
5593
5597
|
Ce as TextElement,
|
|
5594
|
-
|
|
5595
|
-
|
|
5598
|
+
j1 as TextPathElement,
|
|
5599
|
+
K1 as TitleElement,
|
|
5596
5600
|
Le as Transform,
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
+
h1 as Translate,
|
|
5602
|
+
y1 as UnknownElement,
|
|
5603
|
+
H1 as UseElement,
|
|
5604
|
+
s1 as ViewPort,
|
|
5601
5605
|
ht as compressSpaces,
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5606
|
+
bt as default,
|
|
5607
|
+
n1 as getSelectorSpecificity,
|
|
5608
|
+
Qb as normalizeAttributeName,
|
|
5609
|
+
Kb as normalizeColor,
|
|
5610
|
+
gl as parseExternalUrl,
|
|
5611
|
+
i2 as presets,
|
|
5608
5612
|
ie as toNumbers,
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5613
|
+
Xb as trimLeft,
|
|
5614
|
+
Wb as trimRight,
|
|
5615
|
+
To as vectorMagnitude,
|
|
5616
|
+
Oo as vectorsAngle,
|
|
5617
|
+
bi as vectorsRatio
|
|
5614
5618
|
};
|