@das-fed/upf-utils 6.4.0-dev.270 → 6.4.0-dev.272
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/es5.js +1682 -1653
- package/api-services/index.js +1366 -1339
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1103 -1098
- package/api-services/modules/app-manage/index.js +902 -911
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1147 -1118
- package/api-services/modules/authentication/index.js +951 -924
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1082 -1077
- package/api-services/modules/bems/index.js +876 -885
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +803 -786
- package/api-services/modules/contract/index.js +625 -616
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +800 -783
- package/api-services/modules/duty-manage/index.js +624 -615
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1147 -1118
- package/api-services/modules/enterpriseright/index.js +951 -924
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +924 -907
- package/api-services/modules/file/es5.js +948 -928
- package/api-services/modules/file/index.js +734 -721
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +829 -812
- package/api-services/modules/gateway-edge/index.js +648 -639
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +681 -672
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +810 -793
- package/api-services/modules/iot/index.js +631 -622
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1162 -1133
- package/api-services/modules/justauth/index.js +963 -936
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1120 -1115
- package/api-services/modules/knowledge/index.js +917 -926
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +768 -754
- package/api-services/modules/link/index.js +612 -607
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1120 -1115
- package/api-services/modules/permission/index.js +917 -926
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1253 -1224
- package/api-services/modules/platformManage/index.js +1039 -1012
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1120 -1115
- package/api-services/modules/portal/index.js +917 -926
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1138 -1109
- package/api-services/modules/space-manage/index.js +942 -915
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1124 -1119
- package/api-services/modules/super-admin/index.js +919 -928
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +806 -789
- package/api-services/modules/supplier/index.js +627 -618
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1147 -1118
- package/api-services/modules/supplychain-manage/index.js +951 -924
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +904 -884
- package/api-services/modules/systemConfiguration/index.js +709 -696
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1147 -1118
- package/api-services/modules/tool/index.js +951 -924
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1145 -1116
- package/api-services/src/create-service/index.js +950 -923
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1335 -1327
- package/common-info/getPermissionMethod/es5.js +1457 -1452
- package/common-info/getPermissionMethod/index.js +1212 -1221
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1103 -1108
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +25 -0
- package/common-tools/timezone-format/es5.js +545 -456
- package/common-tools/timezone-format/index.d.ts +25 -0
- package/common-tools/timezone-format/index.js +376 -326
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1146 -1117
- package/create-api-service/index.js +951 -924
- package/create-api-service/index.js.gz +0 -0
- package/curring-http/es5.js +406 -417
- package/curring-http/index.js +323 -321
- package/curring-http/index.js.gz +0 -0
- package/esm-map.json +7 -1
- package/package.json +3 -3
package/curring-http/index.js
CHANGED
|
@@ -162,8 +162,8 @@ const er = (e) => {
|
|
|
162
162
|
t[o] = r;
|
|
163
163
|
const i = J(r) ? [] : {};
|
|
164
164
|
return re(r, (s, a) => {
|
|
165
|
-
const
|
|
166
|
-
!k(
|
|
165
|
+
const d = n(s, o + 1);
|
|
166
|
+
!k(d) && (i[a] = d);
|
|
167
167
|
}), t[o] = void 0, i;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -237,10 +237,10 @@ const er = (e) => {
|
|
|
237
237
|
asap: rr,
|
|
238
238
|
isIterable: or
|
|
239
239
|
};
|
|
240
|
-
function
|
|
240
|
+
function y(e, t, n, r, o) {
|
|
241
241
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
242
242
|
}
|
|
243
|
-
c.inherits(
|
|
243
|
+
c.inherits(y, Error, {
|
|
244
244
|
toJSON: function() {
|
|
245
245
|
return {
|
|
246
246
|
// Standard
|
|
@@ -261,7 +261,7 @@ c.inherits(b, Error, {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
const It =
|
|
264
|
+
const It = y.prototype, Mt = {};
|
|
265
265
|
[
|
|
266
266
|
"ERR_BAD_OPTION_VALUE",
|
|
267
267
|
"ERR_BAD_OPTION",
|
|
@@ -279,15 +279,15 @@ const It = b.prototype, Mt = {};
|
|
|
279
279
|
].forEach((e) => {
|
|
280
280
|
Mt[e] = { value: e };
|
|
281
281
|
});
|
|
282
|
-
Object.defineProperties(
|
|
282
|
+
Object.defineProperties(y, Mt);
|
|
283
283
|
Object.defineProperty(It, "isAxiosError", { value: !0 });
|
|
284
|
-
|
|
284
|
+
y.from = (e, t, n, r, o, i) => {
|
|
285
285
|
const s = Object.create(It);
|
|
286
|
-
c.toFlatObject(e, s, function(
|
|
287
|
-
return
|
|
288
|
-
}, (
|
|
289
|
-
const a = e && e.message ? e.message : "Error",
|
|
290
|
-
return
|
|
286
|
+
c.toFlatObject(e, s, function(l) {
|
|
287
|
+
return l !== Error.prototype;
|
|
288
|
+
}, (f) => f !== "isAxiosError");
|
|
289
|
+
const a = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
290
|
+
return y.call(s, a, d, n, r, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
|
|
291
291
|
};
|
|
292
292
|
const sr = null;
|
|
293
293
|
function Ue(e) {
|
|
@@ -314,55 +314,55 @@ function Ee(e, t, n) {
|
|
|
314
314
|
metaTokens: !0,
|
|
315
315
|
dots: !1,
|
|
316
316
|
indexes: !1
|
|
317
|
-
}, !1, function(
|
|
318
|
-
return !c.isUndefined(m
|
|
317
|
+
}, !1, function(m, u) {
|
|
318
|
+
return !c.isUndefined(u[m]);
|
|
319
319
|
});
|
|
320
|
-
const r = n.metaTokens, o = n.visitor ||
|
|
320
|
+
const r = n.metaTokens, o = n.visitor || l, i = n.dots, s = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
|
|
321
321
|
if (!c.isFunction(o))
|
|
322
322
|
throw new TypeError("visitor must be a function");
|
|
323
|
-
function
|
|
324
|
-
if (
|
|
325
|
-
if (c.isDate(
|
|
326
|
-
return
|
|
327
|
-
if (c.isBoolean(
|
|
328
|
-
return
|
|
329
|
-
if (!
|
|
330
|
-
throw new
|
|
331
|
-
return c.isArrayBuffer(
|
|
332
|
-
}
|
|
333
|
-
function
|
|
334
|
-
let
|
|
335
|
-
if (
|
|
336
|
-
if (c.endsWith(
|
|
337
|
-
|
|
338
|
-
else if (c.isArray(
|
|
339
|
-
return
|
|
323
|
+
function f(p) {
|
|
324
|
+
if (p === null) return "";
|
|
325
|
+
if (c.isDate(p))
|
|
326
|
+
return p.toISOString();
|
|
327
|
+
if (c.isBoolean(p))
|
|
328
|
+
return p.toString();
|
|
329
|
+
if (!d && c.isBlob(p))
|
|
330
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
331
|
+
return c.isArrayBuffer(p) || c.isTypedArray(p) ? d && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
332
|
+
}
|
|
333
|
+
function l(p, m, u) {
|
|
334
|
+
let g = p;
|
|
335
|
+
if (p && !u && typeof p == "object") {
|
|
336
|
+
if (c.endsWith(m, "{}"))
|
|
337
|
+
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
338
|
+
else if (c.isArray(p) && ir(p) || (c.isFileList(p) || c.endsWith(m, "[]")) && (g = c.toArray(p)))
|
|
339
|
+
return m = Ht(m), g.forEach(function(w, R) {
|
|
340
340
|
!(c.isUndefined(w) || w === null) && t.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
s === !0 ? rt([
|
|
343
|
-
|
|
342
|
+
s === !0 ? rt([m], R, i) : s === null ? m : m + "[]",
|
|
343
|
+
f(w)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return Ue(
|
|
347
|
+
return Ue(p) ? !0 : (t.append(rt(u, m, i), f(p)), !1);
|
|
348
348
|
}
|
|
349
|
-
const h = [],
|
|
350
|
-
defaultVisitor:
|
|
351
|
-
convertValue:
|
|
349
|
+
const h = [], b = Object.assign(ar, {
|
|
350
|
+
defaultVisitor: l,
|
|
351
|
+
convertValue: f,
|
|
352
352
|
isVisitable: Ue
|
|
353
353
|
});
|
|
354
|
-
function O(
|
|
355
|
-
if (!c.isUndefined(
|
|
356
|
-
if (h.indexOf(
|
|
357
|
-
throw Error("Circular reference detected in " +
|
|
358
|
-
h.push(
|
|
359
|
-
(!(c.isUndefined(
|
|
354
|
+
function O(p, m) {
|
|
355
|
+
if (!c.isUndefined(p)) {
|
|
356
|
+
if (h.indexOf(p) !== -1)
|
|
357
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
358
|
+
h.push(p), c.forEach(p, function(g, S) {
|
|
359
|
+
(!(c.isUndefined(g) || g === null) && o.call(
|
|
360
360
|
t,
|
|
361
|
-
|
|
361
|
+
g,
|
|
362
362
|
c.isString(S) ? S.trim() : S,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
)) === !0 && O(
|
|
363
|
+
m,
|
|
364
|
+
b
|
|
365
|
+
)) === !0 && O(g, m ? m.concat(S) : [S]);
|
|
366
366
|
}), h.pop();
|
|
367
367
|
}
|
|
368
368
|
}
|
|
@@ -491,14 +491,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", mr
|
|
|
491
491
|
hasStandardBrowserWebWorkerEnv: hr,
|
|
492
492
|
navigator: De,
|
|
493
493
|
origin: mr
|
|
494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
494
|
+
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
495
495
|
...yr,
|
|
496
496
|
...dr
|
|
497
497
|
};
|
|
498
498
|
function br(e, t) {
|
|
499
|
-
return Ee(e, new
|
|
499
|
+
return Ee(e, new _.classes.URLSearchParams(), {
|
|
500
500
|
visitor: function(n, r, o, i) {
|
|
501
|
-
return
|
|
501
|
+
return _.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
503
503
|
...t
|
|
504
504
|
});
|
|
@@ -519,8 +519,8 @@ function Jt(e) {
|
|
|
519
519
|
function t(n, r, o, i) {
|
|
520
520
|
let s = n[i++];
|
|
521
521
|
if (s === "__proto__") return !0;
|
|
522
|
-
const a = Number.isFinite(+s),
|
|
523
|
-
return s = !s && c.isArray(o) ? o.length : s,
|
|
522
|
+
const a = Number.isFinite(+s), d = i >= n.length;
|
|
523
|
+
return s = !s && c.isArray(o) ? o.length : s, d ? (c.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !a) : ((!o[s] || !c.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && c.isArray(o[s]) && (o[s] = wr(o[s])), !a);
|
|
524
524
|
}
|
|
525
525
|
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
526
526
|
const n = {};
|
|
@@ -558,10 +558,10 @@ const oe = {
|
|
|
558
558
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
559
559
|
return br(t, this.formSerializer).toString();
|
|
560
560
|
if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
561
|
-
const
|
|
561
|
+
const d = this.env && this.env.FormData;
|
|
562
562
|
return Ee(
|
|
563
563
|
a ? { "files[]": t } : t,
|
|
564
|
-
|
|
564
|
+
d && new d(),
|
|
565
565
|
this.formSerializer
|
|
566
566
|
);
|
|
567
567
|
}
|
|
@@ -578,7 +578,7 @@ const oe = {
|
|
|
578
578
|
return JSON.parse(t, this.parseReviver);
|
|
579
579
|
} catch (a) {
|
|
580
580
|
if (s)
|
|
581
|
-
throw a.name === "SyntaxError" ?
|
|
581
|
+
throw a.name === "SyntaxError" ? y.from(a, y.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
return t;
|
|
@@ -593,8 +593,8 @@ const oe = {
|
|
|
593
593
|
maxContentLength: -1,
|
|
594
594
|
maxBodyLength: -1,
|
|
595
595
|
env: {
|
|
596
|
-
FormData:
|
|
597
|
-
Blob:
|
|
596
|
+
FormData: _.classes.FormData,
|
|
597
|
+
Blob: _.classes.Blob
|
|
598
598
|
},
|
|
599
599
|
validateStatus: function(t) {
|
|
600
600
|
return t >= 200 && t < 300;
|
|
@@ -679,24 +679,24 @@ class x {
|
|
|
679
679
|
}
|
|
680
680
|
set(t, n, r) {
|
|
681
681
|
const o = this;
|
|
682
|
-
function i(a,
|
|
683
|
-
const
|
|
684
|
-
if (!
|
|
682
|
+
function i(a, d, f) {
|
|
683
|
+
const l = Z(d);
|
|
684
|
+
if (!l)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
|
-
const h = c.findKey(o,
|
|
687
|
-
(!h || o[h] === void 0 ||
|
|
686
|
+
const h = c.findKey(o, l);
|
|
687
|
+
(!h || o[h] === void 0 || f === !0 || f === void 0 && o[h] !== !1) && (o[h || d] = de(a));
|
|
688
688
|
}
|
|
689
|
-
const s = (a,
|
|
689
|
+
const s = (a, d) => c.forEach(a, (f, l) => i(f, l, d));
|
|
690
690
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
691
691
|
s(t, n);
|
|
692
692
|
else if (c.isString(t) && (t = t.trim()) && !_r(t))
|
|
693
693
|
s(Or(t), n);
|
|
694
694
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
695
|
-
let a = {},
|
|
696
|
-
for (const
|
|
697
|
-
if (!c.isArray(
|
|
695
|
+
let a = {}, d, f;
|
|
696
|
+
for (const l of t) {
|
|
697
|
+
if (!c.isArray(l))
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
|
-
a[
|
|
699
|
+
a[f = l[0]] = (d = a[f]) ? c.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
|
|
700
700
|
}
|
|
701
701
|
s(a, n);
|
|
702
702
|
} else
|
|
@@ -821,16 +821,16 @@ function Vt(e) {
|
|
|
821
821
|
return !!(e && e.__CANCEL__);
|
|
822
822
|
}
|
|
823
823
|
function V(e, t, n) {
|
|
824
|
-
|
|
824
|
+
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
825
825
|
}
|
|
826
|
-
c.inherits(V,
|
|
826
|
+
c.inherits(V, y, {
|
|
827
827
|
__CANCEL__: !0
|
|
828
828
|
});
|
|
829
829
|
function Kt(e, t, n) {
|
|
830
830
|
const r = n.config.validateStatus;
|
|
831
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
831
|
+
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
832
832
|
"Request failed with status code " + n.status,
|
|
833
|
-
[
|
|
833
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
834
834
|
n.config,
|
|
835
835
|
n.request,
|
|
836
836
|
n
|
|
@@ -844,26 +844,26 @@ function Pr(e, t) {
|
|
|
844
844
|
e = e || 10;
|
|
845
845
|
const n = new Array(e), r = new Array(e);
|
|
846
846
|
let o = 0, i = 0, s;
|
|
847
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
848
|
-
const
|
|
849
|
-
s || (s =
|
|
850
|
-
let h = i,
|
|
847
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
848
|
+
const f = Date.now(), l = r[i];
|
|
849
|
+
s || (s = f), n[o] = d, r[o] = f;
|
|
850
|
+
let h = i, b = 0;
|
|
851
851
|
for (; h !== o; )
|
|
852
|
-
|
|
853
|
-
if (o = (o + 1) % e, o === i && (i = (i + 1) % e),
|
|
852
|
+
b += n[h++], h = h % e;
|
|
853
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), f - s < t)
|
|
854
854
|
return;
|
|
855
|
-
const O =
|
|
856
|
-
return O ? Math.round(
|
|
855
|
+
const O = l && f - l;
|
|
856
|
+
return O ? Math.round(b * 1e3 / O) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
function vr(e, t) {
|
|
860
860
|
let n = 0, r = 1e3 / t, o, i;
|
|
861
|
-
const s = (
|
|
862
|
-
n =
|
|
861
|
+
const s = (f, l = Date.now()) => {
|
|
862
|
+
n = l, o = null, i && (clearTimeout(i), i = null), e(...f);
|
|
863
863
|
};
|
|
864
|
-
return [(...
|
|
865
|
-
const
|
|
866
|
-
h >= r ? s(
|
|
864
|
+
return [(...f) => {
|
|
865
|
+
const l = Date.now(), h = l - n;
|
|
866
|
+
h >= r ? s(f, l) : (o = f, i || (i = setTimeout(() => {
|
|
867
867
|
i = null, s(o);
|
|
868
868
|
}, r - h)));
|
|
869
869
|
}, () => o && s(o)];
|
|
@@ -872,15 +872,15 @@ const he = (e, t, n = 3) => {
|
|
|
872
872
|
let r = 0;
|
|
873
873
|
const o = Pr(50, 250);
|
|
874
874
|
return vr((i) => {
|
|
875
|
-
const s = i.loaded, a = i.lengthComputable ? i.total : void 0,
|
|
875
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, d = s - r, f = o(d), l = s <= a;
|
|
876
876
|
r = s;
|
|
877
877
|
const h = {
|
|
878
878
|
loaded: s,
|
|
879
879
|
total: a,
|
|
880
880
|
progress: a ? s / a : void 0,
|
|
881
|
-
bytes:
|
|
882
|
-
rate:
|
|
883
|
-
estimated:
|
|
881
|
+
bytes: d,
|
|
882
|
+
rate: f || void 0,
|
|
883
|
+
estimated: f && a && l ? (a - s) / f : void 0,
|
|
884
884
|
event: i,
|
|
885
885
|
lengthComputable: a != null,
|
|
886
886
|
[t ? "download" : "upload"]: !0
|
|
@@ -894,10 +894,10 @@ const he = (e, t, n = 3) => {
|
|
|
894
894
|
total: e,
|
|
895
895
|
loaded: r
|
|
896
896
|
}), t[1]];
|
|
897
|
-
}, ct = (e) => (...t) => c.asap(() => e(...t)), Cr =
|
|
898
|
-
new URL(
|
|
899
|
-
|
|
900
|
-
) : () => !0, jr =
|
|
897
|
+
}, ct = (e) => (...t) => c.asap(() => e(...t)), Cr = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, _.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
898
|
+
new URL(_.origin),
|
|
899
|
+
_.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
|
|
900
|
+
) : () => !0, jr = _.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
903
|
write(e, t, n, r, o, i, s) {
|
|
@@ -940,32 +940,32 @@ const ut = (e) => e instanceof x ? { ...e } : e;
|
|
|
940
940
|
function M(e, t) {
|
|
941
941
|
t = t || {};
|
|
942
942
|
const n = {};
|
|
943
|
-
function r(
|
|
944
|
-
return c.isPlainObject(
|
|
945
|
-
}
|
|
946
|
-
function o(
|
|
947
|
-
if (c.isUndefined(
|
|
948
|
-
if (!c.isUndefined(
|
|
949
|
-
return r(void 0,
|
|
950
|
-
} else return r(
|
|
951
|
-
}
|
|
952
|
-
function i(
|
|
953
|
-
if (!c.isUndefined(
|
|
954
|
-
return r(void 0,
|
|
955
|
-
}
|
|
956
|
-
function s(
|
|
957
|
-
if (c.isUndefined(
|
|
958
|
-
if (!c.isUndefined(
|
|
959
|
-
return r(void 0,
|
|
960
|
-
} else return r(void 0,
|
|
961
|
-
}
|
|
962
|
-
function a(
|
|
943
|
+
function r(f, l, h, b) {
|
|
944
|
+
return c.isPlainObject(f) && c.isPlainObject(l) ? c.merge.call({ caseless: b }, f, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
|
|
945
|
+
}
|
|
946
|
+
function o(f, l, h, b) {
|
|
947
|
+
if (c.isUndefined(l)) {
|
|
948
|
+
if (!c.isUndefined(f))
|
|
949
|
+
return r(void 0, f, h, b);
|
|
950
|
+
} else return r(f, l, h, b);
|
|
951
|
+
}
|
|
952
|
+
function i(f, l) {
|
|
953
|
+
if (!c.isUndefined(l))
|
|
954
|
+
return r(void 0, l);
|
|
955
|
+
}
|
|
956
|
+
function s(f, l) {
|
|
957
|
+
if (c.isUndefined(l)) {
|
|
958
|
+
if (!c.isUndefined(f))
|
|
959
|
+
return r(void 0, f);
|
|
960
|
+
} else return r(void 0, l);
|
|
961
|
+
}
|
|
962
|
+
function a(f, l, h) {
|
|
963
963
|
if (h in t)
|
|
964
|
-
return r(
|
|
964
|
+
return r(f, l);
|
|
965
965
|
if (h in e)
|
|
966
|
-
return r(void 0,
|
|
966
|
+
return r(void 0, f);
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const d = {
|
|
969
969
|
url: i,
|
|
970
970
|
method: i,
|
|
971
971
|
data: i,
|
|
@@ -994,11 +994,11 @@ function M(e, t) {
|
|
|
994
994
|
socketPath: s,
|
|
995
995
|
responseEncoding: s,
|
|
996
996
|
validateStatus: a,
|
|
997
|
-
headers: (
|
|
997
|
+
headers: (f, l, h) => o(ut(f), ut(l), h, !0)
|
|
998
998
|
};
|
|
999
|
-
return c.forEach(Object.keys({ ...e, ...t }), function(
|
|
1000
|
-
const h =
|
|
1001
|
-
c.isUndefined(
|
|
999
|
+
return c.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1000
|
+
const h = d[l] || o, b = h(e[l], t[l], l);
|
|
1001
|
+
c.isUndefined(b) && h !== a || (n[l] = b);
|
|
1002
1002
|
}), n;
|
|
1003
1003
|
}
|
|
1004
1004
|
const Gt = (e) => {
|
|
@@ -1008,18 +1008,18 @@ const Gt = (e) => {
|
|
|
1008
1008
|
"Authorization",
|
|
1009
1009
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1010
1010
|
), c.isFormData(n)) {
|
|
1011
|
-
if (
|
|
1011
|
+
if (_.hasStandardBrowserEnv || _.hasStandardBrowserWebWorkerEnv)
|
|
1012
1012
|
s.setContentType(void 0);
|
|
1013
1013
|
else if (c.isFunction(n.getHeaders)) {
|
|
1014
|
-
const
|
|
1015
|
-
Object.entries(
|
|
1016
|
-
|
|
1014
|
+
const d = n.getHeaders(), f = ["content-type", "content-length"];
|
|
1015
|
+
Object.entries(d).forEach(([l, h]) => {
|
|
1016
|
+
f.includes(l.toLowerCase()) && s.set(l, h);
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
if (
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1020
|
+
if (_.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && Cr(t.url))) {
|
|
1021
|
+
const d = o && i && jr.read(i);
|
|
1022
|
+
d && s.set(o, d);
|
|
1023
1023
|
}
|
|
1024
1024
|
return t;
|
|
1025
1025
|
}, Ur = typeof XMLHttpRequest < "u", Dr = Ur && function(e) {
|
|
@@ -1027,81 +1027,81 @@ const Gt = (e) => {
|
|
|
1027
1027
|
const o = Gt(e);
|
|
1028
1028
|
let i = o.data;
|
|
1029
1029
|
const s = x.from(o.headers).normalize();
|
|
1030
|
-
let { responseType: a, onUploadProgress:
|
|
1031
|
-
function
|
|
1032
|
-
O && O(),
|
|
1030
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = o, l, h, b, O, p;
|
|
1031
|
+
function m() {
|
|
1032
|
+
O && O(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
1033
1033
|
}
|
|
1034
|
-
let
|
|
1035
|
-
|
|
1036
|
-
function
|
|
1037
|
-
if (!
|
|
1034
|
+
let u = new XMLHttpRequest();
|
|
1035
|
+
u.open(o.method.toUpperCase(), o.url, !0), u.timeout = o.timeout;
|
|
1036
|
+
function g() {
|
|
1037
|
+
if (!u)
|
|
1038
1038
|
return;
|
|
1039
1039
|
const w = x.from(
|
|
1040
|
-
"getAllResponseHeaders" in
|
|
1040
|
+
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
1041
1041
|
), v = {
|
|
1042
|
-
data: !a || a === "text" || a === "json" ?
|
|
1043
|
-
status:
|
|
1044
|
-
statusText:
|
|
1042
|
+
data: !a || a === "text" || a === "json" ? u.responseText : u.response,
|
|
1043
|
+
status: u.status,
|
|
1044
|
+
statusText: u.statusText,
|
|
1045
1045
|
headers: w,
|
|
1046
1046
|
config: e,
|
|
1047
|
-
request:
|
|
1047
|
+
request: u
|
|
1048
1048
|
};
|
|
1049
1049
|
Kt(function(P) {
|
|
1050
|
-
n(P),
|
|
1050
|
+
n(P), m();
|
|
1051
1051
|
}, function(P) {
|
|
1052
|
-
r(P),
|
|
1053
|
-
}, v),
|
|
1052
|
+
r(P), m();
|
|
1053
|
+
}, v), u = null;
|
|
1054
1054
|
}
|
|
1055
|
-
"onloadend" in
|
|
1056
|
-
!
|
|
1057
|
-
},
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1060
|
-
const v =
|
|
1061
|
-
L.event =
|
|
1062
|
-
},
|
|
1063
|
-
let
|
|
1055
|
+
"onloadend" in u ? u.onloadend = g : u.onreadystatechange = function() {
|
|
1056
|
+
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1057
|
+
}, u.onabort = function() {
|
|
1058
|
+
u && (r(new y("Request aborted", y.ECONNABORTED, e, u)), u = null);
|
|
1059
|
+
}, u.onerror = function(R) {
|
|
1060
|
+
const v = R && R.message ? R.message : "Network Error", L = new y(v, y.ERR_NETWORK, e, u);
|
|
1061
|
+
L.event = R || null, r(L), u = null;
|
|
1062
|
+
}, u.ontimeout = function() {
|
|
1063
|
+
let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1064
1064
|
const v = o.transitional || kt;
|
|
1065
|
-
o.timeoutErrorMessage && (
|
|
1066
|
-
|
|
1067
|
-
v.clarifyTimeoutError ?
|
|
1065
|
+
o.timeoutErrorMessage && (R = o.timeoutErrorMessage), r(new y(
|
|
1066
|
+
R,
|
|
1067
|
+
v.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1068
1068
|
e,
|
|
1069
|
-
|
|
1070
|
-
)),
|
|
1071
|
-
}, i === void 0 && s.setContentType(null), "setRequestHeader" in
|
|
1072
|
-
|
|
1073
|
-
}), c.isUndefined(o.withCredentials) || (
|
|
1074
|
-
|
|
1075
|
-
}, o.cancelToken && o.cancelToken.subscribe(
|
|
1069
|
+
u
|
|
1070
|
+
)), u = null;
|
|
1071
|
+
}, i === void 0 && s.setContentType(null), "setRequestHeader" in u && c.forEach(s.toJSON(), function(R, v) {
|
|
1072
|
+
u.setRequestHeader(v, R);
|
|
1073
|
+
}), c.isUndefined(o.withCredentials) || (u.withCredentials = !!o.withCredentials), a && a !== "json" && (u.responseType = o.responseType), f && ([b, p] = he(f, !0), u.addEventListener("progress", b)), d && u.upload && ([h, O] = he(d), u.upload.addEventListener("progress", h), u.upload.addEventListener("loadend", O)), (o.cancelToken || o.signal) && (l = (w) => {
|
|
1074
|
+
u && (r(!w || w.type ? new V(null, e, u) : w), u.abort(), u = null);
|
|
1075
|
+
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1076
1076
|
const S = xr(o.url);
|
|
1077
|
-
if (S &&
|
|
1078
|
-
r(new
|
|
1077
|
+
if (S && _.protocols.indexOf(S) === -1) {
|
|
1078
|
+
r(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
|
-
|
|
1081
|
+
u.send(i || null);
|
|
1082
1082
|
});
|
|
1083
1083
|
}, Lr = (e, t) => {
|
|
1084
1084
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1085
1085
|
if (t || n) {
|
|
1086
1086
|
let r = new AbortController(), o;
|
|
1087
|
-
const i = function(
|
|
1087
|
+
const i = function(f) {
|
|
1088
1088
|
if (!o) {
|
|
1089
1089
|
o = !0, a();
|
|
1090
|
-
const
|
|
1091
|
-
r.abort(
|
|
1090
|
+
const l = f instanceof Error ? f : this.reason;
|
|
1091
|
+
r.abort(l instanceof y ? l : new V(l instanceof Error ? l.message : l));
|
|
1092
1092
|
}
|
|
1093
1093
|
};
|
|
1094
1094
|
let s = t && setTimeout(() => {
|
|
1095
|
-
s = null, i(new
|
|
1095
|
+
s = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1096
1096
|
}, t);
|
|
1097
1097
|
const a = () => {
|
|
1098
|
-
e && (s && clearTimeout(s), s = null, e.forEach((
|
|
1099
|
-
|
|
1098
|
+
e && (s && clearTimeout(s), s = null, e.forEach((f) => {
|
|
1099
|
+
f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
|
|
1100
1100
|
}), e = null);
|
|
1101
1101
|
};
|
|
1102
|
-
e.forEach((
|
|
1103
|
-
const { signal:
|
|
1104
|
-
return
|
|
1102
|
+
e.forEach((f) => f.addEventListener("abort", i));
|
|
1103
|
+
const { signal: d } = r;
|
|
1104
|
+
return d.unsubscribe = () => c.asap(a), d;
|
|
1105
1105
|
}
|
|
1106
1106
|
}, Br = function* (e, t) {
|
|
1107
1107
|
let n = e.byteLength;
|
|
@@ -1133,29 +1133,29 @@ const Gt = (e) => {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
}, lt = (e, t, n, r) => {
|
|
1135
1135
|
const o = $r(e, t);
|
|
1136
|
-
let i = 0, s, a = (
|
|
1137
|
-
s || (s = !0, r && r(
|
|
1136
|
+
let i = 0, s, a = (d) => {
|
|
1137
|
+
s || (s = !0, r && r(d));
|
|
1138
1138
|
};
|
|
1139
1139
|
return new ReadableStream({
|
|
1140
|
-
async pull(
|
|
1140
|
+
async pull(d) {
|
|
1141
1141
|
try {
|
|
1142
|
-
const { done:
|
|
1143
|
-
if (
|
|
1144
|
-
a(),
|
|
1142
|
+
const { done: f, value: l } = await o.next();
|
|
1143
|
+
if (f) {
|
|
1144
|
+
a(), d.close();
|
|
1145
1145
|
return;
|
|
1146
1146
|
}
|
|
1147
|
-
let h =
|
|
1147
|
+
let h = l.byteLength;
|
|
1148
1148
|
if (n) {
|
|
1149
|
-
let
|
|
1150
|
-
n(
|
|
1149
|
+
let b = i += h;
|
|
1150
|
+
n(b);
|
|
1151
1151
|
}
|
|
1152
|
-
|
|
1153
|
-
} catch (
|
|
1154
|
-
throw a(
|
|
1152
|
+
d.enqueue(new Uint8Array(l));
|
|
1153
|
+
} catch (f) {
|
|
1154
|
+
throw a(f), f;
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
|
-
cancel(
|
|
1158
|
-
return a(
|
|
1157
|
+
cancel(d) {
|
|
1158
|
+
return a(d), o.return();
|
|
1159
1159
|
}
|
|
1160
1160
|
}, {
|
|
1161
1161
|
highWaterMark: 2
|
|
@@ -1179,95 +1179,95 @@ const Gt = (e) => {
|
|
|
1179
1179
|
const { fetch: t, Request: n, Response: r } = e, o = t ? le(t) : typeof fetch == "function", i = le(n), s = le(r);
|
|
1180
1180
|
if (!o)
|
|
1181
1181
|
return !1;
|
|
1182
|
-
const a = o && le(dt),
|
|
1183
|
-
let
|
|
1184
|
-
const
|
|
1182
|
+
const a = o && le(dt), d = o && (typeof pt == "function" ? /* @__PURE__ */ ((p) => (m) => p.encode(m))(new pt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), f = i && a && ht(() => {
|
|
1183
|
+
let p = !1;
|
|
1184
|
+
const m = new n(_.origin, {
|
|
1185
1185
|
body: new dt(),
|
|
1186
1186
|
method: "POST",
|
|
1187
1187
|
get duplex() {
|
|
1188
|
-
return
|
|
1188
|
+
return p = !0, "half";
|
|
1189
1189
|
}
|
|
1190
1190
|
}).headers.has("Content-Type");
|
|
1191
|
-
return
|
|
1192
|
-
}),
|
|
1193
|
-
stream:
|
|
1191
|
+
return p && !m;
|
|
1192
|
+
}), l = s && a && ht(() => c.isReadableStream(new r("").body)), h = {
|
|
1193
|
+
stream: l && ((p) => p.body)
|
|
1194
1194
|
};
|
|
1195
|
-
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
1196
|
-
!h[
|
|
1197
|
-
let
|
|
1198
|
-
if (
|
|
1199
|
-
return
|
|
1200
|
-
throw new
|
|
1195
|
+
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
1196
|
+
!h[p] && (h[p] = (m, u) => {
|
|
1197
|
+
let g = m && m[p];
|
|
1198
|
+
if (g)
|
|
1199
|
+
return g.call(m);
|
|
1200
|
+
throw new y(`Response type '${p}' is not supported`, y.ERR_NOT_SUPPORT, u);
|
|
1201
1201
|
});
|
|
1202
1202
|
});
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1203
|
+
const b = async (p) => {
|
|
1204
|
+
if (p == null)
|
|
1205
1205
|
return 0;
|
|
1206
|
-
if (c.isBlob(
|
|
1207
|
-
return
|
|
1208
|
-
if (c.isSpecCompliantForm(
|
|
1209
|
-
return (await new n(
|
|
1206
|
+
if (c.isBlob(p))
|
|
1207
|
+
return p.size;
|
|
1208
|
+
if (c.isSpecCompliantForm(p))
|
|
1209
|
+
return (await new n(_.origin, {
|
|
1210
1210
|
method: "POST",
|
|
1211
|
-
body:
|
|
1211
|
+
body: p
|
|
1212
1212
|
}).arrayBuffer()).byteLength;
|
|
1213
|
-
if (c.isArrayBufferView(
|
|
1214
|
-
return
|
|
1215
|
-
if (c.isURLSearchParams(
|
|
1216
|
-
return (await
|
|
1217
|
-
}, O = async (
|
|
1218
|
-
const
|
|
1219
|
-
return
|
|
1213
|
+
if (c.isArrayBufferView(p) || c.isArrayBuffer(p))
|
|
1214
|
+
return p.byteLength;
|
|
1215
|
+
if (c.isURLSearchParams(p) && (p = p + ""), c.isString(p))
|
|
1216
|
+
return (await d(p)).byteLength;
|
|
1217
|
+
}, O = async (p, m) => {
|
|
1218
|
+
const u = c.toFiniteNumber(p.getContentLength());
|
|
1219
|
+
return u ?? b(m);
|
|
1220
1220
|
};
|
|
1221
|
-
return async (
|
|
1221
|
+
return async (p) => {
|
|
1222
1222
|
let {
|
|
1223
|
-
url:
|
|
1224
|
-
method:
|
|
1225
|
-
data:
|
|
1223
|
+
url: m,
|
|
1224
|
+
method: u,
|
|
1225
|
+
data: g,
|
|
1226
1226
|
signal: S,
|
|
1227
1227
|
cancelToken: w,
|
|
1228
|
-
timeout:
|
|
1228
|
+
timeout: R,
|
|
1229
1229
|
onDownloadProgress: v,
|
|
1230
1230
|
onUploadProgress: L,
|
|
1231
1231
|
responseType: P,
|
|
1232
1232
|
headers: Ae,
|
|
1233
1233
|
withCredentials: ie = "same-origin",
|
|
1234
1234
|
fetchOptions: Xe
|
|
1235
|
-
} = Gt(
|
|
1235
|
+
} = Gt(p), Ze = t || fetch;
|
|
1236
1236
|
P = P ? (P + "").toLowerCase() : "text";
|
|
1237
|
-
let ae = Lr([S, w && w.toAbortSignal()],
|
|
1237
|
+
let ae = Lr([S, w && w.toAbortSignal()], R), X = null;
|
|
1238
1238
|
const B = ae && ae.unsubscribe && (() => {
|
|
1239
1239
|
ae.unsubscribe();
|
|
1240
1240
|
});
|
|
1241
1241
|
let Qe;
|
|
1242
1242
|
try {
|
|
1243
|
-
if (L &&
|
|
1244
|
-
let D = new n(
|
|
1243
|
+
if (L && f && u !== "get" && u !== "head" && (Qe = await O(Ae, g)) !== 0) {
|
|
1244
|
+
let D = new n(m, {
|
|
1245
1245
|
method: "POST",
|
|
1246
|
-
body:
|
|
1246
|
+
body: g,
|
|
1247
1247
|
duplex: "half"
|
|
1248
1248
|
}), q;
|
|
1249
|
-
if (c.isFormData(
|
|
1249
|
+
if (c.isFormData(g) && (q = D.headers.get("content-type")) && Ae.setContentType(q), D.body) {
|
|
1250
1250
|
const [xe, ce] = at(
|
|
1251
1251
|
Qe,
|
|
1252
1252
|
he(ct(L))
|
|
1253
1253
|
);
|
|
1254
|
-
|
|
1254
|
+
g = lt(D.body, ft, xe, ce);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
c.isString(ie) || (ie = ie ? "include" : "omit");
|
|
1258
1258
|
const j = i && "credentials" in n.prototype, Ye = {
|
|
1259
1259
|
...Xe,
|
|
1260
1260
|
signal: ae,
|
|
1261
|
-
method:
|
|
1261
|
+
method: u.toUpperCase(),
|
|
1262
1262
|
headers: Ae.normalize().toJSON(),
|
|
1263
|
-
body:
|
|
1263
|
+
body: g,
|
|
1264
1264
|
duplex: "half",
|
|
1265
1265
|
credentials: j ? ie : void 0
|
|
1266
1266
|
};
|
|
1267
|
-
X = i && new n(
|
|
1268
|
-
let U = await (i ? Ze(X, Xe) : Ze(
|
|
1269
|
-
const et =
|
|
1270
|
-
if (
|
|
1267
|
+
X = i && new n(m, Ye);
|
|
1268
|
+
let U = await (i ? Ze(X, Xe) : Ze(m, Ye));
|
|
1269
|
+
const et = l && (P === "stream" || P === "response");
|
|
1270
|
+
if (l && (v || et && B)) {
|
|
1271
1271
|
const D = {};
|
|
1272
1272
|
["status", "statusText", "headers"].forEach((tt) => {
|
|
1273
1273
|
D[tt] = U[tt];
|
|
@@ -1284,24 +1284,24 @@ const Gt = (e) => {
|
|
|
1284
1284
|
);
|
|
1285
1285
|
}
|
|
1286
1286
|
P = P || "text";
|
|
1287
|
-
let gn = await h[c.findKey(h, P) || "text"](U,
|
|
1287
|
+
let gn = await h[c.findKey(h, P) || "text"](U, p);
|
|
1288
1288
|
return !et && B && B(), await new Promise((D, q) => {
|
|
1289
1289
|
Kt(D, q, {
|
|
1290
1290
|
data: gn,
|
|
1291
1291
|
headers: x.from(U.headers),
|
|
1292
1292
|
status: U.status,
|
|
1293
1293
|
statusText: U.statusText,
|
|
1294
|
-
config:
|
|
1294
|
+
config: p,
|
|
1295
1295
|
request: X
|
|
1296
1296
|
});
|
|
1297
1297
|
});
|
|
1298
1298
|
} catch (j) {
|
|
1299
1299
|
throw B && B(), j && j.name === "TypeError" && /Load failed|fetch/i.test(j.message) ? Object.assign(
|
|
1300
|
-
new
|
|
1300
|
+
new y("Network Error", y.ERR_NETWORK, p, X),
|
|
1301
1301
|
{
|
|
1302
1302
|
cause: j.cause || j
|
|
1303
1303
|
}
|
|
1304
|
-
) :
|
|
1304
|
+
) : y.from(j, j && j.code, p, X);
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
1307
|
}, zr = /* @__PURE__ */ new Map(), Xt = (e) => {
|
|
@@ -1311,10 +1311,10 @@ const Gt = (e) => {
|
|
|
1311
1311
|
o,
|
|
1312
1312
|
n
|
|
1313
1313
|
];
|
|
1314
|
-
let s = i.length, a = s, f, l
|
|
1314
|
+
let s = i.length, a = s, d, f, l = zr;
|
|
1315
1315
|
for (; a--; )
|
|
1316
|
-
|
|
1317
|
-
return
|
|
1316
|
+
d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() : Hr(t)), l = f;
|
|
1317
|
+
return f;
|
|
1318
1318
|
};
|
|
1319
1319
|
Xt();
|
|
1320
1320
|
const ke = {
|
|
@@ -1343,19 +1343,19 @@ function kr(e, t) {
|
|
|
1343
1343
|
r = e[s];
|
|
1344
1344
|
let a;
|
|
1345
1345
|
if (o = r, !qr(r) && (o = ke[(a = String(r)).toLowerCase()], o === void 0))
|
|
1346
|
-
throw new
|
|
1346
|
+
throw new y(`Unknown adapter '${a}'`);
|
|
1347
1347
|
if (o && (c.isFunction(o) || (o = o.get(t))))
|
|
1348
1348
|
break;
|
|
1349
1349
|
i[a || "#" + s] = o;
|
|
1350
1350
|
}
|
|
1351
1351
|
if (!o) {
|
|
1352
1352
|
const s = Object.entries(i).map(
|
|
1353
|
-
([
|
|
1353
|
+
([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1354
1354
|
);
|
|
1355
1355
|
let a = n ? s.length > 1 ? `since :
|
|
1356
1356
|
` + s.map(mt).join(`
|
|
1357
1357
|
`) : " " + mt(s[0]) : "as no adapter specified";
|
|
1358
|
-
throw new
|
|
1358
|
+
throw new y(
|
|
1359
1359
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1360
1360
|
"ERR_NOT_SUPPORT"
|
|
1361
1361
|
);
|
|
@@ -1409,9 +1409,9 @@ Se.transitional = function(t, n, r) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
return (i, s, a) => {
|
|
1411
1411
|
if (t === !1)
|
|
1412
|
-
throw new
|
|
1412
|
+
throw new y(
|
|
1413
1413
|
o(s, " has been removed" + (n ? " in " + n : "")),
|
|
1414
|
-
|
|
1414
|
+
y.ERR_DEPRECATED
|
|
1415
1415
|
);
|
|
1416
1416
|
return n && !bt[s] && (bt[s] = !0), t ? t(i, s, a) : !0;
|
|
1417
1417
|
};
|
|
@@ -1421,19 +1421,19 @@ Se.spelling = function(t) {
|
|
|
1421
1421
|
};
|
|
1422
1422
|
function Jr(e, t, n) {
|
|
1423
1423
|
if (typeof e != "object")
|
|
1424
|
-
throw new
|
|
1424
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1425
1425
|
const r = Object.keys(e);
|
|
1426
1426
|
let o = r.length;
|
|
1427
1427
|
for (; o-- > 0; ) {
|
|
1428
1428
|
const i = r[o], s = t[i];
|
|
1429
1429
|
if (s) {
|
|
1430
|
-
const a = e[i],
|
|
1431
|
-
if (
|
|
1432
|
-
throw new
|
|
1430
|
+
const a = e[i], d = a === void 0 || s(a, i, e);
|
|
1431
|
+
if (d !== !0)
|
|
1432
|
+
throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
|
|
1433
1433
|
continue;
|
|
1434
1434
|
}
|
|
1435
1435
|
if (n !== !0)
|
|
1436
|
-
throw new
|
|
1436
|
+
throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
const pe = {
|
|
@@ -1494,45 +1494,45 @@ class I {
|
|
|
1494
1494
|
);
|
|
1495
1495
|
i && c.forEach(
|
|
1496
1496
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1497
|
-
(
|
|
1498
|
-
delete i[
|
|
1497
|
+
(p) => {
|
|
1498
|
+
delete i[p];
|
|
1499
1499
|
}
|
|
1500
1500
|
), n.headers = x.concat(s, i);
|
|
1501
1501
|
const a = [];
|
|
1502
|
-
let
|
|
1503
|
-
this.interceptors.request.forEach(function(
|
|
1504
|
-
typeof
|
|
1502
|
+
let d = !0;
|
|
1503
|
+
this.interceptors.request.forEach(function(m) {
|
|
1504
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, a.unshift(m.fulfilled, m.rejected));
|
|
1505
1505
|
});
|
|
1506
|
-
const
|
|
1507
|
-
this.interceptors.response.forEach(function(
|
|
1508
|
-
|
|
1506
|
+
const f = [];
|
|
1507
|
+
this.interceptors.response.forEach(function(m) {
|
|
1508
|
+
f.push(m.fulfilled, m.rejected);
|
|
1509
1509
|
});
|
|
1510
|
-
let
|
|
1511
|
-
if (!
|
|
1512
|
-
const
|
|
1513
|
-
for (
|
|
1514
|
-
|
|
1515
|
-
return
|
|
1510
|
+
let l, h = 0, b;
|
|
1511
|
+
if (!d) {
|
|
1512
|
+
const p = [yt.bind(this), void 0];
|
|
1513
|
+
for (p.unshift(...a), p.push(...f), b = p.length, l = Promise.resolve(n); h < b; )
|
|
1514
|
+
l = l.then(p[h++], p[h++]);
|
|
1515
|
+
return l;
|
|
1516
1516
|
}
|
|
1517
|
-
|
|
1517
|
+
b = a.length;
|
|
1518
1518
|
let O = n;
|
|
1519
|
-
for (; h <
|
|
1520
|
-
const
|
|
1519
|
+
for (; h < b; ) {
|
|
1520
|
+
const p = a[h++], m = a[h++];
|
|
1521
1521
|
try {
|
|
1522
|
-
O =
|
|
1523
|
-
} catch (
|
|
1524
|
-
|
|
1522
|
+
O = p(O);
|
|
1523
|
+
} catch (u) {
|
|
1524
|
+
m.call(this, u);
|
|
1525
1525
|
break;
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
try {
|
|
1529
|
-
|
|
1530
|
-
} catch (
|
|
1531
|
-
return Promise.reject(
|
|
1529
|
+
l = yt.call(this, O);
|
|
1530
|
+
} catch (p) {
|
|
1531
|
+
return Promise.reject(p);
|
|
1532
1532
|
}
|
|
1533
|
-
for (h = 0,
|
|
1534
|
-
|
|
1535
|
-
return
|
|
1533
|
+
for (h = 0, b = f.length; h < b; )
|
|
1534
|
+
l = l.then(f[h++], f[h++]);
|
|
1535
|
+
return l;
|
|
1536
1536
|
}
|
|
1537
1537
|
getUri(t) {
|
|
1538
1538
|
t = M(this.defaults, t);
|
|
@@ -1732,7 +1732,7 @@ T.CancelToken = Je;
|
|
|
1732
1732
|
T.isCancel = Vt;
|
|
1733
1733
|
T.VERSION = Qt;
|
|
1734
1734
|
T.toFormData = Ee;
|
|
1735
|
-
T.AxiosError =
|
|
1735
|
+
T.AxiosError = y;
|
|
1736
1736
|
T.Cancel = T.CanceledError;
|
|
1737
1737
|
T.all = function(t) {
|
|
1738
1738
|
return Promise.all(t);
|
|
@@ -1989,8 +1989,8 @@ function Be(e, t, n) {
|
|
|
1989
1989
|
function Zo(e) {
|
|
1990
1990
|
return function(t, n, r) {
|
|
1991
1991
|
for (var o = -1, i = Object(t), s = r(t), a = s.length; a--; ) {
|
|
1992
|
-
var
|
|
1993
|
-
if (n(i[
|
|
1992
|
+
var d = s[++o];
|
|
1993
|
+
if (n(i[d], d, i) === !1)
|
|
1994
1994
|
break;
|
|
1995
1995
|
}
|
|
1996
1996
|
return t;
|
|
@@ -2107,8 +2107,8 @@ function Qs(e, t, n, r) {
|
|
|
2107
2107
|
var o = !n;
|
|
2108
2108
|
n || (n = {});
|
|
2109
2109
|
for (var i = -1, s = t.length; ++i < s; ) {
|
|
2110
|
-
var a = t[i],
|
|
2111
|
-
|
|
2110
|
+
var a = t[i], d = void 0;
|
|
2111
|
+
d === void 0 && (d = e[a]), o ? We(n, a, d) : Zs(n, a, d);
|
|
2112
2112
|
}
|
|
2113
2113
|
return n;
|
|
2114
2114
|
}
|
|
@@ -2123,13 +2123,13 @@ function hn(e, t) {
|
|
|
2123
2123
|
return t = t ?? ei, !!t && (n == "number" || n != "symbol" && ti.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
2124
2124
|
}
|
|
2125
2125
|
function ni(e, t) {
|
|
2126
|
-
var n = Ie(e), r = !n && $e(e), o = !n && !r && ln(e), i = !n && !r && !o && pn(e), s = n || r || o || i, a = s ? Ys(e.length, String) : [],
|
|
2127
|
-
for (var
|
|
2126
|
+
var n = Ie(e), r = !n && $e(e), o = !n && !r && ln(e), i = !n && !r && !o && pn(e), s = n || r || o || i, a = s ? Ys(e.length, String) : [], d = a.length;
|
|
2127
|
+
for (var f in e)
|
|
2128
2128
|
s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2129
|
-
(
|
|
2130
|
-
o && (
|
|
2131
|
-
i && (
|
|
2132
|
-
hn(
|
|
2129
|
+
(f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2130
|
+
o && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2131
|
+
i && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
|
|
2132
|
+
hn(f, d)) || a.push(f);
|
|
2133
2133
|
return a;
|
|
2134
2134
|
}
|
|
2135
2135
|
function ri(e) {
|
|
@@ -2155,17 +2155,17 @@ function ai(e) {
|
|
|
2155
2155
|
return Qs(e, mn(e));
|
|
2156
2156
|
}
|
|
2157
2157
|
function ci(e, t, n, r, o, i, s) {
|
|
2158
|
-
var a = Me(e, n),
|
|
2159
|
-
if (
|
|
2160
|
-
Be(e, n,
|
|
2158
|
+
var a = Me(e, n), d = Me(t, n), f = s.get(d);
|
|
2159
|
+
if (f) {
|
|
2160
|
+
Be(e, n, f);
|
|
2161
2161
|
return;
|
|
2162
2162
|
}
|
|
2163
|
-
var
|
|
2163
|
+
var l = i ? i(a, d, n + "", e, t, s) : void 0, h = l === void 0;
|
|
2164
2164
|
if (h) {
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2165
|
+
var b = Ie(d), O = !b && ln(d), p = !b && !O && pn(d);
|
|
2166
|
+
l = d, b || O || p ? Ie(a) ? l = a : ds(a) ? l = rs(a) : O ? (h = !1, l = es(d)) : p ? (h = !1, l = ns(d)) : l = [] : Ss(d) || $e(d) ? (l = a, $e(a) ? l = ai(a) : (!z(a) || Ve(a)) && (l = as(d))) : h = !1;
|
|
2167
2167
|
}
|
|
2168
|
-
h && (s.set(
|
|
2168
|
+
h && (s.set(d, l), o(l, d, r, i, s), s.delete(d)), Be(e, n, l);
|
|
2169
2169
|
}
|
|
2170
2170
|
function yn(e, t, n, r, o) {
|
|
2171
2171
|
e !== t && Qo(t, function(i, s) {
|
|
@@ -2253,39 +2253,41 @@ var Ct = Ei(function(e, t, n) {
|
|
|
2253
2253
|
yn(e, t, n);
|
|
2254
2254
|
});
|
|
2255
2255
|
const Oi = (e, t) => {
|
|
2256
|
-
const n = (r, o) => (i, s) => (a,
|
|
2257
|
-
const
|
|
2256
|
+
const n = (r, o) => (i, s) => (a, d) => {
|
|
2257
|
+
const f = ue(!1), l = ue(null), h = ue(null), b = ue(null);
|
|
2258
2258
|
return {
|
|
2259
|
-
loading:
|
|
2260
|
-
error:
|
|
2259
|
+
loading: f,
|
|
2260
|
+
error: l,
|
|
2261
2261
|
data: h,
|
|
2262
|
-
run: async (
|
|
2263
|
-
|
|
2264
|
-
let
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2262
|
+
run: async (p, m) => {
|
|
2263
|
+
f.value = !0, l.value = null, h.value = null, b.value = new AbortController();
|
|
2264
|
+
let u = null;
|
|
2265
|
+
try {
|
|
2266
|
+
e || (e = T.create());
|
|
2267
|
+
let g = "";
|
|
2268
|
+
typeof i == "string" && (g = i), wn(i) && (g = i.value), u = {
|
|
2269
|
+
method: r,
|
|
2270
|
+
url: g,
|
|
2271
|
+
headers: {}
|
|
2272
|
+
}, p && (a = p), u.method === "get" || u.method === "delete" ? u.params = a : u.data = a, u.method !== "get" && (u.params = {
|
|
2273
|
+
...u.params,
|
|
2274
|
+
timestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
2275
|
+
}), s && (u = await s(u)), d && (u = Ct(u, d)), m && (u = Ct(u, m)), t && (u = await t(u)), u.axiosInstance && (e = u.axiosInstance), u.urlPrefix && (u.baseURL = u.baseURL + u.urlPrefix), u.signal || (u.signal = b.value.signal), u != null && u.beforeRun && (u = await (u == null ? void 0 : u.beforeRun(u)));
|
|
2276
|
+
const S = await e(u);
|
|
2275
2277
|
let w = (S == null ? void 0 : S.data) ?? S;
|
|
2276
|
-
return
|
|
2277
|
-
}
|
|
2278
|
-
if (
|
|
2279
|
-
const
|
|
2280
|
-
typeof
|
|
2278
|
+
return u.onSuccess && (w = await u.onSuccess(S, u)), h.value = w, [null, w];
|
|
2279
|
+
} catch (g) {
|
|
2280
|
+
if (u != null && u.signal) {
|
|
2281
|
+
const w = u.signal.reason;
|
|
2282
|
+
typeof w == "string" && (g.abortReason = w || "");
|
|
2281
2283
|
}
|
|
2282
|
-
let
|
|
2283
|
-
return
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
}
|
|
2284
|
+
let S = g;
|
|
2285
|
+
return u != null && u.onError && (S = await u.onError(g, u)), u != null && u.onCustomError && (S = await u.onCustomError(g, u)), l.value = S, [S, null];
|
|
2286
|
+
} finally {
|
|
2287
|
+
f.value = !1, u != null && u.finally && u.finally(u);
|
|
2288
|
+
}
|
|
2287
2289
|
},
|
|
2288
|
-
abortController:
|
|
2290
|
+
abortController: b
|
|
2289
2291
|
};
|
|
2290
2292
|
};
|
|
2291
2293
|
return {
|