@das-fed/upf-utils 6.4.0-dev.169 → 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 +487 -505
- 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 +847 -883
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +822 -858
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +847 -883
- 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 +487 -505
- 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 +478 -496
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +880 -880
- 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 +873 -877
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +487 -505
- 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 +847 -883
- 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.d.ts +1 -2
- package/common-tools/handle-data/index.js +41 -73
- 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 +865 -901
- 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/esm-map.json +1 -2
- 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
|
-
import { unref as
|
|
1
|
+
import { unref as Ut, getCurrentScope as Nt, onScopeDispose as Lt, ref as Y, watch as Se } from "vue";
|
|
2
2
|
import { encryption as Ft } from "@das-fed/upf-utils/atob";
|
|
3
3
|
import { getConfig as Te } from "@das-fed/upf-utils/config";
|
|
4
|
-
import { getUrlParams as
|
|
5
|
-
import { getAccessToken as M,
|
|
6
|
-
import {
|
|
7
|
-
import { setPersonalInfo as
|
|
8
|
-
function
|
|
4
|
+
import { getUrlParams as Ze, funcUrlDel as Dt } from "@das-fed/upf-utils/common-tools";
|
|
5
|
+
import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as vt, removeAccessToken as Bt } from "@das-fed/upf-utils/token-tools";
|
|
6
|
+
import { setProcessEngineToken as It, removeProcessEngineToken as jt } from "@das-fed/upf-utils/process-engine-info";
|
|
7
|
+
import { setPersonalInfo as Ye } from "@das-fed/upf-utils/common-info/set-personal-info";
|
|
8
|
+
function et(e, t) {
|
|
9
9
|
return function() {
|
|
10
10
|
return e.apply(t, arguments);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
const { toString: qt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag:
|
|
13
|
+
const { toString: qt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: tt } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
|
|
14
14
|
const n = qt.call(t);
|
|
15
15
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
16
16
|
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => re(t) === e), se = (e) => (t) => typeof t === e, { isArray: B } = Array, H = se("undefined");
|
|
17
17
|
function Mt(e) {
|
|
18
18
|
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const nt = x("ArrayBuffer");
|
|
21
21
|
function Ht(e) {
|
|
22
22
|
let t;
|
|
23
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
23
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && nt(e.buffer), t;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const zt = se("string"), A = se("function"), rt = se("number"), oe = (e) => e !== null && typeof e == "object", $t = (e) => e === !0 || e === !1, X = (e) => {
|
|
26
26
|
if (re(e) !== "object")
|
|
27
27
|
return !1;
|
|
28
28
|
const t = Oe(e);
|
|
29
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
29
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(tt in e) && !(ne in e);
|
|
30
30
|
}, Jt = x("Date"), Vt = x("File"), Wt = x("Blob"), Kt = x("FileList"), Qt = (e) => oe(e) && A(e.pipe), Xt = (e) => {
|
|
31
31
|
let t;
|
|
32
32
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
@@ -46,7 +46,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
46
46
|
c = o[r], t.call(null, e[c], c, e);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function st(e, t) {
|
|
50
50
|
t = t.toLowerCase();
|
|
51
51
|
const n = Object.keys(e);
|
|
52
52
|
let r = n.length, s;
|
|
@@ -55,10 +55,10 @@ function rt(e, t) {
|
|
|
55
55
|
return s;
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (e) => !H(e) && e !== N;
|
|
59
59
|
function pe() {
|
|
60
|
-
const { caseless: e } =
|
|
61
|
-
const o = e &&
|
|
60
|
+
const { caseless: e } = ot(this) && this || {}, t = {}, n = (r, s) => {
|
|
61
|
+
const o = e && st(t, s) || s;
|
|
62
62
|
X(t[o]) && X(r) ? t[o] = pe(t[o], r) : X(r) ? t[o] = pe({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
|
|
63
63
|
};
|
|
64
64
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
@@ -66,7 +66,7 @@ function pe() {
|
|
|
66
66
|
return t;
|
|
67
67
|
}
|
|
68
68
|
const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
69
|
-
n && A(s) ? e[o] =
|
|
69
|
+
n && A(s) ? e[o] = et(s, n) : e[o] = s;
|
|
70
70
|
}, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), on = (e, t, n, r) => {
|
|
71
71
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
72
72
|
value: t.prototype
|
|
@@ -85,16 +85,16 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
|
85
85
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
86
86
|
const r = e.indexOf(t, n);
|
|
87
87
|
return r !== -1 && r === n;
|
|
88
|
-
},
|
|
88
|
+
}, un = (e) => {
|
|
89
89
|
if (!e) return null;
|
|
90
90
|
if (B(e)) return e;
|
|
91
91
|
let t = e.length;
|
|
92
|
-
if (!
|
|
92
|
+
if (!rt(t)) return null;
|
|
93
93
|
const n = new Array(t);
|
|
94
94
|
for (; t-- > 0; )
|
|
95
95
|
n[t] = e[t];
|
|
96
96
|
return n;
|
|
97
|
-
},
|
|
97
|
+
}, ln = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), fn = (e, t) => {
|
|
98
98
|
const r = (e && e[ne]).call(e);
|
|
99
99
|
let s;
|
|
100
100
|
for (; (s = r.next()) && !s.done; ) {
|
|
@@ -112,14 +112,14 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
|
112
112
|
function(n, r, s) {
|
|
113
113
|
return r.toUpperCase() + s;
|
|
114
114
|
}
|
|
115
|
-
),
|
|
115
|
+
), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mn = x("RegExp"), it = (e, t) => {
|
|
116
116
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
117
117
|
V(n, (s, o) => {
|
|
118
118
|
let i;
|
|
119
119
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
120
120
|
}), Object.defineProperties(e, r);
|
|
121
121
|
}, yn = (e) => {
|
|
122
|
-
|
|
122
|
+
it(e, (t, n) => {
|
|
123
123
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
124
124
|
return !1;
|
|
125
125
|
const r = e[n];
|
|
@@ -143,7 +143,7 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
|
143
143
|
}, gn = () => {
|
|
144
144
|
}, bn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
145
145
|
function En(e) {
|
|
146
|
-
return !!(e && A(e.append) && e[
|
|
146
|
+
return !!(e && A(e.append) && e[tt] === "FormData" && e[ne]);
|
|
147
147
|
}
|
|
148
148
|
const Rn = (e) => {
|
|
149
149
|
const t = new Array(10), n = (r, s) => {
|
|
@@ -162,22 +162,22 @@ const Rn = (e) => {
|
|
|
162
162
|
return r;
|
|
163
163
|
};
|
|
164
164
|
return n(e, 0);
|
|
165
|
-
}, Sn = x("AsyncFunction"), Tn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch),
|
|
166
|
-
s ===
|
|
165
|
+
}, Sn = x("AsyncFunction"), Tn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), at = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
|
|
166
|
+
s === N && o === n && r.length && r.shift()();
|
|
167
167
|
}, !1), (s) => {
|
|
168
|
-
r.push(s),
|
|
168
|
+
r.push(s), N.postMessage(n, "*");
|
|
169
169
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
170
170
|
typeof setImmediate == "function",
|
|
171
|
-
A(
|
|
172
|
-
), On = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
171
|
+
A(N.postMessage)
|
|
172
|
+
), On = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || at, An = (e) => e != null && A(e[ne]), a = {
|
|
173
173
|
isArray: B,
|
|
174
|
-
isArrayBuffer:
|
|
174
|
+
isArrayBuffer: nt,
|
|
175
175
|
isBuffer: Mt,
|
|
176
176
|
isFormData: Xt,
|
|
177
177
|
isArrayBufferView: Ht,
|
|
178
|
-
isString:
|
|
179
|
-
isNumber:
|
|
180
|
-
isBoolean:
|
|
178
|
+
isString: zt,
|
|
179
|
+
isNumber: rt,
|
|
180
|
+
isBoolean: $t,
|
|
181
181
|
isObject: oe,
|
|
182
182
|
isPlainObject: X,
|
|
183
183
|
isReadableStream: Zt,
|
|
@@ -192,7 +192,7 @@ const Rn = (e) => {
|
|
|
192
192
|
isFunction: A,
|
|
193
193
|
isStream: Qt,
|
|
194
194
|
isURLSearchParams: Gt,
|
|
195
|
-
isTypedArray:
|
|
195
|
+
isTypedArray: ln,
|
|
196
196
|
isFileList: Kt,
|
|
197
197
|
forEach: V,
|
|
198
198
|
merge: pe,
|
|
@@ -204,27 +204,27 @@ const Rn = (e) => {
|
|
|
204
204
|
kindOf: re,
|
|
205
205
|
kindOfTest: x,
|
|
206
206
|
endsWith: cn,
|
|
207
|
-
toArray:
|
|
207
|
+
toArray: un,
|
|
208
208
|
forEachEntry: fn,
|
|
209
209
|
matchAll: dn,
|
|
210
210
|
isHTMLForm: pn,
|
|
211
|
-
hasOwnProperty:
|
|
212
|
-
hasOwnProp:
|
|
211
|
+
hasOwnProperty: Pe,
|
|
212
|
+
hasOwnProp: Pe,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
|
-
reduceDescriptors:
|
|
214
|
+
reduceDescriptors: it,
|
|
215
215
|
freezeMethods: yn,
|
|
216
216
|
toObjectSet: wn,
|
|
217
217
|
toCamelCase: hn,
|
|
218
218
|
noop: gn,
|
|
219
219
|
toFiniteNumber: bn,
|
|
220
|
-
findKey:
|
|
221
|
-
global:
|
|
222
|
-
isContextDefined:
|
|
220
|
+
findKey: st,
|
|
221
|
+
global: N,
|
|
222
|
+
isContextDefined: ot,
|
|
223
223
|
isSpecCompliantForm: En,
|
|
224
224
|
toJSONObject: Rn,
|
|
225
225
|
isAsyncFn: Sn,
|
|
226
226
|
isThenable: Tn,
|
|
227
|
-
setImmediate:
|
|
227
|
+
setImmediate: at,
|
|
228
228
|
asap: On,
|
|
229
229
|
isIterable: An
|
|
230
230
|
};
|
|
@@ -252,7 +252,7 @@ a.inherits(y, Error, {
|
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
const
|
|
255
|
+
const ct = y.prototype, ut = {};
|
|
256
256
|
[
|
|
257
257
|
"ERR_BAD_OPTION_VALUE",
|
|
258
258
|
"ERR_BAD_OPTION",
|
|
@@ -268,12 +268,12 @@ const at = y.prototype, ct = {};
|
|
|
268
268
|
"ERR_INVALID_URL"
|
|
269
269
|
// eslint-disable-next-line func-names
|
|
270
270
|
].forEach((e) => {
|
|
271
|
-
|
|
271
|
+
ut[e] = { value: e };
|
|
272
272
|
});
|
|
273
|
-
Object.defineProperties(y,
|
|
274
|
-
Object.defineProperty(
|
|
273
|
+
Object.defineProperties(y, ut);
|
|
274
|
+
Object.defineProperty(ct, "isAxiosError", { value: !0 });
|
|
275
275
|
y.from = (e, t, n, r, s, o) => {
|
|
276
|
-
const i = Object.create(
|
|
276
|
+
const i = Object.create(ct);
|
|
277
277
|
return a.toFlatObject(e, i, function(f) {
|
|
278
278
|
return f !== Error.prototype;
|
|
279
279
|
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
@@ -285,7 +285,7 @@ function he(e) {
|
|
|
285
285
|
function lt(e) {
|
|
286
286
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ue(e, t, n) {
|
|
289
289
|
return e ? e.concat(t).map(function(s, o) {
|
|
290
290
|
return s = lt(s), !n && o ? "[" + s + "]" : s;
|
|
291
291
|
}).join(n ? "." : "") : t;
|
|
@@ -306,10 +306,10 @@ function ie(e, t, n) {
|
|
|
306
306
|
}, !1, function(m, h) {
|
|
307
307
|
return !a.isUndefined(h[m]);
|
|
308
308
|
});
|
|
309
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
309
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
310
310
|
if (!a.isFunction(s))
|
|
311
311
|
throw new TypeError("visitor must be a function");
|
|
312
|
-
function
|
|
312
|
+
function u(p) {
|
|
313
313
|
if (p === null) return "";
|
|
314
314
|
if (a.isDate(p))
|
|
315
315
|
return p.toISOString();
|
|
@@ -319,7 +319,7 @@ function ie(e, t, n) {
|
|
|
319
319
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
320
320
|
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function l(p, m, h) {
|
|
323
323
|
let E = p;
|
|
324
324
|
if (p && !h && typeof p == "object") {
|
|
325
325
|
if (a.endsWith(m, "{}"))
|
|
@@ -328,16 +328,16 @@ function ie(e, t, n) {
|
|
|
328
328
|
return m = lt(m), E.forEach(function(S, C) {
|
|
329
329
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
330
330
|
// eslint-disable-next-line no-nested-ternary
|
|
331
|
-
i === !0 ?
|
|
332
|
-
|
|
331
|
+
i === !0 ? Ue([m], C, o) : i === null ? m : m + "[]",
|
|
332
|
+
u(S)
|
|
333
333
|
);
|
|
334
334
|
}), !1;
|
|
335
335
|
}
|
|
336
|
-
return he(p) ? !0 : (t.append(
|
|
336
|
+
return he(p) ? !0 : (t.append(Ue(h, m, o), u(p)), !1);
|
|
337
337
|
}
|
|
338
338
|
const d = [], w = Object.assign(kn, {
|
|
339
|
-
defaultVisitor:
|
|
340
|
-
convertValue:
|
|
339
|
+
defaultVisitor: l,
|
|
340
|
+
convertValue: u,
|
|
341
341
|
isVisitable: he
|
|
342
342
|
});
|
|
343
343
|
function g(p, m) {
|
|
@@ -376,11 +376,11 @@ function Ne(e) {
|
|
|
376
376
|
function Ae(e, t) {
|
|
377
377
|
this._pairs = [], e && ie(e, this, t);
|
|
378
378
|
}
|
|
379
|
-
const
|
|
380
|
-
|
|
379
|
+
const ft = Ae.prototype;
|
|
380
|
+
ft.append = function(t, n) {
|
|
381
381
|
this._pairs.push([t, n]);
|
|
382
382
|
};
|
|
383
|
-
|
|
383
|
+
ft.toString = function(t) {
|
|
384
384
|
const n = t ? function(r) {
|
|
385
385
|
return t.call(this, r, Ne);
|
|
386
386
|
} : Ne;
|
|
@@ -391,7 +391,7 @@ ut.toString = function(t) {
|
|
|
391
391
|
function Cn(e) {
|
|
392
392
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function dt(e, t, n) {
|
|
395
395
|
if (!t)
|
|
396
396
|
return e;
|
|
397
397
|
const r = n && n.encode || Cn;
|
|
@@ -406,7 +406,7 @@ function ft(e, t, n) {
|
|
|
406
406
|
}
|
|
407
407
|
return e;
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class Le {
|
|
410
410
|
constructor() {
|
|
411
411
|
this.handlers = [];
|
|
412
412
|
}
|
|
@@ -460,16 +460,16 @@ class Ue {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
const
|
|
463
|
+
const pt = {
|
|
464
464
|
silentJSONParsing: !0,
|
|
465
465
|
forcedJSONParsing: !0,
|
|
466
466
|
clarifyTimeoutError: !1
|
|
467
|
-
}, Pn = typeof URLSearchParams < "u" ? URLSearchParams : Ae,
|
|
467
|
+
}, Pn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Un = typeof FormData < "u" ? FormData : null, Nn = typeof Blob < "u" ? Blob : null, Ln = {
|
|
468
468
|
isBrowser: !0,
|
|
469
469
|
classes: {
|
|
470
470
|
URLSearchParams: Pn,
|
|
471
|
-
FormData:
|
|
472
|
-
Blob:
|
|
471
|
+
FormData: Un,
|
|
472
|
+
Blob: Nn
|
|
473
473
|
},
|
|
474
474
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
475
|
}, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Fn = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -503,7 +503,7 @@ function qn(e) {
|
|
|
503
503
|
o = n[r], t[o] = e[o];
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function ht(e) {
|
|
507
507
|
function t(n, r, s, o) {
|
|
508
508
|
let i = n[o++];
|
|
509
509
|
if (i === "__proto__") return !0;
|
|
@@ -526,15 +526,15 @@ function Mn(e, t, n) {
|
|
|
526
526
|
if (r.name !== "SyntaxError")
|
|
527
527
|
throw r;
|
|
528
528
|
}
|
|
529
|
-
return (
|
|
529
|
+
return (0, JSON.stringify)(e);
|
|
530
530
|
}
|
|
531
531
|
const W = {
|
|
532
|
-
transitional:
|
|
532
|
+
transitional: pt,
|
|
533
533
|
adapter: ["xhr", "http", "fetch"],
|
|
534
534
|
transformRequest: [function(t, n) {
|
|
535
535
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
536
536
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
537
|
-
return s ? JSON.stringify(
|
|
537
|
+
return s ? JSON.stringify(ht(t)) : t;
|
|
538
538
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
539
539
|
return t;
|
|
540
540
|
if (a.isArrayBufferView(t))
|
|
@@ -615,21 +615,21 @@ const Hn = a.toObjectSet([
|
|
|
615
615
|
"referer",
|
|
616
616
|
"retry-after",
|
|
617
617
|
"user-agent"
|
|
618
|
-
]),
|
|
618
|
+
]), zn = (e) => {
|
|
619
619
|
const t = {};
|
|
620
620
|
let n, r, s;
|
|
621
621
|
return e && e.split(`
|
|
622
622
|
`).forEach(function(i) {
|
|
623
623
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Hn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
624
624
|
}), t;
|
|
625
|
-
},
|
|
625
|
+
}, Fe = Symbol("internals");
|
|
626
626
|
function j(e) {
|
|
627
627
|
return e && String(e).trim().toLowerCase();
|
|
628
628
|
}
|
|
629
629
|
function G(e) {
|
|
630
630
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function $n(e) {
|
|
633
633
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
634
634
|
let r;
|
|
635
635
|
for (; r = n.exec(e); )
|
|
@@ -637,7 +637,7 @@ function zn(e) {
|
|
|
637
637
|
return t;
|
|
638
638
|
}
|
|
639
639
|
const Jn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
640
|
-
function
|
|
640
|
+
function le(e, t, n, r, s) {
|
|
641
641
|
if (a.isFunction(r))
|
|
642
642
|
return r.call(this, t, n);
|
|
643
643
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -661,30 +661,30 @@ function Wn(e, t) {
|
|
|
661
661
|
});
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
class _ {
|
|
665
665
|
constructor(t) {
|
|
666
666
|
t && this.set(t);
|
|
667
667
|
}
|
|
668
668
|
set(t, n, r) {
|
|
669
669
|
const s = this;
|
|
670
|
-
function o(c, f,
|
|
671
|
-
const
|
|
672
|
-
if (!
|
|
670
|
+
function o(c, f, u) {
|
|
671
|
+
const l = j(f);
|
|
672
|
+
if (!l)
|
|
673
673
|
throw new Error("header name must be a non-empty string");
|
|
674
|
-
const d = a.findKey(s,
|
|
675
|
-
(!d || s[d] === void 0 ||
|
|
674
|
+
const d = a.findKey(s, l);
|
|
675
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = G(c));
|
|
676
676
|
}
|
|
677
|
-
const i = (c, f) => a.forEach(c, (
|
|
677
|
+
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
678
678
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
679
679
|
i(t, n);
|
|
680
680
|
else if (a.isString(t) && (t = t.trim()) && !Jn(t))
|
|
681
|
-
i(
|
|
681
|
+
i(zn(t), n);
|
|
682
682
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
683
|
-
let c = {}, f,
|
|
684
|
-
for (const
|
|
685
|
-
if (!a.isArray(
|
|
683
|
+
let c = {}, f, u;
|
|
684
|
+
for (const l of t) {
|
|
685
|
+
if (!a.isArray(l))
|
|
686
686
|
throw TypeError("Object iterator must return a key-value pair");
|
|
687
|
-
c[
|
|
687
|
+
c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
|
|
688
688
|
}
|
|
689
689
|
i(c, n);
|
|
690
690
|
} else
|
|
@@ -699,7 +699,7 @@ let _ = class {
|
|
|
699
699
|
if (!n)
|
|
700
700
|
return s;
|
|
701
701
|
if (n === !0)
|
|
702
|
-
return
|
|
702
|
+
return $n(s);
|
|
703
703
|
if (a.isFunction(n))
|
|
704
704
|
return n.call(this, s, r);
|
|
705
705
|
if (a.isRegExp(n))
|
|
@@ -711,7 +711,7 @@ let _ = class {
|
|
|
711
711
|
has(t, n) {
|
|
712
712
|
if (t = j(t), t) {
|
|
713
713
|
const r = a.findKey(this, t);
|
|
714
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
714
|
+
return !!(r && this[r] !== void 0 && (!n || le(this, this[r], r, n)));
|
|
715
715
|
}
|
|
716
716
|
return !1;
|
|
717
717
|
}
|
|
@@ -721,7 +721,7 @@ let _ = class {
|
|
|
721
721
|
function o(i) {
|
|
722
722
|
if (i = j(i), i) {
|
|
723
723
|
const c = a.findKey(r, i);
|
|
724
|
-
c && (!n ||
|
|
724
|
+
c && (!n || le(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -731,7 +731,7 @@ let _ = class {
|
|
|
731
731
|
let r = n.length, s = !1;
|
|
732
732
|
for (; r--; ) {
|
|
733
733
|
const o = n[r];
|
|
734
|
-
(!t ||
|
|
734
|
+
(!t || le(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
735
735
|
}
|
|
736
736
|
return s;
|
|
737
737
|
}
|
|
@@ -777,7 +777,7 @@ let _ = class {
|
|
|
777
777
|
return n.forEach((s) => r.set(s)), r;
|
|
778
778
|
}
|
|
779
779
|
static accessor(t) {
|
|
780
|
-
const r = (this[
|
|
780
|
+
const r = (this[Fe] = this[Fe] = {
|
|
781
781
|
accessors: {}
|
|
782
782
|
}).accessors, s = this.prototype;
|
|
783
783
|
function o(i) {
|
|
@@ -786,7 +786,7 @@ let _ = class {
|
|
|
786
786
|
}
|
|
787
787
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
788
788
|
}
|
|
789
|
-
}
|
|
789
|
+
}
|
|
790
790
|
_.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
791
791
|
a.reduceDescriptors(_.prototype, ({ value: e }, t) => {
|
|
792
792
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
@@ -805,7 +805,7 @@ function fe(e, t) {
|
|
|
805
805
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
806
806
|
}), s.normalize(), o;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function mt(e) {
|
|
809
809
|
return !!(e && e.__CANCEL__);
|
|
810
810
|
}
|
|
811
811
|
function I(e, t, n) {
|
|
@@ -814,7 +814,7 @@ function I(e, t, n) {
|
|
|
814
814
|
a.inherits(I, y, {
|
|
815
815
|
__CANCEL__: !0
|
|
816
816
|
});
|
|
817
|
-
function
|
|
817
|
+
function yt(e, t, n) {
|
|
818
818
|
const r = n.config.validateStatus;
|
|
819
819
|
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
820
820
|
"Request failed with status code " + n.status,
|
|
@@ -833,25 +833,25 @@ function Qn(e, t) {
|
|
|
833
833
|
const n = new Array(e), r = new Array(e);
|
|
834
834
|
let s = 0, o = 0, i;
|
|
835
835
|
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
836
|
-
const
|
|
837
|
-
i || (i =
|
|
836
|
+
const u = Date.now(), l = r[o];
|
|
837
|
+
i || (i = u), n[s] = f, r[s] = u;
|
|
838
838
|
let d = o, w = 0;
|
|
839
839
|
for (; d !== s; )
|
|
840
840
|
w += n[d++], d = d % e;
|
|
841
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e),
|
|
841
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
842
842
|
return;
|
|
843
|
-
const g =
|
|
843
|
+
const g = l && u - l;
|
|
844
844
|
return g ? Math.round(w * 1e3 / g) : void 0;
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
function Xn(e, t) {
|
|
848
848
|
let n = 0, r = 1e3 / t, s, o;
|
|
849
|
-
const i = (
|
|
850
|
-
n =
|
|
849
|
+
const i = (u, l = Date.now()) => {
|
|
850
|
+
n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
|
|
851
851
|
};
|
|
852
|
-
return [(...
|
|
853
|
-
const
|
|
854
|
-
d >= r ? i(
|
|
852
|
+
return [(...u) => {
|
|
853
|
+
const l = Date.now(), d = l - n;
|
|
854
|
+
d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
855
855
|
o = null, i(s);
|
|
856
856
|
}, r - d)));
|
|
857
857
|
}, () => s && i(s)];
|
|
@@ -860,29 +860,29 @@ const ee = (e, t, n = 3) => {
|
|
|
860
860
|
let r = 0;
|
|
861
861
|
const s = Qn(50, 250);
|
|
862
862
|
return Xn((o) => {
|
|
863
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r,
|
|
863
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
864
864
|
r = i;
|
|
865
865
|
const d = {
|
|
866
866
|
loaded: i,
|
|
867
867
|
total: c,
|
|
868
868
|
progress: c ? i / c : void 0,
|
|
869
869
|
bytes: f,
|
|
870
|
-
rate:
|
|
871
|
-
estimated:
|
|
870
|
+
rate: u || void 0,
|
|
871
|
+
estimated: u && c && l ? (c - i) / u : void 0,
|
|
872
872
|
event: o,
|
|
873
873
|
lengthComputable: c != null,
|
|
874
874
|
[t ? "download" : "upload"]: !0
|
|
875
875
|
};
|
|
876
876
|
e(d);
|
|
877
877
|
}, n);
|
|
878
|
-
},
|
|
878
|
+
}, De = (e, t) => {
|
|
879
879
|
const n = e != null;
|
|
880
880
|
return [(r) => t[0]({
|
|
881
881
|
lengthComputable: n,
|
|
882
882
|
total: e,
|
|
883
883
|
loaded: r
|
|
884
884
|
}), t[1]];
|
|
885
|
-
},
|
|
885
|
+
}, ve = (e) => (...t) => a.asap(() => e(...t)), Gn = 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)))(
|
|
886
886
|
new URL(T.origin),
|
|
887
887
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
888
888
|
) : () => !0, Zn = T.hasStandardBrowserEnv ? (
|
|
@@ -918,38 +918,38 @@ function Yn(e) {
|
|
|
918
918
|
function er(e, t) {
|
|
919
919
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function wt(e, t, n) {
|
|
922
922
|
let r = !Yn(t);
|
|
923
923
|
return e && (r || n == !1) ? er(e, t) : t;
|
|
924
924
|
}
|
|
925
|
-
const
|
|
925
|
+
const Be = (e) => e instanceof _ ? { ...e } : e;
|
|
926
926
|
function F(e, t) {
|
|
927
927
|
t = t || {};
|
|
928
928
|
const n = {};
|
|
929
|
-
function r(
|
|
930
|
-
return a.isPlainObject(
|
|
929
|
+
function r(u, l, d, w) {
|
|
930
|
+
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
931
931
|
}
|
|
932
|
-
function s(
|
|
933
|
-
if (a.isUndefined(
|
|
934
|
-
if (!a.isUndefined(
|
|
935
|
-
return r(void 0,
|
|
936
|
-
} else return r(
|
|
932
|
+
function s(u, l, d, w) {
|
|
933
|
+
if (a.isUndefined(l)) {
|
|
934
|
+
if (!a.isUndefined(u))
|
|
935
|
+
return r(void 0, u, d, w);
|
|
936
|
+
} else return r(u, l, d, w);
|
|
937
937
|
}
|
|
938
|
-
function o(
|
|
939
|
-
if (!a.isUndefined(
|
|
940
|
-
return r(void 0,
|
|
938
|
+
function o(u, l) {
|
|
939
|
+
if (!a.isUndefined(l))
|
|
940
|
+
return r(void 0, l);
|
|
941
941
|
}
|
|
942
|
-
function i(
|
|
943
|
-
if (a.isUndefined(
|
|
944
|
-
if (!a.isUndefined(
|
|
945
|
-
return r(void 0,
|
|
946
|
-
} else return r(void 0,
|
|
942
|
+
function i(u, l) {
|
|
943
|
+
if (a.isUndefined(l)) {
|
|
944
|
+
if (!a.isUndefined(u))
|
|
945
|
+
return r(void 0, u);
|
|
946
|
+
} else return r(void 0, l);
|
|
947
947
|
}
|
|
948
|
-
function c(
|
|
948
|
+
function c(u, l, d) {
|
|
949
949
|
if (d in t)
|
|
950
|
-
return r(
|
|
950
|
+
return r(u, l);
|
|
951
951
|
if (d in e)
|
|
952
|
-
return r(void 0,
|
|
952
|
+
return r(void 0, u);
|
|
953
953
|
}
|
|
954
954
|
const f = {
|
|
955
955
|
url: o,
|
|
@@ -980,17 +980,17 @@ function F(e, t) {
|
|
|
980
980
|
socketPath: i,
|
|
981
981
|
responseEncoding: i,
|
|
982
982
|
validateStatus: c,
|
|
983
|
-
headers: (
|
|
983
|
+
headers: (u, l, d) => s(Be(u), Be(l), d, !0)
|
|
984
984
|
};
|
|
985
|
-
return a.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
986
|
-
const d = f[
|
|
987
|
-
a.isUndefined(w) && d !== c || (n[
|
|
985
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
986
|
+
const d = f[l] || s, w = d(e[l], t[l], l);
|
|
987
|
+
a.isUndefined(w) && d !== c || (n[l] = w);
|
|
988
988
|
}), n;
|
|
989
989
|
}
|
|
990
|
-
const
|
|
990
|
+
const gt = (e) => {
|
|
991
991
|
const t = F({}, e);
|
|
992
992
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
993
|
-
t.headers = i = _.from(i), t.url =
|
|
993
|
+
t.headers = i = _.from(i), t.url = dt(wt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
994
994
|
"Authorization",
|
|
995
995
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
996
996
|
);
|
|
@@ -999,23 +999,23 @@ const wt = (e) => {
|
|
|
999
999
|
if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
|
|
1000
1000
|
i.setContentType(void 0);
|
|
1001
1001
|
else if ((f = i.getContentType()) !== !1) {
|
|
1002
|
-
const [
|
|
1003
|
-
i.setContentType([
|
|
1002
|
+
const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1003
|
+
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Gn(t.url))) {
|
|
1007
|
-
const
|
|
1008
|
-
|
|
1007
|
+
const u = s && o && Zn.read(o);
|
|
1008
|
+
u && i.set(s, u);
|
|
1009
1009
|
}
|
|
1010
1010
|
return t;
|
|
1011
1011
|
}, tr = typeof XMLHttpRequest < "u", nr = tr && function(e) {
|
|
1012
1012
|
return new Promise(function(n, r) {
|
|
1013
|
-
const s =
|
|
1013
|
+
const s = gt(e);
|
|
1014
1014
|
let o = s.data;
|
|
1015
1015
|
const i = _.from(s.headers).normalize();
|
|
1016
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress:
|
|
1016
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, w, g, p;
|
|
1017
1017
|
function m() {
|
|
1018
|
-
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(
|
|
1018
|
+
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1019
1019
|
}
|
|
1020
1020
|
let h = new XMLHttpRequest();
|
|
1021
1021
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
@@ -1032,10 +1032,10 @@ const wt = (e) => {
|
|
|
1032
1032
|
config: e,
|
|
1033
1033
|
request: h
|
|
1034
1034
|
};
|
|
1035
|
-
|
|
1036
|
-
n(
|
|
1037
|
-
}, function(
|
|
1038
|
-
r(
|
|
1035
|
+
yt(function(U) {
|
|
1036
|
+
n(U), m();
|
|
1037
|
+
}, function(U) {
|
|
1038
|
+
r(U), m();
|
|
1039
1039
|
}, O), h = null;
|
|
1040
1040
|
}
|
|
1041
1041
|
"onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
|
|
@@ -1046,7 +1046,7 @@ const wt = (e) => {
|
|
|
1046
1046
|
r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
|
|
1047
1047
|
}, h.ontimeout = function() {
|
|
1048
1048
|
let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1049
|
-
const O = s.transitional ||
|
|
1049
|
+
const O = s.transitional || pt;
|
|
1050
1050
|
s.timeoutErrorMessage && (C = s.timeoutErrorMessage), r(new y(
|
|
1051
1051
|
C,
|
|
1052
1052
|
O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
@@ -1055,9 +1055,9 @@ const wt = (e) => {
|
|
|
1055
1055
|
)), h = null;
|
|
1056
1056
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(C, O) {
|
|
1057
1057
|
h.setRequestHeader(O, C);
|
|
1058
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType),
|
|
1058
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([w, p] = ee(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
|
|
1059
1059
|
h && (r(!S || S.type ? new I(null, e, h) : S), h.abort(), h = null);
|
|
1060
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
1060
|
+
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1061
1061
|
const R = Kn(s.url);
|
|
1062
1062
|
if (R && T.protocols.indexOf(R) === -1) {
|
|
1063
1063
|
r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e));
|
|
@@ -1069,22 +1069,22 @@ const wt = (e) => {
|
|
|
1069
1069
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1070
1070
|
if (t || n) {
|
|
1071
1071
|
let r = new AbortController(), s;
|
|
1072
|
-
const o = function(
|
|
1072
|
+
const o = function(u) {
|
|
1073
1073
|
if (!s) {
|
|
1074
1074
|
s = !0, c();
|
|
1075
|
-
const
|
|
1076
|
-
r.abort(
|
|
1075
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1076
|
+
r.abort(l instanceof y ? l : new I(l instanceof Error ? l.message : l));
|
|
1077
1077
|
}
|
|
1078
1078
|
};
|
|
1079
1079
|
let i = t && setTimeout(() => {
|
|
1080
1080
|
i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1081
1081
|
}, t);
|
|
1082
1082
|
const c = () => {
|
|
1083
|
-
e && (i && clearTimeout(i), i = null, e.forEach((
|
|
1084
|
-
|
|
1083
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
1084
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1085
1085
|
}), e = null);
|
|
1086
1086
|
};
|
|
1087
|
-
e.forEach((
|
|
1087
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
1088
1088
|
const { signal: f } = r;
|
|
1089
1089
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1090
1090
|
}
|
|
@@ -1116,7 +1116,7 @@ const wt = (e) => {
|
|
|
1116
1116
|
} finally {
|
|
1117
1117
|
await t.cancel();
|
|
1118
1118
|
}
|
|
1119
|
-
},
|
|
1119
|
+
}, Ie = (e, t, n, r) => {
|
|
1120
1120
|
const s = or(e, t);
|
|
1121
1121
|
let o = 0, i, c = (f) => {
|
|
1122
1122
|
i || (i = !0, r && r(f));
|
|
@@ -1124,19 +1124,19 @@ const wt = (e) => {
|
|
|
1124
1124
|
return new ReadableStream({
|
|
1125
1125
|
async pull(f) {
|
|
1126
1126
|
try {
|
|
1127
|
-
const { done:
|
|
1128
|
-
if (
|
|
1127
|
+
const { done: u, value: l } = await s.next();
|
|
1128
|
+
if (u) {
|
|
1129
1129
|
c(), f.close();
|
|
1130
1130
|
return;
|
|
1131
1131
|
}
|
|
1132
|
-
let d =
|
|
1132
|
+
let d = l.byteLength;
|
|
1133
1133
|
if (n) {
|
|
1134
1134
|
let w = o += d;
|
|
1135
1135
|
n(w);
|
|
1136
1136
|
}
|
|
1137
|
-
f.enqueue(new Uint8Array(
|
|
1138
|
-
} catch (
|
|
1139
|
-
throw c(
|
|
1137
|
+
f.enqueue(new Uint8Array(l));
|
|
1138
|
+
} catch (u) {
|
|
1139
|
+
throw c(u), u;
|
|
1140
1140
|
}
|
|
1141
1141
|
},
|
|
1142
1142
|
cancel(f) {
|
|
@@ -1145,13 +1145,13 @@ const wt = (e) => {
|
|
|
1145
1145
|
}, {
|
|
1146
1146
|
highWaterMark: 2
|
|
1147
1147
|
});
|
|
1148
|
-
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1148
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", bt = ae && typeof ReadableStream == "function", ar = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Et = (e, ...t) => {
|
|
1149
1149
|
try {
|
|
1150
1150
|
return !!e(...t);
|
|
1151
1151
|
} catch {
|
|
1152
1152
|
return !1;
|
|
1153
1153
|
}
|
|
1154
|
-
}, cr =
|
|
1154
|
+
}, cr = bt && Et(() => {
|
|
1155
1155
|
let e = !1;
|
|
1156
1156
|
const t = new Request(T.origin, {
|
|
1157
1157
|
body: new ReadableStream(),
|
|
@@ -1161,7 +1161,7 @@ const wt = (e) => {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
}).headers.has("Content-Type");
|
|
1163
1163
|
return e && !t;
|
|
1164
|
-
}),
|
|
1164
|
+
}), je = 64 * 1024, ye = bt && Et(() => a.isReadableStream(new Response("").body)), te = {
|
|
1165
1165
|
stream: ye && ((e) => e.body)
|
|
1166
1166
|
};
|
|
1167
1167
|
ae && ((e) => {
|
|
@@ -1171,7 +1171,7 @@ ae && ((e) => {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
});
|
|
1173
1173
|
})(new Response());
|
|
1174
|
-
const
|
|
1174
|
+
const ur = async (e) => {
|
|
1175
1175
|
if (e == null)
|
|
1176
1176
|
return 0;
|
|
1177
1177
|
if (a.isBlob(e))
|
|
@@ -1185,9 +1185,9 @@ const lr = async (e) => {
|
|
|
1185
1185
|
return e.byteLength;
|
|
1186
1186
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1187
1187
|
return (await ar(e)).byteLength;
|
|
1188
|
-
},
|
|
1188
|
+
}, lr = async (e, t) => {
|
|
1189
1189
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1190
|
-
return n ??
|
|
1190
|
+
return n ?? ur(t);
|
|
1191
1191
|
}, fr = ae && (async (e) => {
|
|
1192
1192
|
let {
|
|
1193
1193
|
url: t,
|
|
@@ -1198,30 +1198,30 @@ const lr = async (e) => {
|
|
|
1198
1198
|
timeout: i,
|
|
1199
1199
|
onDownloadProgress: c,
|
|
1200
1200
|
onUploadProgress: f,
|
|
1201
|
-
responseType:
|
|
1202
|
-
headers:
|
|
1201
|
+
responseType: u,
|
|
1202
|
+
headers: l,
|
|
1203
1203
|
withCredentials: d = "same-origin",
|
|
1204
1204
|
fetchOptions: w
|
|
1205
|
-
} =
|
|
1206
|
-
|
|
1205
|
+
} = gt(e);
|
|
1206
|
+
u = u ? (u + "").toLowerCase() : "text";
|
|
1207
1207
|
let g = rr([s, o && o.toAbortSignal()], i), p;
|
|
1208
1208
|
const m = g && g.unsubscribe && (() => {
|
|
1209
1209
|
g.unsubscribe();
|
|
1210
1210
|
});
|
|
1211
1211
|
let h;
|
|
1212
1212
|
try {
|
|
1213
|
-
if (f && cr && n !== "get" && n !== "head" && (h = await
|
|
1213
|
+
if (f && cr && n !== "get" && n !== "head" && (h = await lr(l, r)) !== 0) {
|
|
1214
1214
|
let O = new Request(t, {
|
|
1215
1215
|
method: "POST",
|
|
1216
1216
|
body: r,
|
|
1217
1217
|
duplex: "half"
|
|
1218
1218
|
}), P;
|
|
1219
|
-
if (a.isFormData(r) && (P = O.headers.get("content-type")) &&
|
|
1220
|
-
const [
|
|
1219
|
+
if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
|
|
1220
|
+
const [U, K] = De(
|
|
1221
1221
|
h,
|
|
1222
|
-
ee(
|
|
1222
|
+
ee(ve(f))
|
|
1223
1223
|
);
|
|
1224
|
-
r =
|
|
1224
|
+
r = Ie(O.body, je, U, K);
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -1230,33 +1230,33 @@ const lr = async (e) => {
|
|
|
1230
1230
|
...w,
|
|
1231
1231
|
signal: g,
|
|
1232
1232
|
method: n.toUpperCase(),
|
|
1233
|
-
headers:
|
|
1233
|
+
headers: l.normalize().toJSON(),
|
|
1234
1234
|
body: r,
|
|
1235
1235
|
duplex: "half",
|
|
1236
1236
|
credentials: E ? d : void 0
|
|
1237
1237
|
});
|
|
1238
1238
|
let R = await fetch(p, w);
|
|
1239
|
-
const S = ye && (
|
|
1239
|
+
const S = ye && (u === "stream" || u === "response");
|
|
1240
1240
|
if (ye && (c || S && m)) {
|
|
1241
1241
|
const O = {};
|
|
1242
|
-
["status", "statusText", "headers"].forEach((
|
|
1243
|
-
O[
|
|
1242
|
+
["status", "statusText", "headers"].forEach((Ce) => {
|
|
1243
|
+
O[Ce] = R[Ce];
|
|
1244
1244
|
});
|
|
1245
|
-
const P = a.toFiniteNumber(R.headers.get("content-length")), [
|
|
1245
|
+
const P = a.toFiniteNumber(R.headers.get("content-length")), [U, K] = c && De(
|
|
1246
1246
|
P,
|
|
1247
|
-
ee(
|
|
1247
|
+
ee(ve(c), !0)
|
|
1248
1248
|
) || [];
|
|
1249
1249
|
R = new Response(
|
|
1250
|
-
|
|
1250
|
+
Ie(R.body, je, U, () => {
|
|
1251
1251
|
K && K(), m && m();
|
|
1252
1252
|
}),
|
|
1253
1253
|
O
|
|
1254
1254
|
);
|
|
1255
1255
|
}
|
|
1256
|
-
|
|
1257
|
-
let C = await te[a.findKey(te,
|
|
1256
|
+
u = u || "text";
|
|
1257
|
+
let C = await te[a.findKey(te, u) || "text"](R, e);
|
|
1258
1258
|
return !S && m && m(), await new Promise((O, P) => {
|
|
1259
|
-
|
|
1259
|
+
yt(O, P, {
|
|
1260
1260
|
data: C,
|
|
1261
1261
|
headers: _.from(R.headers),
|
|
1262
1262
|
status: R.status,
|
|
@@ -1287,7 +1287,7 @@ a.forEach(we, (e, t) => {
|
|
|
1287
1287
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1288
1288
|
}
|
|
1289
1289
|
});
|
|
1290
|
-
const
|
|
1290
|
+
const qe = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !1, Rt = {
|
|
1291
1291
|
getAdapter: (e) => {
|
|
1292
1292
|
e = a.isArray(e) ? e : [e];
|
|
1293
1293
|
const { length: t } = e;
|
|
@@ -1307,8 +1307,8 @@ const je = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1307
1307
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1308
1308
|
);
|
|
1309
1309
|
let i = t ? o.length > 1 ? `since :
|
|
1310
|
-
` + o.map(
|
|
1311
|
-
`) : " " +
|
|
1310
|
+
` + o.map(qe).join(`
|
|
1311
|
+
`) : " " + qe(o[0]) : "as no adapter specified";
|
|
1312
1312
|
throw new y(
|
|
1313
1313
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1314
1314
|
"ERR_NOT_SUPPORT"
|
|
@@ -1322,34 +1322,34 @@ function de(e) {
|
|
|
1322
1322
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1323
1323
|
throw new I(null, e);
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function Me(e) {
|
|
1326
1326
|
return de(e), e.headers = _.from(e.headers), e.data = fe.call(
|
|
1327
1327
|
e,
|
|
1328
1328
|
e.transformRequest
|
|
1329
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1329
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rt.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
|
|
1330
1330
|
return de(e), r.data = fe.call(
|
|
1331
1331
|
e,
|
|
1332
1332
|
e.transformResponse,
|
|
1333
1333
|
r
|
|
1334
1334
|
), r.headers = _.from(r.headers), r;
|
|
1335
1335
|
}, function(r) {
|
|
1336
|
-
return
|
|
1336
|
+
return mt(r) || (de(e), r && r.response && (r.response.data = fe.call(
|
|
1337
1337
|
e,
|
|
1338
1338
|
e.transformResponse,
|
|
1339
1339
|
r.response
|
|
1340
1340
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1341
1341
|
});
|
|
1342
1342
|
}
|
|
1343
|
-
const
|
|
1343
|
+
const St = "1.10.0", ce = {};
|
|
1344
1344
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1345
1345
|
ce[e] = function(r) {
|
|
1346
1346
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1347
1347
|
};
|
|
1348
1348
|
});
|
|
1349
|
-
const
|
|
1349
|
+
const He = {};
|
|
1350
1350
|
ce.transitional = function(t, n, r) {
|
|
1351
1351
|
function s(o, i) {
|
|
1352
|
-
return "[Axios v" +
|
|
1352
|
+
return "[Axios v" + St + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1353
1353
|
}
|
|
1354
1354
|
return (o, i, c) => {
|
|
1355
1355
|
if (t === !1)
|
|
@@ -1357,7 +1357,7 @@ ce.transitional = function(t, n, r) {
|
|
|
1357
1357
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1358
1358
|
y.ERR_DEPRECATED
|
|
1359
1359
|
);
|
|
1360
|
-
return n && !
|
|
1360
|
+
return n && !He[i] && (He[i] = !0), t ? t(o, i, c) : !0;
|
|
1361
1361
|
};
|
|
1362
1362
|
};
|
|
1363
1363
|
ce.spelling = function(t) {
|
|
@@ -1384,11 +1384,11 @@ const Z = {
|
|
|
1384
1384
|
assertOptions: pr,
|
|
1385
1385
|
validators: ce
|
|
1386
1386
|
}, k = Z.validators;
|
|
1387
|
-
|
|
1387
|
+
class L {
|
|
1388
1388
|
constructor(t) {
|
|
1389
1389
|
this.defaults = t || {}, this.interceptors = {
|
|
1390
|
-
request: new
|
|
1391
|
-
response: new
|
|
1390
|
+
request: new Le(),
|
|
1391
|
+
response: new Le()
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
1394
|
/**
|
|
@@ -1447,16 +1447,16 @@ let L = class {
|
|
|
1447
1447
|
this.interceptors.request.forEach(function(m) {
|
|
1448
1448
|
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
1449
1449
|
});
|
|
1450
|
-
const
|
|
1450
|
+
const u = [];
|
|
1451
1451
|
this.interceptors.response.forEach(function(m) {
|
|
1452
|
-
|
|
1452
|
+
u.push(m.fulfilled, m.rejected);
|
|
1453
1453
|
});
|
|
1454
|
-
let
|
|
1454
|
+
let l, d = 0, w;
|
|
1455
1455
|
if (!f) {
|
|
1456
|
-
const p = [
|
|
1457
|
-
for (p.unshift.apply(p, c), p.push.apply(p,
|
|
1458
|
-
|
|
1459
|
-
return
|
|
1456
|
+
const p = [Me.bind(this), void 0];
|
|
1457
|
+
for (p.unshift.apply(p, c), p.push.apply(p, u), w = p.length, l = Promise.resolve(n); d < w; )
|
|
1458
|
+
l = l.then(p[d++], p[d++]);
|
|
1459
|
+
return l;
|
|
1460
1460
|
}
|
|
1461
1461
|
w = c.length;
|
|
1462
1462
|
let g = n;
|
|
@@ -1470,20 +1470,20 @@ let L = class {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
1472
|
try {
|
|
1473
|
-
|
|
1473
|
+
l = Me.call(this, g);
|
|
1474
1474
|
} catch (p) {
|
|
1475
1475
|
return Promise.reject(p);
|
|
1476
1476
|
}
|
|
1477
|
-
for (d = 0, w =
|
|
1478
|
-
|
|
1479
|
-
return
|
|
1477
|
+
for (d = 0, w = u.length; d < w; )
|
|
1478
|
+
l = l.then(u[d++], u[d++]);
|
|
1479
|
+
return l;
|
|
1480
1480
|
}
|
|
1481
1481
|
getUri(t) {
|
|
1482
1482
|
t = F(this.defaults, t);
|
|
1483
|
-
const n =
|
|
1484
|
-
return
|
|
1483
|
+
const n = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1484
|
+
return dt(n, t.params, t.paramsSerializer);
|
|
1485
1485
|
}
|
|
1486
|
-
}
|
|
1486
|
+
}
|
|
1487
1487
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1488
1488
|
L.prototype[t] = function(n, r) {
|
|
1489
1489
|
return this.request(F(r || {}, {
|
|
@@ -1508,7 +1508,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1510
1510
|
});
|
|
1511
|
-
|
|
1511
|
+
class xe {
|
|
1512
1512
|
constructor(t) {
|
|
1513
1513
|
if (typeof t != "function")
|
|
1514
1514
|
throw new TypeError("executor must be a function.");
|
|
@@ -1574,19 +1574,19 @@ let hr = class St {
|
|
|
1574
1574
|
static source() {
|
|
1575
1575
|
let t;
|
|
1576
1576
|
return {
|
|
1577
|
-
token: new
|
|
1577
|
+
token: new xe(function(s) {
|
|
1578
1578
|
t = s;
|
|
1579
1579
|
}),
|
|
1580
1580
|
cancel: t
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
}
|
|
1584
|
-
function
|
|
1583
|
+
}
|
|
1584
|
+
function hr(e) {
|
|
1585
1585
|
return function(n) {
|
|
1586
1586
|
return e.apply(null, n);
|
|
1587
1587
|
};
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function mr(e) {
|
|
1590
1590
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1591
1591
|
}
|
|
1592
1592
|
const ge = {
|
|
@@ -1658,7 +1658,7 @@ Object.entries(ge).forEach(([e, t]) => {
|
|
|
1658
1658
|
ge[t] = e;
|
|
1659
1659
|
});
|
|
1660
1660
|
function Tt(e) {
|
|
1661
|
-
const t = new L(e), n =
|
|
1661
|
+
const t = new L(e), n = et(L.prototype.request, t);
|
|
1662
1662
|
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1663
1663
|
return Tt(F(e, s));
|
|
1664
1664
|
}, n;
|
|
@@ -1666,41 +1666,23 @@ function Tt(e) {
|
|
|
1666
1666
|
const b = Tt(W);
|
|
1667
1667
|
b.Axios = L;
|
|
1668
1668
|
b.CanceledError = I;
|
|
1669
|
-
b.CancelToken =
|
|
1670
|
-
b.isCancel =
|
|
1671
|
-
b.VERSION =
|
|
1669
|
+
b.CancelToken = xe;
|
|
1670
|
+
b.isCancel = mt;
|
|
1671
|
+
b.VERSION = St;
|
|
1672
1672
|
b.toFormData = ie;
|
|
1673
1673
|
b.AxiosError = y;
|
|
1674
1674
|
b.Cancel = b.CanceledError;
|
|
1675
1675
|
b.all = function(t) {
|
|
1676
1676
|
return Promise.all(t);
|
|
1677
1677
|
};
|
|
1678
|
-
b.spread =
|
|
1679
|
-
b.isAxiosError =
|
|
1678
|
+
b.spread = hr;
|
|
1679
|
+
b.isAxiosError = mr;
|
|
1680
1680
|
b.mergeConfig = F;
|
|
1681
1681
|
b.AxiosHeaders = _;
|
|
1682
|
-
b.formToJSON = (e) =>
|
|
1683
|
-
b.getAdapter =
|
|
1682
|
+
b.formToJSON = (e) => ht(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1683
|
+
b.getAdapter = Rt.getAdapter;
|
|
1684
1684
|
b.HttpStatusCode = ge;
|
|
1685
1685
|
b.default = b;
|
|
1686
|
-
const {
|
|
1687
|
-
Axios: Kr,
|
|
1688
|
-
AxiosError: Qr,
|
|
1689
|
-
CanceledError: Xr,
|
|
1690
|
-
isCancel: Gr,
|
|
1691
|
-
CancelToken: Zr,
|
|
1692
|
-
VERSION: Yr,
|
|
1693
|
-
all: es,
|
|
1694
|
-
Cancel: ts,
|
|
1695
|
-
isAxiosError: ns,
|
|
1696
|
-
spread: rs,
|
|
1697
|
-
toFormData: ss,
|
|
1698
|
-
AxiosHeaders: os,
|
|
1699
|
-
HttpStatusCode: is,
|
|
1700
|
-
formToJSON: as,
|
|
1701
|
-
getAdapter: cs,
|
|
1702
|
-
mergeConfig: ls
|
|
1703
|
-
} = b;
|
|
1704
1686
|
/*! js-cookie v3.0.5 | MIT */
|
|
1705
1687
|
function Q(e) {
|
|
1706
1688
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -1710,7 +1692,7 @@ function Q(e) {
|
|
|
1710
1692
|
}
|
|
1711
1693
|
return e;
|
|
1712
1694
|
}
|
|
1713
|
-
var
|
|
1695
|
+
var yr = {
|
|
1714
1696
|
read: function(e) {
|
|
1715
1697
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1716
1698
|
},
|
|
@@ -1734,10 +1716,10 @@ function be(e, t) {
|
|
|
1734
1716
|
function r(s) {
|
|
1735
1717
|
if (!(typeof document > "u" || arguments.length && !s)) {
|
|
1736
1718
|
for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < o.length; c++) {
|
|
1737
|
-
var f = o[c].split("="),
|
|
1719
|
+
var f = o[c].split("="), u = f.slice(1).join("=");
|
|
1738
1720
|
try {
|
|
1739
|
-
var
|
|
1740
|
-
if (i[
|
|
1721
|
+
var l = decodeURIComponent(f[0]);
|
|
1722
|
+
if (i[l] = e.read(u, l), s === l)
|
|
1741
1723
|
break;
|
|
1742
1724
|
} catch {
|
|
1743
1725
|
}
|
|
@@ -1771,14 +1753,14 @@ function be(e, t) {
|
|
|
1771
1753
|
}
|
|
1772
1754
|
);
|
|
1773
1755
|
}
|
|
1774
|
-
var
|
|
1775
|
-
const Ot = typeof window < "u",
|
|
1756
|
+
var wr = be(yr, { path: "/" }), ze;
|
|
1757
|
+
const Ot = typeof window < "u", gr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
|
|
1776
1758
|
};
|
|
1777
|
-
Ot && ((
|
|
1778
|
-
function
|
|
1779
|
-
return typeof e == "function" ? e() :
|
|
1759
|
+
Ot && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1760
|
+
function ke(e) {
|
|
1761
|
+
return typeof e == "function" ? e() : Ut(e);
|
|
1780
1762
|
}
|
|
1781
|
-
function
|
|
1763
|
+
function br(e, t) {
|
|
1782
1764
|
function n(...r) {
|
|
1783
1765
|
return new Promise((s, o) => {
|
|
1784
1766
|
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
|
|
@@ -1786,81 +1768,81 @@ function Er(e, t) {
|
|
|
1786
1768
|
}
|
|
1787
1769
|
return n;
|
|
1788
1770
|
}
|
|
1789
|
-
function
|
|
1771
|
+
function Er(e, t = !0, n = !0, r = !1) {
|
|
1790
1772
|
let s = 0, o, i = !0, c = Ee, f;
|
|
1791
|
-
const
|
|
1773
|
+
const u = () => {
|
|
1792
1774
|
o && (clearTimeout(o), o = void 0, c(), c = Ee);
|
|
1793
1775
|
};
|
|
1794
1776
|
return (d) => {
|
|
1795
|
-
const w =
|
|
1796
|
-
return
|
|
1777
|
+
const w = ke(e), g = Date.now() - s, p = () => f = d();
|
|
1778
|
+
return u(), w <= 0 ? (s = Date.now(), p()) : (g > w && (n || !i) ? (s = Date.now(), p()) : t && (f = new Promise((m, h) => {
|
|
1797
1779
|
c = r ? h : m, o = setTimeout(() => {
|
|
1798
|
-
s = Date.now(), i = !0, m(p()),
|
|
1780
|
+
s = Date.now(), i = !0, m(p()), u();
|
|
1799
1781
|
}, Math.max(0, w - g));
|
|
1800
1782
|
})), !n && !o && (o = setTimeout(() => i = !0, w)), i = !1, f);
|
|
1801
1783
|
};
|
|
1802
1784
|
}
|
|
1803
|
-
function
|
|
1785
|
+
function Rr(e) {
|
|
1804
1786
|
return e;
|
|
1805
1787
|
}
|
|
1806
|
-
function
|
|
1807
|
-
return
|
|
1788
|
+
function Sr(e) {
|
|
1789
|
+
return Nt() ? (Lt(e), !0) : !1;
|
|
1808
1790
|
}
|
|
1809
|
-
function
|
|
1791
|
+
function Tr(e) {
|
|
1810
1792
|
var t;
|
|
1811
|
-
const n =
|
|
1793
|
+
const n = ke(e);
|
|
1812
1794
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1813
1795
|
}
|
|
1814
1796
|
const At = Ot ? window : void 0;
|
|
1815
|
-
function
|
|
1797
|
+
function Je(...e) {
|
|
1816
1798
|
let t, n, r, s;
|
|
1817
|
-
if (
|
|
1799
|
+
if (gr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = At) : [t, n, r, s] = e, !t)
|
|
1818
1800
|
return Ee;
|
|
1819
1801
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1820
1802
|
const o = [], i = () => {
|
|
1821
|
-
o.forEach((
|
|
1822
|
-
}, c = (
|
|
1823
|
-
i(),
|
|
1824
|
-
}, { immediate: !0, flush: "post" }),
|
|
1803
|
+
o.forEach((l) => l()), o.length = 0;
|
|
1804
|
+
}, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Tr(t), ke(s)], ([l, d]) => {
|
|
1805
|
+
i(), l && o.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
|
|
1806
|
+
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1825
1807
|
f(), i();
|
|
1826
1808
|
};
|
|
1827
|
-
return
|
|
1809
|
+
return Sr(u), u;
|
|
1828
1810
|
}
|
|
1829
|
-
const
|
|
1830
|
-
|
|
1831
|
-
const
|
|
1832
|
-
function
|
|
1811
|
+
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
|
|
1812
|
+
Ve[We] = Ve[We] || {};
|
|
1813
|
+
const Or = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Ar = 6e4;
|
|
1814
|
+
function _r(e = Ar, t = {}) {
|
|
1833
1815
|
const {
|
|
1834
1816
|
initialState: n = !1,
|
|
1835
1817
|
listenForVisibilityChange: r = !0,
|
|
1836
|
-
events: s =
|
|
1818
|
+
events: s = Or,
|
|
1837
1819
|
window: o = At,
|
|
1838
|
-
eventFilter: i =
|
|
1820
|
+
eventFilter: i = Er(50)
|
|
1839
1821
|
} = t, c = Y(n), f = Y($e());
|
|
1840
|
-
let
|
|
1841
|
-
const
|
|
1842
|
-
c.value = !1, f.value = $e(), clearTimeout(
|
|
1822
|
+
let u;
|
|
1823
|
+
const l = br(i, () => {
|
|
1824
|
+
c.value = !1, f.value = $e(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
|
|
1843
1825
|
});
|
|
1844
1826
|
if (o) {
|
|
1845
1827
|
const d = o.document;
|
|
1846
1828
|
for (const w of s)
|
|
1847
|
-
|
|
1848
|
-
r &&
|
|
1849
|
-
d.hidden ||
|
|
1829
|
+
Je(o, w, l, { passive: !0 });
|
|
1830
|
+
r && Je(d, "visibilitychange", () => {
|
|
1831
|
+
d.hidden || l();
|
|
1850
1832
|
});
|
|
1851
1833
|
}
|
|
1852
|
-
return
|
|
1834
|
+
return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
|
|
1853
1835
|
}
|
|
1854
|
-
var
|
|
1836
|
+
var Ke;
|
|
1855
1837
|
(function(e) {
|
|
1856
1838
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1857
|
-
})(
|
|
1858
|
-
var
|
|
1859
|
-
for (var n in t
|
|
1860
|
-
|
|
1861
|
-
if (
|
|
1862
|
-
for (var n of
|
|
1863
|
-
|
|
1839
|
+
})(Ke || (Ke = {}));
|
|
1840
|
+
var xr = Object.defineProperty, Qe = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pr = (e, t) => {
|
|
1841
|
+
for (var n in t)
|
|
1842
|
+
kr.call(t, n) && Xe(e, n, t[n]);
|
|
1843
|
+
if (Qe)
|
|
1844
|
+
for (var n of Qe(t))
|
|
1845
|
+
Cr.call(t, n) && Xe(e, n, t[n]);
|
|
1864
1846
|
return e;
|
|
1865
1847
|
};
|
|
1866
1848
|
const Ur = {
|
|
@@ -1889,11 +1871,11 @@ const Ur = {
|
|
|
1889
1871
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1890
1872
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1891
1873
|
};
|
|
1892
|
-
|
|
1893
|
-
linear:
|
|
1874
|
+
Pr({
|
|
1875
|
+
linear: Rr
|
|
1894
1876
|
}, Ur);
|
|
1895
1877
|
let Re;
|
|
1896
|
-
const _t = { triggerProxySso: "triggerProxySso" },
|
|
1878
|
+
const _t = { triggerProxySso: "triggerProxySso" }, Nr = () => {
|
|
1897
1879
|
Re = (e) => {
|
|
1898
1880
|
var n;
|
|
1899
1881
|
const { origin: t } = new URL(location.href);
|
|
@@ -1902,13 +1884,13 @@ const _t = { triggerProxySso: "triggerProxySso" }, Lr = () => {
|
|
|
1902
1884
|
t
|
|
1903
1885
|
);
|
|
1904
1886
|
};
|
|
1905
|
-
},
|
|
1887
|
+
}, Lr = (e) => {
|
|
1906
1888
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1907
1889
|
const { type: n, data: r } = t.data;
|
|
1908
1890
|
n === _t.triggerProxySso && (e == null || e(r));
|
|
1909
1891
|
});
|
|
1910
1892
|
};
|
|
1911
|
-
window.top !== window.self &&
|
|
1893
|
+
window.top !== window.self && Nr();
|
|
1912
1894
|
let xt = (e = 21) => {
|
|
1913
1895
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1914
1896
|
for (; e--; ) {
|
|
@@ -1924,14 +1906,14 @@ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
|
|
|
1924
1906
|
// 清除登录信息
|
|
1925
1907
|
token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
|
|
1926
1908
|
// 通过code获取token
|
|
1927
|
-
}, { baseURL:
|
|
1909
|
+
}, { baseURL: Ge, noRedireLogin: Fr = !1 } = Te(), z = location.origin + "/home", D = {
|
|
1928
1910
|
response_type: "code",
|
|
1929
1911
|
scope: "sever",
|
|
1930
1912
|
client_id: "sys",
|
|
1931
1913
|
client_secret: Ft("das123"),
|
|
1932
1914
|
state: +/* @__PURE__ */ new Date()
|
|
1933
|
-
},
|
|
1934
|
-
const e =
|
|
1915
|
+
}, Dr = () => {
|
|
1916
|
+
const e = Ze(location.href, "redirect_url") || "";
|
|
1935
1917
|
if (e)
|
|
1936
1918
|
window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
|
|
1937
1919
|
else {
|
|
@@ -1940,7 +1922,7 @@ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
|
|
|
1940
1922
|
}
|
|
1941
1923
|
}, Ct = Y(!1), Pt = (e) => {
|
|
1942
1924
|
if (e <= 0) return;
|
|
1943
|
-
const { idle: t } =
|
|
1925
|
+
const { idle: t } = _r(e);
|
|
1944
1926
|
Se(
|
|
1945
1927
|
() => t.value,
|
|
1946
1928
|
(n) => {
|
|
@@ -1949,23 +1931,23 @@ const kt = (e) => new URL(location.href).searchParams.get(e), v = {
|
|
|
1949
1931
|
);
|
|
1950
1932
|
};
|
|
1951
1933
|
localStorage.getItem("idelTime") && Pt(Number(localStorage.getItem("idelTime")));
|
|
1952
|
-
const
|
|
1934
|
+
const vr = async () => {
|
|
1953
1935
|
const e = kt("code") || "";
|
|
1954
1936
|
if (!e) return M();
|
|
1955
|
-
const t =
|
|
1937
|
+
const t = Ze(location.href, "kingdee_token") || "";
|
|
1956
1938
|
let n = {};
|
|
1957
1939
|
const r = {
|
|
1958
1940
|
grant_type: "authorization_code",
|
|
1959
1941
|
code: e,
|
|
1960
1942
|
client_id: D.client_id,
|
|
1961
1943
|
client_secret: D.client_secret,
|
|
1962
|
-
redirect_uri:
|
|
1944
|
+
redirect_uri: z,
|
|
1963
1945
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
1964
1946
|
nonce: xt()
|
|
1965
1947
|
};
|
|
1966
1948
|
t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
|
|
1967
1949
|
try {
|
|
1968
|
-
await b.create().get(v.token, { baseURL:
|
|
1950
|
+
await b.create().get(v.token, { baseURL: Ge });
|
|
1969
1951
|
} catch {
|
|
1970
1952
|
}
|
|
1971
1953
|
try {
|
|
@@ -1973,11 +1955,11 @@ const Br = async () => {
|
|
|
1973
1955
|
v.token,
|
|
1974
1956
|
{},
|
|
1975
1957
|
{
|
|
1976
|
-
baseURL:
|
|
1958
|
+
baseURL: Ge,
|
|
1977
1959
|
params: r,
|
|
1978
1960
|
headers: {
|
|
1979
1961
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
1980
|
-
"csrf-token":
|
|
1962
|
+
"csrf-token": wr.get("csrf-token")
|
|
1981
1963
|
}
|
|
1982
1964
|
}
|
|
1983
1965
|
);
|
|
@@ -1987,15 +1969,15 @@ const Br = async () => {
|
|
|
1987
1969
|
refreshToken: i,
|
|
1988
1970
|
info: n.data
|
|
1989
1971
|
};
|
|
1990
|
-
J().save(f), await
|
|
1991
|
-
const
|
|
1992
|
-
return
|
|
1972
|
+
J().save(f), await Ye(s);
|
|
1973
|
+
const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
|
|
1974
|
+
return u && u > 0 && (Pt(u), u && localStorage.setItem("idelTime", u.toString())), Dr(), s;
|
|
1993
1975
|
} catch {
|
|
1994
|
-
return
|
|
1976
|
+
return $({ ...D, redirect_uri: z });
|
|
1995
1977
|
}
|
|
1996
|
-
}, q = Y(!1),
|
|
1978
|
+
}, q = Y(!1), Jr = async (e) => {
|
|
1997
1979
|
if (e.public) return "";
|
|
1998
|
-
if (Ct.value) return
|
|
1980
|
+
if (Ct.value) return $({ ...D, redirect_uri: z });
|
|
1999
1981
|
if (q.value)
|
|
2000
1982
|
return await new Promise(async (s) => {
|
|
2001
1983
|
Se(
|
|
@@ -2010,17 +1992,17 @@ const Br = async () => {
|
|
|
2010
1992
|
});
|
|
2011
1993
|
const { accessTokenExpiredAt: t } = J().getData(), n = kt("code") || "";
|
|
2012
1994
|
if ((!M() || t === 0) && !n)
|
|
2013
|
-
return
|
|
1995
|
+
return $({ ...D, redirect_uri: z });
|
|
2014
1996
|
let r = M();
|
|
2015
1997
|
q.value = !0;
|
|
2016
1998
|
try {
|
|
2017
|
-
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await
|
|
1999
|
+
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Br(D)), r = await vr(), q.value = !1;
|
|
2018
2000
|
} catch {
|
|
2019
2001
|
q.value = !1;
|
|
2020
2002
|
}
|
|
2021
2003
|
return r;
|
|
2022
|
-
},
|
|
2023
|
-
if (
|
|
2004
|
+
}, $ = (e) => {
|
|
2005
|
+
if (Fr) return;
|
|
2024
2006
|
const { baseURL: t, ssoLocale: n } = Te();
|
|
2025
2007
|
if (Re) return Re(e);
|
|
2026
2008
|
e.logout = "true", n && (e.locale = "locale");
|
|
@@ -2032,8 +2014,8 @@ const Br = async () => {
|
|
|
2032
2014
|
}
|
|
2033
2015
|
window.__isAutoCloseApp = !1, location.replace(s);
|
|
2034
2016
|
};
|
|
2035
|
-
|
|
2036
|
-
const
|
|
2017
|
+
Lr($);
|
|
2018
|
+
const Br = async (e) => {
|
|
2037
2019
|
const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
|
|
2038
2020
|
try {
|
|
2039
2021
|
await b.create().get(v.token, { baseURL: t });
|
|
@@ -2060,35 +2042,35 @@ const Ir = async (e) => {
|
|
|
2060
2042
|
refreshToken: i,
|
|
2061
2043
|
info: r.data
|
|
2062
2044
|
};
|
|
2063
|
-
return J().save(c), await
|
|
2045
|
+
return J().save(c), await Ye(s), s;
|
|
2064
2046
|
} catch {
|
|
2065
|
-
return
|
|
2047
|
+
return $({ ...e, redirect_uri: z });
|
|
2066
2048
|
}
|
|
2067
2049
|
}, J = () => ({
|
|
2068
2050
|
getData: () => ({
|
|
2069
2051
|
accessToken: M(),
|
|
2070
|
-
accessTokenExpiredAt:
|
|
2071
|
-
refreshToken:
|
|
2052
|
+
accessTokenExpiredAt: ue("accessTokenExpiredAt") ? Number(ue("accessTokenExpiredAt")) : "",
|
|
2053
|
+
refreshToken: ue("refreshToken")
|
|
2072
2054
|
}),
|
|
2073
2055
|
save: (e) => {
|
|
2074
|
-
|
|
2056
|
+
vt(
|
|
2075
2057
|
e.accessToken || "",
|
|
2076
2058
|
{
|
|
2077
2059
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2078
2060
|
refreshToken: e.refreshToken
|
|
2079
2061
|
}
|
|
2080
|
-
),
|
|
2062
|
+
), It(e);
|
|
2081
2063
|
},
|
|
2082
2064
|
remove: () => {
|
|
2083
|
-
|
|
2065
|
+
Bt(), jt();
|
|
2084
2066
|
}
|
|
2085
2067
|
});
|
|
2086
2068
|
export {
|
|
2087
2069
|
kt as getQuery,
|
|
2088
|
-
|
|
2089
|
-
|
|
2070
|
+
Jr as getToken,
|
|
2071
|
+
vr as getTokenFromCode,
|
|
2090
2072
|
D as getTokenParams,
|
|
2091
|
-
|
|
2092
|
-
|
|
2073
|
+
$ as login,
|
|
2074
|
+
z as real_uri,
|
|
2093
2075
|
J as tokenStorage
|
|
2094
2076
|
};
|