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