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