@das-fed/upf-utils 6.4.0-dev.230 → 6.4.0-dev.231
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 +2144 -2211
- package/api-services/index.js +1635 -1689
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +2012 -2088
- package/api-services/modules/app-manage/index.js +1644 -1712
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +2313 -2377
- package/api-services/modules/authentication/index.js +1929 -1979
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +2333 -2400
- package/api-services/modules/bems/index.js +1938 -1992
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +2009 -2082
- package/api-services/modules/contract/index.js +1644 -1708
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +2227 -2303
- package/api-services/modules/duty-manage/index.js +1833 -1901
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +2222 -2298
- package/api-services/modules/enterpriseright/index.js +1829 -1897
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +2042 -2128
- package/api-services/modules/file/es5.js +1794 -1870
- package/api-services/modules/file/index.js +1388 -1456
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +2115 -2179
- package/api-services/modules/gateway-edge/index.js +1759 -1809
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1538 -1620
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +2135 -2199
- package/api-services/modules/iot/index.js +1767 -1817
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +2115 -2179
- package/api-services/modules/justauth/index.js +1758 -1808
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +2323 -2390
- package/api-services/modules/knowledge/index.js +1934 -1988
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +2222 -2298
- package/api-services/modules/link/index.js +1829 -1897
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +2181 -2254
- package/api-services/modules/permission/index.js +1802 -1866
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +2241 -2317
- package/api-services/modules/platformManage/index.js +1840 -1908
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +2323 -2390
- package/api-services/modules/portal/index.js +1934 -1988
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +2177 -2244
- package/api-services/modules/space-manage/index.js +1800 -1854
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +2282 -2367
- package/api-services/modules/super-admin/index.js +1888 -1970
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +2227 -2303
- package/api-services/modules/supplier/index.js +1831 -1899
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +2222 -2298
- package/api-services/modules/supplychain-manage/index.js +1829 -1897
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +2323 -2390
- package/api-services/modules/systemConfiguration/index.js +1934 -1988
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +2224 -2298
- package/api-services/modules/tool/index.js +1831 -1895
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +2276 -2364
- package/api-services/src/create-service/index.js +1888 -1974
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +2099 -2173
- package/common-info/getPermissionMethod/es5.js +2228 -2294
- package/common-info/getPermissionMethod/index.js +1849 -1903
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1651 -1715
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +997 -1073
- package/common-info/set-personal-info/index.js +827 -895
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/extract-file-name/es5.js +998 -1074
- package/common-tools/extract-file-name/index.js +821 -889
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/handle-data/es5.js +1 -1
- package/common-tools/update-browser-title/es5.js +1 -1
- package/common-tools/update-fav-icon/es5.js +1 -1
- package/create-api-service/check-token/es5.js +904 -980
- package/create-api-service/check-token/index.js +727 -795
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +2221 -2297
- package/create-api-service/index.js +1828 -1896
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +1166 -1242
- package/create-api-service/sso/index.js +938 -1006
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +1366 -1442
- package/curring-http/index.js +1064 -1132
- package/curring-http/index.js.gz +0 -0
- package/directive/clickOutside/es5.js +1 -1
- package/directive/hoverInside/es5.js +1 -1
- package/directive/utils/es5.js +1 -1
- package/hooks/use-get-auth/es5.js +1 -1
- package/package.json +3 -3
- package/pinyin-first-character/es5.js +45 -47
- package/pinyin-first-character/index.js +35 -37
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/es5.js +11 -11
- package/style/index.js +10 -10
- package/style/index.js.gz +0 -0
|
@@ -1,63 +1,51 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
3
|
-
import { getConfig as
|
|
4
|
-
import { getUrlParams as
|
|
5
|
-
import { getAccessToken as
|
|
6
|
-
import { setProcessEngineToken as
|
|
7
|
-
function
|
|
1
|
+
import { unref as Pt, getCurrentScope as Ut, onScopeDispose as Nt, ref as Y, watch as Se } from "vue";
|
|
2
|
+
import { encryption as Lt } from "@das-fed/upf-utils/atob";
|
|
3
|
+
import { getConfig as Te } from "@das-fed/upf-utils/config";
|
|
4
|
+
import { getUrlParams as Ze, funcUrlDel as Ft } from "@das-fed/upf-utils/common-tools/get-url-params";
|
|
5
|
+
import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as Dt, removeAccessToken as vt } from "@das-fed/upf-utils/token-tools";
|
|
6
|
+
import { setProcessEngineToken as Bt, removeProcessEngineToken as It } from "@das-fed/upf-utils/process-engine-info";
|
|
7
|
+
function Ye(e, t) {
|
|
8
8
|
return function() {
|
|
9
9
|
return e.apply(t, arguments);
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
const { toString:
|
|
13
|
-
const n =
|
|
12
|
+
const { toString: jt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: et } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
|
|
13
|
+
const n = jt.call(t);
|
|
14
14
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
15
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
16
|
-
function
|
|
17
|
-
return e !== null && !
|
|
15
|
+
})(/* @__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");
|
|
16
|
+
function qt(e) {
|
|
17
|
+
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const tt = x("ArrayBuffer");
|
|
20
|
+
function Mt(e) {
|
|
21
21
|
let t;
|
|
22
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
22
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
24
|
+
const Ht = se("string"), A = se("function"), nt = se("number"), oe = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, X = (e) => {
|
|
25
|
+
if (re(e) !== "object")
|
|
26
26
|
return !1;
|
|
27
|
-
const t =
|
|
28
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
29
|
-
},
|
|
30
|
-
if (!Y(e) || Z(e))
|
|
31
|
-
return !1;
|
|
32
|
-
try {
|
|
33
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
34
|
-
} catch {
|
|
35
|
-
return !1;
|
|
36
|
-
}
|
|
37
|
-
}, cn = C("Date"), un = C("File"), ln = C("Blob"), fn = C("FileList"), dn = (e) => Y(e) && O(e.pipe), pn = (e) => {
|
|
27
|
+
const t = Oe(e);
|
|
28
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(et in e) && !(ne in e);
|
|
29
|
+
}, $t = x("Date"), Jt = x("File"), Vt = x("Blob"), Wt = x("FileList"), Kt = (e) => oe(e) && A(e.pipe), Qt = (e) => {
|
|
38
30
|
let t;
|
|
39
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
40
|
-
t === "object" &&
|
|
41
|
-
},
|
|
42
|
-
function
|
|
31
|
+
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
32
|
+
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
33
|
+
}, Xt = x("URLSearchParams"), [Gt, Zt, Yt, en] = ["ReadableStream", "Request", "Response", "Headers"].map(x), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
34
|
+
function V(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
43
35
|
if (e === null || typeof e > "u")
|
|
44
36
|
return;
|
|
45
37
|
let r, s;
|
|
46
|
-
if (typeof e != "object" && (e = [e]),
|
|
38
|
+
if (typeof e != "object" && (e = [e]), B(e))
|
|
47
39
|
for (r = 0, s = e.length; r < s; r++)
|
|
48
40
|
t.call(null, e[r], r, e);
|
|
49
41
|
else {
|
|
50
|
-
|
|
51
|
-
return;
|
|
52
|
-
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
42
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
53
43
|
let c;
|
|
54
|
-
for (r = 0; r <
|
|
55
|
-
c =
|
|
44
|
+
for (r = 0; r < i; r++)
|
|
45
|
+
c = o[r], t.call(null, e[c], c, e);
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
|
-
function
|
|
59
|
-
if (Z(e))
|
|
60
|
-
return null;
|
|
48
|
+
function rt(e, t) {
|
|
61
49
|
t = t.toLowerCase();
|
|
62
50
|
const n = Object.keys(e);
|
|
63
51
|
let r = n.length, s;
|
|
@@ -66,75 +54,75 @@ function Et(e, t) {
|
|
|
66
54
|
return s;
|
|
67
55
|
return null;
|
|
68
56
|
}
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
const { caseless: e
|
|
72
|
-
const o = e &&
|
|
73
|
-
|
|
57
|
+
const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !H(e) && e !== N;
|
|
58
|
+
function pe() {
|
|
59
|
+
const { caseless: e } = st(this) && this || {}, t = {}, n = (r, s) => {
|
|
60
|
+
const o = e && rt(t, s) || s;
|
|
61
|
+
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;
|
|
74
62
|
};
|
|
75
|
-
for (let
|
|
76
|
-
arguments[
|
|
77
|
-
return
|
|
63
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
64
|
+
arguments[r] && V(arguments[r], n);
|
|
65
|
+
return t;
|
|
78
66
|
}
|
|
79
|
-
const
|
|
80
|
-
n &&
|
|
81
|
-
}, { allOwnKeys: r }), e),
|
|
67
|
+
const nn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
68
|
+
n && A(s) ? e[o] = Ye(s, n) : e[o] = s;
|
|
69
|
+
}, { allOwnKeys: r }), e), rn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sn = (e, t, n, r) => {
|
|
82
70
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
83
71
|
value: t.prototype
|
|
84
72
|
}), n && Object.assign(e.prototype, n);
|
|
85
|
-
},
|
|
86
|
-
let s,
|
|
73
|
+
}, on = (e, t, n, r) => {
|
|
74
|
+
let s, o, i;
|
|
87
75
|
const c = {};
|
|
88
76
|
if (t = t || {}, e == null) return t;
|
|
89
77
|
do {
|
|
90
|
-
for (s = Object.getOwnPropertyNames(e),
|
|
91
|
-
|
|
92
|
-
e = n !== !1 &&
|
|
78
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
79
|
+
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
80
|
+
e = n !== !1 && Oe(e);
|
|
93
81
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
94
82
|
return t;
|
|
95
|
-
},
|
|
83
|
+
}, an = (e, t, n) => {
|
|
96
84
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
97
85
|
const r = e.indexOf(t, n);
|
|
98
86
|
return r !== -1 && r === n;
|
|
99
|
-
},
|
|
87
|
+
}, cn = (e) => {
|
|
100
88
|
if (!e) return null;
|
|
101
|
-
if (
|
|
89
|
+
if (B(e)) return e;
|
|
102
90
|
let t = e.length;
|
|
103
|
-
if (!
|
|
91
|
+
if (!nt(t)) return null;
|
|
104
92
|
const n = new Array(t);
|
|
105
93
|
for (; t-- > 0; )
|
|
106
94
|
n[t] = e[t];
|
|
107
95
|
return n;
|
|
108
|
-
},
|
|
109
|
-
const r = (e && e[
|
|
96
|
+
}, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), ln = (e, t) => {
|
|
97
|
+
const r = (e && e[ne]).call(e);
|
|
110
98
|
let s;
|
|
111
99
|
for (; (s = r.next()) && !s.done; ) {
|
|
112
|
-
const
|
|
113
|
-
t.call(e,
|
|
100
|
+
const o = s.value;
|
|
101
|
+
t.call(e, o[0], o[1]);
|
|
114
102
|
}
|
|
115
|
-
},
|
|
103
|
+
}, fn = (e, t) => {
|
|
116
104
|
let n;
|
|
117
105
|
const r = [];
|
|
118
106
|
for (; (n = e.exec(t)) !== null; )
|
|
119
107
|
r.push(n);
|
|
120
108
|
return r;
|
|
121
|
-
},
|
|
109
|
+
}, dn = x("HTMLFormElement"), pn = (e) => e.toLowerCase().replace(
|
|
122
110
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
123
111
|
function(n, r, s) {
|
|
124
112
|
return r.toUpperCase() + s;
|
|
125
113
|
}
|
|
126
|
-
),
|
|
114
|
+
), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), hn = x("RegExp"), ot = (e, t) => {
|
|
127
115
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
128
|
-
|
|
129
|
-
let
|
|
130
|
-
(
|
|
116
|
+
V(n, (s, o) => {
|
|
117
|
+
let i;
|
|
118
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
131
119
|
}), Object.defineProperties(e, r);
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
if (
|
|
120
|
+
}, mn = (e) => {
|
|
121
|
+
ot(e, (t, n) => {
|
|
122
|
+
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
135
123
|
return !1;
|
|
136
124
|
const r = e[n];
|
|
137
|
-
if (
|
|
125
|
+
if (A(r)) {
|
|
138
126
|
if (t.enumerable = !1, "writable" in t) {
|
|
139
127
|
t.writable = !1;
|
|
140
128
|
return;
|
|
@@ -144,103 +132,100 @@ const En = (e, t, n, { allOwnKeys: r } = {}) => (ee(t, (s, i) => {
|
|
|
144
132
|
});
|
|
145
133
|
}
|
|
146
134
|
});
|
|
147
|
-
},
|
|
135
|
+
}, yn = (e, t) => {
|
|
148
136
|
const n = {}, r = (s) => {
|
|
149
|
-
s.forEach((
|
|
150
|
-
n[
|
|
137
|
+
s.forEach((o) => {
|
|
138
|
+
n[o] = !0;
|
|
151
139
|
});
|
|
152
140
|
};
|
|
153
|
-
return
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
function
|
|
157
|
-
return !!(e &&
|
|
141
|
+
return B(e) ? r(e) : r(String(e).split(t)), n;
|
|
142
|
+
}, wn = () => {
|
|
143
|
+
}, gn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
144
|
+
function bn(e) {
|
|
145
|
+
return !!(e && A(e.append) && e[et] === "FormData" && e[ne]);
|
|
158
146
|
}
|
|
159
|
-
const
|
|
147
|
+
const En = (e) => {
|
|
160
148
|
const t = new Array(10), n = (r, s) => {
|
|
161
|
-
if (
|
|
149
|
+
if (oe(r)) {
|
|
162
150
|
if (t.indexOf(r) >= 0)
|
|
163
151
|
return;
|
|
164
|
-
if (Z(r))
|
|
165
|
-
return r;
|
|
166
152
|
if (!("toJSON" in r)) {
|
|
167
153
|
t[s] = r;
|
|
168
|
-
const
|
|
169
|
-
return
|
|
170
|
-
const
|
|
171
|
-
!
|
|
172
|
-
}), t[s] = void 0,
|
|
154
|
+
const o = B(r) ? [] : {};
|
|
155
|
+
return V(r, (i, c) => {
|
|
156
|
+
const f = n(i, s + 1);
|
|
157
|
+
!H(f) && (o[c] = f);
|
|
158
|
+
}), t[s] = void 0, o;
|
|
173
159
|
}
|
|
174
160
|
}
|
|
175
161
|
return r;
|
|
176
162
|
};
|
|
177
163
|
return n(e, 0);
|
|
178
|
-
},
|
|
179
|
-
s ===
|
|
164
|
+
}, Rn = x("AsyncFunction"), Sn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), it = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
|
|
165
|
+
s === N && o === n && r.length && r.shift()();
|
|
180
166
|
}, !1), (s) => {
|
|
181
|
-
r.push(s),
|
|
167
|
+
r.push(s), N.postMessage(n, "*");
|
|
182
168
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
183
169
|
typeof setImmediate == "function",
|
|
184
|
-
|
|
185
|
-
),
|
|
186
|
-
isArray:
|
|
187
|
-
isArrayBuffer:
|
|
188
|
-
isBuffer:
|
|
189
|
-
isFormData:
|
|
190
|
-
isArrayBufferView:
|
|
191
|
-
isString:
|
|
192
|
-
isNumber:
|
|
193
|
-
isBoolean:
|
|
194
|
-
isObject:
|
|
195
|
-
isPlainObject:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
hasOwnProp: ze,
|
|
170
|
+
A(N.postMessage)
|
|
171
|
+
), Tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || it, On = (e) => e != null && A(e[ne]), a = {
|
|
172
|
+
isArray: B,
|
|
173
|
+
isArrayBuffer: tt,
|
|
174
|
+
isBuffer: qt,
|
|
175
|
+
isFormData: Qt,
|
|
176
|
+
isArrayBufferView: Mt,
|
|
177
|
+
isString: Ht,
|
|
178
|
+
isNumber: nt,
|
|
179
|
+
isBoolean: zt,
|
|
180
|
+
isObject: oe,
|
|
181
|
+
isPlainObject: X,
|
|
182
|
+
isReadableStream: Gt,
|
|
183
|
+
isRequest: Zt,
|
|
184
|
+
isResponse: Yt,
|
|
185
|
+
isHeaders: en,
|
|
186
|
+
isUndefined: H,
|
|
187
|
+
isDate: $t,
|
|
188
|
+
isFile: Jt,
|
|
189
|
+
isBlob: Vt,
|
|
190
|
+
isRegExp: hn,
|
|
191
|
+
isFunction: A,
|
|
192
|
+
isStream: Kt,
|
|
193
|
+
isURLSearchParams: Xt,
|
|
194
|
+
isTypedArray: un,
|
|
195
|
+
isFileList: Wt,
|
|
196
|
+
forEach: V,
|
|
197
|
+
merge: pe,
|
|
198
|
+
extend: nn,
|
|
199
|
+
trim: tn,
|
|
200
|
+
stripBOM: rn,
|
|
201
|
+
inherits: sn,
|
|
202
|
+
toFlatObject: on,
|
|
203
|
+
kindOf: re,
|
|
204
|
+
kindOfTest: x,
|
|
205
|
+
endsWith: an,
|
|
206
|
+
toArray: cn,
|
|
207
|
+
forEachEntry: ln,
|
|
208
|
+
matchAll: fn,
|
|
209
|
+
isHTMLForm: dn,
|
|
210
|
+
hasOwnProperty: Pe,
|
|
211
|
+
hasOwnProp: Pe,
|
|
227
212
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
228
|
-
reduceDescriptors:
|
|
229
|
-
freezeMethods:
|
|
230
|
-
toObjectSet:
|
|
231
|
-
toCamelCase:
|
|
232
|
-
noop:
|
|
233
|
-
toFiniteNumber:
|
|
234
|
-
findKey:
|
|
235
|
-
global:
|
|
236
|
-
isContextDefined:
|
|
237
|
-
isSpecCompliantForm:
|
|
238
|
-
toJSONObject:
|
|
239
|
-
isAsyncFn:
|
|
240
|
-
isThenable:
|
|
241
|
-
setImmediate:
|
|
242
|
-
asap:
|
|
243
|
-
isIterable:
|
|
213
|
+
reduceDescriptors: ot,
|
|
214
|
+
freezeMethods: mn,
|
|
215
|
+
toObjectSet: yn,
|
|
216
|
+
toCamelCase: pn,
|
|
217
|
+
noop: wn,
|
|
218
|
+
toFiniteNumber: gn,
|
|
219
|
+
findKey: rt,
|
|
220
|
+
global: N,
|
|
221
|
+
isContextDefined: st,
|
|
222
|
+
isSpecCompliantForm: bn,
|
|
223
|
+
toJSONObject: En,
|
|
224
|
+
isAsyncFn: Rn,
|
|
225
|
+
isThenable: Sn,
|
|
226
|
+
setImmediate: it,
|
|
227
|
+
asap: Tn,
|
|
228
|
+
isIterable: On
|
|
244
229
|
};
|
|
245
230
|
function y(e, t, n, r, s) {
|
|
246
231
|
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);
|
|
@@ -266,7 +251,7 @@ a.inherits(y, Error, {
|
|
|
266
251
|
};
|
|
267
252
|
}
|
|
268
253
|
});
|
|
269
|
-
const
|
|
254
|
+
const at = y.prototype, ct = {};
|
|
270
255
|
[
|
|
271
256
|
"ERR_BAD_OPTION_VALUE",
|
|
272
257
|
"ERR_BAD_OPTION",
|
|
@@ -282,37 +267,35 @@ const Ot = y.prototype, At = {};
|
|
|
282
267
|
"ERR_INVALID_URL"
|
|
283
268
|
// eslint-disable-next-line func-names
|
|
284
269
|
].forEach((e) => {
|
|
285
|
-
|
|
270
|
+
ct[e] = { value: e };
|
|
286
271
|
});
|
|
287
|
-
Object.defineProperties(y,
|
|
288
|
-
Object.defineProperty(
|
|
289
|
-
y.from = (e, t, n, r, s,
|
|
290
|
-
const
|
|
291
|
-
a.toFlatObject(e,
|
|
292
|
-
return
|
|
293
|
-
}, (
|
|
294
|
-
const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
295
|
-
return y.call(o, c, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
|
|
272
|
+
Object.defineProperties(y, ct);
|
|
273
|
+
Object.defineProperty(at, "isAxiosError", { value: !0 });
|
|
274
|
+
y.from = (e, t, n, r, s, o) => {
|
|
275
|
+
const i = Object.create(at);
|
|
276
|
+
return a.toFlatObject(e, i, function(f) {
|
|
277
|
+
return f !== Error.prototype;
|
|
278
|
+
}, (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;
|
|
296
279
|
};
|
|
297
|
-
const
|
|
298
|
-
function
|
|
280
|
+
const An = null;
|
|
281
|
+
function he(e) {
|
|
299
282
|
return a.isPlainObject(e) || a.isArray(e);
|
|
300
283
|
}
|
|
301
|
-
function
|
|
284
|
+
function ut(e) {
|
|
302
285
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
303
286
|
}
|
|
304
|
-
function
|
|
305
|
-
return e ? e.concat(t).map(function(s,
|
|
306
|
-
return s =
|
|
287
|
+
function Ue(e, t, n) {
|
|
288
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
289
|
+
return s = ut(s), !n && o ? "[" + s + "]" : s;
|
|
307
290
|
}).join(n ? "." : "") : t;
|
|
308
291
|
}
|
|
309
|
-
function
|
|
310
|
-
return a.isArray(e) && !e.some(
|
|
292
|
+
function _n(e) {
|
|
293
|
+
return a.isArray(e) && !e.some(he);
|
|
311
294
|
}
|
|
312
|
-
const
|
|
295
|
+
const xn = a.toFlatObject(a, {}, null, function(t) {
|
|
313
296
|
return /^is[A-Z]/.test(t);
|
|
314
297
|
});
|
|
315
|
-
function
|
|
298
|
+
function ie(e, t, n) {
|
|
316
299
|
if (!a.isObject(e))
|
|
317
300
|
throw new TypeError("target must be an object");
|
|
318
301
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
@@ -322,60 +305,60 @@ function me(e, t, n) {
|
|
|
322
305
|
}, !1, function(m, h) {
|
|
323
306
|
return !a.isUndefined(h[m]);
|
|
324
307
|
});
|
|
325
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
308
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
326
309
|
if (!a.isFunction(s))
|
|
327
310
|
throw new TypeError("visitor must be a function");
|
|
328
|
-
function
|
|
329
|
-
if (
|
|
330
|
-
if (a.isDate(
|
|
331
|
-
return
|
|
332
|
-
if (a.isBoolean(
|
|
333
|
-
return
|
|
334
|
-
if (!
|
|
311
|
+
function u(p) {
|
|
312
|
+
if (p === null) return "";
|
|
313
|
+
if (a.isDate(p))
|
|
314
|
+
return p.toISOString();
|
|
315
|
+
if (a.isBoolean(p))
|
|
316
|
+
return p.toString();
|
|
317
|
+
if (!f && a.isBlob(p))
|
|
335
318
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
336
|
-
return a.isArrayBuffer(
|
|
319
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
337
320
|
}
|
|
338
|
-
function
|
|
339
|
-
let E =
|
|
340
|
-
if (
|
|
321
|
+
function l(p, m, h) {
|
|
322
|
+
let E = p;
|
|
323
|
+
if (p && !h && typeof p == "object") {
|
|
341
324
|
if (a.endsWith(m, "{}"))
|
|
342
|
-
m = r ? m : m.slice(0, -2),
|
|
343
|
-
else if (a.isArray(
|
|
344
|
-
return m =
|
|
325
|
+
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
326
|
+
else if (a.isArray(p) && _n(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
|
|
327
|
+
return m = ut(m), E.forEach(function(S, C) {
|
|
345
328
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
346
329
|
// eslint-disable-next-line no-nested-ternary
|
|
347
|
-
|
|
348
|
-
|
|
330
|
+
i === !0 ? Ue([m], C, o) : i === null ? m : m + "[]",
|
|
331
|
+
u(S)
|
|
349
332
|
);
|
|
350
333
|
}), !1;
|
|
351
334
|
}
|
|
352
|
-
return
|
|
335
|
+
return he(p) ? !0 : (t.append(Ue(h, m, o), u(p)), !1);
|
|
353
336
|
}
|
|
354
|
-
const
|
|
355
|
-
defaultVisitor:
|
|
356
|
-
convertValue:
|
|
357
|
-
isVisitable:
|
|
337
|
+
const d = [], w = Object.assign(xn, {
|
|
338
|
+
defaultVisitor: l,
|
|
339
|
+
convertValue: u,
|
|
340
|
+
isVisitable: he
|
|
358
341
|
});
|
|
359
|
-
function g(
|
|
360
|
-
if (!a.isUndefined(
|
|
361
|
-
if (
|
|
342
|
+
function g(p, m) {
|
|
343
|
+
if (!a.isUndefined(p)) {
|
|
344
|
+
if (d.indexOf(p) !== -1)
|
|
362
345
|
throw Error("Circular reference detected in " + m.join("."));
|
|
363
|
-
|
|
346
|
+
d.push(p), a.forEach(p, function(E, R) {
|
|
364
347
|
(!(a.isUndefined(E) || E === null) && s.call(
|
|
365
348
|
t,
|
|
366
349
|
E,
|
|
367
|
-
a.isString(
|
|
350
|
+
a.isString(R) ? R.trim() : R,
|
|
368
351
|
m,
|
|
369
352
|
w
|
|
370
|
-
)) === !0 && g(E, m ? m.concat(
|
|
371
|
-
}),
|
|
353
|
+
)) === !0 && g(E, m ? m.concat(R) : [R]);
|
|
354
|
+
}), d.pop();
|
|
372
355
|
}
|
|
373
356
|
}
|
|
374
357
|
if (!a.isObject(e))
|
|
375
358
|
throw new TypeError("data must be an object");
|
|
376
359
|
return g(e), t;
|
|
377
360
|
}
|
|
378
|
-
function
|
|
361
|
+
function Ne(e) {
|
|
379
362
|
const t = {
|
|
380
363
|
"!": "%21",
|
|
381
364
|
"'": "%27",
|
|
@@ -389,40 +372,40 @@ function Ve(e) {
|
|
|
389
372
|
return t[r];
|
|
390
373
|
});
|
|
391
374
|
}
|
|
392
|
-
function
|
|
393
|
-
this._pairs = [], e &&
|
|
375
|
+
function Ae(e, t) {
|
|
376
|
+
this._pairs = [], e && ie(e, this, t);
|
|
394
377
|
}
|
|
395
|
-
const
|
|
396
|
-
|
|
378
|
+
const lt = Ae.prototype;
|
|
379
|
+
lt.append = function(t, n) {
|
|
397
380
|
this._pairs.push([t, n]);
|
|
398
381
|
};
|
|
399
|
-
|
|
382
|
+
lt.toString = function(t) {
|
|
400
383
|
const n = t ? function(r) {
|
|
401
|
-
return t.call(this, r,
|
|
402
|
-
} :
|
|
384
|
+
return t.call(this, r, Ne);
|
|
385
|
+
} : Ne;
|
|
403
386
|
return this._pairs.map(function(s) {
|
|
404
387
|
return n(s[0]) + "=" + n(s[1]);
|
|
405
388
|
}, "").join("&");
|
|
406
389
|
};
|
|
407
|
-
function
|
|
408
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
390
|
+
function kn(e) {
|
|
391
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
409
392
|
}
|
|
410
|
-
function
|
|
393
|
+
function ft(e, t, n) {
|
|
411
394
|
if (!t)
|
|
412
395
|
return e;
|
|
413
|
-
const r = n && n.encode ||
|
|
396
|
+
const r = n && n.encode || kn;
|
|
414
397
|
a.isFunction(n) && (n = {
|
|
415
398
|
serialize: n
|
|
416
399
|
});
|
|
417
400
|
const s = n && n.serialize;
|
|
418
|
-
let
|
|
419
|
-
if (s ?
|
|
420
|
-
const
|
|
421
|
-
|
|
401
|
+
let o;
|
|
402
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Ae(t, n).toString(r), o) {
|
|
403
|
+
const i = e.indexOf("#");
|
|
404
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
422
405
|
}
|
|
423
406
|
return e;
|
|
424
407
|
}
|
|
425
|
-
class
|
|
408
|
+
class Le {
|
|
426
409
|
constructor() {
|
|
427
410
|
this.handlers = [];
|
|
428
411
|
}
|
|
@@ -447,7 +430,7 @@ class We {
|
|
|
447
430
|
*
|
|
448
431
|
* @param {Number} id The ID that was returned by `use`
|
|
449
432
|
*
|
|
450
|
-
* @returns {
|
|
433
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
451
434
|
*/
|
|
452
435
|
eject(t) {
|
|
453
436
|
this.handlers[t] && (this.handlers[t] = null);
|
|
@@ -476,66 +459,65 @@ class We {
|
|
|
476
459
|
});
|
|
477
460
|
}
|
|
478
461
|
}
|
|
479
|
-
const
|
|
462
|
+
const dt = {
|
|
480
463
|
silentJSONParsing: !0,
|
|
481
464
|
forcedJSONParsing: !0,
|
|
482
465
|
clarifyTimeoutError: !1
|
|
483
|
-
},
|
|
466
|
+
}, Cn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Pn = typeof FormData < "u" ? FormData : null, Un = typeof Blob < "u" ? Blob : null, Nn = {
|
|
484
467
|
isBrowser: !0,
|
|
485
468
|
classes: {
|
|
486
|
-
URLSearchParams:
|
|
487
|
-
FormData:
|
|
488
|
-
Blob:
|
|
469
|
+
URLSearchParams: Cn,
|
|
470
|
+
FormData: Pn,
|
|
471
|
+
Blob: Un
|
|
489
472
|
},
|
|
490
473
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
491
|
-
},
|
|
492
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
474
|
+
}, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Ln = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
475
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Dn = _e && window.location.href || "http://localhost", vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
493
476
|
__proto__: null,
|
|
494
|
-
hasBrowserEnv:
|
|
495
|
-
hasStandardBrowserEnv:
|
|
496
|
-
hasStandardBrowserWebWorkerEnv:
|
|
497
|
-
navigator:
|
|
498
|
-
origin:
|
|
499
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
500
|
-
...
|
|
501
|
-
...
|
|
477
|
+
hasBrowserEnv: _e,
|
|
478
|
+
hasStandardBrowserEnv: Ln,
|
|
479
|
+
hasStandardBrowserWebWorkerEnv: Fn,
|
|
480
|
+
navigator: me,
|
|
481
|
+
origin: Dn
|
|
482
|
+
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
483
|
+
...vn,
|
|
484
|
+
...Nn
|
|
502
485
|
};
|
|
503
|
-
function
|
|
504
|
-
return
|
|
505
|
-
visitor: function(n, r, s,
|
|
506
|
-
return
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
});
|
|
486
|
+
function Bn(e, t) {
|
|
487
|
+
return ie(e, new T.classes.URLSearchParams(), Object.assign({
|
|
488
|
+
visitor: function(n, r, s, o) {
|
|
489
|
+
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
490
|
+
}
|
|
491
|
+
}, t));
|
|
510
492
|
}
|
|
511
|
-
function
|
|
493
|
+
function In(e) {
|
|
512
494
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
513
495
|
}
|
|
514
|
-
function
|
|
496
|
+
function jn(e) {
|
|
515
497
|
const t = {}, n = Object.keys(e);
|
|
516
498
|
let r;
|
|
517
499
|
const s = n.length;
|
|
518
|
-
let
|
|
500
|
+
let o;
|
|
519
501
|
for (r = 0; r < s; r++)
|
|
520
|
-
|
|
502
|
+
o = n[r], t[o] = e[o];
|
|
521
503
|
return t;
|
|
522
504
|
}
|
|
523
|
-
function
|
|
524
|
-
function t(n, r, s,
|
|
525
|
-
let
|
|
526
|
-
if (
|
|
527
|
-
const c = Number.isFinite(+
|
|
528
|
-
return
|
|
505
|
+
function pt(e) {
|
|
506
|
+
function t(n, r, s, o) {
|
|
507
|
+
let i = n[o++];
|
|
508
|
+
if (i === "__proto__") return !0;
|
|
509
|
+
const c = Number.isFinite(+i), f = o >= n.length;
|
|
510
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = jn(s[i])), !c);
|
|
529
511
|
}
|
|
530
512
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
531
513
|
const n = {};
|
|
532
514
|
return a.forEachEntry(e, (r, s) => {
|
|
533
|
-
t(
|
|
515
|
+
t(In(r), s, n, 0);
|
|
534
516
|
}), n;
|
|
535
517
|
}
|
|
536
518
|
return null;
|
|
537
519
|
}
|
|
538
|
-
function
|
|
520
|
+
function qn(e, t, n) {
|
|
539
521
|
if (a.isString(e))
|
|
540
522
|
try {
|
|
541
523
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -545,13 +527,13 @@ function rr(e, t, n) {
|
|
|
545
527
|
}
|
|
546
528
|
return (0, JSON.stringify)(e);
|
|
547
529
|
}
|
|
548
|
-
const
|
|
549
|
-
transitional:
|
|
530
|
+
const W = {
|
|
531
|
+
transitional: dt,
|
|
550
532
|
adapter: ["xhr", "http", "fetch"],
|
|
551
533
|
transformRequest: [function(t, n) {
|
|
552
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1,
|
|
553
|
-
if (
|
|
554
|
-
return s ? JSON.stringify(
|
|
534
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
535
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
536
|
+
return s ? JSON.stringify(pt(t)) : t;
|
|
555
537
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
556
538
|
return t;
|
|
557
539
|
if (a.isArrayBufferView(t))
|
|
@@ -559,30 +541,30 @@ const te = {
|
|
|
559
541
|
if (a.isURLSearchParams(t))
|
|
560
542
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
561
543
|
let c;
|
|
562
|
-
if (
|
|
544
|
+
if (o) {
|
|
563
545
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
564
|
-
return
|
|
546
|
+
return Bn(t, this.formSerializer).toString();
|
|
565
547
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
566
|
-
const
|
|
567
|
-
return
|
|
548
|
+
const f = this.env && this.env.FormData;
|
|
549
|
+
return ie(
|
|
568
550
|
c ? { "files[]": t } : t,
|
|
569
|
-
|
|
551
|
+
f && new f(),
|
|
570
552
|
this.formSerializer
|
|
571
553
|
);
|
|
572
554
|
}
|
|
573
555
|
}
|
|
574
|
-
return
|
|
556
|
+
return o || s ? (n.setContentType("application/json", !1), qn(t)) : t;
|
|
575
557
|
}],
|
|
576
558
|
transformResponse: [function(t) {
|
|
577
|
-
const n = this.transitional ||
|
|
559
|
+
const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
578
560
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
579
561
|
return t;
|
|
580
562
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
581
|
-
const
|
|
563
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
582
564
|
try {
|
|
583
|
-
return JSON.parse(t
|
|
565
|
+
return JSON.parse(t);
|
|
584
566
|
} catch (c) {
|
|
585
|
-
if (
|
|
567
|
+
if (i)
|
|
586
568
|
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
587
569
|
}
|
|
588
570
|
}
|
|
@@ -598,8 +580,8 @@ const te = {
|
|
|
598
580
|
maxContentLength: -1,
|
|
599
581
|
maxBodyLength: -1,
|
|
600
582
|
env: {
|
|
601
|
-
FormData:
|
|
602
|
-
Blob:
|
|
583
|
+
FormData: T.classes.FormData,
|
|
584
|
+
Blob: T.classes.Blob
|
|
603
585
|
},
|
|
604
586
|
validateStatus: function(t) {
|
|
605
587
|
return t >= 200 && t < 300;
|
|
@@ -612,9 +594,9 @@ const te = {
|
|
|
612
594
|
}
|
|
613
595
|
};
|
|
614
596
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
615
|
-
|
|
597
|
+
W.headers[e] = {};
|
|
616
598
|
});
|
|
617
|
-
const
|
|
599
|
+
const Mn = a.toObjectSet([
|
|
618
600
|
"age",
|
|
619
601
|
"authorization",
|
|
620
602
|
"content-length",
|
|
@@ -632,29 +614,29 @@ const sr = a.toObjectSet([
|
|
|
632
614
|
"referer",
|
|
633
615
|
"retry-after",
|
|
634
616
|
"user-agent"
|
|
635
|
-
]),
|
|
617
|
+
]), Hn = (e) => {
|
|
636
618
|
const t = {};
|
|
637
619
|
let n, r, s;
|
|
638
620
|
return e && e.split(`
|
|
639
|
-
`).forEach(function(
|
|
640
|
-
s =
|
|
621
|
+
`).forEach(function(i) {
|
|
622
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Mn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
641
623
|
}), t;
|
|
642
|
-
},
|
|
643
|
-
function
|
|
624
|
+
}, Fe = Symbol("internals");
|
|
625
|
+
function j(e) {
|
|
644
626
|
return e && String(e).trim().toLowerCase();
|
|
645
627
|
}
|
|
646
|
-
function
|
|
647
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
628
|
+
function G(e) {
|
|
629
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
|
|
648
630
|
}
|
|
649
|
-
function
|
|
631
|
+
function zn(e) {
|
|
650
632
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
651
633
|
let r;
|
|
652
634
|
for (; r = n.exec(e); )
|
|
653
635
|
t[r[1]] = r[2];
|
|
654
636
|
return t;
|
|
655
637
|
}
|
|
656
|
-
const
|
|
657
|
-
function
|
|
638
|
+
const $n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
639
|
+
function le(e, t, n, r, s) {
|
|
658
640
|
if (a.isFunction(r))
|
|
659
641
|
return r.call(this, t, n);
|
|
660
642
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -664,59 +646,59 @@ function Ee(e, t, n, r, s) {
|
|
|
664
646
|
return r.test(t);
|
|
665
647
|
}
|
|
666
648
|
}
|
|
667
|
-
function
|
|
649
|
+
function Jn(e) {
|
|
668
650
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
669
651
|
}
|
|
670
|
-
function
|
|
652
|
+
function Vn(e, t) {
|
|
671
653
|
const n = a.toCamelCase(" " + t);
|
|
672
654
|
["get", "set", "has"].forEach((r) => {
|
|
673
655
|
Object.defineProperty(e, r + n, {
|
|
674
|
-
value: function(s,
|
|
675
|
-
return this[r].call(this, t, s,
|
|
656
|
+
value: function(s, o, i) {
|
|
657
|
+
return this[r].call(this, t, s, o, i);
|
|
676
658
|
},
|
|
677
659
|
configurable: !0
|
|
678
660
|
});
|
|
679
661
|
});
|
|
680
662
|
}
|
|
681
|
-
class
|
|
663
|
+
class _ {
|
|
682
664
|
constructor(t) {
|
|
683
665
|
t && this.set(t);
|
|
684
666
|
}
|
|
685
667
|
set(t, n, r) {
|
|
686
668
|
const s = this;
|
|
687
|
-
function
|
|
688
|
-
const
|
|
689
|
-
if (!
|
|
669
|
+
function o(c, f, u) {
|
|
670
|
+
const l = j(f);
|
|
671
|
+
if (!l)
|
|
690
672
|
throw new Error("header name must be a non-empty string");
|
|
691
|
-
const
|
|
692
|
-
(!
|
|
673
|
+
const d = a.findKey(s, l);
|
|
674
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = G(c));
|
|
693
675
|
}
|
|
694
|
-
const
|
|
676
|
+
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
695
677
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
696
|
-
|
|
697
|
-
else if (a.isString(t) && (t = t.trim()) &&
|
|
698
|
-
|
|
678
|
+
i(t, n);
|
|
679
|
+
else if (a.isString(t) && (t = t.trim()) && !$n(t))
|
|
680
|
+
i(Hn(t), n);
|
|
699
681
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
700
|
-
let c = {},
|
|
701
|
-
for (const
|
|
702
|
-
if (!a.isArray(
|
|
682
|
+
let c = {}, f, u;
|
|
683
|
+
for (const l of t) {
|
|
684
|
+
if (!a.isArray(l))
|
|
703
685
|
throw TypeError("Object iterator must return a key-value pair");
|
|
704
|
-
c[
|
|
686
|
+
c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
|
|
705
687
|
}
|
|
706
|
-
|
|
688
|
+
i(c, n);
|
|
707
689
|
} else
|
|
708
|
-
t != null &&
|
|
690
|
+
t != null && o(n, t, r);
|
|
709
691
|
return this;
|
|
710
692
|
}
|
|
711
693
|
get(t, n) {
|
|
712
|
-
if (t =
|
|
694
|
+
if (t = j(t), t) {
|
|
713
695
|
const r = a.findKey(this, t);
|
|
714
696
|
if (r) {
|
|
715
697
|
const s = this[r];
|
|
716
698
|
if (!n)
|
|
717
699
|
return s;
|
|
718
700
|
if (n === !0)
|
|
719
|
-
return
|
|
701
|
+
return zn(s);
|
|
720
702
|
if (a.isFunction(n))
|
|
721
703
|
return n.call(this, s, r);
|
|
722
704
|
if (a.isRegExp(n))
|
|
@@ -726,42 +708,42 @@ class A {
|
|
|
726
708
|
}
|
|
727
709
|
}
|
|
728
710
|
has(t, n) {
|
|
729
|
-
if (t =
|
|
711
|
+
if (t = j(t), t) {
|
|
730
712
|
const r = a.findKey(this, t);
|
|
731
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
713
|
+
return !!(r && this[r] !== void 0 && (!n || le(this, this[r], r, n)));
|
|
732
714
|
}
|
|
733
715
|
return !1;
|
|
734
716
|
}
|
|
735
717
|
delete(t, n) {
|
|
736
718
|
const r = this;
|
|
737
719
|
let s = !1;
|
|
738
|
-
function i
|
|
739
|
-
if (
|
|
740
|
-
const c = a.findKey(r,
|
|
741
|
-
c && (!n ||
|
|
720
|
+
function o(i) {
|
|
721
|
+
if (i = j(i), i) {
|
|
722
|
+
const c = a.findKey(r, i);
|
|
723
|
+
c && (!n || le(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
742
724
|
}
|
|
743
725
|
}
|
|
744
|
-
return a.isArray(t) ? t.forEach(
|
|
726
|
+
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
745
727
|
}
|
|
746
728
|
clear(t) {
|
|
747
729
|
const n = Object.keys(this);
|
|
748
730
|
let r = n.length, s = !1;
|
|
749
731
|
for (; r--; ) {
|
|
750
|
-
const
|
|
751
|
-
(!t ||
|
|
732
|
+
const o = n[r];
|
|
733
|
+
(!t || le(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
752
734
|
}
|
|
753
735
|
return s;
|
|
754
736
|
}
|
|
755
737
|
normalize(t) {
|
|
756
738
|
const n = this, r = {};
|
|
757
|
-
return a.forEach(this, (s,
|
|
758
|
-
const
|
|
759
|
-
if (
|
|
760
|
-
n[
|
|
739
|
+
return a.forEach(this, (s, o) => {
|
|
740
|
+
const i = a.findKey(r, o);
|
|
741
|
+
if (i) {
|
|
742
|
+
n[i] = G(s), delete n[o];
|
|
761
743
|
return;
|
|
762
744
|
}
|
|
763
|
-
const c = t ?
|
|
764
|
-
c !==
|
|
745
|
+
const c = t ? Jn(o) : String(o).trim();
|
|
746
|
+
c !== o && delete n[o], n[c] = G(s), r[c] = !0;
|
|
765
747
|
}), this;
|
|
766
748
|
}
|
|
767
749
|
concat(...t) {
|
|
@@ -794,18 +776,18 @@ class A {
|
|
|
794
776
|
return n.forEach((s) => r.set(s)), r;
|
|
795
777
|
}
|
|
796
778
|
static accessor(t) {
|
|
797
|
-
const r = (this[
|
|
779
|
+
const r = (this[Fe] = this[Fe] = {
|
|
798
780
|
accessors: {}
|
|
799
781
|
}).accessors, s = this.prototype;
|
|
800
|
-
function i
|
|
801
|
-
const c =
|
|
802
|
-
r[c] || (
|
|
782
|
+
function o(i) {
|
|
783
|
+
const c = j(i);
|
|
784
|
+
r[c] || (Vn(s, i), r[c] = !0);
|
|
803
785
|
}
|
|
804
|
-
return a.isArray(t) ? t.forEach(
|
|
786
|
+
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
805
787
|
}
|
|
806
788
|
}
|
|
807
|
-
|
|
808
|
-
a.reduceDescriptors(
|
|
789
|
+
_.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
790
|
+
a.reduceDescriptors(_.prototype, ({ value: e }, t) => {
|
|
809
791
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
810
792
|
return {
|
|
811
793
|
get: () => e,
|
|
@@ -814,24 +796,24 @@ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
|
|
|
814
796
|
}
|
|
815
797
|
};
|
|
816
798
|
});
|
|
817
|
-
a.freezeMethods(
|
|
818
|
-
function
|
|
819
|
-
const n = this ||
|
|
820
|
-
let
|
|
799
|
+
a.freezeMethods(_);
|
|
800
|
+
function fe(e, t) {
|
|
801
|
+
const n = this || W, r = t || n, s = _.from(r.headers);
|
|
802
|
+
let o = r.data;
|
|
821
803
|
return a.forEach(e, function(c) {
|
|
822
|
-
|
|
823
|
-
}), s.normalize(),
|
|
804
|
+
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
805
|
+
}), s.normalize(), o;
|
|
824
806
|
}
|
|
825
|
-
function
|
|
807
|
+
function ht(e) {
|
|
826
808
|
return !!(e && e.__CANCEL__);
|
|
827
809
|
}
|
|
828
|
-
function
|
|
810
|
+
function I(e, t, n) {
|
|
829
811
|
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
830
812
|
}
|
|
831
|
-
a.inherits(
|
|
813
|
+
a.inherits(I, y, {
|
|
832
814
|
__CANCEL__: !0
|
|
833
815
|
});
|
|
834
|
-
function
|
|
816
|
+
function mt(e, t, n) {
|
|
835
817
|
const r = n.config.validateStatus;
|
|
836
818
|
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
837
819
|
"Request failed with status code " + n.status,
|
|
@@ -841,82 +823,80 @@ function Nt(e, t, n) {
|
|
|
841
823
|
n
|
|
842
824
|
));
|
|
843
825
|
}
|
|
844
|
-
function
|
|
826
|
+
function Wn(e) {
|
|
845
827
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
846
828
|
return t && t[1] || "";
|
|
847
829
|
}
|
|
848
|
-
function
|
|
830
|
+
function Kn(e, t) {
|
|
849
831
|
e = e || 10;
|
|
850
832
|
const n = new Array(e), r = new Array(e);
|
|
851
|
-
let s = 0,
|
|
852
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
let
|
|
856
|
-
for (;
|
|
857
|
-
w += n[
|
|
858
|
-
if (s = (s + 1) % e, s ===
|
|
833
|
+
let s = 0, o = 0, i;
|
|
834
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
835
|
+
const u = Date.now(), l = r[o];
|
|
836
|
+
i || (i = u), n[s] = f, r[s] = u;
|
|
837
|
+
let d = o, w = 0;
|
|
838
|
+
for (; d !== s; )
|
|
839
|
+
w += n[d++], d = d % e;
|
|
840
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
859
841
|
return;
|
|
860
|
-
const g =
|
|
842
|
+
const g = l && u - l;
|
|
861
843
|
return g ? Math.round(w * 1e3 / g) : void 0;
|
|
862
844
|
};
|
|
863
845
|
}
|
|
864
|
-
function
|
|
865
|
-
let n = 0, r = 1e3 / t, s,
|
|
866
|
-
const
|
|
867
|
-
n =
|
|
846
|
+
function Qn(e, t) {
|
|
847
|
+
let n = 0, r = 1e3 / t, s, o;
|
|
848
|
+
const i = (u, l = Date.now()) => {
|
|
849
|
+
n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
|
|
868
850
|
};
|
|
869
|
-
return [(...
|
|
870
|
-
const
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
}, r -
|
|
874
|
-
}, () => s &&
|
|
851
|
+
return [(...u) => {
|
|
852
|
+
const l = Date.now(), d = l - n;
|
|
853
|
+
d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
854
|
+
o = null, i(s);
|
|
855
|
+
}, r - d)));
|
|
856
|
+
}, () => s && i(s)];
|
|
875
857
|
}
|
|
876
|
-
const
|
|
858
|
+
const ee = (e, t, n = 3) => {
|
|
877
859
|
let r = 0;
|
|
878
|
-
const s =
|
|
879
|
-
return
|
|
880
|
-
const
|
|
881
|
-
r =
|
|
882
|
-
const
|
|
883
|
-
loaded:
|
|
860
|
+
const s = Kn(50, 250);
|
|
861
|
+
return Qn((o) => {
|
|
862
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
863
|
+
r = i;
|
|
864
|
+
const d = {
|
|
865
|
+
loaded: i,
|
|
884
866
|
total: c,
|
|
885
|
-
progress: c ?
|
|
886
|
-
bytes:
|
|
887
|
-
rate:
|
|
888
|
-
estimated:
|
|
889
|
-
event:
|
|
867
|
+
progress: c ? i / c : void 0,
|
|
868
|
+
bytes: f,
|
|
869
|
+
rate: u || void 0,
|
|
870
|
+
estimated: u && c && l ? (c - i) / u : void 0,
|
|
871
|
+
event: o,
|
|
890
872
|
lengthComputable: c != null,
|
|
891
873
|
[t ? "download" : "upload"]: !0
|
|
892
874
|
};
|
|
893
|
-
e(
|
|
875
|
+
e(d);
|
|
894
876
|
}, n);
|
|
895
|
-
},
|
|
877
|
+
}, De = (e, t) => {
|
|
896
878
|
const n = e != null;
|
|
897
879
|
return [(r) => t[0]({
|
|
898
880
|
lengthComputable: n,
|
|
899
881
|
total: e,
|
|
900
882
|
loaded: r
|
|
901
883
|
}), t[1]];
|
|
902
|
-
},
|
|
903
|
-
new URL(
|
|
904
|
-
|
|
905
|
-
) : () => !0,
|
|
884
|
+
}, ve = (e) => (...t) => a.asap(() => e(...t)), Xn = 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)))(
|
|
885
|
+
new URL(T.origin),
|
|
886
|
+
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
887
|
+
) : () => !0, Gn = T.hasStandardBrowserEnv ? (
|
|
906
888
|
// Standard browser envs support document.cookie
|
|
907
889
|
{
|
|
908
|
-
write(e, t, n, r, s,
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
|
|
890
|
+
write(e, t, n, r, s, o) {
|
|
891
|
+
const i = [e + "=" + encodeURIComponent(t)];
|
|
892
|
+
a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
912
893
|
},
|
|
913
894
|
read(e) {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
return t ? decodeURIComponent(t[1]) : null;
|
|
895
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
896
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
917
897
|
},
|
|
918
898
|
remove(e) {
|
|
919
|
-
this.write(e, "", Date.now() - 864e5
|
|
899
|
+
this.write(e, "", Date.now() - 864e5);
|
|
920
900
|
}
|
|
921
901
|
}
|
|
922
902
|
) : (
|
|
@@ -931,119 +911,119 @@ const fe = (e, t, n = 3) => {
|
|
|
931
911
|
}
|
|
932
912
|
}
|
|
933
913
|
);
|
|
934
|
-
function
|
|
914
|
+
function Zn(e) {
|
|
935
915
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
936
916
|
}
|
|
937
|
-
function
|
|
917
|
+
function Yn(e, t) {
|
|
938
918
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
939
919
|
}
|
|
940
|
-
function
|
|
941
|
-
let r = !
|
|
942
|
-
return e && (r || n == !1) ?
|
|
920
|
+
function yt(e, t, n) {
|
|
921
|
+
let r = !Zn(t);
|
|
922
|
+
return e && (r || n == !1) ? Yn(e, t) : t;
|
|
943
923
|
}
|
|
944
|
-
const
|
|
945
|
-
function
|
|
924
|
+
const Be = (e) => e instanceof _ ? { ...e } : e;
|
|
925
|
+
function F(e, t) {
|
|
946
926
|
t = t || {};
|
|
947
927
|
const n = {};
|
|
948
|
-
function r(
|
|
949
|
-
return a.isPlainObject(
|
|
928
|
+
function r(u, l, d, w) {
|
|
929
|
+
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;
|
|
950
930
|
}
|
|
951
|
-
function s(
|
|
952
|
-
if (a.isUndefined(
|
|
953
|
-
if (!a.isUndefined(
|
|
954
|
-
return r(void 0,
|
|
955
|
-
} else return r(
|
|
931
|
+
function s(u, l, d, w) {
|
|
932
|
+
if (a.isUndefined(l)) {
|
|
933
|
+
if (!a.isUndefined(u))
|
|
934
|
+
return r(void 0, u, d, w);
|
|
935
|
+
} else return r(u, l, d, w);
|
|
956
936
|
}
|
|
957
|
-
function
|
|
958
|
-
if (!a.isUndefined(
|
|
959
|
-
return r(void 0,
|
|
937
|
+
function o(u, l) {
|
|
938
|
+
if (!a.isUndefined(l))
|
|
939
|
+
return r(void 0, l);
|
|
960
940
|
}
|
|
961
|
-
function
|
|
962
|
-
if (a.isUndefined(
|
|
963
|
-
if (!a.isUndefined(
|
|
964
|
-
return r(void 0,
|
|
965
|
-
} else return r(void 0,
|
|
941
|
+
function i(u, l) {
|
|
942
|
+
if (a.isUndefined(l)) {
|
|
943
|
+
if (!a.isUndefined(u))
|
|
944
|
+
return r(void 0, u);
|
|
945
|
+
} else return r(void 0, l);
|
|
966
946
|
}
|
|
967
|
-
function c(
|
|
968
|
-
if (
|
|
969
|
-
return r(
|
|
970
|
-
if (
|
|
971
|
-
return r(void 0,
|
|
947
|
+
function c(u, l, d) {
|
|
948
|
+
if (d in t)
|
|
949
|
+
return r(u, l);
|
|
950
|
+
if (d in e)
|
|
951
|
+
return r(void 0, u);
|
|
972
952
|
}
|
|
973
|
-
const
|
|
974
|
-
url:
|
|
975
|
-
method:
|
|
976
|
-
data:
|
|
977
|
-
baseURL:
|
|
978
|
-
transformRequest:
|
|
979
|
-
transformResponse:
|
|
980
|
-
paramsSerializer:
|
|
981
|
-
timeout:
|
|
982
|
-
timeoutMessage:
|
|
983
|
-
withCredentials:
|
|
984
|
-
withXSRFToken:
|
|
985
|
-
adapter:
|
|
986
|
-
responseType:
|
|
987
|
-
xsrfCookieName:
|
|
988
|
-
xsrfHeaderName:
|
|
989
|
-
onUploadProgress:
|
|
990
|
-
onDownloadProgress:
|
|
991
|
-
decompress:
|
|
992
|
-
maxContentLength:
|
|
993
|
-
maxBodyLength:
|
|
994
|
-
beforeRedirect:
|
|
995
|
-
transport:
|
|
996
|
-
httpAgent:
|
|
997
|
-
httpsAgent:
|
|
998
|
-
cancelToken:
|
|
999
|
-
socketPath:
|
|
1000
|
-
responseEncoding:
|
|
953
|
+
const f = {
|
|
954
|
+
url: o,
|
|
955
|
+
method: o,
|
|
956
|
+
data: o,
|
|
957
|
+
baseURL: i,
|
|
958
|
+
transformRequest: i,
|
|
959
|
+
transformResponse: i,
|
|
960
|
+
paramsSerializer: i,
|
|
961
|
+
timeout: i,
|
|
962
|
+
timeoutMessage: i,
|
|
963
|
+
withCredentials: i,
|
|
964
|
+
withXSRFToken: i,
|
|
965
|
+
adapter: i,
|
|
966
|
+
responseType: i,
|
|
967
|
+
xsrfCookieName: i,
|
|
968
|
+
xsrfHeaderName: i,
|
|
969
|
+
onUploadProgress: i,
|
|
970
|
+
onDownloadProgress: i,
|
|
971
|
+
decompress: i,
|
|
972
|
+
maxContentLength: i,
|
|
973
|
+
maxBodyLength: i,
|
|
974
|
+
beforeRedirect: i,
|
|
975
|
+
transport: i,
|
|
976
|
+
httpAgent: i,
|
|
977
|
+
httpsAgent: i,
|
|
978
|
+
cancelToken: i,
|
|
979
|
+
socketPath: i,
|
|
980
|
+
responseEncoding: i,
|
|
1001
981
|
validateStatus: c,
|
|
1002
|
-
headers: (
|
|
982
|
+
headers: (u, l, d) => s(Be(u), Be(l), d, !0)
|
|
1003
983
|
};
|
|
1004
|
-
return a.forEach(Object.keys({
|
|
1005
|
-
const
|
|
1006
|
-
a.isUndefined(w) &&
|
|
984
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
985
|
+
const d = f[l] || s, w = d(e[l], t[l], l);
|
|
986
|
+
a.isUndefined(w) && d !== c || (n[l] = w);
|
|
1007
987
|
}), n;
|
|
1008
988
|
}
|
|
1009
|
-
const
|
|
1010
|
-
const t =
|
|
1011
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName:
|
|
1012
|
-
|
|
989
|
+
const wt = (e) => {
|
|
990
|
+
const t = F({}, e);
|
|
991
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
992
|
+
t.headers = i = _.from(i), t.url = ft(yt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1013
993
|
"Authorization",
|
|
1014
994
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1015
|
-
)
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
995
|
+
);
|
|
996
|
+
let f;
|
|
997
|
+
if (a.isFormData(n)) {
|
|
998
|
+
if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
|
|
999
|
+
i.setContentType(void 0);
|
|
1000
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
1001
|
+
const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1002
|
+
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1023
1003
|
}
|
|
1024
1004
|
}
|
|
1025
|
-
if (
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1005
|
+
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Xn(t.url))) {
|
|
1006
|
+
const u = s && o && Gn.read(o);
|
|
1007
|
+
u && i.set(s, u);
|
|
1028
1008
|
}
|
|
1029
1009
|
return t;
|
|
1030
|
-
},
|
|
1010
|
+
}, er = typeof XMLHttpRequest < "u", tr = er && function(e) {
|
|
1031
1011
|
return new Promise(function(n, r) {
|
|
1032
|
-
const s =
|
|
1033
|
-
let
|
|
1034
|
-
const
|
|
1035
|
-
let { responseType: c, onUploadProgress:
|
|
1012
|
+
const s = wt(e);
|
|
1013
|
+
let o = s.data;
|
|
1014
|
+
const i = _.from(s.headers).normalize();
|
|
1015
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, w, g, p;
|
|
1036
1016
|
function m() {
|
|
1037
|
-
g && g(),
|
|
1017
|
+
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1038
1018
|
}
|
|
1039
1019
|
let h = new XMLHttpRequest();
|
|
1040
1020
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1041
1021
|
function E() {
|
|
1042
1022
|
if (!h)
|
|
1043
1023
|
return;
|
|
1044
|
-
const S =
|
|
1024
|
+
const S = _.from(
|
|
1045
1025
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1046
|
-
),
|
|
1026
|
+
), O = {
|
|
1047
1027
|
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1048
1028
|
status: h.status,
|
|
1049
1029
|
statusText: h.statusText,
|
|
@@ -1051,64 +1031,63 @@ const Lt = (e) => {
|
|
|
1051
1031
|
config: e,
|
|
1052
1032
|
request: h
|
|
1053
1033
|
};
|
|
1054
|
-
|
|
1055
|
-
n(
|
|
1056
|
-
}, function(
|
|
1057
|
-
r(
|
|
1058
|
-
},
|
|
1034
|
+
mt(function(U) {
|
|
1035
|
+
n(U), m();
|
|
1036
|
+
}, function(U) {
|
|
1037
|
+
r(U), m();
|
|
1038
|
+
}, O), h = null;
|
|
1059
1039
|
}
|
|
1060
1040
|
"onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
|
|
1061
1041
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
1062
1042
|
}, h.onabort = function() {
|
|
1063
1043
|
h && (r(new y("Request aborted", y.ECONNABORTED, e, h)), h = null);
|
|
1064
|
-
}, h.onerror = function(
|
|
1065
|
-
|
|
1066
|
-
L.event = T || null, r(L), h = null;
|
|
1044
|
+
}, h.onerror = function() {
|
|
1045
|
+
r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
|
|
1067
1046
|
}, h.ontimeout = function() {
|
|
1068
|
-
let
|
|
1069
|
-
const
|
|
1070
|
-
s.timeoutErrorMessage && (
|
|
1071
|
-
|
|
1072
|
-
|
|
1047
|
+
let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1048
|
+
const O = s.transitional || dt;
|
|
1049
|
+
s.timeoutErrorMessage && (C = s.timeoutErrorMessage), r(new y(
|
|
1050
|
+
C,
|
|
1051
|
+
O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1073
1052
|
e,
|
|
1074
1053
|
h
|
|
1075
1054
|
)), h = null;
|
|
1076
|
-
},
|
|
1077
|
-
h.setRequestHeader(
|
|
1078
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType),
|
|
1079
|
-
h && (r(!S || S.type ? new
|
|
1080
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1083
|
-
r(new y("Unsupported protocol " +
|
|
1055
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(C, O) {
|
|
1056
|
+
h.setRequestHeader(O, C);
|
|
1057
|
+
}), 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) => {
|
|
1058
|
+
h && (r(!S || S.type ? new I(null, e, h) : S), h.abort(), h = null);
|
|
1059
|
+
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1060
|
+
const R = Wn(s.url);
|
|
1061
|
+
if (R && T.protocols.indexOf(R) === -1) {
|
|
1062
|
+
r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e));
|
|
1084
1063
|
return;
|
|
1085
1064
|
}
|
|
1086
|
-
h.send(
|
|
1065
|
+
h.send(o || null);
|
|
1087
1066
|
});
|
|
1088
|
-
},
|
|
1067
|
+
}, nr = (e, t) => {
|
|
1089
1068
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1090
1069
|
if (t || n) {
|
|
1091
1070
|
let r = new AbortController(), s;
|
|
1092
|
-
const
|
|
1071
|
+
const o = function(u) {
|
|
1093
1072
|
if (!s) {
|
|
1094
1073
|
s = !0, c();
|
|
1095
|
-
const
|
|
1096
|
-
r.abort(
|
|
1074
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1075
|
+
r.abort(l instanceof y ? l : new I(l instanceof Error ? l.message : l));
|
|
1097
1076
|
}
|
|
1098
1077
|
};
|
|
1099
|
-
let
|
|
1100
|
-
|
|
1078
|
+
let i = t && setTimeout(() => {
|
|
1079
|
+
i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1101
1080
|
}, t);
|
|
1102
1081
|
const c = () => {
|
|
1103
|
-
e && (
|
|
1104
|
-
|
|
1082
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
1083
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1105
1084
|
}), e = null);
|
|
1106
1085
|
};
|
|
1107
|
-
e.forEach((
|
|
1108
|
-
const { signal:
|
|
1109
|
-
return
|
|
1086
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
1087
|
+
const { signal: f } = r;
|
|
1088
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1110
1089
|
}
|
|
1111
|
-
},
|
|
1090
|
+
}, rr = function* (e, t) {
|
|
1112
1091
|
let n = e.byteLength;
|
|
1113
1092
|
if (n < t) {
|
|
1114
1093
|
yield e;
|
|
@@ -1117,10 +1096,10 @@ const Lt = (e) => {
|
|
|
1117
1096
|
let r = 0, s;
|
|
1118
1097
|
for (; r < n; )
|
|
1119
1098
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1120
|
-
},
|
|
1121
|
-
for await (const n of
|
|
1122
|
-
yield*
|
|
1123
|
-
},
|
|
1099
|
+
}, sr = async function* (e, t) {
|
|
1100
|
+
for await (const n of or(e))
|
|
1101
|
+
yield* rr(n, t);
|
|
1102
|
+
}, or = async function* (e) {
|
|
1124
1103
|
if (e[Symbol.asyncIterator]) {
|
|
1125
1104
|
yield* e;
|
|
1126
1105
|
return;
|
|
@@ -1136,200 +1115,169 @@ const Lt = (e) => {
|
|
|
1136
1115
|
} finally {
|
|
1137
1116
|
await t.cancel();
|
|
1138
1117
|
}
|
|
1139
|
-
},
|
|
1140
|
-
const s =
|
|
1141
|
-
let
|
|
1142
|
-
|
|
1118
|
+
}, Ie = (e, t, n, r) => {
|
|
1119
|
+
const s = sr(e, t);
|
|
1120
|
+
let o = 0, i, c = (f) => {
|
|
1121
|
+
i || (i = !0, r && r(f));
|
|
1143
1122
|
};
|
|
1144
1123
|
return new ReadableStream({
|
|
1145
|
-
async pull(
|
|
1124
|
+
async pull(f) {
|
|
1146
1125
|
try {
|
|
1147
|
-
const { done:
|
|
1148
|
-
if (
|
|
1149
|
-
c(),
|
|
1126
|
+
const { done: u, value: l } = await s.next();
|
|
1127
|
+
if (u) {
|
|
1128
|
+
c(), f.close();
|
|
1150
1129
|
return;
|
|
1151
1130
|
}
|
|
1152
|
-
let
|
|
1131
|
+
let d = l.byteLength;
|
|
1153
1132
|
if (n) {
|
|
1154
|
-
let w =
|
|
1133
|
+
let w = o += d;
|
|
1155
1134
|
n(w);
|
|
1156
1135
|
}
|
|
1157
|
-
|
|
1158
|
-
} catch (
|
|
1159
|
-
throw c(
|
|
1136
|
+
f.enqueue(new Uint8Array(l));
|
|
1137
|
+
} catch (u) {
|
|
1138
|
+
throw c(u), u;
|
|
1160
1139
|
}
|
|
1161
1140
|
},
|
|
1162
|
-
cancel(
|
|
1163
|
-
return c(
|
|
1141
|
+
cancel(f) {
|
|
1142
|
+
return c(f), s.return();
|
|
1164
1143
|
}
|
|
1165
1144
|
}, {
|
|
1166
1145
|
highWaterMark: 2
|
|
1167
1146
|
});
|
|
1168
|
-
},
|
|
1169
|
-
Request: e,
|
|
1170
|
-
Response: t
|
|
1171
|
-
}))(a.global), {
|
|
1172
|
-
ReadableStream: et,
|
|
1173
|
-
TextEncoder: tt
|
|
1174
|
-
} = a.global, nt = (e, ...t) => {
|
|
1147
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", gt = ae && typeof ReadableStream == "function", ir = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), bt = (e, ...t) => {
|
|
1175
1148
|
try {
|
|
1176
1149
|
return !!e(...t);
|
|
1177
1150
|
} catch {
|
|
1178
1151
|
return !1;
|
|
1179
1152
|
}
|
|
1180
|
-
},
|
|
1181
|
-
e =
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}), u = o && c && nt(() => a.isReadableStream(new r("").body)), p = {
|
|
1198
|
-
stream: u && ((f) => f.body)
|
|
1199
|
-
};
|
|
1200
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
1201
|
-
!p[f] && (p[f] = (m, h) => {
|
|
1202
|
-
let E = m && m[f];
|
|
1203
|
-
if (E)
|
|
1204
|
-
return E.call(m);
|
|
1205
|
-
throw new y(`Response type '${f}' is not supported`, y.ERR_NOT_SUPPORT, h);
|
|
1153
|
+
}, ar = gt && bt(() => {
|
|
1154
|
+
let e = !1;
|
|
1155
|
+
const t = new Request(T.origin, {
|
|
1156
|
+
body: new ReadableStream(),
|
|
1157
|
+
method: "POST",
|
|
1158
|
+
get duplex() {
|
|
1159
|
+
return e = !0, "half";
|
|
1160
|
+
}
|
|
1161
|
+
}).headers.has("Content-Type");
|
|
1162
|
+
return e && !t;
|
|
1163
|
+
}), je = 64 * 1024, ye = gt && bt(() => a.isReadableStream(new Response("").body)), te = {
|
|
1164
|
+
stream: ye && ((e) => e.body)
|
|
1165
|
+
};
|
|
1166
|
+
ae && ((e) => {
|
|
1167
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1168
|
+
!te[t] && (te[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1169
|
+
throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
|
|
1206
1170
|
});
|
|
1207
1171
|
});
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1172
|
+
})(new Response());
|
|
1173
|
+
const cr = async (e) => {
|
|
1174
|
+
if (e == null)
|
|
1175
|
+
return 0;
|
|
1176
|
+
if (a.isBlob(e))
|
|
1177
|
+
return e.size;
|
|
1178
|
+
if (a.isSpecCompliantForm(e))
|
|
1179
|
+
return (await new Request(T.origin, {
|
|
1180
|
+
method: "POST",
|
|
1181
|
+
body: e
|
|
1182
|
+
}).arrayBuffer()).byteLength;
|
|
1183
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1184
|
+
return e.byteLength;
|
|
1185
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1186
|
+
return (await ir(e)).byteLength;
|
|
1187
|
+
}, ur = async (e, t) => {
|
|
1188
|
+
const n = a.toFiniteNumber(e.getContentLength());
|
|
1189
|
+
return n ?? cr(t);
|
|
1190
|
+
}, lr = ae && (async (e) => {
|
|
1191
|
+
let {
|
|
1192
|
+
url: t,
|
|
1193
|
+
method: n,
|
|
1194
|
+
data: r,
|
|
1195
|
+
signal: s,
|
|
1196
|
+
cancelToken: o,
|
|
1197
|
+
timeout: i,
|
|
1198
|
+
onDownloadProgress: c,
|
|
1199
|
+
onUploadProgress: f,
|
|
1200
|
+
responseType: u,
|
|
1201
|
+
headers: l,
|
|
1202
|
+
withCredentials: d = "same-origin",
|
|
1203
|
+
fetchOptions: w
|
|
1204
|
+
} = wt(e);
|
|
1205
|
+
u = u ? (u + "").toLowerCase() : "text";
|
|
1206
|
+
let g = nr([s, o && o.toAbortSignal()], i), p;
|
|
1207
|
+
const m = g && g.unsubscribe && (() => {
|
|
1208
|
+
g.unsubscribe();
|
|
1209
|
+
});
|
|
1210
|
+
let h;
|
|
1211
|
+
try {
|
|
1212
|
+
if (f && ar && n !== "get" && n !== "head" && (h = await ur(l, r)) !== 0) {
|
|
1213
|
+
let O = new Request(t, {
|
|
1215
1214
|
method: "POST",
|
|
1216
|
-
body:
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
const h = a.toFiniteNumber(f.getContentLength());
|
|
1224
|
-
return h ?? w(m);
|
|
1225
|
-
};
|
|
1226
|
-
return async (f) => {
|
|
1227
|
-
let {
|
|
1228
|
-
url: m,
|
|
1229
|
-
method: h,
|
|
1230
|
-
data: E,
|
|
1231
|
-
signal: _,
|
|
1232
|
-
cancelToken: S,
|
|
1233
|
-
timeout: T,
|
|
1234
|
-
onDownloadProgress: k,
|
|
1235
|
-
onUploadProgress: L,
|
|
1236
|
-
responseType: x,
|
|
1237
|
-
headers: we,
|
|
1238
|
-
withCredentials: ne = "same-origin",
|
|
1239
|
-
fetchOptions: Ie
|
|
1240
|
-
} = Lt(f), je = t || fetch;
|
|
1241
|
-
x = x ? (x + "").toLowerCase() : "text";
|
|
1242
|
-
let re = br([_, S && S.toAbortSignal()], T), J = null;
|
|
1243
|
-
const D = re && re.unsubscribe && (() => {
|
|
1244
|
-
re.unsubscribe();
|
|
1245
|
-
});
|
|
1246
|
-
let qe;
|
|
1247
|
-
try {
|
|
1248
|
-
if (L && l && h !== "get" && h !== "head" && (qe = await g(we, E)) !== 0) {
|
|
1249
|
-
let F = new n(m, {
|
|
1250
|
-
method: "POST",
|
|
1251
|
-
body: E,
|
|
1252
|
-
duplex: "half"
|
|
1253
|
-
}), j;
|
|
1254
|
-
if (a.isFormData(E) && (j = F.headers.get("content-type")) && we.setContentType(j), F.body) {
|
|
1255
|
-
const [ge, se] = Qe(
|
|
1256
|
-
qe,
|
|
1257
|
-
fe(Xe(L))
|
|
1258
|
-
);
|
|
1259
|
-
E = Ze(F.body, Ye, ge, se);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
a.isString(ne) || (ne = ne ? "include" : "omit");
|
|
1263
|
-
const P = i && "credentials" in n.prototype, Me = {
|
|
1264
|
-
...Ie,
|
|
1265
|
-
signal: re,
|
|
1266
|
-
method: h.toUpperCase(),
|
|
1267
|
-
headers: we.normalize().toJSON(),
|
|
1268
|
-
body: E,
|
|
1269
|
-
duplex: "half",
|
|
1270
|
-
credentials: P ? ne : void 0
|
|
1271
|
-
};
|
|
1272
|
-
J = i && new n(m, Me);
|
|
1273
|
-
let N = await (i ? je(J, Ie) : je(m, Me));
|
|
1274
|
-
const He = u && (x === "stream" || x === "response");
|
|
1275
|
-
if (u && (k || He && D)) {
|
|
1276
|
-
const F = {};
|
|
1277
|
-
["status", "statusText", "headers"].forEach(($e) => {
|
|
1278
|
-
F[$e] = N[$e];
|
|
1279
|
-
});
|
|
1280
|
-
const j = a.toFiniteNumber(N.headers.get("content-length")), [ge, se] = k && Qe(
|
|
1281
|
-
j,
|
|
1282
|
-
fe(Xe(k), !0)
|
|
1283
|
-
) || [];
|
|
1284
|
-
N = new r(
|
|
1285
|
-
Ze(N.body, Ye, ge, () => {
|
|
1286
|
-
se && se(), D && D();
|
|
1287
|
-
}),
|
|
1288
|
-
F
|
|
1215
|
+
body: r,
|
|
1216
|
+
duplex: "half"
|
|
1217
|
+
}), P;
|
|
1218
|
+
if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
|
|
1219
|
+
const [U, K] = De(
|
|
1220
|
+
h,
|
|
1221
|
+
ee(ve(f))
|
|
1289
1222
|
);
|
|
1223
|
+
r = Ie(O.body, je, U, K);
|
|
1290
1224
|
}
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1225
|
+
}
|
|
1226
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1227
|
+
const E = "credentials" in Request.prototype;
|
|
1228
|
+
p = new Request(t, {
|
|
1229
|
+
...w,
|
|
1230
|
+
signal: g,
|
|
1231
|
+
method: n.toUpperCase(),
|
|
1232
|
+
headers: l.normalize().toJSON(),
|
|
1233
|
+
body: r,
|
|
1234
|
+
duplex: "half",
|
|
1235
|
+
credentials: E ? d : void 0
|
|
1236
|
+
});
|
|
1237
|
+
let R = await fetch(p, w);
|
|
1238
|
+
const S = ye && (u === "stream" || u === "response");
|
|
1239
|
+
if (ye && (c || S && m)) {
|
|
1240
|
+
const O = {};
|
|
1241
|
+
["status", "statusText", "headers"].forEach((Ce) => {
|
|
1242
|
+
O[Ce] = R[Ce];
|
|
1302
1243
|
});
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1244
|
+
const P = a.toFiniteNumber(R.headers.get("content-length")), [U, K] = c && De(
|
|
1245
|
+
P,
|
|
1246
|
+
ee(ve(c), !0)
|
|
1247
|
+
) || [];
|
|
1248
|
+
R = new Response(
|
|
1249
|
+
Ie(R.body, je, U, () => {
|
|
1250
|
+
K && K(), m && m();
|
|
1251
|
+
}),
|
|
1252
|
+
O
|
|
1253
|
+
);
|
|
1310
1254
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1255
|
+
u = u || "text";
|
|
1256
|
+
let C = await te[a.findKey(te, u) || "text"](R, e);
|
|
1257
|
+
return !S && m && m(), await new Promise((O, P) => {
|
|
1258
|
+
mt(O, P, {
|
|
1259
|
+
data: C,
|
|
1260
|
+
headers: _.from(R.headers),
|
|
1261
|
+
status: R.status,
|
|
1262
|
+
statusText: R.statusText,
|
|
1263
|
+
config: e,
|
|
1264
|
+
request: p
|
|
1265
|
+
});
|
|
1266
|
+
});
|
|
1267
|
+
} catch (E) {
|
|
1268
|
+
throw m && m(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
|
|
1269
|
+
new y("Network Error", y.ERR_NETWORK, e, p),
|
|
1270
|
+
{
|
|
1271
|
+
cause: E.cause || E
|
|
1272
|
+
}
|
|
1273
|
+
) : y.from(E, E && E.code, e, p);
|
|
1330
1274
|
}
|
|
1275
|
+
}), we = {
|
|
1276
|
+
http: An,
|
|
1277
|
+
xhr: tr,
|
|
1278
|
+
fetch: lr
|
|
1331
1279
|
};
|
|
1332
|
-
a.forEach(
|
|
1280
|
+
a.forEach(we, (e, t) => {
|
|
1333
1281
|
if (e) {
|
|
1334
1282
|
try {
|
|
1335
1283
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1338,118 +1286,108 @@ a.forEach(De, (e, t) => {
|
|
|
1338
1286
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1339
1287
|
}
|
|
1340
1288
|
});
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
` + o.map(
|
|
1362
|
-
`) : " " +
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* Resolve an adapter from a list of adapter names or functions.
|
|
1373
|
-
* @type {Function}
|
|
1374
|
-
*/
|
|
1375
|
-
getAdapter: xr,
|
|
1376
|
-
/**
|
|
1377
|
-
* Exposes all known adapters
|
|
1378
|
-
* @type {Object<string, Function|Object>}
|
|
1379
|
-
*/
|
|
1380
|
-
adapters: De
|
|
1289
|
+
const qe = (e) => `- ${e}`, fr = (e) => a.isFunction(e) || e === null || e === !1, Et = {
|
|
1290
|
+
getAdapter: (e) => {
|
|
1291
|
+
e = a.isArray(e) ? e : [e];
|
|
1292
|
+
const { length: t } = e;
|
|
1293
|
+
let n, r;
|
|
1294
|
+
const s = {};
|
|
1295
|
+
for (let o = 0; o < t; o++) {
|
|
1296
|
+
n = e[o];
|
|
1297
|
+
let i;
|
|
1298
|
+
if (r = n, !fr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
|
|
1299
|
+
throw new y(`Unknown adapter '${i}'`);
|
|
1300
|
+
if (r)
|
|
1301
|
+
break;
|
|
1302
|
+
s[i || "#" + o] = r;
|
|
1303
|
+
}
|
|
1304
|
+
if (!r) {
|
|
1305
|
+
const o = Object.entries(s).map(
|
|
1306
|
+
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1307
|
+
);
|
|
1308
|
+
let i = t ? o.length > 1 ? `since :
|
|
1309
|
+
` + o.map(qe).join(`
|
|
1310
|
+
`) : " " + qe(o[0]) : "as no adapter specified";
|
|
1311
|
+
throw new y(
|
|
1312
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1313
|
+
"ERR_NOT_SUPPORT"
|
|
1314
|
+
);
|
|
1315
|
+
}
|
|
1316
|
+
return r;
|
|
1317
|
+
},
|
|
1318
|
+
adapters: we
|
|
1381
1319
|
};
|
|
1382
|
-
function
|
|
1320
|
+
function de(e) {
|
|
1383
1321
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1384
|
-
throw new
|
|
1322
|
+
throw new I(null, e);
|
|
1385
1323
|
}
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1324
|
+
function Me(e) {
|
|
1325
|
+
return de(e), e.headers = _.from(e.headers), e.data = fe.call(
|
|
1388
1326
|
e,
|
|
1389
1327
|
e.transformRequest
|
|
1390
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1391
|
-
return
|
|
1328
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Et.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
|
|
1329
|
+
return de(e), r.data = fe.call(
|
|
1392
1330
|
e,
|
|
1393
1331
|
e.transformResponse,
|
|
1394
1332
|
r
|
|
1395
|
-
), r.headers =
|
|
1333
|
+
), r.headers = _.from(r.headers), r;
|
|
1396
1334
|
}, function(r) {
|
|
1397
|
-
return
|
|
1335
|
+
return ht(r) || (de(e), r && r.response && (r.response.data = fe.call(
|
|
1398
1336
|
e,
|
|
1399
1337
|
e.transformResponse,
|
|
1400
1338
|
r.response
|
|
1401
|
-
), r.response.headers =
|
|
1339
|
+
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1402
1340
|
});
|
|
1403
1341
|
}
|
|
1404
|
-
const
|
|
1342
|
+
const Rt = "1.10.0", ce = {};
|
|
1405
1343
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1406
|
-
|
|
1344
|
+
ce[e] = function(r) {
|
|
1407
1345
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1408
1346
|
};
|
|
1409
1347
|
});
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1412
|
-
function s(
|
|
1413
|
-
return "[Axios v" +
|
|
1348
|
+
const He = {};
|
|
1349
|
+
ce.transitional = function(t, n, r) {
|
|
1350
|
+
function s(o, i) {
|
|
1351
|
+
return "[Axios v" + Rt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1414
1352
|
}
|
|
1415
|
-
return (
|
|
1353
|
+
return (o, i, c) => {
|
|
1416
1354
|
if (t === !1)
|
|
1417
1355
|
throw new y(
|
|
1418
|
-
s(
|
|
1356
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1419
1357
|
y.ERR_DEPRECATED
|
|
1420
1358
|
);
|
|
1421
|
-
return n && !
|
|
1359
|
+
return n && !He[i] && (He[i] = !0), t ? t(o, i, c) : !0;
|
|
1422
1360
|
};
|
|
1423
1361
|
};
|
|
1424
|
-
|
|
1362
|
+
ce.spelling = function(t) {
|
|
1425
1363
|
return (n, r) => !0;
|
|
1426
1364
|
};
|
|
1427
|
-
function
|
|
1365
|
+
function dr(e, t, n) {
|
|
1428
1366
|
if (typeof e != "object")
|
|
1429
1367
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1430
1368
|
const r = Object.keys(e);
|
|
1431
1369
|
let s = r.length;
|
|
1432
1370
|
for (; s-- > 0; ) {
|
|
1433
|
-
const
|
|
1434
|
-
if (
|
|
1435
|
-
const c = e[
|
|
1436
|
-
if (
|
|
1437
|
-
throw new y("option " +
|
|
1371
|
+
const o = r[s], i = t[o];
|
|
1372
|
+
if (i) {
|
|
1373
|
+
const c = e[o], f = c === void 0 || i(c, o, e);
|
|
1374
|
+
if (f !== !0)
|
|
1375
|
+
throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE);
|
|
1438
1376
|
continue;
|
|
1439
1377
|
}
|
|
1440
1378
|
if (n !== !0)
|
|
1441
|
-
throw new y("Unknown option " +
|
|
1379
|
+
throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
|
|
1442
1380
|
}
|
|
1443
1381
|
}
|
|
1444
|
-
const
|
|
1445
|
-
assertOptions:
|
|
1446
|
-
validators:
|
|
1447
|
-
},
|
|
1448
|
-
class
|
|
1382
|
+
const Z = {
|
|
1383
|
+
assertOptions: dr,
|
|
1384
|
+
validators: ce
|
|
1385
|
+
}, k = Z.validators;
|
|
1386
|
+
class L {
|
|
1449
1387
|
constructor(t) {
|
|
1450
1388
|
this.defaults = t || {}, this.interceptors = {
|
|
1451
|
-
request: new
|
|
1452
|
-
response: new
|
|
1389
|
+
request: new Le(),
|
|
1390
|
+
response: new Le()
|
|
1453
1391
|
};
|
|
1454
1392
|
}
|
|
1455
1393
|
/**
|
|
@@ -1467,10 +1405,10 @@ class B {
|
|
|
1467
1405
|
if (r instanceof Error) {
|
|
1468
1406
|
let s = {};
|
|
1469
1407
|
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1470
|
-
const
|
|
1408
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1471
1409
|
try {
|
|
1472
|
-
r.stack ?
|
|
1473
|
-
` +
|
|
1410
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1411
|
+
` + o) : r.stack = o;
|
|
1474
1412
|
} catch {
|
|
1475
1413
|
}
|
|
1476
1414
|
}
|
|
@@ -1478,76 +1416,76 @@ class B {
|
|
|
1478
1416
|
}
|
|
1479
1417
|
}
|
|
1480
1418
|
_request(t, n) {
|
|
1481
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1482
|
-
const { transitional: r, paramsSerializer: s, headers:
|
|
1483
|
-
r !== void 0 &&
|
|
1484
|
-
silentJSONParsing:
|
|
1485
|
-
forcedJSONParsing:
|
|
1486
|
-
clarifyTimeoutError:
|
|
1419
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = F(this.defaults, n);
|
|
1420
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1421
|
+
r !== void 0 && Z.assertOptions(r, {
|
|
1422
|
+
silentJSONParsing: k.transitional(k.boolean),
|
|
1423
|
+
forcedJSONParsing: k.transitional(k.boolean),
|
|
1424
|
+
clarifyTimeoutError: k.transitional(k.boolean)
|
|
1487
1425
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1488
1426
|
serialize: s
|
|
1489
|
-
} :
|
|
1490
|
-
encode:
|
|
1491
|
-
serialize:
|
|
1492
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1493
|
-
baseUrl:
|
|
1494
|
-
withXsrfToken:
|
|
1427
|
+
} : Z.assertOptions(s, {
|
|
1428
|
+
encode: k.function,
|
|
1429
|
+
serialize: k.function
|
|
1430
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Z.assertOptions(n, {
|
|
1431
|
+
baseUrl: k.spelling("baseURL"),
|
|
1432
|
+
withXsrfToken: k.spelling("withXSRFToken")
|
|
1495
1433
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1496
|
-
let
|
|
1497
|
-
|
|
1498
|
-
|
|
1434
|
+
let i = o && a.merge(
|
|
1435
|
+
o.common,
|
|
1436
|
+
o[n.method]
|
|
1499
1437
|
);
|
|
1500
|
-
|
|
1438
|
+
o && a.forEach(
|
|
1501
1439
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1502
|
-
(
|
|
1503
|
-
delete
|
|
1440
|
+
(p) => {
|
|
1441
|
+
delete o[p];
|
|
1504
1442
|
}
|
|
1505
|
-
), n.headers =
|
|
1443
|
+
), n.headers = _.concat(i, o);
|
|
1506
1444
|
const c = [];
|
|
1507
|
-
let
|
|
1445
|
+
let f = !0;
|
|
1508
1446
|
this.interceptors.request.forEach(function(m) {
|
|
1509
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (
|
|
1447
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
1510
1448
|
});
|
|
1511
|
-
const
|
|
1449
|
+
const u = [];
|
|
1512
1450
|
this.interceptors.response.forEach(function(m) {
|
|
1513
|
-
|
|
1451
|
+
u.push(m.fulfilled, m.rejected);
|
|
1514
1452
|
});
|
|
1515
|
-
let
|
|
1516
|
-
if (!
|
|
1517
|
-
const
|
|
1518
|
-
for (
|
|
1519
|
-
|
|
1520
|
-
return
|
|
1453
|
+
let l, d = 0, w;
|
|
1454
|
+
if (!f) {
|
|
1455
|
+
const p = [Me.bind(this), void 0];
|
|
1456
|
+
for (p.unshift.apply(p, c), p.push.apply(p, u), w = p.length, l = Promise.resolve(n); d < w; )
|
|
1457
|
+
l = l.then(p[d++], p[d++]);
|
|
1458
|
+
return l;
|
|
1521
1459
|
}
|
|
1522
1460
|
w = c.length;
|
|
1523
1461
|
let g = n;
|
|
1524
|
-
for (;
|
|
1525
|
-
const
|
|
1462
|
+
for (d = 0; d < w; ) {
|
|
1463
|
+
const p = c[d++], m = c[d++];
|
|
1526
1464
|
try {
|
|
1527
|
-
g =
|
|
1465
|
+
g = p(g);
|
|
1528
1466
|
} catch (h) {
|
|
1529
1467
|
m.call(this, h);
|
|
1530
1468
|
break;
|
|
1531
1469
|
}
|
|
1532
1470
|
}
|
|
1533
1471
|
try {
|
|
1534
|
-
|
|
1535
|
-
} catch (
|
|
1536
|
-
return Promise.reject(
|
|
1472
|
+
l = Me.call(this, g);
|
|
1473
|
+
} catch (p) {
|
|
1474
|
+
return Promise.reject(p);
|
|
1537
1475
|
}
|
|
1538
|
-
for (
|
|
1539
|
-
|
|
1540
|
-
return
|
|
1476
|
+
for (d = 0, w = u.length; d < w; )
|
|
1477
|
+
l = l.then(u[d++], u[d++]);
|
|
1478
|
+
return l;
|
|
1541
1479
|
}
|
|
1542
1480
|
getUri(t) {
|
|
1543
|
-
t =
|
|
1544
|
-
const n =
|
|
1545
|
-
return
|
|
1481
|
+
t = F(this.defaults, t);
|
|
1482
|
+
const n = yt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1483
|
+
return ft(n, t.params, t.paramsSerializer);
|
|
1546
1484
|
}
|
|
1547
1485
|
}
|
|
1548
1486
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1549
|
-
|
|
1550
|
-
return this.request(
|
|
1487
|
+
L.prototype[t] = function(n, r) {
|
|
1488
|
+
return this.request(F(r || {}, {
|
|
1551
1489
|
method: t,
|
|
1552
1490
|
url: n,
|
|
1553
1491
|
data: (r || {}).data
|
|
@@ -1556,44 +1494,44 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1556
1494
|
});
|
|
1557
1495
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1558
1496
|
function n(r) {
|
|
1559
|
-
return function(
|
|
1560
|
-
return this.request(
|
|
1497
|
+
return function(o, i, c) {
|
|
1498
|
+
return this.request(F(c || {}, {
|
|
1561
1499
|
method: t,
|
|
1562
1500
|
headers: r ? {
|
|
1563
1501
|
"Content-Type": "multipart/form-data"
|
|
1564
1502
|
} : {},
|
|
1565
|
-
url:
|
|
1566
|
-
data:
|
|
1503
|
+
url: o,
|
|
1504
|
+
data: i
|
|
1567
1505
|
}));
|
|
1568
1506
|
};
|
|
1569
1507
|
}
|
|
1570
|
-
|
|
1508
|
+
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1571
1509
|
});
|
|
1572
|
-
class
|
|
1510
|
+
class xe {
|
|
1573
1511
|
constructor(t) {
|
|
1574
1512
|
if (typeof t != "function")
|
|
1575
1513
|
throw new TypeError("executor must be a function.");
|
|
1576
1514
|
let n;
|
|
1577
|
-
this.promise = new Promise(function(
|
|
1578
|
-
n =
|
|
1515
|
+
this.promise = new Promise(function(o) {
|
|
1516
|
+
n = o;
|
|
1579
1517
|
});
|
|
1580
1518
|
const r = this;
|
|
1581
1519
|
this.promise.then((s) => {
|
|
1582
1520
|
if (!r._listeners) return;
|
|
1583
|
-
let
|
|
1584
|
-
for (;
|
|
1585
|
-
r._listeners[
|
|
1521
|
+
let o = r._listeners.length;
|
|
1522
|
+
for (; o-- > 0; )
|
|
1523
|
+
r._listeners[o](s);
|
|
1586
1524
|
r._listeners = null;
|
|
1587
1525
|
}), this.promise.then = (s) => {
|
|
1588
|
-
let
|
|
1589
|
-
const
|
|
1590
|
-
r.subscribe(c),
|
|
1526
|
+
let o;
|
|
1527
|
+
const i = new Promise((c) => {
|
|
1528
|
+
r.subscribe(c), o = c;
|
|
1591
1529
|
}).then(s);
|
|
1592
|
-
return
|
|
1593
|
-
r.unsubscribe(
|
|
1594
|
-
},
|
|
1595
|
-
}, t(function(
|
|
1596
|
-
r.reason || (r.reason = new
|
|
1530
|
+
return i.cancel = function() {
|
|
1531
|
+
r.unsubscribe(o);
|
|
1532
|
+
}, i;
|
|
1533
|
+
}, t(function(o, i, c) {
|
|
1534
|
+
r.reason || (r.reason = new I(o, i, c), n(r.reason));
|
|
1597
1535
|
});
|
|
1598
1536
|
}
|
|
1599
1537
|
/**
|
|
@@ -1635,22 +1573,22 @@ class ve {
|
|
|
1635
1573
|
static source() {
|
|
1636
1574
|
let t;
|
|
1637
1575
|
return {
|
|
1638
|
-
token: new
|
|
1576
|
+
token: new xe(function(s) {
|
|
1639
1577
|
t = s;
|
|
1640
1578
|
}),
|
|
1641
1579
|
cancel: t
|
|
1642
1580
|
};
|
|
1643
1581
|
}
|
|
1644
1582
|
}
|
|
1645
|
-
function
|
|
1583
|
+
function pr(e) {
|
|
1646
1584
|
return function(n) {
|
|
1647
1585
|
return e.apply(null, n);
|
|
1648
1586
|
};
|
|
1649
1587
|
}
|
|
1650
|
-
function
|
|
1588
|
+
function hr(e) {
|
|
1651
1589
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1652
1590
|
}
|
|
1653
|
-
const
|
|
1591
|
+
const ge = {
|
|
1654
1592
|
Continue: 100,
|
|
1655
1593
|
SwitchingProtocols: 101,
|
|
1656
1594
|
Processing: 102,
|
|
@@ -1713,45 +1651,39 @@ const _e = {
|
|
|
1713
1651
|
InsufficientStorage: 507,
|
|
1714
1652
|
LoopDetected: 508,
|
|
1715
1653
|
NotExtended: 510,
|
|
1716
|
-
NetworkAuthenticationRequired: 511
|
|
1717
|
-
WebServerIsDown: 521,
|
|
1718
|
-
ConnectionTimedOut: 522,
|
|
1719
|
-
OriginIsUnreachable: 523,
|
|
1720
|
-
TimeoutOccurred: 524,
|
|
1721
|
-
SslHandshakeFailed: 525,
|
|
1722
|
-
InvalidSslCertificate: 526
|
|
1654
|
+
NetworkAuthenticationRequired: 511
|
|
1723
1655
|
};
|
|
1724
|
-
Object.entries(
|
|
1725
|
-
|
|
1656
|
+
Object.entries(ge).forEach(([e, t]) => {
|
|
1657
|
+
ge[t] = e;
|
|
1726
1658
|
});
|
|
1727
|
-
function
|
|
1728
|
-
const t = new
|
|
1729
|
-
return a.extend(n,
|
|
1730
|
-
return
|
|
1659
|
+
function St(e) {
|
|
1660
|
+
const t = new L(e), n = Ye(L.prototype.request, t);
|
|
1661
|
+
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1662
|
+
return St(F(e, s));
|
|
1731
1663
|
}, n;
|
|
1732
1664
|
}
|
|
1733
|
-
const b =
|
|
1734
|
-
b.Axios =
|
|
1735
|
-
b.CanceledError =
|
|
1736
|
-
b.CancelToken =
|
|
1737
|
-
b.isCancel =
|
|
1738
|
-
b.VERSION =
|
|
1739
|
-
b.toFormData =
|
|
1665
|
+
const b = St(W);
|
|
1666
|
+
b.Axios = L;
|
|
1667
|
+
b.CanceledError = I;
|
|
1668
|
+
b.CancelToken = xe;
|
|
1669
|
+
b.isCancel = ht;
|
|
1670
|
+
b.VERSION = Rt;
|
|
1671
|
+
b.toFormData = ie;
|
|
1740
1672
|
b.AxiosError = y;
|
|
1741
1673
|
b.Cancel = b.CanceledError;
|
|
1742
1674
|
b.all = function(t) {
|
|
1743
1675
|
return Promise.all(t);
|
|
1744
1676
|
};
|
|
1745
|
-
b.spread =
|
|
1746
|
-
b.isAxiosError =
|
|
1747
|
-
b.mergeConfig =
|
|
1748
|
-
b.AxiosHeaders =
|
|
1749
|
-
b.formToJSON = (e) =>
|
|
1750
|
-
b.getAdapter =
|
|
1751
|
-
b.HttpStatusCode =
|
|
1677
|
+
b.spread = pr;
|
|
1678
|
+
b.isAxiosError = hr;
|
|
1679
|
+
b.mergeConfig = F;
|
|
1680
|
+
b.AxiosHeaders = _;
|
|
1681
|
+
b.formToJSON = (e) => pt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1682
|
+
b.getAdapter = Et.getAdapter;
|
|
1683
|
+
b.HttpStatusCode = ge;
|
|
1752
1684
|
b.default = b;
|
|
1753
1685
|
/*! js-cookie v3.0.5 | MIT */
|
|
1754
|
-
function
|
|
1686
|
+
function Q(e) {
|
|
1755
1687
|
for (var t = 1; t < arguments.length; t++) {
|
|
1756
1688
|
var n = arguments[t];
|
|
1757
1689
|
for (var r in n)
|
|
@@ -1759,7 +1691,7 @@ function ie(e) {
|
|
|
1759
1691
|
}
|
|
1760
1692
|
return e;
|
|
1761
1693
|
}
|
|
1762
|
-
var
|
|
1694
|
+
var mr = {
|
|
1763
1695
|
read: function(e) {
|
|
1764
1696
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1765
1697
|
},
|
|
@@ -1770,48 +1702,48 @@ var Ur = {
|
|
|
1770
1702
|
);
|
|
1771
1703
|
}
|
|
1772
1704
|
};
|
|
1773
|
-
function
|
|
1774
|
-
function n(s,
|
|
1705
|
+
function be(e, t) {
|
|
1706
|
+
function n(s, o, i) {
|
|
1775
1707
|
if (!(typeof document > "u")) {
|
|
1776
|
-
|
|
1708
|
+
i = Q({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
1777
1709
|
var c = "";
|
|
1778
|
-
for (var
|
|
1779
|
-
|
|
1780
|
-
return document.cookie = s + "=" + e.write(
|
|
1710
|
+
for (var f in i)
|
|
1711
|
+
i[f] && (c += "; " + f, i[f] !== !0 && (c += "=" + i[f].split(";")[0]));
|
|
1712
|
+
return document.cookie = s + "=" + e.write(o, s) + c;
|
|
1781
1713
|
}
|
|
1782
1714
|
}
|
|
1783
1715
|
function r(s) {
|
|
1784
1716
|
if (!(typeof document > "u" || arguments.length && !s)) {
|
|
1785
|
-
for (var
|
|
1786
|
-
var
|
|
1717
|
+
for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < o.length; c++) {
|
|
1718
|
+
var f = o[c].split("="), u = f.slice(1).join("=");
|
|
1787
1719
|
try {
|
|
1788
|
-
var
|
|
1789
|
-
if (
|
|
1720
|
+
var l = decodeURIComponent(f[0]);
|
|
1721
|
+
if (i[l] = e.read(u, l), s === l)
|
|
1790
1722
|
break;
|
|
1791
1723
|
} catch {
|
|
1792
1724
|
}
|
|
1793
1725
|
}
|
|
1794
|
-
return s ?
|
|
1726
|
+
return s ? i[s] : i;
|
|
1795
1727
|
}
|
|
1796
1728
|
}
|
|
1797
1729
|
return Object.create(
|
|
1798
1730
|
{
|
|
1799
1731
|
set: n,
|
|
1800
1732
|
get: r,
|
|
1801
|
-
remove: function(s,
|
|
1733
|
+
remove: function(s, o) {
|
|
1802
1734
|
n(
|
|
1803
1735
|
s,
|
|
1804
1736
|
"",
|
|
1805
|
-
|
|
1737
|
+
Q({}, o, {
|
|
1806
1738
|
expires: -1
|
|
1807
1739
|
})
|
|
1808
1740
|
);
|
|
1809
1741
|
},
|
|
1810
1742
|
withAttributes: function(s) {
|
|
1811
|
-
return
|
|
1743
|
+
return be(this.converter, Q({}, this.attributes, s));
|
|
1812
1744
|
},
|
|
1813
1745
|
withConverter: function(s) {
|
|
1814
|
-
return
|
|
1746
|
+
return be(Q({}, this.converter, s), this.attributes);
|
|
1815
1747
|
}
|
|
1816
1748
|
},
|
|
1817
1749
|
{
|
|
@@ -1820,99 +1752,99 @@ function xe(e, t) {
|
|
|
1820
1752
|
}
|
|
1821
1753
|
);
|
|
1822
1754
|
}
|
|
1823
|
-
var
|
|
1824
|
-
const
|
|
1755
|
+
var yr = be(mr, { path: "/" }), ze;
|
|
1756
|
+
const Tt = typeof window < "u", wr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
|
|
1825
1757
|
};
|
|
1826
|
-
|
|
1827
|
-
function
|
|
1828
|
-
return typeof e == "function" ? e() :
|
|
1758
|
+
Tt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1759
|
+
function ke(e) {
|
|
1760
|
+
return typeof e == "function" ? e() : Pt(e);
|
|
1829
1761
|
}
|
|
1830
|
-
function
|
|
1762
|
+
function gr(e, t) {
|
|
1831
1763
|
function n(...r) {
|
|
1832
|
-
return new Promise((s,
|
|
1833
|
-
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(
|
|
1764
|
+
return new Promise((s, o) => {
|
|
1765
|
+
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
|
|
1834
1766
|
});
|
|
1835
1767
|
}
|
|
1836
1768
|
return n;
|
|
1837
1769
|
}
|
|
1838
|
-
function
|
|
1839
|
-
let s = 0,
|
|
1840
|
-
const
|
|
1841
|
-
|
|
1770
|
+
function br(e, t = !0, n = !0, r = !1) {
|
|
1771
|
+
let s = 0, o, i = !0, c = Ee, f;
|
|
1772
|
+
const u = () => {
|
|
1773
|
+
o && (clearTimeout(o), o = void 0, c(), c = Ee);
|
|
1842
1774
|
};
|
|
1843
|
-
return (
|
|
1844
|
-
const w =
|
|
1845
|
-
return
|
|
1846
|
-
c = r ? h : m,
|
|
1847
|
-
s = Date.now(),
|
|
1775
|
+
return (d) => {
|
|
1776
|
+
const w = ke(e), g = Date.now() - s, p = () => f = d();
|
|
1777
|
+
return u(), w <= 0 ? (s = Date.now(), p()) : (g > w && (n || !i) ? (s = Date.now(), p()) : t && (f = new Promise((m, h) => {
|
|
1778
|
+
c = r ? h : m, o = setTimeout(() => {
|
|
1779
|
+
s = Date.now(), i = !0, m(p()), u();
|
|
1848
1780
|
}, Math.max(0, w - g));
|
|
1849
|
-
})), !n && !
|
|
1781
|
+
})), !n && !o && (o = setTimeout(() => i = !0, w)), i = !1, f);
|
|
1850
1782
|
};
|
|
1851
1783
|
}
|
|
1852
|
-
function
|
|
1784
|
+
function Er(e) {
|
|
1853
1785
|
return e;
|
|
1854
1786
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return
|
|
1787
|
+
function Rr(e) {
|
|
1788
|
+
return Ut() ? (Nt(e), !0) : !1;
|
|
1857
1789
|
}
|
|
1858
|
-
function
|
|
1790
|
+
function Sr(e) {
|
|
1859
1791
|
var t;
|
|
1860
|
-
const n =
|
|
1792
|
+
const n = ke(e);
|
|
1861
1793
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1862
1794
|
}
|
|
1863
|
-
const
|
|
1864
|
-
function
|
|
1795
|
+
const Ot = Tt ? window : void 0;
|
|
1796
|
+
function Je(...e) {
|
|
1865
1797
|
let t, n, r, s;
|
|
1866
|
-
if (
|
|
1867
|
-
return
|
|
1798
|
+
if (wr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = Ot) : [t, n, r, s] = e, !t)
|
|
1799
|
+
return Ee;
|
|
1868
1800
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1871
|
-
}, c = (
|
|
1872
|
-
|
|
1873
|
-
}, { immediate: !0, flush: "post" }),
|
|
1874
|
-
|
|
1801
|
+
const o = [], i = () => {
|
|
1802
|
+
o.forEach((l) => l()), o.length = 0;
|
|
1803
|
+
}, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Sr(t), ke(s)], ([l, d]) => {
|
|
1804
|
+
i(), l && o.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
|
|
1805
|
+
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1806
|
+
f(), i();
|
|
1875
1807
|
};
|
|
1876
|
-
return
|
|
1808
|
+
return Rr(u), u;
|
|
1877
1809
|
}
|
|
1878
|
-
const
|
|
1879
|
-
|
|
1880
|
-
const
|
|
1881
|
-
function
|
|
1810
|
+
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
|
|
1811
|
+
Ve[We] = Ve[We] || {};
|
|
1812
|
+
const Tr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Or = 6e4;
|
|
1813
|
+
function Ar(e = Or, t = {}) {
|
|
1882
1814
|
const {
|
|
1883
1815
|
initialState: n = !1,
|
|
1884
1816
|
listenForVisibilityChange: r = !0,
|
|
1885
|
-
events: s =
|
|
1886
|
-
window:
|
|
1887
|
-
eventFilter:
|
|
1888
|
-
} = t, c =
|
|
1889
|
-
let
|
|
1890
|
-
const
|
|
1891
|
-
c.value = !1,
|
|
1817
|
+
events: s = Tr,
|
|
1818
|
+
window: o = Ot,
|
|
1819
|
+
eventFilter: i = br(50)
|
|
1820
|
+
} = t, c = Y(n), f = Y($e());
|
|
1821
|
+
let u;
|
|
1822
|
+
const l = gr(i, () => {
|
|
1823
|
+
c.value = !1, f.value = $e(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
|
|
1892
1824
|
});
|
|
1893
|
-
if (
|
|
1894
|
-
const
|
|
1825
|
+
if (o) {
|
|
1826
|
+
const d = o.document;
|
|
1895
1827
|
for (const w of s)
|
|
1896
|
-
|
|
1897
|
-
r &&
|
|
1898
|
-
|
|
1828
|
+
Je(o, w, l, { passive: !0 });
|
|
1829
|
+
r && Je(d, "visibilitychange", () => {
|
|
1830
|
+
d.hidden || l();
|
|
1899
1831
|
});
|
|
1900
1832
|
}
|
|
1901
|
-
return
|
|
1833
|
+
return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
|
|
1902
1834
|
}
|
|
1903
|
-
var
|
|
1835
|
+
var Ke;
|
|
1904
1836
|
(function(e) {
|
|
1905
1837
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1906
|
-
})(
|
|
1907
|
-
var
|
|
1838
|
+
})(Ke || (Ke = {}));
|
|
1839
|
+
var _r = Object.defineProperty, Qe = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Cr = (e, t) => {
|
|
1908
1840
|
for (var n in t)
|
|
1909
|
-
|
|
1910
|
-
if (
|
|
1911
|
-
for (var n of
|
|
1912
|
-
|
|
1841
|
+
xr.call(t, n) && Xe(e, n, t[n]);
|
|
1842
|
+
if (Qe)
|
|
1843
|
+
for (var n of Qe(t))
|
|
1844
|
+
kr.call(t, n) && Xe(e, n, t[n]);
|
|
1913
1845
|
return e;
|
|
1914
1846
|
};
|
|
1915
|
-
const
|
|
1847
|
+
const Pr = {
|
|
1916
1848
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1917
1849
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1918
1850
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1938,27 +1870,27 @@ const Vr = {
|
|
|
1938
1870
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1939
1871
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1940
1872
|
};
|
|
1941
|
-
|
|
1942
|
-
linear:
|
|
1943
|
-
},
|
|
1944
|
-
let
|
|
1945
|
-
const
|
|
1946
|
-
|
|
1873
|
+
Cr({
|
|
1874
|
+
linear: Er
|
|
1875
|
+
}, Pr);
|
|
1876
|
+
let Re;
|
|
1877
|
+
const At = { triggerProxySso: "triggerProxySso" }, Ur = () => {
|
|
1878
|
+
Re = (e) => {
|
|
1947
1879
|
var n;
|
|
1948
1880
|
const { origin: t } = new URL(location.href);
|
|
1949
1881
|
(n = window.top) == null || n.postMessage(
|
|
1950
|
-
{ type:
|
|
1882
|
+
{ type: At.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
|
|
1951
1883
|
t
|
|
1952
1884
|
);
|
|
1953
1885
|
};
|
|
1954
|
-
},
|
|
1886
|
+
}, Nr = (e) => {
|
|
1955
1887
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1956
1888
|
const { type: n, data: r } = t.data;
|
|
1957
|
-
n ===
|
|
1889
|
+
n === At.triggerProxySso && (e == null || e(r));
|
|
1958
1890
|
});
|
|
1959
1891
|
};
|
|
1960
|
-
window.top !== window.self &&
|
|
1961
|
-
let
|
|
1892
|
+
window.top !== window.self && Ur();
|
|
1893
|
+
let _t = (e = 21) => {
|
|
1962
1894
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1963
1895
|
for (; e--; ) {
|
|
1964
1896
|
let r = n[e] & 63;
|
|
@@ -1966,131 +1898,131 @@ let Ht = (e = 21) => {
|
|
|
1966
1898
|
}
|
|
1967
1899
|
return t;
|
|
1968
1900
|
};
|
|
1969
|
-
const
|
|
1901
|
+
const xt = (e) => new URL(location.href).searchParams.get(e), v = {
|
|
1970
1902
|
oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
|
|
1971
1903
|
// 重定向到登录页
|
|
1972
1904
|
logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
|
|
1973
1905
|
// 清除登录信息
|
|
1974
1906
|
token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
|
|
1975
1907
|
// 通过code获取token
|
|
1976
|
-
}, { baseURL:
|
|
1908
|
+
}, { baseURL: Ge, noRedireLogin: Lr = !1 } = Te(), z = location.origin + "/home", D = {
|
|
1977
1909
|
response_type: "code",
|
|
1978
1910
|
scope: "sever",
|
|
1979
1911
|
client_id: "sys",
|
|
1980
|
-
client_secret:
|
|
1912
|
+
client_secret: Lt("das123"),
|
|
1981
1913
|
state: +/* @__PURE__ */ new Date()
|
|
1982
|
-
},
|
|
1983
|
-
const e =
|
|
1914
|
+
}, Fr = () => {
|
|
1915
|
+
const e = Ze(location.href, "redirect_url") || "";
|
|
1984
1916
|
if (e)
|
|
1985
1917
|
window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
|
|
1986
1918
|
else {
|
|
1987
1919
|
const t = ["code", "state", "kingdee_token", "redirect_url"];
|
|
1988
|
-
window.history.replaceState({}, "",
|
|
1920
|
+
window.history.replaceState({}, "", Ft(t));
|
|
1989
1921
|
}
|
|
1990
|
-
},
|
|
1922
|
+
}, kt = Y(!1), Ct = (e) => {
|
|
1991
1923
|
if (e <= 0) return;
|
|
1992
|
-
const { idle: t } =
|
|
1993
|
-
|
|
1924
|
+
const { idle: t } = Ar(e);
|
|
1925
|
+
Se(
|
|
1994
1926
|
() => t.value,
|
|
1995
1927
|
(n) => {
|
|
1996
|
-
n === !0 && (
|
|
1928
|
+
n === !0 && (kt.value = !0);
|
|
1997
1929
|
}
|
|
1998
1930
|
);
|
|
1999
1931
|
};
|
|
2000
|
-
localStorage.getItem("idelTime") &&
|
|
2001
|
-
const
|
|
2002
|
-
const e =
|
|
2003
|
-
if (!e) return
|
|
2004
|
-
const t =
|
|
1932
|
+
localStorage.getItem("idelTime") && Ct(Number(localStorage.getItem("idelTime")));
|
|
1933
|
+
const Dr = async () => {
|
|
1934
|
+
const e = xt("code") || "";
|
|
1935
|
+
if (!e) return M();
|
|
1936
|
+
const t = Ze(location.href, "kingdee_token") || "";
|
|
2005
1937
|
let n = {};
|
|
2006
1938
|
const r = {
|
|
2007
1939
|
grant_type: "authorization_code",
|
|
2008
1940
|
code: e,
|
|
2009
|
-
client_id:
|
|
2010
|
-
client_secret:
|
|
2011
|
-
redirect_uri:
|
|
1941
|
+
client_id: D.client_id,
|
|
1942
|
+
client_secret: D.client_secret,
|
|
1943
|
+
redirect_uri: z,
|
|
2012
1944
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
2013
|
-
nonce:
|
|
1945
|
+
nonce: _t()
|
|
2014
1946
|
};
|
|
2015
1947
|
t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
|
|
2016
1948
|
try {
|
|
2017
|
-
await b.create().get(
|
|
1949
|
+
await b.create().get(v.token, { baseURL: Ge });
|
|
2018
1950
|
} catch {
|
|
2019
1951
|
}
|
|
2020
1952
|
try {
|
|
2021
1953
|
n = await b.create().post(
|
|
2022
|
-
|
|
1954
|
+
v.token,
|
|
2023
1955
|
{},
|
|
2024
1956
|
{
|
|
2025
|
-
baseURL:
|
|
1957
|
+
baseURL: Ge,
|
|
2026
1958
|
params: r,
|
|
2027
1959
|
headers: {
|
|
2028
1960
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
2029
|
-
"csrf-token":
|
|
1961
|
+
"csrf-token": yr.get("csrf-token")
|
|
2030
1962
|
}
|
|
2031
1963
|
}
|
|
2032
1964
|
);
|
|
2033
|
-
const { access_token: s = "", expires_in:
|
|
1965
|
+
const { access_token: s = "", expires_in: o = 0, refresh_token: i = "", refresh_exp: c = 0 } = n.data, f = {
|
|
2034
1966
|
accessToken: s,
|
|
2035
|
-
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(
|
|
2036
|
-
refreshToken:
|
|
1967
|
+
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(o) * 1e3,
|
|
1968
|
+
refreshToken: i,
|
|
2037
1969
|
info: n.data
|
|
2038
1970
|
};
|
|
2039
|
-
|
|
2040
|
-
const
|
|
2041
|
-
return
|
|
1971
|
+
J().save(f);
|
|
1972
|
+
const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
|
|
1973
|
+
return u && u > 0 && (Ct(u), u && localStorage.setItem("idelTime", u.toString())), Fr(), s;
|
|
2042
1974
|
} catch {
|
|
2043
|
-
return
|
|
1975
|
+
return $({ ...D, redirect_uri: z });
|
|
2044
1976
|
}
|
|
2045
|
-
},
|
|
1977
|
+
}, q = Y(!1), zr = async (e) => {
|
|
2046
1978
|
if (e.public) return "";
|
|
2047
|
-
if (
|
|
2048
|
-
if (
|
|
1979
|
+
if (kt.value) return $({ ...D, redirect_uri: z });
|
|
1980
|
+
if (q.value)
|
|
2049
1981
|
return await new Promise(async (s) => {
|
|
2050
|
-
|
|
2051
|
-
() =>
|
|
2052
|
-
(
|
|
2053
|
-
if (!
|
|
2054
|
-
const
|
|
2055
|
-
s(
|
|
1982
|
+
Se(
|
|
1983
|
+
() => q.value,
|
|
1984
|
+
(o) => {
|
|
1985
|
+
if (!o) {
|
|
1986
|
+
const i = M();
|
|
1987
|
+
s(i);
|
|
2056
1988
|
}
|
|
2057
1989
|
}
|
|
2058
1990
|
);
|
|
2059
1991
|
});
|
|
2060
|
-
const { accessTokenExpiredAt: t } =
|
|
2061
|
-
if ((!
|
|
2062
|
-
return
|
|
2063
|
-
let r =
|
|
2064
|
-
|
|
1992
|
+
const { accessTokenExpiredAt: t } = J().getData(), n = xt("code") || "";
|
|
1993
|
+
if ((!M() || t === 0) && !n)
|
|
1994
|
+
return $({ ...D, redirect_uri: z });
|
|
1995
|
+
let r = M();
|
|
1996
|
+
q.value = !0;
|
|
2065
1997
|
try {
|
|
2066
|
-
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await
|
|
1998
|
+
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await vr(D)), r = await Dr(), q.value = !1;
|
|
2067
1999
|
} catch {
|
|
2068
|
-
|
|
2000
|
+
q.value = !1;
|
|
2069
2001
|
}
|
|
2070
2002
|
return r;
|
|
2071
|
-
},
|
|
2072
|
-
if (
|
|
2073
|
-
const { baseURL: t, ssoLocale: n } =
|
|
2074
|
-
if (
|
|
2003
|
+
}, $ = (e) => {
|
|
2004
|
+
if (Lr) return;
|
|
2005
|
+
const { baseURL: t, ssoLocale: n } = Te();
|
|
2006
|
+
if (Re) return Re(e);
|
|
2075
2007
|
e.logout = "true", n && (e.locale = "locale");
|
|
2076
|
-
const r = Object.keys(e).filter((
|
|
2077
|
-
localStorage.removeItem("idelTime"), sessionStorage.clear(),
|
|
2008
|
+
const r = Object.keys(e).filter((o) => o !== "client_secret").map((o) => `${o}=${e[o]}`).join("&"), s = `${t}${v.oauth}?${r}`;
|
|
2009
|
+
localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove();
|
|
2078
2010
|
try {
|
|
2079
|
-
b.create().get(
|
|
2011
|
+
b.create().get(v.logoutCurpage, { baseURL: t });
|
|
2080
2012
|
} catch {
|
|
2081
2013
|
}
|
|
2082
2014
|
window.__isAutoCloseApp = !1, location.replace(s);
|
|
2083
2015
|
};
|
|
2084
|
-
|
|
2085
|
-
const
|
|
2086
|
-
const { baseURL: t } =
|
|
2016
|
+
Nr($);
|
|
2017
|
+
const vr = async (e) => {
|
|
2018
|
+
const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
|
|
2087
2019
|
try {
|
|
2088
|
-
await b.create().get(
|
|
2020
|
+
await b.create().get(v.token, { baseURL: t });
|
|
2089
2021
|
} catch {
|
|
2090
2022
|
}
|
|
2091
2023
|
try {
|
|
2092
2024
|
const r = await b.create().post(
|
|
2093
|
-
|
|
2025
|
+
v.token,
|
|
2094
2026
|
{},
|
|
2095
2027
|
{
|
|
2096
2028
|
baseURL: t,
|
|
@@ -2100,44 +2032,44 @@ const Zr = async (e) => {
|
|
|
2100
2032
|
client_id: e.client_id,
|
|
2101
2033
|
client_secret: e.client_secret,
|
|
2102
2034
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
2103
|
-
nonce:
|
|
2035
|
+
nonce: _t()
|
|
2104
2036
|
}
|
|
2105
2037
|
}
|
|
2106
|
-
), { access_token: s = "", expires_in:
|
|
2038
|
+
), { access_token: s = "", expires_in: o = 0, refresh_token: i = "" } = r.data, c = {
|
|
2107
2039
|
accessToken: s,
|
|
2108
|
-
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(
|
|
2109
|
-
refreshToken:
|
|
2040
|
+
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(o) * 1e3,
|
|
2041
|
+
refreshToken: i,
|
|
2110
2042
|
info: r.data
|
|
2111
2043
|
};
|
|
2112
|
-
return
|
|
2044
|
+
return J().save(c), s;
|
|
2113
2045
|
} catch {
|
|
2114
|
-
return
|
|
2046
|
+
return $({ ...e, redirect_uri: z });
|
|
2115
2047
|
}
|
|
2116
|
-
},
|
|
2048
|
+
}, J = () => ({
|
|
2117
2049
|
getData: () => ({
|
|
2118
|
-
accessToken:
|
|
2119
|
-
accessTokenExpiredAt:
|
|
2120
|
-
refreshToken:
|
|
2050
|
+
accessToken: M(),
|
|
2051
|
+
accessTokenExpiredAt: ue("accessTokenExpiredAt") ? Number(ue("accessTokenExpiredAt")) : "",
|
|
2052
|
+
refreshToken: ue("refreshToken")
|
|
2121
2053
|
}),
|
|
2122
2054
|
save: (e) => {
|
|
2123
|
-
|
|
2055
|
+
Dt(
|
|
2124
2056
|
e.accessToken || "",
|
|
2125
2057
|
{
|
|
2126
2058
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2127
2059
|
refreshToken: e.refreshToken
|
|
2128
2060
|
}
|
|
2129
|
-
),
|
|
2061
|
+
), Bt(e);
|
|
2130
2062
|
},
|
|
2131
2063
|
remove: () => {
|
|
2132
|
-
|
|
2064
|
+
vt(), It();
|
|
2133
2065
|
}
|
|
2134
2066
|
});
|
|
2135
2067
|
export {
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2068
|
+
xt as getQuery,
|
|
2069
|
+
zr as getToken,
|
|
2070
|
+
Dr as getTokenFromCode,
|
|
2071
|
+
D as getTokenParams,
|
|
2072
|
+
$ as login,
|
|
2073
|
+
z as real_uri,
|
|
2074
|
+
J as tokenStorage
|
|
2143
2075
|
};
|