@das-fed/utils 7.1.0-dev.33 → 7.1.0-dev.34
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/index.js +261 -261
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +708 -726
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1116 -1098
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +623 -623
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +154 -154
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +154 -154
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +626 -626
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +372 -372
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +154 -154
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1020 -1002
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +159 -159
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +848 -834
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +197 -197
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +197 -197
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +682 -696
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +154 -154
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +184 -184
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +154 -154
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +627 -627
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1115 -1101
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1116 -1098
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +708 -726
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1116 -1098
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +153 -153
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +849 -831
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
package/api-services/index.js
CHANGED
|
@@ -68,7 +68,7 @@ const To = st("string"), q = st("function"), pn = st("number"), Fe = (t) => t !=
|
|
|
68
68
|
let e;
|
|
69
69
|
return t && (typeof FormData == "function" && t instanceof FormData || q(t.append) && ((e = it(t)) === "formdata" || // detect form-data instance
|
|
70
70
|
e === "object" && q(t.toString) && t.toString() === "[object FormData]"));
|
|
71
|
-
},
|
|
71
|
+
}, Lo = Q("URLSearchParams"), [Mo, Uo, Bo, jo] = ["ReadableStream", "Request", "Response", "Headers"].map(Q), qo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
72
72
|
function De(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
73
73
|
if (t === null || typeof t > "u")
|
|
74
74
|
return;
|
|
@@ -224,8 +224,8 @@ const ia = (t) => {
|
|
|
224
224
|
isObject: Fe,
|
|
225
225
|
isPlainObject: We,
|
|
226
226
|
isEmptyObject: Co,
|
|
227
|
-
isReadableStream:
|
|
228
|
-
isRequest:
|
|
227
|
+
isReadableStream: Mo,
|
|
228
|
+
isRequest: Uo,
|
|
229
229
|
isResponse: Bo,
|
|
230
230
|
isHeaders: jo,
|
|
231
231
|
isUndefined: Ce,
|
|
@@ -235,7 +235,7 @@ const ia = (t) => {
|
|
|
235
235
|
isRegExp: ea,
|
|
236
236
|
isFunction: q,
|
|
237
237
|
isStream: Io,
|
|
238
|
-
isURLSearchParams:
|
|
238
|
+
isURLSearchParams: Lo,
|
|
239
239
|
isTypedArray: Vo,
|
|
240
240
|
isFileList: Do,
|
|
241
241
|
forEach: De,
|
|
@@ -272,10 +272,10 @@ const ia = (t) => {
|
|
|
272
272
|
asap: ca,
|
|
273
273
|
isIterable: ua
|
|
274
274
|
};
|
|
275
|
-
function
|
|
275
|
+
function E(t, e, n, r, o) {
|
|
276
276
|
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);
|
|
277
277
|
}
|
|
278
|
-
f.inherits(
|
|
278
|
+
f.inherits(E, Error, {
|
|
279
279
|
toJSON: function() {
|
|
280
280
|
return {
|
|
281
281
|
// Standard
|
|
@@ -296,7 +296,7 @@ f.inherits(S, Error, {
|
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
|
-
const vn =
|
|
299
|
+
const vn = E.prototype, gn = {};
|
|
300
300
|
[
|
|
301
301
|
"ERR_BAD_OPTION_VALUE",
|
|
302
302
|
"ERR_BAD_OPTION",
|
|
@@ -314,13 +314,13 @@ const vn = S.prototype, gn = {};
|
|
|
314
314
|
].forEach((t) => {
|
|
315
315
|
gn[t] = { value: t };
|
|
316
316
|
});
|
|
317
|
-
Object.defineProperties(
|
|
317
|
+
Object.defineProperties(E, gn);
|
|
318
318
|
Object.defineProperty(vn, "isAxiosError", { value: !0 });
|
|
319
|
-
|
|
319
|
+
E.from = (t, e, n, r, o, a) => {
|
|
320
320
|
const i = Object.create(vn);
|
|
321
321
|
return f.toFlatObject(t, i, function(u) {
|
|
322
322
|
return u !== Error.prototype;
|
|
323
|
-
}, (s) => s !== "isAxiosError"),
|
|
323
|
+
}, (s) => s !== "isAxiosError"), E.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
324
324
|
};
|
|
325
325
|
const fa = null;
|
|
326
326
|
function Ht(t) {
|
|
@@ -360,16 +360,16 @@ function lt(t, e, n) {
|
|
|
360
360
|
if (f.isBoolean(y))
|
|
361
361
|
return y.toString();
|
|
362
362
|
if (!u && f.isBlob(y))
|
|
363
|
-
throw new
|
|
363
|
+
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
364
364
|
return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
365
365
|
}
|
|
366
366
|
function c(y, m, h) {
|
|
367
|
-
let
|
|
367
|
+
let S = y;
|
|
368
368
|
if (y && !h && typeof y == "object") {
|
|
369
369
|
if (f.endsWith(m, "{}"))
|
|
370
370
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
371
|
-
else if (f.isArray(y) && pa(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (
|
|
372
|
-
return m = wn(m),
|
|
371
|
+
else if (f.isArray(y) && pa(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
372
|
+
return m = wn(m), S.forEach(function(g, D) {
|
|
373
373
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
374
374
|
// eslint-disable-next-line no-nested-ternary
|
|
375
375
|
i === !0 ? wr([m], D, a) : i === null ? m : m + "[]",
|
|
@@ -388,14 +388,14 @@ function lt(t, e, n) {
|
|
|
388
388
|
if (!f.isUndefined(y)) {
|
|
389
389
|
if (p.indexOf(y) !== -1)
|
|
390
390
|
throw Error("Circular reference detected in " + m.join("."));
|
|
391
|
-
p.push(y), f.forEach(y, function(
|
|
392
|
-
(!(f.isUndefined(
|
|
391
|
+
p.push(y), f.forEach(y, function(S, O) {
|
|
392
|
+
(!(f.isUndefined(S) || S === null) && o.call(
|
|
393
393
|
e,
|
|
394
|
-
|
|
395
|
-
f.isString(
|
|
394
|
+
S,
|
|
395
|
+
f.isString(O) ? O.trim() : O,
|
|
396
396
|
m,
|
|
397
397
|
d
|
|
398
|
-
)) === !0 && v(
|
|
398
|
+
)) === !0 && v(S, m ? m.concat(O) : [O]);
|
|
399
399
|
}), p.pop();
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -524,14 +524,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Sa
|
|
|
524
524
|
hasStandardBrowserWebWorkerEnv: ba,
|
|
525
525
|
navigator: Wt,
|
|
526
526
|
origin: Sa
|
|
527
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
527
|
+
}, Symbol.toStringTag, { value: "Module" })), U = {
|
|
528
528
|
...Ea,
|
|
529
529
|
...ga
|
|
530
530
|
};
|
|
531
531
|
function Aa(t, e) {
|
|
532
|
-
return lt(t, new
|
|
532
|
+
return lt(t, new U.classes.URLSearchParams(), {
|
|
533
533
|
visitor: function(n, r, o, a) {
|
|
534
|
-
return
|
|
534
|
+
return U.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
535
535
|
},
|
|
536
536
|
...e
|
|
537
537
|
});
|
|
@@ -611,7 +611,7 @@ const Ie = {
|
|
|
611
611
|
return JSON.parse(e);
|
|
612
612
|
} catch (s) {
|
|
613
613
|
if (i)
|
|
614
|
-
throw s.name === "SyntaxError" ?
|
|
614
|
+
throw s.name === "SyntaxError" ? E.from(s, E.ERR_BAD_RESPONSE, this, null, this.response) : s;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
return e;
|
|
@@ -626,8 +626,8 @@ const Ie = {
|
|
|
626
626
|
maxContentLength: -1,
|
|
627
627
|
maxBodyLength: -1,
|
|
628
628
|
env: {
|
|
629
|
-
FormData:
|
|
630
|
-
Blob:
|
|
629
|
+
FormData: U.classes.FormData,
|
|
630
|
+
Blob: U.classes.Blob
|
|
631
631
|
},
|
|
632
632
|
validateStatus: function(e) {
|
|
633
633
|
return e >= 200 && e < 300;
|
|
@@ -854,16 +854,16 @@ function On(t) {
|
|
|
854
854
|
return !!(t && t.__CANCEL__);
|
|
855
855
|
}
|
|
856
856
|
function Ee(t, e, n) {
|
|
857
|
-
|
|
857
|
+
E.call(this, t ?? "canceled", E.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
858
858
|
}
|
|
859
|
-
f.inherits(Ee,
|
|
859
|
+
f.inherits(Ee, E, {
|
|
860
860
|
__CANCEL__: !0
|
|
861
861
|
});
|
|
862
862
|
function Rn(t, e, n) {
|
|
863
863
|
const r = n.config.validateStatus;
|
|
864
|
-
!n.status || !r || r(n.status) ? t(n) : e(new
|
|
864
|
+
!n.status || !r || r(n.status) ? t(n) : e(new E(
|
|
865
865
|
"Request failed with status code " + n.status,
|
|
866
|
-
[
|
|
866
|
+
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
867
867
|
n.config,
|
|
868
868
|
n.request,
|
|
869
869
|
n
|
|
@@ -927,10 +927,10 @@ const Ye = (t, e, n = 3) => {
|
|
|
927
927
|
total: t,
|
|
928
928
|
loaded: r
|
|
929
929
|
}), e[1]];
|
|
930
|
-
}, Or = (t) => (...e) => f.asap(() => t(...e)), ka =
|
|
931
|
-
new URL(
|
|
932
|
-
|
|
933
|
-
) : () => !0,
|
|
930
|
+
}, Or = (t) => (...e) => f.asap(() => t(...e)), ka = U.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, U.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
931
|
+
new URL(U.origin),
|
|
932
|
+
U.navigator && /(msie|trident)/i.test(U.navigator.userAgent)
|
|
933
|
+
) : () => !0, La = U.hasStandardBrowserEnv ? (
|
|
934
934
|
// Standard browser envs support document.cookie
|
|
935
935
|
{
|
|
936
936
|
write(t, e, n, r, o, a) {
|
|
@@ -957,15 +957,15 @@ const Ye = (t, e, n = 3) => {
|
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
);
|
|
960
|
-
function
|
|
960
|
+
function Ma(t) {
|
|
961
961
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Ua(t, e) {
|
|
964
964
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
965
965
|
}
|
|
966
966
|
function Pn(t, e, n) {
|
|
967
|
-
let r = !
|
|
968
|
-
return t && (r || n == !1) ?
|
|
967
|
+
let r = !Ma(e);
|
|
968
|
+
return t && (r || n == !1) ? Ua(t, e) : e;
|
|
969
969
|
}
|
|
970
970
|
const Rr = (t) => t instanceof z ? { ...t } : t;
|
|
971
971
|
function pe(t, e) {
|
|
@@ -1041,15 +1041,15 @@ const xn = (t) => {
|
|
|
1041
1041
|
);
|
|
1042
1042
|
let u;
|
|
1043
1043
|
if (f.isFormData(n)) {
|
|
1044
|
-
if (
|
|
1044
|
+
if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv)
|
|
1045
1045
|
i.setContentType(void 0);
|
|
1046
1046
|
else if ((u = i.getContentType()) !== !1) {
|
|
1047
1047
|
const [l, ...c] = u ? u.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1048
1048
|
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
-
if (
|
|
1052
|
-
const l = o && a &&
|
|
1051
|
+
if (U.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && ka(e.url))) {
|
|
1052
|
+
const l = o && a && La.read(a);
|
|
1053
1053
|
l && i.set(o, l);
|
|
1054
1054
|
}
|
|
1055
1055
|
return e;
|
|
@@ -1064,7 +1064,7 @@ const xn = (t) => {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
let h = new XMLHttpRequest();
|
|
1066
1066
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1067
|
-
function
|
|
1067
|
+
function S() {
|
|
1068
1068
|
if (!h)
|
|
1069
1069
|
return;
|
|
1070
1070
|
const g = z.from(
|
|
@@ -1077,24 +1077,24 @@ const xn = (t) => {
|
|
|
1077
1077
|
config: t,
|
|
1078
1078
|
request: h
|
|
1079
1079
|
};
|
|
1080
|
-
Rn(function(
|
|
1081
|
-
n(
|
|
1082
|
-
}, function(
|
|
1083
|
-
r(
|
|
1080
|
+
Rn(function(M) {
|
|
1081
|
+
n(M), m();
|
|
1082
|
+
}, function(M) {
|
|
1083
|
+
r(M), m();
|
|
1084
1084
|
}, T), h = null;
|
|
1085
1085
|
}
|
|
1086
|
-
"onloadend" in h ? h.onloadend =
|
|
1087
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1086
|
+
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
|
|
1087
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1088
1088
|
}, h.onabort = function() {
|
|
1089
|
-
h && (r(new
|
|
1089
|
+
h && (r(new E("Request aborted", E.ECONNABORTED, t, h)), h = null);
|
|
1090
1090
|
}, h.onerror = function() {
|
|
1091
|
-
r(new
|
|
1091
|
+
r(new E("Network Error", E.ERR_NETWORK, t, h)), h = null;
|
|
1092
1092
|
}, h.ontimeout = function() {
|
|
1093
1093
|
let D = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1094
1094
|
const T = o.transitional || En;
|
|
1095
|
-
o.timeoutErrorMessage && (D = o.timeoutErrorMessage), r(new
|
|
1095
|
+
o.timeoutErrorMessage && (D = o.timeoutErrorMessage), r(new E(
|
|
1096
1096
|
D,
|
|
1097
|
-
T.clarifyTimeoutError ?
|
|
1097
|
+
T.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1098
1098
|
t,
|
|
1099
1099
|
h
|
|
1100
1100
|
)), h = null;
|
|
@@ -1103,9 +1103,9 @@ const xn = (t) => {
|
|
|
1103
1103
|
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Ye(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Ye(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1104
1104
|
h && (r(!g || g.type ? new Ee(null, t, h) : g), h.abort(), h = null);
|
|
1105
1105
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1106
|
-
const
|
|
1107
|
-
if (
|
|
1108
|
-
r(new
|
|
1106
|
+
const O = Fa(o.url);
|
|
1107
|
+
if (O && U.protocols.indexOf(O) === -1) {
|
|
1108
|
+
r(new E("Unsupported protocol " + O + ":", E.ERR_BAD_REQUEST, t));
|
|
1109
1109
|
return;
|
|
1110
1110
|
}
|
|
1111
1111
|
h.send(a || null);
|
|
@@ -1118,11 +1118,11 @@ const xn = (t) => {
|
|
|
1118
1118
|
if (!o) {
|
|
1119
1119
|
o = !0, s();
|
|
1120
1120
|
const c = l instanceof Error ? l : this.reason;
|
|
1121
|
-
r.abort(c instanceof
|
|
1121
|
+
r.abort(c instanceof E ? c : new Ee(c instanceof Error ? c.message : c));
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
1124
1124
|
let i = e && setTimeout(() => {
|
|
1125
|
-
i = null, a(new
|
|
1125
|
+
i = null, a(new E(`timeout ${e} of ms exceeded`, E.ETIMEDOUT));
|
|
1126
1126
|
}, e);
|
|
1127
1127
|
const s = () => {
|
|
1128
1128
|
t && (i && clearTimeout(i), i = null, t.forEach((l) => {
|
|
@@ -1198,7 +1198,7 @@ const xn = (t) => {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
}, Ga = Tn && $n(() => {
|
|
1200
1200
|
let t = !1;
|
|
1201
|
-
const e = new Request(
|
|
1201
|
+
const e = new Request(U.origin, {
|
|
1202
1202
|
body: new ReadableStream(),
|
|
1203
1203
|
method: "POST",
|
|
1204
1204
|
get duplex() {
|
|
@@ -1212,7 +1212,7 @@ const xn = (t) => {
|
|
|
1212
1212
|
ct && ((t) => {
|
|
1213
1213
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1214
1214
|
!Ze[e] && (Ze[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1215
|
-
throw new
|
|
1215
|
+
throw new E(`Response type '${e}' is not supported`, E.ERR_NOT_SUPPORT, r);
|
|
1216
1216
|
});
|
|
1217
1217
|
});
|
|
1218
1218
|
})(new Response());
|
|
@@ -1222,7 +1222,7 @@ const Ja = async (t) => {
|
|
|
1222
1222
|
if (f.isBlob(t))
|
|
1223
1223
|
return t.size;
|
|
1224
1224
|
if (f.isSpecCompliantForm(t))
|
|
1225
|
-
return (await new Request(
|
|
1225
|
+
return (await new Request(U.origin, {
|
|
1226
1226
|
method: "POST",
|
|
1227
1227
|
body: t
|
|
1228
1228
|
}).arrayBuffer()).byteLength;
|
|
@@ -1260,17 +1260,17 @@ const Ja = async (t) => {
|
|
|
1260
1260
|
method: "POST",
|
|
1261
1261
|
body: r,
|
|
1262
1262
|
duplex: "half"
|
|
1263
|
-
}),
|
|
1264
|
-
if (f.isFormData(r) && (
|
|
1265
|
-
const [
|
|
1263
|
+
}), L;
|
|
1264
|
+
if (f.isFormData(r) && (L = T.headers.get("content-type")) && c.setContentType(L), T.body) {
|
|
1265
|
+
const [M, W] = Ar(
|
|
1266
1266
|
h,
|
|
1267
1267
|
Ye(Or(u))
|
|
1268
1268
|
);
|
|
1269
|
-
r = Pr(T.body, xr,
|
|
1269
|
+
r = Pr(T.body, xr, M, W);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1273
|
-
const
|
|
1273
|
+
const S = "credentials" in Request.prototype;
|
|
1274
1274
|
y = new Request(e, {
|
|
1275
1275
|
...d,
|
|
1276
1276
|
signal: v,
|
|
@@ -1278,45 +1278,45 @@ const Ja = async (t) => {
|
|
|
1278
1278
|
headers: c.normalize().toJSON(),
|
|
1279
1279
|
body: r,
|
|
1280
1280
|
duplex: "half",
|
|
1281
|
-
credentials:
|
|
1281
|
+
credentials: S ? p : void 0
|
|
1282
1282
|
});
|
|
1283
|
-
let
|
|
1283
|
+
let O = await fetch(y, d);
|
|
1284
1284
|
const g = Kt && (l === "stream" || l === "response");
|
|
1285
1285
|
if (Kt && (s || g && m)) {
|
|
1286
1286
|
const T = {};
|
|
1287
1287
|
["status", "statusText", "headers"].forEach((J) => {
|
|
1288
|
-
T[J] =
|
|
1288
|
+
T[J] = O[J];
|
|
1289
1289
|
});
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1290
|
+
const L = f.toFiniteNumber(O.headers.get("content-length")), [M, W] = s && Ar(
|
|
1291
|
+
L,
|
|
1292
1292
|
Ye(Or(s), !0)
|
|
1293
1293
|
) || [];
|
|
1294
|
-
|
|
1295
|
-
Pr(
|
|
1294
|
+
O = new Response(
|
|
1295
|
+
Pr(O.body, xr, M, () => {
|
|
1296
1296
|
W && W(), m && m();
|
|
1297
1297
|
}),
|
|
1298
1298
|
T
|
|
1299
1299
|
);
|
|
1300
1300
|
}
|
|
1301
1301
|
l = l || "text";
|
|
1302
|
-
let D = await Ze[f.findKey(Ze, l) || "text"](
|
|
1303
|
-
return !g && m && m(), await new Promise((T,
|
|
1304
|
-
Rn(T,
|
|
1302
|
+
let D = await Ze[f.findKey(Ze, l) || "text"](O, t);
|
|
1303
|
+
return !g && m && m(), await new Promise((T, L) => {
|
|
1304
|
+
Rn(T, L, {
|
|
1305
1305
|
data: D,
|
|
1306
|
-
headers: z.from(
|
|
1307
|
-
status:
|
|
1308
|
-
statusText:
|
|
1306
|
+
headers: z.from(O.headers),
|
|
1307
|
+
status: O.status,
|
|
1308
|
+
statusText: O.statusText,
|
|
1309
1309
|
config: t,
|
|
1310
1310
|
request: y
|
|
1311
1311
|
});
|
|
1312
1312
|
});
|
|
1313
|
-
} catch (
|
|
1314
|
-
throw m && m(),
|
|
1315
|
-
new
|
|
1313
|
+
} catch (S) {
|
|
1314
|
+
throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
|
|
1315
|
+
new E("Network Error", E.ERR_NETWORK, t, y),
|
|
1316
1316
|
{
|
|
1317
|
-
cause:
|
|
1317
|
+
cause: S.cause || S
|
|
1318
1318
|
}
|
|
1319
|
-
) :
|
|
1319
|
+
) : E.from(S, S && S.code, t, y);
|
|
1320
1320
|
}
|
|
1321
1321
|
}), Gt = {
|
|
1322
1322
|
http: fa,
|
|
@@ -1342,7 +1342,7 @@ const Tr = (t) => `- ${t}`, Xa = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1342
1342
|
n = t[a];
|
|
1343
1343
|
let i;
|
|
1344
1344
|
if (r = n, !Xa(n) && (r = Gt[(i = String(n)).toLowerCase()], r === void 0))
|
|
1345
|
-
throw new
|
|
1345
|
+
throw new E(`Unknown adapter '${i}'`);
|
|
1346
1346
|
if (r)
|
|
1347
1347
|
break;
|
|
1348
1348
|
o[i || "#" + a] = r;
|
|
@@ -1354,7 +1354,7 @@ const Tr = (t) => `- ${t}`, Xa = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1354
1354
|
let i = e ? a.length > 1 ? `since :
|
|
1355
1355
|
` + a.map(Tr).join(`
|
|
1356
1356
|
`) : " " + Tr(a[0]) : "as no adapter specified";
|
|
1357
|
-
throw new
|
|
1357
|
+
throw new E(
|
|
1358
1358
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1359
1359
|
"ERR_NOT_SUPPORT"
|
|
1360
1360
|
);
|
|
@@ -1398,9 +1398,9 @@ ut.transitional = function(e, n, r) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
return (a, i, s) => {
|
|
1400
1400
|
if (e === !1)
|
|
1401
|
-
throw new
|
|
1401
|
+
throw new E(
|
|
1402
1402
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1403
|
-
|
|
1403
|
+
E.ERR_DEPRECATED
|
|
1404
1404
|
);
|
|
1405
1405
|
return n && !Cr[i] && (Cr[i] = !0), e ? e(a, i, s) : !0;
|
|
1406
1406
|
};
|
|
@@ -1410,7 +1410,7 @@ ut.spelling = function(e) {
|
|
|
1410
1410
|
};
|
|
1411
1411
|
function Ya(t, e, n) {
|
|
1412
1412
|
if (typeof t != "object")
|
|
1413
|
-
throw new
|
|
1413
|
+
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1414
1414
|
const r = Object.keys(t);
|
|
1415
1415
|
let o = r.length;
|
|
1416
1416
|
for (; o-- > 0; ) {
|
|
@@ -1418,11 +1418,11 @@ function Ya(t, e, n) {
|
|
|
1418
1418
|
if (i) {
|
|
1419
1419
|
const s = t[a], u = s === void 0 || i(s, a, t);
|
|
1420
1420
|
if (u !== !0)
|
|
1421
|
-
throw new
|
|
1421
|
+
throw new E("option " + a + " must be " + u, E.ERR_BAD_OPTION_VALUE);
|
|
1422
1422
|
continue;
|
|
1423
1423
|
}
|
|
1424
1424
|
if (n !== !0)
|
|
1425
|
-
throw new
|
|
1425
|
+
throw new E("Unknown option " + a, E.ERR_BAD_OPTION);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
const Ge = {
|
|
@@ -1715,7 +1715,7 @@ F.CancelToken = Za;
|
|
|
1715
1715
|
F.isCancel = On;
|
|
1716
1716
|
F.VERSION = _n;
|
|
1717
1717
|
F.toFormData = lt;
|
|
1718
|
-
F.AxiosError =
|
|
1718
|
+
F.AxiosError = E;
|
|
1719
1719
|
F.Cancel = F.CanceledError;
|
|
1720
1720
|
F.all = function(e) {
|
|
1721
1721
|
return Promise.all(e);
|
|
@@ -1774,15 +1774,15 @@ const oi = {}, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1774
1774
|
__proto__: null,
|
|
1775
1775
|
default: oi
|
|
1776
1776
|
}, Symbol.toStringTag, { value: "Module" })), ii = /* @__PURE__ */ ni(ai);
|
|
1777
|
-
var ar = typeof Map == "function" && Map.prototype, St = Object.getOwnPropertyDescriptor && ar ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, et = ar && St && typeof St.get == "function" ? St.get : null, Nr = ar && Map.prototype.forEach, ir = typeof Set == "function" && Set.prototype, Et = Object.getOwnPropertyDescriptor && ir ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, tt = ir && Et && typeof Et.get == "function" ? Et.get : null, Fr = ir && Set.prototype.forEach, si = typeof WeakMap == "function" && WeakMap.prototype, Pe = si ? WeakMap.prototype.has : null, li = typeof WeakSet == "function" && WeakSet.prototype, xe = li ? WeakSet.prototype.has : null, ci = typeof WeakRef == "function" && WeakRef.prototype, Dr = ci ? WeakRef.prototype.deref : null, ui = Boolean.prototype.valueOf, fi = Object.prototype.toString, pi = Function.prototype.toString, di = String.prototype.match, sr = String.prototype.slice, ae = String.prototype.replace, yi = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, Dn = RegExp.prototype.test, kr = Array.prototype.concat, re = Array.prototype.join, hi = Array.prototype.slice,
|
|
1777
|
+
var ar = typeof Map == "function" && Map.prototype, St = Object.getOwnPropertyDescriptor && ar ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, et = ar && St && typeof St.get == "function" ? St.get : null, Nr = ar && Map.prototype.forEach, ir = typeof Set == "function" && Set.prototype, Et = Object.getOwnPropertyDescriptor && ir ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, tt = ir && Et && typeof Et.get == "function" ? Et.get : null, Fr = ir && Set.prototype.forEach, si = typeof WeakMap == "function" && WeakMap.prototype, Pe = si ? WeakMap.prototype.has : null, li = typeof WeakSet == "function" && WeakSet.prototype, xe = li ? WeakSet.prototype.has : null, ci = typeof WeakRef == "function" && WeakRef.prototype, Dr = ci ? WeakRef.prototype.deref : null, ui = Boolean.prototype.valueOf, fi = Object.prototype.toString, pi = Function.prototype.toString, di = String.prototype.match, sr = String.prototype.slice, ae = String.prototype.replace, yi = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, Dn = RegExp.prototype.test, kr = Array.prototype.concat, re = Array.prototype.join, hi = Array.prototype.slice, Lr = Math.floor, Vt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, At = Object.getOwnPropertySymbols, Qt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, we = typeof Symbol == "function" && typeof Symbol.iterator == "object", Te = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === we || !0) ? Symbol.toStringTag : null, In = Object.prototype.propertyIsEnumerable, Mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1778
1778
|
return t.__proto__;
|
|
1779
1779
|
} : null);
|
|
1780
|
-
function
|
|
1780
|
+
function Ur(t, e) {
|
|
1781
1781
|
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Dn.call(/e/, e))
|
|
1782
1782
|
return e;
|
|
1783
1783
|
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1784
1784
|
if (typeof t == "number") {
|
|
1785
|
-
var r = t < 0 ? -
|
|
1785
|
+
var r = t < 0 ? -Lr(-t) : Lr(t);
|
|
1786
1786
|
if (r !== t) {
|
|
1787
1787
|
var o = String(r), a = sr.call(e, o.length + 1);
|
|
1788
1788
|
return ae.call(o, n, "$&_") + "." + ae.call(ae.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
@@ -1790,7 +1790,7 @@ function Lr(t, e) {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
return ae.call(e, n, "$&_");
|
|
1792
1792
|
}
|
|
1793
|
-
var Xt = ii, Br = Xt.custom, jr =
|
|
1793
|
+
var Xt = ii, Br = Xt.custom, jr = Mn(Br) ? Br : null, kn = {
|
|
1794
1794
|
__proto__: null,
|
|
1795
1795
|
double: '"',
|
|
1796
1796
|
single: "'"
|
|
@@ -1824,11 +1824,11 @@ var Xt = ii, Br = Xt.custom, jr = Un(Br) ? Br : null, kn = {
|
|
|
1824
1824
|
if (e === 0)
|
|
1825
1825
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1826
1826
|
var u = String(e);
|
|
1827
|
-
return s ?
|
|
1827
|
+
return s ? Ur(e, u) : u;
|
|
1828
1828
|
}
|
|
1829
1829
|
if (typeof e == "bigint") {
|
|
1830
1830
|
var l = String(e) + "n";
|
|
1831
|
-
return s ?
|
|
1831
|
+
return s ? Ur(e, l) : l;
|
|
1832
1832
|
}
|
|
1833
1833
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
1834
1834
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
@@ -1836,7 +1836,7 @@ var Xt = ii, Br = Xt.custom, jr = Un(Br) ? Br : null, kn = {
|
|
|
1836
1836
|
var p = Di(a, r);
|
|
1837
1837
|
if (typeof o > "u")
|
|
1838
1838
|
o = [];
|
|
1839
|
-
else if (
|
|
1839
|
+
else if (Un(o, e) >= 0)
|
|
1840
1840
|
return "[Circular]";
|
|
1841
1841
|
function d(x, N, w) {
|
|
1842
1842
|
if (N && (o = hi.call(o), o.push(N)), w) {
|
|
@@ -1851,13 +1851,13 @@ var Xt = ii, Br = Xt.custom, jr = Un(Br) ? Br : null, kn = {
|
|
|
1851
1851
|
var v = Ri(e), y = je(e, d);
|
|
1852
1852
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + re.call(y, ", ") + " }" : "");
|
|
1853
1853
|
}
|
|
1854
|
-
if (
|
|
1854
|
+
if (Mn(e)) {
|
|
1855
1855
|
var m = we ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Qt.call(e);
|
|
1856
1856
|
return typeof e == "object" && !we ? Re(m) : m;
|
|
1857
1857
|
}
|
|
1858
1858
|
if (_i(e)) {
|
|
1859
|
-
for (var h = "<" + Ir.call(String(e.nodeName)),
|
|
1860
|
-
h += " " +
|
|
1859
|
+
for (var h = "<" + Ir.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++)
|
|
1860
|
+
h += " " + S[O].name + "=" + Ln(vi(S[O].value), "double", a);
|
|
1861
1861
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Ir.call(String(e.nodeName)) + ">", h;
|
|
1862
1862
|
}
|
|
1863
1863
|
if (Yt(e)) {
|
|
@@ -1883,10 +1883,10 @@ var Xt = ii, Br = Xt.custom, jr = Un(Br) ? Br : null, kn = {
|
|
|
1883
1883
|
}), zr("Map", et.call(e), T, p);
|
|
1884
1884
|
}
|
|
1885
1885
|
if ($i(e)) {
|
|
1886
|
-
var
|
|
1886
|
+
var L = [];
|
|
1887
1887
|
return Fr && Fr.call(e, function(x) {
|
|
1888
|
-
|
|
1889
|
-
}), zr("Set", tt.call(e),
|
|
1888
|
+
L.push(d(x, e));
|
|
1889
|
+
}), zr("Set", tt.call(e), L, p);
|
|
1890
1890
|
}
|
|
1891
1891
|
if (xi(e))
|
|
1892
1892
|
return Ot("WeakMap");
|
|
@@ -1907,12 +1907,12 @@ var Xt = ii, Br = Xt.custom, jr = Un(Br) ? Br : null, kn = {
|
|
|
1907
1907
|
if (typeof globalThis < "u" && e === globalThis || typeof _r < "u" && e === _r)
|
|
1908
1908
|
return "{ [object globalThis] }";
|
|
1909
1909
|
if (!gi(e) && !qr(e)) {
|
|
1910
|
-
var
|
|
1911
|
-
return
|
|
1910
|
+
var M = je(e, d), W = Mr ? Mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", A = !W && Te && Object(e) === e && Te in e ? sr.call(ie(e), 8, -1) : J ? "Object" : "", P = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = P + (A || J ? "[" + re.call(kr.call([], A || [], J || []), ": ") + "] " : "");
|
|
1911
|
+
return M.length === 0 ? $ + "{}" : p ? $ + "{" + Zt(M, p) + "}" : $ + "{ " + re.call(M, ", ") + " }";
|
|
1912
1912
|
}
|
|
1913
1913
|
return String(e);
|
|
1914
1914
|
};
|
|
1915
|
-
function
|
|
1915
|
+
function Ln(t, e, n) {
|
|
1916
1916
|
var r = n.quoteStyle || e, o = kn[r];
|
|
1917
1917
|
return o + t + o;
|
|
1918
1918
|
}
|
|
@@ -1943,7 +1943,7 @@ function Si(t) {
|
|
|
1943
1943
|
function Ei(t) {
|
|
1944
1944
|
return ie(t) === "[object Boolean]" && ye(t);
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function Mn(t) {
|
|
1947
1947
|
if (we)
|
|
1948
1948
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1949
1949
|
if (typeof t == "symbol")
|
|
@@ -1980,7 +1980,7 @@ function Ri(t) {
|
|
|
1980
1980
|
var e = di.call(pi.call(t), /^function\s*([\w$]+)/);
|
|
1981
1981
|
return e ? e[1] : null;
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function Un(t, e) {
|
|
1984
1984
|
if (t.indexOf)
|
|
1985
1985
|
return t.indexOf(e);
|
|
1986
1986
|
for (var n = 0, r = t.length; n < r; n++)
|
|
@@ -2068,7 +2068,7 @@ function Bn(t, e) {
|
|
|
2068
2068
|
var o = mi[e.quoteStyle || "single"];
|
|
2069
2069
|
o.lastIndex = 0;
|
|
2070
2070
|
var a = ae.call(ae.call(t, o, "\\$1"), /[\x00-\x1f]/g, Ni);
|
|
2071
|
-
return
|
|
2071
|
+
return Ln(a, "single", e);
|
|
2072
2072
|
}
|
|
2073
2073
|
function Ni(t) {
|
|
2074
2074
|
var e = t.charCodeAt(0), n = {
|
|
@@ -2092,7 +2092,7 @@ function zr(t, e, n, r) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
function Fi(t) {
|
|
2094
2094
|
for (var e = 0; e < t.length; e++)
|
|
2095
|
-
if (
|
|
2095
|
+
if (Un(t[e], `
|
|
2096
2096
|
`) >= 0)
|
|
2097
2097
|
return !1;
|
|
2098
2098
|
return !0;
|
|
@@ -2143,12 +2143,12 @@ var Ii = ft, ki = Ae, pt = function(t, e, n) {
|
|
|
2143
2143
|
if (o.key === e)
|
|
2144
2144
|
return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2145
2145
|
t.next, t.next = o), o;
|
|
2146
|
-
},
|
|
2146
|
+
}, Li = function(t, e) {
|
|
2147
2147
|
if (t) {
|
|
2148
2148
|
var n = pt(t, e);
|
|
2149
2149
|
return n && n.value;
|
|
2150
2150
|
}
|
|
2151
|
-
},
|
|
2151
|
+
}, Mi = function(t, e, n) {
|
|
2152
2152
|
var r = pt(t, e);
|
|
2153
2153
|
r ? r.value = n : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2154
2154
|
{
|
|
@@ -2157,7 +2157,7 @@ var Ii = ft, ki = Ae, pt = function(t, e, n) {
|
|
|
2157
2157
|
next: t.next,
|
|
2158
2158
|
value: n
|
|
2159
2159
|
};
|
|
2160
|
-
},
|
|
2160
|
+
}, Ui = function(t, e) {
|
|
2161
2161
|
return t ? !!pt(t, e) : !1;
|
|
2162
2162
|
}, Bi = function(t, e) {
|
|
2163
2163
|
if (t)
|
|
@@ -2173,15 +2173,15 @@ var Ii = ft, ki = Ae, pt = function(t, e, n) {
|
|
|
2173
2173
|
return a && o && o === a && (e = void 0), !!a;
|
|
2174
2174
|
},
|
|
2175
2175
|
get: function(r) {
|
|
2176
|
-
return
|
|
2176
|
+
return Li(e, r);
|
|
2177
2177
|
},
|
|
2178
2178
|
has: function(r) {
|
|
2179
|
-
return
|
|
2179
|
+
return Ui(e, r);
|
|
2180
2180
|
},
|
|
2181
2181
|
set: function(r, o) {
|
|
2182
2182
|
e || (e = {
|
|
2183
2183
|
next: void 0
|
|
2184
|
-
}),
|
|
2184
|
+
}), Mi(
|
|
2185
2185
|
/** @type {NonNullable<typeof $o>} */
|
|
2186
2186
|
e,
|
|
2187
2187
|
r,
|
|
@@ -2283,11 +2283,11 @@ function ss() {
|
|
|
2283
2283
|
throw new TypeError(t + l);
|
|
2284
2284
|
for (var c = a(arguments, 1), p, d = function() {
|
|
2285
2285
|
if (this instanceof p) {
|
|
2286
|
-
var
|
|
2286
|
+
var S = l.apply(
|
|
2287
2287
|
this,
|
|
2288
2288
|
o(c, arguments)
|
|
2289
2289
|
);
|
|
2290
|
-
return Object(
|
|
2290
|
+
return Object(S) === S ? S : this;
|
|
2291
2291
|
}
|
|
2292
2292
|
return l.apply(
|
|
2293
2293
|
u,
|
|
@@ -2368,40 +2368,40 @@ function bs() {
|
|
|
2368
2368
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = dt();
|
|
2369
2369
|
return It = n.call(t, e), It;
|
|
2370
2370
|
}
|
|
2371
|
-
var
|
|
2371
|
+
var R, Ss = jn, Es = qi, As = zi, Os = Hi, Rs = Wi, be = Ki, ge = Ae, Ps = Gi, xs = Ji, Ts = Vi, $s = Qi, Cs = Xi, _s = Yi, Ns = Zi, Fs = rs, Gn = Function, kt = function(t) {
|
|
2372
2372
|
try {
|
|
2373
2373
|
return Gn('"use strict"; return (' + t + ").constructor;")();
|
|
2374
2374
|
} catch {
|
|
2375
2375
|
}
|
|
2376
|
-
}, _e = qn, Ds = os,
|
|
2376
|
+
}, _e = qn, Ds = os, Lt = function() {
|
|
2377
2377
|
throw new ge();
|
|
2378
2378
|
}, Is = _e ? function() {
|
|
2379
2379
|
try {
|
|
2380
|
-
return arguments.callee,
|
|
2380
|
+
return arguments.callee, Lt;
|
|
2381
2381
|
} catch {
|
|
2382
2382
|
try {
|
|
2383
2383
|
return _e(arguments, "callee").get;
|
|
2384
2384
|
} catch {
|
|
2385
|
-
return
|
|
2385
|
+
return Lt;
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
|
-
}() :
|
|
2388
|
+
}() : Lt, he = is()(), k = ws(), ks = Hn(), Ls = zn(), Jn = Wn(), ke = lr(), ve = {}, Ms = typeof Uint8Array > "u" || !k ? R : k(Uint8Array), ue = {
|
|
2389
2389
|
__proto__: null,
|
|
2390
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2390
|
+
"%AggregateError%": typeof AggregateError > "u" ? R : AggregateError,
|
|
2391
2391
|
"%Array%": Array,
|
|
2392
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2393
|
-
"%ArrayIteratorPrototype%": he && k ? k([][Symbol.iterator]()) :
|
|
2394
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2392
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? R : ArrayBuffer,
|
|
2393
|
+
"%ArrayIteratorPrototype%": he && k ? k([][Symbol.iterator]()) : R,
|
|
2394
|
+
"%AsyncFromSyncIteratorPrototype%": R,
|
|
2395
2395
|
"%AsyncFunction%": ve,
|
|
2396
2396
|
"%AsyncGenerator%": ve,
|
|
2397
2397
|
"%AsyncGeneratorFunction%": ve,
|
|
2398
2398
|
"%AsyncIteratorPrototype%": ve,
|
|
2399
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2400
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2401
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2402
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2399
|
+
"%Atomics%": typeof Atomics > "u" ? R : Atomics,
|
|
2400
|
+
"%BigInt%": typeof BigInt > "u" ? R : BigInt,
|
|
2401
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? R : BigInt64Array,
|
|
2402
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? R : BigUint64Array,
|
|
2403
2403
|
"%Boolean%": Boolean,
|
|
2404
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2404
|
+
"%DataView%": typeof DataView > "u" ? R : DataView,
|
|
2405
2405
|
"%Date%": Date,
|
|
2406
2406
|
"%decodeURI%": decodeURI,
|
|
2407
2407
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2411,51 +2411,51 @@ var O, Ss = jn, Es = qi, As = zi, Os = Hi, Rs = Wi, be = Ki, ge = Ae, Ps = Gi, x
|
|
|
2411
2411
|
"%eval%": eval,
|
|
2412
2412
|
// eslint-disable-line no-eval
|
|
2413
2413
|
"%EvalError%": As,
|
|
2414
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2415
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2416
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2417
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2414
|
+
"%Float16Array%": typeof Float16Array > "u" ? R : Float16Array,
|
|
2415
|
+
"%Float32Array%": typeof Float32Array > "u" ? R : Float32Array,
|
|
2416
|
+
"%Float64Array%": typeof Float64Array > "u" ? R : Float64Array,
|
|
2417
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? R : FinalizationRegistry,
|
|
2418
2418
|
"%Function%": Gn,
|
|
2419
2419
|
"%GeneratorFunction%": ve,
|
|
2420
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2421
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2422
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2420
|
+
"%Int8Array%": typeof Int8Array > "u" ? R : Int8Array,
|
|
2421
|
+
"%Int16Array%": typeof Int16Array > "u" ? R : Int16Array,
|
|
2422
|
+
"%Int32Array%": typeof Int32Array > "u" ? R : Int32Array,
|
|
2423
2423
|
"%isFinite%": isFinite,
|
|
2424
2424
|
"%isNaN%": isNaN,
|
|
2425
|
-
"%IteratorPrototype%": he && k ? k(k([][Symbol.iterator]())) :
|
|
2426
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2427
|
-
"%Map%": typeof Map > "u" ?
|
|
2428
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !he || !k ?
|
|
2425
|
+
"%IteratorPrototype%": he && k ? k(k([][Symbol.iterator]())) : R,
|
|
2426
|
+
"%JSON%": typeof JSON == "object" ? JSON : R,
|
|
2427
|
+
"%Map%": typeof Map > "u" ? R : Map,
|
|
2428
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !he || !k ? R : k((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2429
2429
|
"%Math%": Math,
|
|
2430
2430
|
"%Number%": Number,
|
|
2431
2431
|
"%Object%": Ss,
|
|
2432
2432
|
"%Object.getOwnPropertyDescriptor%": _e,
|
|
2433
2433
|
"%parseFloat%": parseFloat,
|
|
2434
2434
|
"%parseInt%": parseInt,
|
|
2435
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2436
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2435
|
+
"%Promise%": typeof Promise > "u" ? R : Promise,
|
|
2436
|
+
"%Proxy%": typeof Proxy > "u" ? R : Proxy,
|
|
2437
2437
|
"%RangeError%": Os,
|
|
2438
2438
|
"%ReferenceError%": Rs,
|
|
2439
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2439
|
+
"%Reflect%": typeof Reflect > "u" ? R : Reflect,
|
|
2440
2440
|
"%RegExp%": RegExp,
|
|
2441
|
-
"%Set%": typeof Set > "u" ?
|
|
2442
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !he || !k ?
|
|
2443
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2441
|
+
"%Set%": typeof Set > "u" ? R : Set,
|
|
2442
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !he || !k ? R : k((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2443
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? R : SharedArrayBuffer,
|
|
2444
2444
|
"%String%": String,
|
|
2445
|
-
"%StringIteratorPrototype%": he && k ? k(""[Symbol.iterator]()) :
|
|
2446
|
-
"%Symbol%": he ? Symbol :
|
|
2445
|
+
"%StringIteratorPrototype%": he && k ? k(""[Symbol.iterator]()) : R,
|
|
2446
|
+
"%Symbol%": he ? Symbol : R,
|
|
2447
2447
|
"%SyntaxError%": be,
|
|
2448
2448
|
"%ThrowTypeError%": Is,
|
|
2449
|
-
"%TypedArray%":
|
|
2449
|
+
"%TypedArray%": Ms,
|
|
2450
2450
|
"%TypeError%": ge,
|
|
2451
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2452
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2453
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2454
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2451
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? R : Uint8Array,
|
|
2452
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? R : Uint8ClampedArray,
|
|
2453
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? R : Uint16Array,
|
|
2454
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? R : Uint32Array,
|
|
2455
2455
|
"%URIError%": Ps,
|
|
2456
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2457
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2458
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2456
|
+
"%WeakMap%": typeof WeakMap > "u" ? R : WeakMap,
|
|
2457
|
+
"%WeakRef%": typeof WeakRef > "u" ? R : WeakRef,
|
|
2458
|
+
"%WeakSet%": typeof WeakSet > "u" ? R : WeakSet,
|
|
2459
2459
|
"%Function.prototype.call%": ke,
|
|
2460
2460
|
"%Function.prototype.apply%": Jn,
|
|
2461
2461
|
"%Object.defineProperty%": Ds,
|
|
@@ -2467,14 +2467,14 @@ var O, Ss = jn, Es = qi, As = zi, Os = Hi, Rs = Wi, be = Ki, ge = Ae, Ps = Gi, x
|
|
|
2467
2467
|
"%Math.pow%": _s,
|
|
2468
2468
|
"%Math.round%": Ns,
|
|
2469
2469
|
"%Math.sign%": Fs,
|
|
2470
|
-
"%Reflect.getPrototypeOf%":
|
|
2470
|
+
"%Reflect.getPrototypeOf%": Ls
|
|
2471
2471
|
};
|
|
2472
2472
|
if (k)
|
|
2473
2473
|
try {
|
|
2474
2474
|
null.error;
|
|
2475
2475
|
} catch (t) {
|
|
2476
|
-
var
|
|
2477
|
-
ue["%Error.prototype%"] =
|
|
2476
|
+
var Us = k(k(t));
|
|
2477
|
+
ue["%Error.prototype%"] = Us;
|
|
2478
2478
|
}
|
|
2479
2479
|
var Bs = function t(e) {
|
|
2480
2480
|
var n;
|
|
@@ -2545,7 +2545,7 @@ var Bs = function t(e) {
|
|
|
2545
2545
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2546
2546
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2547
2547
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2548
|
-
},
|
|
2548
|
+
}, Le = dt(), rt = bs(), js = Le.call(ke, Array.prototype.concat), qs = Le.call(Jn, Array.prototype.splice), rn = Le.call(ke, String.prototype.replace), nt = Le.call(ke, String.prototype.slice), zs = Le.call(ke, RegExp.prototype.exec), Hs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ws = /\\(\\)?/g, Ks = function(e) {
|
|
2549
2549
|
var n = nt(e, 0, 1), r = nt(e, -1);
|
|
2550
2550
|
if (n === "%" && r !== "%")
|
|
2551
2551
|
throw new be("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2607,7 +2607,7 @@ var Bs = function t(e) {
|
|
|
2607
2607
|
/** @type {const} */
|
|
2608
2608
|
[r]
|
|
2609
2609
|
) : r;
|
|
2610
|
-
}, Vs = cr,
|
|
2610
|
+
}, Vs = cr, Me = Xn, Qs = ft, Xs = Ae, nn = Vs("%Map%", !0), Ys = Me("Map.prototype.get", !0), Zs = Me("Map.prototype.set", !0), el = Me("Map.prototype.has", !0), tl = Me("Map.prototype.delete", !0), rl = Me("Map.prototype.size", !0), Yn = !!nn && /** @type {Exclude<import('.'), false>} */
|
|
2611
2611
|
function() {
|
|
2612
2612
|
var e, n = {
|
|
2613
2613
|
assert: function(r) {
|
|
@@ -2681,11 +2681,11 @@ function() {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
};
|
|
2683
2683
|
return n;
|
|
2684
|
-
}, gl = String.prototype.replace, wl = /%20/g,
|
|
2684
|
+
}, gl = String.prototype.replace, wl = /%20/g, Mt = {
|
|
2685
2685
|
RFC1738: "RFC1738",
|
|
2686
2686
|
RFC3986: "RFC3986"
|
|
2687
2687
|
}, ur = {
|
|
2688
|
-
default:
|
|
2688
|
+
default: Mt.RFC3986,
|
|
2689
2689
|
formatters: {
|
|
2690
2690
|
RFC1738: function(t) {
|
|
2691
2691
|
return gl.call(t, wl, "+");
|
|
@@ -2694,9 +2694,9 @@ function() {
|
|
|
2694
2694
|
return String(t);
|
|
2695
2695
|
}
|
|
2696
2696
|
},
|
|
2697
|
-
RFC1738:
|
|
2698
|
-
RFC3986:
|
|
2699
|
-
}, bl = ur,
|
|
2697
|
+
RFC1738: Mt.RFC1738,
|
|
2698
|
+
RFC3986: Mt.RFC3986
|
|
2699
|
+
}, bl = ur, Ut = Object.prototype.hasOwnProperty, se = Array.isArray, ee = function() {
|
|
2700
2700
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2701
2701
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2702
2702
|
return t;
|
|
@@ -2720,7 +2720,7 @@ function() {
|
|
|
2720
2720
|
if (se(e))
|
|
2721
2721
|
e.push(n);
|
|
2722
2722
|
else if (e && typeof e == "object")
|
|
2723
|
-
(r && (r.plainObjects || r.allowPrototypes) || !
|
|
2723
|
+
(r && (r.plainObjects || r.allowPrototypes) || !Ut.call(Object.prototype, n)) && (e[n] = !0);
|
|
2724
2724
|
else
|
|
2725
2725
|
return [e, n];
|
|
2726
2726
|
return e;
|
|
@@ -2729,14 +2729,14 @@ function() {
|
|
|
2729
2729
|
return [e].concat(n);
|
|
2730
2730
|
var o = e;
|
|
2731
2731
|
return se(e) && !se(n) && (o = Zn(e, r)), se(e) && se(n) ? (n.forEach(function(a, i) {
|
|
2732
|
-
if (
|
|
2732
|
+
if (Ut.call(e, i)) {
|
|
2733
2733
|
var s = e[i];
|
|
2734
2734
|
s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
|
|
2735
2735
|
} else
|
|
2736
2736
|
e[i] = a;
|
|
2737
2737
|
}), e) : Object.keys(n).reduce(function(a, i) {
|
|
2738
2738
|
var s = n[i];
|
|
2739
|
-
return
|
|
2739
|
+
return Ut.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2740
2740
|
}, o);
|
|
2741
2741
|
}, Al = function(e, n) {
|
|
2742
2742
|
return Object.keys(n).reduce(function(r, o) {
|
|
@@ -2852,13 +2852,13 @@ function() {
|
|
|
2852
2852
|
strictNullHandling: !1
|
|
2853
2853
|
}, Dl = function(e) {
|
|
2854
2854
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2855
|
-
}, jt = {}, Il = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h,
|
|
2856
|
-
for (var g = e, D =
|
|
2857
|
-
var
|
|
2858
|
-
if (T += 1, typeof
|
|
2859
|
-
if (
|
|
2855
|
+
}, jt = {}, Il = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, O) {
|
|
2856
|
+
for (var g = e, D = O, T = 0, L = !1; (D = D.get(jt)) !== void 0 && !L; ) {
|
|
2857
|
+
var M = D.get(e);
|
|
2858
|
+
if (T += 1, typeof M < "u") {
|
|
2859
|
+
if (M === T)
|
|
2860
2860
|
throw new RangeError("Cyclic object value");
|
|
2861
|
-
|
|
2861
|
+
L = !0;
|
|
2862
2862
|
}
|
|
2863
2863
|
typeof D.get(jt) > "u" && (T = 0);
|
|
2864
2864
|
}
|
|
@@ -2866,38 +2866,38 @@ function() {
|
|
|
2866
2866
|
return X instanceof Date ? v(X) : X;
|
|
2867
2867
|
})), g === null) {
|
|
2868
2868
|
if (i)
|
|
2869
|
-
return l && !h ? l(n, I.encoder,
|
|
2869
|
+
return l && !h ? l(n, I.encoder, S, "key", y) : n;
|
|
2870
2870
|
g = "";
|
|
2871
2871
|
}
|
|
2872
2872
|
if (Dl(g) || Qe.isBuffer(g)) {
|
|
2873
2873
|
if (l) {
|
|
2874
|
-
var W = h ? n : l(n, I.encoder,
|
|
2875
|
-
return [m(W) + "=" + m(l(g, I.encoder,
|
|
2874
|
+
var W = h ? n : l(n, I.encoder, S, "key", y);
|
|
2875
|
+
return [m(W) + "=" + m(l(g, I.encoder, S, "value", y))];
|
|
2876
2876
|
}
|
|
2877
2877
|
return [m(n) + "=" + m(String(g))];
|
|
2878
2878
|
}
|
|
2879
2879
|
var J = [];
|
|
2880
2880
|
if (typeof g > "u")
|
|
2881
2881
|
return J;
|
|
2882
|
-
var
|
|
2882
|
+
var A;
|
|
2883
2883
|
if (r === "comma" && te(g))
|
|
2884
|
-
h && l && (g = Qe.maybeMap(g, l)),
|
|
2884
|
+
h && l && (g = Qe.maybeMap(g, l)), A = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2885
2885
|
else if (te(c))
|
|
2886
|
-
|
|
2886
|
+
A = c;
|
|
2887
2887
|
else {
|
|
2888
|
-
var
|
|
2889
|
-
|
|
2888
|
+
var P = Object.keys(g);
|
|
2889
|
+
A = p ? P.sort(p) : P;
|
|
2890
2890
|
}
|
|
2891
2891
|
var $ = u ? String(n).replace(/\./g, "%2E") : String(n), x = o && te(g) && g.length === 1 ? $ + "[]" : $;
|
|
2892
2892
|
if (a && te(g) && g.length === 0)
|
|
2893
2893
|
return x + "[]";
|
|
2894
|
-
for (var N = 0; N <
|
|
2895
|
-
var w =
|
|
2894
|
+
for (var N = 0; N < A.length; ++N) {
|
|
2895
|
+
var w = A[N], H = typeof w == "object" && w && typeof w.value < "u" ? w.value : g[w];
|
|
2896
2896
|
if (!(s && H === null)) {
|
|
2897
2897
|
var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), j = te(g) ? typeof r == "function" ? r(x, B) : x : x + (d ? "." + B : "[" + B + "]");
|
|
2898
|
-
|
|
2898
|
+
O.set(e, T);
|
|
2899
2899
|
var K = to();
|
|
2900
|
-
K.set(jt,
|
|
2900
|
+
K.set(jt, O), no(J, t(
|
|
2901
2901
|
H,
|
|
2902
2902
|
j,
|
|
2903
2903
|
r,
|
|
@@ -2914,7 +2914,7 @@ function() {
|
|
|
2914
2914
|
y,
|
|
2915
2915
|
m,
|
|
2916
2916
|
h,
|
|
2917
|
-
|
|
2917
|
+
S,
|
|
2918
2918
|
K
|
|
2919
2919
|
));
|
|
2920
2920
|
}
|
|
@@ -2965,7 +2965,7 @@ function() {
|
|
|
2965
2965
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2966
2966
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling
|
|
2967
2967
|
};
|
|
2968
|
-
},
|
|
2968
|
+
}, Ll = function(t, e) {
|
|
2969
2969
|
var n = t, r = kl(e), o, a;
|
|
2970
2970
|
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : te(r.filter) && (a = r.filter, o = a);
|
|
2971
2971
|
var i = [];
|
|
@@ -3020,7 +3020,7 @@ function() {
|
|
|
3020
3020
|
strictDepth: !1,
|
|
3021
3021
|
strictNullHandling: !1,
|
|
3022
3022
|
throwOnLimitExceeded: !1
|
|
3023
|
-
},
|
|
3023
|
+
}, Ml = function(t) {
|
|
3024
3024
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
3025
3025
|
return String.fromCharCode(parseInt(n, 10));
|
|
3026
3026
|
});
|
|
@@ -3030,7 +3030,7 @@ function() {
|
|
|
3030
3030
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
3031
3031
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3032
3032
|
return t;
|
|
3033
|
-
},
|
|
3033
|
+
}, Ul = "utf8=%26%2310003%3B", Bl = "utf8=%E2%9C%93", jl = function(e, n) {
|
|
3034
3034
|
var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
3035
3035
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3036
3036
|
var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
|
|
@@ -3042,7 +3042,7 @@ function() {
|
|
|
3042
3042
|
var s = -1, u, l = n.charset;
|
|
3043
3043
|
if (n.charsetSentinel)
|
|
3044
3044
|
for (u = 0; u < i.length; ++u)
|
|
3045
|
-
i[u].indexOf("utf8=") === 0 && (i[u] === Bl ? l = "utf-8" : i[u] ===
|
|
3045
|
+
i[u].indexOf("utf8=") === 0 && (i[u] === Bl ? l = "utf-8" : i[u] === Ul && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3046
3046
|
for (u = 0; u < i.length; ++u)
|
|
3047
3047
|
if (u !== s) {
|
|
3048
3048
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
@@ -3055,7 +3055,7 @@ function() {
|
|
|
3055
3055
|
function(h) {
|
|
3056
3056
|
return n.decoder(h, _.decoder, l, "value");
|
|
3057
3057
|
}
|
|
3058
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y =
|
|
3058
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = Ml(String(y))), c.indexOf("[]=") > -1 && (y = an(y) ? [y] : y);
|
|
3059
3059
|
var m = er.call(r, v);
|
|
3060
3060
|
m && n.duplicates === "combine" ? r[v] = de.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3061
3061
|
}
|
|
@@ -3148,7 +3148,7 @@ function() {
|
|
|
3148
3148
|
o = de.merge(o, u, n);
|
|
3149
3149
|
}
|
|
3150
3150
|
return n.allowSparse === !0 ? o : de.compact(o);
|
|
3151
|
-
}, Kl =
|
|
3151
|
+
}, Kl = Ll, Gl = Wl, Jl = ur, Vl = {
|
|
3152
3152
|
formats: Jl,
|
|
3153
3153
|
parse: Gl,
|
|
3154
3154
|
stringify: Kl
|
|
@@ -3263,37 +3263,37 @@ const fr = Xe(), ao = fr.sso ?? !0, ec = fr.i18n ?? !0, io = fr.noRedireLogin ??
|
|
|
3263
3263
|
var n;
|
|
3264
3264
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3265
3265
|
}, oc = async (t, e) => {
|
|
3266
|
-
var
|
|
3267
|
-
let n = ((
|
|
3266
|
+
var p, d, v, y, m, h;
|
|
3267
|
+
let n = ((p = t.response) == null ? void 0 : p.status) || 500, r = (d = t.response) == null ? void 0 : d.message, o = {};
|
|
3268
3268
|
const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
|
|
3269
|
-
let i = ((
|
|
3270
|
-
const s = ho("code") || "", u =
|
|
3271
|
-
if (!s &&
|
|
3269
|
+
let i = ((v = t == null ? void 0 : t.response) == null ? void 0 : v.data) || {};
|
|
3270
|
+
const s = ho("code") || "", u = (e == null ? void 0 : e.noRedireLogin) ?? ((y = t == null ? void 0 : t.config) == null ? void 0 : y.noRedireLogin), c = !((t == null ? void 0 : t.__skipLoginRedirect) === !0) && !(u ?? io);
|
|
3271
|
+
if (!s && c && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3272
3272
|
ao ? mo({ ...go, redirect_uri: vo }) : so(), o = i;
|
|
3273
3273
|
else {
|
|
3274
3274
|
if (t.response) {
|
|
3275
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3276
|
-
const
|
|
3277
|
-
|
|
3275
|
+
if (i instanceof Blob && (i = await new Promise((S) => {
|
|
3276
|
+
const O = new FileReader();
|
|
3277
|
+
O.readAsText(i, "utf-8"), O.onload = () => {
|
|
3278
3278
|
try {
|
|
3279
|
-
|
|
3279
|
+
S(JSON.parse(O.result || "{}"));
|
|
3280
3280
|
} catch {
|
|
3281
|
-
|
|
3281
|
+
S({ code: 400, msg: C("blob解析错误") });
|
|
3282
3282
|
}
|
|
3283
3283
|
};
|
|
3284
3284
|
})), i.code) {
|
|
3285
3285
|
n = i.code;
|
|
3286
|
-
const
|
|
3287
|
-
if (ec &&
|
|
3288
|
-
const
|
|
3289
|
-
r = !(i != null && i.data) || !i.data.length ? C(
|
|
3286
|
+
const S = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3287
|
+
if (ec && S) {
|
|
3288
|
+
const O = (i == null ? void 0 : i.status) ?? "";
|
|
3289
|
+
r = !(i != null && i.data) || !i.data.length ? C(O) : C(O, ...i.data);
|
|
3290
3290
|
} else
|
|
3291
3291
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3292
3292
|
o = i;
|
|
3293
3293
|
}
|
|
3294
3294
|
r || (r = a[t.response.status] || t.message);
|
|
3295
3295
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("请求配置异常");
|
|
3296
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3296
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((h = (m = window.DasMessage) == null ? void 0 : m.error) == null || h.call(m, { message: r, showClose: !0 }));
|
|
3297
3297
|
}
|
|
3298
3298
|
return { ...o, code: n, msg: r, error: t };
|
|
3299
3299
|
}, b = (t, e) => {
|
|
@@ -3357,43 +3357,43 @@ const pc = pr.get("token"), dc = pr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3357
3357
|
const m = () => {
|
|
3358
3358
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
3359
3359
|
}, h = async () => {
|
|
3360
|
-
const [
|
|
3361
|
-
return
|
|
3362
|
-
},
|
|
3360
|
+
const [A, P] = await pc().run();
|
|
3361
|
+
return A ? { stauts: !1 } : { status: !0, data: P };
|
|
3362
|
+
}, S = (A) => new Promise((P, $) => {
|
|
3363
3363
|
const N = [];
|
|
3364
3364
|
let w = 0;
|
|
3365
|
-
for (; w <
|
|
3366
|
-
const B =
|
|
3365
|
+
for (; w < A.size; ) {
|
|
3366
|
+
const B = A.slice(w, w + 1048576);
|
|
3367
3367
|
N.push(B), w += 1048576;
|
|
3368
3368
|
}
|
|
3369
|
-
const H = new Blob(N, { type:
|
|
3370
|
-
|
|
3371
|
-
}),
|
|
3369
|
+
const H = new Blob(N, { type: A.type });
|
|
3370
|
+
P(H);
|
|
3371
|
+
}), O = async (A, P, $, x = !0, N = "", w = !1) => {
|
|
3372
3372
|
var hr, mr;
|
|
3373
|
-
d = N, v.value = "import", x && (r.value = "normal", n.value = 0, e.value = C("导入进度"), t.value = !0, i.value = ""), y =
|
|
3373
|
+
d = N, v.value = "import", x && (r.value = "normal", n.value = 0, e.value = C("导入进度"), t.value = !0, i.value = ""), y = P;
|
|
3374
3374
|
const H = await h();
|
|
3375
3375
|
if (!H.status) return;
|
|
3376
|
-
let B = H.data, j = null, { autoContentType: K, bucketName: X, importFileName:
|
|
3376
|
+
let B = H.data, j = null, { autoContentType: K, bucketName: X, importFileName: Ue } = $;
|
|
3377
3377
|
const lo = w ? yc : dc;
|
|
3378
3378
|
if (w) {
|
|
3379
3379
|
let oe = [];
|
|
3380
|
-
await
|
|
3381
|
-
let vt = await
|
|
3380
|
+
await P.forEach(async (Be) => {
|
|
3381
|
+
let vt = await S(Be);
|
|
3382
3382
|
oe.push(vt);
|
|
3383
|
-
}), j = new FormData(), j.append("accessKeyId", B.accessKeyId), j.append("secretAccessKey", B.secretAccessKey), j.append("sessionToken", B.sessionToken), j.append("bucketName", X),
|
|
3383
|
+
}), j = new FormData(), j.append("accessKeyId", B.accessKeyId), j.append("secretAccessKey", B.secretAccessKey), j.append("sessionToken", B.sessionToken), j.append("bucketName", X), P.forEach((Be, vt) => {
|
|
3384
3384
|
j.append("file", oe[vt]);
|
|
3385
|
-
}),
|
|
3385
|
+
}), Ue.forEach((Be) => {
|
|
3386
3386
|
j.append("filePaths", Be);
|
|
3387
3387
|
});
|
|
3388
3388
|
} else {
|
|
3389
|
-
const oe = await
|
|
3389
|
+
const oe = await S(P);
|
|
3390
3390
|
j = {
|
|
3391
3391
|
accessKeyId: B.accessKeyId,
|
|
3392
3392
|
secretAccessKey: B.secretAccessKey,
|
|
3393
3393
|
sessionToken: B.sessionToken,
|
|
3394
3394
|
file: oe,
|
|
3395
3395
|
bucketName: X,
|
|
3396
|
-
filePath:
|
|
3396
|
+
filePath: Ue,
|
|
3397
3397
|
autoContentType: K
|
|
3398
3398
|
};
|
|
3399
3399
|
}
|
|
@@ -3408,7 +3408,7 @@ const pc = pr.get("token"), dc = pr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3408
3408
|
});
|
|
3409
3409
|
return;
|
|
3410
3410
|
}
|
|
3411
|
-
const mt = await (
|
|
3411
|
+
const mt = await (A == null ? void 0 : A(Y));
|
|
3412
3412
|
if (x) {
|
|
3413
3413
|
if (!mt.status) {
|
|
3414
3414
|
t.value = !1, r.value = "error";
|
|
@@ -3423,74 +3423,74 @@ const pc = pr.get("token"), dc = pr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3423
3423
|
repeatNum: 1
|
|
3424
3424
|
});
|
|
3425
3425
|
}
|
|
3426
|
-
}, g = async (
|
|
3426
|
+
}, g = async (A, P = "", $ = "") => {
|
|
3427
3427
|
r.value = "normal", n.value = 0, e.value = $ || C("导出进度"), t.value = !0;
|
|
3428
|
-
const x = await (
|
|
3428
|
+
const x = await (A == null ? void 0 : A());
|
|
3429
3429
|
if (!x.status) {
|
|
3430
3430
|
t.value = !1, r.value = "error";
|
|
3431
3431
|
return;
|
|
3432
3432
|
}
|
|
3433
3433
|
T(x.taskId, "action", "");
|
|
3434
|
-
}, D = async (
|
|
3434
|
+
}, D = async (A, P = "", $ = "", x = !0) => {
|
|
3435
3435
|
v.value = "export", x && (r.value = "normal", n.value = 0, e.value = C("导出进度"), t.value = !0);
|
|
3436
|
-
const N = await (
|
|
3436
|
+
const N = await (A == null ? void 0 : A());
|
|
3437
3437
|
if (!N.status) {
|
|
3438
3438
|
t.value = !1, r.value = "error";
|
|
3439
3439
|
return;
|
|
3440
3440
|
}
|
|
3441
|
-
ot().format("YYYYMMDDHHmmss") + "", T(N.taskId, "export",
|
|
3442
|
-
}, T = async (
|
|
3443
|
-
o.value = !0,
|
|
3441
|
+
ot().format("YYYYMMDDHHmmss") + "", T(N.taskId, "export", P || "", $);
|
|
3442
|
+
}, T = async (A, P, $, x = "") => {
|
|
3443
|
+
o.value = !0, M(A, P, $, x), a = setTimeout(() => {
|
|
3444
3444
|
}, 50);
|
|
3445
|
-
},
|
|
3445
|
+
}, L = () => {
|
|
3446
3446
|
clearTimeout(a), a = null, t.value = !1;
|
|
3447
|
-
},
|
|
3447
|
+
}, M = async (A, P = "export", $, x = "") => {
|
|
3448
3448
|
var H, B, j;
|
|
3449
3449
|
const [N, w] = await hc("", {
|
|
3450
|
-
url: `progress/${
|
|
3450
|
+
url: `progress/${A}`
|
|
3451
3451
|
}).run();
|
|
3452
3452
|
if (N) {
|
|
3453
3453
|
o.value = !1;
|
|
3454
3454
|
return;
|
|
3455
3455
|
}
|
|
3456
3456
|
if (n.value = w.percentage, n.value == 100)
|
|
3457
|
-
if (i.value = w, o.value = !1,
|
|
3457
|
+
if (i.value = w, o.value = !1, L(), P == "export")
|
|
3458
3458
|
if (w.status == 1) {
|
|
3459
3459
|
r.value = "success";
|
|
3460
3460
|
let K = await vr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3461
3461
|
const X = ((H = K == null ? void 0 : K.split("/")) == null ? void 0 : H.pop()) || "";
|
|
3462
|
-
let
|
|
3463
|
-
sn(`${Xe().baseURL}/oss${w.filePath}`,
|
|
3464
|
-
} else w.status == 2 && (l.value = w.message || (
|
|
3462
|
+
let Ue = $ || X;
|
|
3463
|
+
sn(`${Xe().baseURL}/oss${w.filePath}`, Ue, x), o.value = !1;
|
|
3464
|
+
} else w.status == 2 && (l.value = w.message || (P == "export" ? C("导出失败") : C("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
3465
3465
|
message: l.value,
|
|
3466
3466
|
grouping: !0,
|
|
3467
3467
|
repeatNum: 1
|
|
3468
3468
|
}));
|
|
3469
|
-
else if (
|
|
3469
|
+
else if (P == "import") {
|
|
3470
3470
|
if (w.filePath) {
|
|
3471
3471
|
r.value = "error", c.value = !0;
|
|
3472
3472
|
let K = await vr(`/oss/${w == null ? void 0 : w.filePath}`);
|
|
3473
3473
|
const X = ((j = K == null ? void 0 : K.split("/")) == null ? void 0 : j.pop()) || "";
|
|
3474
3474
|
s.value = d || X, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Xe().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
|
|
3475
3475
|
}
|
|
3476
|
-
W(w.status,
|
|
3477
|
-
} else
|
|
3476
|
+
W(w.status, P, w.message);
|
|
3477
|
+
} else P == "action" && (r.value = "success");
|
|
3478
3478
|
else
|
|
3479
3479
|
a && w.status != 2 ? a = setTimeout(() => {
|
|
3480
|
-
|
|
3481
|
-
}, 50) : (i.value = w, o.value = !1, W(w.status,
|
|
3482
|
-
}, W = (
|
|
3480
|
+
M(A, P, $, x);
|
|
3481
|
+
}, 50) : (i.value = w, o.value = !1, W(w.status, P, w.message), L(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
|
|
3482
|
+
}, W = (A, P = "export", $) => {
|
|
3483
3483
|
var x, N, w;
|
|
3484
|
-
|
|
3485
|
-
message:
|
|
3484
|
+
A == 1 ? (r.value = "success", (x = window.DasMessage) == null || x.success({
|
|
3485
|
+
message: P == "export" ? C("导出成功") : C("导入成功"),
|
|
3486
3486
|
grouping: !0,
|
|
3487
3487
|
repeatNum: 1
|
|
3488
|
-
}), s.value = "", u.value = "", l.value = "") :
|
|
3489
|
-
message: $ || (
|
|
3488
|
+
}), s.value = "", u.value = "", l.value = "") : A == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
|
|
3489
|
+
message: $ || (P == "export" ? C("导出失败") : C("导入失败")),
|
|
3490
3490
|
grouping: !0,
|
|
3491
3491
|
repeatNum: 1
|
|
3492
|
-
}), l.value = $ || C("部分数据校验不通过,请下载附件并修改,重新导入!")) :
|
|
3493
|
-
message:
|
|
3492
|
+
}), l.value = $ || C("部分数据校验不通过,请下载附件并修改,重新导入!")) : A == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
3493
|
+
message: P == "export" ? C("部分导出失败") : C("部分导入失败"),
|
|
3494
3494
|
grouping: !0,
|
|
3495
3495
|
repeatNum: 1
|
|
3496
3496
|
}));
|
|
@@ -3507,12 +3507,12 @@ const pc = pr.get("token"), dc = pr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3507
3507
|
errorMessage: l,
|
|
3508
3508
|
errorImport: c,
|
|
3509
3509
|
errorFilePath: p,
|
|
3510
|
-
fileImport:
|
|
3510
|
+
fileImport: O,
|
|
3511
3511
|
fileExport: D,
|
|
3512
3512
|
fileAction: g,
|
|
3513
|
-
generateUniqueName: (
|
|
3514
|
-
const
|
|
3515
|
-
return `${
|
|
3513
|
+
generateUniqueName: (A) => {
|
|
3514
|
+
const P = A == null ? void 0 : A.match(/(.*?)(\.[^.]*$|$)/), $ = P.length ? P[2] : "";
|
|
3515
|
+
return `${P.length ? P[1] : A}${fc()}${$}`;
|
|
3516
3516
|
},
|
|
3517
3517
|
downloadFile: sn,
|
|
3518
3518
|
resetStataus: m,
|
|
@@ -3571,7 +3571,7 @@ const pc = pr.get("token"), dc = pr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3571
3571
|
list: b(`/api/project/${fe}/list`),
|
|
3572
3572
|
app: b(`/api/project/${fe}/app`),
|
|
3573
3573
|
people: b(`/api/project/${fe}/people`)
|
|
3574
|
-
}, Ec = "v1", Pu = b(`/api/portal/user/${Ec}`), Ac = "v1", xu = b(`/api/space-manage/space-tree/${Ac}`), ht = "v1", Tu = b(`/api/superadmin/portal/${ht}`), $u = b(`/api/superadmin/permission/${ht}`), Cu = b(`/api/superadmin/resource/${ht}`), _u = b(`/api/superadmin/license/${ht}`), yr = "v1", Nu = b(`/api/supply/supplier/${yr}`), Fu = b(`/api/supplier/${yr}`), Du = b(`/api/supplier/${yr}/classification`), Oc = "v1", Iu = b(`/api/supply/brand/${Oc}`), Rc = "v2", ku = b(`/api/tool/${Rc}`), Pc = "v1",
|
|
3574
|
+
}, Ec = "v1", Pu = b(`/api/portal/user/${Ec}`), Ac = "v1", xu = b(`/api/space-manage/space-tree/${Ac}`), ht = "v1", Tu = b(`/api/superadmin/portal/${ht}`), $u = b(`/api/superadmin/permission/${ht}`), Cu = b(`/api/superadmin/resource/${ht}`), _u = b(`/api/superadmin/license/${ht}`), yr = "v1", Nu = b(`/api/supply/supplier/${yr}`), Fu = b(`/api/supplier/${yr}`), Du = b(`/api/supplier/${yr}/classification`), Oc = "v1", Iu = b(`/api/supply/brand/${Oc}`), Rc = "v2", ku = b(`/api/tool/${Rc}`), Pc = "v1", Lu = b(`/api/system-config/${Pc}`);
|
|
3575
3575
|
ln(Ro);
|
|
3576
3576
|
export {
|
|
3577
3577
|
pu as analyApi,
|
|
@@ -3610,7 +3610,7 @@ export {
|
|
|
3610
3610
|
Nu as supplier,
|
|
3611
3611
|
Du as supplierClassification,
|
|
3612
3612
|
Fu as supplierManage,
|
|
3613
|
-
|
|
3613
|
+
Lu as systemConfiguration,
|
|
3614
3614
|
ku as tool,
|
|
3615
3615
|
du as useFile
|
|
3616
3616
|
};
|