@opensystemslab/map 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +3 -4
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +321 -88
- package/dist/{html2canvas.esm-f5b1510b.mjs → html2canvas.esm-1a1724a1.mjs} +1750 -1357
- package/dist/index-c7aa277b.mjs +47112 -0
- package/dist/{index.es-15046b1b.mjs → index.es-f278d6d5.mjs} +1265 -1112
- package/dist/index.html +104 -71
- package/dist/{purify.es-22c1781a.mjs → purify.es-00aa4070.mjs} +28 -8
- package/dist/style.css +1 -1
- package/package.json +22 -25
- package/types/components/address-autocomplete/index.d.ts +3 -3
- package/types/components/my-map/drawing.d.ts +2 -2
- package/types/components/my-map/index.d.ts +8 -2
- package/types/components/my-map/projections.d.ts +1 -1
- package/types/components/my-map/utils.d.ts +1 -1
- package/types/lib/ordnanceSurvey.d.ts +1 -1
- package/dist/index-8d60c5e4.mjs +0 -37564
@@ -1,108 +1,114 @@
|
|
1
|
-
import { c as
|
2
|
-
var
|
1
|
+
import { c as fr, g as _o } from "./index-c7aa277b.mjs";
|
2
|
+
var zt = function(a) {
|
3
3
|
return a && a.Math == Math && a;
|
4
|
-
}, z =
|
5
|
-
|
6
|
-
|
4
|
+
}, z = (
|
5
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
6
|
+
zt(typeof globalThis == "object" && globalThis) || zt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
7
|
+
zt(typeof self == "object" && self) || zt(typeof fr == "object" && fr) || // eslint-disable-next-line no-new-func -- fallback
|
8
|
+
function() {
|
9
|
+
return this;
|
10
|
+
}() || Function("return this")()
|
11
|
+
), ot = {}, L = function(a) {
|
7
12
|
try {
|
8
13
|
return !!a();
|
9
14
|
} catch {
|
10
15
|
return !0;
|
11
16
|
}
|
12
|
-
},
|
17
|
+
}, Pl = L, ce = !Pl(function() {
|
13
18
|
return Object.defineProperty({}, 1, { get: function() {
|
14
19
|
return 7;
|
15
20
|
} })[1] != 7;
|
16
|
-
}),
|
17
|
-
var a = function() {
|
18
|
-
}.bind();
|
21
|
+
}), Rl = L, xr = !Rl(function() {
|
22
|
+
var a = (function() {
|
23
|
+
}).bind();
|
19
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
20
|
-
}),
|
21
|
-
return
|
22
|
-
},
|
23
|
-
|
24
|
-
var t =
|
25
|
+
}), Il = xr, Gt = Function.prototype.call, Y = Il ? Gt.bind(Gt) : function() {
|
26
|
+
return Gt.apply(Gt, arguments);
|
27
|
+
}, Do = {}, Vo = {}.propertyIsEnumerable, Lo = Object.getOwnPropertyDescriptor, Nl = Lo && !Vo.call({ 1: 2 }, 1);
|
28
|
+
Do.f = Nl ? function(e) {
|
29
|
+
var t = Lo(this, e);
|
25
30
|
return !!t && t.enumerable;
|
26
|
-
} :
|
27
|
-
var
|
31
|
+
} : Vo;
|
32
|
+
var Tr = function(a, e) {
|
28
33
|
return {
|
29
34
|
enumerable: !(a & 1),
|
30
35
|
configurable: !(a & 2),
|
31
36
|
writable: !(a & 4),
|
32
37
|
value: e
|
33
38
|
};
|
34
|
-
},
|
39
|
+
}, ko = xr, Bo = Function.prototype, Ya = Bo.call, Ml = ko && Bo.bind.bind(Ya, Ya), k = ko ? Ml : function(a) {
|
35
40
|
return function() {
|
36
41
|
return Ya.apply(a, arguments);
|
37
42
|
};
|
38
|
-
},
|
39
|
-
return
|
40
|
-
},
|
41
|
-
return !
|
43
|
+
}, Fo = k, _l = Fo({}.toString), Dl = Fo("".slice), Fe = function(a) {
|
44
|
+
return Dl(_l(a), 8, -1);
|
45
|
+
}, Vl = k, Ll = L, kl = Fe, Jr = Object, Bl = Vl("".split), jo = Ll(function() {
|
46
|
+
return !Jr("z").propertyIsEnumerable(0);
|
42
47
|
}) ? function(a) {
|
43
|
-
return
|
44
|
-
} :
|
48
|
+
return kl(a) == "String" ? Bl(a, "") : Jr(a);
|
49
|
+
} : Jr, je = function(a) {
|
45
50
|
return a == null;
|
46
|
-
},
|
47
|
-
if (
|
48
|
-
throw
|
51
|
+
}, Fl = je, jl = TypeError, ge = function(a) {
|
52
|
+
if (Fl(a))
|
53
|
+
throw jl("Can't call method on " + a);
|
49
54
|
return a;
|
50
|
-
},
|
51
|
-
return
|
52
|
-
}, Xa = typeof document == "object" && document.all,
|
55
|
+
}, Ul = jo, zl = ge, Ct = function(a) {
|
56
|
+
return Ul(zl(a));
|
57
|
+
}, Xa = typeof document == "object" && document.all, Gl = typeof Xa > "u" && Xa !== void 0, Uo = {
|
53
58
|
all: Xa,
|
54
|
-
IS_HTMLDDA:
|
55
|
-
},
|
56
|
-
return typeof a == "function" || a ===
|
59
|
+
IS_HTMLDDA: Gl
|
60
|
+
}, zo = Uo, Hl = zo.all, D = zo.IS_HTMLDDA ? function(a) {
|
61
|
+
return typeof a == "function" || a === Hl;
|
57
62
|
} : function(a) {
|
58
63
|
return typeof a == "function";
|
59
|
-
},
|
60
|
-
return typeof a == "object" ? a !== null :
|
64
|
+
}, yn = D, Go = Uo, Yl = Go.all, Te = Go.IS_HTMLDDA ? function(a) {
|
65
|
+
return typeof a == "object" ? a !== null : yn(a) || a === Yl;
|
61
66
|
} : function(a) {
|
62
|
-
return typeof a == "object" ? a !== null :
|
63
|
-
},
|
64
|
-
return
|
67
|
+
return typeof a == "object" ? a !== null : yn(a);
|
68
|
+
}, ea = z, Xl = D, Wl = function(a) {
|
69
|
+
return Xl(a) ? a : void 0;
|
65
70
|
}, Ue = function(a, e) {
|
66
|
-
return arguments.length < 2 ?
|
67
|
-
},
|
68
|
-
|
69
|
-
!
|
70
|
-
var Oi =
|
71
|
+
return arguments.length < 2 ? Wl(ea[a]) : ea[a] && ea[a][e];
|
72
|
+
}, ql = k, Or = ql({}.isPrototypeOf), Sr = typeof navigator < "u" && String(navigator.userAgent) || "", Ho = z, ta = Sr, mn = Ho.process, bn = Ho.Deno, xn = mn && mn.versions || bn && bn.version, Tn = xn && xn.v8, ue, cr;
|
73
|
+
Tn && (ue = Tn.split("."), cr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
74
|
+
!cr && ta && (ue = ta.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = ta.match(/Chrome\/(\d+)/), ue && (cr = +ue[1])));
|
75
|
+
var Oi = cr, On = Oi, Ql = L, Yo = !!Object.getOwnPropertySymbols && !Ql(function() {
|
71
76
|
var a = Symbol();
|
72
|
-
return !String(a) || !(Object(a) instanceof Symbol) ||
|
73
|
-
|
77
|
+
return !String(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
78
|
+
!Symbol.sham && On && On < 41;
|
79
|
+
}), Kl = Yo, Xo = Kl && !Symbol.sham && typeof Symbol.iterator == "symbol", Zl = Ue, Jl = D, eh = Or, th = Xo, rh = Object, Wo = th ? function(a) {
|
74
80
|
return typeof a == "symbol";
|
75
81
|
} : function(a) {
|
76
|
-
var e =
|
77
|
-
return
|
78
|
-
},
|
82
|
+
var e = Zl("Symbol");
|
83
|
+
return Jl(e) && eh(e.prototype, rh(a));
|
84
|
+
}, ah = String, Er = function(a) {
|
79
85
|
try {
|
80
|
-
return
|
86
|
+
return ah(a);
|
81
87
|
} catch {
|
82
88
|
return "Object";
|
83
89
|
}
|
84
|
-
},
|
85
|
-
if (
|
90
|
+
}, ih = D, nh = Er, sh = TypeError, we = function(a) {
|
91
|
+
if (ih(a))
|
86
92
|
return a;
|
87
|
-
throw
|
88
|
-
},
|
93
|
+
throw sh(nh(a) + " is not a function");
|
94
|
+
}, oh = we, uh = je, ut = function(a, e) {
|
89
95
|
var t = a[e];
|
90
|
-
return
|
91
|
-
},
|
96
|
+
return uh(t) ? void 0 : oh(t);
|
97
|
+
}, ra = Y, aa = D, ia = Te, lh = TypeError, hh = function(a, e) {
|
92
98
|
var t, r;
|
93
|
-
if (e === "string" &&
|
99
|
+
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)))
|
94
100
|
return r;
|
95
|
-
throw
|
96
|
-
},
|
101
|
+
throw lh("Can't convert object to primitive value");
|
102
|
+
}, qo = { exports: {} }, Sn = z, vh = Object.defineProperty, Si = function(a, e) {
|
97
103
|
try {
|
98
|
-
|
104
|
+
vh(Sn, a, { value: e, configurable: !0, writable: !0 });
|
99
105
|
} catch {
|
100
|
-
|
106
|
+
Sn[a] = e;
|
101
107
|
}
|
102
108
|
return e;
|
103
|
-
},
|
104
|
-
(
|
105
|
-
return
|
109
|
+
}, fh = z, ch = Si, En = "__core-js_shared__", gh = fh[En] || ch(En, {}), Ei = gh, $n = Ei;
|
110
|
+
(qo.exports = function(a, e) {
|
111
|
+
return $n[a] || ($n[a] = e !== void 0 ? e : {});
|
106
112
|
})("versions", []).push({
|
107
113
|
version: "3.27.2",
|
108
114
|
mode: "global",
|
@@ -110,156 +116,156 @@ var Oi = gr, Tn = Oi, Xl = L, Go = !!Object.getOwnPropertySymbols && !Xl(functio
|
|
110
116
|
license: "https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",
|
111
117
|
source: "https://github.com/zloirock/core-js"
|
112
118
|
});
|
113
|
-
var
|
114
|
-
return
|
115
|
-
},
|
116
|
-
return
|
117
|
-
},
|
118
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
119
|
-
},
|
120
|
-
return
|
121
|
-
},
|
122
|
-
if (!
|
119
|
+
var $i = qo.exports, dh = ge, ph = Object, $r = function(a) {
|
120
|
+
return ph(dh(a));
|
121
|
+
}, yh = k, mh = $r, bh = yh({}.hasOwnProperty), le = Object.hasOwn || function(e, t) {
|
122
|
+
return bh(mh(e), t);
|
123
|
+
}, xh = k, Th = 0, Oh = Math.random(), Sh = xh(1 .toString), Qo = function(a) {
|
124
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + Sh(++Th + Oh, 36);
|
125
|
+
}, Eh = z, $h = $i, Cn = le, Ch = Qo, wh = Yo, Ah = Xo, Je = Eh.Symbol, na = $h("wks"), Ph = Ah ? Je.for || Je : Je && Je.withoutSetter || Ch, G = function(a) {
|
126
|
+
return Cn(na, a) || (na[a] = wh && Cn(Je, a) ? Je[a] : Ph("Symbol." + a)), na[a];
|
127
|
+
}, Rh = Y, wn = Te, An = Wo, Ih = ut, Nh = hh, Mh = G, _h = TypeError, Dh = Mh("toPrimitive"), Vh = function(a, e) {
|
128
|
+
if (!wn(a) || An(a))
|
123
129
|
return a;
|
124
|
-
var t =
|
130
|
+
var t = Ih(a, Dh), r;
|
125
131
|
if (t) {
|
126
|
-
if (e === void 0 && (e = "default"), r =
|
132
|
+
if (e === void 0 && (e = "default"), r = Rh(t, a, e), !wn(r) || An(r))
|
127
133
|
return r;
|
128
|
-
throw
|
129
|
-
}
|
130
|
-
return e === void 0 && (e = "number"),
|
131
|
-
},
|
132
|
-
var e =
|
133
|
-
return
|
134
|
-
},
|
135
|
-
return
|
136
|
-
},
|
137
|
-
return Object.defineProperty(
|
134
|
+
throw _h("Can't convert object to primitive value");
|
135
|
+
}
|
136
|
+
return e === void 0 && (e = "number"), Nh(a, e);
|
137
|
+
}, Lh = Vh, kh = Wo, Ci = function(a) {
|
138
|
+
var e = Lh(a, "string");
|
139
|
+
return kh(e) ? e : e + "";
|
140
|
+
}, Bh = z, Pn = Te, Wa = Bh.document, Fh = Pn(Wa) && Pn(Wa.createElement), Cr = function(a) {
|
141
|
+
return Fh ? Wa.createElement(a) : {};
|
142
|
+
}, jh = ce, Uh = L, zh = Cr, Ko = !jh && !Uh(function() {
|
143
|
+
return Object.defineProperty(zh("div"), "a", {
|
138
144
|
get: function() {
|
139
145
|
return 7;
|
140
146
|
}
|
141
147
|
}).a != 7;
|
142
|
-
}),
|
143
|
-
|
144
|
-
if (e =
|
148
|
+
}), Gh = ce, Hh = Y, Yh = Do, Xh = Tr, Wh = Ct, qh = Ci, Qh = le, Kh = Ko, Rn = Object.getOwnPropertyDescriptor;
|
149
|
+
ot.f = Gh ? Rn : function(e, t) {
|
150
|
+
if (e = Wh(e), t = qh(t), Kh)
|
145
151
|
try {
|
146
|
-
return
|
152
|
+
return Rn(e, t);
|
147
153
|
} catch {
|
148
154
|
}
|
149
|
-
if (
|
150
|
-
return
|
155
|
+
if (Qh(e, t))
|
156
|
+
return Xh(!Hh(Yh.f, e, t), e[t]);
|
151
157
|
};
|
152
|
-
var de = {},
|
158
|
+
var de = {}, Zh = ce, Jh = L, Zo = Zh && Jh(function() {
|
153
159
|
return Object.defineProperty(function() {
|
154
160
|
}, "prototype", {
|
155
161
|
value: 42,
|
156
162
|
writable: !1
|
157
163
|
}).prototype != 42;
|
158
|
-
}),
|
159
|
-
if (
|
164
|
+
}), ev = Te, tv = String, rv = TypeError, K = function(a) {
|
165
|
+
if (ev(a))
|
160
166
|
return a;
|
161
|
-
throw
|
162
|
-
},
|
163
|
-
de.f =
|
164
|
-
if (
|
165
|
-
var i =
|
166
|
-
i && i[
|
167
|
-
configurable:
|
168
|
-
enumerable:
|
167
|
+
throw rv(tv(a) + " is not an object");
|
168
|
+
}, av = ce, iv = Ko, nv = Zo, Ht = K, In = Ci, sv = TypeError, sa = Object.defineProperty, ov = Object.getOwnPropertyDescriptor, oa = "enumerable", ua = "configurable", la = "writable";
|
169
|
+
de.f = av ? nv ? function(e, t, r) {
|
170
|
+
if (Ht(e), t = In(t), Ht(r), typeof e == "function" && t === "prototype" && "value" in r && la in r && !r[la]) {
|
171
|
+
var i = ov(e, t);
|
172
|
+
i && i[la] && (e[t] = r.value, r = {
|
173
|
+
configurable: ua in r ? r[ua] : i[ua],
|
174
|
+
enumerable: oa in r ? r[oa] : i[oa],
|
169
175
|
writable: !1
|
170
176
|
});
|
171
177
|
}
|
172
|
-
return
|
173
|
-
} :
|
174
|
-
if (
|
178
|
+
return sa(e, t, r);
|
179
|
+
} : sa : function(e, t, r) {
|
180
|
+
if (Ht(e), t = In(t), Ht(r), iv)
|
175
181
|
try {
|
176
|
-
return
|
182
|
+
return sa(e, t, r);
|
177
183
|
} catch {
|
178
184
|
}
|
179
185
|
if ("get" in r || "set" in r)
|
180
|
-
throw
|
186
|
+
throw sv("Accessors not supported");
|
181
187
|
return "value" in r && (e[t] = r.value), e;
|
182
188
|
};
|
183
|
-
var
|
184
|
-
return
|
189
|
+
var uv = ce, lv = de, hv = Tr, wt = uv ? function(a, e, t) {
|
190
|
+
return lv.f(a, e, hv(1, t));
|
185
191
|
} : function(a, e, t) {
|
186
192
|
return a[e] = t, a;
|
187
|
-
},
|
188
|
-
}.name === "something",
|
189
|
-
EXISTS:
|
190
|
-
PROPER:
|
191
|
-
CONFIGURABLE:
|
192
|
-
},
|
193
|
-
|
194
|
-
return
|
193
|
+
}, Jo = { exports: {} }, qa = ce, vv = le, eu = Function.prototype, fv = qa && Object.getOwnPropertyDescriptor, wi = vv(eu, "name"), cv = wi && (function() {
|
194
|
+
}).name === "something", gv = wi && (!qa || qa && fv(eu, "name").configurable), wr = {
|
195
|
+
EXISTS: wi,
|
196
|
+
PROPER: cv,
|
197
|
+
CONFIGURABLE: gv
|
198
|
+
}, dv = k, pv = D, Qa = Ei, yv = dv(Function.toString);
|
199
|
+
pv(Qa.inspectSource) || (Qa.inspectSource = function(a) {
|
200
|
+
return yv(a);
|
195
201
|
});
|
196
|
-
var
|
197
|
-
return
|
198
|
-
},
|
199
|
-
return
|
200
|
-
},
|
202
|
+
var Ai = Qa.inspectSource, mv = z, bv = D, Nn = mv.WeakMap, xv = bv(Nn) && /native code/.test(String(Nn)), Tv = $i, Ov = Qo, Mn = Tv("keys"), Pi = function(a) {
|
203
|
+
return Mn[a] || (Mn[a] = Ov(a));
|
204
|
+
}, Ri = {}, Sv = xv, tu = z, Ev = Te, $v = wt, ha = le, va = Ei, Cv = Pi, wv = Ri, _n = "Object already initialized", Ka = tu.TypeError, Av = tu.WeakMap, gr, St, dr, Pv = function(a) {
|
205
|
+
return dr(a) ? St(a) : gr(a, {});
|
206
|
+
}, Rv = function(a) {
|
201
207
|
return function(e) {
|
202
208
|
var t;
|
203
|
-
if (!
|
209
|
+
if (!Ev(e) || (t = St(e)).type !== a)
|
204
210
|
throw Ka("Incompatible receiver, " + a + " required");
|
205
211
|
return t;
|
206
212
|
};
|
207
213
|
};
|
208
|
-
if (
|
209
|
-
var fe =
|
210
|
-
fe.get = fe.get, fe.has = fe.has, fe.set = fe.set,
|
214
|
+
if (Sv || va.state) {
|
215
|
+
var fe = va.state || (va.state = new Av());
|
216
|
+
fe.get = fe.get, fe.has = fe.has, fe.set = fe.set, gr = function(a, e) {
|
211
217
|
if (fe.has(a))
|
212
|
-
throw Ka(
|
218
|
+
throw Ka(_n);
|
213
219
|
return e.facade = a, fe.set(a, e), e;
|
214
|
-
},
|
220
|
+
}, St = function(a) {
|
215
221
|
return fe.get(a) || {};
|
216
|
-
},
|
222
|
+
}, dr = function(a) {
|
217
223
|
return fe.has(a);
|
218
224
|
};
|
219
225
|
} else {
|
220
|
-
var Xe =
|
221
|
-
|
222
|
-
if (
|
223
|
-
throw Ka(
|
224
|
-
return e.facade = a,
|
225
|
-
},
|
226
|
-
return
|
227
|
-
},
|
228
|
-
return
|
226
|
+
var Xe = Cv("state");
|
227
|
+
wv[Xe] = !0, gr = function(a, e) {
|
228
|
+
if (ha(a, Xe))
|
229
|
+
throw Ka(_n);
|
230
|
+
return e.facade = a, $v(a, Xe, e), e;
|
231
|
+
}, St = function(a) {
|
232
|
+
return ha(a, Xe) ? a[Xe] : {};
|
233
|
+
}, dr = function(a) {
|
234
|
+
return ha(a, Xe);
|
229
235
|
};
|
230
236
|
}
|
231
|
-
var
|
232
|
-
set:
|
233
|
-
get:
|
234
|
-
has:
|
235
|
-
enforce:
|
236
|
-
getterFor:
|
237
|
-
},
|
238
|
-
return
|
237
|
+
var Ar = {
|
238
|
+
set: gr,
|
239
|
+
get: St,
|
240
|
+
has: dr,
|
241
|
+
enforce: Pv,
|
242
|
+
getterFor: Rv
|
243
|
+
}, Ii = k, Iv = L, Nv = D, Yt = le, Za = ce, Mv = wr.CONFIGURABLE, _v = Ai, ru = Ar, Dv = ru.enforce, Vv = ru.get, Dn = String, sr = Object.defineProperty, Lv = Ii("".slice), kv = Ii("".replace), Bv = Ii([].join), Fv = Za && !Iv(function() {
|
244
|
+
return sr(function() {
|
239
245
|
}, "length", { value: 8 }).length !== 8;
|
240
|
-
}),
|
241
|
-
|
246
|
+
}), jv = String(String).split("String"), Uv = Jo.exports = function(a, e, t) {
|
247
|
+
Lv(Dn(e), 0, 7) === "Symbol(" && (e = "[" + kv(Dn(e), /^Symbol\(([^)]*)\)/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Yt(a, "name") || Mv && a.name !== e) && (Za ? sr(a, "name", { value: e, configurable: !0 }) : a.name = e), Fv && t && Yt(t, "arity") && a.length !== t.arity && sr(a, "length", { value: t.arity });
|
242
248
|
try {
|
243
|
-
t &&
|
249
|
+
t && Yt(t, "constructor") && t.constructor ? Za && sr(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
244
250
|
} catch {
|
245
251
|
}
|
246
|
-
var r =
|
247
|
-
return
|
252
|
+
var r = Dv(a);
|
253
|
+
return Yt(r, "source") || (r.source = Bv(jv, typeof e == "string" ? e : "")), a;
|
248
254
|
};
|
249
|
-
Function.prototype.toString =
|
250
|
-
return
|
255
|
+
Function.prototype.toString = Uv(function() {
|
256
|
+
return Nv(this) && Vv(this).source || _v(this);
|
251
257
|
}, "toString");
|
252
|
-
var
|
258
|
+
var zv = Jo.exports, Gv = D, Hv = de, Yv = zv, Xv = Si, ze = function(a, e, t, r) {
|
253
259
|
r || (r = {});
|
254
260
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
255
|
-
if (
|
256
|
-
i ? a[e] = t :
|
261
|
+
if (Gv(t) && Yv(t, n, r), r.global)
|
262
|
+
i ? a[e] = t : Xv(e, t);
|
257
263
|
else {
|
258
264
|
try {
|
259
265
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
260
266
|
} catch {
|
261
267
|
}
|
262
|
-
i ? a[e] = t :
|
268
|
+
i ? a[e] = t : Hv.f(a, e, {
|
263
269
|
value: t,
|
264
270
|
enumerable: !1,
|
265
271
|
configurable: !r.nonConfigurable,
|
@@ -267,22 +273,22 @@ var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
|
|
267
273
|
});
|
268
274
|
}
|
269
275
|
return a;
|
270
|
-
},
|
276
|
+
}, au = {}, Wv = Math.ceil, qv = Math.floor, Qv = Math.trunc || function(e) {
|
271
277
|
var t = +e;
|
272
|
-
return (t > 0 ?
|
273
|
-
},
|
278
|
+
return (t > 0 ? qv : Wv)(t);
|
279
|
+
}, Kv = Qv, Pr = function(a) {
|
274
280
|
var e = +a;
|
275
|
-
return e !== e || e === 0 ? 0 :
|
276
|
-
},
|
277
|
-
var t =
|
278
|
-
return t < 0 ?
|
279
|
-
},
|
280
|
-
return a > 0 ?
|
281
|
-
},
|
282
|
-
return
|
283
|
-
},
|
281
|
+
return e !== e || e === 0 ? 0 : Kv(e);
|
282
|
+
}, Zv = Pr, Jv = Math.max, ef = Math.min, iu = function(a, e) {
|
283
|
+
var t = Zv(a);
|
284
|
+
return t < 0 ? Jv(t + e, 0) : ef(t, e);
|
285
|
+
}, tf = Pr, rf = Math.min, lt = function(a) {
|
286
|
+
return a > 0 ? rf(tf(a), 9007199254740991) : 0;
|
287
|
+
}, af = lt, Rr = function(a) {
|
288
|
+
return af(a.length);
|
289
|
+
}, nf = Ct, sf = iu, of = Rr, Vn = function(a) {
|
284
290
|
return function(e, t, r) {
|
285
|
-
var i =
|
291
|
+
var i = nf(e), n = of(i), o = sf(r, n), s;
|
286
292
|
if (a && t != t) {
|
287
293
|
for (; n > o; )
|
288
294
|
if (s = i[o++], s != s)
|
@@ -293,17 +299,21 @@ var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
|
|
293
299
|
return a || o || 0;
|
294
300
|
return !a && -1;
|
295
301
|
};
|
296
|
-
},
|
297
|
-
includes
|
298
|
-
|
299
|
-
|
300
|
-
|
302
|
+
}, nu = {
|
303
|
+
// `Array.prototype.includes` method
|
304
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
305
|
+
includes: Vn(!0),
|
306
|
+
// `Array.prototype.indexOf` method
|
307
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
308
|
+
indexOf: Vn(!1)
|
309
|
+
}, uf = k, fa = le, lf = Ct, hf = nu.indexOf, vf = Ri, Ln = uf([].push), su = function(a, e) {
|
310
|
+
var t = lf(a), r = 0, i = [], n;
|
301
311
|
for (n in t)
|
302
|
-
!
|
312
|
+
!fa(vf, n) && fa(t, n) && Ln(i, n);
|
303
313
|
for (; e.length > r; )
|
304
|
-
|
314
|
+
fa(t, n = e[r++]) && (~hf(i, n) || Ln(i, n));
|
305
315
|
return i;
|
306
|
-
},
|
316
|
+
}, Ni = [
|
307
317
|
"constructor",
|
308
318
|
"hasOwnProperty",
|
309
319
|
"isPrototypeOf",
|
@@ -311,169 +321,169 @@ var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
|
|
311
321
|
"toLocaleString",
|
312
322
|
"toString",
|
313
323
|
"valueOf"
|
314
|
-
],
|
315
|
-
|
316
|
-
return
|
324
|
+
], ff = su, cf = Ni, gf = cf.concat("length", "prototype");
|
325
|
+
au.f = Object.getOwnPropertyNames || function(e) {
|
326
|
+
return ff(e, gf);
|
317
327
|
};
|
318
|
-
var
|
319
|
-
|
320
|
-
var
|
321
|
-
var t =
|
322
|
-
return r ?
|
323
|
-
},
|
324
|
-
for (var r =
|
328
|
+
var ou = {};
|
329
|
+
ou.f = Object.getOwnPropertySymbols;
|
330
|
+
var df = Ue, pf = k, yf = au, mf = ou, bf = K, xf = pf([].concat), Tf = df("Reflect", "ownKeys") || function(e) {
|
331
|
+
var t = yf.f(bf(e)), r = mf.f;
|
332
|
+
return r ? xf(t, r(e)) : t;
|
333
|
+
}, kn = le, Of = Tf, Sf = ot, Ef = de, $f = function(a, e, t) {
|
334
|
+
for (var r = Of(e), i = Ef.f, n = Sf.f, o = 0; o < r.length; o++) {
|
325
335
|
var s = r[o];
|
326
|
-
!
|
327
|
-
}
|
328
|
-
},
|
329
|
-
var t =
|
330
|
-
return t ==
|
331
|
-
},
|
332
|
-
return String(a).replace(
|
333
|
-
},
|
336
|
+
!kn(a, s) && !(t && kn(t, s)) && i(a, s, n(e, s));
|
337
|
+
}
|
338
|
+
}, Cf = L, wf = D, Af = /#|\.prototype\./, At = function(a, e) {
|
339
|
+
var t = Rf[Pf(a)];
|
340
|
+
return t == Nf ? !0 : t == If ? !1 : wf(e) ? Cf(e) : !!e;
|
341
|
+
}, Pf = At.normalize = function(a) {
|
342
|
+
return String(a).replace(Af, ".").toLowerCase();
|
343
|
+
}, Rf = At.data = {}, If = At.NATIVE = "N", Nf = At.POLYFILL = "P", uu = At, ca = z, Mf = ot.f, _f = wt, Df = ze, Vf = Si, Lf = $f, kf = uu, ee = function(a, e) {
|
334
344
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
335
|
-
if (r ? o =
|
345
|
+
if (r ? o = ca : i ? o = ca[t] || Vf(t, {}) : o = (ca[t] || {}).prototype, o)
|
336
346
|
for (s in e) {
|
337
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
347
|
+
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) {
|
338
348
|
if (typeof l == typeof u)
|
339
349
|
continue;
|
340
|
-
|
350
|
+
Lf(l, u);
|
341
351
|
}
|
342
|
-
(a.sham || u && u.sham) &&
|
352
|
+
(a.sham || u && u.sham) && _f(l, "sham", !0), Df(o, s, l, a);
|
343
353
|
}
|
344
|
-
},
|
345
|
-
if (typeof a == "object" ||
|
354
|
+
}, Bf = Fe, Pt = typeof process < "u" && Bf(process) == "process", Ff = D, jf = String, Uf = TypeError, zf = function(a) {
|
355
|
+
if (typeof a == "object" || Ff(a))
|
346
356
|
return a;
|
347
|
-
throw
|
348
|
-
},
|
357
|
+
throw Uf("Can't set " + jf(a) + " as a prototype");
|
358
|
+
}, Gf = k, Hf = K, Yf = zf, lu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
349
359
|
var a = !1, e = {}, t;
|
350
360
|
try {
|
351
|
-
t =
|
361
|
+
t = Gf(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set), t(e, []), a = e instanceof Array;
|
352
362
|
} catch {
|
353
363
|
}
|
354
364
|
return function(i, n) {
|
355
|
-
return
|
365
|
+
return Hf(i), Yf(n), a ? t(i, n) : i.__proto__ = n, i;
|
356
366
|
};
|
357
|
-
}() : void 0),
|
358
|
-
a && !t && (a = a.prototype), a && !
|
359
|
-
},
|
360
|
-
var e =
|
361
|
-
|
367
|
+
}() : void 0), Xf = de.f, Wf = le, qf = G, Bn = qf("toStringTag"), Mi = function(a, e, t) {
|
368
|
+
a && !t && (a = a.prototype), a && !Wf(a, Bn) && Xf(a, Bn, { configurable: !0, value: e });
|
369
|
+
}, Qf = Ue, Kf = de, Zf = G, Jf = ce, Fn = Zf("species"), ec = function(a) {
|
370
|
+
var e = Qf(a), t = Kf.f;
|
371
|
+
Jf && e && !e[Fn] && t(e, Fn, {
|
362
372
|
configurable: !0,
|
363
373
|
get: function() {
|
364
374
|
return this;
|
365
375
|
}
|
366
376
|
});
|
367
|
-
},
|
368
|
-
if (
|
377
|
+
}, tc = Or, rc = TypeError, ac = function(a, e) {
|
378
|
+
if (tc(e, a))
|
369
379
|
return a;
|
370
|
-
throw
|
371
|
-
},
|
372
|
-
|
373
|
-
var
|
380
|
+
throw rc("Incorrect invocation");
|
381
|
+
}, ic = G, nc = ic("toStringTag"), hu = {};
|
382
|
+
hu[nc] = "z";
|
383
|
+
var sc = String(hu) === "[object z]", oc = sc, uc = D, or = Fe, lc = G, hc = lc("toStringTag"), vc = Object, fc = or(function() {
|
374
384
|
return arguments;
|
375
|
-
}()) == "Arguments",
|
385
|
+
}()) == "Arguments", cc = function(a, e) {
|
376
386
|
try {
|
377
387
|
return a[e];
|
378
388
|
} catch {
|
379
389
|
}
|
380
|
-
},
|
390
|
+
}, _i = oc ? or : function(a) {
|
381
391
|
var e, t, r;
|
382
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
383
|
-
},
|
384
|
-
},
|
385
|
-
if (!
|
392
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = cc(e = vc(a), hc)) == "string" ? t : fc ? or(e) : (r = or(e)) == "Object" && uc(e.callee) ? "Arguments" : r;
|
393
|
+
}, gc = k, dc = L, vu = D, pc = _i, yc = Ue, mc = Ai, fu = function() {
|
394
|
+
}, bc = [], cu = yc("Reflect", "construct"), Di = /^\s*(?:class|function)\b/, xc = gc(Di.exec), Tc = !Di.exec(fu), ft = function(e) {
|
395
|
+
if (!vu(e))
|
386
396
|
return !1;
|
387
397
|
try {
|
388
|
-
return
|
398
|
+
return cu(fu, bc, e), !0;
|
389
399
|
} catch {
|
390
400
|
return !1;
|
391
401
|
}
|
392
|
-
},
|
393
|
-
if (!
|
402
|
+
}, gu = function(e) {
|
403
|
+
if (!vu(e))
|
394
404
|
return !1;
|
395
|
-
switch (
|
405
|
+
switch (pc(e)) {
|
396
406
|
case "AsyncFunction":
|
397
407
|
case "GeneratorFunction":
|
398
408
|
case "AsyncGeneratorFunction":
|
399
409
|
return !1;
|
400
410
|
}
|
401
411
|
try {
|
402
|
-
return
|
412
|
+
return Tc || !!xc(Di, mc(e));
|
403
413
|
} catch {
|
404
414
|
return !0;
|
405
415
|
}
|
406
416
|
};
|
407
|
-
|
408
|
-
var
|
417
|
+
gu.sham = !0;
|
418
|
+
var Oc = !cu || dc(function() {
|
409
419
|
var a;
|
410
|
-
return
|
420
|
+
return ft(ft.call) || !ft(Object) || !ft(function() {
|
411
421
|
a = !0;
|
412
422
|
}) || a;
|
413
|
-
}) ?
|
414
|
-
if (
|
423
|
+
}) ? gu : ft, Sc = Oc, Ec = Er, $c = TypeError, Cc = function(a) {
|
424
|
+
if (Sc(a))
|
415
425
|
return a;
|
416
|
-
throw
|
417
|
-
},
|
418
|
-
var t =
|
419
|
-
return t === void 0 ||
|
420
|
-
},
|
421
|
-
return
|
422
|
-
}),
|
423
|
-
if (
|
424
|
-
return
|
425
|
-
},
|
426
|
-
return
|
426
|
+
throw $c(Ec(a) + " is not a constructor");
|
427
|
+
}, jn = K, wc = Cc, Ac = je, Pc = G, Rc = Pc("species"), du = function(a, e) {
|
428
|
+
var t = jn(a).constructor, r;
|
429
|
+
return t === void 0 || Ac(r = jn(t)[Rc]) ? e : wc(r);
|
430
|
+
}, Ic = xr, pu = Function.prototype, Un = pu.apply, zn = pu.call, Vi = typeof Reflect == "object" && Reflect.apply || (Ic ? zn.bind(Un) : function() {
|
431
|
+
return zn.apply(Un, arguments);
|
432
|
+
}), Nc = Fe, Mc = k, Rt = function(a) {
|
433
|
+
if (Nc(a) === "Function")
|
434
|
+
return Mc(a);
|
435
|
+
}, Gn = Rt, _c = we, Dc = xr, Vc = Gn(Gn.bind), Li = function(a, e) {
|
436
|
+
return _c(a), e === void 0 ? a : Dc ? Vc(a, e) : function() {
|
427
437
|
return a.apply(e, arguments);
|
428
438
|
};
|
429
|
-
},
|
439
|
+
}, Lc = Ue, yu = Lc("document", "documentElement"), kc = k, Bc = kc([].slice), Fc = TypeError, jc = function(a, e) {
|
430
440
|
if (a < e)
|
431
|
-
throw
|
441
|
+
throw Fc("Not enough arguments");
|
432
442
|
return a;
|
433
|
-
},
|
434
|
-
|
435
|
-
|
443
|
+
}, Uc = Sr, mu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Uc), ae = z, zc = Vi, Gc = Li, Hn = D, Hc = le, bu = L, Yn = yu, Yc = Bc, Xn = Cr, Xc = jc, Wc = mu, qc = Pt, Ja = ae.setImmediate, ei = ae.clearImmediate, Qc = ae.process, ga = ae.Dispatch, Kc = ae.Function, Wn = ae.MessageChannel, Zc = ae.String, da = 0, Tt = {}, qn = "onreadystatechange", Et, Ne, pa, ya;
|
444
|
+
bu(function() {
|
445
|
+
Et = ae.location;
|
436
446
|
});
|
437
|
-
var
|
438
|
-
if (
|
439
|
-
var e =
|
440
|
-
delete
|
447
|
+
var ki = function(a) {
|
448
|
+
if (Hc(Tt, a)) {
|
449
|
+
var e = Tt[a];
|
450
|
+
delete Tt[a], e();
|
441
451
|
}
|
442
|
-
},
|
452
|
+
}, ma = function(a) {
|
443
453
|
return function() {
|
444
|
-
|
454
|
+
ki(a);
|
445
455
|
};
|
446
|
-
}, qn = function(a) {
|
447
|
-
Li(a.data);
|
448
456
|
}, Qn = function(a) {
|
449
|
-
|
457
|
+
ki(a.data);
|
458
|
+
}, Kn = function(a) {
|
459
|
+
ae.postMessage(Zc(a), Et.protocol + "//" + Et.host);
|
450
460
|
};
|
451
461
|
(!Ja || !ei) && (Ja = function(e) {
|
452
|
-
|
453
|
-
var t =
|
454
|
-
return
|
455
|
-
|
456
|
-
}, Ne(
|
462
|
+
Xc(arguments.length, 1);
|
463
|
+
var t = Hn(e) ? e : Kc(e), r = Yc(arguments, 1);
|
464
|
+
return Tt[++da] = function() {
|
465
|
+
zc(t, void 0, r);
|
466
|
+
}, Ne(da), da;
|
457
467
|
}, ei = function(e) {
|
458
|
-
delete
|
459
|
-
},
|
460
|
-
|
461
|
-
} :
|
462
|
-
|
463
|
-
} :
|
464
|
-
|
465
|
-
|
468
|
+
delete Tt[e];
|
469
|
+
}, qc ? Ne = function(a) {
|
470
|
+
Qc.nextTick(ma(a));
|
471
|
+
} : ga && ga.now ? Ne = function(a) {
|
472
|
+
ga.now(ma(a));
|
473
|
+
} : Wn && !Wc ? (pa = new Wn(), ya = pa.port2, pa.port1.onmessage = Qn, Ne = Gc(ya.postMessage, ya)) : ae.addEventListener && Hn(ae.postMessage) && !ae.importScripts && Et && Et.protocol !== "file:" && !bu(Kn) ? (Ne = Kn, ae.addEventListener("message", Qn, !1)) : qn in Xn("script") ? Ne = function(a) {
|
474
|
+
Yn.appendChild(Xn("script"))[qn] = function() {
|
475
|
+
Yn.removeChild(this), ki(a);
|
466
476
|
};
|
467
477
|
} : Ne = function(a) {
|
468
|
-
setTimeout(
|
478
|
+
setTimeout(ma(a), 0);
|
469
479
|
});
|
470
|
-
var
|
480
|
+
var xu = {
|
471
481
|
set: Ja,
|
472
482
|
clear: ei
|
473
|
-
},
|
483
|
+
}, Tu = function() {
|
474
484
|
this.head = null, this.tail = null;
|
475
485
|
};
|
476
|
-
|
486
|
+
Tu.prototype = {
|
477
487
|
add: function(a) {
|
478
488
|
var e = { item: a, next: null }, t = this.tail;
|
479
489
|
t ? t.next = e : this.head = e, this.tail = e;
|
@@ -486,126 +496,126 @@ mu.prototype = {
|
|
486
496
|
}
|
487
497
|
}
|
488
498
|
};
|
489
|
-
var
|
499
|
+
var Ou = Tu, Jc = Sr, eg = /ipad|iphone|ipod/i.test(Jc) && typeof Pebble < "u", tg = Sr, rg = /web0s(?!.*chrome)/i.test(tg), Le = z, Zn = Li, ag = ot.f, ba = xu.set, ig = Ou, ng = mu, sg = eg, og = rg, xa = Pt, Jn = Le.MutationObserver || Le.WebKitMutationObserver, es = Le.document, ts = Le.process, Xt = Le.Promise, rs = ag(Le, "queueMicrotask"), ti = rs && rs.value, We, Ta, Oa, Wt, as;
|
490
500
|
if (!ti) {
|
491
|
-
var
|
501
|
+
var qt = new ig(), Qt = function() {
|
492
502
|
var a, e;
|
493
|
-
for (
|
503
|
+
for (xa && (a = ts.domain) && a.exit(); e = qt.get(); )
|
494
504
|
try {
|
495
505
|
e();
|
496
506
|
} catch (t) {
|
497
|
-
throw
|
507
|
+
throw qt.head && We(), t;
|
498
508
|
}
|
499
509
|
a && a.enter();
|
500
510
|
};
|
501
|
-
!
|
502
|
-
|
503
|
-
}) : !
|
504
|
-
|
505
|
-
}) :
|
506
|
-
|
507
|
-
} : (
|
508
|
-
|
511
|
+
!ng && !xa && !og && Jn && es ? (Ta = !0, Oa = es.createTextNode(""), new Jn(Qt).observe(Oa, { characterData: !0 }), We = function() {
|
512
|
+
Oa.data = Ta = !Ta;
|
513
|
+
}) : !sg && Xt && Xt.resolve ? (Wt = Xt.resolve(void 0), Wt.constructor = Xt, as = Zn(Wt.then, Wt), We = function() {
|
514
|
+
as(Qt);
|
515
|
+
}) : xa ? We = function() {
|
516
|
+
ts.nextTick(Qt);
|
517
|
+
} : (ba = Zn(ba, Le), We = function() {
|
518
|
+
ba(Qt);
|
509
519
|
}), ti = function(a) {
|
510
|
-
|
520
|
+
qt.head || We(), qt.add(a);
|
511
521
|
};
|
512
522
|
}
|
513
|
-
var
|
523
|
+
var ug = ti, lg = function(a, e) {
|
514
524
|
try {
|
515
525
|
arguments.length == 1 ? console.error(a) : console.error(a, e);
|
516
526
|
} catch {
|
517
527
|
}
|
518
|
-
},
|
528
|
+
}, Bi = function(a) {
|
519
529
|
try {
|
520
530
|
return { error: !1, value: a() };
|
521
531
|
} catch (e) {
|
522
532
|
return { error: !0, value: e };
|
523
533
|
}
|
524
|
-
},
|
525
|
-
|
526
|
-
var
|
527
|
-
var a =
|
528
|
-
if (!e &&
|
534
|
+
}, hg = z, Ir = hg.Promise, Su = typeof Deno == "object" && Deno && typeof Deno.version == "object", vg = Su, fg = Pt, cg = !vg && !fg && typeof window == "object" && typeof document == "object", gg = z, Ot = Ir, dg = D, pg = uu, yg = Ai, mg = G, bg = cg, xg = Su, Sa = Oi;
|
535
|
+
Ot && Ot.prototype;
|
536
|
+
var Tg = mg("species"), ri = !1, Eu = dg(gg.PromiseRejectionEvent), Og = pg("Promise", function() {
|
537
|
+
var a = yg(Ot), e = a !== String(Ot);
|
538
|
+
if (!e && Sa === 66)
|
529
539
|
return !0;
|
530
|
-
if (!
|
531
|
-
var t = new
|
540
|
+
if (!Sa || Sa < 51 || !/native code/.test(a)) {
|
541
|
+
var t = new Ot(function(n) {
|
532
542
|
n(1);
|
533
543
|
}), r = function(n) {
|
534
544
|
n(function() {
|
535
545
|
}, function() {
|
536
546
|
});
|
537
547
|
}, i = t.constructor = {};
|
538
|
-
if (i[
|
548
|
+
if (i[Tg] = r, ri = t.then(function() {
|
539
549
|
}) instanceof r, !ri)
|
540
550
|
return !0;
|
541
551
|
}
|
542
|
-
return !e && (
|
543
|
-
}),
|
544
|
-
CONSTRUCTOR:
|
545
|
-
REJECTION_EVENT:
|
552
|
+
return !e && (bg || xg) && !Eu;
|
553
|
+
}), It = {
|
554
|
+
CONSTRUCTOR: Og,
|
555
|
+
REJECTION_EVENT: Eu,
|
546
556
|
SUBCLASSING: ri
|
547
|
-
},
|
557
|
+
}, ht = {}, is = we, Sg = TypeError, Eg = function(a) {
|
548
558
|
var e, t;
|
549
559
|
this.promise = new a(function(r, i) {
|
550
560
|
if (e !== void 0 || t !== void 0)
|
551
|
-
throw
|
561
|
+
throw Sg("Bad Promise constructor");
|
552
562
|
e = r, t = i;
|
553
|
-
}), this.resolve =
|
563
|
+
}), this.resolve = is(e), this.reject = is(t);
|
554
564
|
};
|
555
|
-
|
556
|
-
return new
|
565
|
+
ht.f = function(a) {
|
566
|
+
return new Eg(a);
|
557
567
|
};
|
558
|
-
var
|
568
|
+
var $g = ee, pr = Pt, $e = z, nt = Y, ns = ze, ss = lu, Cg = Mi, wg = ec, Ag = we, ur = D, Pg = Te, Rg = ac, Ig = du, $u = xu.set, Fi = ug, Ng = lg, Mg = Bi, _g = Ou, Cu = Ar, yr = Ir, ji = It, wu = ht, Nr = "Promise", Au = ji.CONSTRUCTOR, Dg = ji.REJECTION_EVENT, Vg = ji.SUBCLASSING, Ea = Cu.getterFor(Nr), Lg = Cu.set, Ze = yr && yr.prototype, Ve = yr, Kt = Ze, Pu = $e.TypeError, ai = $e.document, Ui = $e.process, ii = wu.f, kg = ii, Bg = !!(ai && ai.createEvent && $e.dispatchEvent), Ru = "unhandledrejection", Fg = "rejectionhandled", os = 0, Iu = 1, jg = 2, zi = 1, Nu = 2, Zt, us, Ug, ls, Mu = function(a) {
|
559
569
|
var e;
|
560
|
-
return
|
561
|
-
},
|
562
|
-
var t = e.value, r = e.state ==
|
570
|
+
return Pg(a) && ur(e = a.then) ? e : !1;
|
571
|
+
}, _u = function(a, e) {
|
572
|
+
var t = e.value, r = e.state == Iu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
563
573
|
try {
|
564
|
-
i ? (r || (e.rejection ===
|
574
|
+
i ? (r || (e.rejection === Nu && Gg(e), e.rejection = zi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(Pu("Promise-chain cycle")) : (l = Mu(u)) ? nt(l, u, n, o) : n(u)) : o(t);
|
565
575
|
} catch (f) {
|
566
576
|
s && !h && s.exit(), o(f);
|
567
577
|
}
|
568
|
-
},
|
569
|
-
a.notified || (a.notified = !0,
|
578
|
+
}, Du = function(a, e) {
|
579
|
+
a.notified || (a.notified = !0, Fi(function() {
|
570
580
|
for (var t = a.reactions, r; r = t.get(); )
|
571
|
-
|
572
|
-
a.notified = !1, e && !a.rejection &&
|
581
|
+
_u(r, a);
|
582
|
+
a.notified = !1, e && !a.rejection && zg(a);
|
573
583
|
}));
|
574
|
-
},
|
584
|
+
}, Vu = function(a, e, t) {
|
575
585
|
var r, i;
|
576
|
-
|
577
|
-
},
|
578
|
-
|
579
|
-
var e = a.facade, t = a.value, r =
|
580
|
-
if (r && (i =
|
581
|
-
|
582
|
-
}), a.rejection =
|
586
|
+
Bg ? (r = ai.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), $e.dispatchEvent(r)) : r = { promise: e, reason: t }, !Dg && (i = $e["on" + a]) ? i(r) : a === Ru && Ng("Unhandled promise rejection", t);
|
587
|
+
}, zg = function(a) {
|
588
|
+
nt($u, $e, function() {
|
589
|
+
var e = a.facade, t = a.value, r = hs(a), i;
|
590
|
+
if (r && (i = Mg(function() {
|
591
|
+
pr ? Ui.emit("unhandledRejection", t, e) : Vu(Ru, e, t);
|
592
|
+
}), a.rejection = pr || hs(a) ? Nu : zi, i.error))
|
583
593
|
throw i.value;
|
584
594
|
});
|
585
|
-
},
|
586
|
-
return a.rejection !==
|
587
|
-
},
|
588
|
-
|
595
|
+
}, hs = function(a) {
|
596
|
+
return a.rejection !== zi && !a.parent;
|
597
|
+
}, Gg = function(a) {
|
598
|
+
nt($u, $e, function() {
|
589
599
|
var e = a.facade;
|
590
|
-
|
600
|
+
pr ? Ui.emit("rejectionHandled", e) : Vu(Fg, e, a.value);
|
591
601
|
});
|
592
602
|
}, et = function(a, e, t) {
|
593
603
|
return function(r) {
|
594
604
|
a(e, r, t);
|
595
605
|
};
|
596
606
|
}, rt = function(a, e, t) {
|
597
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
607
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = jg, Du(a, !0));
|
598
608
|
}, ni = function(a, e, t) {
|
599
609
|
if (!a.done) {
|
600
610
|
a.done = !0, t && (a = t);
|
601
611
|
try {
|
602
612
|
if (a.facade === e)
|
603
|
-
throw
|
604
|
-
var r =
|
605
|
-
r ?
|
613
|
+
throw Pu("Promise can't be resolved itself");
|
614
|
+
var r = Mu(e);
|
615
|
+
r ? Fi(function() {
|
606
616
|
var i = { done: !1 };
|
607
617
|
try {
|
608
|
-
|
618
|
+
nt(
|
609
619
|
r,
|
610
620
|
e,
|
611
621
|
et(ni, i, a),
|
@@ -614,79 +624,79 @@ var Tg = ee, yr = Rt, $e = z, st = Y, is = ze, ns = su, Og = Ni, Sg = Qf, Eg = w
|
|
614
624
|
} catch (n) {
|
615
625
|
rt(i, n, a);
|
616
626
|
}
|
617
|
-
}) : (a.value = e, a.state =
|
627
|
+
}) : (a.value = e, a.state = Iu, Du(a, !1));
|
618
628
|
} catch (i) {
|
619
629
|
rt({ done: !1 }, i, a);
|
620
630
|
}
|
621
631
|
}
|
622
632
|
};
|
623
|
-
if (
|
624
|
-
|
625
|
-
var t =
|
633
|
+
if (Au && (Ve = function(e) {
|
634
|
+
Rg(this, Kt), Ag(e), nt(Zt, this);
|
635
|
+
var t = Ea(this);
|
626
636
|
try {
|
627
637
|
e(et(ni, t), et(rt, t));
|
628
638
|
} catch (r) {
|
629
639
|
rt(t, r);
|
630
640
|
}
|
631
|
-
},
|
632
|
-
|
633
|
-
type:
|
641
|
+
}, Kt = Ve.prototype, Zt = function(e) {
|
642
|
+
Lg(this, {
|
643
|
+
type: Nr,
|
634
644
|
done: !1,
|
635
645
|
notified: !1,
|
636
646
|
parent: !1,
|
637
|
-
reactions: new
|
647
|
+
reactions: new _g(),
|
638
648
|
rejection: !1,
|
639
|
-
state:
|
649
|
+
state: os,
|
640
650
|
value: void 0
|
641
651
|
});
|
642
|
-
},
|
643
|
-
var r =
|
644
|
-
return r.parent = !0, i.ok =
|
645
|
-
|
652
|
+
}, Zt.prototype = ns(Kt, "then", function(e, t) {
|
653
|
+
var r = Ea(this), i = ii(Ig(this, Ve));
|
654
|
+
return r.parent = !0, i.ok = ur(e) ? e : !0, i.fail = ur(t) && t, i.domain = pr ? Ui.domain : void 0, r.state == os ? r.reactions.add(i) : Fi(function() {
|
655
|
+
_u(i, r);
|
646
656
|
}), i.promise;
|
647
|
-
}),
|
648
|
-
var a = new
|
657
|
+
}), us = function() {
|
658
|
+
var a = new Zt(), e = Ea(a);
|
649
659
|
this.promise = a, this.resolve = et(ni, e), this.reject = et(rt, e);
|
650
|
-
},
|
651
|
-
return a === Ve || a ===
|
652
|
-
},
|
653
|
-
|
660
|
+
}, wu.f = ii = function(a) {
|
661
|
+
return a === Ve || a === Ug ? new us(a) : kg(a);
|
662
|
+
}, ur(yr) && Ze !== Object.prototype)) {
|
663
|
+
ls = Ze.then, Vg || ns(Ze, "then", function(e, t) {
|
654
664
|
var r = this;
|
655
665
|
return new Ve(function(i, n) {
|
656
|
-
|
666
|
+
nt(ls, r, i, n);
|
657
667
|
}).then(e, t);
|
658
668
|
}, { unsafe: !0 });
|
659
669
|
try {
|
660
670
|
delete Ze.constructor;
|
661
671
|
} catch {
|
662
672
|
}
|
663
|
-
|
673
|
+
ss && ss(Ze, Kt);
|
664
674
|
}
|
665
|
-
|
675
|
+
$g({ global: !0, constructor: !0, wrap: !0, forced: Au }, {
|
666
676
|
Promise: Ve
|
667
677
|
});
|
668
|
-
|
669
|
-
|
670
|
-
var
|
671
|
-
return a !== void 0 && (
|
672
|
-
},
|
673
|
-
if (!
|
674
|
-
return
|
675
|
-
},
|
676
|
-
var t = arguments.length < 2 ?
|
677
|
-
if (
|
678
|
-
return
|
679
|
-
throw
|
680
|
-
},
|
678
|
+
Cg(Ve, Nr, !1);
|
679
|
+
wg(Nr);
|
680
|
+
var Nt = {}, Hg = G, Yg = Nt, Xg = Hg("iterator"), Wg = Array.prototype, qg = function(a) {
|
681
|
+
return a !== void 0 && (Yg.Array === a || Wg[Xg] === a);
|
682
|
+
}, Qg = _i, vs = ut, Kg = je, Zg = Nt, Jg = G, ed = Jg("iterator"), Lu = function(a) {
|
683
|
+
if (!Kg(a))
|
684
|
+
return vs(a, ed) || vs(a, "@@iterator") || Zg[Qg(a)];
|
685
|
+
}, td = Y, rd = we, ad = K, id = Er, nd = Lu, sd = TypeError, od = function(a, e) {
|
686
|
+
var t = arguments.length < 2 ? nd(a) : e;
|
687
|
+
if (rd(t))
|
688
|
+
return ad(td(t, a));
|
689
|
+
throw sd(id(a) + " is not iterable");
|
690
|
+
}, ud = Y, fs = K, ld = ut, hd = function(a, e, t) {
|
681
691
|
var r, i;
|
682
|
-
|
692
|
+
fs(a);
|
683
693
|
try {
|
684
|
-
if (r =
|
694
|
+
if (r = ld(a, "return"), !r) {
|
685
695
|
if (e === "throw")
|
686
696
|
throw t;
|
687
697
|
return t;
|
688
698
|
}
|
689
|
-
r =
|
699
|
+
r = ud(r, a);
|
690
700
|
} catch (n) {
|
691
701
|
i = !0, r = n;
|
692
702
|
}
|
@@ -694,64 +704,64 @@ var Mt = {}, jg = G, Ug = Mt, zg = jg("iterator"), Gg = Array.prototype, Hg = fu
|
|
694
704
|
throw t;
|
695
705
|
if (i)
|
696
706
|
throw r;
|
697
|
-
return
|
698
|
-
},
|
707
|
+
return fs(r), t;
|
708
|
+
}, vd = Li, fd = Y, cd = K, gd = Er, dd = qg, pd = Rr, cs = Or, yd = od, md = Lu, gs = hd, bd = TypeError, lr = function(a, e) {
|
699
709
|
this.stopped = a, this.result = e;
|
700
|
-
},
|
701
|
-
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 =
|
702
|
-
return l &&
|
710
|
+
}, ds = lr.prototype, ku = function(a, e, t) {
|
711
|
+
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u = vd(e, r), l, h, f, c, v, d, g, p = function(x) {
|
712
|
+
return l && gs(l, "normal", x), new lr(!0, x);
|
703
713
|
}, y = function(x) {
|
704
|
-
return i ? (
|
714
|
+
return i ? (cd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
705
715
|
};
|
706
716
|
if (n)
|
707
717
|
l = a.iterator;
|
708
718
|
else if (o)
|
709
719
|
l = a;
|
710
720
|
else {
|
711
|
-
if (h =
|
712
|
-
throw
|
713
|
-
if (
|
714
|
-
for (f = 0, c =
|
715
|
-
if (v = y(a[f]), v &&
|
721
|
+
if (h = md(a), !h)
|
722
|
+
throw bd(gd(a) + " is not iterable");
|
723
|
+
if (dd(h)) {
|
724
|
+
for (f = 0, c = pd(a); c > f; f++)
|
725
|
+
if (v = y(a[f]), v && cs(ds, v))
|
716
726
|
return v;
|
717
|
-
return new
|
727
|
+
return new lr(!1);
|
718
728
|
}
|
719
|
-
l =
|
729
|
+
l = yd(a, h);
|
720
730
|
}
|
721
|
-
for (d = n ? a.next : l.next; !(g =
|
731
|
+
for (d = n ? a.next : l.next; !(g = fd(d, l)).done; ) {
|
722
732
|
try {
|
723
733
|
v = y(g.value);
|
724
734
|
} catch (x) {
|
725
|
-
|
735
|
+
gs(l, "throw", x);
|
726
736
|
}
|
727
|
-
if (typeof v == "object" && v &&
|
737
|
+
if (typeof v == "object" && v && cs(ds, v))
|
728
738
|
return v;
|
729
739
|
}
|
730
|
-
return new
|
731
|
-
},
|
740
|
+
return new lr(!1);
|
741
|
+
}, xd = G, Bu = xd("iterator"), Fu = !1;
|
732
742
|
try {
|
733
|
-
var
|
743
|
+
var Td = 0, ps = {
|
734
744
|
next: function() {
|
735
|
-
return { done: !!
|
745
|
+
return { done: !!Td++ };
|
736
746
|
},
|
737
747
|
return: function() {
|
738
|
-
|
748
|
+
Fu = !0;
|
739
749
|
}
|
740
750
|
};
|
741
|
-
|
751
|
+
ps[Bu] = function() {
|
742
752
|
return this;
|
743
|
-
}, Array.from(
|
753
|
+
}, Array.from(ps, function() {
|
744
754
|
throw 2;
|
745
755
|
});
|
746
756
|
} catch {
|
747
757
|
}
|
748
|
-
var
|
749
|
-
if (!e && !
|
758
|
+
var Od = function(a, e) {
|
759
|
+
if (!e && !Fu)
|
750
760
|
return !1;
|
751
761
|
var t = !1;
|
752
762
|
try {
|
753
763
|
var r = {};
|
754
|
-
r[
|
764
|
+
r[Bu] = function() {
|
755
765
|
return {
|
756
766
|
next: function() {
|
757
767
|
return { done: t = !0 };
|
@@ -761,17 +771,17 @@ var md = function(a, e) {
|
|
761
771
|
} catch {
|
762
772
|
}
|
763
773
|
return t;
|
764
|
-
},
|
765
|
-
|
774
|
+
}, Sd = Ir, Ed = Od, $d = It.CONSTRUCTOR, ju = $d || !Ed(function(a) {
|
775
|
+
Sd.all(a).then(void 0, function() {
|
766
776
|
});
|
767
|
-
}),
|
768
|
-
|
777
|
+
}), Cd = ee, wd = Y, Ad = we, Pd = ht, Rd = Bi, Id = ku, Nd = ju;
|
778
|
+
Cd({ target: "Promise", stat: !0, forced: Nd }, {
|
769
779
|
all: function(e) {
|
770
|
-
var t = this, r =
|
771
|
-
var s =
|
772
|
-
|
780
|
+
var t = this, r = Pd.f(t), i = r.resolve, n = r.reject, o = Rd(function() {
|
781
|
+
var s = Ad(t.resolve), u = [], l = 0, h = 1;
|
782
|
+
Id(e, function(f) {
|
773
783
|
var c = l++, v = !1;
|
774
|
-
h++,
|
784
|
+
h++, wd(s, t, f).then(function(d) {
|
775
785
|
v || (v = !0, u[c] = d, --h || i(u));
|
776
786
|
}, n);
|
777
787
|
}), --h || i(u);
|
@@ -779,48 +789,48 @@ Od({ target: "Promise", stat: !0, forced: Ad }, {
|
|
779
789
|
return o.error && n(o.value), r.promise;
|
780
790
|
}
|
781
791
|
});
|
782
|
-
var
|
783
|
-
|
792
|
+
var Md = ee, _d = It.CONSTRUCTOR, si = Ir, Dd = Ue, Vd = D, Ld = ze, ys = si && si.prototype;
|
793
|
+
Md({ target: "Promise", proto: !0, forced: _d, real: !0 }, {
|
784
794
|
catch: function(a) {
|
785
795
|
return this.then(void 0, a);
|
786
796
|
}
|
787
797
|
});
|
788
|
-
if (
|
789
|
-
var
|
790
|
-
|
798
|
+
if (Vd(si)) {
|
799
|
+
var ms = Dd("Promise").prototype.catch;
|
800
|
+
ys.catch !== ms && Ld(ys, "catch", ms, { unsafe: !0 });
|
791
801
|
}
|
792
|
-
var
|
793
|
-
|
802
|
+
var kd = ee, Bd = Y, Fd = we, jd = ht, Ud = Bi, zd = ku, Gd = ju;
|
803
|
+
kd({ target: "Promise", stat: !0, forced: Gd }, {
|
794
804
|
race: function(e) {
|
795
|
-
var t = this, r =
|
796
|
-
var o =
|
797
|
-
|
798
|
-
|
805
|
+
var t = this, r = jd.f(t), i = r.reject, n = Ud(function() {
|
806
|
+
var o = Fd(t.resolve);
|
807
|
+
zd(e, function(s) {
|
808
|
+
Bd(o, t, s).then(r.resolve, i);
|
799
809
|
});
|
800
810
|
});
|
801
811
|
return n.error && i(n.value), r.promise;
|
802
812
|
}
|
803
813
|
});
|
804
|
-
var
|
805
|
-
|
814
|
+
var Hd = ee, Yd = Y, Xd = ht, Wd = It.CONSTRUCTOR;
|
815
|
+
Hd({ target: "Promise", stat: !0, forced: Wd }, {
|
806
816
|
reject: function(e) {
|
807
|
-
var t =
|
808
|
-
return
|
817
|
+
var t = Xd.f(this);
|
818
|
+
return Yd(t.reject, void 0, e), t.promise;
|
809
819
|
}
|
810
820
|
});
|
811
|
-
var
|
812
|
-
if (
|
821
|
+
var qd = K, Qd = Te, Kd = ht, Zd = function(a, e) {
|
822
|
+
if (qd(a), Qd(e) && e.constructor === a)
|
813
823
|
return e;
|
814
|
-
var t =
|
824
|
+
var t = Kd.f(a), r = t.resolve;
|
815
825
|
return r(e), t.promise;
|
816
|
-
},
|
817
|
-
|
818
|
-
|
826
|
+
}, Jd = ee, ep = Ue, tp = It.CONSTRUCTOR, rp = Zd;
|
827
|
+
ep("Promise");
|
828
|
+
Jd({ target: "Promise", stat: !0, forced: tp }, {
|
819
829
|
resolve: function(e) {
|
820
|
-
return
|
830
|
+
return rp(this, e);
|
821
831
|
}
|
822
832
|
});
|
823
|
-
function
|
833
|
+
function bs(a, e, t, r, i, n, o) {
|
824
834
|
try {
|
825
835
|
var s = a[n](o), u = s.value;
|
826
836
|
} catch (l) {
|
@@ -835,216 +845,228 @@ function xe(a) {
|
|
835
845
|
return new Promise(function(r, i) {
|
836
846
|
var n = a.apply(e, t);
|
837
847
|
function o(u) {
|
838
|
-
|
848
|
+
bs(n, r, i, o, s, "next", u);
|
839
849
|
}
|
840
850
|
function s(u) {
|
841
|
-
|
851
|
+
bs(n, r, i, o, s, "throw", u);
|
842
852
|
}
|
843
853
|
o(void 0);
|
844
854
|
});
|
845
855
|
};
|
846
856
|
}
|
847
|
-
var
|
848
|
-
if (
|
857
|
+
var ap = _i, ip = String, pe = function(a) {
|
858
|
+
if (ap(a) === "Symbol")
|
849
859
|
throw TypeError("Cannot convert a Symbol value to a string");
|
850
|
-
return
|
851
|
-
},
|
852
|
-
var a =
|
860
|
+
return ip(a);
|
861
|
+
}, np = K, Uu = function() {
|
862
|
+
var a = np(this), e = "";
|
853
863
|
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;
|
854
|
-
},
|
855
|
-
var a =
|
864
|
+
}, Gi = L, sp = z, Hi = sp.RegExp, Yi = Gi(function() {
|
865
|
+
var a = Hi("a", "y");
|
856
866
|
return a.lastIndex = 2, a.exec("abcd") != null;
|
857
|
-
}),
|
858
|
-
return !
|
859
|
-
}),
|
860
|
-
var a =
|
867
|
+
}), op = Yi || Gi(function() {
|
868
|
+
return !Hi("a", "y").sticky;
|
869
|
+
}), up = Yi || Gi(function() {
|
870
|
+
var a = Hi("^r", "gy");
|
861
871
|
return a.lastIndex = 2, a.exec("str") != null;
|
862
|
-
}),
|
863
|
-
BROKEN_CARET:
|
864
|
-
MISSED_STICKY:
|
865
|
-
UNSUPPORTED_Y:
|
866
|
-
},
|
867
|
-
return
|
868
|
-
},
|
869
|
-
|
870
|
-
|
871
|
-
for (var r =
|
872
|
-
|
872
|
+
}), zu = {
|
873
|
+
BROKEN_CARET: up,
|
874
|
+
MISSED_STICKY: op,
|
875
|
+
UNSUPPORTED_Y: Yi
|
876
|
+
}, Gu = {}, lp = su, hp = Ni, vp = Object.keys || function(e) {
|
877
|
+
return lp(e, hp);
|
878
|
+
}, fp = ce, cp = Zo, gp = de, dp = K, pp = Ct, yp = vp;
|
879
|
+
Gu.f = fp && !cp ? Object.defineProperties : function(e, t) {
|
880
|
+
dp(e);
|
881
|
+
for (var r = pp(t), i = yp(t), n = i.length, o = 0, s; n > o; )
|
882
|
+
gp.f(e, s = i[o++], r[s]);
|
873
883
|
return e;
|
874
884
|
};
|
875
|
-
var
|
876
|
-
},
|
877
|
-
return
|
878
|
-
},
|
879
|
-
a.write(
|
885
|
+
var mp = K, bp = Gu, xs = Ni, xp = Ri, Tp = yu, Op = Cr, Sp = Pi, Ts = ">", Os = "<", oi = "prototype", ui = "script", Hu = Sp("IE_PROTO"), $a = function() {
|
886
|
+
}, Yu = function(a) {
|
887
|
+
return Os + ui + Ts + a + Os + "/" + ui + Ts;
|
888
|
+
}, Ss = function(a) {
|
889
|
+
a.write(Yu("")), a.close();
|
880
890
|
var e = a.parentWindow.Object;
|
881
891
|
return a = null, e;
|
882
|
-
},
|
883
|
-
var a =
|
884
|
-
return a.style.display = "none",
|
885
|
-
},
|
892
|
+
}, Ep = function() {
|
893
|
+
var a = Op("iframe"), e = "java" + ui + ":", t;
|
894
|
+
return a.style.display = "none", Tp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Yu("document.F=Object")), t.close(), t.F;
|
895
|
+
}, Jt, hr = function() {
|
886
896
|
try {
|
887
|
-
|
897
|
+
Jt = new ActiveXObject("htmlfile");
|
888
898
|
} catch {
|
889
899
|
}
|
890
|
-
|
891
|
-
for (var a =
|
892
|
-
delete
|
893
|
-
return
|
900
|
+
hr = typeof document < "u" ? document.domain && Jt ? Ss(Jt) : Ep() : Ss(Jt);
|
901
|
+
for (var a = xs.length; a--; )
|
902
|
+
delete hr[oi][xs[a]];
|
903
|
+
return hr();
|
894
904
|
};
|
895
|
-
|
896
|
-
var
|
905
|
+
xp[Hu] = !0;
|
906
|
+
var Xi = Object.create || function(e, t) {
|
897
907
|
var r;
|
898
|
-
return e !== null ? (
|
899
|
-
},
|
900
|
-
var a =
|
908
|
+
return e !== null ? ($a[oi] = mp(e), r = new $a(), $a[oi] = null, r[Hu] = e) : r = hr(), t === void 0 ? r : bp.f(r, t);
|
909
|
+
}, $p = L, Cp = z, wp = Cp.RegExp, Ap = $p(function() {
|
910
|
+
var a = wp(".", "s");
|
901
911
|
return !(a.dotAll && a.exec(`
|
902
912
|
`) && a.flags === "s");
|
903
|
-
}),
|
904
|
-
var a =
|
913
|
+
}), Pp = L, Rp = z, Ip = Rp.RegExp, Np = Pp(function() {
|
914
|
+
var a = Ip("(?<a>b)", "g");
|
905
915
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
906
|
-
}), tt = Y,
|
916
|
+
}), tt = Y, Mr = k, Mp = pe, _p = Uu, Dp = zu, Vp = $i, Lp = Xi, kp = Ar.get, Bp = Ap, Fp = Np, jp = Vp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, li = mr, Up = Mr("".charAt), zp = Mr("".indexOf), Gp = Mr("".replace), Ca = Mr("".slice), hi = function() {
|
907
917
|
var a = /a/, e = /b*/g;
|
908
|
-
return tt(
|
909
|
-
}(),
|
910
|
-
|
911
|
-
var t = this, r =
|
918
|
+
return tt(mr, a, "a"), tt(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
919
|
+
}(), Xu = Dp.BROKEN_CARET, vi = /()??/.exec("")[1] !== void 0, Hp = hi || vi || Xu || Bp || Fp;
|
920
|
+
Hp && (li = function(e) {
|
921
|
+
var t = this, r = kp(t), i = Mp(e), n = r.raw, o, s, u, l, h, f, c;
|
912
922
|
if (n)
|
913
923
|
return n.lastIndex = t.lastIndex, o = tt(li, n, i), t.lastIndex = n.lastIndex, o;
|
914
|
-
var v = r.groups, d =
|
915
|
-
if (d && (g =
|
916
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), vi && (s = new RegExp("^" + p + "$(?!\\s)", g)), hi && (u = t.lastIndex), l = tt(
|
924
|
+
var v = r.groups, d = Xu && t.sticky, g = tt(_p, t), p = t.source, y = 0, x = i;
|
925
|
+
if (d && (g = Gp(g, "y", ""), zp(g, "g") === -1 && (g += "g"), x = Ca(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Up(i, t.lastIndex - 1) !== `
|
926
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), vi && (s = new RegExp("^" + p + "$(?!\\s)", g)), hi && (u = t.lastIndex), l = tt(mr, d ? s : t, x), d ? l ? (l.input = Ca(l.input, y), l[0] = Ca(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : hi && l && (t.lastIndex = t.global ? l.index + l[0].length : u), vi && l && l.length > 1 && tt(jp, l[0], s, function() {
|
917
927
|
for (h = 1; h < arguments.length - 2; h++)
|
918
928
|
arguments[h] === void 0 && (l[h] = void 0);
|
919
929
|
}), l && v)
|
920
|
-
for (l.groups = f =
|
930
|
+
for (l.groups = f = Lp(null), h = 0; h < v.length; h++)
|
921
931
|
c = v[h], f[c[0]] = l[c[1]];
|
922
932
|
return l;
|
923
933
|
});
|
924
|
-
var
|
925
|
-
|
926
|
-
exec:
|
934
|
+
var _r = li, Yp = ee, Es = _r;
|
935
|
+
Yp({ target: "RegExp", proto: !0, forced: /./.exec !== Es }, {
|
936
|
+
exec: Es
|
927
937
|
});
|
928
|
-
var
|
929
|
-
var i =
|
938
|
+
var $s = Rt, Cs = ze, Xp = _r, ws = L, Wu = G, Wp = wt, qp = Wu("species"), wa = RegExp.prototype, Wi = function(a, e, t, r) {
|
939
|
+
var i = Wu(a), n = !ws(function() {
|
930
940
|
var l = {};
|
931
941
|
return l[i] = function() {
|
932
942
|
return 7;
|
933
943
|
}, ""[a](l) != 7;
|
934
|
-
}), o = n && !
|
944
|
+
}), o = n && !ws(function() {
|
935
945
|
var l = !1, h = /a/;
|
936
|
-
return a === "split" && (h = {}, h.constructor = {}, h.constructor[
|
946
|
+
return a === "split" && (h = {}, h.constructor = {}, h.constructor[qp] = function() {
|
937
947
|
return h;
|
938
948
|
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
|
939
949
|
return l = !0, null;
|
940
950
|
}, h[i](""), !l;
|
941
951
|
});
|
942
952
|
if (!n || !o || t) {
|
943
|
-
var s =
|
944
|
-
var d =
|
945
|
-
return g ===
|
953
|
+
var s = $s(/./[i]), u = e(i, ""[a], function(l, h, f, c, v) {
|
954
|
+
var d = $s(l), g = h.exec;
|
955
|
+
return g === Xp || g === wa.exec ? n && !v ? { done: !0, value: s(h, f, c) } : { done: !0, value: d(f, h, c) } : { done: !1 };
|
946
956
|
});
|
947
|
-
|
957
|
+
Cs(String.prototype, a, u[0]), Cs(wa, i, u[1]);
|
948
958
|
}
|
949
|
-
r &&
|
950
|
-
},
|
959
|
+
r && Wp(wa[i], "sham", !0);
|
960
|
+
}, qi = k, Qp = Pr, Kp = pe, Zp = ge, Jp = qi("".charAt), As = qi("".charCodeAt), ey = qi("".slice), Ps = function(a) {
|
951
961
|
return function(e, t) {
|
952
|
-
var r =
|
953
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
962
|
+
var r = Kp(Zp(e)), i = Qp(t), n = r.length, o, s;
|
963
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = As(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = As(r, i + 1)) < 56320 || s > 57343 ? a ? Jp(r, i) : o : a ? ey(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
954
964
|
};
|
955
|
-
},
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
965
|
+
}, ty = {
|
966
|
+
// `String.prototype.codePointAt` method
|
967
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
968
|
+
codeAt: Ps(!1),
|
969
|
+
// `String.prototype.at` method
|
970
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
971
|
+
charAt: Ps(!0)
|
972
|
+
}, ry = ty.charAt, Qi = function(a, e, t) {
|
973
|
+
return e + (t ? ry(a, e).length : 1);
|
974
|
+
}, Rs = Y, ay = K, iy = D, ny = Fe, sy = _r, oy = TypeError, Ki = function(a, e) {
|
961
975
|
var t = a.exec;
|
962
|
-
if (
|
963
|
-
var r =
|
964
|
-
return r !== null &&
|
965
|
-
}
|
966
|
-
if (
|
967
|
-
return
|
968
|
-
throw
|
969
|
-
},
|
970
|
-
|
976
|
+
if (iy(t)) {
|
977
|
+
var r = Rs(t, a, e);
|
978
|
+
return r !== null && ay(r), r;
|
979
|
+
}
|
980
|
+
if (ny(a) === "RegExp")
|
981
|
+
return Rs(sy, a, e);
|
982
|
+
throw oy("RegExp#exec called on incompatible receiver");
|
983
|
+
}, uy = Y, ly = Wi, hy = K, vy = je, fy = lt, Aa = pe, cy = ge, gy = ut, dy = Qi, Is = Ki;
|
984
|
+
ly("match", function(a, e, t) {
|
971
985
|
return [
|
986
|
+
// `String.prototype.match` method
|
987
|
+
// https://tc39.es/ecma262/#sec-string.prototype.match
|
972
988
|
function(i) {
|
973
|
-
var n =
|
974
|
-
return o ?
|
989
|
+
var n = cy(this), o = vy(i) ? void 0 : gy(i, a);
|
990
|
+
return o ? uy(o, i, n) : new RegExp(i)[a](Aa(n));
|
975
991
|
},
|
992
|
+
// `RegExp.prototype[@@match]` method
|
993
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
976
994
|
function(r) {
|
977
|
-
var i =
|
995
|
+
var i = hy(this), n = Aa(r), o = t(e, i, n);
|
978
996
|
if (o.done)
|
979
997
|
return o.value;
|
980
998
|
if (!i.global)
|
981
|
-
return
|
999
|
+
return Is(i, n);
|
982
1000
|
var s = i.unicode;
|
983
1001
|
i.lastIndex = 0;
|
984
|
-
for (var u = [], l = 0, h; (h =
|
985
|
-
var f =
|
986
|
-
u[l] = f, f === "" && (i.lastIndex =
|
1002
|
+
for (var u = [], l = 0, h; (h = Is(i, n)) !== null; ) {
|
1003
|
+
var f = Aa(h[0]);
|
1004
|
+
u[l] = f, f === "" && (i.lastIndex = dy(n, fy(i.lastIndex), s)), l++;
|
987
1005
|
}
|
988
1006
|
return l === 0 ? null : u;
|
989
1007
|
}
|
990
1008
|
];
|
991
1009
|
});
|
992
|
-
var
|
993
|
-
var o = t + a.length, s = r.length, u =
|
994
|
-
return i !== void 0 && (i =
|
1010
|
+
var Zi = k, py = $r, yy = Math.floor, Pa = Zi("".charAt), my = Zi("".replace), Ra = Zi("".slice), by = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, xy = /\$([$&'`]|\d{1,2})/g, Ty = function(a, e, t, r, i, n) {
|
1011
|
+
var o = t + a.length, s = r.length, u = xy;
|
1012
|
+
return i !== void 0 && (i = py(i), u = by), my(n, u, function(l, h) {
|
995
1013
|
var f;
|
996
|
-
switch (
|
1014
|
+
switch (Pa(h, 0)) {
|
997
1015
|
case "$":
|
998
1016
|
return "$";
|
999
1017
|
case "&":
|
1000
1018
|
return a;
|
1001
1019
|
case "`":
|
1002
|
-
return
|
1020
|
+
return Ra(e, 0, t);
|
1003
1021
|
case "'":
|
1004
|
-
return
|
1022
|
+
return Ra(e, o);
|
1005
1023
|
case "<":
|
1006
|
-
f = i[
|
1024
|
+
f = i[Ra(h, 1, -1)];
|
1007
1025
|
break;
|
1008
1026
|
default:
|
1009
1027
|
var c = +h;
|
1010
1028
|
if (c === 0)
|
1011
1029
|
return l;
|
1012
1030
|
if (c > s) {
|
1013
|
-
var v =
|
1014
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
1031
|
+
var v = yy(c / 10);
|
1032
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Pa(h, 1) : r[v - 1] + Pa(h, 1) : l;
|
1015
1033
|
}
|
1016
1034
|
f = r[c - 1];
|
1017
1035
|
}
|
1018
1036
|
return f === void 0 ? "" : f;
|
1019
1037
|
});
|
1020
|
-
},
|
1038
|
+
}, Oy = Vi, Ns = Y, Dr = k, Sy = Wi, Ey = L, $y = K, Cy = D, wy = je, Ay = Pr, Py = lt, qe = pe, Ry = ge, Iy = Qi, Ny = ut, My = Ty, _y = Ki, Dy = G, fi = Dy("replace"), Vy = Math.max, Ly = Math.min, ky = Dr([].concat), Ia = Dr([].push), Ms = Dr("".indexOf), _s = Dr("".slice), By = function(a) {
|
1021
1039
|
return a === void 0 ? a : String(a);
|
1022
|
-
},
|
1040
|
+
}, Fy = function() {
|
1023
1041
|
return "a".replace(/./, "$0") === "$0";
|
1024
|
-
}(),
|
1042
|
+
}(), Ds = function() {
|
1025
1043
|
return /./[fi] ? /./[fi]("a", "$0") === "" : !1;
|
1026
|
-
}(),
|
1044
|
+
}(), jy = !Ey(function() {
|
1027
1045
|
var a = /./;
|
1028
1046
|
return a.exec = function() {
|
1029
1047
|
var e = [];
|
1030
1048
|
return e.groups = { a: "7" }, e;
|
1031
1049
|
}, "".replace(a, "$<a>") !== "7";
|
1032
1050
|
});
|
1033
|
-
|
1034
|
-
var r =
|
1051
|
+
Sy("replace", function(a, e, t) {
|
1052
|
+
var r = Ds ? "$" : "$0";
|
1035
1053
|
return [
|
1054
|
+
// `String.prototype.replace` method
|
1055
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1036
1056
|
function(n, o) {
|
1037
|
-
var s =
|
1038
|
-
return u ?
|
1057
|
+
var s = Ry(this), u = wy(n) ? void 0 : Ny(n, fi);
|
1058
|
+
return u ? Ns(u, n, s, o) : Ns(e, qe(s), n, o);
|
1039
1059
|
},
|
1060
|
+
// `RegExp.prototype[@@replace]` method
|
1061
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1040
1062
|
function(i, n) {
|
1041
|
-
var o =
|
1042
|
-
if (typeof n == "string" &&
|
1063
|
+
var o = $y(this), s = qe(i);
|
1064
|
+
if (typeof n == "string" && Ms(n, r) === -1 && Ms(n, "$<") === -1) {
|
1043
1065
|
var u = t(e, o, s, n);
|
1044
1066
|
if (u.done)
|
1045
1067
|
return u.value;
|
1046
1068
|
}
|
1047
|
-
var l =
|
1069
|
+
var l = Cy(n);
|
1048
1070
|
l || (n = qe(n));
|
1049
1071
|
var h = o.global;
|
1050
1072
|
if (h) {
|
@@ -1052,113 +1074,113 @@ by("replace", function(a, e, t) {
|
|
1052
1074
|
o.lastIndex = 0;
|
1053
1075
|
}
|
1054
1076
|
for (var c = []; ; ) {
|
1055
|
-
var v =
|
1056
|
-
if (v === null || (
|
1077
|
+
var v = _y(o, s);
|
1078
|
+
if (v === null || (Ia(c, v), !h))
|
1057
1079
|
break;
|
1058
1080
|
var d = qe(v[0]);
|
1059
|
-
d === "" && (o.lastIndex =
|
1081
|
+
d === "" && (o.lastIndex = Iy(s, Py(o.lastIndex), f));
|
1060
1082
|
}
|
1061
1083
|
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
1062
1084
|
v = c[y];
|
1063
|
-
for (var x = qe(v[0]), b =
|
1064
|
-
|
1085
|
+
for (var x = qe(v[0]), b = Vy(Ly(Ay(v.index), s.length), 0), T = [], $ = 1; $ < v.length; $++)
|
1086
|
+
Ia(T, By(v[$]));
|
1065
1087
|
var E = v.groups;
|
1066
1088
|
if (l) {
|
1067
|
-
var O =
|
1068
|
-
E !== void 0 &&
|
1069
|
-
var w = qe(
|
1089
|
+
var O = ky([x], T, b, s);
|
1090
|
+
E !== void 0 && Ia(O, E);
|
1091
|
+
var w = qe(Oy(n, void 0, O));
|
1070
1092
|
} else
|
1071
|
-
w =
|
1072
|
-
b >= p && (g +=
|
1093
|
+
w = My(x, s, b, T, E, n);
|
1094
|
+
b >= p && (g += _s(s, p, b) + w, p = b + x.length);
|
1073
1095
|
}
|
1074
|
-
return g +
|
1096
|
+
return g + _s(s, p);
|
1075
1097
|
}
|
1076
1098
|
];
|
1077
|
-
}, !
|
1078
|
-
var
|
1099
|
+
}, !jy || !Fy || Ds);
|
1100
|
+
var Uy = Te, zy = Fe, Gy = G, Hy = Gy("match"), qu = function(a) {
|
1079
1101
|
var e;
|
1080
|
-
return
|
1081
|
-
},
|
1082
|
-
if (
|
1083
|
-
throw
|
1102
|
+
return Uy(a) && ((e = a[Hy]) !== void 0 ? !!e : zy(a) == "RegExp");
|
1103
|
+
}, Yy = qu, Xy = TypeError, Ji = function(a) {
|
1104
|
+
if (Yy(a))
|
1105
|
+
throw Xy("The method doesn't accept regular expressions");
|
1084
1106
|
return a;
|
1085
|
-
},
|
1107
|
+
}, Wy = G, qy = Wy("match"), en = function(a) {
|
1086
1108
|
var e = /./;
|
1087
1109
|
try {
|
1088
1110
|
"/./"[a](e);
|
1089
1111
|
} catch {
|
1090
1112
|
try {
|
1091
|
-
return e[
|
1113
|
+
return e[qy] = !1, "/./"[a](e);
|
1092
1114
|
} catch {
|
1093
1115
|
}
|
1094
1116
|
}
|
1095
1117
|
return !1;
|
1096
|
-
},
|
1097
|
-
var a =
|
1118
|
+
}, Qy = ee, Qu = Rt, Ky = ot.f, Zy = lt, Vs = pe, Jy = Ji, em = ge, tm = en, Ls = Qu("".startsWith), rm = Qu("".slice), am = Math.min, Ku = tm("startsWith"), im = !Ku && !!function() {
|
1119
|
+
var a = Ky(String.prototype, "startsWith");
|
1098
1120
|
return a && !a.writable;
|
1099
1121
|
}();
|
1100
|
-
|
1122
|
+
Qy({ target: "String", proto: !0, forced: !im && !Ku }, {
|
1101
1123
|
startsWith: function(e) {
|
1102
|
-
var t =
|
1103
|
-
|
1104
|
-
var r =
|
1105
|
-
return
|
1124
|
+
var t = Vs(em(this));
|
1125
|
+
Jy(e);
|
1126
|
+
var r = Zy(am(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Vs(e);
|
1127
|
+
return Ls ? Ls(t, i, r) : rm(t, r, r + i.length) === i;
|
1106
1128
|
}
|
1107
1129
|
});
|
1108
|
-
var
|
1109
|
-
gi[ci] == null &&
|
1130
|
+
var nm = G, sm = Xi, om = de.f, ci = nm("unscopables"), gi = Array.prototype;
|
1131
|
+
gi[ci] == null && om(gi, ci, {
|
1110
1132
|
configurable: !0,
|
1111
|
-
value:
|
1133
|
+
value: sm(null)
|
1112
1134
|
});
|
1113
|
-
var
|
1135
|
+
var um = function(a) {
|
1114
1136
|
gi[ci][a] = !0;
|
1115
|
-
},
|
1137
|
+
}, lm = L, hm = !lm(function() {
|
1116
1138
|
function a() {
|
1117
1139
|
}
|
1118
1140
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
1119
|
-
}),
|
1120
|
-
var e =
|
1121
|
-
if (
|
1122
|
-
return e[
|
1141
|
+
}), vm = le, fm = D, cm = $r, gm = Pi, dm = hm, ks = gm("IE_PROTO"), di = Object, pm = di.prototype, Zu = dm ? di.getPrototypeOf : function(a) {
|
1142
|
+
var e = cm(a);
|
1143
|
+
if (vm(e, ks))
|
1144
|
+
return e[ks];
|
1123
1145
|
var t = e.constructor;
|
1124
|
-
return
|
1125
|
-
},
|
1126
|
-
[].keys && (
|
1127
|
-
var
|
1146
|
+
return fm(t) && e instanceof t ? t.prototype : e instanceof di ? pm : null;
|
1147
|
+
}, ym = L, mm = D, bm = Te, Bs = Zu, xm = ze, Tm = G, pi = Tm("iterator"), Ju = !1, ke, Na, Ma;
|
1148
|
+
[].keys && (Ma = [].keys(), "next" in Ma ? (Na = Bs(Bs(Ma)), Na !== Object.prototype && (ke = Na)) : Ju = !0);
|
1149
|
+
var Om = !bm(ke) || ym(function() {
|
1128
1150
|
var a = {};
|
1129
1151
|
return ke[pi].call(a) !== a;
|
1130
1152
|
});
|
1131
|
-
|
1132
|
-
|
1153
|
+
Om && (ke = {});
|
1154
|
+
mm(ke[pi]) || xm(ke, pi, function() {
|
1133
1155
|
return this;
|
1134
1156
|
});
|
1135
|
-
var
|
1157
|
+
var el = {
|
1136
1158
|
IteratorPrototype: ke,
|
1137
|
-
BUGGY_SAFARI_ITERATORS:
|
1138
|
-
},
|
1159
|
+
BUGGY_SAFARI_ITERATORS: Ju
|
1160
|
+
}, Sm = el.IteratorPrototype, Em = Xi, $m = Tr, Cm = Mi, wm = Nt, Am = function() {
|
1139
1161
|
return this;
|
1140
|
-
},
|
1162
|
+
}, Pm = function(a, e, t, r) {
|
1141
1163
|
var i = e + " Iterator";
|
1142
|
-
return a.prototype =
|
1143
|
-
},
|
1164
|
+
return a.prototype = Em(Sm, { next: $m(+!r, t) }), Cm(a, i, !1), wm[i] = Am, a;
|
1165
|
+
}, Rm = ee, Im = Y, tl = wr, Nm = D, Mm = Pm, Fs = Zu, js = lu, _m = Mi, Dm = wt, _a = ze, Vm = G, Lm = Nt, rl = el, km = tl.PROPER, Bm = tl.CONFIGURABLE, Us = rl.IteratorPrototype, er = rl.BUGGY_SAFARI_ITERATORS, ct = Vm("iterator"), zs = "keys", gt = "values", Gs = "entries", Fm = function() {
|
1144
1166
|
return this;
|
1145
|
-
},
|
1146
|
-
|
1167
|
+
}, jm = function(a, e, t, r, i, n, o) {
|
1168
|
+
Mm(t, e, r);
|
1147
1169
|
var s = function(y) {
|
1148
1170
|
if (y === i && c)
|
1149
1171
|
return c;
|
1150
|
-
if (!
|
1172
|
+
if (!er && y in h)
|
1151
1173
|
return h[y];
|
1152
1174
|
switch (y) {
|
1153
|
-
case
|
1175
|
+
case zs:
|
1154
1176
|
return function() {
|
1155
1177
|
return new t(this, y);
|
1156
1178
|
};
|
1157
|
-
case
|
1179
|
+
case gt:
|
1158
1180
|
return function() {
|
1159
1181
|
return new t(this, y);
|
1160
1182
|
};
|
1161
|
-
case
|
1183
|
+
case Gs:
|
1162
1184
|
return function() {
|
1163
1185
|
return new t(this, y);
|
1164
1186
|
};
|
@@ -1166,42 +1188,45 @@ var Ku = {
|
|
1166
1188
|
return function() {
|
1167
1189
|
return new t(this);
|
1168
1190
|
};
|
1169
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[
|
1170
|
-
if (v && (d =
|
1171
|
-
return
|
1191
|
+
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !er && f || s(i), v = e == "Array" && h.entries || f, d, g, p;
|
1192
|
+
if (v && (d = Fs(v.call(new a())), d !== Object.prototype && d.next && (Fs(d) !== Us && (js ? js(d, Us) : Nm(d[ct]) || _a(d, ct, Fm)), _m(d, u, !0))), km && i == gt && f && f.name !== gt && (Bm ? Dm(h, "name", gt) : (l = !0, c = function() {
|
1193
|
+
return Im(f, this);
|
1172
1194
|
})), i)
|
1173
1195
|
if (g = {
|
1174
|
-
values: s(
|
1175
|
-
keys: n ? c : s(
|
1176
|
-
entries: s(
|
1196
|
+
values: s(gt),
|
1197
|
+
keys: n ? c : s(zs),
|
1198
|
+
entries: s(Gs)
|
1177
1199
|
}, o)
|
1178
1200
|
for (p in g)
|
1179
|
-
(
|
1201
|
+
(er || l || !(p in h)) && _a(h, p, g[p]);
|
1180
1202
|
else
|
1181
|
-
|
1182
|
-
return h[
|
1183
|
-
},
|
1203
|
+
Rm({ target: e, proto: !0, forced: er || l }, g);
|
1204
|
+
return h[ct] !== c && _a(h, ct, c, { name: i }), Lm[e] = c, g;
|
1205
|
+
}, Um = function(a, e) {
|
1184
1206
|
return { value: a, done: e };
|
1185
|
-
},
|
1186
|
-
|
1187
|
-
type:
|
1188
|
-
target:
|
1207
|
+
}, zm = Ct, tn = um, Hs = Nt, al = Ar, Gm = de.f, Hm = jm, tr = Um, Ym = ce, il = "Array Iterator", Xm = al.set, Wm = al.getterFor(il), qm = Hm(Array, "Array", function(a, e) {
|
1208
|
+
Xm(this, {
|
1209
|
+
type: il,
|
1210
|
+
target: zm(a),
|
1211
|
+
// target
|
1189
1212
|
index: 0,
|
1213
|
+
// next index
|
1190
1214
|
kind: e
|
1215
|
+
// kind
|
1191
1216
|
});
|
1192
1217
|
}, function() {
|
1193
|
-
var a =
|
1194
|
-
return !e || r >= e.length ? (a.target = void 0,
|
1195
|
-
}, "values"),
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
if (
|
1218
|
+
var a = Wm(this), e = a.target, t = a.kind, r = a.index++;
|
1219
|
+
return !e || r >= e.length ? (a.target = void 0, tr(void 0, !0)) : t == "keys" ? tr(r, !1) : t == "values" ? tr(e[r], !1) : tr([r, e[r]], !1);
|
1220
|
+
}, "values"), Ys = Hs.Arguments = Hs.Array;
|
1221
|
+
tn("keys");
|
1222
|
+
tn("values");
|
1223
|
+
tn("entries");
|
1224
|
+
if (Ym && Ys.name !== "values")
|
1200
1225
|
try {
|
1201
|
-
|
1226
|
+
Gm(Ys, "name", { value: "values" });
|
1202
1227
|
} catch {
|
1203
1228
|
}
|
1204
|
-
var
|
1229
|
+
var Qm = {
|
1205
1230
|
CSSRuleList: 0,
|
1206
1231
|
CSSStyleDeclaration: 0,
|
1207
1232
|
CSSValueList: 0,
|
@@ -1233,29 +1258,29 @@ var Ym = {
|
|
1233
1258
|
TextTrackCueList: 0,
|
1234
1259
|
TextTrackList: 0,
|
1235
1260
|
TouchList: 0
|
1236
|
-
},
|
1261
|
+
}, Km = Cr, Da = Km("span").classList, Xs = Da && Da.constructor && Da.constructor.prototype, Zm = Xs === Object.prototype ? void 0 : Xs, Ws = z, nl = Qm, Jm = Zm, mt = qm, Va = wt, sl = G, La = sl("iterator"), qs = sl("toStringTag"), ka = mt.values, ol = function(a, e) {
|
1237
1262
|
if (a) {
|
1238
|
-
if (a[
|
1263
|
+
if (a[La] !== ka)
|
1239
1264
|
try {
|
1240
|
-
|
1265
|
+
Va(a, La, ka);
|
1241
1266
|
} catch {
|
1242
|
-
a[
|
1267
|
+
a[La] = ka;
|
1243
1268
|
}
|
1244
|
-
if (a[
|
1245
|
-
for (var t in
|
1246
|
-
if (a[t] !==
|
1269
|
+
if (a[qs] || Va(a, qs, e), nl[e]) {
|
1270
|
+
for (var t in mt)
|
1271
|
+
if (a[t] !== mt[t])
|
1247
1272
|
try {
|
1248
|
-
|
1273
|
+
Va(a, t, mt[t]);
|
1249
1274
|
} catch {
|
1250
|
-
a[t] =
|
1275
|
+
a[t] = mt[t];
|
1251
1276
|
}
|
1252
1277
|
}
|
1253
1278
|
}
|
1254
1279
|
};
|
1255
|
-
for (var
|
1256
|
-
|
1257
|
-
|
1258
|
-
function
|
1280
|
+
for (var Ba in nl)
|
1281
|
+
ol(Ws[Ba] && Ws[Ba].prototype, Ba);
|
1282
|
+
ol(Jm, "DOMTokenList");
|
1283
|
+
function rn(a, e, t) {
|
1259
1284
|
return e in a ? Object.defineProperty(a, e, {
|
1260
1285
|
value: t,
|
1261
1286
|
enumerable: !0,
|
@@ -1263,10 +1288,10 @@ function tn(a, e, t) {
|
|
1263
1288
|
writable: !0
|
1264
1289
|
}) : a[e] = t, a;
|
1265
1290
|
}
|
1266
|
-
var
|
1291
|
+
var e0 = we, t0 = $r, r0 = jo, a0 = Rr, i0 = TypeError, Qs = function(a) {
|
1267
1292
|
return function(e, t, r, i) {
|
1268
|
-
|
1269
|
-
var n =
|
1293
|
+
e0(t);
|
1294
|
+
var n = t0(e), o = r0(n), s = a0(n), u = a ? s - 1 : 0, l = a ? -1 : 1;
|
1270
1295
|
if (r < 2)
|
1271
1296
|
for (; ; ) {
|
1272
1297
|
if (u in o) {
|
@@ -1274,49 +1299,53 @@ var Qm = we, Km = wr, Zm = Bo, Jm = Nr, e0 = TypeError, qs = function(a) {
|
|
1274
1299
|
break;
|
1275
1300
|
}
|
1276
1301
|
if (u += l, a ? u < 0 : s <= u)
|
1277
|
-
throw
|
1302
|
+
throw i0("Reduce of empty array with no initial value");
|
1278
1303
|
}
|
1279
1304
|
for (; a ? u >= 0 : s > u; u += l)
|
1280
1305
|
u in o && (i = t(i, o[u], u, n));
|
1281
1306
|
return i;
|
1282
1307
|
};
|
1283
|
-
},
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1308
|
+
}, n0 = {
|
1309
|
+
// `Array.prototype.reduce` method
|
1310
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
1311
|
+
left: Qs(!1),
|
1312
|
+
// `Array.prototype.reduceRight` method
|
1313
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
1314
|
+
right: Qs(!0)
|
1315
|
+
}, s0 = L, ul = function(a, e) {
|
1287
1316
|
var t = [][a];
|
1288
|
-
return !!t &&
|
1317
|
+
return !!t && s0(function() {
|
1289
1318
|
t.call(null, e || function() {
|
1290
1319
|
return 1;
|
1291
1320
|
}, 1);
|
1292
1321
|
});
|
1293
|
-
},
|
1294
|
-
|
1322
|
+
}, o0 = ee, u0 = n0.left, l0 = ul, Ks = Oi, h0 = Pt, v0 = !h0 && Ks > 79 && Ks < 83, f0 = v0 || !l0("reduce");
|
1323
|
+
o0({ target: "Array", proto: !0, forced: f0 }, {
|
1295
1324
|
reduce: function(e) {
|
1296
1325
|
var t = arguments.length;
|
1297
|
-
return
|
1326
|
+
return u0(this, e, t, t > 1 ? arguments[1] : void 0);
|
1298
1327
|
}
|
1299
1328
|
});
|
1300
|
-
var
|
1301
|
-
var a =
|
1329
|
+
var c0 = ee, ll = Rt, g0 = ot.f, d0 = lt, Zs = pe, p0 = Ji, y0 = ge, m0 = en, Js = ll("".endsWith), b0 = ll("".slice), x0 = Math.min, hl = m0("endsWith"), T0 = !hl && !!function() {
|
1330
|
+
var a = g0(String.prototype, "endsWith");
|
1302
1331
|
return a && !a.writable;
|
1303
1332
|
}();
|
1304
|
-
|
1333
|
+
c0({ target: "String", proto: !0, forced: !T0 && !hl }, {
|
1305
1334
|
endsWith: function(e) {
|
1306
|
-
var t =
|
1307
|
-
|
1308
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
1309
|
-
return
|
1335
|
+
var t = Zs(y0(this));
|
1336
|
+
p0(e);
|
1337
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : x0(d0(r), i), o = Zs(e);
|
1338
|
+
return Js ? Js(t, o, n) : b0(t, n - o.length, n) === o;
|
1310
1339
|
}
|
1311
1340
|
});
|
1312
|
-
var
|
1313
|
-
var r =
|
1314
|
-
r in a ?
|
1315
|
-
},
|
1316
|
-
for (var r =
|
1317
|
-
|
1341
|
+
var O0 = Ci, S0 = de, E0 = Tr, $0 = function(a, e, t) {
|
1342
|
+
var r = O0(e);
|
1343
|
+
r in a ? S0.f(a, r, E0(0, t)) : a[r] = t;
|
1344
|
+
}, eo = iu, C0 = Rr, w0 = $0, A0 = Array, P0 = Math.max, R0 = function(a, e, t) {
|
1345
|
+
for (var r = C0(a), i = eo(e, r), n = eo(t === void 0 ? r : t, r), o = A0(P0(n - i, 0)), s = 0; i < n; i++, s++)
|
1346
|
+
w0(o, s, a[i]);
|
1318
1347
|
return o.length = s, o;
|
1319
|
-
},
|
1348
|
+
}, I0 = Vi, dt = Y, an = k, N0 = Wi, M0 = K, _0 = je, D0 = qu, to = ge, V0 = du, L0 = Qi, k0 = lt, Fa = pe, B0 = ut, ro = R0, ao = Ki, F0 = _r, j0 = zu, U0 = L, Qe = j0.UNSUPPORTED_Y, io = 4294967295, z0 = Math.min, vl = [].push, G0 = an(/./.exec), Ke = an(vl), pt = an("".slice), H0 = !U0(function() {
|
1320
1349
|
var a = /(?:)/, e = a.exec;
|
1321
1350
|
a.exec = function() {
|
1322
1351
|
return e.apply(this, arguments);
|
@@ -1324,42 +1353,51 @@ var m0 = $i, b0 = de, x0 = Or, T0 = function(a, e, t) {
|
|
1324
1353
|
var t = "ab".split(a);
|
1325
1354
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
1326
1355
|
});
|
1327
|
-
|
1356
|
+
N0("split", function(a, e, t) {
|
1328
1357
|
var r;
|
1329
|
-
return "abbc".split(/(b)*/)[1] == "c" ||
|
1330
|
-
|
1358
|
+
return "abbc".split(/(b)*/)[1] == "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
1359
|
+
"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
|
1360
|
+
".".split(/()()/).length > 1 || "".split(/.?/).length ? r = function(i, n) {
|
1361
|
+
var o = Fa(to(this)), s = n === void 0 ? io : n >>> 0;
|
1331
1362
|
if (s === 0)
|
1332
1363
|
return [];
|
1333
1364
|
if (i === void 0)
|
1334
1365
|
return [o];
|
1335
|
-
if (!
|
1336
|
-
return
|
1337
|
-
for (var u = [], l = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, f = new RegExp(i.source, l + "g"), c, v, d; (c =
|
1366
|
+
if (!D0(i))
|
1367
|
+
return dt(e, o, i, s);
|
1368
|
+
for (var u = [], l = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, f = new RegExp(i.source, l + "g"), c, v, d; (c = dt(F0, f, o)) && (v = f.lastIndex, !(v > h && (Ke(u, pt(o, h, c.index)), c.length > 1 && c.index < o.length && I0(vl, u, ro(c, 1)), d = c[0].length, h = v, u.length >= s))); )
|
1338
1369
|
f.lastIndex === c.index && f.lastIndex++;
|
1339
|
-
return h === o.length ? (d || !
|
1370
|
+
return h === o.length ? (d || !G0(f, "")) && Ke(u, "") : Ke(u, pt(o, h)), u.length > s ? ro(u, 0, s) : u;
|
1340
1371
|
} : "0".split(void 0, 0).length ? r = function(i, n) {
|
1341
|
-
return i === void 0 && n === 0 ? [] :
|
1372
|
+
return i === void 0 && n === 0 ? [] : dt(e, this, i, n);
|
1342
1373
|
} : r = e, [
|
1374
|
+
// `String.prototype.split` method
|
1375
|
+
// https://tc39.es/ecma262/#sec-string.prototype.split
|
1343
1376
|
function(n, o) {
|
1344
|
-
var s =
|
1345
|
-
return u ?
|
1377
|
+
var s = to(this), u = _0(n) ? void 0 : B0(n, a);
|
1378
|
+
return u ? dt(u, n, s, o) : dt(r, Fa(s), n, o);
|
1346
1379
|
},
|
1380
|
+
// `RegExp.prototype[@@split]` method
|
1381
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
1382
|
+
//
|
1383
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
1384
|
+
// the 'y' flag.
|
1347
1385
|
function(i, n) {
|
1348
|
-
var o =
|
1386
|
+
var o = M0(this), s = Fa(i), u = t(r, o, s, n, r !== e);
|
1349
1387
|
if (u.done)
|
1350
1388
|
return u.value;
|
1351
|
-
var l =
|
1389
|
+
var l = V0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (Qe ? "g" : "y"), c = new l(Qe ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? io : n >>> 0;
|
1352
1390
|
if (v === 0)
|
1353
1391
|
return [];
|
1354
1392
|
if (s.length === 0)
|
1355
|
-
return
|
1393
|
+
return ao(c, s) === null ? [s] : [];
|
1356
1394
|
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
1357
1395
|
c.lastIndex = Qe ? 0 : g;
|
1358
|
-
var y =
|
1359
|
-
if (y === null || (x =
|
1360
|
-
g =
|
1396
|
+
var y = ao(c, Qe ? pt(s, g) : s), x;
|
1397
|
+
if (y === null || (x = z0(k0(c.lastIndex + (Qe ? g : 0)), s.length)) === d)
|
1398
|
+
g = L0(s, g, h);
|
1361
1399
|
else {
|
1362
|
-
if (Ke(p,
|
1400
|
+
if (Ke(p, pt(s, d, g)), p.length === v)
|
1363
1401
|
return p;
|
1364
1402
|
for (var b = 1; b <= y.length - 1; b++)
|
1365
1403
|
if (Ke(p, y[b]), p.length === v)
|
@@ -1367,41 +1405,41 @@ A0("split", function(a, e, t) {
|
|
1367
1405
|
g = d = x;
|
1368
1406
|
}
|
1369
1407
|
}
|
1370
|
-
return Ke(p,
|
1408
|
+
return Ke(p, pt(s, d)), p;
|
1371
1409
|
}
|
1372
1410
|
];
|
1373
|
-
}, !
|
1374
|
-
var
|
1411
|
+
}, !H0, Qe);
|
1412
|
+
var Vr = { exports: {} }, bt = { exports: {} };
|
1375
1413
|
(function() {
|
1376
1414
|
var a, e, t, r, i, n;
|
1377
|
-
typeof performance < "u" && performance !== null && performance.now ?
|
1415
|
+
typeof performance < "u" && performance !== null && performance.now ? bt.exports = function() {
|
1378
1416
|
return performance.now();
|
1379
|
-
} : typeof process < "u" && process !== null && process.hrtime ? (
|
1417
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (bt.exports = function() {
|
1380
1418
|
return (a() - i) / 1e6;
|
1381
1419
|
}, e = process.hrtime, a = function() {
|
1382
1420
|
var o;
|
1383
1421
|
return o = e(), o[0] * 1e9 + o[1];
|
1384
|
-
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (
|
1422
|
+
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (bt.exports = function() {
|
1385
1423
|
return Date.now() - t;
|
1386
|
-
}, t = Date.now()) : (
|
1387
|
-
return new Date().getTime() - t;
|
1388
|
-
}, t = new Date().getTime());
|
1389
|
-
}).call(
|
1390
|
-
var
|
1391
|
-
for (var
|
1392
|
-
|
1393
|
-
if (!
|
1394
|
-
var
|
1395
|
-
|
1424
|
+
}, t = Date.now()) : (bt.exports = function() {
|
1425
|
+
return (/* @__PURE__ */ new Date()).getTime() - t;
|
1426
|
+
}, t = (/* @__PURE__ */ new Date()).getTime());
|
1427
|
+
}).call(fr);
|
1428
|
+
var Y0 = bt.exports, X0 = Y0, be = typeof window > "u" ? fr : window, rr = ["moz", "webkit"], at = "AnimationFrame", st = be["request" + at], $t = be["cancel" + at] || be["cancelRequest" + at];
|
1429
|
+
for (var yt = 0; !st && yt < rr.length; yt++)
|
1430
|
+
st = be[rr[yt] + "Request" + at], $t = be[rr[yt] + "Cancel" + at] || be[rr[yt] + "CancelRequest" + at];
|
1431
|
+
if (!st || !$t) {
|
1432
|
+
var ja = 0, no = 0, Me = [], W0 = 1e3 / 60;
|
1433
|
+
st = function(a) {
|
1396
1434
|
if (Me.length === 0) {
|
1397
|
-
var e =
|
1398
|
-
|
1435
|
+
var e = X0(), t = Math.max(0, W0 - (e - ja));
|
1436
|
+
ja = t + e, setTimeout(function() {
|
1399
1437
|
var r = Me.slice(0);
|
1400
1438
|
Me.length = 0;
|
1401
1439
|
for (var i = 0; i < r.length; i++)
|
1402
1440
|
if (!r[i].cancelled)
|
1403
1441
|
try {
|
1404
|
-
r[i].callback(
|
1442
|
+
r[i].callback(ja);
|
1405
1443
|
} catch (n) {
|
1406
1444
|
setTimeout(function() {
|
1407
1445
|
throw n;
|
@@ -1410,45 +1448,53 @@ if (!ot || !Ct) {
|
|
1410
1448
|
}, Math.round(t));
|
1411
1449
|
}
|
1412
1450
|
return Me.push({
|
1413
|
-
handle: ++
|
1451
|
+
handle: ++no,
|
1414
1452
|
callback: a,
|
1415
1453
|
cancelled: !1
|
1416
|
-
}),
|
1417
|
-
},
|
1454
|
+
}), no;
|
1455
|
+
}, $t = function(a) {
|
1418
1456
|
for (var e = 0; e < Me.length; e++)
|
1419
1457
|
Me[e].handle === a && (Me[e].cancelled = !0);
|
1420
1458
|
};
|
1421
1459
|
}
|
1422
|
-
|
1423
|
-
return
|
1460
|
+
Vr.exports = function(a) {
|
1461
|
+
return st.call(be, a);
|
1424
1462
|
};
|
1425
|
-
|
1426
|
-
|
1463
|
+
Vr.exports.cancel = function() {
|
1464
|
+
$t.apply(be, arguments);
|
1427
1465
|
};
|
1428
|
-
|
1429
|
-
a || (a = be), a.requestAnimationFrame =
|
1466
|
+
Vr.exports.polyfill = function(a) {
|
1467
|
+
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = $t;
|
1430
1468
|
};
|
1431
|
-
var
|
1432
|
-
|
1469
|
+
var q0 = Vr.exports;
|
1470
|
+
const Ua = /* @__PURE__ */ _o(q0);
|
1471
|
+
var fl = `
|
1472
|
+
\v\f\r \u2028\u2029\uFEFF`, Q0 = k, K0 = ge, Z0 = pe, J0 = fl, so = Q0("".replace), br = "[" + J0 + "]", eb = RegExp("^" + br + br + "*"), tb = RegExp(br + br + "*$"), za = function(a) {
|
1433
1473
|
return function(e) {
|
1434
|
-
var t =
|
1435
|
-
return a & 1 && (t =
|
1474
|
+
var t = Z0(K0(e));
|
1475
|
+
return a & 1 && (t = so(t, eb, "")), a & 2 && (t = so(t, tb, "")), t;
|
1436
1476
|
};
|
1437
|
-
},
|
1477
|
+
}, rb = {
|
1478
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
1479
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
1438
1480
|
start: za(1),
|
1481
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
1482
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
1439
1483
|
end: za(2),
|
1484
|
+
// `String.prototype.trim` method
|
1485
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
1440
1486
|
trim: za(3)
|
1441
|
-
},
|
1442
|
-
return
|
1443
|
-
return !!
|
1487
|
+
}, ab = wr.PROPER, ib = L, oo = fl, uo = "
", nb = function(a) {
|
1488
|
+
return ib(function() {
|
1489
|
+
return !!oo[a]() || uo[a]() !== uo || ab && oo[a].name !== a;
|
1444
1490
|
});
|
1445
|
-
},
|
1446
|
-
|
1491
|
+
}, sb = ee, ob = rb.trim, ub = nb;
|
1492
|
+
sb({ target: "String", proto: !0, forced: ub("trim") }, {
|
1447
1493
|
trim: function() {
|
1448
|
-
return
|
1494
|
+
return ob(this);
|
1449
1495
|
}
|
1450
1496
|
});
|
1451
|
-
var
|
1497
|
+
var lb = function(a) {
|
1452
1498
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
1453
1499
|
var e = {
|
1454
1500
|
aliceblue: "f0f8ff",
|
@@ -1677,48 +1723,64 @@ var yi = function(a) {
|
|
1677
1723
|
}
|
1678
1724
|
return v;
|
1679
1725
|
};
|
1680
|
-
}
|
1681
|
-
|
1726
|
+
};
|
1727
|
+
const yi = /* @__PURE__ */ _o(lb);
|
1728
|
+
var hb = ee, vb = Rt, fb = nu.indexOf, cb = ul, mi = vb([].indexOf), cl = !!mi && 1 / mi([1], 1, -0) < 0, gb = cl || !cb("indexOf");
|
1729
|
+
hb({ target: "Array", proto: !0, forced: gb }, {
|
1682
1730
|
indexOf: function(e) {
|
1683
1731
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
1684
|
-
return
|
1732
|
+
return cl ? mi(this, e, t) || 0 : fb(this, e, t);
|
1685
1733
|
}
|
1686
1734
|
});
|
1687
|
-
var
|
1688
|
-
|
1735
|
+
var db = ee, pb = k, yb = Ji, mb = ge, lo = pe, bb = en, xb = pb("".indexOf);
|
1736
|
+
db({ target: "String", proto: !0, forced: !bb("includes") }, {
|
1689
1737
|
includes: function(e) {
|
1690
|
-
return !!~
|
1691
|
-
|
1692
|
-
|
1738
|
+
return !!~xb(
|
1739
|
+
lo(mb(this)),
|
1740
|
+
lo(yb(e)),
|
1693
1741
|
arguments.length > 1 ? arguments[1] : void 0
|
1694
1742
|
);
|
1695
1743
|
}
|
1696
1744
|
});
|
1697
|
-
var
|
1698
|
-
return
|
1699
|
-
},
|
1700
|
-
|
1745
|
+
var Tb = Fe, Ob = Array.isArray || function(e) {
|
1746
|
+
return Tb(e) == "Array";
|
1747
|
+
}, Sb = ee, Eb = k, $b = Ob, Cb = Eb([].reverse), ho = [1, 2];
|
1748
|
+
Sb({ target: "Array", proto: !0, forced: String(ho) === String(ho.reverse()) }, {
|
1701
1749
|
reverse: function() {
|
1702
|
-
return
|
1750
|
+
return $b(this) && (this.length = this.length), Cb(this);
|
1703
1751
|
}
|
1704
1752
|
});
|
1705
|
-
|
1706
|
-
|
1753
|
+
/*! *****************************************************************************
|
1754
|
+
Copyright (c) Microsoft Corporation.
|
1755
|
+
|
1756
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
1757
|
+
purpose with or without fee is hereby granted.
|
1758
|
+
|
1759
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
1760
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
1761
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
1762
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
1763
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
1764
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
1765
|
+
PERFORMANCE OF THIS SOFTWARE.
|
1766
|
+
***************************************************************************** */
|
1767
|
+
var gl = function(a, e) {
|
1768
|
+
return (gl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
1707
1769
|
t.__proto__ = r;
|
1708
1770
|
} || function(t, r) {
|
1709
1771
|
for (var i in r)
|
1710
1772
|
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
1711
1773
|
})(a, e);
|
1712
1774
|
};
|
1713
|
-
function
|
1775
|
+
function dl(a, e) {
|
1714
1776
|
if (typeof e != "function" && e !== null)
|
1715
1777
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
1716
1778
|
function t() {
|
1717
1779
|
this.constructor = a;
|
1718
1780
|
}
|
1719
|
-
|
1781
|
+
gl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
1720
1782
|
}
|
1721
|
-
function
|
1783
|
+
function wb(a) {
|
1722
1784
|
var e = "";
|
1723
1785
|
Array.isArray(a) || (a = [a]);
|
1724
1786
|
for (var t = 0; t < a.length; t++) {
|
@@ -1771,7 +1833,7 @@ function Ga(a, e, t) {
|
|
1771
1833
|
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g = bi([v, d], a.xRot / 180 * Se);
|
1772
1834
|
a.cX = g[0] + (e + n) / 2, a.cY = g[1] + (t + o) / 2, a.phi1 = Math.atan2((l - d) / i, (u - v) / r), a.phi2 = Math.atan2((-l - d) / i, (-u - v) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 * Se), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Se), a.phi1 *= 180 / Se, a.phi2 *= 180 / Se;
|
1773
1835
|
}
|
1774
|
-
function
|
1836
|
+
function vo(a, e, t) {
|
1775
1837
|
oe(a, e, t);
|
1776
1838
|
var r = a * a + e * e - t * t;
|
1777
1839
|
if (0 > r)
|
@@ -1782,13 +1844,13 @@ function ho(a, e, t) {
|
|
1782
1844
|
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)]];
|
1783
1845
|
}
|
1784
1846
|
var j, ye = Math.PI / 180;
|
1785
|
-
function
|
1847
|
+
function fo(a, e, t) {
|
1786
1848
|
return (1 - t) * a + t * e;
|
1787
1849
|
}
|
1788
|
-
function
|
1850
|
+
function co(a, e, t, r) {
|
1789
1851
|
return a + Math.cos(r / 180 * Se) * e + Math.sin(r / 180 * Se) * t;
|
1790
1852
|
}
|
1791
|
-
function
|
1853
|
+
function go(a, e, t, r) {
|
1792
1854
|
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;
|
1793
1855
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
1794
1856
|
c === void 0 && (c = 1e-6);
|
@@ -1801,7 +1863,7 @@ function co(a, e, t, r) {
|
|
1801
1863
|
return [-h / 2 - d, -h / 2 + d];
|
1802
1864
|
}(u / s, l / s, i);
|
1803
1865
|
}
|
1804
|
-
function
|
1866
|
+
function po(a, e, t, r, i) {
|
1805
1867
|
var n = 1 - i;
|
1806
1868
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
1807
1869
|
}
|
@@ -1916,11 +1978,11 @@ function go(a, e, t, r, i) {
|
|
1916
1978
|
var v, d, g, p;
|
1917
1979
|
h.cX || Ga(h, f, c);
|
1918
1980
|
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++) {
|
1919
|
-
var w =
|
1981
|
+
var w = fo(h.phi1, h.phi2, O / b), N = fo(h.phi1, h.phi2, (O + 1) / b), _ = N - w, B = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(w * ye) - B * Math.sin(w * ye), Math.sin(w * ye) + B * Math.cos(w * ye)], X = P[0], W = P[1], U = [Math.cos(N * ye), Math.sin(N * ye)], q = U[0], H = U[1], Q = [q + B * Math.sin(N * ye), H - B * Math.cos(N * ye)], R = Q[0], M = Q[1];
|
1920
1982
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
1921
1983
|
var Z = function(ne, ve) {
|
1922
|
-
var Oe = bi([ne * h.rX, ve * h.rY], h.xRot), He = Oe[0],
|
1923
|
-
return [h.cX + He, h.cY +
|
1984
|
+
var Oe = bi([ne * h.rX, ve * h.rY], h.xRot), He = Oe[0], _t = Oe[1];
|
1985
|
+
return [h.cX + He, h.cY + _t];
|
1924
1986
|
};
|
1925
1987
|
v = Z(X, W), T[O].x1 = v[0], T[O].y1 = v[1], d = Z(R, M), T[O].x2 = d[0], T[O].y2 = d[1], g = Z(q, H), T[O].x = g[0], T[O].y = g[1], h.relative && (T[O].x1 -= $, T[O].y1 -= E, T[O].x2 -= $, T[O].y2 -= E, T[O].x -= $, T[O].y -= E), $ = (p = [T[O].x, T[O].y])[0], E = p[1];
|
1926
1988
|
}
|
@@ -1947,21 +2009,21 @@ function go(a, e, t, r, i) {
|
|
1947
2009
|
}
|
1948
2010
|
if (g.type & m.DRAWING_COMMANDS && (p(v), y(d)), g.type & m.HORIZ_LINE_TO && p(g.x), g.type & m.VERT_LINE_TO && y(g.y), g.type & m.LINE_TO && (p(g.x), y(g.y)), g.type & m.CURVE_TO) {
|
1949
2011
|
p(g.x), y(g.y);
|
1950
|
-
for (var x = 0, b =
|
1951
|
-
0 < (R = b[x]) && 1 > R && p(
|
1952
|
-
for (var T = 0, $ =
|
1953
|
-
0 < (R = $[T]) && 1 > R && y(
|
2012
|
+
for (var x = 0, b = go(v, g.x1, g.x2, g.x); x < b.length; x++)
|
2013
|
+
0 < (R = b[x]) && 1 > R && p(po(v, g.x1, g.x2, g.x, R));
|
2014
|
+
for (var T = 0, $ = go(d, g.y1, g.y2, g.y); T < $.length; T++)
|
2015
|
+
0 < (R = $[T]) && 1 > R && y(po(d, g.y1, g.y2, g.y, R));
|
1954
2016
|
}
|
1955
2017
|
if (g.type & m.ARC) {
|
1956
2018
|
p(g.x), y(g.y), Ga(g, v, d);
|
1957
2019
|
for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX, w = Math.sin(E) * g.rX, N = -Math.sin(E) * g.rY, _ = Math.cos(E) * g.rY, B = g.phi1 < g.phi2 ? [g.phi1, g.phi2] : -180 > g.phi2 ? [g.phi2 + 360, g.phi1 + 360] : [g.phi2, g.phi1], P = B[0], X = B[1], W = function(M) {
|
1958
2020
|
var Z = M[0], ne = M[1], ve = 180 * Math.atan2(ne, Z) / Math.PI;
|
1959
2021
|
return ve < P ? ve + 360 : ve;
|
1960
|
-
}, U = 0, q =
|
1961
|
-
(R = q[U]) > P && R < X && p(
|
1962
|
-
for (var H = 0, Q =
|
2022
|
+
}, U = 0, q = vo(N, -O, 0).map(W); U < q.length; U++)
|
2023
|
+
(R = q[U]) > P && R < X && p(co(g.cX, O, N, R));
|
2024
|
+
for (var H = 0, Q = vo(_, -w, 0).map(W); H < Q.length; H++) {
|
1963
2025
|
var R;
|
1964
|
-
(R = Q[H]) > P && R < X && y(
|
2026
|
+
(R = Q[H]) > P && R < X && y(co(g.cY, w, _, R));
|
1965
2027
|
}
|
1966
2028
|
}
|
1967
2029
|
return c;
|
@@ -1969,7 +2031,7 @@ function go(a, e, t, r, i) {
|
|
1969
2031
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
1970
2032
|
};
|
1971
2033
|
})(j || (j = {}));
|
1972
|
-
var se,
|
2034
|
+
var se, pl = function() {
|
1973
2035
|
function a() {
|
1974
2036
|
}
|
1975
2037
|
return a.prototype.round = function(e) {
|
@@ -2007,17 +2069,17 @@ var se, cl = function() {
|
|
2007
2069
|
}, a.prototype.annotateArcs = function() {
|
2008
2070
|
return this.transform(j.ANNOTATE_ARCS());
|
2009
2071
|
}, a;
|
2010
|
-
}(),
|
2072
|
+
}(), Ab = function(a) {
|
2011
2073
|
return a === " " || a === " " || a === "\r" || a === `
|
2012
2074
|
`;
|
2013
|
-
},
|
2075
|
+
}, yo = function(a) {
|
2014
2076
|
return "0".charCodeAt(0) <= a.charCodeAt(0) && a.charCodeAt(0) <= "9".charCodeAt(0);
|
2015
|
-
},
|
2077
|
+
}, Pb = function(a) {
|
2016
2078
|
function e() {
|
2017
2079
|
var t = a.call(this) || this;
|
2018
2080
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
2019
2081
|
}
|
2020
|
-
return
|
2082
|
+
return dl(e, a), e.prototype.finish = function(t) {
|
2021
2083
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
|
2022
2084
|
throw new SyntaxError("Unterminated command at the path end.");
|
2023
2085
|
return t;
|
@@ -2027,8 +2089,8 @@ var se, cl = function() {
|
|
2027
2089
|
for (var n = function(f) {
|
2028
2090
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
2029
2091
|
}, o = 0; o < t.length; o++) {
|
2030
|
-
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 =
|
2031
|
-
if (!
|
2092
|
+
var s = t[o], u = !(this.curCommandType !== m.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l = yo(s) && (this.curNumber === "0" && s === "0" || u);
|
2093
|
+
if (!yo(s) || l)
|
2032
2094
|
if (s !== "e" && s !== "E")
|
2033
2095
|
if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
|
2034
2096
|
if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
@@ -2043,9 +2105,9 @@ var se, cl = function() {
|
|
2043
2105
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
|
2044
2106
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
2045
2107
|
}
|
2046
|
-
this.curArgs.push(h), this.curArgs.length ===
|
2108
|
+
this.curArgs.push(h), this.curArgs.length === Rb[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;
|
2047
2109
|
}
|
2048
|
-
if (!
|
2110
|
+
if (!Ab(s))
|
2049
2111
|
if (s === "," && this.canParseCommandOrComma)
|
2050
2112
|
this.canParseCommandOrComma = !1;
|
2051
2113
|
else if (s !== "+" && s !== "-" && s !== ".")
|
@@ -2103,12 +2165,12 @@ var se, cl = function() {
|
|
2103
2165
|
return i;
|
2104
2166
|
} } });
|
2105
2167
|
}, e;
|
2106
|
-
}(
|
2168
|
+
}(pl), m = function(a) {
|
2107
2169
|
function e(t) {
|
2108
2170
|
var r = a.call(this) || this;
|
2109
2171
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
2110
2172
|
}
|
2111
|
-
return
|
2173
|
+
return dl(e, a), e.prototype.encode = function() {
|
2112
2174
|
return e.encode(this.commands);
|
2113
2175
|
}, e.prototype.getBounds = function() {
|
2114
2176
|
var t = j.CALCULATE_BOUNDS();
|
@@ -2120,35 +2182,36 @@ var se, cl = function() {
|
|
2120
2182
|
}
|
2121
2183
|
return this.commands = r, this;
|
2122
2184
|
}, e.encode = function(t) {
|
2123
|
-
return
|
2185
|
+
return wb(t);
|
2124
2186
|
}, e.parse = function(t) {
|
2125
|
-
var r = new
|
2187
|
+
var r = new Pb(), i = [];
|
2126
2188
|
return r.parse(t, i), r.finish(i), i;
|
2127
2189
|
}, 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;
|
2128
|
-
}(
|
2190
|
+
}(pl), Rb = ((se = {})[m.MOVE_TO] = 2, se[m.LINE_TO] = 2, se[m.HORIZ_LINE_TO] = 1, se[m.VERT_LINE_TO] = 1, se[m.CLOSE_PATH] = 0, se[m.QUAD_TO] = 4, se[m.SMOOTH_QUAD_TO] = 2, se[m.CURVE_TO] = 6, se[m.SMOOTH_CURVE_TO] = 4, se[m.ARC] = 7, se), Ib = Y, Nb = le, Mb = Or, _b = Uu, mo = RegExp.prototype, Db = function(a) {
|
2129
2191
|
var e = a.flags;
|
2130
|
-
return e === void 0 && !("flags" in
|
2131
|
-
},
|
2132
|
-
return
|
2133
|
-
}),
|
2134
|
-
(
|
2135
|
-
var e =
|
2192
|
+
return e === void 0 && !("flags" in mo) && !Nb(a, "flags") && Mb(mo, a) ? Ib(_b, a) : e;
|
2193
|
+
}, Vb = wr.PROPER, Lb = ze, kb = K, bo = pe, Bb = L, Fb = Db, nn = "toString", jb = RegExp.prototype, yl = jb[nn], Ub = Bb(function() {
|
2194
|
+
return yl.call({ source: "a", flags: "b" }) != "/a/b";
|
2195
|
+
}), zb = Vb && yl.name != nn;
|
2196
|
+
(Ub || zb) && Lb(RegExp.prototype, nn, function() {
|
2197
|
+
var e = kb(this), t = bo(e.source), r = bo(Fb(e));
|
2136
2198
|
return "/" + t + "/" + r;
|
2137
2199
|
}, { unsafe: !0 });
|
2138
|
-
function
|
2139
|
-
|
2200
|
+
function vr(a) {
|
2201
|
+
"@babel/helpers - typeof";
|
2202
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? vr = function(e) {
|
2140
2203
|
return typeof e;
|
2141
|
-
} :
|
2204
|
+
} : vr = function(e) {
|
2142
2205
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
2143
|
-
},
|
2206
|
+
}, vr(a);
|
2144
2207
|
}
|
2145
|
-
function
|
2208
|
+
function Gb(a, e) {
|
2146
2209
|
if (!(a instanceof e))
|
2147
2210
|
throw new TypeError("Cannot call a class as a function");
|
2148
2211
|
}
|
2149
|
-
var
|
2150
|
-
function
|
2151
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
2212
|
+
var Hb = [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], Yb = [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];
|
2213
|
+
function Xb(a, e, t, r, i) {
|
2214
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || vr(a) !== "object" || !("getContext" in a))
|
2152
2215
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
2153
2216
|
var n = a.getContext("2d");
|
2154
2217
|
try {
|
@@ -2157,64 +2220,69 @@ function Fb(a, e, t, r, i) {
|
|
2157
2220
|
throw new Error("unable to access image data: " + o);
|
2158
2221
|
}
|
2159
2222
|
}
|
2160
|
-
function
|
2223
|
+
function Wb(a, e, t, r, i, n) {
|
2161
2224
|
if (!(isNaN(n) || n < 1)) {
|
2162
2225
|
n |= 0;
|
2163
|
-
var o =
|
2164
|
-
o =
|
2226
|
+
var o = Xb(a, e, t, r, i);
|
2227
|
+
o = qb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
2165
2228
|
}
|
2166
2229
|
}
|
2167
|
-
function
|
2168
|
-
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
|
2169
|
-
v = v.next = new
|
2230
|
+
function qb(a, e, t, r, i, n) {
|
2231
|
+
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new xo(), v = c, d, g = 1; g < s; g++)
|
2232
|
+
v = v.next = new xo(), g === h && (d = v);
|
2170
2233
|
v.next = c;
|
2171
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
2234
|
+
for (var p = null, y = null, x = 0, b = 0, T = Hb[n], $ = Yb[n], E = 0; E < i; E++) {
|
2172
2235
|
v = c;
|
2173
2236
|
for (var O = o[b], w = o[b + 1], N = o[b + 2], _ = o[b + 3], B = 0; B < h; B++)
|
2174
2237
|
v.r = O, v.g = w, v.b = N, v.a = _, v = v.next;
|
2175
2238
|
for (var P = 0, X = 0, W = 0, U = 0, q = h * O, H = h * w, Q = h * N, R = h * _, M = f * O, Z = f * w, ne = f * N, ve = f * _, Oe = 1; Oe < h; Oe++) {
|
2176
|
-
var He = b + ((u < Oe ? u : Oe) << 2),
|
2177
|
-
M += (v.r =
|
2239
|
+
var He = b + ((u < Oe ? u : Oe) << 2), _t = o[He], un = o[He + 1], ln = o[He + 2], hn = o[He + 3], Dt = h - Oe;
|
2240
|
+
M += (v.r = _t) * Dt, Z += (v.g = un) * Dt, ne += (v.b = ln) * Dt, ve += (v.a = hn) * Dt, P += _t, X += un, W += ln, U += hn, v = v.next;
|
2178
2241
|
}
|
2179
2242
|
p = c, y = d;
|
2180
|
-
for (var
|
2181
|
-
var
|
2182
|
-
if (o[b + 3] =
|
2183
|
-
var
|
2184
|
-
o[b] = (M * T >> $) *
|
2243
|
+
for (var jr = 0; jr < r; jr++) {
|
2244
|
+
var Ur = ve * T >> $;
|
2245
|
+
if (o[b + 3] = Ur, Ur !== 0) {
|
2246
|
+
var zr = 255 / Ur;
|
2247
|
+
o[b] = (M * T >> $) * zr, o[b + 1] = (Z * T >> $) * zr, o[b + 2] = (ne * T >> $) * zr;
|
2185
2248
|
} else
|
2186
2249
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
2187
2250
|
M -= q, Z -= H, ne -= Q, ve -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
|
2188
|
-
var Ae =
|
2251
|
+
var Ae = jr + n + 1;
|
2189
2252
|
Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], U += p.a = o[Ae + 3], M += P, Z += X, ne += W, ve += U, p = p.next;
|
2190
|
-
var
|
2191
|
-
q +=
|
2253
|
+
var Vt = y, vn = Vt.r, fn = Vt.g, cn = Vt.b, gn = Vt.a;
|
2254
|
+
q += vn, H += fn, Q += cn, R += gn, P -= vn, X -= fn, W -= cn, U -= gn, y = y.next, b += 4;
|
2192
2255
|
}
|
2193
2256
|
x += r;
|
2194
2257
|
}
|
2195
2258
|
for (var Ye = 0; Ye < r; Ye++) {
|
2196
2259
|
b = Ye << 2;
|
2197
|
-
var Pe = o[b], Re = o[b + 1], Ie = o[b + 2], te = o[b + 3],
|
2260
|
+
var Pe = o[b], Re = o[b + 1], Ie = o[b + 2], te = o[b + 3], Gr = h * Pe, Hr = h * Re, Yr = h * Ie, Xr = h * te, Lt = f * Pe, kt = f * Re, Bt = f * Ie, Ft = f * te;
|
2198
2261
|
v = c;
|
2199
|
-
for (var
|
2262
|
+
for (var dn = 0; dn < h; dn++)
|
2200
2263
|
v.r = Pe, v.g = Re, v.b = Ie, v.a = te, v = v.next;
|
2201
|
-
for (var
|
2202
|
-
b =
|
2203
|
-
var
|
2204
|
-
|
2264
|
+
for (var pn = r, Wr = 0, qr = 0, Qr = 0, Kr = 0, jt = 1; jt <= n; jt++) {
|
2265
|
+
b = pn + Ye << 2;
|
2266
|
+
var Ut = h - jt;
|
2267
|
+
Lt += (v.r = Pe = o[b]) * Ut, kt += (v.g = Re = o[b + 1]) * Ut, Bt += (v.b = Ie = o[b + 2]) * Ut, Ft += (v.a = te = o[b + 3]) * Ut, Kr += Pe, Wr += Re, qr += Ie, Qr += te, v = v.next, jt < l && (pn += r);
|
2205
2268
|
}
|
2206
2269
|
b = Ye, p = c, y = d;
|
2207
|
-
for (var
|
2270
|
+
for (var Zr = 0; Zr < i; Zr++) {
|
2208
2271
|
var re = b << 2;
|
2209
|
-
o[re + 3] = te =
|
2272
|
+
o[re + 3] = te = Ft * T >> $, te > 0 ? (te = 255 / te, o[re] = (Lt * T >> $) * te, o[re + 1] = (kt * T >> $) * te, o[re + 2] = (Bt * T >> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Lt -= Gr, kt -= Hr, Bt -= Yr, Ft -= Xr, Gr -= p.r, Hr -= p.g, Yr -= p.b, Xr -= p.a, re = Ye + ((re = Zr + h) < l ? re : l) * r << 2, Lt += Kr += p.r = o[re], kt += Wr += p.g = o[re + 1], Bt += qr += p.b = o[re + 2], Ft += Qr += p.a = o[re + 3], p = p.next, Gr += Pe = y.r, Hr += Re = y.g, Yr += Ie = y.b, Xr += te = y.a, Kr -= Pe, Wr -= Re, qr -= Ie, Qr -= te, y = y.next, b += r;
|
2210
2273
|
}
|
2211
2274
|
}
|
2212
2275
|
return a;
|
2213
2276
|
}
|
2214
|
-
var
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2277
|
+
var xo = (
|
2278
|
+
/**
|
2279
|
+
* Set properties.
|
2280
|
+
*/
|
2281
|
+
function a() {
|
2282
|
+
Gb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
2283
|
+
}
|
2284
|
+
);
|
2285
|
+
function Qb() {
|
2218
2286
|
var {
|
2219
2287
|
DOMParser: a
|
2220
2288
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
@@ -2234,7 +2302,7 @@ function zb() {
|
|
2234
2302
|
};
|
2235
2303
|
return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
|
2236
2304
|
}
|
2237
|
-
function
|
2305
|
+
function Kb(a) {
|
2238
2306
|
var {
|
2239
2307
|
DOMParser: e,
|
2240
2308
|
canvas: t,
|
@@ -2250,76 +2318,76 @@ function Gb(a) {
|
|
2250
2318
|
createImage: t.loadImage
|
2251
2319
|
};
|
2252
2320
|
}
|
2253
|
-
var
|
2321
|
+
var l2 = /* @__PURE__ */ Object.freeze({
|
2254
2322
|
__proto__: null,
|
2255
|
-
offscreen:
|
2256
|
-
node:
|
2323
|
+
offscreen: Qb,
|
2324
|
+
node: Kb
|
2257
2325
|
});
|
2258
|
-
function
|
2326
|
+
function vt(a) {
|
2259
2327
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
2260
2328
|
}
|
2261
|
-
function
|
2329
|
+
function Zb(a) {
|
2262
2330
|
return a.replace(/^[\n \t]+/, "");
|
2263
2331
|
}
|
2264
|
-
function
|
2332
|
+
function Jb(a) {
|
2265
2333
|
return a.replace(/[\n \t]+$/, "");
|
2266
2334
|
}
|
2267
2335
|
function ie(a) {
|
2268
2336
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
2269
2337
|
return e.map(parseFloat);
|
2270
2338
|
}
|
2271
|
-
var
|
2272
|
-
function
|
2273
|
-
return
|
2339
|
+
var e1 = /^[A-Z-]+$/;
|
2340
|
+
function t1(a) {
|
2341
|
+
return e1.test(a) ? a.toLowerCase() : a;
|
2274
2342
|
}
|
2275
|
-
function
|
2343
|
+
function ml(a) {
|
2276
2344
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
2277
2345
|
return e[2] || e[3] || e[4];
|
2278
2346
|
}
|
2279
|
-
function
|
2347
|
+
function r1(a) {
|
2280
2348
|
if (!a.startsWith("rgb"))
|
2281
2349
|
return a;
|
2282
2350
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
2283
2351
|
return t;
|
2284
2352
|
}
|
2285
|
-
var
|
2353
|
+
var a1 = /(\[[^\]]+\])/g, i1 = /(#[^\s+>~.[:]+)/g, n1 = /(\.[^\s+>~.[:]+)/g, s1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, o1 = /(:[\w-]+\([^)]*\))/gi, u1 = /(:[^\s+>~.[:]+)/g, l1 = /([^\s+>~.[:]+)/g;
|
2286
2354
|
function _e(a, e) {
|
2287
2355
|
var t = e.exec(a);
|
2288
2356
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
2289
2357
|
}
|
2290
|
-
function
|
2358
|
+
function h1(a) {
|
2291
2359
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
2292
|
-
return [t, r] = _e(t,
|
2360
|
+
return [t, r] = _e(t, a1), e[1] += r, [t, r] = _e(t, i1), e[0] += r, [t, r] = _e(t, n1), e[1] += r, [t, r] = _e(t, s1), e[2] += r, [t, r] = _e(t, o1), e[1] += r, [t, r] = _e(t, u1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, l1), e[2] += r, e.join("");
|
2293
2361
|
}
|
2294
|
-
var
|
2295
|
-
function
|
2362
|
+
var it = 1e-8;
|
2363
|
+
function To(a) {
|
2296
2364
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
2297
2365
|
}
|
2298
2366
|
function xi(a, e) {
|
2299
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
2367
|
+
return (a[0] * e[0] + a[1] * e[1]) / (To(a) * To(e));
|
2300
2368
|
}
|
2301
|
-
function
|
2369
|
+
function Oo(a, e) {
|
2302
2370
|
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(xi(a, e));
|
2303
2371
|
}
|
2304
|
-
function
|
2372
|
+
function So(a) {
|
2305
2373
|
return a * a * a;
|
2306
2374
|
}
|
2307
|
-
function
|
2375
|
+
function Eo(a) {
|
2308
2376
|
return 3 * a * a * (1 - a);
|
2309
2377
|
}
|
2310
|
-
function
|
2378
|
+
function $o(a) {
|
2311
2379
|
return 3 * a * (1 - a) * (1 - a);
|
2312
2380
|
}
|
2313
|
-
function
|
2381
|
+
function Co(a) {
|
2314
2382
|
return (1 - a) * (1 - a) * (1 - a);
|
2315
2383
|
}
|
2316
|
-
function
|
2384
|
+
function wo(a) {
|
2317
2385
|
return a * a;
|
2318
2386
|
}
|
2319
|
-
function
|
2387
|
+
function Ao(a) {
|
2320
2388
|
return 2 * a * (1 - a);
|
2321
2389
|
}
|
2322
|
-
function
|
2390
|
+
function Po(a) {
|
2323
2391
|
return (1 - a) * (1 - a);
|
2324
2392
|
}
|
2325
2393
|
class S {
|
@@ -2334,7 +2402,7 @@ class S {
|
|
2334
2402
|
document: t,
|
2335
2403
|
name: r
|
2336
2404
|
} = this;
|
2337
|
-
return
|
2405
|
+
return vt(this.getString()).trim().split(e).map((i) => new S(t, r, i));
|
2338
2406
|
}
|
2339
2407
|
hasValue(e) {
|
2340
2408
|
var {
|
@@ -2382,7 +2450,7 @@ class S {
|
|
2382
2450
|
}
|
2383
2451
|
getColor(e) {
|
2384
2452
|
var t = this.getString(e);
|
2385
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
2453
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = r1(t), this.value = t), t;
|
2386
2454
|
}
|
2387
2455
|
getDpi() {
|
2388
2456
|
return 96;
|
@@ -2502,7 +2570,7 @@ S.textBaselineMapping = {
|
|
2502
2570
|
hanging: "hanging",
|
2503
2571
|
mathematical: "alphabetic"
|
2504
2572
|
};
|
2505
|
-
class
|
2573
|
+
class v1 {
|
2506
2574
|
constructor() {
|
2507
2575
|
this.viewPorts = [];
|
2508
2576
|
}
|
@@ -2562,7 +2630,7 @@ class V {
|
|
2562
2630
|
this.x = i, this.y = n;
|
2563
2631
|
}
|
2564
2632
|
}
|
2565
|
-
class
|
2633
|
+
class f1 {
|
2566
2634
|
constructor(e) {
|
2567
2635
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
2568
2636
|
}
|
@@ -2580,7 +2648,7 @@ class n1 {
|
|
2580
2648
|
}
|
2581
2649
|
}
|
2582
2650
|
stop() {
|
2583
|
-
if (
|
2651
|
+
if (this.working) {
|
2584
2652
|
var e = this.screen.ctx.canvas;
|
2585
2653
|
this.working = !1, e.onclick = null, e.onmousemove = null;
|
2586
2654
|
}
|
@@ -2589,7 +2657,7 @@ class n1 {
|
|
2589
2657
|
return this.working && this.events.length > 0;
|
2590
2658
|
}
|
2591
2659
|
runEvents() {
|
2592
|
-
if (
|
2660
|
+
if (this.working) {
|
2593
2661
|
var {
|
2594
2662
|
screen: e,
|
2595
2663
|
events: t,
|
@@ -2672,14 +2740,14 @@ class n1 {
|
|
2672
2740
|
});
|
2673
2741
|
}
|
2674
2742
|
}
|
2675
|
-
var
|
2676
|
-
class
|
2743
|
+
var bl = typeof window < "u" ? window : null, xl = typeof fetch < "u" ? fetch.bind(void 0) : null;
|
2744
|
+
class Lr {
|
2677
2745
|
constructor(e) {
|
2678
2746
|
var {
|
2679
|
-
fetch: t =
|
2680
|
-
window: r =
|
2747
|
+
fetch: t = xl,
|
2748
|
+
window: r = bl
|
2681
2749
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2682
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
2750
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new v1(), this.mouse = new f1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
2683
2751
|
}
|
2684
2752
|
wait(e) {
|
2685
2753
|
this.waits.push(e);
|
@@ -2712,7 +2780,7 @@ class kr {
|
|
2712
2780
|
clip: v = !1,
|
2713
2781
|
clipX: d = 0,
|
2714
2782
|
clipY: g = 0
|
2715
|
-
} = e, p =
|
2783
|
+
} = e, p = vt(i).replace(/^defer\s/, ""), [y, x] = p.split(" "), b = y || "xMidYMid", T = x || "meet", $ = n / o, E = s / u, O = Math.min($, E), w = Math.max($, E), N = o, _ = u;
|
2716
2784
|
T === "meet" && (N *= O, _ *= O), T === "slice" && (N *= w, _ *= w);
|
2717
2785
|
var B = new S(t, "refX", f), P = new S(t, "refY", c), X = B.hasValue() && P.hasValue();
|
2718
2786
|
if (X && r.translate(-O * B.getPixels("x"), -O * P.getPixels("y")), v) {
|
@@ -2756,13 +2824,13 @@ class kr {
|
|
2756
2824
|
this.resolveReady = b;
|
2757
2825
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
2758
2826
|
var g = Date.now(), p = g, y = 0, x = () => {
|
2759
|
-
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId =
|
2827
|
+
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = Ua(x);
|
2760
2828
|
};
|
2761
|
-
r || v.start(), this.intervalId =
|
2829
|
+
r || v.start(), this.intervalId = Ua(x);
|
2762
2830
|
}
|
2763
2831
|
}
|
2764
2832
|
stop() {
|
2765
|
-
this.intervalId && (
|
2833
|
+
this.intervalId && (Ua.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
2766
2834
|
}
|
2767
2835
|
shouldUpdate(e, t) {
|
2768
2836
|
if (!e) {
|
@@ -2803,16 +2871,16 @@ class kr {
|
|
2803
2871
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
2804
2872
|
}
|
2805
2873
|
}
|
2806
|
-
|
2807
|
-
|
2874
|
+
Lr.defaultWindow = bl;
|
2875
|
+
Lr.defaultFetch = xl;
|
2808
2876
|
var {
|
2809
|
-
defaultFetch:
|
2810
|
-
} =
|
2877
|
+
defaultFetch: c1
|
2878
|
+
} = Lr, g1 = typeof DOMParser < "u" ? DOMParser : null;
|
2811
2879
|
class Ha {
|
2812
2880
|
constructor() {
|
2813
2881
|
var {
|
2814
|
-
fetch: e =
|
2815
|
-
DOMParser: t =
|
2882
|
+
fetch: e = c1,
|
2883
|
+
DOMParser: t = g1
|
2816
2884
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
2817
2885
|
this.fetch = e, this.DOMParser = t;
|
2818
2886
|
}
|
@@ -2844,7 +2912,7 @@ class Ha {
|
|
2844
2912
|
})();
|
2845
2913
|
}
|
2846
2914
|
}
|
2847
|
-
class
|
2915
|
+
class d1 {
|
2848
2916
|
constructor(e, t) {
|
2849
2917
|
this.type = "translate", this.point = null, this.point = V.parse(t);
|
2850
2918
|
}
|
@@ -2870,7 +2938,7 @@ class u1 {
|
|
2870
2938
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
2871
2939
|
}
|
2872
2940
|
}
|
2873
|
-
class
|
2941
|
+
class p1 {
|
2874
2942
|
constructor(e, t, r) {
|
2875
2943
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
2876
2944
|
var i = ie(t);
|
@@ -2909,6 +2977,7 @@ class l1 {
|
|
2909
2977
|
1,
|
2910
2978
|
t || 0,
|
2911
2979
|
r || 0
|
2980
|
+
// this.p.y
|
2912
2981
|
]), e.applyTransform([Math.cos(n), Math.sin(n), -Math.sin(n), Math.cos(n), 0, 0]), e.applyTransform([
|
2913
2982
|
1,
|
2914
2983
|
0,
|
@@ -2916,14 +2985,15 @@ class l1 {
|
|
2916
2985
|
1,
|
2917
2986
|
-t || 0,
|
2918
2987
|
-r || 0
|
2988
|
+
// -this.p.y
|
2919
2989
|
]);
|
2920
2990
|
}
|
2921
2991
|
}
|
2922
|
-
class
|
2992
|
+
class y1 {
|
2923
2993
|
constructor(e, t, r) {
|
2924
2994
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
2925
2995
|
var i = V.parseScale(t);
|
2926
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
2996
|
+
(i.x === 0 || i.y === 0) && (i.x = it, i.y = it), this.scale = i, this.originX = r[0], this.originY = r[1];
|
2927
2997
|
}
|
2928
2998
|
apply(e) {
|
2929
2999
|
var {
|
@@ -2955,7 +3025,7 @@ class h1 {
|
|
2955
3025
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
2956
3026
|
}
|
2957
3027
|
}
|
2958
|
-
class
|
3028
|
+
class Tl {
|
2959
3029
|
constructor(e, t, r) {
|
2960
3030
|
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
|
2961
3031
|
}
|
@@ -2979,35 +3049,35 @@ class ml {
|
|
2979
3049
|
e.applyTransform(this.matrix);
|
2980
3050
|
}
|
2981
3051
|
}
|
2982
|
-
class
|
3052
|
+
class Ol extends Tl {
|
2983
3053
|
constructor(e, t, r) {
|
2984
3054
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
2985
3055
|
}
|
2986
3056
|
}
|
2987
|
-
class
|
3057
|
+
class m1 extends Ol {
|
2988
3058
|
constructor(e, t, r) {
|
2989
3059
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
2990
3060
|
}
|
2991
3061
|
}
|
2992
|
-
class
|
3062
|
+
class b1 extends Ol {
|
2993
3063
|
constructor(e, t, r) {
|
2994
3064
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
2995
3065
|
}
|
2996
3066
|
}
|
2997
|
-
function
|
2998
|
-
return
|
3067
|
+
function x1(a) {
|
3068
|
+
return vt(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
2999
3069
|
}
|
3000
|
-
function
|
3070
|
+
function T1(a) {
|
3001
3071
|
var [e, t] = a.split("(");
|
3002
3072
|
return [e.trim(), t.trim().replace(")", "")];
|
3003
3073
|
}
|
3004
3074
|
class Be {
|
3005
3075
|
constructor(e, t, r) {
|
3006
3076
|
this.document = e, this.transforms = [];
|
3007
|
-
var i =
|
3077
|
+
var i = x1(t);
|
3008
3078
|
i.forEach((n) => {
|
3009
3079
|
if (n !== "none") {
|
3010
|
-
var [o, s] =
|
3080
|
+
var [o, s] = T1(n), u = Be.transformTypes[o];
|
3011
3081
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
3012
3082
|
}
|
3013
3083
|
});
|
@@ -3028,6 +3098,7 @@ class Be {
|
|
3028
3098
|
} = this, r = t.length, i = r - 1; i >= 0; i--)
|
3029
3099
|
t[i].unapply(e);
|
3030
3100
|
}
|
3101
|
+
// TODO: applyToPoint unused ... remove?
|
3031
3102
|
applyToPoint(e) {
|
3032
3103
|
for (var {
|
3033
3104
|
transforms: t
|
@@ -3036,24 +3107,24 @@ class Be {
|
|
3036
3107
|
}
|
3037
3108
|
}
|
3038
3109
|
Be.transformTypes = {
|
3039
|
-
translate:
|
3040
|
-
rotate:
|
3041
|
-
scale:
|
3042
|
-
matrix:
|
3043
|
-
skewX:
|
3044
|
-
skewY:
|
3110
|
+
translate: d1,
|
3111
|
+
rotate: p1,
|
3112
|
+
scale: y1,
|
3113
|
+
matrix: Tl,
|
3114
|
+
skewX: m1,
|
3115
|
+
skewY: b1
|
3045
3116
|
};
|
3046
3117
|
class I {
|
3047
3118
|
constructor(e, t) {
|
3048
3119
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
3049
3120
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = {}, this.styles = {}, this.stylesSpecificity = {}, this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
3050
3121
|
if (Array.from(t.attributes).forEach((s) => {
|
3051
|
-
var u =
|
3122
|
+
var u = t1(s.nodeName);
|
3052
3123
|
this.attributes[u] = new S(e, u, s.value);
|
3053
3124
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
3054
3125
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
3055
3126
|
i.forEach((s) => {
|
3056
|
-
if (
|
3127
|
+
if (s) {
|
3057
3128
|
var [u, l] = s.split(":").map((h) => h.trim());
|
3058
3129
|
this.styles[u] = new S(e, u, l);
|
3059
3130
|
}
|
@@ -3190,19 +3261,19 @@ class I {
|
|
3190
3261
|
}
|
3191
3262
|
}
|
3192
3263
|
I.ignoreChildTypes = ["title"];
|
3193
|
-
class
|
3264
|
+
class O1 extends I {
|
3194
3265
|
constructor(e, t, r) {
|
3195
3266
|
super(e, t, r);
|
3196
3267
|
}
|
3197
3268
|
}
|
3198
|
-
function
|
3269
|
+
function S1(a) {
|
3199
3270
|
var e = a.trim();
|
3200
3271
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
3201
3272
|
}
|
3202
|
-
function
|
3203
|
-
return typeof process > "u" ? a : a.trim().split(",").map(
|
3273
|
+
function E1(a) {
|
3274
|
+
return typeof process > "u" ? a : a.trim().split(",").map(S1).join(",");
|
3204
3275
|
}
|
3205
|
-
function
|
3276
|
+
function $1(a) {
|
3206
3277
|
if (!a)
|
3207
3278
|
return "";
|
3208
3279
|
var e = a.trim().toLowerCase();
|
@@ -3218,7 +3289,7 @@ function m1(a) {
|
|
3218
3289
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
3219
3290
|
}
|
3220
3291
|
}
|
3221
|
-
function
|
3292
|
+
function C1(a) {
|
3222
3293
|
if (!a)
|
3223
3294
|
return "";
|
3224
3295
|
var e = a.trim().toLowerCase();
|
@@ -3241,7 +3312,7 @@ class J {
|
|
3241
3312
|
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;
|
3242
3313
|
}
|
3243
3314
|
static parse() {
|
3244
|
-
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 =
|
3315
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u = vt(e).trim().split(" "), l = {
|
3245
3316
|
fontSize: !1,
|
3246
3317
|
fontStyle: !1,
|
3247
3318
|
fontWeight: !1,
|
@@ -3268,11 +3339,12 @@ class J {
|
|
3268
3339
|
}
|
3269
3340
|
toString() {
|
3270
3341
|
return [
|
3271
|
-
|
3342
|
+
$1(this.fontStyle),
|
3272
3343
|
this.fontVariant,
|
3273
|
-
|
3344
|
+
C1(this.fontWeight),
|
3274
3345
|
this.fontSize,
|
3275
|
-
|
3346
|
+
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
3347
|
+
E1(this.fontFamily)
|
3276
3348
|
].join(" ").trim();
|
3277
3349
|
}
|
3278
3350
|
}
|
@@ -3306,7 +3378,7 @@ class he {
|
|
3306
3378
|
this.addPoint(null, e);
|
3307
3379
|
}
|
3308
3380
|
addBoundingBox(e) {
|
3309
|
-
if (
|
3381
|
+
if (e) {
|
3310
3382
|
var {
|
3311
3383
|
x1: t,
|
3312
3384
|
y1: r,
|
@@ -3336,6 +3408,7 @@ class he {
|
|
3336
3408
|
0 < c && c < 1 && (e ? this.addX(this.sumCubic(c, t, r, i, n)) : this.addY(this.sumCubic(c, t, r, i, n)));
|
3337
3409
|
}
|
3338
3410
|
}
|
3411
|
+
// from http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html
|
3339
3412
|
addBezierCurve(e, t, r, i, n, o, s, u) {
|
3340
3413
|
this.addPoint(e, t), this.addPoint(s, u), this.bezierCurveAdd(!0, e, r, n, s), this.bezierCurveAdd(!1, t, i, o, u);
|
3341
3414
|
}
|
@@ -3478,7 +3551,7 @@ class Ge extends I {
|
|
3478
3551
|
var v = this.getStyle("stroke-width");
|
3479
3552
|
if (v.hasValue()) {
|
3480
3553
|
var d = v.getPixels();
|
3481
|
-
e.lineWidth = d ||
|
3554
|
+
e.lineWidth = d || it;
|
3482
3555
|
}
|
3483
3556
|
var g = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), x = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
3484
3557
|
if (g.hasValue() && (e.lineCap = g.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
|
@@ -3754,7 +3827,7 @@ class A extends Ge {
|
|
3754
3827
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
3755
3828
|
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)));
|
3756
3829
|
isNaN(v) && (v = 0);
|
3757
|
-
var d = new V(v * i * f.y / n, v * -n * f.x / i), g = new V((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p =
|
3830
|
+
var d = new V(v * i * f.y / n, v * -n * f.x / i), g = new V((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p = Oo([1, 0], [(f.x - d.x) / i, (f.y - d.y) / n]), y = [(f.x - d.x) / i, (f.y - d.y) / n], x = [(-f.x - d.x) / i, (-f.y - d.y) / n], b = Oo(y, x);
|
3758
3831
|
return xi(y, x) <= -1 && (b = Math.PI), xi(y, x) >= 1 && (b = 0), {
|
3759
3832
|
currentPoint: h,
|
3760
3833
|
rX: i,
|
@@ -3781,7 +3854,7 @@ class A extends Ge {
|
|
3781
3854
|
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), d = new V(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
|
3782
3855
|
if (r.addMarkerAngle(d, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
|
3783
3856
|
var g = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
|
3784
|
-
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, g, h, h + f,
|
3857
|
+
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, g, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
|
3785
3858
|
}
|
3786
3859
|
}
|
3787
3860
|
static pathZ(e) {
|
@@ -3791,7 +3864,7 @@ class A extends Ge {
|
|
3791
3864
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
3792
3865
|
}
|
3793
3866
|
}
|
3794
|
-
class
|
3867
|
+
class Sl extends A {
|
3795
3868
|
constructor(e, t, r) {
|
3796
3869
|
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();
|
3797
3870
|
}
|
@@ -3836,7 +3909,7 @@ class Ce extends Ge {
|
|
3836
3909
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
3837
3910
|
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") {
|
3838
3911
|
var h = e.glyphs[i];
|
3839
|
-
n = h instanceof
|
3912
|
+
n = h instanceof Sl ? h : h[l];
|
3840
3913
|
}
|
3841
3914
|
} else
|
3842
3915
|
n = e.glyphs[i];
|
@@ -3846,10 +3919,12 @@ class Ce extends Ge {
|
|
3846
3919
|
return "";
|
3847
3920
|
}
|
3848
3921
|
getTextFromNode(e) {
|
3849
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
3922
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = vt(
|
3923
|
+
// textNode.value
|
3924
|
+
// || textNode.text
|
3850
3925
|
t.textContent || ""
|
3851
3926
|
);
|
3852
|
-
return i === 0 && (o =
|
3927
|
+
return i === 0 && (o = Zb(o)), i === n && (o = Jb(o)), o;
|
3853
3928
|
}
|
3854
3929
|
renderChildren(e) {
|
3855
3930
|
if (this.type !== "text") {
|
@@ -3911,7 +3986,7 @@ class Ce extends Ge {
|
|
3911
3986
|
if (typeof n.measureText != "function")
|
3912
3987
|
return n;
|
3913
3988
|
e.save(), n.setContext(e, !0);
|
3914
|
-
var o = n.getAttribute("x"), s = n.getAttribute("y"), u = n.getAttribute("dx"), l = n.getAttribute("dy"), h = n.getStyle("font-family").getDefinition(), f =
|
3989
|
+
var o = n.getAttribute("x"), s = n.getAttribute("y"), u = n.getAttribute("dx"), l = n.getAttribute("dy"), h = n.getStyle("font-family").getDefinition(), f = !!h && h.isRTL;
|
3915
3990
|
i === 0 && (o.hasValue() || o.setValue(n.getInheritedAttribute("x")), s.hasValue() || s.setValue(n.getInheritedAttribute("y")), u.hasValue() || u.setValue(n.getInheritedAttribute("dx")), l.hasValue() || l.setValue(n.getInheritedAttribute("dy")));
|
3916
3991
|
var c = n.measureText(e);
|
3917
3992
|
return f && (t.x -= c), o.hasValue() ? (t.applyAnchoring(), n.x = o.getPixels("x"), u.hasValue() && (n.x += u.getPixels("x"))) : (u.hasValue() && (t.x += u.getPixels("x")), n.x = t.x), t.x = n.x, f || (t.x += c), s.hasValue() ? (n.y = s.getPixels("y"), l.hasValue() && (n.y += l.getPixels("y"))) : (l.hasValue() && (t.y += l.getPixels("y")), n.y = t.y), t.y = n.y, t.leafTexts.push(n), t.minX = Math.min(t.minX, n.x, n.x + c), t.maxX = Math.max(t.maxX, n.x, n.x + c), n.clearContext(e), e.restore(), n;
|
@@ -3962,6 +4037,12 @@ class Ce extends Ge {
|
|
3962
4037
|
} = e.measureText(t);
|
3963
4038
|
return this.clearContext(e), e.restore(), c;
|
3964
4039
|
}
|
4040
|
+
/**
|
4041
|
+
* Inherits positional attributes from {@link TextElement} parent(s). Attributes
|
4042
|
+
* are only inherited from a parent to its first child.
|
4043
|
+
* @param name - The attribute name.
|
4044
|
+
* @returns The attribute value or null.
|
4045
|
+
*/
|
3965
4046
|
getInheritedAttribute(e) {
|
3966
4047
|
for (var t = this; t instanceof Ce && t.isFirstChild(); ) {
|
3967
4048
|
var r = t.parent.getAttribute(e);
|
@@ -3972,20 +4053,20 @@ class Ce extends Ge {
|
|
3972
4053
|
return null;
|
3973
4054
|
}
|
3974
4055
|
}
|
3975
|
-
class
|
4056
|
+
class kr extends Ce {
|
3976
4057
|
constructor(e, t, r) {
|
3977
|
-
super(e, t, new.target ===
|
4058
|
+
super(e, t, new.target === kr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
3978
4059
|
}
|
3979
4060
|
getText() {
|
3980
4061
|
return this.text;
|
3981
4062
|
}
|
3982
4063
|
}
|
3983
|
-
class
|
4064
|
+
class w1 extends kr {
|
3984
4065
|
constructor() {
|
3985
4066
|
super(...arguments), this.type = "textNode";
|
3986
4067
|
}
|
3987
4068
|
}
|
3988
|
-
class
|
4069
|
+
class Mt extends Ge {
|
3989
4070
|
constructor() {
|
3990
4071
|
super(...arguments), this.type = "svg", this.root = !1;
|
3991
4072
|
}
|
@@ -4027,6 +4108,12 @@ class _t extends Ge {
|
|
4027
4108
|
clearContext(e) {
|
4028
4109
|
super.clearContext(e), this.document.screen.viewPort.removeCurrent();
|
4029
4110
|
}
|
4111
|
+
/**
|
4112
|
+
* Resize SVG to fit in given size.
|
4113
|
+
* @param width
|
4114
|
+
* @param height
|
4115
|
+
* @param preserveAspectRatio
|
4116
|
+
*/
|
4030
4117
|
resize(e) {
|
4031
4118
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, i = this.getAttribute("width", !0), n = this.getAttribute("height", !0), o = this.getAttribute("viewBox"), s = this.getAttribute("style"), u = i.getNumber(0), l = n.getNumber(0);
|
4032
4119
|
if (r)
|
@@ -4042,7 +4129,7 @@ class _t extends Ge {
|
|
4042
4129
|
}
|
4043
4130
|
}
|
4044
4131
|
}
|
4045
|
-
class
|
4132
|
+
class El extends A {
|
4046
4133
|
constructor() {
|
4047
4134
|
super(...arguments), this.type = "rect";
|
4048
4135
|
}
|
@@ -4058,7 +4145,7 @@ class Tl extends A {
|
|
4058
4145
|
return null;
|
4059
4146
|
}
|
4060
4147
|
}
|
4061
|
-
class
|
4148
|
+
class A1 extends A {
|
4062
4149
|
constructor() {
|
4063
4150
|
super(...arguments), this.type = "circle";
|
4064
4151
|
}
|
@@ -4070,7 +4157,7 @@ class T1 extends A {
|
|
4070
4157
|
return null;
|
4071
4158
|
}
|
4072
4159
|
}
|
4073
|
-
class
|
4160
|
+
class P1 extends A {
|
4074
4161
|
constructor() {
|
4075
4162
|
super(...arguments), this.type = "ellipse";
|
4076
4163
|
}
|
@@ -4082,7 +4169,7 @@ class O1 extends A {
|
|
4082
4169
|
return null;
|
4083
4170
|
}
|
4084
4171
|
}
|
4085
|
-
class
|
4172
|
+
class R1 extends A {
|
4086
4173
|
constructor() {
|
4087
4174
|
super(...arguments), this.type = "line";
|
4088
4175
|
}
|
@@ -4104,7 +4191,7 @@ class S1 extends A {
|
|
4104
4191
|
return [[e, r], [t, r]];
|
4105
4192
|
}
|
4106
4193
|
}
|
4107
|
-
class
|
4194
|
+
class $l extends A {
|
4108
4195
|
constructor(e, t, r) {
|
4109
4196
|
super(e, t, r), this.type = "polyline", this.points = [], this.points = V.parsePath(this.getAttribute("points").getString());
|
4110
4197
|
}
|
@@ -4132,7 +4219,7 @@ class Ol extends A {
|
|
4132
4219
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
4133
4220
|
}
|
4134
4221
|
}
|
4135
|
-
class
|
4222
|
+
class I1 extends $l {
|
4136
4223
|
constructor() {
|
4137
4224
|
super(...arguments), this.type = "polygon";
|
4138
4225
|
}
|
@@ -4144,12 +4231,12 @@ class E1 extends Ol {
|
|
4144
4231
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
4145
4232
|
}
|
4146
4233
|
}
|
4147
|
-
class
|
4234
|
+
class N1 extends I {
|
4148
4235
|
constructor() {
|
4149
4236
|
super(...arguments), this.type = "pattern";
|
4150
4237
|
}
|
4151
4238
|
createPattern(e, t, r) {
|
4152
|
-
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new
|
4239
|
+
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new Mt(this.document, null);
|
4153
4240
|
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;
|
4154
4241
|
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
4155
4242
|
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");
|
@@ -4160,30 +4247,30 @@ class $1 extends I {
|
|
4160
4247
|
return v;
|
4161
4248
|
}
|
4162
4249
|
}
|
4163
|
-
class
|
4250
|
+
class M1 extends I {
|
4164
4251
|
constructor() {
|
4165
4252
|
super(...arguments), this.type = "marker";
|
4166
4253
|
}
|
4167
4254
|
render(e, t, r) {
|
4168
|
-
if (
|
4255
|
+
if (t) {
|
4169
4256
|
var {
|
4170
4257
|
x: i,
|
4171
4258
|
y: n
|
4172
4259
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
4173
4260
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
4174
|
-
var u = new
|
4261
|
+
var u = new Mt(this.document, null);
|
4175
4262
|
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);
|
4176
4263
|
}
|
4177
4264
|
}
|
4178
4265
|
}
|
4179
|
-
class
|
4266
|
+
class _1 extends I {
|
4180
4267
|
constructor() {
|
4181
4268
|
super(...arguments), this.type = "defs";
|
4182
4269
|
}
|
4183
4270
|
render() {
|
4184
4271
|
}
|
4185
4272
|
}
|
4186
|
-
class
|
4273
|
+
class sn extends Ge {
|
4187
4274
|
constructor() {
|
4188
4275
|
super(...arguments), this.type = "g";
|
4189
4276
|
}
|
@@ -4194,7 +4281,7 @@ class nn extends Ge {
|
|
4194
4281
|
}), t;
|
4195
4282
|
}
|
4196
4283
|
}
|
4197
|
-
class
|
4284
|
+
class Cl extends I {
|
4198
4285
|
constructor(e, t, r) {
|
4199
4286
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
4200
4287
|
var {
|
@@ -4224,11 +4311,11 @@ class Sl extends I {
|
|
4224
4311
|
} = this, {
|
4225
4312
|
MAX_VIRTUAL_PIXELS: u,
|
4226
4313
|
viewPort: l
|
4227
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
4314
|
+
} = s.screen, [h] = l.viewPorts, f = new El(s, null);
|
4228
4315
|
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);
|
4229
|
-
var c = new
|
4316
|
+
var c = new sn(s, null);
|
4230
4317
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
4231
|
-
var v = new
|
4318
|
+
var v = new Mt(s, null);
|
4232
4319
|
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];
|
4233
4320
|
var d = s.createCanvas(h.width, h.height), g = d.getContext("2d");
|
4234
4321
|
return g.fillStyle = o, v.render(g), g.createPattern(d, "no-repeat");
|
@@ -4248,7 +4335,7 @@ class Sl extends I {
|
|
4248
4335
|
return t;
|
4249
4336
|
}
|
4250
4337
|
}
|
4251
|
-
class
|
4338
|
+
class D1 extends Cl {
|
4252
4339
|
constructor(e, t, r) {
|
4253
4340
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
4254
4341
|
}
|
@@ -4261,7 +4348,7 @@ class A1 extends Sl {
|
|
4261
4348
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
4262
4349
|
}
|
4263
4350
|
}
|
4264
|
-
class
|
4351
|
+
class V1 extends Cl {
|
4265
4352
|
constructor(e, t, r) {
|
4266
4353
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
4267
4354
|
}
|
@@ -4276,14 +4363,14 @@ class P1 extends Sl {
|
|
4276
4363
|
return e.createRadialGradient(s, u, h, n, o, l);
|
4277
4364
|
}
|
4278
4365
|
}
|
4279
|
-
class
|
4366
|
+
class L1 extends I {
|
4280
4367
|
constructor(e, t, r) {
|
4281
4368
|
super(e, t, r), this.type = "stop";
|
4282
4369
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
4283
4370
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
4284
4371
|
}
|
4285
4372
|
}
|
4286
|
-
class
|
4373
|
+
class on extends I {
|
4287
4374
|
constructor(e, t, r) {
|
4288
4375
|
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);
|
4289
4376
|
var i = this.getAttribute("values");
|
@@ -4344,7 +4431,7 @@ class sn extends I {
|
|
4344
4431
|
return r;
|
4345
4432
|
}
|
4346
4433
|
}
|
4347
|
-
class
|
4434
|
+
class k1 extends on {
|
4348
4435
|
constructor() {
|
4349
4436
|
super(...arguments), this.type = "animateColor";
|
4350
4437
|
}
|
@@ -4361,7 +4448,7 @@ class I1 extends sn {
|
|
4361
4448
|
return this.getAttribute("from").getColor();
|
4362
4449
|
}
|
4363
4450
|
}
|
4364
|
-
class
|
4451
|
+
class B1 extends on {
|
4365
4452
|
constructor() {
|
4366
4453
|
super(...arguments), this.type = "animateTransform";
|
4367
4454
|
}
|
@@ -4377,7 +4464,7 @@ class N1 extends sn {
|
|
4377
4464
|
return o;
|
4378
4465
|
}
|
4379
4466
|
}
|
4380
|
-
class
|
4467
|
+
class F1 extends I {
|
4381
4468
|
constructor(e, t, r) {
|
4382
4469
|
super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
4383
4470
|
var {
|
@@ -4406,17 +4493,17 @@ class M1 extends I {
|
|
4406
4493
|
render() {
|
4407
4494
|
}
|
4408
4495
|
}
|
4409
|
-
class
|
4496
|
+
class j1 extends I {
|
4410
4497
|
constructor(e, t, r) {
|
4411
4498
|
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();
|
4412
4499
|
}
|
4413
4500
|
}
|
4414
|
-
class
|
4501
|
+
class U1 extends A {
|
4415
4502
|
constructor() {
|
4416
4503
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
4417
4504
|
}
|
4418
4505
|
}
|
4419
|
-
class
|
4506
|
+
class z1 extends Ce {
|
4420
4507
|
constructor() {
|
4421
4508
|
super(...arguments), this.type = "tref";
|
4422
4509
|
}
|
@@ -4430,7 +4517,7 @@ class V1 extends Ce {
|
|
4430
4517
|
return "";
|
4431
4518
|
}
|
4432
4519
|
}
|
4433
|
-
class
|
4520
|
+
class G1 extends Ce {
|
4434
4521
|
constructor(e, t, r) {
|
4435
4522
|
super(e, t, r), this.type = "a";
|
4436
4523
|
var {
|
@@ -4453,7 +4540,7 @@ class L1 extends Ce {
|
|
4453
4540
|
} = t.screen, o = new S(t, "fontSize", J.parse(t.ctx.font).fontSize);
|
4454
4541
|
n.isWorking() && n.checkBoundingBox(this, new he(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
4455
4542
|
} else if (this.children.length > 0) {
|
4456
|
-
var s = new
|
4543
|
+
var s = new sn(this.document, null);
|
4457
4544
|
s.children = this.children, s.parent = this, s.render(e);
|
4458
4545
|
}
|
4459
4546
|
}
|
@@ -4468,7 +4555,7 @@ class L1 extends Ce {
|
|
4468
4555
|
e.canvas.style.cursor = "pointer";
|
4469
4556
|
}
|
4470
4557
|
}
|
4471
|
-
function
|
4558
|
+
function Ro(a, e) {
|
4472
4559
|
var t = Object.keys(a);
|
4473
4560
|
if (Object.getOwnPropertySymbols) {
|
4474
4561
|
var r = Object.getOwnPropertySymbols(a);
|
@@ -4478,18 +4565,18 @@ function Po(a, e) {
|
|
4478
4565
|
}
|
4479
4566
|
return t;
|
4480
4567
|
}
|
4481
|
-
function
|
4568
|
+
function ar(a) {
|
4482
4569
|
for (var e = 1; e < arguments.length; e++) {
|
4483
4570
|
var t = arguments[e] != null ? arguments[e] : {};
|
4484
|
-
e % 2 ?
|
4485
|
-
|
4486
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
4571
|
+
e % 2 ? Ro(Object(t), !0).forEach(function(r) {
|
4572
|
+
rn(a, r, t[r]);
|
4573
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ro(Object(t)).forEach(function(r) {
|
4487
4574
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
4488
4575
|
});
|
4489
4576
|
}
|
4490
4577
|
return a;
|
4491
4578
|
}
|
4492
|
-
class
|
4579
|
+
class H1 extends Ce {
|
4493
4580
|
constructor(e, t, r) {
|
4494
4581
|
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]]);
|
4495
4582
|
var i = this.getHrefAttribute().getDefinition();
|
@@ -4522,7 +4609,7 @@ class k1 extends Ce {
|
|
4522
4609
|
break;
|
4523
4610
|
case C.ARC: {
|
4524
4611
|
var [o, s, u, l, h, f, c, v] = n, d = u > l ? u : l, g = u > l ? 1 : u / l, p = u > l ? l / u : 1;
|
4525
|
-
e && (e.translate(o, s), e.rotate(c), e.scale(g, p), e.arc(0, 0, d, h, h + f,
|
4612
|
+
e && (e.translate(o, s), e.rotate(c), e.scale(g, p), e.arc(0, 0, d, h, h + f, !!(1 - v)), e.scale(1 / g, 1 / p), e.rotate(-c), e.translate(-o, -s));
|
4526
4613
|
break;
|
4527
4614
|
}
|
4528
4615
|
case C.CLOSE_PATH:
|
@@ -4559,10 +4646,10 @@ class k1 extends Ce {
|
|
4559
4646
|
}, p = v && d ? Math.atan2(d.y - v.y, d.x - v.x) : 0;
|
4560
4647
|
if (s) {
|
4561
4648
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
4562
|
-
g.p0 =
|
4649
|
+
g.p0 = ar(ar({}, v), {}, {
|
4563
4650
|
x: v.x + y,
|
4564
4651
|
y: v.y + x
|
4565
|
-
}), g.p1 =
|
4652
|
+
}), g.p1 = ar(ar({}, d), {}, {
|
4566
4653
|
x: d.x + y,
|
4567
4654
|
y: d.y + x
|
4568
4655
|
});
|
@@ -4582,6 +4669,9 @@ class k1 extends Ce {
|
|
4582
4669
|
var n = this.measureTargetText(e, i);
|
4583
4670
|
return r.set(i, n), n;
|
4584
4671
|
}
|
4672
|
+
// This method supposes what all custom fonts already loaded.
|
4673
|
+
// If some font will be loaded after this method call, <textPath> will not be rendered correctly.
|
4674
|
+
// You need to call this method manually to update glyphs cache.
|
4585
4675
|
setTextData(e) {
|
4586
4676
|
if (!this.glyphInfo) {
|
4587
4677
|
var t = this.getText(), r = t.split(""), i = t.split(" ").length - 1, n = this.parent.getAttribute("dx").split().map((T) => T.getPixels("x")), o = this.parent.getAttribute("dy").getPixels("y"), s = this.parent.getStyle("text-anchor").getString("start"), u = this.getStyle("letter-spacing"), l = this.parent.getStyle("letter-spacing"), h = 0;
|
@@ -4600,6 +4690,8 @@ class k1 extends Ce {
|
|
4600
4690
|
rotation: w
|
4601
4691
|
} = this.findSegmentToFitChar(e, s, p, y, i, b, o, T, $);
|
4602
4692
|
b = E, !(!O.p0 || !O.p1) && this.glyphInfo.push({
|
4693
|
+
// transposeX: midpoint.x,
|
4694
|
+
// transposeY: midpoint.y,
|
4603
4695
|
text: r[$],
|
4604
4696
|
p0: O.p0,
|
4605
4697
|
p1: O.p1,
|
@@ -4764,7 +4856,7 @@ class k1 extends Ce {
|
|
4764
4856
|
return 0;
|
4765
4857
|
}
|
4766
4858
|
getPointOnLine(e, t, r, i, n) {
|
4767
|
-
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 +
|
4859
|
+
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t + it), l = Math.sqrt(e * e / (1 + u * u));
|
4768
4860
|
i < t && (l *= -1);
|
4769
4861
|
var h = u * l, f = null;
|
4770
4862
|
if (i === t)
|
@@ -4772,14 +4864,14 @@ class k1 extends Ce {
|
|
4772
4864
|
x: o,
|
4773
4865
|
y: s + h
|
4774
4866
|
};
|
4775
|
-
else if ((s - r) / (o - t +
|
4867
|
+
else if ((s - r) / (o - t + it) === u)
|
4776
4868
|
f = {
|
4777
4869
|
x: o + l,
|
4778
4870
|
y: s + h
|
4779
4871
|
};
|
4780
4872
|
else {
|
4781
4873
|
var c = 0, v = 0, d = this.getLineLength(t, r, i, n);
|
4782
|
-
if (d <
|
4874
|
+
if (d < it)
|
4783
4875
|
return null;
|
4784
4876
|
var g = (o - t) * (i - t) + (s - r) * (n - r);
|
4785
4877
|
g /= d * d, c = t + g * (i - t), v = r + g * (n - r);
|
@@ -4835,14 +4927,14 @@ class k1 extends Ce {
|
|
4835
4927
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
4836
4928
|
}
|
4837
4929
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
4838
|
-
var h = u *
|
4930
|
+
var h = u * So(e) + o * Eo(e) + i * $o(e) + t * Co(e), f = l * So(e) + s * Eo(e) + n * $o(e) + r * Co(e);
|
4839
4931
|
return {
|
4840
4932
|
x: h,
|
4841
4933
|
y: f
|
4842
4934
|
};
|
4843
4935
|
}
|
4844
4936
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
4845
|
-
var u = o *
|
4937
|
+
var u = o * wo(e) + i * Ao(e) + t * Po(e), l = s * wo(e) + n * Ao(e) + r * Po(e);
|
4846
4938
|
return {
|
4847
4939
|
x: u,
|
4848
4940
|
y: l
|
@@ -4858,6 +4950,7 @@ class k1 extends Ce {
|
|
4858
4950
|
y: t + (l.x * u + l.y * s)
|
4859
4951
|
};
|
4860
4952
|
}
|
4953
|
+
// TODO need some optimisations. possibly build cache only for curved segments?
|
4861
4954
|
buildEquidistantCache(e, t) {
|
4862
4955
|
var r = this.getPathLength(), i = t || 0.25, n = e || r / 100;
|
4863
4956
|
if (!this.equidistantCache || this.equidistantCache.step !== n || this.equidistantCache.precision !== i) {
|
@@ -4883,12 +4976,12 @@ class k1 extends Ce {
|
|
4883
4976
|
return this.equidistantCache.points[i] || null;
|
4884
4977
|
}
|
4885
4978
|
}
|
4886
|
-
var
|
4887
|
-
class
|
4979
|
+
var Y1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
4980
|
+
class X1 extends Ge {
|
4888
4981
|
constructor(e, t, r) {
|
4889
4982
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
4890
4983
|
var i = this.getHrefAttribute().getString();
|
4891
|
-
if (
|
4984
|
+
if (i) {
|
4892
4985
|
var n = i.endsWith(".svg") || /^\s*data:image\/svg\+xml/i.test(i);
|
4893
4986
|
e.images.push(this), n ? this.loadSvg(i) : this.loadImage(i), this.isSvg = n;
|
4894
4987
|
}
|
@@ -4908,7 +5001,7 @@ class F1 extends Ge {
|
|
4908
5001
|
loadSvg(e) {
|
4909
5002
|
var t = this;
|
4910
5003
|
return xe(function* () {
|
4911
|
-
var r =
|
5004
|
+
var r = Y1.exec(e);
|
4912
5005
|
if (r) {
|
4913
5006
|
var i = r[5];
|
4914
5007
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
@@ -4960,14 +5053,14 @@ class F1 extends Ge {
|
|
4960
5053
|
return new he(e, t, e + r, t + i);
|
4961
5054
|
}
|
4962
5055
|
}
|
4963
|
-
class
|
5056
|
+
class W1 extends Ge {
|
4964
5057
|
constructor() {
|
4965
5058
|
super(...arguments), this.type = "symbol";
|
4966
5059
|
}
|
4967
5060
|
render(e) {
|
4968
5061
|
}
|
4969
5062
|
}
|
4970
|
-
class
|
5063
|
+
class q1 {
|
4971
5064
|
constructor(e) {
|
4972
5065
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
4973
5066
|
}
|
@@ -4989,29 +5082,30 @@ class U1 {
|
|
4989
5082
|
})();
|
4990
5083
|
}
|
4991
5084
|
}
|
4992
|
-
class
|
5085
|
+
class wl extends I {
|
4993
5086
|
constructor(e, t, r) {
|
4994
5087
|
super(e, t, r), this.type = "style";
|
4995
|
-
var i =
|
5088
|
+
var i = vt(
|
4996
5089
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
5090
|
+
// remove imports
|
4997
5091
|
), n = i.split("}");
|
4998
5092
|
n.forEach((o) => {
|
4999
5093
|
var s = o.trim();
|
5000
|
-
if (
|
5094
|
+
if (s) {
|
5001
5095
|
var u = s.split("{"), l = u[0].split(","), h = u[1].split(";");
|
5002
5096
|
l.forEach((f) => {
|
5003
5097
|
var c = f.trim();
|
5004
|
-
if (
|
5098
|
+
if (c) {
|
5005
5099
|
var v = e.styles[c] || {};
|
5006
5100
|
if (h.forEach((p) => {
|
5007
5101
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
5008
5102
|
x && b && (v[x] = new S(e, x, b));
|
5009
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
5103
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = h1(c), c === "@font-face") {
|
5010
5104
|
var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
|
5011
5105
|
g.forEach((p) => {
|
5012
5106
|
if (p.indexOf('format("svg")') > 0) {
|
5013
|
-
var y =
|
5014
|
-
y && new
|
5107
|
+
var y = ml(p);
|
5108
|
+
y && new q1(e).load(d, y);
|
5015
5109
|
}
|
5016
5110
|
});
|
5017
5111
|
}
|
@@ -5021,8 +5115,8 @@ class El extends I {
|
|
5021
5115
|
});
|
5022
5116
|
}
|
5023
5117
|
}
|
5024
|
-
|
5025
|
-
class
|
5118
|
+
wl.parseExternalUrl = ml;
|
5119
|
+
class Q1 extends Ge {
|
5026
5120
|
constructor() {
|
5027
5121
|
super(...arguments), this.type = "use";
|
5028
5122
|
}
|
@@ -5044,7 +5138,7 @@ class z1 extends Ge {
|
|
5044
5138
|
} = this;
|
5045
5139
|
if (r) {
|
5046
5140
|
var i = r;
|
5047
|
-
if (r.type === "symbol" && (i = new
|
5141
|
+
if (r.type === "symbol" && (i = new Mt(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") {
|
5048
5142
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
5049
5143
|
n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
|
5050
5144
|
}
|
@@ -5069,10 +5163,10 @@ class z1 extends Ge {
|
|
5069
5163
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
5070
5164
|
}
|
5071
5165
|
}
|
5072
|
-
function
|
5166
|
+
function ir(a, e, t, r, i, n) {
|
5073
5167
|
return a[t * r * 4 + e * 4 + n];
|
5074
5168
|
}
|
5075
|
-
function
|
5169
|
+
function nr(a, e, t, r, i, n, o) {
|
5076
5170
|
a[t * r * 4 + e * 4 + n] = o;
|
5077
5171
|
}
|
5078
5172
|
function F(a, e, t) {
|
@@ -5082,7 +5176,7 @@ function F(a, e, t) {
|
|
5082
5176
|
function me(a, e, t, r) {
|
5083
5177
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
5084
5178
|
}
|
5085
|
-
class
|
5179
|
+
class Al extends I {
|
5086
5180
|
constructor(e, t, r) {
|
5087
5181
|
super(e, t, r), this.type = "feColorMatrix";
|
5088
5182
|
var i = ie(this.getAttribute("values").getString());
|
@@ -5109,13 +5203,13 @@ class $l extends I {
|
|
5109
5203
|
matrix: s
|
5110
5204
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
5111
5205
|
for (var h = 0; h < i; h++) {
|
5112
|
-
var f =
|
5113
|
-
o && (g = 0, p = 0, y = 0, x *= d / 255),
|
5206
|
+
var f = ir(u.data, h, l, i, n, 0), c = ir(u.data, h, l, i, n, 1), v = ir(u.data, h, l, i, n, 2), d = ir(u.data, h, l, i, n, 3), g = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, d) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, d) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, d) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, d) + F(s, 19, 1);
|
5207
|
+
o && (g = 0, p = 0, y = 0, x *= d / 255), nr(u.data, h, l, i, n, 0, g), nr(u.data, h, l, i, n, 1, p), nr(u.data, h, l, i, n, 2, y), nr(u.data, h, l, i, n, 3, x);
|
5114
5208
|
}
|
5115
5209
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
5116
5210
|
}
|
5117
5211
|
}
|
5118
|
-
class
|
5212
|
+
class Br extends I {
|
5119
5213
|
constructor() {
|
5120
5214
|
super(...arguments), this.type = "mask";
|
5121
5215
|
}
|
@@ -5129,8 +5223,8 @@ class Fr extends I {
|
|
5129
5223
|
u.addBoundingBox(d.getBoundingBox(e));
|
5130
5224
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
5131
5225
|
}
|
5132
|
-
var l = this.removeStyles(t,
|
5133
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
5226
|
+
var l = this.removeStyles(t, Br.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
5227
|
+
r.screen.setDefaults(f), this.renderChildren(f), new Al(r, {
|
5134
5228
|
nodeType: 1,
|
5135
5229
|
childNodes: [],
|
5136
5230
|
attributes: [{
|
@@ -5147,10 +5241,10 @@ class Fr extends I {
|
|
5147
5241
|
render(e) {
|
5148
5242
|
}
|
5149
5243
|
}
|
5150
|
-
|
5151
|
-
var
|
5244
|
+
Br.ignoreStyles = ["mask", "transform", "clip-path"];
|
5245
|
+
var Io = () => {
|
5152
5246
|
};
|
5153
|
-
class
|
5247
|
+
class K1 extends I {
|
5154
5248
|
constructor() {
|
5155
5249
|
super(...arguments), this.type = "clipPath";
|
5156
5250
|
}
|
@@ -5161,7 +5255,7 @@ class G1 extends I {
|
|
5161
5255
|
beginPath: i,
|
5162
5256
|
closePath: n
|
5163
5257
|
} = e;
|
5164
|
-
r && (r.beginPath =
|
5258
|
+
r && (r.beginPath = Io, r.closePath = Io), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
5165
5259
|
if (!(typeof o.path > "u")) {
|
5166
5260
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
5167
5261
|
s || (s = Be.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
@@ -5171,7 +5265,7 @@ class G1 extends I {
|
|
5171
5265
|
render(e) {
|
5172
5266
|
}
|
5173
5267
|
}
|
5174
|
-
class
|
5268
|
+
class Fr extends I {
|
5175
5269
|
constructor() {
|
5176
5270
|
super(...arguments), this.type = "filter";
|
5177
5271
|
}
|
@@ -5180,7 +5274,7 @@ class jr extends I {
|
|
5180
5274
|
document: r,
|
5181
5275
|
children: i
|
5182
5276
|
} = this, n = t.getBoundingBox(e);
|
5183
|
-
if (
|
5277
|
+
if (n) {
|
5184
5278
|
var o = 0, s = 0;
|
5185
5279
|
i.forEach((y) => {
|
5186
5280
|
var x = y.extraFilterDistance || 0;
|
@@ -5188,7 +5282,7 @@ class jr extends I {
|
|
5188
5282
|
});
|
5189
5283
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
5190
5284
|
if (!(h < 1 || f < 1)) {
|
5191
|
-
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t,
|
5285
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, Fr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
|
5192
5286
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
5193
5287
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
5194
5288
|
}), e.drawImage(g, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, d);
|
@@ -5198,29 +5292,29 @@ class jr extends I {
|
|
5198
5292
|
render(e) {
|
5199
5293
|
}
|
5200
5294
|
}
|
5201
|
-
|
5202
|
-
class
|
5295
|
+
Fr.ignoreStyles = ["filter", "transform", "clip-path"];
|
5296
|
+
class Z1 extends I {
|
5203
5297
|
constructor(e, t, r) {
|
5204
5298
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
5205
5299
|
}
|
5206
5300
|
apply(e, t, r, i, n) {
|
5207
5301
|
}
|
5208
5302
|
}
|
5209
|
-
class
|
5303
|
+
class J1 extends I {
|
5210
5304
|
constructor() {
|
5211
5305
|
super(...arguments), this.type = "feMorphology";
|
5212
5306
|
}
|
5213
5307
|
apply(e, t, r, i, n) {
|
5214
5308
|
}
|
5215
5309
|
}
|
5216
|
-
class
|
5310
|
+
class e2 extends I {
|
5217
5311
|
constructor() {
|
5218
5312
|
super(...arguments), this.type = "feComposite";
|
5219
5313
|
}
|
5220
5314
|
apply(e, t, r, i, n) {
|
5221
5315
|
}
|
5222
5316
|
}
|
5223
|
-
class
|
5317
|
+
class t2 extends I {
|
5224
5318
|
constructor(e, t, r) {
|
5225
5319
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
5226
5320
|
}
|
@@ -5229,63 +5323,63 @@ class W1 extends I {
|
|
5229
5323
|
document: o,
|
5230
5324
|
blurRadius: s
|
5231
5325
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
5232
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
5326
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Wb(l, t, r, i, n, s), u && u.removeChild(l);
|
5233
5327
|
}
|
5234
5328
|
}
|
5235
|
-
class
|
5329
|
+
class r2 extends I {
|
5236
5330
|
constructor() {
|
5237
5331
|
super(...arguments), this.type = "title";
|
5238
5332
|
}
|
5239
5333
|
}
|
5240
|
-
class
|
5334
|
+
class a2 extends I {
|
5241
5335
|
constructor() {
|
5242
5336
|
super(...arguments), this.type = "desc";
|
5243
5337
|
}
|
5244
5338
|
}
|
5245
|
-
var
|
5246
|
-
svg:
|
5247
|
-
rect:
|
5248
|
-
circle:
|
5249
|
-
ellipse:
|
5250
|
-
line:
|
5251
|
-
polyline:
|
5252
|
-
polygon:
|
5339
|
+
var i2 = {
|
5340
|
+
svg: Mt,
|
5341
|
+
rect: El,
|
5342
|
+
circle: A1,
|
5343
|
+
ellipse: P1,
|
5344
|
+
line: R1,
|
5345
|
+
polyline: $l,
|
5346
|
+
polygon: I1,
|
5253
5347
|
path: A,
|
5254
|
-
pattern:
|
5255
|
-
marker:
|
5256
|
-
defs:
|
5257
|
-
linearGradient:
|
5258
|
-
radialGradient:
|
5259
|
-
stop:
|
5260
|
-
animate:
|
5261
|
-
animateColor:
|
5262
|
-
animateTransform:
|
5263
|
-
font:
|
5264
|
-
"font-face":
|
5265
|
-
"missing-glyph":
|
5266
|
-
glyph:
|
5348
|
+
pattern: N1,
|
5349
|
+
marker: M1,
|
5350
|
+
defs: _1,
|
5351
|
+
linearGradient: D1,
|
5352
|
+
radialGradient: V1,
|
5353
|
+
stop: L1,
|
5354
|
+
animate: on,
|
5355
|
+
animateColor: k1,
|
5356
|
+
animateTransform: B1,
|
5357
|
+
font: F1,
|
5358
|
+
"font-face": j1,
|
5359
|
+
"missing-glyph": U1,
|
5360
|
+
glyph: Sl,
|
5267
5361
|
text: Ce,
|
5268
|
-
tspan:
|
5269
|
-
tref:
|
5270
|
-
a:
|
5271
|
-
textPath:
|
5272
|
-
image:
|
5273
|
-
g:
|
5274
|
-
symbol:
|
5275
|
-
style:
|
5276
|
-
use:
|
5277
|
-
mask:
|
5278
|
-
clipPath:
|
5279
|
-
filter:
|
5280
|
-
feDropShadow:
|
5281
|
-
feMorphology:
|
5282
|
-
feComposite:
|
5283
|
-
feColorMatrix:
|
5284
|
-
feGaussianBlur:
|
5285
|
-
title:
|
5286
|
-
desc:
|
5362
|
+
tspan: kr,
|
5363
|
+
tref: z1,
|
5364
|
+
a: G1,
|
5365
|
+
textPath: H1,
|
5366
|
+
image: X1,
|
5367
|
+
g: sn,
|
5368
|
+
symbol: W1,
|
5369
|
+
style: wl,
|
5370
|
+
use: Q1,
|
5371
|
+
mask: Br,
|
5372
|
+
clipPath: K1,
|
5373
|
+
filter: Fr,
|
5374
|
+
feDropShadow: Z1,
|
5375
|
+
feMorphology: J1,
|
5376
|
+
feComposite: e2,
|
5377
|
+
feColorMatrix: Al,
|
5378
|
+
feGaussianBlur: t2,
|
5379
|
+
title: r2,
|
5380
|
+
desc: a2
|
5287
5381
|
};
|
5288
|
-
function
|
5382
|
+
function No(a, e) {
|
5289
5383
|
var t = Object.keys(a);
|
5290
5384
|
if (Object.getOwnPropertySymbols) {
|
5291
5385
|
var r = Object.getOwnPropertySymbols(a);
|
@@ -5295,22 +5389,22 @@ function Io(a, e) {
|
|
5295
5389
|
}
|
5296
5390
|
return t;
|
5297
5391
|
}
|
5298
|
-
function
|
5392
|
+
function n2(a) {
|
5299
5393
|
for (var e = 1; e < arguments.length; e++) {
|
5300
5394
|
var t = arguments[e] != null ? arguments[e] : {};
|
5301
|
-
e % 2 ?
|
5302
|
-
|
5303
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
5395
|
+
e % 2 ? No(Object(t), !0).forEach(function(r) {
|
5396
|
+
rn(a, r, t[r]);
|
5397
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : No(Object(t)).forEach(function(r) {
|
5304
5398
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
5305
5399
|
});
|
5306
5400
|
}
|
5307
5401
|
return a;
|
5308
5402
|
}
|
5309
|
-
function
|
5403
|
+
function s2(a, e) {
|
5310
5404
|
var t = document.createElement("canvas");
|
5311
5405
|
return t.width = a, t.height = e, t;
|
5312
5406
|
}
|
5313
|
-
function
|
5407
|
+
function o2(a) {
|
5314
5408
|
return Ti.apply(this, arguments);
|
5315
5409
|
}
|
5316
5410
|
function Ti() {
|
@@ -5381,21 +5475,21 @@ class Ee {
|
|
5381
5475
|
}
|
5382
5476
|
createElement(e) {
|
5383
5477
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = Ee.elementTypes[t];
|
5384
|
-
return typeof r < "u" ? new r(this, e) : new
|
5478
|
+
return typeof r < "u" ? new r(this, e) : new O1(this, e);
|
5385
5479
|
}
|
5386
5480
|
createTextNode(e) {
|
5387
|
-
return new
|
5481
|
+
return new w1(this, e);
|
5388
5482
|
}
|
5389
5483
|
setViewBox(e) {
|
5390
|
-
this.screen.setViewBox(
|
5484
|
+
this.screen.setViewBox(n2({
|
5391
5485
|
document: this
|
5392
5486
|
}, e));
|
5393
5487
|
}
|
5394
5488
|
}
|
5395
|
-
Ee.createCanvas =
|
5396
|
-
Ee.createImage =
|
5397
|
-
Ee.elementTypes =
|
5398
|
-
function
|
5489
|
+
Ee.createCanvas = s2;
|
5490
|
+
Ee.createImage = o2;
|
5491
|
+
Ee.elementTypes = i2;
|
5492
|
+
function Mo(a, e) {
|
5399
5493
|
var t = Object.keys(a);
|
5400
5494
|
if (Object.getOwnPropertySymbols) {
|
5401
5495
|
var r = Object.getOwnPropertySymbols(a);
|
@@ -5408,46 +5502,92 @@ function No(a, e) {
|
|
5408
5502
|
function De(a) {
|
5409
5503
|
for (var e = 1; e < arguments.length; e++) {
|
5410
5504
|
var t = arguments[e] != null ? arguments[e] : {};
|
5411
|
-
e % 2 ?
|
5412
|
-
|
5413
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
5505
|
+
e % 2 ? Mo(Object(t), !0).forEach(function(r) {
|
5506
|
+
rn(a, r, t[r]);
|
5507
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Mo(Object(t)).forEach(function(r) {
|
5414
5508
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
5415
5509
|
});
|
5416
5510
|
}
|
5417
5511
|
return a;
|
5418
5512
|
}
|
5419
|
-
class
|
5513
|
+
class xt {
|
5514
|
+
/**
|
5515
|
+
* Main constructor.
|
5516
|
+
* @param ctx - Rendering context.
|
5517
|
+
* @param svg - SVG Document.
|
5518
|
+
* @param options - Rendering options.
|
5519
|
+
*/
|
5420
5520
|
constructor(e, t) {
|
5421
5521
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5422
|
-
this.parser = new Ha(r), this.screen = new
|
5522
|
+
this.parser = new Ha(r), this.screen = new Lr(e, r), this.options = r;
|
5423
5523
|
var i = new Ee(this, r), n = i.createDocumentElement(t);
|
5424
5524
|
this.document = i, this.documentElement = n;
|
5425
5525
|
}
|
5526
|
+
/**
|
5527
|
+
* Create Canvg instance from SVG source string or URL.
|
5528
|
+
* @param ctx - Rendering context.
|
5529
|
+
* @param svg - SVG source string or URL.
|
5530
|
+
* @param options - Rendering options.
|
5531
|
+
* @returns Canvg instance.
|
5532
|
+
*/
|
5426
5533
|
static from(e, t) {
|
5427
5534
|
var r = arguments;
|
5428
5535
|
return xe(function* () {
|
5429
5536
|
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ha(i), o = yield n.parse(t);
|
5430
|
-
return new
|
5537
|
+
return new xt(e, o, i);
|
5431
5538
|
})();
|
5432
5539
|
}
|
5540
|
+
/**
|
5541
|
+
* Create Canvg instance from SVG source string.
|
5542
|
+
* @param ctx - Rendering context.
|
5543
|
+
* @param svg - SVG source string.
|
5544
|
+
* @param options - Rendering options.
|
5545
|
+
* @returns Canvg instance.
|
5546
|
+
*/
|
5433
5547
|
static fromString(e, t) {
|
5434
5548
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ha(r), n = i.parseFromString(t);
|
5435
|
-
return new
|
5436
|
-
}
|
5549
|
+
return new xt(e, n, r);
|
5550
|
+
}
|
5551
|
+
/**
|
5552
|
+
* Create new Canvg instance with inherited options.
|
5553
|
+
* @param ctx - Rendering context.
|
5554
|
+
* @param svg - SVG source string or URL.
|
5555
|
+
* @param options - Rendering options.
|
5556
|
+
* @returns Canvg instance.
|
5557
|
+
*/
|
5437
5558
|
fork(e, t) {
|
5438
5559
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5439
|
-
return
|
5440
|
-
}
|
5560
|
+
return xt.from(e, t, De(De({}, this.options), r));
|
5561
|
+
}
|
5562
|
+
/**
|
5563
|
+
* Create new Canvg instance with inherited options.
|
5564
|
+
* @param ctx - Rendering context.
|
5565
|
+
* @param svg - SVG source string.
|
5566
|
+
* @param options - Rendering options.
|
5567
|
+
* @returns Canvg instance.
|
5568
|
+
*/
|
5441
5569
|
forkString(e, t) {
|
5442
5570
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5443
|
-
return
|
5571
|
+
return xt.fromString(e, t, De(De({}, this.options), r));
|
5444
5572
|
}
|
5573
|
+
/**
|
5574
|
+
* Document is ready promise.
|
5575
|
+
* @returns Ready promise.
|
5576
|
+
*/
|
5445
5577
|
ready() {
|
5446
5578
|
return this.screen.ready();
|
5447
5579
|
}
|
5580
|
+
/**
|
5581
|
+
* Document is ready value.
|
5582
|
+
* @returns Is ready or not.
|
5583
|
+
*/
|
5448
5584
|
isReady() {
|
5449
5585
|
return this.screen.isReady();
|
5450
5586
|
}
|
5587
|
+
/**
|
5588
|
+
* Render only first frame, ignoring animations and mouse.
|
5589
|
+
* @param options - Rendering options.
|
5590
|
+
*/
|
5451
5591
|
render() {
|
5452
5592
|
var e = arguments, t = this;
|
5453
5593
|
return xe(function* () {
|
@@ -5459,6 +5599,10 @@ class Tt {
|
|
5459
5599
|
}, r)), yield t.ready(), t.stop();
|
5460
5600
|
})();
|
5461
5601
|
}
|
5602
|
+
/**
|
5603
|
+
* Start rendering.
|
5604
|
+
* @param options - Render options.
|
5605
|
+
*/
|
5462
5606
|
start() {
|
5463
5607
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, {
|
5464
5608
|
documentElement: t,
|
@@ -5469,99 +5613,108 @@ class Tt {
|
|
5469
5613
|
enableRedraw: !0
|
5470
5614
|
}, i), e));
|
5471
5615
|
}
|
5616
|
+
/**
|
5617
|
+
* Stop rendering.
|
5618
|
+
*/
|
5472
5619
|
stop() {
|
5473
5620
|
this.screen.stop();
|
5474
5621
|
}
|
5622
|
+
/**
|
5623
|
+
* Resize SVG to fit in given size.
|
5624
|
+
* @param width
|
5625
|
+
* @param height
|
5626
|
+
* @param preserveAspectRatio
|
5627
|
+
*/
|
5475
5628
|
resize(e) {
|
5476
5629
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
5477
5630
|
this.documentElement.resize(e, t, r);
|
5478
5631
|
}
|
5479
5632
|
}
|
5480
5633
|
export {
|
5481
|
-
|
5482
|
-
|
5483
|
-
|
5484
|
-
|
5634
|
+
G1 as AElement,
|
5635
|
+
k1 as AnimateColorElement,
|
5636
|
+
on as AnimateElement,
|
5637
|
+
B1 as AnimateTransformElement,
|
5485
5638
|
he as BoundingBox,
|
5486
|
-
|
5487
|
-
|
5488
|
-
|
5489
|
-
|
5490
|
-
|
5491
|
-
|
5492
|
-
|
5493
|
-
|
5494
|
-
|
5639
|
+
So as CB1,
|
5640
|
+
Eo as CB2,
|
5641
|
+
$o as CB3,
|
5642
|
+
Co as CB4,
|
5643
|
+
xt as Canvg,
|
5644
|
+
A1 as CircleElement,
|
5645
|
+
K1 as ClipPathElement,
|
5646
|
+
_1 as DefsElement,
|
5647
|
+
a2 as DescElement,
|
5495
5648
|
Ee as Document,
|
5496
5649
|
I as Element,
|
5497
|
-
|
5498
|
-
|
5499
|
-
|
5500
|
-
|
5501
|
-
|
5502
|
-
|
5503
|
-
|
5650
|
+
P1 as EllipseElement,
|
5651
|
+
Al as FeColorMatrixElement,
|
5652
|
+
e2 as FeCompositeElement,
|
5653
|
+
Z1 as FeDropShadowElement,
|
5654
|
+
t2 as FeGaussianBlurElement,
|
5655
|
+
J1 as FeMorphologyElement,
|
5656
|
+
Fr as FilterElement,
|
5504
5657
|
J as Font,
|
5505
|
-
|
5506
|
-
|
5507
|
-
|
5508
|
-
|
5509
|
-
|
5510
|
-
|
5511
|
-
|
5512
|
-
|
5513
|
-
|
5514
|
-
|
5515
|
-
|
5516
|
-
|
5517
|
-
|
5518
|
-
|
5658
|
+
F1 as FontElement,
|
5659
|
+
j1 as FontFaceElement,
|
5660
|
+
sn as GElement,
|
5661
|
+
Sl as GlyphElement,
|
5662
|
+
Cl as GradientElement,
|
5663
|
+
X1 as ImageElement,
|
5664
|
+
R1 as LineElement,
|
5665
|
+
D1 as LinearGradientElement,
|
5666
|
+
M1 as MarkerElement,
|
5667
|
+
Br as MaskElement,
|
5668
|
+
Tl as Matrix,
|
5669
|
+
U1 as MissingGlyphElement,
|
5670
|
+
f1 as Mouse,
|
5671
|
+
it as PSEUDO_ZERO,
|
5519
5672
|
Ha as Parser,
|
5520
5673
|
A as PathElement,
|
5521
5674
|
C as PathParser,
|
5522
|
-
|
5675
|
+
N1 as PatternElement,
|
5523
5676
|
V as Point,
|
5524
|
-
|
5525
|
-
|
5677
|
+
I1 as PolygonElement,
|
5678
|
+
$l as PolylineElement,
|
5526
5679
|
S as Property,
|
5527
|
-
|
5528
|
-
|
5529
|
-
|
5530
|
-
|
5531
|
-
|
5680
|
+
wo as QB1,
|
5681
|
+
Ao as QB2,
|
5682
|
+
Po as QB3,
|
5683
|
+
V1 as RadialGradientElement,
|
5684
|
+
El as RectElement,
|
5532
5685
|
Ge as RenderedElement,
|
5533
|
-
|
5534
|
-
|
5535
|
-
|
5536
|
-
|
5537
|
-
|
5538
|
-
|
5539
|
-
|
5540
|
-
|
5541
|
-
|
5542
|
-
|
5543
|
-
|
5544
|
-
|
5545
|
-
|
5686
|
+
p1 as Rotate,
|
5687
|
+
Mt as SVGElement,
|
5688
|
+
q1 as SVGFontLoader,
|
5689
|
+
y1 as Scale,
|
5690
|
+
Lr as Screen,
|
5691
|
+
Ol as Skew,
|
5692
|
+
m1 as SkewX,
|
5693
|
+
b1 as SkewY,
|
5694
|
+
L1 as StopElement,
|
5695
|
+
wl as StyleElement,
|
5696
|
+
W1 as SymbolElement,
|
5697
|
+
z1 as TRefElement,
|
5698
|
+
kr as TSpanElement,
|
5546
5699
|
Ce as TextElement,
|
5547
|
-
|
5548
|
-
|
5700
|
+
H1 as TextPathElement,
|
5701
|
+
r2 as TitleElement,
|
5549
5702
|
Be as Transform,
|
5550
|
-
|
5551
|
-
|
5552
|
-
|
5553
|
-
|
5554
|
-
|
5555
|
-
|
5556
|
-
|
5557
|
-
|
5558
|
-
|
5559
|
-
|
5560
|
-
|
5703
|
+
d1 as Translate,
|
5704
|
+
O1 as UnknownElement,
|
5705
|
+
Q1 as UseElement,
|
5706
|
+
v1 as ViewPort,
|
5707
|
+
vt as compressSpaces,
|
5708
|
+
xt as default,
|
5709
|
+
h1 as getSelectorSpecificity,
|
5710
|
+
t1 as normalizeAttributeName,
|
5711
|
+
r1 as normalizeColor,
|
5712
|
+
ml as parseExternalUrl,
|
5713
|
+
l2 as presets,
|
5561
5714
|
ie as toNumbers,
|
5562
|
-
|
5563
|
-
|
5564
|
-
|
5565
|
-
|
5715
|
+
Zb as trimLeft,
|
5716
|
+
Jb as trimRight,
|
5717
|
+
To as vectorMagnitude,
|
5718
|
+
Oo as vectorsAngle,
|
5566
5719
|
xi as vectorsRatio
|
5567
5720
|
};
|