@opensystemslab/map 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +114 -100
- package/dist/{html2canvas.esm-DbilGY6A.mjs → html2canvas.esm-CKxSAI8P.mjs} +2 -2
- package/dist/{index-1HbxZ3C1.mjs → index-CXqLab25.mjs} +8957 -8902
- package/dist/{index.es-BF5JbvAz.mjs → index.es-Cd2avOFl.mjs} +1328 -1309
- package/dist/purify.es-ggP5g4xx.mjs +480 -0
- package/package.json +8 -3
- package/dist/purify.es-D6iZHRnd.mjs +0 -471
@@ -1,271 +1,266 @@
|
|
1
|
-
import { c as
|
2
|
-
var
|
3
|
-
return a && a.Math
|
4
|
-
},
|
1
|
+
import { c as Ke, _ as Ua, g as Po } from "./index-CXqLab25.mjs";
|
2
|
+
var vt = function(a) {
|
3
|
+
return a && a.Math === Math && a;
|
4
|
+
}, D = (
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
6
|
-
|
7
|
-
|
6
|
+
vt(typeof globalThis == "object" && globalThis) || vt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
7
|
+
vt(typeof self == "object" && self) || vt(typeof Ke == "object" && Ke) || vt(typeof Ke == "object" && Ke) || // eslint-disable-next-line no-new-func -- fallback
|
8
8
|
/* @__PURE__ */ function() {
|
9
9
|
return this;
|
10
10
|
}() || Function("return this")()
|
11
|
-
),
|
11
|
+
), Et = {}, k = function(a) {
|
12
12
|
try {
|
13
13
|
return !!a();
|
14
14
|
} catch {
|
15
15
|
return !0;
|
16
16
|
}
|
17
|
-
},
|
17
|
+
}, xl = k, le = !xl(function() {
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
19
19
|
return 7;
|
20
|
-
} })[1]
|
21
|
-
}),
|
20
|
+
} })[1] !== 7;
|
21
|
+
}), Tl = k, pr = !Tl(function() {
|
22
22
|
var a = (function() {
|
23
23
|
}).bind();
|
24
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
25
|
-
}),
|
26
|
-
return
|
27
|
-
},
|
28
|
-
|
29
|
-
var t =
|
25
|
+
}), Ol = pr, Ft = Function.prototype.call, Y = Ol ? Ft.bind(Ft) : function() {
|
26
|
+
return Ft.apply(Ft, arguments);
|
27
|
+
}, Ro = {}, No = {}.propertyIsEnumerable, Io = Object.getOwnPropertyDescriptor, Sl = Io && !No.call({ 1: 2 }, 1);
|
28
|
+
Ro.f = Sl ? function(e) {
|
29
|
+
var t = Io(this, e);
|
30
30
|
return !!t && t.enumerable;
|
31
|
-
} :
|
32
|
-
var
|
31
|
+
} : No;
|
32
|
+
var bi = 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
|
+
}, Mo = pr, _o = Function.prototype, Ga = _o.call, El = Mo && _o.bind.bind(Ga, Ga), L = Mo ? El : function(a) {
|
40
40
|
return function() {
|
41
|
-
return
|
41
|
+
return Ga.apply(a, arguments);
|
42
42
|
};
|
43
|
-
},
|
44
|
-
return
|
45
|
-
},
|
46
|
-
return !
|
43
|
+
}, Vo = L, $l = Vo({}.toString), wl = Vo("".slice), Be = function(a) {
|
44
|
+
return wl($l(a), 8, -1);
|
45
|
+
}, Cl = L, Al = k, Pl = Be, Wr = Object, Rl = Cl("".split), Do = Al(function() {
|
46
|
+
return !Wr("z").propertyIsEnumerable(0);
|
47
47
|
}) ? function(a) {
|
48
|
-
return
|
49
|
-
} :
|
48
|
+
return Pl(a) === "String" ? Rl(a, "") : Wr(a);
|
49
|
+
} : Wr, je = function(a) {
|
50
50
|
return a == null;
|
51
|
-
},
|
52
|
-
if (
|
53
|
-
throw
|
51
|
+
}, Nl = je, Il = TypeError, he = function(a) {
|
52
|
+
if (Nl(a))
|
53
|
+
throw new Il("Can't call method on " + a);
|
54
54
|
return a;
|
55
|
-
},
|
56
|
-
return
|
57
|
-
},
|
58
|
-
|
59
|
-
IS_HTMLDDA: Gl
|
60
|
-
}, zo = Uo, Hl = zo.all, D = zo.IS_HTMLDDA ? function(a) {
|
61
|
-
return typeof a == "function" || a === Hl;
|
55
|
+
}, Ml = Do, _l = he, $t = function(a) {
|
56
|
+
return Ml(_l(a));
|
57
|
+
}, qr = typeof document == "object" && document.all, B = typeof qr > "u" && qr !== void 0 ? function(a) {
|
58
|
+
return typeof a == "function" || a === qr;
|
62
59
|
} : function(a) {
|
63
60
|
return typeof a == "function";
|
64
|
-
},
|
65
|
-
return typeof a == "object" ? a !== null :
|
66
|
-
}
|
67
|
-
return
|
68
|
-
},
|
69
|
-
return
|
70
|
-
},
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
!Symbol.sham && On && On < 41;
|
79
|
-
}), Kl = Yo, Xo = Kl && !Symbol.sham && typeof Symbol.iterator == "symbol", Zl = Ue, Jl = D, eh = Or, th = Xo, rh = Object, Wo = th ? function(a) {
|
61
|
+
}, Vl = B, ve = function(a) {
|
62
|
+
return typeof a == "object" ? a !== null : Vl(a);
|
63
|
+
}, Qr = D, Dl = B, kl = function(a) {
|
64
|
+
return Dl(a) ? a : void 0;
|
65
|
+
}, Fe = function(a, e) {
|
66
|
+
return arguments.length < 2 ? kl(Qr[a]) : Qr[a] && Qr[a][e];
|
67
|
+
}, Ll = L, yr = Ll({}.isPrototypeOf), mr = typeof navigator < "u" && String(navigator.userAgent) || "", ko = D, Kr = mr, cn = ko.process, gn = ko.Deno, dn = cn && cn.versions || gn && gn.version, pn = dn && dn.v8, ue, hr;
|
68
|
+
pn && (ue = pn.split("."), hr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
69
|
+
!hr && Kr && (ue = Kr.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = Kr.match(/Chrome\/(\d+)/), ue && (hr = +ue[1])));
|
70
|
+
var xi = hr, yn = xi, Bl = k, jl = D, Fl = jl.String, Lo = !!Object.getOwnPropertySymbols && !Bl(function() {
|
71
|
+
var a = Symbol("symbol detection");
|
72
|
+
return !Fl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
73
|
+
!Symbol.sham && yn && yn < 41;
|
74
|
+
}), Ul = Lo, Bo = Ul && !Symbol.sham && typeof Symbol.iterator == "symbol", Gl = Fe, zl = B, Hl = yr, Yl = Bo, Xl = Object, jo = Yl ? function(a) {
|
80
75
|
return typeof a == "symbol";
|
81
76
|
} : function(a) {
|
82
|
-
var e =
|
83
|
-
return
|
84
|
-
},
|
77
|
+
var e = Gl("Symbol");
|
78
|
+
return zl(e) && Hl(e.prototype, Xl(a));
|
79
|
+
}, Wl = String, br = function(a) {
|
85
80
|
try {
|
86
|
-
return
|
81
|
+
return Wl(a);
|
87
82
|
} catch {
|
88
83
|
return "Object";
|
89
84
|
}
|
90
|
-
},
|
91
|
-
if (
|
85
|
+
}, ql = B, Ql = br, Kl = TypeError, Te = function(a) {
|
86
|
+
if (ql(a))
|
92
87
|
return a;
|
93
|
-
throw
|
94
|
-
},
|
88
|
+
throw new Kl(Ql(a) + " is not a function");
|
89
|
+
}, Zl = Te, Jl = je, ot = function(a, e) {
|
95
90
|
var t = a[e];
|
96
|
-
return
|
97
|
-
},
|
91
|
+
return Jl(t) ? void 0 : Zl(t);
|
92
|
+
}, Zr = Y, Jr = B, ea = ve, eh = TypeError, th = function(a, e) {
|
98
93
|
var t, r;
|
99
|
-
if (e === "string" &&
|
94
|
+
if (e === "string" && Jr(t = a.toString) && !ea(r = Zr(t, a)) || Jr(t = a.valueOf) && !ea(r = Zr(t, a)) || e !== "string" && Jr(t = a.toString) && !ea(r = Zr(t, a)))
|
100
95
|
return r;
|
101
|
-
throw
|
102
|
-
},
|
96
|
+
throw new eh("Can't convert object to primitive value");
|
97
|
+
}, Fo = { exports: {} }, mn = D, rh = Object.defineProperty, Ti = function(a, e) {
|
103
98
|
try {
|
104
|
-
|
99
|
+
rh(mn, a, { value: e, configurable: !0, writable: !0 });
|
105
100
|
} catch {
|
106
|
-
|
101
|
+
mn[a] = e;
|
107
102
|
}
|
108
103
|
return e;
|
109
|
-
},
|
110
|
-
(
|
111
|
-
|
112
|
-
})("versions", []).push({
|
113
|
-
version: "3.27.2",
|
104
|
+
}, ah = D, ih = Ti, bn = "__core-js_shared__", xn = Fo.exports = ah[bn] || ih(bn, {});
|
105
|
+
(xn.versions || (xn.versions = [])).push({
|
106
|
+
version: "3.37.1",
|
114
107
|
mode: "global",
|
115
|
-
copyright: "© 2014-
|
116
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
108
|
+
copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)",
|
109
|
+
license: "https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",
|
117
110
|
source: "https://github.com/zloirock/core-js"
|
118
111
|
});
|
119
|
-
var
|
120
|
-
return
|
121
|
-
},
|
122
|
-
return
|
123
|
-
},
|
124
|
-
return
|
125
|
-
},
|
126
|
-
return
|
127
|
-
},
|
128
|
-
|
112
|
+
var Oi = Fo.exports, Tn = Oi, Si = function(a, e) {
|
113
|
+
return Tn[a] || (Tn[a] = e || {});
|
114
|
+
}, nh = he, sh = Object, xr = function(a) {
|
115
|
+
return sh(nh(a));
|
116
|
+
}, oh = L, uh = xr, lh = oh({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
117
|
+
return lh(uh(e), t);
|
118
|
+
}, hh = L, vh = 0, fh = Math.random(), ch = hh(1 .toString), Uo = function(a) {
|
119
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + ch(++vh + fh, 36);
|
120
|
+
}, gh = D, dh = Si, On = fe, ph = Uo, yh = Lo, mh = Bo, Ze = gh.Symbol, ta = dh("wks"), bh = mh ? Ze.for || Ze : Ze && Ze.withoutSetter || ph, z = function(a) {
|
121
|
+
return On(ta, a) || (ta[a] = yh && On(Ze, a) ? Ze[a] : bh("Symbol." + a)), ta[a];
|
122
|
+
}, xh = Y, Sn = ve, En = jo, Th = ot, Oh = th, Sh = z, Eh = TypeError, $h = Sh("toPrimitive"), wh = function(a, e) {
|
123
|
+
if (!Sn(a) || En(a))
|
129
124
|
return a;
|
130
|
-
var t =
|
125
|
+
var t = Th(a, $h), r;
|
131
126
|
if (t) {
|
132
|
-
if (e === void 0 && (e = "default"), r =
|
127
|
+
if (e === void 0 && (e = "default"), r = xh(t, a, e), !Sn(r) || En(r))
|
133
128
|
return r;
|
134
|
-
throw
|
135
|
-
}
|
136
|
-
return e === void 0 && (e = "number"),
|
137
|
-
},
|
138
|
-
var e =
|
139
|
-
return
|
140
|
-
},
|
141
|
-
return
|
142
|
-
},
|
143
|
-
return Object.defineProperty(
|
129
|
+
throw new Eh("Can't convert object to primitive value");
|
130
|
+
}
|
131
|
+
return e === void 0 && (e = "number"), Oh(a, e);
|
132
|
+
}, Ch = wh, Ah = jo, Go = function(a) {
|
133
|
+
var e = Ch(a, "string");
|
134
|
+
return Ah(e) ? e : e + "";
|
135
|
+
}, Ph = D, $n = ve, za = Ph.document, Rh = $n(za) && $n(za.createElement), Tr = function(a) {
|
136
|
+
return Rh ? za.createElement(a) : {};
|
137
|
+
}, Nh = le, Ih = k, Mh = Tr, zo = !Nh && !Ih(function() {
|
138
|
+
return Object.defineProperty(Mh("div"), "a", {
|
144
139
|
get: function() {
|
145
140
|
return 7;
|
146
141
|
}
|
147
|
-
}).a
|
148
|
-
}),
|
149
|
-
|
150
|
-
if (e =
|
142
|
+
}).a !== 7;
|
143
|
+
}), _h = le, Vh = Y, Dh = Ro, kh = bi, Lh = $t, Bh = Go, jh = fe, Fh = zo, wn = Object.getOwnPropertyDescriptor;
|
144
|
+
Et.f = _h ? wn : function(e, t) {
|
145
|
+
if (e = Lh(e), t = Bh(t), Fh)
|
151
146
|
try {
|
152
|
-
return
|
147
|
+
return wn(e, t);
|
153
148
|
} catch {
|
154
149
|
}
|
155
|
-
if (
|
156
|
-
return
|
150
|
+
if (jh(e, t))
|
151
|
+
return kh(!Vh(Dh.f, e, t), e[t]);
|
157
152
|
};
|
158
|
-
var
|
153
|
+
var Oe = {}, Uh = le, Gh = k, Ho = Uh && Gh(function() {
|
159
154
|
return Object.defineProperty(function() {
|
160
155
|
}, "prototype", {
|
161
156
|
value: 42,
|
162
157
|
writable: !1
|
163
|
-
}).prototype
|
164
|
-
}),
|
165
|
-
if (
|
158
|
+
}).prototype !== 42;
|
159
|
+
}), zh = ve, Hh = String, Yh = TypeError, J = function(a) {
|
160
|
+
if (zh(a))
|
166
161
|
return a;
|
167
|
-
throw
|
168
|
-
},
|
169
|
-
|
170
|
-
if (
|
171
|
-
var i =
|
172
|
-
i && i[
|
173
|
-
configurable:
|
174
|
-
enumerable:
|
162
|
+
throw new Yh(Hh(a) + " is not an object");
|
163
|
+
}, Xh = le, Wh = zo, qh = Ho, Ut = J, Cn = Go, Qh = TypeError, ra = Object.defineProperty, Kh = Object.getOwnPropertyDescriptor, aa = "enumerable", ia = "configurable", na = "writable";
|
164
|
+
Oe.f = Xh ? qh ? function(e, t, r) {
|
165
|
+
if (Ut(e), t = Cn(t), Ut(r), typeof e == "function" && t === "prototype" && "value" in r && na in r && !r[na]) {
|
166
|
+
var i = Kh(e, t);
|
167
|
+
i && i[na] && (e[t] = r.value, r = {
|
168
|
+
configurable: ia in r ? r[ia] : i[ia],
|
169
|
+
enumerable: aa in r ? r[aa] : i[aa],
|
175
170
|
writable: !1
|
176
171
|
});
|
177
172
|
}
|
178
|
-
return
|
179
|
-
} :
|
180
|
-
if (
|
173
|
+
return ra(e, t, r);
|
174
|
+
} : ra : function(e, t, r) {
|
175
|
+
if (Ut(e), t = Cn(t), Ut(r), Wh)
|
181
176
|
try {
|
182
|
-
return
|
177
|
+
return ra(e, t, r);
|
183
178
|
} catch {
|
184
179
|
}
|
185
180
|
if ("get" in r || "set" in r)
|
186
|
-
throw
|
181
|
+
throw new Qh("Accessors not supported");
|
187
182
|
return "value" in r && (e[t] = r.value), e;
|
188
183
|
};
|
189
|
-
var
|
190
|
-
return
|
184
|
+
var Zh = le, Jh = Oe, ev = bi, wt = Zh ? function(a, e, t) {
|
185
|
+
return Jh.f(a, e, ev(1, t));
|
191
186
|
} : function(a, e, t) {
|
192
187
|
return a[e] = t, a;
|
193
|
-
},
|
194
|
-
}).name === "something",
|
195
|
-
EXISTS:
|
196
|
-
PROPER:
|
197
|
-
CONFIGURABLE:
|
198
|
-
},
|
199
|
-
|
200
|
-
return
|
188
|
+
}, Yo = { exports: {} }, Ha = le, tv = fe, Xo = Function.prototype, rv = Ha && Object.getOwnPropertyDescriptor, Ei = tv(Xo, "name"), av = Ei && (function() {
|
189
|
+
}).name === "something", iv = Ei && (!Ha || Ha && rv(Xo, "name").configurable), Or = {
|
190
|
+
EXISTS: Ei,
|
191
|
+
PROPER: av,
|
192
|
+
CONFIGURABLE: iv
|
193
|
+
}, nv = L, sv = B, Ya = Oi, ov = nv(Function.toString);
|
194
|
+
sv(Ya.inspectSource) || (Ya.inspectSource = function(a) {
|
195
|
+
return ov(a);
|
201
196
|
});
|
202
|
-
var
|
203
|
-
return
|
204
|
-
},
|
205
|
-
return
|
206
|
-
},
|
197
|
+
var $i = Ya.inspectSource, uv = D, lv = B, An = uv.WeakMap, hv = lv(An) && /native code/.test(String(An)), vv = Si, fv = Uo, Pn = vv("keys"), wi = function(a) {
|
198
|
+
return Pn[a] || (Pn[a] = fv(a));
|
199
|
+
}, Ci = {}, cv = hv, Wo = D, gv = ve, dv = wt, sa = fe, oa = Oi, pv = wi, yv = Ci, Rn = "Object already initialized", Xa = Wo.TypeError, mv = Wo.WeakMap, vr, Tt, fr, bv = function(a) {
|
200
|
+
return fr(a) ? Tt(a) : vr(a, {});
|
201
|
+
}, xv = function(a) {
|
207
202
|
return function(e) {
|
208
203
|
var t;
|
209
|
-
if (!
|
210
|
-
throw
|
204
|
+
if (!gv(e) || (t = Tt(e)).type !== a)
|
205
|
+
throw new Xa("Incompatible receiver, " + a + " required");
|
211
206
|
return t;
|
212
207
|
};
|
213
208
|
};
|
214
|
-
if (
|
215
|
-
var
|
216
|
-
|
217
|
-
if (
|
218
|
-
throw
|
219
|
-
return e.facade = a,
|
220
|
-
},
|
221
|
-
return
|
222
|
-
},
|
223
|
-
return
|
209
|
+
if (cv || oa.state) {
|
210
|
+
var de = oa.state || (oa.state = new mv());
|
211
|
+
de.get = de.get, de.has = de.has, de.set = de.set, vr = function(a, e) {
|
212
|
+
if (de.has(a))
|
213
|
+
throw new Xa(Rn);
|
214
|
+
return e.facade = a, de.set(a, e), e;
|
215
|
+
}, Tt = function(a) {
|
216
|
+
return de.get(a) || {};
|
217
|
+
}, fr = function(a) {
|
218
|
+
return de.has(a);
|
224
219
|
};
|
225
220
|
} else {
|
226
|
-
var
|
227
|
-
|
228
|
-
if (
|
229
|
-
throw
|
230
|
-
return e.facade = a,
|
231
|
-
},
|
232
|
-
return
|
233
|
-
},
|
234
|
-
return
|
221
|
+
var Ye = pv("state");
|
222
|
+
yv[Ye] = !0, vr = function(a, e) {
|
223
|
+
if (sa(a, Ye))
|
224
|
+
throw new Xa(Rn);
|
225
|
+
return e.facade = a, dv(a, Ye, e), e;
|
226
|
+
}, Tt = function(a) {
|
227
|
+
return sa(a, Ye) ? a[Ye] : {};
|
228
|
+
}, fr = function(a) {
|
229
|
+
return sa(a, Ye);
|
235
230
|
};
|
236
231
|
}
|
237
|
-
var
|
238
|
-
set:
|
239
|
-
get:
|
240
|
-
has:
|
241
|
-
enforce:
|
242
|
-
getterFor:
|
243
|
-
},
|
244
|
-
return
|
232
|
+
var Sr = {
|
233
|
+
set: vr,
|
234
|
+
get: Tt,
|
235
|
+
has: fr,
|
236
|
+
enforce: bv,
|
237
|
+
getterFor: xv
|
238
|
+
}, Ai = L, Tv = k, Ov = B, Gt = fe, Wa = le, Sv = Or.CONFIGURABLE, Ev = $i, qo = Sr, $v = qo.enforce, wv = qo.get, Nn = String, ir = Object.defineProperty, Cv = Ai("".slice), Av = Ai("".replace), Pv = Ai([].join), Rv = Wa && !Tv(function() {
|
239
|
+
return ir(function() {
|
245
240
|
}, "length", { value: 8 }).length !== 8;
|
246
|
-
}),
|
247
|
-
|
241
|
+
}), Nv = String(String).split("String"), Iv = Yo.exports = function(a, e, t) {
|
242
|
+
Cv(Nn(e), 0, 7) === "Symbol(" && (e = "[" + Av(Nn(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Gt(a, "name") || Sv && a.name !== e) && (Wa ? ir(a, "name", { value: e, configurable: !0 }) : a.name = e), Rv && t && Gt(t, "arity") && a.length !== t.arity && ir(a, "length", { value: t.arity });
|
248
243
|
try {
|
249
|
-
t &&
|
244
|
+
t && Gt(t, "constructor") && t.constructor ? Wa && ir(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
250
245
|
} catch {
|
251
246
|
}
|
252
|
-
var r =
|
253
|
-
return
|
247
|
+
var r = $v(a);
|
248
|
+
return Gt(r, "source") || (r.source = Pv(Nv, typeof e == "string" ? e : "")), a;
|
254
249
|
};
|
255
|
-
Function.prototype.toString =
|
256
|
-
return
|
250
|
+
Function.prototype.toString = Iv(function() {
|
251
|
+
return Ov(this) && wv(this).source || Ev(this);
|
257
252
|
}, "toString");
|
258
|
-
var
|
253
|
+
var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r) {
|
259
254
|
r || (r = {});
|
260
255
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
261
|
-
if (
|
262
|
-
i ? a[e] = t :
|
256
|
+
if (Mv(t) && Vv(t, n, r), r.global)
|
257
|
+
i ? a[e] = t : Dv(e, t);
|
263
258
|
else {
|
264
259
|
try {
|
265
260
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
266
261
|
} catch {
|
267
262
|
}
|
268
|
-
i ? a[e] = t :
|
263
|
+
i ? a[e] = t : _v.f(a, e, {
|
269
264
|
value: t,
|
270
265
|
enumerable: !1,
|
271
266
|
configurable: !r.nonConfigurable,
|
@@ -273,25 +268,29 @@ var zv = Jo.exports, Gv = D, Hv = de, Yv = zv, Xv = Si, ze = function(a, e, t, r
|
|
273
268
|
});
|
274
269
|
}
|
275
270
|
return a;
|
276
|
-
},
|
271
|
+
}, Ko = {}, kv = Math.ceil, Lv = Math.floor, Bv = Math.trunc || function(e) {
|
277
272
|
var t = +e;
|
278
|
-
return (t > 0 ?
|
279
|
-
},
|
273
|
+
return (t > 0 ? Lv : kv)(t);
|
274
|
+
}, jv = Bv, Er = function(a) {
|
280
275
|
var e = +a;
|
281
|
-
return e !== e || e === 0 ? 0 :
|
282
|
-
},
|
283
|
-
var t =
|
284
|
-
return t < 0 ?
|
285
|
-
},
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
276
|
+
return e !== e || e === 0 ? 0 : jv(e);
|
277
|
+
}, Fv = Er, Uv = Math.max, Gv = Math.min, zv = function(a, e) {
|
278
|
+
var t = Fv(a);
|
279
|
+
return t < 0 ? Uv(t + e, 0) : Gv(t, e);
|
280
|
+
}, Hv = Er, Yv = Math.min, ut = function(a) {
|
281
|
+
var e = Hv(a);
|
282
|
+
return e > 0 ? Yv(e, 9007199254740991) : 0;
|
283
|
+
}, Xv = ut, Pi = function(a) {
|
284
|
+
return Xv(a.length);
|
285
|
+
}, Wv = $t, qv = zv, Qv = Pi, In = function(a) {
|
290
286
|
return function(e, t, r) {
|
291
|
-
var i =
|
292
|
-
if (
|
287
|
+
var i = Wv(e), n = Qv(i);
|
288
|
+
if (n === 0)
|
289
|
+
return !a && -1;
|
290
|
+
var o = qv(r, n), s;
|
291
|
+
if (a && t !== t) {
|
293
292
|
for (; n > o; )
|
294
|
-
if (s = i[o++], s
|
293
|
+
if (s = i[o++], s !== s)
|
295
294
|
return !0;
|
296
295
|
} else
|
297
296
|
for (; n > o; o++)
|
@@ -299,21 +298,21 @@ var zv = Jo.exports, Gv = D, Hv = de, Yv = zv, Xv = Si, ze = function(a, e, t, r
|
|
299
298
|
return a || o || 0;
|
300
299
|
return !a && -1;
|
301
300
|
};
|
302
|
-
},
|
301
|
+
}, Zo = {
|
303
302
|
// `Array.prototype.includes` method
|
304
303
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
305
|
-
includes:
|
304
|
+
includes: In(!0),
|
306
305
|
// `Array.prototype.indexOf` method
|
307
306
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
308
|
-
indexOf:
|
309
|
-
},
|
310
|
-
var t =
|
307
|
+
indexOf: In(!1)
|
308
|
+
}, Kv = L, ua = fe, Zv = $t, Jv = Zo.indexOf, ef = Ci, Mn = Kv([].push), Jo = function(a, e) {
|
309
|
+
var t = Zv(a), r = 0, i = [], n;
|
311
310
|
for (n in t)
|
312
|
-
!
|
311
|
+
!ua(ef, n) && ua(t, n) && Mn(i, n);
|
313
312
|
for (; e.length > r; )
|
314
|
-
|
313
|
+
ua(t, n = e[r++]) && (~Jv(i, n) || Mn(i, n));
|
315
314
|
return i;
|
316
|
-
},
|
315
|
+
}, Ri = [
|
317
316
|
"constructor",
|
318
317
|
"hasOwnProperty",
|
319
318
|
"isPrototypeOf",
|
@@ -321,169 +320,183 @@ var zv = Jo.exports, Gv = D, Hv = de, Yv = zv, Xv = Si, ze = function(a, e, t, r
|
|
321
320
|
"toLocaleString",
|
322
321
|
"toString",
|
323
322
|
"valueOf"
|
324
|
-
],
|
325
|
-
|
326
|
-
return
|
323
|
+
], tf = Jo, rf = Ri, af = rf.concat("length", "prototype");
|
324
|
+
Ko.f = Object.getOwnPropertyNames || function(e) {
|
325
|
+
return tf(e, af);
|
327
326
|
};
|
328
|
-
var
|
329
|
-
|
330
|
-
var
|
331
|
-
var t =
|
332
|
-
return r ?
|
333
|
-
},
|
334
|
-
for (var r =
|
327
|
+
var eu = {};
|
328
|
+
eu.f = Object.getOwnPropertySymbols;
|
329
|
+
var nf = Fe, sf = L, of = Ko, uf = eu, lf = J, hf = sf([].concat), vf = nf("Reflect", "ownKeys") || function(e) {
|
330
|
+
var t = of.f(lf(e)), r = uf.f;
|
331
|
+
return r ? hf(t, r(e)) : t;
|
332
|
+
}, _n = fe, ff = vf, cf = Et, gf = Oe, df = function(a, e, t) {
|
333
|
+
for (var r = ff(e), i = gf.f, n = cf.f, o = 0; o < r.length; o++) {
|
335
334
|
var s = r[o];
|
336
|
-
!
|
337
|
-
}
|
338
|
-
},
|
339
|
-
var t =
|
340
|
-
return t
|
341
|
-
},
|
342
|
-
return String(a).replace(
|
343
|
-
},
|
335
|
+
!_n(a, s) && !(t && _n(t, s)) && i(a, s, n(e, s));
|
336
|
+
}
|
337
|
+
}, pf = k, yf = B, mf = /#|\.prototype\./, Ct = function(a, e) {
|
338
|
+
var t = xf[bf(a)];
|
339
|
+
return t === Of ? !0 : t === Tf ? !1 : yf(e) ? pf(e) : !!e;
|
340
|
+
}, bf = Ct.normalize = function(a) {
|
341
|
+
return String(a).replace(mf, ".").toLowerCase();
|
342
|
+
}, xf = Ct.data = {}, Tf = Ct.NATIVE = "N", Of = Ct.POLYFILL = "P", tu = Ct, zt = D, Sf = Et.f, Ef = wt, $f = Ue, wf = Ti, Cf = df, Af = tu, ee = function(a, e) {
|
344
343
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
345
|
-
if (r ? o =
|
344
|
+
if (r ? o = zt : i ? o = zt[t] || wf(t, {}) : o = zt[t] && zt[t].prototype, o)
|
346
345
|
for (s in e) {
|
347
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
346
|
+
if (l = e[s], a.dontCallGetSet ? (h = Sf(o, s), u = h && h.value) : u = o[s], n = Af(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
348
347
|
if (typeof l == typeof u)
|
349
348
|
continue;
|
350
|
-
|
349
|
+
Cf(l, u);
|
351
350
|
}
|
352
|
-
(a.sham || u && u.sham) &&
|
351
|
+
(a.sham || u && u.sham) && Ef(l, "sham", !0), $f(o, s, l, a);
|
353
352
|
}
|
354
|
-
},
|
355
|
-
|
353
|
+
}, Pf = D, Rf = Be, At = Rf(Pf.process) === "process", Nf = L, If = Te, Mf = function(a, e, t) {
|
354
|
+
try {
|
355
|
+
return Nf(If(Object.getOwnPropertyDescriptor(a, e)[t]));
|
356
|
+
} catch {
|
357
|
+
}
|
358
|
+
}, _f = ve, Vf = function(a) {
|
359
|
+
return _f(a) || a === null;
|
360
|
+
}, Df = Vf, kf = String, Lf = TypeError, Bf = function(a) {
|
361
|
+
if (Df(a))
|
356
362
|
return a;
|
357
|
-
throw
|
358
|
-
},
|
363
|
+
throw new Lf("Can't set " + kf(a) + " as a prototype");
|
364
|
+
}, jf = Mf, Ff = ve, Uf = he, Gf = Bf, ru = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
359
365
|
var a = !1, e = {}, t;
|
360
366
|
try {
|
361
|
-
t =
|
367
|
+
t = jf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
362
368
|
} catch {
|
363
369
|
}
|
364
370
|
return function(i, n) {
|
365
|
-
return
|
371
|
+
return Uf(i), Gf(n), Ff(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
366
372
|
};
|
367
|
-
}() : void 0),
|
368
|
-
a && !t && (a = a.prototype), a && !
|
369
|
-
},
|
370
|
-
|
371
|
-
|
373
|
+
}() : void 0), zf = Oe.f, Hf = fe, Yf = z, Vn = Yf("toStringTag"), $r = function(a, e, t) {
|
374
|
+
a && !t && (a = a.prototype), a && !Hf(a, Vn) && zf(a, Vn, { configurable: !0, value: e });
|
375
|
+
}, Dn = Qo, Xf = Oe, Wf = function(a, e, t) {
|
376
|
+
return t.get && Dn(t.get, e, { getter: !0 }), t.set && Dn(t.set, e, { setter: !0 }), Xf.f(a, e, t);
|
377
|
+
}, qf = Fe, Qf = Wf, Kf = z, Zf = le, kn = Kf("species"), Jf = function(a) {
|
378
|
+
var e = qf(a);
|
379
|
+
Zf && e && !e[kn] && Qf(e, kn, {
|
372
380
|
configurable: !0,
|
373
381
|
get: function() {
|
374
382
|
return this;
|
375
383
|
}
|
376
384
|
});
|
377
|
-
},
|
378
|
-
if (
|
385
|
+
}, ec = yr, tc = TypeError, rc = function(a, e) {
|
386
|
+
if (ec(e, a))
|
379
387
|
return a;
|
380
|
-
throw
|
381
|
-
},
|
382
|
-
|
383
|
-
var
|
388
|
+
throw new tc("Incorrect invocation");
|
389
|
+
}, ac = z, ic = ac("toStringTag"), au = {};
|
390
|
+
au[ic] = "z";
|
391
|
+
var nc = String(au) === "[object z]", sc = nc, oc = B, nr = Be, uc = z, lc = uc("toStringTag"), hc = Object, vc = nr(/* @__PURE__ */ function() {
|
384
392
|
return arguments;
|
385
|
-
}())
|
393
|
+
}()) === "Arguments", fc = function(a, e) {
|
386
394
|
try {
|
387
395
|
return a[e];
|
388
396
|
} catch {
|
389
397
|
}
|
390
|
-
},
|
398
|
+
}, Ni = sc ? nr : function(a) {
|
391
399
|
var e, t, r;
|
392
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
393
|
-
},
|
394
|
-
},
|
395
|
-
if (!
|
400
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = fc(e = hc(a), lc)) == "string" ? t : vc ? nr(e) : (r = nr(e)) === "Object" && oc(e.callee) ? "Arguments" : r;
|
401
|
+
}, cc = L, gc = k, iu = B, dc = Ni, pc = Fe, yc = $i, nu = function() {
|
402
|
+
}, su = pc("Reflect", "construct"), Ii = /^\s*(?:class|function)\b/, mc = cc(Ii.exec), bc = !Ii.test(nu), ft = function(e) {
|
403
|
+
if (!iu(e))
|
396
404
|
return !1;
|
397
405
|
try {
|
398
|
-
return
|
406
|
+
return su(nu, [], e), !0;
|
399
407
|
} catch {
|
400
408
|
return !1;
|
401
409
|
}
|
402
|
-
},
|
403
|
-
if (!
|
410
|
+
}, ou = function(e) {
|
411
|
+
if (!iu(e))
|
404
412
|
return !1;
|
405
|
-
switch (
|
413
|
+
switch (dc(e)) {
|
406
414
|
case "AsyncFunction":
|
407
415
|
case "GeneratorFunction":
|
408
416
|
case "AsyncGeneratorFunction":
|
409
417
|
return !1;
|
410
418
|
}
|
411
419
|
try {
|
412
|
-
return
|
420
|
+
return bc || !!mc(Ii, yc(e));
|
413
421
|
} catch {
|
414
422
|
return !0;
|
415
423
|
}
|
416
424
|
};
|
417
|
-
|
418
|
-
var
|
425
|
+
ou.sham = !0;
|
426
|
+
var xc = !su || gc(function() {
|
419
427
|
var a;
|
420
428
|
return ft(ft.call) || !ft(Object) || !ft(function() {
|
421
429
|
a = !0;
|
422
430
|
}) || a;
|
423
|
-
}) ?
|
424
|
-
if (
|
431
|
+
}) ? ou : ft, Tc = xc, Oc = br, Sc = TypeError, Ec = function(a) {
|
432
|
+
if (Tc(a))
|
425
433
|
return a;
|
426
|
-
throw
|
427
|
-
},
|
428
|
-
var t =
|
429
|
-
return t === void 0 ||
|
430
|
-
},
|
431
|
-
return
|
432
|
-
}),
|
433
|
-
if (
|
434
|
-
return
|
435
|
-
},
|
436
|
-
return
|
434
|
+
throw new Sc(Oc(a) + " is not a constructor");
|
435
|
+
}, Ln = J, $c = Ec, wc = je, Cc = z, Ac = Cc("species"), uu = function(a, e) {
|
436
|
+
var t = Ln(a).constructor, r;
|
437
|
+
return t === void 0 || wc(r = Ln(t)[Ac]) ? e : $c(r);
|
438
|
+
}, Pc = pr, lu = Function.prototype, Bn = lu.apply, jn = lu.call, hu = typeof Reflect == "object" && Reflect.apply || (Pc ? jn.bind(Bn) : function() {
|
439
|
+
return jn.apply(Bn, arguments);
|
440
|
+
}), Rc = Be, Nc = L, wr = function(a) {
|
441
|
+
if (Rc(a) === "Function")
|
442
|
+
return Nc(a);
|
443
|
+
}, Fn = wr, Ic = Te, Mc = pr, _c = Fn(Fn.bind), Mi = function(a, e) {
|
444
|
+
return Ic(a), e === void 0 ? a : Mc ? _c(a, e) : function() {
|
437
445
|
return a.apply(e, arguments);
|
438
446
|
};
|
439
|
-
},
|
447
|
+
}, Vc = Fe, vu = Vc("document", "documentElement"), Dc = L, kc = Dc([].slice), Lc = TypeError, Bc = function(a, e) {
|
440
448
|
if (a < e)
|
441
|
-
throw
|
449
|
+
throw new Lc("Not enough arguments");
|
442
450
|
return a;
|
443
|
-
},
|
444
|
-
|
445
|
-
|
451
|
+
}, jc = mr, fu = /(?:ipad|iphone|ipod).*applewebkit/i.test(jc), ae = D, Fc = hu, Uc = Mi, Un = B, Gc = fe, cu = k, Gn = vu, zc = kc, zn = Tr, Hc = Bc, Yc = fu, Xc = At, qa = ae.setImmediate, Qa = ae.clearImmediate, Wc = ae.process, la = ae.Dispatch, qc = ae.Function, Hn = ae.MessageChannel, Qc = ae.String, ha = 0, bt = {}, Yn = "onreadystatechange", Ot, Ie, va, fa;
|
452
|
+
cu(function() {
|
453
|
+
Ot = ae.location;
|
446
454
|
});
|
447
|
-
var
|
448
|
-
if (
|
449
|
-
var e =
|
450
|
-
delete
|
455
|
+
var _i = function(a) {
|
456
|
+
if (Gc(bt, a)) {
|
457
|
+
var e = bt[a];
|
458
|
+
delete bt[a], e();
|
451
459
|
}
|
452
|
-
},
|
460
|
+
}, ca = function(a) {
|
453
461
|
return function() {
|
454
|
-
|
462
|
+
_i(a);
|
455
463
|
};
|
456
|
-
},
|
457
|
-
|
458
|
-
},
|
459
|
-
ae.postMessage(
|
464
|
+
}, Xn = function(a) {
|
465
|
+
_i(a.data);
|
466
|
+
}, Wn = function(a) {
|
467
|
+
ae.postMessage(Qc(a), Ot.protocol + "//" + Ot.host);
|
460
468
|
};
|
461
|
-
(!
|
462
|
-
|
463
|
-
var t =
|
464
|
-
return
|
465
|
-
|
466
|
-
},
|
467
|
-
},
|
468
|
-
delete
|
469
|
-
},
|
470
|
-
|
471
|
-
} :
|
472
|
-
|
473
|
-
} :
|
474
|
-
|
475
|
-
|
469
|
+
(!qa || !Qa) && (qa = function(e) {
|
470
|
+
Hc(arguments.length, 1);
|
471
|
+
var t = Un(e) ? e : qc(e), r = zc(arguments, 1);
|
472
|
+
return bt[++ha] = function() {
|
473
|
+
Fc(t, void 0, r);
|
474
|
+
}, Ie(ha), ha;
|
475
|
+
}, Qa = function(e) {
|
476
|
+
delete bt[e];
|
477
|
+
}, Xc ? Ie = function(a) {
|
478
|
+
Wc.nextTick(ca(a));
|
479
|
+
} : la && la.now ? Ie = function(a) {
|
480
|
+
la.now(ca(a));
|
481
|
+
} : Hn && !Yc ? (va = new Hn(), fa = va.port2, va.port1.onmessage = Xn, Ie = Uc(fa.postMessage, fa)) : ae.addEventListener && Un(ae.postMessage) && !ae.importScripts && Ot && Ot.protocol !== "file:" && !cu(Wn) ? (Ie = Wn, ae.addEventListener("message", Xn, !1)) : Yn in zn("script") ? Ie = function(a) {
|
482
|
+
Gn.appendChild(zn("script"))[Yn] = function() {
|
483
|
+
Gn.removeChild(this), _i(a);
|
476
484
|
};
|
477
|
-
} :
|
478
|
-
setTimeout(
|
485
|
+
} : Ie = function(a) {
|
486
|
+
setTimeout(ca(a), 0);
|
479
487
|
});
|
480
|
-
var
|
481
|
-
set:
|
482
|
-
clear:
|
483
|
-
},
|
488
|
+
var gu = {
|
489
|
+
set: qa,
|
490
|
+
clear: Qa
|
491
|
+
}, qn = D, Kc = le, Zc = Object.getOwnPropertyDescriptor, Jc = function(a) {
|
492
|
+
if (!Kc)
|
493
|
+
return qn[a];
|
494
|
+
var e = Zc(qn, a);
|
495
|
+
return e && e.value;
|
496
|
+
}, du = function() {
|
484
497
|
this.head = null, this.tail = null;
|
485
498
|
};
|
486
|
-
|
499
|
+
du.prototype = {
|
487
500
|
add: function(a) {
|
488
501
|
var e = { item: a, next: null }, t = this.tail;
|
489
502
|
t ? t.next = e : this.head = e, this.tail = e;
|
@@ -496,207 +509,207 @@ Tu.prototype = {
|
|
496
509
|
}
|
497
510
|
}
|
498
511
|
};
|
499
|
-
var
|
500
|
-
if (!
|
501
|
-
var
|
512
|
+
var pu = du, eg = mr, tg = /ipad|iphone|ipod/i.test(eg) && typeof Pebble < "u", rg = mr, ag = /web0s(?!.*chrome)/i.test(rg), it = D, ig = Jc, Qn = Mi, ga = gu.set, ng = pu, sg = fu, og = tg, ug = ag, da = At, Kn = it.MutationObserver || it.WebKitMutationObserver, Zn = it.document, Jn = it.process, Ht = it.Promise, Ka = ig("queueMicrotask"), Xe, pa, ya, Yt, es;
|
513
|
+
if (!Ka) {
|
514
|
+
var Xt = new ng(), Wt = function() {
|
502
515
|
var a, e;
|
503
|
-
for (
|
516
|
+
for (da && (a = Jn.domain) && a.exit(); e = Xt.get(); )
|
504
517
|
try {
|
505
518
|
e();
|
506
519
|
} catch (t) {
|
507
|
-
throw
|
520
|
+
throw Xt.head && Xe(), t;
|
508
521
|
}
|
509
522
|
a && a.enter();
|
510
523
|
};
|
511
|
-
!
|
512
|
-
|
513
|
-
}) : !
|
514
|
-
|
515
|
-
}) :
|
516
|
-
|
517
|
-
} : (
|
518
|
-
|
519
|
-
}),
|
520
|
-
|
524
|
+
!sg && !da && !ug && Kn && Zn ? (pa = !0, ya = Zn.createTextNode(""), new Kn(Wt).observe(ya, { characterData: !0 }), Xe = function() {
|
525
|
+
ya.data = pa = !pa;
|
526
|
+
}) : !og && Ht && Ht.resolve ? (Yt = Ht.resolve(void 0), Yt.constructor = Ht, es = Qn(Yt.then, Yt), Xe = function() {
|
527
|
+
es(Wt);
|
528
|
+
}) : da ? Xe = function() {
|
529
|
+
Jn.nextTick(Wt);
|
530
|
+
} : (ga = Qn(ga, it), Xe = function() {
|
531
|
+
ga(Wt);
|
532
|
+
}), Ka = function(a) {
|
533
|
+
Xt.head || Xe(), Xt.add(a);
|
521
534
|
};
|
522
535
|
}
|
523
|
-
var
|
536
|
+
var lg = Ka, hg = function(a, e) {
|
524
537
|
try {
|
525
|
-
arguments.length
|
538
|
+
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
526
539
|
} catch {
|
527
540
|
}
|
528
|
-
},
|
541
|
+
}, Vi = function(a) {
|
529
542
|
try {
|
530
543
|
return { error: !1, value: a() };
|
531
544
|
} catch (e) {
|
532
545
|
return { error: !0, value: e };
|
533
546
|
}
|
534
|
-
},
|
535
|
-
|
536
|
-
var
|
537
|
-
var a =
|
538
|
-
if (!e &&
|
547
|
+
}, vg = D, Cr = vg.Promise, yu = typeof Deno == "object" && Deno && typeof Deno.version == "object", fg = yu, cg = At, gg = !fg && !cg && typeof window == "object" && typeof document == "object", dg = D, xt = Cr, pg = B, yg = tu, mg = $i, bg = z, xg = gg, Tg = yu, ma = xi;
|
548
|
+
xt && xt.prototype;
|
549
|
+
var Og = bg("species"), Za = !1, mu = pg(dg.PromiseRejectionEvent), Sg = yg("Promise", function() {
|
550
|
+
var a = mg(xt), e = a !== String(xt);
|
551
|
+
if (!e && ma === 66)
|
539
552
|
return !0;
|
540
|
-
if (!
|
541
|
-
var t = new
|
553
|
+
if (!ma || ma < 51 || !/native code/.test(a)) {
|
554
|
+
var t = new xt(function(n) {
|
542
555
|
n(1);
|
543
556
|
}), r = function(n) {
|
544
557
|
n(function() {
|
545
558
|
}, function() {
|
546
559
|
});
|
547
560
|
}, i = t.constructor = {};
|
548
|
-
if (i[
|
549
|
-
}) instanceof r, !
|
561
|
+
if (i[Og] = r, Za = t.then(function() {
|
562
|
+
}) instanceof r, !Za)
|
550
563
|
return !0;
|
551
564
|
}
|
552
|
-
return !e && (
|
553
|
-
}),
|
554
|
-
CONSTRUCTOR:
|
555
|
-
REJECTION_EVENT:
|
556
|
-
SUBCLASSING:
|
557
|
-
},
|
565
|
+
return !e && (xg || Tg) && !mu;
|
566
|
+
}), Pt = {
|
567
|
+
CONSTRUCTOR: Sg,
|
568
|
+
REJECTION_EVENT: mu,
|
569
|
+
SUBCLASSING: Za
|
570
|
+
}, lt = {}, ts = Te, Eg = TypeError, $g = function(a) {
|
558
571
|
var e, t;
|
559
572
|
this.promise = new a(function(r, i) {
|
560
573
|
if (e !== void 0 || t !== void 0)
|
561
|
-
throw
|
574
|
+
throw new Eg("Bad Promise constructor");
|
562
575
|
e = r, t = i;
|
563
|
-
}), this.resolve =
|
576
|
+
}), this.resolve = ts(e), this.reject = ts(t);
|
564
577
|
};
|
565
|
-
|
566
|
-
return new
|
578
|
+
lt.f = function(a) {
|
579
|
+
return new $g(a);
|
567
580
|
};
|
568
|
-
var
|
581
|
+
var wg = ee, cr = At, we = D, nt = Y, rs = Ue, as = ru, Cg = $r, Ag = Jf, Pg = Te, sr = B, Rg = ve, Ng = rc, Ig = uu, bu = gu.set, Di = lg, Mg = hg, _g = Vi, Vg = pu, xu = Sr, gr = Cr, ki = Pt, Tu = lt, Ar = "Promise", Ou = ki.CONSTRUCTOR, Dg = ki.REJECTION_EVENT, kg = ki.SUBCLASSING, ba = xu.getterFor(Ar), Lg = xu.set, Qe = gr && gr.prototype, De = gr, qt = Qe, Su = we.TypeError, Ja = we.document, Li = we.process, ei = Tu.f, Bg = ei, jg = !!(Ja && Ja.createEvent && we.dispatchEvent), Eu = "unhandledrejection", Fg = "rejectionhandled", is = 0, $u = 1, Ug = 2, Bi = 1, wu = 2, Qt, ns, Gg, ss, Cu = function(a) {
|
569
582
|
var e;
|
570
|
-
return
|
571
|
-
},
|
572
|
-
var t = e.value, r = e.state
|
583
|
+
return Rg(a) && sr(e = a.then) ? e : !1;
|
584
|
+
}, Au = function(a, e) {
|
585
|
+
var t = e.value, r = e.state === $u, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
573
586
|
try {
|
574
|
-
i ? (r || (e.rejection ===
|
587
|
+
i ? (r || (e.rejection === wu && Hg(e), e.rejection = Bi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Su("Promise-chain cycle")) : (l = Cu(u)) ? nt(l, u, n, o) : n(u)) : o(t);
|
575
588
|
} catch (f) {
|
576
589
|
s && !h && s.exit(), o(f);
|
577
590
|
}
|
578
|
-
},
|
579
|
-
a.notified || (a.notified = !0,
|
591
|
+
}, Pu = function(a, e) {
|
592
|
+
a.notified || (a.notified = !0, Di(function() {
|
580
593
|
for (var t = a.reactions, r; r = t.get(); )
|
581
|
-
|
594
|
+
Au(r, a);
|
582
595
|
a.notified = !1, e && !a.rejection && zg(a);
|
583
596
|
}));
|
584
|
-
},
|
597
|
+
}, Ru = function(a, e, t) {
|
585
598
|
var r, i;
|
586
|
-
|
599
|
+
jg ? (r = Ja.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Dg && (i = we["on" + a]) ? i(r) : a === Eu && Mg("Unhandled promise rejection", t);
|
587
600
|
}, zg = function(a) {
|
588
|
-
nt(
|
589
|
-
var e = a.facade, t = a.value, r =
|
590
|
-
if (r && (i =
|
591
|
-
|
592
|
-
}), a.rejection =
|
601
|
+
nt(bu, we, function() {
|
602
|
+
var e = a.facade, t = a.value, r = os(a), i;
|
603
|
+
if (r && (i = _g(function() {
|
604
|
+
cr ? Li.emit("unhandledRejection", t, e) : Ru(Eu, e, t);
|
605
|
+
}), a.rejection = cr || os(a) ? wu : Bi, i.error))
|
593
606
|
throw i.value;
|
594
607
|
});
|
595
|
-
},
|
596
|
-
return a.rejection !==
|
597
|
-
},
|
598
|
-
nt(
|
608
|
+
}, os = function(a) {
|
609
|
+
return a.rejection !== Bi && !a.parent;
|
610
|
+
}, Hg = function(a) {
|
611
|
+
nt(bu, we, function() {
|
599
612
|
var e = a.facade;
|
600
|
-
|
613
|
+
cr ? Li.emit("rejectionHandled", e) : Ru(Fg, e, a.value);
|
601
614
|
});
|
602
|
-
},
|
615
|
+
}, Je = function(a, e, t) {
|
603
616
|
return function(r) {
|
604
617
|
a(e, r, t);
|
605
618
|
};
|
606
|
-
},
|
607
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
608
|
-
},
|
619
|
+
}, tt = function(a, e, t) {
|
620
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Ug, Pu(a, !0));
|
621
|
+
}, ti = function(a, e, t) {
|
609
622
|
if (!a.done) {
|
610
623
|
a.done = !0, t && (a = t);
|
611
624
|
try {
|
612
625
|
if (a.facade === e)
|
613
|
-
throw
|
614
|
-
var r =
|
615
|
-
r ?
|
626
|
+
throw new Su("Promise can't be resolved itself");
|
627
|
+
var r = Cu(e);
|
628
|
+
r ? Di(function() {
|
616
629
|
var i = { done: !1 };
|
617
630
|
try {
|
618
631
|
nt(
|
619
632
|
r,
|
620
633
|
e,
|
621
|
-
|
622
|
-
|
634
|
+
Je(ti, i, a),
|
635
|
+
Je(tt, i, a)
|
623
636
|
);
|
624
637
|
} catch (n) {
|
625
|
-
|
638
|
+
tt(i, n, a);
|
626
639
|
}
|
627
|
-
}) : (a.value = e, a.state =
|
640
|
+
}) : (a.value = e, a.state = $u, Pu(a, !1));
|
628
641
|
} catch (i) {
|
629
|
-
|
642
|
+
tt({ done: !1 }, i, a);
|
630
643
|
}
|
631
644
|
}
|
632
645
|
};
|
633
|
-
if (
|
634
|
-
|
635
|
-
var t =
|
646
|
+
if (Ou && (De = function(e) {
|
647
|
+
Ng(this, qt), Pg(e), nt(Qt, this);
|
648
|
+
var t = ba(this);
|
636
649
|
try {
|
637
|
-
e(
|
650
|
+
e(Je(ti, t), Je(tt, t));
|
638
651
|
} catch (r) {
|
639
|
-
|
652
|
+
tt(t, r);
|
640
653
|
}
|
641
|
-
},
|
654
|
+
}, qt = De.prototype, Qt = function(e) {
|
642
655
|
Lg(this, {
|
643
|
-
type:
|
656
|
+
type: Ar,
|
644
657
|
done: !1,
|
645
658
|
notified: !1,
|
646
659
|
parent: !1,
|
647
|
-
reactions: new
|
660
|
+
reactions: new Vg(),
|
648
661
|
rejection: !1,
|
649
|
-
state:
|
662
|
+
state: is,
|
650
663
|
value: void 0
|
651
664
|
});
|
652
|
-
},
|
653
|
-
var r =
|
654
|
-
return r.parent = !0, i.ok =
|
655
|
-
|
665
|
+
}, Qt.prototype = rs(qt, "then", function(e, t) {
|
666
|
+
var r = ba(this), i = ei(Ig(this, De));
|
667
|
+
return r.parent = !0, i.ok = sr(e) ? e : !0, i.fail = sr(t) && t, i.domain = cr ? Li.domain : void 0, r.state === is ? r.reactions.add(i) : Di(function() {
|
668
|
+
Au(i, r);
|
656
669
|
}), i.promise;
|
657
|
-
}),
|
658
|
-
var a = new
|
659
|
-
this.promise = a, this.resolve =
|
660
|
-
},
|
661
|
-
return a ===
|
662
|
-
},
|
663
|
-
|
670
|
+
}), ns = function() {
|
671
|
+
var a = new Qt(), e = ba(a);
|
672
|
+
this.promise = a, this.resolve = Je(ti, e), this.reject = Je(tt, e);
|
673
|
+
}, Tu.f = ei = function(a) {
|
674
|
+
return a === De || a === Gg ? new ns(a) : Bg(a);
|
675
|
+
}, sr(gr) && Qe !== Object.prototype)) {
|
676
|
+
ss = Qe.then, kg || rs(Qe, "then", function(e, t) {
|
664
677
|
var r = this;
|
665
|
-
return new
|
666
|
-
nt(
|
678
|
+
return new De(function(i, n) {
|
679
|
+
nt(ss, r, i, n);
|
667
680
|
}).then(e, t);
|
668
681
|
}, { unsafe: !0 });
|
669
682
|
try {
|
670
|
-
delete
|
683
|
+
delete Qe.constructor;
|
671
684
|
} catch {
|
672
685
|
}
|
673
|
-
|
686
|
+
as && as(Qe, qt);
|
674
687
|
}
|
675
|
-
|
676
|
-
Promise:
|
688
|
+
wg({ global: !0, constructor: !0, wrap: !0, forced: Ou }, {
|
689
|
+
Promise: De
|
677
690
|
});
|
678
|
-
Cg(
|
679
|
-
|
680
|
-
var
|
681
|
-
return a !== void 0 && (
|
682
|
-
},
|
683
|
-
if (!
|
684
|
-
return
|
685
|
-
},
|
686
|
-
var t = arguments.length < 2 ?
|
687
|
-
if (
|
688
|
-
return
|
689
|
-
throw
|
690
|
-
},
|
691
|
+
Cg(De, Ar, !1);
|
692
|
+
Ag(Ar);
|
693
|
+
var Rt = {}, Yg = z, Xg = Rt, Wg = Yg("iterator"), qg = Array.prototype, Qg = function(a) {
|
694
|
+
return a !== void 0 && (Xg.Array === a || qg[Wg] === a);
|
695
|
+
}, Kg = Ni, us = ot, Zg = je, Jg = Rt, ed = z, td = ed("iterator"), Nu = function(a) {
|
696
|
+
if (!Zg(a))
|
697
|
+
return us(a, td) || us(a, "@@iterator") || Jg[Kg(a)];
|
698
|
+
}, rd = Y, ad = Te, id = J, nd = br, sd = Nu, od = TypeError, ud = function(a, e) {
|
699
|
+
var t = arguments.length < 2 ? sd(a) : e;
|
700
|
+
if (ad(t))
|
701
|
+
return id(rd(t, a));
|
702
|
+
throw new od(nd(a) + " is not iterable");
|
703
|
+
}, ld = Y, ls = J, hd = ot, vd = function(a, e, t) {
|
691
704
|
var r, i;
|
692
|
-
|
705
|
+
ls(a);
|
693
706
|
try {
|
694
|
-
if (r =
|
707
|
+
if (r = hd(a, "return"), !r) {
|
695
708
|
if (e === "throw")
|
696
709
|
throw t;
|
697
710
|
return t;
|
698
711
|
}
|
699
|
-
r =
|
712
|
+
r = ld(r, a);
|
700
713
|
} catch (n) {
|
701
714
|
i = !0, r = n;
|
702
715
|
}
|
@@ -704,64 +717,68 @@ var Nt = {}, Hg = G, Yg = Nt, Xg = Hg("iterator"), Wg = Array.prototype, qg = fu
|
|
704
717
|
throw t;
|
705
718
|
if (i)
|
706
719
|
throw r;
|
707
|
-
return
|
708
|
-
},
|
720
|
+
return ls(r), t;
|
721
|
+
}, fd = Mi, cd = Y, gd = J, dd = br, pd = Qg, yd = Pi, hs = yr, md = ud, bd = Nu, vs = vd, xd = TypeError, or = function(a, e) {
|
709
722
|
this.stopped = a, this.result = e;
|
710
|
-
},
|
711
|
-
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 =
|
712
|
-
return l &&
|
723
|
+
}, fs = or.prototype, Iu = function(a, e, t) {
|
724
|
+
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 = fd(e, r), l, h, f, c, v, d, g, p = function(x) {
|
725
|
+
return l && vs(l, "normal", x), new or(!0, x);
|
713
726
|
}, y = function(x) {
|
714
|
-
return i ? (
|
727
|
+
return i ? (gd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
715
728
|
};
|
716
729
|
if (n)
|
717
730
|
l = a.iterator;
|
718
731
|
else if (o)
|
719
732
|
l = a;
|
720
733
|
else {
|
721
|
-
if (h =
|
722
|
-
throw
|
723
|
-
if (
|
724
|
-
for (f = 0, c =
|
725
|
-
if (v = y(a[f]), v &&
|
734
|
+
if (h = bd(a), !h)
|
735
|
+
throw new xd(dd(a) + " is not iterable");
|
736
|
+
if (pd(h)) {
|
737
|
+
for (f = 0, c = yd(a); c > f; f++)
|
738
|
+
if (v = y(a[f]), v && hs(fs, v))
|
726
739
|
return v;
|
727
|
-
return new
|
740
|
+
return new or(!1);
|
728
741
|
}
|
729
|
-
l =
|
742
|
+
l = md(a, h);
|
730
743
|
}
|
731
|
-
for (d = n ? a.next : l.next; !(g =
|
744
|
+
for (d = n ? a.next : l.next; !(g = cd(d, l)).done; ) {
|
732
745
|
try {
|
733
746
|
v = y(g.value);
|
734
747
|
} catch (x) {
|
735
|
-
|
748
|
+
vs(l, "throw", x);
|
736
749
|
}
|
737
|
-
if (typeof v == "object" && v &&
|
750
|
+
if (typeof v == "object" && v && hs(fs, v))
|
738
751
|
return v;
|
739
752
|
}
|
740
|
-
return new
|
741
|
-
},
|
753
|
+
return new or(!1);
|
754
|
+
}, Td = z, Mu = Td("iterator"), _u = !1;
|
742
755
|
try {
|
743
|
-
var
|
756
|
+
var Od = 0, cs = {
|
744
757
|
next: function() {
|
745
|
-
return { done: !!
|
758
|
+
return { done: !!Od++ };
|
746
759
|
},
|
747
760
|
return: function() {
|
748
|
-
|
761
|
+
_u = !0;
|
749
762
|
}
|
750
763
|
};
|
751
|
-
|
764
|
+
cs[Mu] = function() {
|
752
765
|
return this;
|
753
|
-
}, Array.from(
|
766
|
+
}, Array.from(cs, function() {
|
754
767
|
throw 2;
|
755
768
|
});
|
756
769
|
} catch {
|
757
770
|
}
|
758
|
-
var
|
759
|
-
|
771
|
+
var Sd = function(a, e) {
|
772
|
+
try {
|
773
|
+
if (!e && !_u)
|
774
|
+
return !1;
|
775
|
+
} catch {
|
760
776
|
return !1;
|
777
|
+
}
|
761
778
|
var t = !1;
|
762
779
|
try {
|
763
780
|
var r = {};
|
764
|
-
r[
|
781
|
+
r[Mu] = function() {
|
765
782
|
return {
|
766
783
|
next: function() {
|
767
784
|
return { done: t = !0 };
|
@@ -771,17 +788,17 @@ var Od = function(a, e) {
|
|
771
788
|
} catch {
|
772
789
|
}
|
773
790
|
return t;
|
774
|
-
},
|
775
|
-
|
791
|
+
}, Ed = Cr, $d = Sd, wd = Pt.CONSTRUCTOR, Vu = wd || !$d(function(a) {
|
792
|
+
Ed.all(a).then(void 0, function() {
|
776
793
|
});
|
777
|
-
}), Cd = ee,
|
778
|
-
Cd({ target: "Promise", stat: !0, forced:
|
794
|
+
}), Cd = ee, Ad = Y, Pd = Te, Rd = lt, Nd = Vi, Id = Iu, Md = Vu;
|
795
|
+
Cd({ target: "Promise", stat: !0, forced: Md }, {
|
779
796
|
all: function(e) {
|
780
|
-
var t = this, r =
|
781
|
-
var s =
|
797
|
+
var t = this, r = Rd.f(t), i = r.resolve, n = r.reject, o = Nd(function() {
|
798
|
+
var s = Pd(t.resolve), u = [], l = 0, h = 1;
|
782
799
|
Id(e, function(f) {
|
783
800
|
var c = l++, v = !1;
|
784
|
-
h++,
|
801
|
+
h++, Ad(s, t, f).then(function(d) {
|
785
802
|
v || (v = !0, u[c] = d, --h || i(u));
|
786
803
|
}, n);
|
787
804
|
}), --h || i(u);
|
@@ -789,53 +806,52 @@ Cd({ target: "Promise", stat: !0, forced: Nd }, {
|
|
789
806
|
return o.error && n(o.value), r.promise;
|
790
807
|
}
|
791
808
|
});
|
792
|
-
var
|
793
|
-
|
809
|
+
var _d = ee, Vd = Pt.CONSTRUCTOR, ri = Cr, Dd = Fe, kd = B, Ld = Ue, gs = ri && ri.prototype;
|
810
|
+
_d({ target: "Promise", proto: !0, forced: Vd, real: !0 }, {
|
794
811
|
catch: function(a) {
|
795
812
|
return this.then(void 0, a);
|
796
813
|
}
|
797
814
|
});
|
798
|
-
if (
|
799
|
-
var
|
800
|
-
|
815
|
+
if (kd(ri)) {
|
816
|
+
var ds = Dd("Promise").prototype.catch;
|
817
|
+
gs.catch !== ds && Ld(gs, "catch", ds, { unsafe: !0 });
|
801
818
|
}
|
802
|
-
var
|
803
|
-
|
819
|
+
var Bd = ee, jd = Y, Fd = Te, Ud = lt, Gd = Vi, zd = Iu, Hd = Vu;
|
820
|
+
Bd({ target: "Promise", stat: !0, forced: Hd }, {
|
804
821
|
race: function(e) {
|
805
|
-
var t = this, r =
|
822
|
+
var t = this, r = Ud.f(t), i = r.reject, n = Gd(function() {
|
806
823
|
var o = Fd(t.resolve);
|
807
824
|
zd(e, function(s) {
|
808
|
-
|
825
|
+
jd(o, t, s).then(r.resolve, i);
|
809
826
|
});
|
810
827
|
});
|
811
828
|
return n.error && i(n.value), r.promise;
|
812
829
|
}
|
813
830
|
});
|
814
|
-
var
|
815
|
-
|
831
|
+
var Yd = ee, Xd = lt, Wd = Pt.CONSTRUCTOR;
|
832
|
+
Yd({ target: "Promise", stat: !0, forced: Wd }, {
|
816
833
|
reject: function(e) {
|
817
|
-
var t = Xd.f(this);
|
818
|
-
return
|
834
|
+
var t = Xd.f(this), r = t.reject;
|
835
|
+
return r(e), t.promise;
|
819
836
|
}
|
820
837
|
});
|
821
|
-
var qd =
|
838
|
+
var qd = J, Qd = ve, Kd = lt, Zd = function(a, e) {
|
822
839
|
if (qd(a), Qd(e) && e.constructor === a)
|
823
840
|
return e;
|
824
841
|
var t = Kd.f(a), r = t.resolve;
|
825
842
|
return r(e), t.promise;
|
826
|
-
}, Jd = ee, ep =
|
843
|
+
}, Jd = ee, ep = Fe, tp = Pt.CONSTRUCTOR, rp = Zd;
|
827
844
|
ep("Promise");
|
828
845
|
Jd({ target: "Promise", stat: !0, forced: tp }, {
|
829
846
|
resolve: function(e) {
|
830
847
|
return rp(this, e);
|
831
848
|
}
|
832
849
|
});
|
833
|
-
function
|
850
|
+
function ps(a, e, t, r, i, n, o) {
|
834
851
|
try {
|
835
852
|
var s = a[n](o), u = s.value;
|
836
853
|
} catch (l) {
|
837
|
-
t(l);
|
838
|
-
return;
|
854
|
+
return void t(l);
|
839
855
|
}
|
840
856
|
s.done ? e(u) : Promise.resolve(u).then(r, i);
|
841
857
|
}
|
@@ -845,103 +861,103 @@ function xe(a) {
|
|
845
861
|
return new Promise(function(r, i) {
|
846
862
|
var n = a.apply(e, t);
|
847
863
|
function o(u) {
|
848
|
-
|
864
|
+
ps(n, r, i, o, s, "next", u);
|
849
865
|
}
|
850
866
|
function s(u) {
|
851
|
-
|
867
|
+
ps(n, r, i, o, s, "throw", u);
|
852
868
|
}
|
853
869
|
o(void 0);
|
854
870
|
});
|
855
871
|
};
|
856
872
|
}
|
857
|
-
var ap =
|
873
|
+
var ap = Ni, ip = String, pe = function(a) {
|
858
874
|
if (ap(a) === "Symbol")
|
859
|
-
throw TypeError("Cannot convert a Symbol value to a string");
|
875
|
+
throw new TypeError("Cannot convert a Symbol value to a string");
|
860
876
|
return ip(a);
|
861
|
-
}, np =
|
877
|
+
}, np = J, Du = function() {
|
862
878
|
var a = np(this), e = "";
|
863
879
|
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;
|
864
|
-
},
|
865
|
-
var a =
|
866
|
-
return a.lastIndex = 2, a.exec("abcd")
|
867
|
-
}), op =
|
868
|
-
return !
|
869
|
-
}), up =
|
870
|
-
var a =
|
871
|
-
return a.lastIndex = 2, a.exec("str")
|
872
|
-
}),
|
880
|
+
}, ji = k, sp = D, Fi = sp.RegExp, Ui = ji(function() {
|
881
|
+
var a = Fi("a", "y");
|
882
|
+
return a.lastIndex = 2, a.exec("abcd") !== null;
|
883
|
+
}), op = Ui || ji(function() {
|
884
|
+
return !Fi("a", "y").sticky;
|
885
|
+
}), up = Ui || ji(function() {
|
886
|
+
var a = Fi("^r", "gy");
|
887
|
+
return a.lastIndex = 2, a.exec("str") !== null;
|
888
|
+
}), ku = {
|
873
889
|
BROKEN_CARET: up,
|
874
890
|
MISSED_STICKY: op,
|
875
|
-
UNSUPPORTED_Y:
|
876
|
-
},
|
891
|
+
UNSUPPORTED_Y: Ui
|
892
|
+
}, Lu = {}, lp = Jo, hp = Ri, vp = Object.keys || function(e) {
|
877
893
|
return lp(e, hp);
|
878
|
-
}, fp =
|
879
|
-
|
894
|
+
}, fp = le, cp = Ho, gp = Oe, dp = J, pp = $t, yp = vp;
|
895
|
+
Lu.f = fp && !cp ? Object.defineProperties : function(e, t) {
|
880
896
|
dp(e);
|
881
897
|
for (var r = pp(t), i = yp(t), n = i.length, o = 0, s; n > o; )
|
882
898
|
gp.f(e, s = i[o++], r[s]);
|
883
899
|
return e;
|
884
900
|
};
|
885
|
-
var mp =
|
886
|
-
},
|
887
|
-
return
|
888
|
-
},
|
889
|
-
a.write(
|
901
|
+
var mp = J, bp = Lu, ys = Ri, xp = Ci, Tp = vu, Op = Tr, Sp = wi, ms = ">", bs = "<", ai = "prototype", ii = "script", Bu = Sp("IE_PROTO"), xa = function() {
|
902
|
+
}, ju = function(a) {
|
903
|
+
return bs + ii + ms + a + bs + "/" + ii + ms;
|
904
|
+
}, xs = function(a) {
|
905
|
+
a.write(ju("")), a.close();
|
890
906
|
var e = a.parentWindow.Object;
|
891
907
|
return a = null, e;
|
892
908
|
}, Ep = function() {
|
893
|
-
var a = Op("iframe"), e = "java" +
|
894
|
-
return a.style.display = "none", Tp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(
|
895
|
-
},
|
909
|
+
var a = Op("iframe"), e = "java" + ii + ":", t;
|
910
|
+
return a.style.display = "none", Tp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(ju("document.F=Object")), t.close(), t.F;
|
911
|
+
}, Kt, ur = function() {
|
896
912
|
try {
|
897
|
-
|
913
|
+
Kt = new ActiveXObject("htmlfile");
|
898
914
|
} catch {
|
899
915
|
}
|
900
|
-
|
901
|
-
for (var a =
|
902
|
-
delete
|
903
|
-
return
|
916
|
+
ur = typeof document < "u" ? document.domain && Kt ? xs(Kt) : Ep() : xs(Kt);
|
917
|
+
for (var a = ys.length; a--; )
|
918
|
+
delete ur[ai][ys[a]];
|
919
|
+
return ur();
|
904
920
|
};
|
905
|
-
xp[
|
906
|
-
var
|
921
|
+
xp[Bu] = !0;
|
922
|
+
var Gi = Object.create || function(e, t) {
|
907
923
|
var r;
|
908
|
-
return e !== null ? (
|
909
|
-
}, $p =
|
910
|
-
var a =
|
911
|
-
return !(a.dotAll && a.
|
924
|
+
return e !== null ? (xa[ai] = mp(e), r = new xa(), xa[ai] = null, r[Bu] = e) : r = ur(), t === void 0 ? r : bp.f(r, t);
|
925
|
+
}, $p = k, wp = D, Cp = wp.RegExp, Ap = $p(function() {
|
926
|
+
var a = Cp(".", "s");
|
927
|
+
return !(a.dotAll && a.test(`
|
912
928
|
`) && a.flags === "s");
|
913
|
-
}), Pp =
|
914
|
-
var a =
|
929
|
+
}), Pp = k, Rp = D, Np = Rp.RegExp, Ip = Pp(function() {
|
930
|
+
var a = Np("(?<a>b)", "g");
|
915
931
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
916
|
-
}),
|
932
|
+
}), et = Y, Pr = L, Mp = pe, _p = Du, Vp = ku, Dp = Si, kp = Gi, Lp = Sr.get, Bp = Ap, jp = Ip, Fp = Dp("native-string-replace", String.prototype.replace), dr = RegExp.prototype.exec, ni = dr, Up = Pr("".charAt), Gp = Pr("".indexOf), zp = Pr("".replace), Ta = Pr("".slice), si = function() {
|
917
933
|
var a = /a/, e = /b*/g;
|
918
|
-
return
|
919
|
-
}(),
|
920
|
-
Hp && (
|
921
|
-
var t = this, r =
|
934
|
+
return et(dr, a, "a"), et(dr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
935
|
+
}(), Fu = Vp.BROKEN_CARET, oi = /()??/.exec("")[1] !== void 0, Hp = si || oi || Fu || Bp || jp;
|
936
|
+
Hp && (ni = function(e) {
|
937
|
+
var t = this, r = Lp(t), i = Mp(e), n = r.raw, o, s, u, l, h, f, c;
|
922
938
|
if (n)
|
923
|
-
return n.lastIndex = t.lastIndex, o =
|
924
|
-
var v = r.groups, d =
|
925
|
-
if (d && (g =
|
926
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)),
|
939
|
+
return n.lastIndex = t.lastIndex, o = et(ni, n, i), t.lastIndex = n.lastIndex, o;
|
940
|
+
var v = r.groups, d = Fu && t.sticky, g = et(_p, t), p = t.source, y = 0, x = i;
|
941
|
+
if (d && (g = zp(g, "y", ""), Gp(g, "g") === -1 && (g += "g"), x = Ta(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Up(i, t.lastIndex - 1) !== `
|
942
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), oi && (s = new RegExp("^" + p + "$(?!\\s)", g)), si && (u = t.lastIndex), l = et(dr, d ? s : t, x), d ? l ? (l.input = Ta(l.input, y), l[0] = Ta(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : si && l && (t.lastIndex = t.global ? l.index + l[0].length : u), oi && l && l.length > 1 && et(Fp, l[0], s, function() {
|
927
943
|
for (h = 1; h < arguments.length - 2; h++)
|
928
944
|
arguments[h] === void 0 && (l[h] = void 0);
|
929
945
|
}), l && v)
|
930
|
-
for (l.groups = f =
|
946
|
+
for (l.groups = f = kp(null), h = 0; h < v.length; h++)
|
931
947
|
c = v[h], f[c[0]] = l[c[1]];
|
932
948
|
return l;
|
933
949
|
});
|
934
|
-
var
|
935
|
-
Yp({ target: "RegExp", proto: !0, forced: /./.exec !==
|
936
|
-
exec:
|
950
|
+
var zi = ni, Yp = ee, Ts = zi;
|
951
|
+
Yp({ target: "RegExp", proto: !0, forced: /./.exec !== Ts }, {
|
952
|
+
exec: Ts
|
937
953
|
});
|
938
|
-
var
|
939
|
-
var i =
|
954
|
+
var Os = Y, Ss = Ue, Xp = zi, Es = k, Uu = z, Wp = wt, qp = Uu("species"), Oa = RegExp.prototype, Hi = function(a, e, t, r) {
|
955
|
+
var i = Uu(a), n = !Es(function() {
|
940
956
|
var l = {};
|
941
957
|
return l[i] = function() {
|
942
958
|
return 7;
|
943
|
-
}, ""[a](l)
|
944
|
-
}), o = n && !
|
959
|
+
}, ""[a](l) !== 7;
|
960
|
+
}), o = n && !Es(function() {
|
945
961
|
var l = !1, h = /a/;
|
946
962
|
return a === "split" && (h = {}, h.constructor = {}, h.constructor[qp] = function() {
|
947
963
|
return h;
|
@@ -950,78 +966,78 @@ var $s = Rt, Cs = ze, Xp = _r, ws = L, Wu = G, Wp = wt, qp = Wu("species"), wa =
|
|
950
966
|
}, h[i](""), !l;
|
951
967
|
});
|
952
968
|
if (!n || !o || t) {
|
953
|
-
var s =
|
954
|
-
var d =
|
955
|
-
return
|
969
|
+
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
970
|
+
var d = h.exec;
|
971
|
+
return d === Xp || d === Oa.exec ? n && !v ? { done: !0, value: Os(s, h, f, c) } : { done: !0, value: Os(l, f, h, c) } : { done: !1 };
|
956
972
|
});
|
957
|
-
|
973
|
+
Ss(String.prototype, a, u[0]), Ss(Oa, i, u[1]);
|
958
974
|
}
|
959
|
-
r && Wp(
|
960
|
-
},
|
975
|
+
r && Wp(Oa[i], "sham", !0);
|
976
|
+
}, Yi = L, Qp = Er, Kp = pe, Zp = he, Jp = Yi("".charAt), $s = Yi("".charCodeAt), ey = Yi("".slice), ws = function(a) {
|
961
977
|
return function(e, t) {
|
962
978
|
var r = Kp(Zp(e)), i = Qp(t), n = r.length, o, s;
|
963
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
979
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = $s(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = $s(r, i + 1)) < 56320 || s > 57343 ? a ? Jp(r, i) : o : a ? ey(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
964
980
|
};
|
965
981
|
}, ty = {
|
966
982
|
// `String.prototype.codePointAt` method
|
967
983
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
968
|
-
codeAt:
|
984
|
+
codeAt: ws(!1),
|
969
985
|
// `String.prototype.at` method
|
970
986
|
// https://github.com/mathiasbynens/String.prototype.at
|
971
|
-
charAt:
|
972
|
-
}, ry = ty.charAt,
|
987
|
+
charAt: ws(!0)
|
988
|
+
}, ry = ty.charAt, Xi = function(a, e, t) {
|
973
989
|
return e + (t ? ry(a, e).length : 1);
|
974
|
-
},
|
990
|
+
}, Cs = Y, ay = J, iy = B, ny = Be, sy = zi, oy = TypeError, Wi = function(a, e) {
|
975
991
|
var t = a.exec;
|
976
992
|
if (iy(t)) {
|
977
|
-
var r =
|
993
|
+
var r = Cs(t, a, e);
|
978
994
|
return r !== null && ay(r), r;
|
979
995
|
}
|
980
996
|
if (ny(a) === "RegExp")
|
981
|
-
return
|
982
|
-
throw oy("RegExp#exec called on incompatible receiver");
|
983
|
-
}, uy = Y, ly =
|
997
|
+
return Cs(sy, a, e);
|
998
|
+
throw new oy("RegExp#exec called on incompatible receiver");
|
999
|
+
}, uy = Y, ly = Hi, hy = J, vy = je, fy = ut, Sa = pe, cy = he, gy = ot, dy = Xi, As = Wi;
|
984
1000
|
ly("match", function(a, e, t) {
|
985
1001
|
return [
|
986
1002
|
// `String.prototype.match` method
|
987
1003
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
988
1004
|
function(i) {
|
989
1005
|
var n = cy(this), o = vy(i) ? void 0 : gy(i, a);
|
990
|
-
return o ? uy(o, i, n) : new RegExp(i)[a](
|
1006
|
+
return o ? uy(o, i, n) : new RegExp(i)[a](Sa(n));
|
991
1007
|
},
|
992
1008
|
// `RegExp.prototype[@@match]` method
|
993
1009
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
994
1010
|
function(r) {
|
995
|
-
var i = hy(this), n =
|
1011
|
+
var i = hy(this), n = Sa(r), o = t(e, i, n);
|
996
1012
|
if (o.done)
|
997
1013
|
return o.value;
|
998
1014
|
if (!i.global)
|
999
|
-
return
|
1015
|
+
return As(i, n);
|
1000
1016
|
var s = i.unicode;
|
1001
1017
|
i.lastIndex = 0;
|
1002
|
-
for (var u = [], l = 0, h; (h =
|
1003
|
-
var f =
|
1018
|
+
for (var u = [], l = 0, h; (h = As(i, n)) !== null; ) {
|
1019
|
+
var f = Sa(h[0]);
|
1004
1020
|
u[l] = f, f === "" && (i.lastIndex = dy(n, fy(i.lastIndex), s)), l++;
|
1005
1021
|
}
|
1006
1022
|
return l === 0 ? null : u;
|
1007
1023
|
}
|
1008
1024
|
];
|
1009
1025
|
});
|
1010
|
-
var
|
1026
|
+
var qi = L, py = xr, yy = Math.floor, Ea = qi("".charAt), my = qi("".replace), $a = qi("".slice), by = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, xy = /\$([$&'`]|\d{1,2})/g, Ty = function(a, e, t, r, i, n) {
|
1011
1027
|
var o = t + a.length, s = r.length, u = xy;
|
1012
1028
|
return i !== void 0 && (i = py(i), u = by), my(n, u, function(l, h) {
|
1013
1029
|
var f;
|
1014
|
-
switch (
|
1030
|
+
switch (Ea(h, 0)) {
|
1015
1031
|
case "$":
|
1016
1032
|
return "$";
|
1017
1033
|
case "&":
|
1018
1034
|
return a;
|
1019
1035
|
case "`":
|
1020
|
-
return
|
1036
|
+
return $a(e, 0, t);
|
1021
1037
|
case "'":
|
1022
|
-
return
|
1038
|
+
return $a(e, o);
|
1023
1039
|
case "<":
|
1024
|
-
f = i[
|
1040
|
+
f = i[$a(h, 1, -1)];
|
1025
1041
|
break;
|
1026
1042
|
default:
|
1027
1043
|
var c = +h;
|
@@ -1029,19 +1045,19 @@ var Zi = k, py = $r, yy = Math.floor, Pa = Zi("".charAt), my = Zi("".replace), R
|
|
1029
1045
|
return l;
|
1030
1046
|
if (c > s) {
|
1031
1047
|
var v = yy(c / 10);
|
1032
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
1048
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ea(h, 1) : r[v - 1] + Ea(h, 1) : l;
|
1033
1049
|
}
|
1034
1050
|
f = r[c - 1];
|
1035
1051
|
}
|
1036
1052
|
return f === void 0 ? "" : f;
|
1037
1053
|
});
|
1038
|
-
}, Oy =
|
1054
|
+
}, Oy = hu, Ps = Y, Rr = L, Sy = Hi, Ey = k, $y = J, wy = B, Cy = je, Ay = Er, Py = ut, We = pe, Ry = he, Ny = Xi, Iy = ot, My = Ty, _y = Wi, Vy = z, ui = Vy("replace"), Dy = Math.max, ky = Math.min, Ly = Rr([].concat), wa = Rr([].push), Rs = Rr("".indexOf), Ns = Rr("".slice), By = function(a) {
|
1039
1055
|
return a === void 0 ? a : String(a);
|
1040
|
-
},
|
1056
|
+
}, jy = function() {
|
1041
1057
|
return "a".replace(/./, "$0") === "$0";
|
1042
|
-
}(),
|
1043
|
-
return /./[
|
1044
|
-
}(),
|
1058
|
+
}(), Is = function() {
|
1059
|
+
return /./[ui] ? /./[ui]("a", "$0") === "" : !1;
|
1060
|
+
}(), Fy = !Ey(function() {
|
1045
1061
|
var a = /./;
|
1046
1062
|
return a.exec = function() {
|
1047
1063
|
var e = [];
|
@@ -1049,130 +1065,123 @@ var Zi = k, py = $r, yy = Math.floor, Pa = Zi("".charAt), my = Zi("".replace), R
|
|
1049
1065
|
}, "".replace(a, "$<a>") !== "7";
|
1050
1066
|
});
|
1051
1067
|
Sy("replace", function(a, e, t) {
|
1052
|
-
var r =
|
1068
|
+
var r = Is ? "$" : "$0";
|
1053
1069
|
return [
|
1054
1070
|
// `String.prototype.replace` method
|
1055
1071
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1056
1072
|
function(n, o) {
|
1057
|
-
var s = Ry(this), u =
|
1058
|
-
return u ?
|
1073
|
+
var s = Ry(this), u = Cy(n) ? void 0 : Iy(n, ui);
|
1074
|
+
return u ? Ps(u, n, s, o) : Ps(e, We(s), n, o);
|
1059
1075
|
},
|
1060
1076
|
// `RegExp.prototype[@@replace]` method
|
1061
1077
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1062
1078
|
function(i, n) {
|
1063
|
-
var o = $y(this), s =
|
1064
|
-
if (typeof n == "string" &&
|
1079
|
+
var o = $y(this), s = We(i);
|
1080
|
+
if (typeof n == "string" && Rs(n, r) === -1 && Rs(n, "$<") === -1) {
|
1065
1081
|
var u = t(e, o, s, n);
|
1066
1082
|
if (u.done)
|
1067
1083
|
return u.value;
|
1068
1084
|
}
|
1069
|
-
var l =
|
1070
|
-
l || (n =
|
1071
|
-
var h = o.global;
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
for (var c = []; ; ) {
|
1077
|
-
var v = _y(o, s);
|
1078
|
-
if (v === null || (Ia(c, v), !h))
|
1079
|
-
break;
|
1080
|
-
var d = qe(v[0]);
|
1081
|
-
d === "" && (o.lastIndex = Iy(s, Py(o.lastIndex), f));
|
1085
|
+
var l = wy(n);
|
1086
|
+
l || (n = We(n));
|
1087
|
+
var h = o.global, f;
|
1088
|
+
h && (f = o.unicode, o.lastIndex = 0);
|
1089
|
+
for (var c = [], v; v = _y(o, s), !(v === null || (wa(c, v), !h)); ) {
|
1090
|
+
var d = We(v[0]);
|
1091
|
+
d === "" && (o.lastIndex = Ny(s, Py(o.lastIndex), f));
|
1082
1092
|
}
|
1083
1093
|
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
1084
1094
|
v = c[y];
|
1085
|
-
for (var x =
|
1086
|
-
|
1087
|
-
var
|
1095
|
+
for (var x = We(v[0]), b = Dy(ky(Ay(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++)
|
1096
|
+
wa(T, By(v[E]));
|
1097
|
+
var O = v.groups;
|
1088
1098
|
if (l) {
|
1089
|
-
var
|
1090
|
-
|
1091
|
-
var w = qe(Oy(n, void 0, O));
|
1099
|
+
var C = Ly([x], T, b, s);
|
1100
|
+
O !== void 0 && wa(C, O), $ = We(Oy(n, void 0, C));
|
1092
1101
|
} else
|
1093
|
-
|
1094
|
-
b >= p && (g +=
|
1102
|
+
$ = My(x, s, b, T, O, n);
|
1103
|
+
b >= p && (g += Ns(s, p, b) + $, p = b + x.length);
|
1095
1104
|
}
|
1096
|
-
return g +
|
1105
|
+
return g + Ns(s, p);
|
1097
1106
|
}
|
1098
1107
|
];
|
1099
|
-
}, !
|
1100
|
-
var Uy =
|
1108
|
+
}, !Fy || !jy || Is);
|
1109
|
+
var Uy = ve, Gy = Be, zy = z, Hy = zy("match"), Yy = function(a) {
|
1101
1110
|
var e;
|
1102
|
-
return Uy(a) && ((e = a[Hy]) !== void 0 ? !!e :
|
1103
|
-
},
|
1104
|
-
if (
|
1105
|
-
throw
|
1111
|
+
return Uy(a) && ((e = a[Hy]) !== void 0 ? !!e : Gy(a) === "RegExp");
|
1112
|
+
}, Xy = Yy, Wy = TypeError, Qi = function(a) {
|
1113
|
+
if (Xy(a))
|
1114
|
+
throw new Wy("The method doesn't accept regular expressions");
|
1106
1115
|
return a;
|
1107
|
-
},
|
1116
|
+
}, qy = z, Qy = qy("match"), Ki = function(a) {
|
1108
1117
|
var e = /./;
|
1109
1118
|
try {
|
1110
1119
|
"/./"[a](e);
|
1111
1120
|
} catch {
|
1112
1121
|
try {
|
1113
|
-
return e[
|
1122
|
+
return e[Qy] = !1, "/./"[a](e);
|
1114
1123
|
} catch {
|
1115
1124
|
}
|
1116
1125
|
}
|
1117
1126
|
return !1;
|
1118
|
-
},
|
1119
|
-
var a =
|
1127
|
+
}, Ky = ee, Zy = wr, Jy = Et.f, em = ut, Ms = pe, tm = Qi, rm = he, am = Ki, im = Zy("".slice), nm = Math.min, Gu = am("startsWith"), sm = !Gu && !!function() {
|
1128
|
+
var a = Jy(String.prototype, "startsWith");
|
1120
1129
|
return a && !a.writable;
|
1121
1130
|
}();
|
1122
|
-
|
1131
|
+
Ky({ target: "String", proto: !0, forced: !sm && !Gu }, {
|
1123
1132
|
startsWith: function(e) {
|
1124
|
-
var t =
|
1125
|
-
|
1126
|
-
var r =
|
1127
|
-
return
|
1133
|
+
var t = Ms(rm(this));
|
1134
|
+
tm(e);
|
1135
|
+
var r = em(nm(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Ms(e);
|
1136
|
+
return im(t, r, r + i.length) === i;
|
1128
1137
|
}
|
1129
1138
|
});
|
1130
|
-
var
|
1131
|
-
|
1139
|
+
var om = z, um = Gi, lm = Oe.f, li = om("unscopables"), hi = Array.prototype;
|
1140
|
+
hi[li] === void 0 && lm(hi, li, {
|
1132
1141
|
configurable: !0,
|
1133
|
-
value:
|
1142
|
+
value: um(null)
|
1134
1143
|
});
|
1135
|
-
var
|
1136
|
-
|
1137
|
-
},
|
1144
|
+
var hm = function(a) {
|
1145
|
+
hi[li][a] = !0;
|
1146
|
+
}, vm = k, fm = !vm(function() {
|
1138
1147
|
function a() {
|
1139
1148
|
}
|
1140
1149
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
1141
|
-
}),
|
1142
|
-
var e =
|
1143
|
-
if (
|
1144
|
-
return e[
|
1150
|
+
}), cm = fe, gm = B, dm = xr, pm = wi, ym = fm, _s = pm("IE_PROTO"), vi = Object, mm = vi.prototype, zu = ym ? vi.getPrototypeOf : function(a) {
|
1151
|
+
var e = dm(a);
|
1152
|
+
if (cm(e, _s))
|
1153
|
+
return e[_s];
|
1145
1154
|
var t = e.constructor;
|
1146
|
-
return
|
1147
|
-
},
|
1148
|
-
[].keys && (
|
1149
|
-
var
|
1155
|
+
return gm(t) && e instanceof t ? t.prototype : e instanceof vi ? mm : null;
|
1156
|
+
}, bm = k, xm = B, Tm = ve, Vs = zu, Om = Ue, Sm = z, fi = Sm("iterator"), Hu = !1, ke, Ca, Aa;
|
1157
|
+
[].keys && (Aa = [].keys(), "next" in Aa ? (Ca = Vs(Vs(Aa)), Ca !== Object.prototype && (ke = Ca)) : Hu = !0);
|
1158
|
+
var Em = !Tm(ke) || bm(function() {
|
1150
1159
|
var a = {};
|
1151
|
-
return ke[
|
1160
|
+
return ke[fi].call(a) !== a;
|
1152
1161
|
});
|
1153
|
-
|
1154
|
-
|
1162
|
+
Em && (ke = {});
|
1163
|
+
xm(ke[fi]) || Om(ke, fi, function() {
|
1155
1164
|
return this;
|
1156
1165
|
});
|
1157
|
-
var
|
1166
|
+
var Yu = {
|
1158
1167
|
IteratorPrototype: ke,
|
1159
|
-
BUGGY_SAFARI_ITERATORS:
|
1160
|
-
},
|
1168
|
+
BUGGY_SAFARI_ITERATORS: Hu
|
1169
|
+
}, $m = Yu.IteratorPrototype, wm = Gi, Cm = bi, Am = $r, Pm = Rt, Rm = function() {
|
1161
1170
|
return this;
|
1162
|
-
},
|
1171
|
+
}, Nm = function(a, e, t, r) {
|
1163
1172
|
var i = e + " Iterator";
|
1164
|
-
return a.prototype =
|
1165
|
-
},
|
1173
|
+
return a.prototype = wm($m, { next: Cm(+!r, t) }), Am(a, i, !1), Pm[i] = Rm, a;
|
1174
|
+
}, Im = ee, Mm = Y, Xu = Or, _m = B, Vm = Nm, Ds = zu, ks = ru, Dm = $r, km = wt, Pa = Ue, Lm = z, Bm = Rt, Wu = Yu, jm = Xu.PROPER, Fm = Xu.CONFIGURABLE, Ls = Wu.IteratorPrototype, Zt = Wu.BUGGY_SAFARI_ITERATORS, ct = Lm("iterator"), Bs = "keys", gt = "values", js = "entries", Um = function() {
|
1166
1175
|
return this;
|
1167
|
-
},
|
1168
|
-
|
1176
|
+
}, Gm = function(a, e, t, r, i, n, o) {
|
1177
|
+
Vm(t, e, r);
|
1169
1178
|
var s = function(y) {
|
1170
1179
|
if (y === i && c)
|
1171
1180
|
return c;
|
1172
|
-
if (!
|
1181
|
+
if (!Zt && y && y in h)
|
1173
1182
|
return h[y];
|
1174
1183
|
switch (y) {
|
1175
|
-
case
|
1184
|
+
case Bs:
|
1176
1185
|
return function() {
|
1177
1186
|
return new t(this, y);
|
1178
1187
|
};
|
@@ -1180,7 +1189,7 @@ var el = {
|
|
1180
1189
|
return function() {
|
1181
1190
|
return new t(this, y);
|
1182
1191
|
};
|
1183
|
-
case
|
1192
|
+
case js:
|
1184
1193
|
return function() {
|
1185
1194
|
return new t(this, y);
|
1186
1195
|
};
|
@@ -1188,26 +1197,26 @@ var el = {
|
|
1188
1197
|
return function() {
|
1189
1198
|
return new t(this);
|
1190
1199
|
};
|
1191
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !
|
1192
|
-
if (v && (d =
|
1193
|
-
return
|
1200
|
+
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !Zt && f || s(i), v = e === "Array" && h.entries || f, d, g, p;
|
1201
|
+
if (v && (d = Ds(v.call(new a())), d !== Object.prototype && d.next && (Ds(d) !== Ls && (ks ? ks(d, Ls) : _m(d[ct]) || Pa(d, ct, Um)), Dm(d, u, !0))), jm && i === gt && f && f.name !== gt && (Fm ? km(h, "name", gt) : (l = !0, c = function() {
|
1202
|
+
return Mm(f, this);
|
1194
1203
|
})), i)
|
1195
1204
|
if (g = {
|
1196
1205
|
values: s(gt),
|
1197
|
-
keys: n ? c : s(
|
1198
|
-
entries: s(
|
1206
|
+
keys: n ? c : s(Bs),
|
1207
|
+
entries: s(js)
|
1199
1208
|
}, o)
|
1200
1209
|
for (p in g)
|
1201
|
-
(
|
1210
|
+
(Zt || l || !(p in h)) && Pa(h, p, g[p]);
|
1202
1211
|
else
|
1203
|
-
|
1204
|
-
return h[ct] !== c &&
|
1205
|
-
},
|
1212
|
+
Im({ target: e, proto: !0, forced: Zt || l }, g);
|
1213
|
+
return h[ct] !== c && Pa(h, ct, c, { name: i }), Bm[e] = c, g;
|
1214
|
+
}, zm = function(a, e) {
|
1206
1215
|
return { value: a, done: e };
|
1207
|
-
},
|
1208
|
-
|
1209
|
-
type:
|
1210
|
-
target:
|
1216
|
+
}, Hm = $t, Zi = hm, Fs = Rt, qu = Sr, Ym = Oe.f, Xm = Gm, Jt = zm, Wm = le, Qu = "Array Iterator", qm = qu.set, Qm = qu.getterFor(Qu), Km = Xm(Array, "Array", function(a, e) {
|
1217
|
+
qm(this, {
|
1218
|
+
type: Qu,
|
1219
|
+
target: Hm(a),
|
1211
1220
|
// target
|
1212
1221
|
index: 0,
|
1213
1222
|
// next index
|
@@ -1215,18 +1224,26 @@ var el = {
|
|
1215
1224
|
// kind
|
1216
1225
|
});
|
1217
1226
|
}, function() {
|
1218
|
-
var a =
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1227
|
+
var a = Qm(this), e = a.target, t = a.index++;
|
1228
|
+
if (!e || t >= e.length)
|
1229
|
+
return a.target = void 0, Jt(void 0, !0);
|
1230
|
+
switch (a.kind) {
|
1231
|
+
case "keys":
|
1232
|
+
return Jt(t, !1);
|
1233
|
+
case "values":
|
1234
|
+
return Jt(e[t], !1);
|
1235
|
+
}
|
1236
|
+
return Jt([t, e[t]], !1);
|
1237
|
+
}, "values"), Us = Fs.Arguments = Fs.Array;
|
1238
|
+
Zi("keys");
|
1239
|
+
Zi("values");
|
1240
|
+
Zi("entries");
|
1241
|
+
if (Wm && Us.name !== "values")
|
1225
1242
|
try {
|
1226
|
-
|
1243
|
+
Ym(Us, "name", { value: "values" });
|
1227
1244
|
} catch {
|
1228
1245
|
}
|
1229
|
-
var
|
1246
|
+
var Zm = {
|
1230
1247
|
CSSRuleList: 0,
|
1231
1248
|
CSSStyleDeclaration: 0,
|
1232
1249
|
CSSValueList: 0,
|
@@ -1258,40 +1275,58 @@ var Qm = {
|
|
1258
1275
|
TextTrackCueList: 0,
|
1259
1276
|
TextTrackList: 0,
|
1260
1277
|
TouchList: 0
|
1261
|
-
},
|
1278
|
+
}, Jm = Tr, Ra = Jm("span").classList, Gs = Ra && Ra.constructor && Ra.constructor.prototype, e0 = Gs === Object.prototype ? void 0 : Gs, zs = D, Ku = Zm, t0 = e0, pt = Km, Hs = wt, r0 = $r, a0 = z, Na = a0("iterator"), Ia = pt.values, Zu = function(a, e) {
|
1262
1279
|
if (a) {
|
1263
|
-
if (a[
|
1280
|
+
if (a[Na] !== Ia)
|
1264
1281
|
try {
|
1265
|
-
|
1282
|
+
Hs(a, Na, Ia);
|
1266
1283
|
} catch {
|
1267
|
-
a[
|
1284
|
+
a[Na] = Ia;
|
1268
1285
|
}
|
1269
|
-
if (
|
1270
|
-
for (var t in
|
1271
|
-
if (a[t] !==
|
1286
|
+
if (r0(a, e, !0), Ku[e]) {
|
1287
|
+
for (var t in pt)
|
1288
|
+
if (a[t] !== pt[t])
|
1272
1289
|
try {
|
1273
|
-
|
1290
|
+
Hs(a, t, pt[t]);
|
1274
1291
|
} catch {
|
1275
|
-
a[t] =
|
1292
|
+
a[t] = pt[t];
|
1276
1293
|
}
|
1277
1294
|
}
|
1278
1295
|
}
|
1279
1296
|
};
|
1280
|
-
for (var
|
1281
|
-
|
1282
|
-
|
1283
|
-
function
|
1284
|
-
|
1297
|
+
for (var Ma in Ku)
|
1298
|
+
Zu(zs[Ma] && zs[Ma].prototype, Ma);
|
1299
|
+
Zu(t0, "DOMTokenList");
|
1300
|
+
function i0(a, e) {
|
1301
|
+
if (Ua(a) != "object" || !a)
|
1302
|
+
return a;
|
1303
|
+
var t = a[Symbol.toPrimitive];
|
1304
|
+
if (t !== void 0) {
|
1305
|
+
var r = t.call(a, e || "default");
|
1306
|
+
if (Ua(r) != "object")
|
1307
|
+
return r;
|
1308
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1309
|
+
}
|
1310
|
+
return (e === "string" ? String : Number)(a);
|
1311
|
+
}
|
1312
|
+
function n0(a) {
|
1313
|
+
var e = i0(a, "string");
|
1314
|
+
return Ua(e) == "symbol" ? e : e + "";
|
1315
|
+
}
|
1316
|
+
function Ji(a, e, t) {
|
1317
|
+
return (e = n0(e)) in a ? Object.defineProperty(a, e, {
|
1285
1318
|
value: t,
|
1286
1319
|
enumerable: !0,
|
1287
1320
|
configurable: !0,
|
1288
1321
|
writable: !0
|
1289
1322
|
}) : a[e] = t, a;
|
1290
1323
|
}
|
1291
|
-
var
|
1324
|
+
var s0 = Te, o0 = xr, u0 = Do, l0 = Pi, Ys = TypeError, Xs = "Reduce of empty array with no initial value", Ws = function(a) {
|
1292
1325
|
return function(e, t, r, i) {
|
1293
|
-
|
1294
|
-
|
1326
|
+
var n = o0(e), o = u0(n), s = l0(n);
|
1327
|
+
if (s0(t), s === 0 && r < 2)
|
1328
|
+
throw new Ys(Xs);
|
1329
|
+
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
1295
1330
|
if (r < 2)
|
1296
1331
|
for (; ; ) {
|
1297
1332
|
if (u in o) {
|
@@ -1299,83 +1334,65 @@ var e0 = we, t0 = $r, r0 = jo, a0 = Rr, i0 = TypeError, Qs = function(a) {
|
|
1299
1334
|
break;
|
1300
1335
|
}
|
1301
1336
|
if (u += l, a ? u < 0 : s <= u)
|
1302
|
-
throw
|
1337
|
+
throw new Ys(Xs);
|
1303
1338
|
}
|
1304
1339
|
for (; a ? u >= 0 : s > u; u += l)
|
1305
1340
|
u in o && (i = t(i, o[u], u, n));
|
1306
1341
|
return i;
|
1307
1342
|
};
|
1308
|
-
},
|
1343
|
+
}, h0 = {
|
1309
1344
|
// `Array.prototype.reduce` method
|
1310
1345
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
1311
|
-
left:
|
1346
|
+
left: Ws(!1),
|
1312
1347
|
// `Array.prototype.reduceRight` method
|
1313
1348
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
1314
|
-
right:
|
1315
|
-
},
|
1349
|
+
right: Ws(!0)
|
1350
|
+
}, v0 = k, Ju = function(a, e) {
|
1316
1351
|
var t = [][a];
|
1317
|
-
return !!t &&
|
1352
|
+
return !!t && v0(function() {
|
1318
1353
|
t.call(null, e || function() {
|
1319
1354
|
return 1;
|
1320
1355
|
}, 1);
|
1321
1356
|
});
|
1322
|
-
},
|
1323
|
-
|
1357
|
+
}, f0 = ee, c0 = h0.left, g0 = Ju, qs = xi, d0 = At, p0 = !d0 && qs > 79 && qs < 83, y0 = p0 || !g0("reduce");
|
1358
|
+
f0({ target: "Array", proto: !0, forced: y0 }, {
|
1324
1359
|
reduce: function(e) {
|
1325
1360
|
var t = arguments.length;
|
1326
|
-
return
|
1361
|
+
return c0(this, e, t, t > 1 ? arguments[1] : void 0);
|
1327
1362
|
}
|
1328
1363
|
});
|
1329
|
-
var
|
1330
|
-
var a =
|
1364
|
+
var m0 = ee, b0 = wr, x0 = Et.f, T0 = ut, Qs = pe, O0 = Qi, S0 = he, E0 = Ki, $0 = b0("".slice), w0 = Math.min, el = E0("endsWith"), C0 = !el && !!function() {
|
1365
|
+
var a = x0(String.prototype, "endsWith");
|
1331
1366
|
return a && !a.writable;
|
1332
1367
|
}();
|
1333
|
-
|
1368
|
+
m0({ target: "String", proto: !0, forced: !C0 && !el }, {
|
1334
1369
|
endsWith: function(e) {
|
1335
|
-
var t =
|
1336
|
-
|
1337
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
1338
|
-
return
|
1370
|
+
var t = Qs(S0(this));
|
1371
|
+
O0(e);
|
1372
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : w0(T0(r), i), o = Qs(e);
|
1373
|
+
return $0(t, n - o.length, n) === o;
|
1339
1374
|
}
|
1340
1375
|
});
|
1341
|
-
var
|
1342
|
-
var r = O0(e);
|
1343
|
-
r in a ? S0.f(a, r, E0(0, t)) : a[r] = t;
|
1344
|
-
}, eo = iu, C0 = Rr, w0 = $0, A0 = Array, P0 = Math.max, R0 = function(a, e, t) {
|
1345
|
-
for (var r = C0(a), i = eo(e, r), n = eo(t === void 0 ? r : t, r), o = A0(P0(n - i, 0)), s = 0; i < n; i++, s++)
|
1346
|
-
w0(o, s, a[i]);
|
1347
|
-
return o.length = s, o;
|
1348
|
-
}, I0 = Vi, dt = Y, an = k, N0 = Wi, M0 = K, _0 = je, D0 = qu, to = ge, V0 = du, L0 = Qi, k0 = lt, Fa = pe, B0 = ut, ro = R0, ao = Ki, F0 = _r, j0 = zu, U0 = L, Qe = j0.UNSUPPORTED_Y, io = 4294967295, z0 = Math.min, vl = [].push, G0 = an(/./.exec), Ke = an(vl), pt = an("".slice), H0 = !U0(function() {
|
1376
|
+
var _a = Y, tl = L, A0 = Hi, P0 = J, R0 = je, N0 = he, I0 = uu, M0 = Xi, _0 = ut, Ks = pe, V0 = ot, Zs = Wi, D0 = ku, k0 = k, qe = D0.UNSUPPORTED_Y, L0 = 4294967295, B0 = Math.min, Va = tl([].push), Da = tl("".slice), j0 = !k0(function() {
|
1349
1377
|
var a = /(?:)/, e = a.exec;
|
1350
1378
|
a.exec = function() {
|
1351
1379
|
return e.apply(this, arguments);
|
1352
1380
|
};
|
1353
1381
|
var t = "ab".split(a);
|
1354
1382
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
1355
|
-
})
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
return [];
|
1364
|
-
if (i === void 0)
|
1365
|
-
return [o];
|
1366
|
-
if (!D0(i))
|
1367
|
-
return dt(e, o, i, s);
|
1368
|
-
for (var u = [], l = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, f = new RegExp(i.source, l + "g"), c, v, d; (c = dt(F0, f, o)) && (v = f.lastIndex, !(v > h && (Ke(u, pt(o, h, c.index)), c.length > 1 && c.index < o.length && I0(vl, u, ro(c, 1)), d = c[0].length, h = v, u.length >= s))); )
|
1369
|
-
f.lastIndex === c.index && f.lastIndex++;
|
1370
|
-
return h === o.length ? (d || !G0(f, "")) && Ke(u, "") : Ke(u, pt(o, h)), u.length > s ? ro(u, 0, s) : u;
|
1371
|
-
} : "0".split(void 0, 0).length ? r = function(i, n) {
|
1372
|
-
return i === void 0 && n === 0 ? [] : dt(e, this, i, n);
|
1373
|
-
} : r = e, [
|
1383
|
+
}), Js = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
1384
|
+
"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
|
1385
|
+
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
1386
|
+
A0("split", function(a, e, t) {
|
1387
|
+
var r = "0".split(void 0, 0).length ? function(i, n) {
|
1388
|
+
return i === void 0 && n === 0 ? [] : _a(e, this, i, n);
|
1389
|
+
} : e;
|
1390
|
+
return [
|
1374
1391
|
// `String.prototype.split` method
|
1375
1392
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
1376
1393
|
function(n, o) {
|
1377
|
-
var s =
|
1378
|
-
return u ?
|
1394
|
+
var s = N0(this), u = R0(n) ? void 0 : V0(n, a);
|
1395
|
+
return u ? _a(u, n, s, o) : _a(r, Ks(s), n, o);
|
1379
1396
|
},
|
1380
1397
|
// `RegExp.prototype[@@split]` method
|
1381
1398
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
@@ -1383,63 +1400,66 @@ N0("split", function(a, e, t) {
|
|
1383
1400
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
1384
1401
|
// the 'y' flag.
|
1385
1402
|
function(i, n) {
|
1386
|
-
var o =
|
1387
|
-
if (
|
1388
|
-
|
1389
|
-
|
1403
|
+
var o = P0(this), s = Ks(i);
|
1404
|
+
if (!Js) {
|
1405
|
+
var u = t(r, o, s, n, r !== e);
|
1406
|
+
if (u.done)
|
1407
|
+
return u.value;
|
1408
|
+
}
|
1409
|
+
var l = I0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (qe ? "g" : "y"), c = new l(qe ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? L0 : n >>> 0;
|
1390
1410
|
if (v === 0)
|
1391
1411
|
return [];
|
1392
1412
|
if (s.length === 0)
|
1393
|
-
return
|
1413
|
+
return Zs(c, s) === null ? [s] : [];
|
1394
1414
|
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
1395
|
-
c.lastIndex =
|
1396
|
-
var y =
|
1397
|
-
if (y === null || (x =
|
1398
|
-
g =
|
1415
|
+
c.lastIndex = qe ? 0 : g;
|
1416
|
+
var y = Zs(c, qe ? Da(s, g) : s), x;
|
1417
|
+
if (y === null || (x = B0(_0(c.lastIndex + (qe ? g : 0)), s.length)) === d)
|
1418
|
+
g = M0(s, g, h);
|
1399
1419
|
else {
|
1400
|
-
if (
|
1420
|
+
if (Va(p, Da(s, d, g)), p.length === v)
|
1401
1421
|
return p;
|
1402
1422
|
for (var b = 1; b <= y.length - 1; b++)
|
1403
|
-
if (
|
1423
|
+
if (Va(p, y[b]), p.length === v)
|
1404
1424
|
return p;
|
1405
1425
|
g = d = x;
|
1406
1426
|
}
|
1407
1427
|
}
|
1408
|
-
return
|
1428
|
+
return Va(p, Da(s, d)), p;
|
1409
1429
|
}
|
1410
1430
|
];
|
1411
|
-
}, !
|
1412
|
-
var
|
1431
|
+
}, Js || !j0, qe);
|
1432
|
+
var Nr = { exports: {} }, yt = { exports: {} };
|
1413
1433
|
(function() {
|
1414
1434
|
var a, e, t, r, i, n;
|
1415
|
-
typeof performance < "u" && performance !== null && performance.now ?
|
1435
|
+
typeof performance < "u" && performance !== null && performance.now ? yt.exports = function() {
|
1416
1436
|
return performance.now();
|
1417
|
-
} : typeof process < "u" && process !== null && process.hrtime ? (
|
1437
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (yt.exports = function() {
|
1418
1438
|
return (a() - i) / 1e6;
|
1419
1439
|
}, e = process.hrtime, a = function() {
|
1420
1440
|
var o;
|
1421
1441
|
return o = e(), o[0] * 1e9 + o[1];
|
1422
|
-
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (
|
1442
|
+
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (yt.exports = function() {
|
1423
1443
|
return Date.now() - t;
|
1424
|
-
}, t = Date.now()) : (
|
1444
|
+
}, t = Date.now()) : (yt.exports = function() {
|
1425
1445
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
1426
1446
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
1427
|
-
}).call(
|
1428
|
-
var
|
1429
|
-
for (var
|
1430
|
-
st = be[
|
1431
|
-
if (!st ||
|
1432
|
-
var
|
1447
|
+
}).call(Ke);
|
1448
|
+
var F0 = yt.exports, U0 = F0, be = typeof window > "u" ? Ke : window, er = ["moz", "webkit"], rt = "AnimationFrame", st = be["request" + rt], St = be["cancel" + rt] || be["cancelRequest" + rt];
|
1449
|
+
for (var dt = 0; !st && dt < er.length; dt++)
|
1450
|
+
st = be[er[dt] + "Request" + rt], St = be[er[dt] + "Cancel" + rt] || be[er[dt] + "CancelRequest" + rt];
|
1451
|
+
if (!st || !St) {
|
1452
|
+
var ka = 0, eo = 0, Me = [], G0 = 1e3 / 60;
|
1433
1453
|
st = function(a) {
|
1434
1454
|
if (Me.length === 0) {
|
1435
|
-
var e =
|
1436
|
-
|
1455
|
+
var e = U0(), t = Math.max(0, G0 - (e - ka));
|
1456
|
+
ka = t + e, setTimeout(function() {
|
1437
1457
|
var r = Me.slice(0);
|
1438
1458
|
Me.length = 0;
|
1439
1459
|
for (var i = 0; i < r.length; i++)
|
1440
1460
|
if (!r[i].cancelled)
|
1441
1461
|
try {
|
1442
|
-
r[i].callback(
|
1462
|
+
r[i].callback(ka);
|
1443
1463
|
} catch (n) {
|
1444
1464
|
setTimeout(function() {
|
1445
1465
|
throw n;
|
@@ -1448,53 +1468,53 @@ if (!st || !$t) {
|
|
1448
1468
|
}, Math.round(t));
|
1449
1469
|
}
|
1450
1470
|
return Me.push({
|
1451
|
-
handle: ++
|
1471
|
+
handle: ++eo,
|
1452
1472
|
callback: a,
|
1453
1473
|
cancelled: !1
|
1454
|
-
}),
|
1455
|
-
},
|
1474
|
+
}), eo;
|
1475
|
+
}, St = function(a) {
|
1456
1476
|
for (var e = 0; e < Me.length; e++)
|
1457
1477
|
Me[e].handle === a && (Me[e].cancelled = !0);
|
1458
1478
|
};
|
1459
1479
|
}
|
1460
|
-
|
1480
|
+
Nr.exports = function(a) {
|
1461
1481
|
return st.call(be, a);
|
1462
1482
|
};
|
1463
|
-
|
1464
|
-
|
1483
|
+
Nr.exports.cancel = function() {
|
1484
|
+
St.apply(be, arguments);
|
1465
1485
|
};
|
1466
|
-
|
1467
|
-
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame =
|
1486
|
+
Nr.exports.polyfill = function(a) {
|
1487
|
+
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = St;
|
1468
1488
|
};
|
1469
|
-
var
|
1470
|
-
const
|
1471
|
-
var
|
1472
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
1489
|
+
var z0 = Nr.exports;
|
1490
|
+
const La = /* @__PURE__ */ Po(z0);
|
1491
|
+
var rl = `
|
1492
|
+
\v\f\r \u2028\u2029\uFEFF`, H0 = L, Y0 = he, X0 = pe, ci = rl, to = H0("".replace), W0 = RegExp("^[" + ci + "]+"), q0 = RegExp("(^|[^" + ci + "])[" + ci + "]+$"), Ba = function(a) {
|
1473
1493
|
return function(e) {
|
1474
|
-
var t =
|
1475
|
-
return a & 1 && (t =
|
1494
|
+
var t = X0(Y0(e));
|
1495
|
+
return a & 1 && (t = to(t, W0, "")), a & 2 && (t = to(t, q0, "$1")), t;
|
1476
1496
|
};
|
1477
|
-
},
|
1497
|
+
}, Q0 = {
|
1478
1498
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
1479
1499
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
1480
|
-
start:
|
1500
|
+
start: Ba(1),
|
1481
1501
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
1482
1502
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
1483
|
-
end:
|
1503
|
+
end: Ba(2),
|
1484
1504
|
// `String.prototype.trim` method
|
1485
1505
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
1486
|
-
trim:
|
1487
|
-
},
|
1488
|
-
return
|
1489
|
-
return !!
|
1506
|
+
trim: Ba(3)
|
1507
|
+
}, K0 = Or.PROPER, Z0 = k, ro = rl, ao = "
", J0 = function(a) {
|
1508
|
+
return Z0(function() {
|
1509
|
+
return !!ro[a]() || ao[a]() !== ao || K0 && ro[a].name !== a;
|
1490
1510
|
});
|
1491
|
-
},
|
1492
|
-
|
1511
|
+
}, eb = ee, tb = Q0.trim, rb = J0;
|
1512
|
+
eb({ target: "String", proto: !0, forced: rb("trim") }, {
|
1493
1513
|
trim: function() {
|
1494
|
-
return
|
1514
|
+
return tb(this);
|
1495
1515
|
}
|
1496
1516
|
});
|
1497
|
-
var
|
1517
|
+
var ab = function(a) {
|
1498
1518
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
1499
1519
|
var e = {
|
1500
1520
|
aliceblue: "f0f8ff",
|
@@ -1724,30 +1744,30 @@ var lb = function(a) {
|
|
1724
1744
|
return v;
|
1725
1745
|
};
|
1726
1746
|
};
|
1727
|
-
const
|
1728
|
-
var
|
1729
|
-
|
1747
|
+
const gi = /* @__PURE__ */ Po(ab);
|
1748
|
+
var ib = ee, nb = wr, sb = Zo.indexOf, ob = Ju, di = nb([].indexOf), al = !!di && 1 / di([1], 1, -0) < 0, ub = al || !ob("indexOf");
|
1749
|
+
ib({ target: "Array", proto: !0, forced: ub }, {
|
1730
1750
|
indexOf: function(e) {
|
1731
1751
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
1732
|
-
return
|
1752
|
+
return al ? di(this, e, t) || 0 : sb(this, e, t);
|
1733
1753
|
}
|
1734
1754
|
});
|
1735
|
-
var
|
1736
|
-
|
1755
|
+
var lb = ee, hb = L, vb = Qi, fb = he, io = pe, cb = Ki, gb = hb("".indexOf);
|
1756
|
+
lb({ target: "String", proto: !0, forced: !cb("includes") }, {
|
1737
1757
|
includes: function(e) {
|
1738
|
-
return !!~
|
1739
|
-
|
1740
|
-
|
1758
|
+
return !!~gb(
|
1759
|
+
io(fb(this)),
|
1760
|
+
io(vb(e)),
|
1741
1761
|
arguments.length > 1 ? arguments[1] : void 0
|
1742
1762
|
);
|
1743
1763
|
}
|
1744
1764
|
});
|
1745
|
-
var
|
1746
|
-
return
|
1747
|
-
},
|
1748
|
-
|
1765
|
+
var db = Be, pb = Array.isArray || function(e) {
|
1766
|
+
return db(e) === "Array";
|
1767
|
+
}, yb = ee, mb = L, bb = pb, xb = mb([].reverse), no = [1, 2];
|
1768
|
+
yb({ target: "Array", proto: !0, forced: String(no) === String(no.reverse()) }, {
|
1749
1769
|
reverse: function() {
|
1750
|
-
return
|
1770
|
+
return bb(this) && (this.length = this.length), xb(this);
|
1751
1771
|
}
|
1752
1772
|
});
|
1753
1773
|
/*! *****************************************************************************
|
@@ -1764,23 +1784,23 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1764
1784
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
1765
1785
|
PERFORMANCE OF THIS SOFTWARE.
|
1766
1786
|
***************************************************************************** */
|
1767
|
-
var
|
1768
|
-
return (
|
1787
|
+
var il = function(a, e) {
|
1788
|
+
return (il = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
1769
1789
|
t.__proto__ = r;
|
1770
1790
|
} || function(t, r) {
|
1771
1791
|
for (var i in r)
|
1772
1792
|
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
1773
1793
|
})(a, e);
|
1774
1794
|
};
|
1775
|
-
function
|
1795
|
+
function nl(a, e) {
|
1776
1796
|
if (typeof e != "function" && e !== null)
|
1777
1797
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
1778
1798
|
function t() {
|
1779
1799
|
this.constructor = a;
|
1780
1800
|
}
|
1781
|
-
|
1801
|
+
il(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
1782
1802
|
}
|
1783
|
-
function
|
1803
|
+
function Tb(a) {
|
1784
1804
|
var e = "";
|
1785
1805
|
Array.isArray(a) || (a = [a]);
|
1786
1806
|
for (var t = 0; t < a.length; t++) {
|
@@ -1811,7 +1831,7 @@ function wb(a) {
|
|
1811
1831
|
}
|
1812
1832
|
return e;
|
1813
1833
|
}
|
1814
|
-
function
|
1834
|
+
function pi(a, e) {
|
1815
1835
|
var t = a[0], r = a[1];
|
1816
1836
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
1817
1837
|
}
|
@@ -1823,17 +1843,17 @@ function oe() {
|
|
1823
1843
|
throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
|
1824
1844
|
return !0;
|
1825
1845
|
}
|
1826
|
-
var
|
1827
|
-
function
|
1846
|
+
var Ee = Math.PI;
|
1847
|
+
function ja(a, e, t) {
|
1828
1848
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
1829
1849
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
1830
1850
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
1831
|
-
var s =
|
1851
|
+
var s = pi([(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);
|
1832
1852
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
1833
|
-
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g =
|
1834
|
-
a.cX = g[0] + (e + n) / 2, a.cY = g[1] + (t + o) / 2, a.phi1 = Math.atan2((l - d) / i, (u - v) / r), a.phi2 = Math.atan2((-l - d) / i, (-u - v) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 *
|
1853
|
+
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g = pi([v, d], a.xRot / 180 * Ee);
|
1854
|
+
a.cX = g[0] + (e + n) / 2, a.cY = g[1] + (t + o) / 2, a.phi1 = Math.atan2((l - d) / i, (u - v) / r), a.phi2 = Math.atan2((-l - d) / i, (-u - v) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 * Ee), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Ee), a.phi1 *= 180 / Ee, a.phi2 *= 180 / Ee;
|
1835
1855
|
}
|
1836
|
-
function
|
1856
|
+
function so(a, e, t) {
|
1837
1857
|
oe(a, e, t);
|
1838
1858
|
var r = a * a + e * e - t * t;
|
1839
1859
|
if (0 > r)
|
@@ -1843,17 +1863,16 @@ function vo(a, e, t) {
|
|
1843
1863
|
var i = Math.sqrt(r);
|
1844
1864
|
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)]];
|
1845
1865
|
}
|
1846
|
-
var
|
1847
|
-
function
|
1866
|
+
var U, ye = Math.PI / 180;
|
1867
|
+
function oo(a, e, t) {
|
1848
1868
|
return (1 - t) * a + t * e;
|
1849
1869
|
}
|
1850
|
-
function
|
1851
|
-
return a + Math.cos(r / 180 *
|
1870
|
+
function uo(a, e, t, r) {
|
1871
|
+
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
1852
1872
|
}
|
1853
|
-
function
|
1873
|
+
function lo(a, e, t, r) {
|
1854
1874
|
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;
|
1855
1875
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
1856
|
-
c === void 0 && (c = 1e-6);
|
1857
1876
|
var v = h * h / 4 - f;
|
1858
1877
|
if (v < -c)
|
1859
1878
|
return [];
|
@@ -1863,7 +1882,7 @@ function go(a, e, t, r) {
|
|
1863
1882
|
return [-h / 2 - d, -h / 2 + d];
|
1864
1883
|
}(u / s, l / s, i);
|
1865
1884
|
}
|
1866
|
-
function
|
1885
|
+
function ho(a, e, t, r, i) {
|
1867
1886
|
var n = 1 - i;
|
1868
1887
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
1869
1888
|
}
|
@@ -1912,8 +1931,8 @@ function po(a, e, t, r, i) {
|
|
1912
1931
|
if (O === 0)
|
1913
1932
|
delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
|
1914
1933
|
else {
|
1915
|
-
var
|
1916
|
-
v.rX = Math.abs(O) / Math.sqrt(q * E(
|
1934
|
+
var C = v.xRot * Math.PI / 180, I = Math.sin(C), _ = Math.cos(C), j = 1 / E(v.rX), P = 1 / E(v.rY), X = E(_) * j + E(I) * P, W = 2 * I * _ * (j - P), G = E(I) * j + E(_) * P, 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, R = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(R), K = Math.cos(R);
|
1935
|
+
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 * R / Math.PI;
|
1917
1936
|
}
|
1918
1937
|
return v.sweepFlag !== void 0 && 0 > O && (v.sweepFlag = +!v.sweepFlag), v;
|
1919
1938
|
});
|
@@ -1951,8 +1970,8 @@ function po(a, e, t, r, i) {
|
|
1951
1970
|
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 : d - l), c.type & (m.CURVE_TO | m.SMOOTH_CURVE_TO) ? (u = c.relative ? v + c.x2 : c.x2, l = c.relative ? d + c.y2 : c.y2) : (u = NaN, l = NaN), c.type & m.SMOOTH_QUAD_TO ? (h = isNaN(h) ? v : 2 * v - h, f = isNaN(f) ? d : 2 * d - f) : c.type & m.QUAD_TO ? (h = c.relative ? v + c.x1 : c.x1, f = c.relative ? d + 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) {
|
1952
1971
|
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 - d;
|
1953
1972
|
b = isNaN(h) ? c.x1 === void 0 ? b : c.relative ? c.x : c.x1 - v : h - v, T = isNaN(f) ? c.y1 === void 0 ? T : c.relative ? c.y : c.y1 - d : f - d;
|
1954
|
-
var O = c.x2 === void 0 ? 0 : c.relative ? c.x : c.x2 - v,
|
1955
|
-
y($) <= s && y(E) <= s && y(b) <= s && y(T) <= s && y(O) <= s && y(
|
1973
|
+
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 - d;
|
1974
|
+
y($) <= s && y(E) <= s && y(b) <= s && y(T) <= s && y(O) <= s && y(C) <= s && (x = !0);
|
1956
1975
|
}
|
1957
1976
|
return c.type & m.CLOSE_PATH && y(v - g) <= s && y(d - p) <= s && (x = !0), x ? [] : c;
|
1958
1977
|
});
|
@@ -1976,22 +1995,22 @@ function po(a, e, t, r, i) {
|
|
1976
1995
|
return i(function(s, u, l) {
|
1977
1996
|
return m.ARC === s.type ? function(h, f, c) {
|
1978
1997
|
var v, d, g, p;
|
1979
|
-
h.cX ||
|
1998
|
+
h.cX || ja(h, f, c);
|
1980
1999
|
for (var y = Math.min(h.phi1, h.phi2), x = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(x / 90), T = new Array(b), $ = f, E = c, O = 0; O < b; O++) {
|
1981
|
-
var
|
2000
|
+
var C = oo(h.phi1, h.phi2, O / b), I = oo(h.phi1, h.phi2, (O + 1) / b), _ = I - C, j = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = P[0], W = P[1], G = [Math.cos(I * ye), Math.sin(I * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(I * ye), H - j * Math.cos(I * ye)], R = Q[0], M = Q[1];
|
1982
2001
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
1983
|
-
var
|
1984
|
-
var
|
1985
|
-
return [h.cX +
|
2002
|
+
var K = function(ne, ge) {
|
2003
|
+
var Se = pi([ne * h.rX, ge * h.rY], h.xRot), ze = Se[0], It = Se[1];
|
2004
|
+
return [h.cX + ze, h.cY + It];
|
1986
2005
|
};
|
1987
|
-
v =
|
2006
|
+
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1], d = K(R, M), T[O].x2 = d[0], T[O].y2 = d[1], g = K(q, H), T[O].x = g[0], T[O].y = g[1], h.relative && (T[O].x1 -= $, T[O].y1 -= E, T[O].x2 -= $, T[O].y2 -= E, T[O].x -= $, T[O].y -= E), $ = (p = [T[O].x, T[O].y])[0], E = p[1];
|
1988
2007
|
}
|
1989
2008
|
return T;
|
1990
2009
|
}(s, s.relative ? 0 : u, s.relative ? 0 : l) : s;
|
1991
2010
|
});
|
1992
2011
|
}, a.ANNOTATE_ARCS = function() {
|
1993
2012
|
return i(function(s, u, l) {
|
1994
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
2013
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && ja(s, u, l), s;
|
1995
2014
|
});
|
1996
2015
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
1997
2016
|
var s = function(c) {
|
@@ -2009,77 +2028,77 @@ function po(a, e, t, r, i) {
|
|
2009
2028
|
}
|
2010
2029
|
if (g.type & m.DRAWING_COMMANDS && (p(v), y(d)), g.type & m.HORIZ_LINE_TO && p(g.x), g.type & m.VERT_LINE_TO && y(g.y), g.type & m.LINE_TO && (p(g.x), y(g.y)), g.type & m.CURVE_TO) {
|
2011
2030
|
p(g.x), y(g.y);
|
2012
|
-
for (var x = 0, b =
|
2013
|
-
0 < (R = b[x]) && 1 > R && p(
|
2014
|
-
for (var T = 0, $ =
|
2015
|
-
0 < (R = $[T]) && 1 > R && y(
|
2031
|
+
for (var x = 0, b = lo(v, g.x1, g.x2, g.x); x < b.length; x++)
|
2032
|
+
0 < (R = b[x]) && 1 > R && p(ho(v, g.x1, g.x2, g.x, R));
|
2033
|
+
for (var T = 0, $ = lo(d, g.y1, g.y2, g.y); T < $.length; T++)
|
2034
|
+
0 < (R = $[T]) && 1 > R && y(ho(d, g.y1, g.y2, g.y, R));
|
2016
2035
|
}
|
2017
2036
|
if (g.type & m.ARC) {
|
2018
|
-
p(g.x), y(g.y),
|
2019
|
-
for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX,
|
2020
|
-
var
|
2021
|
-
return
|
2022
|
-
},
|
2023
|
-
(R = q[
|
2024
|
-
for (var H = 0, Q =
|
2037
|
+
p(g.x), y(g.y), ja(g, v, d);
|
2038
|
+
for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX, C = Math.sin(E) * g.rX, I = -Math.sin(E) * g.rY, _ = Math.cos(E) * g.rY, j = g.phi1 < g.phi2 ? [g.phi1, g.phi2] : -180 > g.phi2 ? [g.phi2 + 360, g.phi1 + 360] : [g.phi2, g.phi1], P = j[0], X = j[1], W = function(M) {
|
2039
|
+
var K = M[0], ne = M[1], ge = 180 * Math.atan2(ne, K) / Math.PI;
|
2040
|
+
return ge < P ? ge + 360 : ge;
|
2041
|
+
}, G = 0, q = so(I, -O, 0).map(W); G < q.length; G++)
|
2042
|
+
(R = q[G]) > P && R < X && p(uo(g.cX, O, I, R));
|
2043
|
+
for (var H = 0, Q = so(_, -C, 0).map(W); H < Q.length; H++) {
|
2025
2044
|
var R;
|
2026
|
-
(R = Q[H]) > P && R < X && y(
|
2045
|
+
(R = Q[H]) > P && R < X && y(uo(g.cY, C, _, R));
|
2027
2046
|
}
|
2028
2047
|
}
|
2029
2048
|
return c;
|
2030
2049
|
});
|
2031
2050
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
2032
2051
|
};
|
2033
|
-
})(
|
2034
|
-
var se,
|
2052
|
+
})(U || (U = {}));
|
2053
|
+
var se, sl = function() {
|
2035
2054
|
function a() {
|
2036
2055
|
}
|
2037
2056
|
return a.prototype.round = function(e) {
|
2038
|
-
return this.transform(
|
2057
|
+
return this.transform(U.ROUND(e));
|
2039
2058
|
}, a.prototype.toAbs = function() {
|
2040
|
-
return this.transform(
|
2059
|
+
return this.transform(U.TO_ABS());
|
2041
2060
|
}, a.prototype.toRel = function() {
|
2042
|
-
return this.transform(
|
2061
|
+
return this.transform(U.TO_REL());
|
2043
2062
|
}, a.prototype.normalizeHVZ = function(e, t, r) {
|
2044
|
-
return this.transform(
|
2063
|
+
return this.transform(U.NORMALIZE_HVZ(e, t, r));
|
2045
2064
|
}, a.prototype.normalizeST = function() {
|
2046
|
-
return this.transform(
|
2065
|
+
return this.transform(U.NORMALIZE_ST());
|
2047
2066
|
}, a.prototype.qtToC = function() {
|
2048
|
-
return this.transform(
|
2067
|
+
return this.transform(U.QT_TO_C());
|
2049
2068
|
}, a.prototype.aToC = function() {
|
2050
|
-
return this.transform(
|
2069
|
+
return this.transform(U.A_TO_C());
|
2051
2070
|
}, a.prototype.sanitize = function(e) {
|
2052
|
-
return this.transform(
|
2071
|
+
return this.transform(U.SANITIZE(e));
|
2053
2072
|
}, a.prototype.translate = function(e, t) {
|
2054
|
-
return this.transform(
|
2073
|
+
return this.transform(U.TRANSLATE(e, t));
|
2055
2074
|
}, a.prototype.scale = function(e, t) {
|
2056
|
-
return this.transform(
|
2075
|
+
return this.transform(U.SCALE(e, t));
|
2057
2076
|
}, a.prototype.rotate = function(e, t, r) {
|
2058
|
-
return this.transform(
|
2077
|
+
return this.transform(U.ROTATE(e, t, r));
|
2059
2078
|
}, a.prototype.matrix = function(e, t, r, i, n, o) {
|
2060
|
-
return this.transform(
|
2079
|
+
return this.transform(U.MATRIX(e, t, r, i, n, o));
|
2061
2080
|
}, a.prototype.skewX = function(e) {
|
2062
|
-
return this.transform(
|
2081
|
+
return this.transform(U.SKEW_X(e));
|
2063
2082
|
}, a.prototype.skewY = function(e) {
|
2064
|
-
return this.transform(
|
2083
|
+
return this.transform(U.SKEW_Y(e));
|
2065
2084
|
}, a.prototype.xSymmetry = function(e) {
|
2066
|
-
return this.transform(
|
2085
|
+
return this.transform(U.X_AXIS_SYMMETRY(e));
|
2067
2086
|
}, a.prototype.ySymmetry = function(e) {
|
2068
|
-
return this.transform(
|
2087
|
+
return this.transform(U.Y_AXIS_SYMMETRY(e));
|
2069
2088
|
}, a.prototype.annotateArcs = function() {
|
2070
|
-
return this.transform(
|
2089
|
+
return this.transform(U.ANNOTATE_ARCS());
|
2071
2090
|
}, a;
|
2072
|
-
}(),
|
2091
|
+
}(), Ob = function(a) {
|
2073
2092
|
return a === " " || a === " " || a === "\r" || a === `
|
2074
2093
|
`;
|
2075
|
-
},
|
2094
|
+
}, vo = function(a) {
|
2076
2095
|
return 48 <= a.charCodeAt(0) && a.charCodeAt(0) <= 57;
|
2077
|
-
},
|
2096
|
+
}, Sb = function(a) {
|
2078
2097
|
function e() {
|
2079
2098
|
var t = a.call(this) || this;
|
2080
2099
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
2081
2100
|
}
|
2082
|
-
return
|
2101
|
+
return nl(e, a), e.prototype.finish = function(t) {
|
2083
2102
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
|
2084
2103
|
throw new SyntaxError("Unterminated command at the path end.");
|
2085
2104
|
return t;
|
@@ -2089,8 +2108,8 @@ var se, pl = function() {
|
|
2089
2108
|
for (var n = function(f) {
|
2090
2109
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
2091
2110
|
}, o = 0; o < t.length; o++) {
|
2092
|
-
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 =
|
2093
|
-
if (!
|
2111
|
+
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 = vo(s) && (this.curNumber === "0" && s === "0" || u);
|
2112
|
+
if (!vo(s) || l)
|
2094
2113
|
if (s !== "e" && s !== "E")
|
2095
2114
|
if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
|
2096
2115
|
if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
@@ -2105,9 +2124,9 @@ var se, pl = function() {
|
|
2105
2124
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
|
2106
2125
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
2107
2126
|
}
|
2108
|
-
this.curArgs.push(h), this.curArgs.length ===
|
2127
|
+
this.curArgs.push(h), this.curArgs.length === Eb[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;
|
2109
2128
|
}
|
2110
|
-
if (!
|
2129
|
+
if (!Ob(s))
|
2111
2130
|
if (s === "," && this.canParseCommandOrComma)
|
2112
2131
|
this.canParseCommandOrComma = !1;
|
2113
2132
|
else if (s !== "+" && s !== "-" && s !== ".")
|
@@ -2165,15 +2184,15 @@ var se, pl = function() {
|
|
2165
2184
|
return i;
|
2166
2185
|
} } });
|
2167
2186
|
}, e;
|
2168
|
-
}(
|
2187
|
+
}(sl), m = function(a) {
|
2169
2188
|
function e(t) {
|
2170
2189
|
var r = a.call(this) || this;
|
2171
2190
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
2172
2191
|
}
|
2173
|
-
return
|
2192
|
+
return nl(e, a), e.prototype.encode = function() {
|
2174
2193
|
return e.encode(this.commands);
|
2175
2194
|
}, e.prototype.getBounds = function() {
|
2176
|
-
var t =
|
2195
|
+
var t = U.CALCULATE_BOUNDS();
|
2177
2196
|
return this.transform(t), t;
|
2178
2197
|
}, e.prototype.transform = function(t) {
|
2179
2198
|
for (var r = [], i = 0, n = this.commands; i < n.length; i++) {
|
@@ -2182,36 +2201,36 @@ var se, pl = function() {
|
|
2182
2201
|
}
|
2183
2202
|
return this.commands = r, this;
|
2184
2203
|
}, e.encode = function(t) {
|
2185
|
-
return
|
2204
|
+
return Tb(t);
|
2186
2205
|
}, e.parse = function(t) {
|
2187
|
-
var r = new
|
2206
|
+
var r = new Sb(), i = [];
|
2188
2207
|
return r.parse(t, i), r.finish(i), i;
|
2189
2208
|
}, 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;
|
2190
|
-
}(
|
2209
|
+
}(sl), Eb = ((se = {})[m.MOVE_TO] = 2, se[m.LINE_TO] = 2, se[m.HORIZ_LINE_TO] = 1, se[m.VERT_LINE_TO] = 1, se[m.CLOSE_PATH] = 0, se[m.QUAD_TO] = 4, se[m.SMOOTH_QUAD_TO] = 2, se[m.CURVE_TO] = 6, se[m.SMOOTH_CURVE_TO] = 4, se[m.ARC] = 7, se), $b = Y, wb = fe, Cb = yr, Ab = Du, fo = RegExp.prototype, Pb = function(a) {
|
2191
2210
|
var e = a.flags;
|
2192
|
-
return e === void 0 && !("flags" in
|
2193
|
-
},
|
2194
|
-
return
|
2195
|
-
}),
|
2196
|
-
(
|
2197
|
-
var e =
|
2211
|
+
return e === void 0 && !("flags" in fo) && !wb(a, "flags") && Cb(fo, a) ? $b(Ab, a) : e;
|
2212
|
+
}, Rb = Or.PROPER, Nb = Ue, Ib = J, co = pe, Mb = k, _b = Pb, en = "toString", ol = RegExp.prototype, ul = ol[en], Vb = Mb(function() {
|
2213
|
+
return ul.call({ source: "a", flags: "b" }) !== "/a/b";
|
2214
|
+
}), Db = Rb && ul.name !== en;
|
2215
|
+
(Vb || Db) && Nb(ol, en, function() {
|
2216
|
+
var e = Ib(this), t = co(e.source), r = co(_b(e));
|
2198
2217
|
return "/" + t + "/" + r;
|
2199
2218
|
}, { unsafe: !0 });
|
2200
|
-
function
|
2219
|
+
function lr(a) {
|
2201
2220
|
"@babel/helpers - typeof";
|
2202
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
2221
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? lr = function(e) {
|
2203
2222
|
return typeof e;
|
2204
|
-
} :
|
2223
|
+
} : lr = function(e) {
|
2205
2224
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
2206
|
-
},
|
2225
|
+
}, lr(a);
|
2207
2226
|
}
|
2208
|
-
function
|
2227
|
+
function kb(a, e) {
|
2209
2228
|
if (!(a instanceof e))
|
2210
2229
|
throw new TypeError("Cannot call a class as a function");
|
2211
2230
|
}
|
2212
|
-
var
|
2213
|
-
function
|
2214
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
2231
|
+
var Lb = [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], Bb = [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];
|
2232
|
+
function jb(a, e, t, r, i) {
|
2233
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || lr(a) !== "object" || !("getContext" in a))
|
2215
2234
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
2216
2235
|
var n = a.getContext("2d");
|
2217
2236
|
try {
|
@@ -2220,69 +2239,69 @@ function Xb(a, e, t, r, i) {
|
|
2220
2239
|
throw new Error("unable to access image data: " + o);
|
2221
2240
|
}
|
2222
2241
|
}
|
2223
|
-
function
|
2242
|
+
function Fb(a, e, t, r, i, n) {
|
2224
2243
|
if (!(isNaN(n) || n < 1)) {
|
2225
2244
|
n |= 0;
|
2226
|
-
var o =
|
2227
|
-
o =
|
2245
|
+
var o = jb(a, e, t, r, i);
|
2246
|
+
o = Ub(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
2228
2247
|
}
|
2229
2248
|
}
|
2230
|
-
function
|
2231
|
-
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
|
2232
|
-
v = v.next = new
|
2249
|
+
function Ub(a, e, t, r, i, n) {
|
2250
|
+
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 go(), v = c, d, g = 1; g < s; g++)
|
2251
|
+
v = v.next = new go(), g === h && (d = v);
|
2233
2252
|
v.next = c;
|
2234
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
2253
|
+
for (var p = null, y = null, x = 0, b = 0, T = Lb[n], $ = Bb[n], E = 0; E < i; E++) {
|
2235
2254
|
v = c;
|
2236
|
-
for (var O = o[b],
|
2237
|
-
v.r = O, v.g =
|
2238
|
-
for (var P = 0, X = 0, W = 0,
|
2239
|
-
var
|
2240
|
-
M += (v.r =
|
2255
|
+
for (var O = o[b], C = o[b + 1], I = o[b + 2], _ = o[b + 3], j = 0; j < h; j++)
|
2256
|
+
v.r = O, v.g = C, v.b = I, v.a = _, v = v.next;
|
2257
|
+
for (var P = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * I, R = h * _, M = f * O, K = f * C, ne = f * I, ge = f * _, Se = 1; Se < h; Se++) {
|
2258
|
+
var ze = b + ((u < Se ? u : Se) << 2), It = o[ze], an = o[ze + 1], nn = o[ze + 2], sn = o[ze + 3], Mt = h - Se;
|
2259
|
+
M += (v.r = It) * Mt, K += (v.g = an) * Mt, ne += (v.b = nn) * Mt, ge += (v.a = sn) * Mt, P += It, X += an, W += nn, G += sn, v = v.next;
|
2241
2260
|
}
|
2242
2261
|
p = c, y = d;
|
2243
|
-
for (var
|
2244
|
-
var
|
2245
|
-
if (o[b + 3] =
|
2246
|
-
var
|
2247
|
-
o[b] = (M * T
|
2262
|
+
for (var Dr = 0; Dr < r; Dr++) {
|
2263
|
+
var kr = ge * T >>> $;
|
2264
|
+
if (o[b + 3] = kr, kr !== 0) {
|
2265
|
+
var Lr = 255 / kr;
|
2266
|
+
o[b] = (M * T >>> $) * Lr, o[b + 1] = (K * T >>> $) * Lr, o[b + 2] = (ne * T >>> $) * Lr;
|
2248
2267
|
} else
|
2249
2268
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
2250
|
-
M -= q,
|
2251
|
-
var Ae =
|
2252
|
-
Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2],
|
2253
|
-
var
|
2254
|
-
q +=
|
2269
|
+
M -= q, K -= H, ne -= Q, ge -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
|
2270
|
+
var Ae = Dr + n + 1;
|
2271
|
+
Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], G += p.a = o[Ae + 3], M += P, K += X, ne += W, ge += G, p = p.next;
|
2272
|
+
var _t = y, on = _t.r, un = _t.g, ln = _t.b, hn = _t.a;
|
2273
|
+
q += on, H += un, Q += ln, R += hn, P -= on, X -= un, W -= ln, G -= hn, y = y.next, b += 4;
|
2255
2274
|
}
|
2256
2275
|
x += r;
|
2257
2276
|
}
|
2258
|
-
for (var
|
2259
|
-
b =
|
2260
|
-
var Pe = o[b], Re = o[b + 1],
|
2277
|
+
for (var He = 0; He < r; He++) {
|
2278
|
+
b = He << 2;
|
2279
|
+
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3], Br = h * Pe, jr = h * Re, Fr = h * Ne, Ur = h * te, Vt = f * Pe, Dt = f * Re, kt = f * Ne, Lt = f * te;
|
2261
2280
|
v = c;
|
2262
|
-
for (var
|
2263
|
-
v.r = Pe, v.g = Re, v.b =
|
2264
|
-
for (var
|
2265
|
-
b =
|
2266
|
-
var
|
2267
|
-
|
2281
|
+
for (var vn = 0; vn < h; vn++)
|
2282
|
+
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
2283
|
+
for (var fn = r, Gr = 0, zr = 0, Hr = 0, Yr = 0, Bt = 1; Bt <= n; Bt++) {
|
2284
|
+
b = fn + He << 2;
|
2285
|
+
var jt = h - Bt;
|
2286
|
+
Vt += (v.r = Pe = o[b]) * jt, Dt += (v.g = Re = o[b + 1]) * jt, kt += (v.b = Ne = o[b + 2]) * jt, Lt += (v.a = te = o[b + 3]) * jt, Yr += Pe, Gr += Re, zr += Ne, Hr += te, v = v.next, Bt < l && (fn += r);
|
2268
2287
|
}
|
2269
|
-
b =
|
2270
|
-
for (var
|
2288
|
+
b = He, p = c, y = d;
|
2289
|
+
for (var Xr = 0; Xr < i; Xr++) {
|
2271
2290
|
var re = b << 2;
|
2272
|
-
o[re + 3] = te =
|
2291
|
+
o[re + 3] = te = Lt * T >>> $, te > 0 ? (te = 255 / te, o[re] = (Vt * T >>> $) * te, o[re + 1] = (Dt * T >>> $) * te, o[re + 2] = (kt * T >>> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Vt -= Br, Dt -= jr, kt -= Fr, Lt -= Ur, Br -= p.r, jr -= p.g, Fr -= p.b, Ur -= p.a, re = He + ((re = Xr + h) < l ? re : l) * r << 2, Vt += Yr += p.r = o[re], Dt += Gr += p.g = o[re + 1], kt += zr += p.b = o[re + 2], Lt += Hr += p.a = o[re + 3], p = p.next, Br += Pe = y.r, jr += Re = y.g, Fr += Ne = y.b, Ur += te = y.a, Yr -= Pe, Gr -= Re, zr -= Ne, Hr -= te, y = y.next, b += r;
|
2273
2292
|
}
|
2274
2293
|
}
|
2275
2294
|
return a;
|
2276
2295
|
}
|
2277
|
-
var
|
2296
|
+
var go = (
|
2278
2297
|
/**
|
2279
2298
|
* Set properties.
|
2280
2299
|
*/
|
2281
2300
|
function a() {
|
2282
|
-
|
2301
|
+
kb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
2283
2302
|
}
|
2284
2303
|
);
|
2285
|
-
function
|
2304
|
+
function Gb() {
|
2286
2305
|
var {
|
2287
2306
|
DOMParser: a
|
2288
2307
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
@@ -2302,7 +2321,7 @@ function Qb() {
|
|
2302
2321
|
};
|
2303
2322
|
return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
|
2304
2323
|
}
|
2305
|
-
function
|
2324
|
+
function zb(a) {
|
2306
2325
|
var {
|
2307
2326
|
DOMParser: e,
|
2308
2327
|
canvas: t,
|
@@ -2318,76 +2337,76 @@ function Kb(a) {
|
|
2318
2337
|
createImage: t.loadImage
|
2319
2338
|
};
|
2320
2339
|
}
|
2321
|
-
var
|
2340
|
+
var r2 = /* @__PURE__ */ Object.freeze({
|
2322
2341
|
__proto__: null,
|
2323
|
-
offscreen:
|
2324
|
-
node:
|
2342
|
+
offscreen: Gb,
|
2343
|
+
node: zb
|
2325
2344
|
});
|
2326
|
-
function
|
2345
|
+
function ht(a) {
|
2327
2346
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
2328
2347
|
}
|
2329
|
-
function
|
2348
|
+
function Hb(a) {
|
2330
2349
|
return a.replace(/^[\n \t]+/, "");
|
2331
2350
|
}
|
2332
|
-
function
|
2351
|
+
function Yb(a) {
|
2333
2352
|
return a.replace(/[\n \t]+$/, "");
|
2334
2353
|
}
|
2335
2354
|
function ie(a) {
|
2336
2355
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
2337
2356
|
return e.map(parseFloat);
|
2338
2357
|
}
|
2339
|
-
var
|
2340
|
-
function
|
2341
|
-
return
|
2358
|
+
var Xb = /^[A-Z-]+$/;
|
2359
|
+
function Wb(a) {
|
2360
|
+
return Xb.test(a) ? a.toLowerCase() : a;
|
2342
2361
|
}
|
2343
|
-
function
|
2362
|
+
function ll(a) {
|
2344
2363
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
2345
2364
|
return e[2] || e[3] || e[4];
|
2346
2365
|
}
|
2347
|
-
function
|
2366
|
+
function qb(a) {
|
2348
2367
|
if (!a.startsWith("rgb"))
|
2349
2368
|
return a;
|
2350
2369
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
2351
2370
|
return t;
|
2352
2371
|
}
|
2353
|
-
var
|
2372
|
+
var Qb = /(\[[^\]]+\])/g, Kb = /(#[^\s+>~.[:]+)/g, Zb = /(\.[^\s+>~.[:]+)/g, Jb = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, e1 = /(:[\w-]+\([^)]*\))/gi, t1 = /(:[^\s+>~.[:]+)/g, r1 = /([^\s+>~.[:]+)/g;
|
2354
2373
|
function _e(a, e) {
|
2355
2374
|
var t = e.exec(a);
|
2356
2375
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
2357
2376
|
}
|
2358
|
-
function
|
2377
|
+
function a1(a) {
|
2359
2378
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
2360
|
-
return [t, r] = _e(t,
|
2379
|
+
return [t, r] = _e(t, Qb), e[1] += r, [t, r] = _e(t, Kb), e[0] += r, [t, r] = _e(t, Zb), e[1] += r, [t, r] = _e(t, Jb), e[2] += r, [t, r] = _e(t, e1), e[1] += r, [t, r] = _e(t, t1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, r1), e[2] += r, e.join("");
|
2361
2380
|
}
|
2362
|
-
var
|
2363
|
-
function
|
2381
|
+
var at = 1e-8;
|
2382
|
+
function po(a) {
|
2364
2383
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
2365
2384
|
}
|
2366
|
-
function
|
2367
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
2385
|
+
function yi(a, e) {
|
2386
|
+
return (a[0] * e[0] + a[1] * e[1]) / (po(a) * po(e));
|
2368
2387
|
}
|
2369
|
-
function
|
2370
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
2388
|
+
function yo(a, e) {
|
2389
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(yi(a, e));
|
2371
2390
|
}
|
2372
|
-
function
|
2391
|
+
function mo(a) {
|
2373
2392
|
return a * a * a;
|
2374
2393
|
}
|
2375
|
-
function
|
2394
|
+
function bo(a) {
|
2376
2395
|
return 3 * a * a * (1 - a);
|
2377
2396
|
}
|
2378
|
-
function
|
2397
|
+
function xo(a) {
|
2379
2398
|
return 3 * a * (1 - a) * (1 - a);
|
2380
2399
|
}
|
2381
|
-
function
|
2400
|
+
function To(a) {
|
2382
2401
|
return (1 - a) * (1 - a) * (1 - a);
|
2383
2402
|
}
|
2384
|
-
function
|
2403
|
+
function Oo(a) {
|
2385
2404
|
return a * a;
|
2386
2405
|
}
|
2387
|
-
function
|
2406
|
+
function So(a) {
|
2388
2407
|
return 2 * a * (1 - a);
|
2389
2408
|
}
|
2390
|
-
function
|
2409
|
+
function Eo(a) {
|
2391
2410
|
return (1 - a) * (1 - a);
|
2392
2411
|
}
|
2393
2412
|
class S {
|
@@ -2402,7 +2421,7 @@ class S {
|
|
2402
2421
|
document: t,
|
2403
2422
|
name: r
|
2404
2423
|
} = this;
|
2405
|
-
return
|
2424
|
+
return ht(this.getString()).trim().split(e).map((i) => new S(t, r, i));
|
2406
2425
|
}
|
2407
2426
|
hasValue(e) {
|
2408
2427
|
var {
|
@@ -2450,7 +2469,7 @@ class S {
|
|
2450
2469
|
}
|
2451
2470
|
getColor(e) {
|
2452
2471
|
var t = this.getString(e);
|
2453
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
2472
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = qb(t), this.value = t), t;
|
2454
2473
|
}
|
2455
2474
|
getDpi() {
|
2456
2475
|
return 96;
|
@@ -2551,7 +2570,7 @@ class S {
|
|
2551
2570
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
2552
2571
|
;
|
2553
2572
|
if (e.hasValue() && this.isString() && i !== 3) {
|
2554
|
-
var o = new
|
2573
|
+
var o = new gi(t);
|
2555
2574
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
2556
2575
|
}
|
2557
2576
|
return new S(this.document, this.name, t);
|
@@ -2570,7 +2589,7 @@ S.textBaselineMapping = {
|
|
2570
2589
|
hanging: "hanging",
|
2571
2590
|
mathematical: "alphabetic"
|
2572
2591
|
};
|
2573
|
-
class
|
2592
|
+
class i1 {
|
2574
2593
|
constructor() {
|
2575
2594
|
this.viewPorts = [];
|
2576
2595
|
}
|
@@ -2630,7 +2649,7 @@ class V {
|
|
2630
2649
|
this.x = i, this.y = n;
|
2631
2650
|
}
|
2632
2651
|
}
|
2633
|
-
class
|
2652
|
+
class n1 {
|
2634
2653
|
constructor(e) {
|
2635
2654
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
2636
2655
|
}
|
@@ -2740,14 +2759,14 @@ class f1 {
|
|
2740
2759
|
});
|
2741
2760
|
}
|
2742
2761
|
}
|
2743
|
-
var
|
2744
|
-
class
|
2762
|
+
var hl = typeof window < "u" ? window : null, vl = typeof fetch < "u" ? fetch.bind(void 0) : null;
|
2763
|
+
class Ir {
|
2745
2764
|
constructor(e) {
|
2746
2765
|
var {
|
2747
|
-
fetch: t =
|
2748
|
-
window: r =
|
2766
|
+
fetch: t = vl,
|
2767
|
+
window: r = hl
|
2749
2768
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2750
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
2769
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new i1(), this.mouse = new n1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
2751
2770
|
}
|
2752
2771
|
wait(e) {
|
2753
2772
|
this.waits.push(e);
|
@@ -2780,16 +2799,16 @@ class Lr {
|
|
2780
2799
|
clip: v = !1,
|
2781
2800
|
clipX: d = 0,
|
2782
2801
|
clipY: g = 0
|
2783
|
-
} = e, p =
|
2784
|
-
T === "meet" && (
|
2785
|
-
var
|
2786
|
-
if (X && r.translate(-O *
|
2787
|
-
var W = O * d,
|
2788
|
-
r.beginPath(), r.moveTo(W,
|
2802
|
+
} = e, p = ht(i).replace(/^defer\s/, ""), [y, x] = p.split(" "), b = y || "xMidYMid", T = x || "meet", $ = n / o, E = s / u, O = Math.min($, E), C = Math.max($, E), I = o, _ = u;
|
2803
|
+
T === "meet" && (I *= O, _ *= O), T === "slice" && (I *= C, _ *= C);
|
2804
|
+
var j = new S(t, "refX", f), P = new S(t, "refY", c), X = j.hasValue() && P.hasValue();
|
2805
|
+
if (X && r.translate(-O * j.getPixels("x"), -O * P.getPixels("y")), v) {
|
2806
|
+
var W = O * d, G = O * g;
|
2807
|
+
r.beginPath(), r.moveTo(W, G), r.lineTo(n, G), r.lineTo(n, s), r.lineTo(W, s), r.closePath(), r.clip();
|
2789
2808
|
}
|
2790
2809
|
if (!X) {
|
2791
|
-
var q = T === "meet" && O === E, H = T === "slice" &&
|
2792
|
-
b.startsWith("xMid") && (q || H) && r.translate(n / 2 -
|
2810
|
+
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $, R = T === "slice" && C === $;
|
2811
|
+
b.startsWith("xMid") && (q || H) && r.translate(n / 2 - I / 2, 0), b.endsWith("YMid") && (Q || R) && r.translate(0, s / 2 - _ / 2), b.startsWith("xMax") && (q || H) && r.translate(n - I, 0), b.endsWith("YMax") && (Q || R) && r.translate(0, s - _);
|
2793
2812
|
}
|
2794
2813
|
switch (!0) {
|
2795
2814
|
case b === "none":
|
@@ -2799,7 +2818,7 @@ class Lr {
|
|
2799
2818
|
r.scale(O, O);
|
2800
2819
|
break;
|
2801
2820
|
case T === "slice":
|
2802
|
-
r.scale(
|
2821
|
+
r.scale(C, C);
|
2803
2822
|
break;
|
2804
2823
|
}
|
2805
2824
|
r.translate(-l, -h);
|
@@ -2824,13 +2843,13 @@ class Lr {
|
|
2824
2843
|
this.resolveReady = b;
|
2825
2844
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
2826
2845
|
var g = Date.now(), p = g, y = 0, x = () => {
|
2827
|
-
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId =
|
2846
|
+
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = La(x);
|
2828
2847
|
};
|
2829
|
-
r || v.start(), this.intervalId =
|
2848
|
+
r || v.start(), this.intervalId = La(x);
|
2830
2849
|
}
|
2831
2850
|
}
|
2832
2851
|
stop() {
|
2833
|
-
this.intervalId && (
|
2852
|
+
this.intervalId && (La.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
2834
2853
|
}
|
2835
2854
|
shouldUpdate(e, t) {
|
2836
2855
|
if (!e) {
|
@@ -2871,16 +2890,16 @@ class Lr {
|
|
2871
2890
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
2872
2891
|
}
|
2873
2892
|
}
|
2874
|
-
|
2875
|
-
|
2893
|
+
Ir.defaultWindow = hl;
|
2894
|
+
Ir.defaultFetch = vl;
|
2876
2895
|
var {
|
2877
|
-
defaultFetch:
|
2878
|
-
} =
|
2879
|
-
class
|
2896
|
+
defaultFetch: s1
|
2897
|
+
} = Ir, o1 = typeof DOMParser < "u" ? DOMParser : null;
|
2898
|
+
class Fa {
|
2880
2899
|
constructor() {
|
2881
2900
|
var {
|
2882
|
-
fetch: e =
|
2883
|
-
DOMParser: t =
|
2901
|
+
fetch: e = s1,
|
2902
|
+
DOMParser: t = o1
|
2884
2903
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
2885
2904
|
this.fetch = e, this.DOMParser = t;
|
2886
2905
|
}
|
@@ -2912,7 +2931,7 @@ class Ha {
|
|
2912
2931
|
})();
|
2913
2932
|
}
|
2914
2933
|
}
|
2915
|
-
class
|
2934
|
+
class u1 {
|
2916
2935
|
constructor(e, t) {
|
2917
2936
|
this.type = "translate", this.point = null, this.point = V.parse(t);
|
2918
2937
|
}
|
@@ -2938,7 +2957,7 @@ class d1 {
|
|
2938
2957
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
2939
2958
|
}
|
2940
2959
|
}
|
2941
|
-
class
|
2960
|
+
class l1 {
|
2942
2961
|
constructor(e, t, r) {
|
2943
2962
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
2944
2963
|
var i = ie(t);
|
@@ -2989,11 +3008,11 @@ class p1 {
|
|
2989
3008
|
]);
|
2990
3009
|
}
|
2991
3010
|
}
|
2992
|
-
class
|
3011
|
+
class h1 {
|
2993
3012
|
constructor(e, t, r) {
|
2994
3013
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
2995
3014
|
var i = V.parseScale(t);
|
2996
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
3015
|
+
(i.x === 0 || i.y === 0) && (i.x = at, i.y = at), this.scale = i, this.originX = r[0], this.originY = r[1];
|
2997
3016
|
}
|
2998
3017
|
apply(e) {
|
2999
3018
|
var {
|
@@ -3025,7 +3044,7 @@ class y1 {
|
|
3025
3044
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
3026
3045
|
}
|
3027
3046
|
}
|
3028
|
-
class
|
3047
|
+
class fl {
|
3029
3048
|
constructor(e, t, r) {
|
3030
3049
|
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
|
3031
3050
|
}
|
@@ -3049,42 +3068,42 @@ class Tl {
|
|
3049
3068
|
e.applyTransform(this.matrix);
|
3050
3069
|
}
|
3051
3070
|
}
|
3052
|
-
class
|
3071
|
+
class cl extends fl {
|
3053
3072
|
constructor(e, t, r) {
|
3054
3073
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
3055
3074
|
}
|
3056
3075
|
}
|
3057
|
-
class
|
3076
|
+
class v1 extends cl {
|
3058
3077
|
constructor(e, t, r) {
|
3059
3078
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
3060
3079
|
}
|
3061
3080
|
}
|
3062
|
-
class
|
3081
|
+
class f1 extends cl {
|
3063
3082
|
constructor(e, t, r) {
|
3064
3083
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
3065
3084
|
}
|
3066
3085
|
}
|
3067
|
-
function
|
3068
|
-
return
|
3086
|
+
function c1(a) {
|
3087
|
+
return ht(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
3069
3088
|
}
|
3070
|
-
function
|
3089
|
+
function g1(a) {
|
3071
3090
|
var [e, t] = a.split("(");
|
3072
3091
|
return [e.trim(), t.trim().replace(")", "")];
|
3073
3092
|
}
|
3074
|
-
class
|
3093
|
+
class Le {
|
3075
3094
|
constructor(e, t, r) {
|
3076
3095
|
this.document = e, this.transforms = [];
|
3077
|
-
var i =
|
3096
|
+
var i = c1(t);
|
3078
3097
|
i.forEach((n) => {
|
3079
3098
|
if (n !== "none") {
|
3080
|
-
var [o, s] =
|
3099
|
+
var [o, s] = g1(n), u = Le.transformTypes[o];
|
3081
3100
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
3082
3101
|
}
|
3083
3102
|
});
|
3084
3103
|
}
|
3085
3104
|
static fromElement(e, t) {
|
3086
3105
|
var r = t.getStyle("transform", !1, !0), [i, n = i] = t.getStyle("transform-origin", !1, !0).split(), o = [i, n];
|
3087
|
-
return r.hasValue() ? new
|
3106
|
+
return r.hasValue() ? new Le(e, r.getString(), o) : null;
|
3088
3107
|
}
|
3089
3108
|
apply(e) {
|
3090
3109
|
for (var {
|
@@ -3106,20 +3125,20 @@ class Be {
|
|
3106
3125
|
t[i].applyToPoint(e);
|
3107
3126
|
}
|
3108
3127
|
}
|
3109
|
-
|
3110
|
-
translate:
|
3111
|
-
rotate:
|
3112
|
-
scale:
|
3113
|
-
matrix:
|
3114
|
-
skewX:
|
3115
|
-
skewY:
|
3128
|
+
Le.transformTypes = {
|
3129
|
+
translate: u1,
|
3130
|
+
rotate: l1,
|
3131
|
+
scale: h1,
|
3132
|
+
matrix: fl,
|
3133
|
+
skewX: v1,
|
3134
|
+
skewY: f1
|
3116
3135
|
};
|
3117
|
-
class
|
3136
|
+
class N {
|
3118
3137
|
constructor(e, t) {
|
3119
3138
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
3120
3139
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = {}, this.styles = {}, this.stylesSpecificity = {}, this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
3121
3140
|
if (Array.from(t.attributes).forEach((s) => {
|
3122
|
-
var u =
|
3141
|
+
var u = Wb(s.nodeName);
|
3123
3142
|
this.attributes[u] = new S(e, u, s.value);
|
3124
3143
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
3125
3144
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
@@ -3196,7 +3215,7 @@ class I {
|
|
3196
3215
|
setContext(e) {
|
3197
3216
|
}
|
3198
3217
|
applyEffects(e) {
|
3199
|
-
var t =
|
3218
|
+
var t = Le.fromElement(this.document, this);
|
3200
3219
|
t && t.apply(e);
|
3201
3220
|
var r = this.getStyle("clip-path", !1, !0);
|
3202
3221
|
if (r.hasValue()) {
|
@@ -3212,8 +3231,8 @@ class I {
|
|
3212
3231
|
});
|
3213
3232
|
}
|
3214
3233
|
addChild(e) {
|
3215
|
-
var t = e instanceof
|
3216
|
-
t.parent = this,
|
3234
|
+
var t = e instanceof N ? e : this.document.createElement(e);
|
3235
|
+
t.parent = this, N.ignoreChildTypes.includes(t.type) || this.children.push(t);
|
3217
3236
|
}
|
3218
3237
|
matchesSelector(e) {
|
3219
3238
|
var t, {
|
@@ -3260,20 +3279,20 @@ class I {
|
|
3260
3279
|
return ((e = this.parent) === null || e === void 0 ? void 0 : e.children.indexOf(this)) === 0;
|
3261
3280
|
}
|
3262
3281
|
}
|
3263
|
-
|
3264
|
-
class
|
3282
|
+
N.ignoreChildTypes = ["title"];
|
3283
|
+
class d1 extends N {
|
3265
3284
|
constructor(e, t, r) {
|
3266
3285
|
super(e, t, r);
|
3267
3286
|
}
|
3268
3287
|
}
|
3269
|
-
function
|
3288
|
+
function p1(a) {
|
3270
3289
|
var e = a.trim();
|
3271
3290
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
3272
3291
|
}
|
3273
|
-
function
|
3274
|
-
return typeof process > "u" ? a : a.trim().split(",").map(
|
3292
|
+
function y1(a) {
|
3293
|
+
return typeof process > "u" ? a : a.trim().split(",").map(p1).join(",");
|
3275
3294
|
}
|
3276
|
-
function
|
3295
|
+
function m1(a) {
|
3277
3296
|
if (!a)
|
3278
3297
|
return "";
|
3279
3298
|
var e = a.trim().toLowerCase();
|
@@ -3289,7 +3308,7 @@ function $1(a) {
|
|
3289
3308
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
3290
3309
|
}
|
3291
3310
|
}
|
3292
|
-
function
|
3311
|
+
function b1(a) {
|
3293
3312
|
if (!a)
|
3294
3313
|
return "";
|
3295
3314
|
var e = a.trim().toLowerCase();
|
@@ -3306,13 +3325,13 @@ function C1(a) {
|
|
3306
3325
|
return /^[\d.]+$/.test(e) ? e : "";
|
3307
3326
|
}
|
3308
3327
|
}
|
3309
|
-
class
|
3328
|
+
class Z {
|
3310
3329
|
constructor(e, t, r, i, n, o) {
|
3311
|
-
var s = o ? typeof o == "string" ?
|
3330
|
+
var s = o ? typeof o == "string" ? Z.parse(o) : o : {};
|
3312
3331
|
this.fontFamily = n || s.fontFamily, this.fontSize = i || s.fontSize, this.fontStyle = e || s.fontStyle, this.fontWeight = r || s.fontWeight, this.fontVariant = t || s.fontVariant;
|
3313
3332
|
}
|
3314
3333
|
static parse() {
|
3315
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u =
|
3334
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u = ht(e).trim().split(" "), l = {
|
3316
3335
|
fontSize: !1,
|
3317
3336
|
fontStyle: !1,
|
3318
3337
|
fontWeight: !1,
|
@@ -3320,13 +3339,13 @@ class J {
|
|
3320
3339
|
};
|
3321
3340
|
return u.forEach((h) => {
|
3322
3341
|
switch (!0) {
|
3323
|
-
case (!l.fontStyle &&
|
3342
|
+
case (!l.fontStyle && Z.styles.includes(h)):
|
3324
3343
|
h !== "inherit" && (r = h), l.fontStyle = !0;
|
3325
3344
|
break;
|
3326
|
-
case (!l.fontVariant &&
|
3345
|
+
case (!l.fontVariant && Z.variants.includes(h)):
|
3327
3346
|
h !== "inherit" && (i = h), l.fontStyle = !0, l.fontVariant = !0;
|
3328
3347
|
break;
|
3329
|
-
case (!l.fontWeight &&
|
3348
|
+
case (!l.fontWeight && Z.weights.includes(h)):
|
3330
3349
|
h !== "inherit" && (n = h), l.fontStyle = !0, l.fontVariant = !0, l.fontWeight = !0;
|
3331
3350
|
break;
|
3332
3351
|
case !l.fontSize:
|
@@ -3335,23 +3354,23 @@ class J {
|
|
3335
3354
|
default:
|
3336
3355
|
h !== "inherit" && (s += h);
|
3337
3356
|
}
|
3338
|
-
}), new
|
3357
|
+
}), new Z(r, i, n, o, s, t);
|
3339
3358
|
}
|
3340
3359
|
toString() {
|
3341
3360
|
return [
|
3342
|
-
|
3361
|
+
m1(this.fontStyle),
|
3343
3362
|
this.fontVariant,
|
3344
|
-
|
3363
|
+
b1(this.fontWeight),
|
3345
3364
|
this.fontSize,
|
3346
3365
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
3347
|
-
|
3366
|
+
y1(this.fontFamily)
|
3348
3367
|
].join(" ").trim();
|
3349
3368
|
}
|
3350
3369
|
}
|
3351
|
-
|
3352
|
-
|
3353
|
-
|
3354
|
-
class
|
3370
|
+
Z.styles = "normal|italic|oblique|inherit";
|
3371
|
+
Z.variants = "normal|small-caps|inherit";
|
3372
|
+
Z.weights = "normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";
|
3373
|
+
class ce {
|
3355
3374
|
constructor() {
|
3356
3375
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Number.NaN, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.NaN, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Number.NaN, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Number.NaN;
|
3357
3376
|
this.x1 = e, this.y1 = t, this.x2 = r, this.y2 = i, this.addPoint(e, t), this.addPoint(r, i);
|
@@ -3426,7 +3445,7 @@ class he {
|
|
3426
3445
|
return r <= e && e <= n && i <= t && t <= o;
|
3427
3446
|
}
|
3428
3447
|
}
|
3429
|
-
class
|
3448
|
+
class w extends m {
|
3430
3449
|
constructor(e) {
|
3431
3450
|
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 = [];
|
3432
3451
|
}
|
@@ -3509,7 +3528,7 @@ class C extends m {
|
|
3509
3528
|
return e;
|
3510
3529
|
}
|
3511
3530
|
}
|
3512
|
-
class Ge extends
|
3531
|
+
class Ge extends N {
|
3513
3532
|
constructor() {
|
3514
3533
|
super(...arguments), this.modifiedEmSizeStack = !1;
|
3515
3534
|
}
|
@@ -3551,7 +3570,7 @@ class Ge extends I {
|
|
3551
3570
|
var v = this.getStyle("stroke-width");
|
3552
3571
|
if (v.hasValue()) {
|
3553
3572
|
var d = v.getPixels();
|
3554
|
-
e.lineWidth = d ||
|
3573
|
+
e.lineWidth = d || at;
|
3555
3574
|
}
|
3556
3575
|
var g = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), x = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
3557
3576
|
if (g.hasValue() && (e.lineCap = g.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
|
@@ -3562,8 +3581,8 @@ class Ge extends I {
|
|
3562
3581
|
}
|
3563
3582
|
}
|
3564
3583
|
if (this.modifiedEmSizeStack = !1, typeof e.font < "u") {
|
3565
|
-
var E = this.getStyle("font"), O = this.getStyle("font-style"),
|
3566
|
-
O.setValue(P.fontStyle),
|
3584
|
+
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"), I = this.getStyle("font-weight"), _ = this.getStyle("font-size"), j = this.getStyle("font-family"), P = new Z(O.getString(), C.getString(), I.getString(), _.hasValue() ? "".concat(_.getPixels(!0), "px") : "", j.getString(), Z.parse(E.getString(), e.font));
|
3585
|
+
O.setValue(P.fontStyle), C.setValue(P.fontVariant), I.setValue(P.fontWeight), _.setValue(P.fontSize), j.setValue(P.fontFamily), e.font = P.toString(), _.isPixels() && (this.document.emSize = _.getPixels(), this.modifiedEmSizeStack = !0);
|
3567
3586
|
}
|
3568
3587
|
t || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
3569
3588
|
}
|
@@ -3573,42 +3592,42 @@ class Ge extends I {
|
|
3573
3592
|
}
|
3574
3593
|
class A extends Ge {
|
3575
3594
|
constructor(e, t, r) {
|
3576
|
-
super(e, t, r), this.type = "path", this.pathParser = null, this.pathParser = new
|
3595
|
+
super(e, t, r), this.type = "path", this.pathParser = null, this.pathParser = new w(this.getAttribute("d").getString());
|
3577
3596
|
}
|
3578
3597
|
path(e) {
|
3579
3598
|
var {
|
3580
3599
|
pathParser: t
|
3581
|
-
} = this, r = new
|
3600
|
+
} = this, r = new ce();
|
3582
3601
|
for (t.reset(), e && e.beginPath(); !t.isEnd(); )
|
3583
3602
|
switch (t.next().type) {
|
3584
|
-
case
|
3603
|
+
case w.MOVE_TO:
|
3585
3604
|
this.pathM(e, r);
|
3586
3605
|
break;
|
3587
|
-
case
|
3606
|
+
case w.LINE_TO:
|
3588
3607
|
this.pathL(e, r);
|
3589
3608
|
break;
|
3590
|
-
case
|
3609
|
+
case w.HORIZ_LINE_TO:
|
3591
3610
|
this.pathH(e, r);
|
3592
3611
|
break;
|
3593
|
-
case
|
3612
|
+
case w.VERT_LINE_TO:
|
3594
3613
|
this.pathV(e, r);
|
3595
3614
|
break;
|
3596
|
-
case
|
3615
|
+
case w.CURVE_TO:
|
3597
3616
|
this.pathC(e, r);
|
3598
3617
|
break;
|
3599
|
-
case
|
3618
|
+
case w.SMOOTH_CURVE_TO:
|
3600
3619
|
this.pathS(e, r);
|
3601
3620
|
break;
|
3602
|
-
case
|
3621
|
+
case w.QUAD_TO:
|
3603
3622
|
this.pathQ(e, r);
|
3604
3623
|
break;
|
3605
|
-
case
|
3624
|
+
case w.SMOOTH_QUAD_TO:
|
3606
3625
|
this.pathT(e, r);
|
3607
3626
|
break;
|
3608
|
-
case
|
3627
|
+
case w.ARC:
|
3609
3628
|
this.pathA(e, r);
|
3610
3629
|
break;
|
3611
|
-
case
|
3630
|
+
case w.CLOSE_PATH:
|
3612
3631
|
this.pathZ(e, r);
|
3613
3632
|
break;
|
3614
3633
|
}
|
@@ -3827,8 +3846,8 @@ class A extends Ge {
|
|
3827
3846
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
3828
3847
|
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)));
|
3829
3848
|
isNaN(v) && (v = 0);
|
3830
|
-
var d = new V(v * i * f.y / n, v * -n * f.x / i), g = new V((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p =
|
3831
|
-
return
|
3849
|
+
var d = new V(v * i * f.y / n, v * -n * f.x / i), g = new V((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p = yo([1, 0], [(f.x - d.x) / i, (f.y - d.y) / n]), y = [(f.x - d.x) / i, (f.y - d.y) / n], x = [(-f.x - d.x) / i, (-f.y - d.y) / n], b = yo(y, x);
|
3850
|
+
return yi(y, x) <= -1 && (b = Math.PI), yi(y, x) >= 1 && (b = 0), {
|
3832
3851
|
currentPoint: h,
|
3833
3852
|
rX: i,
|
3834
3853
|
rY: n,
|
@@ -3864,7 +3883,7 @@ class A extends Ge {
|
|
3864
3883
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
3865
3884
|
}
|
3866
3885
|
}
|
3867
|
-
class
|
3886
|
+
class gl extends A {
|
3868
3887
|
constructor(e, t, r) {
|
3869
3888
|
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();
|
3870
3889
|
}
|
@@ -3896,12 +3915,12 @@ class Ce extends Ge {
|
|
3896
3915
|
var {
|
3897
3916
|
document: e,
|
3898
3917
|
parent: t
|
3899
|
-
} = this, r =
|
3918
|
+
} = this, r = Z.parse(e.ctx.font).fontSize, i = t.getStyle("font-size").getNumber(r);
|
3900
3919
|
return i;
|
3901
3920
|
}
|
3902
3921
|
getTElementBoundingBox(e) {
|
3903
3922
|
var t = this.getFontSize();
|
3904
|
-
return new
|
3923
|
+
return new ce(this.x, this.y - t, this.x + this.measureText(e), this.y);
|
3905
3924
|
}
|
3906
3925
|
getGlyph(e, t, r) {
|
3907
3926
|
var i = t[r], n = null;
|
@@ -3909,7 +3928,7 @@ class Ce extends Ge {
|
|
3909
3928
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
3910
3929
|
if ((r === 0 || s === " ") && r < o - 1 && u !== " " && (l = "terminal"), r > 0 && s !== " " && r < o - 1 && u !== " " && (l = "medial"), r > 0 && s !== " " && (r === o - 1 || u === " ") && (l = "initial"), typeof e.glyphs[i] < "u") {
|
3911
3930
|
var h = e.glyphs[i];
|
3912
|
-
n = h instanceof
|
3931
|
+
n = h instanceof gl ? h : h[l];
|
3913
3932
|
}
|
3914
3933
|
} else
|
3915
3934
|
n = e.glyphs[i];
|
@@ -3919,12 +3938,12 @@ class Ce extends Ge {
|
|
3919
3938
|
return "";
|
3920
3939
|
}
|
3921
3940
|
getTextFromNode(e) {
|
3922
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
3941
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = ht(
|
3923
3942
|
// textNode.value
|
3924
3943
|
// || textNode.text
|
3925
3944
|
t.textContent || ""
|
3926
3945
|
);
|
3927
|
-
return i === 0 && (o =
|
3946
|
+
return i === 0 && (o = Hb(o)), i === n && (o = Yb(o)), o;
|
3928
3947
|
}
|
3929
3948
|
renderChildren(e) {
|
3930
3949
|
if (this.type !== "text") {
|
@@ -3947,7 +3966,7 @@ class Ce extends Ge {
|
|
3947
3966
|
if (n) {
|
3948
3967
|
for (var {
|
3949
3968
|
unitsPerEm: o
|
3950
|
-
} = n.fontFace, s =
|
3969
|
+
} = 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 = ie(r.getAttribute("dx").getString()), v = f.length, d = 0; d < v; d++) {
|
3951
3970
|
var g = this.getGlyph(n, f, d);
|
3952
3971
|
e.translate(this.x, this.y), e.scale(h, -h);
|
3953
3972
|
var p = e.lineWidth;
|
@@ -4053,20 +4072,20 @@ class Ce extends Ge {
|
|
4053
4072
|
return null;
|
4054
4073
|
}
|
4055
4074
|
}
|
4056
|
-
class
|
4075
|
+
class Mr extends Ce {
|
4057
4076
|
constructor(e, t, r) {
|
4058
|
-
super(e, t, new.target ===
|
4077
|
+
super(e, t, new.target === Mr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
4059
4078
|
}
|
4060
4079
|
getText() {
|
4061
4080
|
return this.text;
|
4062
4081
|
}
|
4063
4082
|
}
|
4064
|
-
class
|
4083
|
+
class x1 extends Mr {
|
4065
4084
|
constructor() {
|
4066
4085
|
super(...arguments), this.type = "textNode";
|
4067
4086
|
}
|
4068
4087
|
}
|
4069
|
-
class
|
4088
|
+
class Nt extends Ge {
|
4070
4089
|
constructor() {
|
4071
4090
|
super(...arguments), this.type = "svg", this.root = !1;
|
4072
4091
|
}
|
@@ -4079,7 +4098,7 @@ class Mt extends Ge {
|
|
4079
4098
|
} = r, o = e.canvas;
|
4080
4099
|
if (i.setDefaults(e), o.style && typeof e.font < "u" && n && typeof n.getComputedStyle < "u") {
|
4081
4100
|
e.font = n.getComputedStyle(o).getPropertyValue("font");
|
4082
|
-
var s = new S(r, "fontSize",
|
4101
|
+
var s = new S(r, "fontSize", Z.parse(e.font).fontSize);
|
4083
4102
|
s.hasValue() && (r.rootEmSize = s.getPixels("y"), r.emSize = r.rootEmSize);
|
4084
4103
|
}
|
4085
4104
|
this.getAttribute("x").hasValue() || this.getAttribute("x", !0).setValue(0), this.getAttribute("y").hasValue() || this.getAttribute("y", !0).setValue(0);
|
@@ -4129,7 +4148,7 @@ class Mt extends Ge {
|
|
4129
4148
|
}
|
4130
4149
|
}
|
4131
4150
|
}
|
4132
|
-
class
|
4151
|
+
class dl extends A {
|
4133
4152
|
constructor() {
|
4134
4153
|
super(...arguments), this.type = "rect";
|
4135
4154
|
}
|
@@ -4139,37 +4158,37 @@ class El extends A {
|
|
4139
4158
|
var h = 4 * ((Math.sqrt(2) - 1) / 3);
|
4140
4159
|
e.beginPath(), n > 0 && i > 0 && (e.moveTo(t + u, r), e.lineTo(t + i - u, r), e.bezierCurveTo(t + i - u + h * u, r, t + i, r + l - h * l, t + i, r + l), e.lineTo(t + i, r + n - l), e.bezierCurveTo(t + i, r + n - l + h * l, t + i - u + h * u, r + n, t + i - u, r + n), e.lineTo(t + u, r + n), e.bezierCurveTo(t + u - h * u, r + n, t, r + n - l + h * l, t, r + n - l), e.lineTo(t, r + l), e.bezierCurveTo(t, r + l - h * l, t + u - h * u, r, t + u, r), e.closePath());
|
4141
4160
|
}
|
4142
|
-
return new
|
4161
|
+
return new ce(t, r, t + i, r + n);
|
4143
4162
|
}
|
4144
4163
|
getMarkers() {
|
4145
4164
|
return null;
|
4146
4165
|
}
|
4147
4166
|
}
|
4148
|
-
class
|
4167
|
+
class T1 extends A {
|
4149
4168
|
constructor() {
|
4150
4169
|
super(...arguments), this.type = "circle";
|
4151
4170
|
}
|
4152
4171
|
path(e) {
|
4153
4172
|
var t = this.getAttribute("cx").getPixels("x"), r = this.getAttribute("cy").getPixels("y"), i = this.getAttribute("r").getPixels();
|
4154
|
-
return e && i > 0 && (e.beginPath(), e.arc(t, r, i, 0, Math.PI * 2, !1), e.closePath()), new
|
4173
|
+
return e && i > 0 && (e.beginPath(), e.arc(t, r, i, 0, Math.PI * 2, !1), e.closePath()), new ce(t - i, r - i, t + i, r + i);
|
4155
4174
|
}
|
4156
4175
|
getMarkers() {
|
4157
4176
|
return null;
|
4158
4177
|
}
|
4159
4178
|
}
|
4160
|
-
class
|
4179
|
+
class O1 extends A {
|
4161
4180
|
constructor() {
|
4162
4181
|
super(...arguments), this.type = "ellipse";
|
4163
4182
|
}
|
4164
4183
|
path(e) {
|
4165
4184
|
var t = 4 * ((Math.sqrt(2) - 1) / 3), r = this.getAttribute("rx").getPixels("x"), i = this.getAttribute("ry").getPixels("y"), n = this.getAttribute("cx").getPixels("x"), o = this.getAttribute("cy").getPixels("y");
|
4166
|
-
return e && r > 0 && i > 0 && (e.beginPath(), e.moveTo(n + r, o), e.bezierCurveTo(n + r, o + t * i, n + t * r, o + i, n, o + i), e.bezierCurveTo(n - t * r, o + i, n - r, o + t * i, n - r, o), e.bezierCurveTo(n - r, o - t * i, n - t * r, o - i, n, o - i), e.bezierCurveTo(n + t * r, o - i, n + r, o - t * i, n + r, o), e.closePath()), new
|
4185
|
+
return e && r > 0 && i > 0 && (e.beginPath(), e.moveTo(n + r, o), e.bezierCurveTo(n + r, o + t * i, n + t * r, o + i, n, o + i), e.bezierCurveTo(n - t * r, o + i, n - r, o + t * i, n - r, o), e.bezierCurveTo(n - r, o - t * i, n - t * r, o - i, n, o - i), e.bezierCurveTo(n + t * r, o - i, n + r, o - t * i, n + r, o), e.closePath()), new ce(n - r, o - i, n + r, o + i);
|
4167
4186
|
}
|
4168
4187
|
getMarkers() {
|
4169
4188
|
return null;
|
4170
4189
|
}
|
4171
4190
|
}
|
4172
|
-
class
|
4191
|
+
class S1 extends A {
|
4173
4192
|
constructor() {
|
4174
4193
|
super(...arguments), this.type = "line";
|
4175
4194
|
}
|
@@ -4184,14 +4203,14 @@ class R1 extends A {
|
|
4184
4203
|
x: i,
|
4185
4204
|
y: n
|
4186
4205
|
}] = this.getPoints();
|
4187
|
-
return e && (e.beginPath(), e.moveTo(t, r), e.lineTo(i, n)), new
|
4206
|
+
return e && (e.beginPath(), e.moveTo(t, r), e.lineTo(i, n)), new ce(t, r, i, n);
|
4188
4207
|
}
|
4189
4208
|
getMarkers() {
|
4190
4209
|
var [e, t] = this.getPoints(), r = e.angleTo(t);
|
4191
4210
|
return [[e, r], [t, r]];
|
4192
4211
|
}
|
4193
4212
|
}
|
4194
|
-
class
|
4213
|
+
class pl extends A {
|
4195
4214
|
constructor(e, t, r) {
|
4196
4215
|
super(e, t, r), this.type = "polyline", this.points = [], this.points = V.parsePath(this.getAttribute("points").getString());
|
4197
4216
|
}
|
@@ -4201,7 +4220,7 @@ class $l extends A {
|
|
4201
4220
|
} = this, [{
|
4202
4221
|
x: r,
|
4203
4222
|
y: i
|
4204
|
-
}] = t, n = new
|
4223
|
+
}] = t, n = new ce(r, i);
|
4205
4224
|
return e && (e.beginPath(), e.moveTo(r, i)), t.forEach((o) => {
|
4206
4225
|
var {
|
4207
4226
|
x: s,
|
@@ -4219,7 +4238,7 @@ class $l extends A {
|
|
4219
4238
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
4220
4239
|
}
|
4221
4240
|
}
|
4222
|
-
class
|
4241
|
+
class E1 extends pl {
|
4223
4242
|
constructor() {
|
4224
4243
|
super(...arguments), this.type = "polygon";
|
4225
4244
|
}
|
@@ -4231,12 +4250,12 @@ class I1 extends $l {
|
|
4231
4250
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
4232
4251
|
}
|
4233
4252
|
}
|
4234
|
-
class
|
4253
|
+
class $1 extends N {
|
4235
4254
|
constructor() {
|
4236
4255
|
super(...arguments), this.type = "pattern";
|
4237
4256
|
}
|
4238
4257
|
createPattern(e, t, r) {
|
4239
|
-
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new
|
4258
|
+
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new Nt(this.document, null);
|
4240
4259
|
o.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), o.attributes.width = new S(this.document, "width", "".concat(i, "px")), o.attributes.height = new S(this.document, "height", "".concat(n, "px")), o.attributes.transform = new S(this.document, "transform", this.getAttribute("patternTransform").getValue()), o.children = this.children;
|
4241
4260
|
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
4242
4261
|
l.hasValue() && h.hasValue() && u.translate(l.getPixels("x", !0), h.getPixels("y", !0)), r.hasValue() ? this.styles["fill-opacity"] = r : Reflect.deleteProperty(this.styles, "fill-opacity");
|
@@ -4247,7 +4266,7 @@ class N1 extends I {
|
|
4247
4266
|
return v;
|
4248
4267
|
}
|
4249
4268
|
}
|
4250
|
-
class
|
4269
|
+
class w1 extends N {
|
4251
4270
|
constructor() {
|
4252
4271
|
super(...arguments), this.type = "marker";
|
4253
4272
|
}
|
@@ -4258,30 +4277,30 @@ class M1 extends I {
|
|
4258
4277
|
y: n
|
4259
4278
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
4260
4279
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
4261
|
-
var u = new
|
4280
|
+
var u = new Nt(this.document, null);
|
4262
4281
|
u.type = this.type, u.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new S(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new S(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new S(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new S(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new S(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new S(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new S(this.document, "stroke", this.getAttribute("stroke").getValue("none")), u.children = this.children, u.render(e), e.restore(), s === "strokeWidth" && e.scale(1 / e.lineWidth, 1 / e.lineWidth), o === "auto" && e.rotate(-r), e.translate(-i, -n);
|
4263
4282
|
}
|
4264
4283
|
}
|
4265
4284
|
}
|
4266
|
-
class
|
4285
|
+
class C1 extends N {
|
4267
4286
|
constructor() {
|
4268
4287
|
super(...arguments), this.type = "defs";
|
4269
4288
|
}
|
4270
4289
|
render() {
|
4271
4290
|
}
|
4272
4291
|
}
|
4273
|
-
class
|
4292
|
+
class tn extends Ge {
|
4274
4293
|
constructor() {
|
4275
4294
|
super(...arguments), this.type = "g";
|
4276
4295
|
}
|
4277
4296
|
getBoundingBox(e) {
|
4278
|
-
var t = new
|
4297
|
+
var t = new ce();
|
4279
4298
|
return this.children.forEach((r) => {
|
4280
4299
|
t.addBoundingBox(r.getBoundingBox(e));
|
4281
4300
|
}), t;
|
4282
4301
|
}
|
4283
4302
|
}
|
4284
|
-
class
|
4303
|
+
class yl extends N {
|
4285
4304
|
constructor(e, t, r) {
|
4286
4305
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
4287
4306
|
var {
|
@@ -4311,11 +4330,11 @@ class Cl extends I {
|
|
4311
4330
|
} = this, {
|
4312
4331
|
MAX_VIRTUAL_PIXELS: u,
|
4313
4332
|
viewPort: l
|
4314
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
4333
|
+
} = s.screen, [h] = l.viewPorts, f = new dl(s, null);
|
4315
4334
|
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);
|
4316
|
-
var c = new
|
4335
|
+
var c = new tn(s, null);
|
4317
4336
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
4318
|
-
var v = new
|
4337
|
+
var v = new Nt(s, null);
|
4319
4338
|
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];
|
4320
4339
|
var d = s.createCanvas(h.width, h.height), g = d.getContext("2d");
|
4321
4340
|
return g.fillStyle = o, v.render(g), g.createPattern(d, "no-repeat");
|
@@ -4335,7 +4354,7 @@ class Cl extends I {
|
|
4335
4354
|
return t;
|
4336
4355
|
}
|
4337
4356
|
}
|
4338
|
-
class
|
4357
|
+
class A1 extends yl {
|
4339
4358
|
constructor(e, t, r) {
|
4340
4359
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
4341
4360
|
}
|
@@ -4348,7 +4367,7 @@ class D1 extends Cl {
|
|
4348
4367
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
4349
4368
|
}
|
4350
4369
|
}
|
4351
|
-
class
|
4370
|
+
class P1 extends yl {
|
4352
4371
|
constructor(e, t, r) {
|
4353
4372
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
4354
4373
|
}
|
@@ -4363,14 +4382,14 @@ class V1 extends Cl {
|
|
4363
4382
|
return e.createRadialGradient(s, u, h, n, o, l);
|
4364
4383
|
}
|
4365
4384
|
}
|
4366
|
-
class
|
4385
|
+
class R1 extends N {
|
4367
4386
|
constructor(e, t, r) {
|
4368
4387
|
super(e, t, r), this.type = "stop";
|
4369
4388
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
4370
4389
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
4371
4390
|
}
|
4372
4391
|
}
|
4373
|
-
class
|
4392
|
+
class rn extends N {
|
4374
4393
|
constructor(e, t, r) {
|
4375
4394
|
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);
|
4376
4395
|
var i = this.getAttribute("values");
|
@@ -4431,7 +4450,7 @@ class on extends I {
|
|
4431
4450
|
return r;
|
4432
4451
|
}
|
4433
4452
|
}
|
4434
|
-
class
|
4453
|
+
class N1 extends rn {
|
4435
4454
|
constructor() {
|
4436
4455
|
super(...arguments), this.type = "animateColor";
|
4437
4456
|
}
|
@@ -4440,7 +4459,7 @@ class k1 extends on {
|
|
4440
4459
|
progress: e,
|
4441
4460
|
from: t,
|
4442
4461
|
to: r
|
4443
|
-
} = this.getProgress(), i = new
|
4462
|
+
} = this.getProgress(), i = new gi(t.getColor()), n = new gi(r.getColor());
|
4444
4463
|
if (i.ok && n.ok) {
|
4445
4464
|
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;
|
4446
4465
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
@@ -4448,7 +4467,7 @@ class k1 extends on {
|
|
4448
4467
|
return this.getAttribute("from").getColor();
|
4449
4468
|
}
|
4450
4469
|
}
|
4451
|
-
class
|
4470
|
+
class I1 extends rn {
|
4452
4471
|
constructor() {
|
4453
4472
|
super(...arguments), this.type = "animateTransform";
|
4454
4473
|
}
|
@@ -4464,7 +4483,7 @@ class B1 extends on {
|
|
4464
4483
|
return o;
|
4465
4484
|
}
|
4466
4485
|
}
|
4467
|
-
class
|
4486
|
+
class M1 extends N {
|
4468
4487
|
constructor(e, t, r) {
|
4469
4488
|
super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
4470
4489
|
var {
|
@@ -4493,17 +4512,17 @@ class F1 extends I {
|
|
4493
4512
|
render() {
|
4494
4513
|
}
|
4495
4514
|
}
|
4496
|
-
class
|
4515
|
+
class _1 extends N {
|
4497
4516
|
constructor(e, t, r) {
|
4498
4517
|
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();
|
4499
4518
|
}
|
4500
4519
|
}
|
4501
|
-
class
|
4520
|
+
class V1 extends A {
|
4502
4521
|
constructor() {
|
4503
4522
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
4504
4523
|
}
|
4505
4524
|
}
|
4506
|
-
class
|
4525
|
+
class D1 extends Ce {
|
4507
4526
|
constructor() {
|
4508
4527
|
super(...arguments), this.type = "tref";
|
4509
4528
|
}
|
@@ -4517,7 +4536,7 @@ class z1 extends Ce {
|
|
4517
4536
|
return "";
|
4518
4537
|
}
|
4519
4538
|
}
|
4520
|
-
class
|
4539
|
+
class k1 extends Ce {
|
4521
4540
|
constructor(e, t, r) {
|
4522
4541
|
super(e, t, r), this.type = "a";
|
4523
4542
|
var {
|
@@ -4537,10 +4556,10 @@ class G1 extends Ce {
|
|
4537
4556
|
y: i
|
4538
4557
|
} = this, {
|
4539
4558
|
mouse: n
|
4540
|
-
} = t.screen, o = new S(t, "fontSize",
|
4541
|
-
n.isWorking() && n.checkBoundingBox(this, new
|
4559
|
+
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
4560
|
+
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
4542
4561
|
} else if (this.children.length > 0) {
|
4543
|
-
var s = new
|
4562
|
+
var s = new tn(this.document, null);
|
4544
4563
|
s.children = this.children, s.parent = this, s.render(e);
|
4545
4564
|
}
|
4546
4565
|
}
|
@@ -4555,7 +4574,7 @@ class G1 extends Ce {
|
|
4555
4574
|
e.canvas.style.cursor = "pointer";
|
4556
4575
|
}
|
4557
4576
|
}
|
4558
|
-
function
|
4577
|
+
function $o(a, e) {
|
4559
4578
|
var t = Object.keys(a);
|
4560
4579
|
if (Object.getOwnPropertySymbols) {
|
4561
4580
|
var r = Object.getOwnPropertySymbols(a);
|
@@ -4565,18 +4584,18 @@ function Ro(a, e) {
|
|
4565
4584
|
}
|
4566
4585
|
return t;
|
4567
4586
|
}
|
4568
|
-
function
|
4587
|
+
function tr(a) {
|
4569
4588
|
for (var e = 1; e < arguments.length; e++) {
|
4570
4589
|
var t = arguments[e] != null ? arguments[e] : {};
|
4571
|
-
e % 2 ?
|
4572
|
-
|
4573
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
4590
|
+
e % 2 ? $o(Object(t), !0).forEach(function(r) {
|
4591
|
+
Ji(a, r, t[r]);
|
4592
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : $o(Object(t)).forEach(function(r) {
|
4574
4593
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
4575
4594
|
});
|
4576
4595
|
}
|
4577
4596
|
return a;
|
4578
4597
|
}
|
4579
|
-
class
|
4598
|
+
class L1 extends Ce {
|
4580
4599
|
constructor(e, t, r) {
|
4581
4600
|
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]]);
|
4582
4601
|
var i = this.getHrefAttribute().getDefinition();
|
@@ -4595,24 +4614,24 @@ class H1 extends Ce {
|
|
4595
4614
|
points: n
|
4596
4615
|
} = r;
|
4597
4616
|
switch (i) {
|
4598
|
-
case
|
4617
|
+
case w.LINE_TO:
|
4599
4618
|
e && e.lineTo(n[0], n[1]);
|
4600
4619
|
break;
|
4601
|
-
case
|
4620
|
+
case w.MOVE_TO:
|
4602
4621
|
e && e.moveTo(n[0], n[1]);
|
4603
4622
|
break;
|
4604
|
-
case
|
4623
|
+
case w.CURVE_TO:
|
4605
4624
|
e && e.bezierCurveTo(n[0], n[1], n[2], n[3], n[4], n[5]);
|
4606
4625
|
break;
|
4607
|
-
case
|
4626
|
+
case w.QUAD_TO:
|
4608
4627
|
e && e.quadraticCurveTo(n[0], n[1], n[2], n[3]);
|
4609
4628
|
break;
|
4610
|
-
case
|
4629
|
+
case w.ARC: {
|
4611
4630
|
var [o, s, u, l, h, f, c, v] = n, d = u > l ? u : l, g = u > l ? 1 : u / l, p = u > l ? l / u : 1;
|
4612
4631
|
e && (e.translate(o, s), e.rotate(c), e.scale(g, p), e.arc(0, 0, d, h, h + f, !!(1 - v)), e.scale(1 / g, 1 / p), e.rotate(-c), e.translate(-o, -s));
|
4613
4632
|
break;
|
4614
4633
|
}
|
4615
|
-
case
|
4634
|
+
case w.CLOSE_PATH:
|
4616
4635
|
e && e.closePath();
|
4617
4636
|
break;
|
4618
4637
|
}
|
@@ -4646,10 +4665,10 @@ class H1 extends Ce {
|
|
4646
4665
|
}, p = v && d ? Math.atan2(d.y - v.y, d.x - v.x) : 0;
|
4647
4666
|
if (s) {
|
4648
4667
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
4649
|
-
g.p0 =
|
4668
|
+
g.p0 = tr(tr({}, v), {}, {
|
4650
4669
|
x: v.x + y,
|
4651
4670
|
y: v.y + x
|
4652
|
-
}), g.p1 =
|
4671
|
+
}), g.p1 = tr(tr({}, d), {}, {
|
4653
4672
|
x: d.x + y,
|
4654
4673
|
y: d.y + x
|
4655
4674
|
});
|
@@ -4687,7 +4706,7 @@ class H1 extends Ce {
|
|
4687
4706
|
var {
|
4688
4707
|
offset: E,
|
4689
4708
|
segment: O,
|
4690
|
-
rotation:
|
4709
|
+
rotation: C
|
4691
4710
|
} = this.findSegmentToFitChar(e, s, p, y, i, b, o, T, $);
|
4692
4711
|
b = E, !(!O.p0 || !O.p1) && this.glyphInfo.push({
|
4693
4712
|
// transposeX: midpoint.x,
|
@@ -4695,7 +4714,7 @@ class H1 extends Ce {
|
|
4695
4714
|
text: r[$],
|
4696
4715
|
p0: O.p0,
|
4697
4716
|
p1: O.p1,
|
4698
|
-
rotation:
|
4717
|
+
rotation: C
|
4699
4718
|
});
|
4700
4719
|
});
|
4701
4720
|
}
|
@@ -4711,38 +4730,38 @@ class H1 extends Ce {
|
|
4711
4730
|
current: i
|
4712
4731
|
} = r, n = i ? i.x : 0, o = i ? i.y : 0, s = r.next(), u = s.type, l = [];
|
4713
4732
|
switch (s.type) {
|
4714
|
-
case
|
4733
|
+
case w.MOVE_TO:
|
4715
4734
|
this.pathM(r, l);
|
4716
4735
|
break;
|
4717
|
-
case
|
4736
|
+
case w.LINE_TO:
|
4718
4737
|
u = this.pathL(r, l);
|
4719
4738
|
break;
|
4720
|
-
case
|
4739
|
+
case w.HORIZ_LINE_TO:
|
4721
4740
|
u = this.pathH(r, l);
|
4722
4741
|
break;
|
4723
|
-
case
|
4742
|
+
case w.VERT_LINE_TO:
|
4724
4743
|
u = this.pathV(r, l);
|
4725
4744
|
break;
|
4726
|
-
case
|
4745
|
+
case w.CURVE_TO:
|
4727
4746
|
this.pathC(r, l);
|
4728
4747
|
break;
|
4729
|
-
case
|
4748
|
+
case w.SMOOTH_CURVE_TO:
|
4730
4749
|
u = this.pathS(r, l);
|
4731
4750
|
break;
|
4732
|
-
case
|
4751
|
+
case w.QUAD_TO:
|
4733
4752
|
this.pathQ(r, l);
|
4734
4753
|
break;
|
4735
|
-
case
|
4754
|
+
case w.SMOOTH_QUAD_TO:
|
4736
4755
|
u = this.pathT(r, l);
|
4737
4756
|
break;
|
4738
|
-
case
|
4757
|
+
case w.ARC:
|
4739
4758
|
l = this.pathA(r);
|
4740
4759
|
break;
|
4741
|
-
case
|
4760
|
+
case w.CLOSE_PATH:
|
4742
4761
|
A.pathZ(r);
|
4743
4762
|
break;
|
4744
4763
|
}
|
4745
|
-
s.type !==
|
4764
|
+
s.type !== w.CLOSE_PATH ? t.push({
|
4746
4765
|
type: u,
|
4747
4766
|
points: l,
|
4748
4767
|
start: {
|
@@ -4751,7 +4770,7 @@ class H1 extends Ce {
|
|
4751
4770
|
},
|
4752
4771
|
pathLength: this.calcLength(n, o, u, l)
|
4753
4772
|
}) : t.push({
|
4754
|
-
type:
|
4773
|
+
type: w.CLOSE_PATH,
|
4755
4774
|
points: [],
|
4756
4775
|
pathLength: 0
|
4757
4776
|
});
|
@@ -4770,21 +4789,21 @@ class H1 extends Ce {
|
|
4770
4789
|
x: r,
|
4771
4790
|
y: i
|
4772
4791
|
} = A.pathL(e).point;
|
4773
|
-
return t.push(r, i),
|
4792
|
+
return t.push(r, i), w.LINE_TO;
|
4774
4793
|
}
|
4775
4794
|
pathH(e, t) {
|
4776
4795
|
var {
|
4777
4796
|
x: r,
|
4778
4797
|
y: i
|
4779
4798
|
} = A.pathH(e).point;
|
4780
|
-
return t.push(r, i),
|
4799
|
+
return t.push(r, i), w.LINE_TO;
|
4781
4800
|
}
|
4782
4801
|
pathV(e, t) {
|
4783
4802
|
var {
|
4784
4803
|
x: r,
|
4785
4804
|
y: i
|
4786
4805
|
} = A.pathV(e).point;
|
4787
|
-
return t.push(r, i),
|
4806
|
+
return t.push(r, i), w.LINE_TO;
|
4788
4807
|
}
|
4789
4808
|
pathC(e, t) {
|
4790
4809
|
var {
|
@@ -4800,7 +4819,7 @@ class H1 extends Ce {
|
|
4800
4819
|
controlPoint: i,
|
4801
4820
|
currentPoint: n
|
4802
4821
|
} = A.pathS(e);
|
4803
|
-
return t.push(r.x, r.y, i.x, i.y, n.x, n.y),
|
4822
|
+
return t.push(r.x, r.y, i.x, i.y, n.x, n.y), w.CURVE_TO;
|
4804
4823
|
}
|
4805
4824
|
pathQ(e, t) {
|
4806
4825
|
var {
|
@@ -4814,7 +4833,7 @@ class H1 extends Ce {
|
|
4814
4833
|
controlPoint: r,
|
4815
4834
|
currentPoint: i
|
4816
4835
|
} = A.pathT(e);
|
4817
|
-
return t.push(r.x, r.y, i.x, i.y),
|
4836
|
+
return t.push(r.x, r.y, i.x, i.y), w.QUAD_TO;
|
4818
4837
|
}
|
4819
4838
|
pathA(e) {
|
4820
4839
|
var {
|
@@ -4831,17 +4850,17 @@ class H1 extends Ce {
|
|
4831
4850
|
calcLength(e, t, r, i) {
|
4832
4851
|
var n = 0, o = null, s = null, u = 0;
|
4833
4852
|
switch (r) {
|
4834
|
-
case
|
4853
|
+
case w.LINE_TO:
|
4835
4854
|
return this.getLineLength(e, t, i[0], i[1]);
|
4836
|
-
case
|
4855
|
+
case w.CURVE_TO:
|
4837
4856
|
for (n = 0, o = this.getPointOnCubicBezier(0, e, t, i[0], i[1], i[2], i[3], i[4], i[5]), u = 0.01; u <= 1; u += 0.01)
|
4838
4857
|
s = this.getPointOnCubicBezier(u, e, t, i[0], i[1], i[2], i[3], i[4], i[5]), n += this.getLineLength(o.x, o.y, s.x, s.y), o = s;
|
4839
4858
|
return n;
|
4840
|
-
case
|
4859
|
+
case w.QUAD_TO:
|
4841
4860
|
for (n = 0, o = this.getPointOnQuadraticBezier(0, e, t, i[0], i[1], i[2], i[3]), u = 0.01; u <= 1; u += 0.01)
|
4842
4861
|
s = this.getPointOnQuadraticBezier(u, e, t, i[0], i[1], i[2], i[3]), n += this.getLineLength(o.x, o.y, s.x, s.y), o = s;
|
4843
4862
|
return n;
|
4844
|
-
case
|
4863
|
+
case w.ARC: {
|
4845
4864
|
n = 0;
|
4846
4865
|
var l = i[4], h = i[5], f = i[4] + h, c = Math.PI / 180;
|
4847
4866
|
if (Math.abs(l - f) < c && (c = Math.abs(l - f)), o = this.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], l, 0), h < 0)
|
@@ -4856,7 +4875,7 @@ class H1 extends Ce {
|
|
4856
4875
|
return 0;
|
4857
4876
|
}
|
4858
4877
|
getPointOnLine(e, t, r, i, n) {
|
4859
|
-
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t +
|
4878
|
+
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t + at), l = Math.sqrt(e * e / (1 + u * u));
|
4860
4879
|
i < t && (l *= -1);
|
4861
4880
|
var h = u * l, f = null;
|
4862
4881
|
if (i === t)
|
@@ -4864,14 +4883,14 @@ class H1 extends Ce {
|
|
4864
4883
|
x: o,
|
4865
4884
|
y: s + h
|
4866
4885
|
};
|
4867
|
-
else if ((s - r) / (o - t +
|
4886
|
+
else if ((s - r) / (o - t + at) === u)
|
4868
4887
|
f = {
|
4869
4888
|
x: o + l,
|
4870
4889
|
y: s + h
|
4871
4890
|
};
|
4872
4891
|
else {
|
4873
4892
|
var c = 0, v = 0, d = this.getLineLength(t, r, i, n);
|
4874
|
-
if (d <
|
4893
|
+
if (d < at)
|
4875
4894
|
return null;
|
4876
4895
|
var g = (o - t) * (i - t) + (s - r) * (n - r);
|
4877
4896
|
g /= d * d, c = t + g * (i - t), v = r + g * (n - r);
|
@@ -4897,20 +4916,20 @@ class H1 extends Ce {
|
|
4897
4916
|
}
|
4898
4917
|
var s = e - r, u = 0;
|
4899
4918
|
switch (o.type) {
|
4900
|
-
case
|
4919
|
+
case w.LINE_TO:
|
4901
4920
|
i = this.getPointOnLine(s, o.start.x, o.start.y, o.points[0], o.points[1], o.start.x, o.start.y);
|
4902
4921
|
break;
|
4903
|
-
case
|
4922
|
+
case w.ARC: {
|
4904
4923
|
var l = o.points[4], h = o.points[5], f = o.points[4] + h;
|
4905
4924
|
if (u = l + s / o.pathLength * h, h < 0 && u < f || h >= 0 && u > f)
|
4906
4925
|
break;
|
4907
4926
|
i = this.getPointOnEllipticalArc(o.points[0], o.points[1], o.points[2], o.points[3], u, o.points[6]);
|
4908
4927
|
break;
|
4909
4928
|
}
|
4910
|
-
case
|
4929
|
+
case w.CURVE_TO:
|
4911
4930
|
u = s / o.pathLength, u > 1 && (u = 1), i = this.getPointOnCubicBezier(u, o.start.x, o.start.y, o.points[0], o.points[1], o.points[2], o.points[3], o.points[4], o.points[5]);
|
4912
4931
|
break;
|
4913
|
-
case
|
4932
|
+
case w.QUAD_TO:
|
4914
4933
|
u = s / o.pathLength, u > 1 && (u = 1), i = this.getPointOnQuadraticBezier(u, o.start.x, o.start.y, o.points[0], o.points[1], o.points[2], o.points[3]);
|
4915
4934
|
break;
|
4916
4935
|
}
|
@@ -4927,14 +4946,14 @@ class H1 extends Ce {
|
|
4927
4946
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
4928
4947
|
}
|
4929
4948
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
4930
|
-
var h = u *
|
4949
|
+
var h = u * mo(e) + o * bo(e) + i * xo(e) + t * To(e), f = l * mo(e) + s * bo(e) + n * xo(e) + r * To(e);
|
4931
4950
|
return {
|
4932
4951
|
x: h,
|
4933
4952
|
y: f
|
4934
4953
|
};
|
4935
4954
|
}
|
4936
4955
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
4937
|
-
var u = o *
|
4956
|
+
var u = o * Oo(e) + i * So(e) + t * Eo(e), l = s * Oo(e) + n * So(e) + r * Eo(e);
|
4938
4957
|
return {
|
4939
4958
|
x: u,
|
4940
4959
|
y: l
|
@@ -4976,8 +4995,8 @@ class H1 extends Ce {
|
|
4976
4995
|
return this.equidistantCache.points[i] || null;
|
4977
4996
|
}
|
4978
4997
|
}
|
4979
|
-
var
|
4980
|
-
class
|
4998
|
+
var B1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
4999
|
+
class j1 extends Ge {
|
4981
5000
|
constructor(e, t, r) {
|
4982
5001
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
4983
5002
|
var i = this.getHrefAttribute().getString();
|
@@ -5001,7 +5020,7 @@ class X1 extends Ge {
|
|
5001
5020
|
loadSvg(e) {
|
5002
5021
|
var t = this;
|
5003
5022
|
return xe(function* () {
|
5004
|
-
var r =
|
5023
|
+
var r = B1.exec(e);
|
5005
5024
|
if (r) {
|
5006
5025
|
var i = r[5];
|
5007
5026
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
@@ -5050,17 +5069,17 @@ class X1 extends Ge {
|
|
5050
5069
|
}
|
5051
5070
|
getBoundingBox() {
|
5052
5071
|
var e = this.getAttribute("x").getPixels("x"), t = this.getAttribute("y").getPixels("y"), r = this.getStyle("width").getPixels("x"), i = this.getStyle("height").getPixels("y");
|
5053
|
-
return new
|
5072
|
+
return new ce(e, t, e + r, t + i);
|
5054
5073
|
}
|
5055
5074
|
}
|
5056
|
-
class
|
5075
|
+
class F1 extends Ge {
|
5057
5076
|
constructor() {
|
5058
5077
|
super(...arguments), this.type = "symbol";
|
5059
5078
|
}
|
5060
5079
|
render(e) {
|
5061
5080
|
}
|
5062
5081
|
}
|
5063
|
-
class
|
5082
|
+
class U1 {
|
5064
5083
|
constructor(e) {
|
5065
5084
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
5066
5085
|
}
|
@@ -5082,10 +5101,10 @@ class q1 {
|
|
5082
5101
|
})();
|
5083
5102
|
}
|
5084
5103
|
}
|
5085
|
-
class
|
5104
|
+
class ml extends N {
|
5086
5105
|
constructor(e, t, r) {
|
5087
5106
|
super(e, t, r), this.type = "style";
|
5088
|
-
var i =
|
5107
|
+
var i = ht(
|
5089
5108
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
5090
5109
|
// remove imports
|
5091
5110
|
), n = i.split("}");
|
@@ -5100,12 +5119,12 @@ class wl extends I {
|
|
5100
5119
|
if (h.forEach((p) => {
|
5101
5120
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
5102
5121
|
x && b && (v[x] = new S(e, x, b));
|
5103
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
5122
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = a1(c), c === "@font-face") {
|
5104
5123
|
var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
|
5105
5124
|
g.forEach((p) => {
|
5106
5125
|
if (p.indexOf('format("svg")') > 0) {
|
5107
|
-
var y =
|
5108
|
-
y && new
|
5126
|
+
var y = ll(p);
|
5127
|
+
y && new U1(e).load(d, y);
|
5109
5128
|
}
|
5110
5129
|
});
|
5111
5130
|
}
|
@@ -5115,8 +5134,8 @@ class wl extends I {
|
|
5115
5134
|
});
|
5116
5135
|
}
|
5117
5136
|
}
|
5118
|
-
|
5119
|
-
class
|
5137
|
+
ml.parseExternalUrl = ll;
|
5138
|
+
class G1 extends Ge {
|
5120
5139
|
constructor() {
|
5121
5140
|
super(...arguments), this.type = "use";
|
5122
5141
|
}
|
@@ -5138,7 +5157,7 @@ class Q1 extends Ge {
|
|
5138
5157
|
} = this;
|
5139
5158
|
if (r) {
|
5140
5159
|
var i = r;
|
5141
|
-
if (r.type === "symbol" && (i = new
|
5160
|
+
if (r.type === "symbol" && (i = new Nt(t, null), i.attributes.viewBox = new S(t, "viewBox", r.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new S(t, "preserveAspectRatio", r.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new S(t, "overflow", r.getAttribute("overflow").getString()), i.children = r.children, r.styles.opacity = new S(t, "opacity", this.calculateOpacity())), i.type === "svg") {
|
5142
5161
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
5143
5162
|
n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
|
5144
5163
|
}
|
@@ -5157,16 +5176,16 @@ class Q1 extends Ge {
|
|
5157
5176
|
document: e,
|
5158
5177
|
element: t
|
5159
5178
|
} = this;
|
5160
|
-
return
|
5179
|
+
return Le.fromElement(e, t);
|
5161
5180
|
}
|
5162
5181
|
get element() {
|
5163
5182
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
5164
5183
|
}
|
5165
5184
|
}
|
5166
|
-
function
|
5185
|
+
function rr(a, e, t, r, i, n) {
|
5167
5186
|
return a[t * r * 4 + e * 4 + n];
|
5168
5187
|
}
|
5169
|
-
function
|
5188
|
+
function ar(a, e, t, r, i, n, o) {
|
5170
5189
|
a[t * r * 4 + e * 4 + n] = o;
|
5171
5190
|
}
|
5172
5191
|
function F(a, e, t) {
|
@@ -5176,7 +5195,7 @@ function F(a, e, t) {
|
|
5176
5195
|
function me(a, e, t, r) {
|
5177
5196
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
5178
5197
|
}
|
5179
|
-
class
|
5198
|
+
class bl extends N {
|
5180
5199
|
constructor(e, t, r) {
|
5181
5200
|
super(e, t, r), this.type = "feColorMatrix";
|
5182
5201
|
var i = ie(this.getAttribute("values").getString());
|
@@ -5203,13 +5222,13 @@ class Al extends I {
|
|
5203
5222
|
matrix: s
|
5204
5223
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
5205
5224
|
for (var h = 0; h < i; h++) {
|
5206
|
-
var f =
|
5207
|
-
o && (g = 0, p = 0, y = 0, x *= d / 255),
|
5225
|
+
var f = rr(u.data, h, l, i, n, 0), c = rr(u.data, h, l, i, n, 1), v = rr(u.data, h, l, i, n, 2), d = rr(u.data, h, l, i, n, 3), g = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, d) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, d) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, d) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, d) + F(s, 19, 1);
|
5226
|
+
o && (g = 0, p = 0, y = 0, x *= d / 255), ar(u.data, h, l, i, n, 0, g), ar(u.data, h, l, i, n, 1, p), ar(u.data, h, l, i, n, 2, y), ar(u.data, h, l, i, n, 3, x);
|
5208
5227
|
}
|
5209
5228
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
5210
5229
|
}
|
5211
5230
|
}
|
5212
|
-
class
|
5231
|
+
class _r extends N {
|
5213
5232
|
constructor() {
|
5214
5233
|
super(...arguments), this.type = "mask";
|
5215
5234
|
}
|
@@ -5218,13 +5237,13 @@ class Br extends I {
|
|
5218
5237
|
document: r
|
5219
5238
|
} = 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");
|
5220
5239
|
if (!o && !s) {
|
5221
|
-
var u = new
|
5240
|
+
var u = new ce();
|
5222
5241
|
this.children.forEach((d) => {
|
5223
5242
|
u.addBoundingBox(d.getBoundingBox(e));
|
5224
5243
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
5225
5244
|
}
|
5226
|
-
var l = this.removeStyles(t,
|
5227
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
5245
|
+
var l = this.removeStyles(t, _r.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
5246
|
+
r.screen.setDefaults(f), this.renderChildren(f), new bl(r, {
|
5228
5247
|
nodeType: 1,
|
5229
5248
|
childNodes: [],
|
5230
5249
|
attributes: [{
|
@@ -5241,10 +5260,10 @@ class Br extends I {
|
|
5241
5260
|
render(e) {
|
5242
5261
|
}
|
5243
5262
|
}
|
5244
|
-
|
5245
|
-
var
|
5263
|
+
_r.ignoreStyles = ["mask", "transform", "clip-path"];
|
5264
|
+
var wo = () => {
|
5246
5265
|
};
|
5247
|
-
class
|
5266
|
+
class z1 extends N {
|
5248
5267
|
constructor() {
|
5249
5268
|
super(...arguments), this.type = "clipPath";
|
5250
5269
|
}
|
@@ -5255,17 +5274,17 @@ class K1 extends I {
|
|
5255
5274
|
beginPath: i,
|
5256
5275
|
closePath: n
|
5257
5276
|
} = e;
|
5258
|
-
r && (r.beginPath =
|
5277
|
+
r && (r.beginPath = wo, r.closePath = wo), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
5259
5278
|
if (!(typeof o.path > "u")) {
|
5260
5279
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
5261
|
-
s || (s =
|
5280
|
+
s || (s = Le.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
5262
5281
|
}
|
5263
5282
|
}), Reflect.apply(n, e, []), e.clip(), r && (r.beginPath = i, r.closePath = n);
|
5264
5283
|
}
|
5265
5284
|
render(e) {
|
5266
5285
|
}
|
5267
5286
|
}
|
5268
|
-
class
|
5287
|
+
class Vr extends N {
|
5269
5288
|
constructor() {
|
5270
5289
|
super(...arguments), this.type = "filter";
|
5271
5290
|
}
|
@@ -5282,7 +5301,7 @@ class Fr extends I {
|
|
5282
5301
|
});
|
5283
5302
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
5284
5303
|
if (!(h < 1 || f < 1)) {
|
5285
|
-
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t,
|
5304
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, Vr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
|
5286
5305
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
5287
5306
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
5288
5307
|
}), e.drawImage(g, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, d);
|
@@ -5292,29 +5311,29 @@ class Fr extends I {
|
|
5292
5311
|
render(e) {
|
5293
5312
|
}
|
5294
5313
|
}
|
5295
|
-
|
5296
|
-
class
|
5314
|
+
Vr.ignoreStyles = ["filter", "transform", "clip-path"];
|
5315
|
+
class H1 extends N {
|
5297
5316
|
constructor(e, t, r) {
|
5298
5317
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
5299
5318
|
}
|
5300
5319
|
apply(e, t, r, i, n) {
|
5301
5320
|
}
|
5302
5321
|
}
|
5303
|
-
class
|
5322
|
+
class Y1 extends N {
|
5304
5323
|
constructor() {
|
5305
5324
|
super(...arguments), this.type = "feMorphology";
|
5306
5325
|
}
|
5307
5326
|
apply(e, t, r, i, n) {
|
5308
5327
|
}
|
5309
5328
|
}
|
5310
|
-
class
|
5329
|
+
class X1 extends N {
|
5311
5330
|
constructor() {
|
5312
5331
|
super(...arguments), this.type = "feComposite";
|
5313
5332
|
}
|
5314
5333
|
apply(e, t, r, i, n) {
|
5315
5334
|
}
|
5316
5335
|
}
|
5317
|
-
class
|
5336
|
+
class W1 extends N {
|
5318
5337
|
constructor(e, t, r) {
|
5319
5338
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
5320
5339
|
}
|
@@ -5323,63 +5342,63 @@ class t2 extends I {
|
|
5323
5342
|
document: o,
|
5324
5343
|
blurRadius: s
|
5325
5344
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
5326
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
5345
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Fb(l, t, r, i, n, s), u && u.removeChild(l);
|
5327
5346
|
}
|
5328
5347
|
}
|
5329
|
-
class
|
5348
|
+
class q1 extends N {
|
5330
5349
|
constructor() {
|
5331
5350
|
super(...arguments), this.type = "title";
|
5332
5351
|
}
|
5333
5352
|
}
|
5334
|
-
class
|
5353
|
+
class Q1 extends N {
|
5335
5354
|
constructor() {
|
5336
5355
|
super(...arguments), this.type = "desc";
|
5337
5356
|
}
|
5338
5357
|
}
|
5339
|
-
var
|
5340
|
-
svg:
|
5341
|
-
rect:
|
5342
|
-
circle:
|
5343
|
-
ellipse:
|
5344
|
-
line:
|
5345
|
-
polyline:
|
5346
|
-
polygon:
|
5358
|
+
var K1 = {
|
5359
|
+
svg: Nt,
|
5360
|
+
rect: dl,
|
5361
|
+
circle: T1,
|
5362
|
+
ellipse: O1,
|
5363
|
+
line: S1,
|
5364
|
+
polyline: pl,
|
5365
|
+
polygon: E1,
|
5347
5366
|
path: A,
|
5348
|
-
pattern:
|
5349
|
-
marker:
|
5350
|
-
defs:
|
5351
|
-
linearGradient:
|
5352
|
-
radialGradient:
|
5353
|
-
stop:
|
5354
|
-
animate:
|
5355
|
-
animateColor:
|
5356
|
-
animateTransform:
|
5357
|
-
font:
|
5358
|
-
"font-face":
|
5359
|
-
"missing-glyph":
|
5360
|
-
glyph:
|
5367
|
+
pattern: $1,
|
5368
|
+
marker: w1,
|
5369
|
+
defs: C1,
|
5370
|
+
linearGradient: A1,
|
5371
|
+
radialGradient: P1,
|
5372
|
+
stop: R1,
|
5373
|
+
animate: rn,
|
5374
|
+
animateColor: N1,
|
5375
|
+
animateTransform: I1,
|
5376
|
+
font: M1,
|
5377
|
+
"font-face": _1,
|
5378
|
+
"missing-glyph": V1,
|
5379
|
+
glyph: gl,
|
5361
5380
|
text: Ce,
|
5362
|
-
tspan:
|
5363
|
-
tref:
|
5364
|
-
a:
|
5365
|
-
textPath:
|
5366
|
-
image:
|
5367
|
-
g:
|
5368
|
-
symbol:
|
5369
|
-
style:
|
5370
|
-
use:
|
5371
|
-
mask:
|
5372
|
-
clipPath:
|
5373
|
-
filter:
|
5374
|
-
feDropShadow:
|
5375
|
-
feMorphology:
|
5376
|
-
feComposite:
|
5377
|
-
feColorMatrix:
|
5378
|
-
feGaussianBlur:
|
5379
|
-
title:
|
5380
|
-
desc:
|
5381
|
+
tspan: Mr,
|
5382
|
+
tref: D1,
|
5383
|
+
a: k1,
|
5384
|
+
textPath: L1,
|
5385
|
+
image: j1,
|
5386
|
+
g: tn,
|
5387
|
+
symbol: F1,
|
5388
|
+
style: ml,
|
5389
|
+
use: G1,
|
5390
|
+
mask: _r,
|
5391
|
+
clipPath: z1,
|
5392
|
+
filter: Vr,
|
5393
|
+
feDropShadow: H1,
|
5394
|
+
feMorphology: Y1,
|
5395
|
+
feComposite: X1,
|
5396
|
+
feColorMatrix: bl,
|
5397
|
+
feGaussianBlur: W1,
|
5398
|
+
title: q1,
|
5399
|
+
desc: Q1
|
5381
5400
|
};
|
5382
|
-
function
|
5401
|
+
function Co(a, e) {
|
5383
5402
|
var t = Object.keys(a);
|
5384
5403
|
if (Object.getOwnPropertySymbols) {
|
5385
5404
|
var r = Object.getOwnPropertySymbols(a);
|
@@ -5389,26 +5408,26 @@ function No(a, e) {
|
|
5389
5408
|
}
|
5390
5409
|
return t;
|
5391
5410
|
}
|
5392
|
-
function
|
5411
|
+
function Z1(a) {
|
5393
5412
|
for (var e = 1; e < arguments.length; e++) {
|
5394
5413
|
var t = arguments[e] != null ? arguments[e] : {};
|
5395
|
-
e % 2 ?
|
5396
|
-
|
5397
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
5414
|
+
e % 2 ? Co(Object(t), !0).forEach(function(r) {
|
5415
|
+
Ji(a, r, t[r]);
|
5416
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Co(Object(t)).forEach(function(r) {
|
5398
5417
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
5399
5418
|
});
|
5400
5419
|
}
|
5401
5420
|
return a;
|
5402
5421
|
}
|
5403
|
-
function
|
5422
|
+
function J1(a, e) {
|
5404
5423
|
var t = document.createElement("canvas");
|
5405
5424
|
return t.width = a, t.height = e, t;
|
5406
5425
|
}
|
5407
|
-
function
|
5408
|
-
return
|
5426
|
+
function e2(a) {
|
5427
|
+
return mi.apply(this, arguments);
|
5409
5428
|
}
|
5410
|
-
function
|
5411
|
-
return
|
5429
|
+
function mi() {
|
5430
|
+
return mi = xe(function* (a) {
|
5412
5431
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
5413
5432
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
5414
5433
|
t.onload = () => {
|
@@ -5417,15 +5436,15 @@ function Ti() {
|
|
5417
5436
|
i(l);
|
5418
5437
|
}, t.src = a;
|
5419
5438
|
});
|
5420
|
-
}),
|
5439
|
+
}), mi.apply(this, arguments);
|
5421
5440
|
}
|
5422
|
-
class
|
5441
|
+
class $e {
|
5423
5442
|
constructor(e) {
|
5424
5443
|
var {
|
5425
5444
|
rootEmSize: t = 12,
|
5426
5445
|
emSize: r = 12,
|
5427
|
-
createCanvas: i =
|
5428
|
-
createImage: n =
|
5446
|
+
createCanvas: i = $e.createCanvas,
|
5447
|
+
createImage: n = $e.createImage,
|
5429
5448
|
anonymousCrossOrigin: o
|
5430
5449
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
5431
5450
|
this.canvg = e, this.definitions = {}, this.styles = {}, this.stylesSpecificity = {}, this.images = [], this.fonts = [], this.emSizeStack = [], this.uniqueId = 0, this.screen = e.screen, this.rootEmSize = t, this.emSize = r, this.createCanvas = i, this.createImage = this.bindCreateImage(n, o), this.screen.wait(this.isImagesLoaded.bind(this)), this.screen.wait(this.isFontsLoaded.bind(this));
|
@@ -5474,22 +5493,22 @@ class Ee {
|
|
5474
5493
|
return t.root = !0, t.addStylesFromStyleDefinition(), this.documentElement = t, t;
|
5475
5494
|
}
|
5476
5495
|
createElement(e) {
|
5477
|
-
var t = e.nodeName.replace(/^[^:]+:/, ""), r =
|
5478
|
-
return typeof r < "u" ? new r(this, e) : new
|
5496
|
+
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
5497
|
+
return typeof r < "u" ? new r(this, e) : new d1(this, e);
|
5479
5498
|
}
|
5480
5499
|
createTextNode(e) {
|
5481
|
-
return new
|
5500
|
+
return new x1(this, e);
|
5482
5501
|
}
|
5483
5502
|
setViewBox(e) {
|
5484
|
-
this.screen.setViewBox(
|
5503
|
+
this.screen.setViewBox(Z1({
|
5485
5504
|
document: this
|
5486
5505
|
}, e));
|
5487
5506
|
}
|
5488
5507
|
}
|
5489
|
-
|
5490
|
-
|
5491
|
-
|
5492
|
-
function
|
5508
|
+
$e.createCanvas = J1;
|
5509
|
+
$e.createImage = e2;
|
5510
|
+
$e.elementTypes = K1;
|
5511
|
+
function Ao(a, e) {
|
5493
5512
|
var t = Object.keys(a);
|
5494
5513
|
if (Object.getOwnPropertySymbols) {
|
5495
5514
|
var r = Object.getOwnPropertySymbols(a);
|
@@ -5499,18 +5518,18 @@ function Mo(a, e) {
|
|
5499
5518
|
}
|
5500
5519
|
return t;
|
5501
5520
|
}
|
5502
|
-
function
|
5521
|
+
function Ve(a) {
|
5503
5522
|
for (var e = 1; e < arguments.length; e++) {
|
5504
5523
|
var t = arguments[e] != null ? arguments[e] : {};
|
5505
|
-
e % 2 ?
|
5506
|
-
|
5507
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
5524
|
+
e % 2 ? Ao(Object(t), !0).forEach(function(r) {
|
5525
|
+
Ji(a, r, t[r]);
|
5526
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ao(Object(t)).forEach(function(r) {
|
5508
5527
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
5509
5528
|
});
|
5510
5529
|
}
|
5511
5530
|
return a;
|
5512
5531
|
}
|
5513
|
-
class
|
5532
|
+
class mt {
|
5514
5533
|
/**
|
5515
5534
|
* Main constructor.
|
5516
5535
|
* @param ctx - Rendering context.
|
@@ -5519,8 +5538,8 @@ class xt {
|
|
5519
5538
|
*/
|
5520
5539
|
constructor(e, t) {
|
5521
5540
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5522
|
-
this.parser = new
|
5523
|
-
var i = new
|
5541
|
+
this.parser = new Fa(r), this.screen = new Ir(e, r), this.options = r;
|
5542
|
+
var i = new $e(this, r), n = i.createDocumentElement(t);
|
5524
5543
|
this.document = i, this.documentElement = n;
|
5525
5544
|
}
|
5526
5545
|
/**
|
@@ -5533,8 +5552,8 @@ class xt {
|
|
5533
5552
|
static from(e, t) {
|
5534
5553
|
var r = arguments;
|
5535
5554
|
return xe(function* () {
|
5536
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
5537
|
-
return new
|
5555
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Fa(i), o = yield n.parse(t);
|
5556
|
+
return new mt(e, o, i);
|
5538
5557
|
})();
|
5539
5558
|
}
|
5540
5559
|
/**
|
@@ -5545,8 +5564,8 @@ class xt {
|
|
5545
5564
|
* @returns Canvg instance.
|
5546
5565
|
*/
|
5547
5566
|
static fromString(e, t) {
|
5548
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
5549
|
-
return new
|
5567
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Fa(r), n = i.parseFromString(t);
|
5568
|
+
return new mt(e, n, r);
|
5550
5569
|
}
|
5551
5570
|
/**
|
5552
5571
|
* Create new Canvg instance with inherited options.
|
@@ -5557,7 +5576,7 @@ class xt {
|
|
5557
5576
|
*/
|
5558
5577
|
fork(e, t) {
|
5559
5578
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5560
|
-
return
|
5579
|
+
return mt.from(e, t, Ve(Ve({}, this.options), r));
|
5561
5580
|
}
|
5562
5581
|
/**
|
5563
5582
|
* Create new Canvg instance with inherited options.
|
@@ -5568,7 +5587,7 @@ class xt {
|
|
5568
5587
|
*/
|
5569
5588
|
forkString(e, t) {
|
5570
5589
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5571
|
-
return
|
5590
|
+
return mt.fromString(e, t, Ve(Ve({}, this.options), r));
|
5572
5591
|
}
|
5573
5592
|
/**
|
5574
5593
|
* Document is ready promise.
|
@@ -5592,7 +5611,7 @@ class xt {
|
|
5592
5611
|
var e = arguments, t = this;
|
5593
5612
|
return xe(function* () {
|
5594
5613
|
var r = e.length > 0 && e[0] !== void 0 ? e[0] : {};
|
5595
|
-
t.start(
|
5614
|
+
t.start(Ve({
|
5596
5615
|
enableRedraw: !0,
|
5597
5616
|
ignoreAnimation: !0,
|
5598
5617
|
ignoreMouse: !0
|
@@ -5609,7 +5628,7 @@ class xt {
|
|
5609
5628
|
screen: r,
|
5610
5629
|
options: i
|
5611
5630
|
} = this;
|
5612
|
-
r.start(t,
|
5631
|
+
r.start(t, Ve(Ve({
|
5613
5632
|
enableRedraw: !0
|
5614
5633
|
}, i), e));
|
5615
5634
|
}
|
@@ -5631,90 +5650,90 @@ class xt {
|
|
5631
5650
|
}
|
5632
5651
|
}
|
5633
5652
|
export {
|
5634
|
-
|
5635
|
-
|
5636
|
-
|
5637
|
-
|
5638
|
-
|
5639
|
-
|
5640
|
-
|
5641
|
-
|
5642
|
-
|
5643
|
-
|
5644
|
-
|
5645
|
-
|
5646
|
-
|
5647
|
-
|
5648
|
-
|
5649
|
-
|
5650
|
-
|
5651
|
-
|
5652
|
-
|
5653
|
-
|
5654
|
-
|
5655
|
-
|
5656
|
-
|
5657
|
-
|
5658
|
-
|
5659
|
-
|
5660
|
-
|
5661
|
-
|
5662
|
-
|
5663
|
-
|
5664
|
-
|
5665
|
-
|
5666
|
-
|
5667
|
-
|
5668
|
-
|
5669
|
-
|
5670
|
-
|
5671
|
-
|
5672
|
-
|
5653
|
+
k1 as AElement,
|
5654
|
+
N1 as AnimateColorElement,
|
5655
|
+
rn as AnimateElement,
|
5656
|
+
I1 as AnimateTransformElement,
|
5657
|
+
ce as BoundingBox,
|
5658
|
+
mo as CB1,
|
5659
|
+
bo as CB2,
|
5660
|
+
xo as CB3,
|
5661
|
+
To as CB4,
|
5662
|
+
mt as Canvg,
|
5663
|
+
T1 as CircleElement,
|
5664
|
+
z1 as ClipPathElement,
|
5665
|
+
C1 as DefsElement,
|
5666
|
+
Q1 as DescElement,
|
5667
|
+
$e as Document,
|
5668
|
+
N as Element,
|
5669
|
+
O1 as EllipseElement,
|
5670
|
+
bl as FeColorMatrixElement,
|
5671
|
+
X1 as FeCompositeElement,
|
5672
|
+
H1 as FeDropShadowElement,
|
5673
|
+
W1 as FeGaussianBlurElement,
|
5674
|
+
Y1 as FeMorphologyElement,
|
5675
|
+
Vr as FilterElement,
|
5676
|
+
Z as Font,
|
5677
|
+
M1 as FontElement,
|
5678
|
+
_1 as FontFaceElement,
|
5679
|
+
tn as GElement,
|
5680
|
+
gl as GlyphElement,
|
5681
|
+
yl as GradientElement,
|
5682
|
+
j1 as ImageElement,
|
5683
|
+
S1 as LineElement,
|
5684
|
+
A1 as LinearGradientElement,
|
5685
|
+
w1 as MarkerElement,
|
5686
|
+
_r as MaskElement,
|
5687
|
+
fl as Matrix,
|
5688
|
+
V1 as MissingGlyphElement,
|
5689
|
+
n1 as Mouse,
|
5690
|
+
at as PSEUDO_ZERO,
|
5691
|
+
Fa as Parser,
|
5673
5692
|
A as PathElement,
|
5674
|
-
|
5675
|
-
|
5693
|
+
w as PathParser,
|
5694
|
+
$1 as PatternElement,
|
5676
5695
|
V as Point,
|
5677
|
-
|
5678
|
-
|
5696
|
+
E1 as PolygonElement,
|
5697
|
+
pl as PolylineElement,
|
5679
5698
|
S as Property,
|
5680
|
-
|
5681
|
-
|
5682
|
-
|
5683
|
-
|
5684
|
-
|
5699
|
+
Oo as QB1,
|
5700
|
+
So as QB2,
|
5701
|
+
Eo as QB3,
|
5702
|
+
P1 as RadialGradientElement,
|
5703
|
+
dl as RectElement,
|
5685
5704
|
Ge as RenderedElement,
|
5686
|
-
|
5687
|
-
|
5688
|
-
|
5689
|
-
|
5690
|
-
|
5691
|
-
|
5692
|
-
|
5693
|
-
|
5694
|
-
|
5695
|
-
|
5696
|
-
|
5697
|
-
|
5698
|
-
|
5705
|
+
l1 as Rotate,
|
5706
|
+
Nt as SVGElement,
|
5707
|
+
U1 as SVGFontLoader,
|
5708
|
+
h1 as Scale,
|
5709
|
+
Ir as Screen,
|
5710
|
+
cl as Skew,
|
5711
|
+
v1 as SkewX,
|
5712
|
+
f1 as SkewY,
|
5713
|
+
R1 as StopElement,
|
5714
|
+
ml as StyleElement,
|
5715
|
+
F1 as SymbolElement,
|
5716
|
+
D1 as TRefElement,
|
5717
|
+
Mr as TSpanElement,
|
5699
5718
|
Ce as TextElement,
|
5700
|
-
|
5701
|
-
|
5702
|
-
|
5703
|
-
|
5704
|
-
|
5705
|
-
|
5706
|
-
|
5707
|
-
|
5708
|
-
|
5709
|
-
|
5710
|
-
|
5711
|
-
|
5712
|
-
|
5713
|
-
|
5719
|
+
L1 as TextPathElement,
|
5720
|
+
q1 as TitleElement,
|
5721
|
+
Le as Transform,
|
5722
|
+
u1 as Translate,
|
5723
|
+
d1 as UnknownElement,
|
5724
|
+
G1 as UseElement,
|
5725
|
+
i1 as ViewPort,
|
5726
|
+
ht as compressSpaces,
|
5727
|
+
mt as default,
|
5728
|
+
a1 as getSelectorSpecificity,
|
5729
|
+
Wb as normalizeAttributeName,
|
5730
|
+
qb as normalizeColor,
|
5731
|
+
ll as parseExternalUrl,
|
5732
|
+
r2 as presets,
|
5714
5733
|
ie as toNumbers,
|
5715
|
-
|
5716
|
-
|
5717
|
-
|
5718
|
-
|
5719
|
-
|
5734
|
+
Hb as trimLeft,
|
5735
|
+
Yb as trimRight,
|
5736
|
+
po as vectorMagnitude,
|
5737
|
+
yo as vectorsAngle,
|
5738
|
+
yi as vectorsRatio
|
5720
5739
|
};
|