xyvcard-reports 0.0.19 → 0.0.21
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/{FileSaver.min-pkIPzuSf.mjs → FileSaver.min-9pctQCRS.mjs} +1 -1
- package/dist/{add-DffdINsL.mjs → add-Dx1n7NDH.mjs} +2 -2
- package/dist/{constant-DViNTpBY.mjs → constant-qhPwZUPf.mjs} +2134 -2084
- package/dist/{edit-D7XxpHeq.mjs → edit-BK2--9m5.mjs} +3 -3
- package/dist/{edit-C4VeyM3B.mjs → edit-C2HiAoqA.mjs} +20 -20
- package/dist/{edit-D7_DMGWO.mjs → edit-CJeMVvsU.mjs} +8 -8
- package/dist/{edit-CiApG8IE.mjs → edit-Cbj7MbVd.mjs} +10 -10
- package/dist/{edit-DiJGXpqt.mjs → edit-DXxz7V5O.mjs} +11 -11
- package/dist/{edit-_UsSuMdw.mjs → edit-PMZyzVdm.mjs} +3 -3
- package/dist/{edit-BkIvAc_z.mjs → edit-yO8sjDy8.mjs} +2 -2
- package/dist/{follow-BInjR_c-.mjs → follow-P2_KfMjV.mjs} +1 -1
- package/dist/{import-upload-CVWhT3dS.mjs → import-upload-CDHQ05gt.mjs} +1 -1
- package/dist/{import-upload-BuMaDGi0.mjs → import-upload-D4Ej-Wtd.mjs} +1 -1
- package/dist/{index-C7CnRVtn.mjs → index-BA2IISrV.mjs} +183 -170
- package/dist/{index-CbWfowvu.mjs → index-BYrvGkaE.mjs} +150 -139
- package/dist/{index-DmeDYGNi.mjs → index-Bhr3FzhQ.mjs} +3 -3
- package/dist/{index-B8BxqvlQ.mjs → index-CRWVTZQ0.mjs} +1 -1
- package/dist/index-CaHUk1EF-Cw4XGyg-.mjs +3042 -0
- package/dist/{index-Dk4UPiq7.mjs → index-Cw5s4Yba.mjs} +152 -139
- package/dist/{index-CRJLLhma.mjs → index-DS6wdvJi.mjs} +2 -2
- package/dist/{index-B_AxECLr.mjs → index-XCypL2vG.mjs} +166 -157
- package/dist/index-cmTCxGlG.mjs +1909 -0
- package/dist/{index-F_lMgx9W.mjs → index-plPmX1H0.mjs} +167 -154
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BHI1ur2J.mjs → index.vue_vue_type_script_setup_true_lang-XCLU3UjS.mjs} +4 -4
- package/dist/{info-cv-wiwFs.mjs → info-BB5FtxWS.mjs} +3 -3
- package/dist/{info-DC_SLi8k.mjs → info-BP0B16YQ.mjs} +3 -3
- package/dist/{info-IIY7Euy3.mjs → info-CvaNbkpA.mjs} +1 -1
- package/dist/{info-Bm4Dsm8M.mjs → info-DrgpD5RU.mjs} +1 -1
- package/dist/{info-CW7CL4Ko.mjs → info-DviWPK_1.mjs} +1 -1
- package/dist/{info-CXBdrR-y.mjs → info-_7dAmewP.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DVarUDtY.mjs → info.vue_vue_type_script_setup_true_lang-Bkj6TnWJ.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-B7Fw120q.mjs → info.vue_vue_type_script_setup_true_lang-CHaMCv-u.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-BxLYzDWi.mjs → info.vue_vue_type_script_setup_true_lang-CHspChfW.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CPtlno35.mjs → info.vue_vue_type_script_setup_true_lang-DEOmURaS.mjs} +2 -2
- package/dts/src/api/reports/dict.d.ts +4 -1
- package/dts/src/api/reports/index.d.ts +2 -1
- package/dts/src/utils/returnBizLay.d.ts +2 -0
- package/dts/src/views/reports/report-demand-ledger/follow.vue.d.ts +3 -3
- package/dts/src/views/reports/task-inspect-matters/edit.vue.d.ts +1 -1
- package/package.json +5 -4
- package/dist/index-BoPDZM_b-Dr6nUlmS.mjs +0 -1809
- package/dist/index-CtbfBxfN.mjs +0 -79
- package/dist/index-DQ9bz2at.mjs +0 -30122
|
@@ -1,1809 +0,0 @@
|
|
|
1
|
-
import { BizLayDict as dr, useUserStore as m, request as h, clearEmpty as b } from "jmash-core";
|
|
2
|
-
import { reactive as mr } from "vue";
|
|
3
|
-
var hr = Object.defineProperty, gr = (t, e, r) => e in t ? hr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, It = (t, e, r) => gr(t, typeof e != "symbol" ? e + "" : e, r), ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
|
-
function br(t) {
|
|
5
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
|
-
}
|
|
7
|
-
function vr(t) {
|
|
8
|
-
if (t.__esModule) return t;
|
|
9
|
-
var e = t.default;
|
|
10
|
-
if (typeof e == "function") {
|
|
11
|
-
var r = function o() {
|
|
12
|
-
return this instanceof o ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
|
|
13
|
-
};
|
|
14
|
-
r.prototype = e.prototype;
|
|
15
|
-
} else r = {};
|
|
16
|
-
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(o) {
|
|
17
|
-
var n = Object.getOwnPropertyDescriptor(t, o);
|
|
18
|
-
Object.defineProperty(r, o, n.get ? n : {
|
|
19
|
-
enumerable: !0,
|
|
20
|
-
get: function() {
|
|
21
|
-
return t[o];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}), r;
|
|
25
|
-
}
|
|
26
|
-
var Z = TypeError;
|
|
27
|
-
const wr = {}, Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
|
-
__proto__: null,
|
|
29
|
-
default: wr
|
|
30
|
-
}, Symbol.toStringTag, { value: "Module" })), Ar = /* @__PURE__ */ vr(Sr);
|
|
31
|
-
var Zt = typeof Map == "function" && Map.prototype, Rt = Object.getOwnPropertyDescriptor && Zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, vt = Zt && Rt && typeof Rt.get == "function" ? Rt.get : null, le = Zt && Map.prototype.forEach, te = typeof Set == "function" && Set.prototype, Dt = Object.getOwnPropertyDescriptor && te ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, wt = te && Dt && typeof Dt.get == "function" ? Dt.get : null, ce = te && Set.prototype.forEach, Er = typeof WeakMap == "function" && WeakMap.prototype, ot = Er ? WeakMap.prototype.has : null, Or = typeof WeakSet == "function" && WeakSet.prototype, nt = Or ? WeakSet.prototype.has : null, jr = typeof WeakRef == "function" && WeakRef.prototype, pe = jr ? WeakRef.prototype.deref : null, _r = Boolean.prototype.valueOf, Pr = Object.prototype.toString, xr = Function.prototype.toString, Ir = String.prototype.match, ee = String.prototype.slice, N = String.prototype.replace, Rr = String.prototype.toUpperCase, ue = String.prototype.toLowerCase, Ke = RegExp.prototype.test, ye = Array.prototype.concat, I = Array.prototype.join, Dr = Array.prototype.slice, fe = Math.floor, zt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Tt = Object.getOwnPropertySymbols, Gt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, X = typeof Symbol == "function" && typeof Symbol.iterator == "object", at = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === X || !0) ? Symbol.toStringTag : null, $e = Object.prototype.propertyIsEnumerable, se = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
32
|
-
return t.__proto__;
|
|
33
|
-
} : null);
|
|
34
|
-
function de(t, e) {
|
|
35
|
-
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Ke.call(/e/, e))
|
|
36
|
-
return e;
|
|
37
|
-
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
38
|
-
if (typeof t == "number") {
|
|
39
|
-
var o = t < 0 ? -fe(-t) : fe(t);
|
|
40
|
-
if (o !== t) {
|
|
41
|
-
var n = String(o), a = ee.call(e, n.length + 1);
|
|
42
|
-
return N.call(n, r, "$&_") + "." + N.call(N.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return N.call(e, r, "$&_");
|
|
46
|
-
}
|
|
47
|
-
var Jt = Ar, me = Jt.custom, he = Ve(me) ? me : null, qe = {
|
|
48
|
-
__proto__: null,
|
|
49
|
-
double: '"',
|
|
50
|
-
single: "'"
|
|
51
|
-
}, Tr = {
|
|
52
|
-
__proto__: null,
|
|
53
|
-
double: /(["\\])/g,
|
|
54
|
-
single: /(['\\])/g
|
|
55
|
-
}, Et = function t(e, r, o, n) {
|
|
56
|
-
var a = r || {};
|
|
57
|
-
if (D(a, "quoteStyle") && !D(qe, a.quoteStyle))
|
|
58
|
-
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
59
|
-
if (D(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
60
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
61
|
-
var i = D(a, "customInspect") ? a.customInspect : !0;
|
|
62
|
-
if (typeof i != "boolean" && i !== "symbol")
|
|
63
|
-
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
64
|
-
if (D(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
65
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
66
|
-
if (D(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
67
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
68
|
-
var l = a.numericSeparator;
|
|
69
|
-
if (typeof e > "u")
|
|
70
|
-
return "undefined";
|
|
71
|
-
if (e === null)
|
|
72
|
-
return "null";
|
|
73
|
-
if (typeof e == "boolean")
|
|
74
|
-
return e ? "true" : "false";
|
|
75
|
-
if (typeof e == "string")
|
|
76
|
-
return Ge(e, a);
|
|
77
|
-
if (typeof e == "number") {
|
|
78
|
-
if (e === 0)
|
|
79
|
-
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
80
|
-
var u = String(e);
|
|
81
|
-
return l ? de(e, u) : u;
|
|
82
|
-
}
|
|
83
|
-
if (typeof e == "bigint") {
|
|
84
|
-
var c = String(e) + "n";
|
|
85
|
-
return l ? de(e, c) : c;
|
|
86
|
-
}
|
|
87
|
-
var y = typeof a.depth > "u" ? 5 : a.depth;
|
|
88
|
-
if (typeof o > "u" && (o = 0), o >= y && y > 0 && typeof e == "object")
|
|
89
|
-
return Qt(e) ? "[Array]" : "[Object]";
|
|
90
|
-
var p = Qr(a, o);
|
|
91
|
-
if (typeof n > "u")
|
|
92
|
-
n = [];
|
|
93
|
-
else if (ze(n, e) >= 0)
|
|
94
|
-
return "[Circular]";
|
|
95
|
-
function f(_, C, R) {
|
|
96
|
-
if (C && (n = Dr.call(n), n.push(C)), R) {
|
|
97
|
-
var et = {
|
|
98
|
-
depth: a.depth
|
|
99
|
-
};
|
|
100
|
-
return D(a, "quoteStyle") && (et.quoteStyle = a.quoteStyle), t(_, et, o + 1, n);
|
|
101
|
-
}
|
|
102
|
-
return t(_, a, o + 1, n);
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "function" && !ge(e)) {
|
|
105
|
-
var g = Wr(e), v = st(e, f);
|
|
106
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (v.length > 0 ? " { " + I.call(v, ", ") + " }" : "");
|
|
107
|
-
}
|
|
108
|
-
if (Ve(e)) {
|
|
109
|
-
var O = X ? N.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Gt.call(e);
|
|
110
|
-
return typeof e == "object" && !X ? rt(O) : O;
|
|
111
|
-
}
|
|
112
|
-
if (zr(e)) {
|
|
113
|
-
for (var E = "<" + ue.call(String(e.nodeName)), T = e.attributes || [], F = 0; F < T.length; F++)
|
|
114
|
-
E += " " + T[F].name + "=" + He(Fr(T[F].value), "double", a);
|
|
115
|
-
return E += ">", e.childNodes && e.childNodes.length && (E += "..."), E += "</" + ue.call(String(e.nodeName)) + ">", E;
|
|
116
|
-
}
|
|
117
|
-
if (Qt(e)) {
|
|
118
|
-
if (e.length === 0)
|
|
119
|
-
return "[]";
|
|
120
|
-
var d = st(e, f);
|
|
121
|
-
return p && !Jr(d) ? "[" + Xt(d, p) + "]" : "[ " + I.call(d, ", ") + " ]";
|
|
122
|
-
}
|
|
123
|
-
if (kr(e)) {
|
|
124
|
-
var M = st(e, f);
|
|
125
|
-
return !("cause" in Error.prototype) && "cause" in e && !$e.call(e, "cause") ? "{ [" + String(e) + "] " + I.call(ye.call("[cause]: " + f(e.cause), M), ", ") + " }" : M.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + I.call(M, ", ") + " }";
|
|
126
|
-
}
|
|
127
|
-
if (typeof e == "object" && i) {
|
|
128
|
-
if (he && typeof e[he] == "function" && Jt)
|
|
129
|
-
return Jt(e, { depth: y - o });
|
|
130
|
-
if (i !== "symbol" && typeof e.inspect == "function")
|
|
131
|
-
return e.inspect();
|
|
132
|
-
}
|
|
133
|
-
if (Kr(e)) {
|
|
134
|
-
var B = [];
|
|
135
|
-
return le && le.call(e, function(_, C) {
|
|
136
|
-
B.push(f(C, e, !0) + " => " + f(_, e));
|
|
137
|
-
}), be("Map", vt.call(e), B, p);
|
|
138
|
-
}
|
|
139
|
-
if (Hr(e)) {
|
|
140
|
-
var tt = [];
|
|
141
|
-
return ce && ce.call(e, function(_) {
|
|
142
|
-
tt.push(f(_, e));
|
|
143
|
-
}), be("Set", wt.call(e), tt, p);
|
|
144
|
-
}
|
|
145
|
-
if ($r(e))
|
|
146
|
-
return Ft("WeakMap");
|
|
147
|
-
if (Vr(e))
|
|
148
|
-
return Ft("WeakSet");
|
|
149
|
-
if (qr(e))
|
|
150
|
-
return Ft("WeakRef");
|
|
151
|
-
if (Nr(e))
|
|
152
|
-
return rt(f(Number(e)));
|
|
153
|
-
if (Br(e))
|
|
154
|
-
return rt(f(zt.call(e)));
|
|
155
|
-
if (Lr(e))
|
|
156
|
-
return rt(_r.call(e));
|
|
157
|
-
if (Cr(e))
|
|
158
|
-
return rt(f(String(e)));
|
|
159
|
-
if (typeof window < "u" && e === window)
|
|
160
|
-
return "{ [object Window] }";
|
|
161
|
-
if (typeof globalThis < "u" && e === globalThis || typeof ie < "u" && e === ie)
|
|
162
|
-
return "{ [object globalThis] }";
|
|
163
|
-
if (!Mr(e) && !ge(e)) {
|
|
164
|
-
var H = st(e, f), yt = se ? se(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", k = !yt && at && Object(e) === e && at in e ? ee.call(L(e), 8, -1) : U ? "Object" : "", ft = yt || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = ft + (k || U ? "[" + I.call(ye.call([], k || [], U || []), ": ") + "] " : "");
|
|
165
|
-
return H.length === 0 ? V + "{}" : p ? V + "{" + Xt(H, p) + "}" : V + "{ " + I.call(H, ", ") + " }";
|
|
166
|
-
}
|
|
167
|
-
return String(e);
|
|
168
|
-
};
|
|
169
|
-
function He(t, e, r) {
|
|
170
|
-
var o = r.quoteStyle || e, n = qe[o];
|
|
171
|
-
return n + t + n;
|
|
172
|
-
}
|
|
173
|
-
function Fr(t) {
|
|
174
|
-
return N.call(String(t), /"/g, """);
|
|
175
|
-
}
|
|
176
|
-
function q(t) {
|
|
177
|
-
return !at || !(typeof t == "object" && (at in t || typeof t[at] < "u"));
|
|
178
|
-
}
|
|
179
|
-
function Qt(t) {
|
|
180
|
-
return L(t) === "[object Array]" && q(t);
|
|
181
|
-
}
|
|
182
|
-
function Mr(t) {
|
|
183
|
-
return L(t) === "[object Date]" && q(t);
|
|
184
|
-
}
|
|
185
|
-
function ge(t) {
|
|
186
|
-
return L(t) === "[object RegExp]" && q(t);
|
|
187
|
-
}
|
|
188
|
-
function kr(t) {
|
|
189
|
-
return L(t) === "[object Error]" && q(t);
|
|
190
|
-
}
|
|
191
|
-
function Cr(t) {
|
|
192
|
-
return L(t) === "[object String]" && q(t);
|
|
193
|
-
}
|
|
194
|
-
function Nr(t) {
|
|
195
|
-
return L(t) === "[object Number]" && q(t);
|
|
196
|
-
}
|
|
197
|
-
function Lr(t) {
|
|
198
|
-
return L(t) === "[object Boolean]" && q(t);
|
|
199
|
-
}
|
|
200
|
-
function Ve(t) {
|
|
201
|
-
if (X)
|
|
202
|
-
return t && typeof t == "object" && t instanceof Symbol;
|
|
203
|
-
if (typeof t == "symbol")
|
|
204
|
-
return !0;
|
|
205
|
-
if (!t || typeof t != "object" || !Gt)
|
|
206
|
-
return !1;
|
|
207
|
-
try {
|
|
208
|
-
return Gt.call(t), !0;
|
|
209
|
-
} catch {
|
|
210
|
-
}
|
|
211
|
-
return !1;
|
|
212
|
-
}
|
|
213
|
-
function Br(t) {
|
|
214
|
-
if (!t || typeof t != "object" || !zt)
|
|
215
|
-
return !1;
|
|
216
|
-
try {
|
|
217
|
-
return zt.call(t), !0;
|
|
218
|
-
} catch {
|
|
219
|
-
}
|
|
220
|
-
return !1;
|
|
221
|
-
}
|
|
222
|
-
var Ur = Object.prototype.hasOwnProperty || function(t) {
|
|
223
|
-
return t in this;
|
|
224
|
-
};
|
|
225
|
-
function D(t, e) {
|
|
226
|
-
return Ur.call(t, e);
|
|
227
|
-
}
|
|
228
|
-
function L(t) {
|
|
229
|
-
return Pr.call(t);
|
|
230
|
-
}
|
|
231
|
-
function Wr(t) {
|
|
232
|
-
if (t.name)
|
|
233
|
-
return t.name;
|
|
234
|
-
var e = Ir.call(xr.call(t), /^function\s*([\w$]+)/);
|
|
235
|
-
return e ? e[1] : null;
|
|
236
|
-
}
|
|
237
|
-
function ze(t, e) {
|
|
238
|
-
if (t.indexOf)
|
|
239
|
-
return t.indexOf(e);
|
|
240
|
-
for (var r = 0, o = t.length; r < o; r++)
|
|
241
|
-
if (t[r] === e)
|
|
242
|
-
return r;
|
|
243
|
-
return -1;
|
|
244
|
-
}
|
|
245
|
-
function Kr(t) {
|
|
246
|
-
if (!vt || !t || typeof t != "object")
|
|
247
|
-
return !1;
|
|
248
|
-
try {
|
|
249
|
-
vt.call(t);
|
|
250
|
-
try {
|
|
251
|
-
wt.call(t);
|
|
252
|
-
} catch {
|
|
253
|
-
return !0;
|
|
254
|
-
}
|
|
255
|
-
return t instanceof Map;
|
|
256
|
-
} catch {
|
|
257
|
-
}
|
|
258
|
-
return !1;
|
|
259
|
-
}
|
|
260
|
-
function $r(t) {
|
|
261
|
-
if (!ot || !t || typeof t != "object")
|
|
262
|
-
return !1;
|
|
263
|
-
try {
|
|
264
|
-
ot.call(t, ot);
|
|
265
|
-
try {
|
|
266
|
-
nt.call(t, nt);
|
|
267
|
-
} catch {
|
|
268
|
-
return !0;
|
|
269
|
-
}
|
|
270
|
-
return t instanceof WeakMap;
|
|
271
|
-
} catch {
|
|
272
|
-
}
|
|
273
|
-
return !1;
|
|
274
|
-
}
|
|
275
|
-
function qr(t) {
|
|
276
|
-
if (!pe || !t || typeof t != "object")
|
|
277
|
-
return !1;
|
|
278
|
-
try {
|
|
279
|
-
return pe.call(t), !0;
|
|
280
|
-
} catch {
|
|
281
|
-
}
|
|
282
|
-
return !1;
|
|
283
|
-
}
|
|
284
|
-
function Hr(t) {
|
|
285
|
-
if (!wt || !t || typeof t != "object")
|
|
286
|
-
return !1;
|
|
287
|
-
try {
|
|
288
|
-
wt.call(t);
|
|
289
|
-
try {
|
|
290
|
-
vt.call(t);
|
|
291
|
-
} catch {
|
|
292
|
-
return !0;
|
|
293
|
-
}
|
|
294
|
-
return t instanceof Set;
|
|
295
|
-
} catch {
|
|
296
|
-
}
|
|
297
|
-
return !1;
|
|
298
|
-
}
|
|
299
|
-
function Vr(t) {
|
|
300
|
-
if (!nt || !t || typeof t != "object")
|
|
301
|
-
return !1;
|
|
302
|
-
try {
|
|
303
|
-
nt.call(t, nt);
|
|
304
|
-
try {
|
|
305
|
-
ot.call(t, ot);
|
|
306
|
-
} catch {
|
|
307
|
-
return !0;
|
|
308
|
-
}
|
|
309
|
-
return t instanceof WeakSet;
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
return !1;
|
|
313
|
-
}
|
|
314
|
-
function zr(t) {
|
|
315
|
-
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
316
|
-
}
|
|
317
|
-
function Ge(t, e) {
|
|
318
|
-
if (t.length > e.maxStringLength) {
|
|
319
|
-
var r = t.length - e.maxStringLength, o = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
320
|
-
return Ge(ee.call(t, 0, e.maxStringLength), e) + o;
|
|
321
|
-
}
|
|
322
|
-
var n = Tr[e.quoteStyle || "single"];
|
|
323
|
-
n.lastIndex = 0;
|
|
324
|
-
var a = N.call(N.call(t, n, "\\$1"), /[\x00-\x1f]/g, Gr);
|
|
325
|
-
return He(a, "single", e);
|
|
326
|
-
}
|
|
327
|
-
function Gr(t) {
|
|
328
|
-
var e = t.charCodeAt(0), r = {
|
|
329
|
-
8: "b",
|
|
330
|
-
9: "t",
|
|
331
|
-
10: "n",
|
|
332
|
-
12: "f",
|
|
333
|
-
13: "r"
|
|
334
|
-
}[e];
|
|
335
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Rr.call(e.toString(16));
|
|
336
|
-
}
|
|
337
|
-
function rt(t) {
|
|
338
|
-
return "Object(" + t + ")";
|
|
339
|
-
}
|
|
340
|
-
function Ft(t) {
|
|
341
|
-
return t + " { ? }";
|
|
342
|
-
}
|
|
343
|
-
function be(t, e, r, o) {
|
|
344
|
-
var n = o ? Xt(r, o) : I.call(r, ", ");
|
|
345
|
-
return t + " (" + e + ") {" + n + "}";
|
|
346
|
-
}
|
|
347
|
-
function Jr(t) {
|
|
348
|
-
for (var e = 0; e < t.length; e++)
|
|
349
|
-
if (ze(t[e], `
|
|
350
|
-
`) >= 0)
|
|
351
|
-
return !1;
|
|
352
|
-
return !0;
|
|
353
|
-
}
|
|
354
|
-
function Qr(t, e) {
|
|
355
|
-
var r;
|
|
356
|
-
if (t.indent === " ")
|
|
357
|
-
r = " ";
|
|
358
|
-
else if (typeof t.indent == "number" && t.indent > 0)
|
|
359
|
-
r = I.call(Array(t.indent + 1), " ");
|
|
360
|
-
else
|
|
361
|
-
return null;
|
|
362
|
-
return {
|
|
363
|
-
base: r,
|
|
364
|
-
prev: I.call(Array(e + 1), r)
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
function Xt(t, e) {
|
|
368
|
-
if (t.length === 0)
|
|
369
|
-
return "";
|
|
370
|
-
var r = `
|
|
371
|
-
` + e.prev + e.base;
|
|
372
|
-
return r + I.call(t, "," + r) + `
|
|
373
|
-
` + e.prev;
|
|
374
|
-
}
|
|
375
|
-
function st(t, e) {
|
|
376
|
-
var r = Qt(t), o = [];
|
|
377
|
-
if (r) {
|
|
378
|
-
o.length = t.length;
|
|
379
|
-
for (var n = 0; n < t.length; n++)
|
|
380
|
-
o[n] = D(t, n) ? e(t[n], t) : "";
|
|
381
|
-
}
|
|
382
|
-
var a = typeof Tt == "function" ? Tt(t) : [], i;
|
|
383
|
-
if (X) {
|
|
384
|
-
i = {};
|
|
385
|
-
for (var l = 0; l < a.length; l++)
|
|
386
|
-
i["$" + a[l]] = a[l];
|
|
387
|
-
}
|
|
388
|
-
for (var u in t)
|
|
389
|
-
D(t, u) && (r && String(Number(u)) === u && u < t.length || X && i["$" + u] instanceof Symbol || (Ke.call(/[^\w$]/, u) ? o.push(e(u, t) + ": " + e(t[u], t)) : o.push(u + ": " + e(t[u], t))));
|
|
390
|
-
if (typeof Tt == "function")
|
|
391
|
-
for (var c = 0; c < a.length; c++)
|
|
392
|
-
$e.call(t, a[c]) && o.push("[" + e(a[c]) + "]: " + e(t[a[c]], t));
|
|
393
|
-
return o;
|
|
394
|
-
}
|
|
395
|
-
var Xr = Et, Yr = Z, Ot = function(t, e, r) {
|
|
396
|
-
for (var o = t, n; (n = o.next) != null; o = n)
|
|
397
|
-
if (n.key === e)
|
|
398
|
-
return o.next = n.next, r || (n.next = /** @type {NonNullable<typeof list.next>} */
|
|
399
|
-
t.next, t.next = n), n;
|
|
400
|
-
}, Zr = function(t, e) {
|
|
401
|
-
if (t) {
|
|
402
|
-
var r = Ot(t, e);
|
|
403
|
-
return r && r.value;
|
|
404
|
-
}
|
|
405
|
-
}, to = function(t, e, r) {
|
|
406
|
-
var o = Ot(t, e);
|
|
407
|
-
o ? o.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
408
|
-
{
|
|
409
|
-
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
410
|
-
key: e,
|
|
411
|
-
next: t.next,
|
|
412
|
-
value: r
|
|
413
|
-
};
|
|
414
|
-
}, eo = function(t, e) {
|
|
415
|
-
return t ? !!Ot(t, e) : !1;
|
|
416
|
-
}, ro = function(t, e) {
|
|
417
|
-
if (t)
|
|
418
|
-
return Ot(t, e, !0);
|
|
419
|
-
}, oo = function() {
|
|
420
|
-
var t, e = {
|
|
421
|
-
assert: function(r) {
|
|
422
|
-
if (!e.has(r))
|
|
423
|
-
throw new Yr("Side channel does not contain " + Xr(r));
|
|
424
|
-
},
|
|
425
|
-
delete: function(r) {
|
|
426
|
-
var o = t && t.next, n = ro(t, r);
|
|
427
|
-
return n && o && o === n && (t = void 0), !!n;
|
|
428
|
-
},
|
|
429
|
-
get: function(r) {
|
|
430
|
-
return Zr(t, r);
|
|
431
|
-
},
|
|
432
|
-
has: function(r) {
|
|
433
|
-
return eo(t, r);
|
|
434
|
-
},
|
|
435
|
-
set: function(r, o) {
|
|
436
|
-
t || (t = {
|
|
437
|
-
next: void 0
|
|
438
|
-
}), to(
|
|
439
|
-
/** @type {NonNullable<typeof $o>} */
|
|
440
|
-
t,
|
|
441
|
-
r,
|
|
442
|
-
o
|
|
443
|
-
);
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
return e;
|
|
447
|
-
}, Je = Object, no = Error, ao = EvalError, io = RangeError, lo = ReferenceError, co = SyntaxError, po = URIError, uo = Math.abs, yo = Math.floor, fo = Math.max, so = Math.min, mo = Math.pow, ho = Math.round, go = Number.isNaN || function(t) {
|
|
448
|
-
return t !== t;
|
|
449
|
-
}, bo = go, vo = function(t) {
|
|
450
|
-
return bo(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
451
|
-
}, wo = Object.getOwnPropertyDescriptor, ht = wo;
|
|
452
|
-
if (ht)
|
|
453
|
-
try {
|
|
454
|
-
ht([], "length");
|
|
455
|
-
} catch {
|
|
456
|
-
ht = null;
|
|
457
|
-
}
|
|
458
|
-
var Qe = ht, gt = Object.defineProperty || !1;
|
|
459
|
-
if (gt)
|
|
460
|
-
try {
|
|
461
|
-
gt({}, "a", { value: 1 });
|
|
462
|
-
} catch {
|
|
463
|
-
gt = !1;
|
|
464
|
-
}
|
|
465
|
-
var So = gt, ve, we;
|
|
466
|
-
function Ao() {
|
|
467
|
-
return we || (we = 1, ve = function() {
|
|
468
|
-
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
469
|
-
return !1;
|
|
470
|
-
if (typeof Symbol.iterator == "symbol")
|
|
471
|
-
return !0;
|
|
472
|
-
var t = {}, e = Symbol("test"), r = Object(e);
|
|
473
|
-
if (typeof e == "string" || Object.prototype.toString.call(e) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
|
|
474
|
-
return !1;
|
|
475
|
-
var o = 42;
|
|
476
|
-
t[e] = o;
|
|
477
|
-
for (var n in t)
|
|
478
|
-
return !1;
|
|
479
|
-
if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
|
|
480
|
-
return !1;
|
|
481
|
-
var a = Object.getOwnPropertySymbols(t);
|
|
482
|
-
if (a.length !== 1 || a[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e))
|
|
483
|
-
return !1;
|
|
484
|
-
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
485
|
-
var i = (
|
|
486
|
-
/** @type {PropertyDescriptor} */
|
|
487
|
-
Object.getOwnPropertyDescriptor(t, e)
|
|
488
|
-
);
|
|
489
|
-
if (i.value !== o || i.enumerable !== !0)
|
|
490
|
-
return !1;
|
|
491
|
-
}
|
|
492
|
-
return !0;
|
|
493
|
-
}), ve;
|
|
494
|
-
}
|
|
495
|
-
var Mt, Se;
|
|
496
|
-
function Eo() {
|
|
497
|
-
if (Se) return Mt;
|
|
498
|
-
Se = 1;
|
|
499
|
-
var t = typeof Symbol < "u" && Symbol, e = Ao();
|
|
500
|
-
return Mt = function() {
|
|
501
|
-
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
502
|
-
}, Mt;
|
|
503
|
-
}
|
|
504
|
-
var Ae, Ee;
|
|
505
|
-
function Xe() {
|
|
506
|
-
return Ee || (Ee = 1, Ae = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ae;
|
|
507
|
-
}
|
|
508
|
-
var kt, Oe;
|
|
509
|
-
function Ye() {
|
|
510
|
-
if (Oe) return kt;
|
|
511
|
-
Oe = 1;
|
|
512
|
-
var t = Je;
|
|
513
|
-
return kt = t.getPrototypeOf || null, kt;
|
|
514
|
-
}
|
|
515
|
-
var Ct, je;
|
|
516
|
-
function Oo() {
|
|
517
|
-
if (je) return Ct;
|
|
518
|
-
je = 1;
|
|
519
|
-
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, r = Math.max, o = "[object Function]", n = function(l, u) {
|
|
520
|
-
for (var c = [], y = 0; y < l.length; y += 1)
|
|
521
|
-
c[y] = l[y];
|
|
522
|
-
for (var p = 0; p < u.length; p += 1)
|
|
523
|
-
c[p + l.length] = u[p];
|
|
524
|
-
return c;
|
|
525
|
-
}, a = function(l, u) {
|
|
526
|
-
for (var c = [], y = u, p = 0; y < l.length; y += 1, p += 1)
|
|
527
|
-
c[p] = l[y];
|
|
528
|
-
return c;
|
|
529
|
-
}, i = function(l, u) {
|
|
530
|
-
for (var c = "", y = 0; y < l.length; y += 1)
|
|
531
|
-
c += l[y], y + 1 < l.length && (c += u);
|
|
532
|
-
return c;
|
|
533
|
-
};
|
|
534
|
-
return Ct = function(l) {
|
|
535
|
-
var u = this;
|
|
536
|
-
if (typeof u != "function" || e.apply(u) !== o)
|
|
537
|
-
throw new TypeError(t + u);
|
|
538
|
-
for (var c = a(arguments, 1), y, p = function() {
|
|
539
|
-
if (this instanceof y) {
|
|
540
|
-
var E = u.apply(
|
|
541
|
-
this,
|
|
542
|
-
n(c, arguments)
|
|
543
|
-
);
|
|
544
|
-
return Object(E) === E ? E : this;
|
|
545
|
-
}
|
|
546
|
-
return u.apply(
|
|
547
|
-
l,
|
|
548
|
-
n(c, arguments)
|
|
549
|
-
);
|
|
550
|
-
}, f = r(0, u.length - c.length), g = [], v = 0; v < f; v++)
|
|
551
|
-
g[v] = "$" + v;
|
|
552
|
-
if (y = Function("binder", "return function (" + i(g, ",") + "){ return binder.apply(this,arguments); }")(p), u.prototype) {
|
|
553
|
-
var O = function() {
|
|
554
|
-
};
|
|
555
|
-
O.prototype = u.prototype, y.prototype = new O(), O.prototype = null;
|
|
556
|
-
}
|
|
557
|
-
return y;
|
|
558
|
-
}, Ct;
|
|
559
|
-
}
|
|
560
|
-
var Nt, _e;
|
|
561
|
-
function jt() {
|
|
562
|
-
if (_e) return Nt;
|
|
563
|
-
_e = 1;
|
|
564
|
-
var t = Oo();
|
|
565
|
-
return Nt = Function.prototype.bind || t, Nt;
|
|
566
|
-
}
|
|
567
|
-
var Pe, xe;
|
|
568
|
-
function re() {
|
|
569
|
-
return xe || (xe = 1, Pe = Function.prototype.call), Pe;
|
|
570
|
-
}
|
|
571
|
-
var Ie, Re;
|
|
572
|
-
function Ze() {
|
|
573
|
-
return Re || (Re = 1, Ie = Function.prototype.apply), Ie;
|
|
574
|
-
}
|
|
575
|
-
var jo = typeof Reflect < "u" && Reflect && Reflect.apply, _o = jt(), Po = Ze(), xo = re(), Io = jo, Ro = Io || _o.call(xo, Po), Do = jt(), To = Z, Fo = re(), Mo = Ro, tr = function(t) {
|
|
576
|
-
if (t.length < 1 || typeof t[0] != "function")
|
|
577
|
-
throw new To("a function is required");
|
|
578
|
-
return Mo(Do, Fo, t);
|
|
579
|
-
}, Lt, De;
|
|
580
|
-
function ko() {
|
|
581
|
-
if (De) return Lt;
|
|
582
|
-
De = 1;
|
|
583
|
-
var t = tr, e = Qe, r;
|
|
584
|
-
try {
|
|
585
|
-
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
586
|
-
[].__proto__ === Array.prototype;
|
|
587
|
-
} catch (i) {
|
|
588
|
-
if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
|
|
589
|
-
throw i;
|
|
590
|
-
}
|
|
591
|
-
var o = !!r && e && e(
|
|
592
|
-
Object.prototype,
|
|
593
|
-
/** @type {keyof typeof Object.prototype} */
|
|
594
|
-
"__proto__"
|
|
595
|
-
), n = Object, a = n.getPrototypeOf;
|
|
596
|
-
return Lt = o && typeof o.get == "function" ? t([o.get]) : typeof a == "function" ? (
|
|
597
|
-
/** @type {import('./get')} */
|
|
598
|
-
function(i) {
|
|
599
|
-
return a(i == null ? i : n(i));
|
|
600
|
-
}
|
|
601
|
-
) : !1, Lt;
|
|
602
|
-
}
|
|
603
|
-
var Bt, Te;
|
|
604
|
-
function Co() {
|
|
605
|
-
if (Te) return Bt;
|
|
606
|
-
Te = 1;
|
|
607
|
-
var t = Xe(), e = Ye(), r = ko();
|
|
608
|
-
return Bt = t ? function(o) {
|
|
609
|
-
return t(o);
|
|
610
|
-
} : e ? function(o) {
|
|
611
|
-
if (!o || typeof o != "object" && typeof o != "function")
|
|
612
|
-
throw new TypeError("getProto: not an object");
|
|
613
|
-
return e(o);
|
|
614
|
-
} : r ? function(o) {
|
|
615
|
-
return r(o);
|
|
616
|
-
} : null, Bt;
|
|
617
|
-
}
|
|
618
|
-
var Ut, Fe;
|
|
619
|
-
function No() {
|
|
620
|
-
if (Fe) return Ut;
|
|
621
|
-
Fe = 1;
|
|
622
|
-
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = jt();
|
|
623
|
-
return Ut = r.call(t, e), Ut;
|
|
624
|
-
}
|
|
625
|
-
var s, Lo = Je, Bo = no, Uo = ao, Wo = io, Ko = lo, Y = co, Q = Z, $o = po, qo = uo, Ho = yo, Vo = fo, zo = so, Go = mo, Jo = ho, Qo = vo, er = Function, Wt = function(t) {
|
|
626
|
-
try {
|
|
627
|
-
return er('"use strict"; return (' + t + ").constructor;")();
|
|
628
|
-
} catch {
|
|
629
|
-
}
|
|
630
|
-
}, lt = Qe, Xo = So, Kt = function() {
|
|
631
|
-
throw new Q();
|
|
632
|
-
}, Yo = lt ? function() {
|
|
633
|
-
try {
|
|
634
|
-
return arguments.callee, Kt;
|
|
635
|
-
} catch {
|
|
636
|
-
try {
|
|
637
|
-
return lt(arguments, "callee").get;
|
|
638
|
-
} catch {
|
|
639
|
-
return Kt;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}() : Kt, z = Eo()(), A = Co(), Zo = Ye(), tn = Xe(), rr = Ze(), ct = re(), J = {}, en = typeof Uint8Array > "u" || !A ? s : A(Uint8Array), K = {
|
|
643
|
-
__proto__: null,
|
|
644
|
-
"%AggregateError%": typeof AggregateError > "u" ? s : AggregateError,
|
|
645
|
-
"%Array%": Array,
|
|
646
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer,
|
|
647
|
-
"%ArrayIteratorPrototype%": z && A ? A([][Symbol.iterator]()) : s,
|
|
648
|
-
"%AsyncFromSyncIteratorPrototype%": s,
|
|
649
|
-
"%AsyncFunction%": J,
|
|
650
|
-
"%AsyncGenerator%": J,
|
|
651
|
-
"%AsyncGeneratorFunction%": J,
|
|
652
|
-
"%AsyncIteratorPrototype%": J,
|
|
653
|
-
"%Atomics%": typeof Atomics > "u" ? s : Atomics,
|
|
654
|
-
"%BigInt%": typeof BigInt > "u" ? s : BigInt,
|
|
655
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ? s : BigInt64Array,
|
|
656
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ? s : BigUint64Array,
|
|
657
|
-
"%Boolean%": Boolean,
|
|
658
|
-
"%DataView%": typeof DataView > "u" ? s : DataView,
|
|
659
|
-
"%Date%": Date,
|
|
660
|
-
"%decodeURI%": decodeURI,
|
|
661
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
662
|
-
"%encodeURI%": encodeURI,
|
|
663
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
664
|
-
"%Error%": Bo,
|
|
665
|
-
"%eval%": eval,
|
|
666
|
-
// eslint-disable-line no-eval
|
|
667
|
-
"%EvalError%": Uo,
|
|
668
|
-
"%Float16Array%": typeof Float16Array > "u" ? s : Float16Array,
|
|
669
|
-
"%Float32Array%": typeof Float32Array > "u" ? s : Float32Array,
|
|
670
|
-
"%Float64Array%": typeof Float64Array > "u" ? s : Float64Array,
|
|
671
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry,
|
|
672
|
-
"%Function%": er,
|
|
673
|
-
"%GeneratorFunction%": J,
|
|
674
|
-
"%Int8Array%": typeof Int8Array > "u" ? s : Int8Array,
|
|
675
|
-
"%Int16Array%": typeof Int16Array > "u" ? s : Int16Array,
|
|
676
|
-
"%Int32Array%": typeof Int32Array > "u" ? s : Int32Array,
|
|
677
|
-
"%isFinite%": isFinite,
|
|
678
|
-
"%isNaN%": isNaN,
|
|
679
|
-
"%IteratorPrototype%": z && A ? A(A([][Symbol.iterator]())) : s,
|
|
680
|
-
"%JSON%": typeof JSON == "object" ? JSON : s,
|
|
681
|
-
"%Map%": typeof Map > "u" ? s : Map,
|
|
682
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !z || !A ? s : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
683
|
-
"%Math%": Math,
|
|
684
|
-
"%Number%": Number,
|
|
685
|
-
"%Object%": Lo,
|
|
686
|
-
"%Object.getOwnPropertyDescriptor%": lt,
|
|
687
|
-
"%parseFloat%": parseFloat,
|
|
688
|
-
"%parseInt%": parseInt,
|
|
689
|
-
"%Promise%": typeof Promise > "u" ? s : Promise,
|
|
690
|
-
"%Proxy%": typeof Proxy > "u" ? s : Proxy,
|
|
691
|
-
"%RangeError%": Wo,
|
|
692
|
-
"%ReferenceError%": Ko,
|
|
693
|
-
"%Reflect%": typeof Reflect > "u" ? s : Reflect,
|
|
694
|
-
"%RegExp%": RegExp,
|
|
695
|
-
"%Set%": typeof Set > "u" ? s : Set,
|
|
696
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !z || !A ? s : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
697
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? s : SharedArrayBuffer,
|
|
698
|
-
"%String%": String,
|
|
699
|
-
"%StringIteratorPrototype%": z && A ? A(""[Symbol.iterator]()) : s,
|
|
700
|
-
"%Symbol%": z ? Symbol : s,
|
|
701
|
-
"%SyntaxError%": Y,
|
|
702
|
-
"%ThrowTypeError%": Yo,
|
|
703
|
-
"%TypedArray%": en,
|
|
704
|
-
"%TypeError%": Q,
|
|
705
|
-
"%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array,
|
|
706
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray,
|
|
707
|
-
"%Uint16Array%": typeof Uint16Array > "u" ? s : Uint16Array,
|
|
708
|
-
"%Uint32Array%": typeof Uint32Array > "u" ? s : Uint32Array,
|
|
709
|
-
"%URIError%": $o,
|
|
710
|
-
"%WeakMap%": typeof WeakMap > "u" ? s : WeakMap,
|
|
711
|
-
"%WeakRef%": typeof WeakRef > "u" ? s : WeakRef,
|
|
712
|
-
"%WeakSet%": typeof WeakSet > "u" ? s : WeakSet,
|
|
713
|
-
"%Function.prototype.call%": ct,
|
|
714
|
-
"%Function.prototype.apply%": rr,
|
|
715
|
-
"%Object.defineProperty%": Xo,
|
|
716
|
-
"%Object.getPrototypeOf%": Zo,
|
|
717
|
-
"%Math.abs%": qo,
|
|
718
|
-
"%Math.floor%": Ho,
|
|
719
|
-
"%Math.max%": Vo,
|
|
720
|
-
"%Math.min%": zo,
|
|
721
|
-
"%Math.pow%": Go,
|
|
722
|
-
"%Math.round%": Jo,
|
|
723
|
-
"%Math.sign%": Qo,
|
|
724
|
-
"%Reflect.getPrototypeOf%": tn
|
|
725
|
-
};
|
|
726
|
-
if (A)
|
|
727
|
-
try {
|
|
728
|
-
null.error;
|
|
729
|
-
} catch (t) {
|
|
730
|
-
var rn = A(A(t));
|
|
731
|
-
K["%Error.prototype%"] = rn;
|
|
732
|
-
}
|
|
733
|
-
var on = function t(e) {
|
|
734
|
-
var r;
|
|
735
|
-
if (e === "%AsyncFunction%")
|
|
736
|
-
r = Wt("async function () {}");
|
|
737
|
-
else if (e === "%GeneratorFunction%")
|
|
738
|
-
r = Wt("function* () {}");
|
|
739
|
-
else if (e === "%AsyncGeneratorFunction%")
|
|
740
|
-
r = Wt("async function* () {}");
|
|
741
|
-
else if (e === "%AsyncGenerator%") {
|
|
742
|
-
var o = t("%AsyncGeneratorFunction%");
|
|
743
|
-
o && (r = o.prototype);
|
|
744
|
-
} else if (e === "%AsyncIteratorPrototype%") {
|
|
745
|
-
var n = t("%AsyncGenerator%");
|
|
746
|
-
n && A && (r = A(n.prototype));
|
|
747
|
-
}
|
|
748
|
-
return K[e] = r, r;
|
|
749
|
-
}, Me = {
|
|
750
|
-
__proto__: null,
|
|
751
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
752
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
753
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
754
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
755
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
756
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
757
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
758
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
759
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
760
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
761
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
762
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
763
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
764
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
765
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
766
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
767
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
768
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
769
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
770
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
771
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
772
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
773
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
774
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
775
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
776
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
777
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
778
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
779
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
780
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
781
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
782
|
-
"%Promise_all%": ["Promise", "all"],
|
|
783
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
784
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
785
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
786
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
787
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
788
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
789
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
790
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
791
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
792
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
793
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
794
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
795
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
796
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
797
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
798
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
799
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
800
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
801
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
802
|
-
}, pt = jt(), St = No(), nn = pt.call(ct, Array.prototype.concat), an = pt.call(rr, Array.prototype.splice), ke = pt.call(ct, String.prototype.replace), At = pt.call(ct, String.prototype.slice), ln = pt.call(ct, RegExp.prototype.exec), cn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, pn = /\\(\\)?/g, un = function(t) {
|
|
803
|
-
var e = At(t, 0, 1), r = At(t, -1);
|
|
804
|
-
if (e === "%" && r !== "%")
|
|
805
|
-
throw new Y("invalid intrinsic syntax, expected closing `%`");
|
|
806
|
-
if (r === "%" && e !== "%")
|
|
807
|
-
throw new Y("invalid intrinsic syntax, expected opening `%`");
|
|
808
|
-
var o = [];
|
|
809
|
-
return ke(t, cn, function(n, a, i, l) {
|
|
810
|
-
o[o.length] = i ? ke(l, pn, "$1") : a || n;
|
|
811
|
-
}), o;
|
|
812
|
-
}, yn = function(t, e) {
|
|
813
|
-
var r = t, o;
|
|
814
|
-
if (St(Me, r) && (o = Me[r], r = "%" + o[0] + "%"), St(K, r)) {
|
|
815
|
-
var n = K[r];
|
|
816
|
-
if (n === J && (n = on(r)), typeof n > "u" && !e)
|
|
817
|
-
throw new Q("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
818
|
-
return {
|
|
819
|
-
alias: o,
|
|
820
|
-
name: r,
|
|
821
|
-
value: n
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
throw new Y("intrinsic " + t + " does not exist!");
|
|
825
|
-
}, oe = function(t, e) {
|
|
826
|
-
if (typeof t != "string" || t.length === 0)
|
|
827
|
-
throw new Q("intrinsic name must be a non-empty string");
|
|
828
|
-
if (arguments.length > 1 && typeof e != "boolean")
|
|
829
|
-
throw new Q('"allowMissing" argument must be a boolean');
|
|
830
|
-
if (ln(/^%?[^%]*%?$/, t) === null)
|
|
831
|
-
throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
832
|
-
var r = un(t), o = r.length > 0 ? r[0] : "", n = yn("%" + o + "%", e), a = n.name, i = n.value, l = !1, u = n.alias;
|
|
833
|
-
u && (o = u[0], an(r, nn([0, 1], u)));
|
|
834
|
-
for (var c = 1, y = !0; c < r.length; c += 1) {
|
|
835
|
-
var p = r[c], f = At(p, 0, 1), g = At(p, -1);
|
|
836
|
-
if ((f === '"' || f === "'" || f === "`" || g === '"' || g === "'" || g === "`") && f !== g)
|
|
837
|
-
throw new Y("property names with quotes must have matching quotes");
|
|
838
|
-
if ((p === "constructor" || !y) && (l = !0), o += "." + p, a = "%" + o + "%", St(K, a))
|
|
839
|
-
i = K[a];
|
|
840
|
-
else if (i != null) {
|
|
841
|
-
if (!(p in i)) {
|
|
842
|
-
if (!e)
|
|
843
|
-
throw new Q("base intrinsic for " + t + " exists, but the property is not available.");
|
|
844
|
-
return;
|
|
845
|
-
}
|
|
846
|
-
if (lt && c + 1 >= r.length) {
|
|
847
|
-
var v = lt(i, p);
|
|
848
|
-
y = !!v, y && "get" in v && !("originalValue" in v.get) ? i = v.get : i = i[p];
|
|
849
|
-
} else
|
|
850
|
-
y = St(i, p), i = i[p];
|
|
851
|
-
y && !l && (K[a] = i);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
return i;
|
|
855
|
-
}, or = oe, nr = tr, fn = nr([or("%String.prototype.indexOf%")]), ar = function(t, e) {
|
|
856
|
-
var r = (
|
|
857
|
-
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
858
|
-
or(t, !!e)
|
|
859
|
-
);
|
|
860
|
-
return typeof r == "function" && fn(t, ".prototype.") > -1 ? nr(
|
|
861
|
-
/** @type {const} */
|
|
862
|
-
[r]
|
|
863
|
-
) : r;
|
|
864
|
-
}, sn = oe, ut = ar, dn = Et, mn = Z, Ce = sn("%Map%", !0), hn = ut("Map.prototype.get", !0), gn = ut("Map.prototype.set", !0), bn = ut("Map.prototype.has", !0), vn = ut("Map.prototype.delete", !0), wn = ut("Map.prototype.size", !0), ir = !!Ce && /** @type {Exclude<import('.'), false>} */
|
|
865
|
-
function() {
|
|
866
|
-
var t, e = {
|
|
867
|
-
assert: function(r) {
|
|
868
|
-
if (!e.has(r))
|
|
869
|
-
throw new mn("Side channel does not contain " + dn(r));
|
|
870
|
-
},
|
|
871
|
-
delete: function(r) {
|
|
872
|
-
if (t) {
|
|
873
|
-
var o = vn(t, r);
|
|
874
|
-
return wn(t) === 0 && (t = void 0), o;
|
|
875
|
-
}
|
|
876
|
-
return !1;
|
|
877
|
-
},
|
|
878
|
-
get: function(r) {
|
|
879
|
-
if (t)
|
|
880
|
-
return hn(t, r);
|
|
881
|
-
},
|
|
882
|
-
has: function(r) {
|
|
883
|
-
return t ? bn(t, r) : !1;
|
|
884
|
-
},
|
|
885
|
-
set: function(r, o) {
|
|
886
|
-
t || (t = new Ce()), gn(t, r, o);
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
|
-
return e;
|
|
890
|
-
}, Sn = oe, _t = ar, An = Et, dt = ir, En = Z, G = Sn("%WeakMap%", !0), On = _t("WeakMap.prototype.get", !0), jn = _t("WeakMap.prototype.set", !0), _n = _t("WeakMap.prototype.has", !0), Pn = _t("WeakMap.prototype.delete", !0), xn = G ? (
|
|
891
|
-
/** @type {Exclude<import('.'), false>} */
|
|
892
|
-
function() {
|
|
893
|
-
var t, e, r = {
|
|
894
|
-
assert: function(o) {
|
|
895
|
-
if (!r.has(o))
|
|
896
|
-
throw new En("Side channel does not contain " + An(o));
|
|
897
|
-
},
|
|
898
|
-
delete: function(o) {
|
|
899
|
-
if (G && o && (typeof o == "object" || typeof o == "function")) {
|
|
900
|
-
if (t)
|
|
901
|
-
return Pn(t, o);
|
|
902
|
-
} else if (dt && e)
|
|
903
|
-
return e.delete(o);
|
|
904
|
-
return !1;
|
|
905
|
-
},
|
|
906
|
-
get: function(o) {
|
|
907
|
-
return G && o && (typeof o == "object" || typeof o == "function") && t ? On(t, o) : e && e.get(o);
|
|
908
|
-
},
|
|
909
|
-
has: function(o) {
|
|
910
|
-
return G && o && (typeof o == "object" || typeof o == "function") && t ? _n(t, o) : !!e && e.has(o);
|
|
911
|
-
},
|
|
912
|
-
set: function(o, n) {
|
|
913
|
-
G && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new G()), jn(t, o, n)) : dt && (e || (e = dt()), e.set(o, n));
|
|
914
|
-
}
|
|
915
|
-
};
|
|
916
|
-
return r;
|
|
917
|
-
}
|
|
918
|
-
) : dt, In = Z, Rn = Et, Dn = oo, Tn = ir, Fn = xn, Mn = Fn || Tn || Dn, kn = function() {
|
|
919
|
-
var t, e = {
|
|
920
|
-
assert: function(r) {
|
|
921
|
-
if (!e.has(r))
|
|
922
|
-
throw new In("Side channel does not contain " + Rn(r));
|
|
923
|
-
},
|
|
924
|
-
delete: function(r) {
|
|
925
|
-
return !!t && t.delete(r);
|
|
926
|
-
},
|
|
927
|
-
get: function(r) {
|
|
928
|
-
return t && t.get(r);
|
|
929
|
-
},
|
|
930
|
-
has: function(r) {
|
|
931
|
-
return !!t && t.has(r);
|
|
932
|
-
},
|
|
933
|
-
set: function(r, o) {
|
|
934
|
-
t || (t = Mn()), t.set(r, o);
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
|
-
return e;
|
|
938
|
-
}, Cn = String.prototype.replace, Nn = /%20/g, $t = {
|
|
939
|
-
RFC1738: "RFC1738",
|
|
940
|
-
RFC3986: "RFC3986"
|
|
941
|
-
}, ne = {
|
|
942
|
-
default: $t.RFC3986,
|
|
943
|
-
formatters: {
|
|
944
|
-
RFC1738: function(t) {
|
|
945
|
-
return Cn.call(t, Nn, "+");
|
|
946
|
-
},
|
|
947
|
-
RFC3986: function(t) {
|
|
948
|
-
return String(t);
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
RFC1738: $t.RFC1738,
|
|
952
|
-
RFC3986: $t.RFC3986
|
|
953
|
-
}, Ln = ne, qt = Object.prototype.hasOwnProperty, W = Array.isArray, P = function() {
|
|
954
|
-
for (var t = [], e = 0; e < 256; ++e)
|
|
955
|
-
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
956
|
-
return t;
|
|
957
|
-
}(), Bn = function(t) {
|
|
958
|
-
for (; t.length > 1; ) {
|
|
959
|
-
var e = t.pop(), r = e.obj[e.prop];
|
|
960
|
-
if (W(r)) {
|
|
961
|
-
for (var o = [], n = 0; n < r.length; ++n)
|
|
962
|
-
typeof r[n] < "u" && o.push(r[n]);
|
|
963
|
-
e.obj[e.prop] = o;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
}, lr = function(t, e) {
|
|
967
|
-
for (var r = e && e.plainObjects ? { __proto__: null } : {}, o = 0; o < t.length; ++o)
|
|
968
|
-
typeof t[o] < "u" && (r[o] = t[o]);
|
|
969
|
-
return r;
|
|
970
|
-
}, Un = function t(e, r, o) {
|
|
971
|
-
if (!r)
|
|
972
|
-
return e;
|
|
973
|
-
if (typeof r != "object" && typeof r != "function") {
|
|
974
|
-
if (W(e))
|
|
975
|
-
e.push(r);
|
|
976
|
-
else if (e && typeof e == "object")
|
|
977
|
-
(o && (o.plainObjects || o.allowPrototypes) || !qt.call(Object.prototype, r)) && (e[r] = !0);
|
|
978
|
-
else
|
|
979
|
-
return [e, r];
|
|
980
|
-
return e;
|
|
981
|
-
}
|
|
982
|
-
if (!e || typeof e != "object")
|
|
983
|
-
return [e].concat(r);
|
|
984
|
-
var n = e;
|
|
985
|
-
return W(e) && !W(r) && (n = lr(e, o)), W(e) && W(r) ? (r.forEach(function(a, i) {
|
|
986
|
-
if (qt.call(e, i)) {
|
|
987
|
-
var l = e[i];
|
|
988
|
-
l && typeof l == "object" && a && typeof a == "object" ? e[i] = t(l, a, o) : e.push(a);
|
|
989
|
-
} else
|
|
990
|
-
e[i] = a;
|
|
991
|
-
}), e) : Object.keys(r).reduce(function(a, i) {
|
|
992
|
-
var l = r[i];
|
|
993
|
-
return qt.call(a, i) ? a[i] = t(a[i], l, o) : a[i] = l, a;
|
|
994
|
-
}, n);
|
|
995
|
-
}, Wn = function(t, e) {
|
|
996
|
-
return Object.keys(e).reduce(function(r, o) {
|
|
997
|
-
return r[o] = e[o], r;
|
|
998
|
-
}, t);
|
|
999
|
-
}, Kn = function(t, e, r) {
|
|
1000
|
-
var o = t.replace(/\+/g, " ");
|
|
1001
|
-
if (r === "iso-8859-1")
|
|
1002
|
-
return o.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
1003
|
-
try {
|
|
1004
|
-
return decodeURIComponent(o);
|
|
1005
|
-
} catch {
|
|
1006
|
-
return o;
|
|
1007
|
-
}
|
|
1008
|
-
}, Ht = 1024, $n = function(t, e, r, o, n) {
|
|
1009
|
-
if (t.length === 0)
|
|
1010
|
-
return t;
|
|
1011
|
-
var a = t;
|
|
1012
|
-
if (typeof t == "symbol" ? a = Symbol.prototype.toString.call(t) : typeof t != "string" && (a = String(t)), r === "iso-8859-1")
|
|
1013
|
-
return escape(a).replace(/%u[0-9a-f]{4}/gi, function(f) {
|
|
1014
|
-
return "%26%23" + parseInt(f.slice(2), 16) + "%3B";
|
|
1015
|
-
});
|
|
1016
|
-
for (var i = "", l = 0; l < a.length; l += Ht) {
|
|
1017
|
-
for (var u = a.length >= Ht ? a.slice(l, l + Ht) : a, c = [], y = 0; y < u.length; ++y) {
|
|
1018
|
-
var p = u.charCodeAt(y);
|
|
1019
|
-
if (p === 45 || p === 46 || p === 95 || p === 126 || p >= 48 && p <= 57 || p >= 65 && p <= 90 || p >= 97 && p <= 122 || n === Ln.RFC1738 && (p === 40 || p === 41)) {
|
|
1020
|
-
c[c.length] = u.charAt(y);
|
|
1021
|
-
continue;
|
|
1022
|
-
}
|
|
1023
|
-
if (p < 128) {
|
|
1024
|
-
c[c.length] = P[p];
|
|
1025
|
-
continue;
|
|
1026
|
-
}
|
|
1027
|
-
if (p < 2048) {
|
|
1028
|
-
c[c.length] = P[192 | p >> 6] + P[128 | p & 63];
|
|
1029
|
-
continue;
|
|
1030
|
-
}
|
|
1031
|
-
if (p < 55296 || p >= 57344) {
|
|
1032
|
-
c[c.length] = P[224 | p >> 12] + P[128 | p >> 6 & 63] + P[128 | p & 63];
|
|
1033
|
-
continue;
|
|
1034
|
-
}
|
|
1035
|
-
y += 1, p = 65536 + ((p & 1023) << 10 | u.charCodeAt(y) & 1023), c[c.length] = P[240 | p >> 18] + P[128 | p >> 12 & 63] + P[128 | p >> 6 & 63] + P[128 | p & 63];
|
|
1036
|
-
}
|
|
1037
|
-
i += c.join("");
|
|
1038
|
-
}
|
|
1039
|
-
return i;
|
|
1040
|
-
}, qn = function(t) {
|
|
1041
|
-
for (var e = [{ obj: { o: t }, prop: "o" }], r = [], o = 0; o < e.length; ++o)
|
|
1042
|
-
for (var n = e[o], a = n.obj[n.prop], i = Object.keys(a), l = 0; l < i.length; ++l) {
|
|
1043
|
-
var u = i[l], c = a[u];
|
|
1044
|
-
typeof c == "object" && c !== null && r.indexOf(c) === -1 && (e.push({ obj: a, prop: u }), r.push(c));
|
|
1045
|
-
}
|
|
1046
|
-
return Bn(e), t;
|
|
1047
|
-
}, Hn = function(t) {
|
|
1048
|
-
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
1049
|
-
}, Vn = function(t) {
|
|
1050
|
-
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
1051
|
-
}, zn = function(t, e) {
|
|
1052
|
-
return [].concat(t, e);
|
|
1053
|
-
}, Gn = function(t, e) {
|
|
1054
|
-
if (W(t)) {
|
|
1055
|
-
for (var r = [], o = 0; o < t.length; o += 1)
|
|
1056
|
-
r.push(e(t[o]));
|
|
1057
|
-
return r;
|
|
1058
|
-
}
|
|
1059
|
-
return e(t);
|
|
1060
|
-
}, cr = {
|
|
1061
|
-
arrayToObject: lr,
|
|
1062
|
-
assign: Wn,
|
|
1063
|
-
combine: zn,
|
|
1064
|
-
compact: qn,
|
|
1065
|
-
decode: Kn,
|
|
1066
|
-
encode: $n,
|
|
1067
|
-
isBuffer: Vn,
|
|
1068
|
-
isRegExp: Hn,
|
|
1069
|
-
maybeMap: Gn,
|
|
1070
|
-
merge: Un
|
|
1071
|
-
}, pr = kn, bt = cr, it = ne, Jn = Object.prototype.hasOwnProperty, ur = {
|
|
1072
|
-
brackets: function(t) {
|
|
1073
|
-
return t + "[]";
|
|
1074
|
-
},
|
|
1075
|
-
comma: "comma",
|
|
1076
|
-
indices: function(t, e) {
|
|
1077
|
-
return t + "[" + e + "]";
|
|
1078
|
-
},
|
|
1079
|
-
repeat: function(t) {
|
|
1080
|
-
return t;
|
|
1081
|
-
}
|
|
1082
|
-
}, x = Array.isArray, Qn = Array.prototype.push, yr = function(t, e) {
|
|
1083
|
-
Qn.apply(t, x(e) ? e : [e]);
|
|
1084
|
-
}, Xn = Date.prototype.toISOString, Ne = it.default, S = {
|
|
1085
|
-
addQueryPrefix: !1,
|
|
1086
|
-
allowDots: !1,
|
|
1087
|
-
allowEmptyArrays: !1,
|
|
1088
|
-
arrayFormat: "indices",
|
|
1089
|
-
charset: "utf-8",
|
|
1090
|
-
charsetSentinel: !1,
|
|
1091
|
-
commaRoundTrip: !1,
|
|
1092
|
-
delimiter: "&",
|
|
1093
|
-
encode: !0,
|
|
1094
|
-
encodeDotInKeys: !1,
|
|
1095
|
-
encoder: bt.encode,
|
|
1096
|
-
encodeValuesOnly: !1,
|
|
1097
|
-
filter: void 0,
|
|
1098
|
-
format: Ne,
|
|
1099
|
-
formatter: it.formatters[Ne],
|
|
1100
|
-
// deprecated
|
|
1101
|
-
indices: !1,
|
|
1102
|
-
serializeDate: function(t) {
|
|
1103
|
-
return Xn.call(t);
|
|
1104
|
-
},
|
|
1105
|
-
skipNulls: !1,
|
|
1106
|
-
strictNullHandling: !1
|
|
1107
|
-
}, Yn = function(t) {
|
|
1108
|
-
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
1109
|
-
}, Vt = {}, Zn = function t(e, r, o, n, a, i, l, u, c, y, p, f, g, v, O, E, T, F) {
|
|
1110
|
-
for (var d = e, M = F, B = 0, tt = !1; (M = M.get(Vt)) !== void 0 && !tt; ) {
|
|
1111
|
-
var H = M.get(e);
|
|
1112
|
-
if (B += 1, typeof H < "u") {
|
|
1113
|
-
if (H === B)
|
|
1114
|
-
throw new RangeError("Cyclic object value");
|
|
1115
|
-
tt = !0;
|
|
1116
|
-
}
|
|
1117
|
-
typeof M.get(Vt) > "u" && (B = 0);
|
|
1118
|
-
}
|
|
1119
|
-
if (typeof y == "function" ? d = y(r, d) : d instanceof Date ? d = g(d) : o === "comma" && x(d) && (d = bt.maybeMap(d, function(xt) {
|
|
1120
|
-
return xt instanceof Date ? g(xt) : xt;
|
|
1121
|
-
})), d === null) {
|
|
1122
|
-
if (i)
|
|
1123
|
-
return c && !E ? c(r, S.encoder, T, "key", v) : r;
|
|
1124
|
-
d = "";
|
|
1125
|
-
}
|
|
1126
|
-
if (Yn(d) || bt.isBuffer(d)) {
|
|
1127
|
-
if (c) {
|
|
1128
|
-
var yt = E ? r : c(r, S.encoder, T, "key", v);
|
|
1129
|
-
return [O(yt) + "=" + O(c(d, S.encoder, T, "value", v))];
|
|
1130
|
-
}
|
|
1131
|
-
return [O(r) + "=" + O(String(d))];
|
|
1132
|
-
}
|
|
1133
|
-
var U = [];
|
|
1134
|
-
if (typeof d > "u")
|
|
1135
|
-
return U;
|
|
1136
|
-
var k;
|
|
1137
|
-
if (o === "comma" && x(d))
|
|
1138
|
-
E && c && (d = bt.maybeMap(d, c)), k = [{ value: d.length > 0 ? d.join(",") || null : void 0 }];
|
|
1139
|
-
else if (x(y))
|
|
1140
|
-
k = y;
|
|
1141
|
-
else {
|
|
1142
|
-
var ft = Object.keys(d);
|
|
1143
|
-
k = p ? ft.sort(p) : ft;
|
|
1144
|
-
}
|
|
1145
|
-
var V = u ? String(r).replace(/\./g, "%2E") : String(r), _ = n && x(d) && d.length === 1 ? V + "[]" : V;
|
|
1146
|
-
if (a && x(d) && d.length === 0)
|
|
1147
|
-
return _ + "[]";
|
|
1148
|
-
for (var C = 0; C < k.length; ++C) {
|
|
1149
|
-
var R = k[C], et = typeof R == "object" && R && typeof R.value < "u" ? R.value : d[R];
|
|
1150
|
-
if (!(l && et === null)) {
|
|
1151
|
-
var Pt = f && u ? String(R).replace(/\./g, "%2E") : String(R), sr = x(d) ? typeof o == "function" ? o(_, Pt) : _ : _ + (f ? "." + Pt : "[" + Pt + "]");
|
|
1152
|
-
F.set(e, B);
|
|
1153
|
-
var ae = pr();
|
|
1154
|
-
ae.set(Vt, F), yr(U, t(
|
|
1155
|
-
et,
|
|
1156
|
-
sr,
|
|
1157
|
-
o,
|
|
1158
|
-
n,
|
|
1159
|
-
a,
|
|
1160
|
-
i,
|
|
1161
|
-
l,
|
|
1162
|
-
u,
|
|
1163
|
-
o === "comma" && E && x(d) ? null : c,
|
|
1164
|
-
y,
|
|
1165
|
-
p,
|
|
1166
|
-
f,
|
|
1167
|
-
g,
|
|
1168
|
-
v,
|
|
1169
|
-
O,
|
|
1170
|
-
E,
|
|
1171
|
-
T,
|
|
1172
|
-
ae
|
|
1173
|
-
));
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
return U;
|
|
1177
|
-
}, ta = function(t) {
|
|
1178
|
-
if (!t)
|
|
1179
|
-
return S;
|
|
1180
|
-
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
1181
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1182
|
-
if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
|
|
1183
|
-
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1184
|
-
if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
|
|
1185
|
-
throw new TypeError("Encoder has to be a function.");
|
|
1186
|
-
var e = t.charset || S.charset;
|
|
1187
|
-
if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
|
|
1188
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1189
|
-
var r = it.default;
|
|
1190
|
-
if (typeof t.format < "u") {
|
|
1191
|
-
if (!Jn.call(it.formatters, t.format))
|
|
1192
|
-
throw new TypeError("Unknown format option provided.");
|
|
1193
|
-
r = t.format;
|
|
1194
|
-
}
|
|
1195
|
-
var o = it.formatters[r], n = S.filter;
|
|
1196
|
-
(typeof t.filter == "function" || x(t.filter)) && (n = t.filter);
|
|
1197
|
-
var a;
|
|
1198
|
-
if (t.arrayFormat in ur ? a = t.arrayFormat : "indices" in t ? a = t.indices ? "indices" : "repeat" : a = S.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
1199
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1200
|
-
var i = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : S.allowDots : !!t.allowDots;
|
|
1201
|
-
return {
|
|
1202
|
-
addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : S.addQueryPrefix,
|
|
1203
|
-
allowDots: i,
|
|
1204
|
-
allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : S.allowEmptyArrays,
|
|
1205
|
-
arrayFormat: a,
|
|
1206
|
-
charset: e,
|
|
1207
|
-
charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : S.charsetSentinel,
|
|
1208
|
-
commaRoundTrip: !!t.commaRoundTrip,
|
|
1209
|
-
delimiter: typeof t.delimiter > "u" ? S.delimiter : t.delimiter,
|
|
1210
|
-
encode: typeof t.encode == "boolean" ? t.encode : S.encode,
|
|
1211
|
-
encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys : S.encodeDotInKeys,
|
|
1212
|
-
encoder: typeof t.encoder == "function" ? t.encoder : S.encoder,
|
|
1213
|
-
encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : S.encodeValuesOnly,
|
|
1214
|
-
filter: n,
|
|
1215
|
-
format: r,
|
|
1216
|
-
formatter: o,
|
|
1217
|
-
serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : S.serializeDate,
|
|
1218
|
-
skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : S.skipNulls,
|
|
1219
|
-
sort: typeof t.sort == "function" ? t.sort : null,
|
|
1220
|
-
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : S.strictNullHandling
|
|
1221
|
-
};
|
|
1222
|
-
}, ea = function(t, e) {
|
|
1223
|
-
var r = t, o = ta(e), n, a;
|
|
1224
|
-
typeof o.filter == "function" ? (a = o.filter, r = a("", r)) : x(o.filter) && (a = o.filter, n = a);
|
|
1225
|
-
var i = [];
|
|
1226
|
-
if (typeof r != "object" || r === null)
|
|
1227
|
-
return "";
|
|
1228
|
-
var l = ur[o.arrayFormat], u = l === "comma" && o.commaRoundTrip;
|
|
1229
|
-
n || (n = Object.keys(r)), o.sort && n.sort(o.sort);
|
|
1230
|
-
for (var c = pr(), y = 0; y < n.length; ++y) {
|
|
1231
|
-
var p = n[y], f = r[p];
|
|
1232
|
-
o.skipNulls && f === null || yr(i, Zn(
|
|
1233
|
-
f,
|
|
1234
|
-
p,
|
|
1235
|
-
l,
|
|
1236
|
-
u,
|
|
1237
|
-
o.allowEmptyArrays,
|
|
1238
|
-
o.strictNullHandling,
|
|
1239
|
-
o.skipNulls,
|
|
1240
|
-
o.encodeDotInKeys,
|
|
1241
|
-
o.encode ? o.encoder : null,
|
|
1242
|
-
o.filter,
|
|
1243
|
-
o.sort,
|
|
1244
|
-
o.allowDots,
|
|
1245
|
-
o.serializeDate,
|
|
1246
|
-
o.format,
|
|
1247
|
-
o.formatter,
|
|
1248
|
-
o.encodeValuesOnly,
|
|
1249
|
-
o.charset,
|
|
1250
|
-
c
|
|
1251
|
-
));
|
|
1252
|
-
}
|
|
1253
|
-
var g = i.join(o.delimiter), v = o.addQueryPrefix === !0 ? "?" : "";
|
|
1254
|
-
return o.charsetSentinel && (o.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), g.length > 0 ? v + g : "";
|
|
1255
|
-
}, $ = cr, Yt = Object.prototype.hasOwnProperty, Le = Array.isArray, w = {
|
|
1256
|
-
allowDots: !1,
|
|
1257
|
-
allowEmptyArrays: !1,
|
|
1258
|
-
allowPrototypes: !1,
|
|
1259
|
-
allowSparse: !1,
|
|
1260
|
-
arrayLimit: 20,
|
|
1261
|
-
charset: "utf-8",
|
|
1262
|
-
charsetSentinel: !1,
|
|
1263
|
-
comma: !1,
|
|
1264
|
-
decodeDotInKeys: !1,
|
|
1265
|
-
decoder: $.decode,
|
|
1266
|
-
delimiter: "&",
|
|
1267
|
-
depth: 5,
|
|
1268
|
-
duplicates: "combine",
|
|
1269
|
-
ignoreQueryPrefix: !1,
|
|
1270
|
-
interpretNumericEntities: !1,
|
|
1271
|
-
parameterLimit: 1e3,
|
|
1272
|
-
parseArrays: !0,
|
|
1273
|
-
plainObjects: !1,
|
|
1274
|
-
strictDepth: !1,
|
|
1275
|
-
strictNullHandling: !1,
|
|
1276
|
-
throwOnLimitExceeded: !1
|
|
1277
|
-
}, ra = function(t) {
|
|
1278
|
-
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
1279
|
-
return String.fromCharCode(parseInt(r, 10));
|
|
1280
|
-
});
|
|
1281
|
-
}, fr = function(t, e, r) {
|
|
1282
|
-
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
1283
|
-
return t.split(",");
|
|
1284
|
-
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
1285
|
-
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1286
|
-
return t;
|
|
1287
|
-
}, oa = "utf8=%26%2310003%3B", na = "utf8=%E2%9C%93", aa = function(t, e) {
|
|
1288
|
-
var r = { __proto__: null }, o = e.ignoreQueryPrefix ? t.replace(/^\?/, "") : t;
|
|
1289
|
-
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1290
|
-
var n = e.parameterLimit === 1 / 0 ? void 0 : e.parameterLimit, a = o.split(
|
|
1291
|
-
e.delimiter,
|
|
1292
|
-
e.throwOnLimitExceeded ? n + 1 : n
|
|
1293
|
-
);
|
|
1294
|
-
if (e.throwOnLimitExceeded && a.length > n)
|
|
1295
|
-
throw new RangeError("Parameter limit exceeded. Only " + n + " parameter" + (n === 1 ? "" : "s") + " allowed.");
|
|
1296
|
-
var i = -1, l, u = e.charset;
|
|
1297
|
-
if (e.charsetSentinel)
|
|
1298
|
-
for (l = 0; l < a.length; ++l)
|
|
1299
|
-
a[l].indexOf("utf8=") === 0 && (a[l] === na ? u = "utf-8" : a[l] === oa && (u = "iso-8859-1"), i = l, l = a.length);
|
|
1300
|
-
for (l = 0; l < a.length; ++l)
|
|
1301
|
-
if (l !== i) {
|
|
1302
|
-
var c = a[l], y = c.indexOf("]="), p = y === -1 ? c.indexOf("=") : y + 1, f, g;
|
|
1303
|
-
p === -1 ? (f = e.decoder(c, w.decoder, u, "key"), g = e.strictNullHandling ? null : "") : (f = e.decoder(c.slice(0, p), w.decoder, u, "key"), g = $.maybeMap(
|
|
1304
|
-
fr(
|
|
1305
|
-
c.slice(p + 1),
|
|
1306
|
-
e,
|
|
1307
|
-
Le(r[f]) ? r[f].length : 0
|
|
1308
|
-
),
|
|
1309
|
-
function(O) {
|
|
1310
|
-
return e.decoder(O, w.decoder, u, "value");
|
|
1311
|
-
}
|
|
1312
|
-
)), g && e.interpretNumericEntities && u === "iso-8859-1" && (g = ra(String(g))), c.indexOf("[]=") > -1 && (g = Le(g) ? [g] : g);
|
|
1313
|
-
var v = Yt.call(r, f);
|
|
1314
|
-
v && e.duplicates === "combine" ? r[f] = $.combine(r[f], g) : (!v || e.duplicates === "last") && (r[f] = g);
|
|
1315
|
-
}
|
|
1316
|
-
return r;
|
|
1317
|
-
}, ia = function(t, e, r, o) {
|
|
1318
|
-
var n = 0;
|
|
1319
|
-
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
1320
|
-
var a = t.slice(0, -1).join("");
|
|
1321
|
-
n = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
1322
|
-
}
|
|
1323
|
-
for (var i = o ? e : fr(e, r, n), l = t.length - 1; l >= 0; --l) {
|
|
1324
|
-
var u, c = t[l];
|
|
1325
|
-
if (c === "[]" && r.parseArrays)
|
|
1326
|
-
u = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : $.combine([], i);
|
|
1327
|
-
else {
|
|
1328
|
-
u = r.plainObjects ? { __proto__: null } : {};
|
|
1329
|
-
var y = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, p = r.decodeDotInKeys ? y.replace(/%2E/g, ".") : y, f = parseInt(p, 10);
|
|
1330
|
-
!r.parseArrays && p === "" ? u = { 0: i } : !isNaN(f) && c !== p && String(f) === p && f >= 0 && r.parseArrays && f <= r.arrayLimit ? (u = [], u[f] = i) : p !== "__proto__" && (u[p] = i);
|
|
1331
|
-
}
|
|
1332
|
-
i = u;
|
|
1333
|
-
}
|
|
1334
|
-
return i;
|
|
1335
|
-
}, la = function(t, e, r, o) {
|
|
1336
|
-
if (t) {
|
|
1337
|
-
var n = r.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, a = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = r.depth > 0 && a.exec(n), u = l ? n.slice(0, l.index) : n, c = [];
|
|
1338
|
-
if (u) {
|
|
1339
|
-
if (!r.plainObjects && Yt.call(Object.prototype, u) && !r.allowPrototypes)
|
|
1340
|
-
return;
|
|
1341
|
-
c.push(u);
|
|
1342
|
-
}
|
|
1343
|
-
for (var y = 0; r.depth > 0 && (l = i.exec(n)) !== null && y < r.depth; ) {
|
|
1344
|
-
if (y += 1, !r.plainObjects && Yt.call(Object.prototype, l[1].slice(1, -1)) && !r.allowPrototypes)
|
|
1345
|
-
return;
|
|
1346
|
-
c.push(l[1]);
|
|
1347
|
-
}
|
|
1348
|
-
if (l) {
|
|
1349
|
-
if (r.strictDepth === !0)
|
|
1350
|
-
throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
|
|
1351
|
-
c.push("[" + n.slice(l.index) + "]");
|
|
1352
|
-
}
|
|
1353
|
-
return ia(c, e, r, o);
|
|
1354
|
-
}
|
|
1355
|
-
}, ca = function(t) {
|
|
1356
|
-
if (!t)
|
|
1357
|
-
return w;
|
|
1358
|
-
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
1359
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1360
|
-
if (typeof t.decodeDotInKeys < "u" && typeof t.decodeDotInKeys != "boolean")
|
|
1361
|
-
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1362
|
-
if (t.decoder !== null && typeof t.decoder < "u" && typeof t.decoder != "function")
|
|
1363
|
-
throw new TypeError("Decoder has to be a function.");
|
|
1364
|
-
if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
|
|
1365
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1366
|
-
if (typeof t.throwOnLimitExceeded < "u" && typeof t.throwOnLimitExceeded != "boolean")
|
|
1367
|
-
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
1368
|
-
var e = typeof t.charset > "u" ? w.charset : t.charset, r = typeof t.duplicates > "u" ? w.duplicates : t.duplicates;
|
|
1369
|
-
if (r !== "combine" && r !== "first" && r !== "last")
|
|
1370
|
-
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
1371
|
-
var o = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : w.allowDots : !!t.allowDots;
|
|
1372
|
-
return {
|
|
1373
|
-
allowDots: o,
|
|
1374
|
-
allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : w.allowEmptyArrays,
|
|
1375
|
-
allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : w.allowPrototypes,
|
|
1376
|
-
allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : w.allowSparse,
|
|
1377
|
-
arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : w.arrayLimit,
|
|
1378
|
-
charset: e,
|
|
1379
|
-
charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : w.charsetSentinel,
|
|
1380
|
-
comma: typeof t.comma == "boolean" ? t.comma : w.comma,
|
|
1381
|
-
decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : w.decodeDotInKeys,
|
|
1382
|
-
decoder: typeof t.decoder == "function" ? t.decoder : w.decoder,
|
|
1383
|
-
delimiter: typeof t.delimiter == "string" || $.isRegExp(t.delimiter) ? t.delimiter : w.delimiter,
|
|
1384
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1385
|
-
depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : w.depth,
|
|
1386
|
-
duplicates: r,
|
|
1387
|
-
ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
|
|
1388
|
-
interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : w.interpretNumericEntities,
|
|
1389
|
-
parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : w.parameterLimit,
|
|
1390
|
-
parseArrays: t.parseArrays !== !1,
|
|
1391
|
-
plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : w.plainObjects,
|
|
1392
|
-
strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : w.strictDepth,
|
|
1393
|
-
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : w.strictNullHandling,
|
|
1394
|
-
throwOnLimitExceeded: typeof t.throwOnLimitExceeded == "boolean" ? t.throwOnLimitExceeded : !1
|
|
1395
|
-
};
|
|
1396
|
-
}, pa = function(t, e) {
|
|
1397
|
-
var r = ca(e);
|
|
1398
|
-
if (t === "" || t === null || typeof t > "u")
|
|
1399
|
-
return r.plainObjects ? { __proto__: null } : {};
|
|
1400
|
-
for (var o = typeof t == "string" ? aa(t, r) : t, n = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(o), i = 0; i < a.length; ++i) {
|
|
1401
|
-
var l = a[i], u = la(l, o[l], r, typeof t == "string");
|
|
1402
|
-
n = $.merge(n, u, r);
|
|
1403
|
-
}
|
|
1404
|
-
return r.allowSparse === !0 ? n : $.compact(n);
|
|
1405
|
-
}, ua = ea, ya = pa, fa = ne, sa = {
|
|
1406
|
-
formats: fa,
|
|
1407
|
-
parse: ya,
|
|
1408
|
-
stringify: ua
|
|
1409
|
-
};
|
|
1410
|
-
const da = /* @__PURE__ */ br(sa);
|
|
1411
|
-
class ma {
|
|
1412
|
-
getKey(e) {
|
|
1413
|
-
return { typeCode: e.typeCode };
|
|
1414
|
-
}
|
|
1415
|
-
//查询翻页信息字典类型
|
|
1416
|
-
findPage(e) {
|
|
1417
|
-
const r = m().user.tenant;
|
|
1418
|
-
return e && (e.hasEntryType = e.entryType != null, e.hasEnable = e.enable != null), b(e), h({
|
|
1419
|
-
url: "/v1/dict/dict_type/page/" + r,
|
|
1420
|
-
method: "get",
|
|
1421
|
-
params: e
|
|
1422
|
-
});
|
|
1423
|
-
}
|
|
1424
|
-
//查询列表信息字典类型
|
|
1425
|
-
findList(e) {
|
|
1426
|
-
const r = m().user.tenant;
|
|
1427
|
-
return e && (e.hasEntryType = e.entryType != null, e.hasEnable = e.enable != null), b(e), h({
|
|
1428
|
-
url: "/v1/dict/dict_type/list/" + r,
|
|
1429
|
-
method: "get",
|
|
1430
|
-
params: e
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
//查询字典类型
|
|
1434
|
-
findById(e) {
|
|
1435
|
-
const r = m().user.tenant;
|
|
1436
|
-
return b(e), h({
|
|
1437
|
-
url: "/v1/dict/dict_type/id/" + r + "/" + e.typeCode,
|
|
1438
|
-
method: "get"
|
|
1439
|
-
});
|
|
1440
|
-
}
|
|
1441
|
-
// 创建实体字典类型
|
|
1442
|
-
create(e) {
|
|
1443
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1444
|
-
url: "/v1/dict/dict_type",
|
|
1445
|
-
method: "post",
|
|
1446
|
-
data: e
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
//修改实体字典类型
|
|
1450
|
-
update(e) {
|
|
1451
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1452
|
-
url: "/v1/dict/dict_type",
|
|
1453
|
-
method: "patch",
|
|
1454
|
-
data: e
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
//上移下移
|
|
1458
|
-
move(e, r) {
|
|
1459
|
-
let o = { ...e };
|
|
1460
|
-
return o.tenant = m().user.tenant, o.up = r, b(o), h({
|
|
1461
|
-
url: "/v1/dict/dict_type/move",
|
|
1462
|
-
method: "put",
|
|
1463
|
-
data: o
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
//启用/禁用
|
|
1467
|
-
enable(e, r) {
|
|
1468
|
-
let o = { ...e };
|
|
1469
|
-
return o.tenant = m().user.tenant, o.enable = r, b(o), h({
|
|
1470
|
-
url: "/v1/dict/dict_type/enable",
|
|
1471
|
-
method: "put",
|
|
1472
|
-
data: o
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
// 删除字典类型
|
|
1476
|
-
delete(e) {
|
|
1477
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1478
|
-
url: "/v1/dict/dict_type/id",
|
|
1479
|
-
method: "delete",
|
|
1480
|
-
params: e
|
|
1481
|
-
});
|
|
1482
|
-
}
|
|
1483
|
-
// 批量删除字典类型
|
|
1484
|
-
batchDelete(e) {
|
|
1485
|
-
const r = e.map((n) => n.typeCode), o = {
|
|
1486
|
-
tenant: m().user.tenant,
|
|
1487
|
-
typeCode: r
|
|
1488
|
-
};
|
|
1489
|
-
return b(o), h({
|
|
1490
|
-
url: "/v1/dict/dict_type/batch",
|
|
1491
|
-
method: "put",
|
|
1492
|
-
data: o
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
//下载导入模板字典类型
|
|
1496
|
-
downloadTemplate() {
|
|
1497
|
-
const e = m().user.tenant;
|
|
1498
|
-
return h({
|
|
1499
|
-
url: "/v1/dict/dict_type/" + e + "/template.xlsx",
|
|
1500
|
-
method: "get",
|
|
1501
|
-
responseType: "blob",
|
|
1502
|
-
params: {
|
|
1503
|
-
tenant: m().user.tenant
|
|
1504
|
-
}
|
|
1505
|
-
});
|
|
1506
|
-
}
|
|
1507
|
-
// 导入字典类型
|
|
1508
|
-
importExcel(e) {
|
|
1509
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1510
|
-
url: "/v1/dict/dict_type/import",
|
|
1511
|
-
method: "patch",
|
|
1512
|
-
data: e
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
//导出字典类型Excel文件
|
|
1516
|
-
exportExcel(e) {
|
|
1517
|
-
const r = m().user.tenant;
|
|
1518
|
-
b(e);
|
|
1519
|
-
const o = da.stringify(e, {
|
|
1520
|
-
arrayFormat: "brackets",
|
|
1521
|
-
allowDots: !0
|
|
1522
|
-
});
|
|
1523
|
-
return h({
|
|
1524
|
-
url: "/v1/dict/dict_type/" + r + "/dict_types.xlsx?" + o,
|
|
1525
|
-
method: "get",
|
|
1526
|
-
responseType: "blob"
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
const j = new ma();
|
|
1531
|
-
class ha {
|
|
1532
|
-
getKey(e) {
|
|
1533
|
-
return {
|
|
1534
|
-
dictCode: e.dictCode,
|
|
1535
|
-
typeCode: e.typeCode
|
|
1536
|
-
};
|
|
1537
|
-
}
|
|
1538
|
-
//查询翻页信息数据字典
|
|
1539
|
-
findPage(e) {
|
|
1540
|
-
const r = m().user.tenant;
|
|
1541
|
-
return e && (e.hasEnable = e.enable != null), b(e), h({
|
|
1542
|
-
url: "/v1/dict/dict_entry/page/" + r,
|
|
1543
|
-
method: "get",
|
|
1544
|
-
params: e
|
|
1545
|
-
});
|
|
1546
|
-
}
|
|
1547
|
-
//查询列表信息数据字典
|
|
1548
|
-
findList(e) {
|
|
1549
|
-
const r = m().user.tenant;
|
|
1550
|
-
return r ? (e && (e.hasEnable = e.enable != null), b(e), h({
|
|
1551
|
-
url: "/v1/dict/dict_entry/list/" + r,
|
|
1552
|
-
method: "get",
|
|
1553
|
-
params: e
|
|
1554
|
-
})) : Promise.reject("tenant is empty");
|
|
1555
|
-
}
|
|
1556
|
-
//查询数据字典
|
|
1557
|
-
findById(e) {
|
|
1558
|
-
const r = m().user.tenant;
|
|
1559
|
-
return b(e), h({
|
|
1560
|
-
url: "/v1/dict/dict_entry/id/" + r + "/" + e.typeCode + "/" + e.dictCode,
|
|
1561
|
-
method: "get"
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
// 创建实体数据字典
|
|
1565
|
-
create(e) {
|
|
1566
|
-
return e.tenant = m().user.tenant, b(e), mt(e.typeCode), h({
|
|
1567
|
-
url: "/v1/dict/dict_entry",
|
|
1568
|
-
method: "post",
|
|
1569
|
-
data: e
|
|
1570
|
-
});
|
|
1571
|
-
}
|
|
1572
|
-
//修改实体数据字典
|
|
1573
|
-
update(e) {
|
|
1574
|
-
return e.tenant = m().user.tenant, b(e), mt(e.typeCode), h({
|
|
1575
|
-
url: "/v1/dict/dict_entry",
|
|
1576
|
-
method: "patch",
|
|
1577
|
-
data: e
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
//上移下移
|
|
1581
|
-
move(e, r) {
|
|
1582
|
-
let o = { ...e };
|
|
1583
|
-
return o.tenant = m().user.tenant, o.up = r, b(o), h({
|
|
1584
|
-
url: "/v1/dict/dict_entry/move",
|
|
1585
|
-
method: "put",
|
|
1586
|
-
data: o
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
//启用/禁用
|
|
1590
|
-
enable(e, r) {
|
|
1591
|
-
let o = { ...e };
|
|
1592
|
-
return o.tenant = m().user.tenant, o.enable = r, b(o), h({
|
|
1593
|
-
url: "/v1/dict/dict_entry/enable",
|
|
1594
|
-
method: "put",
|
|
1595
|
-
data: o
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
// 删除数据字典
|
|
1599
|
-
delete(e) {
|
|
1600
|
-
return e.tenant = m().user.tenant, b(e), mt(e.typeCode), h({
|
|
1601
|
-
url: "/v1/dict/dict_entry/id",
|
|
1602
|
-
method: "delete",
|
|
1603
|
-
params: e
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
// 批量删除数据字典
|
|
1607
|
-
batchDelete(e) {
|
|
1608
|
-
const r = {
|
|
1609
|
-
tenant: m().user.tenant,
|
|
1610
|
-
dictEntryKey: e
|
|
1611
|
-
};
|
|
1612
|
-
return b(r), mt(e[0].typeCode), h({
|
|
1613
|
-
url: "/v1/dict/dict_entry/batch",
|
|
1614
|
-
method: "put",
|
|
1615
|
-
data: r
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
//下载导入模板数据字典
|
|
1619
|
-
downloadTemplate() {
|
|
1620
|
-
return typeof j.downloadTemplate > "u" ? Promise.reject(" dictTypeApi.downloadTemplate is not undefined.") : j.downloadTemplate();
|
|
1621
|
-
}
|
|
1622
|
-
// 导入数据字典
|
|
1623
|
-
importExcel(e) {
|
|
1624
|
-
return typeof j.importExcel > "u" ? Promise.reject(" dictTypeApi.importExcel is not undefined.") : j.importExcel(e);
|
|
1625
|
-
}
|
|
1626
|
-
//导出数据字典Excel文件
|
|
1627
|
-
exportExcel(e) {
|
|
1628
|
-
const r = {};
|
|
1629
|
-
return r.req = { typeCode: e.req.typeCode }, typeof j.exportExcel > "u" ? Promise.reject(" dictTypeApi.exportExcel is not undefined.") : j.exportExcel(r);
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
const Be = new ha();
|
|
1633
|
-
function mt(t) {
|
|
1634
|
-
t && (Ue(t), Ue(t, !0));
|
|
1635
|
-
}
|
|
1636
|
-
function Ue(t, e) {
|
|
1637
|
-
const r = `dict_${t}_${e}`;
|
|
1638
|
-
sessionStorage.removeItem(r);
|
|
1639
|
-
}
|
|
1640
|
-
class ga {
|
|
1641
|
-
getKey(e) {
|
|
1642
|
-
return {
|
|
1643
|
-
dictId: e.dictId
|
|
1644
|
-
};
|
|
1645
|
-
}
|
|
1646
|
-
//查询翻页信息层级字典实体
|
|
1647
|
-
findPage(e) {
|
|
1648
|
-
const r = m().user.tenant;
|
|
1649
|
-
return e && (e.hasEnable = e.enable != null), b(e), h({
|
|
1650
|
-
url: "/v1/dict/dict_lay_entry/list/" + r,
|
|
1651
|
-
method: "get",
|
|
1652
|
-
params: e
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
//查询列表信息层级字典实体
|
|
1656
|
-
findList(e) {
|
|
1657
|
-
const r = m().user.tenant;
|
|
1658
|
-
return e && (e.hasEnable = e.enable != null), b(e), h({
|
|
1659
|
-
url: "/v1/dict/dict_lay_entry/list/" + r,
|
|
1660
|
-
method: "get",
|
|
1661
|
-
params: e
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
//查询层级字典实体
|
|
1665
|
-
findById(e) {
|
|
1666
|
-
const r = m().user.tenant;
|
|
1667
|
-
return b(e), h({
|
|
1668
|
-
url: "/v1/dict/dict_lay_entry/id/" + r + "/" + e.dictId,
|
|
1669
|
-
method: "get"
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
// 创建实体层级字典实体
|
|
1673
|
-
create(e) {
|
|
1674
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1675
|
-
url: "/v1/dict/dict_lay_entry",
|
|
1676
|
-
method: "post",
|
|
1677
|
-
data: e
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
//修改实体层级字典实体
|
|
1681
|
-
update(e) {
|
|
1682
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1683
|
-
url: "/v1/dict/dict_lay_entry",
|
|
1684
|
-
method: "patch",
|
|
1685
|
-
data: e
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
//上移下移
|
|
1689
|
-
move(e, r) {
|
|
1690
|
-
let o = { ...e };
|
|
1691
|
-
return o.tenant = m().user.tenant, o.up = r, b(o), h({
|
|
1692
|
-
url: "/v1/dict/dict_lay_entry/move",
|
|
1693
|
-
method: "put",
|
|
1694
|
-
data: o
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
//启用/禁用
|
|
1698
|
-
enable(e, r) {
|
|
1699
|
-
let o = { ...e };
|
|
1700
|
-
return o.tenant = m().user.tenant, o.enable = r, b(o), h({
|
|
1701
|
-
url: "/v1/dict/dict_lay_entry/enable",
|
|
1702
|
-
method: "put",
|
|
1703
|
-
data: o
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
// 删除层级字典实体
|
|
1707
|
-
delete(e) {
|
|
1708
|
-
return e.tenant = m().user.tenant, b(e), h({
|
|
1709
|
-
url: "/v1/dict/dict_lay_entry/id",
|
|
1710
|
-
method: "delete",
|
|
1711
|
-
params: e
|
|
1712
|
-
});
|
|
1713
|
-
}
|
|
1714
|
-
// 批量删除层级字典实体
|
|
1715
|
-
batchDelete(e) {
|
|
1716
|
-
const r = e.map((n) => n.dictId), o = {
|
|
1717
|
-
tenant: m().user.tenant,
|
|
1718
|
-
dictId: r
|
|
1719
|
-
};
|
|
1720
|
-
return b(o), h({
|
|
1721
|
-
url: "/v1/dict/dict_lay_entry/batch",
|
|
1722
|
-
method: "put",
|
|
1723
|
-
data: o
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
//下载导入模板层级字典实体
|
|
1727
|
-
downloadTemplate() {
|
|
1728
|
-
return typeof j.downloadTemplate > "u" ? Promise.reject(" dictTypeApi.downloadTemplate is not undefined.") : j.downloadTemplate();
|
|
1729
|
-
}
|
|
1730
|
-
// 导入层级字典实体
|
|
1731
|
-
importExcel(e) {
|
|
1732
|
-
return typeof j.importExcel > "u" ? Promise.reject(" dictTypeApi.importExcel is not undefined.") : j.importExcel(e);
|
|
1733
|
-
}
|
|
1734
|
-
//导出层级字典实体Excel文件
|
|
1735
|
-
exportExcel(e) {
|
|
1736
|
-
const r = {};
|
|
1737
|
-
return r.req = { typeCode: e.req.typeCode }, typeof j.exportExcel > "u" ? Promise.reject(" dictTypeApi.exportExcel is not undefined.") : j.exportExcel(r);
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
const We = new ga();
|
|
1741
|
-
async function ba(t, e) {
|
|
1742
|
-
return new Promise((r, o) => {
|
|
1743
|
-
const n = `dict_${t}_${e}`;
|
|
1744
|
-
let a = sessionStorage.getItem(n);
|
|
1745
|
-
if (a && r(JSON.parse(a)), !a) {
|
|
1746
|
-
if (typeof Be.findList > "u") {
|
|
1747
|
-
console.error("dictTypeApi.findList is not defined.");
|
|
1748
|
-
return;
|
|
1749
|
-
}
|
|
1750
|
-
const i = { typeCode: t, enable: e };
|
|
1751
|
-
Be.findList(i).then(({ data: l }) => {
|
|
1752
|
-
let u = l.results;
|
|
1753
|
-
a = JSON.stringify(u), l && l.results != null && sessionStorage.setItem(n, a), r(u);
|
|
1754
|
-
});
|
|
1755
|
-
}
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
class Sa {
|
|
1759
|
-
constructor(e, r) {
|
|
1760
|
-
It(this, "typeCode"), It(this, "enable"), It(this, "values"), this.typeCode = e, this.enable = r, this.values = mr([]), this.useDictValues();
|
|
1761
|
-
}
|
|
1762
|
-
//加载数据字典.
|
|
1763
|
-
useDictValues() {
|
|
1764
|
-
return new Promise((e, r) => {
|
|
1765
|
-
ba(this.typeCode, this.enable).then(
|
|
1766
|
-
(o) => {
|
|
1767
|
-
this.values.length = 0, this.values.push(...o), e(this.values);
|
|
1768
|
-
}
|
|
1769
|
-
);
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
//获取字典值
|
|
1773
|
-
getDictValue(e) {
|
|
1774
|
-
const r = this.values.find((o) => o.dictCode === e);
|
|
1775
|
-
return r != null && r.dictName ? r.dictName : "";
|
|
1776
|
-
}
|
|
1777
|
-
clearCache() {
|
|
1778
|
-
const e = `dict_${this.typeCode}_${this.enable}`;
|
|
1779
|
-
sessionStorage.removeItem(e);
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
class Aa extends dr {
|
|
1783
|
-
// 实现 useValues 方法
|
|
1784
|
-
useValues() {
|
|
1785
|
-
return new Promise((e, r) => {
|
|
1786
|
-
if (typeof We.findList > "u") {
|
|
1787
|
-
console.error("dictLayEntryApi.findList is not defined."), e(this.values);
|
|
1788
|
-
return;
|
|
1789
|
-
}
|
|
1790
|
-
const o = { ...this.query };
|
|
1791
|
-
We.findList(o).then(({ data: n }) => {
|
|
1792
|
-
const a = n.results;
|
|
1793
|
-
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(a)), e(this.values);
|
|
1794
|
-
}).catch(r);
|
|
1795
|
-
});
|
|
1796
|
-
}
|
|
1797
|
-
convertToLayEntryArray(e) {
|
|
1798
|
-
return e.map((r) => ({
|
|
1799
|
-
value: r.dictCode,
|
|
1800
|
-
label: r.dictName,
|
|
1801
|
-
parentId: r.parentId || "",
|
|
1802
|
-
children: r.children ? this.convertToLayEntryArray(r.children) : []
|
|
1803
|
-
}));
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
export {
|
|
1807
|
-
Sa as K,
|
|
1808
|
-
Aa as V
|
|
1809
|
-
};
|