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