@feedmepos/mf-transaction 0.0.5-beta → 0.0.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-qQeAwVLL.js +167825 -0
- package/dist/app.js +1 -1
- package/dist/{src → apps/mf-transaction/src}/App.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/Entry.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/api/role/index.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/api/team/index.d.ts +2 -2
- package/dist/{src → apps/mf-transaction/src}/api/timesheet/index.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/api/transaction/index.d.ts +5 -3
- package/dist/{src → apps/mf-transaction/src}/components/AppForm.vue.d.ts +5 -5
- package/dist/{src → apps/mf-transaction/src}/components/CheckboxInput.vue.d.ts +6 -6
- package/dist/apps/mf-transaction/src/components/FilterDialog.vue.d.ts +13 -0
- package/dist/{src → apps/mf-transaction/src}/components/Navigator.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/src/components/RestaurantSelector.vue.d.ts +6 -0
- package/dist/{src → apps/mf-transaction/src}/views/online/OnlineTransaction.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/views/online/PaymentTable.vue.d.ts +15 -6
- package/dist/{src → apps/mf-transaction/src}/views/online/SettlementTable.vue.d.ts +8 -8
- package/dist/{src → apps/mf-transaction/src}/views/online/detail/FmSettlement.vue.d.ts +6 -6
- package/dist/{src → apps/mf-transaction/src}/views/online/detail/RmsSettlement.vue.d.ts +3 -3
- package/dist/{src → apps/mf-transaction/src}/views/online/detail/SettlementDetail.vue.d.ts +2 -2
- package/dist/{src → apps/mf-transaction/src}/views/receipt/ExportReceipt.vue.d.ts +3 -3
- package/dist/{src → apps/mf-transaction/src}/views/receipt/Receipt.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/ReceiptDetail.vue.d.ts +4 -4
- package/dist/apps/mf-transaction/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/InfoBasic.vue.d.ts +20 -0
- package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/InfoRow.vue.d.ts +4 -4
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +14 -0
- package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/ReceiptSubItem.vue.d.ts +4 -4
- package/dist/apps/mf-transaction/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +14 -0
- package/dist/{src → apps/mf-transaction/src}/views/receipt/receipt.d.ts +5 -5
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -0
- package/dist/{index.es-JoRL4qNk.js → index.es-Dh44S0bc.js} +913 -913
- package/dist/packages/shared/src/api/index.d.ts +3 -0
- package/dist/packages/shared/src/api/public.d.ts +5 -0
- package/dist/packages/shared/src/components/button/ResponsiveFabButton.vue.d.ts +12 -0
- package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
- package/dist/packages/shared/src/components/form/FormLabel.vue.d.ts +33 -0
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +46 -0
- package/dist/packages/shared/src/components/form/RestaurantSelector.vue.d.ts +28 -0
- package/dist/packages/shared/src/components/form/RestaurantSelectorMultiple.vue.d.ts +22 -0
- package/dist/packages/shared/src/components/info/InfoBasic.vue.d.ts +20 -0
- package/dist/packages/shared/src/components/info/Summary.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +15 -0
- package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
- package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +21 -0
- package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +45 -0
- package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/HorizontalSplitter.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/PageLayout.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/map/GoogleMap.vue.d.ts +79 -0
- package/dist/packages/shared/src/components/menu/BottomSheetMenu.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +17 -0
- package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
- package/dist/packages/shared/src/components/types.d.ts +95 -0
- package/dist/packages/shared/src/composable/clipboard.d.ts +3 -0
- package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
- package/dist/packages/shared/src/composable/filterSelector.d.ts +12 -0
- package/dist/packages/shared/src/composable/loading.d.ts +29 -0
- package/dist/packages/shared/src/feature/featureMinVersion.d.ts +34 -0
- package/dist/packages/shared/src/helpers/actionButton.d.ts +8 -0
- package/dist/packages/shared/src/helpers/contextMenu.d.ts +13 -0
- package/dist/packages/shared/src/helpers/createComponent.d.ts +7 -0
- package/dist/packages/shared/src/helpers/createForm.d.ts +2 -0
- package/dist/packages/shared/src/helpers/iteration.d.ts +11 -0
- package/dist/packages/shared/src/helpers/map.d.ts +370 -0
- package/dist/packages/shared/src/helpers/object.d.ts +6 -0
- package/dist/packages/shared/src/helpers/rules.d.ts +1 -0
- package/dist/packages/shared/src/stores/app.d.ts +207 -0
- package/dist/packages/shared/src/types/types.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +5 -4
- package/dist/app-De8rdDAe.js +0 -144269
- package/dist/src/components/FilterDialog.vue.d.ts +0 -13
- package/dist/src/components/RestaurantSelector.vue.d.ts +0 -6
- package/dist/src/helpers/rule.d.ts +0 -29
- package/dist/src/stores/employee.d.ts +0 -539
- package/dist/src/stores/role.d.ts +0 -205
- package/dist/src/stores/timesheet.d.ts +0 -253
- package/dist/src/types/employee.d.ts +0 -29
- package/dist/src/types/permission.d.ts +0 -68
- package/dist/src/types/role.d.ts +0 -37
- package/dist/src/types/team.d.ts +0 -47
- package/dist/src/types/timesheet.d.ts +0 -16
- package/dist/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/info/InfoBasic.vue.d.ts +0 -20
- package/dist/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +0 -14
- package/dist/src/views/team/TeamMemberList.vue.d.ts +0 -2
- package/dist/src/views/team/components/AddMemberForm.vue.d.ts +0 -40
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -38
- package/dist/src/views/team/components/PortalUserSearcher.vue.d.ts +0 -40
- package/dist/src/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
- package/dist/src/views/team/components/TeamMemberConditionPermission.vue.d.ts +0 -50
- package/dist/src/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -836
- package/dist/src/views/team/components/TeamMemberRolePermission.vue.d.ts +0 -46
- package/dist/tsconfig.app.tsbuildinfo +0 -1
- /package/dist/{src → apps/mf-transaction/src}/api/bill/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/employee/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/inventory/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/payment/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/user/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/app.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/composables/dateRange.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/composables/message.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/component.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/createComponent.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/createForm.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/export.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/idToDate.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/iteration.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/random.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/string.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/time.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/utils.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/main.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/router/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/router/shared.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/types/restaurant.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/types/transaction.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/views/online/settlement.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/views/receipt/form.d.ts +0 -0
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
var
|
|
1
|
+
import { c as Qe, _ as za, g as ko } from "./app-qQeAwVLL.js";
|
|
2
|
+
var ht = function(a) {
|
|
3
3
|
return a && a.Math === Math && a;
|
|
4
4
|
}, k = (
|
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ht(typeof globalThis == "object" && globalThis) || ht(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
7
|
+
ht(typeof self == "object" && self) || ht(typeof Qe == "object" && Qe) || ht(typeof Qe == "object" && Qe) || // eslint-disable-next-line no-new-func -- fallback
|
|
8
8
|
/* @__PURE__ */ function() {
|
|
9
9
|
return this;
|
|
10
10
|
}() || Function("return this")()
|
|
11
|
-
), Ct = {},
|
|
11
|
+
), Ct = {}, V = function(a) {
|
|
12
12
|
try {
|
|
13
13
|
return !!a();
|
|
14
14
|
} catch {
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
17
|
-
}, Cl =
|
|
17
|
+
}, Cl = V, le = !Cl(function() {
|
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
|
19
19
|
return 7;
|
|
20
20
|
} })[1] !== 7;
|
|
21
|
-
}), wl =
|
|
21
|
+
}), wl = V, br = !wl(function() {
|
|
22
22
|
var a = (function() {
|
|
23
23
|
}).bind();
|
|
24
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
25
25
|
}), $l = br, Gt = Function.prototype.call, Y = $l ? Gt.bind(Gt) : function() {
|
|
26
26
|
return Gt.apply(Gt, arguments);
|
|
27
|
-
}, Do = {},
|
|
27
|
+
}, Do = {}, Vo = {}.propertyIsEnumerable, Lo = Object.getOwnPropertyDescriptor, Al = Lo && !Vo.call({ 1: 2 }, 1);
|
|
28
28
|
Do.f = Al ? function(e) {
|
|
29
|
-
var t =
|
|
29
|
+
var t = Lo(this, e);
|
|
30
30
|
return !!t && t.enumerable;
|
|
31
|
-
} :
|
|
32
|
-
var
|
|
31
|
+
} : Vo;
|
|
32
|
+
var Si = function(a, e) {
|
|
33
33
|
return {
|
|
34
34
|
enumerable: !(a & 1),
|
|
35
35
|
configurable: !(a & 2),
|
|
36
36
|
writable: !(a & 4),
|
|
37
37
|
value: e
|
|
38
38
|
};
|
|
39
|
-
}, jo = br,
|
|
39
|
+
}, jo = br, Bo = Function.prototype, Ya = Bo.call, Pl = jo && Bo.bind.bind(Ya, Ya), L = jo ? Pl : function(a) {
|
|
40
40
|
return function() {
|
|
41
41
|
return Ya.apply(a, arguments);
|
|
42
42
|
};
|
|
43
|
-
},
|
|
43
|
+
}, Fo = L, Rl = Fo({}.toString), Nl = Fo("".slice), je = function(a) {
|
|
44
44
|
return Nl(Rl(a), 8, -1);
|
|
45
|
-
}, Il =
|
|
46
|
-
return !
|
|
45
|
+
}, Il = L, Ml = V, kl = je, Qr = Object, Dl = Il("".split), Uo = Ml(function() {
|
|
46
|
+
return !Qr("z").propertyIsEnumerable(0);
|
|
47
47
|
}) ? function(a) {
|
|
48
|
-
return kl(a) === "String" ? Dl(a, "") :
|
|
49
|
-
} :
|
|
48
|
+
return kl(a) === "String" ? Dl(a, "") : Qr(a);
|
|
49
|
+
} : Qr, Be = function(a) {
|
|
50
50
|
return a == null;
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
51
|
+
}, Vl = Be, Ll = TypeError, ce = function(a) {
|
|
52
|
+
if (Vl(a)) throw new Ll("Can't call method on " + a);
|
|
53
53
|
return a;
|
|
54
|
-
}, jl =
|
|
55
|
-
return jl(
|
|
54
|
+
}, jl = Uo, Bl = ce, wt = function(a) {
|
|
55
|
+
return jl(Bl(a));
|
|
56
56
|
}, Zr = typeof document == "object" && document.all, j = typeof Zr > "u" && Zr !== void 0 ? function(a) {
|
|
57
57
|
return typeof a == "function" || a === Zr;
|
|
58
58
|
} : function(a) {
|
|
59
59
|
return typeof a == "function";
|
|
60
|
-
},
|
|
61
|
-
return typeof a == "object" ? a !== null :
|
|
62
|
-
}, Jr = k,
|
|
63
|
-
return
|
|
64
|
-
},
|
|
60
|
+
}, Fl = j, he = function(a) {
|
|
61
|
+
return typeof a == "object" ? a !== null : Fl(a);
|
|
62
|
+
}, Jr = k, Ul = j, Gl = function(a) {
|
|
63
|
+
return Ul(a) ? a : void 0;
|
|
64
|
+
}, Fe = function(a, e) {
|
|
65
65
|
return arguments.length < 2 ? Gl(Jr[a]) : Jr[a] && Jr[a][e];
|
|
66
|
-
},
|
|
66
|
+
}, Hl = L, _r = Hl({}.isPrototypeOf), zl = k, dn = zl.navigator, mn = dn && dn.userAgent, $t = mn ? String(mn) : "", Go = k, ea = $t, yn = Go.process, bn = Go.Deno, _n = yn && yn.versions || bn && bn.version, xn = _n && _n.v8, ue, fr;
|
|
67
67
|
xn && (ue = xn.split("."), fr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
|
68
68
|
!fr && ea && (ue = ea.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = ea.match(/Chrome\/(\d+)/), ue && (fr = +ue[1])));
|
|
69
|
-
var
|
|
69
|
+
var Ti = fr, Sn = Ti, Yl = V, Xl = k, Wl = Xl.String, Ho = !!Object.getOwnPropertySymbols && !Yl(function() {
|
|
70
70
|
var a = Symbol("symbol detection");
|
|
71
71
|
return !Wl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
72
|
-
!Symbol.sham &&
|
|
73
|
-
}), ql =
|
|
72
|
+
!Symbol.sham && Sn && Sn < 41;
|
|
73
|
+
}), ql = Ho, zo = ql && !Symbol.sham && typeof Symbol.iterator == "symbol", Kl = Fe, Ql = j, Zl = _r, Jl = zo, ec = Object, Yo = Jl ? function(a) {
|
|
74
74
|
return typeof a == "symbol";
|
|
75
75
|
} : function(a) {
|
|
76
|
-
var e =
|
|
77
|
-
return
|
|
78
|
-
},
|
|
76
|
+
var e = Kl("Symbol");
|
|
77
|
+
return Ql(e) && Zl(e.prototype, ec(a));
|
|
78
|
+
}, tc = String, xr = function(a) {
|
|
79
79
|
try {
|
|
80
|
-
return
|
|
80
|
+
return tc(a);
|
|
81
81
|
} catch {
|
|
82
82
|
return "Object";
|
|
83
83
|
}
|
|
84
|
-
},
|
|
85
|
-
if (
|
|
86
|
-
throw new
|
|
87
|
-
},
|
|
84
|
+
}, rc = j, ac = xr, ic = TypeError, xe = function(a) {
|
|
85
|
+
if (rc(a)) return a;
|
|
86
|
+
throw new ic(ac(a) + " is not a function");
|
|
87
|
+
}, nc = xe, sc = Be, ot = function(a, e) {
|
|
88
88
|
var t = a[e];
|
|
89
|
-
return
|
|
90
|
-
}, ta = Y, ra = j, aa =
|
|
89
|
+
return sc(t) ? void 0 : nc(t);
|
|
90
|
+
}, ta = Y, ra = j, aa = he, oc = TypeError, uc = function(a, e) {
|
|
91
91
|
var t, r;
|
|
92
92
|
if (e === "string" && ra(t = a.toString) && !aa(r = ta(t, a)) || ra(t = a.valueOf) && !aa(r = ta(t, a)) || e !== "string" && ra(t = a.toString) && !aa(r = ta(t, a))) return r;
|
|
93
|
-
throw new
|
|
94
|
-
}, Xo = { exports: {} },
|
|
93
|
+
throw new oc("Can't convert object to primitive value");
|
|
94
|
+
}, Xo = { exports: {} }, Tn = k, lc = Object.defineProperty, Ei = function(a, e) {
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
lc(Tn, a, { value: e, configurable: !0, writable: !0 });
|
|
97
97
|
} catch {
|
|
98
|
-
|
|
98
|
+
Tn[a] = e;
|
|
99
99
|
}
|
|
100
100
|
return e;
|
|
101
|
-
},
|
|
102
|
-
(
|
|
103
|
-
version: "3.38.
|
|
101
|
+
}, cc = k, hc = Ei, En = "__core-js_shared__", On = Xo.exports = cc[En] || hc(En, {});
|
|
102
|
+
(On.versions || (On.versions = [])).push({
|
|
103
|
+
version: "3.38.1",
|
|
104
104
|
mode: "global",
|
|
105
105
|
copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)",
|
|
106
|
-
license: "https://github.com/zloirock/core-js/blob/v3.38.
|
|
106
|
+
license: "https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",
|
|
107
107
|
source: "https://github.com/zloirock/core-js"
|
|
108
108
|
});
|
|
109
|
-
var
|
|
109
|
+
var Oi = Xo.exports, Cn = Oi, Ci = function(a, e) {
|
|
110
110
|
return Cn[a] || (Cn[a] = e || {});
|
|
111
|
-
},
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
117
|
-
},
|
|
118
|
-
return wn(ia, a) || (ia[a] =
|
|
119
|
-
},
|
|
111
|
+
}, vc = ce, fc = Object, Sr = function(a) {
|
|
112
|
+
return fc(vc(a));
|
|
113
|
+
}, pc = L, gc = Sr, dc = pc({}.hasOwnProperty), ve = Object.hasOwn || function(e, t) {
|
|
114
|
+
return dc(gc(e), t);
|
|
115
|
+
}, mc = L, yc = 0, bc = Math.random(), _c = mc(1 .toString), Wo = function(a) {
|
|
116
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + _c(++yc + bc, 36);
|
|
117
|
+
}, xc = k, Sc = Ci, wn = ve, Tc = Wo, Ec = Ho, Oc = zo, Ze = xc.Symbol, ia = Sc("wks"), Cc = Oc ? Ze.for || Ze : Ze && Ze.withoutSetter || Tc, H = function(a) {
|
|
118
|
+
return wn(ia, a) || (ia[a] = Ec && wn(Ze, a) ? Ze[a] : Cc("Symbol." + a)), ia[a];
|
|
119
|
+
}, wc = Y, $n = he, An = Yo, $c = ot, Ac = uc, Pc = H, Rc = TypeError, Nc = Pc("toPrimitive"), Ic = function(a, e) {
|
|
120
120
|
if (!$n(a) || An(a)) return a;
|
|
121
|
-
var t = $
|
|
121
|
+
var t = $c(a, Nc), r;
|
|
122
122
|
if (t) {
|
|
123
|
-
if (e === void 0 && (e = "default"), r =
|
|
124
|
-
throw new
|
|
125
|
-
}
|
|
126
|
-
return e === void 0 && (e = "number"),
|
|
127
|
-
},
|
|
128
|
-
var e =
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
return
|
|
132
|
-
},
|
|
133
|
-
return Object.defineProperty(
|
|
123
|
+
if (e === void 0 && (e = "default"), r = wc(t, a, e), !$n(r) || An(r)) return r;
|
|
124
|
+
throw new Rc("Can't convert object to primitive value");
|
|
125
|
+
}
|
|
126
|
+
return e === void 0 && (e = "number"), Ac(a, e);
|
|
127
|
+
}, Mc = Ic, kc = Yo, qo = function(a) {
|
|
128
|
+
var e = Mc(a, "string");
|
|
129
|
+
return kc(e) ? e : e + "";
|
|
130
|
+
}, Dc = k, Pn = he, Xa = Dc.document, Vc = Pn(Xa) && Pn(Xa.createElement), Tr = function(a) {
|
|
131
|
+
return Vc ? Xa.createElement(a) : {};
|
|
132
|
+
}, Lc = le, jc = V, Bc = Tr, Ko = !Lc && !jc(function() {
|
|
133
|
+
return Object.defineProperty(Bc("div"), "a", {
|
|
134
134
|
get: function() {
|
|
135
135
|
return 7;
|
|
136
136
|
}
|
|
137
137
|
}).a !== 7;
|
|
138
|
-
}),
|
|
139
|
-
Ct.f =
|
|
140
|
-
if (e =
|
|
138
|
+
}), Fc = le, Uc = Y, Gc = Do, Hc = Si, zc = wt, Yc = qo, Xc = ve, Wc = Ko, Rn = Object.getOwnPropertyDescriptor;
|
|
139
|
+
Ct.f = Fc ? Rn : function(e, t) {
|
|
140
|
+
if (e = zc(e), t = Yc(t), Wc) try {
|
|
141
141
|
return Rn(e, t);
|
|
142
142
|
} catch {
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
144
|
+
if (Xc(e, t)) return Hc(!Uc(Gc.f, e, t), e[t]);
|
|
145
145
|
};
|
|
146
|
-
var
|
|
146
|
+
var Se = {}, qc = le, Kc = V, Qo = qc && Kc(function() {
|
|
147
147
|
return Object.defineProperty(function() {
|
|
148
148
|
}, "prototype", {
|
|
149
149
|
value: 42,
|
|
150
150
|
writable: !1
|
|
151
151
|
}).prototype !== 42;
|
|
152
|
-
}),
|
|
153
|
-
if (
|
|
154
|
-
throw new
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
if (
|
|
158
|
-
var i =
|
|
152
|
+
}), Qc = he, Zc = String, Jc = TypeError, J = function(a) {
|
|
153
|
+
if (Qc(a)) return a;
|
|
154
|
+
throw new Jc(Zc(a) + " is not an object");
|
|
155
|
+
}, eh = le, th = Ko, rh = Qo, Ht = J, Nn = qo, ah = TypeError, na = Object.defineProperty, ih = Object.getOwnPropertyDescriptor, sa = "enumerable", oa = "configurable", ua = "writable";
|
|
156
|
+
Se.f = eh ? rh ? function(e, t, r) {
|
|
157
|
+
if (Ht(e), t = Nn(t), Ht(r), typeof e == "function" && t === "prototype" && "value" in r && ua in r && !r[ua]) {
|
|
158
|
+
var i = ih(e, t);
|
|
159
159
|
i && i[ua] && (e[t] = r.value, r = {
|
|
160
160
|
configurable: oa in r ? r[oa] : i[oa],
|
|
161
161
|
enumerable: sa in r ? r[sa] : i[sa],
|
|
@@ -164,91 +164,91 @@ Te.f = ec ? rc ? function(e, t, r) {
|
|
|
164
164
|
}
|
|
165
165
|
return na(e, t, r);
|
|
166
166
|
} : na : function(e, t, r) {
|
|
167
|
-
if (
|
|
167
|
+
if (Ht(e), t = Nn(t), Ht(r), th) try {
|
|
168
168
|
return na(e, t, r);
|
|
169
169
|
} catch {
|
|
170
170
|
}
|
|
171
|
-
if ("get" in r || "set" in r) throw new
|
|
171
|
+
if ("get" in r || "set" in r) throw new ah("Accessors not supported");
|
|
172
172
|
return "value" in r && (e[t] = r.value), e;
|
|
173
173
|
};
|
|
174
|
-
var
|
|
175
|
-
return
|
|
174
|
+
var nh = le, sh = Se, oh = Si, At = nh ? function(a, e, t) {
|
|
175
|
+
return sh.f(a, e, oh(1, t));
|
|
176
176
|
} : function(a, e, t) {
|
|
177
177
|
return a[e] = t, a;
|
|
178
|
-
}, Zo = { exports: {} }, Wa = le,
|
|
179
|
-
}).name === "something",
|
|
178
|
+
}, Zo = { exports: {} }, Wa = le, uh = ve, Jo = Function.prototype, lh = Wa && Object.getOwnPropertyDescriptor, wi = uh(Jo, "name"), ch = wi && (function() {
|
|
179
|
+
}).name === "something", hh = wi && (!Wa || Wa && lh(Jo, "name").configurable), Er = {
|
|
180
180
|
EXISTS: wi,
|
|
181
|
-
PROPER:
|
|
182
|
-
CONFIGURABLE:
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
return
|
|
181
|
+
PROPER: ch,
|
|
182
|
+
CONFIGURABLE: hh
|
|
183
|
+
}, vh = L, fh = j, qa = Oi, ph = vh(Function.toString);
|
|
184
|
+
fh(qa.inspectSource) || (qa.inspectSource = function(a) {
|
|
185
|
+
return ph(a);
|
|
186
186
|
});
|
|
187
|
-
var $i = qa.inspectSource,
|
|
188
|
-
return Mn[a] || (Mn[a] =
|
|
189
|
-
}, Pi = {},
|
|
190
|
-
return gr(a) ?
|
|
191
|
-
},
|
|
187
|
+
var $i = qa.inspectSource, gh = k, dh = j, In = gh.WeakMap, mh = dh(In) && /native code/.test(String(In)), yh = Ci, bh = Wo, Mn = yh("keys"), Ai = function(a) {
|
|
188
|
+
return Mn[a] || (Mn[a] = bh(a));
|
|
189
|
+
}, Pi = {}, _h = mh, eu = k, xh = he, Sh = At, la = ve, ca = Oi, Th = Ai, Eh = Pi, kn = "Object already initialized", Ka = eu.TypeError, Oh = eu.WeakMap, pr, Tt, gr, Ch = function(a) {
|
|
190
|
+
return gr(a) ? Tt(a) : pr(a, {});
|
|
191
|
+
}, wh = function(a) {
|
|
192
192
|
return function(e) {
|
|
193
193
|
var t;
|
|
194
|
-
if (!
|
|
195
|
-
throw new
|
|
194
|
+
if (!xh(e) || (t = Tt(e)).type !== a)
|
|
195
|
+
throw new Ka("Incompatible receiver, " + a + " required");
|
|
196
196
|
return t;
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
-
if (
|
|
200
|
-
var ge =
|
|
199
|
+
if (_h || ca.state) {
|
|
200
|
+
var ge = ca.state || (ca.state = new Oh());
|
|
201
201
|
ge.get = ge.get, ge.has = ge.has, ge.set = ge.set, pr = function(a, e) {
|
|
202
|
-
if (ge.has(a)) throw new
|
|
202
|
+
if (ge.has(a)) throw new Ka(kn);
|
|
203
203
|
return e.facade = a, ge.set(a, e), e;
|
|
204
|
-
},
|
|
204
|
+
}, Tt = function(a) {
|
|
205
205
|
return ge.get(a) || {};
|
|
206
206
|
}, gr = function(a) {
|
|
207
207
|
return ge.has(a);
|
|
208
208
|
};
|
|
209
209
|
} else {
|
|
210
|
-
var Ye =
|
|
211
|
-
|
|
212
|
-
if (la(a, Ye)) throw new
|
|
213
|
-
return e.facade = a,
|
|
214
|
-
},
|
|
210
|
+
var Ye = Th("state");
|
|
211
|
+
Eh[Ye] = !0, pr = function(a, e) {
|
|
212
|
+
if (la(a, Ye)) throw new Ka(kn);
|
|
213
|
+
return e.facade = a, Sh(a, Ye, e), e;
|
|
214
|
+
}, Tt = function(a) {
|
|
215
215
|
return la(a, Ye) ? a[Ye] : {};
|
|
216
216
|
}, gr = function(a) {
|
|
217
217
|
return la(a, Ye);
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
var
|
|
220
|
+
var Or = {
|
|
221
221
|
set: pr,
|
|
222
|
-
get:
|
|
222
|
+
get: Tt,
|
|
223
223
|
has: gr,
|
|
224
|
-
enforce:
|
|
225
|
-
getterFor:
|
|
226
|
-
}, Ri =
|
|
224
|
+
enforce: Ch,
|
|
225
|
+
getterFor: wh
|
|
226
|
+
}, Ri = L, $h = V, Ah = j, zt = ve, Qa = le, Ph = Er.CONFIGURABLE, Rh = $i, tu = Or, Nh = tu.enforce, Ih = tu.get, Dn = String, or = Object.defineProperty, Mh = Ri("".slice), kh = Ri("".replace), Dh = Ri([].join), Vh = Qa && !$h(function() {
|
|
227
227
|
return or(function() {
|
|
228
228
|
}, "length", { value: 8 }).length !== 8;
|
|
229
|
-
}),
|
|
230
|
-
|
|
229
|
+
}), Lh = String(String).split("String"), jh = Zo.exports = function(a, e, t) {
|
|
230
|
+
Mh(Dn(e), 0, 7) === "Symbol(" && (e = "[" + kh(Dn(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!zt(a, "name") || Ph && a.name !== e) && (Qa ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), Vh && t && zt(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
|
|
231
231
|
try {
|
|
232
|
-
t &&
|
|
232
|
+
t && zt(t, "constructor") && t.constructor ? Qa && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
233
233
|
} catch {
|
|
234
234
|
}
|
|
235
|
-
var r =
|
|
236
|
-
return
|
|
235
|
+
var r = Nh(a);
|
|
236
|
+
return zt(r, "source") || (r.source = Dh(Lh, typeof e == "string" ? e : "")), a;
|
|
237
237
|
};
|
|
238
|
-
Function.prototype.toString =
|
|
239
|
-
return
|
|
238
|
+
Function.prototype.toString = jh(function() {
|
|
239
|
+
return Ah(this) && Ih(this).source || Rh(this);
|
|
240
240
|
}, "toString");
|
|
241
|
-
var ru = Zo.exports,
|
|
241
|
+
var ru = Zo.exports, Bh = j, Fh = Se, Uh = ru, Gh = Ei, Ue = function(a, e, t, r) {
|
|
242
242
|
r || (r = {});
|
|
243
243
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
244
|
-
if (
|
|
245
|
-
i ? a[e] = t :
|
|
244
|
+
if (Bh(t) && Uh(t, n, r), r.global)
|
|
245
|
+
i ? a[e] = t : Gh(e, t);
|
|
246
246
|
else {
|
|
247
247
|
try {
|
|
248
248
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
249
249
|
} catch {
|
|
250
250
|
}
|
|
251
|
-
i ? a[e] = t :
|
|
251
|
+
i ? a[e] = t : Fh.f(a, e, {
|
|
252
252
|
value: t,
|
|
253
253
|
enumerable: !1,
|
|
254
254
|
configurable: !r.nonConfigurable,
|
|
@@ -256,21 +256,21 @@ var ru = Zo.exports, Uc = j, Bc = Te, Fc = ru, Gc = Oi, Fe = function(a, e, t, r
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
return a;
|
|
259
|
-
}, au = {},
|
|
259
|
+
}, au = {}, Hh = Math.ceil, zh = Math.floor, Yh = Math.trunc || function(e) {
|
|
260
260
|
var t = +e;
|
|
261
|
-
return (t > 0 ?
|
|
262
|
-
},
|
|
261
|
+
return (t > 0 ? zh : Hh)(t);
|
|
262
|
+
}, Xh = Yh, Cr = function(a) {
|
|
263
263
|
var e = +a;
|
|
264
|
-
return e !== e || e === 0 ? 0 :
|
|
265
|
-
},
|
|
266
|
-
var t =
|
|
267
|
-
return t < 0 ?
|
|
268
|
-
},
|
|
269
|
-
var e =
|
|
270
|
-
return e > 0 ?
|
|
264
|
+
return e !== e || e === 0 ? 0 : Xh(e);
|
|
265
|
+
}, Wh = Cr, qh = Math.max, Kh = Math.min, Qh = function(a, e) {
|
|
266
|
+
var t = Wh(a);
|
|
267
|
+
return t < 0 ? qh(t + e, 0) : Kh(t, e);
|
|
268
|
+
}, Zh = Cr, Jh = Math.min, ut = function(a) {
|
|
269
|
+
var e = Zh(a);
|
|
270
|
+
return e > 0 ? Jh(e, 9007199254740991) : 0;
|
|
271
271
|
}, ev = ut, Ni = function(a) {
|
|
272
272
|
return ev(a.length);
|
|
273
|
-
}, tv = wt, rv =
|
|
273
|
+
}, tv = wt, rv = Qh, av = Ni, Vn = function(a) {
|
|
274
274
|
return function(e, t, r) {
|
|
275
275
|
var i = tv(e), n = av(i);
|
|
276
276
|
if (n === 0) return !a && -1;
|
|
@@ -285,14 +285,14 @@ var ru = Zo.exports, Uc = j, Bc = Te, Fc = ru, Gc = Oi, Fe = function(a, e, t, r
|
|
|
285
285
|
}, iu = {
|
|
286
286
|
// `Array.prototype.includes` method
|
|
287
287
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
288
|
-
includes:
|
|
288
|
+
includes: Vn(!0),
|
|
289
289
|
// `Array.prototype.indexOf` method
|
|
290
290
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
291
|
-
indexOf:
|
|
292
|
-
}, iv =
|
|
291
|
+
indexOf: Vn(!1)
|
|
292
|
+
}, iv = L, ha = ve, nv = wt, sv = iu.indexOf, ov = Pi, Ln = iv([].push), nu = function(a, e) {
|
|
293
293
|
var t = nv(a), r = 0, i = [], n;
|
|
294
|
-
for (n in t) !
|
|
295
|
-
for (; e.length > r; )
|
|
294
|
+
for (n in t) !ha(ov, n) && ha(t, n) && Ln(i, n);
|
|
295
|
+
for (; e.length > r; ) ha(t, n = e[r++]) && (~sv(i, n) || Ln(i, n));
|
|
296
296
|
return i;
|
|
297
297
|
}, Ii = [
|
|
298
298
|
"constructor",
|
|
@@ -302,29 +302,29 @@ var ru = Zo.exports, Uc = j, Bc = Te, Fc = ru, Gc = Oi, Fe = function(a, e, t, r
|
|
|
302
302
|
"toLocaleString",
|
|
303
303
|
"toString",
|
|
304
304
|
"valueOf"
|
|
305
|
-
], uv = nu, lv = Ii,
|
|
305
|
+
], uv = nu, lv = Ii, cv = lv.concat("length", "prototype");
|
|
306
306
|
au.f = Object.getOwnPropertyNames || function(e) {
|
|
307
|
-
return uv(e,
|
|
307
|
+
return uv(e, cv);
|
|
308
308
|
};
|
|
309
309
|
var su = {};
|
|
310
310
|
su.f = Object.getOwnPropertySymbols;
|
|
311
|
-
var
|
|
311
|
+
var hv = Fe, vv = L, fv = au, pv = su, gv = J, dv = vv([].concat), mv = hv("Reflect", "ownKeys") || function(e) {
|
|
312
312
|
var t = fv.f(gv(e)), r = pv.f;
|
|
313
313
|
return r ? dv(t, r(e)) : t;
|
|
314
|
-
}, jn = ve, yv = mv, bv = Ct, _v =
|
|
314
|
+
}, jn = ve, yv = mv, bv = Ct, _v = Se, xv = function(a, e, t) {
|
|
315
315
|
for (var r = yv(e), i = _v.f, n = bv.f, o = 0; o < r.length; o++) {
|
|
316
316
|
var s = r[o];
|
|
317
317
|
!jn(a, s) && !(t && jn(t, s)) && i(a, s, n(e, s));
|
|
318
318
|
}
|
|
319
|
-
},
|
|
320
|
-
var t = Cv[
|
|
321
|
-
return t === $v ? !0 : t === wv ? !1 :
|
|
322
|
-
},
|
|
323
|
-
return String(a).replace(
|
|
324
|
-
}, Cv = Pt.data = {}, wv = Pt.NATIVE = "N", $v = Pt.POLYFILL = "P", ou = Pt, Yt = k, Av = Ct.f, Pv = At, Rv =
|
|
325
|
-
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l,
|
|
319
|
+
}, Sv = V, Tv = j, Ev = /#|\.prototype\./, Pt = function(a, e) {
|
|
320
|
+
var t = Cv[Ov(a)];
|
|
321
|
+
return t === $v ? !0 : t === wv ? !1 : Tv(e) ? Sv(e) : !!e;
|
|
322
|
+
}, Ov = Pt.normalize = function(a) {
|
|
323
|
+
return String(a).replace(Ev, ".").toLowerCase();
|
|
324
|
+
}, Cv = Pt.data = {}, wv = Pt.NATIVE = "N", $v = Pt.POLYFILL = "P", ou = Pt, Yt = k, Av = Ct.f, Pv = At, Rv = Ue, Nv = Ei, Iv = xv, Mv = ou, ee = function(a, e) {
|
|
325
|
+
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, c;
|
|
326
326
|
if (r ? o = Yt : i ? o = Yt[t] || Nv(t, {}) : o = Yt[t] && Yt[t].prototype, o) for (s in e) {
|
|
327
|
-
if (l = e[s], a.dontCallGetSet ? (
|
|
327
|
+
if (l = e[s], a.dontCallGetSet ? (c = Av(o, s), u = c && c.value) : u = o[s], n = Mv(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
328
328
|
if (typeof l == typeof u) continue;
|
|
329
329
|
Iv(l, u);
|
|
330
330
|
}
|
|
@@ -334,43 +334,43 @@ var cv = Be, vv = V, fv = au, pv = su, gv = J, dv = vv([].concat), mv = cv("Refl
|
|
|
334
334
|
return kv.slice(0, a.length) === a;
|
|
335
335
|
}, uu = function() {
|
|
336
336
|
return Xt("Bun/") ? "BUN" : Xt("Cloudflare-Workers") ? "CLOUDFLARE" : Xt("Deno/") ? "DENO" : Xt("Node.js/") ? "NODE" : vt.Bun && typeof Bun.version == "string" ? "BUN" : vt.Deno && typeof Deno.version == "object" ? "DENO" : Dv(vt.process) === "process" ? "NODE" : vt.window && vt.document ? "BROWSER" : "REST";
|
|
337
|
-
}(),
|
|
337
|
+
}(), Vv = uu, wr = Vv === "NODE", Lv = L, jv = xe, Bv = function(a, e, t) {
|
|
338
338
|
try {
|
|
339
|
-
return
|
|
339
|
+
return Lv(jv(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
|
-
},
|
|
343
|
-
return
|
|
344
|
-
}, Gv =
|
|
342
|
+
}, Fv = he, Uv = function(a) {
|
|
343
|
+
return Fv(a) || a === null;
|
|
344
|
+
}, Gv = Uv, Hv = String, zv = TypeError, Yv = function(a) {
|
|
345
345
|
if (Gv(a)) return a;
|
|
346
|
-
throw new
|
|
347
|
-
}, Xv =
|
|
346
|
+
throw new zv("Can't set " + Hv(a) + " as a prototype");
|
|
347
|
+
}, Xv = Bv, Wv = he, qv = ce, Kv = Yv, lu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
348
348
|
var a = !1, e = {}, t;
|
|
349
349
|
try {
|
|
350
350
|
t = Xv(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
351
351
|
} catch {
|
|
352
352
|
}
|
|
353
353
|
return function(i, n) {
|
|
354
|
-
return qv(i),
|
|
354
|
+
return qv(i), Kv(n), Wv(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
355
355
|
};
|
|
356
|
-
}() : void 0),
|
|
357
|
-
a && !t && (a = a.prototype), a && !Zv(a,
|
|
358
|
-
},
|
|
359
|
-
return t.get &&
|
|
360
|
-
}, rf =
|
|
356
|
+
}() : void 0), Qv = Se.f, Zv = ve, Jv = H, Bn = Jv("toStringTag"), $r = function(a, e, t) {
|
|
357
|
+
a && !t && (a = a.prototype), a && !Zv(a, Bn) && Qv(a, Bn, { configurable: !0, value: e });
|
|
358
|
+
}, Fn = ru, ef = Se, tf = function(a, e, t) {
|
|
359
|
+
return t.get && Fn(t.get, e, { getter: !0 }), t.set && Fn(t.set, e, { setter: !0 }), ef.f(a, e, t);
|
|
360
|
+
}, rf = Fe, af = tf, nf = H, sf = le, Un = nf("species"), of = function(a) {
|
|
361
361
|
var e = rf(a);
|
|
362
|
-
sf && e && !e[
|
|
362
|
+
sf && e && !e[Un] && af(e, Un, {
|
|
363
363
|
configurable: !0,
|
|
364
364
|
get: function() {
|
|
365
365
|
return this;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
}, uf = _r, lf = TypeError,
|
|
368
|
+
}, uf = _r, lf = TypeError, cf = function(a, e) {
|
|
369
369
|
if (uf(e, a)) return a;
|
|
370
370
|
throw new lf("Incorrect invocation");
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
var ff = String(
|
|
371
|
+
}, hf = H, vf = hf("toStringTag"), cu = {};
|
|
372
|
+
cu[vf] = "z";
|
|
373
|
+
var ff = String(cu) === "[object z]", pf = ff, gf = j, ur = je, df = H, mf = df("toStringTag"), yf = Object, bf = ur(/* @__PURE__ */ function() {
|
|
374
374
|
return arguments;
|
|
375
375
|
}()) === "Arguments", _f = function(a, e) {
|
|
376
376
|
try {
|
|
@@ -380,30 +380,30 @@ var ff = String(hu) === "[object z]", pf = ff, gf = j, ur = je, df = z, mf = df(
|
|
|
380
380
|
}, Mi = pf ? ur : function(a) {
|
|
381
381
|
var e, t, r;
|
|
382
382
|
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = _f(e = yf(a), mf)) == "string" ? t : bf ? ur(e) : (r = ur(e)) === "Object" && gf(e.callee) ? "Arguments" : r;
|
|
383
|
-
}, xf =
|
|
384
|
-
}, fu =
|
|
385
|
-
if (!
|
|
383
|
+
}, xf = L, Sf = V, hu = j, Tf = Mi, Ef = Fe, Of = $i, vu = function() {
|
|
384
|
+
}, fu = Ef("Reflect", "construct"), ki = /^\s*(?:class|function)\b/, Cf = xf(ki.exec), wf = !ki.test(vu), ft = function(e) {
|
|
385
|
+
if (!hu(e)) return !1;
|
|
386
386
|
try {
|
|
387
387
|
return fu(vu, [], e), !0;
|
|
388
388
|
} catch {
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
}, pu = function(e) {
|
|
392
|
-
if (!
|
|
393
|
-
switch (
|
|
392
|
+
if (!hu(e)) return !1;
|
|
393
|
+
switch (Tf(e)) {
|
|
394
394
|
case "AsyncFunction":
|
|
395
395
|
case "GeneratorFunction":
|
|
396
396
|
case "AsyncGeneratorFunction":
|
|
397
397
|
return !1;
|
|
398
398
|
}
|
|
399
399
|
try {
|
|
400
|
-
return wf || !!Cf(ki,
|
|
400
|
+
return wf || !!Cf(ki, Of(e));
|
|
401
401
|
} catch {
|
|
402
402
|
return !0;
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
405
|
pu.sham = !0;
|
|
406
|
-
var $f = !fu ||
|
|
406
|
+
var $f = !fu || Sf(function() {
|
|
407
407
|
var a;
|
|
408
408
|
return ft(ft.call) || !ft(Object) || !ft(function() {
|
|
409
409
|
a = !0;
|
|
@@ -411,37 +411,37 @@ var $f = !fu || Tf(function() {
|
|
|
411
411
|
}) ? pu : ft, Af = $f, Pf = xr, Rf = TypeError, Nf = function(a) {
|
|
412
412
|
if (Af(a)) return a;
|
|
413
413
|
throw new Rf(Pf(a) + " is not a constructor");
|
|
414
|
-
}, Gn = J, If = Nf, Mf =
|
|
414
|
+
}, Gn = J, If = Nf, Mf = Be, kf = H, Df = kf("species"), gu = function(a, e) {
|
|
415
415
|
var t = Gn(a).constructor, r;
|
|
416
416
|
return t === void 0 || Mf(r = Gn(t)[Df]) ? e : If(r);
|
|
417
|
-
},
|
|
418
|
-
return
|
|
419
|
-
}),
|
|
420
|
-
if (
|
|
421
|
-
}, Yn = Ar,
|
|
422
|
-
return
|
|
417
|
+
}, Vf = br, du = Function.prototype, Hn = du.apply, zn = du.call, mu = typeof Reflect == "object" && Reflect.apply || (Vf ? zn.bind(Hn) : function() {
|
|
418
|
+
return zn.apply(Hn, arguments);
|
|
419
|
+
}), Lf = je, jf = L, Ar = function(a) {
|
|
420
|
+
if (Lf(a) === "Function") return jf(a);
|
|
421
|
+
}, Yn = Ar, Bf = xe, Ff = br, Uf = Yn(Yn.bind), Di = function(a, e) {
|
|
422
|
+
return Bf(a), e === void 0 ? a : Ff ? Uf(a, e) : function() {
|
|
423
423
|
return a.apply(e, arguments);
|
|
424
424
|
};
|
|
425
|
-
}, Gf =
|
|
425
|
+
}, Gf = Fe, yu = Gf("document", "documentElement"), Hf = L, zf = Hf([].slice), Yf = TypeError, Xf = function(a, e) {
|
|
426
426
|
if (a < e) throw new Yf("Not enough arguments");
|
|
427
427
|
return a;
|
|
428
|
-
}, Wf = $t, bu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Wf), ae = k, qf = mu,
|
|
428
|
+
}, Wf = $t, bu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Wf), ae = k, qf = mu, Kf = Di, Xn = j, Qf = ve, _u = V, Wn = yu, Zf = zf, qn = Tr, Jf = Xf, ep = bu, tp = wr, Za = ae.setImmediate, Ja = ae.clearImmediate, rp = ae.process, va = ae.Dispatch, ap = ae.Function, Kn = ae.MessageChannel, ip = ae.String, fa = 0, xt = {}, Qn = "onreadystatechange", Et, Ne, pa, ga;
|
|
429
429
|
_u(function() {
|
|
430
|
-
|
|
430
|
+
Et = ae.location;
|
|
431
431
|
});
|
|
432
|
-
var
|
|
433
|
-
if (
|
|
432
|
+
var Vi = function(a) {
|
|
433
|
+
if (Qf(xt, a)) {
|
|
434
434
|
var e = xt[a];
|
|
435
435
|
delete xt[a], e();
|
|
436
436
|
}
|
|
437
437
|
}, da = function(a) {
|
|
438
438
|
return function() {
|
|
439
|
-
|
|
439
|
+
Vi(a);
|
|
440
440
|
};
|
|
441
441
|
}, Zn = function(a) {
|
|
442
|
-
|
|
442
|
+
Vi(a.data);
|
|
443
443
|
}, Jn = function(a) {
|
|
444
|
-
ae.postMessage(ip(a),
|
|
444
|
+
ae.postMessage(ip(a), Et.protocol + "//" + Et.host);
|
|
445
445
|
};
|
|
446
446
|
(!Za || !Ja) && (Za = function(e) {
|
|
447
447
|
Jf(arguments.length, 1);
|
|
@@ -455,9 +455,9 @@ var Li = function(a) {
|
|
|
455
455
|
rp.nextTick(da(a));
|
|
456
456
|
} : va && va.now ? Ne = function(a) {
|
|
457
457
|
va.now(da(a));
|
|
458
|
-
} :
|
|
459
|
-
Wn.appendChild(qn("script"))[
|
|
460
|
-
Wn.removeChild(this),
|
|
458
|
+
} : Kn && !ep ? (pa = new Kn(), ga = pa.port2, pa.port1.onmessage = Zn, Ne = Kf(ga.postMessage, ga)) : ae.addEventListener && Xn(ae.postMessage) && !ae.importScripts && Et && Et.protocol !== "file:" && !_u(Jn) ? (Ne = Jn, ae.addEventListener("message", Zn, !1)) : Qn in qn("script") ? Ne = function(a) {
|
|
459
|
+
Wn.appendChild(qn("script"))[Qn] = function() {
|
|
460
|
+
Wn.removeChild(this), Vi(a);
|
|
461
461
|
};
|
|
462
462
|
} : Ne = function(a) {
|
|
463
463
|
setTimeout(da(a), 0);
|
|
@@ -469,10 +469,10 @@ var xu = {
|
|
|
469
469
|
if (!np) return es[a];
|
|
470
470
|
var e = sp(es, a);
|
|
471
471
|
return e && e.value;
|
|
472
|
-
},
|
|
472
|
+
}, Su = function() {
|
|
473
473
|
this.head = null, this.tail = null;
|
|
474
474
|
};
|
|
475
|
-
|
|
475
|
+
Su.prototype = {
|
|
476
476
|
add: function(a) {
|
|
477
477
|
var e = { item: a, next: null }, t = this.tail;
|
|
478
478
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -485,27 +485,27 @@ Tu.prototype = {
|
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
|
-
var
|
|
488
|
+
var Tu = Su, up = $t, lp = /ipad|iphone|ipod/i.test(up) && typeof Pebble < "u", cp = $t, hp = /web0s(?!.*chrome)/i.test(cp), it = k, vp = op, ts = Di, ma = xu.set, fp = Tu, pp = bu, gp = lp, dp = hp, ya = wr, rs = it.MutationObserver || it.WebKitMutationObserver, as = it.document, is = it.process, Wt = it.Promise, ei = vp("queueMicrotask"), Xe, ba, _a, qt, ns;
|
|
489
489
|
if (!ei) {
|
|
490
|
-
var
|
|
490
|
+
var Kt = new fp(), Qt = function() {
|
|
491
491
|
var a, e;
|
|
492
|
-
for (ya && (a = is.domain) && a.exit(); e =
|
|
492
|
+
for (ya && (a = is.domain) && a.exit(); e = Kt.get(); ) try {
|
|
493
493
|
e();
|
|
494
494
|
} catch (t) {
|
|
495
|
-
throw
|
|
495
|
+
throw Kt.head && Xe(), t;
|
|
496
496
|
}
|
|
497
497
|
a && a.enter();
|
|
498
498
|
};
|
|
499
|
-
!pp && !ya && !dp && rs && as ? (ba = !0, _a = as.createTextNode(""), new rs(
|
|
499
|
+
!pp && !ya && !dp && rs && as ? (ba = !0, _a = as.createTextNode(""), new rs(Qt).observe(_a, { characterData: !0 }), Xe = function() {
|
|
500
500
|
_a.data = ba = !ba;
|
|
501
501
|
}) : !gp && Wt && Wt.resolve ? (qt = Wt.resolve(void 0), qt.constructor = Wt, ns = ts(qt.then, qt), Xe = function() {
|
|
502
|
-
ns(
|
|
502
|
+
ns(Qt);
|
|
503
503
|
}) : ya ? Xe = function() {
|
|
504
|
-
is.nextTick(
|
|
504
|
+
is.nextTick(Qt);
|
|
505
505
|
} : (ma = ts(ma, it), Xe = function() {
|
|
506
|
-
ma(
|
|
506
|
+
ma(Qt);
|
|
507
507
|
}), ei = function(a) {
|
|
508
|
-
|
|
508
|
+
Kt.head || Xe(), Kt.add(a);
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
var mp = ei, yp = function(a, e) {
|
|
@@ -513,32 +513,32 @@ var mp = ei, yp = function(a, e) {
|
|
|
513
513
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
514
514
|
} catch {
|
|
515
515
|
}
|
|
516
|
-
},
|
|
516
|
+
}, Li = function(a) {
|
|
517
517
|
try {
|
|
518
518
|
return { error: !1, value: a() };
|
|
519
519
|
} catch (e) {
|
|
520
520
|
return { error: !0, value: e };
|
|
521
521
|
}
|
|
522
|
-
}, bp = k, Pr = bp.Promise, _p = k,
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
-
var a =
|
|
522
|
+
}, bp = k, Pr = bp.Promise, _p = k, St = Pr, xp = j, Sp = ou, Tp = $i, Ep = H, ss = uu, xa = Ti;
|
|
523
|
+
St && St.prototype;
|
|
524
|
+
var Op = Ep("species"), ti = !1, Eu = xp(_p.PromiseRejectionEvent), Cp = Sp("Promise", function() {
|
|
525
|
+
var a = Tp(St), e = a !== String(St);
|
|
526
526
|
if (!e && xa === 66) return !0;
|
|
527
527
|
if (!xa || xa < 51 || !/native code/.test(a)) {
|
|
528
|
-
var t = new
|
|
528
|
+
var t = new St(function(n) {
|
|
529
529
|
n(1);
|
|
530
530
|
}), r = function(n) {
|
|
531
531
|
n(function() {
|
|
532
532
|
}, function() {
|
|
533
533
|
});
|
|
534
534
|
}, i = t.constructor = {};
|
|
535
|
-
if (i[
|
|
535
|
+
if (i[Op] = r, ti = t.then(function() {
|
|
536
536
|
}) instanceof r, !ti) return !0;
|
|
537
537
|
}
|
|
538
|
-
return !e && (ss === "BROWSER" || ss === "DENO") && !
|
|
538
|
+
return !e && (ss === "BROWSER" || ss === "DENO") && !Eu;
|
|
539
539
|
}), Rt = {
|
|
540
540
|
CONSTRUCTOR: Cp,
|
|
541
|
-
REJECTION_EVENT:
|
|
541
|
+
REJECTION_EVENT: Eu,
|
|
542
542
|
SUBCLASSING: ti
|
|
543
543
|
}, lt = {}, os = xe, wp = TypeError, $p = function(a) {
|
|
544
544
|
var e, t;
|
|
@@ -550,15 +550,15 @@ var Sp = Op("species"), ti = !1, Ou = xp(_p.PromiseRejectionEvent), Cp = Tp("Pro
|
|
|
550
550
|
lt.f = function(a) {
|
|
551
551
|
return new $p(a);
|
|
552
552
|
};
|
|
553
|
-
var Ap = ee, dr = wr, Ce = k, nt = Y, us =
|
|
553
|
+
var Ap = ee, dr = wr, Ce = k, nt = Y, us = Ue, ls = lu, Pp = $r, Rp = of, Np = xe, lr = j, Ip = he, Mp = cf, kp = gu, Ou = xu.set, ji = mp, Dp = yp, Vp = Li, Lp = Tu, Cu = Or, mr = Pr, Bi = Rt, wu = lt, Rr = "Promise", $u = Bi.CONSTRUCTOR, jp = Bi.REJECTION_EVENT, Bp = Bi.SUBCLASSING, Sa = Cu.getterFor(Rr), Fp = Cu.set, Ke = mr && mr.prototype, De = mr, Zt = Ke, Au = Ce.TypeError, ri = Ce.document, Fi = Ce.process, ai = wu.f, Up = ai, Gp = !!(ri && ri.createEvent && Ce.dispatchEvent), Pu = "unhandledrejection", Hp = "rejectionhandled", cs = 0, Ru = 1, zp = 2, Ui = 1, Nu = 2, Jt, hs, Yp, vs, Iu = function(a) {
|
|
554
554
|
var e;
|
|
555
555
|
return Ip(a) && lr(e = a.then) ? e : !1;
|
|
556
556
|
}, Mu = function(a, e) {
|
|
557
|
-
var t = e.value, r = e.state === Ru, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l,
|
|
557
|
+
var t = e.value, r = e.state === Ru, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, c;
|
|
558
558
|
try {
|
|
559
|
-
i ? (r || (e.rejection === Nu && Wp(e), e.rejection =
|
|
559
|
+
i ? (r || (e.rejection === Nu && Wp(e), e.rejection = Ui), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), c = !0)), u === a.promise ? o(new Au("Promise-chain cycle")) : (l = Iu(u)) ? nt(l, u, n, o) : n(u)) : o(t);
|
|
560
560
|
} catch (v) {
|
|
561
|
-
s && !
|
|
561
|
+
s && !c && s.exit(), o(v);
|
|
562
562
|
}
|
|
563
563
|
}, ku = function(a, e) {
|
|
564
564
|
a.notified || (a.notified = !0, ji(function() {
|
|
@@ -570,26 +570,26 @@ var Ap = ee, dr = wr, Ce = k, nt = Y, us = Fe, ls = lu, Pp = $r, Rp = of, Np = x
|
|
|
570
570
|
var r, i;
|
|
571
571
|
Gp ? (r = ri.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), Ce.dispatchEvent(r)) : r = { promise: e, reason: t }, !jp && (i = Ce["on" + a]) ? i(r) : a === Pu && Dp("Unhandled promise rejection", t);
|
|
572
572
|
}, Xp = function(a) {
|
|
573
|
-
nt(
|
|
573
|
+
nt(Ou, Ce, function() {
|
|
574
574
|
var e = a.facade, t = a.value, r = fs(a), i;
|
|
575
|
-
if (r && (i =
|
|
576
|
-
dr ?
|
|
577
|
-
}), a.rejection = dr || fs(a) ? Nu :
|
|
575
|
+
if (r && (i = Vp(function() {
|
|
576
|
+
dr ? Fi.emit("unhandledRejection", t, e) : Du(Pu, e, t);
|
|
577
|
+
}), a.rejection = dr || fs(a) ? Nu : Ui, i.error))
|
|
578
578
|
throw i.value;
|
|
579
579
|
});
|
|
580
580
|
}, fs = function(a) {
|
|
581
|
-
return a.rejection !==
|
|
581
|
+
return a.rejection !== Ui && !a.parent;
|
|
582
582
|
}, Wp = function(a) {
|
|
583
|
-
nt(
|
|
583
|
+
nt(Ou, Ce, function() {
|
|
584
584
|
var e = a.facade;
|
|
585
|
-
dr ?
|
|
585
|
+
dr ? Fi.emit("rejectionHandled", e) : Du(Hp, e, a.value);
|
|
586
586
|
});
|
|
587
587
|
}, Je = function(a, e, t) {
|
|
588
588
|
return function(r) {
|
|
589
589
|
a(e, r, t);
|
|
590
590
|
};
|
|
591
591
|
}, tt = function(a, e, t) {
|
|
592
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
592
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = zp, ku(a, !0));
|
|
593
593
|
}, ii = function(a, e, t) {
|
|
594
594
|
if (!a.done) {
|
|
595
595
|
a.done = !0, t && (a = t);
|
|
@@ -616,59 +616,59 @@ var Ap = ee, dr = wr, Ce = k, nt = Y, us = Fe, ls = lu, Pp = $r, Rp = of, Np = x
|
|
|
616
616
|
};
|
|
617
617
|
if ($u && (De = function(e) {
|
|
618
618
|
Mp(this, Zt), Np(e), nt(Jt, this);
|
|
619
|
-
var t =
|
|
619
|
+
var t = Sa(this);
|
|
620
620
|
try {
|
|
621
621
|
e(Je(ii, t), Je(tt, t));
|
|
622
622
|
} catch (r) {
|
|
623
623
|
tt(t, r);
|
|
624
624
|
}
|
|
625
625
|
}, Zt = De.prototype, Jt = function(e) {
|
|
626
|
-
|
|
626
|
+
Fp(this, {
|
|
627
627
|
type: Rr,
|
|
628
628
|
done: !1,
|
|
629
629
|
notified: !1,
|
|
630
630
|
parent: !1,
|
|
631
|
-
reactions: new
|
|
631
|
+
reactions: new Lp(),
|
|
632
632
|
rejection: !1,
|
|
633
|
-
state:
|
|
634
|
-
value:
|
|
633
|
+
state: cs,
|
|
634
|
+
value: null
|
|
635
635
|
});
|
|
636
636
|
}, Jt.prototype = us(Zt, "then", function(e, t) {
|
|
637
|
-
var r =
|
|
638
|
-
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = dr ?
|
|
637
|
+
var r = Sa(this), i = ai(kp(this, De));
|
|
638
|
+
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = dr ? Fi.domain : void 0, r.state === cs ? r.reactions.add(i) : ji(function() {
|
|
639
639
|
Mu(i, r);
|
|
640
640
|
}), i.promise;
|
|
641
|
-
}),
|
|
642
|
-
var a = new Jt(), e =
|
|
641
|
+
}), hs = function() {
|
|
642
|
+
var a = new Jt(), e = Sa(a);
|
|
643
643
|
this.promise = a, this.resolve = Je(ii, e), this.reject = Je(tt, e);
|
|
644
644
|
}, wu.f = ai = function(a) {
|
|
645
|
-
return a === De || a === Yp ? new
|
|
646
|
-
}, lr(mr) &&
|
|
647
|
-
vs =
|
|
645
|
+
return a === De || a === Yp ? new hs(a) : Up(a);
|
|
646
|
+
}, lr(mr) && Ke !== Object.prototype)) {
|
|
647
|
+
vs = Ke.then, Bp || us(Ke, "then", function(e, t) {
|
|
648
648
|
var r = this;
|
|
649
649
|
return new De(function(i, n) {
|
|
650
650
|
nt(vs, r, i, n);
|
|
651
651
|
}).then(e, t);
|
|
652
652
|
}, { unsafe: !0 });
|
|
653
653
|
try {
|
|
654
|
-
delete
|
|
654
|
+
delete Ke.constructor;
|
|
655
655
|
} catch {
|
|
656
656
|
}
|
|
657
|
-
ls && ls(
|
|
657
|
+
ls && ls(Ke, Zt);
|
|
658
658
|
}
|
|
659
659
|
Ap({ global: !0, constructor: !0, wrap: !0, forced: $u }, {
|
|
660
660
|
Promise: De
|
|
661
661
|
});
|
|
662
662
|
Pp(De, Rr, !1);
|
|
663
663
|
Rp(Rr);
|
|
664
|
-
var Nt = {}, qp =
|
|
665
|
-
return a !== void 0 && (
|
|
666
|
-
}, eg = Mi, ps = ot, tg =
|
|
664
|
+
var Nt = {}, qp = H, Kp = Nt, Qp = qp("iterator"), Zp = Array.prototype, Jp = function(a) {
|
|
665
|
+
return a !== void 0 && (Kp.Array === a || Zp[Qp] === a);
|
|
666
|
+
}, eg = Mi, ps = ot, tg = Be, rg = Nt, ag = H, ig = ag("iterator"), Vu = function(a) {
|
|
667
667
|
if (!tg(a)) return ps(a, ig) || ps(a, "@@iterator") || rg[eg(a)];
|
|
668
|
-
}, ng = Y, sg = xe, og = J, ug = xr, lg =
|
|
668
|
+
}, ng = Y, sg = xe, og = J, ug = xr, lg = Vu, cg = TypeError, hg = function(a, e) {
|
|
669
669
|
var t = arguments.length < 2 ? lg(a) : e;
|
|
670
670
|
if (sg(t)) return og(ng(t, a));
|
|
671
|
-
throw new
|
|
671
|
+
throw new cg(ug(a) + " is not iterable");
|
|
672
672
|
}, vg = Y, gs = J, fg = ot, pg = function(a, e, t) {
|
|
673
673
|
var r, i;
|
|
674
674
|
gs(a);
|
|
@@ -684,11 +684,11 @@ var Nt = {}, qp = z, Qp = Nt, Kp = qp("iterator"), Zp = Array.prototype, Jp = fu
|
|
|
684
684
|
if (e === "throw") throw t;
|
|
685
685
|
if (i) throw r;
|
|
686
686
|
return gs(r), t;
|
|
687
|
-
}, gg = Di, dg = Y, mg = J, yg = xr, bg = Jp, _g = Ni, ds = _r, xg =
|
|
687
|
+
}, gg = Di, dg = Y, mg = J, yg = xr, bg = Jp, _g = Ni, ds = _r, xg = hg, Sg = Vu, ms = pg, Tg = TypeError, cr = function(a, e) {
|
|
688
688
|
this.stopped = a, this.result = e;
|
|
689
|
-
}, ys =
|
|
690
|
-
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 = gg(e, r), l,
|
|
691
|
-
return l && ms(l, "normal", _), new
|
|
689
|
+
}, ys = cr.prototype, Lu = function(a, e, t) {
|
|
690
|
+
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 = gg(e, r), l, c, v, f, h, g, p, d = function(_) {
|
|
691
|
+
return l && ms(l, "normal", _), new cr(!0, _);
|
|
692
692
|
}, m = function(_) {
|
|
693
693
|
return i ? (mg(_), s ? u(_[0], _[1], d) : u(_[0], _[1])) : s ? u(_, d) : u(_);
|
|
694
694
|
};
|
|
@@ -697,31 +697,31 @@ var Nt = {}, qp = z, Qp = Nt, Kp = qp("iterator"), Zp = Array.prototype, Jp = fu
|
|
|
697
697
|
else if (o)
|
|
698
698
|
l = a;
|
|
699
699
|
else {
|
|
700
|
-
if (
|
|
701
|
-
if (bg(
|
|
700
|
+
if (c = Sg(a), !c) throw new Tg(yg(a) + " is not iterable");
|
|
701
|
+
if (bg(c)) {
|
|
702
702
|
for (v = 0, f = _g(a); f > v; v++)
|
|
703
|
-
if (
|
|
704
|
-
return new
|
|
703
|
+
if (h = m(a[v]), h && ds(ys, h)) return h;
|
|
704
|
+
return new cr(!1);
|
|
705
705
|
}
|
|
706
|
-
l = xg(a,
|
|
706
|
+
l = xg(a, c);
|
|
707
707
|
}
|
|
708
708
|
for (g = n ? a.next : l.next; !(p = dg(g, l)).done; ) {
|
|
709
709
|
try {
|
|
710
|
-
|
|
710
|
+
h = m(p.value);
|
|
711
711
|
} catch (_) {
|
|
712
712
|
ms(l, "throw", _);
|
|
713
713
|
}
|
|
714
|
-
if (typeof
|
|
714
|
+
if (typeof h == "object" && h && ds(ys, h)) return h;
|
|
715
715
|
}
|
|
716
|
-
return new
|
|
717
|
-
},
|
|
716
|
+
return new cr(!1);
|
|
717
|
+
}, Eg = H, ju = Eg("iterator"), Bu = !1;
|
|
718
718
|
try {
|
|
719
|
-
var
|
|
719
|
+
var Og = 0, bs = {
|
|
720
720
|
next: function() {
|
|
721
|
-
return { done: !!
|
|
721
|
+
return { done: !!Og++ };
|
|
722
722
|
},
|
|
723
723
|
return: function() {
|
|
724
|
-
|
|
724
|
+
Bu = !0;
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
727
|
bs[ju] = function() {
|
|
@@ -733,7 +733,7 @@ try {
|
|
|
733
733
|
}
|
|
734
734
|
var Cg = function(a, e) {
|
|
735
735
|
try {
|
|
736
|
-
if (!e && !
|
|
736
|
+
if (!e && !Bu) return !1;
|
|
737
737
|
} catch {
|
|
738
738
|
return !1;
|
|
739
739
|
}
|
|
@@ -750,39 +750,39 @@ var Cg = function(a, e) {
|
|
|
750
750
|
} catch {
|
|
751
751
|
}
|
|
752
752
|
return t;
|
|
753
|
-
}, wg = Pr, $g = Cg, Ag = Rt.CONSTRUCTOR,
|
|
753
|
+
}, wg = Pr, $g = Cg, Ag = Rt.CONSTRUCTOR, Fu = Ag || !$g(function(a) {
|
|
754
754
|
wg.all(a).then(void 0, function() {
|
|
755
755
|
});
|
|
756
|
-
}), Pg = ee, Rg = Y, Ng = xe, Ig = lt, Mg =
|
|
756
|
+
}), Pg = ee, Rg = Y, Ng = xe, Ig = lt, Mg = Li, kg = Lu, Dg = Fu;
|
|
757
757
|
Pg({ target: "Promise", stat: !0, forced: Dg }, {
|
|
758
758
|
all: function(e) {
|
|
759
759
|
var t = this, r = Ig.f(t), i = r.resolve, n = r.reject, o = Mg(function() {
|
|
760
|
-
var s = Ng(t.resolve), u = [], l = 0,
|
|
760
|
+
var s = Ng(t.resolve), u = [], l = 0, c = 1;
|
|
761
761
|
kg(e, function(v) {
|
|
762
|
-
var f = l++,
|
|
763
|
-
|
|
764
|
-
|
|
762
|
+
var f = l++, h = !1;
|
|
763
|
+
c++, Rg(s, t, v).then(function(g) {
|
|
764
|
+
h || (h = !0, u[f] = g, --c || i(u));
|
|
765
765
|
}, n);
|
|
766
|
-
}), --
|
|
766
|
+
}), --c || i(u);
|
|
767
767
|
});
|
|
768
768
|
return o.error && n(o.value), r.promise;
|
|
769
769
|
}
|
|
770
770
|
});
|
|
771
|
-
var
|
|
772
|
-
|
|
771
|
+
var Vg = ee, Lg = Rt.CONSTRUCTOR, ni = Pr, jg = Fe, Bg = j, Fg = Ue, _s = ni && ni.prototype;
|
|
772
|
+
Vg({ target: "Promise", proto: !0, forced: Lg, real: !0 }, {
|
|
773
773
|
catch: function(a) {
|
|
774
774
|
return this.then(void 0, a);
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
|
-
if (
|
|
777
|
+
if (Bg(ni)) {
|
|
778
778
|
var xs = jg("Promise").prototype.catch;
|
|
779
|
-
_s.catch !== xs &&
|
|
779
|
+
_s.catch !== xs && Fg(_s, "catch", xs, { unsafe: !0 });
|
|
780
780
|
}
|
|
781
|
-
var
|
|
782
|
-
|
|
781
|
+
var Ug = ee, Gg = Y, Hg = xe, zg = lt, Yg = Li, Xg = Lu, Wg = Fu;
|
|
782
|
+
Ug({ target: "Promise", stat: !0, forced: Wg }, {
|
|
783
783
|
race: function(e) {
|
|
784
|
-
var t = this, r =
|
|
785
|
-
var o =
|
|
784
|
+
var t = this, r = zg.f(t), i = r.reject, n = Yg(function() {
|
|
785
|
+
var o = Hg(t.resolve);
|
|
786
786
|
Xg(e, function(s) {
|
|
787
787
|
Gg(o, t, s).then(r.resolve, i);
|
|
788
788
|
});
|
|
@@ -790,25 +790,25 @@ Fg({ target: "Promise", stat: !0, forced: Wg }, {
|
|
|
790
790
|
return n.error && i(n.value), r.promise;
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
|
-
var qg = ee,
|
|
794
|
-
qg({ target: "Promise", stat: !0, forced:
|
|
793
|
+
var qg = ee, Kg = lt, Qg = Rt.CONSTRUCTOR;
|
|
794
|
+
qg({ target: "Promise", stat: !0, forced: Qg }, {
|
|
795
795
|
reject: function(e) {
|
|
796
|
-
var t =
|
|
796
|
+
var t = Kg.f(this), r = t.reject;
|
|
797
797
|
return r(e), t.promise;
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
|
-
var Zg = J, Jg =
|
|
800
|
+
var Zg = J, Jg = he, ed = lt, td = function(a, e) {
|
|
801
801
|
if (Zg(a), Jg(e) && e.constructor === a) return e;
|
|
802
802
|
var t = ed.f(a), r = t.resolve;
|
|
803
803
|
return r(e), t.promise;
|
|
804
|
-
}, rd = ee, ad =
|
|
804
|
+
}, rd = ee, ad = Fe, id = Rt.CONSTRUCTOR, nd = td;
|
|
805
805
|
ad("Promise");
|
|
806
806
|
rd({ target: "Promise", stat: !0, forced: id }, {
|
|
807
807
|
resolve: function(e) {
|
|
808
808
|
return nd(this, e);
|
|
809
809
|
}
|
|
810
810
|
});
|
|
811
|
-
function
|
|
811
|
+
function Ss(a, e, t, r, i, n, o) {
|
|
812
812
|
try {
|
|
813
813
|
var s = a[n](o), u = s.value;
|
|
814
814
|
} catch (l) {
|
|
@@ -822,10 +822,10 @@ function _e(a) {
|
|
|
822
822
|
return new Promise(function(r, i) {
|
|
823
823
|
var n = a.apply(e, t);
|
|
824
824
|
function o(u) {
|
|
825
|
-
|
|
825
|
+
Ss(n, r, i, o, s, "next", u);
|
|
826
826
|
}
|
|
827
827
|
function s(u) {
|
|
828
|
-
|
|
828
|
+
Ss(n, r, i, o, s, "throw", u);
|
|
829
829
|
}
|
|
830
830
|
o(void 0);
|
|
831
831
|
});
|
|
@@ -834,104 +834,104 @@ function _e(a) {
|
|
|
834
834
|
var sd = Mi, od = String, de = function(a) {
|
|
835
835
|
if (sd(a) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
836
836
|
return od(a);
|
|
837
|
-
}, ud = J,
|
|
837
|
+
}, ud = J, Uu = function() {
|
|
838
838
|
var a = ud(this), e = "";
|
|
839
839
|
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;
|
|
840
|
-
}, Gi =
|
|
841
|
-
var a =
|
|
840
|
+
}, Gi = V, ld = k, Hi = ld.RegExp, zi = Gi(function() {
|
|
841
|
+
var a = Hi("a", "y");
|
|
842
842
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
843
|
-
}),
|
|
844
|
-
return !
|
|
845
|
-
}),
|
|
846
|
-
var a =
|
|
843
|
+
}), cd = zi || Gi(function() {
|
|
844
|
+
return !Hi("a", "y").sticky;
|
|
845
|
+
}), hd = zi || Gi(function() {
|
|
846
|
+
var a = Hi("^r", "gy");
|
|
847
847
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
848
848
|
}), Gu = {
|
|
849
|
-
BROKEN_CARET:
|
|
850
|
-
MISSED_STICKY:
|
|
851
|
-
UNSUPPORTED_Y:
|
|
852
|
-
},
|
|
849
|
+
BROKEN_CARET: hd,
|
|
850
|
+
MISSED_STICKY: cd,
|
|
851
|
+
UNSUPPORTED_Y: zi
|
|
852
|
+
}, Hu = {}, vd = nu, fd = Ii, pd = Object.keys || function(e) {
|
|
853
853
|
return vd(e, fd);
|
|
854
|
-
}, gd = le, dd =
|
|
855
|
-
|
|
854
|
+
}, gd = le, dd = Qo, md = Se, yd = J, bd = wt, _d = pd;
|
|
855
|
+
Hu.f = gd && !dd ? Object.defineProperties : function(e, t) {
|
|
856
856
|
yd(e);
|
|
857
857
|
for (var r = bd(t), i = _d(t), n = i.length, o = 0, s; n > o; ) md.f(e, s = i[o++], r[s]);
|
|
858
858
|
return e;
|
|
859
859
|
};
|
|
860
|
-
var xd = J,
|
|
860
|
+
var xd = J, Sd = Hu, Ts = Ii, Td = Pi, Ed = yu, Od = Tr, Cd = Ai, Es = ">", Os = "<", si = "prototype", oi = "script", zu = Cd("IE_PROTO"), Ta = function() {
|
|
861
861
|
}, Yu = function(a) {
|
|
862
|
-
return
|
|
862
|
+
return Os + oi + Es + a + Os + "/" + oi + Es;
|
|
863
863
|
}, Cs = function(a) {
|
|
864
864
|
a.write(Yu("")), a.close();
|
|
865
865
|
var e = a.parentWindow.Object;
|
|
866
866
|
return a = null, e;
|
|
867
867
|
}, wd = function() {
|
|
868
|
-
var a =
|
|
869
|
-
return a.style.display = "none",
|
|
870
|
-
}, er,
|
|
868
|
+
var a = Od("iframe"), e = "java" + oi + ":", t;
|
|
869
|
+
return a.style.display = "none", Ed.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Yu("document.F=Object")), t.close(), t.F;
|
|
870
|
+
}, er, hr = function() {
|
|
871
871
|
try {
|
|
872
872
|
er = new ActiveXObject("htmlfile");
|
|
873
873
|
} catch {
|
|
874
874
|
}
|
|
875
|
-
|
|
876
|
-
for (var a =
|
|
877
|
-
return
|
|
875
|
+
hr = typeof document < "u" ? document.domain && er ? Cs(er) : wd() : Cs(er);
|
|
876
|
+
for (var a = Ts.length; a--; ) delete hr[si][Ts[a]];
|
|
877
|
+
return hr();
|
|
878
878
|
};
|
|
879
|
-
|
|
879
|
+
Td[zu] = !0;
|
|
880
880
|
var Yi = Object.create || function(e, t) {
|
|
881
881
|
var r;
|
|
882
|
-
return e !== null ? (
|
|
883
|
-
}, $d =
|
|
882
|
+
return e !== null ? (Ta[si] = xd(e), r = new Ta(), Ta[si] = null, r[zu] = e) : r = hr(), t === void 0 ? r : Sd.f(r, t);
|
|
883
|
+
}, $d = V, Ad = k, Pd = Ad.RegExp, Rd = $d(function() {
|
|
884
884
|
var a = Pd(".", "s");
|
|
885
885
|
return !(a.dotAll && a.test(`
|
|
886
886
|
`) && a.flags === "s");
|
|
887
|
-
}), Nd =
|
|
887
|
+
}), Nd = V, Id = k, Md = Id.RegExp, kd = Nd(function() {
|
|
888
888
|
var a = Md("(?<a>b)", "g");
|
|
889
889
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
890
|
-
}), et = Y, Nr =
|
|
890
|
+
}), et = Y, Nr = L, Dd = de, Vd = Uu, Ld = Gu, jd = Ci, Bd = Yi, Fd = Or.get, Ud = Rd, Gd = kd, Hd = jd("native-string-replace", String.prototype.replace), yr = RegExp.prototype.exec, ui = yr, zd = Nr("".charAt), Yd = Nr("".indexOf), Xd = Nr("".replace), Ea = Nr("".slice), li = function() {
|
|
891
891
|
var a = /a/, e = /b*/g;
|
|
892
892
|
return et(yr, a, "a"), et(yr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
893
|
-
}(), Xu =
|
|
893
|
+
}(), Xu = Ld.BROKEN_CARET, ci = /()??/.exec("")[1] !== void 0, Wd = li || ci || Xu || Ud || Gd;
|
|
894
894
|
Wd && (ui = function(e) {
|
|
895
|
-
var t = this, r =
|
|
895
|
+
var t = this, r = Fd(t), i = Dd(e), n = r.raw, o, s, u, l, c, v, f;
|
|
896
896
|
if (n)
|
|
897
897
|
return n.lastIndex = t.lastIndex, o = et(ui, n, i), t.lastIndex = n.lastIndex, o;
|
|
898
|
-
var
|
|
899
|
-
if (g && (p = Xd(p, "y", ""), Yd(p, "g") === -1 && (p += "g"), _ =
|
|
900
|
-
`) && (d = "(?: " + d + ")", _ = " " + _, m++), s = new RegExp("^(?:" + d + ")", p)),
|
|
901
|
-
for (
|
|
902
|
-
arguments[
|
|
903
|
-
}), l &&
|
|
904
|
-
for (l.groups = v =
|
|
905
|
-
f = c
|
|
898
|
+
var h = r.groups, g = Xu && t.sticky, p = et(Vd, t), d = t.source, m = 0, _ = i;
|
|
899
|
+
if (g && (p = Xd(p, "y", ""), Yd(p, "g") === -1 && (p += "g"), _ = Ea(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && zd(i, t.lastIndex - 1) !== `
|
|
900
|
+
`) && (d = "(?: " + d + ")", _ = " " + _, m++), s = new RegExp("^(?:" + d + ")", p)), ci && (s = new RegExp("^" + d + "$(?!\\s)", p)), li && (u = t.lastIndex), l = et(yr, g ? s : t, _), g ? l ? (l.input = Ea(l.input, m), l[0] = Ea(l[0], m), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : li && l && (t.lastIndex = t.global ? l.index + l[0].length : u), ci && l && l.length > 1 && et(Hd, l[0], s, function() {
|
|
901
|
+
for (c = 1; c < arguments.length - 2; c++)
|
|
902
|
+
arguments[c] === void 0 && (l[c] = void 0);
|
|
903
|
+
}), l && h)
|
|
904
|
+
for (l.groups = v = Bd(null), c = 0; c < h.length; c++)
|
|
905
|
+
f = h[c], v[f[0]] = l[f[1]];
|
|
906
906
|
return l;
|
|
907
907
|
});
|
|
908
908
|
var Xi = ui, qd = ee, ws = Xi;
|
|
909
909
|
qd({ target: "RegExp", proto: !0, forced: /./.exec !== ws }, {
|
|
910
910
|
exec: ws
|
|
911
911
|
});
|
|
912
|
-
var $s = Y, As =
|
|
912
|
+
var $s = Y, As = Ue, Kd = Xi, Ps = V, Wu = H, Qd = At, Zd = Wu("species"), Oa = RegExp.prototype, Wi = function(a, e, t, r) {
|
|
913
913
|
var i = Wu(a), n = !Ps(function() {
|
|
914
914
|
var l = {};
|
|
915
915
|
return l[i] = function() {
|
|
916
916
|
return 7;
|
|
917
917
|
}, ""[a](l) !== 7;
|
|
918
918
|
}), o = n && !Ps(function() {
|
|
919
|
-
var l = !1,
|
|
920
|
-
return a === "split" && (
|
|
921
|
-
return
|
|
922
|
-
},
|
|
919
|
+
var l = !1, c = /a/;
|
|
920
|
+
return a === "split" && (c = {}, c.constructor = {}, c.constructor[Zd] = function() {
|
|
921
|
+
return c;
|
|
922
|
+
}, c.flags = "", c[i] = /./[i]), c.exec = function() {
|
|
923
923
|
return l = !0, null;
|
|
924
|
-
},
|
|
924
|
+
}, c[i](""), !l;
|
|
925
925
|
});
|
|
926
926
|
if (!n || !o || t) {
|
|
927
|
-
var s = /./[i], u = e(i, ""[a], function(l,
|
|
928
|
-
var g =
|
|
929
|
-
return g ===
|
|
927
|
+
var s = /./[i], u = e(i, ""[a], function(l, c, v, f, h) {
|
|
928
|
+
var g = c.exec;
|
|
929
|
+
return g === Kd || g === Oa.exec ? n && !h ? { done: !0, value: $s(s, c, v, f) } : { done: !0, value: $s(l, v, c, f) } : { done: !1 };
|
|
930
930
|
});
|
|
931
|
-
As(String.prototype, a, u[0]), As(
|
|
931
|
+
As(String.prototype, a, u[0]), As(Oa, i, u[1]);
|
|
932
932
|
}
|
|
933
|
-
r &&
|
|
934
|
-
}, qi =
|
|
933
|
+
r && Qd(Oa[i], "sham", !0);
|
|
934
|
+
}, qi = L, Jd = Cr, em = de, tm = ce, rm = qi("".charAt), Rs = qi("".charCodeAt), am = qi("".slice), Ns = function(a) {
|
|
935
935
|
return function(e, t) {
|
|
936
936
|
var r = em(tm(e)), i = Jd(t), n = r.length, o, s;
|
|
937
937
|
return i < 0 || i >= n ? a ? "" : void 0 : (o = Rs(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Rs(r, i + 1)) < 56320 || s > 57343 ? a ? rm(r, i) : o : a ? am(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
@@ -943,24 +943,24 @@ var $s = Y, As = Fe, Qd = Xi, Ps = L, Wu = z, Kd = At, Zd = Wu("species"), Sa =
|
|
|
943
943
|
// `String.prototype.at` method
|
|
944
944
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
945
945
|
charAt: Ns(!0)
|
|
946
|
-
}, nm = im.charAt,
|
|
946
|
+
}, nm = im.charAt, Ki = function(a, e, t) {
|
|
947
947
|
return e + (t ? nm(a, e).length : 1);
|
|
948
|
-
}, Is = Y, sm = J, om = j, um = je, lm = Xi,
|
|
948
|
+
}, Is = Y, sm = J, om = j, um = je, lm = Xi, cm = TypeError, Qi = function(a, e) {
|
|
949
949
|
var t = a.exec;
|
|
950
950
|
if (om(t)) {
|
|
951
951
|
var r = Is(t, a, e);
|
|
952
952
|
return r !== null && sm(r), r;
|
|
953
953
|
}
|
|
954
954
|
if (um(a) === "RegExp") return Is(lm, a, e);
|
|
955
|
-
throw new
|
|
956
|
-
},
|
|
955
|
+
throw new cm("RegExp#exec called on incompatible receiver");
|
|
956
|
+
}, hm = Y, vm = Wi, fm = J, pm = Be, gm = ut, Ca = de, dm = ce, mm = ot, ym = Ki, Ms = Qi;
|
|
957
957
|
vm("match", function(a, e, t) {
|
|
958
958
|
return [
|
|
959
959
|
// `String.prototype.match` method
|
|
960
960
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
961
961
|
function(i) {
|
|
962
962
|
var n = dm(this), o = pm(i) ? void 0 : mm(i, a);
|
|
963
|
-
return o ?
|
|
963
|
+
return o ? hm(o, i, n) : new RegExp(i)[a](Ca(n));
|
|
964
964
|
},
|
|
965
965
|
// `RegExp.prototype[@@match]` method
|
|
966
966
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
@@ -970,19 +970,19 @@ vm("match", function(a, e, t) {
|
|
|
970
970
|
if (!i.global) return Ms(i, n);
|
|
971
971
|
var s = i.unicode;
|
|
972
972
|
i.lastIndex = 0;
|
|
973
|
-
for (var u = [], l = 0,
|
|
974
|
-
var v = Ca(
|
|
973
|
+
for (var u = [], l = 0, c; (c = Ms(i, n)) !== null; ) {
|
|
974
|
+
var v = Ca(c[0]);
|
|
975
975
|
u[l] = v, v === "" && (i.lastIndex = ym(n, gm(i.lastIndex), s)), l++;
|
|
976
976
|
}
|
|
977
977
|
return l === 0 ? null : u;
|
|
978
978
|
}
|
|
979
979
|
];
|
|
980
980
|
});
|
|
981
|
-
var Zi =
|
|
982
|
-
var o = t + a.length, s = r.length, u =
|
|
983
|
-
return i !== void 0 && (i = bm(i), u =
|
|
981
|
+
var Zi = L, bm = Sr, _m = Math.floor, wa = Zi("".charAt), xm = Zi("".replace), $a = Zi("".slice), Sm = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Tm = /\$([$&'`]|\d{1,2})/g, Em = function(a, e, t, r, i, n) {
|
|
982
|
+
var o = t + a.length, s = r.length, u = Tm;
|
|
983
|
+
return i !== void 0 && (i = bm(i), u = Sm), xm(n, u, function(l, c) {
|
|
984
984
|
var v;
|
|
985
|
-
switch (wa(
|
|
985
|
+
switch (wa(c, 0)) {
|
|
986
986
|
case "$":
|
|
987
987
|
return "$";
|
|
988
988
|
case "&":
|
|
@@ -992,26 +992,26 @@ var Zi = V, bm = Tr, _m = Math.floor, wa = Zi("".charAt), xm = Zi("".replace), $
|
|
|
992
992
|
case "'":
|
|
993
993
|
return $a(e, o);
|
|
994
994
|
case "<":
|
|
995
|
-
v = i[$a(
|
|
995
|
+
v = i[$a(c, 1, -1)];
|
|
996
996
|
break;
|
|
997
997
|
default:
|
|
998
|
-
var f = +
|
|
998
|
+
var f = +c;
|
|
999
999
|
if (f === 0) return l;
|
|
1000
1000
|
if (f > s) {
|
|
1001
|
-
var
|
|
1002
|
-
return
|
|
1001
|
+
var h = _m(f / 10);
|
|
1002
|
+
return h === 0 ? l : h <= s ? r[h - 1] === void 0 ? wa(c, 1) : r[h - 1] + wa(c, 1) : l;
|
|
1003
1003
|
}
|
|
1004
1004
|
v = r[f - 1];
|
|
1005
1005
|
}
|
|
1006
1006
|
return v === void 0 ? "" : v;
|
|
1007
1007
|
});
|
|
1008
|
-
},
|
|
1008
|
+
}, Om = mu, ks = Y, Ir = L, Cm = Wi, wm = V, $m = J, Am = j, Pm = Be, Rm = Cr, Nm = ut, We = de, Im = ce, Mm = Ki, km = ot, Dm = Em, Vm = Qi, Lm = H, hi = Lm("replace"), jm = Math.max, Bm = Math.min, Fm = Ir([].concat), Aa = Ir([].push), Ds = Ir("".indexOf), Vs = Ir("".slice), Um = function(a) {
|
|
1009
1009
|
return a === void 0 ? a : String(a);
|
|
1010
1010
|
}, Gm = function() {
|
|
1011
1011
|
return "a".replace(/./, "$0") === "$0";
|
|
1012
|
-
}(),
|
|
1013
|
-
return /./[
|
|
1014
|
-
}(),
|
|
1012
|
+
}(), Ls = function() {
|
|
1013
|
+
return /./[hi] ? /./[hi]("a", "$0") === "" : !1;
|
|
1014
|
+
}(), Hm = !wm(function() {
|
|
1015
1015
|
var a = /./;
|
|
1016
1016
|
return a.exec = function() {
|
|
1017
1017
|
var e = [];
|
|
@@ -1019,12 +1019,12 @@ var Zi = V, bm = Tr, _m = Math.floor, wa = Zi("".charAt), xm = Zi("".replace), $
|
|
|
1019
1019
|
}, "".replace(a, "$<a>") !== "7";
|
|
1020
1020
|
});
|
|
1021
1021
|
Cm("replace", function(a, e, t) {
|
|
1022
|
-
var r =
|
|
1022
|
+
var r = Ls ? "$" : "$0";
|
|
1023
1023
|
return [
|
|
1024
1024
|
// `String.prototype.replace` method
|
|
1025
1025
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1026
1026
|
function(n, o) {
|
|
1027
|
-
var s = Im(this), u = Pm(n) ? void 0 : km(n,
|
|
1027
|
+
var s = Im(this), u = Pm(n) ? void 0 : km(n, hi);
|
|
1028
1028
|
return u ? ks(u, n, s, o) : ks(e, We(s), n, o);
|
|
1029
1029
|
},
|
|
1030
1030
|
// `RegExp.prototype[@@replace]` method
|
|
@@ -1037,35 +1037,35 @@ Cm("replace", function(a, e, t) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
var l = Am(n);
|
|
1039
1039
|
l || (n = We(n));
|
|
1040
|
-
var
|
|
1041
|
-
|
|
1042
|
-
for (var f = [],
|
|
1043
|
-
var g = We(
|
|
1040
|
+
var c = o.global, v;
|
|
1041
|
+
c && (v = o.unicode, o.lastIndex = 0);
|
|
1042
|
+
for (var f = [], h; h = Vm(o, s), !(h === null || (Aa(f, h), !c)); ) {
|
|
1043
|
+
var g = We(h[0]);
|
|
1044
1044
|
g === "" && (o.lastIndex = Mm(s, Nm(o.lastIndex), v));
|
|
1045
1045
|
}
|
|
1046
1046
|
for (var p = "", d = 0, m = 0; m < f.length; m++) {
|
|
1047
|
-
|
|
1048
|
-
for (var _ = We(
|
|
1049
|
-
var
|
|
1047
|
+
h = f[m];
|
|
1048
|
+
for (var _ = We(h[0]), b = jm(Bm(Rm(h.index), s.length), 0), x = [], O, E = 1; E < h.length; E++) Aa(x, Um(h[E]));
|
|
1049
|
+
var S = h.groups;
|
|
1050
1050
|
if (l) {
|
|
1051
|
-
var w =
|
|
1052
|
-
|
|
1051
|
+
var w = Fm([_], x, b, s);
|
|
1052
|
+
S !== void 0 && Aa(w, S), O = We(Om(n, void 0, w));
|
|
1053
1053
|
} else
|
|
1054
|
-
|
|
1055
|
-
b >= d && (p +=
|
|
1054
|
+
O = Dm(_, s, b, x, S, n);
|
|
1055
|
+
b >= d && (p += Vs(s, d, b) + O, d = b + _.length);
|
|
1056
1056
|
}
|
|
1057
|
-
return p +
|
|
1057
|
+
return p + Vs(s, d);
|
|
1058
1058
|
}
|
|
1059
1059
|
];
|
|
1060
|
-
}, !
|
|
1061
|
-
var
|
|
1060
|
+
}, !Hm || !Gm || Ls);
|
|
1061
|
+
var zm = he, Ym = je, Xm = H, Wm = Xm("match"), qm = function(a) {
|
|
1062
1062
|
var e;
|
|
1063
|
-
return
|
|
1064
|
-
},
|
|
1065
|
-
if (
|
|
1066
|
-
throw new
|
|
1063
|
+
return zm(a) && ((e = a[Wm]) !== void 0 ? !!e : Ym(a) === "RegExp");
|
|
1064
|
+
}, Km = qm, Qm = TypeError, Ji = function(a) {
|
|
1065
|
+
if (Km(a))
|
|
1066
|
+
throw new Qm("The method doesn't accept regular expressions");
|
|
1067
1067
|
return a;
|
|
1068
|
-
}, Zm =
|
|
1068
|
+
}, Zm = H, Jm = Zm("match"), en = function(a) {
|
|
1069
1069
|
var e = /./;
|
|
1070
1070
|
try {
|
|
1071
1071
|
"/./"[a](e);
|
|
@@ -1076,7 +1076,7 @@ var Hm = ce, Ym = je, Xm = z, Wm = Xm("match"), qm = function(a) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
return !1;
|
|
1079
|
-
}, ey = ee, ty = Ar, ry = Ct.f, ay = ut, js = de, iy = Ji, ny =
|
|
1079
|
+
}, ey = ee, ty = Ar, ry = Ct.f, ay = ut, js = de, iy = Ji, ny = ce, sy = en, oy = ty("".slice), uy = Math.min, qu = sy("startsWith"), ly = !qu && !!function() {
|
|
1080
1080
|
var a = ry(String.prototype, "startsWith");
|
|
1081
1081
|
return a && !a.writable;
|
|
1082
1082
|
}();
|
|
@@ -1088,49 +1088,49 @@ ey({ target: "String", proto: !0, forced: !ly && !qu }, {
|
|
|
1088
1088
|
return oy(t, r, r + i.length) === i;
|
|
1089
1089
|
}
|
|
1090
1090
|
});
|
|
1091
|
-
var
|
|
1091
|
+
var cy = H, hy = Yi, vy = Se.f, vi = cy("unscopables"), fi = Array.prototype;
|
|
1092
1092
|
fi[vi] === void 0 && vy(fi, vi, {
|
|
1093
1093
|
configurable: !0,
|
|
1094
|
-
value:
|
|
1094
|
+
value: hy(null)
|
|
1095
1095
|
});
|
|
1096
1096
|
var fy = function(a) {
|
|
1097
1097
|
fi[vi][a] = !0;
|
|
1098
|
-
}, py =
|
|
1098
|
+
}, py = V, gy = !py(function() {
|
|
1099
1099
|
function a() {
|
|
1100
1100
|
}
|
|
1101
1101
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1102
|
-
}), dy = ve, my = j, yy =
|
|
1102
|
+
}), dy = ve, my = j, yy = Sr, by = Ai, _y = gy, Bs = by("IE_PROTO"), pi = Object, xy = pi.prototype, Ku = _y ? pi.getPrototypeOf : function(a) {
|
|
1103
1103
|
var e = yy(a);
|
|
1104
|
-
if (dy(e,
|
|
1104
|
+
if (dy(e, Bs)) return e[Bs];
|
|
1105
1105
|
var t = e.constructor;
|
|
1106
1106
|
return my(t) && e instanceof t ? t.prototype : e instanceof pi ? xy : null;
|
|
1107
|
-
},
|
|
1108
|
-
[].keys && (Ra = [].keys(), "next" in Ra ? (Pa =
|
|
1109
|
-
var wy = !
|
|
1107
|
+
}, Sy = V, Ty = j, Ey = he, Fs = Ku, Oy = Ue, Cy = H, gi = Cy("iterator"), Qu = !1, Ve, Pa, Ra;
|
|
1108
|
+
[].keys && (Ra = [].keys(), "next" in Ra ? (Pa = Fs(Fs(Ra)), Pa !== Object.prototype && (Ve = Pa)) : Qu = !0);
|
|
1109
|
+
var wy = !Ey(Ve) || Sy(function() {
|
|
1110
1110
|
var a = {};
|
|
1111
|
-
return
|
|
1111
|
+
return Ve[gi].call(a) !== a;
|
|
1112
1112
|
});
|
|
1113
|
-
wy && (
|
|
1114
|
-
|
|
1113
|
+
wy && (Ve = {});
|
|
1114
|
+
Ty(Ve[gi]) || Oy(Ve, gi, function() {
|
|
1115
1115
|
return this;
|
|
1116
1116
|
});
|
|
1117
1117
|
var Zu = {
|
|
1118
|
-
IteratorPrototype:
|
|
1119
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1120
|
-
}, $y = Zu.IteratorPrototype, Ay = Yi, Py =
|
|
1118
|
+
IteratorPrototype: Ve,
|
|
1119
|
+
BUGGY_SAFARI_ITERATORS: Qu
|
|
1120
|
+
}, $y = Zu.IteratorPrototype, Ay = Yi, Py = Si, Ry = $r, Ny = Nt, Iy = function() {
|
|
1121
1121
|
return this;
|
|
1122
1122
|
}, My = function(a, e, t, r) {
|
|
1123
1123
|
var i = e + " Iterator";
|
|
1124
1124
|
return a.prototype = Ay($y, { next: Py(+!r, t) }), Ry(a, i, !1), Ny[i] = Iy, a;
|
|
1125
|
-
}, ky = ee, Dy = Y, Ju =
|
|
1125
|
+
}, ky = ee, Dy = Y, Ju = Er, Vy = j, Ly = My, Us = Ku, Gs = lu, jy = $r, By = At, Na = Ue, Fy = H, Uy = Nt, el = Zu, Gy = Ju.PROPER, Hy = Ju.CONFIGURABLE, Hs = el.IteratorPrototype, tr = el.BUGGY_SAFARI_ITERATORS, pt = Fy("iterator"), zs = "keys", gt = "values", Ys = "entries", zy = function() {
|
|
1126
1126
|
return this;
|
|
1127
1127
|
}, Yy = function(a, e, t, r, i, n, o) {
|
|
1128
|
-
|
|
1128
|
+
Ly(t, e, r);
|
|
1129
1129
|
var s = function(m) {
|
|
1130
1130
|
if (m === i && f) return f;
|
|
1131
|
-
if (!tr && m && m in
|
|
1131
|
+
if (!tr && m && m in c) return c[m];
|
|
1132
1132
|
switch (m) {
|
|
1133
|
-
case
|
|
1133
|
+
case zs:
|
|
1134
1134
|
return function() {
|
|
1135
1135
|
return new t(this, m);
|
|
1136
1136
|
};
|
|
@@ -1146,21 +1146,21 @@ var Zu = {
|
|
|
1146
1146
|
return function() {
|
|
1147
1147
|
return new t(this);
|
|
1148
1148
|
};
|
|
1149
|
-
}, u = e + " Iterator", l = !1,
|
|
1150
|
-
if (
|
|
1149
|
+
}, u = e + " Iterator", l = !1, c = a.prototype, v = c[pt] || c["@@iterator"] || i && c[i], f = !tr && v || s(i), h = e === "Array" && c.entries || v, g, p, d;
|
|
1150
|
+
if (h && (g = Us(h.call(new a())), g !== Object.prototype && g.next && (Us(g) !== Hs && (Gs ? Gs(g, Hs) : Vy(g[pt]) || Na(g, pt, zy)), jy(g, u, !0))), Gy && i === gt && v && v.name !== gt && (Hy ? By(c, "name", gt) : (l = !0, f = function() {
|
|
1151
1151
|
return Dy(v, this);
|
|
1152
1152
|
})), i)
|
|
1153
1153
|
if (p = {
|
|
1154
1154
|
values: s(gt),
|
|
1155
|
-
keys: n ? f : s(
|
|
1155
|
+
keys: n ? f : s(zs),
|
|
1156
1156
|
entries: s(Ys)
|
|
1157
1157
|
}, o) for (d in p)
|
|
1158
|
-
(tr || l || !(d in
|
|
1158
|
+
(tr || l || !(d in c)) && Na(c, d, p[d]);
|
|
1159
1159
|
else ky({ target: e, proto: !0, forced: tr || l }, p);
|
|
1160
|
-
return
|
|
1160
|
+
return c[pt] !== f && Na(c, pt, f, { name: i }), Uy[e] = f, p;
|
|
1161
1161
|
}, Xy = function(a, e) {
|
|
1162
1162
|
return { value: a, done: e };
|
|
1163
|
-
}, Wy = wt, tn = fy, Xs = Nt, tl =
|
|
1163
|
+
}, Wy = wt, tn = fy, Xs = Nt, tl = Or, qy = Se.f, Ky = Yy, rr = Xy, Qy = le, rl = "Array Iterator", Zy = tl.set, Jy = tl.getterFor(rl), e0 = Ky(Array, "Array", function(a, e) {
|
|
1164
1164
|
Zy(this, {
|
|
1165
1165
|
type: rl,
|
|
1166
1166
|
target: Wy(a),
|
|
@@ -1173,7 +1173,7 @@ var Zu = {
|
|
|
1173
1173
|
}, function() {
|
|
1174
1174
|
var a = Jy(this), e = a.target, t = a.index++;
|
|
1175
1175
|
if (!e || t >= e.length)
|
|
1176
|
-
return a.target =
|
|
1176
|
+
return a.target = null, rr(void 0, !0);
|
|
1177
1177
|
switch (a.kind) {
|
|
1178
1178
|
case "keys":
|
|
1179
1179
|
return rr(t, !1);
|
|
@@ -1185,7 +1185,7 @@ var Zu = {
|
|
|
1185
1185
|
tn("keys");
|
|
1186
1186
|
tn("values");
|
|
1187
1187
|
tn("entries");
|
|
1188
|
-
if (
|
|
1188
|
+
if (Qy && Ws.name !== "values") try {
|
|
1189
1189
|
qy(Ws, "name", { value: "values" });
|
|
1190
1190
|
} catch {
|
|
1191
1191
|
}
|
|
@@ -1221,17 +1221,17 @@ var t0 = {
|
|
|
1221
1221
|
TextTrackCueList: 0,
|
|
1222
1222
|
TextTrackList: 0,
|
|
1223
1223
|
TouchList: 0
|
|
1224
|
-
}, r0 =
|
|
1224
|
+
}, r0 = Tr, Ia = r0("span").classList, qs = Ia && Ia.constructor && Ia.constructor.prototype, a0 = qs === Object.prototype ? void 0 : qs, Ks = k, al = t0, i0 = a0, yt = e0, Qs = At, n0 = $r, s0 = H, Ma = s0("iterator"), ka = yt.values, il = function(a, e) {
|
|
1225
1225
|
if (a) {
|
|
1226
1226
|
if (a[Ma] !== ka) try {
|
|
1227
|
-
|
|
1227
|
+
Qs(a, Ma, ka);
|
|
1228
1228
|
} catch {
|
|
1229
1229
|
a[Ma] = ka;
|
|
1230
1230
|
}
|
|
1231
1231
|
if (n0(a, e, !0), al[e]) {
|
|
1232
1232
|
for (var t in yt)
|
|
1233
1233
|
if (a[t] !== yt[t]) try {
|
|
1234
|
-
|
|
1234
|
+
Qs(a, t, yt[t]);
|
|
1235
1235
|
} catch {
|
|
1236
1236
|
a[t] = yt[t];
|
|
1237
1237
|
}
|
|
@@ -1239,21 +1239,21 @@ var t0 = {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
1241
|
for (var Da in al)
|
|
1242
|
-
il(
|
|
1242
|
+
il(Ks[Da] && Ks[Da].prototype, Da);
|
|
1243
1243
|
il(i0, "DOMTokenList");
|
|
1244
1244
|
function o0(a, e) {
|
|
1245
|
-
if (
|
|
1245
|
+
if (za(a) != "object" || !a) return a;
|
|
1246
1246
|
var t = a[Symbol.toPrimitive];
|
|
1247
1247
|
if (t !== void 0) {
|
|
1248
1248
|
var r = t.call(a, e || "default");
|
|
1249
|
-
if (
|
|
1249
|
+
if (za(r) != "object") return r;
|
|
1250
1250
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1251
1251
|
}
|
|
1252
1252
|
return (e === "string" ? String : Number)(a);
|
|
1253
1253
|
}
|
|
1254
1254
|
function u0(a) {
|
|
1255
1255
|
var e = o0(a, "string");
|
|
1256
|
-
return
|
|
1256
|
+
return za(e) == "symbol" ? e : e + "";
|
|
1257
1257
|
}
|
|
1258
1258
|
function rn(a, e, t) {
|
|
1259
1259
|
return (e = u0(e)) in a ? Object.defineProperty(a, e, {
|
|
@@ -1263,9 +1263,9 @@ function rn(a, e, t) {
|
|
|
1263
1263
|
writable: !0
|
|
1264
1264
|
}) : a[e] = t, a;
|
|
1265
1265
|
}
|
|
1266
|
-
var l0 = xe,
|
|
1266
|
+
var l0 = xe, c0 = Sr, h0 = Uo, v0 = Ni, Zs = TypeError, Js = "Reduce of empty array with no initial value", eo = function(a) {
|
|
1267
1267
|
return function(e, t, r, i) {
|
|
1268
|
-
var n =
|
|
1268
|
+
var n = c0(e), o = h0(n), s = v0(n);
|
|
1269
1269
|
if (l0(t), s === 0 && r < 2) throw new Zs(Js);
|
|
1270
1270
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1271
1271
|
if (r < 2) for (; ; ) {
|
|
@@ -1286,33 +1286,33 @@ var l0 = xe, h0 = Tr, c0 = Fo, v0 = Ni, Zs = TypeError, Js = "Reduce of empty ar
|
|
|
1286
1286
|
// `Array.prototype.reduceRight` method
|
|
1287
1287
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1288
1288
|
right: eo(!0)
|
|
1289
|
-
}, p0 =
|
|
1289
|
+
}, p0 = V, nl = function(a, e) {
|
|
1290
1290
|
var t = [][a];
|
|
1291
1291
|
return !!t && p0(function() {
|
|
1292
1292
|
t.call(null, e || function() {
|
|
1293
1293
|
return 1;
|
|
1294
1294
|
}, 1);
|
|
1295
1295
|
});
|
|
1296
|
-
}, g0 = ee, d0 = f0.left, m0 = nl, to =
|
|
1296
|
+
}, g0 = ee, d0 = f0.left, m0 = nl, to = Ti, y0 = wr, b0 = !y0 && to > 79 && to < 83, _0 = b0 || !m0("reduce");
|
|
1297
1297
|
g0({ target: "Array", proto: !0, forced: _0 }, {
|
|
1298
1298
|
reduce: function(e) {
|
|
1299
1299
|
var t = arguments.length;
|
|
1300
1300
|
return d0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1301
1301
|
}
|
|
1302
1302
|
});
|
|
1303
|
-
var x0 = ee,
|
|
1304
|
-
var a =
|
|
1303
|
+
var x0 = ee, S0 = Ar, T0 = Ct.f, E0 = ut, ro = de, O0 = Ji, C0 = ce, w0 = en, $0 = S0("".slice), A0 = Math.min, sl = w0("endsWith"), P0 = !sl && !!function() {
|
|
1304
|
+
var a = T0(String.prototype, "endsWith");
|
|
1305
1305
|
return a && !a.writable;
|
|
1306
1306
|
}();
|
|
1307
1307
|
x0({ target: "String", proto: !0, forced: !P0 && !sl }, {
|
|
1308
1308
|
endsWith: function(e) {
|
|
1309
1309
|
var t = ro(C0(this));
|
|
1310
|
-
|
|
1311
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : A0(
|
|
1310
|
+
O0(e);
|
|
1311
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : A0(E0(r), i), o = ro(e);
|
|
1312
1312
|
return $0(t, n - o.length, n) === o;
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
1315
|
-
var
|
|
1315
|
+
var Va = Y, ol = L, R0 = Wi, N0 = J, I0 = Be, M0 = ce, k0 = gu, D0 = Ki, V0 = ut, ao = de, L0 = ot, io = Qi, j0 = Gu, B0 = V, qe = j0.UNSUPPORTED_Y, F0 = 4294967295, U0 = Math.min, La = ol([].push), ja = ol("".slice), G0 = !B0(function() {
|
|
1316
1316
|
var a = /(?:)/, e = a.exec;
|
|
1317
1317
|
a.exec = function() {
|
|
1318
1318
|
return e.apply(this, arguments);
|
|
@@ -1324,14 +1324,14 @@ var La = Y, ol = V, R0 = Wi, N0 = J, I0 = Ue, M0 = he, k0 = gu, D0 = Qi, L0 = ut
|
|
|
1324
1324
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1325
1325
|
R0("split", function(a, e, t) {
|
|
1326
1326
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1327
|
-
return i === void 0 && n === 0 ? [] :
|
|
1327
|
+
return i === void 0 && n === 0 ? [] : Va(e, this, i, n);
|
|
1328
1328
|
} : e;
|
|
1329
1329
|
return [
|
|
1330
1330
|
// `String.prototype.split` method
|
|
1331
1331
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1332
1332
|
function(n, o) {
|
|
1333
|
-
var s = M0(this), u = I0(n) ? void 0 :
|
|
1334
|
-
return u ?
|
|
1333
|
+
var s = M0(this), u = I0(n) ? void 0 : L0(n, a);
|
|
1334
|
+
return u ? Va(u, n, s, o) : Va(r, ao(s), n, o);
|
|
1335
1335
|
},
|
|
1336
1336
|
// `RegExp.prototype[@@split]` method
|
|
1337
1337
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1344,26 +1344,26 @@ R0("split", function(a, e, t) {
|
|
|
1344
1344
|
var u = t(r, o, s, n, r !== e);
|
|
1345
1345
|
if (u.done) return u.value;
|
|
1346
1346
|
}
|
|
1347
|
-
var l = k0(o, RegExp),
|
|
1348
|
-
if (
|
|
1347
|
+
var l = k0(o, RegExp), c = o.unicode, v = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (qe ? "g" : "y"), f = new l(qe ? "^(?:" + o.source + ")" : o, v), h = n === void 0 ? F0 : n >>> 0;
|
|
1348
|
+
if (h === 0) return [];
|
|
1349
1349
|
if (s.length === 0) return io(f, s) === null ? [s] : [];
|
|
1350
1350
|
for (var g = 0, p = 0, d = []; p < s.length; ) {
|
|
1351
1351
|
f.lastIndex = qe ? 0 : p;
|
|
1352
1352
|
var m = io(f, qe ? ja(s, p) : s), _;
|
|
1353
|
-
if (m === null || (_ =
|
|
1354
|
-
p = D0(s, p,
|
|
1353
|
+
if (m === null || (_ = U0(V0(f.lastIndex + (qe ? p : 0)), s.length)) === g)
|
|
1354
|
+
p = D0(s, p, c);
|
|
1355
1355
|
else {
|
|
1356
|
-
if (
|
|
1356
|
+
if (La(d, ja(s, g, p)), d.length === h) return d;
|
|
1357
1357
|
for (var b = 1; b <= m.length - 1; b++)
|
|
1358
|
-
if (
|
|
1358
|
+
if (La(d, m[b]), d.length === h) return d;
|
|
1359
1359
|
p = g = _;
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
|
-
return
|
|
1362
|
+
return La(d, ja(s, g)), d;
|
|
1363
1363
|
}
|
|
1364
1364
|
];
|
|
1365
1365
|
}, no || !G0, qe);
|
|
1366
|
-
var Mr = { exports: {} }, bt = { exports: {} }, dt = { env: { npm_package_dependencies_change_case: "^4.1.2", npm_package_devDependencies_npm_run_all2: "^6.0.6", npm_package_devDependencies_prettier: "^3.0.3", npm_package_publishConfig_registry: "https://npm.pkg.github.com/", TERM_PROGRAM: "
|
|
1366
|
+
var Mr = { exports: {} }, bt = { exports: {} }, dt = { env: { npm_package_dependencies_change_case: "^4.1.2", npm_package_devDependencies_npm_run_all2: "^6.0.6", npm_package_devDependencies_prettier: "^3.0.3", npm_package_publishConfig_registry: "https://npm.pkg.github.com/", TERM_PROGRAM: "vscode", NODE: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", INIT_CWD: "/Users/binbinliao/project/portal/apps/mf-transaction", npm_package_dependencies_axios: "^1.6.2", npm_package_dependencies_moment: "^2.30.0", npm_package_devDependencies_typescript: "~5.2.0", TERM: "xterm-256color", SHELL: "/opt/homebrew/bin/fish", npm_package_devDependencies_vite: "^5.1.4", TMPDIR: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_dependencies__feedmepos_print: "file:../../core-legacy-0.1.tar.gz", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", TERM_PROGRAM_VERSION: "1.94.2", npm_package_exports___style: "./dist/style.css", npm_package_scripts_dev: "vite --mode dev --port 5179", npm_package_devDependencies__vitejs_plugin_vue: "^4.3.4", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", npm_package_scripts_purge_beta: "curl https://purge.jsdelivr.net/npm/@feedmepos/mf-team@beta/dist/app.js", TERM_SESSION_ID: "w0t0p0:C47DE04F-7DA6-46C9-BDD3-D84AFCBF2095", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", npm_config_registry: "https://registry.npmjs.org/", npm_package_scripts_deploy_beta: "pnpm run build-only && pnpm run publish-npm:beta && pnpm run publish-github:beta && pnpm run purge:beta", npm_package_dependencies_dayjs: "^1.11.10", npm_package_dependencies_xlsx: "^0.18.5", USER: "binbinliao", npm_package_license: "UNLICENSED", npm_package_dependencies__feedmepos_mf_common: "workspace:^", COMMAND_MODE: "unix2003", npm_package_scripts_deploy: "pnpm run build-only && pnpm run publish-npm && pnpm run publish-github && pnpm run purge:prod", PNPM_SCRIPT_SRC_DIR: "/Users/binbinliao/project/portal/apps/mf-transaction", npm_package_exports___import: "./dist/app.js", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.GrQ4YfzF3w/Listeners", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_eslint: "^8.49.0", npm_package_devDependencies_postcss: "^8.4.31", TERM_FEATURES: "T3LrMSc7UUw9Ts3BFGsSyHNoSxF", npm_package_scripts_publish_github_beta: "npm publish --tag beta --no-git-checks . --access public --@feedmepos:registry=https://npm.pkg.github.com/", npm_execpath: "/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs", npm_package_module: "./dist/app.js", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_scripts_publish_npm_beta: "npm publish --tag beta --no-git-checks . --access public --@feedmepos:registry=https://registry.npmjs.org/", npm_package_dependencies__feedmepos_core: "^2.12.10", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_config_frozen_lockfile: "", TERMINFO_DIRS: "/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo", PATH: "/Users/binbinliao/project/portal/apps/mf-transaction/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/binbinliao/project/portal/node_modules/.bin:/Users/binbinliao/project/portal/apps/mf-transaction/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/binbinliao/project/portal/node_modules/.bin:/opt/homebrew/opt/node@18/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/Users/binbinliao/development/flutter/flutter/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/iTerm.app/Contents/Resources/utilities", npm_package_dependencies_jspdf: "^2.5.1", LaunchInstanceID: "17F46DD4-AB04-493F-944B-9CB9BF5E7B47", npm_package_dependencies_vue: "^3.4.21", __CFBundleIdentifier: "com.microsoft.VSCode", PWD: "/Users/binbinliao/project/portal/apps/mf-transaction", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_command: "run-script", npm_package_devDependencies__tsconfig_node18: "^18.2.2", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_lifecycle_event: "build:mf", LANG: "en_US.UTF-8", npm_package_name: "@feedmepos/mf-transaction", ITERM_PROFILE: "Default", NODE_PATH: "/Users/binbinliao/project/portal/node_modules/.pnpm/vite@5.4.5_@types+node@18.19.50_sass@1.69.5_terser@5.32.0/node_modules/vite/bin/node_modules:/Users/binbinliao/project/portal/node_modules/.pnpm/vite@5.4.5_@types+node@18.19.50_sass@1.69.5_terser@5.32.0/node_modules/vite/node_modules:/Users/binbinliao/project/portal/node_modules/.pnpm/vite@5.4.5_@types+node@18.19.50_sass@1.69.5_terser@5.32.0/node_modules:/Users/binbinliao/project/portal/node_modules/.pnpm/node_modules", npm_package_exports___types: "./dist/apps/mf-transaction/src/app.d.ts", npm_package_scripts_start: "vite --mode prod", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_devDependencies_sass: "1.69.5", XPC_FLAGS: "0x0", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_publish_npm: "npm publish --no-git-checks . --access public --@feedmepos:registry=https://registry.npmjs.org/", npm_package_scripts_purge_prod: "curl https://purge.jsdelivr.net/npm/@feedmepos/mf-team@latest/dist/app.js", npm_config_node_gyp: "/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.0.7-beta", VSCODE_INJECTION: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/binbinliao", SHLVL: "5", COLORFGBG: "15;0", npm_package_type: "module", npm_package_dependencies__feedmepos_payment_model: "0.0.12", npm_package_devDependencies__vue_tsconfig: "^0.4.0", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", LC_TERMINAL_VERSION: "3.5.3", ITERM_SESSION_ID: "w0t0p0:C47DE04F-7DA6-46C9-BDD3-D84AFCBF2095", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", LOGNAME: "binbinliao", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_lifecycle_script: "vite build --mode fmmf", VSCODE_GIT_IPC_HANDLE: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/vscode-git-d179e55ae1.sock", XDG_DATA_DIRS: "/usr/local/share:/usr/share:/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/common/scripts/fish_xdg_data", npm_config_user_agent: "pnpm/9.6.0 npm/? node/v18.20.4 darwin arm64", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_devDependencies__types_node: "^18.17.17", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_scripts_publish_github: "npm publish --no-git-checks . --access public --@feedmepos:registry=https://npm.pkg.github.com/", SECURITYSESSIONID: "186a2", npm_package_dependencies__feedmepos_ui_library: "^1.2.50", npm_package_dependencies_vue_router: "^4.3.0", COLORTERM: "truecolor", npm_package_devDependencies_vue_tsc: "^1.8.11", npm_node_execpath: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", NODE_ENV: "production" } };
|
|
1367
1367
|
(function() {
|
|
1368
1368
|
var a, e, t, r, i, n;
|
|
1369
1369
|
typeof performance < "u" && performance !== null && performance.now ? bt.exports = function() {
|
|
@@ -1378,22 +1378,22 @@ var Mr = { exports: {} }, bt = { exports: {} }, dt = { env: { npm_package_depend
|
|
|
1378
1378
|
}, t = Date.now()) : (bt.exports = function() {
|
|
1379
1379
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1380
1380
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1381
|
-
}).call(
|
|
1382
|
-
var
|
|
1381
|
+
}).call(Qe);
|
|
1382
|
+
var H0 = bt.exports, z0 = H0, be = typeof window > "u" ? Qe : window, ar = ["moz", "webkit"], rt = "AnimationFrame", st = be["request" + rt], Ot = be["cancel" + rt] || be["cancelRequest" + rt];
|
|
1383
1383
|
for (var mt = 0; !st && mt < ar.length; mt++)
|
|
1384
|
-
st = be[ar[mt] + "Request" + rt],
|
|
1385
|
-
if (!st || !
|
|
1386
|
-
var
|
|
1384
|
+
st = be[ar[mt] + "Request" + rt], Ot = be[ar[mt] + "Cancel" + rt] || be[ar[mt] + "CancelRequest" + rt];
|
|
1385
|
+
if (!st || !Ot) {
|
|
1386
|
+
var Ba = 0, so = 0, Ie = [], Y0 = 1e3 / 60;
|
|
1387
1387
|
st = function(a) {
|
|
1388
1388
|
if (Ie.length === 0) {
|
|
1389
|
-
var e =
|
|
1390
|
-
|
|
1389
|
+
var e = z0(), t = Math.max(0, Y0 - (e - Ba));
|
|
1390
|
+
Ba = t + e, setTimeout(function() {
|
|
1391
1391
|
var r = Ie.slice(0);
|
|
1392
1392
|
Ie.length = 0;
|
|
1393
1393
|
for (var i = 0; i < r.length; i++)
|
|
1394
1394
|
if (!r[i].cancelled)
|
|
1395
1395
|
try {
|
|
1396
|
-
r[i].callback(
|
|
1396
|
+
r[i].callback(Ba);
|
|
1397
1397
|
} catch (n) {
|
|
1398
1398
|
setTimeout(function() {
|
|
1399
1399
|
throw n;
|
|
@@ -1406,7 +1406,7 @@ if (!st || !St) {
|
|
|
1406
1406
|
callback: a,
|
|
1407
1407
|
cancelled: !1
|
|
1408
1408
|
}), so;
|
|
1409
|
-
},
|
|
1409
|
+
}, Ot = function(a) {
|
|
1410
1410
|
for (var e = 0; e < Ie.length; e++)
|
|
1411
1411
|
Ie[e].handle === a && (Ie[e].cancelled = !0);
|
|
1412
1412
|
};
|
|
@@ -1415,30 +1415,30 @@ Mr.exports = function(a) {
|
|
|
1415
1415
|
return st.call(be, a);
|
|
1416
1416
|
};
|
|
1417
1417
|
Mr.exports.cancel = function() {
|
|
1418
|
-
|
|
1418
|
+
Ot.apply(be, arguments);
|
|
1419
1419
|
};
|
|
1420
1420
|
Mr.exports.polyfill = function(a) {
|
|
1421
|
-
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame =
|
|
1421
|
+
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = Ot;
|
|
1422
1422
|
};
|
|
1423
1423
|
var X0 = Mr.exports;
|
|
1424
|
-
const
|
|
1424
|
+
const Fa = /* @__PURE__ */ ko(X0);
|
|
1425
1425
|
var ul = `
|
|
1426
|
-
\v\f\r \u2028\u2029\uFEFF`, W0 =
|
|
1426
|
+
\v\f\r \u2028\u2029\uFEFF`, W0 = L, q0 = ce, K0 = de, di = ul, oo = W0("".replace), Q0 = RegExp("^[" + di + "]+"), Z0 = RegExp("(^|[^" + di + "])[" + di + "]+$"), Ua = function(a) {
|
|
1427
1427
|
return function(e) {
|
|
1428
|
-
var t =
|
|
1429
|
-
return a & 1 && (t = oo(t,
|
|
1428
|
+
var t = K0(q0(e));
|
|
1429
|
+
return a & 1 && (t = oo(t, Q0, "")), a & 2 && (t = oo(t, Z0, "$1")), t;
|
|
1430
1430
|
};
|
|
1431
1431
|
}, J0 = {
|
|
1432
1432
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1433
1433
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1434
|
-
start:
|
|
1434
|
+
start: Ua(1),
|
|
1435
1435
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1436
1436
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1437
|
-
end:
|
|
1437
|
+
end: Ua(2),
|
|
1438
1438
|
// `String.prototype.trim` method
|
|
1439
1439
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1440
|
-
trim:
|
|
1441
|
-
}, eb =
|
|
1440
|
+
trim: Ua(3)
|
|
1441
|
+
}, eb = Er.PROPER, tb = V, uo = ul, lo = "
", rb = function(a) {
|
|
1442
1442
|
return tb(function() {
|
|
1443
1443
|
return !!uo[a]() || lo[a]() !== lo || eb && uo[a].name !== a;
|
|
1444
1444
|
});
|
|
@@ -1655,16 +1655,16 @@ var sb = function(a) {
|
|
|
1655
1655
|
}, this.toRGBA = function() {
|
|
1656
1656
|
return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + this.alpha + ")";
|
|
1657
1657
|
}, this.toHex = function() {
|
|
1658
|
-
var u = this.r.toString(16), l = this.g.toString(16),
|
|
1659
|
-
return u.length == 1 && (u = "0" + u), l.length == 1 && (l = "0" + l),
|
|
1658
|
+
var u = this.r.toString(16), l = this.g.toString(16), c = this.b.toString(16);
|
|
1659
|
+
return u.length == 1 && (u = "0" + u), l.length == 1 && (l = "0" + l), c.length == 1 && (c = "0" + c), "#" + u + l + c;
|
|
1660
1660
|
}, this.getHelpXML = function() {
|
|
1661
1661
|
for (var u = new Array(), l = 0; l < t.length; l++)
|
|
1662
|
-
for (var
|
|
1663
|
-
u[u.length] =
|
|
1662
|
+
for (var c = t[l].example, v = 0; v < c.length; v++)
|
|
1663
|
+
u[u.length] = c[v];
|
|
1664
1664
|
for (var f in e)
|
|
1665
1665
|
u[u.length] = f;
|
|
1666
|
-
var
|
|
1667
|
-
|
|
1666
|
+
var h = document.createElement("ul");
|
|
1667
|
+
h.setAttribute("id", "rgbcolor-examples");
|
|
1668
1668
|
for (var l = 0; l < u.length; l++)
|
|
1669
1669
|
try {
|
|
1670
1670
|
var g = document.createElement("li"), p = new RGBColor(u[l]), d = document.createElement("div");
|
|
@@ -1672,36 +1672,36 @@ var sb = function(a) {
|
|
|
1672
1672
|
var m = document.createTextNode(
|
|
1673
1673
|
" " + u[l] + " -> " + p.toRGB() + " -> " + p.toHex()
|
|
1674
1674
|
);
|
|
1675
|
-
g.appendChild(d), g.appendChild(m),
|
|
1675
|
+
g.appendChild(d), g.appendChild(m), h.appendChild(g);
|
|
1676
1676
|
} catch {
|
|
1677
1677
|
}
|
|
1678
|
-
return
|
|
1678
|
+
return h;
|
|
1679
1679
|
};
|
|
1680
1680
|
};
|
|
1681
1681
|
const mi = /* @__PURE__ */ ko(sb);
|
|
1682
|
-
var ob = ee, ub = Ar, lb = iu.indexOf,
|
|
1683
|
-
ob({ target: "Array", proto: !0, forced:
|
|
1682
|
+
var ob = ee, ub = Ar, lb = iu.indexOf, cb = nl, yi = ub([].indexOf), ll = !!yi && 1 / yi([1], 1, -0) < 0, hb = ll || !cb("indexOf");
|
|
1683
|
+
ob({ target: "Array", proto: !0, forced: hb }, {
|
|
1684
1684
|
indexOf: function(e) {
|
|
1685
1685
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1686
1686
|
return ll ? yi(this, e, t) || 0 : lb(this, e, t);
|
|
1687
1687
|
}
|
|
1688
1688
|
});
|
|
1689
|
-
var vb = ee, fb =
|
|
1689
|
+
var vb = ee, fb = L, pb = Ji, gb = ce, co = de, db = en, mb = fb("".indexOf);
|
|
1690
1690
|
vb({ target: "String", proto: !0, forced: !db("includes") }, {
|
|
1691
1691
|
includes: function(e) {
|
|
1692
1692
|
return !!~mb(
|
|
1693
|
-
|
|
1694
|
-
|
|
1693
|
+
co(gb(this)),
|
|
1694
|
+
co(pb(e)),
|
|
1695
1695
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1696
1696
|
);
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
1699
|
var yb = je, bb = Array.isArray || function(e) {
|
|
1700
1700
|
return yb(e) === "Array";
|
|
1701
|
-
}, _b = ee, xb =
|
|
1702
|
-
_b({ target: "Array", proto: !0, forced: String(
|
|
1701
|
+
}, _b = ee, xb = L, Sb = bb, Tb = xb([].reverse), ho = [1, 2];
|
|
1702
|
+
_b({ target: "Array", proto: !0, forced: String(ho) === String(ho.reverse()) }, {
|
|
1703
1703
|
reverse: function() {
|
|
1704
|
-
return
|
|
1704
|
+
return Sb(this) && (this.length = this.length), Tb(this);
|
|
1705
1705
|
}
|
|
1706
1706
|
});
|
|
1707
1707
|
/*! *****************************************************************************
|
|
@@ -1718,21 +1718,21 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1718
1718
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1719
1719
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1720
1720
|
***************************************************************************** */
|
|
1721
|
-
var
|
|
1722
|
-
return (
|
|
1721
|
+
var cl = function(a, e) {
|
|
1722
|
+
return (cl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1723
1723
|
t.__proto__ = r;
|
|
1724
1724
|
} || function(t, r) {
|
|
1725
1725
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1726
1726
|
})(a, e);
|
|
1727
1727
|
};
|
|
1728
|
-
function
|
|
1728
|
+
function hl(a, e) {
|
|
1729
1729
|
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1730
1730
|
function t() {
|
|
1731
1731
|
this.constructor = a;
|
|
1732
1732
|
}
|
|
1733
|
-
|
|
1733
|
+
cl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function Eb(a) {
|
|
1736
1736
|
var e = "";
|
|
1737
1737
|
Array.isArray(a) || (a = [a]);
|
|
1738
1738
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1762,15 +1762,15 @@ function oe() {
|
|
|
1762
1762
|
for (var t = 0; t < a.length; t++) if (typeof a[t] != "number") throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
|
|
1763
1763
|
return !0;
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1765
|
+
var Ee = Math.PI;
|
|
1766
1766
|
function Ga(a, e, t) {
|
|
1767
1767
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1768
1768
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1769
1769
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1770
|
-
var s = bi([(e - n) / 2, (t - o) / 2], -a.xRot / 180 *
|
|
1771
|
-
1 <
|
|
1772
|
-
var v = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), f = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - v) / v)),
|
|
1773
|
-
a.cX = p[0] + (e + n) / 2, a.cY = p[1] + (t + o) / 2, a.phi1 = Math.atan2((l - g) / i, (u -
|
|
1770
|
+
var s = bi([(e - n) / 2, (t - o) / 2], -a.xRot / 180 * Ee), u = s[0], l = s[1], c = Math.pow(u, 2) / Math.pow(r, 2) + Math.pow(l, 2) / Math.pow(i, 2);
|
|
1771
|
+
1 < c && (r *= Math.sqrt(c), i *= Math.sqrt(c)), a.rX = r, a.rY = i;
|
|
1772
|
+
var v = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), f = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - v) / v)), h = r * l / i * f, g = -i * u / r * f, p = bi([h, g], a.xRot / 180 * Ee);
|
|
1773
|
+
a.cX = p[0] + (e + n) / 2, a.cY = p[1] + (t + o) / 2, a.phi1 = Math.atan2((l - g) / i, (u - h) / r), a.phi2 = Math.atan2((-l - g) / i, (-u - h) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 * Ee), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Ee), a.phi1 *= 180 / Ee, a.phi2 *= 180 / Ee;
|
|
1774
1774
|
}
|
|
1775
1775
|
function vo(a, e, t) {
|
|
1776
1776
|
oe(a, e, t);
|
|
@@ -1780,21 +1780,21 @@ function vo(a, e, t) {
|
|
|
1780
1780
|
var i = Math.sqrt(r);
|
|
1781
1781
|
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)]];
|
|
1782
1782
|
}
|
|
1783
|
-
var
|
|
1783
|
+
var U, me = Math.PI / 180;
|
|
1784
1784
|
function fo(a, e, t) {
|
|
1785
1785
|
return (1 - t) * a + t * e;
|
|
1786
1786
|
}
|
|
1787
1787
|
function po(a, e, t, r) {
|
|
1788
|
-
return a + Math.cos(r / 180 *
|
|
1788
|
+
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1789
1789
|
}
|
|
1790
1790
|
function go(a, e, t, r) {
|
|
1791
1791
|
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;
|
|
1792
|
-
return Math.abs(s) < i ? [-l / u] : function(
|
|
1793
|
-
var
|
|
1794
|
-
if (
|
|
1795
|
-
if (
|
|
1796
|
-
var g = Math.sqrt(
|
|
1797
|
-
return [-
|
|
1792
|
+
return Math.abs(s) < i ? [-l / u] : function(c, v, f) {
|
|
1793
|
+
var h = c * c / 4 - v;
|
|
1794
|
+
if (h < -f) return [];
|
|
1795
|
+
if (h <= f) return [-c / 2];
|
|
1796
|
+
var g = Math.sqrt(h);
|
|
1797
|
+
return [-c / 2 - g, -c / 2 + g];
|
|
1798
1798
|
}(u / s, l / s, i);
|
|
1799
1799
|
}
|
|
1800
1800
|
function mo(a, e, t, r, i) {
|
|
@@ -1808,44 +1808,44 @@ function mo(a, e, t, r, i) {
|
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
1810
|
function t() {
|
|
1811
|
-
var s = NaN, u = NaN, l = NaN,
|
|
1812
|
-
return i(function(v, f,
|
|
1813
|
-
return v.type & y.SMOOTH_CURVE_TO && (v.type = y.CURVE_TO, s = isNaN(s) ? f : s, u = isNaN(u) ?
|
|
1811
|
+
var s = NaN, u = NaN, l = NaN, c = NaN;
|
|
1812
|
+
return i(function(v, f, h) {
|
|
1813
|
+
return v.type & y.SMOOTH_CURVE_TO && (v.type = y.CURVE_TO, s = isNaN(s) ? f : s, u = isNaN(u) ? h : u, v.x1 = v.relative ? f - s : 2 * f - s, v.y1 = v.relative ? h - u : 2 * h - u), v.type & y.CURVE_TO ? (s = v.relative ? f + v.x2 : v.x2, u = v.relative ? h + v.y2 : v.y2) : (s = NaN, u = NaN), v.type & y.SMOOTH_QUAD_TO && (v.type = y.QUAD_TO, l = isNaN(l) ? f : l, c = isNaN(c) ? h : c, v.x1 = v.relative ? f - l : 2 * f - l, v.y1 = v.relative ? h - c : 2 * h - c), v.type & y.QUAD_TO ? (l = v.relative ? f + v.x1 : v.x1, c = v.relative ? h + v.y1 : v.y1) : (l = NaN, c = NaN), v;
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
1816
|
function r() {
|
|
1817
1817
|
var s = NaN, u = NaN;
|
|
1818
|
-
return i(function(l,
|
|
1819
|
-
if (l.type & y.SMOOTH_QUAD_TO && (l.type = y.QUAD_TO, s = isNaN(s) ?
|
|
1820
|
-
s = l.relative ?
|
|
1821
|
-
var f = l.x1,
|
|
1822
|
-
l.type = y.CURVE_TO, l.x1 = ((l.relative ? 0 :
|
|
1818
|
+
return i(function(l, c, v) {
|
|
1819
|
+
if (l.type & y.SMOOTH_QUAD_TO && (l.type = y.QUAD_TO, s = isNaN(s) ? c : s, u = isNaN(u) ? v : u, l.x1 = l.relative ? c - s : 2 * c - s, l.y1 = l.relative ? v - u : 2 * v - u), l.type & y.QUAD_TO) {
|
|
1820
|
+
s = l.relative ? c + l.x1 : l.x1, u = l.relative ? v + l.y1 : l.y1;
|
|
1821
|
+
var f = l.x1, h = l.y1;
|
|
1822
|
+
l.type = y.CURVE_TO, l.x1 = ((l.relative ? 0 : c) + 2 * f) / 3, l.y1 = ((l.relative ? 0 : v) + 2 * h) / 3, l.x2 = (l.x + 2 * f) / 3, l.y2 = (l.y + 2 * h) / 3;
|
|
1823
1823
|
} else s = NaN, u = NaN;
|
|
1824
1824
|
return l;
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
function i(s) {
|
|
1828
|
-
var u = 0, l = 0,
|
|
1828
|
+
var u = 0, l = 0, c = NaN, v = NaN;
|
|
1829
1829
|
return function(f) {
|
|
1830
|
-
if (isNaN(
|
|
1831
|
-
var
|
|
1832
|
-
return f.type & y.CLOSE_PATH && (u =
|
|
1830
|
+
if (isNaN(c) && !(f.type & y.MOVE_TO)) throw new Error("path must start with moveto");
|
|
1831
|
+
var h = s(f, u, l, c, v);
|
|
1832
|
+
return f.type & y.CLOSE_PATH && (u = c, l = v), f.x !== void 0 && (u = f.relative ? u + f.x : f.x), f.y !== void 0 && (l = f.relative ? l + f.y : f.y), f.type & y.MOVE_TO && (c = u, v = l), h;
|
|
1833
1833
|
};
|
|
1834
1834
|
}
|
|
1835
|
-
function n(s, u, l,
|
|
1836
|
-
return oe(s, u, l,
|
|
1837
|
-
var m =
|
|
1838
|
-
function
|
|
1835
|
+
function n(s, u, l, c, v, f) {
|
|
1836
|
+
return oe(s, u, l, c, v, f), i(function(h, g, p, d) {
|
|
1837
|
+
var m = h.x1, _ = h.x2, b = h.relative && !isNaN(d), x = h.x !== void 0 ? h.x : b ? 0 : g, O = h.y !== void 0 ? h.y : b ? 0 : p;
|
|
1838
|
+
function E(ne) {
|
|
1839
1839
|
return ne * ne;
|
|
1840
1840
|
}
|
|
1841
|
-
|
|
1842
|
-
var
|
|
1843
|
-
if (
|
|
1841
|
+
h.type & y.HORIZ_LINE_TO && u !== 0 && (h.type = y.LINE_TO, h.y = h.relative ? 0 : p), h.type & y.VERT_LINE_TO && l !== 0 && (h.type = y.LINE_TO, h.x = h.relative ? 0 : g), h.x !== void 0 && (h.x = h.x * s + O * l + (b ? 0 : v)), h.y !== void 0 && (h.y = x * u + h.y * c + (b ? 0 : f)), h.x1 !== void 0 && (h.x1 = h.x1 * s + h.y1 * l + (b ? 0 : v)), h.y1 !== void 0 && (h.y1 = m * u + h.y1 * c + (b ? 0 : f)), h.x2 !== void 0 && (h.x2 = h.x2 * s + h.y2 * l + (b ? 0 : v)), h.y2 !== void 0 && (h.y2 = _ * u + h.y2 * c + (b ? 0 : f));
|
|
1842
|
+
var S = s * c - u * l;
|
|
1843
|
+
if (h.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || c !== 1)) if (S === 0) delete h.rX, delete h.rY, delete h.xRot, delete h.lArcFlag, delete h.sweepFlag, h.type = y.LINE_TO;
|
|
1844
1844
|
else {
|
|
1845
|
-
var w =
|
|
1846
|
-
|
|
1845
|
+
var w = h.xRot * Math.PI / 180, N = Math.sin(w), M = Math.cos(w), B = 1 / E(h.rX), A = 1 / E(h.rY), X = E(M) * B + E(N) * A, W = 2 * N * M * (B - A), G = E(N) * B + E(M) * A, q = X * c * c - W * u * c + G * u * u, z = W * (s * c + u * l) - 2 * (X * l * c + G * s * u), K = X * l * l - W * s * l + G * s * s, P = (Math.atan2(z, q - K) + Math.PI) % Math.PI / 2, I = Math.sin(P), Q = Math.cos(P);
|
|
1846
|
+
h.rX = Math.abs(S) / Math.sqrt(q * E(Q) + z * I * Q + K * E(I)), h.rY = Math.abs(S) / Math.sqrt(q * E(I) - z * I * Q + K * E(Q)), h.xRot = 180 * P / Math.PI;
|
|
1847
1847
|
}
|
|
1848
|
-
return
|
|
1848
|
+
return h.sweepFlag !== void 0 && 0 > S && (h.sweepFlag = +!h.sweepFlag), h;
|
|
1849
1849
|
});
|
|
1850
1850
|
}
|
|
1851
1851
|
function o() {
|
|
@@ -1867,27 +1867,27 @@ function mo(a, e, t, r, i) {
|
|
|
1867
1867
|
return s.relative || (s.x1 !== void 0 && (s.x1 -= u), s.y1 !== void 0 && (s.y1 -= l), s.x2 !== void 0 && (s.x2 -= u), s.y2 !== void 0 && (s.y2 -= l), s.x !== void 0 && (s.x -= u), s.y !== void 0 && (s.y -= l), s.relative = !0), s;
|
|
1868
1868
|
});
|
|
1869
1869
|
}, a.NORMALIZE_HVZ = function(s, u, l) {
|
|
1870
|
-
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(
|
|
1871
|
-
if (isNaN(
|
|
1872
|
-
return u &&
|
|
1870
|
+
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(c, v, f, h, g) {
|
|
1871
|
+
if (isNaN(h) && !(c.type & y.MOVE_TO)) throw new Error("path must start with moveto");
|
|
1872
|
+
return u && c.type & y.HORIZ_LINE_TO && (c.type = y.LINE_TO, c.y = c.relative ? 0 : f), l && c.type & y.VERT_LINE_TO && (c.type = y.LINE_TO, c.x = c.relative ? 0 : v), s && c.type & y.CLOSE_PATH && (c.type = y.LINE_TO, c.x = c.relative ? h - v : h, c.y = c.relative ? g - f : g), c.type & y.ARC && (c.rX === 0 || c.rY === 0) && (c.type = y.LINE_TO, delete c.rX, delete c.rY, delete c.xRot, delete c.lArcFlag, delete c.sweepFlag), c;
|
|
1873
1873
|
});
|
|
1874
1874
|
}, a.NORMALIZE_ST = t, a.QT_TO_C = r, a.INFO = i, a.SANITIZE = function(s) {
|
|
1875
1875
|
s === void 0 && (s = 0), oe(s);
|
|
1876
|
-
var u = NaN, l = NaN,
|
|
1877
|
-
return i(function(f,
|
|
1876
|
+
var u = NaN, l = NaN, c = NaN, v = NaN;
|
|
1877
|
+
return i(function(f, h, g, p, d) {
|
|
1878
1878
|
var m = Math.abs, _ = !1, b = 0, x = 0;
|
|
1879
|
-
if (f.type & y.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 :
|
|
1880
|
-
var
|
|
1881
|
-
b = isNaN(
|
|
1882
|
-
var
|
|
1883
|
-
m(
|
|
1879
|
+
if (f.type & y.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : h - u, x = isNaN(l) ? 0 : g - l), f.type & (y.CURVE_TO | y.SMOOTH_CURVE_TO) ? (u = f.relative ? h + f.x2 : f.x2, l = f.relative ? g + f.y2 : f.y2) : (u = NaN, l = NaN), f.type & y.SMOOTH_QUAD_TO ? (c = isNaN(c) ? h : 2 * h - c, v = isNaN(v) ? g : 2 * g - v) : f.type & y.QUAD_TO ? (c = f.relative ? h + f.x1 : f.x1, v = f.relative ? g + f.y1 : f.y2) : (c = NaN, v = NaN), f.type & y.LINE_COMMANDS || f.type & y.ARC && (f.rX === 0 || f.rY === 0 || !f.lArcFlag) || f.type & y.CURVE_TO || f.type & y.SMOOTH_CURVE_TO || f.type & y.QUAD_TO || f.type & y.SMOOTH_QUAD_TO) {
|
|
1880
|
+
var O = f.x === void 0 ? 0 : f.relative ? f.x : f.x - h, E = f.y === void 0 ? 0 : f.relative ? f.y : f.y - g;
|
|
1881
|
+
b = isNaN(c) ? f.x1 === void 0 ? b : f.relative ? f.x : f.x1 - h : c - h, x = isNaN(v) ? f.y1 === void 0 ? x : f.relative ? f.y : f.y1 - g : v - g;
|
|
1882
|
+
var S = f.x2 === void 0 ? 0 : f.relative ? f.x : f.x2 - h, w = f.y2 === void 0 ? 0 : f.relative ? f.y : f.y2 - g;
|
|
1883
|
+
m(O) <= s && m(E) <= s && m(b) <= s && m(x) <= s && m(S) <= s && m(w) <= s && (_ = !0);
|
|
1884
1884
|
}
|
|
1885
|
-
return f.type & y.CLOSE_PATH && m(
|
|
1885
|
+
return f.type & y.CLOSE_PATH && m(h - p) <= s && m(g - d) <= s && (_ = !0), _ ? [] : f;
|
|
1886
1886
|
});
|
|
1887
1887
|
}, a.MATRIX = n, a.ROTATE = function(s, u, l) {
|
|
1888
1888
|
u === void 0 && (u = 0), l === void 0 && (l = 0), oe(s, u, l);
|
|
1889
|
-
var
|
|
1890
|
-
return n(v,
|
|
1889
|
+
var c = Math.sin(s), v = Math.cos(s);
|
|
1890
|
+
return n(v, c, -c, v, u - u * v + l * c, l - u * c - l * v);
|
|
1891
1891
|
}, a.TRANSLATE = function(s, u) {
|
|
1892
1892
|
return u === void 0 && (u = 0), oe(s, u), n(1, 0, 0, 1, s, u);
|
|
1893
1893
|
}, a.SCALE = function(s, u) {
|
|
@@ -1902,17 +1902,17 @@ function mo(a, e, t, r, i) {
|
|
|
1902
1902
|
return s === void 0 && (s = 0), oe(s), n(1, 0, 0, -1, 0, s);
|
|
1903
1903
|
}, a.A_TO_C = function() {
|
|
1904
1904
|
return i(function(s, u, l) {
|
|
1905
|
-
return y.ARC === s.type ? function(
|
|
1906
|
-
var
|
|
1907
|
-
|
|
1908
|
-
for (var m = Math.min(
|
|
1909
|
-
var w = fo(
|
|
1910
|
-
x[
|
|
1911
|
-
var
|
|
1912
|
-
var
|
|
1913
|
-
return [
|
|
1905
|
+
return y.ARC === s.type ? function(c, v, f) {
|
|
1906
|
+
var h, g, p, d;
|
|
1907
|
+
c.cX || Ga(c, v, f);
|
|
1908
|
+
for (var m = Math.min(c.phi1, c.phi2), _ = Math.max(c.phi1, c.phi2) - m, b = Math.ceil(_ / 90), x = new Array(b), O = v, E = f, S = 0; S < b; S++) {
|
|
1909
|
+
var w = fo(c.phi1, c.phi2, S / b), N = fo(c.phi1, c.phi2, (S + 1) / b), M = N - w, B = 4 / 3 * Math.tan(M * me / 4), A = [Math.cos(w * me) - B * Math.sin(w * me), Math.sin(w * me) + B * Math.cos(w * me)], X = A[0], W = A[1], G = [Math.cos(N * me), Math.sin(N * me)], q = G[0], z = G[1], K = [q + B * Math.sin(N * me), z - B * Math.cos(N * me)], P = K[0], I = K[1];
|
|
1910
|
+
x[S] = { relative: c.relative, type: y.CURVE_TO };
|
|
1911
|
+
var Q = function(ne, pe) {
|
|
1912
|
+
var Te = bi([ne * c.rX, pe * c.rY], c.xRot), He = Te[0], Mt = Te[1];
|
|
1913
|
+
return [c.cX + He, c.cY + Mt];
|
|
1914
1914
|
};
|
|
1915
|
-
|
|
1915
|
+
h = Q(X, W), x[S].x1 = h[0], x[S].y1 = h[1], g = Q(P, I), x[S].x2 = g[0], x[S].y2 = g[1], p = Q(q, z), x[S].x = p[0], x[S].y = p[1], c.relative && (x[S].x1 -= O, x[S].y1 -= E, x[S].x2 -= O, x[S].y2 -= E, x[S].x -= O, x[S].y -= E), O = (d = [x[S].x, x[S].y])[0], E = d[1];
|
|
1916
1916
|
}
|
|
1917
1917
|
return x;
|
|
1918
1918
|
}(s, s.relative ? 0 : u, s.relative ? 0 : l) : s;
|
|
@@ -1923,80 +1923,80 @@ function mo(a, e, t, r, i) {
|
|
|
1923
1923
|
});
|
|
1924
1924
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
1925
1925
|
var s = function(f) {
|
|
1926
|
-
var
|
|
1927
|
-
for (var g in f)
|
|
1928
|
-
return
|
|
1929
|
-
}, u = e(), l = r(),
|
|
1930
|
-
var p =
|
|
1926
|
+
var h = {};
|
|
1927
|
+
for (var g in f) h[g] = f[g];
|
|
1928
|
+
return h;
|
|
1929
|
+
}, u = e(), l = r(), c = t(), v = i(function(f, h, g) {
|
|
1930
|
+
var p = c(l(u(s(f))));
|
|
1931
1931
|
function d(I) {
|
|
1932
1932
|
I > v.maxX && (v.maxX = I), I < v.minX && (v.minX = I);
|
|
1933
1933
|
}
|
|
1934
1934
|
function m(I) {
|
|
1935
1935
|
I > v.maxY && (v.maxY = I), I < v.minY && (v.minY = I);
|
|
1936
1936
|
}
|
|
1937
|
-
if (p.type & y.DRAWING_COMMANDS && (d(
|
|
1937
|
+
if (p.type & y.DRAWING_COMMANDS && (d(h), m(g)), p.type & y.HORIZ_LINE_TO && d(p.x), p.type & y.VERT_LINE_TO && m(p.y), p.type & y.LINE_TO && (d(p.x), m(p.y)), p.type & y.CURVE_TO) {
|
|
1938
1938
|
d(p.x), m(p.y);
|
|
1939
|
-
for (var _ = 0, b = go(
|
|
1940
|
-
0 < (P = b[_]) && 1 > P && d(mo(
|
|
1941
|
-
for (var x = 0,
|
|
1942
|
-
0 < (P =
|
|
1939
|
+
for (var _ = 0, b = go(h, p.x1, p.x2, p.x); _ < b.length; _++)
|
|
1940
|
+
0 < (P = b[_]) && 1 > P && d(mo(h, p.x1, p.x2, p.x, P));
|
|
1941
|
+
for (var x = 0, O = go(g, p.y1, p.y2, p.y); x < O.length; x++)
|
|
1942
|
+
0 < (P = O[x]) && 1 > P && m(mo(g, p.y1, p.y2, p.y, P));
|
|
1943
1943
|
}
|
|
1944
1944
|
if (p.type & y.ARC) {
|
|
1945
|
-
d(p.x), m(p.y), Ga(p,
|
|
1946
|
-
for (var
|
|
1947
|
-
var
|
|
1945
|
+
d(p.x), m(p.y), Ga(p, h, g);
|
|
1946
|
+
for (var E = p.xRot / 180 * Math.PI, S = Math.cos(E) * p.rX, w = Math.sin(E) * p.rX, N = -Math.sin(E) * p.rY, M = Math.cos(E) * p.rY, B = p.phi1 < p.phi2 ? [p.phi1, p.phi2] : -180 > p.phi2 ? [p.phi2 + 360, p.phi1 + 360] : [p.phi2, p.phi1], A = B[0], X = B[1], W = function(I) {
|
|
1947
|
+
var Q = I[0], ne = I[1], pe = 180 * Math.atan2(ne, Q) / Math.PI;
|
|
1948
1948
|
return pe < A ? pe + 360 : pe;
|
|
1949
|
-
}, G = 0, q = vo(N, -
|
|
1950
|
-
(P = q[G]) > A && P < X && d(po(p.cX,
|
|
1951
|
-
for (var
|
|
1949
|
+
}, G = 0, q = vo(N, -S, 0).map(W); G < q.length; G++)
|
|
1950
|
+
(P = q[G]) > A && P < X && d(po(p.cX, S, N, P));
|
|
1951
|
+
for (var z = 0, K = vo(M, -w, 0).map(W); z < K.length; z++) {
|
|
1952
1952
|
var P;
|
|
1953
|
-
(P =
|
|
1953
|
+
(P = K[z]) > A && P < X && m(po(p.cY, w, M, P));
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
return f;
|
|
1957
1957
|
});
|
|
1958
1958
|
return v.minX = 1 / 0, v.maxX = -1 / 0, v.minY = 1 / 0, v.maxY = -1 / 0, v;
|
|
1959
1959
|
};
|
|
1960
|
-
})(
|
|
1960
|
+
})(U || (U = {}));
|
|
1961
1961
|
var se, vl = function() {
|
|
1962
1962
|
function a() {
|
|
1963
1963
|
}
|
|
1964
1964
|
return a.prototype.round = function(e) {
|
|
1965
|
-
return this.transform(
|
|
1965
|
+
return this.transform(U.ROUND(e));
|
|
1966
1966
|
}, a.prototype.toAbs = function() {
|
|
1967
|
-
return this.transform(
|
|
1967
|
+
return this.transform(U.TO_ABS());
|
|
1968
1968
|
}, a.prototype.toRel = function() {
|
|
1969
|
-
return this.transform(
|
|
1969
|
+
return this.transform(U.TO_REL());
|
|
1970
1970
|
}, a.prototype.normalizeHVZ = function(e, t, r) {
|
|
1971
|
-
return this.transform(
|
|
1971
|
+
return this.transform(U.NORMALIZE_HVZ(e, t, r));
|
|
1972
1972
|
}, a.prototype.normalizeST = function() {
|
|
1973
|
-
return this.transform(
|
|
1973
|
+
return this.transform(U.NORMALIZE_ST());
|
|
1974
1974
|
}, a.prototype.qtToC = function() {
|
|
1975
|
-
return this.transform(
|
|
1975
|
+
return this.transform(U.QT_TO_C());
|
|
1976
1976
|
}, a.prototype.aToC = function() {
|
|
1977
|
-
return this.transform(
|
|
1977
|
+
return this.transform(U.A_TO_C());
|
|
1978
1978
|
}, a.prototype.sanitize = function(e) {
|
|
1979
|
-
return this.transform(
|
|
1979
|
+
return this.transform(U.SANITIZE(e));
|
|
1980
1980
|
}, a.prototype.translate = function(e, t) {
|
|
1981
|
-
return this.transform(
|
|
1981
|
+
return this.transform(U.TRANSLATE(e, t));
|
|
1982
1982
|
}, a.prototype.scale = function(e, t) {
|
|
1983
|
-
return this.transform(
|
|
1983
|
+
return this.transform(U.SCALE(e, t));
|
|
1984
1984
|
}, a.prototype.rotate = function(e, t, r) {
|
|
1985
|
-
return this.transform(
|
|
1985
|
+
return this.transform(U.ROTATE(e, t, r));
|
|
1986
1986
|
}, a.prototype.matrix = function(e, t, r, i, n, o) {
|
|
1987
|
-
return this.transform(
|
|
1987
|
+
return this.transform(U.MATRIX(e, t, r, i, n, o));
|
|
1988
1988
|
}, a.prototype.skewX = function(e) {
|
|
1989
|
-
return this.transform(
|
|
1989
|
+
return this.transform(U.SKEW_X(e));
|
|
1990
1990
|
}, a.prototype.skewY = function(e) {
|
|
1991
|
-
return this.transform(
|
|
1991
|
+
return this.transform(U.SKEW_Y(e));
|
|
1992
1992
|
}, a.prototype.xSymmetry = function(e) {
|
|
1993
|
-
return this.transform(
|
|
1993
|
+
return this.transform(U.X_AXIS_SYMMETRY(e));
|
|
1994
1994
|
}, a.prototype.ySymmetry = function(e) {
|
|
1995
|
-
return this.transform(
|
|
1995
|
+
return this.transform(U.Y_AXIS_SYMMETRY(e));
|
|
1996
1996
|
}, a.prototype.annotateArcs = function() {
|
|
1997
|
-
return this.transform(
|
|
1997
|
+
return this.transform(U.ANNOTATE_ARCS());
|
|
1998
1998
|
}, a;
|
|
1999
|
-
}(),
|
|
1999
|
+
}(), Ob = function(a) {
|
|
2000
2000
|
return a === " " || a === " " || a === "\r" || a === `
|
|
2001
2001
|
`;
|
|
2002
2002
|
}, yo = function(a) {
|
|
@@ -2006,7 +2006,7 @@ var se, vl = function() {
|
|
|
2006
2006
|
var t = a.call(this) || this;
|
|
2007
2007
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2008
2008
|
}
|
|
2009
|
-
return
|
|
2009
|
+
return hl(e, a), e.prototype.finish = function(t) {
|
|
2010
2010
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma) throw new SyntaxError("Unterminated command at the path end.");
|
|
2011
2011
|
return t;
|
|
2012
2012
|
}, e.prototype.parse = function(t, r) {
|
|
@@ -2018,16 +2018,16 @@ var se, vl = function() {
|
|
|
2018
2018
|
var s = t[o], u = !(this.curCommandType !== y.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);
|
|
2019
2019
|
if (!yo(s) || l) if (s !== "e" && s !== "E") if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
2020
2020
|
if (this.curNumber && this.curCommandType !== -1) {
|
|
2021
|
-
var
|
|
2022
|
-
if (isNaN(
|
|
2021
|
+
var c = Number(this.curNumber);
|
|
2022
|
+
if (isNaN(c)) throw new SyntaxError("Invalid number ending at " + o);
|
|
2023
2023
|
if (this.curCommandType === y.ARC) {
|
|
2024
2024
|
if (this.curArgs.length === 0 || this.curArgs.length === 1) {
|
|
2025
|
-
if (0 >
|
|
2025
|
+
if (0 > c) throw new SyntaxError('Expected positive number, got "' + c + '" at index "' + o + '"');
|
|
2026
2026
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1") throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
|
2027
2027
|
}
|
|
2028
|
-
this.curArgs.push(
|
|
2028
|
+
this.curArgs.push(c), this.curArgs.length === wb[this.curCommandType] && (y.HORIZ_LINE_TO === this.curCommandType ? n({ type: y.HORIZ_LINE_TO, relative: this.curCommandRelative, x: c }) : y.VERT_LINE_TO === this.curCommandType ? n({ type: y.VERT_LINE_TO, relative: this.curCommandRelative, y: c }) : this.curCommandType === y.MOVE_TO || this.curCommandType === y.LINE_TO || this.curCommandType === y.SMOOTH_QUAD_TO ? (n({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), y.MOVE_TO === this.curCommandType && (this.curCommandType = y.LINE_TO)) : this.curCommandType === y.CURVE_TO ? n({ type: y.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 === y.SMOOTH_CURVE_TO ? n({ type: y.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === y.QUAD_TO ? n({ type: y.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === y.ARC && n({ type: y.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;
|
|
2029
2029
|
}
|
|
2030
|
-
if (!
|
|
2030
|
+
if (!Ob(s)) if (s === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
|
|
2031
2031
|
else if (s !== "+" && s !== "-" && s !== ".") if (l) this.curNumber = s, this.curNumberHasDecimal = !1;
|
|
2032
2032
|
else {
|
|
2033
2033
|
if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + o + ".");
|
|
@@ -2068,10 +2068,10 @@ var se, vl = function() {
|
|
|
2068
2068
|
var r = a.call(this) || this;
|
|
2069
2069
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2070
2070
|
}
|
|
2071
|
-
return
|
|
2071
|
+
return hl(e, a), e.prototype.encode = function() {
|
|
2072
2072
|
return e.encode(this.commands);
|
|
2073
2073
|
}, e.prototype.getBounds = function() {
|
|
2074
|
-
var t =
|
|
2074
|
+
var t = U.CALCULATE_BOUNDS();
|
|
2075
2075
|
return this.transform(t), t;
|
|
2076
2076
|
}, e.prototype.transform = function(t) {
|
|
2077
2077
|
for (var r = [], i = 0, n = this.commands; i < n.length; i++) {
|
|
@@ -2080,19 +2080,19 @@ var se, vl = function() {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
return this.commands = r, this;
|
|
2082
2082
|
}, e.encode = function(t) {
|
|
2083
|
-
return
|
|
2083
|
+
return Eb(t);
|
|
2084
2084
|
}, e.parse = function(t) {
|
|
2085
2085
|
var r = new Cb(), i = [];
|
|
2086
2086
|
return r.parse(t, i), r.finish(i), i;
|
|
2087
2087
|
}, 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;
|
|
2088
|
-
}(vl), wb = ((se = {})[y.MOVE_TO] = 2, se[y.LINE_TO] = 2, se[y.HORIZ_LINE_TO] = 1, se[y.VERT_LINE_TO] = 1, se[y.CLOSE_PATH] = 0, se[y.QUAD_TO] = 4, se[y.SMOOTH_QUAD_TO] = 2, se[y.CURVE_TO] = 6, se[y.SMOOTH_CURVE_TO] = 4, se[y.ARC] = 7, se), $b = Y, Ab = ve, Pb = _r, Rb =
|
|
2088
|
+
}(vl), wb = ((se = {})[y.MOVE_TO] = 2, se[y.LINE_TO] = 2, se[y.HORIZ_LINE_TO] = 1, se[y.VERT_LINE_TO] = 1, se[y.CLOSE_PATH] = 0, se[y.QUAD_TO] = 4, se[y.SMOOTH_QUAD_TO] = 2, se[y.CURVE_TO] = 6, se[y.SMOOTH_CURVE_TO] = 4, se[y.ARC] = 7, se), $b = Y, Ab = ve, Pb = _r, Rb = Uu, bo = RegExp.prototype, Nb = function(a) {
|
|
2089
2089
|
var e = a.flags;
|
|
2090
2090
|
return e === void 0 && !("flags" in bo) && !Ab(a, "flags") && Pb(bo, a) ? $b(Rb, a) : e;
|
|
2091
|
-
}, Ib =
|
|
2091
|
+
}, Ib = Er.PROPER, Mb = Ue, kb = J, _o = de, Db = V, Vb = Nb, an = "toString", fl = RegExp.prototype, pl = fl[an], Lb = Db(function() {
|
|
2092
2092
|
return pl.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2093
2093
|
}), jb = Ib && pl.name !== an;
|
|
2094
|
-
(
|
|
2095
|
-
var e = kb(this), t = _o(e.source), r = _o(
|
|
2094
|
+
(Lb || jb) && Mb(fl, an, function() {
|
|
2095
|
+
var e = kb(this), t = _o(e.source), r = _o(Vb(e));
|
|
2096
2096
|
return "/" + t + "/" + r;
|
|
2097
2097
|
}, { unsafe: !0 });
|
|
2098
2098
|
function vr(a) {
|
|
@@ -2103,11 +2103,11 @@ function vr(a) {
|
|
|
2103
2103
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2104
2104
|
}, vr(a);
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function Bb(a, e) {
|
|
2107
2107
|
if (!(a instanceof e))
|
|
2108
2108
|
throw new TypeError("Cannot call a class as a function");
|
|
2109
2109
|
}
|
|
2110
|
-
var
|
|
2110
|
+
var Fb = [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], Ub = [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];
|
|
2111
2111
|
function Gb(a, e, t, r, i) {
|
|
2112
2112
|
if (typeof a == "string" && (a = document.getElementById(a)), !a || vr(a) !== "object" || !("getContext" in a))
|
|
2113
2113
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
@@ -2118,56 +2118,56 @@ function Gb(a, e, t, r, i) {
|
|
|
2118
2118
|
throw new Error("unable to access image data: " + o);
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2121
|
+
function Hb(a, e, t, r, i, n) {
|
|
2122
2122
|
if (!(isNaN(n) || n < 1)) {
|
|
2123
2123
|
n |= 0;
|
|
2124
2124
|
var o = Gb(a, e, t, r, i);
|
|
2125
|
-
o =
|
|
2125
|
+
o = zb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2129
|
-
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1,
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
for (var d = null, m = null, _ = 0, b = 0, x =
|
|
2133
|
-
|
|
2134
|
-
for (var
|
|
2135
|
-
|
|
2136
|
-
for (var A = 0, X = 0, W = 0, G = 0, q =
|
|
2137
|
-
var
|
|
2138
|
-
I += (
|
|
2128
|
+
function zb(a, e, t, r, i, n) {
|
|
2129
|
+
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, c = n + 1, v = c * (c + 1) / 2, f = new xo(), h = f, g, p = 1; p < s; p++)
|
|
2130
|
+
h = h.next = new xo(), p === c && (g = h);
|
|
2131
|
+
h.next = f;
|
|
2132
|
+
for (var d = null, m = null, _ = 0, b = 0, x = Fb[n], O = Ub[n], E = 0; E < i; E++) {
|
|
2133
|
+
h = f;
|
|
2134
|
+
for (var S = o[b], w = o[b + 1], N = o[b + 2], M = o[b + 3], B = 0; B < c; B++)
|
|
2135
|
+
h.r = S, h.g = w, h.b = N, h.a = M, h = h.next;
|
|
2136
|
+
for (var A = 0, X = 0, W = 0, G = 0, q = c * S, z = c * w, K = c * N, P = c * M, I = v * S, Q = v * w, ne = v * N, pe = v * M, Te = 1; Te < c; Te++) {
|
|
2137
|
+
var He = b + ((u < Te ? u : Te) << 2), Mt = o[He], on = o[He + 1], un = o[He + 2], ln = o[He + 3], kt = c - Te;
|
|
2138
|
+
I += (h.r = Mt) * kt, Q += (h.g = on) * kt, ne += (h.b = un) * kt, pe += (h.a = ln) * kt, A += Mt, X += on, W += un, G += ln, h = h.next;
|
|
2139
2139
|
}
|
|
2140
2140
|
d = f, m = g;
|
|
2141
2141
|
for (var jr = 0; jr < r; jr++) {
|
|
2142
|
-
var
|
|
2143
|
-
if (o[b + 3] =
|
|
2144
|
-
var
|
|
2145
|
-
o[b] = (I * x >>>
|
|
2142
|
+
var Br = pe * x >>> O;
|
|
2143
|
+
if (o[b + 3] = Br, Br !== 0) {
|
|
2144
|
+
var Fr = 255 / Br;
|
|
2145
|
+
o[b] = (I * x >>> O) * Fr, o[b + 1] = (Q * x >>> O) * Fr, o[b + 2] = (ne * x >>> O) * Fr;
|
|
2146
2146
|
} else
|
|
2147
2147
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
|
2148
|
-
I -= q,
|
|
2148
|
+
I -= q, Q -= z, ne -= K, pe -= P, q -= d.r, z -= d.g, K -= d.b, P -= d.a;
|
|
2149
2149
|
var $e = jr + n + 1;
|
|
2150
|
-
$e = _ + ($e < u ? $e : u) << 2, A += d.r = o[$e], X += d.g = o[$e + 1], W += d.b = o[$e + 2], G += d.a = o[$e + 3], I += A,
|
|
2151
|
-
var Dt = m,
|
|
2152
|
-
q +=
|
|
2150
|
+
$e = _ + ($e < u ? $e : u) << 2, A += d.r = o[$e], X += d.g = o[$e + 1], W += d.b = o[$e + 2], G += d.a = o[$e + 3], I += A, Q += X, ne += W, pe += G, d = d.next;
|
|
2151
|
+
var Dt = m, cn = Dt.r, hn = Dt.g, vn = Dt.b, fn = Dt.a;
|
|
2152
|
+
q += cn, z += hn, K += vn, P += fn, A -= cn, X -= hn, W -= vn, G -= fn, m = m.next, b += 4;
|
|
2153
2153
|
}
|
|
2154
2154
|
_ += r;
|
|
2155
2155
|
}
|
|
2156
|
-
for (var
|
|
2157
|
-
b =
|
|
2158
|
-
var Ae = o[b], Pe = o[b + 1], Re = o[b + 2], te = o[b + 3],
|
|
2159
|
-
|
|
2160
|
-
for (var pn = 0; pn <
|
|
2161
|
-
|
|
2162
|
-
for (var gn = r, Yr = 0, Xr = 0, Wr = 0, qr = 0,
|
|
2163
|
-
b = gn +
|
|
2164
|
-
var
|
|
2165
|
-
|
|
2156
|
+
for (var ze = 0; ze < r; ze++) {
|
|
2157
|
+
b = ze << 2;
|
|
2158
|
+
var Ae = o[b], Pe = o[b + 1], Re = o[b + 2], te = o[b + 3], Ur = c * Ae, Gr = c * Pe, Hr = c * Re, zr = c * te, Vt = v * Ae, Lt = v * Pe, jt = v * Re, Bt = v * te;
|
|
2159
|
+
h = f;
|
|
2160
|
+
for (var pn = 0; pn < c; pn++)
|
|
2161
|
+
h.r = Ae, h.g = Pe, h.b = Re, h.a = te, h = h.next;
|
|
2162
|
+
for (var gn = r, Yr = 0, Xr = 0, Wr = 0, qr = 0, Ft = 1; Ft <= n; Ft++) {
|
|
2163
|
+
b = gn + ze << 2;
|
|
2164
|
+
var Ut = c - Ft;
|
|
2165
|
+
Vt += (h.r = Ae = o[b]) * Ut, Lt += (h.g = Pe = o[b + 1]) * Ut, jt += (h.b = Re = o[b + 2]) * Ut, Bt += (h.a = te = o[b + 3]) * Ut, qr += Ae, Yr += Pe, Xr += Re, Wr += te, h = h.next, Ft < l && (gn += r);
|
|
2166
2166
|
}
|
|
2167
|
-
b =
|
|
2168
|
-
for (var
|
|
2167
|
+
b = ze, d = f, m = g;
|
|
2168
|
+
for (var Kr = 0; Kr < i; Kr++) {
|
|
2169
2169
|
var re = b << 2;
|
|
2170
|
-
o[re + 3] = te =
|
|
2170
|
+
o[re + 3] = te = Bt * x >>> O, te > 0 ? (te = 255 / te, o[re] = (Vt * x >>> O) * te, o[re + 1] = (Lt * x >>> O) * te, o[re + 2] = (jt * x >>> O) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Vt -= Ur, Lt -= Gr, jt -= Hr, Bt -= zr, Ur -= d.r, Gr -= d.g, Hr -= d.b, zr -= d.a, re = ze + ((re = Kr + c) < l ? re : l) * r << 2, Vt += qr += d.r = o[re], Lt += Yr += d.g = o[re + 1], jt += Xr += d.b = o[re + 2], Bt += Wr += d.a = o[re + 3], d = d.next, Ur += Ae = m.r, Gr += Pe = m.g, Hr += Re = m.b, zr += te = m.a, qr -= Ae, Yr -= Pe, Xr -= Re, Wr -= te, m = m.next, b += r;
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
return a;
|
|
@@ -2177,9 +2177,9 @@ var xo = (
|
|
|
2177
2177
|
* Set properties.
|
|
2178
2178
|
*/
|
|
2179
2179
|
function a() {
|
|
2180
|
-
|
|
2180
|
+
Bb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2181
2181
|
}
|
|
2182
|
-
), Yb = { env: { npm_package_dependencies_change_case: "^4.1.2", npm_package_devDependencies_npm_run_all2: "^6.0.6", npm_package_devDependencies_prettier: "^3.0.3", npm_package_publishConfig_registry: "https://npm.pkg.github.com/", TERM_PROGRAM: "
|
|
2182
|
+
), Yb = { env: { npm_package_dependencies_change_case: "^4.1.2", npm_package_devDependencies_npm_run_all2: "^6.0.6", npm_package_devDependencies_prettier: "^3.0.3", npm_package_publishConfig_registry: "https://npm.pkg.github.com/", TERM_PROGRAM: "vscode", NODE: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", INIT_CWD: "/Users/binbinliao/project/portal/apps/mf-transaction", npm_package_dependencies_axios: "^1.6.2", npm_package_dependencies_moment: "^2.30.0", npm_package_devDependencies_typescript: "~5.2.0", TERM: "xterm-256color", SHELL: "/opt/homebrew/bin/fish", npm_package_devDependencies_vite: "^5.1.4", TMPDIR: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_dependencies__feedmepos_print: "file:../../core-legacy-0.1.tar.gz", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", TERM_PROGRAM_VERSION: "1.94.2", npm_package_exports___style: "./dist/style.css", npm_package_scripts_dev: "vite --mode dev --port 5179", npm_package_devDependencies__vitejs_plugin_vue: "^4.3.4", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", npm_package_scripts_purge_beta: "curl https://purge.jsdelivr.net/npm/@feedmepos/mf-team@beta/dist/app.js", TERM_SESSION_ID: "w0t0p0:C47DE04F-7DA6-46C9-BDD3-D84AFCBF2095", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", npm_config_registry: "https://registry.npmjs.org/", npm_package_scripts_deploy_beta: "pnpm run build-only && pnpm run publish-npm:beta && pnpm run publish-github:beta && pnpm run purge:beta", npm_package_dependencies_dayjs: "^1.11.10", npm_package_dependencies_xlsx: "^0.18.5", USER: "binbinliao", npm_package_license: "UNLICENSED", npm_package_dependencies__feedmepos_mf_common: "workspace:^", COMMAND_MODE: "unix2003", npm_package_scripts_deploy: "pnpm run build-only && pnpm run publish-npm && pnpm run publish-github && pnpm run purge:prod", PNPM_SCRIPT_SRC_DIR: "/Users/binbinliao/project/portal/apps/mf-transaction", npm_package_exports___import: "./dist/app.js", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.GrQ4YfzF3w/Listeners", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_eslint: "^8.49.0", npm_package_devDependencies_postcss: "^8.4.31", TERM_FEATURES: "T3LrMSc7UUw9Ts3BFGsSyHNoSxF", npm_package_scripts_publish_github_beta: "npm publish --tag beta --no-git-checks . --access public --@feedmepos:registry=https://npm.pkg.github.com/", npm_execpath: "/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs", npm_package_module: "./dist/app.js", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_scripts_publish_npm_beta: "npm publish --tag beta --no-git-checks . --access public --@feedmepos:registry=https://registry.npmjs.org/", npm_package_dependencies__feedmepos_core: "^2.12.10", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_config_frozen_lockfile: "", TERMINFO_DIRS: "/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo", PATH: "/Users/binbinliao/project/portal/apps/mf-transaction/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/binbinliao/project/portal/node_modules/.bin:/Users/binbinliao/project/portal/apps/mf-transaction/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/binbinliao/project/portal/node_modules/.bin:/opt/homebrew/opt/node@18/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/Users/binbinliao/development/flutter/flutter/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/iTerm.app/Contents/Resources/utilities", npm_package_dependencies_jspdf: "^2.5.1", LaunchInstanceID: "17F46DD4-AB04-493F-944B-9CB9BF5E7B47", npm_package_dependencies_vue: "^3.4.21", __CFBundleIdentifier: "com.microsoft.VSCode", PWD: "/Users/binbinliao/project/portal/apps/mf-transaction", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_command: "run-script", npm_package_devDependencies__tsconfig_node18: "^18.2.2", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_lifecycle_event: "build:mf", LANG: "en_US.UTF-8", npm_package_name: "@feedmepos/mf-transaction", ITERM_PROFILE: "Default", NODE_PATH: "/Users/binbinliao/project/portal/node_modules/.pnpm/vite@5.4.5_@types+node@18.19.50_sass@1.69.5_terser@5.32.0/node_modules/vite/bin/node_modules:/Users/binbinliao/project/portal/node_modules/.pnpm/vite@5.4.5_@types+node@18.19.50_sass@1.69.5_terser@5.32.0/node_modules/vite/node_modules:/Users/binbinliao/project/portal/node_modules/.pnpm/vite@5.4.5_@types+node@18.19.50_sass@1.69.5_terser@5.32.0/node_modules:/Users/binbinliao/project/portal/node_modules/.pnpm/node_modules", npm_package_exports___types: "./dist/apps/mf-transaction/src/app.d.ts", npm_package_scripts_start: "vite --mode prod", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_devDependencies_sass: "1.69.5", XPC_FLAGS: "0x0", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_publish_npm: "npm publish --no-git-checks . --access public --@feedmepos:registry=https://registry.npmjs.org/", npm_package_scripts_purge_prod: "curl https://purge.jsdelivr.net/npm/@feedmepos/mf-team@latest/dist/app.js", npm_config_node_gyp: "/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.0.7-beta", VSCODE_INJECTION: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/binbinliao", SHLVL: "5", COLORFGBG: "15;0", npm_package_type: "module", npm_package_dependencies__feedmepos_payment_model: "0.0.12", npm_package_devDependencies__vue_tsconfig: "^0.4.0", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", LC_TERMINAL_VERSION: "3.5.3", ITERM_SESSION_ID: "w0t0p0:C47DE04F-7DA6-46C9-BDD3-D84AFCBF2095", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", LOGNAME: "binbinliao", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_lifecycle_script: "vite build --mode fmmf", VSCODE_GIT_IPC_HANDLE: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/vscode-git-d179e55ae1.sock", XDG_DATA_DIRS: "/usr/local/share:/usr/share:/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/common/scripts/fish_xdg_data", npm_config_user_agent: "pnpm/9.6.0 npm/? node/v18.20.4 darwin arm64", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_devDependencies__types_node: "^18.17.17", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_scripts_publish_github: "npm publish --no-git-checks . --access public --@feedmepos:registry=https://npm.pkg.github.com/", SECURITYSESSIONID: "186a2", npm_package_dependencies__feedmepos_ui_library: "^1.2.50", npm_package_dependencies_vue_router: "^4.3.0", COLORTERM: "truecolor", npm_package_devDependencies_vue_tsc: "^1.8.11", npm_node_execpath: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", NODE_ENV: "production" } };
|
|
2183
2183
|
function Xb() {
|
|
2184
2184
|
var {
|
|
2185
2185
|
DOMParser: a
|
|
@@ -2221,22 +2221,22 @@ var s_ = /* @__PURE__ */ Object.freeze({
|
|
|
2221
2221
|
offscreen: Xb,
|
|
2222
2222
|
node: Wb
|
|
2223
2223
|
});
|
|
2224
|
-
function
|
|
2224
|
+
function ct(a) {
|
|
2225
2225
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2226
2226
|
}
|
|
2227
2227
|
function qb(a) {
|
|
2228
2228
|
return a.replace(/^[\n \t]+/, "");
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Kb(a) {
|
|
2231
2231
|
return a.replace(/[\n \t]+$/, "");
|
|
2232
2232
|
}
|
|
2233
2233
|
function ie(a) {
|
|
2234
2234
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2235
2235
|
return e.map(parseFloat);
|
|
2236
2236
|
}
|
|
2237
|
-
var
|
|
2237
|
+
var Qb = /^[A-Z-]+$/;
|
|
2238
2238
|
function Zb(a) {
|
|
2239
|
-
return
|
|
2239
|
+
return Qb.test(a) ? a.toLowerCase() : a;
|
|
2240
2240
|
}
|
|
2241
2241
|
function gl(a) {
|
|
2242
2242
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
@@ -2258,19 +2258,19 @@ function o1(a) {
|
|
|
2258
2258
|
return [t, r] = Me(t, e1), e[1] += r, [t, r] = Me(t, t1), e[0] += r, [t, r] = Me(t, r1), e[1] += r, [t, r] = Me(t, a1), e[2] += r, [t, r] = Me(t, i1), e[1] += r, [t, r] = Me(t, n1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = Me(t, s1), e[2] += r, e.join("");
|
|
2259
2259
|
}
|
|
2260
2260
|
var at = 1e-8;
|
|
2261
|
-
function
|
|
2261
|
+
function So(a) {
|
|
2262
2262
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2263
2263
|
}
|
|
2264
2264
|
function _i(a, e) {
|
|
2265
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2265
|
+
return (a[0] * e[0] + a[1] * e[1]) / (So(a) * So(e));
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function To(a, e) {
|
|
2268
2268
|
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(_i(a, e));
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function Eo(a) {
|
|
2271
2271
|
return a * a * a;
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function Oo(a) {
|
|
2274
2274
|
return 3 * a * a * (1 - a);
|
|
2275
2275
|
}
|
|
2276
2276
|
function Co(a) {
|
|
@@ -2288,19 +2288,19 @@ function Ao(a) {
|
|
|
2288
2288
|
function Po(a) {
|
|
2289
2289
|
return (1 - a) * (1 - a);
|
|
2290
2290
|
}
|
|
2291
|
-
class
|
|
2291
|
+
class T {
|
|
2292
2292
|
constructor(e, t, r) {
|
|
2293
2293
|
this.document = e, this.name = t, this.value = r, this.isNormalizedColor = !1;
|
|
2294
2294
|
}
|
|
2295
2295
|
static empty(e) {
|
|
2296
|
-
return new
|
|
2296
|
+
return new T(e, "EMPTY", "");
|
|
2297
2297
|
}
|
|
2298
2298
|
split() {
|
|
2299
2299
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : " ", {
|
|
2300
2300
|
document: t,
|
|
2301
2301
|
name: r
|
|
2302
2302
|
} = this;
|
|
2303
|
-
return
|
|
2303
|
+
return ct(this.getString()).trim().split(e).map((i) => new T(t, r, i));
|
|
2304
2304
|
}
|
|
2305
2305
|
hasValue(e) {
|
|
2306
2306
|
var {
|
|
@@ -2443,7 +2443,7 @@ class E {
|
|
|
2443
2443
|
return null;
|
|
2444
2444
|
}
|
|
2445
2445
|
getTextBaseline() {
|
|
2446
|
-
return this.hasValue() ?
|
|
2446
|
+
return this.hasValue() ? T.textBaselineMapping[this.getString()] : null;
|
|
2447
2447
|
}
|
|
2448
2448
|
addOpacity(e) {
|
|
2449
2449
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
@@ -2452,10 +2452,10 @@ class E {
|
|
|
2452
2452
|
var o = new mi(t);
|
|
2453
2453
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2454
2454
|
}
|
|
2455
|
-
return new
|
|
2455
|
+
return new T(this.document, this.name, t);
|
|
2456
2456
|
}
|
|
2457
2457
|
}
|
|
2458
|
-
|
|
2458
|
+
T.textBaselineMapping = {
|
|
2459
2459
|
baseline: "alphabetic",
|
|
2460
2460
|
"before-edge": "top",
|
|
2461
2461
|
"text-before-edge": "top",
|
|
@@ -2672,35 +2672,35 @@ class kr {
|
|
|
2672
2672
|
height: s,
|
|
2673
2673
|
desiredHeight: u,
|
|
2674
2674
|
minX: l = 0,
|
|
2675
|
-
minY:
|
|
2675
|
+
minY: c = 0,
|
|
2676
2676
|
refX: v,
|
|
2677
2677
|
refY: f,
|
|
2678
|
-
clip:
|
|
2678
|
+
clip: h = !1,
|
|
2679
2679
|
clipX: g = 0,
|
|
2680
2680
|
clipY: p = 0
|
|
2681
|
-
} = e, d =
|
|
2682
|
-
x === "meet" && (N *=
|
|
2683
|
-
var
|
|
2684
|
-
if (X && r.translate(-
|
|
2685
|
-
var W =
|
|
2681
|
+
} = e, d = ct(i).replace(/^defer\s/, ""), [m, _] = d.split(" "), b = m || "xMidYMid", x = _ || "meet", O = n / o, E = s / u, S = Math.min(O, E), w = Math.max(O, E), N = o, M = u;
|
|
2682
|
+
x === "meet" && (N *= S, M *= S), x === "slice" && (N *= w, M *= w);
|
|
2683
|
+
var B = new T(t, "refX", v), A = new T(t, "refY", f), X = B.hasValue() && A.hasValue();
|
|
2684
|
+
if (X && r.translate(-S * B.getPixels("x"), -S * A.getPixels("y")), h) {
|
|
2685
|
+
var W = S * g, G = S * p;
|
|
2686
2686
|
r.beginPath(), r.moveTo(W, G), r.lineTo(n, G), r.lineTo(n, s), r.lineTo(W, s), r.closePath(), r.clip();
|
|
2687
2687
|
}
|
|
2688
2688
|
if (!X) {
|
|
2689
|
-
var q = x === "meet" &&
|
|
2690
|
-
b.startsWith("xMid") && (q ||
|
|
2689
|
+
var q = x === "meet" && S === E, z = x === "slice" && w === E, K = x === "meet" && S === O, P = x === "slice" && w === O;
|
|
2690
|
+
b.startsWith("xMid") && (q || z) && r.translate(n / 2 - N / 2, 0), b.endsWith("YMid") && (K || P) && r.translate(0, s / 2 - M / 2), b.startsWith("xMax") && (q || z) && r.translate(n - N, 0), b.endsWith("YMax") && (K || P) && r.translate(0, s - M);
|
|
2691
2691
|
}
|
|
2692
2692
|
switch (!0) {
|
|
2693
2693
|
case b === "none":
|
|
2694
|
-
r.scale(
|
|
2694
|
+
r.scale(O, E);
|
|
2695
2695
|
break;
|
|
2696
2696
|
case x === "meet":
|
|
2697
|
-
r.scale(
|
|
2697
|
+
r.scale(S, S);
|
|
2698
2698
|
break;
|
|
2699
2699
|
case x === "slice":
|
|
2700
2700
|
r.scale(w, w);
|
|
2701
2701
|
break;
|
|
2702
2702
|
}
|
|
2703
|
-
r.translate(-l, -
|
|
2703
|
+
r.translate(-l, -c);
|
|
2704
2704
|
}
|
|
2705
2705
|
start(e) {
|
|
2706
2706
|
var {
|
|
@@ -2712,23 +2712,23 @@ class kr {
|
|
|
2712
2712
|
forceRedraw: s,
|
|
2713
2713
|
scaleWidth: u,
|
|
2714
2714
|
scaleHeight: l,
|
|
2715
|
-
offsetX:
|
|
2715
|
+
offsetX: c,
|
|
2716
2716
|
offsetY: v
|
|
2717
2717
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
2718
2718
|
FRAMERATE: f,
|
|
2719
|
-
mouse:
|
|
2719
|
+
mouse: h
|
|
2720
2720
|
} = this, g = 1e3 / f;
|
|
2721
2721
|
if (this.frameDuration = g, this.readyPromise = new Promise((b) => {
|
|
2722
2722
|
this.resolveReady = b;
|
|
2723
|
-
}), this.isReady() && this.render(e, n, o, u, l,
|
|
2723
|
+
}), this.isReady() && this.render(e, n, o, u, l, c, v), !!t) {
|
|
2724
2724
|
var p = Date.now(), d = p, m = 0, _ = () => {
|
|
2725
|
-
p = Date.now(), m = p - d, m >= g && (d = p - m % g, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l,
|
|
2725
|
+
p = Date.now(), m = p - d, m >= g && (d = p - m % g, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, c, v), h.runEvents())), this.intervalId = Fa(_);
|
|
2726
2726
|
};
|
|
2727
|
-
r ||
|
|
2727
|
+
r || h.start(), this.intervalId = Fa(_);
|
|
2728
2728
|
}
|
|
2729
2729
|
}
|
|
2730
2730
|
stop() {
|
|
2731
|
-
this.intervalId && (
|
|
2731
|
+
this.intervalId && (Fa.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
|
2732
2732
|
}
|
|
2733
2733
|
shouldUpdate(e, t) {
|
|
2734
2734
|
if (!e) {
|
|
@@ -2744,27 +2744,27 @@ class kr {
|
|
|
2744
2744
|
var {
|
|
2745
2745
|
CLIENT_WIDTH: u,
|
|
2746
2746
|
CLIENT_HEIGHT: l,
|
|
2747
|
-
viewPort:
|
|
2747
|
+
viewPort: c,
|
|
2748
2748
|
ctx: v,
|
|
2749
2749
|
isFirstRender: f
|
|
2750
|
-
} = this,
|
|
2751
|
-
|
|
2750
|
+
} = this, h = v.canvas;
|
|
2751
|
+
c.clear(), h.width && h.height ? c.setCurrent(h.width, h.height) : c.setCurrent(u, l);
|
|
2752
2752
|
var g = e.getStyle("width"), p = e.getStyle("height");
|
|
2753
|
-
!t && (f || typeof i != "number" && typeof n != "number") && (g.hasValue() && (
|
|
2754
|
-
var d =
|
|
2755
|
-
if (t && g.hasValue() && p.hasValue() && (d = g.getPixels("x"), m = p.getPixels("y")),
|
|
2753
|
+
!t && (f || typeof i != "number" && typeof n != "number") && (g.hasValue() && (h.width = g.getPixels("x"), h.style && (h.style.width = "".concat(h.width, "px"))), p.hasValue() && (h.height = p.getPixels("y"), h.style && (h.style.height = "".concat(h.height, "px"))));
|
|
2754
|
+
var d = h.clientWidth || h.width, m = h.clientHeight || h.height;
|
|
2755
|
+
if (t && g.hasValue() && p.hasValue() && (d = g.getPixels("x"), m = p.getPixels("y")), c.setCurrent(d, m), typeof o == "number" && e.getAttribute("x", !0).setValue(o), typeof s == "number" && e.getAttribute("y", !0).setValue(s), typeof i == "number" || typeof n == "number") {
|
|
2756
2756
|
var _ = ie(e.getAttribute("viewBox").getString()), b = 0, x = 0;
|
|
2757
2757
|
if (typeof i == "number") {
|
|
2758
|
-
var
|
|
2759
|
-
|
|
2758
|
+
var O = e.getStyle("width");
|
|
2759
|
+
O.hasValue() ? b = O.getPixels("x") / i : isNaN(_[2]) || (b = _[2] / i);
|
|
2760
2760
|
}
|
|
2761
2761
|
if (typeof n == "number") {
|
|
2762
|
-
var
|
|
2763
|
-
|
|
2762
|
+
var E = e.getStyle("height");
|
|
2763
|
+
E.hasValue() ? x = E.getPixels("y") / n : isNaN(_[3]) || (x = _[3] / n);
|
|
2764
2764
|
}
|
|
2765
2765
|
b || (b = x), x || (x = b), e.getAttribute("width", !0).setValue(i), e.getAttribute("height", !0).setValue(n);
|
|
2766
|
-
var
|
|
2767
|
-
|
|
2766
|
+
var S = e.getStyle("transform", !0, !0);
|
|
2767
|
+
S.setValue("".concat(S.getString(), " scale(").concat(1 / b, ", ").concat(1 / x, ")"));
|
|
2768
2768
|
}
|
|
2769
2769
|
r || v.clearRect(0, 0, d, m), e.render(v), f && (this.isFirstRender = !1);
|
|
2770
2770
|
}
|
|
@@ -2772,13 +2772,13 @@ class kr {
|
|
|
2772
2772
|
kr.defaultWindow = dl;
|
|
2773
2773
|
kr.defaultFetch = ml;
|
|
2774
2774
|
var {
|
|
2775
|
-
defaultFetch:
|
|
2776
|
-
} = kr,
|
|
2777
|
-
class
|
|
2775
|
+
defaultFetch: c1
|
|
2776
|
+
} = kr, h1 = typeof DOMParser < "u" ? DOMParser : null;
|
|
2777
|
+
class Ha {
|
|
2778
2778
|
constructor() {
|
|
2779
2779
|
var {
|
|
2780
|
-
fetch: e =
|
|
2781
|
-
DOMParser: t =
|
|
2780
|
+
fetch: e = c1,
|
|
2781
|
+
DOMParser: t = h1
|
|
2782
2782
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2783
2783
|
this.fetch = e, this.DOMParser = t;
|
|
2784
2784
|
}
|
|
@@ -2840,7 +2840,7 @@ class f1 {
|
|
|
2840
2840
|
constructor(e, t, r) {
|
|
2841
2841
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
2842
2842
|
var i = ie(t);
|
|
2843
|
-
this.angle = new
|
|
2843
|
+
this.angle = new T(e, "angle", i[0]), this.originX = r[0], this.originY = r[1], this.cx = i[1] || 0, this.cy = i[2] || 0;
|
|
2844
2844
|
}
|
|
2845
2845
|
apply(e) {
|
|
2846
2846
|
var {
|
|
@@ -2940,8 +2940,8 @@ class yl {
|
|
|
2940
2940
|
originX: t,
|
|
2941
2941
|
originY: r,
|
|
2942
2942
|
matrix: i
|
|
2943
|
-
} = this, n = i[0], o = i[2], s = i[4], u = i[1], l = i[3],
|
|
2944
|
-
e.translate(p, d), e.transform(g * (l *
|
|
2943
|
+
} = this, n = i[0], o = i[2], s = i[4], u = i[1], l = i[3], c = i[5], v = 0, f = 0, h = 1, g = 1 / (n * (l * h - c * f) - o * (u * h - c * v) + s * (u * f - l * v)), p = t.getPixels("x"), d = r.getPixels("y");
|
|
2944
|
+
e.translate(p, d), e.transform(g * (l * h - c * f), g * (c * v - u * h), g * (s * f - o * h), g * (n * h - s * v), g * (o * c - s * l), g * (s * u - n * c)), e.translate(-p, -d);
|
|
2945
2945
|
}
|
|
2946
2946
|
applyToPoint(e) {
|
|
2947
2947
|
e.applyTransform(this.matrix);
|
|
@@ -2949,7 +2949,7 @@ class yl {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
class bl extends yl {
|
|
2951
2951
|
constructor(e, t, r) {
|
|
2952
|
-
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new
|
|
2952
|
+
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new T(e, "angle", t);
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
class g1 extends bl {
|
|
@@ -2963,26 +2963,26 @@ class d1 extends bl {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
2965
|
function m1(a) {
|
|
2966
|
-
return
|
|
2966
|
+
return ct(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
2967
2967
|
}
|
|
2968
2968
|
function y1(a) {
|
|
2969
2969
|
var [e, t] = a.split("(");
|
|
2970
2970
|
return [e.trim(), t.trim().replace(")", "")];
|
|
2971
2971
|
}
|
|
2972
|
-
class
|
|
2972
|
+
class Le {
|
|
2973
2973
|
constructor(e, t, r) {
|
|
2974
2974
|
this.document = e, this.transforms = [];
|
|
2975
2975
|
var i = m1(t);
|
|
2976
2976
|
i.forEach((n) => {
|
|
2977
2977
|
if (n !== "none") {
|
|
2978
|
-
var [o, s] = y1(n), u =
|
|
2978
|
+
var [o, s] = y1(n), u = Le.transformTypes[o];
|
|
2979
2979
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
2982
2982
|
}
|
|
2983
2983
|
static fromElement(e, t) {
|
|
2984
2984
|
var r = t.getStyle("transform", !1, !0), [i, n = i] = t.getStyle("transform-origin", !1, !0).split(), o = [i, n];
|
|
2985
|
-
return r.hasValue() ? new
|
|
2985
|
+
return r.hasValue() ? new Le(e, r.getString(), o) : null;
|
|
2986
2986
|
}
|
|
2987
2987
|
apply(e) {
|
|
2988
2988
|
for (var {
|
|
@@ -3004,7 +3004,7 @@ class Ve {
|
|
|
3004
3004
|
t[i].applyToPoint(e);
|
|
3005
3005
|
}
|
|
3006
3006
|
}
|
|
3007
|
-
|
|
3007
|
+
Le.transformTypes = {
|
|
3008
3008
|
translate: v1,
|
|
3009
3009
|
rotate: f1,
|
|
3010
3010
|
scale: p1,
|
|
@@ -3018,13 +3018,13 @@ class R {
|
|
|
3018
3018
|
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)) {
|
|
3019
3019
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3020
3020
|
var u = Zb(s.nodeName);
|
|
3021
|
-
this.attributes[u] = new
|
|
3021
|
+
this.attributes[u] = new T(e, u, s.value);
|
|
3022
3022
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3023
3023
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
3024
3024
|
i.forEach((s) => {
|
|
3025
3025
|
if (s) {
|
|
3026
|
-
var [u, l] = s.split(":").map((
|
|
3027
|
-
this.styles[u] = new
|
|
3026
|
+
var [u, l] = s.split(":").map((c) => c.trim());
|
|
3027
|
+
this.styles[u] = new T(e, u, l);
|
|
3028
3028
|
}
|
|
3029
3029
|
});
|
|
3030
3030
|
}
|
|
@@ -3044,16 +3044,16 @@ class R {
|
|
|
3044
3044
|
getAttribute(e) {
|
|
3045
3045
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = this.attributes[e];
|
|
3046
3046
|
if (!r && t) {
|
|
3047
|
-
var i = new
|
|
3047
|
+
var i = new T(this.document, e, "");
|
|
3048
3048
|
return this.attributes[e] = i, i;
|
|
3049
3049
|
}
|
|
3050
|
-
return r ||
|
|
3050
|
+
return r || T.empty(this.document);
|
|
3051
3051
|
}
|
|
3052
3052
|
getHrefAttribute() {
|
|
3053
3053
|
for (var e in this.attributes)
|
|
3054
3054
|
if (e === "href" || e.endsWith(":href"))
|
|
3055
3055
|
return this.attributes[e];
|
|
3056
|
-
return
|
|
3056
|
+
return T.empty(this.document);
|
|
3057
3057
|
}
|
|
3058
3058
|
getStyle(e) {
|
|
3059
3059
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, i = this.styles[e];
|
|
@@ -3073,10 +3073,10 @@ class R {
|
|
|
3073
3073
|
}
|
|
3074
3074
|
}
|
|
3075
3075
|
if (t) {
|
|
3076
|
-
var u = new
|
|
3076
|
+
var u = new T(this.document, e, "");
|
|
3077
3077
|
return this.styles[e] = u, u;
|
|
3078
3078
|
}
|
|
3079
|
-
return i ||
|
|
3079
|
+
return i || T.empty(this.document);
|
|
3080
3080
|
}
|
|
3081
3081
|
render(e) {
|
|
3082
3082
|
if (!(this.getStyle("display").getString() === "none" || this.getStyle("visibility").getString() === "hidden")) {
|
|
@@ -3094,7 +3094,7 @@ class R {
|
|
|
3094
3094
|
setContext(e) {
|
|
3095
3095
|
}
|
|
3096
3096
|
applyEffects(e) {
|
|
3097
|
-
var t =
|
|
3097
|
+
var t = Le.fromElement(this.document, this);
|
|
3098
3098
|
t && t.apply(e);
|
|
3099
3099
|
var r = this.getStyle("clip-path", !1, !0);
|
|
3100
3100
|
if (r.hasValue()) {
|
|
@@ -3171,7 +3171,7 @@ function _1(a) {
|
|
|
3171
3171
|
function x1(a) {
|
|
3172
3172
|
return typeof Yb > "u" ? a : a.trim().split(",").map(_1).join(",");
|
|
3173
3173
|
}
|
|
3174
|
-
function
|
|
3174
|
+
function S1(a) {
|
|
3175
3175
|
if (!a)
|
|
3176
3176
|
return "";
|
|
3177
3177
|
var e = a.trim().toLowerCase();
|
|
@@ -3187,7 +3187,7 @@ function T1(a) {
|
|
|
3187
3187
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function T1(a) {
|
|
3191
3191
|
if (!a)
|
|
3192
3192
|
return "";
|
|
3193
3193
|
var e = a.trim().toLowerCase();
|
|
@@ -3210,36 +3210,36 @@ class Z {
|
|
|
3210
3210
|
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;
|
|
3211
3211
|
}
|
|
3212
3212
|
static parse() {
|
|
3213
|
-
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 =
|
|
3213
|
+
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 = ct(e).trim().split(" "), l = {
|
|
3214
3214
|
fontSize: !1,
|
|
3215
3215
|
fontStyle: !1,
|
|
3216
3216
|
fontWeight: !1,
|
|
3217
3217
|
fontVariant: !1
|
|
3218
3218
|
};
|
|
3219
|
-
return u.forEach((
|
|
3219
|
+
return u.forEach((c) => {
|
|
3220
3220
|
switch (!0) {
|
|
3221
|
-
case (!l.fontStyle && Z.styles.includes(
|
|
3222
|
-
|
|
3221
|
+
case (!l.fontStyle && Z.styles.includes(c)):
|
|
3222
|
+
c !== "inherit" && (r = c), l.fontStyle = !0;
|
|
3223
3223
|
break;
|
|
3224
|
-
case (!l.fontVariant && Z.variants.includes(
|
|
3225
|
-
|
|
3224
|
+
case (!l.fontVariant && Z.variants.includes(c)):
|
|
3225
|
+
c !== "inherit" && (i = c), l.fontStyle = !0, l.fontVariant = !0;
|
|
3226
3226
|
break;
|
|
3227
|
-
case (!l.fontWeight && Z.weights.includes(
|
|
3228
|
-
|
|
3227
|
+
case (!l.fontWeight && Z.weights.includes(c)):
|
|
3228
|
+
c !== "inherit" && (n = c), l.fontStyle = !0, l.fontVariant = !0, l.fontWeight = !0;
|
|
3229
3229
|
break;
|
|
3230
3230
|
case !l.fontSize:
|
|
3231
|
-
|
|
3231
|
+
c !== "inherit" && ([o] = c.split("/")), l.fontStyle = !0, l.fontVariant = !0, l.fontWeight = !0, l.fontSize = !0;
|
|
3232
3232
|
break;
|
|
3233
3233
|
default:
|
|
3234
|
-
|
|
3234
|
+
c !== "inherit" && (s += c);
|
|
3235
3235
|
}
|
|
3236
3236
|
}), new Z(r, i, n, o, s, t);
|
|
3237
3237
|
}
|
|
3238
3238
|
toString() {
|
|
3239
3239
|
return [
|
|
3240
|
-
|
|
3240
|
+
S1(this.fontStyle),
|
|
3241
3241
|
this.fontVariant,
|
|
3242
|
-
|
|
3242
|
+
T1(this.fontWeight),
|
|
3243
3243
|
this.fontSize,
|
|
3244
3244
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3245
3245
|
x1(this.fontFamily)
|
|
@@ -3298,11 +3298,11 @@ class fe {
|
|
|
3298
3298
|
0 < l && l < 1 && (e ? this.addX(this.sumCubic(l, t, r, i, n)) : this.addY(this.sumCubic(l, t, r, i, n)));
|
|
3299
3299
|
return;
|
|
3300
3300
|
}
|
|
3301
|
-
var
|
|
3302
|
-
if (!(
|
|
3303
|
-
var v = (-o + Math.sqrt(
|
|
3301
|
+
var c = Math.pow(o, 2) - 4 * u * s;
|
|
3302
|
+
if (!(c < 0)) {
|
|
3303
|
+
var v = (-o + Math.sqrt(c)) / (2 * s);
|
|
3304
3304
|
0 < v && v < 1 && (e ? this.addX(this.sumCubic(v, t, r, i, n)) : this.addY(this.sumCubic(v, t, r, i, n)));
|
|
3305
|
-
var f = (-o - Math.sqrt(
|
|
3305
|
+
var f = (-o - Math.sqrt(c)) / (2 * s);
|
|
3306
3306
|
0 < f && f < 1 && (e ? this.addX(this.sumCubic(f, t, r, i, n)) : this.addY(this.sumCubic(f, t, r, i, n)));
|
|
3307
3307
|
}
|
|
3308
3308
|
}
|
|
@@ -3311,8 +3311,8 @@ class fe {
|
|
|
3311
3311
|
this.addPoint(e, t), this.addPoint(s, u), this.bezierCurveAdd(!0, e, r, n, s), this.bezierCurveAdd(!1, t, i, o, u);
|
|
3312
3312
|
}
|
|
3313
3313
|
addQuadraticCurve(e, t, r, i, n, o) {
|
|
3314
|
-
var s = e + 0.6666666666666666 * (r - e), u = t + 2 / 3 * (i - t), l = s + 1 / 3 * (n - e),
|
|
3315
|
-
this.addBezierCurve(e, t, s, l, u,
|
|
3314
|
+
var s = e + 0.6666666666666666 * (r - e), u = t + 2 / 3 * (i - t), l = s + 1 / 3 * (n - e), c = u + 1 / 3 * (o - t);
|
|
3315
|
+
this.addBezierCurve(e, t, s, l, u, c, n, o);
|
|
3316
3316
|
}
|
|
3317
3317
|
isPointInBox(e, t) {
|
|
3318
3318
|
var {
|
|
@@ -3431,37 +3431,37 @@ class Ge extends R {
|
|
|
3431
3431
|
u !== "inherit" && (e.fillStyle = u === "none" ? "rgba(0,0,0,0)" : u);
|
|
3432
3432
|
}
|
|
3433
3433
|
if (i.hasValue()) {
|
|
3434
|
-
var l = new
|
|
3434
|
+
var l = new T(this.document, "fill", e.fillStyle).addOpacity(i).getColor();
|
|
3435
3435
|
e.fillStyle = l;
|
|
3436
3436
|
}
|
|
3437
3437
|
if (n.isUrlDefinition()) {
|
|
3438
|
-
var
|
|
3439
|
-
|
|
3438
|
+
var c = n.getFillStyleDefinition(this, o);
|
|
3439
|
+
c && (e.strokeStyle = c);
|
|
3440
3440
|
} else if (n.hasValue()) {
|
|
3441
3441
|
n.getString() === "currentColor" && n.setValue(this.getStyle("color").getColor());
|
|
3442
3442
|
var v = n.getString();
|
|
3443
3443
|
v !== "inherit" && (e.strokeStyle = v === "none" ? "rgba(0,0,0,0)" : v);
|
|
3444
3444
|
}
|
|
3445
3445
|
if (o.hasValue()) {
|
|
3446
|
-
var f = new
|
|
3446
|
+
var f = new T(this.document, "stroke", e.strokeStyle).addOpacity(o).getString();
|
|
3447
3447
|
e.strokeStyle = f;
|
|
3448
3448
|
}
|
|
3449
|
-
var
|
|
3450
|
-
if (
|
|
3451
|
-
var g =
|
|
3449
|
+
var h = this.getStyle("stroke-width");
|
|
3450
|
+
if (h.hasValue()) {
|
|
3451
|
+
var g = h.getPixels();
|
|
3452
3452
|
e.lineWidth = g || at;
|
|
3453
3453
|
}
|
|
3454
3454
|
var p = this.getStyle("stroke-linecap"), d = this.getStyle("stroke-linejoin"), m = this.getStyle("stroke-miterlimit"), _ = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
|
3455
3455
|
if (p.hasValue() && (e.lineCap = p.getString()), d.hasValue() && (e.lineJoin = d.getString()), m.hasValue() && (e.miterLimit = m.getNumber()), _.hasValue() && _.getString() !== "none") {
|
|
3456
3456
|
var x = ie(_.getString());
|
|
3457
3457
|
typeof e.setLineDash < "u" ? e.setLineDash(x) : typeof e.webkitLineDash < "u" ? e.webkitLineDash = x : typeof e.mozDash < "u" && !(x.length === 1 && x[0] === 0) && (e.mozDash = x);
|
|
3458
|
-
var
|
|
3459
|
-
typeof e.lineDashOffset < "u" ? e.lineDashOffset =
|
|
3458
|
+
var O = b.getPixels();
|
|
3459
|
+
typeof e.lineDashOffset < "u" ? e.lineDashOffset = O : typeof e.webkitLineDashOffset < "u" ? e.webkitLineDashOffset = O : typeof e.mozDashOffset < "u" && (e.mozDashOffset = O);
|
|
3460
3460
|
}
|
|
3461
3461
|
}
|
|
3462
3462
|
if (this.modifiedEmSizeStack = !1, typeof e.font < "u") {
|
|
3463
|
-
var
|
|
3464
|
-
|
|
3463
|
+
var E = this.getStyle("font"), S = this.getStyle("font-style"), w = this.getStyle("font-variant"), N = this.getStyle("font-weight"), M = this.getStyle("font-size"), B = this.getStyle("font-family"), A = new Z(S.getString(), w.getString(), N.getString(), M.hasValue() ? "".concat(M.getPixels(!0), "px") : "", B.getString(), Z.parse(E.getString(), e.font));
|
|
3464
|
+
S.setValue(A.fontStyle), w.setValue(A.fontVariant), N.setValue(A.fontWeight), M.setValue(A.fontSize), B.setValue(A.fontFamily), e.font = A.toString(), M.isPixels() && (this.document.emSize = M.getPixels(), this.modifiedEmSizeStack = !0);
|
|
3465
3465
|
}
|
|
3466
3466
|
t || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
|
3467
3467
|
}
|
|
@@ -3529,13 +3529,13 @@ class $ extends Ge {
|
|
|
3529
3529
|
if (r) {
|
|
3530
3530
|
var i = r.length - 1, n = this.getStyle("marker-start"), o = this.getStyle("marker-mid"), s = this.getStyle("marker-end");
|
|
3531
3531
|
if (n.isUrlDefinition()) {
|
|
3532
|
-
var u = n.getDefinition(), [l,
|
|
3533
|
-
u.render(e, l,
|
|
3532
|
+
var u = n.getDefinition(), [l, c] = r[0];
|
|
3533
|
+
u.render(e, l, c);
|
|
3534
3534
|
}
|
|
3535
3535
|
if (o.isUrlDefinition())
|
|
3536
3536
|
for (var v = o.getDefinition(), f = 1; f < i; f++) {
|
|
3537
|
-
var [
|
|
3538
|
-
v.render(e,
|
|
3537
|
+
var [h, g] = r[f];
|
|
3538
|
+
v.render(e, h, g);
|
|
3539
3539
|
}
|
|
3540
3540
|
if (s.isUrlDefinition()) {
|
|
3541
3541
|
var p = s.getDefinition(), [d, m] = r[i];
|
|
@@ -3721,13 +3721,13 @@ class $ extends Ge {
|
|
|
3721
3721
|
xRot: o,
|
|
3722
3722
|
lArcFlag: s,
|
|
3723
3723
|
sweepFlag: u
|
|
3724
|
-
} = r, l = o * (Math.PI / 180),
|
|
3724
|
+
} = r, l = o * (Math.PI / 180), c = e.getAsCurrentPoint(), v = new D(Math.cos(l) * (t.x - c.x) / 2 + Math.sin(l) * (t.y - c.y) / 2, -Math.sin(l) * (t.x - c.x) / 2 + Math.cos(l) * (t.y - c.y) / 2), f = Math.pow(v.x, 2) / Math.pow(i, 2) + Math.pow(v.y, 2) / Math.pow(n, 2);
|
|
3725
3725
|
f > 1 && (i *= Math.sqrt(f), n *= Math.sqrt(f));
|
|
3726
|
-
var
|
|
3727
|
-
isNaN(
|
|
3728
|
-
var g = new D(
|
|
3726
|
+
var h = (s === u ? -1 : 1) * Math.sqrt((Math.pow(i, 2) * Math.pow(n, 2) - Math.pow(i, 2) * Math.pow(v.y, 2) - Math.pow(n, 2) * Math.pow(v.x, 2)) / (Math.pow(i, 2) * Math.pow(v.y, 2) + Math.pow(n, 2) * Math.pow(v.x, 2)));
|
|
3727
|
+
isNaN(h) && (h = 0);
|
|
3728
|
+
var g = new D(h * i * v.y / n, h * -n * v.x / i), p = new D((t.x + c.x) / 2 + Math.cos(l) * g.x - Math.sin(l) * g.y, (t.y + c.y) / 2 + Math.sin(l) * g.x + Math.cos(l) * g.y), d = To([1, 0], [(v.x - g.x) / i, (v.y - g.y) / n]), m = [(v.x - g.x) / i, (v.y - g.y) / n], _ = [(-v.x - g.x) / i, (-v.y - g.y) / n], b = To(m, _);
|
|
3729
3729
|
return _i(m, _) <= -1 && (b = Math.PI), _i(m, _) >= 1 && (b = 0), {
|
|
3730
|
-
currentPoint:
|
|
3730
|
+
currentPoint: c,
|
|
3731
3731
|
rX: i,
|
|
3732
3732
|
rY: n,
|
|
3733
3733
|
sweepFlag: u,
|
|
@@ -3747,12 +3747,12 @@ class $ extends Ge {
|
|
|
3747
3747
|
sweepFlag: s,
|
|
3748
3748
|
xAxisRotation: u,
|
|
3749
3749
|
centp: l,
|
|
3750
|
-
a1:
|
|
3750
|
+
a1: c,
|
|
3751
3751
|
ad: v
|
|
3752
|
-
} = $.pathA(r), f = 1 - s ? 1 : -1,
|
|
3753
|
-
if (r.addMarkerAngle(g,
|
|
3752
|
+
} = $.pathA(r), f = 1 - s ? 1 : -1, h = c + f * (v / 2), g = new D(l.x + n * Math.cos(h), l.y + o * Math.sin(h));
|
|
3753
|
+
if (r.addMarkerAngle(g, h - f * Math.PI / 2), r.addMarkerAngle(i, h - f * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(c) && !isNaN(v)) {
|
|
3754
3754
|
var p = n > o ? n : o, d = n > o ? 1 : n / o, m = n > o ? o / n : 1;
|
|
3755
|
-
e.translate(l.x, l.y), e.rotate(u), e.scale(d, m), e.arc(0, 0, p,
|
|
3755
|
+
e.translate(l.x, l.y), e.rotate(u), e.scale(d, m), e.arc(0, 0, p, c, c + v, !!(1 - s)), e.scale(1 / d, 1 / m), e.rotate(-u), e.translate(-l.x, -l.y);
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
3758
|
static pathZ(e) {
|
|
@@ -3806,8 +3806,8 @@ class we extends Ge {
|
|
|
3806
3806
|
if (e.isArabic) {
|
|
3807
3807
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3808
3808
|
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") {
|
|
3809
|
-
var
|
|
3810
|
-
n =
|
|
3809
|
+
var c = e.glyphs[i];
|
|
3810
|
+
n = c instanceof _l ? c : c[l];
|
|
3811
3811
|
}
|
|
3812
3812
|
} else
|
|
3813
3813
|
n = e.glyphs[i];
|
|
@@ -3817,12 +3817,12 @@ class we extends Ge {
|
|
|
3817
3817
|
return "";
|
|
3818
3818
|
}
|
|
3819
3819
|
getTextFromNode(e) {
|
|
3820
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
|
3820
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = ct(
|
|
3821
3821
|
// textNode.value
|
|
3822
3822
|
// || textNode.text
|
|
3823
3823
|
t.textContent || ""
|
|
3824
3824
|
);
|
|
3825
|
-
return i === 0 && (o = qb(o)), i === n && (o =
|
|
3825
|
+
return i === 0 && (o = qb(o)), i === n && (o = Kb(o)), o;
|
|
3826
3826
|
}
|
|
3827
3827
|
renderChildren(e) {
|
|
3828
3828
|
if (this.type !== "text") {
|
|
@@ -3845,11 +3845,11 @@ class we extends Ge {
|
|
|
3845
3845
|
if (n) {
|
|
3846
3846
|
for (var {
|
|
3847
3847
|
unitsPerEm: o
|
|
3848
|
-
} = n.fontFace, s = Z.parse(t.ctx.font), u = r.getStyle("font-size").getNumber(s.fontSize), l = r.getStyle("font-style").getString(s.fontStyle),
|
|
3848
|
+
} = n.fontFace, s = Z.parse(t.ctx.font), u = r.getStyle("font-size").getNumber(s.fontSize), l = r.getStyle("font-style").getString(s.fontStyle), c = u / o, v = n.isRTL ? i.split("").reverse().join("") : i, f = ie(r.getAttribute("dx").getString()), h = v.length, g = 0; g < h; g++) {
|
|
3849
3849
|
var p = this.getGlyph(n, v, g);
|
|
3850
|
-
e.translate(this.x, this.y), e.scale(
|
|
3850
|
+
e.translate(this.x, this.y), e.scale(c, -c);
|
|
3851
3851
|
var d = e.lineWidth;
|
|
3852
|
-
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0), p.render(e), l === "italic" && e.transform(1, 0, -0.4, 1, 0, 0), e.lineWidth = d, e.scale(1 /
|
|
3852
|
+
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0), p.render(e), l === "italic" && e.transform(1, 0, -0.4, 1, 0, 0), e.lineWidth = d, e.scale(1 / c, -1 / c), e.translate(-this.x, -this.y), this.x += u * (p.horizAdvX || n.horizAdvX) / o, typeof f[g] < "u" && !isNaN(f[g]) && (this.x += f[g]);
|
|
3853
3853
|
}
|
|
3854
3854
|
return;
|
|
3855
3855
|
}
|
|
@@ -3884,7 +3884,7 @@ class we extends Ge {
|
|
|
3884
3884
|
if (typeof n.measureText != "function")
|
|
3885
3885
|
return n;
|
|
3886
3886
|
e.save(), n.setContext(e, !0);
|
|
3887
|
-
var o = n.getAttribute("x"), s = n.getAttribute("y"), u = n.getAttribute("dx"), l = n.getAttribute("dy"),
|
|
3887
|
+
var o = n.getAttribute("x"), s = n.getAttribute("y"), u = n.getAttribute("dx"), l = n.getAttribute("dy"), c = n.getStyle("font-family").getDefinition(), v = !!c && c.isRTL;
|
|
3888
3888
|
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")));
|
|
3889
3889
|
var f = n.measureText(e);
|
|
3890
3890
|
return v && (t.x -= f), 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, v || (t.x += f), 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 + f), t.maxX = Math.max(t.maxX, n.x, n.x + f), n.clearContext(e), e.restore(), n;
|
|
@@ -3921,9 +3921,9 @@ class we extends Ge {
|
|
|
3921
3921
|
parent: r
|
|
3922
3922
|
} = this, i = r.getStyle("font-family").getDefinition();
|
|
3923
3923
|
if (i) {
|
|
3924
|
-
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s = ie(r.getAttribute("dx").getString()), u = o.length, l = 0,
|
|
3925
|
-
var v = this.getGlyph(i, o,
|
|
3926
|
-
l += (v.horizAdvX || i.horizAdvX) * n / i.fontFace.unitsPerEm, typeof s[
|
|
3924
|
+
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s = ie(r.getAttribute("dx").getString()), u = o.length, l = 0, c = 0; c < u; c++) {
|
|
3925
|
+
var v = this.getGlyph(i, o, c);
|
|
3926
|
+
l += (v.horizAdvX || i.horizAdvX) * n / i.fontFace.unitsPerEm, typeof s[c] < "u" && !isNaN(s[c]) && (l += s[c]);
|
|
3927
3927
|
}
|
|
3928
3928
|
return l;
|
|
3929
3929
|
}
|
|
@@ -3959,7 +3959,7 @@ class Dr extends we {
|
|
|
3959
3959
|
return this.text;
|
|
3960
3960
|
}
|
|
3961
3961
|
}
|
|
3962
|
-
class
|
|
3962
|
+
class E1 extends Dr {
|
|
3963
3963
|
constructor() {
|
|
3964
3964
|
super(...arguments), this.type = "textNode";
|
|
3965
3965
|
}
|
|
@@ -3977,7 +3977,7 @@ class It extends Ge {
|
|
|
3977
3977
|
} = r, o = e.canvas;
|
|
3978
3978
|
if (i.setDefaults(e), o.style && typeof e.font < "u" && n && typeof n.getComputedStyle < "u") {
|
|
3979
3979
|
e.font = n.getComputedStyle(o).getPropertyValue("font");
|
|
3980
|
-
var s = new
|
|
3980
|
+
var s = new T(r, "fontSize", Z.parse(e.font).fontSize);
|
|
3981
3981
|
s.hasValue() && (r.rootEmSize = s.getPixels("y"), r.emSize = r.rootEmSize);
|
|
3982
3982
|
}
|
|
3983
3983
|
this.getAttribute("x").hasValue() || this.getAttribute("x", !0).setValue(0), this.getAttribute("y").hasValue() || this.getAttribute("y", !0).setValue(0);
|
|
@@ -3986,8 +3986,8 @@ class It extends Ge {
|
|
|
3986
3986
|
height: l
|
|
3987
3987
|
} = i.viewPort;
|
|
3988
3988
|
this.getStyle("width").hasValue() || this.getStyle("width", !0).setValue("100%"), this.getStyle("height").hasValue() || this.getStyle("height", !0).setValue("100%"), this.getStyle("color").hasValue() || this.getStyle("color", !0).setValue("black");
|
|
3989
|
-
var
|
|
3990
|
-
|
|
3989
|
+
var c = this.getAttribute("refX"), v = this.getAttribute("refY"), f = this.getAttribute("viewBox"), h = f.hasValue() ? ie(f.getString()) : null, g = !this.root && this.getStyle("overflow").getValue("hidden") !== "visible", p = 0, d = 0, m = 0, _ = 0;
|
|
3990
|
+
h && (p = h[0], d = h[1]), this.root || (u = this.getStyle("width").getPixels("x"), l = this.getStyle("height").getPixels("y"), this.type === "marker" && (m = p, _ = d, p = 0, d = 0)), i.viewPort.setCurrent(u, l), this.node && (!this.parent || ((t = this.node.parentNode) === null || t === void 0 ? void 0 : t.nodeName) === "foreignObject") && this.getStyle("transform", !1, !0).hasValue() && !this.getStyle("transform-origin", !1, !0).hasValue() && this.getStyle("transform-origin", !0, !0).setValue("50% 50%"), super.setContext(e), e.translate(this.getAttribute("x").getPixels("x"), this.getAttribute("y").getPixels("y")), h && (u = h[2], l = h[3]), r.setViewBox({
|
|
3991
3991
|
ctx: e,
|
|
3992
3992
|
aspectRatio: this.getAttribute("preserveAspectRatio").getString(),
|
|
3993
3993
|
width: i.viewPort.width,
|
|
@@ -3996,12 +3996,12 @@ class It extends Ge {
|
|
|
3996
3996
|
desiredHeight: l,
|
|
3997
3997
|
minX: p,
|
|
3998
3998
|
minY: d,
|
|
3999
|
-
refX:
|
|
3999
|
+
refX: c.getValue(),
|
|
4000
4000
|
refY: v.getValue(),
|
|
4001
4001
|
clip: g,
|
|
4002
4002
|
clipX: m,
|
|
4003
4003
|
clipY: _
|
|
4004
|
-
}),
|
|
4004
|
+
}), h && (i.viewPort.removeCurrent(), i.viewPort.setCurrent(u, l));
|
|
4005
4005
|
}
|
|
4006
4006
|
clearContext(e) {
|
|
4007
4007
|
super.clearContext(e), this.document.screen.viewPort.removeCurrent();
|
|
@@ -4018,8 +4018,8 @@ class It extends Ge {
|
|
|
4018
4018
|
if (typeof r == "string")
|
|
4019
4019
|
this.getAttribute("preserveAspectRatio", !0).setValue(r);
|
|
4020
4020
|
else {
|
|
4021
|
-
var
|
|
4022
|
-
|
|
4021
|
+
var c = this.getAttribute("preserveAspectRatio");
|
|
4022
|
+
c.hasValue() && c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/, "$1"));
|
|
4023
4023
|
}
|
|
4024
4024
|
if (i.setValue(e), n.setValue(t), o.hasValue() || o.setValue("0 0 ".concat(u || e, " ").concat(l || t)), s.hasValue()) {
|
|
4025
4025
|
var v = this.getStyle("width"), f = this.getStyle("height");
|
|
@@ -4034,8 +4034,8 @@ class xl extends $ {
|
|
|
4034
4034
|
path(e) {
|
|
4035
4035
|
var t = this.getAttribute("x").getPixels("x"), r = this.getAttribute("y").getPixels("y"), i = this.getStyle("width", !1, !0).getPixels("x"), n = this.getStyle("height", !1, !0).getPixels("y"), o = this.getAttribute("rx"), s = this.getAttribute("ry"), u = o.getPixels("x"), l = s.getPixels("y");
|
|
4036
4036
|
if (o.hasValue() && !s.hasValue() && (l = u), s.hasValue() && !o.hasValue() && (u = l), u = Math.min(u, i / 2), l = Math.min(l, n / 2), e) {
|
|
4037
|
-
var
|
|
4038
|
-
e.beginPath(), n > 0 && i > 0 && (e.moveTo(t + u, r), e.lineTo(t + i - u, r), e.bezierCurveTo(t + i - u +
|
|
4037
|
+
var c = 4 * ((Math.sqrt(2) - 1) / 3);
|
|
4038
|
+
e.beginPath(), n > 0 && i > 0 && (e.moveTo(t + u, r), e.lineTo(t + i - u, r), e.bezierCurveTo(t + i - u + c * u, r, t + i, r + l - c * l, t + i, r + l), e.lineTo(t + i, r + n - l), e.bezierCurveTo(t + i, r + n - l + c * l, t + i - u + c * u, r + n, t + i - u, r + n), e.lineTo(t + u, r + n), e.bezierCurveTo(t + u - c * u, r + n, t, r + n - l + c * l, t, r + n - l), e.lineTo(t, r + l), e.bezierCurveTo(t, r + l - c * l, t + u - c * u, r, t + u, r), e.closePath());
|
|
4039
4039
|
}
|
|
4040
4040
|
return new fe(t, r, t + i, r + n);
|
|
4041
4041
|
}
|
|
@@ -4043,7 +4043,7 @@ class xl extends $ {
|
|
|
4043
4043
|
return null;
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
4046
|
-
class
|
|
4046
|
+
class O1 extends $ {
|
|
4047
4047
|
constructor() {
|
|
4048
4048
|
super(...arguments), this.type = "circle";
|
|
4049
4049
|
}
|
|
@@ -4089,7 +4089,7 @@ class w1 extends $ {
|
|
|
4089
4089
|
return [[e, r], [t, r]];
|
|
4090
4090
|
}
|
|
4091
4091
|
}
|
|
4092
|
-
class
|
|
4092
|
+
class Sl extends $ {
|
|
4093
4093
|
constructor(e, t, r) {
|
|
4094
4094
|
super(e, t, r), this.type = "polyline", this.points = [], this.points = D.parsePath(this.getAttribute("points").getString());
|
|
4095
4095
|
}
|
|
@@ -4117,7 +4117,7 @@ class Tl extends $ {
|
|
|
4117
4117
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4118
4118
|
}
|
|
4119
4119
|
}
|
|
4120
|
-
class $1 extends
|
|
4120
|
+
class $1 extends Sl {
|
|
4121
4121
|
constructor() {
|
|
4122
4122
|
super(...arguments), this.type = "polygon";
|
|
4123
4123
|
}
|
|
@@ -4135,14 +4135,14 @@ class A1 extends R {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
createPattern(e, t, r) {
|
|
4137
4137
|
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new It(this.document, null);
|
|
4138
|
-
o.attributes.viewBox = new
|
|
4139
|
-
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"),
|
|
4140
|
-
l.hasValue() &&
|
|
4138
|
+
o.attributes.viewBox = new T(this.document, "viewBox", this.getAttribute("viewBox").getValue()), o.attributes.width = new T(this.document, "width", "".concat(i, "px")), o.attributes.height = new T(this.document, "height", "".concat(n, "px")), o.attributes.transform = new T(this.document, "transform", this.getAttribute("patternTransform").getValue()), o.children = this.children;
|
|
4139
|
+
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), c = this.getAttribute("y");
|
|
4140
|
+
l.hasValue() && c.hasValue() && u.translate(l.getPixels("x", !0), c.getPixels("y", !0)), r.hasValue() ? this.styles["fill-opacity"] = r : Reflect.deleteProperty(this.styles, "fill-opacity");
|
|
4141
4141
|
for (var v = -1; v <= 1; v++)
|
|
4142
4142
|
for (var f = -1; f <= 1; f++)
|
|
4143
|
-
u.save(), o.attributes.x = new
|
|
4144
|
-
var
|
|
4145
|
-
return
|
|
4143
|
+
u.save(), o.attributes.x = new T(this.document, "x", v * s.width), o.attributes.y = new T(this.document, "y", f * s.height), o.render(u), u.restore();
|
|
4144
|
+
var h = e.createPattern(s, "repeat");
|
|
4145
|
+
return h;
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
4148
4148
|
class P1 extends R {
|
|
@@ -4157,7 +4157,7 @@ class P1 extends R {
|
|
|
4157
4157
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
|
4158
4158
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
|
4159
4159
|
var u = new It(this.document, null);
|
|
4160
|
-
u.type = this.type, u.attributes.viewBox = new
|
|
4160
|
+
u.type = this.type, u.attributes.viewBox = new T(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new T(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new T(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new T(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new T(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new T(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new T(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new T(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);
|
|
4161
4161
|
}
|
|
4162
4162
|
}
|
|
4163
4163
|
}
|
|
@@ -4179,7 +4179,7 @@ class nn extends Ge {
|
|
|
4179
4179
|
}), t;
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
|
-
class
|
|
4182
|
+
class Tl extends R {
|
|
4183
4183
|
constructor(e, t, r) {
|
|
4184
4184
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4185
4185
|
var {
|
|
@@ -4209,14 +4209,14 @@ class El extends R {
|
|
|
4209
4209
|
} = this, {
|
|
4210
4210
|
MAX_VIRTUAL_PIXELS: u,
|
|
4211
4211
|
viewPort: l
|
|
4212
|
-
} = s.screen, [
|
|
4213
|
-
v.attributes.x = new
|
|
4212
|
+
} = s.screen, [c] = l.viewPorts, v = new xl(s, null);
|
|
4213
|
+
v.attributes.x = new T(s, "x", -u / 3), v.attributes.y = new T(s, "y", -u / 3), v.attributes.width = new T(s, "width", u), v.attributes.height = new T(s, "height", u);
|
|
4214
4214
|
var f = new nn(s, null);
|
|
4215
|
-
f.attributes.transform = new
|
|
4216
|
-
var
|
|
4217
|
-
|
|
4218
|
-
var g = s.createCanvas(
|
|
4219
|
-
return p.fillStyle = o,
|
|
4215
|
+
f.attributes.transform = new T(s, "transform", this.getAttribute("gradientTransform").getValue()), f.children = [v];
|
|
4216
|
+
var h = new It(s, null);
|
|
4217
|
+
h.attributes.x = new T(s, "x", 0), h.attributes.y = new T(s, "y", 0), h.attributes.width = new T(s, "width", c.width), h.attributes.height = new T(s, "height", c.height), h.children = [f];
|
|
4218
|
+
var g = s.createCanvas(c.width, c.height), p = g.getContext("2d");
|
|
4219
|
+
return p.fillStyle = o, h.render(p), p.createPattern(g, "no-repeat");
|
|
4220
4220
|
}
|
|
4221
4221
|
return o;
|
|
4222
4222
|
}
|
|
@@ -4227,13 +4227,13 @@ class El extends R {
|
|
|
4227
4227
|
}
|
|
4228
4228
|
addParentOpacity(e, t) {
|
|
4229
4229
|
if (e.hasValue()) {
|
|
4230
|
-
var r = new
|
|
4230
|
+
var r = new T(this.document, "color", t);
|
|
4231
4231
|
return r.addOpacity(e).getColor();
|
|
4232
4232
|
}
|
|
4233
4233
|
return t;
|
|
4234
4234
|
}
|
|
4235
4235
|
}
|
|
4236
|
-
class N1 extends
|
|
4236
|
+
class N1 extends Tl {
|
|
4237
4237
|
constructor(e, t, r) {
|
|
4238
4238
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4239
4239
|
}
|
|
@@ -4246,7 +4246,7 @@ class N1 extends El {
|
|
|
4246
4246
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
class I1 extends
|
|
4249
|
+
class I1 extends Tl {
|
|
4250
4250
|
constructor(e, t, r) {
|
|
4251
4251
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4252
4252
|
}
|
|
@@ -4257,8 +4257,8 @@ class I1 extends El {
|
|
|
4257
4257
|
this.getAttribute("cx").hasValue() || this.getAttribute("cx", !0).setValue("50%"), this.getAttribute("cy").hasValue() || this.getAttribute("cy", !0).setValue("50%"), this.getAttribute("r").hasValue() || this.getAttribute("r", !0).setValue("50%");
|
|
4258
4258
|
var n = r ? i.x + i.width * this.getAttribute("cx").getNumber() : this.getAttribute("cx").getPixels("x"), o = r ? i.y + i.height * this.getAttribute("cy").getNumber() : this.getAttribute("cy").getPixels("y"), s = n, u = o;
|
|
4259
4259
|
this.getAttribute("fx").hasValue() && (s = r ? i.x + i.width * this.getAttribute("fx").getNumber() : this.getAttribute("fx").getPixels("x")), this.getAttribute("fy").hasValue() && (u = r ? i.y + i.height * this.getAttribute("fy").getNumber() : this.getAttribute("fy").getPixels("y"));
|
|
4260
|
-
var l = r ? (i.width + i.height) / 2 * this.getAttribute("r").getNumber() : this.getAttribute("r").getPixels(),
|
|
4261
|
-
return e.createRadialGradient(s, u,
|
|
4260
|
+
var l = r ? (i.width + i.height) / 2 * this.getAttribute("r").getNumber() : this.getAttribute("r").getPixels(), c = this.getAttribute("fr").getPixels();
|
|
4261
|
+
return e.createRadialGradient(s, u, c, n, o, l);
|
|
4262
4262
|
}
|
|
4263
4263
|
}
|
|
4264
4264
|
class M1 extends R {
|
|
@@ -4270,7 +4270,7 @@ class M1 extends R {
|
|
|
4270
4270
|
}
|
|
4271
4271
|
class sn extends R {
|
|
4272
4272
|
constructor(e, t, r) {
|
|
4273
|
-
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
|
|
4273
|
+
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 T(e, "values", null);
|
|
4274
4274
|
var i = this.getAttribute("values");
|
|
4275
4275
|
i.hasValue() && this.values.setValue(i.getString().split(";"));
|
|
4276
4276
|
}
|
|
@@ -4323,7 +4323,7 @@ class sn extends R {
|
|
|
4323
4323
|
};
|
|
4324
4324
|
if (t.hasValue()) {
|
|
4325
4325
|
var i = r.progress * (t.getValue().length - 1), n = Math.floor(i), o = Math.ceil(i);
|
|
4326
|
-
r.from = new
|
|
4326
|
+
r.from = new T(e, "from", parseFloat(t.getValue()[n])), r.to = new T(e, "to", parseFloat(t.getValue()[o])), r.progress = (i - n) / (o - n);
|
|
4327
4327
|
} else
|
|
4328
4328
|
r.from = this.from, r.to = this.to;
|
|
4329
4329
|
return r;
|
|
@@ -4362,7 +4362,7 @@ class D1 extends sn {
|
|
|
4362
4362
|
return o;
|
|
4363
4363
|
}
|
|
4364
4364
|
}
|
|
4365
|
-
class
|
|
4365
|
+
class V1 extends R {
|
|
4366
4366
|
constructor(e, t, r) {
|
|
4367
4367
|
super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4368
4368
|
var {
|
|
@@ -4391,7 +4391,7 @@ class L1 extends R {
|
|
|
4391
4391
|
render() {
|
|
4392
4392
|
}
|
|
4393
4393
|
}
|
|
4394
|
-
class
|
|
4394
|
+
class L1 extends R {
|
|
4395
4395
|
constructor(e, t, r) {
|
|
4396
4396
|
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();
|
|
4397
4397
|
}
|
|
@@ -4401,7 +4401,7 @@ class j1 extends $ {
|
|
|
4401
4401
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
4404
|
-
class
|
|
4404
|
+
class B1 extends we {
|
|
4405
4405
|
constructor() {
|
|
4406
4406
|
super(...arguments), this.type = "tref";
|
|
4407
4407
|
}
|
|
@@ -4415,7 +4415,7 @@ class U1 extends we {
|
|
|
4415
4415
|
return "";
|
|
4416
4416
|
}
|
|
4417
4417
|
}
|
|
4418
|
-
class
|
|
4418
|
+
class F1 extends we {
|
|
4419
4419
|
constructor(e, t, r) {
|
|
4420
4420
|
super(e, t, r), this.type = "a";
|
|
4421
4421
|
var {
|
|
@@ -4435,7 +4435,7 @@ class B1 extends we {
|
|
|
4435
4435
|
y: i
|
|
4436
4436
|
} = this, {
|
|
4437
4437
|
mouse: n
|
|
4438
|
-
} = t.screen, o = new
|
|
4438
|
+
} = t.screen, o = new T(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4439
4439
|
n.isWorking() && n.checkBoundingBox(this, new fe(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4440
4440
|
} else if (this.children.length > 0) {
|
|
4441
4441
|
var s = new nn(this.document, null);
|
|
@@ -4474,7 +4474,7 @@ function ir(a) {
|
|
|
4474
4474
|
}
|
|
4475
4475
|
return a;
|
|
4476
4476
|
}
|
|
4477
|
-
class
|
|
4477
|
+
class U1 extends we {
|
|
4478
4478
|
constructor(e, t, r) {
|
|
4479
4479
|
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]]);
|
|
4480
4480
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4506,8 +4506,8 @@ class F1 extends we {
|
|
|
4506
4506
|
e && e.quadraticCurveTo(n[0], n[1], n[2], n[3]);
|
|
4507
4507
|
break;
|
|
4508
4508
|
case C.ARC: {
|
|
4509
|
-
var [o, s, u, l,
|
|
4510
|
-
e && (e.translate(o, s), e.rotate(f), e.scale(p, d), e.arc(0, 0, g,
|
|
4509
|
+
var [o, s, u, l, c, v, f, h] = n, g = u > l ? u : l, p = u > l ? 1 : u / l, d = u > l ? l / u : 1;
|
|
4510
|
+
e && (e.translate(o, s), e.rotate(f), e.scale(p, d), e.arc(0, 0, g, c, c + v, !!(1 - h)), e.scale(1 / p, 1 / d), e.rotate(-f), e.translate(-o, -s));
|
|
4511
4511
|
break;
|
|
4512
4512
|
}
|
|
4513
4513
|
case C.CLOSE_PATH:
|
|
@@ -4525,10 +4525,10 @@ class F1 extends we {
|
|
|
4525
4525
|
var {
|
|
4526
4526
|
p0: u,
|
|
4527
4527
|
p1: l,
|
|
4528
|
-
rotation:
|
|
4528
|
+
rotation: c,
|
|
4529
4529
|
text: v
|
|
4530
4530
|
} = o;
|
|
4531
|
-
e.save(), e.translate(u.x, u.y), e.rotate(
|
|
4531
|
+
e.save(), e.translate(u.x, u.y), e.rotate(c), e.fillStyle && e.fillText(v, 0, 0), e.strokeStyle && e.strokeText(v, 0, 0), e.restore(), t === "underline" && (s === 0 && e.moveTo(u.x, u.y + r / 8), e.lineTo(l.x, l.y + r / 5));
|
|
4532
4532
|
}), t === "underline" && (e.lineWidth = r / 20, e.strokeStyle = n, e.stroke(), e.closePath()), e.restore();
|
|
4533
4533
|
}
|
|
4534
4534
|
getLetterSpacingAt() {
|
|
@@ -4536,24 +4536,24 @@ class F1 extends we {
|
|
|
4536
4536
|
return this.letterSpacingCache[e] || 0;
|
|
4537
4537
|
}
|
|
4538
4538
|
findSegmentToFitChar(e, t, r, i, n, o, s, u, l) {
|
|
4539
|
-
var
|
|
4540
|
-
u === " " && t === "justify" && r < i && (v += (i - r) / n), l > -1 && (
|
|
4541
|
-
var f = this.textHeight / 20,
|
|
4542
|
-
p0:
|
|
4539
|
+
var c = o, v = this.measureText(e, u);
|
|
4540
|
+
u === " " && t === "justify" && r < i && (v += (i - r) / n), l > -1 && (c += this.getLetterSpacingAt(l));
|
|
4541
|
+
var f = this.textHeight / 20, h = this.getEquidistantPointOnPath(c, f, 0), g = this.getEquidistantPointOnPath(c + v, f, 0), p = {
|
|
4542
|
+
p0: h,
|
|
4543
4543
|
p1: g
|
|
4544
|
-
}, d =
|
|
4544
|
+
}, d = h && g ? Math.atan2(g.y - h.y, g.x - h.x) : 0;
|
|
4545
4545
|
if (s) {
|
|
4546
4546
|
var m = Math.cos(Math.PI / 2 + d) * s, _ = Math.cos(-d) * s;
|
|
4547
|
-
p.p0 = ir(ir({},
|
|
4548
|
-
x:
|
|
4549
|
-
y:
|
|
4547
|
+
p.p0 = ir(ir({}, h), {}, {
|
|
4548
|
+
x: h.x + m,
|
|
4549
|
+
y: h.y + _
|
|
4550
4550
|
}), p.p1 = ir(ir({}, g), {}, {
|
|
4551
4551
|
x: g.x + m,
|
|
4552
4552
|
y: g.y + _
|
|
4553
4553
|
});
|
|
4554
4554
|
}
|
|
4555
|
-
return
|
|
4556
|
-
offset:
|
|
4555
|
+
return c += v, {
|
|
4556
|
+
offset: c,
|
|
4557
4557
|
segment: p,
|
|
4558
4558
|
rotation: d
|
|
4559
4559
|
};
|
|
@@ -4572,27 +4572,27 @@ class F1 extends we {
|
|
|
4572
4572
|
// You need to call this method manually to update glyphs cache.
|
|
4573
4573
|
setTextData(e) {
|
|
4574
4574
|
if (!this.glyphInfo) {
|
|
4575
|
-
var t = this.getText(), r = t.split(""), i = t.split(" ").length - 1, n = this.parent.getAttribute("dx").split().map((x) => x.getPixels("x")), o = this.parent.getAttribute("dy").getPixels("y"), s = this.parent.getStyle("text-anchor").getString("start"), u = this.getStyle("letter-spacing"), l = this.parent.getStyle("letter-spacing"),
|
|
4576
|
-
!u.hasValue() || u.getValue() === "inherit" ?
|
|
4575
|
+
var t = this.getText(), r = t.split(""), i = t.split(" ").length - 1, n = this.parent.getAttribute("dx").split().map((x) => x.getPixels("x")), o = this.parent.getAttribute("dy").getPixels("y"), s = this.parent.getStyle("text-anchor").getString("start"), u = this.getStyle("letter-spacing"), l = this.parent.getStyle("letter-spacing"), c = 0;
|
|
4576
|
+
!u.hasValue() || u.getValue() === "inherit" ? c = l.getPixels() : u.hasValue() && u.getValue() !== "initial" && u.getValue() !== "unset" && (c = u.getPixels());
|
|
4577
4577
|
var v = [], f = t.length;
|
|
4578
4578
|
this.letterSpacingCache = v;
|
|
4579
|
-
for (var
|
|
4580
|
-
v.push(typeof n[
|
|
4581
|
-
var g = v.reduce((x,
|
|
4579
|
+
for (var h = 0; h < f; h++)
|
|
4580
|
+
v.push(typeof n[h] < "u" ? n[h] : c);
|
|
4581
|
+
var g = v.reduce((x, O, E) => E === 0 ? 0 : x + O || 0, 0), p = this.measureText(e), d = Math.max(p + g, 0);
|
|
4582
4582
|
this.textWidth = p, this.textHeight = this.getFontSize(), this.glyphInfo = [];
|
|
4583
4583
|
var m = this.getPathLength(), _ = this.getStyle("startOffset").getNumber(0) * m, b = 0;
|
|
4584
|
-
(s === "middle" || s === "center") && (b = -d / 2), (s === "end" || s === "right") && (b = -d), b += _, r.forEach((x,
|
|
4584
|
+
(s === "middle" || s === "center") && (b = -d / 2), (s === "end" || s === "right") && (b = -d), b += _, r.forEach((x, O) => {
|
|
4585
4585
|
var {
|
|
4586
|
-
offset:
|
|
4587
|
-
segment:
|
|
4586
|
+
offset: E,
|
|
4587
|
+
segment: S,
|
|
4588
4588
|
rotation: w
|
|
4589
|
-
} = this.findSegmentToFitChar(e, s, d, m, i, b, o, x,
|
|
4590
|
-
b =
|
|
4589
|
+
} = this.findSegmentToFitChar(e, s, d, m, i, b, o, x, O);
|
|
4590
|
+
b = E, !(!S.p0 || !S.p1) && this.glyphInfo.push({
|
|
4591
4591
|
// transposeX: midpoint.x,
|
|
4592
4592
|
// transposeY: midpoint.y,
|
|
4593
|
-
text: r[
|
|
4594
|
-
p0:
|
|
4595
|
-
p1:
|
|
4593
|
+
text: r[O],
|
|
4594
|
+
p0: S.p0,
|
|
4595
|
+
p1: S.p1,
|
|
4596
4596
|
rotation: w
|
|
4597
4597
|
});
|
|
4598
4598
|
});
|
|
@@ -4741,8 +4741,8 @@ class F1 extends we {
|
|
|
4741
4741
|
return n;
|
|
4742
4742
|
case C.ARC: {
|
|
4743
4743
|
n = 0;
|
|
4744
|
-
var l = i[4],
|
|
4745
|
-
if (Math.abs(l - v) < f && (f = Math.abs(l - v)), o = this.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], l, 0),
|
|
4744
|
+
var l = i[4], c = i[5], v = i[4] + c, f = Math.PI / 180;
|
|
4745
|
+
if (Math.abs(l - v) < f && (f = Math.abs(l - v)), o = this.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], l, 0), c < 0)
|
|
4746
4746
|
for (u = l - f; u > v; u -= f)
|
|
4747
4747
|
s = this.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], u, 0), n += this.getLineLength(o.x, o.y, s.x, s.y), o = s;
|
|
4748
4748
|
else
|
|
@@ -4756,27 +4756,27 @@ class F1 extends we {
|
|
|
4756
4756
|
getPointOnLine(e, t, r, i, n) {
|
|
4757
4757
|
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t + at), l = Math.sqrt(e * e / (1 + u * u));
|
|
4758
4758
|
i < t && (l *= -1);
|
|
4759
|
-
var
|
|
4759
|
+
var c = u * l, v = null;
|
|
4760
4760
|
if (i === t)
|
|
4761
4761
|
v = {
|
|
4762
4762
|
x: o,
|
|
4763
|
-
y: s +
|
|
4763
|
+
y: s + c
|
|
4764
4764
|
};
|
|
4765
4765
|
else if ((s - r) / (o - t + at) === u)
|
|
4766
4766
|
v = {
|
|
4767
4767
|
x: o + l,
|
|
4768
|
-
y: s +
|
|
4768
|
+
y: s + c
|
|
4769
4769
|
};
|
|
4770
4770
|
else {
|
|
4771
|
-
var f = 0,
|
|
4771
|
+
var f = 0, h = 0, g = this.getLineLength(t, r, i, n);
|
|
4772
4772
|
if (g < at)
|
|
4773
4773
|
return null;
|
|
4774
4774
|
var p = (o - t) * (i - t) + (s - r) * (n - r);
|
|
4775
|
-
p /= g * g, f = t + p * (i - t),
|
|
4776
|
-
var d = this.getLineLength(o, s, f,
|
|
4777
|
-
l = Math.sqrt(m * m / (1 + u * u)), i < t && (l *= -1),
|
|
4775
|
+
p /= g * g, f = t + p * (i - t), h = r + p * (n - r);
|
|
4776
|
+
var d = this.getLineLength(o, s, f, h), m = Math.sqrt(e * e - d * d);
|
|
4777
|
+
l = Math.sqrt(m * m / (1 + u * u)), i < t && (l *= -1), c = u * l, v = {
|
|
4778
4778
|
x: f + l,
|
|
4779
|
-
y:
|
|
4779
|
+
y: h + c
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
4782
4782
|
return v;
|
|
@@ -4799,8 +4799,8 @@ class F1 extends we {
|
|
|
4799
4799
|
i = this.getPointOnLine(s, o.start.x, o.start.y, o.points[0], o.points[1], o.start.x, o.start.y);
|
|
4800
4800
|
break;
|
|
4801
4801
|
case C.ARC: {
|
|
4802
|
-
var l = o.points[4],
|
|
4803
|
-
if (u = l + s / o.pathLength *
|
|
4802
|
+
var l = o.points[4], c = o.points[5], v = o.points[4] + c;
|
|
4803
|
+
if (u = l + s / o.pathLength * c, c < 0 && u < v || c >= 0 && u > v)
|
|
4804
4804
|
break;
|
|
4805
4805
|
i = this.getPointOnEllipticalArc(o.points[0], o.points[1], o.points[2], o.points[3], u, o.points[6]);
|
|
4806
4806
|
break;
|
|
@@ -4825,9 +4825,9 @@ class F1 extends we {
|
|
|
4825
4825
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4826
4826
|
}
|
|
4827
4827
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4828
|
-
var
|
|
4828
|
+
var c = u * Eo(e) + o * Oo(e) + i * Co(e) + t * wo(e), v = l * Eo(e) + s * Oo(e) + n * Co(e) + r * wo(e);
|
|
4829
4829
|
return {
|
|
4830
|
-
x:
|
|
4830
|
+
x: c,
|
|
4831
4831
|
y: v
|
|
4832
4832
|
};
|
|
4833
4833
|
}
|
|
@@ -4875,7 +4875,7 @@ class F1 extends we {
|
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
4877
|
var G1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
4878
|
-
class
|
|
4878
|
+
class H1 extends Ge {
|
|
4879
4879
|
constructor(e, t, r) {
|
|
4880
4880
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
4881
4881
|
var i = this.getHrefAttribute().getString();
|
|
@@ -4933,15 +4933,15 @@ class z1 extends Ge {
|
|
|
4933
4933
|
});
|
|
4934
4934
|
l.document.documentElement.parent = this, l.render();
|
|
4935
4935
|
} else {
|
|
4936
|
-
var
|
|
4936
|
+
var c = this.image;
|
|
4937
4937
|
t.setViewBox({
|
|
4938
4938
|
ctx: e,
|
|
4939
4939
|
aspectRatio: this.getAttribute("preserveAspectRatio").getString(),
|
|
4940
4940
|
width: s,
|
|
4941
|
-
desiredWidth:
|
|
4941
|
+
desiredWidth: c.width,
|
|
4942
4942
|
height: u,
|
|
4943
|
-
desiredHeight:
|
|
4944
|
-
}), this.loaded && (typeof
|
|
4943
|
+
desiredHeight: c.height
|
|
4944
|
+
}), this.loaded && (typeof c.complete > "u" || c.complete) && e.drawImage(c, 0, 0);
|
|
4945
4945
|
}
|
|
4946
4946
|
e.restore();
|
|
4947
4947
|
}
|
|
@@ -4951,7 +4951,7 @@ class z1 extends Ge {
|
|
|
4951
4951
|
return new fe(e, t, e + r, t + i);
|
|
4952
4952
|
}
|
|
4953
4953
|
}
|
|
4954
|
-
class
|
|
4954
|
+
class z1 extends Ge {
|
|
4955
4955
|
constructor() {
|
|
4956
4956
|
super(...arguments), this.type = "symbol";
|
|
4957
4957
|
}
|
|
@@ -4980,26 +4980,26 @@ class Y1 {
|
|
|
4980
4980
|
})();
|
|
4981
4981
|
}
|
|
4982
4982
|
}
|
|
4983
|
-
class
|
|
4983
|
+
class El extends R {
|
|
4984
4984
|
constructor(e, t, r) {
|
|
4985
4985
|
super(e, t, r), this.type = "style";
|
|
4986
|
-
var i =
|
|
4986
|
+
var i = ct(
|
|
4987
4987
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
|
4988
4988
|
// remove imports
|
|
4989
4989
|
), n = i.split("}");
|
|
4990
4990
|
n.forEach((o) => {
|
|
4991
4991
|
var s = o.trim();
|
|
4992
4992
|
if (s) {
|
|
4993
|
-
var u = s.split("{"), l = u[0].split(","),
|
|
4993
|
+
var u = s.split("{"), l = u[0].split(","), c = u[1].split(";");
|
|
4994
4994
|
l.forEach((v) => {
|
|
4995
4995
|
var f = v.trim();
|
|
4996
4996
|
if (f) {
|
|
4997
|
-
var
|
|
4998
|
-
if (
|
|
4997
|
+
var h = e.styles[f] || {};
|
|
4998
|
+
if (c.forEach((d) => {
|
|
4999
4999
|
var m = d.indexOf(":"), _ = d.substr(0, m).trim(), b = d.substr(m + 1, d.length - m).trim();
|
|
5000
|
-
_ && b && (
|
|
5001
|
-
}), e.styles[f] =
|
|
5002
|
-
var g =
|
|
5000
|
+
_ && b && (h[_] = new T(e, _, b));
|
|
5001
|
+
}), e.styles[f] = h, e.stylesSpecificity[f] = o1(f), f === "@font-face") {
|
|
5002
|
+
var g = h["font-family"].getString().replace(/"|'/g, ""), p = h.src.getString().split(",");
|
|
5003
5003
|
p.forEach((d) => {
|
|
5004
5004
|
if (d.indexOf('format("svg")') > 0) {
|
|
5005
5005
|
var m = gl(d);
|
|
@@ -5013,7 +5013,7 @@ class Ol extends R {
|
|
|
5013
5013
|
});
|
|
5014
5014
|
}
|
|
5015
5015
|
}
|
|
5016
|
-
|
|
5016
|
+
El.parseExternalUrl = gl;
|
|
5017
5017
|
class X1 extends Ge {
|
|
5018
5018
|
constructor() {
|
|
5019
5019
|
super(...arguments), this.type = "use";
|
|
@@ -5036,9 +5036,9 @@ class X1 extends Ge {
|
|
|
5036
5036
|
} = this;
|
|
5037
5037
|
if (r) {
|
|
5038
5038
|
var i = r;
|
|
5039
|
-
if (r.type === "symbol" && (i = new It(t, null), i.attributes.viewBox = new
|
|
5039
|
+
if (r.type === "symbol" && (i = new It(t, null), i.attributes.viewBox = new T(t, "viewBox", r.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new T(t, "preserveAspectRatio", r.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new T(t, "overflow", r.getAttribute("overflow").getString()), i.children = r.children, r.styles.opacity = new T(t, "opacity", this.calculateOpacity())), i.type === "svg") {
|
|
5040
5040
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
|
5041
|
-
n.hasValue() && (i.attributes.width = new
|
|
5041
|
+
n.hasValue() && (i.attributes.width = new T(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new T(t, "height", o.getString()));
|
|
5042
5042
|
}
|
|
5043
5043
|
var s = i.parent;
|
|
5044
5044
|
i.parent = this, i.render(e), i.parent = s;
|
|
@@ -5055,7 +5055,7 @@ class X1 extends Ge {
|
|
|
5055
5055
|
document: e,
|
|
5056
5056
|
element: t
|
|
5057
5057
|
} = this;
|
|
5058
|
-
return
|
|
5058
|
+
return Le.fromElement(e, t);
|
|
5059
5059
|
}
|
|
5060
5060
|
get element() {
|
|
5061
5061
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
@@ -5067,14 +5067,14 @@ function nr(a, e, t, r, i, n) {
|
|
|
5067
5067
|
function sr(a, e, t, r, i, n, o) {
|
|
5068
5068
|
a[t * r * 4 + e * 4 + n] = o;
|
|
5069
5069
|
}
|
|
5070
|
-
function
|
|
5070
|
+
function F(a, e, t) {
|
|
5071
5071
|
var r = a[e];
|
|
5072
5072
|
return r * t;
|
|
5073
5073
|
}
|
|
5074
5074
|
function ye(a, e, t, r) {
|
|
5075
5075
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5076
5076
|
}
|
|
5077
|
-
class
|
|
5077
|
+
class Ol extends R {
|
|
5078
5078
|
constructor(e, t, r) {
|
|
5079
5079
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5080
5080
|
var i = ie(this.getAttribute("values").getString());
|
|
@@ -5100,14 +5100,14 @@ class Sl extends R {
|
|
|
5100
5100
|
includeOpacity: o,
|
|
5101
5101
|
matrix: s
|
|
5102
5102
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
|
5103
|
-
for (var
|
|
5104
|
-
var v = nr(u.data,
|
|
5105
|
-
o && (p = 0, d = 0, m = 0, _ *= g / 255), sr(u.data,
|
|
5103
|
+
for (var c = 0; c < i; c++) {
|
|
5104
|
+
var v = nr(u.data, c, l, i, n, 0), f = nr(u.data, c, l, i, n, 1), h = nr(u.data, c, l, i, n, 2), g = nr(u.data, c, l, i, n, 3), p = F(s, 0, v) + F(s, 1, f) + F(s, 2, h) + F(s, 3, g) + F(s, 4, 1), d = F(s, 5, v) + F(s, 6, f) + F(s, 7, h) + F(s, 8, g) + F(s, 9, 1), m = F(s, 10, v) + F(s, 11, f) + F(s, 12, h) + F(s, 13, g) + F(s, 14, 1), _ = F(s, 15, v) + F(s, 16, f) + F(s, 17, h) + F(s, 18, g) + F(s, 19, 1);
|
|
5105
|
+
o && (p = 0, d = 0, m = 0, _ *= g / 255), sr(u.data, c, l, i, n, 0, p), sr(u.data, c, l, i, n, 1, d), sr(u.data, c, l, i, n, 2, m), sr(u.data, c, l, i, n, 3, _);
|
|
5106
5106
|
}
|
|
5107
5107
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
|
-
class
|
|
5110
|
+
class Vr extends R {
|
|
5111
5111
|
constructor() {
|
|
5112
5112
|
super(...arguments), this.type = "mask";
|
|
5113
5113
|
}
|
|
@@ -5121,8 +5121,8 @@ class Lr extends R {
|
|
|
5121
5121
|
u.addBoundingBox(g.getBoundingBox(e));
|
|
5122
5122
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5123
5123
|
}
|
|
5124
|
-
var l = this.removeStyles(t,
|
|
5125
|
-
r.screen.setDefaults(v), this.renderChildren(v), new
|
|
5124
|
+
var l = this.removeStyles(t, Vr.ignoreStyles), c = r.createCanvas(i + o, n + s), v = c.getContext("2d");
|
|
5125
|
+
r.screen.setDefaults(v), this.renderChildren(v), new Ol(r, {
|
|
5126
5126
|
nodeType: 1,
|
|
5127
5127
|
childNodes: [],
|
|
5128
5128
|
attributes: [{
|
|
@@ -5133,13 +5133,13 @@ class Lr extends R {
|
|
|
5133
5133
|
value: "true"
|
|
5134
5134
|
}]
|
|
5135
5135
|
}).apply(v, 0, 0, i + o, n + s);
|
|
5136
|
-
var f = r.createCanvas(i + o, n + s),
|
|
5137
|
-
r.screen.setDefaults(
|
|
5136
|
+
var f = r.createCanvas(i + o, n + s), h = f.getContext("2d");
|
|
5137
|
+
r.screen.setDefaults(h), t.render(h), h.globalCompositeOperation = "destination-in", h.fillStyle = v.createPattern(c, "no-repeat"), h.fillRect(0, 0, i + o, n + s), e.fillStyle = h.createPattern(f, "no-repeat"), e.fillRect(0, 0, i + o, n + s), this.restoreStyles(t, l);
|
|
5138
5138
|
}
|
|
5139
5139
|
render(e) {
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
5142
|
-
|
|
5142
|
+
Vr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5143
5143
|
var No = () => {
|
|
5144
5144
|
};
|
|
5145
5145
|
class W1 extends R {
|
|
@@ -5156,14 +5156,14 @@ class W1 extends R {
|
|
|
5156
5156
|
r && (r.beginPath = No, r.closePath = No), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5157
5157
|
if (!(typeof o.path > "u")) {
|
|
5158
5158
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
|
5159
|
-
s || (s =
|
|
5159
|
+
s || (s = Le.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
5160
5160
|
}
|
|
5161
5161
|
}), Reflect.apply(n, e, []), e.clip(), r && (r.beginPath = i, r.closePath = n);
|
|
5162
5162
|
}
|
|
5163
5163
|
render(e) {
|
|
5164
5164
|
}
|
|
5165
5165
|
}
|
|
5166
|
-
class
|
|
5166
|
+
class Lr extends R {
|
|
5167
5167
|
constructor() {
|
|
5168
5168
|
super(...arguments), this.type = "filter";
|
|
5169
5169
|
}
|
|
@@ -5178,19 +5178,19 @@ class Vr extends R {
|
|
|
5178
5178
|
var _ = m.extraFilterDistance || 0;
|
|
5179
5179
|
o = Math.max(o, _), s = Math.max(s, _);
|
|
5180
5180
|
});
|
|
5181
|
-
var u = Math.floor(n.width), l = Math.floor(n.height),
|
|
5182
|
-
if (!(
|
|
5183
|
-
var f = Math.floor(n.x),
|
|
5184
|
-
r.screen.setDefaults(d), d.translate(-f + o, -
|
|
5185
|
-
typeof m.apply == "function" && m.apply(d, 0, 0,
|
|
5186
|
-
}), e.drawImage(p, 0, 0,
|
|
5181
|
+
var u = Math.floor(n.width), l = Math.floor(n.height), c = u + 2 * o, v = l + 2 * s;
|
|
5182
|
+
if (!(c < 1 || v < 1)) {
|
|
5183
|
+
var f = Math.floor(n.x), h = Math.floor(n.y), g = this.removeStyles(t, Lr.ignoreStyles), p = r.createCanvas(c, v), d = p.getContext("2d");
|
|
5184
|
+
r.screen.setDefaults(d), d.translate(-f + o, -h + s), t.render(d), i.forEach((m) => {
|
|
5185
|
+
typeof m.apply == "function" && m.apply(d, 0, 0, c, v);
|
|
5186
|
+
}), e.drawImage(p, 0, 0, c, v, f - o, h - s, c, v), this.restoreStyles(t, g);
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
5189
5189
|
}
|
|
5190
5190
|
render(e) {
|
|
5191
5191
|
}
|
|
5192
5192
|
}
|
|
5193
|
-
|
|
5193
|
+
Lr.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5194
5194
|
class q1 extends R {
|
|
5195
5195
|
constructor(e, t, r) {
|
|
5196
5196
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
@@ -5198,14 +5198,14 @@ class q1 extends R {
|
|
|
5198
5198
|
apply(e, t, r, i, n) {
|
|
5199
5199
|
}
|
|
5200
5200
|
}
|
|
5201
|
-
class
|
|
5201
|
+
class K1 extends R {
|
|
5202
5202
|
constructor() {
|
|
5203
5203
|
super(...arguments), this.type = "feMorphology";
|
|
5204
5204
|
}
|
|
5205
5205
|
apply(e, t, r, i, n) {
|
|
5206
5206
|
}
|
|
5207
5207
|
}
|
|
5208
|
-
class
|
|
5208
|
+
class Q1 extends R {
|
|
5209
5209
|
constructor() {
|
|
5210
5210
|
super(...arguments), this.type = "feComposite";
|
|
5211
5211
|
}
|
|
@@ -5221,7 +5221,7 @@ class Z1 extends R {
|
|
|
5221
5221
|
document: o,
|
|
5222
5222
|
blurRadius: s
|
|
5223
5223
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5224
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5224
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Hb(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5225
5225
|
}
|
|
5226
5226
|
}
|
|
5227
5227
|
class J1 extends R {
|
|
@@ -5237,10 +5237,10 @@ class e_ extends R {
|
|
|
5237
5237
|
var t_ = {
|
|
5238
5238
|
svg: It,
|
|
5239
5239
|
rect: xl,
|
|
5240
|
-
circle:
|
|
5240
|
+
circle: O1,
|
|
5241
5241
|
ellipse: C1,
|
|
5242
5242
|
line: w1,
|
|
5243
|
-
polyline:
|
|
5243
|
+
polyline: Sl,
|
|
5244
5244
|
polygon: $1,
|
|
5245
5245
|
path: $,
|
|
5246
5246
|
pattern: A1,
|
|
@@ -5252,27 +5252,27 @@ var t_ = {
|
|
|
5252
5252
|
animate: sn,
|
|
5253
5253
|
animateColor: k1,
|
|
5254
5254
|
animateTransform: D1,
|
|
5255
|
-
font:
|
|
5256
|
-
"font-face":
|
|
5255
|
+
font: V1,
|
|
5256
|
+
"font-face": L1,
|
|
5257
5257
|
"missing-glyph": j1,
|
|
5258
5258
|
glyph: _l,
|
|
5259
5259
|
text: we,
|
|
5260
5260
|
tspan: Dr,
|
|
5261
|
-
tref:
|
|
5262
|
-
a:
|
|
5263
|
-
textPath:
|
|
5264
|
-
image:
|
|
5261
|
+
tref: B1,
|
|
5262
|
+
a: F1,
|
|
5263
|
+
textPath: U1,
|
|
5264
|
+
image: H1,
|
|
5265
5265
|
g: nn,
|
|
5266
|
-
symbol:
|
|
5267
|
-
style:
|
|
5266
|
+
symbol: z1,
|
|
5267
|
+
style: El,
|
|
5268
5268
|
use: X1,
|
|
5269
|
-
mask:
|
|
5269
|
+
mask: Vr,
|
|
5270
5270
|
clipPath: W1,
|
|
5271
|
-
filter:
|
|
5271
|
+
filter: Lr,
|
|
5272
5272
|
feDropShadow: q1,
|
|
5273
|
-
feMorphology:
|
|
5274
|
-
feComposite:
|
|
5275
|
-
feColorMatrix:
|
|
5273
|
+
feMorphology: K1,
|
|
5274
|
+
feComposite: Q1,
|
|
5275
|
+
feColorMatrix: Ol,
|
|
5276
5276
|
feGaussianBlur: Z1,
|
|
5277
5277
|
title: J1,
|
|
5278
5278
|
desc: e_
|
|
@@ -5317,13 +5317,13 @@ function xi() {
|
|
|
5317
5317
|
});
|
|
5318
5318
|
}), xi.apply(this, arguments);
|
|
5319
5319
|
}
|
|
5320
|
-
class
|
|
5320
|
+
class Oe {
|
|
5321
5321
|
constructor(e) {
|
|
5322
5322
|
var {
|
|
5323
5323
|
rootEmSize: t = 12,
|
|
5324
5324
|
emSize: r = 12,
|
|
5325
|
-
createCanvas: i =
|
|
5326
|
-
createImage: n =
|
|
5325
|
+
createCanvas: i = Oe.createCanvas,
|
|
5326
|
+
createImage: n = Oe.createImage,
|
|
5327
5327
|
anonymousCrossOrigin: o
|
|
5328
5328
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5329
5329
|
this.canvg = e, this.definitions = {}, this.styles = {}, this.stylesSpecificity = {}, this.images = [], this.fonts = [], this.emSizeStack = [], this.uniqueId = 0, this.screen = e.screen, this.rootEmSize = t, this.emSize = r, this.createCanvas = i, this.createImage = this.bindCreateImage(n, o), this.screen.wait(this.isImagesLoaded.bind(this)), this.screen.wait(this.isFontsLoaded.bind(this));
|
|
@@ -5372,11 +5372,11 @@ class Se {
|
|
|
5372
5372
|
return t.root = !0, t.addStylesFromStyleDefinition(), this.documentElement = t, t;
|
|
5373
5373
|
}
|
|
5374
5374
|
createElement(e) {
|
|
5375
|
-
var t = e.nodeName.replace(/^[^:]+:/, ""), r =
|
|
5375
|
+
var t = e.nodeName.replace(/^[^:]+:/, ""), r = Oe.elementTypes[t];
|
|
5376
5376
|
return typeof r < "u" ? new r(this, e) : new b1(this, e);
|
|
5377
5377
|
}
|
|
5378
5378
|
createTextNode(e) {
|
|
5379
|
-
return new
|
|
5379
|
+
return new E1(this, e);
|
|
5380
5380
|
}
|
|
5381
5381
|
setViewBox(e) {
|
|
5382
5382
|
this.screen.setViewBox(r_({
|
|
@@ -5384,9 +5384,9 @@ class Se {
|
|
|
5384
5384
|
}, e));
|
|
5385
5385
|
}
|
|
5386
5386
|
}
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5387
|
+
Oe.createCanvas = a_;
|
|
5388
|
+
Oe.createImage = i_;
|
|
5389
|
+
Oe.elementTypes = t_;
|
|
5390
5390
|
function Mo(a, e) {
|
|
5391
5391
|
var t = Object.keys(a);
|
|
5392
5392
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -5417,8 +5417,8 @@ class _t {
|
|
|
5417
5417
|
*/
|
|
5418
5418
|
constructor(e, t) {
|
|
5419
5419
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5420
|
-
this.parser = new
|
|
5421
|
-
var i = new
|
|
5420
|
+
this.parser = new Ha(r), this.screen = new kr(e, r), this.options = r;
|
|
5421
|
+
var i = new Oe(this, r), n = i.createDocumentElement(t);
|
|
5422
5422
|
this.document = i, this.documentElement = n;
|
|
5423
5423
|
}
|
|
5424
5424
|
/**
|
|
@@ -5431,7 +5431,7 @@ class _t {
|
|
|
5431
5431
|
static from(e, t) {
|
|
5432
5432
|
var r = arguments;
|
|
5433
5433
|
return _e(function* () {
|
|
5434
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5434
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ha(i), o = yield n.parse(t);
|
|
5435
5435
|
return new _t(e, o, i);
|
|
5436
5436
|
})();
|
|
5437
5437
|
}
|
|
@@ -5443,7 +5443,7 @@ class _t {
|
|
|
5443
5443
|
* @returns Canvg instance.
|
|
5444
5444
|
*/
|
|
5445
5445
|
static fromString(e, t) {
|
|
5446
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5446
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ha(r), n = i.parseFromString(t);
|
|
5447
5447
|
return new _t(e, n, r);
|
|
5448
5448
|
}
|
|
5449
5449
|
/**
|
|
@@ -5529,52 +5529,52 @@ class _t {
|
|
|
5529
5529
|
}
|
|
5530
5530
|
}
|
|
5531
5531
|
export {
|
|
5532
|
-
|
|
5532
|
+
F1 as AElement,
|
|
5533
5533
|
k1 as AnimateColorElement,
|
|
5534
5534
|
sn as AnimateElement,
|
|
5535
5535
|
D1 as AnimateTransformElement,
|
|
5536
5536
|
fe as BoundingBox,
|
|
5537
|
-
|
|
5538
|
-
|
|
5537
|
+
Eo as CB1,
|
|
5538
|
+
Oo as CB2,
|
|
5539
5539
|
Co as CB3,
|
|
5540
5540
|
wo as CB4,
|
|
5541
5541
|
_t as Canvg,
|
|
5542
|
-
|
|
5542
|
+
O1 as CircleElement,
|
|
5543
5543
|
W1 as ClipPathElement,
|
|
5544
5544
|
R1 as DefsElement,
|
|
5545
5545
|
e_ as DescElement,
|
|
5546
|
-
|
|
5546
|
+
Oe as Document,
|
|
5547
5547
|
R as Element,
|
|
5548
5548
|
C1 as EllipseElement,
|
|
5549
|
-
|
|
5550
|
-
|
|
5549
|
+
Ol as FeColorMatrixElement,
|
|
5550
|
+
Q1 as FeCompositeElement,
|
|
5551
5551
|
q1 as FeDropShadowElement,
|
|
5552
5552
|
Z1 as FeGaussianBlurElement,
|
|
5553
|
-
|
|
5554
|
-
|
|
5553
|
+
K1 as FeMorphologyElement,
|
|
5554
|
+
Lr as FilterElement,
|
|
5555
5555
|
Z as Font,
|
|
5556
|
-
|
|
5557
|
-
|
|
5556
|
+
V1 as FontElement,
|
|
5557
|
+
L1 as FontFaceElement,
|
|
5558
5558
|
nn as GElement,
|
|
5559
5559
|
_l as GlyphElement,
|
|
5560
|
-
|
|
5561
|
-
|
|
5560
|
+
Tl as GradientElement,
|
|
5561
|
+
H1 as ImageElement,
|
|
5562
5562
|
w1 as LineElement,
|
|
5563
5563
|
N1 as LinearGradientElement,
|
|
5564
5564
|
P1 as MarkerElement,
|
|
5565
|
-
|
|
5565
|
+
Vr as MaskElement,
|
|
5566
5566
|
yl as Matrix,
|
|
5567
5567
|
j1 as MissingGlyphElement,
|
|
5568
5568
|
l1 as Mouse,
|
|
5569
5569
|
at as PSEUDO_ZERO,
|
|
5570
|
-
|
|
5570
|
+
Ha as Parser,
|
|
5571
5571
|
$ as PathElement,
|
|
5572
5572
|
C as PathParser,
|
|
5573
5573
|
A1 as PatternElement,
|
|
5574
5574
|
D as Point,
|
|
5575
5575
|
$1 as PolygonElement,
|
|
5576
|
-
|
|
5577
|
-
|
|
5576
|
+
Sl as PolylineElement,
|
|
5577
|
+
T as Property,
|
|
5578
5578
|
$o as QB1,
|
|
5579
5579
|
Ao as QB2,
|
|
5580
5580
|
Po as QB3,
|
|
@@ -5590,19 +5590,19 @@ export {
|
|
|
5590
5590
|
g1 as SkewX,
|
|
5591
5591
|
d1 as SkewY,
|
|
5592
5592
|
M1 as StopElement,
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5593
|
+
El as StyleElement,
|
|
5594
|
+
z1 as SymbolElement,
|
|
5595
|
+
B1 as TRefElement,
|
|
5596
5596
|
Dr as TSpanElement,
|
|
5597
5597
|
we as TextElement,
|
|
5598
|
-
|
|
5598
|
+
U1 as TextPathElement,
|
|
5599
5599
|
J1 as TitleElement,
|
|
5600
|
-
|
|
5600
|
+
Le as Transform,
|
|
5601
5601
|
v1 as Translate,
|
|
5602
5602
|
b1 as UnknownElement,
|
|
5603
5603
|
X1 as UseElement,
|
|
5604
5604
|
u1 as ViewPort,
|
|
5605
|
-
|
|
5605
|
+
ct as compressSpaces,
|
|
5606
5606
|
_t as default,
|
|
5607
5607
|
o1 as getSelectorSpecificity,
|
|
5608
5608
|
Zb as normalizeAttributeName,
|
|
@@ -5611,8 +5611,8 @@ export {
|
|
|
5611
5611
|
s_ as presets,
|
|
5612
5612
|
ie as toNumbers,
|
|
5613
5613
|
qb as trimLeft,
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5614
|
+
Kb as trimRight,
|
|
5615
|
+
So as vectorMagnitude,
|
|
5616
|
+
To as vectorsAngle,
|
|
5617
5617
|
_i as vectorsRatio
|
|
5618
5618
|
};
|