@das-fed/utils 7.0.8 → 7.0.11
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/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +560 -541
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +350 -331
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +350 -331
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +837 -836
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +834 -833
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +356 -337
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +880 -843
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +573 -554
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +350 -331
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1004 -1003
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1117 -1094
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +919 -882
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +880 -843
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +880 -843
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +350 -331
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +867 -830
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +350 -331
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +880 -843
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +849 -848
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +836 -835
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +350 -331
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +350 -331
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +834 -833
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +357 -338
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.js +13 -12
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.d.ts +1 -1
- package/common-info/set-personal-info/index.js +253 -237
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +2 -0
- package/common-tools/extract-file-name/index.js +566 -550
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.d.ts +7 -0
- package/common-tools/get-url-params/index.js +45 -38
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/obj-tools/index.js +1 -1
- package/common-tools/platform-tools/index.d.ts +1 -1
- package/common-tools/platform-tools/index.js +22 -15
- package/create-api-service/index.js +350 -331
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +3 -3
- package/create-api-service/sso/index.js +577 -549
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +582 -566
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +2 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/process-engine-info/index.js +8 -7
- package/style/index.js +1 -1
- package/style/index.js.gz +0 -0
- package/token-tools/index.js +80 -8
- package/token-tools/index.js.gz +0 -0
- package/use-low-code/index.js.gz +0 -0
- package/vue/hooks/use-model-value/index.d.ts +5 -1
- package/webSocket-service/index.js.gz +0 -0
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
import { setI18nRule as oo, currentLang as ao, t as C } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as io } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as so, getQuery as lo, login as co, real_uri as uo, getTokenParams as fo } from "@das-fed/utils/create-api-service/sso";
|
|
4
|
-
import
|
|
4
|
+
import rt from "dayjs";
|
|
5
5
|
import po from "dayjs/plugin/utc";
|
|
6
6
|
import yo from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as ho, getInstanceInfo as mo } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as go } from "@das-fed/utils/token-tools";
|
|
9
|
-
import { getConfig as
|
|
10
|
-
import { extractFilename as
|
|
11
|
-
import { ref as
|
|
9
|
+
import { getConfig as Ve } from "@das-fed/utils/config";
|
|
10
|
+
import { extractFilename as fr } from "@das-fed/utils/common-tools";
|
|
11
|
+
import { ref as K } from "vue";
|
|
12
12
|
function tn(t, e) {
|
|
13
13
|
return function() {
|
|
14
14
|
return t.apply(e, arguments);
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
const { toString: vo } = Object.prototype, { getPrototypeOf:
|
|
17
|
+
const { toString: vo } = Object.prototype, { getPrototypeOf: Yt } = Object, { iterator: nt, toStringTag: rn } = Symbol, ot = /* @__PURE__ */ ((t) => (e) => {
|
|
18
18
|
const n = vo.call(e);
|
|
19
19
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
20
|
-
})(/* @__PURE__ */ Object.create(null)), Q = (t) => (t = t.toLowerCase(), (e) =>
|
|
21
|
-
function
|
|
22
|
-
return t !== null && !Ce(t) && t.constructor !== null && !Ce(t.constructor) &&
|
|
20
|
+
})(/* @__PURE__ */ Object.create(null)), Q = (t) => (t = t.toLowerCase(), (e) => ot(e) === t), at = (t) => (e) => typeof e === t, { isArray: be } = Array, Ce = at("undefined");
|
|
21
|
+
function _e(t) {
|
|
22
|
+
return t !== null && !Ce(t) && t.constructor !== null && !Ce(t.constructor) && j(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
function
|
|
24
|
+
const nn = Q("ArrayBuffer");
|
|
25
|
+
function wo(t) {
|
|
26
26
|
let e;
|
|
27
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
27
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && nn(t.buffer), e;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
29
|
+
const bo = at("string"), j = at("function"), on = at("number"), Ne = (t) => t !== null && typeof t == "object", So = (t) => t === !0 || t === !1, He = (t) => {
|
|
30
|
+
if (ot(t) !== "object")
|
|
31
|
+
return !1;
|
|
32
|
+
const e = Yt(t);
|
|
33
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(rn in t) && !(nt in t);
|
|
34
|
+
}, Eo = (t) => {
|
|
35
|
+
if (!Ne(t) || _e(t))
|
|
36
|
+
return !1;
|
|
37
|
+
try {
|
|
38
|
+
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
|
|
39
|
+
} catch {
|
|
31
40
|
return !1;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, Ao = Q("Date"), Oo = Q("File"), Ro = Q("Blob"), Po = Q("FileList"), xo = (t) => nt(t) && H(t.pipe), To = (t) => {
|
|
41
|
+
}
|
|
42
|
+
}, Ao = Q("Date"), Oo = Q("File"), Ro = Q("Blob"), Po = Q("FileList"), xo = (t) => Ne(t) && j(t.pipe), To = (t) => {
|
|
35
43
|
let e;
|
|
36
|
-
return t && (typeof FormData == "function" && t instanceof FormData ||
|
|
37
|
-
e === "object" &&
|
|
38
|
-
}, Co = Q("URLSearchParams"), [
|
|
39
|
-
function
|
|
44
|
+
return t && (typeof FormData == "function" && t instanceof FormData || j(t.append) && ((e = ot(t)) === "formdata" || // detect form-data instance
|
|
45
|
+
e === "object" && j(t.toString) && t.toString() === "[object FormData]"));
|
|
46
|
+
}, Co = Q("URLSearchParams"), [$o, _o, No, Fo] = ["ReadableStream", "Request", "Response", "Headers"].map(Q), Do = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
47
|
+
function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
40
48
|
if (t === null || typeof t > "u")
|
|
41
49
|
return;
|
|
42
50
|
let r, o;
|
|
@@ -44,13 +52,17 @@ function $e(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
44
52
|
for (r = 0, o = t.length; r < o; r++)
|
|
45
53
|
e.call(null, t[r], r, t);
|
|
46
54
|
else {
|
|
55
|
+
if (_e(t))
|
|
56
|
+
return;
|
|
47
57
|
const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
|
|
48
58
|
let s;
|
|
49
59
|
for (r = 0; r < i; r++)
|
|
50
60
|
s = a[r], e.call(null, t[s], s, t);
|
|
51
61
|
}
|
|
52
62
|
}
|
|
53
|
-
function
|
|
63
|
+
function an(t, e) {
|
|
64
|
+
if (_e(t))
|
|
65
|
+
return null;
|
|
54
66
|
e = e.toLowerCase();
|
|
55
67
|
const n = Object.keys(t);
|
|
56
68
|
let r = n.length, o;
|
|
@@ -59,33 +71,33 @@ function on(t, e) {
|
|
|
59
71
|
return o;
|
|
60
72
|
return null;
|
|
61
73
|
}
|
|
62
|
-
const le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
74
|
+
const le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, sn = (t) => !Ce(t) && t !== le;
|
|
63
75
|
function Bt() {
|
|
64
|
-
const { caseless: t } =
|
|
65
|
-
const a = t &&
|
|
66
|
-
|
|
76
|
+
const { caseless: t } = sn(this) && this || {}, e = {}, n = (r, o) => {
|
|
77
|
+
const a = t && an(e, o) || o;
|
|
78
|
+
He(e[a]) && He(r) ? e[a] = Bt(e[a], r) : He(r) ? e[a] = Bt({}, r) : be(r) ? e[a] = r.slice() : e[a] = r;
|
|
67
79
|
};
|
|
68
80
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
69
|
-
arguments[r] &&
|
|
81
|
+
arguments[r] && Fe(arguments[r], n);
|
|
70
82
|
return e;
|
|
71
83
|
}
|
|
72
|
-
const Io = (t, e, n, { allOwnKeys: r } = {}) => (
|
|
73
|
-
n &&
|
|
74
|
-
}, { allOwnKeys: r }), t), Lo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t),
|
|
84
|
+
const Io = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
85
|
+
n && j(o) ? t[a] = tn(o, n) : t[a] = o;
|
|
86
|
+
}, { allOwnKeys: r }), t), Lo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Uo = (t, e, n, r) => {
|
|
75
87
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
76
88
|
value: e.prototype
|
|
77
89
|
}), n && Object.assign(t.prototype, n);
|
|
78
|
-
},
|
|
90
|
+
}, Mo = (t, e, n, r) => {
|
|
79
91
|
let o, a, i;
|
|
80
92
|
const s = {};
|
|
81
93
|
if (e = e || {}, t == null) return e;
|
|
82
94
|
do {
|
|
83
95
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
84
96
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
85
|
-
t = n !== !1 &&
|
|
97
|
+
t = n !== !1 && Yt(t);
|
|
86
98
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
87
99
|
return e;
|
|
88
|
-
},
|
|
100
|
+
}, Bo = (t, e, n) => {
|
|
89
101
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
90
102
|
const r = t.indexOf(e, n);
|
|
91
103
|
return r !== -1 && r === n;
|
|
@@ -93,13 +105,13 @@ const Io = (t, e, n, { allOwnKeys: r } = {}) => ($e(e, (o, a) => {
|
|
|
93
105
|
if (!t) return null;
|
|
94
106
|
if (be(t)) return t;
|
|
95
107
|
let e = t.length;
|
|
96
|
-
if (!
|
|
108
|
+
if (!on(e)) return null;
|
|
97
109
|
const n = new Array(e);
|
|
98
110
|
for (; e-- > 0; )
|
|
99
111
|
n[e] = t[e];
|
|
100
112
|
return n;
|
|
101
|
-
},
|
|
102
|
-
const r = (t && t[
|
|
113
|
+
}, jo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Yt(Uint8Array)), qo = (t, e) => {
|
|
114
|
+
const r = (t && t[nt]).call(t);
|
|
103
115
|
let o;
|
|
104
116
|
for (; (o = r.next()) && !o.done; ) {
|
|
105
117
|
const a = o.value;
|
|
@@ -116,18 +128,18 @@ const Io = (t, e, n, { allOwnKeys: r } = {}) => ($e(e, (o, a) => {
|
|
|
116
128
|
function(n, r, o) {
|
|
117
129
|
return r.toUpperCase() + o;
|
|
118
130
|
}
|
|
119
|
-
),
|
|
131
|
+
), pr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ko = Q("RegExp"), ln = (t, e) => {
|
|
120
132
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
121
|
-
|
|
133
|
+
Fe(n, (o, a) => {
|
|
122
134
|
let i;
|
|
123
135
|
(i = e(o, a, t)) !== !1 && (r[a] = i || o);
|
|
124
136
|
}), Object.defineProperties(t, r);
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
if (
|
|
137
|
+
}, Go = (t) => {
|
|
138
|
+
ln(t, (e, n) => {
|
|
139
|
+
if (j(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
128
140
|
return !1;
|
|
129
141
|
const r = t[n];
|
|
130
|
-
if (
|
|
142
|
+
if (j(r)) {
|
|
131
143
|
if (e.enumerable = !1, "writable" in e) {
|
|
132
144
|
e.writable = !1;
|
|
133
145
|
return;
|
|
@@ -145,29 +157,21 @@ const Io = (t, e, n, { allOwnKeys: r } = {}) => ($e(e, (o, a) => {
|
|
|
145
157
|
};
|
|
146
158
|
return be(t) ? r(t) : r(String(t).split(e)), n;
|
|
147
159
|
}, Vo = () => {
|
|
148
|
-
}, Qo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
ALPHA_DIGIT: dt + dt.toUpperCase() + pr
|
|
152
|
-
}, Xo = (t = 16, e = ln.ALPHA_DIGIT) => {
|
|
153
|
-
let n = "";
|
|
154
|
-
const { length: r } = e;
|
|
155
|
-
for (; t--; )
|
|
156
|
-
n += e[Math.random() * r | 0];
|
|
157
|
-
return n;
|
|
158
|
-
};
|
|
159
|
-
function Yo(t) {
|
|
160
|
-
return !!(t && H(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
160
|
+
}, Qo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
161
|
+
function Xo(t) {
|
|
162
|
+
return !!(t && j(t.append) && t[rn] === "FormData" && t[nt]);
|
|
161
163
|
}
|
|
162
|
-
const
|
|
164
|
+
const Yo = (t) => {
|
|
163
165
|
const e = new Array(10), n = (r, o) => {
|
|
164
|
-
if (
|
|
166
|
+
if (Ne(r)) {
|
|
165
167
|
if (e.indexOf(r) >= 0)
|
|
166
168
|
return;
|
|
169
|
+
if (_e(r))
|
|
170
|
+
return r;
|
|
167
171
|
if (!("toJSON" in r)) {
|
|
168
172
|
e[o] = r;
|
|
169
173
|
const a = be(r) ? [] : {};
|
|
170
|
-
return
|
|
174
|
+
return Fe(r, (i, s) => {
|
|
171
175
|
const u = n(i, o + 1);
|
|
172
176
|
!Ce(u) && (a[s] = u);
|
|
173
177
|
}), e[o] = void 0, a;
|
|
@@ -176,72 +180,72 @@ const Zo = (t) => {
|
|
|
176
180
|
return r;
|
|
177
181
|
};
|
|
178
182
|
return n(t, 0);
|
|
179
|
-
},
|
|
183
|
+
}, Zo = Q("AsyncFunction"), ea = (t) => t && (Ne(t) || j(t)) && j(t.then) && j(t.catch), cn = ((t, e) => t ? setImmediate : e ? ((n, r) => (le.addEventListener("message", ({ source: o, data: a }) => {
|
|
180
184
|
o === le && a === n && r.length && r.shift()();
|
|
181
185
|
}, !1), (o) => {
|
|
182
186
|
r.push(o), le.postMessage(n, "*");
|
|
183
187
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
184
188
|
typeof setImmediate == "function",
|
|
185
|
-
|
|
186
|
-
),
|
|
189
|
+
j(le.postMessage)
|
|
190
|
+
), ta = typeof queueMicrotask < "u" ? queueMicrotask.bind(le) : typeof process < "u" && process.nextTick || cn, ra = (t) => t != null && j(t[nt]), f = {
|
|
187
191
|
isArray: be,
|
|
188
|
-
isArrayBuffer:
|
|
189
|
-
isBuffer:
|
|
192
|
+
isArrayBuffer: nn,
|
|
193
|
+
isBuffer: _e,
|
|
190
194
|
isFormData: To,
|
|
191
|
-
isArrayBufferView:
|
|
192
|
-
isString:
|
|
193
|
-
isNumber:
|
|
194
|
-
isBoolean:
|
|
195
|
-
isObject:
|
|
196
|
-
isPlainObject:
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
isArrayBufferView: wo,
|
|
196
|
+
isString: bo,
|
|
197
|
+
isNumber: on,
|
|
198
|
+
isBoolean: So,
|
|
199
|
+
isObject: Ne,
|
|
200
|
+
isPlainObject: He,
|
|
201
|
+
isEmptyObject: Eo,
|
|
202
|
+
isReadableStream: $o,
|
|
203
|
+
isRequest: _o,
|
|
199
204
|
isResponse: No,
|
|
200
205
|
isHeaders: Fo,
|
|
201
206
|
isUndefined: Ce,
|
|
202
207
|
isDate: Ao,
|
|
203
208
|
isFile: Oo,
|
|
204
209
|
isBlob: Ro,
|
|
205
|
-
isRegExp:
|
|
206
|
-
isFunction:
|
|
210
|
+
isRegExp: Ko,
|
|
211
|
+
isFunction: j,
|
|
207
212
|
isStream: xo,
|
|
208
213
|
isURLSearchParams: Co,
|
|
209
|
-
isTypedArray:
|
|
214
|
+
isTypedArray: jo,
|
|
210
215
|
isFileList: Po,
|
|
211
|
-
forEach:
|
|
216
|
+
forEach: Fe,
|
|
212
217
|
merge: Bt,
|
|
213
218
|
extend: Io,
|
|
214
219
|
trim: Do,
|
|
215
220
|
stripBOM: Lo,
|
|
216
|
-
inherits:
|
|
217
|
-
toFlatObject:
|
|
218
|
-
kindOf:
|
|
221
|
+
inherits: Uo,
|
|
222
|
+
toFlatObject: Mo,
|
|
223
|
+
kindOf: ot,
|
|
219
224
|
kindOfTest: Q,
|
|
220
|
-
endsWith:
|
|
225
|
+
endsWith: Bo,
|
|
221
226
|
toArray: ko,
|
|
222
|
-
forEachEntry:
|
|
227
|
+
forEachEntry: qo,
|
|
223
228
|
matchAll: Ho,
|
|
224
229
|
isHTMLForm: zo,
|
|
225
|
-
hasOwnProperty:
|
|
226
|
-
hasOwnProp:
|
|
230
|
+
hasOwnProperty: pr,
|
|
231
|
+
hasOwnProp: pr,
|
|
227
232
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
228
|
-
reduceDescriptors:
|
|
229
|
-
freezeMethods:
|
|
233
|
+
reduceDescriptors: ln,
|
|
234
|
+
freezeMethods: Go,
|
|
230
235
|
toObjectSet: Jo,
|
|
231
236
|
toCamelCase: Wo,
|
|
232
237
|
noop: Vo,
|
|
233
238
|
toFiniteNumber: Qo,
|
|
234
|
-
findKey:
|
|
239
|
+
findKey: an,
|
|
235
240
|
global: le,
|
|
236
|
-
isContextDefined:
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
isAsyncFn: ea,
|
|
242
|
-
isThenable: ta,
|
|
241
|
+
isContextDefined: sn,
|
|
242
|
+
isSpecCompliantForm: Xo,
|
|
243
|
+
toJSONObject: Yo,
|
|
244
|
+
isAsyncFn: Zo,
|
|
245
|
+
isThenable: ea,
|
|
243
246
|
setImmediate: cn,
|
|
244
|
-
asap:
|
|
247
|
+
asap: ta,
|
|
248
|
+
isIterable: ra
|
|
245
249
|
};
|
|
246
250
|
function b(t, e, n, r, o) {
|
|
247
251
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -294,7 +298,7 @@ b.from = (t, e, n, r, o, a) => {
|
|
|
294
298
|
}, (s) => s !== "isAxiosError"), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
295
299
|
};
|
|
296
300
|
const na = null;
|
|
297
|
-
function
|
|
301
|
+
function kt(t) {
|
|
298
302
|
return f.isPlainObject(t) || f.isArray(t);
|
|
299
303
|
}
|
|
300
304
|
function pn(t) {
|
|
@@ -306,12 +310,12 @@ function dr(t, e, n) {
|
|
|
306
310
|
}).join(n ? "." : "") : e;
|
|
307
311
|
}
|
|
308
312
|
function oa(t) {
|
|
309
|
-
return f.isArray(t) && !t.some(
|
|
313
|
+
return f.isArray(t) && !t.some(kt);
|
|
310
314
|
}
|
|
311
315
|
const aa = f.toFlatObject(f, {}, null, function(e) {
|
|
312
316
|
return /^is[A-Z]/.test(e);
|
|
313
317
|
});
|
|
314
|
-
function
|
|
318
|
+
function it(t, e, n) {
|
|
315
319
|
if (!f.isObject(t))
|
|
316
320
|
throw new TypeError("target must be an object");
|
|
317
321
|
e = e || new FormData(), n = f.toFlatObject(n, {
|
|
@@ -328,6 +332,8 @@ function ot(t, e, n) {
|
|
|
328
332
|
if (y === null) return "";
|
|
329
333
|
if (f.isDate(y))
|
|
330
334
|
return y.toISOString();
|
|
335
|
+
if (f.isBoolean(y))
|
|
336
|
+
return y.toString();
|
|
331
337
|
if (!u && f.isBlob(y))
|
|
332
338
|
throw new b("Blob is not supported. Use a Buffer instead.");
|
|
333
339
|
return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
@@ -346,12 +352,12 @@ function ot(t, e, n) {
|
|
|
346
352
|
);
|
|
347
353
|
}), !1;
|
|
348
354
|
}
|
|
349
|
-
return
|
|
355
|
+
return kt(y) ? !0 : (e.append(dr(h, m, a), l(y)), !1);
|
|
350
356
|
}
|
|
351
357
|
const p = [], d = Object.assign(aa, {
|
|
352
358
|
defaultVisitor: c,
|
|
353
359
|
convertValue: l,
|
|
354
|
-
isVisitable:
|
|
360
|
+
isVisitable: kt
|
|
355
361
|
});
|
|
356
362
|
function g(y, m) {
|
|
357
363
|
if (!f.isUndefined(y)) {
|
|
@@ -386,10 +392,10 @@ function yr(t) {
|
|
|
386
392
|
return e[r];
|
|
387
393
|
});
|
|
388
394
|
}
|
|
389
|
-
function
|
|
390
|
-
this._pairs = [], t &&
|
|
395
|
+
function Zt(t, e) {
|
|
396
|
+
this._pairs = [], t && it(t, this, e);
|
|
391
397
|
}
|
|
392
|
-
const dn =
|
|
398
|
+
const dn = Zt.prototype;
|
|
393
399
|
dn.append = function(e, n) {
|
|
394
400
|
this._pairs.push([e, n]);
|
|
395
401
|
};
|
|
@@ -413,7 +419,7 @@ function yn(t, e, n) {
|
|
|
413
419
|
});
|
|
414
420
|
const o = n && n.serialize;
|
|
415
421
|
let a;
|
|
416
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
422
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Zt(e, n).toString(r), a) {
|
|
417
423
|
const i = t.indexOf("#");
|
|
418
424
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
419
425
|
}
|
|
@@ -477,7 +483,7 @@ const hn = {
|
|
|
477
483
|
silentJSONParsing: !0,
|
|
478
484
|
forcedJSONParsing: !0,
|
|
479
485
|
clarifyTimeoutError: !1
|
|
480
|
-
}, sa = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
486
|
+
}, sa = typeof URLSearchParams < "u" ? URLSearchParams : Zt, la = typeof FormData < "u" ? FormData : null, ca = typeof Blob < "u" ? Blob : null, ua = {
|
|
481
487
|
isBrowser: !0,
|
|
482
488
|
classes: {
|
|
483
489
|
URLSearchParams: sa,
|
|
@@ -485,24 +491,25 @@ const hn = {
|
|
|
485
491
|
Blob: ca
|
|
486
492
|
},
|
|
487
493
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
488
|
-
},
|
|
489
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", da =
|
|
494
|
+
}, er = typeof window < "u" && typeof document < "u", jt = typeof navigator == "object" && navigator || void 0, fa = er && (!jt || ["ReactNative", "NativeScript", "NS"].indexOf(jt.product) < 0), pa = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
495
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", da = er && window.location.href || "http://localhost", ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
490
496
|
__proto__: null,
|
|
491
|
-
hasBrowserEnv:
|
|
497
|
+
hasBrowserEnv: er,
|
|
492
498
|
hasStandardBrowserEnv: fa,
|
|
493
499
|
hasStandardBrowserWebWorkerEnv: pa,
|
|
494
|
-
navigator:
|
|
500
|
+
navigator: jt,
|
|
495
501
|
origin: da
|
|
496
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
502
|
+
}, Symbol.toStringTag, { value: "Module" })), M = {
|
|
497
503
|
...ya,
|
|
498
504
|
...ua
|
|
499
505
|
};
|
|
500
506
|
function ha(t, e) {
|
|
501
|
-
return
|
|
507
|
+
return it(t, new M.classes.URLSearchParams(), {
|
|
502
508
|
visitor: function(n, r, o, a) {
|
|
503
|
-
return
|
|
504
|
-
}
|
|
505
|
-
|
|
509
|
+
return M.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
510
|
+
},
|
|
511
|
+
...e
|
|
512
|
+
});
|
|
506
513
|
}
|
|
507
514
|
function ma(t) {
|
|
508
515
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
@@ -541,7 +548,7 @@ function va(t, e, n) {
|
|
|
541
548
|
}
|
|
542
549
|
return (n || JSON.stringify)(t);
|
|
543
550
|
}
|
|
544
|
-
const
|
|
551
|
+
const De = {
|
|
545
552
|
transitional: hn,
|
|
546
553
|
adapter: ["xhr", "http", "fetch"],
|
|
547
554
|
transformRequest: [function(e, n) {
|
|
@@ -560,7 +567,7 @@ const Ne = {
|
|
|
560
567
|
return ha(e, this.formSerializer).toString();
|
|
561
568
|
if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
562
569
|
const u = this.env && this.env.FormData;
|
|
563
|
-
return
|
|
570
|
+
return it(
|
|
564
571
|
s ? { "files[]": e } : e,
|
|
565
572
|
u && new u(),
|
|
566
573
|
this.formSerializer
|
|
@@ -570,7 +577,7 @@ const Ne = {
|
|
|
570
577
|
return a || o ? (n.setContentType("application/json", !1), va(e)) : e;
|
|
571
578
|
}],
|
|
572
579
|
transformResponse: [function(e) {
|
|
573
|
-
const n = this.transitional ||
|
|
580
|
+
const n = this.transitional || De.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
574
581
|
if (f.isResponse(e) || f.isReadableStream(e))
|
|
575
582
|
return e;
|
|
576
583
|
if (e && f.isString(e) && (r && !this.responseType || o)) {
|
|
@@ -594,8 +601,8 @@ const Ne = {
|
|
|
594
601
|
maxContentLength: -1,
|
|
595
602
|
maxBodyLength: -1,
|
|
596
603
|
env: {
|
|
597
|
-
FormData:
|
|
598
|
-
Blob:
|
|
604
|
+
FormData: M.classes.FormData,
|
|
605
|
+
Blob: M.classes.Blob
|
|
599
606
|
},
|
|
600
607
|
validateStatus: function(e) {
|
|
601
608
|
return e >= 200 && e < 300;
|
|
@@ -608,7 +615,7 @@ const Ne = {
|
|
|
608
615
|
}
|
|
609
616
|
};
|
|
610
617
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
611
|
-
|
|
618
|
+
De.headers[t] = {};
|
|
612
619
|
});
|
|
613
620
|
const wa = f.toObjectSet([
|
|
614
621
|
"age",
|
|
@@ -639,8 +646,8 @@ const wa = f.toObjectSet([
|
|
|
639
646
|
function Ae(t) {
|
|
640
647
|
return t && String(t).trim().toLowerCase();
|
|
641
648
|
}
|
|
642
|
-
function
|
|
643
|
-
return t === !1 || t == null ? t : f.isArray(t) ? t.map(
|
|
649
|
+
function ze(t) {
|
|
650
|
+
return t === !1 || t == null ? t : f.isArray(t) ? t.map(ze) : String(t);
|
|
644
651
|
}
|
|
645
652
|
function Sa(t) {
|
|
646
653
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -650,7 +657,7 @@ function Sa(t) {
|
|
|
650
657
|
return e;
|
|
651
658
|
}
|
|
652
659
|
const Ea = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
653
|
-
function
|
|
660
|
+
function ht(t, e, n, r, o) {
|
|
654
661
|
if (f.isFunction(r))
|
|
655
662
|
return r.call(this, e, n);
|
|
656
663
|
if (o && (e = n), !!f.isString(e)) {
|
|
@@ -685,17 +692,22 @@ let q = class {
|
|
|
685
692
|
if (!c)
|
|
686
693
|
throw new Error("header name must be a non-empty string");
|
|
687
694
|
const p = f.findKey(o, c);
|
|
688
|
-
(!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] =
|
|
695
|
+
(!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = ze(s));
|
|
689
696
|
}
|
|
690
697
|
const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
|
|
691
698
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
692
699
|
i(e, n);
|
|
693
700
|
else if (f.isString(e) && (e = e.trim()) && !Ea(e))
|
|
694
701
|
i(ba(e), n);
|
|
695
|
-
else if (f.
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
702
|
+
else if (f.isObject(e) && f.isIterable(e)) {
|
|
703
|
+
let s = {}, u, l;
|
|
704
|
+
for (const c of e) {
|
|
705
|
+
if (!f.isArray(c))
|
|
706
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
707
|
+
s[l = c[0]] = (u = s[l]) ? f.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
|
|
708
|
+
}
|
|
709
|
+
i(s, n);
|
|
710
|
+
} else
|
|
699
711
|
e != null && a(n, e, r);
|
|
700
712
|
return this;
|
|
701
713
|
}
|
|
@@ -719,7 +731,7 @@ let q = class {
|
|
|
719
731
|
has(e, n) {
|
|
720
732
|
if (e = Ae(e), e) {
|
|
721
733
|
const r = f.findKey(this, e);
|
|
722
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
734
|
+
return !!(r && this[r] !== void 0 && (!n || ht(this, this[r], r, n)));
|
|
723
735
|
}
|
|
724
736
|
return !1;
|
|
725
737
|
}
|
|
@@ -729,7 +741,7 @@ let q = class {
|
|
|
729
741
|
function a(i) {
|
|
730
742
|
if (i = Ae(i), i) {
|
|
731
743
|
const s = f.findKey(r, i);
|
|
732
|
-
s && (!n ||
|
|
744
|
+
s && (!n || ht(r, r[s], s, n)) && (delete r[s], o = !0);
|
|
733
745
|
}
|
|
734
746
|
}
|
|
735
747
|
return f.isArray(e) ? e.forEach(a) : a(e), o;
|
|
@@ -739,7 +751,7 @@ let q = class {
|
|
|
739
751
|
let r = n.length, o = !1;
|
|
740
752
|
for (; r--; ) {
|
|
741
753
|
const a = n[r];
|
|
742
|
-
(!e ||
|
|
754
|
+
(!e || ht(this, this[a], a, e, !0)) && (delete this[a], o = !0);
|
|
743
755
|
}
|
|
744
756
|
return o;
|
|
745
757
|
}
|
|
@@ -748,11 +760,11 @@ let q = class {
|
|
|
748
760
|
return f.forEach(this, (o, a) => {
|
|
749
761
|
const i = f.findKey(r, a);
|
|
750
762
|
if (i) {
|
|
751
|
-
n[i] =
|
|
763
|
+
n[i] = ze(o), delete n[a];
|
|
752
764
|
return;
|
|
753
765
|
}
|
|
754
766
|
const s = e ? Aa(a) : String(a).trim();
|
|
755
|
-
s !== a && delete n[a], n[s] =
|
|
767
|
+
s !== a && delete n[a], n[s] = ze(o), r[s] = !0;
|
|
756
768
|
}), this;
|
|
757
769
|
}
|
|
758
770
|
concat(...e) {
|
|
@@ -771,6 +783,9 @@ let q = class {
|
|
|
771
783
|
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
|
|
772
784
|
`);
|
|
773
785
|
}
|
|
786
|
+
getSetCookie() {
|
|
787
|
+
return this.get("set-cookie") || [];
|
|
788
|
+
}
|
|
774
789
|
get [Symbol.toStringTag]() {
|
|
775
790
|
return "AxiosHeaders";
|
|
776
791
|
}
|
|
@@ -803,8 +818,8 @@ f.reduceDescriptors(q.prototype, ({ value: t }, e) => {
|
|
|
803
818
|
};
|
|
804
819
|
});
|
|
805
820
|
f.freezeMethods(q);
|
|
806
|
-
function
|
|
807
|
-
const n = this ||
|
|
821
|
+
function mt(t, e) {
|
|
822
|
+
const n = this || De, r = e || n, o = q.from(r.headers);
|
|
808
823
|
let a = r.data;
|
|
809
824
|
return f.forEach(t, function(s) {
|
|
810
825
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
@@ -852,7 +867,7 @@ function Pa(t, e) {
|
|
|
852
867
|
function xa(t, e) {
|
|
853
868
|
let n = 0, r = 1e3 / e, o, a;
|
|
854
869
|
const i = (l, c = Date.now()) => {
|
|
855
|
-
n = c, o = null, a && (clearTimeout(a), a = null), t
|
|
870
|
+
n = c, o = null, a && (clearTimeout(a), a = null), t(...l);
|
|
856
871
|
};
|
|
857
872
|
return [(...l) => {
|
|
858
873
|
const c = Date.now(), p = c - n;
|
|
@@ -861,7 +876,7 @@ function xa(t, e) {
|
|
|
861
876
|
}, r - p)));
|
|
862
877
|
}, () => o && i(o)];
|
|
863
878
|
}
|
|
864
|
-
const
|
|
879
|
+
const Qe = (t, e, n = 3) => {
|
|
865
880
|
let r = 0;
|
|
866
881
|
const o = Pa(50, 250);
|
|
867
882
|
return xa((a) => {
|
|
@@ -887,10 +902,10 @@ const Je = (t, e, n = 3) => {
|
|
|
887
902
|
total: t,
|
|
888
903
|
loaded: r
|
|
889
904
|
}), e[1]];
|
|
890
|
-
}, vr = (t) => (...e) => f.asap(() => t(...e)), Ta =
|
|
891
|
-
new URL(
|
|
892
|
-
|
|
893
|
-
) : () => !0, Ca =
|
|
905
|
+
}, vr = (t) => (...e) => f.asap(() => t(...e)), Ta = M.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, M.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
906
|
+
new URL(M.origin),
|
|
907
|
+
M.navigator && /(msie|trident)/i.test(M.navigator.userAgent)
|
|
908
|
+
) : () => !0, Ca = M.hasStandardBrowserEnv ? (
|
|
894
909
|
// Standard browser envs support document.cookie
|
|
895
910
|
{
|
|
896
911
|
write(t, e, n, r, o, a) {
|
|
@@ -917,14 +932,15 @@ const Je = (t, e, n = 3) => {
|
|
|
917
932
|
}
|
|
918
933
|
}
|
|
919
934
|
);
|
|
920
|
-
function
|
|
935
|
+
function $a(t) {
|
|
921
936
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
922
937
|
}
|
|
923
|
-
function
|
|
938
|
+
function _a(t, e) {
|
|
924
939
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
925
940
|
}
|
|
926
|
-
function wn(t, e) {
|
|
927
|
-
|
|
941
|
+
function wn(t, e, n) {
|
|
942
|
+
let r = !$a(e);
|
|
943
|
+
return t && (r || n == !1) ? _a(t, e) : e;
|
|
928
944
|
}
|
|
929
945
|
const wr = (t) => t instanceof q ? { ...t } : t;
|
|
930
946
|
function fe(t, e) {
|
|
@@ -986,7 +1002,7 @@ function fe(t, e) {
|
|
|
986
1002
|
validateStatus: s,
|
|
987
1003
|
headers: (l, c, p) => o(wr(l), wr(c), p, !0)
|
|
988
1004
|
};
|
|
989
|
-
return f.forEach(Object.keys(
|
|
1005
|
+
return f.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
990
1006
|
const p = u[c] || o, d = p(t[c], e[c], c);
|
|
991
1007
|
f.isUndefined(d) && p !== s || (n[c] = d);
|
|
992
1008
|
}), n;
|
|
@@ -994,20 +1010,20 @@ function fe(t, e) {
|
|
|
994
1010
|
const bn = (t) => {
|
|
995
1011
|
const e = fe({}, t);
|
|
996
1012
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
|
|
997
|
-
e.headers = i = q.from(i), e.url = yn(wn(e.baseURL, e.url), t.params, t.paramsSerializer), s && i.set(
|
|
1013
|
+
e.headers = i = q.from(i), e.url = yn(wn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && i.set(
|
|
998
1014
|
"Authorization",
|
|
999
1015
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1000
1016
|
);
|
|
1001
1017
|
let u;
|
|
1002
1018
|
if (f.isFormData(n)) {
|
|
1003
|
-
if (
|
|
1019
|
+
if (M.hasStandardBrowserEnv || M.hasStandardBrowserWebWorkerEnv)
|
|
1004
1020
|
i.setContentType(void 0);
|
|
1005
1021
|
else if ((u = i.getContentType()) !== !1) {
|
|
1006
1022
|
const [l, ...c] = u ? u.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1007
1023
|
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1008
1024
|
}
|
|
1009
1025
|
}
|
|
1010
|
-
if (
|
|
1026
|
+
if (M.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && Ta(e.url))) {
|
|
1011
1027
|
const l = o && a && Ca.read(a);
|
|
1012
1028
|
l && i.set(o, l);
|
|
1013
1029
|
}
|
|
@@ -1036,10 +1052,10 @@ const bn = (t) => {
|
|
|
1036
1052
|
config: t,
|
|
1037
1053
|
request: h
|
|
1038
1054
|
};
|
|
1039
|
-
vn(function(
|
|
1040
|
-
n(
|
|
1041
|
-
}, function(
|
|
1042
|
-
r(
|
|
1055
|
+
vn(function(U) {
|
|
1056
|
+
n(U), m();
|
|
1057
|
+
}, function(U) {
|
|
1058
|
+
r(U), m();
|
|
1043
1059
|
}, x), h = null;
|
|
1044
1060
|
}
|
|
1045
1061
|
"onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
|
|
@@ -1059,11 +1075,11 @@ const bn = (t) => {
|
|
|
1059
1075
|
)), h = null;
|
|
1060
1076
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(F, x) {
|
|
1061
1077
|
h.setRequestHeader(x, F);
|
|
1062
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1078
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Qe(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, g] = Qe(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
|
|
1063
1079
|
h && (r(!v || v.type ? new Se(null, t, h) : v), h.abort(), h = null);
|
|
1064
1080
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1065
1081
|
const R = Ra(o.url);
|
|
1066
|
-
if (R &&
|
|
1082
|
+
if (R && M.protocols.indexOf(R) === -1) {
|
|
1067
1083
|
r(new b("Unsupported protocol " + R + ":", b.ERR_BAD_REQUEST, t));
|
|
1068
1084
|
return;
|
|
1069
1085
|
}
|
|
@@ -1102,9 +1118,9 @@ const bn = (t) => {
|
|
|
1102
1118
|
for (; r < n; )
|
|
1103
1119
|
o = r + e, yield t.slice(r, o), r = o;
|
|
1104
1120
|
}, La = async function* (t, e) {
|
|
1105
|
-
for await (const n of
|
|
1121
|
+
for await (const n of Ua(t))
|
|
1106
1122
|
yield* Ia(n, e);
|
|
1107
|
-
},
|
|
1123
|
+
}, Ua = async function* (t) {
|
|
1108
1124
|
if (t[Symbol.asyncIterator]) {
|
|
1109
1125
|
yield* t;
|
|
1110
1126
|
return;
|
|
@@ -1149,15 +1165,15 @@ const bn = (t) => {
|
|
|
1149
1165
|
}, {
|
|
1150
1166
|
highWaterMark: 2
|
|
1151
1167
|
});
|
|
1152
|
-
},
|
|
1168
|
+
}, st = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Sn = st && typeof ReadableStream == "function", Ma = st && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), En = (t, ...e) => {
|
|
1153
1169
|
try {
|
|
1154
1170
|
return !!t(...e);
|
|
1155
1171
|
} catch {
|
|
1156
1172
|
return !1;
|
|
1157
1173
|
}
|
|
1158
|
-
},
|
|
1174
|
+
}, Ba = Sn && En(() => {
|
|
1159
1175
|
let t = !1;
|
|
1160
|
-
const e = new Request(
|
|
1176
|
+
const e = new Request(M.origin, {
|
|
1161
1177
|
body: new ReadableStream(),
|
|
1162
1178
|
method: "POST",
|
|
1163
1179
|
get duplex() {
|
|
@@ -1165,12 +1181,12 @@ const bn = (t) => {
|
|
|
1165
1181
|
}
|
|
1166
1182
|
}).headers.has("Content-Type");
|
|
1167
1183
|
return t && !e;
|
|
1168
|
-
}), Sr = 64 * 1024, qt = Sn && En(() => f.isReadableStream(new Response("").body)),
|
|
1184
|
+
}), Sr = 64 * 1024, qt = Sn && En(() => f.isReadableStream(new Response("").body)), Xe = {
|
|
1169
1185
|
stream: qt && ((t) => t.body)
|
|
1170
1186
|
};
|
|
1171
|
-
|
|
1187
|
+
st && ((t) => {
|
|
1172
1188
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1173
|
-
!
|
|
1189
|
+
!Xe[e] && (Xe[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1174
1190
|
throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, r);
|
|
1175
1191
|
});
|
|
1176
1192
|
});
|
|
@@ -1181,18 +1197,18 @@ const ka = async (t) => {
|
|
|
1181
1197
|
if (f.isBlob(t))
|
|
1182
1198
|
return t.size;
|
|
1183
1199
|
if (f.isSpecCompliantForm(t))
|
|
1184
|
-
return (await new Request(
|
|
1200
|
+
return (await new Request(M.origin, {
|
|
1185
1201
|
method: "POST",
|
|
1186
1202
|
body: t
|
|
1187
1203
|
}).arrayBuffer()).byteLength;
|
|
1188
1204
|
if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
|
|
1189
1205
|
return t.byteLength;
|
|
1190
1206
|
if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
|
|
1191
|
-
return (await
|
|
1192
|
-
},
|
|
1207
|
+
return (await Ma(t)).byteLength;
|
|
1208
|
+
}, ja = async (t, e) => {
|
|
1193
1209
|
const n = f.toFiniteNumber(t.getContentLength());
|
|
1194
1210
|
return n ?? ka(e);
|
|
1195
|
-
},
|
|
1211
|
+
}, qa = st && (async (t) => {
|
|
1196
1212
|
let {
|
|
1197
1213
|
url: e,
|
|
1198
1214
|
method: n,
|
|
@@ -1214,18 +1230,18 @@ const ka = async (t) => {
|
|
|
1214
1230
|
});
|
|
1215
1231
|
let h;
|
|
1216
1232
|
try {
|
|
1217
|
-
if (u &&
|
|
1233
|
+
if (u && Ba && n !== "get" && n !== "head" && (h = await ja(c, r)) !== 0) {
|
|
1218
1234
|
let x = new Request(e, {
|
|
1219
1235
|
method: "POST",
|
|
1220
1236
|
body: r,
|
|
1221
1237
|
duplex: "half"
|
|
1222
1238
|
}), L;
|
|
1223
1239
|
if (f.isFormData(r) && (L = x.headers.get("content-type")) && c.setContentType(L), x.body) {
|
|
1224
|
-
const [
|
|
1240
|
+
const [U, z] = gr(
|
|
1225
1241
|
h,
|
|
1226
|
-
|
|
1242
|
+
Qe(vr(u))
|
|
1227
1243
|
);
|
|
1228
|
-
r = br(x.body, Sr,
|
|
1244
|
+
r = br(x.body, Sr, U, z);
|
|
1229
1245
|
}
|
|
1230
1246
|
}
|
|
1231
1247
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -1239,26 +1255,26 @@ const ka = async (t) => {
|
|
|
1239
1255
|
duplex: "half",
|
|
1240
1256
|
credentials: E ? p : void 0
|
|
1241
1257
|
});
|
|
1242
|
-
let R = await fetch(y);
|
|
1258
|
+
let R = await fetch(y, d);
|
|
1243
1259
|
const v = qt && (l === "stream" || l === "response");
|
|
1244
1260
|
if (qt && (s || v && m)) {
|
|
1245
1261
|
const x = {};
|
|
1246
|
-
["status", "statusText", "headers"].forEach((
|
|
1247
|
-
x[
|
|
1262
|
+
["status", "statusText", "headers"].forEach((G) => {
|
|
1263
|
+
x[G] = R[G];
|
|
1248
1264
|
});
|
|
1249
|
-
const L = f.toFiniteNumber(R.headers.get("content-length")), [
|
|
1265
|
+
const L = f.toFiniteNumber(R.headers.get("content-length")), [U, z] = s && gr(
|
|
1250
1266
|
L,
|
|
1251
|
-
|
|
1267
|
+
Qe(vr(s), !0)
|
|
1252
1268
|
) || [];
|
|
1253
1269
|
R = new Response(
|
|
1254
|
-
br(R.body, Sr,
|
|
1270
|
+
br(R.body, Sr, U, () => {
|
|
1255
1271
|
z && z(), m && m();
|
|
1256
1272
|
}),
|
|
1257
1273
|
x
|
|
1258
1274
|
);
|
|
1259
1275
|
}
|
|
1260
1276
|
l = l || "text";
|
|
1261
|
-
let F = await
|
|
1277
|
+
let F = await Xe[f.findKey(Xe, l) || "text"](R, t);
|
|
1262
1278
|
return !v && m && m(), await new Promise((x, L) => {
|
|
1263
1279
|
vn(x, L, {
|
|
1264
1280
|
data: F,
|
|
@@ -1270,19 +1286,19 @@ const ka = async (t) => {
|
|
|
1270
1286
|
});
|
|
1271
1287
|
});
|
|
1272
1288
|
} catch (E) {
|
|
1273
|
-
throw m && m(), E && E.name === "TypeError" && /fetch/i.test(E.message) ? Object.assign(
|
|
1289
|
+
throw m && m(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
|
|
1274
1290
|
new b("Network Error", b.ERR_NETWORK, t, y),
|
|
1275
1291
|
{
|
|
1276
1292
|
cause: E.cause || E
|
|
1277
1293
|
}
|
|
1278
1294
|
) : b.from(E, E && E.code, t, y);
|
|
1279
1295
|
}
|
|
1280
|
-
}),
|
|
1296
|
+
}), Ht = {
|
|
1281
1297
|
http: na,
|
|
1282
1298
|
xhr: Fa,
|
|
1283
|
-
fetch:
|
|
1299
|
+
fetch: qa
|
|
1284
1300
|
};
|
|
1285
|
-
f.forEach(
|
|
1301
|
+
f.forEach(Ht, (t, e) => {
|
|
1286
1302
|
if (t) {
|
|
1287
1303
|
try {
|
|
1288
1304
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1300,7 +1316,7 @@ const Er = (t) => `- ${t}`, Ha = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1300
1316
|
for (let a = 0; a < e; a++) {
|
|
1301
1317
|
n = t[a];
|
|
1302
1318
|
let i;
|
|
1303
|
-
if (r = n, !Ha(n) && (r =
|
|
1319
|
+
if (r = n, !Ha(n) && (r = Ht[(i = String(n)).toLowerCase()], r === void 0))
|
|
1304
1320
|
throw new b(`Unknown adapter '${i}'`);
|
|
1305
1321
|
if (r)
|
|
1306
1322
|
break;
|
|
@@ -1320,38 +1336,38 @@ const Er = (t) => `- ${t}`, Ha = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1320
1336
|
}
|
|
1321
1337
|
return r;
|
|
1322
1338
|
},
|
|
1323
|
-
adapters:
|
|
1339
|
+
adapters: Ht
|
|
1324
1340
|
};
|
|
1325
|
-
function
|
|
1341
|
+
function gt(t) {
|
|
1326
1342
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1327
1343
|
throw new Se(null, t);
|
|
1328
1344
|
}
|
|
1329
1345
|
function Ar(t) {
|
|
1330
|
-
return
|
|
1346
|
+
return gt(t), t.headers = q.from(t.headers), t.data = mt.call(
|
|
1331
1347
|
t,
|
|
1332
1348
|
t.transformRequest
|
|
1333
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), An.getAdapter(t.adapter ||
|
|
1334
|
-
return
|
|
1349
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), An.getAdapter(t.adapter || De.adapter)(t).then(function(r) {
|
|
1350
|
+
return gt(t), r.data = mt.call(
|
|
1335
1351
|
t,
|
|
1336
1352
|
t.transformResponse,
|
|
1337
1353
|
r
|
|
1338
1354
|
), r.headers = q.from(r.headers), r;
|
|
1339
1355
|
}, function(r) {
|
|
1340
|
-
return gn(r) || (
|
|
1356
|
+
return gn(r) || (gt(t), r && r.response && (r.response.data = mt.call(
|
|
1341
1357
|
t,
|
|
1342
1358
|
t.transformResponse,
|
|
1343
1359
|
r.response
|
|
1344
1360
|
), r.response.headers = q.from(r.response.headers))), Promise.reject(r);
|
|
1345
1361
|
});
|
|
1346
1362
|
}
|
|
1347
|
-
const On = "1.
|
|
1363
|
+
const On = "1.11.0", lt = {};
|
|
1348
1364
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1349
|
-
|
|
1365
|
+
lt[t] = function(r) {
|
|
1350
1366
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1351
1367
|
};
|
|
1352
1368
|
});
|
|
1353
1369
|
const Or = {};
|
|
1354
|
-
|
|
1370
|
+
lt.transitional = function(e, n, r) {
|
|
1355
1371
|
function o(a, i) {
|
|
1356
1372
|
return "[Axios v" + On + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1357
1373
|
}
|
|
@@ -1364,7 +1380,7 @@ it.transitional = function(e, n, r) {
|
|
|
1364
1380
|
return n && !Or[i] && (Or[i] = !0), e ? e(a, i, s) : !0;
|
|
1365
1381
|
};
|
|
1366
1382
|
};
|
|
1367
|
-
|
|
1383
|
+
lt.spelling = function(e) {
|
|
1368
1384
|
return (n, r) => !0;
|
|
1369
1385
|
};
|
|
1370
1386
|
function za(t, e, n) {
|
|
@@ -1384,13 +1400,13 @@ function za(t, e, n) {
|
|
|
1384
1400
|
throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
|
|
1385
1401
|
}
|
|
1386
1402
|
}
|
|
1387
|
-
const
|
|
1403
|
+
const We = {
|
|
1388
1404
|
assertOptions: za,
|
|
1389
|
-
validators:
|
|
1390
|
-
}, Z =
|
|
1405
|
+
validators: lt
|
|
1406
|
+
}, Z = We.validators;
|
|
1391
1407
|
let ce = class {
|
|
1392
1408
|
constructor(e) {
|
|
1393
|
-
this.defaults = e, this.interceptors = {
|
|
1409
|
+
this.defaults = e || {}, this.interceptors = {
|
|
1394
1410
|
request: new hr(),
|
|
1395
1411
|
response: new hr()
|
|
1396
1412
|
};
|
|
@@ -1423,16 +1439,16 @@ let ce = class {
|
|
|
1423
1439
|
_request(e, n) {
|
|
1424
1440
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = fe(this.defaults, n);
|
|
1425
1441
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1426
|
-
r !== void 0 &&
|
|
1442
|
+
r !== void 0 && We.assertOptions(r, {
|
|
1427
1443
|
silentJSONParsing: Z.transitional(Z.boolean),
|
|
1428
1444
|
forcedJSONParsing: Z.transitional(Z.boolean),
|
|
1429
1445
|
clarifyTimeoutError: Z.transitional(Z.boolean)
|
|
1430
1446
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1431
1447
|
serialize: o
|
|
1432
|
-
} :
|
|
1448
|
+
} : We.assertOptions(o, {
|
|
1433
1449
|
encode: Z.function,
|
|
1434
1450
|
serialize: Z.function
|
|
1435
|
-
}, !0)),
|
|
1451
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), We.assertOptions(n, {
|
|
1436
1452
|
baseUrl: Z.spelling("baseURL"),
|
|
1437
1453
|
withXsrfToken: Z.spelling("withXSRFToken")
|
|
1438
1454
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1458,7 +1474,7 @@ let ce = class {
|
|
|
1458
1474
|
let c, p = 0, d;
|
|
1459
1475
|
if (!u) {
|
|
1460
1476
|
const y = [Ar.bind(this), void 0];
|
|
1461
|
-
for (y.unshift
|
|
1477
|
+
for (y.unshift(...s), y.push(...l), d = y.length, c = Promise.resolve(n); p < d; )
|
|
1462
1478
|
c = c.then(y[p++], y[p++]);
|
|
1463
1479
|
return c;
|
|
1464
1480
|
}
|
|
@@ -1484,7 +1500,7 @@ let ce = class {
|
|
|
1484
1500
|
}
|
|
1485
1501
|
getUri(e) {
|
|
1486
1502
|
e = fe(this.defaults, e);
|
|
1487
|
-
const n = wn(e.baseURL, e.url);
|
|
1503
|
+
const n = wn(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1488
1504
|
return yn(n, e.params, e.paramsSerializer);
|
|
1489
1505
|
}
|
|
1490
1506
|
};
|
|
@@ -1585,15 +1601,15 @@ let Wa = class Rn {
|
|
|
1585
1601
|
};
|
|
1586
1602
|
}
|
|
1587
1603
|
};
|
|
1588
|
-
function
|
|
1604
|
+
function Ka(t) {
|
|
1589
1605
|
return function(n) {
|
|
1590
1606
|
return t.apply(null, n);
|
|
1591
1607
|
};
|
|
1592
1608
|
}
|
|
1593
|
-
function
|
|
1609
|
+
function Ga(t) {
|
|
1594
1610
|
return f.isObject(t) && t.isAxiosError === !0;
|
|
1595
1611
|
}
|
|
1596
|
-
const
|
|
1612
|
+
const zt = {
|
|
1597
1613
|
Continue: 100,
|
|
1598
1614
|
SwitchingProtocols: 101,
|
|
1599
1615
|
Processing: 102,
|
|
@@ -1658,8 +1674,8 @@ const Ht = {
|
|
|
1658
1674
|
NotExtended: 510,
|
|
1659
1675
|
NetworkAuthenticationRequired: 511
|
|
1660
1676
|
};
|
|
1661
|
-
Object.entries(
|
|
1662
|
-
|
|
1677
|
+
Object.entries(zt).forEach(([t, e]) => {
|
|
1678
|
+
zt[e] = t;
|
|
1663
1679
|
});
|
|
1664
1680
|
function Pn(t) {
|
|
1665
1681
|
const e = new ce(t), n = tn(ce.prototype.request, e);
|
|
@@ -1667,25 +1683,25 @@ function Pn(t) {
|
|
|
1667
1683
|
return Pn(fe(t, o));
|
|
1668
1684
|
}, n;
|
|
1669
1685
|
}
|
|
1670
|
-
const N = Pn(
|
|
1686
|
+
const N = Pn(De);
|
|
1671
1687
|
N.Axios = ce;
|
|
1672
1688
|
N.CanceledError = Se;
|
|
1673
1689
|
N.CancelToken = Wa;
|
|
1674
1690
|
N.isCancel = gn;
|
|
1675
1691
|
N.VERSION = On;
|
|
1676
|
-
N.toFormData =
|
|
1692
|
+
N.toFormData = it;
|
|
1677
1693
|
N.AxiosError = b;
|
|
1678
1694
|
N.Cancel = N.CanceledError;
|
|
1679
1695
|
N.all = function(e) {
|
|
1680
1696
|
return Promise.all(e);
|
|
1681
1697
|
};
|
|
1682
|
-
N.spread =
|
|
1683
|
-
N.isAxiosError =
|
|
1698
|
+
N.spread = Ka;
|
|
1699
|
+
N.isAxiosError = Ga;
|
|
1684
1700
|
N.mergeConfig = fe;
|
|
1685
1701
|
N.AxiosHeaders = q;
|
|
1686
1702
|
N.formToJSON = (t) => mn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1687
1703
|
N.getAdapter = An.getAdapter;
|
|
1688
|
-
N.HttpStatusCode =
|
|
1704
|
+
N.HttpStatusCode = zt;
|
|
1689
1705
|
N.default = N;
|
|
1690
1706
|
const {
|
|
1691
1707
|
Axios: mc,
|
|
@@ -1702,8 +1718,8 @@ const {
|
|
|
1702
1718
|
AxiosHeaders: xc,
|
|
1703
1719
|
HttpStatusCode: Tc,
|
|
1704
1720
|
formToJSON: Cc,
|
|
1705
|
-
getAdapter:
|
|
1706
|
-
mergeConfig:
|
|
1721
|
+
getAdapter: $c,
|
|
1722
|
+
mergeConfig: _c
|
|
1707
1723
|
} = N;
|
|
1708
1724
|
var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1709
1725
|
function Ja(t) {
|
|
@@ -1733,7 +1749,7 @@ const Qa = {}, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1733
1749
|
__proto__: null,
|
|
1734
1750
|
default: Qa
|
|
1735
1751
|
}, Symbol.toStringTag, { value: "Module" })), Ya = /* @__PURE__ */ Va(Xa);
|
|
1736
|
-
var
|
|
1752
|
+
var tr = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && tr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ye = tr && vt && typeof vt.get == "function" ? vt.get : null, Pr = tr && Map.prototype.forEach, rr = typeof Set == "function" && Set.prototype, wt = Object.getOwnPropertyDescriptor && rr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ze = rr && wt && typeof wt.get == "function" ? wt.get : null, xr = rr && Set.prototype.forEach, Za = typeof WeakMap == "function" && WeakMap.prototype, Re = Za ? WeakMap.prototype.has : null, ei = typeof WeakSet == "function" && WeakSet.prototype, Pe = ei ? WeakSet.prototype.has : null, ti = typeof WeakRef == "function" && WeakRef.prototype, Tr = ti ? WeakRef.prototype.deref : null, ri = Boolean.prototype.valueOf, ni = Object.prototype.toString, oi = Function.prototype.toString, ai = String.prototype.match, nr = String.prototype.slice, ae = String.prototype.replace, ii = String.prototype.toUpperCase, Cr = String.prototype.toLowerCase, xn = RegExp.prototype.test, $r = Array.prototype.concat, re = Array.prototype.join, si = Array.prototype.slice, _r = Math.floor, Wt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, bt = Object.getOwnPropertySymbols, Kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ve = typeof Symbol == "function" && typeof Symbol.iterator == "object", xe = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ve || !0) ? Symbol.toStringTag : null, Tn = Object.prototype.propertyIsEnumerable, Nr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1737
1753
|
return t.__proto__;
|
|
1738
1754
|
} : null);
|
|
1739
1755
|
function Fr(t, e) {
|
|
@@ -1741,15 +1757,15 @@ function Fr(t, e) {
|
|
|
1741
1757
|
return e;
|
|
1742
1758
|
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1743
1759
|
if (typeof t == "number") {
|
|
1744
|
-
var r = t < 0 ?
|
|
1760
|
+
var r = t < 0 ? -_r(-t) : _r(t);
|
|
1745
1761
|
if (r !== t) {
|
|
1746
|
-
var o = String(r), a =
|
|
1762
|
+
var o = String(r), a = nr.call(e, o.length + 1);
|
|
1747
1763
|
return ae.call(o, n, "$&_") + "." + ae.call(ae.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1748
1764
|
}
|
|
1749
1765
|
}
|
|
1750
1766
|
return ae.call(e, n, "$&_");
|
|
1751
1767
|
}
|
|
1752
|
-
var Gt = Ya, Dr = Gt.custom, Ir =
|
|
1768
|
+
var Gt = Ya, Dr = Gt.custom, Ir = _n(Dr) ? Dr : null, Cn = {
|
|
1753
1769
|
__proto__: null,
|
|
1754
1770
|
double: '"',
|
|
1755
1771
|
single: "'"
|
|
@@ -1757,7 +1773,7 @@ var Gt = Ya, Dr = Gt.custom, Ir = $n(Dr) ? Dr : null, Cn = {
|
|
|
1757
1773
|
__proto__: null,
|
|
1758
1774
|
double: /(["\\])/g,
|
|
1759
1775
|
single: /(['\\])/g
|
|
1760
|
-
},
|
|
1776
|
+
}, ct = function t(e, n, r, o) {
|
|
1761
1777
|
var a = n || {};
|
|
1762
1778
|
if (ne(a, "quoteStyle") && !ne(Cn, a.quoteStyle))
|
|
1763
1779
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1791,43 +1807,43 @@ var Gt = Ya, Dr = Gt.custom, Ir = $n(Dr) ? Dr : null, Cn = {
|
|
|
1791
1807
|
}
|
|
1792
1808
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
1793
1809
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
1794
|
-
return
|
|
1810
|
+
return Jt(e) ? "[Array]" : "[Object]";
|
|
1795
1811
|
var p = Pi(a, r);
|
|
1796
1812
|
if (typeof o > "u")
|
|
1797
1813
|
o = [];
|
|
1798
1814
|
else if (Nn(o, e) >= 0)
|
|
1799
1815
|
return "[Circular]";
|
|
1800
|
-
function d(P,
|
|
1801
|
-
if (
|
|
1802
|
-
var
|
|
1816
|
+
function d(P, _, w) {
|
|
1817
|
+
if (_ && (o = si.call(o), o.push(_)), w) {
|
|
1818
|
+
var H = {
|
|
1803
1819
|
depth: a.depth
|
|
1804
1820
|
};
|
|
1805
|
-
return ne(a, "quoteStyle") && (
|
|
1821
|
+
return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(P, H, r + 1, o);
|
|
1806
1822
|
}
|
|
1807
1823
|
return t(P, a, r + 1, o);
|
|
1808
1824
|
}
|
|
1809
1825
|
if (typeof e == "function" && !Lr(e)) {
|
|
1810
|
-
var g = gi(e), y =
|
|
1826
|
+
var g = gi(e), y = ke(e, d);
|
|
1811
1827
|
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + re.call(y, ", ") + " }" : "");
|
|
1812
1828
|
}
|
|
1813
|
-
if (
|
|
1814
|
-
var m = ve ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
1829
|
+
if (_n(e)) {
|
|
1830
|
+
var m = ve ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Kt.call(e);
|
|
1815
1831
|
return typeof e == "object" && !ve ? Oe(m) : m;
|
|
1816
1832
|
}
|
|
1817
1833
|
if (Ai(e)) {
|
|
1818
1834
|
for (var h = "<" + Cr.call(String(e.nodeName)), E = e.attributes || [], R = 0; R < E.length; R++)
|
|
1819
|
-
h += " " + E[R].name + "=" +
|
|
1835
|
+
h += " " + E[R].name + "=" + $n(ci(E[R].value), "double", a);
|
|
1820
1836
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Cr.call(String(e.nodeName)) + ">", h;
|
|
1821
1837
|
}
|
|
1822
|
-
if (
|
|
1838
|
+
if (Jt(e)) {
|
|
1823
1839
|
if (e.length === 0)
|
|
1824
1840
|
return "[]";
|
|
1825
|
-
var v =
|
|
1826
|
-
return p && !Ri(v) ? "[" +
|
|
1841
|
+
var v = ke(e, d);
|
|
1842
|
+
return p && !Ri(v) ? "[" + Vt(v, p) + "]" : "[ " + re.call(v, ", ") + " ]";
|
|
1827
1843
|
}
|
|
1828
1844
|
if (fi(e)) {
|
|
1829
|
-
var F =
|
|
1830
|
-
return !("cause" in Error.prototype) && "cause" in e && !Tn.call(e, "cause") ? "{ [" + String(e) + "] " + re.call(
|
|
1845
|
+
var F = ke(e, d);
|
|
1846
|
+
return !("cause" in Error.prototype) && "cause" in e && !Tn.call(e, "cause") ? "{ [" + String(e) + "] " + re.call($r.call("[cause]: " + d(e.cause), F), ", ") + " }" : F.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + re.call(F, ", ") + " }";
|
|
1831
1847
|
}
|
|
1832
1848
|
if (typeof e == "object" && i) {
|
|
1833
1849
|
if (Ir && typeof e[Ir] == "function" && Gt)
|
|
@@ -1837,26 +1853,26 @@ var Gt = Ya, Dr = Gt.custom, Ir = $n(Dr) ? Dr : null, Cn = {
|
|
|
1837
1853
|
}
|
|
1838
1854
|
if (vi(e)) {
|
|
1839
1855
|
var x = [];
|
|
1840
|
-
return Pr && Pr.call(e, function(P,
|
|
1841
|
-
x.push(d(
|
|
1842
|
-
}),
|
|
1856
|
+
return Pr && Pr.call(e, function(P, _) {
|
|
1857
|
+
x.push(d(_, e, !0) + " => " + d(P, e));
|
|
1858
|
+
}), Ur("Map", Ye.call(e), x, p);
|
|
1843
1859
|
}
|
|
1844
1860
|
if (Si(e)) {
|
|
1845
1861
|
var L = [];
|
|
1846
1862
|
return xr && xr.call(e, function(P) {
|
|
1847
1863
|
L.push(d(P, e));
|
|
1848
|
-
}),
|
|
1864
|
+
}), Ur("Set", Ze.call(e), L, p);
|
|
1849
1865
|
}
|
|
1850
1866
|
if (wi(e))
|
|
1851
|
-
return
|
|
1867
|
+
return St("WeakMap");
|
|
1852
1868
|
if (Ei(e))
|
|
1853
|
-
return
|
|
1869
|
+
return St("WeakSet");
|
|
1854
1870
|
if (bi(e))
|
|
1855
|
-
return
|
|
1871
|
+
return St("WeakRef");
|
|
1856
1872
|
if (di(e))
|
|
1857
1873
|
return Oe(d(Number(e)));
|
|
1858
1874
|
if (hi(e))
|
|
1859
|
-
return Oe(d(
|
|
1875
|
+
return Oe(d(Wt.call(e)));
|
|
1860
1876
|
if (yi(e))
|
|
1861
1877
|
return Oe(ri.call(e));
|
|
1862
1878
|
if (pi(e))
|
|
@@ -1866,12 +1882,12 @@ var Gt = Ya, Dr = Gt.custom, Ir = $n(Dr) ? Dr : null, Cn = {
|
|
|
1866
1882
|
if (typeof globalThis < "u" && e === globalThis || typeof Rr < "u" && e === Rr)
|
|
1867
1883
|
return "{ [object globalThis] }";
|
|
1868
1884
|
if (!ui(e) && !Lr(e)) {
|
|
1869
|
-
var
|
|
1870
|
-
return
|
|
1885
|
+
var U = ke(e, d), z = Nr ? Nr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", S = !z && xe && Object(e) === e && xe in e ? nr.call(ie(e), 8, -1) : G ? "Object" : "", O = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", T = O + (S || G ? "[" + re.call($r.call([], S || [], G || []), ": ") + "] " : "");
|
|
1886
|
+
return U.length === 0 ? T + "{}" : p ? T + "{" + Vt(U, p) + "}" : T + "{ " + re.call(U, ", ") + " }";
|
|
1871
1887
|
}
|
|
1872
1888
|
return String(e);
|
|
1873
1889
|
};
|
|
1874
|
-
function
|
|
1890
|
+
function $n(t, e, n) {
|
|
1875
1891
|
var r = n.quoteStyle || e, o = Cn[r];
|
|
1876
1892
|
return o + t + o;
|
|
1877
1893
|
}
|
|
@@ -1881,7 +1897,7 @@ function ci(t) {
|
|
|
1881
1897
|
function de(t) {
|
|
1882
1898
|
return !xe || !(typeof t == "object" && (xe in t || typeof t[xe] < "u"));
|
|
1883
1899
|
}
|
|
1884
|
-
function
|
|
1900
|
+
function Jt(t) {
|
|
1885
1901
|
return ie(t) === "[object Array]" && de(t);
|
|
1886
1902
|
}
|
|
1887
1903
|
function ui(t) {
|
|
@@ -1902,24 +1918,24 @@ function di(t) {
|
|
|
1902
1918
|
function yi(t) {
|
|
1903
1919
|
return ie(t) === "[object Boolean]" && de(t);
|
|
1904
1920
|
}
|
|
1905
|
-
function
|
|
1921
|
+
function _n(t) {
|
|
1906
1922
|
if (ve)
|
|
1907
1923
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1908
1924
|
if (typeof t == "symbol")
|
|
1909
1925
|
return !0;
|
|
1910
|
-
if (!t || typeof t != "object" || !
|
|
1926
|
+
if (!t || typeof t != "object" || !Kt)
|
|
1911
1927
|
return !1;
|
|
1912
1928
|
try {
|
|
1913
|
-
return
|
|
1929
|
+
return Kt.call(t), !0;
|
|
1914
1930
|
} catch {
|
|
1915
1931
|
}
|
|
1916
1932
|
return !1;
|
|
1917
1933
|
}
|
|
1918
1934
|
function hi(t) {
|
|
1919
|
-
if (!t || typeof t != "object" || !
|
|
1935
|
+
if (!t || typeof t != "object" || !Wt)
|
|
1920
1936
|
return !1;
|
|
1921
1937
|
try {
|
|
1922
|
-
return
|
|
1938
|
+
return Wt.call(t), !0;
|
|
1923
1939
|
} catch {
|
|
1924
1940
|
}
|
|
1925
1941
|
return !1;
|
|
@@ -1948,12 +1964,12 @@ function Nn(t, e) {
|
|
|
1948
1964
|
return -1;
|
|
1949
1965
|
}
|
|
1950
1966
|
function vi(t) {
|
|
1951
|
-
if (!
|
|
1967
|
+
if (!Ye || !t || typeof t != "object")
|
|
1952
1968
|
return !1;
|
|
1953
1969
|
try {
|
|
1954
|
-
|
|
1970
|
+
Ye.call(t);
|
|
1955
1971
|
try {
|
|
1956
|
-
|
|
1972
|
+
Ze.call(t);
|
|
1957
1973
|
} catch {
|
|
1958
1974
|
return !0;
|
|
1959
1975
|
}
|
|
@@ -1987,12 +2003,12 @@ function bi(t) {
|
|
|
1987
2003
|
return !1;
|
|
1988
2004
|
}
|
|
1989
2005
|
function Si(t) {
|
|
1990
|
-
if (!
|
|
2006
|
+
if (!Ze || !t || typeof t != "object")
|
|
1991
2007
|
return !1;
|
|
1992
2008
|
try {
|
|
1993
|
-
|
|
2009
|
+
Ze.call(t);
|
|
1994
2010
|
try {
|
|
1995
|
-
|
|
2011
|
+
Ye.call(t);
|
|
1996
2012
|
} catch {
|
|
1997
2013
|
return !0;
|
|
1998
2014
|
}
|
|
@@ -2022,12 +2038,12 @@ function Ai(t) {
|
|
|
2022
2038
|
function Fn(t, e) {
|
|
2023
2039
|
if (t.length > e.maxStringLength) {
|
|
2024
2040
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2025
|
-
return Fn(
|
|
2041
|
+
return Fn(nr.call(t, 0, e.maxStringLength), e) + r;
|
|
2026
2042
|
}
|
|
2027
2043
|
var o = li[e.quoteStyle || "single"];
|
|
2028
2044
|
o.lastIndex = 0;
|
|
2029
2045
|
var a = ae.call(ae.call(t, o, "\\$1"), /[\x00-\x1f]/g, Oi);
|
|
2030
|
-
return
|
|
2046
|
+
return $n(a, "single", e);
|
|
2031
2047
|
}
|
|
2032
2048
|
function Oi(t) {
|
|
2033
2049
|
var e = t.charCodeAt(0), n = {
|
|
@@ -2042,11 +2058,11 @@ function Oi(t) {
|
|
|
2042
2058
|
function Oe(t) {
|
|
2043
2059
|
return "Object(" + t + ")";
|
|
2044
2060
|
}
|
|
2045
|
-
function
|
|
2061
|
+
function St(t) {
|
|
2046
2062
|
return t + " { ? }";
|
|
2047
2063
|
}
|
|
2048
|
-
function
|
|
2049
|
-
var o = r ?
|
|
2064
|
+
function Ur(t, e, n, r) {
|
|
2065
|
+
var o = r ? Vt(n, r) : re.call(n, ", ");
|
|
2050
2066
|
return t + " (" + e + ") {" + o + "}";
|
|
2051
2067
|
}
|
|
2052
2068
|
function Ri(t) {
|
|
@@ -2069,7 +2085,7 @@ function Pi(t, e) {
|
|
|
2069
2085
|
prev: re.call(Array(e + 1), n)
|
|
2070
2086
|
};
|
|
2071
2087
|
}
|
|
2072
|
-
function
|
|
2088
|
+
function Vt(t, e) {
|
|
2073
2089
|
if (t.length === 0)
|
|
2074
2090
|
return "";
|
|
2075
2091
|
var n = `
|
|
@@ -2077,14 +2093,14 @@ function Jt(t, e) {
|
|
|
2077
2093
|
return n + re.call(t, "," + n) + `
|
|
2078
2094
|
` + e.prev;
|
|
2079
2095
|
}
|
|
2080
|
-
function
|
|
2081
|
-
var n =
|
|
2096
|
+
function ke(t, e) {
|
|
2097
|
+
var n = Jt(t), r = [];
|
|
2082
2098
|
if (n) {
|
|
2083
2099
|
r.length = t.length;
|
|
2084
2100
|
for (var o = 0; o < t.length; o++)
|
|
2085
2101
|
r[o] = ne(t, o) ? e(t[o], t) : "";
|
|
2086
2102
|
}
|
|
2087
|
-
var a = typeof
|
|
2103
|
+
var a = typeof bt == "function" ? bt(t) : [], i;
|
|
2088
2104
|
if (ve) {
|
|
2089
2105
|
i = {};
|
|
2090
2106
|
for (var s = 0; s < a.length; s++)
|
|
@@ -2092,23 +2108,23 @@ function Be(t, e) {
|
|
|
2092
2108
|
}
|
|
2093
2109
|
for (var u in t)
|
|
2094
2110
|
ne(t, u) && (n && String(Number(u)) === u && u < t.length || ve && i["$" + u] instanceof Symbol || (xn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2095
|
-
if (typeof
|
|
2111
|
+
if (typeof bt == "function")
|
|
2096
2112
|
for (var l = 0; l < a.length; l++)
|
|
2097
2113
|
Tn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2098
2114
|
return r;
|
|
2099
2115
|
}
|
|
2100
|
-
var xi =
|
|
2116
|
+
var xi = ct, Ti = Ee, ut = function(t, e, n) {
|
|
2101
2117
|
for (var r = t, o; (o = r.next) != null; r = o)
|
|
2102
2118
|
if (o.key === e)
|
|
2103
2119
|
return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2104
2120
|
t.next, t.next = o), o;
|
|
2105
2121
|
}, Ci = function(t, e) {
|
|
2106
2122
|
if (t) {
|
|
2107
|
-
var n =
|
|
2123
|
+
var n = ut(t, e);
|
|
2108
2124
|
return n && n.value;
|
|
2109
2125
|
}
|
|
2110
|
-
},
|
|
2111
|
-
var r =
|
|
2126
|
+
}, $i = function(t, e, n) {
|
|
2127
|
+
var r = ut(t, e);
|
|
2112
2128
|
r ? r.value = n : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2113
2129
|
{
|
|
2114
2130
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2116,11 +2132,11 @@ var xi = st, Ti = Ee, lt = function(t, e, n) {
|
|
|
2116
2132
|
next: t.next,
|
|
2117
2133
|
value: n
|
|
2118
2134
|
};
|
|
2119
|
-
},
|
|
2120
|
-
return t ? !!
|
|
2135
|
+
}, _i = function(t, e) {
|
|
2136
|
+
return t ? !!ut(t, e) : !1;
|
|
2121
2137
|
}, Ni = function(t, e) {
|
|
2122
2138
|
if (t)
|
|
2123
|
-
return
|
|
2139
|
+
return ut(t, e, !0);
|
|
2124
2140
|
}, Fi = function() {
|
|
2125
2141
|
var e, n = {
|
|
2126
2142
|
assert: function(r) {
|
|
@@ -2135,12 +2151,12 @@ var xi = st, Ti = Ee, lt = function(t, e, n) {
|
|
|
2135
2151
|
return Ci(e, r);
|
|
2136
2152
|
},
|
|
2137
2153
|
has: function(r) {
|
|
2138
|
-
return
|
|
2154
|
+
return _i(e, r);
|
|
2139
2155
|
},
|
|
2140
2156
|
set: function(r, o) {
|
|
2141
2157
|
e || (e = {
|
|
2142
2158
|
next: void 0
|
|
2143
|
-
}),
|
|
2159
|
+
}), $i(
|
|
2144
2160
|
/** @type {NonNullable<typeof $o>} */
|
|
2145
2161
|
e,
|
|
2146
2162
|
r,
|
|
@@ -2149,27 +2165,27 @@ var xi = st, Ti = Ee, lt = function(t, e, n) {
|
|
|
2149
2165
|
}
|
|
2150
2166
|
};
|
|
2151
2167
|
return n;
|
|
2152
|
-
}, Dn = Object, Di = Error, Ii = EvalError, Li = RangeError,
|
|
2168
|
+
}, Dn = Object, Di = Error, Ii = EvalError, Li = RangeError, Ui = ReferenceError, Mi = SyntaxError, Bi = URIError, ki = Math.abs, ji = Math.floor, qi = Math.max, Hi = Math.min, zi = Math.pow, Wi = Math.round, Ki = Number.isNaN || function(e) {
|
|
2153
2169
|
return e !== e;
|
|
2154
|
-
},
|
|
2155
|
-
return
|
|
2156
|
-
}, Vi = Object.getOwnPropertyDescriptor,
|
|
2157
|
-
if (
|
|
2170
|
+
}, Gi = Ki, Ji = function(e) {
|
|
2171
|
+
return Gi(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2172
|
+
}, Vi = Object.getOwnPropertyDescriptor, Ke = Vi;
|
|
2173
|
+
if (Ke)
|
|
2158
2174
|
try {
|
|
2159
|
-
|
|
2175
|
+
Ke([], "length");
|
|
2160
2176
|
} catch {
|
|
2161
|
-
|
|
2177
|
+
Ke = null;
|
|
2162
2178
|
}
|
|
2163
|
-
var In =
|
|
2164
|
-
if (
|
|
2179
|
+
var In = Ke, Ge = Object.defineProperty || !1;
|
|
2180
|
+
if (Ge)
|
|
2165
2181
|
try {
|
|
2166
|
-
|
|
2182
|
+
Ge({}, "a", { value: 1 });
|
|
2167
2183
|
} catch {
|
|
2168
|
-
|
|
2184
|
+
Ge = !1;
|
|
2169
2185
|
}
|
|
2170
|
-
var Qi =
|
|
2186
|
+
var Qi = Ge, Et, Mr;
|
|
2171
2187
|
function Xi() {
|
|
2172
|
-
return
|
|
2188
|
+
return Mr || (Mr = 1, Et = function() {
|
|
2173
2189
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2174
2190
|
return !1;
|
|
2175
2191
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2195,32 +2211,32 @@ function Xi() {
|
|
|
2195
2211
|
return !1;
|
|
2196
2212
|
}
|
|
2197
2213
|
return !0;
|
|
2198
|
-
}),
|
|
2214
|
+
}), Et;
|
|
2199
2215
|
}
|
|
2200
|
-
var
|
|
2216
|
+
var At, Br;
|
|
2201
2217
|
function Yi() {
|
|
2202
|
-
if (
|
|
2203
|
-
|
|
2218
|
+
if (Br) return At;
|
|
2219
|
+
Br = 1;
|
|
2204
2220
|
var t = typeof Symbol < "u" && Symbol, e = Xi();
|
|
2205
|
-
return
|
|
2221
|
+
return At = function() {
|
|
2206
2222
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2207
|
-
},
|
|
2223
|
+
}, At;
|
|
2208
2224
|
}
|
|
2209
|
-
var
|
|
2225
|
+
var Ot, kr;
|
|
2210
2226
|
function Ln() {
|
|
2211
|
-
return kr || (kr = 1,
|
|
2212
|
-
}
|
|
2213
|
-
var Ot, qr;
|
|
2214
|
-
function Mn() {
|
|
2215
|
-
if (qr) return Ot;
|
|
2216
|
-
qr = 1;
|
|
2217
|
-
var t = Dn;
|
|
2218
|
-
return Ot = t.getPrototypeOf || null, Ot;
|
|
2227
|
+
return kr || (kr = 1, Ot = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ot;
|
|
2219
2228
|
}
|
|
2220
2229
|
var Rt, jr;
|
|
2221
|
-
function
|
|
2230
|
+
function Un() {
|
|
2222
2231
|
if (jr) return Rt;
|
|
2223
2232
|
jr = 1;
|
|
2233
|
+
var t = Dn;
|
|
2234
|
+
return Rt = t.getPrototypeOf || null, Rt;
|
|
2235
|
+
}
|
|
2236
|
+
var Pt, qr;
|
|
2237
|
+
function Zi() {
|
|
2238
|
+
if (qr) return Pt;
|
|
2239
|
+
qr = 1;
|
|
2224
2240
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, l) {
|
|
2225
2241
|
for (var c = [], p = 0; p < u.length; p += 1)
|
|
2226
2242
|
c[p] = u[p];
|
|
@@ -2236,7 +2252,7 @@ function Zi() {
|
|
|
2236
2252
|
l += s[c], c + 1 < s.length && (l += u);
|
|
2237
2253
|
return l;
|
|
2238
2254
|
};
|
|
2239
|
-
return
|
|
2255
|
+
return Pt = function(u) {
|
|
2240
2256
|
var l = this;
|
|
2241
2257
|
if (typeof l != "function" || e.apply(l) !== r)
|
|
2242
2258
|
throw new TypeError(t + l);
|
|
@@ -2260,32 +2276,32 @@ function Zi() {
|
|
|
2260
2276
|
h.prototype = l.prototype, p.prototype = new h(), h.prototype = null;
|
|
2261
2277
|
}
|
|
2262
2278
|
return p;
|
|
2263
|
-
},
|
|
2279
|
+
}, Pt;
|
|
2264
2280
|
}
|
|
2265
|
-
var
|
|
2266
|
-
function
|
|
2267
|
-
if (Hr) return
|
|
2281
|
+
var xt, Hr;
|
|
2282
|
+
function ft() {
|
|
2283
|
+
if (Hr) return xt;
|
|
2268
2284
|
Hr = 1;
|
|
2269
2285
|
var t = Zi();
|
|
2270
|
-
return
|
|
2286
|
+
return xt = Function.prototype.bind || t, xt;
|
|
2271
2287
|
}
|
|
2272
|
-
var
|
|
2273
|
-
function
|
|
2274
|
-
return zr || (zr = 1,
|
|
2288
|
+
var Tt, zr;
|
|
2289
|
+
function or() {
|
|
2290
|
+
return zr || (zr = 1, Tt = Function.prototype.call), Tt;
|
|
2275
2291
|
}
|
|
2276
|
-
var
|
|
2277
|
-
function
|
|
2278
|
-
return Wr || (Wr = 1,
|
|
2292
|
+
var Ct, Wr;
|
|
2293
|
+
function Mn() {
|
|
2294
|
+
return Wr || (Wr = 1, Ct = Function.prototype.apply), Ct;
|
|
2279
2295
|
}
|
|
2280
|
-
var es = typeof Reflect < "u" && Reflect && Reflect.apply, ts =
|
|
2296
|
+
var es = typeof Reflect < "u" && Reflect && Reflect.apply, ts = ft(), rs = Mn(), ns = or(), os = es, as = os || ts.call(ns, rs), is = ft(), ss = Ee, ls = or(), cs = as, Bn = function(e) {
|
|
2281
2297
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2282
2298
|
throw new ss("a function is required");
|
|
2283
2299
|
return cs(is, ls, e);
|
|
2284
|
-
},
|
|
2300
|
+
}, $t, Kr;
|
|
2285
2301
|
function us() {
|
|
2286
|
-
if (
|
|
2287
|
-
|
|
2288
|
-
var t =
|
|
2302
|
+
if (Kr) return $t;
|
|
2303
|
+
Kr = 1;
|
|
2304
|
+
var t = Bn, e = In, n;
|
|
2289
2305
|
try {
|
|
2290
2306
|
n = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2291
2307
|
[].__proto__ === Array.prototype;
|
|
@@ -2298,18 +2314,18 @@ function us() {
|
|
|
2298
2314
|
/** @type {keyof typeof Object.prototype} */
|
|
2299
2315
|
"__proto__"
|
|
2300
2316
|
), o = Object, a = o.getPrototypeOf;
|
|
2301
|
-
return
|
|
2317
|
+
return $t = r && typeof r.get == "function" ? t([r.get]) : typeof a == "function" ? (
|
|
2302
2318
|
/** @type {import('./get')} */
|
|
2303
2319
|
function(s) {
|
|
2304
2320
|
return a(s == null ? s : o(s));
|
|
2305
2321
|
}
|
|
2306
|
-
) : !1,
|
|
2322
|
+
) : !1, $t;
|
|
2307
2323
|
}
|
|
2308
|
-
var _t,
|
|
2324
|
+
var _t, Gr;
|
|
2309
2325
|
function fs() {
|
|
2310
|
-
if (
|
|
2311
|
-
|
|
2312
|
-
var t = Ln(), e =
|
|
2326
|
+
if (Gr) return _t;
|
|
2327
|
+
Gr = 1;
|
|
2328
|
+
var t = Ln(), e = Un(), n = us();
|
|
2313
2329
|
return _t = t ? function(o) {
|
|
2314
2330
|
return t(o);
|
|
2315
2331
|
} : e ? function(o) {
|
|
@@ -2320,47 +2336,47 @@ function fs() {
|
|
|
2320
2336
|
return n(o);
|
|
2321
2337
|
} : null, _t;
|
|
2322
2338
|
}
|
|
2323
|
-
var
|
|
2339
|
+
var Nt, Jr;
|
|
2324
2340
|
function ps() {
|
|
2325
|
-
if (Jr) return
|
|
2341
|
+
if (Jr) return Nt;
|
|
2326
2342
|
Jr = 1;
|
|
2327
|
-
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n =
|
|
2328
|
-
return
|
|
2343
|
+
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = ft();
|
|
2344
|
+
return Nt = n.call(t, e), Nt;
|
|
2329
2345
|
}
|
|
2330
|
-
var
|
|
2346
|
+
var A, ds = Dn, ys = Di, hs = Ii, ms = Li, gs = Ui, we = Mi, ge = Ee, vs = Bi, ws = ki, bs = ji, Ss = qi, Es = Hi, As = zi, Os = Wi, Rs = Ji, kn = Function, Ft = function(t) {
|
|
2331
2347
|
try {
|
|
2332
2348
|
return kn('"use strict"; return (' + t + ").constructor;")();
|
|
2333
2349
|
} catch {
|
|
2334
2350
|
}
|
|
2335
|
-
},
|
|
2351
|
+
}, $e = In, Ps = Qi, Dt = function() {
|
|
2336
2352
|
throw new ge();
|
|
2337
|
-
}, xs =
|
|
2353
|
+
}, xs = $e ? function() {
|
|
2338
2354
|
try {
|
|
2339
|
-
return arguments.callee,
|
|
2355
|
+
return arguments.callee, Dt;
|
|
2340
2356
|
} catch {
|
|
2341
2357
|
try {
|
|
2342
|
-
return
|
|
2358
|
+
return $e(arguments, "callee").get;
|
|
2343
2359
|
} catch {
|
|
2344
|
-
return
|
|
2360
|
+
return Dt;
|
|
2345
2361
|
}
|
|
2346
2362
|
}
|
|
2347
|
-
}() :
|
|
2363
|
+
}() : Dt, ye = Yi()(), I = fs(), Ts = Un(), Cs = Ln(), jn = Mn(), Ie = or(), me = {}, $s = typeof Uint8Array > "u" || !I ? A : I(Uint8Array), ue = {
|
|
2348
2364
|
__proto__: null,
|
|
2349
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2365
|
+
"%AggregateError%": typeof AggregateError > "u" ? A : AggregateError,
|
|
2350
2366
|
"%Array%": Array,
|
|
2351
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2352
|
-
"%ArrayIteratorPrototype%": ye && I ? I([][Symbol.iterator]()) :
|
|
2353
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2367
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? A : ArrayBuffer,
|
|
2368
|
+
"%ArrayIteratorPrototype%": ye && I ? I([][Symbol.iterator]()) : A,
|
|
2369
|
+
"%AsyncFromSyncIteratorPrototype%": A,
|
|
2354
2370
|
"%AsyncFunction%": me,
|
|
2355
2371
|
"%AsyncGenerator%": me,
|
|
2356
2372
|
"%AsyncGeneratorFunction%": me,
|
|
2357
2373
|
"%AsyncIteratorPrototype%": me,
|
|
2358
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2359
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2360
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2361
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2374
|
+
"%Atomics%": typeof Atomics > "u" ? A : Atomics,
|
|
2375
|
+
"%BigInt%": typeof BigInt > "u" ? A : BigInt,
|
|
2376
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? A : BigInt64Array,
|
|
2377
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? A : BigUint64Array,
|
|
2362
2378
|
"%Boolean%": Boolean,
|
|
2363
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2379
|
+
"%DataView%": typeof DataView > "u" ? A : DataView,
|
|
2364
2380
|
"%Date%": Date,
|
|
2365
2381
|
"%decodeURI%": decodeURI,
|
|
2366
2382
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2370,53 +2386,53 @@ var O, ds = Dn, ys = Di, hs = Ii, ms = Li, gs = Mi, we = Bi, ge = Ee, vs = Ui, w
|
|
|
2370
2386
|
"%eval%": eval,
|
|
2371
2387
|
// eslint-disable-line no-eval
|
|
2372
2388
|
"%EvalError%": hs,
|
|
2373
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2374
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2375
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2376
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2389
|
+
"%Float16Array%": typeof Float16Array > "u" ? A : Float16Array,
|
|
2390
|
+
"%Float32Array%": typeof Float32Array > "u" ? A : Float32Array,
|
|
2391
|
+
"%Float64Array%": typeof Float64Array > "u" ? A : Float64Array,
|
|
2392
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? A : FinalizationRegistry,
|
|
2377
2393
|
"%Function%": kn,
|
|
2378
2394
|
"%GeneratorFunction%": me,
|
|
2379
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2380
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2381
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2395
|
+
"%Int8Array%": typeof Int8Array > "u" ? A : Int8Array,
|
|
2396
|
+
"%Int16Array%": typeof Int16Array > "u" ? A : Int16Array,
|
|
2397
|
+
"%Int32Array%": typeof Int32Array > "u" ? A : Int32Array,
|
|
2382
2398
|
"%isFinite%": isFinite,
|
|
2383
2399
|
"%isNaN%": isNaN,
|
|
2384
|
-
"%IteratorPrototype%": ye && I ? I(I([][Symbol.iterator]())) :
|
|
2385
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2386
|
-
"%Map%": typeof Map > "u" ?
|
|
2387
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ye || !I ?
|
|
2400
|
+
"%IteratorPrototype%": ye && I ? I(I([][Symbol.iterator]())) : A,
|
|
2401
|
+
"%JSON%": typeof JSON == "object" ? JSON : A,
|
|
2402
|
+
"%Map%": typeof Map > "u" ? A : Map,
|
|
2403
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ye || !I ? A : I((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2388
2404
|
"%Math%": Math,
|
|
2389
2405
|
"%Number%": Number,
|
|
2390
2406
|
"%Object%": ds,
|
|
2391
|
-
"%Object.getOwnPropertyDescriptor%":
|
|
2407
|
+
"%Object.getOwnPropertyDescriptor%": $e,
|
|
2392
2408
|
"%parseFloat%": parseFloat,
|
|
2393
2409
|
"%parseInt%": parseInt,
|
|
2394
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2395
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2410
|
+
"%Promise%": typeof Promise > "u" ? A : Promise,
|
|
2411
|
+
"%Proxy%": typeof Proxy > "u" ? A : Proxy,
|
|
2396
2412
|
"%RangeError%": ms,
|
|
2397
2413
|
"%ReferenceError%": gs,
|
|
2398
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2414
|
+
"%Reflect%": typeof Reflect > "u" ? A : Reflect,
|
|
2399
2415
|
"%RegExp%": RegExp,
|
|
2400
|
-
"%Set%": typeof Set > "u" ?
|
|
2401
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ye || !I ?
|
|
2402
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2416
|
+
"%Set%": typeof Set > "u" ? A : Set,
|
|
2417
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ye || !I ? A : I((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2418
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? A : SharedArrayBuffer,
|
|
2403
2419
|
"%String%": String,
|
|
2404
|
-
"%StringIteratorPrototype%": ye && I ? I(""[Symbol.iterator]()) :
|
|
2405
|
-
"%Symbol%": ye ? Symbol :
|
|
2420
|
+
"%StringIteratorPrototype%": ye && I ? I(""[Symbol.iterator]()) : A,
|
|
2421
|
+
"%Symbol%": ye ? Symbol : A,
|
|
2406
2422
|
"%SyntaxError%": we,
|
|
2407
2423
|
"%ThrowTypeError%": xs,
|
|
2408
|
-
"%TypedArray%":
|
|
2424
|
+
"%TypedArray%": $s,
|
|
2409
2425
|
"%TypeError%": ge,
|
|
2410
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2411
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2412
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2413
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2426
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? A : Uint8Array,
|
|
2427
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? A : Uint8ClampedArray,
|
|
2428
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? A : Uint16Array,
|
|
2429
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? A : Uint32Array,
|
|
2414
2430
|
"%URIError%": vs,
|
|
2415
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2416
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2417
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2418
|
-
"%Function.prototype.call%":
|
|
2419
|
-
"%Function.prototype.apply%":
|
|
2431
|
+
"%WeakMap%": typeof WeakMap > "u" ? A : WeakMap,
|
|
2432
|
+
"%WeakRef%": typeof WeakRef > "u" ? A : WeakRef,
|
|
2433
|
+
"%WeakSet%": typeof WeakSet > "u" ? A : WeakSet,
|
|
2434
|
+
"%Function.prototype.call%": Ie,
|
|
2435
|
+
"%Function.prototype.apply%": jn,
|
|
2420
2436
|
"%Object.defineProperty%": Ps,
|
|
2421
2437
|
"%Object.getPrototypeOf%": Ts,
|
|
2422
2438
|
"%Math.abs%": ws,
|
|
@@ -2432,17 +2448,17 @@ if (I)
|
|
|
2432
2448
|
try {
|
|
2433
2449
|
null.error;
|
|
2434
2450
|
} catch (t) {
|
|
2435
|
-
var
|
|
2436
|
-
ue["%Error.prototype%"] =
|
|
2451
|
+
var _s = I(I(t));
|
|
2452
|
+
ue["%Error.prototype%"] = _s;
|
|
2437
2453
|
}
|
|
2438
2454
|
var Ns = function t(e) {
|
|
2439
2455
|
var n;
|
|
2440
2456
|
if (e === "%AsyncFunction%")
|
|
2441
|
-
n =
|
|
2457
|
+
n = Ft("async function () {}");
|
|
2442
2458
|
else if (e === "%GeneratorFunction%")
|
|
2443
|
-
n =
|
|
2459
|
+
n = Ft("function* () {}");
|
|
2444
2460
|
else if (e === "%AsyncGeneratorFunction%")
|
|
2445
|
-
n =
|
|
2461
|
+
n = Ft("async function* () {}");
|
|
2446
2462
|
else if (e === "%AsyncGenerator%") {
|
|
2447
2463
|
var r = t("%AsyncGeneratorFunction%");
|
|
2448
2464
|
r && (n = r.prototype);
|
|
@@ -2504,19 +2520,19 @@ var Ns = function t(e) {
|
|
|
2504
2520
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2505
2521
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2506
2522
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2507
|
-
},
|
|
2508
|
-
var n =
|
|
2523
|
+
}, Le = ft(), et = ps(), Fs = Le.call(Ie, Array.prototype.concat), Ds = Le.call(jn, Array.prototype.splice), Qr = Le.call(Ie, String.prototype.replace), tt = Le.call(Ie, String.prototype.slice), Is = Le.call(Ie, RegExp.prototype.exec), Ls = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Us = /\\(\\)?/g, Ms = function(e) {
|
|
2524
|
+
var n = tt(e, 0, 1), r = tt(e, -1);
|
|
2509
2525
|
if (n === "%" && r !== "%")
|
|
2510
2526
|
throw new we("invalid intrinsic syntax, expected closing `%`");
|
|
2511
2527
|
if (r === "%" && n !== "%")
|
|
2512
2528
|
throw new we("invalid intrinsic syntax, expected opening `%`");
|
|
2513
2529
|
var o = [];
|
|
2514
2530
|
return Qr(e, Ls, function(a, i, s, u) {
|
|
2515
|
-
o[o.length] = s ? Qr(u,
|
|
2531
|
+
o[o.length] = s ? Qr(u, Us, "$1") : i || a;
|
|
2516
2532
|
}), o;
|
|
2517
|
-
},
|
|
2533
|
+
}, Bs = function(e, n) {
|
|
2518
2534
|
var r = e, o;
|
|
2519
|
-
if (
|
|
2535
|
+
if (et(Vr, r) && (o = Vr[r], r = "%" + o[0] + "%"), et(ue, r)) {
|
|
2520
2536
|
var a = ue[r];
|
|
2521
2537
|
if (a === me && (a = Ns(r)), typeof a > "u" && !n)
|
|
2522
2538
|
throw new ge("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -2527,20 +2543,20 @@ var Ns = function t(e) {
|
|
|
2527
2543
|
};
|
|
2528
2544
|
}
|
|
2529
2545
|
throw new we("intrinsic " + e + " does not exist!");
|
|
2530
|
-
},
|
|
2546
|
+
}, ar = function(e, n) {
|
|
2531
2547
|
if (typeof e != "string" || e.length === 0)
|
|
2532
2548
|
throw new ge("intrinsic name must be a non-empty string");
|
|
2533
2549
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
2534
2550
|
throw new ge('"allowMissing" argument must be a boolean');
|
|
2535
2551
|
if (Is(/^%?[^%]*%?$/, e) === null)
|
|
2536
2552
|
throw new we("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2537
|
-
var r =
|
|
2553
|
+
var r = Ms(e), o = r.length > 0 ? r[0] : "", a = Bs("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2538
2554
|
l && (o = l[0], Ds(r, Fs([0, 1], l)));
|
|
2539
2555
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2540
|
-
var d = r[c], g =
|
|
2556
|
+
var d = r[c], g = tt(d, 0, 1), y = tt(d, -1);
|
|
2541
2557
|
if ((g === '"' || g === "'" || g === "`" || y === '"' || y === "'" || y === "`") && g !== y)
|
|
2542
2558
|
throw new we("property names with quotes must have matching quotes");
|
|
2543
|
-
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%",
|
|
2559
|
+
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", et(ue, i))
|
|
2544
2560
|
s = ue[i];
|
|
2545
2561
|
else if (s != null) {
|
|
2546
2562
|
if (!(d in s)) {
|
|
@@ -2548,31 +2564,34 @@ var Ns = function t(e) {
|
|
|
2548
2564
|
throw new ge("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2549
2565
|
return;
|
|
2550
2566
|
}
|
|
2551
|
-
if (
|
|
2552
|
-
var m =
|
|
2567
|
+
if ($e && c + 1 >= r.length) {
|
|
2568
|
+
var m = $e(s, d);
|
|
2553
2569
|
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2554
2570
|
} else
|
|
2555
|
-
p =
|
|
2571
|
+
p = et(s, d), s = s[d];
|
|
2556
2572
|
p && !u && (ue[i] = s);
|
|
2557
2573
|
}
|
|
2558
2574
|
}
|
|
2559
2575
|
return s;
|
|
2560
|
-
},
|
|
2576
|
+
}, qn = ar, Hn = Bn, ks = Hn([qn("%String.prototype.indexOf%")]), zn = function(e, n) {
|
|
2561
2577
|
var r = (
|
|
2562
|
-
/** @type {
|
|
2563
|
-
|
|
2578
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2579
|
+
qn(e, !!n)
|
|
2564
2580
|
);
|
|
2565
|
-
return typeof r == "function" && ks(e, ".prototype.") > -1 ? Hn(
|
|
2566
|
-
|
|
2581
|
+
return typeof r == "function" && ks(e, ".prototype.") > -1 ? Hn(
|
|
2582
|
+
/** @type {const} */
|
|
2583
|
+
[r]
|
|
2584
|
+
) : r;
|
|
2585
|
+
}, js = ar, Ue = zn, qs = ct, Hs = Ee, Xr = js("%Map%", !0), zs = Ue("Map.prototype.get", !0), Ws = Ue("Map.prototype.set", !0), Ks = Ue("Map.prototype.has", !0), Gs = Ue("Map.prototype.delete", !0), Js = Ue("Map.prototype.size", !0), Wn = !!Xr && /** @type {Exclude<import('.'), false>} */
|
|
2567
2586
|
function() {
|
|
2568
2587
|
var e, n = {
|
|
2569
2588
|
assert: function(r) {
|
|
2570
2589
|
if (!n.has(r))
|
|
2571
|
-
throw new Hs("Side channel does not contain " +
|
|
2590
|
+
throw new Hs("Side channel does not contain " + qs(r));
|
|
2572
2591
|
},
|
|
2573
2592
|
delete: function(r) {
|
|
2574
2593
|
if (e) {
|
|
2575
|
-
var o =
|
|
2594
|
+
var o = Gs(e, r);
|
|
2576
2595
|
return Js(e) === 0 && (e = void 0), o;
|
|
2577
2596
|
}
|
|
2578
2597
|
return !1;
|
|
@@ -2582,14 +2601,14 @@ function() {
|
|
|
2582
2601
|
return zs(e, r);
|
|
2583
2602
|
},
|
|
2584
2603
|
has: function(r) {
|
|
2585
|
-
return e ?
|
|
2604
|
+
return e ? Ks(e, r) : !1;
|
|
2586
2605
|
},
|
|
2587
2606
|
set: function(r, o) {
|
|
2588
2607
|
e || (e = new Xr()), Ws(e, r, o);
|
|
2589
2608
|
}
|
|
2590
2609
|
};
|
|
2591
2610
|
return n;
|
|
2592
|
-
}, Vs =
|
|
2611
|
+
}, Vs = ar, pt = zn, Qs = ct, je = Wn, Xs = Ee, he = Vs("%WeakMap%", !0), Ys = pt("WeakMap.prototype.get", !0), Zs = pt("WeakMap.prototype.set", !0), el = pt("WeakMap.prototype.has", !0), tl = pt("WeakMap.prototype.delete", !0), rl = he ? (
|
|
2593
2612
|
/** @type {Exclude<import('.'), false>} */
|
|
2594
2613
|
function() {
|
|
2595
2614
|
var e, n, r = {
|
|
@@ -2601,7 +2620,7 @@ function() {
|
|
|
2601
2620
|
if (he && o && (typeof o == "object" || typeof o == "function")) {
|
|
2602
2621
|
if (e)
|
|
2603
2622
|
return tl(e, o);
|
|
2604
|
-
} else if (
|
|
2623
|
+
} else if (je && n)
|
|
2605
2624
|
return n.delete(o);
|
|
2606
2625
|
return !1;
|
|
2607
2626
|
},
|
|
@@ -2612,12 +2631,12 @@ function() {
|
|
|
2612
2631
|
return he && o && (typeof o == "object" || typeof o == "function") && e ? el(e, o) : !!n && n.has(o);
|
|
2613
2632
|
},
|
|
2614
2633
|
set: function(o, a) {
|
|
2615
|
-
he && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new he()), Zs(e, o, a)) :
|
|
2634
|
+
he && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new he()), Zs(e, o, a)) : je && (n || (n = je()), n.set(o, a));
|
|
2616
2635
|
}
|
|
2617
2636
|
};
|
|
2618
2637
|
return r;
|
|
2619
2638
|
}
|
|
2620
|
-
) :
|
|
2639
|
+
) : je, nl = Ee, ol = ct, al = Fi, il = Wn, sl = rl, ll = sl || il || al, cl = function() {
|
|
2621
2640
|
var e, n = {
|
|
2622
2641
|
assert: function(r) {
|
|
2623
2642
|
if (!n.has(r))
|
|
@@ -2637,11 +2656,11 @@ function() {
|
|
|
2637
2656
|
}
|
|
2638
2657
|
};
|
|
2639
2658
|
return n;
|
|
2640
|
-
}, ul = String.prototype.replace, fl = /%20/g,
|
|
2659
|
+
}, ul = String.prototype.replace, fl = /%20/g, It = {
|
|
2641
2660
|
RFC1738: "RFC1738",
|
|
2642
2661
|
RFC3986: "RFC3986"
|
|
2643
|
-
},
|
|
2644
|
-
default:
|
|
2662
|
+
}, ir = {
|
|
2663
|
+
default: It.RFC3986,
|
|
2645
2664
|
formatters: {
|
|
2646
2665
|
RFC1738: function(t) {
|
|
2647
2666
|
return ul.call(t, fl, "+");
|
|
@@ -2650,9 +2669,9 @@ function() {
|
|
|
2650
2669
|
return String(t);
|
|
2651
2670
|
}
|
|
2652
2671
|
},
|
|
2653
|
-
RFC1738:
|
|
2654
|
-
RFC3986:
|
|
2655
|
-
}, pl =
|
|
2672
|
+
RFC1738: It.RFC1738,
|
|
2673
|
+
RFC3986: It.RFC3986
|
|
2674
|
+
}, pl = ir, Lt = Object.prototype.hasOwnProperty, se = Array.isArray, ee = function() {
|
|
2656
2675
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2657
2676
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2658
2677
|
return t;
|
|
@@ -2665,7 +2684,7 @@ function() {
|
|
|
2665
2684
|
n.obj[n.prop] = o;
|
|
2666
2685
|
}
|
|
2667
2686
|
}
|
|
2668
|
-
},
|
|
2687
|
+
}, Kn = function(e, n) {
|
|
2669
2688
|
for (var r = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
2670
2689
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2671
2690
|
return r;
|
|
@@ -2676,7 +2695,7 @@ function() {
|
|
|
2676
2695
|
if (se(e))
|
|
2677
2696
|
e.push(n);
|
|
2678
2697
|
else if (e && typeof e == "object")
|
|
2679
|
-
(r && (r.plainObjects || r.allowPrototypes) || !
|
|
2698
|
+
(r && (r.plainObjects || r.allowPrototypes) || !Lt.call(Object.prototype, n)) && (e[n] = !0);
|
|
2680
2699
|
else
|
|
2681
2700
|
return [e, n];
|
|
2682
2701
|
return e;
|
|
@@ -2684,15 +2703,15 @@ function() {
|
|
|
2684
2703
|
if (!e || typeof e != "object")
|
|
2685
2704
|
return [e].concat(n);
|
|
2686
2705
|
var o = e;
|
|
2687
|
-
return se(e) && !se(n) && (o =
|
|
2688
|
-
if (
|
|
2706
|
+
return se(e) && !se(n) && (o = Kn(e, r)), se(e) && se(n) ? (n.forEach(function(a, i) {
|
|
2707
|
+
if (Lt.call(e, i)) {
|
|
2689
2708
|
var s = e[i];
|
|
2690
2709
|
s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
|
|
2691
2710
|
} else
|
|
2692
2711
|
e[i] = a;
|
|
2693
2712
|
}), e) : Object.keys(n).reduce(function(a, i) {
|
|
2694
2713
|
var s = n[i];
|
|
2695
|
-
return
|
|
2714
|
+
return Lt.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2696
2715
|
}, o);
|
|
2697
2716
|
}, hl = function(e, n) {
|
|
2698
2717
|
return Object.keys(n).reduce(function(r, o) {
|
|
@@ -2707,7 +2726,7 @@ function() {
|
|
|
2707
2726
|
} catch {
|
|
2708
2727
|
return r;
|
|
2709
2728
|
}
|
|
2710
|
-
},
|
|
2729
|
+
}, Ut = 1024, gl = function(e, n, r, o, a) {
|
|
2711
2730
|
if (e.length === 0)
|
|
2712
2731
|
return e;
|
|
2713
2732
|
var i = e;
|
|
@@ -2715,8 +2734,8 @@ function() {
|
|
|
2715
2734
|
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(g) {
|
|
2716
2735
|
return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
|
|
2717
2736
|
});
|
|
2718
|
-
for (var s = "", u = 0; u < i.length; u +=
|
|
2719
|
-
for (var l = i.length >=
|
|
2737
|
+
for (var s = "", u = 0; u < i.length; u += Ut) {
|
|
2738
|
+
for (var l = i.length >= Ut ? i.slice(u, u + Ut) : i, c = [], p = 0; p < l.length; ++p) {
|
|
2720
2739
|
var d = l.charCodeAt(p);
|
|
2721
2740
|
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === pl.RFC1738 && (d === 40 || d === 41)) {
|
|
2722
2741
|
c[c.length] = l.charAt(p);
|
|
@@ -2759,8 +2778,8 @@ function() {
|
|
|
2759
2778
|
return r;
|
|
2760
2779
|
}
|
|
2761
2780
|
return n(e);
|
|
2762
|
-
},
|
|
2763
|
-
arrayToObject:
|
|
2781
|
+
}, Gn = {
|
|
2782
|
+
arrayToObject: Kn,
|
|
2764
2783
|
assign: hl,
|
|
2765
2784
|
combine: Sl,
|
|
2766
2785
|
compact: vl,
|
|
@@ -2770,7 +2789,7 @@ function() {
|
|
|
2770
2789
|
isRegExp: wl,
|
|
2771
2790
|
maybeMap: El,
|
|
2772
2791
|
merge: yl
|
|
2773
|
-
}, Jn = cl,
|
|
2792
|
+
}, Jn = cl, Je = Gn, Te = ir, Al = Object.prototype.hasOwnProperty, Vn = {
|
|
2774
2793
|
brackets: function(e) {
|
|
2775
2794
|
return e + "[]";
|
|
2776
2795
|
},
|
|
@@ -2794,7 +2813,7 @@ function() {
|
|
|
2794
2813
|
delimiter: "&",
|
|
2795
2814
|
encode: !0,
|
|
2796
2815
|
encodeDotInKeys: !1,
|
|
2797
|
-
encoder:
|
|
2816
|
+
encoder: Je.encode,
|
|
2798
2817
|
encodeValuesOnly: !1,
|
|
2799
2818
|
filter: void 0,
|
|
2800
2819
|
format: Yr,
|
|
@@ -2810,51 +2829,51 @@ function() {
|
|
|
2810
2829
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2811
2830
|
}, Mt = {}, xl = function t(e, n, r, o, a, i, s, u, l, c, p, d, g, y, m, h, E, R) {
|
|
2812
2831
|
for (var v = e, F = R, x = 0, L = !1; (F = F.get(Mt)) !== void 0 && !L; ) {
|
|
2813
|
-
var
|
|
2814
|
-
if (x += 1, typeof
|
|
2815
|
-
if (
|
|
2832
|
+
var U = F.get(e);
|
|
2833
|
+
if (x += 1, typeof U < "u") {
|
|
2834
|
+
if (U === x)
|
|
2816
2835
|
throw new RangeError("Cyclic object value");
|
|
2817
2836
|
L = !0;
|
|
2818
2837
|
}
|
|
2819
2838
|
typeof F.get(Mt) > "u" && (x = 0);
|
|
2820
2839
|
}
|
|
2821
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && te(v) && (v =
|
|
2840
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && te(v) && (v = Je.maybeMap(v, function(X) {
|
|
2822
2841
|
return X instanceof Date ? g(X) : X;
|
|
2823
2842
|
})), v === null) {
|
|
2824
2843
|
if (i)
|
|
2825
2844
|
return l && !h ? l(n, D.encoder, E, "key", y) : n;
|
|
2826
2845
|
v = "";
|
|
2827
2846
|
}
|
|
2828
|
-
if (Pl(v) ||
|
|
2847
|
+
if (Pl(v) || Je.isBuffer(v)) {
|
|
2829
2848
|
if (l) {
|
|
2830
2849
|
var z = h ? n : l(n, D.encoder, E, "key", y);
|
|
2831
2850
|
return [m(z) + "=" + m(l(v, D.encoder, E, "value", y))];
|
|
2832
2851
|
}
|
|
2833
2852
|
return [m(n) + "=" + m(String(v))];
|
|
2834
2853
|
}
|
|
2835
|
-
var
|
|
2854
|
+
var G = [];
|
|
2836
2855
|
if (typeof v > "u")
|
|
2837
|
-
return
|
|
2856
|
+
return G;
|
|
2838
2857
|
var S;
|
|
2839
2858
|
if (r === "comma" && te(v))
|
|
2840
|
-
h && l && (v =
|
|
2859
|
+
h && l && (v = Je.maybeMap(v, l)), S = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2841
2860
|
else if (te(c))
|
|
2842
2861
|
S = c;
|
|
2843
2862
|
else {
|
|
2844
|
-
var
|
|
2845
|
-
S = p ?
|
|
2863
|
+
var O = Object.keys(v);
|
|
2864
|
+
S = p ? O.sort(p) : O;
|
|
2846
2865
|
}
|
|
2847
2866
|
var T = u ? String(n).replace(/\./g, "%2E") : String(n), P = o && te(v) && v.length === 1 ? T + "[]" : T;
|
|
2848
2867
|
if (a && te(v) && v.length === 0)
|
|
2849
2868
|
return P + "[]";
|
|
2850
|
-
for (var
|
|
2851
|
-
var w = S[
|
|
2852
|
-
if (!(s &&
|
|
2853
|
-
var
|
|
2869
|
+
for (var _ = 0; _ < S.length; ++_) {
|
|
2870
|
+
var w = S[_], H = typeof w == "object" && w && typeof w.value < "u" ? w.value : v[w];
|
|
2871
|
+
if (!(s && H === null)) {
|
|
2872
|
+
var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(v) ? typeof r == "function" ? r(P, B) : P : P + (d ? "." + B : "[" + B + "]");
|
|
2854
2873
|
R.set(e, x);
|
|
2855
2874
|
var W = Jn();
|
|
2856
|
-
W.set(Mt, R), Qn(
|
|
2857
|
-
|
|
2875
|
+
W.set(Mt, R), Qn(G, t(
|
|
2876
|
+
H,
|
|
2858
2877
|
k,
|
|
2859
2878
|
r,
|
|
2860
2879
|
o,
|
|
@@ -2875,7 +2894,7 @@ function() {
|
|
|
2875
2894
|
));
|
|
2876
2895
|
}
|
|
2877
2896
|
}
|
|
2878
|
-
return
|
|
2897
|
+
return G;
|
|
2879
2898
|
}, Tl = function(e) {
|
|
2880
2899
|
if (!e)
|
|
2881
2900
|
return D;
|
|
@@ -2954,7 +2973,7 @@ function() {
|
|
|
2954
2973
|
}
|
|
2955
2974
|
var g = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2956
2975
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), g.length > 0 ? y + g : "";
|
|
2957
|
-
}, pe =
|
|
2976
|
+
}, pe = Gn, Qt = Object.prototype.hasOwnProperty, Zr = Array.isArray, $ = {
|
|
2958
2977
|
allowDots: !1,
|
|
2959
2978
|
allowEmptyArrays: !1,
|
|
2960
2979
|
allowPrototypes: !1,
|
|
@@ -2976,7 +2995,7 @@ function() {
|
|
|
2976
2995
|
strictDepth: !1,
|
|
2977
2996
|
strictNullHandling: !1,
|
|
2978
2997
|
throwOnLimitExceeded: !1
|
|
2979
|
-
},
|
|
2998
|
+
}, $l = function(t) {
|
|
2980
2999
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2981
3000
|
return String.fromCharCode(parseInt(n, 10));
|
|
2982
3001
|
});
|
|
@@ -2986,7 +3005,7 @@ function() {
|
|
|
2986
3005
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
2987
3006
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2988
3007
|
return t;
|
|
2989
|
-
},
|
|
3008
|
+
}, _l = "utf8=%26%2310003%3B", Nl = "utf8=%E2%9C%93", Fl = function(e, n) {
|
|
2990
3009
|
var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
2991
3010
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2992
3011
|
var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
|
|
@@ -2998,21 +3017,21 @@ function() {
|
|
|
2998
3017
|
var s = -1, u, l = n.charset;
|
|
2999
3018
|
if (n.charsetSentinel)
|
|
3000
3019
|
for (u = 0; u < i.length; ++u)
|
|
3001
|
-
i[u].indexOf("utf8=") === 0 && (i[u] === Nl ? l = "utf-8" : i[u] ===
|
|
3020
|
+
i[u].indexOf("utf8=") === 0 && (i[u] === Nl ? l = "utf-8" : i[u] === _l && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3002
3021
|
for (u = 0; u < i.length; ++u)
|
|
3003
3022
|
if (u !== s) {
|
|
3004
3023
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
|
|
3005
|
-
d === -1 ? (g = n.decoder(c,
|
|
3024
|
+
d === -1 ? (g = n.decoder(c, $.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (g = n.decoder(c.slice(0, d), $.decoder, l, "key"), y = pe.maybeMap(
|
|
3006
3025
|
Xn(
|
|
3007
3026
|
c.slice(d + 1),
|
|
3008
3027
|
n,
|
|
3009
3028
|
Zr(r[g]) ? r[g].length : 0
|
|
3010
3029
|
),
|
|
3011
3030
|
function(h) {
|
|
3012
|
-
return n.decoder(h,
|
|
3031
|
+
return n.decoder(h, $.decoder, l, "value");
|
|
3013
3032
|
}
|
|
3014
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y =
|
|
3015
|
-
var m =
|
|
3033
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = $l(String(y))), c.indexOf("[]=") > -1 && (y = Zr(y) ? [y] : y);
|
|
3034
|
+
var m = Qt.call(r, g);
|
|
3016
3035
|
m && n.duplicates === "combine" ? r[g] = pe.combine(r[g], y) : (!m || n.duplicates === "last") && (r[g] = y);
|
|
3017
3036
|
}
|
|
3018
3037
|
return r;
|
|
@@ -3038,12 +3057,12 @@ function() {
|
|
|
3038
3057
|
if (e) {
|
|
3039
3058
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3040
3059
|
if (l) {
|
|
3041
|
-
if (!r.plainObjects &&
|
|
3060
|
+
if (!r.plainObjects && Qt.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3042
3061
|
return;
|
|
3043
3062
|
c.push(l);
|
|
3044
3063
|
}
|
|
3045
3064
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3046
|
-
if (p += 1, !r.plainObjects &&
|
|
3065
|
+
if (p += 1, !r.plainObjects && Qt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3047
3066
|
return;
|
|
3048
3067
|
c.push(u[1]);
|
|
3049
3068
|
}
|
|
@@ -3056,7 +3075,7 @@ function() {
|
|
|
3056
3075
|
}
|
|
3057
3076
|
}, Ll = function(e) {
|
|
3058
3077
|
if (!e)
|
|
3059
|
-
return
|
|
3078
|
+
return $;
|
|
3060
3079
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
3061
3080
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3062
3081
|
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
@@ -3067,35 +3086,35 @@ function() {
|
|
|
3067
3086
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3068
3087
|
if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
|
|
3069
3088
|
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
3070
|
-
var n = typeof e.charset > "u" ?
|
|
3089
|
+
var n = typeof e.charset > "u" ? $.charset : e.charset, r = typeof e.duplicates > "u" ? $.duplicates : e.duplicates;
|
|
3071
3090
|
if (r !== "combine" && r !== "first" && r !== "last")
|
|
3072
3091
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3073
|
-
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 :
|
|
3092
|
+
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : $.allowDots : !!e.allowDots;
|
|
3074
3093
|
return {
|
|
3075
3094
|
allowDots: o,
|
|
3076
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
3077
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
3078
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
3079
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
3095
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : $.allowEmptyArrays,
|
|
3096
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : $.allowPrototypes,
|
|
3097
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : $.allowSparse,
|
|
3098
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : $.arrayLimit,
|
|
3080
3099
|
charset: n,
|
|
3081
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
3082
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
3083
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
3084
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
3085
|
-
delimiter: typeof e.delimiter == "string" || pe.isRegExp(e.delimiter) ? e.delimiter :
|
|
3100
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : $.charsetSentinel,
|
|
3101
|
+
comma: typeof e.comma == "boolean" ? e.comma : $.comma,
|
|
3102
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : $.decodeDotInKeys,
|
|
3103
|
+
decoder: typeof e.decoder == "function" ? e.decoder : $.decoder,
|
|
3104
|
+
delimiter: typeof e.delimiter == "string" || pe.isRegExp(e.delimiter) ? e.delimiter : $.delimiter,
|
|
3086
3105
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3087
|
-
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth :
|
|
3106
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : $.depth,
|
|
3088
3107
|
duplicates: r,
|
|
3089
3108
|
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
3090
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
3091
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
3109
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : $.interpretNumericEntities,
|
|
3110
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : $.parameterLimit,
|
|
3092
3111
|
parseArrays: e.parseArrays !== !1,
|
|
3093
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
3094
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth :
|
|
3095
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
3112
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : $.plainObjects,
|
|
3113
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : $.strictDepth,
|
|
3114
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : $.strictNullHandling,
|
|
3096
3115
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3097
3116
|
};
|
|
3098
|
-
},
|
|
3117
|
+
}, Ul = function(t, e) {
|
|
3099
3118
|
var n = Ll(e);
|
|
3100
3119
|
if (t === "" || t === null || typeof t > "u")
|
|
3101
3120
|
return n.plainObjects ? { __proto__: null } : {};
|
|
@@ -3104,14 +3123,14 @@ function() {
|
|
|
3104
3123
|
o = pe.merge(o, u, n);
|
|
3105
3124
|
}
|
|
3106
3125
|
return n.allowSparse === !0 ? o : pe.compact(o);
|
|
3107
|
-
},
|
|
3126
|
+
}, Ml = Cl, Bl = Ul, kl = ir, jl = {
|
|
3108
3127
|
formats: kl,
|
|
3109
|
-
parse:
|
|
3110
|
-
stringify:
|
|
3128
|
+
parse: Bl,
|
|
3129
|
+
stringify: Ml
|
|
3111
3130
|
};
|
|
3112
|
-
const
|
|
3131
|
+
const ql = /* @__PURE__ */ Ja(jl);
|
|
3113
3132
|
/*! js-cookie v3.0.5 | MIT */
|
|
3114
|
-
function
|
|
3133
|
+
function qe(t) {
|
|
3115
3134
|
for (var e = 1; e < arguments.length; e++) {
|
|
3116
3135
|
var n = arguments[e];
|
|
3117
3136
|
for (var r in n)
|
|
@@ -3130,10 +3149,10 @@ var Hl = {
|
|
|
3130
3149
|
);
|
|
3131
3150
|
}
|
|
3132
3151
|
};
|
|
3133
|
-
function
|
|
3152
|
+
function Xt(t, e) {
|
|
3134
3153
|
function n(o, a, i) {
|
|
3135
3154
|
if (!(typeof document > "u")) {
|
|
3136
|
-
i =
|
|
3155
|
+
i = qe({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3137
3156
|
var s = "";
|
|
3138
3157
|
for (var u in i)
|
|
3139
3158
|
i[u] && (s += "; " + u, i[u] !== !0 && (s += "=" + i[u].split(";")[0]));
|
|
@@ -3162,16 +3181,16 @@ function Qt(t, e) {
|
|
|
3162
3181
|
n(
|
|
3163
3182
|
o,
|
|
3164
3183
|
"",
|
|
3165
|
-
|
|
3184
|
+
qe({}, a, {
|
|
3166
3185
|
expires: -1
|
|
3167
3186
|
})
|
|
3168
3187
|
);
|
|
3169
3188
|
},
|
|
3170
3189
|
withAttributes: function(o) {
|
|
3171
|
-
return
|
|
3190
|
+
return Xt(this.converter, qe({}, this.attributes, o));
|
|
3172
3191
|
},
|
|
3173
3192
|
withConverter: function(o) {
|
|
3174
|
-
return
|
|
3193
|
+
return Xt(qe({}, this.converter, o), this.attributes);
|
|
3175
3194
|
}
|
|
3176
3195
|
},
|
|
3177
3196
|
{
|
|
@@ -3180,7 +3199,7 @@ function Qt(t, e) {
|
|
|
3180
3199
|
}
|
|
3181
3200
|
);
|
|
3182
3201
|
}
|
|
3183
|
-
var zl =
|
|
3202
|
+
var zl = Xt(Hl, { path: "/" });
|
|
3184
3203
|
const Wl = {
|
|
3185
3204
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3186
3205
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3194,13 +3213,13 @@ const Wl = {
|
|
|
3194
3213
|
}
|
|
3195
3214
|
};
|
|
3196
3215
|
oo(Wl);
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
const
|
|
3216
|
+
rt.extend(po);
|
|
3217
|
+
rt.extend(yo);
|
|
3218
|
+
const sr = Ve(), Yn = sr.sso ?? !0, Kl = sr.i18n ?? !0, Zn = sr.noRedireLogin ?? !1, eo = () => {
|
|
3200
3219
|
if (Zn) return;
|
|
3201
3220
|
const t = "/login";
|
|
3202
3221
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3203
|
-
},
|
|
3222
|
+
}, Gl = async (t) => {
|
|
3204
3223
|
var n;
|
|
3205
3224
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3206
3225
|
}, Jl = async (t, e) => {
|
|
@@ -3224,7 +3243,7 @@ const ir = Ke(), Yn = ir.sso ?? !0, Gl = ir.i18n ?? !0, Zn = ir.noRedireLogin ??
|
|
|
3224
3243
|
})), i.code) {
|
|
3225
3244
|
n = i.code;
|
|
3226
3245
|
const g = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3227
|
-
if (
|
|
3246
|
+
if (Kl && g) {
|
|
3228
3247
|
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3229
3248
|
r = !(i != null && i.data) || !i.data.length ? C(y) : C(y, ...i.data);
|
|
3230
3249
|
} else
|
|
@@ -3239,7 +3258,7 @@ const ir = Ke(), Yn = ir.sso ?? !0, Gl = ir.i18n ?? !0, Zn = ir.noRedireLogin ??
|
|
|
3239
3258
|
}, J = (t, e) => {
|
|
3240
3259
|
const n = N.create();
|
|
3241
3260
|
return io(n, async (r) => {
|
|
3242
|
-
const o =
|
|
3261
|
+
const o = Ve();
|
|
3243
3262
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3244
3263
|
let l = "";
|
|
3245
3264
|
if (o.token && (l = o.token), !l) {
|
|
@@ -3248,7 +3267,7 @@ const ir = Ke(), Yn = ir.sso ?? !0, Gl = ir.i18n ?? !0, Zn = ir.noRedireLogin ??
|
|
|
3248
3267
|
}
|
|
3249
3268
|
Yn ? l || (l = await so(r)) : (l || (l = go()), l || eo()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3250
3269
|
}
|
|
3251
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) =>
|
|
3270
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => ql.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Gl), r.onError || (r.onError = Jl), (r.csrf ?? !1) && (r.headers["csrf-token"] = zl.get("csrf-token"));
|
|
3252
3271
|
const s = r.params || {};
|
|
3253
3272
|
if (s.project === void 0) {
|
|
3254
3273
|
let l = 0;
|
|
@@ -3259,13 +3278,13 @@ const ir = Ke(), Yn = ir.sso ?? !0, Gl = ir.i18n ?? !0, Zn = ir.noRedireLogin ??
|
|
|
3259
3278
|
const { instanceInfo: l } = mo();
|
|
3260
3279
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3261
3280
|
}
|
|
3262
|
-
return r.params = s, r.headers.Timezone =
|
|
3281
|
+
return r.params = s, r.headers.Timezone = rt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = ao.value, r;
|
|
3263
3282
|
});
|
|
3264
3283
|
}, V = "v1";
|
|
3265
3284
|
J(`/api/iot/${V}`);
|
|
3266
3285
|
J(`/api/iot-device/thingmodel/${V}`), J(`/api/iot-device/devicemanage/${V}`), J(`/api/iot-device/product/${V}`), J(`/api/iot-device/product-storage/${V}`);
|
|
3267
3286
|
J(`/api/device-relation/deviceproject/${V}`), J(`/api/device-relation/devicerule/${V}`), J(`/api/device-relation/project/${V}`);
|
|
3268
|
-
const
|
|
3287
|
+
const lr = J(`/api/oss/minio/${V}`), Vl = J(`/api/progress/accessor/${V}`);
|
|
3269
3288
|
J(`/api/dms/analysis/${V}`);
|
|
3270
3289
|
let Ql = (t = 21) => {
|
|
3271
3290
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
@@ -3275,48 +3294,48 @@ let Ql = (t = 21) => {
|
|
|
3275
3294
|
}
|
|
3276
3295
|
return e;
|
|
3277
3296
|
};
|
|
3278
|
-
const Xl =
|
|
3279
|
-
let t =
|
|
3297
|
+
const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), Zl = lr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), ec = Vl.get("progress"), Nc = () => {
|
|
3298
|
+
let t = K(!1), e = K(""), n = K(0), r = K("normal"), o = K(!1), a, i = K(""), s = K(""), u = K(""), l = K(""), c = K(!1), p = K(""), d = "", g = K(""), y;
|
|
3280
3299
|
const m = () => {
|
|
3281
3300
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
3282
3301
|
}, h = async () => {
|
|
3283
|
-
const [S,
|
|
3284
|
-
return S ? { stauts: !1 } : { status: !0, data:
|
|
3285
|
-
}, E = (S) => new Promise((
|
|
3286
|
-
const
|
|
3302
|
+
const [S, O] = await Xl().run();
|
|
3303
|
+
return S ? { stauts: !1 } : { status: !0, data: O };
|
|
3304
|
+
}, E = (S) => new Promise((O, T) => {
|
|
3305
|
+
const _ = [];
|
|
3287
3306
|
let w = 0;
|
|
3288
3307
|
for (; w < S.size; ) {
|
|
3289
|
-
const
|
|
3290
|
-
|
|
3291
|
-
}
|
|
3292
|
-
const
|
|
3293
|
-
|
|
3294
|
-
}), R = async (S,
|
|
3295
|
-
var
|
|
3296
|
-
d =
|
|
3297
|
-
const
|
|
3298
|
-
if (!
|
|
3299
|
-
let
|
|
3308
|
+
const B = S.slice(w, w + 1048576);
|
|
3309
|
+
_.push(B), w += 1048576;
|
|
3310
|
+
}
|
|
3311
|
+
const H = new Blob(_, { type: S.type });
|
|
3312
|
+
O(H);
|
|
3313
|
+
}), R = async (S, O, T, P = !0, _ = "", w = !1) => {
|
|
3314
|
+
var cr, ur;
|
|
3315
|
+
d = _, g.value = "import", P && (r.value = "normal", n.value = 0, e.value = C("导入进度"), t.value = !0, i.value = ""), y = O;
|
|
3316
|
+
const H = await h();
|
|
3317
|
+
if (!H.status) return;
|
|
3318
|
+
let B = H.data, k = null, { autoContentType: W, bucketName: X, importFileName: Me } = T;
|
|
3300
3319
|
const to = w ? Zl : Yl;
|
|
3301
3320
|
if (w) {
|
|
3302
3321
|
let oe = [];
|
|
3303
|
-
await
|
|
3304
|
-
let
|
|
3305
|
-
oe.push(
|
|
3306
|
-
}), k = new FormData(), k.append("accessKeyId",
|
|
3307
|
-
k.append("file", oe[
|
|
3308
|
-
}),
|
|
3309
|
-
k.append("filePaths",
|
|
3322
|
+
await O.forEach(async (Be) => {
|
|
3323
|
+
let yt = await E(Be);
|
|
3324
|
+
oe.push(yt);
|
|
3325
|
+
}), k = new FormData(), k.append("accessKeyId", B.accessKeyId), k.append("secretAccessKey", B.secretAccessKey), k.append("sessionToken", B.sessionToken), k.append("bucketName", X), O.forEach((Be, yt) => {
|
|
3326
|
+
k.append("file", oe[yt]);
|
|
3327
|
+
}), Me.forEach((Be) => {
|
|
3328
|
+
k.append("filePaths", Be);
|
|
3310
3329
|
});
|
|
3311
3330
|
} else {
|
|
3312
|
-
const oe = await E(
|
|
3331
|
+
const oe = await E(O);
|
|
3313
3332
|
k = {
|
|
3314
|
-
accessKeyId:
|
|
3315
|
-
secretAccessKey:
|
|
3316
|
-
sessionToken:
|
|
3333
|
+
accessKeyId: B.accessKeyId,
|
|
3334
|
+
secretAccessKey: B.secretAccessKey,
|
|
3335
|
+
sessionToken: B.sessionToken,
|
|
3317
3336
|
file: oe,
|
|
3318
3337
|
bucketName: X,
|
|
3319
|
-
filePath:
|
|
3338
|
+
filePath: Me,
|
|
3320
3339
|
autoContentType: W
|
|
3321
3340
|
};
|
|
3322
3341
|
}
|
|
@@ -3324,29 +3343,29 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3324
3343
|
if (ro) return t.value = !1;
|
|
3325
3344
|
const Y = await rc(no.data);
|
|
3326
3345
|
if (!w && (Y == null ? void 0 : Y.statusCode) != 200 || w && (Y != null && Y.some((oe) => (oe == null ? void 0 : oe.statusCode) != 200))) {
|
|
3327
|
-
t.value = !1, (
|
|
3346
|
+
t.value = !1, (cr = window.DasMessage) == null || cr.error({
|
|
3328
3347
|
message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
|
|
3329
3348
|
grouping: !0,
|
|
3330
3349
|
repeatNum: 1
|
|
3331
3350
|
});
|
|
3332
3351
|
return;
|
|
3333
3352
|
}
|
|
3334
|
-
const
|
|
3353
|
+
const dt = await (S == null ? void 0 : S(Y));
|
|
3335
3354
|
if (P) {
|
|
3336
|
-
if (!
|
|
3355
|
+
if (!dt.status) {
|
|
3337
3356
|
t.value = !1, r.value = "error";
|
|
3338
3357
|
return;
|
|
3339
3358
|
}
|
|
3340
|
-
e.value = C("导入进度"), t.value = !0, x(
|
|
3359
|
+
e.value = C("导入进度"), t.value = !0, x(dt.taskId, "import", "");
|
|
3341
3360
|
} else {
|
|
3342
|
-
if (!
|
|
3343
|
-
r.value = "success", (
|
|
3361
|
+
if (!dt.status) return;
|
|
3362
|
+
r.value = "success", (ur = window.DasMessage) == null || ur.success({
|
|
3344
3363
|
message: C("导入成功"),
|
|
3345
3364
|
grouping: !0,
|
|
3346
3365
|
repeatNum: 1
|
|
3347
3366
|
});
|
|
3348
3367
|
}
|
|
3349
|
-
}, v = async (S,
|
|
3368
|
+
}, v = async (S, O = "", T = "") => {
|
|
3350
3369
|
r.value = "normal", n.value = 0, e.value = T || C("导出进度"), t.value = !0;
|
|
3351
3370
|
const P = await (S == null ? void 0 : S());
|
|
3352
3371
|
if (!P.status) {
|
|
@@ -3354,66 +3373,66 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3354
3373
|
return;
|
|
3355
3374
|
}
|
|
3356
3375
|
x(P.taskId, "action", "");
|
|
3357
|
-
}, F = async (S,
|
|
3376
|
+
}, F = async (S, O = "", T = "", P = !0) => {
|
|
3358
3377
|
g.value = "export", P && (r.value = "normal", n.value = 0, e.value = C("导出进度"), t.value = !0);
|
|
3359
|
-
const
|
|
3360
|
-
if (
|
|
3378
|
+
const _ = await (S == null ? void 0 : S());
|
|
3379
|
+
if (!_.status) {
|
|
3361
3380
|
t.value = !1, r.value = "error";
|
|
3362
3381
|
return;
|
|
3363
3382
|
}
|
|
3364
|
-
|
|
3365
|
-
}, x = async (S,
|
|
3366
|
-
o.value = !0,
|
|
3383
|
+
rt().format("YYYYMMDDHHmmss") + "", x(_.taskId, "export", O || "", T);
|
|
3384
|
+
}, x = async (S, O, T, P = "") => {
|
|
3385
|
+
o.value = !0, U(S, O, T, P), a = setTimeout(() => {
|
|
3367
3386
|
}, 50);
|
|
3368
3387
|
}, L = () => {
|
|
3369
3388
|
clearTimeout(a), a = null, t.value = !1;
|
|
3370
|
-
},
|
|
3371
|
-
var
|
|
3372
|
-
const [
|
|
3389
|
+
}, U = async (S, O = "export", T, P = "") => {
|
|
3390
|
+
var H, B, k;
|
|
3391
|
+
const [_, w] = await ec("", {
|
|
3373
3392
|
url: `progress/${S}`
|
|
3374
3393
|
}).run();
|
|
3375
|
-
if (
|
|
3394
|
+
if (_) {
|
|
3376
3395
|
o.value = !1;
|
|
3377
3396
|
return;
|
|
3378
3397
|
}
|
|
3379
3398
|
if (n.value = w.percentage, n.value == 100)
|
|
3380
|
-
if (i.value = w, o.value = !1, L(),
|
|
3399
|
+
if (i.value = w, o.value = !1, L(), O == "export")
|
|
3381
3400
|
if (w.status == 1) {
|
|
3382
3401
|
r.value = "success";
|
|
3383
|
-
let W = await
|
|
3384
|
-
const X = ((
|
|
3385
|
-
let
|
|
3386
|
-
en(`${
|
|
3387
|
-
} else w.status == 2 && (l.value = w.message || (
|
|
3402
|
+
let W = await fr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3403
|
+
const X = ((H = W == null ? void 0 : W.split("/")) == null ? void 0 : H.pop()) || "";
|
|
3404
|
+
let Me = T || X;
|
|
3405
|
+
en(`${Ve().baseURL}/oss${w.filePath}`, Me, P), o.value = !1;
|
|
3406
|
+
} else w.status == 2 && (l.value = w.message || (O == "export" ? C("导出失败") : C("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
3388
3407
|
message: l.value,
|
|
3389
3408
|
grouping: !0,
|
|
3390
3409
|
repeatNum: 1
|
|
3391
3410
|
}));
|
|
3392
|
-
else if (
|
|
3411
|
+
else if (O == "import") {
|
|
3393
3412
|
if (w.filePath) {
|
|
3394
3413
|
r.value = "error", c.value = !0;
|
|
3395
|
-
let W = await
|
|
3414
|
+
let W = await fr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3396
3415
|
const X = ((k = W == null ? void 0 : W.split("/")) == null ? void 0 : k.pop()) || "";
|
|
3397
|
-
s.value = d || X, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${
|
|
3416
|
+
s.value = d || X, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Ve().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
|
|
3398
3417
|
}
|
|
3399
|
-
z(w.status,
|
|
3400
|
-
} else
|
|
3418
|
+
z(w.status, O, w.message);
|
|
3419
|
+
} else O == "action" && (r.value = "success");
|
|
3401
3420
|
else
|
|
3402
3421
|
a && w.status != 2 ? a = setTimeout(() => {
|
|
3403
|
-
|
|
3404
|
-
}, 50) : (i.value = w, o.value = !1, z(w.status,
|
|
3405
|
-
}, z = (S,
|
|
3406
|
-
var P,
|
|
3422
|
+
U(S, O, T, P);
|
|
3423
|
+
}, 50) : (i.value = w, o.value = !1, z(w.status, O, w.message), L(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
|
|
3424
|
+
}, z = (S, O = "export", T) => {
|
|
3425
|
+
var P, _, w;
|
|
3407
3426
|
S == 1 ? (r.value = "success", (P = window.DasMessage) == null || P.success({
|
|
3408
|
-
message:
|
|
3427
|
+
message: O == "export" ? C("导出成功") : C("导入成功"),
|
|
3409
3428
|
grouping: !0,
|
|
3410
3429
|
repeatNum: 1
|
|
3411
|
-
}), s.value = "", u.value = "", l.value = "") : S == 2 ? (r.value = "error", (
|
|
3412
|
-
message: T || (
|
|
3430
|
+
}), s.value = "", u.value = "", l.value = "") : S == 2 ? (r.value = "error", (_ = window.DasMessage) == null || _.error({
|
|
3431
|
+
message: T || (O == "export" ? C("导出失败") : C("导入失败")),
|
|
3413
3432
|
grouping: !0,
|
|
3414
3433
|
repeatNum: 1
|
|
3415
3434
|
}), l.value = T || C("部分数据校验不通过,请下载附件并修改,重新导入!")) : S == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
3416
|
-
message:
|
|
3435
|
+
message: O == "export" ? C("部分导出失败") : C("部分导入失败"),
|
|
3417
3436
|
grouping: !0,
|
|
3418
3437
|
repeatNum: 1
|
|
3419
3438
|
}));
|
|
@@ -3434,8 +3453,8 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3434
3453
|
fileExport: F,
|
|
3435
3454
|
fileAction: v,
|
|
3436
3455
|
generateUniqueName: (S) => {
|
|
3437
|
-
const
|
|
3438
|
-
return `${
|
|
3456
|
+
const O = S == null ? void 0 : S.match(/(.*?)(\.[^.]*$|$)/), T = O.length ? O[2] : "";
|
|
3457
|
+
return `${O.length ? O[1] : S}${Ql()}${T}`;
|
|
3439
3458
|
},
|
|
3440
3459
|
downloadFile: en,
|
|
3441
3460
|
resetStataus: m,
|