@das-fed/upf-utils 6.4.0-dev.170 → 6.4.0-dev.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/es5.js +4622 -0
- package/api-services/i18n/es5.js +53 -0
- package/api-services/index.js +593 -611
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +487 -505
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +880 -880
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +479 -497
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +490 -508
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +473 -491
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +490 -508
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +4569 -0
- package/api-services/modules/file/index.js +942 -978
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +880 -880
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1022 -1058
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +831 -849
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +881 -881
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +698 -712
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +880 -880
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +880 -880
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +619 -641
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +880 -880
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +847 -883
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +479 -497
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +882 -882
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +490 -508
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +490 -508
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +880 -880
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +865 -901
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.js +9 -0
- package/common-info/es5.js +201 -0
- package/common-info/getIframeUrl/es5.js +16 -0
- package/common-info/getInfoFromUrl/es5.js +91 -0
- package/common-info/index.js +18 -18
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +2210 -0
- package/common-info/set-personal-info/index.js +172 -189
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/arr-tools/es5.js +11 -0
- package/common-tools/calc-text-width/es5.js +8 -0
- package/common-tools/date-format/es5.js +18 -0
- package/common-tools/es5.js +14 -0
- package/common-tools/extract-file-name/es5.js +2211 -0
- package/common-tools/extract-file-name/index.js +138 -155
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/es5.js +5 -0
- package/common-tools/get-url-params/es5.js +101 -0
- package/common-tools/handle-data/es5.js +146 -0
- package/common-tools/handle-data/index.js +28 -28
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/nest-tree-format/es5.js +53 -0
- package/common-tools/obj-tools/es5.js +13 -0
- package/common-tools/platform-tools/es5.js +19 -0
- package/common-tools/queue-promise/es5.js +13 -0
- package/common-tools/setHtmlMinWH/es5.js +6 -0
- package/common-tools/update-browser-title/es5.js +54 -0
- package/common-tools/update-fav-icon/es5.js +73 -0
- package/config/es5.js +15 -0
- package/create-api-service/check-token/es5.js +2305 -0
- package/create-api-service/check-token/index.js +158 -175
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +3947 -0
- package/create-api-service/i18n/es5.js +33 -0
- package/create-api-service/index.js +503 -521
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.js +33 -0
- package/create-api-service/sso/es5.js +2815 -0
- package/create-api-service/sso/index.js +309 -327
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2913 -0
- package/curring-http/index.js +285 -303
- package/curring-http/index.js.gz +0 -0
- package/dimple-canvas/es5.js +1 -0
- package/directive/auth/es5.js +94 -0
- package/directive/clickOutside/es5.js +85 -0
- package/directive/es5.js +3 -0
- package/directive/hoverInside/es5.js +59 -0
- package/directive/utils/es5.js +36 -0
- package/dom-check-in/es5.js +11 -0
- package/dom-watcher/es5.js +13 -0
- package/hooks/use-get-auth/es5.js +199 -0
- package/hooks/use-get-auth/index.js +22 -22
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/load-js/es5.js +13 -0
- package/nextTiken/es5.js +64 -0
- package/oss/es5.js +10 -0
- package/package.json +7 -4
- package/pinyin-first-character/es5.js +9311 -0
- package/pinyin-first-character/index.js +24 -24
- package/pinyin-first-character/index.js.gz +0 -0
- package/process-engine-info/es5.js +15 -0
- package/pure-image-src/es5.js +28 -0
- package/size-watcher/es5.js +32 -0
- package/style/es5.js +134 -0
- package/token-tools/es5.js +21 -0
- package/use-low-code/es5.js +115 -0
- package/use-low-code/index.js +2 -2
- package/use-low-code/index.js.gz +0 -0
- package/vue/es5.js +1 -0
- package/webSocket-service/es5.js +120 -0
- package/with-install/es5.js +6 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { getConfig as st } from "@das-fed/upf-utils/config";
|
|
2
|
-
function
|
|
2
|
+
function Le(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString: ot } = Object.prototype, { getPrototypeOf: fe } = Object, { iterator: X, toStringTag:
|
|
7
|
+
const { toString: ot } = Object.prototype, { getPrototypeOf: fe } = Object, { iterator: X, toStringTag: ke } = Symbol, G = /* @__PURE__ */ ((e) => (t) => {
|
|
8
8
|
const n = ot.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
10
|
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => G(t) === e), Q = (e) => (t) => typeof t === e, { isArray: B } = Array, I = Q("undefined");
|
|
11
11
|
function it(e) {
|
|
12
12
|
return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Be = C("ArrayBuffer");
|
|
15
15
|
function at(e) {
|
|
16
16
|
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Be(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const ct = Q("string"), A = Q("function"),
|
|
19
|
+
const ct = Q("string"), A = Q("function"), De = Q("number"), Y = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1, J = (e) => {
|
|
20
20
|
if (G(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
22
|
const t = fe(e);
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ke in e) && !(X in e);
|
|
24
24
|
}, ut = C("Date"), ft = C("File"), dt = C("Blob"), pt = C("FileList"), ht = (e) => Y(e) && A(e.pipe), mt = (e) => {
|
|
25
25
|
let t;
|
|
26
26
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = G(e)) === "formdata" || // detect form-data instance
|
|
27
27
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
28
28
|
}, yt = C("URLSearchParams"), [wt, bt, Et, Rt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), gt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
-
function
|
|
29
|
+
function M(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
32
32
|
let r, s;
|
|
@@ -40,7 +40,7 @@ function H(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
40
40
|
c = o[r], t.call(null, e[c], c, e);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function je(e, t) {
|
|
44
44
|
t = t.toLowerCase();
|
|
45
45
|
const n = Object.keys(e);
|
|
46
46
|
let r = n.length, s;
|
|
@@ -49,18 +49,18 @@ function De(e, t) {
|
|
|
49
49
|
return s;
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
52
|
+
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qe = (e) => !I(e) && e !== U;
|
|
53
53
|
function oe() {
|
|
54
|
-
const { caseless: e } =
|
|
55
|
-
const o = e &&
|
|
56
|
-
|
|
54
|
+
const { caseless: e } = qe(this) && this || {}, t = {}, n = (r, s) => {
|
|
55
|
+
const o = e && je(t, s) || s;
|
|
56
|
+
J(t[o]) && J(r) ? t[o] = oe(t[o], r) : J(r) ? t[o] = oe({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
|
|
57
57
|
};
|
|
58
58
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
59
|
-
arguments[r] &&
|
|
59
|
+
arguments[r] && M(arguments[r], n);
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
const St = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
63
|
-
n && A(s) ? e[o] =
|
|
62
|
+
const St = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
|
|
63
|
+
n && A(s) ? e[o] = Le(s, n) : e[o] = s;
|
|
64
64
|
}, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ot = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
@@ -83,7 +83,7 @@ const St = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
|
|
|
83
83
|
if (!e) return null;
|
|
84
84
|
if (B(e)) return e;
|
|
85
85
|
let t = e.length;
|
|
86
|
-
if (!
|
|
86
|
+
if (!De(t)) return null;
|
|
87
87
|
const n = new Array(t);
|
|
88
88
|
for (; t-- > 0; )
|
|
89
89
|
n[t] = e[t];
|
|
@@ -106,14 +106,14 @@ const St = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
|
|
|
106
106
|
function(n, r, s) {
|
|
107
107
|
return r.toUpperCase() + s;
|
|
108
108
|
}
|
|
109
|
-
),
|
|
109
|
+
), ye = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Lt = C("RegExp"), Ie = (e, t) => {
|
|
110
110
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
111
|
-
|
|
111
|
+
M(n, (s, o) => {
|
|
112
112
|
let i;
|
|
113
113
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
114
114
|
}), Object.defineProperties(e, r);
|
|
115
115
|
}, kt = (e) => {
|
|
116
|
-
|
|
116
|
+
Ie(e, (t, n) => {
|
|
117
117
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
118
|
return !1;
|
|
119
119
|
const r = e[n];
|
|
@@ -137,7 +137,7 @@ const St = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
|
|
|
137
137
|
}, Dt = () => {
|
|
138
138
|
}, jt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
139
139
|
function qt(e) {
|
|
140
|
-
return !!(e && A(e.append) && e[
|
|
140
|
+
return !!(e && A(e.append) && e[ke] === "FormData" && e[X]);
|
|
141
141
|
}
|
|
142
142
|
const It = (e) => {
|
|
143
143
|
const t = new Array(10), n = (r, s) => {
|
|
@@ -147,7 +147,7 @@ const It = (e) => {
|
|
|
147
147
|
if (!("toJSON" in r)) {
|
|
148
148
|
t[s] = r;
|
|
149
149
|
const o = B(r) ? [] : {};
|
|
150
|
-
return
|
|
150
|
+
return M(r, (i, c) => {
|
|
151
151
|
const f = n(i, s + 1);
|
|
152
152
|
!I(f) && (o[c] = f);
|
|
153
153
|
}), t[s] = void 0, o;
|
|
@@ -156,24 +156,24 @@ const It = (e) => {
|
|
|
156
156
|
return r;
|
|
157
157
|
};
|
|
158
158
|
return n(e, 0);
|
|
159
|
-
},
|
|
159
|
+
}, Mt = C("AsyncFunction"), Ht = (e) => e && (Y(e) || A(e)) && A(e.then) && A(e.catch), Me = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
|
|
160
160
|
s === U && o === n && r.length && r.shift()();
|
|
161
161
|
}, !1), (s) => {
|
|
162
162
|
r.push(s), U.postMessage(n, "*");
|
|
163
163
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
164
164
|
typeof setImmediate == "function",
|
|
165
165
|
A(U.postMessage)
|
|
166
|
-
), zt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick ||
|
|
166
|
+
), zt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || Me, Jt = (e) => e != null && A(e[X]), a = {
|
|
167
167
|
isArray: B,
|
|
168
|
-
isArrayBuffer:
|
|
168
|
+
isArrayBuffer: Be,
|
|
169
169
|
isBuffer: it,
|
|
170
170
|
isFormData: mt,
|
|
171
171
|
isArrayBufferView: at,
|
|
172
172
|
isString: ct,
|
|
173
|
-
isNumber:
|
|
173
|
+
isNumber: De,
|
|
174
174
|
isBoolean: lt,
|
|
175
175
|
isObject: Y,
|
|
176
|
-
isPlainObject:
|
|
176
|
+
isPlainObject: J,
|
|
177
177
|
isReadableStream: wt,
|
|
178
178
|
isRequest: bt,
|
|
179
179
|
isResponse: Et,
|
|
@@ -188,7 +188,7 @@ const It = (e) => {
|
|
|
188
188
|
isURLSearchParams: yt,
|
|
189
189
|
isTypedArray: Nt,
|
|
190
190
|
isFileList: pt,
|
|
191
|
-
forEach:
|
|
191
|
+
forEach: M,
|
|
192
192
|
merge: oe,
|
|
193
193
|
extend: St,
|
|
194
194
|
trim: gt,
|
|
@@ -202,25 +202,25 @@ const It = (e) => {
|
|
|
202
202
|
forEachEntry: Pt,
|
|
203
203
|
matchAll: _t,
|
|
204
204
|
isHTMLForm: Ft,
|
|
205
|
-
hasOwnProperty:
|
|
206
|
-
hasOwnProp:
|
|
205
|
+
hasOwnProperty: ye,
|
|
206
|
+
hasOwnProp: ye,
|
|
207
207
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
208
|
-
reduceDescriptors:
|
|
208
|
+
reduceDescriptors: Ie,
|
|
209
209
|
freezeMethods: kt,
|
|
210
210
|
toObjectSet: Bt,
|
|
211
211
|
toCamelCase: Ut,
|
|
212
212
|
noop: Dt,
|
|
213
213
|
toFiniteNumber: jt,
|
|
214
|
-
findKey:
|
|
214
|
+
findKey: je,
|
|
215
215
|
global: U,
|
|
216
|
-
isContextDefined:
|
|
216
|
+
isContextDefined: qe,
|
|
217
217
|
isSpecCompliantForm: qt,
|
|
218
218
|
toJSONObject: It,
|
|
219
|
-
isAsyncFn:
|
|
220
|
-
isThenable:
|
|
221
|
-
setImmediate:
|
|
219
|
+
isAsyncFn: Mt,
|
|
220
|
+
isThenable: Ht,
|
|
221
|
+
setImmediate: Me,
|
|
222
222
|
asap: zt,
|
|
223
|
-
isIterable:
|
|
223
|
+
isIterable: Jt
|
|
224
224
|
};
|
|
225
225
|
function m(e, t, n, r, s) {
|
|
226
226
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -246,7 +246,7 @@ a.inherits(m, Error, {
|
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
const He = m.prototype,
|
|
249
|
+
const He = m.prototype, ze = {};
|
|
250
250
|
[
|
|
251
251
|
"ERR_BAD_OPTION_VALUE",
|
|
252
252
|
"ERR_BAD_OPTION",
|
|
@@ -262,9 +262,9 @@ const He = m.prototype, Me = {};
|
|
|
262
262
|
"ERR_INVALID_URL"
|
|
263
263
|
// eslint-disable-next-line func-names
|
|
264
264
|
].forEach((e) => {
|
|
265
|
-
|
|
265
|
+
ze[e] = { value: e };
|
|
266
266
|
});
|
|
267
|
-
Object.defineProperties(m,
|
|
267
|
+
Object.defineProperties(m, ze);
|
|
268
268
|
Object.defineProperty(He, "isAxiosError", { value: !0 });
|
|
269
269
|
m.from = (e, t, n, r, s, o) => {
|
|
270
270
|
const i = Object.create(He);
|
|
@@ -272,22 +272,22 @@ m.from = (e, t, n, r, s, o) => {
|
|
|
272
272
|
return f !== Error.prototype;
|
|
273
273
|
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
274
274
|
};
|
|
275
|
-
const
|
|
275
|
+
const Vt = null;
|
|
276
276
|
function ie(e) {
|
|
277
277
|
return a.isPlainObject(e) || a.isArray(e);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Je(e) {
|
|
280
280
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function we(e, t, n) {
|
|
283
283
|
return e ? e.concat(t).map(function(s, o) {
|
|
284
|
-
return s =
|
|
284
|
+
return s = Je(s), !n && o ? "[" + s + "]" : s;
|
|
285
285
|
}).join(n ? "." : "") : t;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Wt(e) {
|
|
288
288
|
return a.isArray(e) && !e.some(ie);
|
|
289
289
|
}
|
|
290
|
-
const
|
|
290
|
+
const $t = a.toFlatObject(a, {}, null, function(t) {
|
|
291
291
|
return /^is[A-Z]/.test(t);
|
|
292
292
|
});
|
|
293
293
|
function Z(e, t, n) {
|
|
@@ -318,18 +318,18 @@ function Z(e, t, n) {
|
|
|
318
318
|
if (d && !h && typeof d == "object") {
|
|
319
319
|
if (a.endsWith(y, "{}"))
|
|
320
320
|
y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
|
|
321
|
-
else if (a.isArray(d) &&
|
|
322
|
-
return y =
|
|
321
|
+
else if (a.isArray(d) && Wt(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (b = a.toArray(d)))
|
|
322
|
+
return y = Je(y), b.forEach(function(S, P) {
|
|
323
323
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
324
324
|
// eslint-disable-next-line no-nested-ternary
|
|
325
|
-
i === !0 ?
|
|
325
|
+
i === !0 ? we([y], P, o) : i === null ? y : y + "[]",
|
|
326
326
|
l(S)
|
|
327
327
|
);
|
|
328
328
|
}), !1;
|
|
329
329
|
}
|
|
330
|
-
return ie(d) ? !0 : (t.append(
|
|
330
|
+
return ie(d) ? !0 : (t.append(we(h, y, o), l(d)), !1);
|
|
331
331
|
}
|
|
332
|
-
const p = [], w = Object.assign(
|
|
332
|
+
const p = [], w = Object.assign($t, {
|
|
333
333
|
defaultVisitor: u,
|
|
334
334
|
convertValue: l,
|
|
335
335
|
isVisitable: ie
|
|
@@ -353,7 +353,7 @@ function Z(e, t, n) {
|
|
|
353
353
|
throw new TypeError("data must be an object");
|
|
354
354
|
return R(e), t;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function be(e) {
|
|
357
357
|
const t = {
|
|
358
358
|
"!": "%21",
|
|
359
359
|
"'": "%27",
|
|
@@ -370,14 +370,14 @@ function we(e) {
|
|
|
370
370
|
function de(e, t) {
|
|
371
371
|
this._pairs = [], e && Z(e, this, t);
|
|
372
372
|
}
|
|
373
|
-
const
|
|
374
|
-
|
|
373
|
+
const Ve = de.prototype;
|
|
374
|
+
Ve.append = function(t, n) {
|
|
375
375
|
this._pairs.push([t, n]);
|
|
376
376
|
};
|
|
377
|
-
|
|
377
|
+
Ve.toString = function(t) {
|
|
378
378
|
const n = t ? function(r) {
|
|
379
|
-
return t.call(this, r,
|
|
380
|
-
} :
|
|
379
|
+
return t.call(this, r, be);
|
|
380
|
+
} : be;
|
|
381
381
|
return this._pairs.map(function(s) {
|
|
382
382
|
return n(s[0]) + "=" + n(s[1]);
|
|
383
383
|
}, "").join("&");
|
|
@@ -385,7 +385,7 @@ $e.toString = function(t) {
|
|
|
385
385
|
function vt(e) {
|
|
386
386
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function We(e, t, n) {
|
|
389
389
|
if (!t)
|
|
390
390
|
return e;
|
|
391
391
|
const r = n && n.encode || vt;
|
|
@@ -400,7 +400,7 @@ function Je(e, t, n) {
|
|
|
400
400
|
}
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Ee {
|
|
404
404
|
constructor() {
|
|
405
405
|
this.handlers = [];
|
|
406
406
|
}
|
|
@@ -454,7 +454,7 @@ class be {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const $e = {
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1
|
|
@@ -497,7 +497,7 @@ function sn(e) {
|
|
|
497
497
|
o = n[r], t[o] = e[o];
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function ve(e) {
|
|
501
501
|
function t(n, r, s, o) {
|
|
502
502
|
let i = n[o++];
|
|
503
503
|
if (i === "__proto__") return !0;
|
|
@@ -520,15 +520,15 @@ function on(e, t, n) {
|
|
|
520
520
|
if (r.name !== "SyntaxError")
|
|
521
521
|
throw r;
|
|
522
522
|
}
|
|
523
|
-
return (
|
|
523
|
+
return (0, JSON.stringify)(e);
|
|
524
524
|
}
|
|
525
|
-
const
|
|
526
|
-
transitional:
|
|
525
|
+
const H = {
|
|
526
|
+
transitional: $e,
|
|
527
527
|
adapter: ["xhr", "http", "fetch"],
|
|
528
528
|
transformRequest: [function(t, n) {
|
|
529
529
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
530
530
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
531
|
-
return s ? JSON.stringify(
|
|
531
|
+
return s ? JSON.stringify(ve(t)) : t;
|
|
532
532
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
533
533
|
return t;
|
|
534
534
|
if (a.isArrayBufferView(t))
|
|
@@ -551,7 +551,7 @@ const M = {
|
|
|
551
551
|
return o || s ? (n.setContentType("application/json", !1), on(t)) : t;
|
|
552
552
|
}],
|
|
553
553
|
transformResponse: [function(t) {
|
|
554
|
-
const n = this.transitional ||
|
|
554
|
+
const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
555
555
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
556
556
|
return t;
|
|
557
557
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -589,7 +589,7 @@ const M = {
|
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
591
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
592
|
-
|
|
592
|
+
H.headers[e] = {};
|
|
593
593
|
});
|
|
594
594
|
const an = a.toObjectSet([
|
|
595
595
|
"age",
|
|
@@ -616,12 +616,12 @@ const an = a.toObjectSet([
|
|
|
616
616
|
`).forEach(function(i) {
|
|
617
617
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && an[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
618
618
|
}), t;
|
|
619
|
-
},
|
|
619
|
+
}, Re = Symbol("internals");
|
|
620
620
|
function j(e) {
|
|
621
621
|
return e && String(e).trim().toLowerCase();
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
623
|
+
function V(e) {
|
|
624
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
|
|
625
625
|
}
|
|
626
626
|
function ln(e) {
|
|
627
627
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -655,7 +655,7 @@ function dn(e, t) {
|
|
|
655
655
|
});
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
|
|
658
|
+
class x {
|
|
659
659
|
constructor(t) {
|
|
660
660
|
t && this.set(t);
|
|
661
661
|
}
|
|
@@ -666,7 +666,7 @@ let x = class {
|
|
|
666
666
|
if (!u)
|
|
667
667
|
throw new Error("header name must be a non-empty string");
|
|
668
668
|
const p = a.findKey(s, u);
|
|
669
|
-
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] =
|
|
669
|
+
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] = V(c));
|
|
670
670
|
}
|
|
671
671
|
const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
|
|
672
672
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -734,11 +734,11 @@ let x = class {
|
|
|
734
734
|
return a.forEach(this, (s, o) => {
|
|
735
735
|
const i = a.findKey(r, o);
|
|
736
736
|
if (i) {
|
|
737
|
-
n[i] =
|
|
737
|
+
n[i] = V(s), delete n[o];
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
const c = t ? fn(o) : String(o).trim();
|
|
741
|
-
c !== o && delete n[o], n[c] =
|
|
741
|
+
c !== o && delete n[o], n[c] = V(s), r[c] = !0;
|
|
742
742
|
}), this;
|
|
743
743
|
}
|
|
744
744
|
concat(...t) {
|
|
@@ -771,7 +771,7 @@ let x = class {
|
|
|
771
771
|
return n.forEach((s) => r.set(s)), r;
|
|
772
772
|
}
|
|
773
773
|
static accessor(t) {
|
|
774
|
-
const r = (this[
|
|
774
|
+
const r = (this[Re] = this[Re] = {
|
|
775
775
|
accessors: {}
|
|
776
776
|
}).accessors, s = this.prototype;
|
|
777
777
|
function o(i) {
|
|
@@ -780,7 +780,7 @@ let x = class {
|
|
|
780
780
|
}
|
|
781
781
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
782
782
|
}
|
|
783
|
-
}
|
|
783
|
+
}
|
|
784
784
|
x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
785
785
|
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
786
786
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
@@ -793,13 +793,13 @@ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
|
793
793
|
});
|
|
794
794
|
a.freezeMethods(x);
|
|
795
795
|
function re(e, t) {
|
|
796
|
-
const n = this ||
|
|
796
|
+
const n = this || H, r = t || n, s = x.from(r.headers);
|
|
797
797
|
let o = r.data;
|
|
798
798
|
return a.forEach(e, function(c) {
|
|
799
799
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
800
800
|
}), s.normalize(), o;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Ke(e) {
|
|
803
803
|
return !!(e && e.__CANCEL__);
|
|
804
804
|
}
|
|
805
805
|
function D(e, t, n) {
|
|
@@ -808,7 +808,7 @@ function D(e, t, n) {
|
|
|
808
808
|
a.inherits(D, m, {
|
|
809
809
|
__CANCEL__: !0
|
|
810
810
|
});
|
|
811
|
-
function
|
|
811
|
+
function Xe(e, t, n) {
|
|
812
812
|
const r = n.config.validateStatus;
|
|
813
813
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
814
814
|
"Request failed with status code " + n.status,
|
|
@@ -869,14 +869,14 @@ const v = (e, t, n = 3) => {
|
|
|
869
869
|
};
|
|
870
870
|
e(p);
|
|
871
871
|
}, n);
|
|
872
|
-
},
|
|
872
|
+
}, ge = (e, t) => {
|
|
873
873
|
const n = e != null;
|
|
874
874
|
return [(r) => t[0]({
|
|
875
875
|
lengthComputable: n,
|
|
876
876
|
total: e,
|
|
877
877
|
loaded: r
|
|
878
878
|
}), t[1]];
|
|
879
|
-
},
|
|
879
|
+
}, Se = (e) => (...t) => a.asap(() => e(...t)), yn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
880
880
|
new URL(T.origin),
|
|
881
881
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
882
882
|
) : () => !0, wn = T.hasStandardBrowserEnv ? (
|
|
@@ -912,11 +912,11 @@ function bn(e) {
|
|
|
912
912
|
function En(e, t) {
|
|
913
913
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function Ge(e, t, n) {
|
|
916
916
|
let r = !bn(t);
|
|
917
917
|
return e && (r || n == !1) ? En(e, t) : t;
|
|
918
918
|
}
|
|
919
|
-
const
|
|
919
|
+
const Te = (e) => e instanceof x ? { ...e } : e;
|
|
920
920
|
function k(e, t) {
|
|
921
921
|
t = t || {};
|
|
922
922
|
const n = {};
|
|
@@ -974,17 +974,17 @@ function k(e, t) {
|
|
|
974
974
|
socketPath: i,
|
|
975
975
|
responseEncoding: i,
|
|
976
976
|
validateStatus: c,
|
|
977
|
-
headers: (l, u, p) => s(
|
|
977
|
+
headers: (l, u, p) => s(Te(l), Te(u), p, !0)
|
|
978
978
|
};
|
|
979
979
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
980
980
|
const p = f[u] || s, w = p(e[u], t[u], u);
|
|
981
981
|
a.isUndefined(w) && p !== c || (n[u] = w);
|
|
982
982
|
}), n;
|
|
983
983
|
}
|
|
984
|
-
const
|
|
984
|
+
const Qe = (e) => {
|
|
985
985
|
const t = k({}, e);
|
|
986
986
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
987
|
-
t.headers = i = x.from(i), t.url =
|
|
987
|
+
t.headers = i = x.from(i), t.url = We(Ge(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
988
988
|
"Authorization",
|
|
989
989
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
990
990
|
);
|
|
@@ -1004,7 +1004,7 @@ const Ge = (e) => {
|
|
|
1004
1004
|
return t;
|
|
1005
1005
|
}, Rn = typeof XMLHttpRequest < "u", gn = Rn && function(e) {
|
|
1006
1006
|
return new Promise(function(n, r) {
|
|
1007
|
-
const s =
|
|
1007
|
+
const s = Qe(e);
|
|
1008
1008
|
let o = s.data;
|
|
1009
1009
|
const i = x.from(s.headers).normalize();
|
|
1010
1010
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, p, w, R, d;
|
|
@@ -1026,7 +1026,7 @@ const Ge = (e) => {
|
|
|
1026
1026
|
config: e,
|
|
1027
1027
|
request: h
|
|
1028
1028
|
};
|
|
1029
|
-
|
|
1029
|
+
Xe(function(F) {
|
|
1030
1030
|
n(F), y();
|
|
1031
1031
|
}, function(F) {
|
|
1032
1032
|
r(F), y();
|
|
@@ -1040,7 +1040,7 @@ const Ge = (e) => {
|
|
|
1040
1040
|
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1041
1041
|
}, h.ontimeout = function() {
|
|
1042
1042
|
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1043
|
-
const O = s.transitional ||
|
|
1043
|
+
const O = s.transitional || $e;
|
|
1044
1044
|
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
|
|
1045
1045
|
P,
|
|
1046
1046
|
O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
@@ -1110,7 +1110,7 @@ const Ge = (e) => {
|
|
|
1110
1110
|
} finally {
|
|
1111
1111
|
await t.cancel();
|
|
1112
1112
|
}
|
|
1113
|
-
},
|
|
1113
|
+
}, Oe = (e, t, n, r) => {
|
|
1114
1114
|
const s = On(e, t);
|
|
1115
1115
|
let o = 0, i, c = (f) => {
|
|
1116
1116
|
i || (i = !0, r && r(f));
|
|
@@ -1139,13 +1139,13 @@ const Ge = (e) => {
|
|
|
1139
1139
|
}, {
|
|
1140
1140
|
highWaterMark: 2
|
|
1141
1141
|
});
|
|
1142
|
-
}, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1142
|
+
}, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ye = ee && typeof ReadableStream == "function", xn = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ze = (e, ...t) => {
|
|
1143
1143
|
try {
|
|
1144
1144
|
return !!e(...t);
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return !1;
|
|
1147
1147
|
}
|
|
1148
|
-
}, Cn =
|
|
1148
|
+
}, Cn = Ye && Ze(() => {
|
|
1149
1149
|
let e = !1;
|
|
1150
1150
|
const t = new Request(T.origin, {
|
|
1151
1151
|
body: new ReadableStream(),
|
|
@@ -1155,7 +1155,7 @@ const Ge = (e) => {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
}).headers.has("Content-Type");
|
|
1157
1157
|
return e && !t;
|
|
1158
|
-
}),
|
|
1158
|
+
}), Ae = 64 * 1024, ce = Ye && Ze(() => a.isReadableStream(new Response("").body)), K = {
|
|
1159
1159
|
stream: ce && ((e) => e.body)
|
|
1160
1160
|
};
|
|
1161
1161
|
ee && ((e) => {
|
|
@@ -1196,7 +1196,7 @@ const Nn = async (e) => {
|
|
|
1196
1196
|
headers: u,
|
|
1197
1197
|
withCredentials: p = "same-origin",
|
|
1198
1198
|
fetchOptions: w
|
|
1199
|
-
} =
|
|
1199
|
+
} = Qe(e);
|
|
1200
1200
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1201
1201
|
let R = Sn([s, o && o.toAbortSignal()], i), d;
|
|
1202
1202
|
const y = R && R.unsubscribe && (() => {
|
|
@@ -1211,11 +1211,11 @@ const Nn = async (e) => {
|
|
|
1211
1211
|
duplex: "half"
|
|
1212
1212
|
}), _;
|
|
1213
1213
|
if (a.isFormData(r) && (_ = O.headers.get("content-type")) && u.setContentType(_), O.body) {
|
|
1214
|
-
const [F, z] =
|
|
1214
|
+
const [F, z] = ge(
|
|
1215
1215
|
h,
|
|
1216
|
-
v(
|
|
1216
|
+
v(Se(f))
|
|
1217
1217
|
);
|
|
1218
|
-
r =
|
|
1218
|
+
r = Oe(O.body, Ae, F, z);
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
a.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -1233,15 +1233,15 @@ const Nn = async (e) => {
|
|
|
1233
1233
|
const S = ce && (l === "stream" || l === "response");
|
|
1234
1234
|
if (ce && (c || S && y)) {
|
|
1235
1235
|
const O = {};
|
|
1236
|
-
["status", "statusText", "headers"].forEach((
|
|
1237
|
-
O[
|
|
1236
|
+
["status", "statusText", "headers"].forEach((me) => {
|
|
1237
|
+
O[me] = g[me];
|
|
1238
1238
|
});
|
|
1239
|
-
const _ = a.toFiniteNumber(g.headers.get("content-length")), [F, z] = c &&
|
|
1239
|
+
const _ = a.toFiniteNumber(g.headers.get("content-length")), [F, z] = c && ge(
|
|
1240
1240
|
_,
|
|
1241
|
-
v(
|
|
1241
|
+
v(Se(c), !0)
|
|
1242
1242
|
) || [];
|
|
1243
1243
|
g = new Response(
|
|
1244
|
-
|
|
1244
|
+
Oe(g.body, Ae, F, () => {
|
|
1245
1245
|
z && z(), y && y();
|
|
1246
1246
|
}),
|
|
1247
1247
|
O
|
|
@@ -1250,7 +1250,7 @@ const Nn = async (e) => {
|
|
|
1250
1250
|
l = l || "text";
|
|
1251
1251
|
let P = await K[a.findKey(K, l) || "text"](g, e);
|
|
1252
1252
|
return !S && y && y(), await new Promise((O, _) => {
|
|
1253
|
-
|
|
1253
|
+
Xe(O, _, {
|
|
1254
1254
|
data: P,
|
|
1255
1255
|
headers: x.from(g.headers),
|
|
1256
1256
|
status: g.status,
|
|
@@ -1268,7 +1268,7 @@ const Nn = async (e) => {
|
|
|
1268
1268
|
) : m.from(b, b && b.code, e, d);
|
|
1269
1269
|
}
|
|
1270
1270
|
}), le = {
|
|
1271
|
-
http:
|
|
1271
|
+
http: Vt,
|
|
1272
1272
|
xhr: gn,
|
|
1273
1273
|
fetch: _n
|
|
1274
1274
|
};
|
|
@@ -1281,7 +1281,7 @@ a.forEach(le, (e, t) => {
|
|
|
1281
1281
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
1284
|
-
const
|
|
1284
|
+
const xe = (e) => `- ${e}`, Fn = (e) => a.isFunction(e) || e === null || e === !1, et = {
|
|
1285
1285
|
getAdapter: (e) => {
|
|
1286
1286
|
e = a.isArray(e) ? e : [e];
|
|
1287
1287
|
const { length: t } = e;
|
|
@@ -1301,8 +1301,8 @@ const Ae = (e) => `- ${e}`, Fn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1301
1301
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1302
1302
|
);
|
|
1303
1303
|
let i = t ? o.length > 1 ? `since :
|
|
1304
|
-
` + o.map(
|
|
1305
|
-
`) : " " +
|
|
1304
|
+
` + o.map(xe).join(`
|
|
1305
|
+
`) : " " + xe(o[0]) : "as no adapter specified";
|
|
1306
1306
|
throw new m(
|
|
1307
1307
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1308
1308
|
"ERR_NOT_SUPPORT"
|
|
@@ -1316,34 +1316,34 @@ function se(e) {
|
|
|
1316
1316
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1317
1317
|
throw new D(null, e);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Ce(e) {
|
|
1320
1320
|
return se(e), e.headers = x.from(e.headers), e.data = re.call(
|
|
1321
1321
|
e,
|
|
1322
1322
|
e.transformRequest
|
|
1323
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1323
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), et.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
|
|
1324
1324
|
return se(e), r.data = re.call(
|
|
1325
1325
|
e,
|
|
1326
1326
|
e.transformResponse,
|
|
1327
1327
|
r
|
|
1328
1328
|
), r.headers = x.from(r.headers), r;
|
|
1329
1329
|
}, function(r) {
|
|
1330
|
-
return
|
|
1330
|
+
return Ke(r) || (se(e), r && r.response && (r.response.data = re.call(
|
|
1331
1331
|
e,
|
|
1332
1332
|
e.transformResponse,
|
|
1333
1333
|
r.response
|
|
1334
1334
|
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
|
-
const
|
|
1337
|
+
const tt = "1.10.0", te = {};
|
|
1338
1338
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1339
1339
|
te[e] = function(r) {
|
|
1340
1340
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1341
1341
|
};
|
|
1342
1342
|
});
|
|
1343
|
-
const
|
|
1343
|
+
const Ne = {};
|
|
1344
1344
|
te.transitional = function(t, n, r) {
|
|
1345
1345
|
function s(o, i) {
|
|
1346
|
-
return "[Axios v" +
|
|
1346
|
+
return "[Axios v" + tt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1347
1347
|
}
|
|
1348
1348
|
return (o, i, c) => {
|
|
1349
1349
|
if (t === !1)
|
|
@@ -1351,7 +1351,7 @@ te.transitional = function(t, n, r) {
|
|
|
1351
1351
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1352
1352
|
m.ERR_DEPRECATED
|
|
1353
1353
|
);
|
|
1354
|
-
return n && !
|
|
1354
|
+
return n && !Ne[i] && (Ne[i] = !0), t ? t(o, i, c) : !0;
|
|
1355
1355
|
};
|
|
1356
1356
|
};
|
|
1357
1357
|
te.spelling = function(t) {
|
|
@@ -1374,15 +1374,15 @@ function Un(e, t, n) {
|
|
|
1374
1374
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
const
|
|
1377
|
+
const W = {
|
|
1378
1378
|
assertOptions: Un,
|
|
1379
1379
|
validators: te
|
|
1380
|
-
}, N =
|
|
1381
|
-
|
|
1380
|
+
}, N = W.validators;
|
|
1381
|
+
class L {
|
|
1382
1382
|
constructor(t) {
|
|
1383
1383
|
this.defaults = t || {}, this.interceptors = {
|
|
1384
|
-
request: new
|
|
1385
|
-
response: new
|
|
1384
|
+
request: new Ee(),
|
|
1385
|
+
response: new Ee()
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
/**
|
|
@@ -1413,16 +1413,16 @@ let L = class {
|
|
|
1413
1413
|
_request(t, n) {
|
|
1414
1414
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = k(this.defaults, n);
|
|
1415
1415
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1416
|
-
r !== void 0 &&
|
|
1416
|
+
r !== void 0 && W.assertOptions(r, {
|
|
1417
1417
|
silentJSONParsing: N.transitional(N.boolean),
|
|
1418
1418
|
forcedJSONParsing: N.transitional(N.boolean),
|
|
1419
1419
|
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1420
1420
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1421
1421
|
serialize: s
|
|
1422
|
-
} :
|
|
1422
|
+
} : W.assertOptions(s, {
|
|
1423
1423
|
encode: N.function,
|
|
1424
1424
|
serialize: N.function
|
|
1425
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1425
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), W.assertOptions(n, {
|
|
1426
1426
|
baseUrl: N.spelling("baseURL"),
|
|
1427
1427
|
withXsrfToken: N.spelling("withXSRFToken")
|
|
1428
1428
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1447,7 +1447,7 @@ let L = class {
|
|
|
1447
1447
|
});
|
|
1448
1448
|
let u, p = 0, w;
|
|
1449
1449
|
if (!f) {
|
|
1450
|
-
const d = [
|
|
1450
|
+
const d = [Ce.bind(this), void 0];
|
|
1451
1451
|
for (d.unshift.apply(d, c), d.push.apply(d, l), w = d.length, u = Promise.resolve(n); p < w; )
|
|
1452
1452
|
u = u.then(d[p++], d[p++]);
|
|
1453
1453
|
return u;
|
|
@@ -1464,7 +1464,7 @@ let L = class {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
try {
|
|
1467
|
-
u =
|
|
1467
|
+
u = Ce.call(this, R);
|
|
1468
1468
|
} catch (d) {
|
|
1469
1469
|
return Promise.reject(d);
|
|
1470
1470
|
}
|
|
@@ -1474,10 +1474,10 @@ let L = class {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
getUri(t) {
|
|
1476
1476
|
t = k(this.defaults, t);
|
|
1477
|
-
const n =
|
|
1478
|
-
return
|
|
1477
|
+
const n = Ge(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1478
|
+
return We(n, t.params, t.paramsSerializer);
|
|
1479
1479
|
}
|
|
1480
|
-
}
|
|
1480
|
+
}
|
|
1481
1481
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1482
1482
|
L.prototype[t] = function(n, r) {
|
|
1483
1483
|
return this.request(k(r || {}, {
|
|
@@ -1502,7 +1502,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1504
1504
|
});
|
|
1505
|
-
|
|
1505
|
+
class he {
|
|
1506
1506
|
constructor(t) {
|
|
1507
1507
|
if (typeof t != "function")
|
|
1508
1508
|
throw new TypeError("executor must be a function.");
|
|
@@ -1568,19 +1568,19 @@ let Ln = class tt {
|
|
|
1568
1568
|
static source() {
|
|
1569
1569
|
let t;
|
|
1570
1570
|
return {
|
|
1571
|
-
token: new
|
|
1571
|
+
token: new he(function(s) {
|
|
1572
1572
|
t = s;
|
|
1573
1573
|
}),
|
|
1574
1574
|
cancel: t
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
}
|
|
1578
|
-
function
|
|
1577
|
+
}
|
|
1578
|
+
function Ln(e) {
|
|
1579
1579
|
return function(n) {
|
|
1580
1580
|
return e.apply(null, n);
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function kn(e) {
|
|
1584
1584
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1585
1585
|
}
|
|
1586
1586
|
const ue = {
|
|
@@ -1652,77 +1652,60 @@ Object.entries(ue).forEach(([e, t]) => {
|
|
|
1652
1652
|
ue[t] = e;
|
|
1653
1653
|
});
|
|
1654
1654
|
function nt(e) {
|
|
1655
|
-
const t = new L(e), n =
|
|
1655
|
+
const t = new L(e), n = Le(L.prototype.request, t);
|
|
1656
1656
|
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1657
1657
|
return nt(k(e, s));
|
|
1658
1658
|
}, n;
|
|
1659
1659
|
}
|
|
1660
|
-
const E = nt(
|
|
1660
|
+
const E = nt(H);
|
|
1661
1661
|
E.Axios = L;
|
|
1662
1662
|
E.CanceledError = D;
|
|
1663
|
-
E.CancelToken =
|
|
1664
|
-
E.isCancel =
|
|
1665
|
-
E.VERSION =
|
|
1663
|
+
E.CancelToken = he;
|
|
1664
|
+
E.isCancel = Ke;
|
|
1665
|
+
E.VERSION = tt;
|
|
1666
1666
|
E.toFormData = Z;
|
|
1667
1667
|
E.AxiosError = m;
|
|
1668
1668
|
E.Cancel = E.CanceledError;
|
|
1669
1669
|
E.all = function(t) {
|
|
1670
1670
|
return Promise.all(t);
|
|
1671
1671
|
};
|
|
1672
|
-
E.spread =
|
|
1673
|
-
E.isAxiosError =
|
|
1672
|
+
E.spread = Ln;
|
|
1673
|
+
E.isAxiosError = kn;
|
|
1674
1674
|
E.mergeConfig = k;
|
|
1675
1675
|
E.AxiosHeaders = x;
|
|
1676
|
-
E.formToJSON = (e) =>
|
|
1677
|
-
E.getAdapter =
|
|
1676
|
+
E.formToJSON = (e) => ve(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1677
|
+
E.getAdapter = et.getAdapter;
|
|
1678
1678
|
E.HttpStatusCode = ue;
|
|
1679
1679
|
E.default = E;
|
|
1680
|
-
const {
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
CanceledError: Jn,
|
|
1684
|
-
isCancel: Vn,
|
|
1685
|
-
CancelToken: Wn,
|
|
1686
|
-
VERSION: vn,
|
|
1687
|
-
all: Kn,
|
|
1688
|
-
Cancel: Xn,
|
|
1689
|
-
isAxiosError: Gn,
|
|
1690
|
-
spread: Qn,
|
|
1691
|
-
toFormData: Yn,
|
|
1692
|
-
AxiosHeaders: Zn,
|
|
1693
|
-
HttpStatusCode: er,
|
|
1694
|
-
formToJSON: tr,
|
|
1695
|
-
getAdapter: nr,
|
|
1696
|
-
mergeConfig: rr
|
|
1697
|
-
} = E, { baseURL: Dn } = st();
|
|
1698
|
-
let W = !1, q = [];
|
|
1699
|
-
const Ne = 1 * 60 * 1e3, Pe = 1, _e = 1e3, jn = async (e, t, n = 0) => {
|
|
1680
|
+
const { baseURL: Bn } = st();
|
|
1681
|
+
let $ = !1, q = [];
|
|
1682
|
+
const Pe = 1 * 60 * 1e3, _e = 1, Fe = 1e3, Dn = async (e, t, n = 0) => {
|
|
1700
1683
|
const r = Date.now();
|
|
1701
|
-
if (r < +e.accessExp -
|
|
1684
|
+
if (r < +e.accessExp - Pe)
|
|
1702
1685
|
return e.accessToken;
|
|
1703
|
-
if (r >= +e.refreshExp -
|
|
1704
|
-
return
|
|
1705
|
-
if (
|
|
1686
|
+
if (r >= +e.refreshExp - Pe)
|
|
1687
|
+
return Ue(), Promise.reject("Refresh token expired");
|
|
1688
|
+
if ($)
|
|
1706
1689
|
return new Promise((s, o) => {
|
|
1707
1690
|
q.push({ resolve: s, reject: o });
|
|
1708
1691
|
});
|
|
1709
|
-
|
|
1692
|
+
$ = !0;
|
|
1710
1693
|
try {
|
|
1711
|
-
const s = await rt(e.refreshToken,
|
|
1694
|
+
const s = await rt(e.refreshToken, _e, Fe), o = {
|
|
1712
1695
|
accessToken: s.accessToken,
|
|
1713
1696
|
accessExp: s.accessExp,
|
|
1714
1697
|
refreshToken: s.refreshToken || e.refreshToken,
|
|
1715
1698
|
refreshExp: s.refreshExp || e.refreshExp
|
|
1716
1699
|
};
|
|
1717
|
-
return t(o),
|
|
1700
|
+
return t(o), jn(o.accessToken), o.accessToken;
|
|
1718
1701
|
} catch {
|
|
1719
1702
|
if (q.forEach((o) => {
|
|
1720
1703
|
o.reject("Token refresh failed");
|
|
1721
|
-
}),
|
|
1704
|
+
}), $ = !1, q = [], n < _e) {
|
|
1722
1705
|
const o = n + 1;
|
|
1723
|
-
return await new Promise((i) => setTimeout(i,
|
|
1706
|
+
return await new Promise((i) => setTimeout(i, Fe)), Dn(e, t, o);
|
|
1724
1707
|
}
|
|
1725
|
-
return
|
|
1708
|
+
return Ue(), Promise.reject("Token refresh failed after retries");
|
|
1726
1709
|
}
|
|
1727
1710
|
};
|
|
1728
1711
|
async function rt(e, t, n, r = 0) {
|
|
@@ -1731,7 +1714,7 @@ async function rt(e, t, n, r = 0) {
|
|
|
1731
1714
|
"/api/admin/basic-application/authorization/v1/visitor/oauth/token/refresh",
|
|
1732
1715
|
{ refreshToken: e },
|
|
1733
1716
|
{
|
|
1734
|
-
baseURL:
|
|
1717
|
+
baseURL: Bn
|
|
1735
1718
|
}
|
|
1736
1719
|
);
|
|
1737
1720
|
return (s == null ? void 0 : s.data) || {};
|
|
@@ -1741,16 +1724,16 @@ async function rt(e, t, n, r = 0) {
|
|
|
1741
1724
|
throw new Error("Token refresh failed after retries");
|
|
1742
1725
|
}
|
|
1743
1726
|
}
|
|
1744
|
-
function
|
|
1727
|
+
function jn(e) {
|
|
1745
1728
|
q.forEach((t) => {
|
|
1746
1729
|
t.resolve(e);
|
|
1747
|
-
}), q = [],
|
|
1730
|
+
}), q = [], $ = !1;
|
|
1748
1731
|
}
|
|
1749
|
-
function
|
|
1732
|
+
function Ue() {
|
|
1750
1733
|
var t, n;
|
|
1751
1734
|
const e = "/login";
|
|
1752
1735
|
location.pathname !== e && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (n = (t = window.top) == null ? void 0 : t.vueRouter) == null || n.replace(e));
|
|
1753
1736
|
}
|
|
1754
1737
|
export {
|
|
1755
|
-
|
|
1738
|
+
Dn as getValidAccessToken
|
|
1756
1739
|
};
|