@ranty/ranty-sdk 3.28.5 → 3.29.0
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/{index-25885157.js → index-64a27cdf.js} +29729 -33094
- package/dist/{index.es-0810a608.js → index.es-6051a977.js} +1376 -1346
- package/dist/index.js +1 -1
- package/dist/purify.es-9fa673ec.js +563 -0
- package/package.json +6 -5
- package/dist/purify.es-7e874485.js +0 -529
|
@@ -1,266 +1,266 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
var
|
|
1
|
+
import { c as Qe, _ as Ha, g as Lo } from "./index-64a27cdf.js";
|
|
2
|
+
var ht = function(a) {
|
|
3
3
|
return a && a.Math === Math && a;
|
|
4
|
-
},
|
|
4
|
+
}, _ = (
|
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ht(typeof globalThis == "object" && globalThis) || ht(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
7
|
+
ht(typeof self == "object" && self) || ht(typeof Qe == "object" && Qe) || ht(typeof Qe == "object" && Qe) || // eslint-disable-next-line no-new-func -- fallback
|
|
8
8
|
function() {
|
|
9
9
|
return this;
|
|
10
10
|
}() || Function("return this")()
|
|
11
|
-
),
|
|
11
|
+
), Et = {}, D = function(a) {
|
|
12
12
|
try {
|
|
13
13
|
return !!a();
|
|
14
14
|
} catch (e) {
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, Pl = D, he = !Pl(function() {
|
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
|
19
19
|
return 7;
|
|
20
20
|
} })[1] !== 7;
|
|
21
|
-
}),
|
|
21
|
+
}), Rl = D, br = !Rl(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
|
+
}), Nl = br, Ft = Function.prototype.call, Y = Nl ? Ft.bind(Ft) : function() {
|
|
26
|
+
return Ft.apply(Ft, arguments);
|
|
27
|
+
}, ko = {}, Bo = {}.propertyIsEnumerable, jo = Object.getOwnPropertyDescriptor, Il = jo && !Bo.call({ 1: 2 }, 1);
|
|
28
|
+
ko.f = Il ? function(e) {
|
|
29
|
+
var t = jo(this, e);
|
|
30
30
|
return !!t && t.enumerable;
|
|
31
|
-
} :
|
|
32
|
-
var
|
|
31
|
+
} : Bo;
|
|
32
|
+
var Oi = 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
|
+
}, Fo = br, Uo = Function.prototype, Ya = Uo.call, Ml = Fo && Uo.bind.bind(Ya, Ya), L = Fo ? Ml : function(a) {
|
|
40
40
|
return function() {
|
|
41
|
-
return
|
|
41
|
+
return Ya.apply(a, arguments);
|
|
42
42
|
};
|
|
43
|
-
},
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
return !
|
|
43
|
+
}, Go = L, _l = Go({}.toString), Vl = Go("".slice), je = function(a) {
|
|
44
|
+
return Vl(_l(a), 8, -1);
|
|
45
|
+
}, Dl = L, Ll = D, kl = je, Zr = Object, Bl = Dl("".split), zo = Ll(function() {
|
|
46
|
+
return !Zr("z").propertyIsEnumerable(0);
|
|
47
47
|
}) ? function(a) {
|
|
48
|
-
return
|
|
49
|
-
} :
|
|
48
|
+
return kl(a) === "String" ? Bl(a, "") : Zr(a);
|
|
49
|
+
} : Zr, xr = function(a) {
|
|
50
50
|
return a == null;
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
53
|
-
throw new
|
|
51
|
+
}, jl = xr, Fl = TypeError, ve = function(a) {
|
|
52
|
+
if (jl(a))
|
|
53
|
+
throw new Fl("Can't call method on " + a);
|
|
54
54
|
return a;
|
|
55
|
-
},
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
return typeof a == "function" || a ===
|
|
55
|
+
}, Ul = zo, Gl = ve, $t = function(a) {
|
|
56
|
+
return Ul(Gl(a));
|
|
57
|
+
}, Jr = typeof document == "object" && document.all, B = typeof Jr == "undefined" && Jr !== void 0 ? function(a) {
|
|
58
|
+
return typeof a == "function" || a === Jr;
|
|
59
59
|
} : function(a) {
|
|
60
60
|
return typeof a == "function";
|
|
61
|
-
},
|
|
62
|
-
return typeof a == "object" ? a !== null :
|
|
63
|
-
},
|
|
64
|
-
return
|
|
61
|
+
}, zl = B, ae = function(a) {
|
|
62
|
+
return typeof a == "object" ? a !== null : zl(a);
|
|
63
|
+
}, ea = _, Hl = B, Yl = function(a) {
|
|
64
|
+
return Hl(a) ? a : void 0;
|
|
65
65
|
}, Fe = function(a, e) {
|
|
66
|
-
return arguments.length < 2 ?
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
!
|
|
70
|
-
var
|
|
66
|
+
return arguments.length < 2 ? Yl(ea[a]) : ea[a] && ea[a][e];
|
|
67
|
+
}, Xl = L, Tr = Xl({}.isPrototypeOf), Wl = _, yn = Wl.navigator, mn = yn && yn.userAgent, wt = mn ? String(mn) : "", Ho = _, ta = wt, bn = Ho.process, xn = Ho.Deno, Tn = bn && bn.versions || xn && xn.version, On = Tn && Tn.v8, le, cr;
|
|
68
|
+
On && (le = On.split("."), cr = le[0] > 0 && le[0] < 4 ? 1 : +(le[0] + le[1]));
|
|
69
|
+
!cr && ta && (le = ta.match(/Edge\/(\d+)/), (!le || le[1] >= 74) && (le = ta.match(/Chrome\/(\d+)/), le && (cr = +le[1])));
|
|
70
|
+
var Si = cr, Sn = Si, ql = D, Ql = _, Kl = Ql.String, Yo = !!Object.getOwnPropertySymbols && !ql(function() {
|
|
71
71
|
var a = Symbol("symbol detection");
|
|
72
|
-
return !
|
|
73
|
-
!Symbol.sham &&
|
|
74
|
-
}),
|
|
72
|
+
return !Kl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
73
|
+
!Symbol.sham && Sn && Sn < 41;
|
|
74
|
+
}), Zl = Yo, Xo = Zl && !Symbol.sham && typeof Symbol.iterator == "symbol", Jl = Fe, eh = B, th = Tr, rh = Xo, ah = Object, Wo = rh ? function(a) {
|
|
75
75
|
return typeof a == "symbol";
|
|
76
76
|
} : function(a) {
|
|
77
|
-
var e =
|
|
78
|
-
return
|
|
79
|
-
},
|
|
77
|
+
var e = Jl("Symbol");
|
|
78
|
+
return eh(e) && th(e.prototype, ah(a));
|
|
79
|
+
}, ih = String, Or = function(a) {
|
|
80
80
|
try {
|
|
81
|
-
return
|
|
81
|
+
return ih(a);
|
|
82
82
|
} catch (e) {
|
|
83
83
|
return "Object";
|
|
84
84
|
}
|
|
85
|
-
},
|
|
86
|
-
if (
|
|
85
|
+
}, nh = B, sh = Or, oh = TypeError, Te = function(a) {
|
|
86
|
+
if (nh(a))
|
|
87
87
|
return a;
|
|
88
|
-
throw new
|
|
89
|
-
},
|
|
88
|
+
throw new oh(sh(a) + " is not a function");
|
|
89
|
+
}, uh = Te, lh = xr, st = function(a, e) {
|
|
90
90
|
var t = a[e];
|
|
91
|
-
return
|
|
92
|
-
},
|
|
91
|
+
return lh(t) ? void 0 : uh(t);
|
|
92
|
+
}, ra = Y, aa = B, ia = ae, hh = TypeError, vh = function(a, e) {
|
|
93
93
|
var t, r;
|
|
94
|
-
if (e === "string" &&
|
|
94
|
+
if (e === "string" && aa(t = a.toString) && !ia(r = ra(t, a)) || aa(t = a.valueOf) && !ia(r = ra(t, a)) || e !== "string" && aa(t = a.toString) && !ia(r = ra(t, a)))
|
|
95
95
|
return r;
|
|
96
|
-
throw new
|
|
97
|
-
},
|
|
96
|
+
throw new hh("Can't convert object to primitive value");
|
|
97
|
+
}, qo = { exports: {} }, En = _, fh = Object.defineProperty, Ei = function(a, e) {
|
|
98
98
|
try {
|
|
99
|
-
|
|
99
|
+
fh(En, a, { value: e, configurable: !0, writable: !0 });
|
|
100
100
|
} catch (t) {
|
|
101
|
-
|
|
101
|
+
En[a] = e;
|
|
102
102
|
}
|
|
103
103
|
return e;
|
|
104
|
-
},
|
|
105
|
-
(
|
|
106
|
-
version: "3.
|
|
104
|
+
}, ch = _, gh = Ei, $n = "__core-js_shared__", wn = qo.exports = ch[$n] || gh($n, {});
|
|
105
|
+
(wn.versions || (wn.versions = [])).push({
|
|
106
|
+
version: "3.48.0",
|
|
107
107
|
mode: "global",
|
|
108
|
-
copyright: "©
|
|
109
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
108
|
+
copyright: "© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",
|
|
109
|
+
license: "https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",
|
|
110
110
|
source: "https://github.com/zloirock/core-js"
|
|
111
111
|
});
|
|
112
|
-
var
|
|
113
|
-
return
|
|
114
|
-
},
|
|
115
|
-
return
|
|
116
|
-
},
|
|
117
|
-
return
|
|
118
|
-
},
|
|
119
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
120
|
-
},
|
|
121
|
-
return
|
|
122
|
-
},
|
|
123
|
-
if (!
|
|
112
|
+
var $i = qo.exports, Cn = $i, wi = function(a, e) {
|
|
113
|
+
return Cn[a] || (Cn[a] = e || {});
|
|
114
|
+
}, dh = ve, ph = Object, Sr = function(a) {
|
|
115
|
+
return ph(dh(a));
|
|
116
|
+
}, yh = L, mh = Sr, bh = yh({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
|
117
|
+
return bh(mh(e), t);
|
|
118
|
+
}, xh = L, Th = 0, Oh = Math.random(), Sh = xh(1.1.toString), Qo = function(a) {
|
|
119
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + Sh(++Th + Oh, 36);
|
|
120
|
+
}, Eh = _, $h = wi, An = fe, wh = Qo, Ch = Yo, Ah = Xo, Ke = Eh.Symbol, na = $h("wks"), Ph = Ah ? Ke.for || Ke : Ke && Ke.withoutSetter || wh, z = function(a) {
|
|
121
|
+
return An(na, a) || (na[a] = Ch && An(Ke, a) ? Ke[a] : Ph("Symbol." + a)), na[a];
|
|
122
|
+
}, Rh = Y, Pn = ae, Rn = Wo, Nh = st, Ih = vh, Mh = z, _h = TypeError, Vh = Mh("toPrimitive"), Dh = function(a, e) {
|
|
123
|
+
if (!Pn(a) || Rn(a))
|
|
124
124
|
return a;
|
|
125
|
-
var t =
|
|
125
|
+
var t = Nh(a, Vh), r;
|
|
126
126
|
if (t) {
|
|
127
|
-
if (e === void 0 && (e = "default"), r =
|
|
127
|
+
if (e === void 0 && (e = "default"), r = Rh(t, a, e), !Pn(r) || Rn(r))
|
|
128
128
|
return r;
|
|
129
|
-
throw new
|
|
130
|
-
}
|
|
131
|
-
return e === void 0 && (e = "number"),
|
|
132
|
-
},
|
|
133
|
-
var e =
|
|
134
|
-
return
|
|
135
|
-
},
|
|
136
|
-
return
|
|
137
|
-
},
|
|
138
|
-
return Object.defineProperty(
|
|
129
|
+
throw new _h("Can't convert object to primitive value");
|
|
130
|
+
}
|
|
131
|
+
return e === void 0 && (e = "number"), Ih(a, e);
|
|
132
|
+
}, Lh = Dh, kh = Wo, Ko = function(a) {
|
|
133
|
+
var e = Lh(a, "string");
|
|
134
|
+
return kh(e) ? e : e + "";
|
|
135
|
+
}, Bh = _, Nn = ae, Xa = Bh.document, jh = Nn(Xa) && Nn(Xa.createElement), Er = function(a) {
|
|
136
|
+
return jh ? Xa.createElement(a) : {};
|
|
137
|
+
}, Fh = he, Uh = D, Gh = Er, Zo = !Fh && !Uh(function() {
|
|
138
|
+
return Object.defineProperty(Gh("div"), "a", {
|
|
139
139
|
get: function() {
|
|
140
140
|
return 7;
|
|
141
141
|
}
|
|
142
142
|
}).a !== 7;
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
if (e =
|
|
143
|
+
}), zh = he, Hh = Y, Yh = ko, Xh = Oi, Wh = $t, qh = Ko, Qh = fe, Kh = Zo, In = Object.getOwnPropertyDescriptor;
|
|
144
|
+
Et.f = zh ? In : function(e, t) {
|
|
145
|
+
if (e = Wh(e), t = qh(t), Kh)
|
|
146
146
|
try {
|
|
147
|
-
return
|
|
147
|
+
return In(e, t);
|
|
148
148
|
} catch (r) {
|
|
149
149
|
}
|
|
150
|
-
if (
|
|
151
|
-
return
|
|
150
|
+
if (Qh(e, t))
|
|
151
|
+
return Xh(!Hh(Yh.f, e, t), e[t]);
|
|
152
152
|
};
|
|
153
|
-
var Oe = {},
|
|
153
|
+
var Oe = {}, Zh = he, Jh = D, Jo = Zh && Jh(function() {
|
|
154
154
|
return Object.defineProperty(function() {
|
|
155
155
|
}, "prototype", {
|
|
156
156
|
value: 42,
|
|
157
157
|
writable: !1
|
|
158
158
|
}).prototype !== 42;
|
|
159
|
-
}),
|
|
160
|
-
if (
|
|
159
|
+
}), ev = ae, tv = String, rv = TypeError, J = function(a) {
|
|
160
|
+
if (ev(a))
|
|
161
161
|
return a;
|
|
162
|
-
throw new
|
|
163
|
-
},
|
|
164
|
-
Oe.f =
|
|
165
|
-
if (
|
|
166
|
-
var i =
|
|
167
|
-
i && i[
|
|
168
|
-
configurable:
|
|
169
|
-
enumerable:
|
|
162
|
+
throw new rv(tv(a) + " is not an object");
|
|
163
|
+
}, av = he, iv = Zo, nv = Jo, Ut = J, Mn = Ko, sv = TypeError, sa = Object.defineProperty, ov = Object.getOwnPropertyDescriptor, oa = "enumerable", ua = "configurable", la = "writable";
|
|
164
|
+
Oe.f = av ? nv ? function(e, t, r) {
|
|
165
|
+
if (Ut(e), t = Mn(t), Ut(r), typeof e == "function" && t === "prototype" && "value" in r && la in r && !r[la]) {
|
|
166
|
+
var i = ov(e, t);
|
|
167
|
+
i && i[la] && (e[t] = r.value, r = {
|
|
168
|
+
configurable: ua in r ? r[ua] : i[ua],
|
|
169
|
+
enumerable: oa in r ? r[oa] : i[oa],
|
|
170
170
|
writable: !1
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
return
|
|
174
|
-
} :
|
|
175
|
-
if (
|
|
173
|
+
return sa(e, t, r);
|
|
174
|
+
} : sa : function(e, t, r) {
|
|
175
|
+
if (Ut(e), t = Mn(t), Ut(r), iv)
|
|
176
176
|
try {
|
|
177
|
-
return
|
|
177
|
+
return sa(e, t, r);
|
|
178
178
|
} catch (i) {
|
|
179
179
|
}
|
|
180
180
|
if ("get" in r || "set" in r)
|
|
181
|
-
throw new
|
|
181
|
+
throw new sv("Accessors not supported");
|
|
182
182
|
return "value" in r && (e[t] = r.value), e;
|
|
183
183
|
};
|
|
184
|
-
var
|
|
185
|
-
return
|
|
184
|
+
var uv = he, lv = Oe, hv = Oi, Ct = uv ? function(a, e, t) {
|
|
185
|
+
return lv.f(a, e, hv(1, t));
|
|
186
186
|
} : function(a, e, t) {
|
|
187
187
|
return a[e] = t, a;
|
|
188
|
-
},
|
|
189
|
-
}.name === "something",
|
|
190
|
-
EXISTS:
|
|
191
|
-
PROPER:
|
|
192
|
-
CONFIGURABLE:
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
return
|
|
188
|
+
}, eu = { exports: {} }, Wa = he, vv = fe, tu = Function.prototype, fv = Wa && Object.getOwnPropertyDescriptor, Ci = vv(tu, "name"), cv = Ci && function() {
|
|
189
|
+
}.name === "something", gv = Ci && (!Wa || Wa && fv(tu, "name").configurable), $r = {
|
|
190
|
+
EXISTS: Ci,
|
|
191
|
+
PROPER: cv,
|
|
192
|
+
CONFIGURABLE: gv
|
|
193
|
+
}, dv = L, pv = B, qa = $i, yv = dv(Function.toString);
|
|
194
|
+
pv(qa.inspectSource) || (qa.inspectSource = function(a) {
|
|
195
|
+
return yv(a);
|
|
196
196
|
});
|
|
197
|
-
var
|
|
198
|
-
return
|
|
199
|
-
},
|
|
200
|
-
return
|
|
201
|
-
},
|
|
197
|
+
var Ai = qa.inspectSource, mv = _, bv = B, _n = mv.WeakMap, xv = bv(_n) && /native code/.test(String(_n)), Tv = wi, Ov = Qo, Vn = Tv("keys"), Pi = function(a) {
|
|
198
|
+
return Vn[a] || (Vn[a] = Ov(a));
|
|
199
|
+
}, Ri = {}, Sv = xv, ru = _, Ev = ae, $v = Ct, ha = fe, va = $i, wv = Pi, Cv = Ri, Dn = "Object already initialized", Qa = ru.TypeError, Av = ru.WeakMap, gr, Tt, dr, Pv = function(a) {
|
|
200
|
+
return dr(a) ? Tt(a) : gr(a, {});
|
|
201
|
+
}, Rv = function(a) {
|
|
202
202
|
return function(e) {
|
|
203
203
|
var t;
|
|
204
|
-
if (!
|
|
205
|
-
throw new
|
|
204
|
+
if (!Ev(e) || (t = Tt(e)).type !== a)
|
|
205
|
+
throw new Qa("Incompatible receiver, " + a + " required");
|
|
206
206
|
return t;
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
if (
|
|
210
|
-
var de =
|
|
211
|
-
de.get = de.get, de.has = de.has, de.set = de.set,
|
|
209
|
+
if (Sv || va.state) {
|
|
210
|
+
var de = va.state || (va.state = new Av());
|
|
211
|
+
de.get = de.get, de.has = de.has, de.set = de.set, gr = function(a, e) {
|
|
212
212
|
if (de.has(a))
|
|
213
|
-
throw new
|
|
213
|
+
throw new Qa(Dn);
|
|
214
214
|
return e.facade = a, de.set(a, e), e;
|
|
215
|
-
},
|
|
215
|
+
}, Tt = function(a) {
|
|
216
216
|
return de.get(a) || {};
|
|
217
|
-
},
|
|
217
|
+
}, dr = function(a) {
|
|
218
218
|
return de.has(a);
|
|
219
219
|
};
|
|
220
220
|
} else {
|
|
221
|
-
var Ye =
|
|
222
|
-
|
|
223
|
-
if (
|
|
224
|
-
throw new
|
|
225
|
-
return e.facade = a,
|
|
226
|
-
},
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
return
|
|
221
|
+
var Ye = wv("state");
|
|
222
|
+
Cv[Ye] = !0, gr = function(a, e) {
|
|
223
|
+
if (ha(a, Ye))
|
|
224
|
+
throw new Qa(Dn);
|
|
225
|
+
return e.facade = a, $v(a, Ye, e), e;
|
|
226
|
+
}, Tt = function(a) {
|
|
227
|
+
return ha(a, Ye) ? a[Ye] : {};
|
|
228
|
+
}, dr = function(a) {
|
|
229
|
+
return ha(a, Ye);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
set:
|
|
234
|
-
get:
|
|
235
|
-
has:
|
|
236
|
-
enforce:
|
|
237
|
-
getterFor:
|
|
238
|
-
},
|
|
239
|
-
return
|
|
232
|
+
var wr = {
|
|
233
|
+
set: gr,
|
|
234
|
+
get: Tt,
|
|
235
|
+
has: dr,
|
|
236
|
+
enforce: Pv,
|
|
237
|
+
getterFor: Rv
|
|
238
|
+
}, Ni = L, Nv = D, Iv = B, Gt = fe, Ka = he, Mv = $r.CONFIGURABLE, _v = Ai, au = wr, Vv = au.enforce, Dv = au.get, Ln = String, or = Object.defineProperty, Lv = Ni("".slice), kv = Ni("".replace), Bv = Ni([].join), jv = Ka && !Nv(function() {
|
|
239
|
+
return or(function() {
|
|
240
240
|
}, "length", { value: 8 }).length !== 8;
|
|
241
|
-
}),
|
|
242
|
-
|
|
241
|
+
}), Fv = String(String).split("String"), Uv = eu.exports = function(a, e, t) {
|
|
242
|
+
Lv(Ln(e), 0, 7) === "Symbol(" && (e = "[" + kv(Ln(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Gt(a, "name") || Mv && a.name !== e) && (Ka ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), jv && t && Gt(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
|
|
243
243
|
try {
|
|
244
|
-
t &&
|
|
244
|
+
t && Gt(t, "constructor") && t.constructor ? Ka && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
245
245
|
} catch (i) {
|
|
246
246
|
}
|
|
247
|
-
var r =
|
|
248
|
-
return
|
|
247
|
+
var r = Vv(a);
|
|
248
|
+
return Gt(r, "source") || (r.source = Bv(Fv, typeof e == "string" ? e : "")), a;
|
|
249
249
|
};
|
|
250
|
-
Function.prototype.toString =
|
|
251
|
-
return
|
|
250
|
+
Function.prototype.toString = Uv(function() {
|
|
251
|
+
return Iv(this) && Dv(this).source || _v(this);
|
|
252
252
|
}, "toString");
|
|
253
|
-
var
|
|
253
|
+
var iu = eu.exports, Gv = B, zv = Oe, Hv = iu, Yv = Ei, Ue = function(a, e, t, r) {
|
|
254
254
|
r || (r = {});
|
|
255
255
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
256
|
-
if (
|
|
257
|
-
i ? a[e] = t :
|
|
256
|
+
if (Gv(t) && Hv(t, n, r), r.global)
|
|
257
|
+
i ? a[e] = t : Yv(e, t);
|
|
258
258
|
else {
|
|
259
259
|
try {
|
|
260
260
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
261
261
|
} catch (o) {
|
|
262
262
|
}
|
|
263
|
-
i ? a[e] = t :
|
|
263
|
+
i ? a[e] = t : zv.f(a, e, {
|
|
264
264
|
value: t,
|
|
265
265
|
enumerable: !1,
|
|
266
266
|
configurable: !r.nonConfigurable,
|
|
@@ -268,26 +268,26 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
return a;
|
|
271
|
-
},
|
|
271
|
+
}, nu = {}, Xv = Math.ceil, Wv = Math.floor, qv = Math.trunc || function(e) {
|
|
272
272
|
var t = +e;
|
|
273
|
-
return (t > 0 ?
|
|
274
|
-
},
|
|
273
|
+
return (t > 0 ? Wv : Xv)(t);
|
|
274
|
+
}, Qv = qv, Cr = function(a) {
|
|
275
275
|
var e = +a;
|
|
276
|
-
return e !== e || e === 0 ? 0 :
|
|
277
|
-
},
|
|
278
|
-
var t =
|
|
279
|
-
return t < 0 ?
|
|
280
|
-
},
|
|
281
|
-
var e =
|
|
282
|
-
return e > 0 ?
|
|
283
|
-
},
|
|
284
|
-
return
|
|
285
|
-
},
|
|
276
|
+
return e !== e || e === 0 ? 0 : Qv(e);
|
|
277
|
+
}, Kv = Cr, Zv = Math.max, Jv = Math.min, ef = function(a, e) {
|
|
278
|
+
var t = Kv(a);
|
|
279
|
+
return t < 0 ? Zv(t + e, 0) : Jv(t, e);
|
|
280
|
+
}, tf = Cr, rf = Math.min, ot = function(a) {
|
|
281
|
+
var e = tf(a);
|
|
282
|
+
return e > 0 ? rf(e, 9007199254740991) : 0;
|
|
283
|
+
}, af = ot, Ii = function(a) {
|
|
284
|
+
return af(a.length);
|
|
285
|
+
}, nf = $t, sf = ef, of = Ii, kn = function(a) {
|
|
286
286
|
return function(e, t, r) {
|
|
287
|
-
var i =
|
|
287
|
+
var i = nf(e), n = of(i);
|
|
288
288
|
if (n === 0)
|
|
289
289
|
return !a && -1;
|
|
290
|
-
var o =
|
|
290
|
+
var o = sf(r, n), s;
|
|
291
291
|
if (a && t !== t) {
|
|
292
292
|
for (; n > o; )
|
|
293
293
|
if (s = i[o++], s !== s)
|
|
@@ -298,21 +298,21 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
298
298
|
return a || o || 0;
|
|
299
299
|
return !a && -1;
|
|
300
300
|
};
|
|
301
|
-
},
|
|
301
|
+
}, su = {
|
|
302
302
|
// `Array.prototype.includes` method
|
|
303
303
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
304
|
-
includes:
|
|
304
|
+
includes: kn(!0),
|
|
305
305
|
// `Array.prototype.indexOf` method
|
|
306
306
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
307
|
-
indexOf:
|
|
308
|
-
},
|
|
309
|
-
var t =
|
|
307
|
+
indexOf: kn(!1)
|
|
308
|
+
}, uf = L, fa = fe, lf = $t, hf = su.indexOf, vf = Ri, Bn = uf([].push), ou = function(a, e) {
|
|
309
|
+
var t = lf(a), r = 0, i = [], n;
|
|
310
310
|
for (n in t)
|
|
311
|
-
!
|
|
311
|
+
!fa(vf, n) && fa(t, n) && Bn(i, n);
|
|
312
312
|
for (; e.length > r; )
|
|
313
|
-
|
|
313
|
+
fa(t, n = e[r++]) && (~hf(i, n) || Bn(i, n));
|
|
314
314
|
return i;
|
|
315
|
-
},
|
|
315
|
+
}, Mi = [
|
|
316
316
|
"constructor",
|
|
317
317
|
"hasOwnProperty",
|
|
318
318
|
"isPrototypeOf",
|
|
@@ -320,187 +320,187 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
320
320
|
"toLocaleString",
|
|
321
321
|
"toString",
|
|
322
322
|
"valueOf"
|
|
323
|
-
],
|
|
324
|
-
|
|
325
|
-
return
|
|
323
|
+
], ff = ou, cf = Mi, gf = cf.concat("length", "prototype");
|
|
324
|
+
nu.f = Object.getOwnPropertyNames || function(e) {
|
|
325
|
+
return ff(e, gf);
|
|
326
326
|
};
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
-
var
|
|
330
|
-
var t =
|
|
331
|
-
return r ?
|
|
332
|
-
},
|
|
333
|
-
for (var r =
|
|
327
|
+
var uu = {};
|
|
328
|
+
uu.f = Object.getOwnPropertySymbols;
|
|
329
|
+
var df = Fe, pf = L, yf = nu, mf = uu, bf = J, xf = pf([].concat), Tf = df("Reflect", "ownKeys") || function(e) {
|
|
330
|
+
var t = yf.f(bf(e)), r = mf.f;
|
|
331
|
+
return r ? xf(t, r(e)) : t;
|
|
332
|
+
}, jn = fe, Of = Tf, Sf = Et, Ef = Oe, $f = function(a, e, t) {
|
|
333
|
+
for (var r = Of(e), i = Ef.f, n = Sf.f, o = 0; o < r.length; o++) {
|
|
334
334
|
var s = r[o];
|
|
335
|
-
!
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
var t =
|
|
339
|
-
return t ===
|
|
340
|
-
},
|
|
341
|
-
return String(a).replace(
|
|
342
|
-
},
|
|
335
|
+
!jn(a, s) && !(t && jn(t, s)) && i(a, s, n(e, s));
|
|
336
|
+
}
|
|
337
|
+
}, wf = D, Cf = B, Af = /#|\.prototype\./, At = function(a, e) {
|
|
338
|
+
var t = Rf[Pf(a)];
|
|
339
|
+
return t === If ? !0 : t === Nf ? !1 : Cf(e) ? wf(e) : !!e;
|
|
340
|
+
}, Pf = At.normalize = function(a) {
|
|
341
|
+
return String(a).replace(Af, ".").toLowerCase();
|
|
342
|
+
}, Rf = At.data = {}, Nf = At.NATIVE = "N", If = At.POLYFILL = "P", lu = At, zt = _, Mf = Et.f, _f = Ct, Vf = Ue, Df = Ei, Lf = $f, kf = lu, ee = function(a, e) {
|
|
343
343
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
344
|
-
if (r ? o =
|
|
344
|
+
if (r ? o = zt : i ? o = zt[t] || Df(t, {}) : o = zt[t] && zt[t].prototype, o)
|
|
345
345
|
for (s in e) {
|
|
346
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
|
346
|
+
if (l = e[s], a.dontCallGetSet ? (h = Mf(o, s), u = h && h.value) : u = o[s], n = kf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
347
347
|
if (typeof l == typeof u)
|
|
348
348
|
continue;
|
|
349
|
-
|
|
349
|
+
Lf(l, u);
|
|
350
350
|
}
|
|
351
|
-
(a.sham || u && u.sham) &&
|
|
351
|
+
(a.sham || u && u.sham) && _f(l, "sham", !0), Vf(o, s, l, a);
|
|
352
352
|
}
|
|
353
|
-
},
|
|
354
|
-
return
|
|
355
|
-
},
|
|
356
|
-
return
|
|
357
|
-
}(),
|
|
353
|
+
}, vt = _, Bf = wt, jf = je, Ht = function(a) {
|
|
354
|
+
return Bf.slice(0, a.length) === a;
|
|
355
|
+
}, hu = function() {
|
|
356
|
+
return Ht("Bun/") ? "BUN" : Ht("Cloudflare-Workers") ? "CLOUDFLARE" : Ht("Deno/") ? "DENO" : Ht("Node.js/") ? "NODE" : vt.Bun && typeof Bun.version == "string" ? "BUN" : vt.Deno && typeof Deno.version == "object" ? "DENO" : jf(vt.process) === "process" ? "NODE" : vt.window && vt.document ? "BROWSER" : "REST";
|
|
357
|
+
}(), Ff = hu, Ar = Ff === "NODE", Uf = _, Gf = Uf, zf = L, Hf = Te, Yf = function(a, e, t) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return zf(Hf(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
360
360
|
} catch (r) {
|
|
361
361
|
}
|
|
362
|
-
},
|
|
363
|
-
return
|
|
364
|
-
},
|
|
365
|
-
if (
|
|
362
|
+
}, Xf = ae, Wf = function(a) {
|
|
363
|
+
return Xf(a) || a === null;
|
|
364
|
+
}, qf = Wf, Qf = String, Kf = TypeError, Zf = function(a) {
|
|
365
|
+
if (qf(a))
|
|
366
366
|
return a;
|
|
367
|
-
throw new
|
|
368
|
-
},
|
|
367
|
+
throw new Kf("Can't set " + Qf(a) + " as a prototype");
|
|
368
|
+
}, Jf = Yf, ec = ae, tc = ve, rc = Zf, vu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
369
369
|
var a = !1, e = {}, t;
|
|
370
370
|
try {
|
|
371
|
-
t =
|
|
371
|
+
t = Jf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
372
372
|
} catch (r) {
|
|
373
373
|
}
|
|
374
374
|
return function(i, n) {
|
|
375
|
-
return
|
|
375
|
+
return tc(i), rc(n), ec(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
376
376
|
};
|
|
377
|
-
}() : void 0),
|
|
378
|
-
a && !t && (a = a.prototype), a && !
|
|
379
|
-
},
|
|
380
|
-
return t.get &&
|
|
381
|
-
},
|
|
382
|
-
var e =
|
|
383
|
-
|
|
377
|
+
}() : void 0), ac = Oe.f, ic = fe, nc = z, Fn = nc("toStringTag"), Pr = function(a, e, t) {
|
|
378
|
+
a && !t && (a = a.prototype), a && !ic(a, Fn) && ac(a, Fn, { configurable: !0, value: e });
|
|
379
|
+
}, Un = iu, sc = Oe, oc = function(a, e, t) {
|
|
380
|
+
return t.get && Un(t.get, e, { getter: !0 }), t.set && Un(t.set, e, { setter: !0 }), sc.f(a, e, t);
|
|
381
|
+
}, uc = Fe, lc = oc, hc = z, vc = he, Gn = hc("species"), fc = function(a) {
|
|
382
|
+
var e = uc(a);
|
|
383
|
+
vc && e && !e[Gn] && lc(e, Gn, {
|
|
384
384
|
configurable: !0,
|
|
385
385
|
get: function() {
|
|
386
386
|
return this;
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
|
-
},
|
|
390
|
-
if (
|
|
389
|
+
}, cc = Tr, gc = TypeError, dc = function(a, e) {
|
|
390
|
+
if (cc(e, a))
|
|
391
391
|
return a;
|
|
392
|
-
throw new
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
var
|
|
392
|
+
throw new gc("Incorrect invocation");
|
|
393
|
+
}, pc = z, yc = pc("toStringTag"), fu = {};
|
|
394
|
+
fu[yc] = "z";
|
|
395
|
+
var mc = String(fu) === "[object z]", bc = mc, xc = B, ur = je, Tc = z, Oc = Tc("toStringTag"), Sc = Object, Ec = ur(function() {
|
|
396
396
|
return arguments;
|
|
397
|
-
}()) === "Arguments",
|
|
397
|
+
}()) === "Arguments", $c = function(a, e) {
|
|
398
398
|
try {
|
|
399
399
|
return a[e];
|
|
400
400
|
} catch (t) {
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, _i = bc ? ur : function(a) {
|
|
403
403
|
var e, t, r;
|
|
404
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
|
405
|
-
},
|
|
406
|
-
},
|
|
407
|
-
if (!
|
|
404
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = $c(e = Sc(a), Oc)) == "string" ? t : Ec ? ur(e) : (r = ur(e)) === "Object" && xc(e.callee) ? "Arguments" : r;
|
|
405
|
+
}, wc = L, Cc = D, cu = B, Ac = _i, Pc = Fe, Rc = Ai, gu = function() {
|
|
406
|
+
}, du = Pc("Reflect", "construct"), Vi = /^\s*(?:class|function)\b/, Nc = wc(Vi.exec), Ic = !Vi.test(gu), ft = function(e) {
|
|
407
|
+
if (!cu(e))
|
|
408
408
|
return !1;
|
|
409
409
|
try {
|
|
410
|
-
return
|
|
410
|
+
return du(gu, [], e), !0;
|
|
411
411
|
} catch (t) {
|
|
412
412
|
return !1;
|
|
413
413
|
}
|
|
414
|
-
},
|
|
415
|
-
if (!
|
|
414
|
+
}, pu = function(e) {
|
|
415
|
+
if (!cu(e))
|
|
416
416
|
return !1;
|
|
417
|
-
switch (
|
|
417
|
+
switch (Ac(e)) {
|
|
418
418
|
case "AsyncFunction":
|
|
419
419
|
case "GeneratorFunction":
|
|
420
420
|
case "AsyncGeneratorFunction":
|
|
421
421
|
return !1;
|
|
422
422
|
}
|
|
423
423
|
try {
|
|
424
|
-
return
|
|
424
|
+
return Ic || !!Nc(Vi, Rc(e));
|
|
425
425
|
} catch (t) {
|
|
426
426
|
return !0;
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
|
-
|
|
430
|
-
var
|
|
429
|
+
pu.sham = !0;
|
|
430
|
+
var Mc = !du || Cc(function() {
|
|
431
431
|
var a;
|
|
432
|
-
return
|
|
432
|
+
return ft(ft.call) || !ft(Object) || !ft(function() {
|
|
433
433
|
a = !0;
|
|
434
434
|
}) || a;
|
|
435
|
-
}) ?
|
|
436
|
-
if (
|
|
435
|
+
}) ? pu : ft, _c = Mc, Vc = Or, Dc = TypeError, Lc = function(a) {
|
|
436
|
+
if (_c(a))
|
|
437
437
|
return a;
|
|
438
|
-
throw new
|
|
439
|
-
},
|
|
440
|
-
var t =
|
|
441
|
-
return t === void 0 ||
|
|
442
|
-
},
|
|
443
|
-
return
|
|
444
|
-
}),
|
|
445
|
-
if (
|
|
446
|
-
return
|
|
447
|
-
},
|
|
448
|
-
return
|
|
438
|
+
throw new Dc(Vc(a) + " is not a constructor");
|
|
439
|
+
}, zn = J, kc = Lc, Bc = xr, jc = z, Fc = jc("species"), yu = function(a, e) {
|
|
440
|
+
var t = zn(a).constructor, r;
|
|
441
|
+
return t === void 0 || Bc(r = zn(t)[Fc]) ? e : kc(r);
|
|
442
|
+
}, Uc = br, mu = Function.prototype, Hn = mu.apply, Yn = mu.call, bu = typeof Reflect == "object" && Reflect.apply || (Uc ? Yn.bind(Hn) : function() {
|
|
443
|
+
return Yn.apply(Hn, arguments);
|
|
444
|
+
}), Gc = je, zc = L, Rr = function(a) {
|
|
445
|
+
if (Gc(a) === "Function")
|
|
446
|
+
return zc(a);
|
|
447
|
+
}, Xn = Rr, Hc = Te, Yc = br, Xc = Xn(Xn.bind), Di = function(a, e) {
|
|
448
|
+
return Hc(a), e === void 0 ? a : Yc ? Xc(a, e) : function() {
|
|
449
449
|
return a.apply(e, arguments);
|
|
450
450
|
};
|
|
451
|
-
},
|
|
451
|
+
}, Wc = Fe, xu = Wc("document", "documentElement"), qc = L, Qc = qc([].slice), Kc = TypeError, Zc = function(a, e) {
|
|
452
452
|
if (a < e)
|
|
453
|
-
throw new
|
|
453
|
+
throw new Kc("Not enough arguments");
|
|
454
454
|
return a;
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
|
|
455
|
+
}, Jc = wt, Tu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Jc), ie = _, eg = bu, tg = Di, Wn = B, rg = fe, Ou = D, qn = xu, ag = Qc, Qn = Er, ig = Zc, ng = Tu, sg = Ar, Za = ie.setImmediate, Ja = ie.clearImmediate, og = ie.process, ca = ie.Dispatch, ug = ie.Function, Kn = ie.MessageChannel, lg = ie.String, ga = 0, bt = {}, Zn = "onreadystatechange", Ot, Ie, da, pa;
|
|
456
|
+
Ou(function() {
|
|
457
|
+
Ot = ie.location;
|
|
458
458
|
});
|
|
459
|
-
var
|
|
460
|
-
if (
|
|
461
|
-
var e =
|
|
462
|
-
delete
|
|
459
|
+
var Li = function(a) {
|
|
460
|
+
if (rg(bt, a)) {
|
|
461
|
+
var e = bt[a];
|
|
462
|
+
delete bt[a], e();
|
|
463
463
|
}
|
|
464
|
-
},
|
|
464
|
+
}, ya = function(a) {
|
|
465
465
|
return function() {
|
|
466
|
-
|
|
466
|
+
Li(a);
|
|
467
467
|
};
|
|
468
|
-
},
|
|
469
|
-
|
|
470
|
-
},
|
|
471
|
-
|
|
468
|
+
}, Jn = function(a) {
|
|
469
|
+
Li(a.data);
|
|
470
|
+
}, es = function(a) {
|
|
471
|
+
ie.postMessage(lg(a), Ot.protocol + "//" + Ot.host);
|
|
472
472
|
};
|
|
473
|
-
(!
|
|
474
|
-
|
|
475
|
-
var t =
|
|
476
|
-
return
|
|
477
|
-
|
|
478
|
-
}, Ie(
|
|
479
|
-
},
|
|
480
|
-
delete
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
} :
|
|
484
|
-
|
|
485
|
-
} :
|
|
486
|
-
|
|
487
|
-
|
|
473
|
+
(!Za || !Ja) && (Za = function(e) {
|
|
474
|
+
ig(arguments.length, 1);
|
|
475
|
+
var t = Wn(e) ? e : ug(e), r = ag(arguments, 1);
|
|
476
|
+
return bt[++ga] = function() {
|
|
477
|
+
eg(t, void 0, r);
|
|
478
|
+
}, Ie(ga), ga;
|
|
479
|
+
}, Ja = function(e) {
|
|
480
|
+
delete bt[e];
|
|
481
|
+
}, sg ? Ie = function(a) {
|
|
482
|
+
og.nextTick(ya(a));
|
|
483
|
+
} : ca && ca.now ? Ie = function(a) {
|
|
484
|
+
ca.now(ya(a));
|
|
485
|
+
} : Kn && !ng ? (da = new Kn(), pa = da.port2, da.port1.onmessage = Jn, Ie = tg(pa.postMessage, pa)) : ie.addEventListener && Wn(ie.postMessage) && !ie.importScripts && Ot && Ot.protocol !== "file:" && !Ou(es) ? (Ie = es, ie.addEventListener("message", Jn, !1)) : Zn in Qn("script") ? Ie = function(a) {
|
|
486
|
+
qn.appendChild(Qn("script"))[Zn] = function() {
|
|
487
|
+
qn.removeChild(this), Li(a);
|
|
488
488
|
};
|
|
489
489
|
} : Ie = function(a) {
|
|
490
|
-
setTimeout(
|
|
490
|
+
setTimeout(ya(a), 0);
|
|
491
491
|
});
|
|
492
|
-
var
|
|
493
|
-
set:
|
|
494
|
-
clear:
|
|
495
|
-
},
|
|
496
|
-
if (!
|
|
497
|
-
return
|
|
498
|
-
var e =
|
|
492
|
+
var Su = {
|
|
493
|
+
set: Za,
|
|
494
|
+
clear: Ja
|
|
495
|
+
}, ts = _, hg = he, vg = Object.getOwnPropertyDescriptor, fg = function(a) {
|
|
496
|
+
if (!hg)
|
|
497
|
+
return ts[a];
|
|
498
|
+
var e = vg(ts, a);
|
|
499
499
|
return e && e.value;
|
|
500
|
-
},
|
|
500
|
+
}, Eu = function() {
|
|
501
501
|
this.head = null, this.tail = null;
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
Eu.prototype = {
|
|
504
504
|
add: function(a) {
|
|
505
505
|
var e = { item: a, next: null }, t = this.tail;
|
|
506
506
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -513,31 +513,31 @@ Tu.prototype = {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
|
-
var
|
|
517
|
-
if (!
|
|
518
|
-
var
|
|
516
|
+
var $u = Eu, cg = wt, gg = /ipad|iphone|ipod/i.test(cg) && typeof Pebble != "undefined", dg = wt, pg = /web0s(?!.*chrome)/i.test(dg), at = _, yg = fg, rs = Di, ma = Su.set, mg = $u, bg = Tu, xg = gg, Tg = pg, ba = Ar, as = at.MutationObserver || at.WebKitMutationObserver, is = at.document, ns = at.process, Yt = at.Promise, ei = yg("queueMicrotask"), Xe, xa, Ta, Xt, ss;
|
|
517
|
+
if (!ei) {
|
|
518
|
+
var Wt = new mg(), qt = function() {
|
|
519
519
|
var a, e;
|
|
520
|
-
for (
|
|
520
|
+
for (ba && (a = ns.domain) && a.exit(); e = Wt.get(); )
|
|
521
521
|
try {
|
|
522
522
|
e();
|
|
523
523
|
} catch (t) {
|
|
524
|
-
throw
|
|
524
|
+
throw Wt.head && Xe(), t;
|
|
525
525
|
}
|
|
526
526
|
a && a.enter();
|
|
527
527
|
};
|
|
528
|
-
!
|
|
529
|
-
|
|
530
|
-
}) : !
|
|
531
|
-
|
|
532
|
-
}) :
|
|
533
|
-
|
|
534
|
-
} : (
|
|
535
|
-
|
|
536
|
-
}),
|
|
537
|
-
|
|
528
|
+
!bg && !ba && !Tg && as && is ? (xa = !0, Ta = is.createTextNode(""), new as(qt).observe(Ta, { characterData: !0 }), Xe = function() {
|
|
529
|
+
Ta.data = xa = !xa;
|
|
530
|
+
}) : !xg && Yt && Yt.resolve ? (Xt = Yt.resolve(void 0), Xt.constructor = Yt, ss = rs(Xt.then, Xt), Xe = function() {
|
|
531
|
+
ss(qt);
|
|
532
|
+
}) : ba ? Xe = function() {
|
|
533
|
+
ns.nextTick(qt);
|
|
534
|
+
} : (ma = rs(ma, at), Xe = function() {
|
|
535
|
+
ma(qt);
|
|
536
|
+
}), ei = function(a) {
|
|
537
|
+
Wt.head || Xe(), Wt.add(a);
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var Og = ei, Sg = function(a, e) {
|
|
541
541
|
try {
|
|
542
542
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
543
543
|
} catch (t) {
|
|
@@ -548,172 +548,173 @@ var pg = Ja, yg = function(a, e) {
|
|
|
548
548
|
} catch (e) {
|
|
549
549
|
return { error: !0, value: e };
|
|
550
550
|
}
|
|
551
|
-
},
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
var a =
|
|
555
|
-
if (!e &&
|
|
551
|
+
}, Eg = _, Nr = Eg.Promise, $g = _, xt = Nr, wg = B, Cg = lu, Ag = Ai, Pg = z, os = hu, Oa = Si;
|
|
552
|
+
xt && xt.prototype;
|
|
553
|
+
var Rg = Pg("species"), ti = !1, wu = wg($g.PromiseRejectionEvent), Ng = Cg("Promise", function() {
|
|
554
|
+
var a = Ag(xt), e = a !== String(xt);
|
|
555
|
+
if (!e && Oa === 66)
|
|
556
556
|
return !0;
|
|
557
|
-
if (!
|
|
558
|
-
var t = new
|
|
557
|
+
if (!Oa || Oa < 51 || !/native code/.test(a)) {
|
|
558
|
+
var t = new xt(function(n) {
|
|
559
559
|
n(1);
|
|
560
560
|
}), r = function(n) {
|
|
561
561
|
n(function() {
|
|
562
562
|
}, function() {
|
|
563
563
|
});
|
|
564
564
|
}, i = t.constructor = {};
|
|
565
|
-
if (i[
|
|
566
|
-
}) instanceof r, !
|
|
565
|
+
if (i[Rg] = r, ti = t.then(function() {
|
|
566
|
+
}) instanceof r, !ti)
|
|
567
567
|
return !0;
|
|
568
568
|
}
|
|
569
|
-
return !e && (
|
|
570
|
-
}),
|
|
571
|
-
CONSTRUCTOR:
|
|
572
|
-
REJECTION_EVENT:
|
|
573
|
-
SUBCLASSING:
|
|
574
|
-
},
|
|
569
|
+
return !e && (os === "BROWSER" || os === "DENO") && !wu;
|
|
570
|
+
}), Pt = {
|
|
571
|
+
CONSTRUCTOR: Ng,
|
|
572
|
+
REJECTION_EVENT: wu,
|
|
573
|
+
SUBCLASSING: ti
|
|
574
|
+
}, ut = {}, us = Te, Ig = TypeError, Mg = function(a) {
|
|
575
575
|
var e, t;
|
|
576
576
|
this.promise = new a(function(r, i) {
|
|
577
577
|
if (e !== void 0 || t !== void 0)
|
|
578
|
-
throw new
|
|
578
|
+
throw new Ig("Bad Promise constructor");
|
|
579
579
|
e = r, t = i;
|
|
580
|
-
}), this.resolve =
|
|
580
|
+
}), this.resolve = us(e), this.reject = us(t);
|
|
581
581
|
};
|
|
582
|
-
|
|
583
|
-
return new
|
|
582
|
+
ut.f = function(a) {
|
|
583
|
+
return new Mg(a);
|
|
584
584
|
};
|
|
585
|
-
var
|
|
585
|
+
var _g = ee, pr = Ar, we = _, Vg = Gf, it = Y, ls = Ue, hs = vu, Dg = Pr, Lg = fc, kg = Te, lr = B, Bg = ae, jg = dc, Fg = yu, Cu = Su.set, Bi = Og, Ug = Sg, Gg = ki, zg = $u, Au = wr, yr = Nr, ji = Pt, Pu = ut, Ir = "Promise", Ru = ji.CONSTRUCTOR, Hg = ji.REJECTION_EVENT, Yg = ji.SUBCLASSING, Sa = Au.getterFor(Ir), Xg = Au.set, qe = yr && yr.prototype, Le = yr, Qt = qe, Nu = we.TypeError, ri = we.document, Fi = we.process, ai = Pu.f, Wg = ai, qg = !!(ri && ri.createEvent && we.dispatchEvent), Iu = "unhandledrejection", Qg = "rejectionhandled", vs = 0, Mu = 1, Kg = 2, Ui = 1, _u = 2, Kt, fs, Vu, cs, Du = function(a) {
|
|
586
586
|
var e;
|
|
587
|
-
return
|
|
588
|
-
},
|
|
589
|
-
var t = e.value, r = e.state ===
|
|
587
|
+
return Bg(a) && lr(e = a.then) ? e : !1;
|
|
588
|
+
}, Lu = function(a, e) {
|
|
589
|
+
var t = e.value, r = e.state === Mu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
590
590
|
try {
|
|
591
|
-
i ? (r || (e.rejection ===
|
|
591
|
+
i ? (r || (e.rejection === _u && Jg(e), e.rejection = Ui), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Nu("Promise-chain cycle")) : (l = Du(u)) ? it(l, u, n, o) : n(u)) : o(t);
|
|
592
592
|
} catch (f) {
|
|
593
593
|
s && !h && s.exit(), o(f);
|
|
594
594
|
}
|
|
595
|
-
},
|
|
596
|
-
a.notified || (a.notified = !0,
|
|
595
|
+
}, ku = function(a, e) {
|
|
596
|
+
a.notified || (a.notified = !0, Bi(function() {
|
|
597
597
|
for (var t = a.reactions, r; r = t.get(); )
|
|
598
|
-
|
|
599
|
-
a.notified = !1, e && !a.rejection &&
|
|
598
|
+
Lu(r, a);
|
|
599
|
+
a.notified = !1, e && !a.rejection && Zg(a);
|
|
600
600
|
}));
|
|
601
|
-
},
|
|
601
|
+
}, Bu = function(a, e, t) {
|
|
602
602
|
var r, i;
|
|
603
|
-
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
var e = a.facade, t = a.value, r =
|
|
607
|
-
if (r && (i =
|
|
608
|
-
|
|
609
|
-
}), a.rejection =
|
|
603
|
+
qg ? (r = ri.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Hg && (i = we["on" + a]) ? i(r) : a === Iu && Ug("Unhandled promise rejection", t);
|
|
604
|
+
}, Zg = function(a) {
|
|
605
|
+
it(Cu, we, function() {
|
|
606
|
+
var e = a.facade, t = a.value, r = gs(a), i;
|
|
607
|
+
if (r && (i = Gg(function() {
|
|
608
|
+
pr ? Fi.emit("unhandledRejection", t, e) : Bu(Iu, e, t);
|
|
609
|
+
}), a.rejection = pr || gs(a) ? _u : Ui, i.error))
|
|
610
610
|
throw i.value;
|
|
611
611
|
});
|
|
612
|
-
},
|
|
613
|
-
return a.rejection !==
|
|
614
|
-
},
|
|
615
|
-
|
|
612
|
+
}, gs = function(a) {
|
|
613
|
+
return a.rejection !== Ui && !a.parent;
|
|
614
|
+
}, Jg = function(a) {
|
|
615
|
+
it(Cu, we, function() {
|
|
616
616
|
var e = a.facade;
|
|
617
|
-
|
|
617
|
+
pr ? Fi.emit("rejectionHandled", e) : Bu(Qg, e, a.value);
|
|
618
618
|
});
|
|
619
|
-
},
|
|
619
|
+
}, Ze = function(a, e, t) {
|
|
620
620
|
return function(r) {
|
|
621
621
|
a(e, r, t);
|
|
622
622
|
};
|
|
623
|
-
},
|
|
624
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
625
|
-
},
|
|
623
|
+
}, et = function(a, e, t) {
|
|
624
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Kg, ku(a, !0));
|
|
625
|
+
}, ii = function(a, e, t) {
|
|
626
626
|
if (!a.done) {
|
|
627
627
|
a.done = !0, t && (a = t);
|
|
628
628
|
try {
|
|
629
629
|
if (a.facade === e)
|
|
630
|
-
throw new
|
|
631
|
-
var r =
|
|
632
|
-
r ?
|
|
630
|
+
throw new Nu("Promise can't be resolved itself");
|
|
631
|
+
var r = Du(e);
|
|
632
|
+
r ? Bi(function() {
|
|
633
633
|
var i = { done: !1 };
|
|
634
634
|
try {
|
|
635
|
-
|
|
635
|
+
it(
|
|
636
636
|
r,
|
|
637
637
|
e,
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
Ze(ii, i, a),
|
|
639
|
+
Ze(et, i, a)
|
|
640
640
|
);
|
|
641
641
|
} catch (n) {
|
|
642
|
-
|
|
642
|
+
et(i, n, a);
|
|
643
643
|
}
|
|
644
|
-
}) : (a.value = e, a.state =
|
|
644
|
+
}) : (a.value = e, a.state = Mu, ku(a, !1));
|
|
645
645
|
} catch (i) {
|
|
646
|
-
|
|
646
|
+
et({ done: !1 }, i, a);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
if (
|
|
651
|
-
|
|
652
|
-
var t =
|
|
650
|
+
if (Ru && (Le = function(e) {
|
|
651
|
+
jg(this, Qt), kg(e), it(Kt, this);
|
|
652
|
+
var t = Sa(this);
|
|
653
653
|
try {
|
|
654
|
-
e(
|
|
654
|
+
e(Ze(ii, t), Ze(et, t));
|
|
655
655
|
} catch (r) {
|
|
656
|
-
|
|
656
|
+
et(t, r);
|
|
657
657
|
}
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
type:
|
|
658
|
+
}, Qt = Le.prototype, Kt = function(e) {
|
|
659
|
+
Xg(this, {
|
|
660
|
+
type: Ir,
|
|
661
661
|
done: !1,
|
|
662
662
|
notified: !1,
|
|
663
663
|
parent: !1,
|
|
664
|
-
reactions: new
|
|
664
|
+
reactions: new zg(),
|
|
665
665
|
rejection: !1,
|
|
666
|
-
state:
|
|
666
|
+
state: vs,
|
|
667
667
|
value: null
|
|
668
668
|
});
|
|
669
|
-
},
|
|
670
|
-
var r =
|
|
671
|
-
return r.parent = !0, i.ok =
|
|
672
|
-
|
|
669
|
+
}, Kt.prototype = ls(Qt, "then", function(e, t) {
|
|
670
|
+
var r = Sa(this), i = ai(Fg(this, Le));
|
|
671
|
+
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = pr ? Fi.domain : void 0, r.state === vs ? r.reactions.add(i) : Bi(function() {
|
|
672
|
+
Lu(i, r);
|
|
673
673
|
}), i.promise;
|
|
674
|
-
}),
|
|
675
|
-
var a = new
|
|
676
|
-
this.promise = a, this.resolve =
|
|
677
|
-
},
|
|
678
|
-
return a ===
|
|
679
|
-
},
|
|
680
|
-
|
|
674
|
+
}), fs = function() {
|
|
675
|
+
var a = new Kt(), e = Sa(a);
|
|
676
|
+
this.promise = a, this.resolve = Ze(ii, e), this.reject = Ze(et, e);
|
|
677
|
+
}, Pu.f = ai = function(a) {
|
|
678
|
+
return a === Le || a === Vu ? new fs(a) : Wg(a);
|
|
679
|
+
}, lr(yr) && qe !== Object.prototype)) {
|
|
680
|
+
cs = qe.then, Yg || ls(qe, "then", function(e, t) {
|
|
681
681
|
var r = this;
|
|
682
|
-
return new
|
|
683
|
-
|
|
682
|
+
return new Le(function(i, n) {
|
|
683
|
+
it(cs, r, i, n);
|
|
684
684
|
}).then(e, t);
|
|
685
685
|
}, { unsafe: !0 });
|
|
686
686
|
try {
|
|
687
|
-
delete
|
|
687
|
+
delete qe.constructor;
|
|
688
688
|
} catch (a) {
|
|
689
689
|
}
|
|
690
|
-
|
|
690
|
+
hs && hs(qe, Qt);
|
|
691
691
|
}
|
|
692
|
-
|
|
693
|
-
Promise:
|
|
692
|
+
_g({ global: !0, constructor: !0, wrap: !0, forced: Ru }, {
|
|
693
|
+
Promise: Le
|
|
694
694
|
});
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
695
|
+
Vu = Vg.Promise;
|
|
696
|
+
Dg(Le, Ir, !1);
|
|
697
|
+
Lg(Ir);
|
|
698
|
+
var Rt = {}, ed = z, td = Rt, rd = ed("iterator"), ad = Array.prototype, id = function(a) {
|
|
699
|
+
return a !== void 0 && (td.Array === a || ad[rd] === a);
|
|
700
|
+
}, nd = _i, ds = st, sd = xr, od = Rt, ud = z, ld = ud("iterator"), ju = function(a) {
|
|
701
|
+
if (!sd(a))
|
|
702
|
+
return ds(a, ld) || ds(a, "@@iterator") || od[nd(a)];
|
|
703
|
+
}, hd = Y, vd = Te, fd = J, cd = Or, gd = ju, dd = TypeError, pd = function(a, e) {
|
|
704
|
+
var t = arguments.length < 2 ? gd(a) : e;
|
|
705
|
+
if (vd(t))
|
|
706
|
+
return fd(hd(t, a));
|
|
707
|
+
throw new dd(cd(a) + " is not iterable");
|
|
708
|
+
}, yd = Y, ps = J, md = st, bd = function(a, e, t) {
|
|
708
709
|
var r, i;
|
|
709
|
-
|
|
710
|
+
ps(a);
|
|
710
711
|
try {
|
|
711
|
-
if (r =
|
|
712
|
+
if (r = md(a, "return"), !r) {
|
|
712
713
|
if (e === "throw")
|
|
713
714
|
throw t;
|
|
714
715
|
return t;
|
|
715
716
|
}
|
|
716
|
-
r =
|
|
717
|
+
r = yd(r, a);
|
|
717
718
|
} catch (n) {
|
|
718
719
|
i = !0, r = n;
|
|
719
720
|
}
|
|
@@ -721,60 +722,60 @@ var Nt = {}, Wg = z, qg = Nt, Qg = Wg("iterator"), Kg = Array.prototype, Zg = fu
|
|
|
721
722
|
throw t;
|
|
722
723
|
if (i)
|
|
723
724
|
throw r;
|
|
724
|
-
return
|
|
725
|
-
},
|
|
725
|
+
return ps(r), t;
|
|
726
|
+
}, xd = Di, Td = Y, Od = J, Sd = Or, Ed = id, $d = Ii, ys = Tr, wd = pd, Cd = ju, ms = bd, Ad = TypeError, hr = function(a, e) {
|
|
726
727
|
this.stopped = a, this.result = e;
|
|
727
|
-
},
|
|
728
|
-
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 =
|
|
729
|
-
return l &&
|
|
728
|
+
}, bs = hr.prototype, Fu = function(a, e, t) {
|
|
729
|
+
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 = xd(e, r), l, h, f, c, v, g, d, p = function(x) {
|
|
730
|
+
return l && ms(l, "normal"), new hr(!0, x);
|
|
730
731
|
}, y = function(x) {
|
|
731
|
-
return i ? (
|
|
732
|
+
return i ? (Od(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
|
732
733
|
};
|
|
733
734
|
if (n)
|
|
734
735
|
l = a.iterator;
|
|
735
736
|
else if (o)
|
|
736
737
|
l = a;
|
|
737
738
|
else {
|
|
738
|
-
if (h =
|
|
739
|
-
throw new
|
|
740
|
-
if (
|
|
741
|
-
for (f = 0, c =
|
|
742
|
-
if (v = y(a[f]), v &&
|
|
739
|
+
if (h = Cd(a), !h)
|
|
740
|
+
throw new Ad(Sd(a) + " is not iterable");
|
|
741
|
+
if (Ed(h)) {
|
|
742
|
+
for (f = 0, c = $d(a); c > f; f++)
|
|
743
|
+
if (v = y(a[f]), v && ys(bs, v))
|
|
743
744
|
return v;
|
|
744
|
-
return new
|
|
745
|
+
return new hr(!1);
|
|
745
746
|
}
|
|
746
|
-
l =
|
|
747
|
+
l = wd(a, h);
|
|
747
748
|
}
|
|
748
|
-
for (
|
|
749
|
+
for (g = n ? a.next : l.next; !(d = Td(g, l)).done; ) {
|
|
749
750
|
try {
|
|
750
|
-
v = y(
|
|
751
|
+
v = y(d.value);
|
|
751
752
|
} catch (x) {
|
|
752
|
-
|
|
753
|
+
ms(l, "throw", x);
|
|
753
754
|
}
|
|
754
|
-
if (typeof v == "object" && v &&
|
|
755
|
+
if (typeof v == "object" && v && ys(bs, v))
|
|
755
756
|
return v;
|
|
756
757
|
}
|
|
757
|
-
return new
|
|
758
|
-
},
|
|
758
|
+
return new hr(!1);
|
|
759
|
+
}, Pd = z, Uu = Pd("iterator"), Gu = !1;
|
|
759
760
|
try {
|
|
760
|
-
var
|
|
761
|
+
var Rd = 0, xs = {
|
|
761
762
|
next: function() {
|
|
762
|
-
return { done: !!
|
|
763
|
+
return { done: !!Rd++ };
|
|
763
764
|
},
|
|
764
765
|
return: function() {
|
|
765
|
-
|
|
766
|
+
Gu = !0;
|
|
766
767
|
}
|
|
767
768
|
};
|
|
768
|
-
|
|
769
|
+
xs[Uu] = function() {
|
|
769
770
|
return this;
|
|
770
|
-
}, Array.from(
|
|
771
|
+
}, Array.from(xs, function() {
|
|
771
772
|
throw 2;
|
|
772
773
|
});
|
|
773
774
|
} catch (a) {
|
|
774
775
|
}
|
|
775
|
-
var
|
|
776
|
+
var Nd = function(a, e) {
|
|
776
777
|
try {
|
|
777
|
-
if (!e && !
|
|
778
|
+
if (!e && !Gu)
|
|
778
779
|
return !1;
|
|
779
780
|
} catch (i) {
|
|
780
781
|
return !1;
|
|
@@ -782,7 +783,7 @@ var $d = function(a, e) {
|
|
|
782
783
|
var t = !1;
|
|
783
784
|
try {
|
|
784
785
|
var r = {};
|
|
785
|
-
r[
|
|
786
|
+
r[Uu] = function() {
|
|
786
787
|
return {
|
|
787
788
|
next: function() {
|
|
788
789
|
return { done: t = !0 };
|
|
@@ -792,66 +793,66 @@ var $d = function(a, e) {
|
|
|
792
793
|
} catch (i) {
|
|
793
794
|
}
|
|
794
795
|
return t;
|
|
795
|
-
},
|
|
796
|
-
|
|
796
|
+
}, Id = Nr, Md = Nd, _d = Pt.CONSTRUCTOR, zu = _d || !Md(function(a) {
|
|
797
|
+
Id.all(a).then(void 0, function() {
|
|
797
798
|
});
|
|
798
|
-
}),
|
|
799
|
-
|
|
799
|
+
}), Vd = ee, Dd = Y, Ld = Te, kd = ut, Bd = ki, jd = Fu, Fd = zu;
|
|
800
|
+
Vd({ target: "Promise", stat: !0, forced: Fd }, {
|
|
800
801
|
all: function(e) {
|
|
801
|
-
var t = this, r =
|
|
802
|
-
var s =
|
|
803
|
-
|
|
802
|
+
var t = this, r = kd.f(t), i = r.resolve, n = r.reject, o = Bd(function() {
|
|
803
|
+
var s = Ld(t.resolve), u = [], l = 0, h = 1;
|
|
804
|
+
jd(e, function(f) {
|
|
804
805
|
var c = l++, v = !1;
|
|
805
|
-
h++,
|
|
806
|
-
v || (v = !0, u[c] =
|
|
806
|
+
h++, Dd(s, t, f).then(function(g) {
|
|
807
|
+
v || (v = !0, u[c] = g, --h || i(u));
|
|
807
808
|
}, n);
|
|
808
809
|
}), --h || i(u);
|
|
809
810
|
});
|
|
810
811
|
return o.error && n(o.value), r.promise;
|
|
811
812
|
}
|
|
812
813
|
});
|
|
813
|
-
var
|
|
814
|
-
|
|
814
|
+
var Ud = ee, Gd = Pt.CONSTRUCTOR, ni = Nr, zd = Fe, Hd = B, Yd = Ue, Ts = ni && ni.prototype;
|
|
815
|
+
Ud({ target: "Promise", proto: !0, forced: Gd, real: !0 }, {
|
|
815
816
|
catch: function(a) {
|
|
816
817
|
return this.then(void 0, a);
|
|
817
818
|
}
|
|
818
819
|
});
|
|
819
|
-
if (
|
|
820
|
-
var
|
|
821
|
-
|
|
820
|
+
if (Hd(ni)) {
|
|
821
|
+
var Os = zd("Promise").prototype.catch;
|
|
822
|
+
Ts.catch !== Os && Yd(Ts, "catch", Os, { unsafe: !0 });
|
|
822
823
|
}
|
|
823
|
-
var
|
|
824
|
-
|
|
824
|
+
var Xd = ee, Wd = Y, qd = Te, Qd = ut, Kd = ki, Zd = Fu, Jd = zu;
|
|
825
|
+
Xd({ target: "Promise", stat: !0, forced: Jd }, {
|
|
825
826
|
race: function(e) {
|
|
826
|
-
var t = this, r =
|
|
827
|
-
var o =
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
var t = this, r = Qd.f(t), i = r.reject, n = Kd(function() {
|
|
828
|
+
var o = qd(t.resolve);
|
|
829
|
+
Zd(e, function(s) {
|
|
830
|
+
Wd(o, t, s).then(r.resolve, i);
|
|
830
831
|
});
|
|
831
832
|
});
|
|
832
833
|
return n.error && i(n.value), r.promise;
|
|
833
834
|
}
|
|
834
835
|
});
|
|
835
|
-
var
|
|
836
|
-
|
|
836
|
+
var ep = ee, tp = ut, rp = Pt.CONSTRUCTOR;
|
|
837
|
+
ep({ target: "Promise", stat: !0, forced: rp }, {
|
|
837
838
|
reject: function(e) {
|
|
838
|
-
var t =
|
|
839
|
+
var t = tp.f(this), r = t.reject;
|
|
839
840
|
return r(e), t.promise;
|
|
840
841
|
}
|
|
841
842
|
});
|
|
842
|
-
var
|
|
843
|
-
if (
|
|
843
|
+
var ap = J, ip = ae, np = ut, sp = function(a, e) {
|
|
844
|
+
if (ap(a), ip(e) && e.constructor === a)
|
|
844
845
|
return e;
|
|
845
|
-
var t =
|
|
846
|
+
var t = np.f(a), r = t.resolve;
|
|
846
847
|
return r(e), t.promise;
|
|
847
|
-
},
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
}, op = ee, up = Fe, lp = Pt.CONSTRUCTOR, hp = sp;
|
|
849
|
+
up("Promise");
|
|
850
|
+
op({ target: "Promise", stat: !0, forced: lp }, {
|
|
850
851
|
resolve: function(e) {
|
|
851
|
-
return
|
|
852
|
+
return hp(this, e);
|
|
852
853
|
}
|
|
853
854
|
});
|
|
854
|
-
function
|
|
855
|
+
function Ss(a, e, t, r, i, n, o) {
|
|
855
856
|
try {
|
|
856
857
|
var s = a[n](o), u = s.value;
|
|
857
858
|
} catch (l) {
|
|
@@ -865,335 +866,367 @@ function xe(a) {
|
|
|
865
866
|
return new Promise(function(r, i) {
|
|
866
867
|
var n = a.apply(e, t);
|
|
867
868
|
function o(u) {
|
|
868
|
-
|
|
869
|
+
Ss(n, r, i, o, s, "next", u);
|
|
869
870
|
}
|
|
870
871
|
function s(u) {
|
|
871
|
-
|
|
872
|
+
Ss(n, r, i, o, s, "throw", u);
|
|
872
873
|
}
|
|
873
874
|
o(void 0);
|
|
874
875
|
});
|
|
875
876
|
};
|
|
876
877
|
}
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
878
|
+
var vp = _i, fp = String, pe = function(a) {
|
|
879
|
+
if (vp(a) === "Symbol")
|
|
879
880
|
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
880
|
-
return
|
|
881
|
-
},
|
|
882
|
-
var a =
|
|
881
|
+
return fp(a);
|
|
882
|
+
}, cp = J, Hu = function() {
|
|
883
|
+
var a = cp(this), e = "";
|
|
883
884
|
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;
|
|
884
|
-
},
|
|
885
|
-
var a =
|
|
885
|
+
}, Gi = D, gp = _, zi = gp.RegExp, Hi = Gi(function() {
|
|
886
|
+
var a = zi("a", "y");
|
|
886
887
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
887
|
-
}),
|
|
888
|
-
return !
|
|
889
|
-
}),
|
|
890
|
-
var a =
|
|
888
|
+
}), dp = Hi || Gi(function() {
|
|
889
|
+
return !zi("a", "y").sticky;
|
|
890
|
+
}), pp = Hi || Gi(function() {
|
|
891
|
+
var a = zi("^r", "gy");
|
|
891
892
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
892
|
-
}),
|
|
893
|
-
BROKEN_CARET:
|
|
894
|
-
MISSED_STICKY:
|
|
895
|
-
UNSUPPORTED_Y:
|
|
896
|
-
},
|
|
897
|
-
return
|
|
898
|
-
},
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
for (var r =
|
|
902
|
-
|
|
893
|
+
}), Yu = {
|
|
894
|
+
BROKEN_CARET: pp,
|
|
895
|
+
MISSED_STICKY: dp,
|
|
896
|
+
UNSUPPORTED_Y: Hi
|
|
897
|
+
}, Xu = {}, yp = ou, mp = Mi, bp = Object.keys || function(e) {
|
|
898
|
+
return yp(e, mp);
|
|
899
|
+
}, xp = he, Tp = Jo, Op = Oe, Sp = J, Ep = $t, $p = bp;
|
|
900
|
+
Xu.f = xp && !Tp ? Object.defineProperties : function(e, t) {
|
|
901
|
+
Sp(e);
|
|
902
|
+
for (var r = Ep(t), i = $p(t), n = i.length, o = 0, s; n > o; )
|
|
903
|
+
Op.f(e, s = i[o++], r[s]);
|
|
903
904
|
return e;
|
|
904
905
|
};
|
|
905
|
-
var
|
|
906
|
-
},
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
a.write(
|
|
906
|
+
var wp = J, Cp = Xu, Es = Mi, Ap = Ri, Pp = xu, Rp = Er, Np = Pi, $s = ">", ws = "<", si = "prototype", oi = "script", Wu = Np("IE_PROTO"), Ea = function() {
|
|
907
|
+
}, qu = function(a) {
|
|
908
|
+
return ws + oi + $s + a + ws + "/" + oi + $s;
|
|
909
|
+
}, Cs = function(a) {
|
|
910
|
+
a.write(qu("")), a.close();
|
|
910
911
|
var e = a.parentWindow.Object;
|
|
911
912
|
return a = null, e;
|
|
912
|
-
},
|
|
913
|
-
var a =
|
|
914
|
-
return a.style.display = "none",
|
|
915
|
-
},
|
|
913
|
+
}, Ip = function() {
|
|
914
|
+
var a = Rp("iframe"), e = "java" + oi + ":", t;
|
|
915
|
+
return a.style.display = "none", Pp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(qu("document.F=Object")), t.close(), t.F;
|
|
916
|
+
}, Zt, vr = function() {
|
|
916
917
|
try {
|
|
917
|
-
|
|
918
|
+
Zt = new ActiveXObject("htmlfile");
|
|
918
919
|
} catch (e) {
|
|
919
920
|
}
|
|
920
|
-
|
|
921
|
-
for (var a =
|
|
922
|
-
delete
|
|
923
|
-
return
|
|
921
|
+
vr = typeof document != "undefined" ? document.domain && Zt ? Cs(Zt) : Ip() : Cs(Zt);
|
|
922
|
+
for (var a = Es.length; a--; )
|
|
923
|
+
delete vr[si][Es[a]];
|
|
924
|
+
return vr();
|
|
924
925
|
};
|
|
925
|
-
|
|
926
|
-
var
|
|
926
|
+
Ap[Wu] = !0;
|
|
927
|
+
var Yi = Object.create || function(e, t) {
|
|
927
928
|
var r;
|
|
928
|
-
return e !== null ? (
|
|
929
|
-
},
|
|
930
|
-
var a =
|
|
929
|
+
return e !== null ? (Ea[si] = wp(e), r = new Ea(), Ea[si] = null, r[Wu] = e) : r = vr(), t === void 0 ? r : Cp.f(r, t);
|
|
930
|
+
}, Mp = D, _p = _, Vp = _p.RegExp, Dp = Mp(function() {
|
|
931
|
+
var a = Vp(".", "s");
|
|
931
932
|
return !(a.dotAll && a.test(`
|
|
932
933
|
`) && a.flags === "s");
|
|
933
|
-
}),
|
|
934
|
-
var a =
|
|
934
|
+
}), Lp = D, kp = _, Bp = kp.RegExp, jp = Lp(function() {
|
|
935
|
+
var a = Bp("(?<a>b)", "g");
|
|
935
936
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
936
|
-
}),
|
|
937
|
+
}), Je = Y, Mr = L, Fp = pe, Up = Hu, Gp = Yu, zp = wi, Hp = Yi, Yp = wr.get, Xp = Dp, Wp = jp, qp = zp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, ui = mr, Qp = Mr("".charAt), Kp = Mr("".indexOf), Zp = Mr("".replace), $a = Mr("".slice), li = function() {
|
|
937
938
|
var a = /a/, e = /b*/g;
|
|
938
|
-
return
|
|
939
|
-
}(),
|
|
940
|
-
|
|
941
|
-
var t = this, r =
|
|
939
|
+
return Je(mr, a, "a"), Je(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
940
|
+
}(), Qu = Gp.BROKEN_CARET, hi = /()??/.exec("")[1] !== void 0, Jp = li || hi || Qu || Xp || Wp;
|
|
941
|
+
Jp && (ui = function(e) {
|
|
942
|
+
var t = this, r = Yp(t), i = Fp(e), n = r.raw, o, s, u, l, h, f, c;
|
|
942
943
|
if (n)
|
|
943
|
-
return n.lastIndex = t.lastIndex, o =
|
|
944
|
-
var v = r.groups,
|
|
945
|
-
if (
|
|
946
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")",
|
|
944
|
+
return n.lastIndex = t.lastIndex, o = Je(ui, n, i), t.lastIndex = n.lastIndex, o;
|
|
945
|
+
var v = r.groups, g = Qu && t.sticky, d = Je(Up, t), p = t.source, y = 0, x = i;
|
|
946
|
+
if (g && (d = Zp(d, "y", ""), Kp(d, "g") === -1 && (d += "g"), x = $a(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Qp(i, t.lastIndex - 1) !== `
|
|
947
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", d)), hi && (s = new RegExp("^" + p + "$(?!\\s)", d)), li && (u = t.lastIndex), l = Je(mr, g ? s : t, x), g ? l ? (l.input = $a(l.input, y), l[0] = $a(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : li && l && (t.lastIndex = t.global ? l.index + l[0].length : u), hi && l && l.length > 1 && Je(qp, l[0], s, function() {
|
|
947
948
|
for (h = 1; h < arguments.length - 2; h++)
|
|
948
949
|
arguments[h] === void 0 && (l[h] = void 0);
|
|
949
950
|
}), l && v)
|
|
950
|
-
for (l.groups = f =
|
|
951
|
+
for (l.groups = f = Hp(null), h = 0; h < v.length; h++)
|
|
951
952
|
c = v[h], f[c[0]] = l[c[1]];
|
|
952
953
|
return l;
|
|
953
954
|
});
|
|
954
|
-
var
|
|
955
|
-
|
|
956
|
-
exec:
|
|
955
|
+
var Xi = ui, ey = ee, As = Xi;
|
|
956
|
+
ey({ target: "RegExp", proto: !0, forced: /./.exec !== As }, {
|
|
957
|
+
exec: As
|
|
957
958
|
});
|
|
958
|
-
var
|
|
959
|
-
var i =
|
|
959
|
+
var Ps = Y, Rs = Ue, ty = Xi, Ns = D, Ku = z, ry = Ct, ay = Ku("species"), wa = RegExp.prototype, Wi = function(a, e, t, r) {
|
|
960
|
+
var i = Ku(a), n = !Ns(function() {
|
|
960
961
|
var l = {};
|
|
961
962
|
return l[i] = function() {
|
|
962
963
|
return 7;
|
|
963
964
|
}, ""[a](l) !== 7;
|
|
964
|
-
}), o = n && !
|
|
965
|
+
}), o = n && !Ns(function() {
|
|
965
966
|
var l = !1, h = /a/;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
967
|
+
if (a === "split") {
|
|
968
|
+
var f = {};
|
|
969
|
+
f[ay] = function() {
|
|
970
|
+
return h;
|
|
971
|
+
}, h = { constructor: f, flags: "" }, h[i] = /./[i];
|
|
972
|
+
}
|
|
973
|
+
return h.exec = function() {
|
|
969
974
|
return l = !0, null;
|
|
970
975
|
}, h[i](""), !l;
|
|
971
976
|
});
|
|
972
977
|
if (!n || !o || t) {
|
|
973
978
|
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
|
974
|
-
var
|
|
975
|
-
return
|
|
979
|
+
var g = h.exec;
|
|
980
|
+
return g === ty || g === wa.exec ? n && !v ? { done: !0, value: Ps(s, h, f, c) } : { done: !0, value: Ps(l, f, h, c) } : { done: !1 };
|
|
976
981
|
});
|
|
977
|
-
|
|
982
|
+
Rs(String.prototype, a, u[0]), Rs(wa, i, u[1]);
|
|
978
983
|
}
|
|
979
|
-
r &&
|
|
980
|
-
},
|
|
984
|
+
r && ry(wa[i], "sham", !0);
|
|
985
|
+
}, qi = L, iy = Cr, ny = pe, sy = ve, oy = qi("".charAt), Is = qi("".charCodeAt), uy = qi("".slice), Ms = function(a) {
|
|
981
986
|
return function(e, t) {
|
|
982
|
-
var r =
|
|
983
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
|
987
|
+
var r = ny(sy(e)), i = iy(t), n = r.length, o, s;
|
|
988
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = Is(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Is(r, i + 1)) < 56320 || s > 57343 ? a ? oy(r, i) : o : a ? uy(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
984
989
|
};
|
|
985
|
-
},
|
|
990
|
+
}, ly = {
|
|
986
991
|
// `String.prototype.codePointAt` method
|
|
987
992
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
988
|
-
codeAt:
|
|
993
|
+
codeAt: Ms(!1),
|
|
989
994
|
// `String.prototype.at` method
|
|
990
995
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
991
|
-
charAt:
|
|
992
|
-
},
|
|
993
|
-
return e + (t ?
|
|
994
|
-
},
|
|
996
|
+
charAt: Ms(!0)
|
|
997
|
+
}, hy = ly.charAt, Qi = function(a, e, t) {
|
|
998
|
+
return e + (t ? hy(a, e).length : 1);
|
|
999
|
+
}, vy = _, fy = D, _s = vy.RegExp, cy = !fy(function() {
|
|
1000
|
+
var a = !0;
|
|
1001
|
+
try {
|
|
1002
|
+
_s(".", "d");
|
|
1003
|
+
} catch (u) {
|
|
1004
|
+
a = !1;
|
|
1005
|
+
}
|
|
1006
|
+
var e = {}, t = "", r = a ? "dgimsy" : "gimsy", i = function(u, l) {
|
|
1007
|
+
Object.defineProperty(e, u, { get: function() {
|
|
1008
|
+
return t += l, !0;
|
|
1009
|
+
} });
|
|
1010
|
+
}, n = {
|
|
1011
|
+
dotAll: "s",
|
|
1012
|
+
global: "g",
|
|
1013
|
+
ignoreCase: "i",
|
|
1014
|
+
multiline: "m",
|
|
1015
|
+
sticky: "y"
|
|
1016
|
+
};
|
|
1017
|
+
a && (n.hasIndices = "d");
|
|
1018
|
+
for (var o in n)
|
|
1019
|
+
i(o, n[o]);
|
|
1020
|
+
var s = Object.getOwnPropertyDescriptor(_s.prototype, "flags").get.call(e);
|
|
1021
|
+
return s !== r || t !== r;
|
|
1022
|
+
}), gy = { correct: cy }, dy = Y, py = fe, yy = Tr, Vs = gy, my = Hu, by = RegExp.prototype, Ki = Vs.correct ? function(a) {
|
|
1023
|
+
return a.flags;
|
|
1024
|
+
} : function(a) {
|
|
1025
|
+
return !Vs.correct && yy(by, a) && !py(a, "flags") ? dy(my, a) : a.flags;
|
|
1026
|
+
}, Ds = Y, xy = J, Ty = B, Oy = je, Sy = Xi, Ey = TypeError, Zi = function(a, e) {
|
|
995
1027
|
var t = a.exec;
|
|
996
|
-
if (
|
|
997
|
-
var r =
|
|
998
|
-
return r !== null &&
|
|
999
|
-
}
|
|
1000
|
-
if (
|
|
1001
|
-
return
|
|
1002
|
-
throw new
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1028
|
+
if (Ty(t)) {
|
|
1029
|
+
var r = Ds(t, a, e);
|
|
1030
|
+
return r !== null && xy(r), r;
|
|
1031
|
+
}
|
|
1032
|
+
if (Oy(a) === "RegExp")
|
|
1033
|
+
return Ds(Sy, a, e);
|
|
1034
|
+
throw new Ey("RegExp#exec called on incompatible receiver");
|
|
1035
|
+
}, $y = Y, wy = L, Cy = Wi, Ay = J, Py = ae, Ry = ot, Jt = pe, Ny = ve, Iy = st, My = Qi, _y = Ki, Ls = Zi, ks = wy("".indexOf);
|
|
1036
|
+
Cy("match", function(a, e, t) {
|
|
1005
1037
|
return [
|
|
1006
1038
|
// `String.prototype.match` method
|
|
1007
1039
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
1008
1040
|
function(i) {
|
|
1009
|
-
var n =
|
|
1010
|
-
return o ?
|
|
1041
|
+
var n = Ny(this), o = Py(i) ? Iy(i, a) : void 0;
|
|
1042
|
+
return o ? $y(o, i, n) : new RegExp(i)[a](Jt(n));
|
|
1011
1043
|
},
|
|
1012
1044
|
// `RegExp.prototype[@@match]` method
|
|
1013
1045
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
1014
1046
|
function(r) {
|
|
1015
|
-
var i =
|
|
1047
|
+
var i = Ay(this), n = Jt(r), o = t(e, i, n);
|
|
1016
1048
|
if (o.done)
|
|
1017
1049
|
return o.value;
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1050
|
+
var s = Jt(_y(i));
|
|
1051
|
+
if (ks(s, "g") === -1)
|
|
1052
|
+
return Ls(i, n);
|
|
1053
|
+
var u = ks(s, "u") !== -1;
|
|
1021
1054
|
i.lastIndex = 0;
|
|
1022
|
-
for (var
|
|
1023
|
-
var
|
|
1024
|
-
|
|
1055
|
+
for (var l = [], h = 0, f; (f = Ls(i, n)) !== null; ) {
|
|
1056
|
+
var c = Jt(f[0]);
|
|
1057
|
+
l[h] = c, c === "" && (i.lastIndex = My(n, Ry(i.lastIndex), u)), h++;
|
|
1025
1058
|
}
|
|
1026
|
-
return
|
|
1059
|
+
return h === 0 ? null : l;
|
|
1027
1060
|
}
|
|
1028
1061
|
];
|
|
1029
1062
|
});
|
|
1030
|
-
var
|
|
1031
|
-
var o = t + a.length, s = r.length, u =
|
|
1032
|
-
return i !== void 0 && (i =
|
|
1063
|
+
var Ji = L, Vy = Sr, Dy = Math.floor, Ca = Ji("".charAt), Ly = Ji("".replace), Aa = Ji("".slice), ky = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, By = /\$([$&'`]|\d{1,2})/g, jy = function(a, e, t, r, i, n) {
|
|
1064
|
+
var o = t + a.length, s = r.length, u = By;
|
|
1065
|
+
return i !== void 0 && (i = Vy(i), u = ky), Ly(n, u, function(l, h) {
|
|
1033
1066
|
var f;
|
|
1034
|
-
switch (
|
|
1067
|
+
switch (Ca(h, 0)) {
|
|
1035
1068
|
case "$":
|
|
1036
1069
|
return "$";
|
|
1037
1070
|
case "&":
|
|
1038
1071
|
return a;
|
|
1039
1072
|
case "`":
|
|
1040
|
-
return
|
|
1073
|
+
return Aa(e, 0, t);
|
|
1041
1074
|
case "'":
|
|
1042
|
-
return
|
|
1075
|
+
return Aa(e, o);
|
|
1043
1076
|
case "<":
|
|
1044
|
-
f = i[
|
|
1077
|
+
f = i[Aa(h, 1, -1)];
|
|
1045
1078
|
break;
|
|
1046
1079
|
default:
|
|
1047
1080
|
var c = +h;
|
|
1048
1081
|
if (c === 0)
|
|
1049
1082
|
return l;
|
|
1050
1083
|
if (c > s) {
|
|
1051
|
-
var v =
|
|
1052
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
|
1084
|
+
var v = Dy(c / 10);
|
|
1085
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ca(h, 1) : r[v - 1] + Ca(h, 1) : l;
|
|
1053
1086
|
}
|
|
1054
1087
|
f = r[c - 1];
|
|
1055
1088
|
}
|
|
1056
1089
|
return f === void 0 ? "" : f;
|
|
1057
1090
|
});
|
|
1058
|
-
},
|
|
1091
|
+
}, Fy = bu, Bs = Y, _r = L, Uy = Wi, Gy = D, zy = J, Hy = B, Yy = ae, Xy = Cr, Wy = ot, Me = pe, qy = ve, Qy = Qi, Ky = st, Zy = jy, Jy = Ki, em = Zi, tm = z, vi = tm("replace"), rm = Math.max, am = Math.min, im = _r([].concat), Pa = _r([].push), er = _r("".indexOf), js = _r("".slice), nm = function(a) {
|
|
1059
1092
|
return a === void 0 ? a : String(a);
|
|
1060
|
-
},
|
|
1093
|
+
}, sm = function() {
|
|
1061
1094
|
return "a".replace(/./, "$0") === "$0";
|
|
1062
|
-
}(),
|
|
1063
|
-
return /./[
|
|
1064
|
-
}(),
|
|
1095
|
+
}(), Fs = function() {
|
|
1096
|
+
return /./[vi] ? /./[vi]("a", "$0") === "" : !1;
|
|
1097
|
+
}(), om = !Gy(function() {
|
|
1065
1098
|
var a = /./;
|
|
1066
1099
|
return a.exec = function() {
|
|
1067
1100
|
var e = [];
|
|
1068
1101
|
return e.groups = { a: "7" }, e;
|
|
1069
1102
|
}, "".replace(a, "$<a>") !== "7";
|
|
1070
1103
|
});
|
|
1071
|
-
|
|
1072
|
-
var r =
|
|
1104
|
+
Uy("replace", function(a, e, t) {
|
|
1105
|
+
var r = Fs ? "$" : "$0";
|
|
1073
1106
|
return [
|
|
1074
1107
|
// `String.prototype.replace` method
|
|
1075
1108
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1076
1109
|
function(n, o) {
|
|
1077
|
-
var s =
|
|
1078
|
-
return u ?
|
|
1110
|
+
var s = qy(this), u = Yy(n) ? Ky(n, vi) : void 0;
|
|
1111
|
+
return u ? Bs(u, n, s, o) : Bs(e, Me(s), n, o);
|
|
1079
1112
|
},
|
|
1080
1113
|
// `RegExp.prototype[@@replace]` method
|
|
1081
1114
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1082
1115
|
function(i, n) {
|
|
1083
|
-
var o =
|
|
1084
|
-
if (typeof n == "string" &&
|
|
1116
|
+
var o = zy(this), s = Me(i);
|
|
1117
|
+
if (typeof n == "string" && er(n, r) === -1 && er(n, "$<") === -1) {
|
|
1085
1118
|
var u = t(e, o, s, n);
|
|
1086
1119
|
if (u.done)
|
|
1087
1120
|
return u.value;
|
|
1088
1121
|
}
|
|
1089
|
-
var l =
|
|
1090
|
-
l || (n =
|
|
1091
|
-
var h = o
|
|
1092
|
-
|
|
1093
|
-
for (var
|
|
1094
|
-
var d =
|
|
1095
|
-
d === "" && (o.lastIndex =
|
|
1122
|
+
var l = Hy(n);
|
|
1123
|
+
l || (n = Me(n));
|
|
1124
|
+
var h = Me(Jy(o)), f = er(h, "g") !== -1, c;
|
|
1125
|
+
f && (c = er(h, "u") !== -1, o.lastIndex = 0);
|
|
1126
|
+
for (var v = [], g; g = em(o, s), !(g === null || (Pa(v, g), !f)); ) {
|
|
1127
|
+
var d = Me(g[0]);
|
|
1128
|
+
d === "" && (o.lastIndex = Qy(s, Wy(o.lastIndex), c));
|
|
1096
1129
|
}
|
|
1097
|
-
for (var
|
|
1098
|
-
|
|
1099
|
-
for (var
|
|
1100
|
-
|
|
1101
|
-
var
|
|
1130
|
+
for (var p = "", y = 0, x = 0; x < v.length; x++) {
|
|
1131
|
+
g = v[x];
|
|
1132
|
+
for (var b = Me(g[0]), T = rm(am(Xy(g.index), s.length), 0), $ = [], E, O = 1; O < g.length; O++)
|
|
1133
|
+
Pa($, nm(g[O]));
|
|
1134
|
+
var C = g.groups;
|
|
1102
1135
|
if (l) {
|
|
1103
|
-
var
|
|
1104
|
-
|
|
1136
|
+
var P = im([b], $, T, s);
|
|
1137
|
+
C !== void 0 && Pa(P, C), E = Me(Fy(n, void 0, P));
|
|
1105
1138
|
} else
|
|
1106
|
-
|
|
1107
|
-
|
|
1139
|
+
E = Zy(b, s, T, $, C, n);
|
|
1140
|
+
T >= y && (p += js(s, y, T) + E, y = T + b.length);
|
|
1108
1141
|
}
|
|
1109
|
-
return
|
|
1142
|
+
return p + js(s, y);
|
|
1110
1143
|
}
|
|
1111
1144
|
];
|
|
1112
|
-
}, !
|
|
1113
|
-
var
|
|
1145
|
+
}, !om || !sm || Fs);
|
|
1146
|
+
var um = ae, lm = je, hm = z, vm = hm("match"), fm = function(a) {
|
|
1114
1147
|
var e;
|
|
1115
|
-
return
|
|
1116
|
-
},
|
|
1117
|
-
if (
|
|
1118
|
-
throw new
|
|
1148
|
+
return um(a) && ((e = a[vm]) !== void 0 ? !!e : lm(a) === "RegExp");
|
|
1149
|
+
}, cm = fm, gm = TypeError, en = function(a) {
|
|
1150
|
+
if (cm(a))
|
|
1151
|
+
throw new gm("The method doesn't accept regular expressions");
|
|
1119
1152
|
return a;
|
|
1120
|
-
},
|
|
1153
|
+
}, dm = z, pm = dm("match"), tn = function(a) {
|
|
1121
1154
|
var e = /./;
|
|
1122
1155
|
try {
|
|
1123
1156
|
"/./"[a](e);
|
|
1124
1157
|
} catch (t) {
|
|
1125
1158
|
try {
|
|
1126
|
-
return e[
|
|
1159
|
+
return e[pm] = !1, "/./"[a](e);
|
|
1127
1160
|
} catch (r) {
|
|
1128
1161
|
}
|
|
1129
1162
|
}
|
|
1130
1163
|
return !1;
|
|
1131
|
-
},
|
|
1132
|
-
var a =
|
|
1164
|
+
}, ym = ee, mm = Rr, bm = Et.f, xm = ot, Us = pe, Tm = en, Om = ve, Sm = tn, Em = mm("".slice), $m = Math.min, Zu = Sm("startsWith"), wm = !Zu && !!function() {
|
|
1165
|
+
var a = bm(String.prototype, "startsWith");
|
|
1133
1166
|
return a && !a.writable;
|
|
1134
1167
|
}();
|
|
1135
|
-
|
|
1168
|
+
ym({ target: "String", proto: !0, forced: !wm && !Zu }, {
|
|
1136
1169
|
startsWith: function(e) {
|
|
1137
|
-
var t =
|
|
1138
|
-
|
|
1139
|
-
var r =
|
|
1140
|
-
return
|
|
1170
|
+
var t = Us(Om(this));
|
|
1171
|
+
Tm(e);
|
|
1172
|
+
var r = xm($m(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Us(e);
|
|
1173
|
+
return Em(t, r, r + i.length) === i;
|
|
1141
1174
|
}
|
|
1142
1175
|
});
|
|
1143
|
-
var
|
|
1144
|
-
fi
|
|
1176
|
+
var Cm = z, Am = Yi, Pm = Oe.f, fi = Cm("unscopables"), ci = Array.prototype;
|
|
1177
|
+
ci[fi] === void 0 && Pm(ci, fi, {
|
|
1145
1178
|
configurable: !0,
|
|
1146
|
-
value:
|
|
1179
|
+
value: Am(null)
|
|
1147
1180
|
});
|
|
1148
|
-
var
|
|
1149
|
-
fi
|
|
1150
|
-
},
|
|
1181
|
+
var Rm = function(a) {
|
|
1182
|
+
ci[fi][a] = !0;
|
|
1183
|
+
}, Nm = D, Im = !Nm(function() {
|
|
1151
1184
|
function a() {
|
|
1152
1185
|
}
|
|
1153
1186
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1154
|
-
}),
|
|
1155
|
-
var e =
|
|
1156
|
-
if (
|
|
1157
|
-
return e[
|
|
1187
|
+
}), Mm = fe, _m = B, Vm = Sr, Dm = Pi, Lm = Im, Gs = Dm("IE_PROTO"), gi = Object, km = gi.prototype, Ju = Lm ? gi.getPrototypeOf : function(a) {
|
|
1188
|
+
var e = Vm(a);
|
|
1189
|
+
if (Mm(e, Gs))
|
|
1190
|
+
return e[Gs];
|
|
1158
1191
|
var t = e.constructor;
|
|
1159
|
-
return
|
|
1160
|
-
},
|
|
1161
|
-
[].keys && (
|
|
1162
|
-
var
|
|
1192
|
+
return _m(t) && e instanceof t ? t.prototype : e instanceof gi ? km : null;
|
|
1193
|
+
}, Bm = D, jm = B, Fm = ae, zs = Ju, Um = Ue, Gm = z, di = Gm("iterator"), el = !1, ke, Ra, Na;
|
|
1194
|
+
[].keys && (Na = [].keys(), "next" in Na ? (Ra = zs(zs(Na)), Ra !== Object.prototype && (ke = Ra)) : el = !0);
|
|
1195
|
+
var zm = !Fm(ke) || Bm(function() {
|
|
1163
1196
|
var a = {};
|
|
1164
|
-
return ke[
|
|
1197
|
+
return ke[di].call(a) !== a;
|
|
1165
1198
|
});
|
|
1166
|
-
|
|
1167
|
-
|
|
1199
|
+
zm && (ke = {});
|
|
1200
|
+
jm(ke[di]) || Um(ke, di, function() {
|
|
1168
1201
|
return this;
|
|
1169
1202
|
});
|
|
1170
|
-
var
|
|
1203
|
+
var tl = {
|
|
1171
1204
|
IteratorPrototype: ke,
|
|
1172
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1173
|
-
},
|
|
1205
|
+
BUGGY_SAFARI_ITERATORS: el
|
|
1206
|
+
}, Hm = tl.IteratorPrototype, Ym = Yi, Xm = Oi, Wm = Pr, qm = Rt, Qm = function() {
|
|
1174
1207
|
return this;
|
|
1175
|
-
},
|
|
1208
|
+
}, Km = function(a, e, t, r) {
|
|
1176
1209
|
var i = e + " Iterator";
|
|
1177
|
-
return a.prototype =
|
|
1178
|
-
},
|
|
1210
|
+
return a.prototype = Ym(Hm, { next: Xm(+!r, t) }), Wm(a, i, !1), qm[i] = Qm, a;
|
|
1211
|
+
}, Zm = ee, Jm = Y, rl = $r, e0 = B, t0 = Km, Hs = Ju, Ys = vu, r0 = Pr, a0 = Ct, Ia = Ue, i0 = z, n0 = Rt, al = tl, s0 = rl.PROPER, o0 = rl.CONFIGURABLE, Xs = al.IteratorPrototype, tr = al.BUGGY_SAFARI_ITERATORS, ct = i0("iterator"), Ws = "keys", gt = "values", qs = "entries", u0 = function() {
|
|
1179
1212
|
return this;
|
|
1180
|
-
},
|
|
1181
|
-
|
|
1213
|
+
}, l0 = function(a, e, t, r, i, n, o) {
|
|
1214
|
+
t0(t, e, r);
|
|
1182
1215
|
var s = function(y) {
|
|
1183
1216
|
if (y === i && c)
|
|
1184
1217
|
return c;
|
|
1185
|
-
if (!
|
|
1218
|
+
if (!tr && y && y in h)
|
|
1186
1219
|
return h[y];
|
|
1187
1220
|
switch (y) {
|
|
1188
|
-
case
|
|
1221
|
+
case Ws:
|
|
1189
1222
|
return function() {
|
|
1190
1223
|
return new t(this, y);
|
|
1191
1224
|
};
|
|
1192
|
-
case
|
|
1225
|
+
case gt:
|
|
1193
1226
|
return function() {
|
|
1194
1227
|
return new t(this, y);
|
|
1195
1228
|
};
|
|
1196
|
-
case
|
|
1229
|
+
case qs:
|
|
1197
1230
|
return function() {
|
|
1198
1231
|
return new t(this, y);
|
|
1199
1232
|
};
|
|
@@ -1201,26 +1234,26 @@ var Ku = {
|
|
|
1201
1234
|
return function() {
|
|
1202
1235
|
return new t(this);
|
|
1203
1236
|
};
|
|
1204
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[
|
|
1205
|
-
if (v && (
|
|
1206
|
-
return
|
|
1237
|
+
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !tr && f || s(i), v = e === "Array" && h.entries || f, g, d, p;
|
|
1238
|
+
if (v && (g = Hs(v.call(new a())), g !== Object.prototype && g.next && (Hs(g) !== Xs && (Ys ? Ys(g, Xs) : e0(g[ct]) || Ia(g, ct, u0)), r0(g, u, !0))), s0 && i === gt && f && f.name !== gt && (o0 ? a0(h, "name", gt) : (l = !0, c = function() {
|
|
1239
|
+
return Jm(f, this);
|
|
1207
1240
|
})), i)
|
|
1208
|
-
if (
|
|
1209
|
-
values: s(
|
|
1210
|
-
keys: n ? c : s(
|
|
1211
|
-
entries: s(
|
|
1241
|
+
if (d = {
|
|
1242
|
+
values: s(gt),
|
|
1243
|
+
keys: n ? c : s(Ws),
|
|
1244
|
+
entries: s(qs)
|
|
1212
1245
|
}, o)
|
|
1213
|
-
for (p in
|
|
1214
|
-
(
|
|
1246
|
+
for (p in d)
|
|
1247
|
+
(tr || l || !(p in h)) && Ia(h, p, d[p]);
|
|
1215
1248
|
else
|
|
1216
|
-
|
|
1217
|
-
return h[
|
|
1218
|
-
},
|
|
1249
|
+
Zm({ target: e, proto: !0, forced: tr || l }, d);
|
|
1250
|
+
return h[ct] !== c && Ia(h, ct, c, { name: i }), n0[e] = c, d;
|
|
1251
|
+
}, h0 = function(a, e) {
|
|
1219
1252
|
return { value: a, done: e };
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1222
|
-
type:
|
|
1223
|
-
target:
|
|
1253
|
+
}, v0 = $t, rn = Rm, Qs = Rt, il = wr, f0 = Oe.f, c0 = l0, rr = h0, g0 = he, nl = "Array Iterator", d0 = il.set, p0 = il.getterFor(nl), y0 = c0(Array, "Array", function(a, e) {
|
|
1254
|
+
d0(this, {
|
|
1255
|
+
type: nl,
|
|
1256
|
+
target: v0(a),
|
|
1224
1257
|
// target
|
|
1225
1258
|
index: 0,
|
|
1226
1259
|
// next index
|
|
@@ -1228,26 +1261,26 @@ var Ku = {
|
|
|
1228
1261
|
// kind
|
|
1229
1262
|
});
|
|
1230
1263
|
}, function() {
|
|
1231
|
-
var a =
|
|
1264
|
+
var a = p0(this), e = a.target, t = a.index++;
|
|
1232
1265
|
if (!e || t >= e.length)
|
|
1233
|
-
return a.target = null,
|
|
1266
|
+
return a.target = null, rr(void 0, !0);
|
|
1234
1267
|
switch (a.kind) {
|
|
1235
1268
|
case "keys":
|
|
1236
|
-
return
|
|
1269
|
+
return rr(t, !1);
|
|
1237
1270
|
case "values":
|
|
1238
|
-
return
|
|
1239
|
-
}
|
|
1240
|
-
return
|
|
1241
|
-
}, "values"),
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
if (
|
|
1271
|
+
return rr(e[t], !1);
|
|
1272
|
+
}
|
|
1273
|
+
return rr([t, e[t]], !1);
|
|
1274
|
+
}, "values"), Ks = Qs.Arguments = Qs.Array;
|
|
1275
|
+
rn("keys");
|
|
1276
|
+
rn("values");
|
|
1277
|
+
rn("entries");
|
|
1278
|
+
if (g0 && Ks.name !== "values")
|
|
1246
1279
|
try {
|
|
1247
|
-
|
|
1280
|
+
f0(Ks, "name", { value: "values" });
|
|
1248
1281
|
} catch (a) {
|
|
1249
1282
|
}
|
|
1250
|
-
var
|
|
1283
|
+
var m0 = {
|
|
1251
1284
|
CSSRuleList: 0,
|
|
1252
1285
|
CSSStyleDeclaration: 0,
|
|
1253
1286
|
CSSValueList: 0,
|
|
@@ -1279,57 +1312,57 @@ var e0 = {
|
|
|
1279
1312
|
TextTrackCueList: 0,
|
|
1280
1313
|
TextTrackList: 0,
|
|
1281
1314
|
TouchList: 0
|
|
1282
|
-
},
|
|
1315
|
+
}, b0 = Er, Ma = b0("span").classList, Zs = Ma && Ma.constructor && Ma.constructor.prototype, x0 = Zs === Object.prototype ? void 0 : Zs, Js = _, sl = m0, T0 = x0, pt = y0, eo = Ct, O0 = Pr, S0 = z, _a = S0("iterator"), Va = pt.values, ol = function(a, e) {
|
|
1283
1316
|
if (a) {
|
|
1284
|
-
if (a[
|
|
1317
|
+
if (a[_a] !== Va)
|
|
1285
1318
|
try {
|
|
1286
|
-
|
|
1319
|
+
eo(a, _a, Va);
|
|
1287
1320
|
} catch (r) {
|
|
1288
|
-
a[
|
|
1321
|
+
a[_a] = Va;
|
|
1289
1322
|
}
|
|
1290
|
-
if (
|
|
1291
|
-
for (var t in
|
|
1292
|
-
if (a[t] !==
|
|
1323
|
+
if (O0(a, e, !0), sl[e]) {
|
|
1324
|
+
for (var t in pt)
|
|
1325
|
+
if (a[t] !== pt[t])
|
|
1293
1326
|
try {
|
|
1294
|
-
|
|
1327
|
+
eo(a, t, pt[t]);
|
|
1295
1328
|
} catch (r) {
|
|
1296
|
-
a[t] =
|
|
1329
|
+
a[t] = pt[t];
|
|
1297
1330
|
}
|
|
1298
1331
|
}
|
|
1299
1332
|
}
|
|
1300
1333
|
};
|
|
1301
|
-
for (var
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
function
|
|
1305
|
-
if (
|
|
1334
|
+
for (var Da in sl)
|
|
1335
|
+
ol(Js[Da] && Js[Da].prototype, Da);
|
|
1336
|
+
ol(T0, "DOMTokenList");
|
|
1337
|
+
function E0(a, e) {
|
|
1338
|
+
if (Ha(a) != "object" || !a)
|
|
1306
1339
|
return a;
|
|
1307
1340
|
var t = a[Symbol.toPrimitive];
|
|
1308
1341
|
if (t !== void 0) {
|
|
1309
1342
|
var r = t.call(a, e || "default");
|
|
1310
|
-
if (
|
|
1343
|
+
if (Ha(r) != "object")
|
|
1311
1344
|
return r;
|
|
1312
1345
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1313
1346
|
}
|
|
1314
1347
|
return (e === "string" ? String : Number)(a);
|
|
1315
1348
|
}
|
|
1316
|
-
function
|
|
1317
|
-
var e =
|
|
1318
|
-
return
|
|
1349
|
+
function $0(a) {
|
|
1350
|
+
var e = E0(a, "string");
|
|
1351
|
+
return Ha(e) == "symbol" ? e : e + "";
|
|
1319
1352
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return (e =
|
|
1353
|
+
function an(a, e, t) {
|
|
1354
|
+
return (e = $0(e)) in a ? Object.defineProperty(a, e, {
|
|
1322
1355
|
value: t,
|
|
1323
1356
|
enumerable: !0,
|
|
1324
1357
|
configurable: !0,
|
|
1325
1358
|
writable: !0
|
|
1326
1359
|
}) : a[e] = t, a;
|
|
1327
1360
|
}
|
|
1328
|
-
var
|
|
1361
|
+
var w0 = Te, C0 = Sr, A0 = zo, P0 = Ii, to = TypeError, ro = "Reduce of empty array with no initial value", ao = function(a) {
|
|
1329
1362
|
return function(e, t, r, i) {
|
|
1330
|
-
var n =
|
|
1331
|
-
if (
|
|
1332
|
-
throw new
|
|
1363
|
+
var n = C0(e), o = A0(n), s = P0(n);
|
|
1364
|
+
if (w0(t), s === 0 && r < 2)
|
|
1365
|
+
throw new to(ro);
|
|
1333
1366
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1334
1367
|
if (r < 2)
|
|
1335
1368
|
for (; ; ) {
|
|
@@ -1338,65 +1371,65 @@ var u0 = Te, l0 = Tr, h0 = Fo, v0 = Ni, Ks = TypeError, Zs = "Reduce of empty ar
|
|
|
1338
1371
|
break;
|
|
1339
1372
|
}
|
|
1340
1373
|
if (u += l, a ? u < 0 : s <= u)
|
|
1341
|
-
throw new
|
|
1374
|
+
throw new to(ro);
|
|
1342
1375
|
}
|
|
1343
1376
|
for (; a ? u >= 0 : s > u; u += l)
|
|
1344
1377
|
u in o && (i = t(i, o[u], u, n));
|
|
1345
1378
|
return i;
|
|
1346
1379
|
};
|
|
1347
|
-
},
|
|
1380
|
+
}, R0 = {
|
|
1348
1381
|
// `Array.prototype.reduce` method
|
|
1349
1382
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1350
|
-
left:
|
|
1383
|
+
left: ao(!1),
|
|
1351
1384
|
// `Array.prototype.reduceRight` method
|
|
1352
1385
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1353
|
-
right:
|
|
1354
|
-
},
|
|
1386
|
+
right: ao(!0)
|
|
1387
|
+
}, N0 = D, ul = function(a, e) {
|
|
1355
1388
|
var t = [][a];
|
|
1356
|
-
return !!t &&
|
|
1389
|
+
return !!t && N0(function() {
|
|
1357
1390
|
t.call(null, e || function() {
|
|
1358
1391
|
return 1;
|
|
1359
1392
|
}, 1);
|
|
1360
1393
|
});
|
|
1361
|
-
},
|
|
1362
|
-
|
|
1394
|
+
}, I0 = ee, M0 = R0.left, _0 = ul, io = Si, V0 = Ar, D0 = !V0 && io > 79 && io < 83, L0 = D0 || !_0("reduce");
|
|
1395
|
+
I0({ target: "Array", proto: !0, forced: L0 }, {
|
|
1363
1396
|
reduce: function(e) {
|
|
1364
1397
|
var t = arguments.length;
|
|
1365
|
-
return
|
|
1398
|
+
return M0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1366
1399
|
}
|
|
1367
1400
|
});
|
|
1368
|
-
var
|
|
1369
|
-
var a =
|
|
1401
|
+
var k0 = ee, B0 = Rr, j0 = Et.f, F0 = ot, no = pe, U0 = en, G0 = ve, z0 = tn, H0 = B0("".slice), Y0 = Math.min, ll = z0("endsWith"), X0 = !ll && !!function() {
|
|
1402
|
+
var a = j0(String.prototype, "endsWith");
|
|
1370
1403
|
return a && !a.writable;
|
|
1371
1404
|
}();
|
|
1372
|
-
|
|
1405
|
+
k0({ target: "String", proto: !0, forced: !X0 && !ll }, {
|
|
1373
1406
|
endsWith: function(e) {
|
|
1374
|
-
var t =
|
|
1375
|
-
|
|
1376
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
|
1377
|
-
return
|
|
1407
|
+
var t = no(G0(this));
|
|
1408
|
+
U0(e);
|
|
1409
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : Y0(F0(r), i), o = no(e);
|
|
1410
|
+
return H0(t, n - o.length, n) === o;
|
|
1378
1411
|
}
|
|
1379
1412
|
});
|
|
1380
|
-
var
|
|
1413
|
+
var La = Y, hl = L, W0 = Wi, q0 = J, Q0 = ae, K0 = ve, Z0 = yu, J0 = Qi, eb = ot, so = pe, tb = st, oo = Zi, rb = Yu, ab = D, We = rb.UNSUPPORTED_Y, ib = 4294967295, nb = Math.min, ka = hl([].push), Ba = hl("".slice), sb = !ab(function() {
|
|
1381
1414
|
var a = /(?:)/, e = a.exec;
|
|
1382
1415
|
a.exec = function() {
|
|
1383
1416
|
return e.apply(this, arguments);
|
|
1384
1417
|
};
|
|
1385
1418
|
var t = "ab".split(a);
|
|
1386
1419
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
|
1387
|
-
}),
|
|
1420
|
+
}), uo = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1388
1421
|
"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
|
|
1389
1422
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1390
|
-
|
|
1423
|
+
W0("split", function(a, e, t) {
|
|
1391
1424
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1392
|
-
return i === void 0 && n === 0 ? [] :
|
|
1425
|
+
return i === void 0 && n === 0 ? [] : La(e, this, i, n);
|
|
1393
1426
|
} : e;
|
|
1394
1427
|
return [
|
|
1395
1428
|
// `String.prototype.split` method
|
|
1396
1429
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1397
1430
|
function(n, o) {
|
|
1398
|
-
var s =
|
|
1399
|
-
return u ?
|
|
1431
|
+
var s = K0(this), u = Q0(n) ? tb(n, a) : void 0;
|
|
1432
|
+
return u ? La(u, n, s, o) : La(r, so(s), n, o);
|
|
1400
1433
|
},
|
|
1401
1434
|
// `RegExp.prototype[@@split]` method
|
|
1402
1435
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1404,66 +1437,66 @@ R0("split", function(a, e, t) {
|
|
|
1404
1437
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1405
1438
|
// the 'y' flag.
|
|
1406
1439
|
function(i, n) {
|
|
1407
|
-
var o =
|
|
1408
|
-
if (!
|
|
1440
|
+
var o = q0(this), s = so(i);
|
|
1441
|
+
if (!uo) {
|
|
1409
1442
|
var u = t(r, o, s, n, r !== e);
|
|
1410
1443
|
if (u.done)
|
|
1411
1444
|
return u.value;
|
|
1412
1445
|
}
|
|
1413
|
-
var l =
|
|
1446
|
+
var l = Z0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (We ? "g" : "y"), c = new l(We ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? ib : n >>> 0;
|
|
1414
1447
|
if (v === 0)
|
|
1415
1448
|
return [];
|
|
1416
1449
|
if (s.length === 0)
|
|
1417
|
-
return
|
|
1418
|
-
for (var
|
|
1419
|
-
c.lastIndex =
|
|
1420
|
-
var y =
|
|
1421
|
-
if (y === null || (x =
|
|
1422
|
-
|
|
1450
|
+
return oo(c, s) === null ? [s] : [];
|
|
1451
|
+
for (var g = 0, d = 0, p = []; d < s.length; ) {
|
|
1452
|
+
c.lastIndex = We ? 0 : d;
|
|
1453
|
+
var y = oo(c, We ? Ba(s, d) : s), x;
|
|
1454
|
+
if (y === null || (x = nb(eb(c.lastIndex + (We ? d : 0)), s.length)) === g)
|
|
1455
|
+
d = J0(s, d, h);
|
|
1423
1456
|
else {
|
|
1424
|
-
if (ka(p,
|
|
1457
|
+
if (ka(p, Ba(s, g, d)), p.length === v)
|
|
1425
1458
|
return p;
|
|
1426
1459
|
for (var b = 1; b <= y.length - 1; b++)
|
|
1427
1460
|
if (ka(p, y[b]), p.length === v)
|
|
1428
1461
|
return p;
|
|
1429
|
-
|
|
1462
|
+
d = g = x;
|
|
1430
1463
|
}
|
|
1431
1464
|
}
|
|
1432
|
-
return ka(p,
|
|
1465
|
+
return ka(p, Ba(s, g)), p;
|
|
1433
1466
|
}
|
|
1434
1467
|
];
|
|
1435
|
-
},
|
|
1436
|
-
var
|
|
1468
|
+
}, uo || !sb, We);
|
|
1469
|
+
var Vr = { exports: {} }, yt = { exports: {} };
|
|
1437
1470
|
(function() {
|
|
1438
1471
|
var a, e, t, r, i, n;
|
|
1439
|
-
typeof performance != "undefined" && performance !== null && performance.now ?
|
|
1472
|
+
typeof performance != "undefined" && performance !== null && performance.now ? yt.exports = function() {
|
|
1440
1473
|
return performance.now();
|
|
1441
|
-
} : typeof process != "undefined" && process !== null && process.hrtime ? (
|
|
1474
|
+
} : typeof process != "undefined" && process !== null && process.hrtime ? (yt.exports = function() {
|
|
1442
1475
|
return (a() - i) / 1e6;
|
|
1443
1476
|
}, e = process.hrtime, a = function() {
|
|
1444
1477
|
var o;
|
|
1445
1478
|
return o = e(), o[0] * 1e9 + o[1];
|
|
1446
|
-
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (
|
|
1479
|
+
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (yt.exports = function() {
|
|
1447
1480
|
return Date.now() - t;
|
|
1448
|
-
}, t = Date.now()) : (
|
|
1481
|
+
}, t = Date.now()) : (yt.exports = function() {
|
|
1449
1482
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1450
1483
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1451
|
-
}).call(
|
|
1452
|
-
var
|
|
1453
|
-
for (var
|
|
1454
|
-
|
|
1455
|
-
if (!
|
|
1456
|
-
var
|
|
1457
|
-
|
|
1458
|
-
if (
|
|
1459
|
-
var e =
|
|
1460
|
-
|
|
1461
|
-
var r =
|
|
1462
|
-
|
|
1484
|
+
}).call(Qe);
|
|
1485
|
+
var ob = yt.exports, ub = ob, be = typeof window == "undefined" ? Qe : window, ar = ["moz", "webkit"], tt = "AnimationFrame", nt = be["request" + tt], St = be["cancel" + tt] || be["cancelRequest" + tt];
|
|
1486
|
+
for (var dt = 0; !nt && dt < ar.length; dt++)
|
|
1487
|
+
nt = be[ar[dt] + "Request" + tt], St = be[ar[dt] + "Cancel" + tt] || be[ar[dt] + "CancelRequest" + tt];
|
|
1488
|
+
if (!nt || !St) {
|
|
1489
|
+
var ja = 0, lo = 0, _e = [], lb = 1e3 / 60;
|
|
1490
|
+
nt = function(a) {
|
|
1491
|
+
if (_e.length === 0) {
|
|
1492
|
+
var e = ub(), t = Math.max(0, lb - (e - ja));
|
|
1493
|
+
ja = t + e, setTimeout(function() {
|
|
1494
|
+
var r = _e.slice(0);
|
|
1495
|
+
_e.length = 0;
|
|
1463
1496
|
for (var i = 0; i < r.length; i++)
|
|
1464
1497
|
if (!r[i].cancelled)
|
|
1465
1498
|
try {
|
|
1466
|
-
r[i].callback(
|
|
1499
|
+
r[i].callback(ja);
|
|
1467
1500
|
} catch (n) {
|
|
1468
1501
|
setTimeout(function() {
|
|
1469
1502
|
throw n;
|
|
@@ -1471,54 +1504,54 @@ if (!st || !Et) {
|
|
|
1471
1504
|
}
|
|
1472
1505
|
}, Math.round(t));
|
|
1473
1506
|
}
|
|
1474
|
-
return
|
|
1475
|
-
handle: ++
|
|
1507
|
+
return _e.push({
|
|
1508
|
+
handle: ++lo,
|
|
1476
1509
|
callback: a,
|
|
1477
1510
|
cancelled: !1
|
|
1478
|
-
}),
|
|
1479
|
-
},
|
|
1480
|
-
for (var e = 0; e <
|
|
1481
|
-
|
|
1511
|
+
}), lo;
|
|
1512
|
+
}, St = function(a) {
|
|
1513
|
+
for (var e = 0; e < _e.length; e++)
|
|
1514
|
+
_e[e].handle === a && (_e[e].cancelled = !0);
|
|
1482
1515
|
};
|
|
1483
1516
|
}
|
|
1484
|
-
|
|
1485
|
-
return
|
|
1517
|
+
Vr.exports = function(a) {
|
|
1518
|
+
return nt.call(be, a);
|
|
1486
1519
|
};
|
|
1487
|
-
|
|
1488
|
-
|
|
1520
|
+
Vr.exports.cancel = function() {
|
|
1521
|
+
St.apply(be, arguments);
|
|
1489
1522
|
};
|
|
1490
|
-
|
|
1491
|
-
a || (a = be), a.requestAnimationFrame =
|
|
1523
|
+
Vr.exports.polyfill = function(a) {
|
|
1524
|
+
a || (a = be), a.requestAnimationFrame = nt, a.cancelAnimationFrame = St;
|
|
1492
1525
|
};
|
|
1493
|
-
var
|
|
1494
|
-
const
|
|
1495
|
-
var
|
|
1496
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
1526
|
+
var hb = Vr.exports;
|
|
1527
|
+
const Fa = /* @__PURE__ */ Lo(hb);
|
|
1528
|
+
var vl = `
|
|
1529
|
+
\v\f\r \u2028\u2029\uFEFF`, vb = L, fb = ve, cb = pe, pi = vl, ho = vb("".replace), gb = RegExp("^[" + pi + "]+"), db = RegExp("(^|[^" + pi + "])[" + pi + "]+$"), Ua = function(a) {
|
|
1497
1530
|
return function(e) {
|
|
1498
|
-
var t =
|
|
1499
|
-
return a & 1 && (t =
|
|
1531
|
+
var t = cb(fb(e));
|
|
1532
|
+
return a & 1 && (t = ho(t, gb, "")), a & 2 && (t = ho(t, db, "$1")), t;
|
|
1500
1533
|
};
|
|
1501
|
-
},
|
|
1534
|
+
}, pb = {
|
|
1502
1535
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1503
1536
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1504
|
-
start:
|
|
1537
|
+
start: Ua(1),
|
|
1505
1538
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1506
1539
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1507
|
-
end:
|
|
1540
|
+
end: Ua(2),
|
|
1508
1541
|
// `String.prototype.trim` method
|
|
1509
1542
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1510
|
-
trim:
|
|
1511
|
-
},
|
|
1512
|
-
return
|
|
1513
|
-
return !!
|
|
1543
|
+
trim: Ua(3)
|
|
1544
|
+
}, yb = $r.PROPER, mb = D, vo = vl, fo = "
", bb = function(a) {
|
|
1545
|
+
return mb(function() {
|
|
1546
|
+
return !!vo[a]() || fo[a]() !== fo || yb && vo[a].name !== a;
|
|
1514
1547
|
});
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1548
|
+
}, xb = ee, Tb = pb.trim, Ob = bb;
|
|
1549
|
+
xb({ target: "String", proto: !0, forced: Ob("trim") }, {
|
|
1517
1550
|
trim: function() {
|
|
1518
|
-
return
|
|
1551
|
+
return Tb(this);
|
|
1519
1552
|
}
|
|
1520
1553
|
});
|
|
1521
|
-
var
|
|
1554
|
+
var Sb = function(a) {
|
|
1522
1555
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
|
1523
1556
|
var e = {
|
|
1524
1557
|
aliceblue: "f0f8ff",
|
|
@@ -1737,41 +1770,41 @@ var nb = function(a) {
|
|
|
1737
1770
|
v.setAttribute("id", "rgbcolor-examples");
|
|
1738
1771
|
for (var l = 0; l < u.length; l++)
|
|
1739
1772
|
try {
|
|
1740
|
-
var
|
|
1741
|
-
p.style.cssText = "margin: 3px; border: 1px solid black; background:" +
|
|
1773
|
+
var g = document.createElement("li"), d = new RGBColor(u[l]), p = document.createElement("div");
|
|
1774
|
+
p.style.cssText = "margin: 3px; border: 1px solid black; background:" + d.toHex() + "; color:" + d.toHex(), p.appendChild(document.createTextNode("test"));
|
|
1742
1775
|
var y = document.createTextNode(
|
|
1743
|
-
" " + u[l] + " -> " +
|
|
1776
|
+
" " + u[l] + " -> " + d.toRGB() + " -> " + d.toHex()
|
|
1744
1777
|
);
|
|
1745
|
-
|
|
1778
|
+
g.appendChild(p), g.appendChild(y), v.appendChild(g);
|
|
1746
1779
|
} catch (b) {
|
|
1747
1780
|
}
|
|
1748
1781
|
return v;
|
|
1749
1782
|
};
|
|
1750
1783
|
};
|
|
1751
|
-
const
|
|
1752
|
-
var
|
|
1753
|
-
|
|
1784
|
+
const yi = /* @__PURE__ */ Lo(Sb);
|
|
1785
|
+
var Eb = ee, $b = Rr, wb = su.indexOf, Cb = ul, mi = $b([].indexOf), fl = !!mi && 1 / mi([1], 1, -0) < 0, Ab = fl || !Cb("indexOf");
|
|
1786
|
+
Eb({ target: "Array", proto: !0, forced: Ab }, {
|
|
1754
1787
|
indexOf: function(e) {
|
|
1755
1788
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1756
|
-
return
|
|
1789
|
+
return fl ? mi(this, e, t) || 0 : wb(this, e, t);
|
|
1757
1790
|
}
|
|
1758
1791
|
});
|
|
1759
|
-
var
|
|
1760
|
-
|
|
1792
|
+
var Pb = ee, Rb = L, Nb = en, Ib = ve, co = pe, Mb = tn, _b = Rb("".indexOf);
|
|
1793
|
+
Pb({ target: "String", proto: !0, forced: !Mb("includes") }, {
|
|
1761
1794
|
includes: function(e) {
|
|
1762
|
-
return !!~
|
|
1763
|
-
|
|
1764
|
-
|
|
1795
|
+
return !!~_b(
|
|
1796
|
+
co(Ib(this)),
|
|
1797
|
+
co(Nb(e)),
|
|
1765
1798
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1766
1799
|
);
|
|
1767
1800
|
}
|
|
1768
1801
|
});
|
|
1769
|
-
var
|
|
1770
|
-
return
|
|
1771
|
-
},
|
|
1772
|
-
|
|
1802
|
+
var Vb = je, Db = Array.isArray || function(e) {
|
|
1803
|
+
return Vb(e) === "Array";
|
|
1804
|
+
}, Lb = ee, kb = L, Bb = Db, jb = kb([].reverse), go = [1, 2];
|
|
1805
|
+
Lb({ target: "Array", proto: !0, forced: String(go) === String(go.reverse()) }, {
|
|
1773
1806
|
reverse: function() {
|
|
1774
|
-
return
|
|
1807
|
+
return Bb(this) && (this.length = this.length), jb(this);
|
|
1775
1808
|
}
|
|
1776
1809
|
});
|
|
1777
1810
|
/*! *****************************************************************************
|
|
@@ -1788,23 +1821,23 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1788
1821
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1789
1822
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1790
1823
|
***************************************************************************** */
|
|
1791
|
-
var
|
|
1792
|
-
return (
|
|
1824
|
+
var cl = function(a, e) {
|
|
1825
|
+
return (cl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1793
1826
|
t.__proto__ = r;
|
|
1794
1827
|
} || function(t, r) {
|
|
1795
1828
|
for (var i in r)
|
|
1796
1829
|
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1797
1830
|
})(a, e);
|
|
1798
1831
|
};
|
|
1799
|
-
function
|
|
1832
|
+
function gl(a, e) {
|
|
1800
1833
|
if (typeof e != "function" && e !== null)
|
|
1801
1834
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1802
1835
|
function t() {
|
|
1803
1836
|
this.constructor = a;
|
|
1804
1837
|
}
|
|
1805
|
-
|
|
1838
|
+
cl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1806
1839
|
}
|
|
1807
|
-
function
|
|
1840
|
+
function Fb(a) {
|
|
1808
1841
|
var e = "";
|
|
1809
1842
|
Array.isArray(a) || (a = [a]);
|
|
1810
1843
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1835,11 +1868,11 @@ function Sb(a) {
|
|
|
1835
1868
|
}
|
|
1836
1869
|
return e;
|
|
1837
1870
|
}
|
|
1838
|
-
function
|
|
1871
|
+
function bi(a, e) {
|
|
1839
1872
|
var t = a[0], r = a[1];
|
|
1840
1873
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1841
1874
|
}
|
|
1842
|
-
function
|
|
1875
|
+
function ue() {
|
|
1843
1876
|
for (var a = [], e = 0; e < arguments.length; e++)
|
|
1844
1877
|
a[e] = arguments[e];
|
|
1845
1878
|
for (var t = 0; t < a.length; t++)
|
|
@@ -1848,17 +1881,17 @@ function oe() {
|
|
|
1848
1881
|
return !0;
|
|
1849
1882
|
}
|
|
1850
1883
|
var Ee = Math.PI;
|
|
1851
|
-
function
|
|
1884
|
+
function Ga(a, e, t) {
|
|
1852
1885
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1853
1886
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1854
1887
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1855
|
-
var s =
|
|
1888
|
+
var s = bi([(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);
|
|
1856
1889
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
|
1857
|
-
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,
|
|
1858
|
-
a.cX =
|
|
1890
|
+
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, g = -i * u / r * c, d = bi([v, g], a.xRot / 180 * Ee);
|
|
1891
|
+
a.cX = d[0] + (e + n) / 2, a.cY = d[1] + (t + o) / 2, a.phi1 = Math.atan2((l - g) / i, (u - v) / r), a.phi2 = Math.atan2((-l - g) / 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;
|
|
1859
1892
|
}
|
|
1860
|
-
function
|
|
1861
|
-
|
|
1893
|
+
function po(a, e, t) {
|
|
1894
|
+
ue(a, e, t);
|
|
1862
1895
|
var r = a * a + e * e - t * t;
|
|
1863
1896
|
if (0 > r)
|
|
1864
1897
|
return [];
|
|
@@ -1868,13 +1901,13 @@ function vo(a, e, t) {
|
|
|
1868
1901
|
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)]];
|
|
1869
1902
|
}
|
|
1870
1903
|
var U, ye = Math.PI / 180;
|
|
1871
|
-
function
|
|
1904
|
+
function yo(a, e, t) {
|
|
1872
1905
|
return (1 - t) * a + t * e;
|
|
1873
1906
|
}
|
|
1874
|
-
function
|
|
1907
|
+
function mo(a, e, t, r) {
|
|
1875
1908
|
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1876
1909
|
}
|
|
1877
|
-
function
|
|
1910
|
+
function bo(a, e, t, r) {
|
|
1878
1911
|
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;
|
|
1879
1912
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1880
1913
|
c === void 0 && (c = 1e-6);
|
|
@@ -1883,11 +1916,11 @@ function go(a, e, t, r) {
|
|
|
1883
1916
|
return [];
|
|
1884
1917
|
if (v <= c)
|
|
1885
1918
|
return [-h / 2];
|
|
1886
|
-
var
|
|
1887
|
-
return [-h / 2 -
|
|
1919
|
+
var g = Math.sqrt(v);
|
|
1920
|
+
return [-h / 2 - g, -h / 2 + g];
|
|
1888
1921
|
}(u / s, l / s, i);
|
|
1889
1922
|
}
|
|
1890
|
-
function
|
|
1923
|
+
function xo(a, e, t, r, i) {
|
|
1891
1924
|
var n = 1 - i;
|
|
1892
1925
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
|
1893
1926
|
}
|
|
@@ -1925,19 +1958,19 @@ function po(a, e, t, r, i) {
|
|
|
1925
1958
|
};
|
|
1926
1959
|
}
|
|
1927
1960
|
function n(s, u, l, h, f, c) {
|
|
1928
|
-
return
|
|
1929
|
-
var y = v.x1, x = v.x2, b = v.relative && !isNaN(p), T = v.x !== void 0 ? v.x : b ? 0 :
|
|
1930
|
-
function E(
|
|
1931
|
-
return
|
|
1961
|
+
return ue(s, u, l, h, f, c), i(function(v, g, d, p) {
|
|
1962
|
+
var y = v.x1, x = v.x2, b = v.relative && !isNaN(p), T = v.x !== void 0 ? v.x : b ? 0 : g, $ = v.y !== void 0 ? v.y : b ? 0 : d;
|
|
1963
|
+
function E(se) {
|
|
1964
|
+
return se * se;
|
|
1932
1965
|
}
|
|
1933
|
-
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 :
|
|
1966
|
+
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 : d), v.type & m.VERT_LINE_TO && l !== 0 && (v.type = m.LINE_TO, v.x = v.relative ? 0 : g), v.x !== void 0 && (v.x = v.x * s + $ * l + (b ? 0 : f)), v.y !== void 0 && (v.y = T * u + v.y * h + (b ? 0 : c)), v.x1 !== void 0 && (v.x1 = v.x1 * s + v.y1 * l + (b ? 0 : f)), v.y1 !== void 0 && (v.y1 = y * u + v.y1 * h + (b ? 0 : c)), v.x2 !== void 0 && (v.x2 = v.x2 * s + v.y2 * l + (b ? 0 : f)), v.y2 !== void 0 && (v.y2 = x * u + v.y2 * h + (b ? 0 : c));
|
|
1934
1967
|
var O = s * h - u * l;
|
|
1935
1968
|
if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1))
|
|
1936
1969
|
if (O === 0)
|
|
1937
1970
|
delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
|
|
1938
1971
|
else {
|
|
1939
|
-
var C = v.xRot * Math.PI / 180,
|
|
1940
|
-
v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 *
|
|
1972
|
+
var C = v.xRot * Math.PI / 180, P = Math.sin(C), V = Math.cos(C), j = 1 / E(v.rX), R = 1 / E(v.rY), X = E(V) * j + E(P) * R, W = 2 * P * V * (j - R), G = E(P) * j + E(V) * R, q = X * h * h - W * u * h + G * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + G * s * u), Q = X * l * l - W * s * l + G * s * s, N = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(N), K = Math.cos(N);
|
|
1973
|
+
v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 * N / Math.PI;
|
|
1941
1974
|
}
|
|
1942
1975
|
return v.sweepFlag !== void 0 && 0 > O && (v.sweepFlag = +!v.sweepFlag), v;
|
|
1943
1976
|
});
|
|
@@ -1954,7 +1987,7 @@ function po(a, e, t, r, i) {
|
|
|
1954
1987
|
function u(l) {
|
|
1955
1988
|
return Math.round(l * s) / s;
|
|
1956
1989
|
}
|
|
1957
|
-
return s === void 0 && (s = 1e13),
|
|
1990
|
+
return s === void 0 && (s = 1e13), ue(s), function(l) {
|
|
1958
1991
|
return l.x1 !== void 0 && (l.x1 = u(l.x1)), l.y1 !== void 0 && (l.y1 = u(l.y1)), l.x2 !== void 0 && (l.x2 = u(l.x2)), l.y2 !== void 0 && (l.y2 = u(l.y2)), l.x !== void 0 && (l.x = u(l.x)), l.y !== void 0 && (l.y = u(l.y)), l.rX !== void 0 && (l.rX = u(l.rX)), l.rY !== void 0 && (l.rY = u(l.rY)), l;
|
|
1959
1992
|
};
|
|
1960
1993
|
}, a.TO_ABS = e, a.TO_REL = function() {
|
|
@@ -1962,92 +1995,92 @@ function po(a, e, t, r, i) {
|
|
|
1962
1995
|
return s.relative || (s.x1 !== void 0 && (s.x1 -= u), s.y1 !== void 0 && (s.y1 -= l), s.x2 !== void 0 && (s.x2 -= u), s.y2 !== void 0 && (s.y2 -= l), s.x !== void 0 && (s.x -= u), s.y !== void 0 && (s.y -= l), s.relative = !0), s;
|
|
1963
1996
|
});
|
|
1964
1997
|
}, a.NORMALIZE_HVZ = function(s, u, l) {
|
|
1965
|
-
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v,
|
|
1998
|
+
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v, g) {
|
|
1966
1999
|
if (isNaN(v) && !(h.type & m.MOVE_TO))
|
|
1967
2000
|
throw new Error("path must start with moveto");
|
|
1968
|
-
return u && h.type & m.HORIZ_LINE_TO && (h.type = m.LINE_TO, h.y = h.relative ? 0 : c), l && h.type & m.VERT_LINE_TO && (h.type = m.LINE_TO, h.x = h.relative ? 0 : f), s && h.type & m.CLOSE_PATH && (h.type = m.LINE_TO, h.x = h.relative ? v - f : v, h.y = h.relative ?
|
|
2001
|
+
return u && h.type & m.HORIZ_LINE_TO && (h.type = m.LINE_TO, h.y = h.relative ? 0 : c), l && h.type & m.VERT_LINE_TO && (h.type = m.LINE_TO, h.x = h.relative ? 0 : f), s && h.type & m.CLOSE_PATH && (h.type = m.LINE_TO, h.x = h.relative ? v - f : v, h.y = h.relative ? g - c : g), h.type & m.ARC && (h.rX === 0 || h.rY === 0) && (h.type = m.LINE_TO, delete h.rX, delete h.rY, delete h.xRot, delete h.lArcFlag, delete h.sweepFlag), h;
|
|
1969
2002
|
});
|
|
1970
2003
|
}, a.NORMALIZE_ST = t, a.QT_TO_C = r, a.INFO = i, a.SANITIZE = function(s) {
|
|
1971
|
-
s === void 0 && (s = 0),
|
|
2004
|
+
s === void 0 && (s = 0), ue(s);
|
|
1972
2005
|
var u = NaN, l = NaN, h = NaN, f = NaN;
|
|
1973
|
-
return i(function(c, v,
|
|
2006
|
+
return i(function(c, v, g, d, p) {
|
|
1974
2007
|
var y = Math.abs, x = !1, b = 0, T = 0;
|
|
1975
|
-
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 :
|
|
1976
|
-
var $ = c.x === void 0 ? 0 : c.relative ? c.x : c.x - v, E = c.y === void 0 ? 0 : c.relative ? c.y : c.y -
|
|
1977
|
-
b = isNaN(h) ? c.x1 === void 0 ? b : c.relative ? c.x : c.x1 - v : h - v, T = isNaN(f) ? c.y1 === void 0 ? T : c.relative ? c.y : c.y1 -
|
|
1978
|
-
var O = c.x2 === void 0 ? 0 : c.relative ? c.x : c.x2 - v, C = c.y2 === void 0 ? 0 : c.relative ? c.y : c.y2 -
|
|
2008
|
+
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 : g - l), c.type & (m.CURVE_TO | m.SMOOTH_CURVE_TO) ? (u = c.relative ? v + c.x2 : c.x2, l = c.relative ? g + c.y2 : c.y2) : (u = NaN, l = NaN), c.type & m.SMOOTH_QUAD_TO ? (h = isNaN(h) ? v : 2 * v - h, f = isNaN(f) ? g : 2 * g - f) : c.type & m.QUAD_TO ? (h = c.relative ? v + c.x1 : c.x1, f = c.relative ? g + c.y1 : c.y2) : (h = NaN, f = NaN), c.type & m.LINE_COMMANDS || c.type & m.ARC && (c.rX === 0 || c.rY === 0 || !c.lArcFlag) || c.type & m.CURVE_TO || c.type & m.SMOOTH_CURVE_TO || c.type & m.QUAD_TO || c.type & m.SMOOTH_QUAD_TO) {
|
|
2009
|
+
var $ = c.x === void 0 ? 0 : c.relative ? c.x : c.x - v, E = c.y === void 0 ? 0 : c.relative ? c.y : c.y - g;
|
|
2010
|
+
b = isNaN(h) ? c.x1 === void 0 ? b : c.relative ? c.x : c.x1 - v : h - v, T = isNaN(f) ? c.y1 === void 0 ? T : c.relative ? c.y : c.y1 - g : f - g;
|
|
2011
|
+
var O = c.x2 === void 0 ? 0 : c.relative ? c.x : c.x2 - v, C = c.y2 === void 0 ? 0 : c.relative ? c.y : c.y2 - g;
|
|
1979
2012
|
y($) <= s && y(E) <= s && y(b) <= s && y(T) <= s && y(O) <= s && y(C) <= s && (x = !0);
|
|
1980
2013
|
}
|
|
1981
|
-
return c.type & m.CLOSE_PATH && y(v -
|
|
2014
|
+
return c.type & m.CLOSE_PATH && y(v - d) <= s && y(g - p) <= s && (x = !0), x ? [] : c;
|
|
1982
2015
|
});
|
|
1983
2016
|
}, a.MATRIX = n, a.ROTATE = function(s, u, l) {
|
|
1984
|
-
u === void 0 && (u = 0), l === void 0 && (l = 0),
|
|
2017
|
+
u === void 0 && (u = 0), l === void 0 && (l = 0), ue(s, u, l);
|
|
1985
2018
|
var h = Math.sin(s), f = Math.cos(s);
|
|
1986
2019
|
return n(f, h, -h, f, u - u * f + l * h, l - u * h - l * f);
|
|
1987
2020
|
}, a.TRANSLATE = function(s, u) {
|
|
1988
|
-
return u === void 0 && (u = 0),
|
|
2021
|
+
return u === void 0 && (u = 0), ue(s, u), n(1, 0, 0, 1, s, u);
|
|
1989
2022
|
}, a.SCALE = function(s, u) {
|
|
1990
|
-
return u === void 0 && (u = s),
|
|
2023
|
+
return u === void 0 && (u = s), ue(s, u), n(s, 0, 0, u, 0, 0);
|
|
1991
2024
|
}, a.SKEW_X = function(s) {
|
|
1992
|
-
return
|
|
2025
|
+
return ue(s), n(1, 0, Math.atan(s), 1, 0, 0);
|
|
1993
2026
|
}, a.SKEW_Y = function(s) {
|
|
1994
|
-
return
|
|
2027
|
+
return ue(s), n(1, Math.atan(s), 0, 1, 0, 0);
|
|
1995
2028
|
}, a.X_AXIS_SYMMETRY = function(s) {
|
|
1996
|
-
return s === void 0 && (s = 0),
|
|
2029
|
+
return s === void 0 && (s = 0), ue(s), n(-1, 0, 0, 1, s, 0);
|
|
1997
2030
|
}, a.Y_AXIS_SYMMETRY = function(s) {
|
|
1998
|
-
return s === void 0 && (s = 0),
|
|
2031
|
+
return s === void 0 && (s = 0), ue(s), n(1, 0, 0, -1, 0, s);
|
|
1999
2032
|
}, a.A_TO_C = function() {
|
|
2000
2033
|
return i(function(s, u, l) {
|
|
2001
2034
|
return m.ARC === s.type ? function(h, f, c) {
|
|
2002
|
-
var v,
|
|
2003
|
-
h.cX ||
|
|
2035
|
+
var v, g, d, p;
|
|
2036
|
+
h.cX || Ga(h, f, c);
|
|
2004
2037
|
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++) {
|
|
2005
|
-
var C =
|
|
2038
|
+
var C = yo(h.phi1, h.phi2, O / b), P = yo(h.phi1, h.phi2, (O + 1) / b), V = P - C, j = 4 / 3 * Math.tan(V * ye / 4), R = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = R[0], W = R[1], G = [Math.cos(P * ye), Math.sin(P * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(P * ye), H - j * Math.cos(P * ye)], N = Q[0], M = Q[1];
|
|
2006
2039
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
2007
|
-
var K = function(
|
|
2008
|
-
var Se =
|
|
2009
|
-
return [h.cX + ze, h.cY +
|
|
2040
|
+
var K = function(se, ge) {
|
|
2041
|
+
var Se = bi([se * h.rX, ge * h.rY], h.xRot), ze = Se[0], It = Se[1];
|
|
2042
|
+
return [h.cX + ze, h.cY + It];
|
|
2010
2043
|
};
|
|
2011
|
-
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1],
|
|
2044
|
+
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1], g = K(N, M), T[O].x2 = g[0], T[O].y2 = g[1], d = K(q, H), T[O].x = d[0], T[O].y = d[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];
|
|
2012
2045
|
}
|
|
2013
2046
|
return T;
|
|
2014
2047
|
}(s, s.relative ? 0 : u, s.relative ? 0 : l) : s;
|
|
2015
2048
|
});
|
|
2016
2049
|
}, a.ANNOTATE_ARCS = function() {
|
|
2017
2050
|
return i(function(s, u, l) {
|
|
2018
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
|
2051
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && Ga(s, u, l), s;
|
|
2019
2052
|
});
|
|
2020
2053
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
2021
2054
|
var s = function(c) {
|
|
2022
2055
|
var v = {};
|
|
2023
|
-
for (var
|
|
2024
|
-
v[
|
|
2056
|
+
for (var g in c)
|
|
2057
|
+
v[g] = c[g];
|
|
2025
2058
|
return v;
|
|
2026
|
-
}, u = e(), l = r(), h = t(), f = i(function(c, v,
|
|
2027
|
-
var
|
|
2059
|
+
}, u = e(), l = r(), h = t(), f = i(function(c, v, g) {
|
|
2060
|
+
var d = h(l(u(s(c))));
|
|
2028
2061
|
function p(M) {
|
|
2029
2062
|
M > f.maxX && (f.maxX = M), M < f.minX && (f.minX = M);
|
|
2030
2063
|
}
|
|
2031
2064
|
function y(M) {
|
|
2032
2065
|
M > f.maxY && (f.maxY = M), M < f.minY && (f.minY = M);
|
|
2033
2066
|
}
|
|
2034
|
-
if (
|
|
2035
|
-
p(
|
|
2036
|
-
for (var x = 0, b =
|
|
2037
|
-
0 < (
|
|
2038
|
-
for (var T = 0, $ =
|
|
2039
|
-
0 < (
|
|
2067
|
+
if (d.type & m.DRAWING_COMMANDS && (p(v), y(g)), d.type & m.HORIZ_LINE_TO && p(d.x), d.type & m.VERT_LINE_TO && y(d.y), d.type & m.LINE_TO && (p(d.x), y(d.y)), d.type & m.CURVE_TO) {
|
|
2068
|
+
p(d.x), y(d.y);
|
|
2069
|
+
for (var x = 0, b = bo(v, d.x1, d.x2, d.x); x < b.length; x++)
|
|
2070
|
+
0 < (N = b[x]) && 1 > N && p(xo(v, d.x1, d.x2, d.x, N));
|
|
2071
|
+
for (var T = 0, $ = bo(g, d.y1, d.y2, d.y); T < $.length; T++)
|
|
2072
|
+
0 < (N = $[T]) && 1 > N && y(xo(g, d.y1, d.y2, d.y, N));
|
|
2040
2073
|
}
|
|
2041
|
-
if (
|
|
2042
|
-
p(
|
|
2043
|
-
for (var E =
|
|
2044
|
-
var K = M[0],
|
|
2045
|
-
return ge <
|
|
2046
|
-
}, G = 0, q =
|
|
2047
|
-
(
|
|
2048
|
-
for (var H = 0, Q =
|
|
2049
|
-
var
|
|
2050
|
-
(
|
|
2074
|
+
if (d.type & m.ARC) {
|
|
2075
|
+
p(d.x), y(d.y), Ga(d, v, g);
|
|
2076
|
+
for (var E = d.xRot / 180 * Math.PI, O = Math.cos(E) * d.rX, C = Math.sin(E) * d.rX, P = -Math.sin(E) * d.rY, V = Math.cos(E) * d.rY, j = d.phi1 < d.phi2 ? [d.phi1, d.phi2] : -180 > d.phi2 ? [d.phi2 + 360, d.phi1 + 360] : [d.phi2, d.phi1], R = j[0], X = j[1], W = function(M) {
|
|
2077
|
+
var K = M[0], se = M[1], ge = 180 * Math.atan2(se, K) / Math.PI;
|
|
2078
|
+
return ge < R ? ge + 360 : ge;
|
|
2079
|
+
}, G = 0, q = po(P, -O, 0).map(W); G < q.length; G++)
|
|
2080
|
+
(N = q[G]) > R && N < X && p(mo(d.cX, O, P, N));
|
|
2081
|
+
for (var H = 0, Q = po(V, -C, 0).map(W); H < Q.length; H++) {
|
|
2082
|
+
var N;
|
|
2083
|
+
(N = Q[H]) > R && N < X && y(mo(d.cY, C, V, N));
|
|
2051
2084
|
}
|
|
2052
2085
|
}
|
|
2053
2086
|
return c;
|
|
@@ -2055,7 +2088,7 @@ function po(a, e, t, r, i) {
|
|
|
2055
2088
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
|
2056
2089
|
};
|
|
2057
2090
|
})(U || (U = {}));
|
|
2058
|
-
var
|
|
2091
|
+
var oe, dl = function() {
|
|
2059
2092
|
function a() {
|
|
2060
2093
|
}
|
|
2061
2094
|
return a.prototype.round = function(e) {
|
|
@@ -2093,17 +2126,17 @@ var se, vl = function() {
|
|
|
2093
2126
|
}, a.prototype.annotateArcs = function() {
|
|
2094
2127
|
return this.transform(U.ANNOTATE_ARCS());
|
|
2095
2128
|
}, a;
|
|
2096
|
-
}(),
|
|
2129
|
+
}(), Ub = function(a) {
|
|
2097
2130
|
return a === " " || a === " " || a === "\r" || a === `
|
|
2098
2131
|
`;
|
|
2099
|
-
},
|
|
2132
|
+
}, To = function(a) {
|
|
2100
2133
|
return "0".charCodeAt(0) <= a.charCodeAt(0) && a.charCodeAt(0) <= "9".charCodeAt(0);
|
|
2101
|
-
},
|
|
2134
|
+
}, Gb = function(a) {
|
|
2102
2135
|
function e() {
|
|
2103
2136
|
var t = a.call(this) || this;
|
|
2104
2137
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2105
2138
|
}
|
|
2106
|
-
return
|
|
2139
|
+
return gl(e, a), e.prototype.finish = function(t) {
|
|
2107
2140
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
|
|
2108
2141
|
throw new SyntaxError("Unterminated command at the path end.");
|
|
2109
2142
|
return t;
|
|
@@ -2113,8 +2146,8 @@ var se, vl = function() {
|
|
|
2113
2146
|
for (var n = function(f) {
|
|
2114
2147
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2115
2148
|
}, o = 0; o < t.length; o++) {
|
|
2116
|
-
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 =
|
|
2117
|
-
if (!
|
|
2149
|
+
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 = To(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2150
|
+
if (!To(s) || l)
|
|
2118
2151
|
if (s !== "e" && s !== "E")
|
|
2119
2152
|
if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
|
|
2120
2153
|
if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
@@ -2129,9 +2162,9 @@ var se, vl = function() {
|
|
|
2129
2162
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
|
|
2130
2163
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
|
2131
2164
|
}
|
|
2132
|
-
this.curArgs.push(h), this.curArgs.length ===
|
|
2165
|
+
this.curArgs.push(h), this.curArgs.length === zb[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;
|
|
2133
2166
|
}
|
|
2134
|
-
if (!
|
|
2167
|
+
if (!Ub(s))
|
|
2135
2168
|
if (s === "," && this.canParseCommandOrComma)
|
|
2136
2169
|
this.canParseCommandOrComma = !1;
|
|
2137
2170
|
else if (s !== "+" && s !== "-" && s !== ".")
|
|
@@ -2189,12 +2222,12 @@ var se, vl = function() {
|
|
|
2189
2222
|
return i;
|
|
2190
2223
|
} } });
|
|
2191
2224
|
}, e;
|
|
2192
|
-
}(
|
|
2225
|
+
}(dl), m = function(a) {
|
|
2193
2226
|
function e(t) {
|
|
2194
2227
|
var r = a.call(this) || this;
|
|
2195
2228
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2196
2229
|
}
|
|
2197
|
-
return
|
|
2230
|
+
return gl(e, a), e.prototype.encode = function() {
|
|
2198
2231
|
return e.encode(this.commands);
|
|
2199
2232
|
}, e.prototype.getBounds = function() {
|
|
2200
2233
|
var t = U.CALCULATE_BOUNDS();
|
|
@@ -2206,36 +2239,33 @@ var se, vl = function() {
|
|
|
2206
2239
|
}
|
|
2207
2240
|
return this.commands = r, this;
|
|
2208
2241
|
}, e.encode = function(t) {
|
|
2209
|
-
return
|
|
2242
|
+
return Fb(t);
|
|
2210
2243
|
}, e.parse = function(t) {
|
|
2211
|
-
var r = new
|
|
2244
|
+
var r = new Gb(), i = [];
|
|
2212
2245
|
return r.parse(t, i), r.finish(i), i;
|
|
2213
2246
|
}, 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;
|
|
2214
|
-
}(
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
}), Lb = Ib && cl.name !== rn;
|
|
2220
|
-
(kb || Lb) && Mb(fl, rn, function() {
|
|
2221
|
-
var e = _b(this), t = bo(e.source), r = bo(Db(e));
|
|
2247
|
+
}(dl), zb = ((oe = {})[m.MOVE_TO] = 2, oe[m.LINE_TO] = 2, oe[m.HORIZ_LINE_TO] = 1, oe[m.VERT_LINE_TO] = 1, oe[m.CLOSE_PATH] = 0, oe[m.QUAD_TO] = 4, oe[m.SMOOTH_QUAD_TO] = 2, oe[m.CURVE_TO] = 6, oe[m.SMOOTH_CURVE_TO] = 4, oe[m.ARC] = 7, oe), Hb = $r.PROPER, Yb = Ue, Xb = J, Oo = pe, Wb = D, qb = Ki, nn = "toString", pl = RegExp.prototype, yl = pl[nn], Qb = Wb(function() {
|
|
2248
|
+
return yl.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2249
|
+
}), Kb = Hb && yl.name !== nn;
|
|
2250
|
+
(Qb || Kb) && Yb(pl, nn, function() {
|
|
2251
|
+
var e = Xb(this), t = Oo(e.source), r = Oo(qb(e));
|
|
2222
2252
|
return "/" + t + "/" + r;
|
|
2223
2253
|
}, { unsafe: !0 });
|
|
2224
|
-
function
|
|
2254
|
+
function fr(a) {
|
|
2225
2255
|
"@babel/helpers - typeof";
|
|
2226
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2256
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fr = function(e) {
|
|
2227
2257
|
return typeof e;
|
|
2228
|
-
} :
|
|
2258
|
+
} : fr = function(e) {
|
|
2229
2259
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2230
|
-
},
|
|
2260
|
+
}, fr(a);
|
|
2231
2261
|
}
|
|
2232
|
-
function
|
|
2262
|
+
function Zb(a, e) {
|
|
2233
2263
|
if (!(a instanceof e))
|
|
2234
2264
|
throw new TypeError("Cannot call a class as a function");
|
|
2235
2265
|
}
|
|
2236
|
-
var
|
|
2237
|
-
function
|
|
2238
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
|
2266
|
+
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], e1 = [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];
|
|
2267
|
+
function t1(a, e, t, r, i) {
|
|
2268
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || fr(a) !== "object" || !("getContext" in a))
|
|
2239
2269
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
2240
2270
|
var n = a.getContext("2d");
|
|
2241
2271
|
try {
|
|
@@ -2244,69 +2274,69 @@ function Ub(a, e, t, r, i) {
|
|
|
2244
2274
|
throw new Error("unable to access image data: " + o);
|
|
2245
2275
|
}
|
|
2246
2276
|
}
|
|
2247
|
-
function
|
|
2277
|
+
function r1(a, e, t, r, i, n) {
|
|
2248
2278
|
if (!(isNaN(n) || n < 1)) {
|
|
2249
2279
|
n |= 0;
|
|
2250
|
-
var o =
|
|
2251
|
-
o =
|
|
2280
|
+
var o = t1(a, e, t, r, i);
|
|
2281
|
+
o = a1(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2252
2282
|
}
|
|
2253
2283
|
}
|
|
2254
|
-
function
|
|
2255
|
-
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
|
|
2256
|
-
v = v.next = new
|
|
2284
|
+
function a1(a, e, t, r, i, n) {
|
|
2285
|
+
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 So(), v = c, g, d = 1; d < s; d++)
|
|
2286
|
+
v = v.next = new So(), d === h && (g = v);
|
|
2257
2287
|
v.next = c;
|
|
2258
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
|
2288
|
+
for (var p = null, y = null, x = 0, b = 0, T = Jb[n], $ = e1[n], E = 0; E < i; E++) {
|
|
2259
2289
|
v = c;
|
|
2260
|
-
for (var O = o[b], C = o[b + 1],
|
|
2261
|
-
v.r = O, v.g = C, v.b =
|
|
2262
|
-
for (var
|
|
2263
|
-
var ze = b + ((u < Se ? u : Se) << 2),
|
|
2264
|
-
M += (v.r =
|
|
2290
|
+
for (var O = o[b], C = o[b + 1], P = o[b + 2], V = o[b + 3], j = 0; j < h; j++)
|
|
2291
|
+
v.r = O, v.g = C, v.b = P, v.a = V, v = v.next;
|
|
2292
|
+
for (var R = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * P, N = h * V, M = f * O, K = f * C, se = f * P, ge = f * V, Se = 1; Se < h; Se++) {
|
|
2293
|
+
var ze = b + ((u < Se ? u : Se) << 2), It = o[ze], un = o[ze + 1], ln = o[ze + 2], hn = o[ze + 3], Mt = h - Se;
|
|
2294
|
+
M += (v.r = It) * Mt, K += (v.g = un) * Mt, se += (v.b = ln) * Mt, ge += (v.a = hn) * Mt, R += It, X += un, W += ln, G += hn, v = v.next;
|
|
2265
2295
|
}
|
|
2266
|
-
p = c, y =
|
|
2267
|
-
for (var
|
|
2268
|
-
var
|
|
2269
|
-
if (o[b + 3] =
|
|
2270
|
-
var
|
|
2271
|
-
o[b] = (M * T >>> $) *
|
|
2296
|
+
p = c, y = g;
|
|
2297
|
+
for (var jr = 0; jr < r; jr++) {
|
|
2298
|
+
var Fr = ge * T >>> $;
|
|
2299
|
+
if (o[b + 3] = Fr, Fr !== 0) {
|
|
2300
|
+
var Ur = 255 / Fr;
|
|
2301
|
+
o[b] = (M * T >>> $) * Ur, o[b + 1] = (K * T >>> $) * Ur, o[b + 2] = (se * T >>> $) * Ur;
|
|
2272
2302
|
} else
|
|
2273
2303
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
|
2274
|
-
M -= q, K -= H,
|
|
2275
|
-
var Ae =
|
|
2276
|
-
Ae = x + (Ae < u ? Ae : u) << 2,
|
|
2277
|
-
var
|
|
2278
|
-
q +=
|
|
2304
|
+
M -= q, K -= H, se -= Q, ge -= N, q -= p.r, H -= p.g, Q -= p.b, N -= p.a;
|
|
2305
|
+
var Ae = jr + n + 1;
|
|
2306
|
+
Ae = x + (Ae < u ? Ae : u) << 2, R += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], G += p.a = o[Ae + 3], M += R, K += X, se += W, ge += G, p = p.next;
|
|
2307
|
+
var _t = y, vn = _t.r, fn = _t.g, cn = _t.b, gn = _t.a;
|
|
2308
|
+
q += vn, H += fn, Q += cn, N += gn, R -= vn, X -= fn, W -= cn, G -= gn, y = y.next, b += 4;
|
|
2279
2309
|
}
|
|
2280
2310
|
x += r;
|
|
2281
2311
|
}
|
|
2282
2312
|
for (var He = 0; He < r; He++) {
|
|
2283
2313
|
b = He << 2;
|
|
2284
|
-
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3],
|
|
2314
|
+
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3], Gr = h * Pe, zr = h * Re, Hr = h * Ne, Yr = h * te, Vt = f * Pe, Dt = f * Re, Lt = f * Ne, kt = f * te;
|
|
2285
2315
|
v = c;
|
|
2286
|
-
for (var
|
|
2316
|
+
for (var dn = 0; dn < h; dn++)
|
|
2287
2317
|
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
|
2288
|
-
for (var
|
|
2289
|
-
b =
|
|
2290
|
-
var
|
|
2291
|
-
|
|
2318
|
+
for (var pn = r, Xr = 0, Wr = 0, qr = 0, Qr = 0, Bt = 1; Bt <= n; Bt++) {
|
|
2319
|
+
b = pn + He << 2;
|
|
2320
|
+
var jt = h - Bt;
|
|
2321
|
+
Vt += (v.r = Pe = o[b]) * jt, Dt += (v.g = Re = o[b + 1]) * jt, Lt += (v.b = Ne = o[b + 2]) * jt, kt += (v.a = te = o[b + 3]) * jt, Qr += Pe, Xr += Re, Wr += Ne, qr += te, v = v.next, Bt < l && (pn += r);
|
|
2292
2322
|
}
|
|
2293
|
-
b = He, p = c, y =
|
|
2294
|
-
for (var
|
|
2323
|
+
b = He, p = c, y = g;
|
|
2324
|
+
for (var Kr = 0; Kr < i; Kr++) {
|
|
2295
2325
|
var re = b << 2;
|
|
2296
|
-
o[re + 3] = te =
|
|
2326
|
+
o[re + 3] = te = kt * T >>> $, te > 0 ? (te = 255 / te, o[re] = (Vt * T >>> $) * te, o[re + 1] = (Dt * T >>> $) * te, o[re + 2] = (Lt * T >>> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Vt -= Gr, Dt -= zr, Lt -= Hr, kt -= Yr, Gr -= p.r, zr -= p.g, Hr -= p.b, Yr -= p.a, re = He + ((re = Kr + h) < l ? re : l) * r << 2, Vt += Qr += p.r = o[re], Dt += Xr += p.g = o[re + 1], Lt += Wr += p.b = o[re + 2], kt += qr += p.a = o[re + 3], p = p.next, Gr += Pe = y.r, zr += Re = y.g, Hr += Ne = y.b, Yr += te = y.a, Qr -= Pe, Xr -= Re, Wr -= Ne, qr -= te, y = y.next, b += r;
|
|
2297
2327
|
}
|
|
2298
2328
|
}
|
|
2299
2329
|
return a;
|
|
2300
2330
|
}
|
|
2301
|
-
var
|
|
2331
|
+
var So = (
|
|
2302
2332
|
/**
|
|
2303
2333
|
* Set properties.
|
|
2304
2334
|
*/
|
|
2305
2335
|
function a() {
|
|
2306
|
-
|
|
2336
|
+
Zb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2307
2337
|
}
|
|
2308
2338
|
);
|
|
2309
|
-
function
|
|
2339
|
+
function i1() {
|
|
2310
2340
|
var {
|
|
2311
2341
|
DOMParser: a
|
|
2312
2342
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
@@ -2326,7 +2356,7 @@ function Hb() {
|
|
|
2326
2356
|
};
|
|
2327
2357
|
return (typeof DOMParser != "undefined" || typeof a == "undefined") && Reflect.deleteProperty(e, "DOMParser"), e;
|
|
2328
2358
|
}
|
|
2329
|
-
function
|
|
2359
|
+
function n1(a) {
|
|
2330
2360
|
var {
|
|
2331
2361
|
DOMParser: e,
|
|
2332
2362
|
canvas: t,
|
|
@@ -2342,76 +2372,76 @@ function Yb(a) {
|
|
|
2342
2372
|
createImage: t.loadImage
|
|
2343
2373
|
};
|
|
2344
2374
|
}
|
|
2345
|
-
var
|
|
2375
|
+
var y2 = /* @__PURE__ */ Object.freeze({
|
|
2346
2376
|
__proto__: null,
|
|
2347
|
-
offscreen:
|
|
2348
|
-
node:
|
|
2377
|
+
offscreen: i1,
|
|
2378
|
+
node: n1
|
|
2349
2379
|
});
|
|
2350
|
-
function
|
|
2380
|
+
function lt(a) {
|
|
2351
2381
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2352
2382
|
}
|
|
2353
|
-
function
|
|
2383
|
+
function s1(a) {
|
|
2354
2384
|
return a.replace(/^[\n \t]+/, "");
|
|
2355
2385
|
}
|
|
2356
|
-
function
|
|
2386
|
+
function o1(a) {
|
|
2357
2387
|
return a.replace(/[\n \t]+$/, "");
|
|
2358
2388
|
}
|
|
2359
|
-
function
|
|
2389
|
+
function ne(a) {
|
|
2360
2390
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2361
2391
|
return e.map(parseFloat);
|
|
2362
2392
|
}
|
|
2363
|
-
var
|
|
2364
|
-
function
|
|
2365
|
-
return
|
|
2393
|
+
var u1 = /^[A-Z-]+$/;
|
|
2394
|
+
function l1(a) {
|
|
2395
|
+
return u1.test(a) ? a.toLowerCase() : a;
|
|
2366
2396
|
}
|
|
2367
|
-
function
|
|
2397
|
+
function ml(a) {
|
|
2368
2398
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
2369
2399
|
return e[2] || e[3] || e[4];
|
|
2370
2400
|
}
|
|
2371
|
-
function
|
|
2401
|
+
function h1(a) {
|
|
2372
2402
|
if (!a.startsWith("rgb"))
|
|
2373
2403
|
return a;
|
|
2374
2404
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
|
2375
2405
|
return t;
|
|
2376
2406
|
}
|
|
2377
|
-
var
|
|
2378
|
-
function
|
|
2407
|
+
var v1 = /(\[[^\]]+\])/g, f1 = /(#[^\s+>~.[:]+)/g, c1 = /(\.[^\s+>~.[:]+)/g, g1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, d1 = /(:[\w-]+\([^)]*\))/gi, p1 = /(:[^\s+>~.[:]+)/g, y1 = /([^\s+>~.[:]+)/g;
|
|
2408
|
+
function Ve(a, e) {
|
|
2379
2409
|
var t = e.exec(a);
|
|
2380
2410
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
|
2381
2411
|
}
|
|
2382
|
-
function
|
|
2412
|
+
function m1(a) {
|
|
2383
2413
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
|
2384
|
-
return [t, r] =
|
|
2414
|
+
return [t, r] = Ve(t, v1), e[1] += r, [t, r] = Ve(t, f1), e[0] += r, [t, r] = Ve(t, c1), e[1] += r, [t, r] = Ve(t, g1), e[2] += r, [t, r] = Ve(t, d1), e[1] += r, [t, r] = Ve(t, p1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = Ve(t, y1), e[2] += r, e.join("");
|
|
2385
2415
|
}
|
|
2386
|
-
var
|
|
2387
|
-
function
|
|
2416
|
+
var rt = 1e-8;
|
|
2417
|
+
function Eo(a) {
|
|
2388
2418
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2389
2419
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2420
|
+
function xi(a, e) {
|
|
2421
|
+
return (a[0] * e[0] + a[1] * e[1]) / (Eo(a) * Eo(e));
|
|
2392
2422
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
|
2423
|
+
function $o(a, e) {
|
|
2424
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(xi(a, e));
|
|
2395
2425
|
}
|
|
2396
|
-
function
|
|
2426
|
+
function wo(a) {
|
|
2397
2427
|
return a * a * a;
|
|
2398
2428
|
}
|
|
2399
|
-
function
|
|
2429
|
+
function Co(a) {
|
|
2400
2430
|
return 3 * a * a * (1 - a);
|
|
2401
2431
|
}
|
|
2402
|
-
function
|
|
2432
|
+
function Ao(a) {
|
|
2403
2433
|
return 3 * a * (1 - a) * (1 - a);
|
|
2404
2434
|
}
|
|
2405
|
-
function
|
|
2435
|
+
function Po(a) {
|
|
2406
2436
|
return (1 - a) * (1 - a) * (1 - a);
|
|
2407
2437
|
}
|
|
2408
|
-
function
|
|
2438
|
+
function Ro(a) {
|
|
2409
2439
|
return a * a;
|
|
2410
2440
|
}
|
|
2411
|
-
function
|
|
2441
|
+
function No(a) {
|
|
2412
2442
|
return 2 * a * (1 - a);
|
|
2413
2443
|
}
|
|
2414
|
-
function
|
|
2444
|
+
function Io(a) {
|
|
2415
2445
|
return (1 - a) * (1 - a);
|
|
2416
2446
|
}
|
|
2417
2447
|
class S {
|
|
@@ -2426,7 +2456,7 @@ class S {
|
|
|
2426
2456
|
document: t,
|
|
2427
2457
|
name: r
|
|
2428
2458
|
} = this;
|
|
2429
|
-
return
|
|
2459
|
+
return lt(this.getString()).trim().split(e).map((i) => new S(t, r, i));
|
|
2430
2460
|
}
|
|
2431
2461
|
hasValue(e) {
|
|
2432
2462
|
var {
|
|
@@ -2474,7 +2504,7 @@ class S {
|
|
|
2474
2504
|
}
|
|
2475
2505
|
getColor(e) {
|
|
2476
2506
|
var t = this.getString(e);
|
|
2477
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
|
2507
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = h1(t), this.value = t), t;
|
|
2478
2508
|
}
|
|
2479
2509
|
getDpi() {
|
|
2480
2510
|
return 96;
|
|
@@ -2575,7 +2605,7 @@ class S {
|
|
|
2575
2605
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
2576
2606
|
;
|
|
2577
2607
|
if (e.hasValue() && this.isString() && i !== 3) {
|
|
2578
|
-
var o = new
|
|
2608
|
+
var o = new yi(t);
|
|
2579
2609
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2580
2610
|
}
|
|
2581
2611
|
return new S(this.document, this.name, t);
|
|
@@ -2594,7 +2624,7 @@ S.textBaselineMapping = {
|
|
|
2594
2624
|
hanging: "hanging",
|
|
2595
2625
|
mathematical: "alphabetic"
|
|
2596
2626
|
};
|
|
2597
|
-
class
|
|
2627
|
+
class b1 {
|
|
2598
2628
|
constructor() {
|
|
2599
2629
|
this.viewPorts = [];
|
|
2600
2630
|
}
|
|
@@ -2626,21 +2656,21 @@ class s1 {
|
|
|
2626
2656
|
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);
|
|
2627
2657
|
}
|
|
2628
2658
|
}
|
|
2629
|
-
class
|
|
2659
|
+
class k {
|
|
2630
2660
|
constructor(e, t) {
|
|
2631
2661
|
this.x = e, this.y = t;
|
|
2632
2662
|
}
|
|
2633
2663
|
static parse(e) {
|
|
2634
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] =
|
|
2635
|
-
return new
|
|
2664
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] = ne(e);
|
|
2665
|
+
return new k(r, i);
|
|
2636
2666
|
}
|
|
2637
2667
|
static parseScale(e) {
|
|
2638
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] =
|
|
2639
|
-
return new
|
|
2668
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] = ne(e);
|
|
2669
|
+
return new k(r, i);
|
|
2640
2670
|
}
|
|
2641
2671
|
static parsePath(e) {
|
|
2642
|
-
for (var t =
|
|
2643
|
-
i.push(new
|
|
2672
|
+
for (var t = ne(e), r = t.length, i = [], n = 0; n < r; n += 2)
|
|
2673
|
+
i.push(new k(t[n], t[n + 1]));
|
|
2644
2674
|
return i;
|
|
2645
2675
|
}
|
|
2646
2676
|
angleTo(e) {
|
|
@@ -2654,7 +2684,7 @@ class D {
|
|
|
2654
2684
|
this.x = i, this.y = n;
|
|
2655
2685
|
}
|
|
2656
2686
|
}
|
|
2657
|
-
class
|
|
2687
|
+
class x1 {
|
|
2658
2688
|
constructor(e) {
|
|
2659
2689
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
2660
2690
|
}
|
|
@@ -2731,7 +2761,7 @@ class o1 {
|
|
|
2731
2761
|
for (var {
|
|
2732
2762
|
window: r,
|
|
2733
2763
|
ctx: i
|
|
2734
|
-
} = this.screen, n = new
|
|
2764
|
+
} = this.screen, n = new k(e, t), o = i.canvas; o; )
|
|
2735
2765
|
n.x -= o.offsetLeft, n.y -= o.offsetTop, o = o.offsetParent;
|
|
2736
2766
|
return r.scrollX && (n.x += r.scrollX), r.scrollY && (n.y += r.scrollY), n;
|
|
2737
2767
|
}
|
|
@@ -2764,14 +2794,14 @@ class o1 {
|
|
|
2764
2794
|
});
|
|
2765
2795
|
}
|
|
2766
2796
|
}
|
|
2767
|
-
var
|
|
2768
|
-
class
|
|
2797
|
+
var bl = typeof window != "undefined" ? window : null, xl = typeof fetch != "undefined" ? fetch.bind(void 0) : null;
|
|
2798
|
+
class Dr {
|
|
2769
2799
|
constructor(e) {
|
|
2770
2800
|
var {
|
|
2771
|
-
fetch: t =
|
|
2772
|
-
window: r =
|
|
2801
|
+
fetch: t = xl,
|
|
2802
|
+
window: r = bl
|
|
2773
2803
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2774
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
|
2804
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new b1(), this.mouse = new x1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
|
2775
2805
|
}
|
|
2776
2806
|
wait(e) {
|
|
2777
2807
|
this.waits.push(e);
|
|
@@ -2802,18 +2832,18 @@ class _r {
|
|
|
2802
2832
|
refX: f,
|
|
2803
2833
|
refY: c,
|
|
2804
2834
|
clip: v = !1,
|
|
2805
|
-
clipX:
|
|
2806
|
-
clipY:
|
|
2807
|
-
} = e, p =
|
|
2808
|
-
T === "meet" && (
|
|
2809
|
-
var j = new S(t, "refX", f),
|
|
2810
|
-
if (X && r.translate(-O * j.getPixels("x"), -O *
|
|
2811
|
-
var W = O *
|
|
2835
|
+
clipX: g = 0,
|
|
2836
|
+
clipY: d = 0
|
|
2837
|
+
} = e, p = lt(i).replace(/^defer\s/, ""), [y, x] = p.split(" "), b = y || "xMidYMid", T = x || "meet", $ = n / o, E = s / u, O = Math.min($, E), C = Math.max($, E), P = o, V = u;
|
|
2838
|
+
T === "meet" && (P *= O, V *= O), T === "slice" && (P *= C, V *= C);
|
|
2839
|
+
var j = new S(t, "refX", f), R = new S(t, "refY", c), X = j.hasValue() && R.hasValue();
|
|
2840
|
+
if (X && r.translate(-O * j.getPixels("x"), -O * R.getPixels("y")), v) {
|
|
2841
|
+
var W = O * g, G = O * d;
|
|
2812
2842
|
r.beginPath(), r.moveTo(W, G), r.lineTo(n, G), r.lineTo(n, s), r.lineTo(W, s), r.closePath(), r.clip();
|
|
2813
2843
|
}
|
|
2814
2844
|
if (!X) {
|
|
2815
|
-
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $,
|
|
2816
|
-
b.startsWith("xMid") && (q || H) && r.translate(n / 2 -
|
|
2845
|
+
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $, N = T === "slice" && C === $;
|
|
2846
|
+
b.startsWith("xMid") && (q || H) && r.translate(n / 2 - P / 2, 0), b.endsWith("YMid") && (Q || N) && r.translate(0, s / 2 - V / 2), b.startsWith("xMax") && (q || H) && r.translate(n - P, 0), b.endsWith("YMax") && (Q || N) && r.translate(0, s - V);
|
|
2817
2847
|
}
|
|
2818
2848
|
switch (!0) {
|
|
2819
2849
|
case b === "none":
|
|
@@ -2843,18 +2873,18 @@ class _r {
|
|
|
2843
2873
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
2844
2874
|
FRAMERATE: c,
|
|
2845
2875
|
mouse: v
|
|
2846
|
-
} = this,
|
|
2847
|
-
if (this.frameDuration =
|
|
2876
|
+
} = this, g = 1e3 / c;
|
|
2877
|
+
if (this.frameDuration = g, this.readyPromise = new Promise((b) => {
|
|
2848
2878
|
this.resolveReady = b;
|
|
2849
2879
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
|
2850
|
-
var
|
|
2851
|
-
|
|
2880
|
+
var d = Date.now(), p = d, y = 0, x = () => {
|
|
2881
|
+
d = Date.now(), y = d - p, y >= g && (p = d - y % g, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = Fa(x);
|
|
2852
2882
|
};
|
|
2853
|
-
r || v.start(), this.intervalId =
|
|
2883
|
+
r || v.start(), this.intervalId = Fa(x);
|
|
2854
2884
|
}
|
|
2855
2885
|
}
|
|
2856
2886
|
stop() {
|
|
2857
|
-
this.intervalId && (
|
|
2887
|
+
this.intervalId && (Fa.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
|
2858
2888
|
}
|
|
2859
2889
|
shouldUpdate(e, t) {
|
|
2860
2890
|
if (!e) {
|
|
@@ -2875,11 +2905,11 @@ class _r {
|
|
|
2875
2905
|
isFirstRender: c
|
|
2876
2906
|
} = this, v = f.canvas;
|
|
2877
2907
|
h.clear(), v.width && v.height ? h.setCurrent(v.width, v.height) : h.setCurrent(u, l);
|
|
2878
|
-
var
|
|
2879
|
-
!t && (c || typeof i != "number" && typeof n != "number") && (
|
|
2908
|
+
var g = e.getStyle("width"), d = e.getStyle("height");
|
|
2909
|
+
!t && (c || typeof i != "number" && typeof n != "number") && (g.hasValue() && (v.width = g.getPixels("x"), v.style && (v.style.width = "".concat(v.width, "px"))), d.hasValue() && (v.height = d.getPixels("y"), v.style && (v.style.height = "".concat(v.height, "px"))));
|
|
2880
2910
|
var p = v.clientWidth || v.width, y = v.clientHeight || v.height;
|
|
2881
|
-
if (t &&
|
|
2882
|
-
var x =
|
|
2911
|
+
if (t && g.hasValue() && d.hasValue() && (p = g.getPixels("x"), y = d.getPixels("y")), h.setCurrent(p, y), typeof o == "number" && e.getAttribute("x", !0).setValue(o), typeof s == "number" && e.getAttribute("y", !0).setValue(s), typeof i == "number" || typeof n == "number") {
|
|
2912
|
+
var x = ne(e.getAttribute("viewBox").getString()), b = 0, T = 0;
|
|
2883
2913
|
if (typeof i == "number") {
|
|
2884
2914
|
var $ = e.getStyle("width");
|
|
2885
2915
|
$.hasValue() ? b = $.getPixels("x") / i : isNaN(x[2]) || (b = x[2] / i);
|
|
@@ -2895,16 +2925,16 @@ class _r {
|
|
|
2895
2925
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
|
2896
2926
|
}
|
|
2897
2927
|
}
|
|
2898
|
-
|
|
2899
|
-
|
|
2928
|
+
Dr.defaultWindow = bl;
|
|
2929
|
+
Dr.defaultFetch = xl;
|
|
2900
2930
|
var {
|
|
2901
|
-
defaultFetch:
|
|
2902
|
-
} =
|
|
2903
|
-
class
|
|
2931
|
+
defaultFetch: T1
|
|
2932
|
+
} = Dr, O1 = typeof DOMParser != "undefined" ? DOMParser : null;
|
|
2933
|
+
class za {
|
|
2904
2934
|
constructor() {
|
|
2905
2935
|
var {
|
|
2906
|
-
fetch: e =
|
|
2907
|
-
DOMParser: t =
|
|
2936
|
+
fetch: e = T1,
|
|
2937
|
+
DOMParser: t = O1
|
|
2908
2938
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2909
2939
|
this.fetch = e, this.DOMParser = t;
|
|
2910
2940
|
}
|
|
@@ -2936,9 +2966,9 @@ class Ga {
|
|
|
2936
2966
|
})();
|
|
2937
2967
|
}
|
|
2938
2968
|
}
|
|
2939
|
-
class
|
|
2969
|
+
class S1 {
|
|
2940
2970
|
constructor(e, t) {
|
|
2941
|
-
this.type = "translate", this.point = null, this.point =
|
|
2971
|
+
this.type = "translate", this.point = null, this.point = k.parse(t);
|
|
2942
2972
|
}
|
|
2943
2973
|
apply(e) {
|
|
2944
2974
|
var {
|
|
@@ -2962,10 +2992,10 @@ class h1 {
|
|
|
2962
2992
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
|
2963
2993
|
}
|
|
2964
2994
|
}
|
|
2965
|
-
class
|
|
2995
|
+
class E1 {
|
|
2966
2996
|
constructor(e, t, r) {
|
|
2967
2997
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
2968
|
-
var i =
|
|
2998
|
+
var i = ne(t);
|
|
2969
2999
|
this.angle = new S(e, "angle", i[0]), this.originX = r[0], this.originY = r[1], this.cx = i[1] || 0, this.cy = i[2] || 0;
|
|
2970
3000
|
}
|
|
2971
3001
|
apply(e) {
|
|
@@ -3013,11 +3043,11 @@ class v1 {
|
|
|
3013
3043
|
]);
|
|
3014
3044
|
}
|
|
3015
3045
|
}
|
|
3016
|
-
class
|
|
3046
|
+
class $1 {
|
|
3017
3047
|
constructor(e, t, r) {
|
|
3018
3048
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
3019
|
-
var i =
|
|
3020
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
|
3049
|
+
var i = k.parseScale(t);
|
|
3050
|
+
(i.x === 0 || i.y === 0) && (i.x = rt, i.y = rt), this.scale = i, this.originX = r[0], this.originY = r[1];
|
|
3021
3051
|
}
|
|
3022
3052
|
apply(e) {
|
|
3023
3053
|
var {
|
|
@@ -3049,9 +3079,9 @@ class f1 {
|
|
|
3049
3079
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
|
3050
3080
|
}
|
|
3051
3081
|
}
|
|
3052
|
-
class
|
|
3082
|
+
class Tl {
|
|
3053
3083
|
constructor(e, t, r) {
|
|
3054
|
-
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix =
|
|
3084
|
+
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ne(t), this.originX = r[0], this.originY = r[1];
|
|
3055
3085
|
}
|
|
3056
3086
|
apply(e) {
|
|
3057
3087
|
var {
|
|
@@ -3066,49 +3096,49 @@ class yl {
|
|
|
3066
3096
|
originX: t,
|
|
3067
3097
|
originY: r,
|
|
3068
3098
|
matrix: i
|
|
3069
|
-
} = this, n = i[0], o = i[2], s = i[4], u = i[1], l = i[3], h = i[5], f = 0, c = 0, v = 1,
|
|
3070
|
-
e.translate(
|
|
3099
|
+
} = this, n = i[0], o = i[2], s = i[4], u = i[1], l = i[3], h = i[5], f = 0, c = 0, v = 1, g = 1 / (n * (l * v - h * c) - o * (u * v - h * f) + s * (u * c - l * f)), d = t.getPixels("x"), p = r.getPixels("y");
|
|
3100
|
+
e.translate(d, p), e.transform(g * (l * v - h * c), g * (h * f - u * v), g * (s * c - o * v), g * (n * v - s * f), g * (o * h - s * l), g * (s * u - n * h)), e.translate(-d, -p);
|
|
3071
3101
|
}
|
|
3072
3102
|
applyToPoint(e) {
|
|
3073
3103
|
e.applyTransform(this.matrix);
|
|
3074
3104
|
}
|
|
3075
3105
|
}
|
|
3076
|
-
class
|
|
3106
|
+
class Ol extends Tl {
|
|
3077
3107
|
constructor(e, t, r) {
|
|
3078
3108
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
|
3079
3109
|
}
|
|
3080
3110
|
}
|
|
3081
|
-
class
|
|
3111
|
+
class w1 extends Ol {
|
|
3082
3112
|
constructor(e, t, r) {
|
|
3083
3113
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
|
3084
3114
|
}
|
|
3085
3115
|
}
|
|
3086
|
-
class
|
|
3116
|
+
class C1 extends Ol {
|
|
3087
3117
|
constructor(e, t, r) {
|
|
3088
3118
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
|
3089
3119
|
}
|
|
3090
3120
|
}
|
|
3091
|
-
function
|
|
3092
|
-
return
|
|
3121
|
+
function A1(a) {
|
|
3122
|
+
return lt(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
3093
3123
|
}
|
|
3094
|
-
function
|
|
3124
|
+
function P1(a) {
|
|
3095
3125
|
var [e, t] = a.split("(");
|
|
3096
3126
|
return [e.trim(), t.trim().replace(")", "")];
|
|
3097
3127
|
}
|
|
3098
|
-
class
|
|
3128
|
+
class Be {
|
|
3099
3129
|
constructor(e, t, r) {
|
|
3100
3130
|
this.document = e, this.transforms = [];
|
|
3101
|
-
var i =
|
|
3131
|
+
var i = A1(t);
|
|
3102
3132
|
i.forEach((n) => {
|
|
3103
3133
|
if (n !== "none") {
|
|
3104
|
-
var [o, s] =
|
|
3134
|
+
var [o, s] = P1(n), u = Be.transformTypes[o];
|
|
3105
3135
|
typeof u != "undefined" && this.transforms.push(new u(this.document, s, r));
|
|
3106
3136
|
}
|
|
3107
3137
|
});
|
|
3108
3138
|
}
|
|
3109
3139
|
static fromElement(e, t) {
|
|
3110
3140
|
var r = t.getStyle("transform", !1, !0), [i, n = i] = t.getStyle("transform-origin", !1, !0).split(), o = [i, n];
|
|
3111
|
-
return r.hasValue() ? new
|
|
3141
|
+
return r.hasValue() ? new Be(e, r.getString(), o) : null;
|
|
3112
3142
|
}
|
|
3113
3143
|
apply(e) {
|
|
3114
3144
|
for (var {
|
|
@@ -3130,20 +3160,20 @@ class Le {
|
|
|
3130
3160
|
t[i].applyToPoint(e);
|
|
3131
3161
|
}
|
|
3132
3162
|
}
|
|
3133
|
-
|
|
3134
|
-
translate:
|
|
3135
|
-
rotate:
|
|
3136
|
-
scale:
|
|
3137
|
-
matrix:
|
|
3138
|
-
skewX:
|
|
3139
|
-
skewY:
|
|
3163
|
+
Be.transformTypes = {
|
|
3164
|
+
translate: S1,
|
|
3165
|
+
rotate: E1,
|
|
3166
|
+
scale: $1,
|
|
3167
|
+
matrix: Tl,
|
|
3168
|
+
skewX: w1,
|
|
3169
|
+
skewY: C1
|
|
3140
3170
|
};
|
|
3141
|
-
class
|
|
3171
|
+
class I {
|
|
3142
3172
|
constructor(e, t) {
|
|
3143
3173
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3144
3174
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = /* @__PURE__ */ Object.create(null), this.styles = /* @__PURE__ */ Object.create(null), this.stylesSpecificity = /* @__PURE__ */ Object.create(null), this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
|
3145
3175
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3146
|
-
var u =
|
|
3176
|
+
var u = l1(s.nodeName);
|
|
3147
3177
|
this.attributes[u] = new S(e, u, s.value);
|
|
3148
3178
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3149
3179
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
@@ -3220,7 +3250,7 @@ class N {
|
|
|
3220
3250
|
setContext(e) {
|
|
3221
3251
|
}
|
|
3222
3252
|
applyEffects(e) {
|
|
3223
|
-
var t =
|
|
3253
|
+
var t = Be.fromElement(this.document, this);
|
|
3224
3254
|
t && t.apply(e);
|
|
3225
3255
|
var r = this.getStyle("clip-path", !1, !0);
|
|
3226
3256
|
if (r.hasValue()) {
|
|
@@ -3236,8 +3266,8 @@ class N {
|
|
|
3236
3266
|
});
|
|
3237
3267
|
}
|
|
3238
3268
|
addChild(e) {
|
|
3239
|
-
var t = e instanceof
|
|
3240
|
-
t.parent = this,
|
|
3269
|
+
var t = e instanceof I ? e : this.document.createElement(e);
|
|
3270
|
+
t.parent = this, I.ignoreChildTypes.includes(t.type) || this.children.push(t);
|
|
3241
3271
|
}
|
|
3242
3272
|
matchesSelector(e) {
|
|
3243
3273
|
var t, {
|
|
@@ -3284,20 +3314,20 @@ class N {
|
|
|
3284
3314
|
return ((e = this.parent) === null || e === void 0 ? void 0 : e.children.indexOf(this)) === 0;
|
|
3285
3315
|
}
|
|
3286
3316
|
}
|
|
3287
|
-
|
|
3288
|
-
class
|
|
3317
|
+
I.ignoreChildTypes = ["title"];
|
|
3318
|
+
class R1 extends I {
|
|
3289
3319
|
constructor(e, t, r) {
|
|
3290
3320
|
super(e, t, r);
|
|
3291
3321
|
}
|
|
3292
3322
|
}
|
|
3293
|
-
function
|
|
3323
|
+
function N1(a) {
|
|
3294
3324
|
var e = a.trim();
|
|
3295
3325
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
|
3296
3326
|
}
|
|
3297
|
-
function
|
|
3298
|
-
return typeof process == "undefined" ? a : a.trim().split(",").map(
|
|
3327
|
+
function I1(a) {
|
|
3328
|
+
return typeof process == "undefined" ? a : a.trim().split(",").map(N1).join(",");
|
|
3299
3329
|
}
|
|
3300
|
-
function
|
|
3330
|
+
function M1(a) {
|
|
3301
3331
|
if (!a)
|
|
3302
3332
|
return "";
|
|
3303
3333
|
var e = a.trim().toLowerCase();
|
|
@@ -3313,7 +3343,7 @@ function x1(a) {
|
|
|
3313
3343
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3314
3344
|
}
|
|
3315
3345
|
}
|
|
3316
|
-
function
|
|
3346
|
+
function _1(a) {
|
|
3317
3347
|
if (!a)
|
|
3318
3348
|
return "";
|
|
3319
3349
|
var e = a.trim().toLowerCase();
|
|
@@ -3336,7 +3366,7 @@ class Z {
|
|
|
3336
3366
|
this.fontFamily = n || s.fontFamily, this.fontSize = i || s.fontSize, this.fontStyle = e || s.fontStyle, this.fontWeight = r || s.fontWeight, this.fontVariant = t || s.fontVariant;
|
|
3337
3367
|
}
|
|
3338
3368
|
static parse() {
|
|
3339
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u =
|
|
3369
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u = lt(e).trim().split(" "), l = {
|
|
3340
3370
|
fontSize: !1,
|
|
3341
3371
|
fontStyle: !1,
|
|
3342
3372
|
fontWeight: !1,
|
|
@@ -3363,12 +3393,12 @@ class Z {
|
|
|
3363
3393
|
}
|
|
3364
3394
|
toString() {
|
|
3365
3395
|
return [
|
|
3366
|
-
|
|
3396
|
+
M1(this.fontStyle),
|
|
3367
3397
|
this.fontVariant,
|
|
3368
|
-
|
|
3398
|
+
_1(this.fontWeight),
|
|
3369
3399
|
this.fontSize,
|
|
3370
3400
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3371
|
-
|
|
3401
|
+
I1(this.fontFamily)
|
|
3372
3402
|
].join(" ").trim();
|
|
3373
3403
|
}
|
|
3374
3404
|
}
|
|
@@ -3455,7 +3485,7 @@ class w extends m {
|
|
|
3455
3485
|
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 = [];
|
|
3456
3486
|
}
|
|
3457
3487
|
reset() {
|
|
3458
|
-
this.i = -1, this.command = null, this.previousCommand = null, this.start = new
|
|
3488
|
+
this.i = -1, this.command = null, this.previousCommand = null, this.start = new k(0, 0), this.control = new k(0, 0), this.current = new k(0, 0), this.points = [], this.angles = [];
|
|
3459
3489
|
}
|
|
3460
3490
|
isEnd() {
|
|
3461
3491
|
var {
|
|
@@ -3469,7 +3499,7 @@ class w extends m {
|
|
|
3469
3499
|
return this.previousCommand = this.command, this.command = e, e;
|
|
3470
3500
|
}
|
|
3471
3501
|
getPoint() {
|
|
3472
|
-
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
|
|
3502
|
+
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 k(this.command[e], this.command[t]);
|
|
3473
3503
|
return this.makeAbsolute(r);
|
|
3474
3504
|
}
|
|
3475
3505
|
getAsControlPoint(e, t) {
|
|
@@ -3493,7 +3523,7 @@ class w extends m {
|
|
|
3493
3523
|
x: i,
|
|
3494
3524
|
y: n
|
|
3495
3525
|
}
|
|
3496
|
-
} = this, o = new
|
|
3526
|
+
} = this, o = new k(2 * t - i, 2 * r - n);
|
|
3497
3527
|
return o;
|
|
3498
3528
|
}
|
|
3499
3529
|
makeAbsolute(e) {
|
|
@@ -3533,7 +3563,7 @@ class w extends m {
|
|
|
3533
3563
|
return e;
|
|
3534
3564
|
}
|
|
3535
3565
|
}
|
|
3536
|
-
class Ge extends
|
|
3566
|
+
class Ge extends I {
|
|
3537
3567
|
constructor() {
|
|
3538
3568
|
super(...arguments), this.modifiedEmSizeStack = !1;
|
|
3539
3569
|
}
|
|
@@ -3574,20 +3604,20 @@ class Ge extends N {
|
|
|
3574
3604
|
}
|
|
3575
3605
|
var v = this.getStyle("stroke-width");
|
|
3576
3606
|
if (v.hasValue()) {
|
|
3577
|
-
var
|
|
3578
|
-
e.lineWidth =
|
|
3607
|
+
var g = v.getPixels();
|
|
3608
|
+
e.lineWidth = g || rt;
|
|
3579
3609
|
}
|
|
3580
|
-
var
|
|
3581
|
-
if (
|
|
3582
|
-
var T =
|
|
3610
|
+
var d = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), x = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
|
3611
|
+
if (d.hasValue() && (e.lineCap = d.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
|
|
3612
|
+
var T = ne(x.getString());
|
|
3583
3613
|
typeof e.setLineDash != "undefined" ? e.setLineDash(T) : typeof e.webkitLineDash != "undefined" ? e.webkitLineDash = T : typeof e.mozDash != "undefined" && !(T.length === 1 && T[0] === 0) && (e.mozDash = T);
|
|
3584
3614
|
var $ = b.getPixels();
|
|
3585
3615
|
typeof e.lineDashOffset != "undefined" ? e.lineDashOffset = $ : typeof e.webkitLineDashOffset != "undefined" ? e.webkitLineDashOffset = $ : typeof e.mozDashOffset != "undefined" && (e.mozDashOffset = $);
|
|
3586
3616
|
}
|
|
3587
3617
|
}
|
|
3588
3618
|
if (this.modifiedEmSizeStack = !1, typeof e.font != "undefined") {
|
|
3589
|
-
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"),
|
|
3590
|
-
O.setValue(
|
|
3619
|
+
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"), P = this.getStyle("font-weight"), V = this.getStyle("font-size"), j = this.getStyle("font-family"), R = new Z(O.getString(), C.getString(), P.getString(), V.hasValue() ? "".concat(V.getPixels(!0), "px") : "", j.getString(), Z.parse(E.getString(), e.font));
|
|
3620
|
+
O.setValue(R.fontStyle), C.setValue(R.fontVariant), P.setValue(R.fontWeight), V.setValue(R.fontSize), j.setValue(R.fontFamily), e.font = R.toString(), V.isPixels() && (this.document.emSize = V.getPixels(), this.modifiedEmSizeStack = !0);
|
|
3591
3621
|
}
|
|
3592
3622
|
t || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
|
3593
3623
|
}
|
|
@@ -3660,12 +3690,12 @@ class A extends Ge {
|
|
|
3660
3690
|
}
|
|
3661
3691
|
if (o.isUrlDefinition())
|
|
3662
3692
|
for (var f = o.getDefinition(), c = 1; c < i; c++) {
|
|
3663
|
-
var [v,
|
|
3664
|
-
f.render(e, v,
|
|
3693
|
+
var [v, g] = r[c];
|
|
3694
|
+
f.render(e, v, g);
|
|
3665
3695
|
}
|
|
3666
3696
|
if (s.isUrlDefinition()) {
|
|
3667
|
-
var
|
|
3668
|
-
|
|
3697
|
+
var d = s.getDefinition(), [p, y] = r[i];
|
|
3698
|
+
d.render(e, p, y);
|
|
3669
3699
|
}
|
|
3670
3700
|
}
|
|
3671
3701
|
}
|
|
@@ -3711,7 +3741,7 @@ class A extends Ge {
|
|
|
3711
3741
|
var {
|
|
3712
3742
|
current: t,
|
|
3713
3743
|
command: r
|
|
3714
|
-
} = e, i = new
|
|
3744
|
+
} = e, i = new k((r.relative ? t.x : 0) + r.x, t.y);
|
|
3715
3745
|
return e.current = i, {
|
|
3716
3746
|
current: t,
|
|
3717
3747
|
point: i
|
|
@@ -3733,7 +3763,7 @@ class A extends Ge {
|
|
|
3733
3763
|
var {
|
|
3734
3764
|
current: t,
|
|
3735
3765
|
command: r
|
|
3736
|
-
} = e, i = new
|
|
3766
|
+
} = e, i = new k(t.x, (r.relative ? t.y : 0) + r.y);
|
|
3737
3767
|
return e.current = i, {
|
|
3738
3768
|
current: t,
|
|
3739
3769
|
point: i
|
|
@@ -3847,18 +3877,18 @@ class A extends Ge {
|
|
|
3847
3877
|
xRot: o,
|
|
3848
3878
|
lArcFlag: s,
|
|
3849
3879
|
sweepFlag: u
|
|
3850
|
-
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new
|
|
3880
|
+
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new k(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);
|
|
3851
3881
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3852
3882
|
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)));
|
|
3853
3883
|
isNaN(v) && (v = 0);
|
|
3854
|
-
var
|
|
3855
|
-
return
|
|
3884
|
+
var g = new k(v * i * f.y / n, v * -n * f.x / i), d = new k((t.x + h.x) / 2 + Math.cos(l) * g.x - Math.sin(l) * g.y, (t.y + h.y) / 2 + Math.sin(l) * g.x + Math.cos(l) * g.y), p = $o([1, 0], [(f.x - g.x) / i, (f.y - g.y) / n]), y = [(f.x - g.x) / i, (f.y - g.y) / n], x = [(-f.x - g.x) / i, (-f.y - g.y) / n], b = $o(y, x);
|
|
3885
|
+
return xi(y, x) <= -1 && (b = Math.PI), xi(y, x) >= 1 && (b = 0), {
|
|
3856
3886
|
currentPoint: h,
|
|
3857
3887
|
rX: i,
|
|
3858
3888
|
rY: n,
|
|
3859
3889
|
sweepFlag: u,
|
|
3860
3890
|
xAxisRotation: l,
|
|
3861
|
-
centp:
|
|
3891
|
+
centp: d,
|
|
3862
3892
|
a1: p,
|
|
3863
3893
|
ad: b
|
|
3864
3894
|
};
|
|
@@ -3875,10 +3905,10 @@ class A extends Ge {
|
|
|
3875
3905
|
centp: l,
|
|
3876
3906
|
a1: h,
|
|
3877
3907
|
ad: f
|
|
3878
|
-
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2),
|
|
3879
|
-
if (r.addMarkerAngle(
|
|
3880
|
-
var
|
|
3881
|
-
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0,
|
|
3908
|
+
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), g = new k(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
|
|
3909
|
+
if (r.addMarkerAngle(g, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
|
|
3910
|
+
var d = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
|
|
3911
|
+
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, d, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
|
|
3882
3912
|
}
|
|
3883
3913
|
}
|
|
3884
3914
|
static pathZ(e) {
|
|
@@ -3888,7 +3918,7 @@ class A extends Ge {
|
|
|
3888
3918
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
|
3889
3919
|
}
|
|
3890
3920
|
}
|
|
3891
|
-
class
|
|
3921
|
+
class Sl extends A {
|
|
3892
3922
|
constructor(e, t, r) {
|
|
3893
3923
|
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();
|
|
3894
3924
|
}
|
|
@@ -3933,7 +3963,7 @@ class Ce extends Ge {
|
|
|
3933
3963
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3934
3964
|
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] != "undefined") {
|
|
3935
3965
|
var h = e.glyphs[i];
|
|
3936
|
-
n = h instanceof
|
|
3966
|
+
n = h instanceof Sl ? h : h[l];
|
|
3937
3967
|
}
|
|
3938
3968
|
} else
|
|
3939
3969
|
n = e.glyphs[i];
|
|
@@ -3943,12 +3973,12 @@ class Ce extends Ge {
|
|
|
3943
3973
|
return "";
|
|
3944
3974
|
}
|
|
3945
3975
|
getTextFromNode(e) {
|
|
3946
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
|
3976
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = lt(
|
|
3947
3977
|
// textNode.value
|
|
3948
3978
|
// || textNode.text
|
|
3949
3979
|
t.textContent || ""
|
|
3950
3980
|
);
|
|
3951
|
-
return i === 0 && (o =
|
|
3981
|
+
return i === 0 && (o = s1(o)), i === n && (o = o1(o)), o;
|
|
3952
3982
|
}
|
|
3953
3983
|
renderChildren(e) {
|
|
3954
3984
|
if (this.type !== "text") {
|
|
@@ -3971,11 +4001,11 @@ class Ce extends Ge {
|
|
|
3971
4001
|
if (n) {
|
|
3972
4002
|
for (var {
|
|
3973
4003
|
unitsPerEm: o
|
|
3974
|
-
} = n.fontFace, s = Z.parse(t.ctx.font), u = r.getStyle("font-size").getNumber(s.fontSize), l = r.getStyle("font-style").getString(s.fontStyle), h = u / o, f = n.isRTL ? i.split("").reverse().join("") : i, c =
|
|
3975
|
-
var
|
|
4004
|
+
} = n.fontFace, s = Z.parse(t.ctx.font), u = r.getStyle("font-size").getNumber(s.fontSize), l = r.getStyle("font-style").getString(s.fontStyle), h = u / o, f = n.isRTL ? i.split("").reverse().join("") : i, c = ne(r.getAttribute("dx").getString()), v = f.length, g = 0; g < v; g++) {
|
|
4005
|
+
var d = this.getGlyph(n, f, g);
|
|
3976
4006
|
e.translate(this.x, this.y), e.scale(h, -h);
|
|
3977
4007
|
var p = e.lineWidth;
|
|
3978
|
-
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0),
|
|
4008
|
+
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0), d.render(e), l === "italic" && e.transform(1, 0, -0.4, 1, 0, 0), e.lineWidth = p, e.scale(1 / h, -1 / h), e.translate(-this.x, -this.y), this.x += u * (d.horizAdvX || n.horizAdvX) / o, typeof c[g] != "undefined" && !isNaN(c[g]) && (this.x += c[g]);
|
|
3979
4009
|
}
|
|
3980
4010
|
return;
|
|
3981
4011
|
}
|
|
@@ -4047,7 +4077,7 @@ class Ce extends Ge {
|
|
|
4047
4077
|
parent: r
|
|
4048
4078
|
} = this, i = r.getStyle("font-family").getDefinition();
|
|
4049
4079
|
if (i) {
|
|
4050
|
-
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s =
|
|
4080
|
+
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s = ne(r.getAttribute("dx").getString()), u = o.length, l = 0, h = 0; h < u; h++) {
|
|
4051
4081
|
var f = this.getGlyph(i, o, h);
|
|
4052
4082
|
l += (f.horizAdvX || i.horizAdvX) * n / i.fontFace.unitsPerEm, typeof s[h] != "undefined" && !isNaN(s[h]) && (l += s[h]);
|
|
4053
4083
|
}
|
|
@@ -4077,20 +4107,20 @@ class Ce extends Ge {
|
|
|
4077
4107
|
return null;
|
|
4078
4108
|
}
|
|
4079
4109
|
}
|
|
4080
|
-
class
|
|
4110
|
+
class Lr extends Ce {
|
|
4081
4111
|
constructor(e, t, r) {
|
|
4082
|
-
super(e, t, new.target ===
|
|
4112
|
+
super(e, t, new.target === Lr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
|
4083
4113
|
}
|
|
4084
4114
|
getText() {
|
|
4085
4115
|
return this.text;
|
|
4086
4116
|
}
|
|
4087
4117
|
}
|
|
4088
|
-
class
|
|
4118
|
+
class V1 extends Lr {
|
|
4089
4119
|
constructor() {
|
|
4090
4120
|
super(...arguments), this.type = "textNode";
|
|
4091
4121
|
}
|
|
4092
4122
|
}
|
|
4093
|
-
class
|
|
4123
|
+
class Nt extends Ge {
|
|
4094
4124
|
constructor() {
|
|
4095
4125
|
super(...arguments), this.type = "svg", this.root = !1;
|
|
4096
4126
|
}
|
|
@@ -4112,19 +4142,19 @@ class It extends Ge {
|
|
|
4112
4142
|
height: l
|
|
4113
4143
|
} = i.viewPort;
|
|
4114
4144
|
this.getStyle("width").hasValue() || this.getStyle("width", !0).setValue("100%"), this.getStyle("height").hasValue() || this.getStyle("height", !0).setValue("100%"), this.getStyle("color").hasValue() || this.getStyle("color", !0).setValue("black");
|
|
4115
|
-
var h = this.getAttribute("refX"), f = this.getAttribute("refY"), c = this.getAttribute("viewBox"), v = c.hasValue() ?
|
|
4116
|
-
v && (
|
|
4145
|
+
var h = this.getAttribute("refX"), f = this.getAttribute("refY"), c = this.getAttribute("viewBox"), v = c.hasValue() ? ne(c.getString()) : null, g = !this.root && this.getStyle("overflow").getValue("hidden") !== "visible", d = 0, p = 0, y = 0, x = 0;
|
|
4146
|
+
v && (d = v[0], p = v[1]), this.root || (u = this.getStyle("width").getPixels("x"), l = this.getStyle("height").getPixels("y"), this.type === "marker" && (y = d, x = p, d = 0, p = 0)), i.viewPort.setCurrent(u, l), this.node && (!this.parent || ((t = this.node.parentNode) === null || t === void 0 ? void 0 : t.nodeName) === "foreignObject") && this.getStyle("transform", !1, !0).hasValue() && !this.getStyle("transform-origin", !1, !0).hasValue() && this.getStyle("transform-origin", !0, !0).setValue("50% 50%"), super.setContext(e), e.translate(this.getAttribute("x").getPixels("x"), this.getAttribute("y").getPixels("y")), v && (u = v[2], l = v[3]), r.setViewBox({
|
|
4117
4147
|
ctx: e,
|
|
4118
4148
|
aspectRatio: this.getAttribute("preserveAspectRatio").getString(),
|
|
4119
4149
|
width: i.viewPort.width,
|
|
4120
4150
|
desiredWidth: u,
|
|
4121
4151
|
height: i.viewPort.height,
|
|
4122
4152
|
desiredHeight: l,
|
|
4123
|
-
minX:
|
|
4153
|
+
minX: d,
|
|
4124
4154
|
minY: p,
|
|
4125
4155
|
refX: h.getValue(),
|
|
4126
4156
|
refY: f.getValue(),
|
|
4127
|
-
clip:
|
|
4157
|
+
clip: g,
|
|
4128
4158
|
clipX: y,
|
|
4129
4159
|
clipY: x
|
|
4130
4160
|
}), v && (i.viewPort.removeCurrent(), i.viewPort.setCurrent(u, l));
|
|
@@ -4153,7 +4183,7 @@ class It extends Ge {
|
|
|
4153
4183
|
}
|
|
4154
4184
|
}
|
|
4155
4185
|
}
|
|
4156
|
-
class
|
|
4186
|
+
class El extends A {
|
|
4157
4187
|
constructor() {
|
|
4158
4188
|
super(...arguments), this.type = "rect";
|
|
4159
4189
|
}
|
|
@@ -4169,7 +4199,7 @@ class xl extends A {
|
|
|
4169
4199
|
return null;
|
|
4170
4200
|
}
|
|
4171
4201
|
}
|
|
4172
|
-
class
|
|
4202
|
+
class D1 extends A {
|
|
4173
4203
|
constructor() {
|
|
4174
4204
|
super(...arguments), this.type = "circle";
|
|
4175
4205
|
}
|
|
@@ -4181,7 +4211,7 @@ class S1 extends A {
|
|
|
4181
4211
|
return null;
|
|
4182
4212
|
}
|
|
4183
4213
|
}
|
|
4184
|
-
class
|
|
4214
|
+
class L1 extends A {
|
|
4185
4215
|
constructor() {
|
|
4186
4216
|
super(...arguments), this.type = "ellipse";
|
|
4187
4217
|
}
|
|
@@ -4193,12 +4223,12 @@ class E1 extends A {
|
|
|
4193
4223
|
return null;
|
|
4194
4224
|
}
|
|
4195
4225
|
}
|
|
4196
|
-
class
|
|
4226
|
+
class k1 extends A {
|
|
4197
4227
|
constructor() {
|
|
4198
4228
|
super(...arguments), this.type = "line";
|
|
4199
4229
|
}
|
|
4200
4230
|
getPoints() {
|
|
4201
|
-
return [new
|
|
4231
|
+
return [new k(this.getAttribute("x1").getPixels("x"), this.getAttribute("y1").getPixels("y")), new k(this.getAttribute("x2").getPixels("x"), this.getAttribute("y2").getPixels("y"))];
|
|
4202
4232
|
}
|
|
4203
4233
|
path(e) {
|
|
4204
4234
|
var [{
|
|
@@ -4215,9 +4245,9 @@ class $1 extends A {
|
|
|
4215
4245
|
return [[e, r], [t, r]];
|
|
4216
4246
|
}
|
|
4217
4247
|
}
|
|
4218
|
-
class
|
|
4248
|
+
class $l extends A {
|
|
4219
4249
|
constructor(e, t, r) {
|
|
4220
|
-
super(e, t, r), this.type = "polyline", this.points = [], this.points =
|
|
4250
|
+
super(e, t, r), this.type = "polyline", this.points = [], this.points = k.parsePath(this.getAttribute("points").getString());
|
|
4221
4251
|
}
|
|
4222
4252
|
path(e) {
|
|
4223
4253
|
var {
|
|
@@ -4243,7 +4273,7 @@ class Tl extends A {
|
|
|
4243
4273
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4244
4274
|
}
|
|
4245
4275
|
}
|
|
4246
|
-
class
|
|
4276
|
+
class B1 extends $l {
|
|
4247
4277
|
constructor() {
|
|
4248
4278
|
super(...arguments), this.type = "polygon";
|
|
4249
4279
|
}
|
|
@@ -4255,12 +4285,12 @@ class w1 extends Tl {
|
|
|
4255
4285
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
|
4256
4286
|
}
|
|
4257
4287
|
}
|
|
4258
|
-
class
|
|
4288
|
+
class j1 extends I {
|
|
4259
4289
|
constructor() {
|
|
4260
4290
|
super(...arguments), this.type = "pattern";
|
|
4261
4291
|
}
|
|
4262
4292
|
createPattern(e, t, r) {
|
|
4263
|
-
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new
|
|
4293
|
+
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new Nt(this.document, null);
|
|
4264
4294
|
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;
|
|
4265
4295
|
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
|
4266
4296
|
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");
|
|
@@ -4271,7 +4301,7 @@ class C1 extends N {
|
|
|
4271
4301
|
return v;
|
|
4272
4302
|
}
|
|
4273
4303
|
}
|
|
4274
|
-
class
|
|
4304
|
+
class F1 extends I {
|
|
4275
4305
|
constructor() {
|
|
4276
4306
|
super(...arguments), this.type = "marker";
|
|
4277
4307
|
}
|
|
@@ -4282,19 +4312,19 @@ class A1 extends N {
|
|
|
4282
4312
|
y: n
|
|
4283
4313
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
|
4284
4314
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
|
4285
|
-
var u = new
|
|
4315
|
+
var u = new Nt(this.document, null);
|
|
4286
4316
|
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);
|
|
4287
4317
|
}
|
|
4288
4318
|
}
|
|
4289
4319
|
}
|
|
4290
|
-
class
|
|
4320
|
+
class U1 extends I {
|
|
4291
4321
|
constructor() {
|
|
4292
4322
|
super(...arguments), this.type = "defs";
|
|
4293
4323
|
}
|
|
4294
4324
|
render() {
|
|
4295
4325
|
}
|
|
4296
4326
|
}
|
|
4297
|
-
class
|
|
4327
|
+
class sn extends Ge {
|
|
4298
4328
|
constructor() {
|
|
4299
4329
|
super(...arguments), this.type = "g";
|
|
4300
4330
|
}
|
|
@@ -4305,7 +4335,7 @@ class an extends Ge {
|
|
|
4305
4335
|
}), t;
|
|
4306
4336
|
}
|
|
4307
4337
|
}
|
|
4308
|
-
class
|
|
4338
|
+
class wl extends I {
|
|
4309
4339
|
constructor(e, t, r) {
|
|
4310
4340
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4311
4341
|
var {
|
|
@@ -4335,14 +4365,14 @@ class Ol extends N {
|
|
|
4335
4365
|
} = this, {
|
|
4336
4366
|
MAX_VIRTUAL_PIXELS: u,
|
|
4337
4367
|
viewPort: l
|
|
4338
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
|
4368
|
+
} = s.screen, [h] = l.viewPorts, f = new El(s, null);
|
|
4339
4369
|
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);
|
|
4340
|
-
var c = new
|
|
4370
|
+
var c = new sn(s, null);
|
|
4341
4371
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
4342
|
-
var v = new
|
|
4372
|
+
var v = new Nt(s, null);
|
|
4343
4373
|
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];
|
|
4344
|
-
var
|
|
4345
|
-
return
|
|
4374
|
+
var g = s.createCanvas(h.width, h.height), d = g.getContext("2d");
|
|
4375
|
+
return d.fillStyle = o, v.render(d), d.createPattern(g, "no-repeat");
|
|
4346
4376
|
}
|
|
4347
4377
|
return o;
|
|
4348
4378
|
}
|
|
@@ -4359,7 +4389,7 @@ class Ol extends N {
|
|
|
4359
4389
|
return t;
|
|
4360
4390
|
}
|
|
4361
4391
|
}
|
|
4362
|
-
class
|
|
4392
|
+
class G1 extends wl {
|
|
4363
4393
|
constructor(e, t, r) {
|
|
4364
4394
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4365
4395
|
}
|
|
@@ -4372,7 +4402,7 @@ class R1 extends Ol {
|
|
|
4372
4402
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4373
4403
|
}
|
|
4374
4404
|
}
|
|
4375
|
-
class
|
|
4405
|
+
class z1 extends wl {
|
|
4376
4406
|
constructor(e, t, r) {
|
|
4377
4407
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4378
4408
|
}
|
|
@@ -4387,14 +4417,14 @@ class N1 extends Ol {
|
|
|
4387
4417
|
return e.createRadialGradient(s, u, h, n, o, l);
|
|
4388
4418
|
}
|
|
4389
4419
|
}
|
|
4390
|
-
class
|
|
4420
|
+
class H1 extends I {
|
|
4391
4421
|
constructor(e, t, r) {
|
|
4392
4422
|
super(e, t, r), this.type = "stop";
|
|
4393
4423
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
|
4394
4424
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
|
4395
4425
|
}
|
|
4396
4426
|
}
|
|
4397
|
-
class
|
|
4427
|
+
class on extends I {
|
|
4398
4428
|
constructor(e, t, r) {
|
|
4399
4429
|
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);
|
|
4400
4430
|
var i = this.getAttribute("values");
|
|
@@ -4455,7 +4485,7 @@ class nn extends N {
|
|
|
4455
4485
|
return r;
|
|
4456
4486
|
}
|
|
4457
4487
|
}
|
|
4458
|
-
class
|
|
4488
|
+
class Y1 extends on {
|
|
4459
4489
|
constructor() {
|
|
4460
4490
|
super(...arguments), this.type = "animateColor";
|
|
4461
4491
|
}
|
|
@@ -4464,7 +4494,7 @@ class M1 extends nn {
|
|
|
4464
4494
|
progress: e,
|
|
4465
4495
|
from: t,
|
|
4466
4496
|
to: r
|
|
4467
|
-
} = this.getProgress(), i = new
|
|
4497
|
+
} = this.getProgress(), i = new yi(t.getColor()), n = new yi(r.getColor());
|
|
4468
4498
|
if (i.ok && n.ok) {
|
|
4469
4499
|
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;
|
|
4470
4500
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
|
@@ -4472,7 +4502,7 @@ class M1 extends nn {
|
|
|
4472
4502
|
return this.getAttribute("from").getColor();
|
|
4473
4503
|
}
|
|
4474
4504
|
}
|
|
4475
|
-
class
|
|
4505
|
+
class X1 extends on {
|
|
4476
4506
|
constructor() {
|
|
4477
4507
|
super(...arguments), this.type = "animateTransform";
|
|
4478
4508
|
}
|
|
@@ -4481,14 +4511,14 @@ class _1 extends nn {
|
|
|
4481
4511
|
progress: e,
|
|
4482
4512
|
from: t,
|
|
4483
4513
|
to: r
|
|
4484
|
-
} = this.getProgress(), i =
|
|
4514
|
+
} = this.getProgress(), i = ne(t.getString()), n = ne(r.getString()), o = i.map((s, u) => {
|
|
4485
4515
|
var l = n[u];
|
|
4486
4516
|
return s + (l - s) * e;
|
|
4487
4517
|
}).join(" ");
|
|
4488
4518
|
return o;
|
|
4489
4519
|
}
|
|
4490
4520
|
}
|
|
4491
|
-
class
|
|
4521
|
+
class W1 extends I {
|
|
4492
4522
|
constructor(e, t, r) {
|
|
4493
4523
|
super(e, t, r), this.type = "font", this.glyphs = /* @__PURE__ */ Object.create(null), this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4494
4524
|
var {
|
|
@@ -4517,17 +4547,17 @@ class V1 extends N {
|
|
|
4517
4547
|
render() {
|
|
4518
4548
|
}
|
|
4519
4549
|
}
|
|
4520
|
-
class
|
|
4550
|
+
class q1 extends I {
|
|
4521
4551
|
constructor(e, t, r) {
|
|
4522
4552
|
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();
|
|
4523
4553
|
}
|
|
4524
4554
|
}
|
|
4525
|
-
class
|
|
4555
|
+
class Q1 extends A {
|
|
4526
4556
|
constructor() {
|
|
4527
4557
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4528
4558
|
}
|
|
4529
4559
|
}
|
|
4530
|
-
class
|
|
4560
|
+
class K1 extends Ce {
|
|
4531
4561
|
constructor() {
|
|
4532
4562
|
super(...arguments), this.type = "tref";
|
|
4533
4563
|
}
|
|
@@ -4541,7 +4571,7 @@ class L1 extends Ce {
|
|
|
4541
4571
|
return "";
|
|
4542
4572
|
}
|
|
4543
4573
|
}
|
|
4544
|
-
class
|
|
4574
|
+
class Z1 extends Ce {
|
|
4545
4575
|
constructor(e, t, r) {
|
|
4546
4576
|
super(e, t, r), this.type = "a";
|
|
4547
4577
|
var {
|
|
@@ -4564,7 +4594,7 @@ class B1 extends Ce {
|
|
|
4564
4594
|
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4565
4595
|
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4566
4596
|
} else if (this.children.length > 0) {
|
|
4567
|
-
var s = new
|
|
4597
|
+
var s = new sn(this.document, null);
|
|
4568
4598
|
s.children = this.children, s.parent = this, s.render(e);
|
|
4569
4599
|
}
|
|
4570
4600
|
}
|
|
@@ -4579,7 +4609,7 @@ class B1 extends Ce {
|
|
|
4579
4609
|
e.canvas.style.cursor = "pointer";
|
|
4580
4610
|
}
|
|
4581
4611
|
}
|
|
4582
|
-
function
|
|
4612
|
+
function Mo(a, e) {
|
|
4583
4613
|
var t = Object.keys(a);
|
|
4584
4614
|
if (Object.getOwnPropertySymbols) {
|
|
4585
4615
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -4589,18 +4619,18 @@ function Ro(a, e) {
|
|
|
4589
4619
|
}
|
|
4590
4620
|
return t;
|
|
4591
4621
|
}
|
|
4592
|
-
function
|
|
4622
|
+
function ir(a) {
|
|
4593
4623
|
for (var e = 1; e < arguments.length; e++) {
|
|
4594
4624
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4595
|
-
e % 2 ?
|
|
4596
|
-
|
|
4597
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
4625
|
+
e % 2 ? Mo(Object(t), !0).forEach(function(r) {
|
|
4626
|
+
an(a, r, t[r]);
|
|
4627
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Mo(Object(t)).forEach(function(r) {
|
|
4598
4628
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4599
4629
|
});
|
|
4600
4630
|
}
|
|
4601
4631
|
return a;
|
|
4602
4632
|
}
|
|
4603
|
-
class
|
|
4633
|
+
class J1 extends Ce {
|
|
4604
4634
|
constructor(e, t, r) {
|
|
4605
4635
|
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]]);
|
|
4606
4636
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4632,8 +4662,8 @@ class j1 extends Ce {
|
|
|
4632
4662
|
e && e.quadraticCurveTo(n[0], n[1], n[2], n[3]);
|
|
4633
4663
|
break;
|
|
4634
4664
|
case w.ARC: {
|
|
4635
|
-
var [o, s, u, l, h, f, c, v] = n,
|
|
4636
|
-
e && (e.translate(o, s), e.rotate(c), e.scale(
|
|
4665
|
+
var [o, s, u, l, h, f, c, v] = n, g = u > l ? u : l, d = u > l ? 1 : u / l, p = u > l ? l / u : 1;
|
|
4666
|
+
e && (e.translate(o, s), e.rotate(c), e.scale(d, p), e.arc(0, 0, g, h, h + f, !!(1 - v)), e.scale(1 / d, 1 / p), e.rotate(-c), e.translate(-o, -s));
|
|
4637
4667
|
break;
|
|
4638
4668
|
}
|
|
4639
4669
|
case w.CLOSE_PATH:
|
|
@@ -4664,23 +4694,23 @@ class j1 extends Ce {
|
|
|
4664
4694
|
findSegmentToFitChar(e, t, r, i, n, o, s, u, l) {
|
|
4665
4695
|
var h = o, f = this.measureText(e, u);
|
|
4666
4696
|
u === " " && t === "justify" && r < i && (f += (i - r) / n), l > -1 && (h += this.getLetterSpacingAt(l));
|
|
4667
|
-
var c = this.textHeight / 20, v = this.getEquidistantPointOnPath(h, c, 0),
|
|
4697
|
+
var c = this.textHeight / 20, v = this.getEquidistantPointOnPath(h, c, 0), g = this.getEquidistantPointOnPath(h + f, c, 0), d = {
|
|
4668
4698
|
p0: v,
|
|
4669
|
-
p1:
|
|
4670
|
-
}, p = v &&
|
|
4699
|
+
p1: g
|
|
4700
|
+
}, p = v && g ? Math.atan2(g.y - v.y, g.x - v.x) : 0;
|
|
4671
4701
|
if (s) {
|
|
4672
4702
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
|
4673
|
-
|
|
4703
|
+
d.p0 = ir(ir({}, v), {}, {
|
|
4674
4704
|
x: v.x + y,
|
|
4675
4705
|
y: v.y + x
|
|
4676
|
-
}),
|
|
4677
|
-
x:
|
|
4678
|
-
y:
|
|
4706
|
+
}), d.p1 = ir(ir({}, g), {}, {
|
|
4707
|
+
x: g.x + y,
|
|
4708
|
+
y: g.y + x
|
|
4679
4709
|
});
|
|
4680
4710
|
}
|
|
4681
4711
|
return h += f, {
|
|
4682
4712
|
offset: h,
|
|
4683
|
-
segment:
|
|
4713
|
+
segment: d,
|
|
4684
4714
|
rotation: p
|
|
4685
4715
|
};
|
|
4686
4716
|
}
|
|
@@ -4704,8 +4734,8 @@ class j1 extends Ce {
|
|
|
4704
4734
|
this.letterSpacingCache = f;
|
|
4705
4735
|
for (var v = 0; v < c; v++)
|
|
4706
4736
|
f.push(typeof n[v] != "undefined" ? n[v] : h);
|
|
4707
|
-
var
|
|
4708
|
-
this.textWidth =
|
|
4737
|
+
var g = f.reduce((T, $, E) => E === 0 ? 0 : T + $ || 0, 0), d = this.measureText(e), p = Math.max(d + g, 0);
|
|
4738
|
+
this.textWidth = d, this.textHeight = this.getFontSize(), this.glyphInfo = [];
|
|
4709
4739
|
var y = this.getPathLength(), x = this.getStyle("startOffset").getNumber(0) * y, b = 0;
|
|
4710
4740
|
(s === "middle" || s === "center") && (b = -p / 2), (s === "end" || s === "right") && (b = -p), b += x, r.forEach((T, $) => {
|
|
4711
4741
|
var {
|
|
@@ -4880,7 +4910,7 @@ class j1 extends Ce {
|
|
|
4880
4910
|
return 0;
|
|
4881
4911
|
}
|
|
4882
4912
|
getPointOnLine(e, t, r, i, n) {
|
|
4883
|
-
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t +
|
|
4913
|
+
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t + rt), l = Math.sqrt(e * e / (1 + u * u));
|
|
4884
4914
|
i < t && (l *= -1);
|
|
4885
4915
|
var h = u * l, f = null;
|
|
4886
4916
|
if (i === t)
|
|
@@ -4888,17 +4918,17 @@ class j1 extends Ce {
|
|
|
4888
4918
|
x: o,
|
|
4889
4919
|
y: s + h
|
|
4890
4920
|
};
|
|
4891
|
-
else if ((s - r) / (o - t +
|
|
4921
|
+
else if ((s - r) / (o - t + rt) === u)
|
|
4892
4922
|
f = {
|
|
4893
4923
|
x: o + l,
|
|
4894
4924
|
y: s + h
|
|
4895
4925
|
};
|
|
4896
4926
|
else {
|
|
4897
|
-
var c = 0, v = 0,
|
|
4898
|
-
if (
|
|
4927
|
+
var c = 0, v = 0, g = this.getLineLength(t, r, i, n);
|
|
4928
|
+
if (g < rt)
|
|
4899
4929
|
return null;
|
|
4900
|
-
var
|
|
4901
|
-
|
|
4930
|
+
var d = (o - t) * (i - t) + (s - r) * (n - r);
|
|
4931
|
+
d /= g * g, c = t + d * (i - t), v = r + d * (n - r);
|
|
4902
4932
|
var p = this.getLineLength(o, s, c, v), y = Math.sqrt(e * e - p * p);
|
|
4903
4933
|
l = Math.sqrt(y * y / (1 + u * u)), i < t && (l *= -1), h = u * l, f = {
|
|
4904
4934
|
x: c + l,
|
|
@@ -4951,14 +4981,14 @@ class j1 extends Ce {
|
|
|
4951
4981
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4952
4982
|
}
|
|
4953
4983
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4954
|
-
var h = u *
|
|
4984
|
+
var h = u * wo(e) + o * Co(e) + i * Ao(e) + t * Po(e), f = l * wo(e) + s * Co(e) + n * Ao(e) + r * Po(e);
|
|
4955
4985
|
return {
|
|
4956
4986
|
x: h,
|
|
4957
4987
|
y: f
|
|
4958
4988
|
};
|
|
4959
4989
|
}
|
|
4960
4990
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
|
4961
|
-
var u = o *
|
|
4991
|
+
var u = o * Ro(e) + i * No(e) + t * Io(e), l = s * Ro(e) + n * No(e) + r * Io(e);
|
|
4962
4992
|
return {
|
|
4963
4993
|
x: u,
|
|
4964
4994
|
y: l
|
|
@@ -5000,8 +5030,8 @@ class j1 extends Ce {
|
|
|
5000
5030
|
return this.equidistantCache.points[i] || null;
|
|
5001
5031
|
}
|
|
5002
5032
|
}
|
|
5003
|
-
var
|
|
5004
|
-
class
|
|
5033
|
+
var e2 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
5034
|
+
class t2 extends Ge {
|
|
5005
5035
|
constructor(e, t, r) {
|
|
5006
5036
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
5007
5037
|
var i = this.getHrefAttribute().getString();
|
|
@@ -5025,7 +5055,7 @@ class U1 extends Ge {
|
|
|
5025
5055
|
loadSvg(e) {
|
|
5026
5056
|
var t = this;
|
|
5027
5057
|
return xe(function* () {
|
|
5028
|
-
var r =
|
|
5058
|
+
var r = e2.exec(e);
|
|
5029
5059
|
if (r) {
|
|
5030
5060
|
var i = r[5];
|
|
5031
5061
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
|
@@ -5077,14 +5107,14 @@ class U1 extends Ge {
|
|
|
5077
5107
|
return new ce(e, t, e + r, t + i);
|
|
5078
5108
|
}
|
|
5079
5109
|
}
|
|
5080
|
-
class
|
|
5110
|
+
class r2 extends Ge {
|
|
5081
5111
|
constructor() {
|
|
5082
5112
|
super(...arguments), this.type = "symbol";
|
|
5083
5113
|
}
|
|
5084
5114
|
render(e) {
|
|
5085
5115
|
}
|
|
5086
5116
|
}
|
|
5087
|
-
class
|
|
5117
|
+
class a2 {
|
|
5088
5118
|
constructor(e) {
|
|
5089
5119
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
|
5090
5120
|
}
|
|
@@ -5106,10 +5136,10 @@ class z1 {
|
|
|
5106
5136
|
})();
|
|
5107
5137
|
}
|
|
5108
5138
|
}
|
|
5109
|
-
class
|
|
5139
|
+
class Cl extends I {
|
|
5110
5140
|
constructor(e, t, r) {
|
|
5111
5141
|
super(e, t, r), this.type = "style";
|
|
5112
|
-
var i =
|
|
5142
|
+
var i = lt(
|
|
5113
5143
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
|
5114
5144
|
// remove imports
|
|
5115
5145
|
), n = i.split("}");
|
|
@@ -5124,12 +5154,12 @@ class Sl extends N {
|
|
|
5124
5154
|
if (h.forEach((p) => {
|
|
5125
5155
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
|
5126
5156
|
x && b && (v[x] = new S(e, x, b));
|
|
5127
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
|
5128
|
-
var
|
|
5129
|
-
|
|
5157
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = m1(c), c === "@font-face") {
|
|
5158
|
+
var g = v["font-family"].getString().replace(/"|'/g, ""), d = v.src.getString().split(",");
|
|
5159
|
+
d.forEach((p) => {
|
|
5130
5160
|
if (p.indexOf('format("svg")') > 0) {
|
|
5131
|
-
var y =
|
|
5132
|
-
y && new
|
|
5161
|
+
var y = ml(p);
|
|
5162
|
+
y && new a2(e).load(g, y);
|
|
5133
5163
|
}
|
|
5134
5164
|
});
|
|
5135
5165
|
}
|
|
@@ -5139,8 +5169,8 @@ class Sl extends N {
|
|
|
5139
5169
|
});
|
|
5140
5170
|
}
|
|
5141
5171
|
}
|
|
5142
|
-
|
|
5143
|
-
class
|
|
5172
|
+
Cl.parseExternalUrl = ml;
|
|
5173
|
+
class i2 extends Ge {
|
|
5144
5174
|
constructor() {
|
|
5145
5175
|
super(...arguments), this.type = "use";
|
|
5146
5176
|
}
|
|
@@ -5162,7 +5192,7 @@ class H1 extends Ge {
|
|
|
5162
5192
|
} = this;
|
|
5163
5193
|
if (r) {
|
|
5164
5194
|
var i = r;
|
|
5165
|
-
if (r.type === "symbol" && (i = new
|
|
5195
|
+
if (r.type === "symbol" && (i = new Nt(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") {
|
|
5166
5196
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
|
5167
5197
|
n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
|
|
5168
5198
|
}
|
|
@@ -5181,16 +5211,16 @@ class H1 extends Ge {
|
|
|
5181
5211
|
document: e,
|
|
5182
5212
|
element: t
|
|
5183
5213
|
} = this;
|
|
5184
|
-
return
|
|
5214
|
+
return Be.fromElement(e, t);
|
|
5185
5215
|
}
|
|
5186
5216
|
get element() {
|
|
5187
5217
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
5188
5218
|
}
|
|
5189
5219
|
}
|
|
5190
|
-
function
|
|
5220
|
+
function nr(a, e, t, r, i, n) {
|
|
5191
5221
|
return a[t * r * 4 + e * 4 + n];
|
|
5192
5222
|
}
|
|
5193
|
-
function
|
|
5223
|
+
function sr(a, e, t, r, i, n, o) {
|
|
5194
5224
|
a[t * r * 4 + e * 4 + n] = o;
|
|
5195
5225
|
}
|
|
5196
5226
|
function F(a, e, t) {
|
|
@@ -5200,10 +5230,10 @@ function F(a, e, t) {
|
|
|
5200
5230
|
function me(a, e, t, r) {
|
|
5201
5231
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5202
5232
|
}
|
|
5203
|
-
class
|
|
5233
|
+
class Al extends I {
|
|
5204
5234
|
constructor(e, t, r) {
|
|
5205
5235
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5206
|
-
var i =
|
|
5236
|
+
var i = ne(this.getAttribute("values").getString());
|
|
5207
5237
|
switch (this.getAttribute("type").getString("matrix")) {
|
|
5208
5238
|
case "saturate": {
|
|
5209
5239
|
var n = i[0];
|
|
@@ -5227,13 +5257,13 @@ class El extends N {
|
|
|
5227
5257
|
matrix: s
|
|
5228
5258
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
|
5229
5259
|
for (var h = 0; h < i; h++) {
|
|
5230
|
-
var f =
|
|
5231
|
-
o && (
|
|
5260
|
+
var f = nr(u.data, h, l, i, n, 0), c = nr(u.data, h, l, i, n, 1), v = nr(u.data, h, l, i, n, 2), g = nr(u.data, h, l, i, n, 3), d = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, g) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, g) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, g) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, g) + F(s, 19, 1);
|
|
5261
|
+
o && (d = 0, p = 0, y = 0, x *= g / 255), sr(u.data, h, l, i, n, 0, d), sr(u.data, h, l, i, n, 1, p), sr(u.data, h, l, i, n, 2, y), sr(u.data, h, l, i, n, 3, x);
|
|
5232
5262
|
}
|
|
5233
5263
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5234
5264
|
}
|
|
5235
5265
|
}
|
|
5236
|
-
class
|
|
5266
|
+
class kr extends I {
|
|
5237
5267
|
constructor() {
|
|
5238
5268
|
super(...arguments), this.type = "mask";
|
|
5239
5269
|
}
|
|
@@ -5243,12 +5273,12 @@ class Dr extends N {
|
|
|
5243
5273
|
} = this, i = this.getAttribute("x").getPixels("x"), n = this.getAttribute("y").getPixels("y"), o = this.getStyle("width").getPixels("x"), s = this.getStyle("height").getPixels("y");
|
|
5244
5274
|
if (!o && !s) {
|
|
5245
5275
|
var u = new ce();
|
|
5246
|
-
this.children.forEach((
|
|
5247
|
-
u.addBoundingBox(
|
|
5276
|
+
this.children.forEach((g) => {
|
|
5277
|
+
u.addBoundingBox(g.getBoundingBox(e));
|
|
5248
5278
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5249
5279
|
}
|
|
5250
|
-
var l = this.removeStyles(t,
|
|
5251
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
|
5280
|
+
var l = this.removeStyles(t, kr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5281
|
+
r.screen.setDefaults(f), this.renderChildren(f), new Al(r, {
|
|
5252
5282
|
nodeType: 1,
|
|
5253
5283
|
childNodes: [],
|
|
5254
5284
|
attributes: [{
|
|
@@ -5265,10 +5295,10 @@ class Dr extends N {
|
|
|
5265
5295
|
render(e) {
|
|
5266
5296
|
}
|
|
5267
5297
|
}
|
|
5268
|
-
|
|
5269
|
-
var
|
|
5298
|
+
kr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5299
|
+
var _o = () => {
|
|
5270
5300
|
};
|
|
5271
|
-
class
|
|
5301
|
+
class n2 extends I {
|
|
5272
5302
|
constructor() {
|
|
5273
5303
|
super(...arguments), this.type = "clipPath";
|
|
5274
5304
|
}
|
|
@@ -5279,17 +5309,17 @@ class Y1 extends N {
|
|
|
5279
5309
|
beginPath: i,
|
|
5280
5310
|
closePath: n
|
|
5281
5311
|
} = e;
|
|
5282
|
-
r && (r.beginPath =
|
|
5312
|
+
r && (r.beginPath = _o, r.closePath = _o), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5283
5313
|
if (typeof o.path != "undefined") {
|
|
5284
5314
|
var s = typeof o.elementTransform != "undefined" ? o.elementTransform() : null;
|
|
5285
|
-
s || (s =
|
|
5315
|
+
s || (s = Be.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
5286
5316
|
}
|
|
5287
5317
|
}), Reflect.apply(n, e, []), e.clip(), r && (r.beginPath = i, r.closePath = n);
|
|
5288
5318
|
}
|
|
5289
5319
|
render(e) {
|
|
5290
5320
|
}
|
|
5291
5321
|
}
|
|
5292
|
-
class
|
|
5322
|
+
class Br extends I {
|
|
5293
5323
|
constructor() {
|
|
5294
5324
|
super(...arguments), this.type = "filter";
|
|
5295
5325
|
}
|
|
@@ -5306,39 +5336,39 @@ class kr extends N {
|
|
|
5306
5336
|
});
|
|
5307
5337
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
|
5308
5338
|
if (!(h < 1 || f < 1)) {
|
|
5309
|
-
var c = Math.floor(n.x), v = Math.floor(n.y),
|
|
5339
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), g = this.removeStyles(t, Br.ignoreStyles), d = r.createCanvas(h, f), p = d.getContext("2d");
|
|
5310
5340
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
|
5311
5341
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
|
5312
|
-
}), e.drawImage(
|
|
5342
|
+
}), e.drawImage(d, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, g);
|
|
5313
5343
|
}
|
|
5314
5344
|
}
|
|
5315
5345
|
}
|
|
5316
5346
|
render(e) {
|
|
5317
5347
|
}
|
|
5318
5348
|
}
|
|
5319
|
-
|
|
5320
|
-
class
|
|
5349
|
+
Br.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5350
|
+
class s2 extends I {
|
|
5321
5351
|
constructor(e, t, r) {
|
|
5322
5352
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
5323
5353
|
}
|
|
5324
5354
|
apply(e, t, r, i, n) {
|
|
5325
5355
|
}
|
|
5326
5356
|
}
|
|
5327
|
-
class
|
|
5357
|
+
class o2 extends I {
|
|
5328
5358
|
constructor() {
|
|
5329
5359
|
super(...arguments), this.type = "feMorphology";
|
|
5330
5360
|
}
|
|
5331
5361
|
apply(e, t, r, i, n) {
|
|
5332
5362
|
}
|
|
5333
5363
|
}
|
|
5334
|
-
class
|
|
5364
|
+
class u2 extends I {
|
|
5335
5365
|
constructor() {
|
|
5336
5366
|
super(...arguments), this.type = "feComposite";
|
|
5337
5367
|
}
|
|
5338
5368
|
apply(e, t, r, i, n) {
|
|
5339
5369
|
}
|
|
5340
5370
|
}
|
|
5341
|
-
class
|
|
5371
|
+
class l2 extends I {
|
|
5342
5372
|
constructor(e, t, r) {
|
|
5343
5373
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
|
5344
5374
|
}
|
|
@@ -5347,63 +5377,63 @@ class Q1 extends N {
|
|
|
5347
5377
|
document: o,
|
|
5348
5378
|
blurRadius: s
|
|
5349
5379
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5350
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5380
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), r1(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5351
5381
|
}
|
|
5352
5382
|
}
|
|
5353
|
-
class
|
|
5383
|
+
class h2 extends I {
|
|
5354
5384
|
constructor() {
|
|
5355
5385
|
super(...arguments), this.type = "title";
|
|
5356
5386
|
}
|
|
5357
5387
|
}
|
|
5358
|
-
class
|
|
5388
|
+
class v2 extends I {
|
|
5359
5389
|
constructor() {
|
|
5360
5390
|
super(...arguments), this.type = "desc";
|
|
5361
5391
|
}
|
|
5362
5392
|
}
|
|
5363
|
-
var
|
|
5364
|
-
svg:
|
|
5365
|
-
rect:
|
|
5366
|
-
circle:
|
|
5367
|
-
ellipse:
|
|
5368
|
-
line:
|
|
5369
|
-
polyline:
|
|
5370
|
-
polygon:
|
|
5393
|
+
var f2 = {
|
|
5394
|
+
svg: Nt,
|
|
5395
|
+
rect: El,
|
|
5396
|
+
circle: D1,
|
|
5397
|
+
ellipse: L1,
|
|
5398
|
+
line: k1,
|
|
5399
|
+
polyline: $l,
|
|
5400
|
+
polygon: B1,
|
|
5371
5401
|
path: A,
|
|
5372
|
-
pattern:
|
|
5373
|
-
marker:
|
|
5374
|
-
defs:
|
|
5375
|
-
linearGradient:
|
|
5376
|
-
radialGradient:
|
|
5377
|
-
stop:
|
|
5378
|
-
animate:
|
|
5379
|
-
animateColor:
|
|
5380
|
-
animateTransform:
|
|
5381
|
-
font:
|
|
5382
|
-
"font-face":
|
|
5383
|
-
"missing-glyph":
|
|
5384
|
-
glyph:
|
|
5402
|
+
pattern: j1,
|
|
5403
|
+
marker: F1,
|
|
5404
|
+
defs: U1,
|
|
5405
|
+
linearGradient: G1,
|
|
5406
|
+
radialGradient: z1,
|
|
5407
|
+
stop: H1,
|
|
5408
|
+
animate: on,
|
|
5409
|
+
animateColor: Y1,
|
|
5410
|
+
animateTransform: X1,
|
|
5411
|
+
font: W1,
|
|
5412
|
+
"font-face": q1,
|
|
5413
|
+
"missing-glyph": Q1,
|
|
5414
|
+
glyph: Sl,
|
|
5385
5415
|
text: Ce,
|
|
5386
|
-
tspan:
|
|
5387
|
-
tref:
|
|
5388
|
-
a:
|
|
5389
|
-
textPath:
|
|
5390
|
-
image:
|
|
5391
|
-
g:
|
|
5392
|
-
symbol:
|
|
5393
|
-
style:
|
|
5394
|
-
use:
|
|
5395
|
-
mask:
|
|
5396
|
-
clipPath:
|
|
5397
|
-
filter:
|
|
5398
|
-
feDropShadow:
|
|
5399
|
-
feMorphology:
|
|
5400
|
-
feComposite:
|
|
5401
|
-
feColorMatrix:
|
|
5402
|
-
feGaussianBlur:
|
|
5403
|
-
title:
|
|
5404
|
-
desc:
|
|
5416
|
+
tspan: Lr,
|
|
5417
|
+
tref: K1,
|
|
5418
|
+
a: Z1,
|
|
5419
|
+
textPath: J1,
|
|
5420
|
+
image: t2,
|
|
5421
|
+
g: sn,
|
|
5422
|
+
symbol: r2,
|
|
5423
|
+
style: Cl,
|
|
5424
|
+
use: i2,
|
|
5425
|
+
mask: kr,
|
|
5426
|
+
clipPath: n2,
|
|
5427
|
+
filter: Br,
|
|
5428
|
+
feDropShadow: s2,
|
|
5429
|
+
feMorphology: o2,
|
|
5430
|
+
feComposite: u2,
|
|
5431
|
+
feColorMatrix: Al,
|
|
5432
|
+
feGaussianBlur: l2,
|
|
5433
|
+
title: h2,
|
|
5434
|
+
desc: v2
|
|
5405
5435
|
};
|
|
5406
|
-
function
|
|
5436
|
+
function Vo(a, e) {
|
|
5407
5437
|
var t = Object.keys(a);
|
|
5408
5438
|
if (Object.getOwnPropertySymbols) {
|
|
5409
5439
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5413,26 +5443,26 @@ function Io(a, e) {
|
|
|
5413
5443
|
}
|
|
5414
5444
|
return t;
|
|
5415
5445
|
}
|
|
5416
|
-
function
|
|
5446
|
+
function c2(a) {
|
|
5417
5447
|
for (var e = 1; e < arguments.length; e++) {
|
|
5418
5448
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5419
|
-
e % 2 ?
|
|
5420
|
-
|
|
5421
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5449
|
+
e % 2 ? Vo(Object(t), !0).forEach(function(r) {
|
|
5450
|
+
an(a, r, t[r]);
|
|
5451
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Vo(Object(t)).forEach(function(r) {
|
|
5422
5452
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5423
5453
|
});
|
|
5424
5454
|
}
|
|
5425
5455
|
return a;
|
|
5426
5456
|
}
|
|
5427
|
-
function
|
|
5457
|
+
function g2(a, e) {
|
|
5428
5458
|
var t = document.createElement("canvas");
|
|
5429
5459
|
return t.width = a, t.height = e, t;
|
|
5430
5460
|
}
|
|
5431
|
-
function
|
|
5432
|
-
return
|
|
5461
|
+
function d2(a) {
|
|
5462
|
+
return Ti.apply(this, arguments);
|
|
5433
5463
|
}
|
|
5434
|
-
function
|
|
5435
|
-
return
|
|
5464
|
+
function Ti() {
|
|
5465
|
+
return Ti = xe(function* (a) {
|
|
5436
5466
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
|
5437
5467
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
|
5438
5468
|
t.onload = () => {
|
|
@@ -5441,7 +5471,7 @@ function xi() {
|
|
|
5441
5471
|
i(l);
|
|
5442
5472
|
}, t.src = a;
|
|
5443
5473
|
});
|
|
5444
|
-
}),
|
|
5474
|
+
}), Ti.apply(this, arguments);
|
|
5445
5475
|
}
|
|
5446
5476
|
class $e {
|
|
5447
5477
|
constructor(e) {
|
|
@@ -5499,21 +5529,21 @@ class $e {
|
|
|
5499
5529
|
}
|
|
5500
5530
|
createElement(e) {
|
|
5501
5531
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
|
5502
|
-
return typeof r != "undefined" ? new r(this, e) : new
|
|
5532
|
+
return typeof r != "undefined" ? new r(this, e) : new R1(this, e);
|
|
5503
5533
|
}
|
|
5504
5534
|
createTextNode(e) {
|
|
5505
|
-
return new
|
|
5535
|
+
return new V1(this, e);
|
|
5506
5536
|
}
|
|
5507
5537
|
setViewBox(e) {
|
|
5508
|
-
this.screen.setViewBox(
|
|
5538
|
+
this.screen.setViewBox(c2({
|
|
5509
5539
|
document: this
|
|
5510
5540
|
}, e));
|
|
5511
5541
|
}
|
|
5512
5542
|
}
|
|
5513
|
-
$e.createCanvas =
|
|
5514
|
-
$e.createImage =
|
|
5515
|
-
$e.elementTypes =
|
|
5516
|
-
function
|
|
5543
|
+
$e.createCanvas = g2;
|
|
5544
|
+
$e.createImage = d2;
|
|
5545
|
+
$e.elementTypes = f2;
|
|
5546
|
+
function Do(a, e) {
|
|
5517
5547
|
var t = Object.keys(a);
|
|
5518
5548
|
if (Object.getOwnPropertySymbols) {
|
|
5519
5549
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5523,18 +5553,18 @@ function Mo(a, e) {
|
|
|
5523
5553
|
}
|
|
5524
5554
|
return t;
|
|
5525
5555
|
}
|
|
5526
|
-
function
|
|
5556
|
+
function De(a) {
|
|
5527
5557
|
for (var e = 1; e < arguments.length; e++) {
|
|
5528
5558
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5529
|
-
e % 2 ?
|
|
5530
|
-
|
|
5531
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5559
|
+
e % 2 ? Do(Object(t), !0).forEach(function(r) {
|
|
5560
|
+
an(a, r, t[r]);
|
|
5561
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Do(Object(t)).forEach(function(r) {
|
|
5532
5562
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5533
5563
|
});
|
|
5534
5564
|
}
|
|
5535
5565
|
return a;
|
|
5536
5566
|
}
|
|
5537
|
-
class
|
|
5567
|
+
class mt {
|
|
5538
5568
|
/**
|
|
5539
5569
|
* Main constructor.
|
|
5540
5570
|
* @param ctx - Rendering context.
|
|
@@ -5543,7 +5573,7 @@ class bt {
|
|
|
5543
5573
|
*/
|
|
5544
5574
|
constructor(e, t) {
|
|
5545
5575
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5546
|
-
this.parser = new
|
|
5576
|
+
this.parser = new za(r), this.screen = new Dr(e, r), this.options = r;
|
|
5547
5577
|
var i = new $e(this, r), n = i.createDocumentElement(t);
|
|
5548
5578
|
this.document = i, this.documentElement = n;
|
|
5549
5579
|
}
|
|
@@ -5557,8 +5587,8 @@ class bt {
|
|
|
5557
5587
|
static from(e, t) {
|
|
5558
5588
|
var r = arguments;
|
|
5559
5589
|
return xe(function* () {
|
|
5560
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5561
|
-
return new
|
|
5590
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new za(i), o = yield n.parse(t);
|
|
5591
|
+
return new mt(e, o, i);
|
|
5562
5592
|
})();
|
|
5563
5593
|
}
|
|
5564
5594
|
/**
|
|
@@ -5569,8 +5599,8 @@ class bt {
|
|
|
5569
5599
|
* @returns Canvg instance.
|
|
5570
5600
|
*/
|
|
5571
5601
|
static fromString(e, t) {
|
|
5572
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5573
|
-
return new
|
|
5602
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new za(r), n = i.parseFromString(t);
|
|
5603
|
+
return new mt(e, n, r);
|
|
5574
5604
|
}
|
|
5575
5605
|
/**
|
|
5576
5606
|
* Create new Canvg instance with inherited options.
|
|
@@ -5581,7 +5611,7 @@ class bt {
|
|
|
5581
5611
|
*/
|
|
5582
5612
|
fork(e, t) {
|
|
5583
5613
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5584
|
-
return
|
|
5614
|
+
return mt.from(e, t, De(De({}, this.options), r));
|
|
5585
5615
|
}
|
|
5586
5616
|
/**
|
|
5587
5617
|
* Create new Canvg instance with inherited options.
|
|
@@ -5592,7 +5622,7 @@ class bt {
|
|
|
5592
5622
|
*/
|
|
5593
5623
|
forkString(e, t) {
|
|
5594
5624
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5595
|
-
return
|
|
5625
|
+
return mt.fromString(e, t, De(De({}, this.options), r));
|
|
5596
5626
|
}
|
|
5597
5627
|
/**
|
|
5598
5628
|
* Document is ready promise.
|
|
@@ -5616,7 +5646,7 @@ class bt {
|
|
|
5616
5646
|
var e = arguments, t = this;
|
|
5617
5647
|
return xe(function* () {
|
|
5618
5648
|
var r = e.length > 0 && e[0] !== void 0 ? e[0] : {};
|
|
5619
|
-
t.start(
|
|
5649
|
+
t.start(De({
|
|
5620
5650
|
enableRedraw: !0,
|
|
5621
5651
|
ignoreAnimation: !0,
|
|
5622
5652
|
ignoreMouse: !0
|
|
@@ -5633,7 +5663,7 @@ class bt {
|
|
|
5633
5663
|
screen: r,
|
|
5634
5664
|
options: i
|
|
5635
5665
|
} = this;
|
|
5636
|
-
r.start(t,
|
|
5666
|
+
r.start(t, De(De({
|
|
5637
5667
|
enableRedraw: !0
|
|
5638
5668
|
}, i), e));
|
|
5639
5669
|
}
|
|
@@ -5655,90 +5685,90 @@ class bt {
|
|
|
5655
5685
|
}
|
|
5656
5686
|
}
|
|
5657
5687
|
export {
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5688
|
+
Z1 as AElement,
|
|
5689
|
+
Y1 as AnimateColorElement,
|
|
5690
|
+
on as AnimateElement,
|
|
5691
|
+
X1 as AnimateTransformElement,
|
|
5662
5692
|
ce as BoundingBox,
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5693
|
+
wo as CB1,
|
|
5694
|
+
Co as CB2,
|
|
5695
|
+
Ao as CB3,
|
|
5696
|
+
Po as CB4,
|
|
5697
|
+
mt as Canvg,
|
|
5698
|
+
D1 as CircleElement,
|
|
5699
|
+
n2 as ClipPathElement,
|
|
5700
|
+
U1 as DefsElement,
|
|
5701
|
+
v2 as DescElement,
|
|
5672
5702
|
$e as Document,
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5703
|
+
I as Element,
|
|
5704
|
+
L1 as EllipseElement,
|
|
5705
|
+
Al as FeColorMatrixElement,
|
|
5706
|
+
u2 as FeCompositeElement,
|
|
5707
|
+
s2 as FeDropShadowElement,
|
|
5708
|
+
l2 as FeGaussianBlurElement,
|
|
5709
|
+
o2 as FeMorphologyElement,
|
|
5710
|
+
Br as FilterElement,
|
|
5681
5711
|
Z as Font,
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5712
|
+
W1 as FontElement,
|
|
5713
|
+
q1 as FontFaceElement,
|
|
5714
|
+
sn as GElement,
|
|
5715
|
+
Sl as GlyphElement,
|
|
5716
|
+
wl as GradientElement,
|
|
5717
|
+
t2 as ImageElement,
|
|
5718
|
+
k1 as LineElement,
|
|
5719
|
+
G1 as LinearGradientElement,
|
|
5720
|
+
F1 as MarkerElement,
|
|
5721
|
+
kr as MaskElement,
|
|
5722
|
+
Tl as Matrix,
|
|
5723
|
+
Q1 as MissingGlyphElement,
|
|
5724
|
+
x1 as Mouse,
|
|
5725
|
+
rt as PSEUDO_ZERO,
|
|
5726
|
+
za as Parser,
|
|
5697
5727
|
A as PathElement,
|
|
5698
5728
|
w as PathParser,
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5729
|
+
j1 as PatternElement,
|
|
5730
|
+
k as Point,
|
|
5731
|
+
B1 as PolygonElement,
|
|
5732
|
+
$l as PolylineElement,
|
|
5703
5733
|
S as Property,
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5734
|
+
Ro as QB1,
|
|
5735
|
+
No as QB2,
|
|
5736
|
+
Io as QB3,
|
|
5737
|
+
z1 as RadialGradientElement,
|
|
5738
|
+
El as RectElement,
|
|
5709
5739
|
Ge as RenderedElement,
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5740
|
+
E1 as Rotate,
|
|
5741
|
+
Nt as SVGElement,
|
|
5742
|
+
a2 as SVGFontLoader,
|
|
5743
|
+
$1 as Scale,
|
|
5744
|
+
Dr as Screen,
|
|
5745
|
+
Ol as Skew,
|
|
5746
|
+
w1 as SkewX,
|
|
5747
|
+
C1 as SkewY,
|
|
5748
|
+
H1 as StopElement,
|
|
5749
|
+
Cl as StyleElement,
|
|
5750
|
+
r2 as SymbolElement,
|
|
5751
|
+
K1 as TRefElement,
|
|
5752
|
+
Lr as TSpanElement,
|
|
5723
5753
|
Ce as TextElement,
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5754
|
+
J1 as TextPathElement,
|
|
5755
|
+
h2 as TitleElement,
|
|
5756
|
+
Be as Transform,
|
|
5757
|
+
S1 as Translate,
|
|
5758
|
+
R1 as UnknownElement,
|
|
5759
|
+
i2 as UseElement,
|
|
5760
|
+
b1 as ViewPort,
|
|
5761
|
+
lt as compressSpaces,
|
|
5762
|
+
mt as default,
|
|
5763
|
+
m1 as getSelectorSpecificity,
|
|
5764
|
+
l1 as normalizeAttributeName,
|
|
5765
|
+
h1 as normalizeColor,
|
|
5766
|
+
ml as parseExternalUrl,
|
|
5767
|
+
y2 as presets,
|
|
5768
|
+
ne as toNumbers,
|
|
5769
|
+
s1 as trimLeft,
|
|
5770
|
+
o1 as trimRight,
|
|
5771
|
+
Eo as vectorMagnitude,
|
|
5772
|
+
$o as vectorsAngle,
|
|
5773
|
+
xi as vectorsRatio
|
|
5744
5774
|
};
|