@das-fed/utils 7.0.5-test.21 → 7.0.5-test.22
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 +1034 -1035
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +786 -766
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +851 -853
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +204 -188
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +851 -853
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +856 -858
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +780 -768
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +178 -162
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +192 -176
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +643 -626
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1100 -1102
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.d.ts +1 -1
- package/api-services/modules/justauth/index.js +758 -723
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +755 -721
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +851 -853
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +851 -853
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +276 -260
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +851 -853
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +755 -721
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +207 -191
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +199 -183
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +192 -176
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +192 -176
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +720 -708
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +848 -846
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +308 -292
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +533 -498
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.d.ts +19 -0
- package/create-api-service/thirdLogout/index.js +1834 -0
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/create-api-service/unauthorized-recovery/index.d.ts +30 -0
- package/create-api-service/unauthorized-recovery/index.js +10 -0
- package/curring-http/type.d.ts +93 -87
- package/esm-map.json +8 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setI18nRule as qn, currentLang as jn, t as G } from "@das-fed/web/packages/i18n/index";
|
|
2
|
-
import { curringHttp as
|
|
3
|
-
import { getToken as
|
|
2
|
+
import { curringHttp as zn } from "@das-fed/utils/curring-http";
|
|
3
|
+
import { getToken as Hn, getQuery as Wn, login as Gn, real_uri as Jn, getTokenParams as Vn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Mt from "dayjs";
|
|
5
5
|
import Kn from "dayjs/plugin/utc";
|
|
6
6
|
import Qn from "dayjs/plugin/timezone";
|
|
@@ -12,7 +12,7 @@ function kr(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: eo } = Object.prototype, { getPrototypeOf: kt } = Object, { iterator:
|
|
15
|
+
const { toString: eo } = Object.prototype, { getPrototypeOf: kt } = Object, { iterator: He, toStringTag: qr } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = eo.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Ge = (t) => (e) => typeof e === t, { isArray: ce } = Array, we = Ge("undefined");
|
|
@@ -24,11 +24,11 @@ function to(t) {
|
|
|
24
24
|
let e;
|
|
25
25
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && jr(t.buffer), e;
|
|
26
26
|
}
|
|
27
|
-
const ro = Ge("string"), F = Ge("function"),
|
|
27
|
+
const ro = Ge("string"), F = Ge("function"), zr = Ge("number"), Ee = (t) => t !== null && typeof t == "object", no = (t) => t === !0 || t === !1, Fe = (t) => {
|
|
28
28
|
if (We(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = kt(t);
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(qr in t) && !(
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(qr in t) && !(He in t);
|
|
32
32
|
}, oo = (t) => {
|
|
33
33
|
if (!Ee(t) || Se(t))
|
|
34
34
|
return !1;
|
|
@@ -58,7 +58,7 @@ function Ae(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
58
58
|
s = a[r], e.call(null, t[s], s, t);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Hr(t, e) {
|
|
62
62
|
if (Se(t))
|
|
63
63
|
return null;
|
|
64
64
|
e = e.toLowerCase();
|
|
@@ -72,7 +72,7 @@ function zr(t, e) {
|
|
|
72
72
|
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Wr = (t) => !we(t) && t !== Q;
|
|
73
73
|
function Pt() {
|
|
74
74
|
const { caseless: t } = Wr(this) && this || {}, e = {}, n = (r, o) => {
|
|
75
|
-
const a = t &&
|
|
75
|
+
const a = t && Hr(e, o) || o;
|
|
76
76
|
Fe(e[a]) && Fe(r) ? e[a] = Pt(e[a], r) : Fe(r) ? e[a] = Pt({}, r) : ce(r) ? e[a] = r.slice() : e[a] = r;
|
|
77
77
|
};
|
|
78
78
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
@@ -103,13 +103,13 @@ const vo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
103
103
|
if (!t) return null;
|
|
104
104
|
if (ce(t)) return t;
|
|
105
105
|
let e = t.length;
|
|
106
|
-
if (!
|
|
106
|
+
if (!zr(e)) return null;
|
|
107
107
|
const n = new Array(e);
|
|
108
108
|
for (; e-- > 0; )
|
|
109
109
|
n[e] = t[e];
|
|
110
110
|
return n;
|
|
111
111
|
}, Oo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && kt(Uint8Array)), Ro = (t, e) => {
|
|
112
|
-
const r = (t && t[
|
|
112
|
+
const r = (t && t[He]).call(t);
|
|
113
113
|
let o;
|
|
114
114
|
for (; (o = r.next()) && !o.done; ) {
|
|
115
115
|
const a = o.value;
|
|
@@ -157,7 +157,7 @@ const vo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
157
157
|
}, Fo = () => {
|
|
158
158
|
}, $o = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function Do(t) {
|
|
160
|
-
return !!(t && F(t.append) && t[qr] === "FormData" && t[
|
|
160
|
+
return !!(t && F(t.append) && t[qr] === "FormData" && t[He]);
|
|
161
161
|
}
|
|
162
162
|
const Io = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -178,21 +178,21 @@ const Io = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
}, Bo = I("AsyncFunction"),
|
|
181
|
+
}, Bo = I("AsyncFunction"), Uo = (t) => t && (Ee(t) || F(t)) && F(t.then) && F(t.catch), Jr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
182
182
|
o === Q && a === n && r.length && r.shift()();
|
|
183
183
|
}, !1), (o) => {
|
|
184
184
|
r.push(o), Q.postMessage(n, "*");
|
|
185
185
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
186
186
|
typeof setImmediate == "function",
|
|
187
187
|
F(Q.postMessage)
|
|
188
|
-
),
|
|
188
|
+
), Lo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Jr, Mo = (t) => t != null && F(t[He]), f = {
|
|
189
189
|
isArray: ce,
|
|
190
190
|
isArrayBuffer: jr,
|
|
191
191
|
isBuffer: Se,
|
|
192
192
|
isFormData: uo,
|
|
193
193
|
isArrayBufferView: to,
|
|
194
194
|
isString: ro,
|
|
195
|
-
isNumber:
|
|
195
|
+
isNumber: zr,
|
|
196
196
|
isBoolean: no,
|
|
197
197
|
isObject: Ee,
|
|
198
198
|
isPlainObject: Fe,
|
|
@@ -234,15 +234,15 @@ const Io = (t) => {
|
|
|
234
234
|
toCamelCase: xo,
|
|
235
235
|
noop: Fo,
|
|
236
236
|
toFiniteNumber: $o,
|
|
237
|
-
findKey:
|
|
237
|
+
findKey: Hr,
|
|
238
238
|
global: Q,
|
|
239
239
|
isContextDefined: Wr,
|
|
240
240
|
isSpecCompliantForm: Do,
|
|
241
241
|
toJSONObject: Io,
|
|
242
242
|
isAsyncFn: Bo,
|
|
243
|
-
isThenable:
|
|
243
|
+
isThenable: Uo,
|
|
244
244
|
setImmediate: Jr,
|
|
245
|
-
asap:
|
|
245
|
+
asap: Lo,
|
|
246
246
|
isIterable: Mo
|
|
247
247
|
};
|
|
248
248
|
function w(t, e, n, r, o) {
|
|
@@ -342,11 +342,11 @@ function Je(t, e, n) {
|
|
|
342
342
|
if (f.endsWith(m, "{}"))
|
|
343
343
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
344
344
|
else if (f.isArray(y) && qo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
345
|
-
return m = Qr(m), S.forEach(function(
|
|
346
|
-
!(f.isUndefined(
|
|
345
|
+
return m = Qr(m), S.forEach(function(g, T) {
|
|
346
|
+
!(f.isUndefined(g) || g === null) && e.append(
|
|
347
347
|
// eslint-disable-next-line no-nested-ternary
|
|
348
348
|
i === !0 ? Zt([m], T, a) : i === null ? m : m + "[]",
|
|
349
|
-
l(
|
|
349
|
+
l(g)
|
|
350
350
|
);
|
|
351
351
|
}), !1;
|
|
352
352
|
}
|
|
@@ -357,7 +357,7 @@ function Je(t, e, n) {
|
|
|
357
357
|
convertValue: l,
|
|
358
358
|
isVisitable: Tt
|
|
359
359
|
});
|
|
360
|
-
function
|
|
360
|
+
function v(y, m) {
|
|
361
361
|
if (!f.isUndefined(y)) {
|
|
362
362
|
if (p.indexOf(y) !== -1)
|
|
363
363
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -368,13 +368,13 @@ function Je(t, e, n) {
|
|
|
368
368
|
f.isString(E) ? E.trim() : E,
|
|
369
369
|
m,
|
|
370
370
|
d
|
|
371
|
-
)) === !0 &&
|
|
371
|
+
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
372
372
|
}), p.pop();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
if (!f.isObject(t))
|
|
376
376
|
throw new TypeError("data must be an object");
|
|
377
|
-
return
|
|
377
|
+
return v(t), e;
|
|
378
378
|
}
|
|
379
379
|
function Yt(t) {
|
|
380
380
|
const e = {
|
|
@@ -405,13 +405,13 @@ Xr.toString = function(e) {
|
|
|
405
405
|
return n(o[0]) + "=" + n(o[1]);
|
|
406
406
|
}, "").join("&");
|
|
407
407
|
};
|
|
408
|
-
function
|
|
408
|
+
function zo(t) {
|
|
409
409
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
410
410
|
}
|
|
411
411
|
function Zr(t, e, n) {
|
|
412
412
|
if (!e)
|
|
413
413
|
return t;
|
|
414
|
-
const r = n && n.encode ||
|
|
414
|
+
const r = n && n.encode || zo;
|
|
415
415
|
f.isFunction(n) && (n = {
|
|
416
416
|
serialize: n
|
|
417
417
|
});
|
|
@@ -481,10 +481,10 @@ const Yr = {
|
|
|
481
481
|
silentJSONParsing: !0,
|
|
482
482
|
forcedJSONParsing: !0,
|
|
483
483
|
clarifyTimeoutError: !1
|
|
484
|
-
},
|
|
484
|
+
}, Ho = typeof URLSearchParams < "u" ? URLSearchParams : qt, Wo = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Jo = {
|
|
485
485
|
isBrowser: !0,
|
|
486
486
|
classes: {
|
|
487
|
-
URLSearchParams:
|
|
487
|
+
URLSearchParams: Ho,
|
|
488
488
|
FormData: Wo,
|
|
489
489
|
Blob: Go
|
|
490
490
|
},
|
|
@@ -858,8 +858,8 @@ function ca(t, e) {
|
|
|
858
858
|
d += n[p++], p = p % t;
|
|
859
859
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
860
860
|
return;
|
|
861
|
-
const
|
|
862
|
-
return
|
|
861
|
+
const v = c && l - c;
|
|
862
|
+
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function ua(t, e) {
|
|
@@ -874,7 +874,7 @@ function ua(t, e) {
|
|
|
874
874
|
}, r - p)));
|
|
875
875
|
}, () => o && i(o)];
|
|
876
876
|
}
|
|
877
|
-
const
|
|
877
|
+
const Le = (t, e, n = 3) => {
|
|
878
878
|
let r = 0;
|
|
879
879
|
const o = ca(50, 250);
|
|
880
880
|
return ua((a) => {
|
|
@@ -1031,22 +1031,22 @@ const on = (t) => {
|
|
|
1031
1031
|
const o = on(t);
|
|
1032
1032
|
let a = o.data;
|
|
1033
1033
|
const i = $.from(o.headers).normalize();
|
|
1034
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d,
|
|
1034
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, v, y;
|
|
1035
1035
|
function m() {
|
|
1036
|
-
|
|
1036
|
+
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1037
1037
|
}
|
|
1038
1038
|
let h = new XMLHttpRequest();
|
|
1039
1039
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1040
1040
|
function S() {
|
|
1041
1041
|
if (!h)
|
|
1042
1042
|
return;
|
|
1043
|
-
const
|
|
1043
|
+
const g = $.from(
|
|
1044
1044
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1045
1045
|
), A = {
|
|
1046
1046
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1047
1047
|
status: h.status,
|
|
1048
1048
|
statusText: h.statusText,
|
|
1049
|
-
headers:
|
|
1049
|
+
headers: g,
|
|
1050
1050
|
config: t,
|
|
1051
1051
|
request: h
|
|
1052
1052
|
};
|
|
@@ -1073,8 +1073,8 @@ const on = (t) => {
|
|
|
1073
1073
|
)), h = null;
|
|
1074
1074
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1075
1075
|
h.setRequestHeader(A, T);
|
|
1076
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1077
|
-
h && (r(!
|
|
1076
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Le(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Le(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
|
+
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1078
1078
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1079
1079
|
const E = la(o.url);
|
|
1080
1080
|
if (E && C.protocols.indexOf(E) === -1) {
|
|
@@ -1222,9 +1222,9 @@ const Aa = async (t) => {
|
|
|
1222
1222
|
fetchOptions: d
|
|
1223
1223
|
} = on(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
|
-
let
|
|
1226
|
-
const m =
|
|
1227
|
-
|
|
1225
|
+
let v = ga([o, a && a.toAbortSignal()], i), y;
|
|
1226
|
+
const m = v && v.unsubscribe && (() => {
|
|
1227
|
+
v.unsubscribe();
|
|
1228
1228
|
});
|
|
1229
1229
|
let h;
|
|
1230
1230
|
try {
|
|
@@ -1237,7 +1237,7 @@ const Aa = async (t) => {
|
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
1238
|
const [N, q] = rr(
|
|
1239
1239
|
h,
|
|
1240
|
-
|
|
1240
|
+
Le(nr(u))
|
|
1241
1241
|
);
|
|
1242
1242
|
r = ar(A.body, ir, N, q);
|
|
1243
1243
|
}
|
|
@@ -1246,7 +1246,7 @@ const Aa = async (t) => {
|
|
|
1246
1246
|
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
y = new Request(e, {
|
|
1248
1248
|
...d,
|
|
1249
|
-
signal:
|
|
1249
|
+
signal: v,
|
|
1250
1250
|
method: n.toUpperCase(),
|
|
1251
1251
|
headers: c.normalize().toJSON(),
|
|
1252
1252
|
body: r,
|
|
@@ -1254,15 +1254,15 @@ const Aa = async (t) => {
|
|
|
1254
1254
|
credentials: S ? p : void 0
|
|
1255
1255
|
});
|
|
1256
1256
|
let E = await fetch(y, d);
|
|
1257
|
-
const
|
|
1258
|
-
if (Ct && (s ||
|
|
1257
|
+
const g = Ct && (l === "stream" || l === "response");
|
|
1258
|
+
if (Ct && (s || g && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
1260
|
["status", "statusText", "headers"].forEach((B) => {
|
|
1261
1261
|
A[B] = E[B];
|
|
1262
1262
|
});
|
|
1263
1263
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && rr(
|
|
1264
1264
|
_,
|
|
1265
|
-
|
|
1265
|
+
Le(nr(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
1268
|
ar(E.body, ir, N, () => {
|
|
@@ -1273,7 +1273,7 @@ const Aa = async (t) => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
l = l || "text";
|
|
1275
1275
|
let T = await Me[f.findKey(Me, l) || "text"](E, t);
|
|
1276
|
-
return !
|
|
1276
|
+
return !g && m && m(), await new Promise((A, _) => {
|
|
1277
1277
|
rn(A, _, {
|
|
1278
1278
|
data: T,
|
|
1279
1279
|
headers: $.from(E.headers),
|
|
@@ -1401,7 +1401,7 @@ function Ta(t, e, n) {
|
|
|
1401
1401
|
const De = {
|
|
1402
1402
|
assertOptions: Ta,
|
|
1403
1403
|
validators: Ke
|
|
1404
|
-
},
|
|
1404
|
+
}, U = De.validators;
|
|
1405
1405
|
let X = class {
|
|
1406
1406
|
constructor(e) {
|
|
1407
1407
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1438,17 +1438,17 @@ let X = class {
|
|
|
1438
1438
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1439
1439
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1440
1440
|
r !== void 0 && De.assertOptions(r, {
|
|
1441
|
-
silentJSONParsing:
|
|
1442
|
-
forcedJSONParsing:
|
|
1443
|
-
clarifyTimeoutError:
|
|
1441
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
1442
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
1443
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
1444
1444
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1445
1445
|
serialize: o
|
|
1446
1446
|
} : De.assertOptions(o, {
|
|
1447
|
-
encode:
|
|
1448
|
-
serialize:
|
|
1447
|
+
encode: U.function,
|
|
1448
|
+
serialize: U.function
|
|
1449
1449
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1450
|
-
baseUrl:
|
|
1451
|
-
withXsrfToken:
|
|
1450
|
+
baseUrl: U.spelling("baseURL"),
|
|
1451
|
+
withXsrfToken: U.spelling("withXSRFToken")
|
|
1452
1452
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1453
1453
|
let i = a && f.merge(
|
|
1454
1454
|
a.common,
|
|
@@ -1477,18 +1477,18 @@ let X = class {
|
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
1479
|
d = s.length;
|
|
1480
|
-
let
|
|
1480
|
+
let v = n;
|
|
1481
1481
|
for (p = 0; p < d; ) {
|
|
1482
1482
|
const y = s[p++], m = s[p++];
|
|
1483
1483
|
try {
|
|
1484
|
-
|
|
1484
|
+
v = y(v);
|
|
1485
1485
|
} catch (h) {
|
|
1486
1486
|
m.call(this, h);
|
|
1487
1487
|
break;
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
try {
|
|
1491
|
-
c = lr.call(this,
|
|
1491
|
+
c = lr.call(this, v);
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
@@ -1702,22 +1702,22 @@ R.getAdapter = ln.getAdapter;
|
|
|
1702
1702
|
R.HttpStatusCode = Nt;
|
|
1703
1703
|
R.default = R;
|
|
1704
1704
|
const {
|
|
1705
|
-
Axios:
|
|
1706
|
-
AxiosError:
|
|
1707
|
-
CanceledError:
|
|
1708
|
-
isCancel:
|
|
1709
|
-
CancelToken:
|
|
1710
|
-
VERSION:
|
|
1711
|
-
all:
|
|
1712
|
-
Cancel:
|
|
1713
|
-
isAxiosError:
|
|
1714
|
-
spread:
|
|
1715
|
-
toFormData:
|
|
1716
|
-
AxiosHeaders:
|
|
1717
|
-
HttpStatusCode:
|
|
1718
|
-
formToJSON:
|
|
1719
|
-
getAdapter:
|
|
1720
|
-
mergeConfig:
|
|
1705
|
+
Axios: Vl,
|
|
1706
|
+
AxiosError: Kl,
|
|
1707
|
+
CanceledError: Ql,
|
|
1708
|
+
isCancel: Xl,
|
|
1709
|
+
CancelToken: Zl,
|
|
1710
|
+
VERSION: Yl,
|
|
1711
|
+
all: ec,
|
|
1712
|
+
Cancel: tc,
|
|
1713
|
+
isAxiosError: rc,
|
|
1714
|
+
spread: nc,
|
|
1715
|
+
toFormData: oc,
|
|
1716
|
+
AxiosHeaders: ac,
|
|
1717
|
+
HttpStatusCode: ic,
|
|
1718
|
+
formToJSON: sc,
|
|
1719
|
+
getAdapter: lc,
|
|
1720
|
+
mergeConfig: cc
|
|
1721
1721
|
} = R;
|
|
1722
1722
|
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
1723
|
function Na(t) {
|
|
@@ -1747,7 +1747,7 @@ const $a = {}, Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: $a
|
|
1749
1749
|
}, Symbol.toStringTag, { value: "Module" })), Ia = /* @__PURE__ */ Fa(Da);
|
|
1750
|
-
var
|
|
1750
|
+
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && at && typeof at.get == "function" ? at.get : null, fr = zt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ht && it && typeof it.get == "function" ? it.get : null, pr = Ht && Set.prototype.forEach, Ba = typeof WeakMap == "function" && WeakMap.prototype, he = Ba ? WeakMap.prototype.has : null, Ua = typeof WeakSet == "function" && WeakSet.prototype, me = Ua ? WeakSet.prototype.has : null, La = typeof WeakRef == "function" && WeakRef.prototype, dr = La ? WeakRef.prototype.deref : null, Ma = Boolean.prototype.valueOf, ka = Object.prototype.toString, qa = Function.prototype.toString, ja = String.prototype.match, Wt = String.prototype.slice, J = String.prototype.replace, za = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, pn = RegExp.prototype.test, hr = Array.prototype.concat, k = Array.prototype.join, Ha = Array.prototype.slice, mr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, st = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, dn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1751
1751
|
return t.__proto__;
|
|
1752
1752
|
} : null);
|
|
1753
1753
|
function vr(t, e) {
|
|
@@ -1773,16 +1773,16 @@ var Dt = Ia, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1773
1773
|
single: /(['\\])/g
|
|
1774
1774
|
}, Qe = function t(e, n, r, o) {
|
|
1775
1775
|
var a = n || {};
|
|
1776
|
-
if (
|
|
1776
|
+
if (z(a, "quoteStyle") && !z(yn, a.quoteStyle))
|
|
1777
1777
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1778
|
-
if (
|
|
1778
|
+
if (z(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
1779
1779
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1780
|
-
var i =
|
|
1780
|
+
var i = z(a, "customInspect") ? a.customInspect : !0;
|
|
1781
1781
|
if (typeof i != "boolean" && i !== "symbol")
|
|
1782
1782
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1783
|
-
if (
|
|
1783
|
+
if (z(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
1784
1784
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1785
|
-
if (
|
|
1785
|
+
if (z(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
1786
1786
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1787
1787
|
var s = a.numericSeparator;
|
|
1788
1788
|
if (typeof e > "u")
|
|
@@ -1812,17 +1812,17 @@ var Dt = Ia, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1812
1812
|
else if (gn(o, e) >= 0)
|
|
1813
1813
|
return "[Circular]";
|
|
1814
1814
|
function d(D, W, j) {
|
|
1815
|
-
if (W && (o =
|
|
1815
|
+
if (W && (o = Ha.call(o), o.push(W)), j) {
|
|
1816
1816
|
var pe = {
|
|
1817
1817
|
depth: a.depth
|
|
1818
1818
|
};
|
|
1819
|
-
return
|
|
1819
|
+
return z(a, "quoteStyle") && (pe.quoteStyle = a.quoteStyle), t(D, pe, r + 1, o);
|
|
1820
1820
|
}
|
|
1821
1821
|
return t(D, a, r + 1, o);
|
|
1822
1822
|
}
|
|
1823
1823
|
if (typeof e == "function" && !Sr(e)) {
|
|
1824
|
-
var
|
|
1825
|
-
return "[Function" + (
|
|
1824
|
+
var v = ei(e), y = Ce(e, d);
|
|
1825
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
1827
|
if (mn(e)) {
|
|
1828
1828
|
var m = se ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : $t.call(e);
|
|
@@ -1836,8 +1836,8 @@ var Dt = Ia, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1836
1836
|
if (It(e)) {
|
|
1837
1837
|
if (e.length === 0)
|
|
1838
1838
|
return "[]";
|
|
1839
|
-
var
|
|
1840
|
-
return p && !li(
|
|
1839
|
+
var g = Ce(e, d);
|
|
1840
|
+
return p && !li(g) ? "[" + Bt(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
1842
|
if (Va(e)) {
|
|
1843
1843
|
var T = Ce(e, d);
|
|
@@ -1880,7 +1880,7 @@ var Dt = Ia, wr = Dt.custom, br = mn(wr) ? wr : null, yn = {
|
|
|
1880
1880
|
if (typeof globalThis < "u" && e === globalThis || typeof ur < "u" && e === ur)
|
|
1881
1881
|
return "{ [object globalThis] }";
|
|
1882
1882
|
if (!Ja(e) && !Sr(e)) {
|
|
1883
|
-
var N = Ce(e, d), q = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype",
|
|
1883
|
+
var N = Ce(e, d), q = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? Wt.call(V(e), 8, -1) : B ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || B ? "[" + k.call(hr.call([], H || [], B || []), ": ") + "] " : "");
|
|
1884
1884
|
return N.length === 0 ? re + "{}" : p ? re + "{" + Bt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1885
1885
|
}
|
|
1886
1886
|
return String(e);
|
|
@@ -1941,7 +1941,7 @@ function Za(t) {
|
|
|
1941
1941
|
var Ya = Object.prototype.hasOwnProperty || function(t) {
|
|
1942
1942
|
return t in this;
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function z(t, e) {
|
|
1945
1945
|
return Ya.call(t, e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function V(t) {
|
|
@@ -2051,7 +2051,7 @@ function si(t) {
|
|
|
2051
2051
|
12: "f",
|
|
2052
2052
|
13: "r"
|
|
2053
2053
|
}[e];
|
|
2054
|
-
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") +
|
|
2054
|
+
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + za.call(e.toString(16));
|
|
2055
2055
|
}
|
|
2056
2056
|
function ye(t) {
|
|
2057
2057
|
return "Object(" + t + ")";
|
|
@@ -2096,7 +2096,7 @@ function Ce(t, e) {
|
|
|
2096
2096
|
if (n) {
|
|
2097
2097
|
r.length = t.length;
|
|
2098
2098
|
for (var o = 0; o < t.length; o++)
|
|
2099
|
-
r[o] =
|
|
2099
|
+
r[o] = z(t, o) ? e(t[o], t) : "";
|
|
2100
2100
|
}
|
|
2101
2101
|
var a = typeof st == "function" ? st(t) : [], i;
|
|
2102
2102
|
if (se) {
|
|
@@ -2105,7 +2105,7 @@ function Ce(t, e) {
|
|
|
2105
2105
|
i["$" + a[s]] = a[s];
|
|
2106
2106
|
}
|
|
2107
2107
|
for (var u in t)
|
|
2108
|
-
|
|
2108
|
+
z(t, u) && (n && String(Number(u)) === u && u < t.length || se && i["$" + u] instanceof Symbol || (pn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2109
2109
|
if (typeof st == "function")
|
|
2110
2110
|
for (var l = 0; l < a.length; l++)
|
|
2111
2111
|
dn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
@@ -2266,7 +2266,7 @@ function Bi() {
|
|
|
2266
2266
|
u,
|
|
2267
2267
|
o(c, arguments)
|
|
2268
2268
|
);
|
|
2269
|
-
},
|
|
2269
|
+
}, v = n(0, l.length - c.length), y = [], m = 0; m < v; m++)
|
|
2270
2270
|
y[m] = "$" + m;
|
|
2271
2271
|
if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), l.prototype) {
|
|
2272
2272
|
var h = function() {
|
|
@@ -2291,10 +2291,10 @@ var mt, _r;
|
|
|
2291
2291
|
function An() {
|
|
2292
2292
|
return _r || (_r = 1, mt = Function.prototype.apply), mt;
|
|
2293
2293
|
}
|
|
2294
|
-
var
|
|
2294
|
+
var Ui = typeof Reflect < "u" && Reflect && Reflect.apply, Li = Ze(), Mi = An(), ki = Gt(), qi = Ui, ji = qi || Li.call(ki, Mi), zi = Ze(), Hi = fe, Wi = Gt(), Gi = ji, On = function(e) {
|
|
2295
2295
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2296
|
-
throw new
|
|
2297
|
-
return Gi(
|
|
2296
|
+
throw new Hi("a function is required");
|
|
2297
|
+
return Gi(zi, Wi, e);
|
|
2298
2298
|
}, gt, Nr;
|
|
2299
2299
|
function Ji() {
|
|
2300
2300
|
if (Nr) return gt;
|
|
@@ -2518,8 +2518,8 @@ var hs = function t(e) {
|
|
|
2518
2518
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2519
2519
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2520
2520
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2521
|
-
}, Pe = Ze(), je = Ki(), ms = Pe.call(Re, Array.prototype.concat), gs = Pe.call(Pn, Array.prototype.splice), Ir = Pe.call(Re, String.prototype.replace),
|
|
2522
|
-
var n =
|
|
2521
|
+
}, Pe = Ze(), je = Ki(), ms = Pe.call(Re, Array.prototype.concat), gs = Pe.call(Pn, Array.prototype.splice), Ir = Pe.call(Re, String.prototype.replace), ze = Pe.call(Re, String.prototype.slice), vs = Pe.call(Re, RegExp.prototype.exec), ws = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, bs = /\\(\\)?/g, Ss = function(e) {
|
|
2522
|
+
var n = ze(e, 0, 1), r = ze(e, -1);
|
|
2523
2523
|
if (n === "%" && r !== "%")
|
|
2524
2524
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
2525
2525
|
if (r === "%" && n !== "%")
|
|
@@ -2551,8 +2551,8 @@ var hs = function t(e) {
|
|
|
2551
2551
|
var r = Ss(e), o = r.length > 0 ? r[0] : "", a = Es("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2552
2552
|
l && (o = l[0], gs(r, ms([0, 1], l)));
|
|
2553
2553
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2554
|
-
var d = r[c],
|
|
2555
|
-
if ((
|
|
2554
|
+
var d = r[c], v = ze(d, 0, 1), y = ze(d, -1);
|
|
2555
|
+
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2556
2556
|
throw new le("property names with quotes must have matching quotes");
|
|
2557
2557
|
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", je(Z, i))
|
|
2558
2558
|
s = Z[i];
|
|
@@ -2606,7 +2606,7 @@ function() {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
return n;
|
|
2609
|
-
}, Fs = Jt, Ye = Cn, $s = Qe, _e = _n, Ds = fe, oe = Fs("%WeakMap%", !0), Is = Ye("WeakMap.prototype.get", !0), Bs = Ye("WeakMap.prototype.set", !0),
|
|
2609
|
+
}, Fs = Jt, Ye = Cn, $s = Qe, _e = _n, Ds = fe, oe = Fs("%WeakMap%", !0), Is = Ye("WeakMap.prototype.get", !0), Bs = Ye("WeakMap.prototype.set", !0), Us = Ye("WeakMap.prototype.has", !0), Ls = Ye("WeakMap.prototype.delete", !0), Ms = oe ? (
|
|
2610
2610
|
/** @type {Exclude<import('.'), false>} */
|
|
2611
2611
|
function() {
|
|
2612
2612
|
var e, n, r = {
|
|
@@ -2617,7 +2617,7 @@ function() {
|
|
|
2617
2617
|
delete: function(o) {
|
|
2618
2618
|
if (oe && o && (typeof o == "object" || typeof o == "function")) {
|
|
2619
2619
|
if (e)
|
|
2620
|
-
return
|
|
2620
|
+
return Ls(e, o);
|
|
2621
2621
|
} else if (_e && n)
|
|
2622
2622
|
return n.delete(o);
|
|
2623
2623
|
return !1;
|
|
@@ -2626,7 +2626,7 @@ function() {
|
|
|
2626
2626
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Is(e, o) : n && n.get(o);
|
|
2627
2627
|
},
|
|
2628
2628
|
has: function(o) {
|
|
2629
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2629
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : !!n && n.has(o);
|
|
2630
2630
|
},
|
|
2631
2631
|
set: function(o, a) {
|
|
2632
2632
|
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), Bs(e, o, a)) : _e && (n || (n = _e()), n.set(o, a));
|
|
@@ -2634,7 +2634,7 @@ function() {
|
|
|
2634
2634
|
};
|
|
2635
2635
|
return r;
|
|
2636
2636
|
}
|
|
2637
|
-
) : _e, ks = fe, qs = Qe, js = mi,
|
|
2637
|
+
) : _e, ks = fe, qs = Qe, js = mi, zs = _n, Hs = Ms, Ws = Hs || zs || js, Gs = function() {
|
|
2638
2638
|
var e, n = {
|
|
2639
2639
|
assert: function(r) {
|
|
2640
2640
|
if (!n.has(r))
|
|
@@ -2669,7 +2669,7 @@ function() {
|
|
|
2669
2669
|
},
|
|
2670
2670
|
RFC1738: Et.RFC1738,
|
|
2671
2671
|
RFC3986: Et.RFC3986
|
|
2672
|
-
}, Ks = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2672
|
+
}, Ks = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray, L = function() {
|
|
2673
2673
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2674
2674
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2675
2675
|
return t;
|
|
@@ -2729,8 +2729,8 @@ function() {
|
|
|
2729
2729
|
return e;
|
|
2730
2730
|
var i = e;
|
|
2731
2731
|
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
|
|
2732
|
-
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2733
|
-
return "%26%23" + parseInt(
|
|
2732
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
|
|
2733
|
+
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2734
2734
|
});
|
|
2735
2735
|
for (var s = "", u = 0; u < i.length; u += Ot) {
|
|
2736
2736
|
for (var l = i.length >= Ot ? i.slice(u, u + Ot) : i, c = [], p = 0; p < l.length; ++p) {
|
|
@@ -2740,18 +2740,18 @@ function() {
|
|
|
2740
2740
|
continue;
|
|
2741
2741
|
}
|
|
2742
2742
|
if (d < 128) {
|
|
2743
|
-
c[c.length] =
|
|
2743
|
+
c[c.length] = L[d];
|
|
2744
2744
|
continue;
|
|
2745
2745
|
}
|
|
2746
2746
|
if (d < 2048) {
|
|
2747
|
-
c[c.length] =
|
|
2747
|
+
c[c.length] = L[192 | d >> 6] + L[128 | d & 63];
|
|
2748
2748
|
continue;
|
|
2749
2749
|
}
|
|
2750
2750
|
if (d < 55296 || d >= 57344) {
|
|
2751
|
-
c[c.length] =
|
|
2751
|
+
c[c.length] = L[224 | d >> 12] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2752
2752
|
continue;
|
|
2753
2753
|
}
|
|
2754
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2754
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = L[240 | d >> 18] + L[128 | d >> 12 & 63] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2755
2755
|
}
|
|
2756
2756
|
s += c.join("");
|
|
2757
2757
|
}
|
|
@@ -2787,7 +2787,7 @@ function() {
|
|
|
2787
2787
|
isRegExp: rl,
|
|
2788
2788
|
maybeMap: al,
|
|
2789
2789
|
merge: Xs
|
|
2790
|
-
}, $n = Gs,
|
|
2790
|
+
}, $n = Gs, Ue = Fn, ve = Vt, il = Object.prototype.hasOwnProperty, Dn = {
|
|
2791
2791
|
brackets: function(e) {
|
|
2792
2792
|
return e + "[]";
|
|
2793
2793
|
},
|
|
@@ -2800,7 +2800,7 @@ function() {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
}, M = Array.isArray, sl = Array.prototype.push, In = function(t, e) {
|
|
2802
2802
|
sl.apply(t, M(e) ? e : [e]);
|
|
2803
|
-
}, ll = Date.prototype.toISOString,
|
|
2803
|
+
}, ll = Date.prototype.toISOString, Ur = ve.default, P = {
|
|
2804
2804
|
addQueryPrefix: !1,
|
|
2805
2805
|
allowDots: !1,
|
|
2806
2806
|
allowEmptyArrays: !1,
|
|
@@ -2811,11 +2811,11 @@ function() {
|
|
|
2811
2811
|
delimiter: "&",
|
|
2812
2812
|
encode: !0,
|
|
2813
2813
|
encodeDotInKeys: !1,
|
|
2814
|
-
encoder:
|
|
2814
|
+
encoder: Ue.encode,
|
|
2815
2815
|
encodeValuesOnly: !1,
|
|
2816
2816
|
filter: void 0,
|
|
2817
|
-
format:
|
|
2818
|
-
formatter: ve.formatters[
|
|
2817
|
+
format: Ur,
|
|
2818
|
+
formatter: ve.formatters[Ur],
|
|
2819
2819
|
// deprecated
|
|
2820
2820
|
indices: !1,
|
|
2821
2821
|
serializeDate: function(e) {
|
|
@@ -2825,8 +2825,8 @@ function() {
|
|
|
2825
2825
|
strictNullHandling: !1
|
|
2826
2826
|
}, cl = function(e) {
|
|
2827
2827
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2828
|
-
}, Rt = {}, ul = function t(e, n, r, o, a, i, s, u, l, c, p, d,
|
|
2829
|
-
for (var
|
|
2828
|
+
}, Rt = {}, ul = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, E) {
|
|
2829
|
+
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Rt)) !== void 0 && !_; ) {
|
|
2830
2830
|
var N = T.get(e);
|
|
2831
2831
|
if (A += 1, typeof N < "u") {
|
|
2832
2832
|
if (N === A)
|
|
@@ -2835,39 +2835,39 @@ function() {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
typeof T.get(Rt) > "u" && (A = 0);
|
|
2837
2837
|
}
|
|
2838
|
-
if (typeof c == "function" ?
|
|
2839
|
-
return tt instanceof Date ?
|
|
2840
|
-
})),
|
|
2838
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Ue.maybeMap(g, function(tt) {
|
|
2839
|
+
return tt instanceof Date ? v(tt) : tt;
|
|
2840
|
+
})), g === null) {
|
|
2841
2841
|
if (i)
|
|
2842
2842
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2843
|
-
|
|
2843
|
+
g = "";
|
|
2844
2844
|
}
|
|
2845
|
-
if (cl(
|
|
2845
|
+
if (cl(g) || Ue.isBuffer(g)) {
|
|
2846
2846
|
if (l) {
|
|
2847
2847
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2848
|
-
return [m(q) + "=" + m(l(
|
|
2848
|
+
return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2849
2849
|
}
|
|
2850
|
-
return [m(n) + "=" + m(String(
|
|
2850
|
+
return [m(n) + "=" + m(String(g))];
|
|
2851
2851
|
}
|
|
2852
2852
|
var B = [];
|
|
2853
|
-
if (typeof
|
|
2853
|
+
if (typeof g > "u")
|
|
2854
2854
|
return B;
|
|
2855
|
-
var
|
|
2856
|
-
if (r === "comma" && M(
|
|
2857
|
-
h && l && (
|
|
2855
|
+
var H;
|
|
2856
|
+
if (r === "comma" && M(g))
|
|
2857
|
+
h && l && (g = Ue.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2858
2858
|
else if (M(c))
|
|
2859
|
-
|
|
2859
|
+
H = c;
|
|
2860
2860
|
else {
|
|
2861
|
-
var xe = Object.keys(
|
|
2862
|
-
|
|
2861
|
+
var xe = Object.keys(g);
|
|
2862
|
+
H = p ? xe.sort(p) : xe;
|
|
2863
2863
|
}
|
|
2864
|
-
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(
|
|
2865
|
-
if (a && M(
|
|
2864
|
+
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2865
|
+
if (a && M(g) && g.length === 0)
|
|
2866
2866
|
return D + "[]";
|
|
2867
|
-
for (var W = 0; W <
|
|
2868
|
-
var j =
|
|
2867
|
+
for (var W = 0; W < H.length; ++W) {
|
|
2868
|
+
var j = H[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2869
2869
|
if (!(s && pe === null)) {
|
|
2870
|
-
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), kn = M(
|
|
2870
|
+
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), kn = M(g) ? typeof r == "function" ? r(D, et) : D : D + (d ? "." + et : "[" + et + "]");
|
|
2871
2871
|
E.set(e, A);
|
|
2872
2872
|
var Qt = $n();
|
|
2873
2873
|
Qt.set(Rt, E), In(B, t(
|
|
@@ -2879,11 +2879,11 @@ function() {
|
|
|
2879
2879
|
i,
|
|
2880
2880
|
s,
|
|
2881
2881
|
u,
|
|
2882
|
-
r === "comma" && h && M(
|
|
2882
|
+
r === "comma" && h && M(g) ? null : l,
|
|
2883
2883
|
c,
|
|
2884
2884
|
p,
|
|
2885
2885
|
d,
|
|
2886
|
-
|
|
2886
|
+
v,
|
|
2887
2887
|
y,
|
|
2888
2888
|
m,
|
|
2889
2889
|
h,
|
|
@@ -2969,9 +2969,9 @@ function() {
|
|
|
2969
2969
|
l
|
|
2970
2970
|
));
|
|
2971
2971
|
}
|
|
2972
|
-
var
|
|
2973
|
-
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"),
|
|
2974
|
-
}, ee = Fn,
|
|
2972
|
+
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2973
|
+
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2974
|
+
}, ee = Fn, Ut = Object.prototype.hasOwnProperty, Lr = Array.isArray, O = {
|
|
2975
2975
|
allowDots: !1,
|
|
2976
2976
|
allowEmptyArrays: !1,
|
|
2977
2977
|
allowPrototypes: !1,
|
|
@@ -3018,19 +3018,19 @@ function() {
|
|
|
3018
3018
|
i[u].indexOf("utf8=") === 0 && (i[u] === hl ? l = "utf-8" : i[u] === yl && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3019
3019
|
for (u = 0; u < i.length; ++u)
|
|
3020
3020
|
if (u !== s) {
|
|
3021
|
-
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1,
|
|
3022
|
-
d === -1 ? (
|
|
3021
|
+
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3022
|
+
d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ee.maybeMap(
|
|
3023
3023
|
Bn(
|
|
3024
3024
|
c.slice(d + 1),
|
|
3025
3025
|
n,
|
|
3026
|
-
|
|
3026
|
+
Lr(r[v]) ? r[v].length : 0
|
|
3027
3027
|
),
|
|
3028
3028
|
function(h) {
|
|
3029
3029
|
return n.decoder(h, O.decoder, l, "value");
|
|
3030
3030
|
}
|
|
3031
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = dl(String(y))), c.indexOf("[]=") > -1 && (y =
|
|
3032
|
-
var m =
|
|
3033
|
-
m && n.duplicates === "combine" ? r[
|
|
3031
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = dl(String(y))), c.indexOf("[]=") > -1 && (y = Lr(y) ? [y] : y);
|
|
3032
|
+
var m = Ut.call(r, v);
|
|
3033
|
+
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3034
3034
|
}
|
|
3035
3035
|
return r;
|
|
3036
3036
|
}, gl = function(t, e, n, r) {
|
|
@@ -3055,12 +3055,12 @@ function() {
|
|
|
3055
3055
|
if (e) {
|
|
3056
3056
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3057
3057
|
if (l) {
|
|
3058
|
-
if (!r.plainObjects &&
|
|
3058
|
+
if (!r.plainObjects && Ut.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3059
3059
|
return;
|
|
3060
3060
|
c.push(l);
|
|
3061
3061
|
}
|
|
3062
3062
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3063
|
-
if (p += 1, !r.plainObjects &&
|
|
3063
|
+
if (p += 1, !r.plainObjects && Ut.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3064
3064
|
return;
|
|
3065
3065
|
c.push(u[1]);
|
|
3066
3066
|
}
|
|
@@ -3147,7 +3147,7 @@ var Pl = {
|
|
|
3147
3147
|
);
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
|
-
function
|
|
3150
|
+
function Lt(t, e) {
|
|
3151
3151
|
function n(o, a, i) {
|
|
3152
3152
|
if (!(typeof document > "u")) {
|
|
3153
3153
|
i = Ne({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -3185,10 +3185,10 @@ function Ut(t, e) {
|
|
|
3185
3185
|
);
|
|
3186
3186
|
},
|
|
3187
3187
|
withAttributes: function(o) {
|
|
3188
|
-
return
|
|
3188
|
+
return Lt(this.converter, Ne({}, this.attributes, o));
|
|
3189
3189
|
},
|
|
3190
3190
|
withConverter: function(o) {
|
|
3191
|
-
return
|
|
3191
|
+
return Lt(Ne({}, this.converter, o), this.attributes);
|
|
3192
3192
|
}
|
|
3193
3193
|
},
|
|
3194
3194
|
{
|
|
@@ -3197,7 +3197,7 @@ function Ut(t, e) {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
);
|
|
3199
3199
|
}
|
|
3200
|
-
var Tl =
|
|
3200
|
+
var Tl = Lt(Pl, { path: "/" });
|
|
3201
3201
|
const xl = {
|
|
3202
3202
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3203
3203
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3209,53 +3209,69 @@ const xl = {
|
|
|
3209
3209
|
en: "Network error, please check your network status",
|
|
3210
3210
|
_appCode: "framework"
|
|
3211
3211
|
}
|
|
3212
|
-
};
|
|
3212
|
+
}, Cl = async (t) => null;
|
|
3213
3213
|
qn(xl);
|
|
3214
3214
|
Mt.extend(Kn);
|
|
3215
3215
|
Mt.extend(Qn);
|
|
3216
|
-
const Kt = Mr(),
|
|
3217
|
-
|
|
3216
|
+
const Kt = Mr(), Un = Kt.sso ?? !0, _l = Kt.i18n ?? !0, Ln = Kt.noRedireLogin ?? !1, Nl = (t) => {
|
|
3217
|
+
var e, n, r;
|
|
3218
|
+
return ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === 401 || ((r = (n = t == null ? void 0 : t.response) == null ? void 0 : n.data) == null ? void 0 : r.code) === 401;
|
|
3219
|
+
}, Fl = (t) => {
|
|
3220
|
+
t.interceptors.response.use(void 0, async (e) => {
|
|
3221
|
+
const n = e == null ? void 0 : e.config;
|
|
3222
|
+
if (!n || n.public || !Nl(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3223
|
+
return Promise.reject(e);
|
|
3224
|
+
try {
|
|
3225
|
+
const r = await Cl({ error: e, config: n });
|
|
3226
|
+
return r != null && r.accessToken ? (n._unauthorizedRecoveryRetried = !0, n.headers = n.headers || {}, n.headers.Authorization = `Bearer ${r.accessToken}`, t(n)) : Promise.reject(e);
|
|
3227
|
+
} catch {
|
|
3228
|
+
return Promise.reject(e);
|
|
3229
|
+
}
|
|
3230
|
+
});
|
|
3231
|
+
}, Mn = () => {
|
|
3232
|
+
if (Ln) return;
|
|
3218
3233
|
const t = "/login";
|
|
3219
3234
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3220
|
-
},
|
|
3235
|
+
}, $l = async (t) => {
|
|
3221
3236
|
var n;
|
|
3222
3237
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3223
|
-
},
|
|
3224
|
-
var
|
|
3225
|
-
let n = ((
|
|
3238
|
+
}, Dl = async (t, e) => {
|
|
3239
|
+
var l, c, p, d, v;
|
|
3240
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3226
3241
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3227
|
-
let i = ((
|
|
3228
|
-
|
|
3229
|
-
|
|
3242
|
+
let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
|
|
3243
|
+
const s = Wn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? Ln);
|
|
3244
|
+
if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3245
|
+
Un ? Gn({ ...Vn, redirect_uri: Jn }) : Mn(), o = i;
|
|
3230
3246
|
else {
|
|
3231
3247
|
if (t.response) {
|
|
3232
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3233
|
-
const
|
|
3234
|
-
|
|
3248
|
+
if (i instanceof Blob && (i = await new Promise((y) => {
|
|
3249
|
+
const m = new FileReader();
|
|
3250
|
+
m.readAsText(i, "utf-8"), m.onload = () => {
|
|
3235
3251
|
try {
|
|
3236
|
-
|
|
3252
|
+
y(JSON.parse(m.result || "{}"));
|
|
3237
3253
|
} catch {
|
|
3238
|
-
|
|
3254
|
+
y({ code: 400, msg: G("blob解析错误") });
|
|
3239
3255
|
}
|
|
3240
3256
|
};
|
|
3241
3257
|
})), i.code) {
|
|
3242
3258
|
n = i.code;
|
|
3243
|
-
const
|
|
3244
|
-
if (
|
|
3245
|
-
const
|
|
3246
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3259
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3260
|
+
if (_l && y) {
|
|
3261
|
+
const m = (i == null ? void 0 : i.status) ?? "";
|
|
3262
|
+
r = !(i != null && i.data) || !i.data.length ? G(m) : G(m, ...i.data);
|
|
3247
3263
|
} else
|
|
3248
3264
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3249
3265
|
o = i;
|
|
3250
3266
|
}
|
|
3251
3267
|
r || (r = a[t.response.status] || t.message);
|
|
3252
3268
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
|
|
3253
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3269
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((v = (d = window.DasMessage) == null ? void 0 : d.error) == null || v.call(d, { message: r, showClose: !0 }));
|
|
3254
3270
|
}
|
|
3255
3271
|
return { ...o, code: n, msg: r, error: t };
|
|
3256
|
-
},
|
|
3272
|
+
}, Il = (t, e) => {
|
|
3257
3273
|
const n = R.create();
|
|
3258
|
-
return
|
|
3274
|
+
return Fl(n), zn(n, async (r) => {
|
|
3259
3275
|
const o = Mr();
|
|
3260
3276
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3261
3277
|
let l = "";
|
|
@@ -3263,9 +3279,9 @@ const Kt = Mr(), Ln = Kt.sso ?? !0, Cl = Kt.i18n ?? !0, Un = Kt.noRedireLogin ??
|
|
|
3263
3279
|
const c = new URL(location.href).searchParams;
|
|
3264
3280
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3265
3281
|
}
|
|
3266
|
-
|
|
3282
|
+
Un ? l || (l = await Hn(r)) : (l || (l = Yn()), l || Mn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3267
3283
|
}
|
|
3268
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Rl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3284
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Rl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = $l), r.onError || (r.onError = Dl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Tl.get("csrf-token"));
|
|
3269
3285
|
const s = r.params || {};
|
|
3270
3286
|
if (s.project === void 0) {
|
|
3271
3287
|
let l = 0;
|
|
@@ -3278,7 +3294,7 @@ const Kt = Mr(), Ln = Kt.sso ?? !0, Cl = Kt.i18n ?? !0, Un = Kt.noRedireLogin ??
|
|
|
3278
3294
|
}
|
|
3279
3295
|
return r.params = s, r.headers.Timezone = Mt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = jn.value, r;
|
|
3280
3296
|
});
|
|
3281
|
-
},
|
|
3297
|
+
}, Bl = "v1", uc = Il(`/api/supply/brand/${Bl}`);
|
|
3282
3298
|
export {
|
|
3283
|
-
|
|
3299
|
+
uc as enterpriseadminBrandModel
|
|
3284
3300
|
};
|