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