@das-fed/utils 7.0.7-hot.45 → 7.0.7-hot.46
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 +476 -459
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +192 -176
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +192 -176
- 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 +192 -176
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +212 -196
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +755 -721
- 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 +1002 -967
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +211 -195
- 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 +387 -370
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +192 -176
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +755 -721
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +755 -721
- 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 +192 -176
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +851 -853
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +844 -846
- 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 +192 -176
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +191 -175
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +191 -175
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +466 -459
- 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 +6 -0
- package/esm-map.json +8 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
1
|
+
import { setI18nRule as zn, currentLang as Hn, t as V } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as Wn } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as Gn, getQuery as Jn, login as Vn, real_uri as Kn, getTokenParams as Qn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import qt from "dayjs";
|
|
@@ -12,23 +12,23 @@ function jr(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: ro } = Object.prototype, { getPrototypeOf: jt } = Object, { iterator: Ge, toStringTag:
|
|
15
|
+
const { toString: ro } = Object.prototype, { getPrototypeOf: jt } = Object, { iterator: Ge, toStringTag: zr } = Symbol, Je = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = ro.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
18
|
+
})(/* @__PURE__ */ Object.create(null)), U = (t) => (t = t.toLowerCase(), (e) => Je(e) === t), Ve = (t) => (e) => typeof e === t, { isArray: fe } = Array, Se = Ve("undefined");
|
|
19
19
|
function Ae(t) {
|
|
20
20
|
return t !== null && !Se(t) && t.constructor !== null && !Se(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Hr = U("ArrayBuffer");
|
|
23
23
|
function no(t) {
|
|
24
24
|
let e;
|
|
25
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
25
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Hr(t.buffer), e;
|
|
26
26
|
}
|
|
27
27
|
const oo = Ve("string"), N = Ve("function"), Wr = Ve("number"), Oe = (t) => t !== null && typeof t == "object", io = (t) => t === !0 || t === !1, De = (t) => {
|
|
28
28
|
if (Je(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = jt(t);
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(zr in t) && !(Ge in t);
|
|
32
32
|
}, ao = (t) => {
|
|
33
33
|
if (!Oe(t) || Ae(t))
|
|
34
34
|
return !1;
|
|
@@ -37,11 +37,11 @@ const oo = Ve("string"), N = Ve("function"), Wr = Ve("number"), Oe = (t) => t !=
|
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
|
-
}, so =
|
|
40
|
+
}, so = U("Date"), lo = U("File"), co = U("Blob"), uo = U("FileList"), fo = (t) => Oe(t) && N(t.pipe), po = (t) => {
|
|
41
41
|
let e;
|
|
42
42
|
return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = Je(t)) === "formdata" || // detect form-data instance
|
|
43
43
|
e === "object" && N(t.toString) && t.toString() === "[object FormData]"));
|
|
44
|
-
}, yo =
|
|
44
|
+
}, yo = U("URLSearchParams"), [ho, mo, go, vo] = ["ReadableStream", "Request", "Response", "Headers"].map(U), wo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
45
45
|
function Re(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
46
46
|
if (t === null || typeof t > "u")
|
|
47
47
|
return;
|
|
@@ -121,12 +121,12 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Re(e, (o, i) => {
|
|
|
121
121
|
for (; (n = t.exec(e)) !== null; )
|
|
122
122
|
r.push(n);
|
|
123
123
|
return r;
|
|
124
|
-
}, Co =
|
|
124
|
+
}, Co = U("HTMLFormElement"), _o = (t) => t.toLowerCase().replace(
|
|
125
125
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
126
126
|
function(n, r, o) {
|
|
127
127
|
return r.toUpperCase() + o;
|
|
128
128
|
}
|
|
129
|
-
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), $o =
|
|
129
|
+
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), $o = U("RegExp"), Vr = (t, e) => {
|
|
130
130
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
131
131
|
Re(n, (o, i) => {
|
|
132
132
|
let a;
|
|
@@ -157,9 +157,9 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Re(e, (o, i) => {
|
|
|
157
157
|
}, Do = () => {
|
|
158
158
|
}, Io = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function Bo(t) {
|
|
160
|
-
return !!(t && N(t.append) && t[
|
|
160
|
+
return !!(t && N(t.append) && t[zr] === "FormData" && t[Ge]);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const Uo = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
164
164
|
if (Oe(r)) {
|
|
165
165
|
if (e.indexOf(r) >= 0)
|
|
@@ -178,7 +178,7 @@ const Lo = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
},
|
|
181
|
+
}, Lo = U("AsyncFunction"), Mo = (t) => t && (Oe(t) || N(t)) && N(t.then) && N(t.catch), Kr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Z.addEventListener("message", ({ source: o, data: i }) => {
|
|
182
182
|
o === Z && i === n && r.length && r.shift()();
|
|
183
183
|
}, !1), (o) => {
|
|
184
184
|
r.push(o), Z.postMessage(n, "*");
|
|
@@ -187,7 +187,7 @@ const Lo = (t) => {
|
|
|
187
187
|
N(Z.postMessage)
|
|
188
188
|
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(Z) : typeof process < "u" && process.nextTick || Kr, qo = (t) => t != null && N(t[Ge]), f = {
|
|
189
189
|
isArray: fe,
|
|
190
|
-
isArrayBuffer:
|
|
190
|
+
isArrayBuffer: Hr,
|
|
191
191
|
isBuffer: Ae,
|
|
192
192
|
isFormData: po,
|
|
193
193
|
isArrayBufferView: no,
|
|
@@ -219,7 +219,7 @@ const Lo = (t) => {
|
|
|
219
219
|
inherits: Eo,
|
|
220
220
|
toFlatObject: Ao,
|
|
221
221
|
kindOf: Je,
|
|
222
|
-
kindOfTest:
|
|
222
|
+
kindOfTest: U,
|
|
223
223
|
endsWith: Oo,
|
|
224
224
|
toArray: Ro,
|
|
225
225
|
forEachEntry: To,
|
|
@@ -238,8 +238,8 @@ const Lo = (t) => {
|
|
|
238
238
|
global: Z,
|
|
239
239
|
isContextDefined: Jr,
|
|
240
240
|
isSpecCompliantForm: Bo,
|
|
241
|
-
toJSONObject:
|
|
242
|
-
isAsyncFn:
|
|
241
|
+
toJSONObject: Uo,
|
|
242
|
+
isAsyncFn: Lo,
|
|
243
243
|
isThenable: Mo,
|
|
244
244
|
setImmediate: Kr,
|
|
245
245
|
asap: ko,
|
|
@@ -307,10 +307,10 @@ function er(t, e, n) {
|
|
|
307
307
|
return o = Zr(o), !n && i ? "[" + o + "]" : o;
|
|
308
308
|
}).join(n ? "." : "") : e;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function zo(t) {
|
|
311
311
|
return f.isArray(t) && !t.some(Ct);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Ho = f.toFlatObject(f, {}, null, function(e) {
|
|
314
314
|
return /^is[A-Z]/.test(e);
|
|
315
315
|
});
|
|
316
316
|
function Ke(t, e, n) {
|
|
@@ -341,23 +341,23 @@ function Ke(t, e, n) {
|
|
|
341
341
|
if (y && !h && typeof y == "object") {
|
|
342
342
|
if (f.endsWith(m, "{}"))
|
|
343
343
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
344
|
-
else if (f.isArray(y) &&
|
|
345
|
-
return m = Zr(m), S.forEach(function(
|
|
346
|
-
!(f.isUndefined(
|
|
344
|
+
else if (f.isArray(y) && zo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
345
|
+
return m = Zr(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
|
a === !0 ? er([m], T, i) : a === null ? m : m + "[]",
|
|
349
|
-
l(
|
|
349
|
+
l(g)
|
|
350
350
|
);
|
|
351
351
|
}), !1;
|
|
352
352
|
}
|
|
353
353
|
return Ct(y) ? !0 : (e.append(er(h, m, i), l(y)), !1);
|
|
354
354
|
}
|
|
355
|
-
const p = [], d = Object.assign(
|
|
355
|
+
const p = [], d = Object.assign(Ho, {
|
|
356
356
|
defaultVisitor: c,
|
|
357
357
|
convertValue: l,
|
|
358
358
|
isVisitable: Ct
|
|
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 Ke(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 tr(t) {
|
|
380
380
|
const e = {
|
|
@@ -390,10 +390,10 @@ function tr(t) {
|
|
|
390
390
|
return e[r];
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function zt(t, e) {
|
|
394
394
|
this._pairs = [], t && Ke(t, this, e);
|
|
395
395
|
}
|
|
396
|
-
const Yr =
|
|
396
|
+
const Yr = zt.prototype;
|
|
397
397
|
Yr.append = function(e, n) {
|
|
398
398
|
this._pairs.push([e, n]);
|
|
399
399
|
};
|
|
@@ -417,7 +417,7 @@ function en(t, e, n) {
|
|
|
417
417
|
});
|
|
418
418
|
const o = n && n.serialize;
|
|
419
419
|
let i;
|
|
420
|
-
if (o ? i = o(e, n) : i = f.isURLSearchParams(e) ? e.toString() : new
|
|
420
|
+
if (o ? i = o(e, n) : i = f.isURLSearchParams(e) ? e.toString() : new zt(e, n).toString(r), i) {
|
|
421
421
|
const a = t.indexOf("#");
|
|
422
422
|
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
423
423
|
}
|
|
@@ -481,7 +481,7 @@ const tn = {
|
|
|
481
481
|
silentJSONParsing: !0,
|
|
482
482
|
forcedJSONParsing: !0,
|
|
483
483
|
clarifyTimeoutError: !1
|
|
484
|
-
}, Go = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
484
|
+
}, Go = typeof URLSearchParams < "u" ? URLSearchParams : zt, Jo = typeof FormData < "u" ? FormData : null, Vo = typeof Blob < "u" ? Blob : null, Ko = {
|
|
485
485
|
isBrowser: !0,
|
|
486
486
|
classes: {
|
|
487
487
|
URLSearchParams: Go,
|
|
@@ -489,10 +489,10 @@ const tn = {
|
|
|
489
489
|
Blob: Vo
|
|
490
490
|
},
|
|
491
491
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
492
|
-
},
|
|
493
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zo =
|
|
492
|
+
}, Ht = typeof window < "u" && typeof document < "u", _t = typeof navigator == "object" && navigator || void 0, Qo = Ht && (!_t || ["ReactNative", "NativeScript", "NS"].indexOf(_t.product) < 0), Xo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
493
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zo = Ht && window.location.href || "http://localhost", Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
494
494
|
__proto__: null,
|
|
495
|
-
hasBrowserEnv:
|
|
495
|
+
hasBrowserEnv: Ht,
|
|
496
496
|
hasStandardBrowserEnv: Qo,
|
|
497
497
|
hasStandardBrowserWebWorkerEnv: Xo,
|
|
498
498
|
navigator: _t,
|
|
@@ -858,8 +858,8 @@ function fi(t, e) {
|
|
|
858
858
|
d += n[p++], p = p % t;
|
|
859
859
|
if (o = (o + 1) % t, o === i && (i = (i + 1) % t), l - a < 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 pi(t, e) {
|
|
@@ -1031,22 +1031,22 @@ const sn = (t) => {
|
|
|
1031
1031
|
const o = sn(t);
|
|
1032
1032
|
let i = o.data;
|
|
1033
1033
|
const a = F.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 = F.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 sn = (t) => {
|
|
|
1073
1073
|
)), h = null;
|
|
1074
1074
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.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] = ke(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p,
|
|
1077
|
-
h && (r(!
|
|
1076
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = ke(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = ke(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
|
+
h && (r(!g || g.type ? new pe(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 = ui(o.url);
|
|
1080
1080
|
if (E && C.protocols.indexOf(E) === -1) {
|
|
@@ -1222,9 +1222,9 @@ const Ri = async (t) => {
|
|
|
1222
1222
|
fetchOptions: d
|
|
1223
1223
|
} = sn(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
|
-
let
|
|
1226
|
-
const m =
|
|
1227
|
-
|
|
1225
|
+
let v = wi([o, i && i.toAbortSignal()], a), y;
|
|
1226
|
+
const m = v && v.unsubscribe && (() => {
|
|
1227
|
+
v.unsubscribe();
|
|
1228
1228
|
});
|
|
1229
1229
|
let h;
|
|
1230
1230
|
try {
|
|
@@ -1235,18 +1235,18 @@ const Ri = async (t) => {
|
|
|
1235
1235
|
duplex: "half"
|
|
1236
1236
|
}), _;
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
|
-
const [$,
|
|
1238
|
+
const [$, z] = or(
|
|
1239
1239
|
h,
|
|
1240
1240
|
ke(ir(u))
|
|
1241
1241
|
);
|
|
1242
|
-
r = sr(A.body, lr, $,
|
|
1242
|
+
r = sr(A.body, lr, $, z);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
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,26 +1254,26 @@ const Ri = async (t) => {
|
|
|
1254
1254
|
credentials: S ? p : void 0
|
|
1255
1255
|
});
|
|
1256
1256
|
let E = await fetch(y, d);
|
|
1257
|
-
const
|
|
1258
|
-
if ($t && (s ||
|
|
1257
|
+
const g = $t && (l === "stream" || l === "response");
|
|
1258
|
+
if ($t && (s || g && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
|
-
["status", "statusText", "headers"].forEach((
|
|
1261
|
-
A[
|
|
1260
|
+
["status", "statusText", "headers"].forEach((L) => {
|
|
1261
|
+
A[L] = E[L];
|
|
1262
1262
|
});
|
|
1263
|
-
const _ = f.toFiniteNumber(E.headers.get("content-length")), [$,
|
|
1263
|
+
const _ = f.toFiniteNumber(E.headers.get("content-length")), [$, z] = s && or(
|
|
1264
1264
|
_,
|
|
1265
1265
|
ke(ir(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
1268
|
sr(E.body, lr, $, () => {
|
|
1269
|
-
|
|
1269
|
+
z && z(), m && m();
|
|
1270
1270
|
}),
|
|
1271
1271
|
A
|
|
1272
1272
|
);
|
|
1273
1273
|
}
|
|
1274
1274
|
l = l || "text";
|
|
1275
1275
|
let T = await qe[f.findKey(qe, l) || "text"](E, t);
|
|
1276
|
-
return !
|
|
1276
|
+
return !g && m && m(), await new Promise((A, _) => {
|
|
1277
1277
|
on(A, _, {
|
|
1278
1278
|
data: T,
|
|
1279
1279
|
headers: F.from(E.headers),
|
|
@@ -1477,18 +1477,18 @@ let Y = 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 = ur.call(this,
|
|
1491
|
+
c = ur.call(this, v);
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
@@ -1702,22 +1702,22 @@ R.getAdapter = un.getAdapter;
|
|
|
1702
1702
|
R.HttpStatusCode = Ft;
|
|
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: ic,
|
|
1717
|
+
HttpStatusCode: ac,
|
|
1718
|
+
formToJSON: sc,
|
|
1719
|
+
getAdapter: lc,
|
|
1720
|
+
mergeConfig: cc
|
|
1721
1721
|
} = R;
|
|
1722
1722
|
var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
1723
|
function Fi(t) {
|
|
@@ -1746,8 +1746,8 @@ var de = TypeError;
|
|
|
1746
1746
|
const Ii = {}, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: Ii
|
|
1749
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1750
|
-
var Wt = typeof Map == "function" && Map.prototype, st = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, je = Wt && st && typeof st.get == "function" ? st.get : null, dr = Wt && Map.prototype.forEach, Gt = typeof Set == "function" && Set.prototype, lt = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null,
|
|
1749
|
+
}, Symbol.toStringTag, { value: "Module" })), Ui = /* @__PURE__ */ Di(Bi);
|
|
1750
|
+
var Wt = typeof Map == "function" && Map.prototype, st = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, je = Wt && st && typeof st.get == "function" ? st.get : null, dr = Wt && Map.prototype.forEach, Gt = typeof Set == "function" && Set.prototype, lt = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ze = Gt && lt && typeof lt.get == "function" ? lt.get : null, yr = Gt && Set.prototype.forEach, Li = typeof WeakMap == "function" && WeakMap.prototype, ge = Li ? WeakMap.prototype.has : null, Mi = typeof WeakSet == "function" && WeakSet.prototype, ve = Mi ? WeakSet.prototype.has : null, ki = typeof WeakRef == "function" && WeakRef.prototype, hr = ki ? WeakRef.prototype.deref : null, qi = Boolean.prototype.valueOf, ji = Object.prototype.toString, zi = Function.prototype.toString, Hi = String.prototype.match, Jt = String.prototype.slice, K = String.prototype.replace, Wi = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, yn = RegExp.prototype.test, gr = Array.prototype.concat, j = Array.prototype.join, Gi = Array.prototype.slice, vr = Math.floor, Dt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ct = Object.getOwnPropertySymbols, It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ce = typeof Symbol == "function" && typeof Symbol.iterator == "object", we = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ce || !0) ? Symbol.toStringTag : null, hn = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1751
1751
|
return t.__proto__;
|
|
1752
1752
|
} : null);
|
|
1753
1753
|
function br(t, e) {
|
|
@@ -1763,7 +1763,7 @@ function br(t, e) {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
return K.call(e, n, "$&_");
|
|
1765
1765
|
}
|
|
1766
|
-
var Bt =
|
|
1766
|
+
var Bt = Ui, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
1767
1767
|
__proto__: null,
|
|
1768
1768
|
double: '"',
|
|
1769
1769
|
single: "'"
|
|
@@ -1805,14 +1805,14 @@ var Bt = Li, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
var c = typeof i.depth > "u" ? 5 : i.depth;
|
|
1807
1807
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
1808
|
-
return
|
|
1808
|
+
return Ut(e) ? "[Array]" : "[Object]";
|
|
1809
1809
|
var p = fa(i, r);
|
|
1810
1810
|
if (typeof o > "u")
|
|
1811
1811
|
o = [];
|
|
1812
1812
|
else if (wn(o, e) >= 0)
|
|
1813
1813
|
return "[Circular]";
|
|
1814
|
-
function d(D, J,
|
|
1815
|
-
if (J && (o = Gi.call(o), o.push(J)),
|
|
1814
|
+
function d(D, J, H) {
|
|
1815
|
+
if (J && (o = Gi.call(o), o.push(J)), H) {
|
|
1816
1816
|
var ye = {
|
|
1817
1817
|
depth: i.depth
|
|
1818
1818
|
};
|
|
@@ -1821,8 +1821,8 @@ var Bt = Li, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1821
1821
|
return t(D, i, r + 1, o);
|
|
1822
1822
|
}
|
|
1823
1823
|
if (typeof e == "function" && !Ar(e)) {
|
|
1824
|
-
var
|
|
1825
|
-
return "[Function" + (
|
|
1824
|
+
var v = ra(e), y = $e(e, d);
|
|
1825
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + j.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
1827
|
if (vn(e)) {
|
|
1828
1828
|
var m = ce ? K.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : It.call(e);
|
|
@@ -1833,11 +1833,11 @@ var Bt = Li, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1833
1833
|
h += " " + S[E].name + "=" + gn(Vi(S[E].value), "double", i);
|
|
1834
1834
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + mr.call(String(e.nodeName)) + ">", h;
|
|
1835
1835
|
}
|
|
1836
|
-
if (
|
|
1836
|
+
if (Ut(e)) {
|
|
1837
1837
|
if (e.length === 0)
|
|
1838
1838
|
return "[]";
|
|
1839
|
-
var
|
|
1840
|
-
return p && !ua(
|
|
1839
|
+
var g = $e(e, d);
|
|
1840
|
+
return p && !ua(g) ? "[" + Lt(g, p) + "]" : "[ " + j.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
1842
|
if (Qi(e)) {
|
|
1843
1843
|
var T = $e(e, d);
|
|
@@ -1859,7 +1859,7 @@ var Bt = Li, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1859
1859
|
var _ = [];
|
|
1860
1860
|
return yr && yr.call(e, function(D) {
|
|
1861
1861
|
_.push(d(D, e));
|
|
1862
|
-
}), Or("Set",
|
|
1862
|
+
}), Or("Set", ze.call(e), _, p);
|
|
1863
1863
|
}
|
|
1864
1864
|
if (oa(e))
|
|
1865
1865
|
return ut("WeakMap");
|
|
@@ -1880,8 +1880,8 @@ var Bt = Li, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1880
1880
|
if (typeof globalThis < "u" && e === globalThis || typeof pr < "u" && e === pr)
|
|
1881
1881
|
return "{ [object globalThis] }";
|
|
1882
1882
|
if (!Ki(e) && !Ar(e)) {
|
|
1883
|
-
var $ = $e(e, d),
|
|
1884
|
-
return $.length === 0 ? oe + "{}" : p ? oe + "{" +
|
|
1883
|
+
var $ = $e(e, d), z = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", G = !z && we && Object(e) === e && we in e ? Jt.call(Q(e), 8, -1) : L ? "Object" : "", _e = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", oe = _e + (G || L ? "[" + j.call(gr.call([], G || [], L || []), ": ") + "] " : "");
|
|
1884
|
+
return $.length === 0 ? oe + "{}" : p ? oe + "{" + Lt($, p) + "}" : oe + "{ " + j.call($, ", ") + " }";
|
|
1885
1885
|
}
|
|
1886
1886
|
return String(e);
|
|
1887
1887
|
};
|
|
@@ -1895,7 +1895,7 @@ function Vi(t) {
|
|
|
1895
1895
|
function ne(t) {
|
|
1896
1896
|
return !we || !(typeof t == "object" && (we in t || typeof t[we] < "u"));
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Ut(t) {
|
|
1899
1899
|
return Q(t) === "[object Array]" && ne(t);
|
|
1900
1900
|
}
|
|
1901
1901
|
function Ki(t) {
|
|
@@ -1950,7 +1950,7 @@ function Q(t) {
|
|
|
1950
1950
|
function ra(t) {
|
|
1951
1951
|
if (t.name)
|
|
1952
1952
|
return t.name;
|
|
1953
|
-
var e =
|
|
1953
|
+
var e = Hi.call(zi.call(t), /^function\s*([\w$]+)/);
|
|
1954
1954
|
return e ? e[1] : null;
|
|
1955
1955
|
}
|
|
1956
1956
|
function wn(t, e) {
|
|
@@ -1967,7 +1967,7 @@ function na(t) {
|
|
|
1967
1967
|
try {
|
|
1968
1968
|
je.call(t);
|
|
1969
1969
|
try {
|
|
1970
|
-
|
|
1970
|
+
ze.call(t);
|
|
1971
1971
|
} catch {
|
|
1972
1972
|
return !0;
|
|
1973
1973
|
}
|
|
@@ -2001,10 +2001,10 @@ function ia(t) {
|
|
|
2001
2001
|
return !1;
|
|
2002
2002
|
}
|
|
2003
2003
|
function aa(t) {
|
|
2004
|
-
if (!
|
|
2004
|
+
if (!ze || !t || typeof t != "object")
|
|
2005
2005
|
return !1;
|
|
2006
2006
|
try {
|
|
2007
|
-
|
|
2007
|
+
ze.call(t);
|
|
2008
2008
|
try {
|
|
2009
2009
|
je.call(t);
|
|
2010
2010
|
} catch {
|
|
@@ -2060,7 +2060,7 @@ function ut(t) {
|
|
|
2060
2060
|
return t + " { ? }";
|
|
2061
2061
|
}
|
|
2062
2062
|
function Or(t, e, n, r) {
|
|
2063
|
-
var o = r ?
|
|
2063
|
+
var o = r ? Lt(n, r) : j.call(n, ", ");
|
|
2064
2064
|
return t + " (" + e + ") {" + o + "}";
|
|
2065
2065
|
}
|
|
2066
2066
|
function ua(t) {
|
|
@@ -2083,7 +2083,7 @@ function fa(t, e) {
|
|
|
2083
2083
|
prev: j.call(Array(e + 1), n)
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function Lt(t, e) {
|
|
2087
2087
|
if (t.length === 0)
|
|
2088
2088
|
return "";
|
|
2089
2089
|
var n = `
|
|
@@ -2092,7 +2092,7 @@ function Ut(t, e) {
|
|
|
2092
2092
|
` + e.prev;
|
|
2093
2093
|
}
|
|
2094
2094
|
function $e(t, e) {
|
|
2095
|
-
var n =
|
|
2095
|
+
var n = Ut(t), r = [];
|
|
2096
2096
|
if (n) {
|
|
2097
2097
|
r.length = t.length;
|
|
2098
2098
|
for (var o = 0; o < t.length; o++)
|
|
@@ -2167,21 +2167,21 @@ var pa = Ze, da = de, Ye = function(t, e, n) {
|
|
|
2167
2167
|
return e !== e;
|
|
2168
2168
|
}, Na = $a, Fa = function(e) {
|
|
2169
2169
|
return Na(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2170
|
-
}, Da = Object.getOwnPropertyDescriptor,
|
|
2171
|
-
if (
|
|
2170
|
+
}, Da = Object.getOwnPropertyDescriptor, Ue = Da;
|
|
2171
|
+
if (Ue)
|
|
2172
2172
|
try {
|
|
2173
|
-
|
|
2173
|
+
Ue([], "length");
|
|
2174
2174
|
} catch {
|
|
2175
|
-
|
|
2175
|
+
Ue = null;
|
|
2176
2176
|
}
|
|
2177
|
-
var En =
|
|
2178
|
-
if (
|
|
2177
|
+
var En = Ue, Le = Object.defineProperty || !1;
|
|
2178
|
+
if (Le)
|
|
2179
2179
|
try {
|
|
2180
|
-
|
|
2180
|
+
Le({}, "a", { value: 1 });
|
|
2181
2181
|
} catch {
|
|
2182
|
-
|
|
2182
|
+
Le = !1;
|
|
2183
2183
|
}
|
|
2184
|
-
var Ia =
|
|
2184
|
+
var Ia = Le, ft, Rr;
|
|
2185
2185
|
function Ba() {
|
|
2186
2186
|
return Rr || (Rr = 1, ft = function() {
|
|
2187
2187
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
@@ -2212,7 +2212,7 @@ function Ba() {
|
|
|
2212
2212
|
}), ft;
|
|
2213
2213
|
}
|
|
2214
2214
|
var pt, Pr;
|
|
2215
|
-
function
|
|
2215
|
+
function Ua() {
|
|
2216
2216
|
if (Pr) return pt;
|
|
2217
2217
|
Pr = 1;
|
|
2218
2218
|
var t = typeof Symbol < "u" && Symbol, e = Ba();
|
|
@@ -2232,7 +2232,7 @@ function On() {
|
|
|
2232
2232
|
return yt = t.getPrototypeOf || null, yt;
|
|
2233
2233
|
}
|
|
2234
2234
|
var ht, Cr;
|
|
2235
|
-
function
|
|
2235
|
+
function La() {
|
|
2236
2236
|
if (Cr) return ht;
|
|
2237
2237
|
Cr = 1;
|
|
2238
2238
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, l) {
|
|
@@ -2266,7 +2266,7 @@ function Ua() {
|
|
|
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 (" + a(y, ",") + "){ return binder.apply(this,arguments); }")(d), l.prototype) {
|
|
2272
2272
|
var h = function() {
|
|
@@ -2280,7 +2280,7 @@ var mt, _r;
|
|
|
2280
2280
|
function et() {
|
|
2281
2281
|
if (_r) return mt;
|
|
2282
2282
|
_r = 1;
|
|
2283
|
-
var t =
|
|
2283
|
+
var t = La();
|
|
2284
2284
|
return mt = Function.prototype.bind || t, mt;
|
|
2285
2285
|
}
|
|
2286
2286
|
var gt, $r;
|
|
@@ -2291,7 +2291,7 @@ var vt, Nr;
|
|
|
2291
2291
|
function Rn() {
|
|
2292
2292
|
return Nr || (Nr = 1, vt = Function.prototype.apply), vt;
|
|
2293
2293
|
}
|
|
2294
|
-
var Ma = typeof Reflect < "u" && Reflect && Reflect.apply, ka = et(), qa = Rn(), ja = Vt(),
|
|
2294
|
+
var Ma = typeof Reflect < "u" && Reflect && Reflect.apply, ka = et(), qa = Rn(), ja = Vt(), za = Ma, Ha = za || ka.call(ja, qa), Wa = et(), Ga = de, Ja = Vt(), Va = Ha, Pn = function(e) {
|
|
2295
2295
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2296
2296
|
throw new Ga("a function is required");
|
|
2297
2297
|
return Va(Wa, Ja, e);
|
|
@@ -2358,7 +2358,7 @@ var b, Za = Sn, Ya = wa, es = ba, ts = Sa, rs = Ea, ue = Aa, le = de, ns = Oa, o
|
|
|
2358
2358
|
return At;
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
}() : At, ie =
|
|
2361
|
+
}() : At, ie = Ua()(), x = Qa(), ds = On(), ys = An(), xn = Rn(), Te = Vt(), se = {}, hs = typeof Uint8Array > "u" || !x ? b : x(Uint8Array), ee = {
|
|
2362
2362
|
__proto__: null,
|
|
2363
2363
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2364
2364
|
"%Array%": Array,
|
|
@@ -2518,19 +2518,19 @@ var gs = function t(e) {
|
|
|
2518
2518
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2519
2519
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2520
2520
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2521
|
-
}, xe = et(),
|
|
2521
|
+
}, xe = et(), He = Xa(), vs = xe.call(Te, Array.prototype.concat), ws = xe.call(xn, Array.prototype.splice), Ur = xe.call(Te, String.prototype.replace), We = xe.call(Te, String.prototype.slice), bs = xe.call(Te, RegExp.prototype.exec), Ss = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Es = /\\(\\)?/g, As = function(e) {
|
|
2522
2522
|
var n = We(e, 0, 1), r = We(e, -1);
|
|
2523
2523
|
if (n === "%" && r !== "%")
|
|
2524
2524
|
throw new ue("invalid intrinsic syntax, expected closing `%`");
|
|
2525
2525
|
if (r === "%" && n !== "%")
|
|
2526
2526
|
throw new ue("invalid intrinsic syntax, expected opening `%`");
|
|
2527
2527
|
var o = [];
|
|
2528
|
-
return
|
|
2529
|
-
o[o.length] = s ?
|
|
2528
|
+
return Ur(e, Ss, function(i, a, s, u) {
|
|
2529
|
+
o[o.length] = s ? Ur(u, Es, "$1") : a || i;
|
|
2530
2530
|
}), o;
|
|
2531
2531
|
}, Os = function(e, n) {
|
|
2532
2532
|
var r = e, o;
|
|
2533
|
-
if (
|
|
2533
|
+
if (He(Br, r) && (o = Br[r], r = "%" + o[0] + "%"), He(ee, r)) {
|
|
2534
2534
|
var i = ee[r];
|
|
2535
2535
|
if (i === se && (i = gs(r)), typeof i > "u" && !n)
|
|
2536
2536
|
throw new le("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -2551,10 +2551,10 @@ var gs = function t(e) {
|
|
|
2551
2551
|
var r = As(e), o = r.length > 0 ? r[0] : "", i = Os("%" + o + "%", n), a = i.name, s = i.value, u = !1, l = i.alias;
|
|
2552
2552
|
l && (o = l[0], ws(r, vs([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 = We(d, 0, 1), y = We(d, -1);
|
|
2555
|
+
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2556
2556
|
throw new ue("property names with quotes must have matching quotes");
|
|
2557
|
-
if ((d === "constructor" || !p) && (u = !0), o += "." + d, a = "%" + o + "%",
|
|
2557
|
+
if ((d === "constructor" || !p) && (u = !0), o += "." + d, a = "%" + o + "%", He(ee, a))
|
|
2558
2558
|
s = ee[a];
|
|
2559
2559
|
else if (s != null) {
|
|
2560
2560
|
if (!(d in s)) {
|
|
@@ -2566,7 +2566,7 @@ var gs = function t(e) {
|
|
|
2566
2566
|
var m = Ee(s, d);
|
|
2567
2567
|
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2568
2568
|
} else
|
|
2569
|
-
p =
|
|
2569
|
+
p = He(s, d), s = s[d];
|
|
2570
2570
|
p && !u && (ee[a] = s);
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
@@ -2580,7 +2580,7 @@ var gs = function t(e) {
|
|
|
2580
2580
|
/** @type {const} */
|
|
2581
2581
|
[r]
|
|
2582
2582
|
) : r;
|
|
2583
|
-
}, Ps = Kt, Ce = $n, Ts = Ze, xs = de,
|
|
2583
|
+
}, Ps = Kt, Ce = $n, Ts = Ze, xs = de, Lr = Ps("%Map%", !0), Cs = Ce("Map.prototype.get", !0), _s = Ce("Map.prototype.set", !0), $s = Ce("Map.prototype.has", !0), Ns = Ce("Map.prototype.delete", !0), Fs = Ce("Map.prototype.size", !0), Nn = !!Lr && /** @type {Exclude<import('.'), false>} */
|
|
2584
2584
|
function() {
|
|
2585
2585
|
var e, n = {
|
|
2586
2586
|
assert: function(r) {
|
|
@@ -2602,11 +2602,11 @@ function() {
|
|
|
2602
2602
|
return e ? $s(e, r) : !1;
|
|
2603
2603
|
},
|
|
2604
2604
|
set: function(r, o) {
|
|
2605
|
-
e || (e = new
|
|
2605
|
+
e || (e = new Lr()), _s(e, r, o);
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
return n;
|
|
2609
|
-
}, Ds = Kt, tt = $n, Is = Ze, Ne = Nn, Bs = de, ae = Ds("%WeakMap%", !0),
|
|
2609
|
+
}, Ds = Kt, tt = $n, Is = Ze, Ne = Nn, Bs = de, ae = Ds("%WeakMap%", !0), Us = tt("WeakMap.prototype.get", !0), Ls = tt("WeakMap.prototype.set", !0), Ms = tt("WeakMap.prototype.has", !0), ks = tt("WeakMap.prototype.delete", !0), qs = ae ? (
|
|
2610
2610
|
/** @type {Exclude<import('.'), false>} */
|
|
2611
2611
|
function() {
|
|
2612
2612
|
var e, n, r = {
|
|
@@ -2623,22 +2623,22 @@ function() {
|
|
|
2623
2623
|
return !1;
|
|
2624
2624
|
},
|
|
2625
2625
|
get: function(o) {
|
|
2626
|
-
return ae && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2626
|
+
return ae && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : n && n.get(o);
|
|
2627
2627
|
},
|
|
2628
2628
|
has: function(o) {
|
|
2629
2629
|
return ae && o && (typeof o == "object" || typeof o == "function") && e ? Ms(e, o) : !!n && n.has(o);
|
|
2630
2630
|
},
|
|
2631
2631
|
set: function(o, i) {
|
|
2632
|
-
ae && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ae()),
|
|
2632
|
+
ae && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ae()), Ls(e, o, i)) : Ne && (n || (n = Ne()), n.set(o, i));
|
|
2633
2633
|
}
|
|
2634
2634
|
};
|
|
2635
2635
|
return r;
|
|
2636
2636
|
}
|
|
2637
|
-
) : Ne, js = de,
|
|
2637
|
+
) : Ne, js = de, zs = Ze, Hs = va, Ws = Nn, Gs = qs, Js = Gs || Ws || Hs, Vs = function() {
|
|
2638
2638
|
var e, n = {
|
|
2639
2639
|
assert: function(r) {
|
|
2640
2640
|
if (!n.has(r))
|
|
2641
|
-
throw new js("Side channel does not contain " +
|
|
2641
|
+
throw new js("Side channel does not contain " + zs(r));
|
|
2642
2642
|
},
|
|
2643
2643
|
delete: function(r) {
|
|
2644
2644
|
return !!e && e.delete(r);
|
|
@@ -2729,8 +2729,8 @@ function() {
|
|
|
2729
2729
|
return e;
|
|
2730
2730
|
var a = e;
|
|
2731
2731
|
if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), r === "iso-8859-1")
|
|
2732
|
-
return escape(a).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2733
|
-
return "%26%23" + parseInt(
|
|
2732
|
+
return escape(a).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 < a.length; u += Pt) {
|
|
2736
2736
|
for (var l = a.length >= Pt ? a.slice(u, u + Pt) : a, c = [], p = 0; p < l.length; ++p) {
|
|
@@ -2798,7 +2798,7 @@ function() {
|
|
|
2798
2798
|
repeat: function(e) {
|
|
2799
2799
|
return e;
|
|
2800
2800
|
}
|
|
2801
|
-
}, q = Array.isArray, cl = Array.prototype.push,
|
|
2801
|
+
}, q = Array.isArray, cl = Array.prototype.push, Un = function(t, e) {
|
|
2802
2802
|
cl.apply(t, q(e) ? e : [e]);
|
|
2803
2803
|
}, ul = Date.prototype.toISOString, Mr = be.default, P = {
|
|
2804
2804
|
addQueryPrefix: !1,
|
|
@@ -2825,8 +2825,8 @@ function() {
|
|
|
2825
2825
|
strictNullHandling: !1
|
|
2826
2826
|
}, fl = function(e) {
|
|
2827
2827
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2828
|
-
}, Tt = {}, pl = function t(e, n, r, o, i, a, s, u, l, c, p, d,
|
|
2829
|
-
for (var
|
|
2828
|
+
}, Tt = {}, pl = function t(e, n, r, o, i, a, 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(Tt)) !== void 0 && !_; ) {
|
|
2830
2830
|
var $ = T.get(e);
|
|
2831
2831
|
if (A += 1, typeof $ < "u") {
|
|
2832
2832
|
if ($ === A)
|
|
@@ -2835,42 +2835,42 @@ function() {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
typeof T.get(Tt) > "u" && (A = 0);
|
|
2837
2837
|
}
|
|
2838
|
-
if (typeof c == "function" ?
|
|
2839
|
-
return nt instanceof Date ?
|
|
2840
|
-
})),
|
|
2838
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && q(g) && (g = Me.maybeMap(g, function(nt) {
|
|
2839
|
+
return nt instanceof Date ? v(nt) : nt;
|
|
2840
|
+
})), g === null) {
|
|
2841
2841
|
if (a)
|
|
2842
2842
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2843
|
-
|
|
2843
|
+
g = "";
|
|
2844
2844
|
}
|
|
2845
|
-
if (fl(
|
|
2845
|
+
if (fl(g) || Me.isBuffer(g)) {
|
|
2846
2846
|
if (l) {
|
|
2847
|
-
var
|
|
2848
|
-
return [m(
|
|
2847
|
+
var z = h ? n : l(n, P.encoder, S, "key", y);
|
|
2848
|
+
return [m(z) + "=" + 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
|
-
var
|
|
2853
|
-
if (typeof
|
|
2854
|
-
return
|
|
2852
|
+
var L = [];
|
|
2853
|
+
if (typeof g > "u")
|
|
2854
|
+
return L;
|
|
2855
2855
|
var G;
|
|
2856
|
-
if (r === "comma" && q(
|
|
2857
|
-
h && l && (
|
|
2856
|
+
if (r === "comma" && q(g))
|
|
2857
|
+
h && l && (g = Me.maybeMap(g, l)), G = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2858
2858
|
else if (q(c))
|
|
2859
2859
|
G = c;
|
|
2860
2860
|
else {
|
|
2861
|
-
var _e = Object.keys(
|
|
2861
|
+
var _e = Object.keys(g);
|
|
2862
2862
|
G = p ? _e.sort(p) : _e;
|
|
2863
2863
|
}
|
|
2864
|
-
var oe = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && q(
|
|
2865
|
-
if (i && q(
|
|
2864
|
+
var oe = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && q(g) && g.length === 1 ? oe + "[]" : oe;
|
|
2865
|
+
if (i && q(g) && g.length === 0)
|
|
2866
2866
|
return D + "[]";
|
|
2867
2867
|
for (var J = 0; J < G.length; ++J) {
|
|
2868
|
-
var
|
|
2868
|
+
var H = G[J], ye = typeof H == "object" && H && typeof H.value < "u" ? H.value : g[H];
|
|
2869
2869
|
if (!(s && ye === null)) {
|
|
2870
|
-
var rt = d && u ? String(
|
|
2870
|
+
var rt = d && u ? String(H).replace(/\./g, "%2E") : String(H), jn = q(g) ? typeof r == "function" ? r(D, rt) : D : D + (d ? "." + rt : "[" + rt + "]");
|
|
2871
2871
|
E.set(e, A);
|
|
2872
2872
|
var Zt = In();
|
|
2873
|
-
Zt.set(Tt, E),
|
|
2873
|
+
Zt.set(Tt, E), Un(L, t(
|
|
2874
2874
|
ye,
|
|
2875
2875
|
jn,
|
|
2876
2876
|
r,
|
|
@@ -2879,11 +2879,11 @@ function() {
|
|
|
2879
2879
|
a,
|
|
2880
2880
|
s,
|
|
2881
2881
|
u,
|
|
2882
|
-
r === "comma" && h && q(
|
|
2882
|
+
r === "comma" && h && q(g) ? null : l,
|
|
2883
2883
|
c,
|
|
2884
2884
|
p,
|
|
2885
2885
|
d,
|
|
2886
|
-
|
|
2886
|
+
v,
|
|
2887
2887
|
y,
|
|
2888
2888
|
m,
|
|
2889
2889
|
h,
|
|
@@ -2892,7 +2892,7 @@ function() {
|
|
|
2892
2892
|
));
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
|
-
return
|
|
2895
|
+
return L;
|
|
2896
2896
|
}, dl = function(e) {
|
|
2897
2897
|
if (!e)
|
|
2898
2898
|
return P;
|
|
@@ -2948,7 +2948,7 @@ function() {
|
|
|
2948
2948
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2949
2949
|
for (var l = In(), c = 0; c < o.length; ++c) {
|
|
2950
2950
|
var p = o[c], d = n[p];
|
|
2951
|
-
r.skipNulls && d === null ||
|
|
2951
|
+
r.skipNulls && d === null || Un(a, pl(
|
|
2952
2952
|
d,
|
|
2953
2953
|
p,
|
|
2954
2954
|
s,
|
|
@@ -2969,8 +2969,8 @@ 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&"),
|
|
2972
|
+
var v = a.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
2974
|
}, re = Dn, Mt = Object.prototype.hasOwnProperty, kr = Array.isArray, O = {
|
|
2975
2975
|
allowDots: !1,
|
|
2976
2976
|
allowEmptyArrays: !1,
|
|
@@ -2997,7 +2997,7 @@ function() {
|
|
|
2997
2997
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2998
2998
|
return String.fromCharCode(parseInt(n, 10));
|
|
2999
2999
|
});
|
|
3000
|
-
},
|
|
3000
|
+
}, Ln = function(t, e, n) {
|
|
3001
3001
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3002
3002
|
return t.split(",");
|
|
3003
3003
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
@@ -3018,19 +3018,19 @@ function() {
|
|
|
3018
3018
|
a[u].indexOf("utf8=") === 0 && (a[u] === gl ? l = "utf-8" : a[u] === ml && (l = "iso-8859-1"), s = u, u = a.length);
|
|
3019
3019
|
for (u = 0; u < a.length; ++u)
|
|
3020
3020
|
if (u !== s) {
|
|
3021
|
-
var c = a[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1,
|
|
3022
|
-
d === -1 ? (
|
|
3023
|
-
|
|
3021
|
+
var c = a[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 = re.maybeMap(
|
|
3023
|
+
Ln(
|
|
3024
3024
|
c.slice(d + 1),
|
|
3025
3025
|
n,
|
|
3026
|
-
kr(r[
|
|
3026
|
+
kr(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
3031
|
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hl(String(y))), c.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
|
|
3032
|
-
var m = Mt.call(r,
|
|
3033
|
-
m && n.duplicates === "combine" ? r[
|
|
3032
|
+
var m = Mt.call(r, v);
|
|
3033
|
+
m && n.duplicates === "combine" ? r[v] = re.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3034
3034
|
}
|
|
3035
3035
|
return r;
|
|
3036
3036
|
}, wl = function(t, e, n, r) {
|
|
@@ -3039,7 +3039,7 @@ function() {
|
|
|
3039
3039
|
var i = t.slice(0, -1).join("");
|
|
3040
3040
|
o = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
3041
3041
|
}
|
|
3042
|
-
for (var a = r ? e :
|
|
3042
|
+
for (var a = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3043
3043
|
var u, l = t[s];
|
|
3044
3044
|
if (l === "[]" && n.parseArrays)
|
|
3045
3045
|
u = n.allowEmptyArrays && (a === "" || n.strictNullHandling && a === null) ? [] : re.combine([], a);
|
|
@@ -3209,53 +3209,69 @@ const _l = {
|
|
|
3209
3209
|
en: "Network error, please check your network status",
|
|
3210
3210
|
_appCode: "framework"
|
|
3211
3211
|
}
|
|
3212
|
-
};
|
|
3213
|
-
|
|
3212
|
+
}, $l = async (t) => null;
|
|
3213
|
+
zn(_l);
|
|
3214
3214
|
qt.extend(Xn);
|
|
3215
3215
|
qt.extend(Zn);
|
|
3216
|
-
const Xt = qr(), Mn = Xt.sso ?? !0,
|
|
3216
|
+
const Xt = qr(), Mn = Xt.sso ?? !0, Nl = Xt.i18n ?? !0, kn = Xt.noRedireLogin ?? !1, Fl = (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
|
+
}, Dl = (t) => {
|
|
3220
|
+
t.interceptors.response.use(void 0, async (e) => {
|
|
3221
|
+
const n = e == null ? void 0 : e.config;
|
|
3222
|
+
if (!n || n.public || !Fl(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3223
|
+
return Promise.reject(e);
|
|
3224
|
+
try {
|
|
3225
|
+
const r = await $l({ 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
|
+
}, qn = () => {
|
|
3217
3232
|
if (kn) return;
|
|
3218
3233
|
const t = "/login";
|
|
3219
3234
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3220
|
-
},
|
|
3235
|
+
}, Il = 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
|
+
}, Bl = 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 i = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
|
|
3227
|
-
let a = ((
|
|
3228
|
-
|
|
3242
|
+
let a = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
|
|
3243
|
+
const s = Jn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? kn);
|
|
3244
|
+
if (!s && u && (n === 401 || (a == null ? void 0 : a.code) === 401))
|
|
3229
3245
|
Mn ? Vn({ ...Qn, redirect_uri: Kn }) : qn(), o = a;
|
|
3230
3246
|
else {
|
|
3231
3247
|
if (t.response) {
|
|
3232
|
-
if (a instanceof Blob && (a = await new Promise((
|
|
3233
|
-
const
|
|
3234
|
-
|
|
3248
|
+
if (a instanceof Blob && (a = await new Promise((y) => {
|
|
3249
|
+
const m = new FileReader();
|
|
3250
|
+
m.readAsText(a, "utf-8"), m.onload = () => {
|
|
3235
3251
|
try {
|
|
3236
|
-
|
|
3252
|
+
y(JSON.parse(m.result || "{}"));
|
|
3237
3253
|
} catch {
|
|
3238
|
-
|
|
3254
|
+
y({ code: 400, msg: V("blob解析错误") });
|
|
3239
3255
|
}
|
|
3240
3256
|
};
|
|
3241
3257
|
})), a.code) {
|
|
3242
3258
|
n = a.code;
|
|
3243
|
-
const
|
|
3244
|
-
if (
|
|
3245
|
-
const
|
|
3246
|
-
r = !(a != null && a.data) || !a.data.length ? V(
|
|
3259
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3260
|
+
if (Nl && y) {
|
|
3261
|
+
const m = (a == null ? void 0 : a.status) ?? "";
|
|
3262
|
+
r = !(a != null && a.data) || !a.data.length ? V(m) : V(m, ...a.data);
|
|
3247
3263
|
} else
|
|
3248
3264
|
r = (a == null ? void 0 : a.msg) ?? "";
|
|
3249
3265
|
o = a;
|
|
3250
3266
|
}
|
|
3251
3267
|
r || (r = i[t.response.status] || t.message);
|
|
3252
3268
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常");
|
|
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
|
}, I = (t, e) => {
|
|
3257
3273
|
const n = R.create();
|
|
3258
|
-
return Wn(n, async (r) => {
|
|
3274
|
+
return Dl(n), Wn(n, async (r) => {
|
|
3259
3275
|
const o = qr();
|
|
3260
3276
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3261
3277
|
let l = "";
|
|
@@ -3265,7 +3281,7 @@ const Xt = qr(), Mn = Xt.sso ?? !0, $l = Xt.i18n ?? !0, kn = Xt.noRedireLogin ??
|
|
|
3265
3281
|
}
|
|
3266
3282
|
Mn ? l || (l = await Gn(r)) : (l || (l = to()), l || qn()), 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) => Tl.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) => Tl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Bl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cl.get("csrf-token"));
|
|
3269
3285
|
const s = r.params || {};
|
|
3270
3286
|
if (s.project === void 0) {
|
|
3271
3287
|
let l = 0;
|
|
@@ -3276,23 +3292,23 @@ const Xt = qr(), Mn = Xt.sso ?? !0, $l = Xt.i18n ?? !0, kn = Xt.noRedireLogin ??
|
|
|
3276
3292
|
const { instanceInfo: l } = eo();
|
|
3277
3293
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3278
3294
|
}
|
|
3279
|
-
return r.params = s, r.headers.Timezone = qt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] =
|
|
3295
|
+
return r.params = s, r.headers.Timezone = qt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3280
3296
|
});
|
|
3281
|
-
}, B = "v1",
|
|
3297
|
+
}, B = "v1", uc = I(`/api/iot/${B}`), fc = {
|
|
3282
3298
|
thingmodel: I(`/api/iot-device/thingmodel/${B}`),
|
|
3283
3299
|
deviceManage: I(`/api/iot-device/devicemanage/${B}`),
|
|
3284
3300
|
product: I(`/api/iot-device/product/${B}`),
|
|
3285
3301
|
productStorage: I(`/api/iot-device/product-storage/${B}`)
|
|
3286
|
-
},
|
|
3302
|
+
}, pc = {
|
|
3287
3303
|
projectDevice: I(`/api/device-relation/deviceproject/${B}`),
|
|
3288
3304
|
deviceRules: I(`/api/device-relation/devicerule/${B}`),
|
|
3289
3305
|
project: I(`/api/device-relation/project/${B}`)
|
|
3290
|
-
},
|
|
3306
|
+
}, dc = I(`/api/oss/minio/${B}`), yc = I(`/api/progress/accessor/${B}`), hc = I(`/api/dms/analysis/${B}`);
|
|
3291
3307
|
export {
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3308
|
+
hc as analyApi,
|
|
3309
|
+
uc as iot,
|
|
3310
|
+
dc as iotMinio,
|
|
3311
|
+
fc as iotModules,
|
|
3312
|
+
yc as iotProgress,
|
|
3313
|
+
pc as iotRelationModules
|
|
3298
3314
|
};
|