@dev-coindcx/network 1.0.0 → 1.0.1-test
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/dist/index.cjs +3 -6
- package/dist/index.js +604 -884
- package/dist/services/axios.service.d.ts +8 -8
- package/dist/utils/api.interface.d.ts +1 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var Ue = Object.defineProperty;
|
|
2
|
+
var je = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var se = (e, t, n) => (je(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
function me(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString:
|
|
10
|
-
const n =
|
|
9
|
+
const { toString: Ie } = Object.prototype, { getPrototypeOf: Z } = Object, H = ((e) => (t) => {
|
|
10
|
+
const n = Ie.call(t);
|
|
11
11
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
13
|
-
function
|
|
14
|
-
return e !== null && !
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), O = (e) => (e = e.toLowerCase(), (t) => H(t) === e), M = (e) => (t) => typeof t === e, { isArray: C } = Array, F = M("undefined");
|
|
13
|
+
function ke(e) {
|
|
14
|
+
return e !== null && !F(e) && e.constructor !== null && !F(e.constructor) && b(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
function
|
|
16
|
+
const ye = O("ArrayBuffer");
|
|
17
|
+
function He(e) {
|
|
18
18
|
let t;
|
|
19
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
19
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ye(e.buffer), t;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
21
|
+
const Me = M("string"), b = M("function"), Ee = M("number"), q = (e) => e !== null && typeof e == "object", qe = (e) => e === !0 || e === !1, L = (e) => {
|
|
22
|
+
if (H(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
|
-
const t =
|
|
24
|
+
const t = Z(e);
|
|
25
25
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
26
|
-
},
|
|
26
|
+
}, ze = O("Date"), Je = O("File"), $e = O("Blob"), Ve = O("FileList"), We = (e) => q(e) && b(e.pipe), Ke = (e) => {
|
|
27
27
|
let t;
|
|
28
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
29
|
-
t === "object" &&
|
|
30
|
-
},
|
|
31
|
-
function
|
|
28
|
+
return e && (typeof FormData == "function" && e instanceof FormData || b(e.append) && ((t = H(e)) === "formdata" || // detect form-data instance
|
|
29
|
+
t === "object" && b(e.toString) && e.toString() === "[object FormData]"));
|
|
30
|
+
}, Ge = O("URLSearchParams"), Xe = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
31
|
+
function B(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
32
32
|
if (e === null || typeof e > "u")
|
|
33
33
|
return;
|
|
34
34
|
let r, s;
|
|
35
|
-
if (typeof e != "object" && (e = [e]),
|
|
35
|
+
if (typeof e != "object" && (e = [e]), C(e))
|
|
36
36
|
for (r = 0, s = e.length; r < s; r++)
|
|
37
37
|
t.call(null, e[r], r, e);
|
|
38
38
|
else {
|
|
39
39
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
40
|
-
let
|
|
40
|
+
let u;
|
|
41
41
|
for (r = 0; r < i; r++)
|
|
42
|
-
|
|
42
|
+
u = o[r], t.call(null, e[u], u, e);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function we(e, t) {
|
|
46
46
|
t = t.toLowerCase();
|
|
47
47
|
const n = Object.keys(e);
|
|
48
48
|
let r = n.length, s;
|
|
@@ -51,79 +51,78 @@ function ke(e, t) {
|
|
|
51
51
|
return s;
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
-
const
|
|
55
|
-
function
|
|
56
|
-
const { caseless: e } =
|
|
57
|
-
const o = e &&
|
|
58
|
-
|
|
54
|
+
const be = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Se = (e) => !F(e) && e !== be;
|
|
55
|
+
function X() {
|
|
56
|
+
const { caseless: e } = Se(this) && this || {}, t = {}, n = (r, s) => {
|
|
57
|
+
const o = e && we(t, s) || s;
|
|
58
|
+
L(t[o]) && L(r) ? t[o] = X(t[o], r) : L(r) ? t[o] = X({}, r) : C(r) ? t[o] = r.slice() : t[o] = r;
|
|
59
59
|
};
|
|
60
60
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
61
|
-
arguments[r] &&
|
|
61
|
+
arguments[r] && B(arguments[r], n);
|
|
62
62
|
return t;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
n &&
|
|
66
|
-
}, { allOwnKeys: r }), e),
|
|
64
|
+
const ve = (e, t, n, { allOwnKeys: r } = {}) => (B(t, (s, o) => {
|
|
65
|
+
n && b(s) ? e[o] = me(s, n) : e[o] = s;
|
|
66
|
+
}, { allOwnKeys: r }), e), Qe = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ye = (e, t, n, r) => {
|
|
67
67
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
68
68
|
value: t.prototype
|
|
69
69
|
}), n && Object.assign(e.prototype, n);
|
|
70
|
-
},
|
|
70
|
+
}, Ze = (e, t, n, r) => {
|
|
71
71
|
let s, o, i;
|
|
72
|
-
const
|
|
72
|
+
const u = {};
|
|
73
73
|
if (t = t || {}, e == null)
|
|
74
74
|
return t;
|
|
75
75
|
do {
|
|
76
76
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
77
|
-
i = s[o], (!r || r(i, e, t)) && !
|
|
78
|
-
e = n !== !1 &&
|
|
77
|
+
i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
|
|
78
|
+
e = n !== !1 && Z(e);
|
|
79
79
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
80
80
|
return t;
|
|
81
|
-
},
|
|
81
|
+
}, et = (e, t, n) => {
|
|
82
82
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
83
83
|
const r = e.indexOf(t, n);
|
|
84
84
|
return r !== -1 && r === n;
|
|
85
|
-
},
|
|
85
|
+
}, tt = (e) => {
|
|
86
86
|
if (!e)
|
|
87
87
|
return null;
|
|
88
|
-
if (
|
|
88
|
+
if (C(e))
|
|
89
89
|
return e;
|
|
90
90
|
let t = e.length;
|
|
91
|
-
if (!
|
|
91
|
+
if (!Ee(t))
|
|
92
92
|
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
|
+
}, nt = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Z(Uint8Array)), rt = (e, t) => {
|
|
98
98
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
99
99
|
let s;
|
|
100
100
|
for (; (s = r.next()) && !s.done; ) {
|
|
101
101
|
const o = s.value;
|
|
102
102
|
t.call(e, o[0], o[1]);
|
|
103
103
|
}
|
|
104
|
-
},
|
|
104
|
+
}, st = (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
|
+
}, ot = O("HTMLFormElement"), it = (e) => e.toLowerCase().replace(
|
|
111
111
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
112
112
|
function(n, r, s) {
|
|
113
113
|
return r.toUpperCase() + s;
|
|
114
114
|
}
|
|
115
|
-
),
|
|
115
|
+
), oe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), at = O("RegExp"), Re = (e, t) => {
|
|
116
116
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
117
|
+
B(n, (s, o) => {
|
|
118
|
+
t(s, o, e) !== !1 && (r[o] = s);
|
|
120
119
|
}), Object.defineProperties(e, r);
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
if (
|
|
120
|
+
}, ct = (e) => {
|
|
121
|
+
Re(e, (t, n) => {
|
|
122
|
+
if (b(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
124
123
|
return !1;
|
|
125
124
|
const r = e[n];
|
|
126
|
-
if (
|
|
125
|
+
if (b(r)) {
|
|
127
126
|
if (t.enumerable = !1, "writable" in t) {
|
|
128
127
|
t.writable = !1;
|
|
129
128
|
return;
|
|
@@ -133,111 +132,98 @@ const gt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
134
|
});
|
|
136
|
-
},
|
|
135
|
+
}, ut = (e, t) => {
|
|
137
136
|
const n = {}, r = (s) => {
|
|
138
137
|
s.forEach((o) => {
|
|
139
138
|
n[o] = !0;
|
|
140
139
|
});
|
|
141
140
|
};
|
|
142
|
-
return
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
DIGIT:
|
|
146
|
-
ALPHA:
|
|
147
|
-
ALPHA_DIGIT:
|
|
148
|
-
},
|
|
141
|
+
return C(e) ? r(e) : r(String(e).split(t)), n;
|
|
142
|
+
}, lt = () => {
|
|
143
|
+
}, ft = (e, t) => (e = +e, Number.isFinite(e) ? e : t), V = "abcdefghijklmnopqrstuvwxyz", ie = "0123456789", Oe = {
|
|
144
|
+
DIGIT: ie,
|
|
145
|
+
ALPHA: V,
|
|
146
|
+
ALPHA_DIGIT: V + V.toUpperCase() + ie
|
|
147
|
+
}, dt = (e = 16, t = Oe.ALPHA_DIGIT) => {
|
|
149
148
|
let n = "";
|
|
150
149
|
const { length: r } = t;
|
|
151
150
|
for (; e--; )
|
|
152
151
|
n += t[Math.random() * r | 0];
|
|
153
152
|
return n;
|
|
154
153
|
};
|
|
155
|
-
function
|
|
156
|
-
return !!(e &&
|
|
154
|
+
function pt(e) {
|
|
155
|
+
return !!(e && b(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
157
156
|
}
|
|
158
|
-
const
|
|
157
|
+
const ht = (e) => {
|
|
159
158
|
const t = new Array(10), n = (r, s) => {
|
|
160
|
-
if (
|
|
159
|
+
if (q(r)) {
|
|
161
160
|
if (t.indexOf(r) >= 0)
|
|
162
161
|
return;
|
|
163
162
|
if (!("toJSON" in r)) {
|
|
164
163
|
t[s] = r;
|
|
165
|
-
const o =
|
|
166
|
-
return
|
|
167
|
-
const
|
|
168
|
-
!
|
|
164
|
+
const o = C(r) ? [] : {};
|
|
165
|
+
return B(r, (i, u) => {
|
|
166
|
+
const d = n(i, s + 1);
|
|
167
|
+
!F(d) && (o[u] = d);
|
|
169
168
|
}), t[s] = void 0, o;
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
171
|
return r;
|
|
173
172
|
};
|
|
174
173
|
return n(e, 0);
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
inherits: Tt,
|
|
213
|
-
toFlatObject: At,
|
|
214
|
-
kindOf: W,
|
|
215
|
-
kindOfTest: C,
|
|
216
|
-
endsWith: xt,
|
|
217
|
-
toArray: Ct,
|
|
218
|
-
forEachEntry: Nt,
|
|
219
|
-
matchAll: Ft,
|
|
220
|
-
isHTMLForm: _t,
|
|
221
|
-
hasOwnProperty: Ee,
|
|
222
|
-
hasOwnProp: Ee,
|
|
174
|
+
}, mt = O("AsyncFunction"), yt = (e) => e && (q(e) || b(e)) && b(e.then) && b(e.catch), a = {
|
|
175
|
+
isArray: C,
|
|
176
|
+
isArrayBuffer: ye,
|
|
177
|
+
isBuffer: ke,
|
|
178
|
+
isFormData: Ke,
|
|
179
|
+
isArrayBufferView: He,
|
|
180
|
+
isString: Me,
|
|
181
|
+
isNumber: Ee,
|
|
182
|
+
isBoolean: qe,
|
|
183
|
+
isObject: q,
|
|
184
|
+
isPlainObject: L,
|
|
185
|
+
isUndefined: F,
|
|
186
|
+
isDate: ze,
|
|
187
|
+
isFile: Je,
|
|
188
|
+
isBlob: $e,
|
|
189
|
+
isRegExp: at,
|
|
190
|
+
isFunction: b,
|
|
191
|
+
isStream: We,
|
|
192
|
+
isURLSearchParams: Ge,
|
|
193
|
+
isTypedArray: nt,
|
|
194
|
+
isFileList: Ve,
|
|
195
|
+
forEach: B,
|
|
196
|
+
merge: X,
|
|
197
|
+
extend: ve,
|
|
198
|
+
trim: Xe,
|
|
199
|
+
stripBOM: Qe,
|
|
200
|
+
inherits: Ye,
|
|
201
|
+
toFlatObject: Ze,
|
|
202
|
+
kindOf: H,
|
|
203
|
+
kindOfTest: O,
|
|
204
|
+
endsWith: et,
|
|
205
|
+
toArray: tt,
|
|
206
|
+
forEachEntry: rt,
|
|
207
|
+
matchAll: st,
|
|
208
|
+
isHTMLForm: ot,
|
|
209
|
+
hasOwnProperty: oe,
|
|
210
|
+
hasOwnProp: oe,
|
|
223
211
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
224
|
-
reduceDescriptors:
|
|
225
|
-
freezeMethods:
|
|
226
|
-
toObjectSet:
|
|
227
|
-
toCamelCase:
|
|
228
|
-
noop:
|
|
229
|
-
toFiniteNumber:
|
|
230
|
-
findKey:
|
|
231
|
-
global:
|
|
232
|
-
isContextDefined:
|
|
233
|
-
ALPHABET:
|
|
234
|
-
generateString:
|
|
235
|
-
isSpecCompliantForm:
|
|
236
|
-
toJSONObject:
|
|
237
|
-
isAsyncFn:
|
|
238
|
-
isThenable:
|
|
239
|
-
setImmediate: He,
|
|
240
|
-
asap: Jt
|
|
212
|
+
reduceDescriptors: Re,
|
|
213
|
+
freezeMethods: ct,
|
|
214
|
+
toObjectSet: ut,
|
|
215
|
+
toCamelCase: it,
|
|
216
|
+
noop: lt,
|
|
217
|
+
toFiniteNumber: ft,
|
|
218
|
+
findKey: we,
|
|
219
|
+
global: be,
|
|
220
|
+
isContextDefined: Se,
|
|
221
|
+
ALPHABET: Oe,
|
|
222
|
+
generateString: dt,
|
|
223
|
+
isSpecCompliantForm: pt,
|
|
224
|
+
toJSONObject: ht,
|
|
225
|
+
isAsyncFn: mt,
|
|
226
|
+
isThenable: yt
|
|
241
227
|
};
|
|
242
228
|
function m(e, t, n, r, s) {
|
|
243
229
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
@@ -263,7 +249,7 @@ a.inherits(m, Error, {
|
|
|
263
249
|
};
|
|
264
250
|
}
|
|
265
251
|
});
|
|
266
|
-
const
|
|
252
|
+
const Ae = m.prototype, Te = {};
|
|
267
253
|
[
|
|
268
254
|
"ERR_BAD_OPTION_VALUE",
|
|
269
255
|
"ERR_BAD_OPTION",
|
|
@@ -279,97 +265,97 @@ const Me = m.prototype, ze = {};
|
|
|
279
265
|
"ERR_INVALID_URL"
|
|
280
266
|
// eslint-disable-next-line func-names
|
|
281
267
|
].forEach((e) => {
|
|
282
|
-
|
|
268
|
+
Te[e] = { value: e };
|
|
283
269
|
});
|
|
284
|
-
Object.defineProperties(m,
|
|
285
|
-
Object.defineProperty(
|
|
270
|
+
Object.defineProperties(m, Te);
|
|
271
|
+
Object.defineProperty(Ae, "isAxiosError", { value: !0 });
|
|
286
272
|
m.from = (e, t, n, r, s, o) => {
|
|
287
|
-
const i = Object.create(
|
|
288
|
-
return a.toFlatObject(e, i, function(
|
|
289
|
-
return
|
|
290
|
-
}, (
|
|
273
|
+
const i = Object.create(Ae);
|
|
274
|
+
return a.toFlatObject(e, i, function(d) {
|
|
275
|
+
return d !== Error.prototype;
|
|
276
|
+
}, (u) => u !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
291
277
|
};
|
|
292
|
-
const
|
|
293
|
-
function
|
|
278
|
+
const Et = null;
|
|
279
|
+
function v(e) {
|
|
294
280
|
return a.isPlainObject(e) || a.isArray(e);
|
|
295
281
|
}
|
|
296
|
-
function
|
|
282
|
+
function xe(e) {
|
|
297
283
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
298
284
|
}
|
|
299
|
-
function
|
|
285
|
+
function ae(e, t, n) {
|
|
300
286
|
return e ? e.concat(t).map(function(s, o) {
|
|
301
|
-
return s =
|
|
287
|
+
return s = xe(s), !n && o ? "[" + s + "]" : s;
|
|
302
288
|
}).join(n ? "." : "") : t;
|
|
303
289
|
}
|
|
304
|
-
function
|
|
305
|
-
return a.isArray(e) && !e.some(
|
|
290
|
+
function wt(e) {
|
|
291
|
+
return a.isArray(e) && !e.some(v);
|
|
306
292
|
}
|
|
307
|
-
const
|
|
293
|
+
const bt = a.toFlatObject(a, {}, null, function(t) {
|
|
308
294
|
return /^is[A-Z]/.test(t);
|
|
309
295
|
});
|
|
310
|
-
function
|
|
296
|
+
function z(e, t, n) {
|
|
311
297
|
if (!a.isObject(e))
|
|
312
298
|
throw new TypeError("target must be an object");
|
|
313
299
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
314
300
|
metaTokens: !0,
|
|
315
301
|
dots: !1,
|
|
316
302
|
indexes: !1
|
|
317
|
-
}, !1, function(
|
|
318
|
-
return !a.isUndefined(
|
|
303
|
+
}, !1, function(h, A) {
|
|
304
|
+
return !a.isUndefined(A[h]);
|
|
319
305
|
});
|
|
320
|
-
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes,
|
|
306
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
321
307
|
if (!a.isFunction(s))
|
|
322
308
|
throw new TypeError("visitor must be a function");
|
|
323
|
-
function
|
|
324
|
-
if (
|
|
309
|
+
function c(f) {
|
|
310
|
+
if (f === null)
|
|
325
311
|
return "";
|
|
326
|
-
if (a.isDate(
|
|
327
|
-
return
|
|
328
|
-
if (!
|
|
312
|
+
if (a.isDate(f))
|
|
313
|
+
return f.toISOString();
|
|
314
|
+
if (!d && a.isBlob(f))
|
|
329
315
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
330
|
-
return a.isArrayBuffer(
|
|
331
|
-
}
|
|
332
|
-
function l(
|
|
333
|
-
let S =
|
|
334
|
-
if (
|
|
335
|
-
if (a.endsWith(
|
|
336
|
-
|
|
337
|
-
else if (a.isArray(
|
|
338
|
-
return
|
|
339
|
-
!(a.isUndefined(
|
|
316
|
+
return a.isArrayBuffer(f) || a.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
317
|
+
}
|
|
318
|
+
function l(f, h, A) {
|
|
319
|
+
let S = f;
|
|
320
|
+
if (f && !A && typeof f == "object") {
|
|
321
|
+
if (a.endsWith(h, "{}"))
|
|
322
|
+
h = r ? h : h.slice(0, -2), f = JSON.stringify(f);
|
|
323
|
+
else if (a.isArray(f) && wt(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (S = a.toArray(f)))
|
|
324
|
+
return h = xe(h), S.forEach(function(_, Le) {
|
|
325
|
+
!(a.isUndefined(_) || _ === null) && t.append(
|
|
340
326
|
// eslint-disable-next-line no-nested-ternary
|
|
341
|
-
i === !0 ?
|
|
342
|
-
|
|
327
|
+
i === !0 ? ae([h], Le, o) : i === null ? h : h + "[]",
|
|
328
|
+
c(_)
|
|
343
329
|
);
|
|
344
330
|
}), !1;
|
|
345
331
|
}
|
|
346
|
-
return
|
|
332
|
+
return v(f) ? !0 : (t.append(ae(A, h, o), c(f)), !1);
|
|
347
333
|
}
|
|
348
|
-
const p = [],
|
|
334
|
+
const p = [], w = Object.assign(bt, {
|
|
349
335
|
defaultVisitor: l,
|
|
350
|
-
convertValue:
|
|
351
|
-
isVisitable:
|
|
336
|
+
convertValue: c,
|
|
337
|
+
isVisitable: v
|
|
352
338
|
});
|
|
353
|
-
function
|
|
354
|
-
if (!a.isUndefined(
|
|
355
|
-
if (p.indexOf(
|
|
356
|
-
throw Error("Circular reference detected in " +
|
|
357
|
-
p.push(
|
|
339
|
+
function y(f, h) {
|
|
340
|
+
if (!a.isUndefined(f)) {
|
|
341
|
+
if (p.indexOf(f) !== -1)
|
|
342
|
+
throw Error("Circular reference detected in " + h.join("."));
|
|
343
|
+
p.push(f), a.forEach(f, function(S, N) {
|
|
358
344
|
(!(a.isUndefined(S) || S === null) && s.call(
|
|
359
345
|
t,
|
|
360
346
|
S,
|
|
361
|
-
a.isString(
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
)) === !0 &&
|
|
347
|
+
a.isString(N) ? N.trim() : N,
|
|
348
|
+
h,
|
|
349
|
+
w
|
|
350
|
+
)) === !0 && y(S, h ? h.concat(N) : [N]);
|
|
365
351
|
}), p.pop();
|
|
366
352
|
}
|
|
367
353
|
}
|
|
368
354
|
if (!a.isObject(e))
|
|
369
355
|
throw new TypeError("data must be an object");
|
|
370
|
-
return
|
|
356
|
+
return y(e), t;
|
|
371
357
|
}
|
|
372
|
-
function
|
|
358
|
+
function ce(e) {
|
|
373
359
|
const t = {
|
|
374
360
|
"!": "%21",
|
|
375
361
|
"'": "%27",
|
|
@@ -383,36 +369,36 @@ function ge(e) {
|
|
|
383
369
|
return t[r];
|
|
384
370
|
});
|
|
385
371
|
}
|
|
386
|
-
function
|
|
387
|
-
this._pairs = [], e &&
|
|
372
|
+
function ee(e, t) {
|
|
373
|
+
this._pairs = [], e && z(e, this, t);
|
|
388
374
|
}
|
|
389
|
-
const
|
|
390
|
-
|
|
375
|
+
const Ne = ee.prototype;
|
|
376
|
+
Ne.append = function(t, n) {
|
|
391
377
|
this._pairs.push([t, n]);
|
|
392
378
|
};
|
|
393
|
-
|
|
379
|
+
Ne.toString = function(t) {
|
|
394
380
|
const n = t ? function(r) {
|
|
395
|
-
return t.call(this, r,
|
|
396
|
-
} :
|
|
381
|
+
return t.call(this, r, ce);
|
|
382
|
+
} : ce;
|
|
397
383
|
return this._pairs.map(function(s) {
|
|
398
384
|
return n(s[0]) + "=" + n(s[1]);
|
|
399
385
|
}, "").join("&");
|
|
400
386
|
};
|
|
401
|
-
function
|
|
387
|
+
function St(e) {
|
|
402
388
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
403
389
|
}
|
|
404
|
-
function
|
|
390
|
+
function Pe(e, t, n) {
|
|
405
391
|
if (!t)
|
|
406
392
|
return e;
|
|
407
|
-
const r = n && n.encode ||
|
|
393
|
+
const r = n && n.encode || St, s = n && n.serialize;
|
|
408
394
|
let o;
|
|
409
|
-
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new
|
|
395
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ee(t, n).toString(r), o) {
|
|
410
396
|
const i = e.indexOf("#");
|
|
411
397
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
412
398
|
}
|
|
413
399
|
return e;
|
|
414
400
|
}
|
|
415
|
-
class
|
|
401
|
+
class Rt {
|
|
416
402
|
constructor() {
|
|
417
403
|
this.handlers = [];
|
|
418
404
|
}
|
|
@@ -466,40 +452,36 @@ class Kt {
|
|
|
466
452
|
});
|
|
467
453
|
}
|
|
468
454
|
}
|
|
469
|
-
const
|
|
455
|
+
const ue = Rt, Ce = {
|
|
470
456
|
silentJSONParsing: !0,
|
|
471
457
|
forcedJSONParsing: !0,
|
|
472
458
|
clarifyTimeoutError: !1
|
|
473
|
-
},
|
|
459
|
+
}, Ot = typeof URLSearchParams < "u" ? URLSearchParams : ee, At = typeof FormData < "u" ? FormData : null, Tt = typeof Blob < "u" ? Blob : null, xt = (() => {
|
|
460
|
+
let e;
|
|
461
|
+
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
462
|
+
})(), Nt = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
463
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), R = {
|
|
474
464
|
isBrowser: !0,
|
|
475
465
|
classes: {
|
|
476
|
-
URLSearchParams:
|
|
477
|
-
FormData:
|
|
478
|
-
Blob:
|
|
466
|
+
URLSearchParams: Ot,
|
|
467
|
+
FormData: At,
|
|
468
|
+
Blob: Tt
|
|
479
469
|
},
|
|
470
|
+
isStandardBrowserEnv: xt,
|
|
471
|
+
isStandardBrowserWebWorkerEnv: Nt,
|
|
480
472
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
481
|
-
}, de = typeof window < "u" && typeof document < "u", Yt = ((e) => de && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), en = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
482
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), tn = de && window.location.href || "http://localhost", nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
483
|
-
__proto__: null,
|
|
484
|
-
hasBrowserEnv: de,
|
|
485
|
-
hasStandardBrowserEnv: Yt,
|
|
486
|
-
hasStandardBrowserWebWorkerEnv: en,
|
|
487
|
-
origin: tn
|
|
488
|
-
}, Symbol.toStringTag, { value: "Module" })), A = {
|
|
489
|
-
...nn,
|
|
490
|
-
...Zt
|
|
491
473
|
};
|
|
492
|
-
function
|
|
493
|
-
return
|
|
474
|
+
function Pt(e, t) {
|
|
475
|
+
return z(e, new R.classes.URLSearchParams(), Object.assign({
|
|
494
476
|
visitor: function(n, r, s, o) {
|
|
495
|
-
return
|
|
477
|
+
return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
496
478
|
}
|
|
497
479
|
}, t));
|
|
498
480
|
}
|
|
499
|
-
function
|
|
481
|
+
function Ct(e) {
|
|
500
482
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
501
483
|
}
|
|
502
|
-
function
|
|
484
|
+
function gt(e) {
|
|
503
485
|
const t = {}, n = Object.keys(e);
|
|
504
486
|
let r;
|
|
505
487
|
const s = n.length;
|
|
@@ -508,23 +490,24 @@ function on(e) {
|
|
|
508
490
|
o = n[r], t[o] = e[o];
|
|
509
491
|
return t;
|
|
510
492
|
}
|
|
511
|
-
function
|
|
493
|
+
function ge(e) {
|
|
512
494
|
function t(n, r, s, o) {
|
|
513
495
|
let i = n[o++];
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
const c = Number.isFinite(+i), f = o >= n.length;
|
|
517
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = on(s[i])), !c);
|
|
496
|
+
const u = Number.isFinite(+i), d = o >= n.length;
|
|
497
|
+
return i = !i && a.isArray(s) ? s.length : i, d ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !u) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = gt(s[i])), !u);
|
|
518
498
|
}
|
|
519
499
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
520
500
|
const n = {};
|
|
521
501
|
return a.forEachEntry(e, (r, s) => {
|
|
522
|
-
t(
|
|
502
|
+
t(Ct(r), s, n, 0);
|
|
523
503
|
}), n;
|
|
524
504
|
}
|
|
525
505
|
return null;
|
|
526
506
|
}
|
|
527
|
-
|
|
507
|
+
const Ft = {
|
|
508
|
+
"Content-Type": void 0
|
|
509
|
+
};
|
|
510
|
+
function Bt(e, t, n) {
|
|
528
511
|
if (a.isString(e))
|
|
529
512
|
try {
|
|
530
513
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -534,45 +517,43 @@ function an(e, t, n) {
|
|
|
534
517
|
}
|
|
535
518
|
return (n || JSON.stringify)(e);
|
|
536
519
|
}
|
|
537
|
-
const
|
|
538
|
-
transitional:
|
|
539
|
-
adapter: ["xhr", "http"
|
|
520
|
+
const J = {
|
|
521
|
+
transitional: Ce,
|
|
522
|
+
adapter: ["xhr", "http"],
|
|
540
523
|
transformRequest: [function(t, n) {
|
|
541
524
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
542
525
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
543
|
-
return s ? JSON.stringify(
|
|
544
|
-
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t)
|
|
526
|
+
return s && s ? JSON.stringify(ge(t)) : t;
|
|
527
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
545
528
|
return t;
|
|
546
529
|
if (a.isArrayBufferView(t))
|
|
547
530
|
return t.buffer;
|
|
548
531
|
if (a.isURLSearchParams(t))
|
|
549
532
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
550
|
-
let
|
|
533
|
+
let u;
|
|
551
534
|
if (o) {
|
|
552
535
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
553
|
-
return
|
|
554
|
-
if ((
|
|
555
|
-
const
|
|
556
|
-
return
|
|
557
|
-
|
|
558
|
-
|
|
536
|
+
return Pt(t, this.formSerializer).toString();
|
|
537
|
+
if ((u = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
538
|
+
const d = this.env && this.env.FormData;
|
|
539
|
+
return z(
|
|
540
|
+
u ? { "files[]": t } : t,
|
|
541
|
+
d && new d(),
|
|
559
542
|
this.formSerializer
|
|
560
543
|
);
|
|
561
544
|
}
|
|
562
545
|
}
|
|
563
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
546
|
+
return o || s ? (n.setContentType("application/json", !1), Bt(t)) : t;
|
|
564
547
|
}],
|
|
565
548
|
transformResponse: [function(t) {
|
|
566
|
-
const n = this.transitional ||
|
|
567
|
-
if (a.isResponse(t) || a.isReadableStream(t))
|
|
568
|
-
return t;
|
|
549
|
+
const n = this.transitional || J.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
569
550
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
570
551
|
const i = !(n && n.silentJSONParsing) && s;
|
|
571
552
|
try {
|
|
572
553
|
return JSON.parse(t);
|
|
573
|
-
} catch (
|
|
554
|
+
} catch (u) {
|
|
574
555
|
if (i)
|
|
575
|
-
throw
|
|
556
|
+
throw u.name === "SyntaxError" ? m.from(u, m.ERR_BAD_RESPONSE, this, null, this.response) : u;
|
|
576
557
|
}
|
|
577
558
|
}
|
|
578
559
|
return t;
|
|
@@ -587,23 +568,25 @@ const pe = {
|
|
|
587
568
|
maxContentLength: -1,
|
|
588
569
|
maxBodyLength: -1,
|
|
589
570
|
env: {
|
|
590
|
-
FormData:
|
|
591
|
-
Blob:
|
|
571
|
+
FormData: R.classes.FormData,
|
|
572
|
+
Blob: R.classes.Blob
|
|
592
573
|
},
|
|
593
574
|
validateStatus: function(t) {
|
|
594
575
|
return t >= 200 && t < 300;
|
|
595
576
|
},
|
|
596
577
|
headers: {
|
|
597
578
|
common: {
|
|
598
|
-
Accept: "application/json, text/plain, */*"
|
|
599
|
-
"Content-Type": void 0
|
|
579
|
+
Accept: "application/json, text/plain, */*"
|
|
600
580
|
}
|
|
601
581
|
}
|
|
602
582
|
};
|
|
603
|
-
a.forEach(["delete", "get", "head"
|
|
604
|
-
|
|
583
|
+
a.forEach(["delete", "get", "head"], function(t) {
|
|
584
|
+
J.headers[t] = {};
|
|
605
585
|
});
|
|
606
|
-
|
|
586
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
587
|
+
J.headers[t] = a.merge(Ft);
|
|
588
|
+
});
|
|
589
|
+
const te = J, Dt = a.toObjectSet([
|
|
607
590
|
"age",
|
|
608
591
|
"authorization",
|
|
609
592
|
"content-length",
|
|
@@ -621,29 +604,29 @@ const he = pe, cn = a.toObjectSet([
|
|
|
621
604
|
"referer",
|
|
622
605
|
"retry-after",
|
|
623
606
|
"user-agent"
|
|
624
|
-
]),
|
|
607
|
+
]), _t = (e) => {
|
|
625
608
|
const t = {};
|
|
626
609
|
let n, r, s;
|
|
627
610
|
return e && e.split(`
|
|
628
611
|
`).forEach(function(i) {
|
|
629
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
612
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Dt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
630
613
|
}), t;
|
|
631
|
-
},
|
|
632
|
-
function
|
|
614
|
+
}, le = Symbol("internals");
|
|
615
|
+
function g(e) {
|
|
633
616
|
return e && String(e).trim().toLowerCase();
|
|
634
617
|
}
|
|
635
|
-
function
|
|
636
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
618
|
+
function U(e) {
|
|
619
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(U) : String(e);
|
|
637
620
|
}
|
|
638
|
-
function
|
|
621
|
+
function Lt(e) {
|
|
639
622
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
640
623
|
let r;
|
|
641
624
|
for (; r = n.exec(e); )
|
|
642
625
|
t[r[1]] = r[2];
|
|
643
626
|
return t;
|
|
644
627
|
}
|
|
645
|
-
const
|
|
646
|
-
function
|
|
628
|
+
const Ut = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
629
|
+
function W(e, t, n, r, s) {
|
|
647
630
|
if (a.isFunction(r))
|
|
648
631
|
return r.call(this, t, n);
|
|
649
632
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -653,10 +636,10 @@ function ee(e, t, n, r, s) {
|
|
|
653
636
|
return r.test(t);
|
|
654
637
|
}
|
|
655
638
|
}
|
|
656
|
-
function
|
|
639
|
+
function jt(e) {
|
|
657
640
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
658
641
|
}
|
|
659
|
-
function
|
|
642
|
+
function It(e, t) {
|
|
660
643
|
const n = a.toCamelCase(" " + t);
|
|
661
644
|
["get", "set", "has"].forEach((r) => {
|
|
662
645
|
Object.defineProperty(e, r + n, {
|
|
@@ -667,40 +650,31 @@ function pn(e, t) {
|
|
|
667
650
|
});
|
|
668
651
|
});
|
|
669
652
|
}
|
|
670
|
-
class
|
|
653
|
+
class $ {
|
|
671
654
|
constructor(t) {
|
|
672
655
|
t && this.set(t);
|
|
673
656
|
}
|
|
674
657
|
set(t, n, r) {
|
|
675
658
|
const s = this;
|
|
676
|
-
function o(
|
|
677
|
-
const l =
|
|
659
|
+
function o(u, d, c) {
|
|
660
|
+
const l = g(d);
|
|
678
661
|
if (!l)
|
|
679
662
|
throw new Error("header name must be a non-empty string");
|
|
680
663
|
const p = a.findKey(s, l);
|
|
681
|
-
(!p || s[p] === void 0 ||
|
|
664
|
+
(!p || s[p] === void 0 || c === !0 || c === void 0 && s[p] !== !1) && (s[p || d] = U(u));
|
|
682
665
|
}
|
|
683
|
-
const i = (
|
|
684
|
-
|
|
685
|
-
i(t, n);
|
|
686
|
-
else if (a.isString(t) && (t = t.trim()) && !fn(t))
|
|
687
|
-
i(un(t), n);
|
|
688
|
-
else if (a.isHeaders(t))
|
|
689
|
-
for (const [c, f] of t.entries())
|
|
690
|
-
o(f, c, r);
|
|
691
|
-
else
|
|
692
|
-
t != null && o(n, t, r);
|
|
693
|
-
return this;
|
|
666
|
+
const i = (u, d) => a.forEach(u, (c, l) => o(c, l, d));
|
|
667
|
+
return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Ut(t) ? i(_t(t), n) : t != null && o(n, t, r), this;
|
|
694
668
|
}
|
|
695
669
|
get(t, n) {
|
|
696
|
-
if (t =
|
|
670
|
+
if (t = g(t), t) {
|
|
697
671
|
const r = a.findKey(this, t);
|
|
698
672
|
if (r) {
|
|
699
673
|
const s = this[r];
|
|
700
674
|
if (!n)
|
|
701
675
|
return s;
|
|
702
676
|
if (n === !0)
|
|
703
|
-
return
|
|
677
|
+
return Lt(s);
|
|
704
678
|
if (a.isFunction(n))
|
|
705
679
|
return n.call(this, s, r);
|
|
706
680
|
if (a.isRegExp(n))
|
|
@@ -710,9 +684,9 @@ class X {
|
|
|
710
684
|
}
|
|
711
685
|
}
|
|
712
686
|
has(t, n) {
|
|
713
|
-
if (t =
|
|
687
|
+
if (t = g(t), t) {
|
|
714
688
|
const r = a.findKey(this, t);
|
|
715
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
689
|
+
return !!(r && this[r] !== void 0 && (!n || W(this, this[r], r, n)));
|
|
716
690
|
}
|
|
717
691
|
return !1;
|
|
718
692
|
}
|
|
@@ -720,9 +694,9 @@ class X {
|
|
|
720
694
|
const r = this;
|
|
721
695
|
let s = !1;
|
|
722
696
|
function o(i) {
|
|
723
|
-
if (i =
|
|
724
|
-
const
|
|
725
|
-
|
|
697
|
+
if (i = g(i), i) {
|
|
698
|
+
const u = a.findKey(r, i);
|
|
699
|
+
u && (!n || W(r, r[u], u, n)) && (delete r[u], s = !0);
|
|
726
700
|
}
|
|
727
701
|
}
|
|
728
702
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -732,7 +706,7 @@ class X {
|
|
|
732
706
|
let r = n.length, s = !1;
|
|
733
707
|
for (; r--; ) {
|
|
734
708
|
const o = n[r];
|
|
735
|
-
(!t ||
|
|
709
|
+
(!t || W(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
736
710
|
}
|
|
737
711
|
return s;
|
|
738
712
|
}
|
|
@@ -741,11 +715,11 @@ class X {
|
|
|
741
715
|
return a.forEach(this, (s, o) => {
|
|
742
716
|
const i = a.findKey(r, o);
|
|
743
717
|
if (i) {
|
|
744
|
-
n[i] =
|
|
718
|
+
n[i] = U(s), delete n[o];
|
|
745
719
|
return;
|
|
746
720
|
}
|
|
747
|
-
const
|
|
748
|
-
|
|
721
|
+
const u = t ? jt(o) : String(o).trim();
|
|
722
|
+
u !== o && delete n[o], n[u] = U(s), r[u] = !0;
|
|
749
723
|
}), this;
|
|
750
724
|
}
|
|
751
725
|
concat(...t) {
|
|
@@ -775,45 +749,37 @@ class X {
|
|
|
775
749
|
return n.forEach((s) => r.set(s)), r;
|
|
776
750
|
}
|
|
777
751
|
static accessor(t) {
|
|
778
|
-
const r = (this[
|
|
752
|
+
const r = (this[le] = this[le] = {
|
|
779
753
|
accessors: {}
|
|
780
754
|
}).accessors, s = this.prototype;
|
|
781
755
|
function o(i) {
|
|
782
|
-
const
|
|
783
|
-
r[
|
|
756
|
+
const u = g(i);
|
|
757
|
+
r[u] || (It(s, i), r[u] = !0);
|
|
784
758
|
}
|
|
785
759
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
786
760
|
}
|
|
787
761
|
}
|
|
788
|
-
|
|
789
|
-
a.
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
this[n] = r;
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
});
|
|
798
|
-
a.freezeMethods(X);
|
|
799
|
-
const x = X;
|
|
800
|
-
function te(e, t) {
|
|
801
|
-
const n = this || he, r = t || n, s = x.from(r.headers);
|
|
762
|
+
$.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
763
|
+
a.freezeMethods($.prototype);
|
|
764
|
+
a.freezeMethods($);
|
|
765
|
+
const T = $;
|
|
766
|
+
function K(e, t) {
|
|
767
|
+
const n = this || te, r = t || n, s = T.from(r.headers);
|
|
802
768
|
let o = r.data;
|
|
803
|
-
return a.forEach(e, function(
|
|
804
|
-
o =
|
|
769
|
+
return a.forEach(e, function(u) {
|
|
770
|
+
o = u.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
805
771
|
}), s.normalize(), o;
|
|
806
772
|
}
|
|
807
|
-
function
|
|
773
|
+
function Fe(e) {
|
|
808
774
|
return !!(e && e.__CANCEL__);
|
|
809
775
|
}
|
|
810
|
-
function
|
|
776
|
+
function D(e, t, n) {
|
|
811
777
|
m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
812
778
|
}
|
|
813
|
-
a.inherits(
|
|
779
|
+
a.inherits(D, m, {
|
|
814
780
|
__CANCEL__: !0
|
|
815
781
|
});
|
|
816
|
-
function
|
|
782
|
+
function kt(e, t, n) {
|
|
817
783
|
const r = n.config.validateStatus;
|
|
818
784
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
819
785
|
"Request failed with status code " + n.status,
|
|
@@ -823,65 +789,47 @@ function Ge(e, t, n) {
|
|
|
823
789
|
n
|
|
824
790
|
));
|
|
825
791
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
792
|
+
const Ht = R.isStandardBrowserEnv ? (
|
|
793
|
+
// Standard browser envs support document.cookie
|
|
794
|
+
function() {
|
|
795
|
+
return {
|
|
796
|
+
write: function(n, r, s, o, i, u) {
|
|
797
|
+
const d = [];
|
|
798
|
+
d.push(n + "=" + encodeURIComponent(r)), a.isNumber(s) && d.push("expires=" + new Date(s).toGMTString()), a.isString(o) && d.push("path=" + o), a.isString(i) && d.push("domain=" + i), u === !0 && d.push("secure"), document.cookie = d.join("; ");
|
|
799
|
+
},
|
|
800
|
+
read: function(n) {
|
|
801
|
+
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
802
|
+
return r ? decodeURIComponent(r[3]) : null;
|
|
803
|
+
},
|
|
804
|
+
remove: function(n) {
|
|
805
|
+
this.write(n, "", Date.now() - 864e5);
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
}()
|
|
809
|
+
) : (
|
|
810
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
811
|
+
function() {
|
|
812
|
+
return {
|
|
813
|
+
write: function() {
|
|
814
|
+
},
|
|
815
|
+
read: function() {
|
|
816
|
+
return null;
|
|
817
|
+
},
|
|
818
|
+
remove: function() {
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
}()
|
|
822
|
+
);
|
|
823
|
+
function Mt(e) {
|
|
824
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
829
825
|
}
|
|
830
|
-
function
|
|
831
|
-
|
|
832
|
-
const n = new Array(e), r = new Array(e);
|
|
833
|
-
let s = 0, o = 0, i;
|
|
834
|
-
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
835
|
-
const u = Date.now(), l = r[o];
|
|
836
|
-
i || (i = u), n[s] = f, r[s] = u;
|
|
837
|
-
let p = o, b = 0;
|
|
838
|
-
for (; p !== s; )
|
|
839
|
-
b += n[p++], p = p % e;
|
|
840
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
841
|
-
return;
|
|
842
|
-
const E = l && u - l;
|
|
843
|
-
return E ? Math.round(b * 1e3 / E) : void 0;
|
|
844
|
-
};
|
|
826
|
+
function qt(e, t) {
|
|
827
|
+
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
845
828
|
}
|
|
846
|
-
function
|
|
847
|
-
|
|
848
|
-
const i = (u, l = Date.now()) => {
|
|
849
|
-
n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
|
|
850
|
-
};
|
|
851
|
-
return [(...u) => {
|
|
852
|
-
const l = Date.now(), p = l - n;
|
|
853
|
-
p >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
854
|
-
o = null, i(s);
|
|
855
|
-
}, r - p)));
|
|
856
|
-
}, () => s && i(s)];
|
|
829
|
+
function Be(e, t) {
|
|
830
|
+
return e && !Mt(t) ? qt(e, t) : t;
|
|
857
831
|
}
|
|
858
|
-
const
|
|
859
|
-
let r = 0;
|
|
860
|
-
const s = mn(50, 250);
|
|
861
|
-
return yn((o) => {
|
|
862
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
863
|
-
r = i;
|
|
864
|
-
const p = {
|
|
865
|
-
loaded: i,
|
|
866
|
-
total: c,
|
|
867
|
-
progress: c ? i / c : void 0,
|
|
868
|
-
bytes: f,
|
|
869
|
-
rate: u || void 0,
|
|
870
|
-
estimated: u && c && l ? (c - i) / u : void 0,
|
|
871
|
-
event: o,
|
|
872
|
-
lengthComputable: c != null,
|
|
873
|
-
[t ? "download" : "upload"]: !0
|
|
874
|
-
};
|
|
875
|
-
e(p);
|
|
876
|
-
}, n);
|
|
877
|
-
}, Ae = (e, t) => {
|
|
878
|
-
const n = e != null;
|
|
879
|
-
return [(r) => t[0]({
|
|
880
|
-
lengthComputable: n,
|
|
881
|
-
total: e,
|
|
882
|
-
loaded: r
|
|
883
|
-
}), t[1]];
|
|
884
|
-
}, xe = (e) => (...t) => a.asap(() => e(...t)), wn = A.hasStandardBrowserEnv ? (
|
|
832
|
+
const zt = R.isStandardBrowserEnv ? (
|
|
885
833
|
// Standard browser envs have full support of the APIs needed to test
|
|
886
834
|
// whether the request URL is of the same origin as current location.
|
|
887
835
|
function() {
|
|
@@ -901,8 +849,8 @@ const J = (e, t, n = 3) => {
|
|
|
901
849
|
};
|
|
902
850
|
}
|
|
903
851
|
return r = s(window.location.href), function(i) {
|
|
904
|
-
const
|
|
905
|
-
return
|
|
852
|
+
const u = a.isString(i) ? s(i) : i;
|
|
853
|
+
return u.protocol === r.protocol && u.host === r.host;
|
|
906
854
|
};
|
|
907
855
|
}()
|
|
908
856
|
) : (
|
|
@@ -912,74 +860,198 @@ const J = (e, t, n = 3) => {
|
|
|
912
860
|
return !0;
|
|
913
861
|
};
|
|
914
862
|
}()
|
|
915
|
-
)
|
|
916
|
-
|
|
917
|
-
{
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
863
|
+
);
|
|
864
|
+
function Jt(e) {
|
|
865
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
866
|
+
return t && t[1] || "";
|
|
867
|
+
}
|
|
868
|
+
function $t(e, t) {
|
|
869
|
+
e = e || 10;
|
|
870
|
+
const n = new Array(e), r = new Array(e);
|
|
871
|
+
let s = 0, o = 0, i;
|
|
872
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
873
|
+
const c = Date.now(), l = r[o];
|
|
874
|
+
i || (i = c), n[s] = d, r[s] = c;
|
|
875
|
+
let p = o, w = 0;
|
|
876
|
+
for (; p !== s; )
|
|
877
|
+
w += n[p++], p = p % e;
|
|
878
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), c - i < t)
|
|
879
|
+
return;
|
|
880
|
+
const y = l && c - l;
|
|
881
|
+
return y ? Math.round(w * 1e3 / y) : void 0;
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
function fe(e, t) {
|
|
885
|
+
let n = 0;
|
|
886
|
+
const r = $t(50, 250);
|
|
887
|
+
return (s) => {
|
|
888
|
+
const o = s.loaded, i = s.lengthComputable ? s.total : void 0, u = o - n, d = r(u), c = o <= i;
|
|
889
|
+
n = o;
|
|
890
|
+
const l = {
|
|
891
|
+
loaded: o,
|
|
892
|
+
total: i,
|
|
893
|
+
progress: i ? o / i : void 0,
|
|
894
|
+
bytes: u,
|
|
895
|
+
rate: d || void 0,
|
|
896
|
+
estimated: d && i && c ? (i - o) / d : void 0,
|
|
897
|
+
event: s
|
|
898
|
+
};
|
|
899
|
+
l[t ? "download" : "upload"] = !0, e(l);
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
const Vt = typeof XMLHttpRequest < "u", Wt = Vt && function(e) {
|
|
903
|
+
return new Promise(function(n, r) {
|
|
904
|
+
let s = e.data;
|
|
905
|
+
const o = T.from(e.headers).normalize(), i = e.responseType;
|
|
906
|
+
let u;
|
|
907
|
+
function d() {
|
|
908
|
+
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
928
909
|
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
910
|
+
a.isFormData(s) && (R.isStandardBrowserEnv || R.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
|
|
911
|
+
let c = new XMLHttpRequest();
|
|
912
|
+
if (e.auth) {
|
|
913
|
+
const y = e.auth.username || "", f = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
914
|
+
o.set("Authorization", "Basic " + btoa(y + ":" + f));
|
|
915
|
+
}
|
|
916
|
+
const l = Be(e.baseURL, e.url);
|
|
917
|
+
c.open(e.method.toUpperCase(), Pe(l, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
|
|
918
|
+
function p() {
|
|
919
|
+
if (!c)
|
|
920
|
+
return;
|
|
921
|
+
const y = T.from(
|
|
922
|
+
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
923
|
+
), h = {
|
|
924
|
+
data: !i || i === "text" || i === "json" ? c.responseText : c.response,
|
|
925
|
+
status: c.status,
|
|
926
|
+
statusText: c.statusText,
|
|
927
|
+
headers: y,
|
|
928
|
+
config: e,
|
|
929
|
+
request: c
|
|
930
|
+
};
|
|
931
|
+
kt(function(S) {
|
|
932
|
+
n(S), d();
|
|
933
|
+
}, function(S) {
|
|
934
|
+
r(S), d();
|
|
935
|
+
}, h), c = null;
|
|
936
|
+
}
|
|
937
|
+
if ("onloadend" in c ? c.onloadend = p : c.onreadystatechange = function() {
|
|
938
|
+
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(p);
|
|
939
|
+
}, c.onabort = function() {
|
|
940
|
+
c && (r(new m("Request aborted", m.ECONNABORTED, e, c)), c = null);
|
|
941
|
+
}, c.onerror = function() {
|
|
942
|
+
r(new m("Network Error", m.ERR_NETWORK, e, c)), c = null;
|
|
943
|
+
}, c.ontimeout = function() {
|
|
944
|
+
let f = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
945
|
+
const h = e.transitional || Ce;
|
|
946
|
+
e.timeoutErrorMessage && (f = e.timeoutErrorMessage), r(new m(
|
|
947
|
+
f,
|
|
948
|
+
h.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
949
|
+
e,
|
|
950
|
+
c
|
|
951
|
+
)), c = null;
|
|
952
|
+
}, R.isStandardBrowserEnv) {
|
|
953
|
+
const y = (e.withCredentials || zt(l)) && e.xsrfCookieName && Ht.read(e.xsrfCookieName);
|
|
954
|
+
y && o.set(e.xsrfHeaderName, y);
|
|
955
|
+
}
|
|
956
|
+
s === void 0 && o.setContentType(null), "setRequestHeader" in c && a.forEach(o.toJSON(), function(f, h) {
|
|
957
|
+
c.setRequestHeader(h, f);
|
|
958
|
+
}), a.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), i && i !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", fe(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", fe(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (y) => {
|
|
959
|
+
c && (r(!y || y.type ? new D(null, e, c) : y), c.abort(), c = null);
|
|
960
|
+
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
961
|
+
const w = Jt(l);
|
|
962
|
+
if (w && R.protocols.indexOf(w) === -1) {
|
|
963
|
+
r(new m("Unsupported protocol " + w + ":", m.ERR_BAD_REQUEST, e));
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
c.send(s || null);
|
|
967
|
+
});
|
|
968
|
+
}, j = {
|
|
969
|
+
http: Et,
|
|
970
|
+
xhr: Wt
|
|
971
|
+
};
|
|
972
|
+
a.forEach(j, (e, t) => {
|
|
973
|
+
if (e) {
|
|
974
|
+
try {
|
|
975
|
+
Object.defineProperty(e, "name", { value: t });
|
|
976
|
+
} catch {
|
|
939
977
|
}
|
|
978
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
940
979
|
}
|
|
941
|
-
);
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
980
|
+
});
|
|
981
|
+
const Kt = {
|
|
982
|
+
getAdapter: (e) => {
|
|
983
|
+
e = a.isArray(e) ? e : [e];
|
|
984
|
+
const { length: t } = e;
|
|
985
|
+
let n, r;
|
|
986
|
+
for (let s = 0; s < t && (n = e[s], !(r = a.isString(n) ? j[n.toLowerCase()] : n)); s++)
|
|
987
|
+
;
|
|
988
|
+
if (!r)
|
|
989
|
+
throw r === !1 ? new m(
|
|
990
|
+
`Adapter ${n} is not supported by the environment`,
|
|
991
|
+
"ERR_NOT_SUPPORT"
|
|
992
|
+
) : new Error(
|
|
993
|
+
a.hasOwnProp(j, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
|
|
994
|
+
);
|
|
995
|
+
if (!a.isFunction(r))
|
|
996
|
+
throw new TypeError("adapter is not a function");
|
|
997
|
+
return r;
|
|
998
|
+
},
|
|
999
|
+
adapters: j
|
|
1000
|
+
};
|
|
1001
|
+
function G(e) {
|
|
1002
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1003
|
+
throw new D(null, e);
|
|
947
1004
|
}
|
|
948
|
-
function
|
|
949
|
-
return e
|
|
1005
|
+
function de(e) {
|
|
1006
|
+
return G(e), e.headers = T.from(e.headers), e.data = K.call(
|
|
1007
|
+
e,
|
|
1008
|
+
e.transformRequest
|
|
1009
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Kt.getAdapter(e.adapter || te.adapter)(e).then(function(r) {
|
|
1010
|
+
return G(e), r.data = K.call(
|
|
1011
|
+
e,
|
|
1012
|
+
e.transformResponse,
|
|
1013
|
+
r
|
|
1014
|
+
), r.headers = T.from(r.headers), r;
|
|
1015
|
+
}, function(r) {
|
|
1016
|
+
return Fe(r) || (G(e), r && r.response && (r.response.data = K.call(
|
|
1017
|
+
e,
|
|
1018
|
+
e.transformResponse,
|
|
1019
|
+
r.response
|
|
1020
|
+
), r.response.headers = T.from(r.response.headers))), Promise.reject(r);
|
|
1021
|
+
});
|
|
950
1022
|
}
|
|
951
|
-
const
|
|
952
|
-
function
|
|
1023
|
+
const pe = (e) => e instanceof T ? e.toJSON() : e;
|
|
1024
|
+
function P(e, t) {
|
|
953
1025
|
t = t || {};
|
|
954
1026
|
const n = {};
|
|
955
|
-
function r(
|
|
956
|
-
return a.isPlainObject(
|
|
1027
|
+
function r(c, l, p) {
|
|
1028
|
+
return a.isPlainObject(c) && a.isPlainObject(l) ? a.merge.call({ caseless: p }, c, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
957
1029
|
}
|
|
958
|
-
function s(
|
|
1030
|
+
function s(c, l, p) {
|
|
959
1031
|
if (a.isUndefined(l)) {
|
|
960
|
-
if (!a.isUndefined(
|
|
961
|
-
return r(void 0,
|
|
1032
|
+
if (!a.isUndefined(c))
|
|
1033
|
+
return r(void 0, c, p);
|
|
962
1034
|
} else
|
|
963
|
-
return r(
|
|
1035
|
+
return r(c, l, p);
|
|
964
1036
|
}
|
|
965
|
-
function o(
|
|
1037
|
+
function o(c, l) {
|
|
966
1038
|
if (!a.isUndefined(l))
|
|
967
1039
|
return r(void 0, l);
|
|
968
1040
|
}
|
|
969
|
-
function i(
|
|
1041
|
+
function i(c, l) {
|
|
970
1042
|
if (a.isUndefined(l)) {
|
|
971
|
-
if (!a.isUndefined(
|
|
972
|
-
return r(void 0,
|
|
1043
|
+
if (!a.isUndefined(c))
|
|
1044
|
+
return r(void 0, c);
|
|
973
1045
|
} else
|
|
974
1046
|
return r(void 0, l);
|
|
975
1047
|
}
|
|
976
|
-
function c
|
|
1048
|
+
function u(c, l, p) {
|
|
977
1049
|
if (p in t)
|
|
978
|
-
return r(
|
|
1050
|
+
return r(c, l);
|
|
979
1051
|
if (p in e)
|
|
980
|
-
return r(void 0,
|
|
1052
|
+
return r(void 0, c);
|
|
981
1053
|
}
|
|
982
|
-
const
|
|
1054
|
+
const d = {
|
|
983
1055
|
url: o,
|
|
984
1056
|
method: o,
|
|
985
1057
|
data: o,
|
|
@@ -990,7 +1062,6 @@ function B(e, t) {
|
|
|
990
1062
|
timeout: i,
|
|
991
1063
|
timeoutMessage: i,
|
|
992
1064
|
withCredentials: i,
|
|
993
|
-
withXSRFToken: i,
|
|
994
1065
|
adapter: i,
|
|
995
1066
|
responseType: i,
|
|
996
1067
|
xsrfCookieName: i,
|
|
@@ -1007,373 +1078,40 @@ function B(e, t) {
|
|
|
1007
1078
|
cancelToken: i,
|
|
1008
1079
|
socketPath: i,
|
|
1009
1080
|
responseEncoding: i,
|
|
1010
|
-
validateStatus:
|
|
1011
|
-
headers: (
|
|
1081
|
+
validateStatus: u,
|
|
1082
|
+
headers: (c, l) => s(pe(c), pe(l), !0)
|
|
1012
1083
|
};
|
|
1013
1084
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1014
|
-
const p =
|
|
1015
|
-
a.isUndefined(
|
|
1085
|
+
const p = d[l] || s, w = p(e[l], t[l], l);
|
|
1086
|
+
a.isUndefined(w) && p !== u || (n[l] = w);
|
|
1016
1087
|
}), n;
|
|
1017
1088
|
}
|
|
1018
|
-
const
|
|
1019
|
-
const t = B({}, e);
|
|
1020
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1021
|
-
t.headers = i = x.from(i), t.url = Ve(Xe(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1022
|
-
"Authorization",
|
|
1023
|
-
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1024
|
-
);
|
|
1025
|
-
let f;
|
|
1026
|
-
if (a.isFormData(n)) {
|
|
1027
|
-
if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
|
|
1028
|
-
i.setContentType(void 0);
|
|
1029
|
-
else if ((f = i.getContentType()) !== !1) {
|
|
1030
|
-
const [u, ...l] = f ? f.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1031
|
-
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
if (A.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && wn(t.url))) {
|
|
1035
|
-
const u = s && o && bn.read(o);
|
|
1036
|
-
u && i.set(s, u);
|
|
1037
|
-
}
|
|
1038
|
-
return t;
|
|
1039
|
-
}, Sn = typeof XMLHttpRequest < "u", gn = Sn && function(e) {
|
|
1040
|
-
return new Promise(function(n, r) {
|
|
1041
|
-
const s = Qe(e);
|
|
1042
|
-
let o = s.data;
|
|
1043
|
-
const i = x.from(s.headers).normalize();
|
|
1044
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, p, b, E, h;
|
|
1045
|
-
function y() {
|
|
1046
|
-
E && E(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1047
|
-
}
|
|
1048
|
-
let d = new XMLHttpRequest();
|
|
1049
|
-
d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
|
|
1050
|
-
function S() {
|
|
1051
|
-
if (!d)
|
|
1052
|
-
return;
|
|
1053
|
-
const w = x.from(
|
|
1054
|
-
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
1055
|
-
), _ = {
|
|
1056
|
-
data: !c || c === "text" || c === "json" ? d.responseText : d.response,
|
|
1057
|
-
status: d.status,
|
|
1058
|
-
statusText: d.statusText,
|
|
1059
|
-
headers: w,
|
|
1060
|
-
config: e,
|
|
1061
|
-
request: d
|
|
1062
|
-
};
|
|
1063
|
-
Ge(function(N) {
|
|
1064
|
-
n(N), y();
|
|
1065
|
-
}, function(N) {
|
|
1066
|
-
r(N), y();
|
|
1067
|
-
}, _), d = null;
|
|
1068
|
-
}
|
|
1069
|
-
"onloadend" in d ? d.onloadend = S : d.onreadystatechange = function() {
|
|
1070
|
-
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1071
|
-
}, d.onabort = function() {
|
|
1072
|
-
d && (r(new m("Request aborted", m.ECONNABORTED, e, d)), d = null);
|
|
1073
|
-
}, d.onerror = function() {
|
|
1074
|
-
r(new m("Network Error", m.ERR_NETWORK, e, d)), d = null;
|
|
1075
|
-
}, d.ontimeout = function() {
|
|
1076
|
-
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1077
|
-
const _ = s.transitional || We;
|
|
1078
|
-
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(new m(
|
|
1079
|
-
T,
|
|
1080
|
-
_.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1081
|
-
e,
|
|
1082
|
-
d
|
|
1083
|
-
)), d = null;
|
|
1084
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(T, _) {
|
|
1085
|
-
d.setRequestHeader(_, T);
|
|
1086
|
-
}), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), u && ([b, h] = J(u, !0), d.addEventListener("progress", b)), f && d.upload && ([p, E] = J(f), d.upload.addEventListener("progress", p), d.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (w) => {
|
|
1087
|
-
d && (r(!w || w.type ? new U(null, e, d) : w), d.abort(), d = null);
|
|
1088
|
-
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1089
|
-
const g = hn(s.url);
|
|
1090
|
-
if (g && A.protocols.indexOf(g) === -1) {
|
|
1091
|
-
r(new m("Unsupported protocol " + g + ":", m.ERR_BAD_REQUEST, e));
|
|
1092
|
-
return;
|
|
1093
|
-
}
|
|
1094
|
-
d.send(o || null);
|
|
1095
|
-
});
|
|
1096
|
-
}, On = (e, t) => {
|
|
1097
|
-
let n = new AbortController(), r;
|
|
1098
|
-
const s = function(f) {
|
|
1099
|
-
if (!r) {
|
|
1100
|
-
r = !0, i();
|
|
1101
|
-
const u = f instanceof Error ? f : this.reason;
|
|
1102
|
-
n.abort(u instanceof m ? u : new U(u instanceof Error ? u.message : u));
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
let o = t && setTimeout(() => {
|
|
1106
|
-
s(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
|
|
1107
|
-
}, t);
|
|
1108
|
-
const i = () => {
|
|
1109
|
-
e && (o && clearTimeout(o), o = null, e.forEach((f) => {
|
|
1110
|
-
f && (f.removeEventListener ? f.removeEventListener("abort", s) : f.unsubscribe(s));
|
|
1111
|
-
}), e = null);
|
|
1112
|
-
};
|
|
1113
|
-
e.forEach((f) => f && f.addEventListener && f.addEventListener("abort", s));
|
|
1114
|
-
const { signal: c } = n;
|
|
1115
|
-
return c.unsubscribe = i, [c, () => {
|
|
1116
|
-
o && clearTimeout(o), o = null;
|
|
1117
|
-
}];
|
|
1118
|
-
}, Tn = On, An = function* (e, t) {
|
|
1119
|
-
let n = e.byteLength;
|
|
1120
|
-
if (!t || n < t) {
|
|
1121
|
-
yield e;
|
|
1122
|
-
return;
|
|
1123
|
-
}
|
|
1124
|
-
let r = 0, s;
|
|
1125
|
-
for (; r < n; )
|
|
1126
|
-
s = r + t, yield e.slice(r, s), r = s;
|
|
1127
|
-
}, xn = async function* (e, t, n) {
|
|
1128
|
-
for await (const r of e)
|
|
1129
|
-
yield* An(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
|
|
1130
|
-
}, Pe = (e, t, n, r, s) => {
|
|
1131
|
-
const o = xn(e, t, s);
|
|
1132
|
-
let i = 0, c, f = (u) => {
|
|
1133
|
-
c || (c = !0, r && r(u));
|
|
1134
|
-
};
|
|
1135
|
-
return new ReadableStream({
|
|
1136
|
-
async pull(u) {
|
|
1137
|
-
try {
|
|
1138
|
-
const { done: l, value: p } = await o.next();
|
|
1139
|
-
if (l) {
|
|
1140
|
-
f(), u.close();
|
|
1141
|
-
return;
|
|
1142
|
-
}
|
|
1143
|
-
let b = p.byteLength;
|
|
1144
|
-
if (n) {
|
|
1145
|
-
let E = i += b;
|
|
1146
|
-
n(E);
|
|
1147
|
-
}
|
|
1148
|
-
u.enqueue(new Uint8Array(p));
|
|
1149
|
-
} catch (l) {
|
|
1150
|
-
throw f(l), l;
|
|
1151
|
-
}
|
|
1152
|
-
},
|
|
1153
|
-
cancel(u) {
|
|
1154
|
-
return f(u), o.return();
|
|
1155
|
-
}
|
|
1156
|
-
}, {
|
|
1157
|
-
highWaterMark: 2
|
|
1158
|
-
});
|
|
1159
|
-
}, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ze = Q && typeof ReadableStream == "function", oe = Q && (typeof TextEncoder == "function" ? ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ye = (e, ...t) => {
|
|
1160
|
-
try {
|
|
1161
|
-
return !!e(...t);
|
|
1162
|
-
} catch {
|
|
1163
|
-
return !1;
|
|
1164
|
-
}
|
|
1165
|
-
}, Cn = Ze && Ye(() => {
|
|
1166
|
-
let e = !1;
|
|
1167
|
-
const t = new Request(A.origin, {
|
|
1168
|
-
body: new ReadableStream(),
|
|
1169
|
-
method: "POST",
|
|
1170
|
-
get duplex() {
|
|
1171
|
-
return e = !0, "half";
|
|
1172
|
-
}
|
|
1173
|
-
}).headers.has("Content-Type");
|
|
1174
|
-
return e && !t;
|
|
1175
|
-
}), Ne = 64 * 1024, ie = Ze && Ye(() => a.isReadableStream(new Response("").body)), $ = {
|
|
1176
|
-
stream: ie && ((e) => e.body)
|
|
1177
|
-
};
|
|
1178
|
-
Q && ((e) => {
|
|
1179
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1180
|
-
!$[t] && ($[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1181
|
-
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
})(new Response());
|
|
1185
|
-
const Pn = async (e) => {
|
|
1186
|
-
if (e == null)
|
|
1187
|
-
return 0;
|
|
1188
|
-
if (a.isBlob(e))
|
|
1189
|
-
return e.size;
|
|
1190
|
-
if (a.isSpecCompliantForm(e))
|
|
1191
|
-
return (await new Request(e).arrayBuffer()).byteLength;
|
|
1192
|
-
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1193
|
-
return e.byteLength;
|
|
1194
|
-
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1195
|
-
return (await oe(e)).byteLength;
|
|
1196
|
-
}, Nn = async (e, t) => {
|
|
1197
|
-
const n = a.toFiniteNumber(e.getContentLength());
|
|
1198
|
-
return n ?? Pn(t);
|
|
1199
|
-
}, Fn = Q && (async (e) => {
|
|
1200
|
-
let {
|
|
1201
|
-
url: t,
|
|
1202
|
-
method: n,
|
|
1203
|
-
data: r,
|
|
1204
|
-
signal: s,
|
|
1205
|
-
cancelToken: o,
|
|
1206
|
-
timeout: i,
|
|
1207
|
-
onDownloadProgress: c,
|
|
1208
|
-
onUploadProgress: f,
|
|
1209
|
-
responseType: u,
|
|
1210
|
-
headers: l,
|
|
1211
|
-
withCredentials: p = "same-origin",
|
|
1212
|
-
fetchOptions: b
|
|
1213
|
-
} = Qe(e);
|
|
1214
|
-
u = u ? (u + "").toLowerCase() : "text";
|
|
1215
|
-
let [E, h] = s || o || i ? Tn([s, o], i) : [], y, d;
|
|
1216
|
-
const S = () => {
|
|
1217
|
-
!y && setTimeout(() => {
|
|
1218
|
-
E && E.unsubscribe();
|
|
1219
|
-
}), y = !0;
|
|
1220
|
-
};
|
|
1221
|
-
let g;
|
|
1222
|
-
try {
|
|
1223
|
-
if (f && Cn && n !== "get" && n !== "head" && (g = await Nn(l, r)) !== 0) {
|
|
1224
|
-
let P = new Request(t, {
|
|
1225
|
-
method: "POST",
|
|
1226
|
-
body: r,
|
|
1227
|
-
duplex: "half"
|
|
1228
|
-
}), N;
|
|
1229
|
-
if (a.isFormData(r) && (N = P.headers.get("content-type")) && l.setContentType(N), P.body) {
|
|
1230
|
-
const [Z, q] = Ae(
|
|
1231
|
-
g,
|
|
1232
|
-
J(xe(f))
|
|
1233
|
-
);
|
|
1234
|
-
r = Pe(P.body, Ne, Z, q, oe);
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
a.isString(p) || (p = p ? "include" : "omit"), d = new Request(t, {
|
|
1238
|
-
...b,
|
|
1239
|
-
signal: E,
|
|
1240
|
-
method: n.toUpperCase(),
|
|
1241
|
-
headers: l.normalize().toJSON(),
|
|
1242
|
-
body: r,
|
|
1243
|
-
duplex: "half",
|
|
1244
|
-
credentials: p
|
|
1245
|
-
});
|
|
1246
|
-
let w = await fetch(d);
|
|
1247
|
-
const T = ie && (u === "stream" || u === "response");
|
|
1248
|
-
if (ie && (c || T)) {
|
|
1249
|
-
const P = {};
|
|
1250
|
-
["status", "statusText", "headers"].forEach((we) => {
|
|
1251
|
-
P[we] = w[we];
|
|
1252
|
-
});
|
|
1253
|
-
const N = a.toFiniteNumber(w.headers.get("content-length")), [Z, q] = c && Ae(
|
|
1254
|
-
N,
|
|
1255
|
-
J(xe(c), !0)
|
|
1256
|
-
) || [];
|
|
1257
|
-
w = new Response(
|
|
1258
|
-
Pe(w.body, Ne, Z, () => {
|
|
1259
|
-
q && q(), T && S();
|
|
1260
|
-
}, oe),
|
|
1261
|
-
P
|
|
1262
|
-
);
|
|
1263
|
-
}
|
|
1264
|
-
u = u || "text";
|
|
1265
|
-
let _ = await $[a.findKey($, u) || "text"](w, e);
|
|
1266
|
-
return !T && S(), h && h(), await new Promise((P, N) => {
|
|
1267
|
-
Ge(P, N, {
|
|
1268
|
-
data: _,
|
|
1269
|
-
headers: x.from(w.headers),
|
|
1270
|
-
status: w.status,
|
|
1271
|
-
statusText: w.statusText,
|
|
1272
|
-
config: e,
|
|
1273
|
-
request: d
|
|
1274
|
-
});
|
|
1275
|
-
});
|
|
1276
|
-
} catch (w) {
|
|
1277
|
-
throw S(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1278
|
-
new m("Network Error", m.ERR_NETWORK, e, d),
|
|
1279
|
-
{
|
|
1280
|
-
cause: w.cause || w
|
|
1281
|
-
}
|
|
1282
|
-
) : m.from(w, w && w.code, e, d);
|
|
1283
|
-
}
|
|
1284
|
-
}), ae = {
|
|
1285
|
-
http: $t,
|
|
1286
|
-
xhr: gn,
|
|
1287
|
-
fetch: Fn
|
|
1288
|
-
};
|
|
1289
|
-
a.forEach(ae, (e, t) => {
|
|
1290
|
-
if (e) {
|
|
1291
|
-
try {
|
|
1292
|
-
Object.defineProperty(e, "name", { value: t });
|
|
1293
|
-
} catch {
|
|
1294
|
-
}
|
|
1295
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
1296
|
-
}
|
|
1297
|
-
});
|
|
1298
|
-
const Fe = (e) => `- ${e}`, _n = (e) => a.isFunction(e) || e === null || e === !1, et = {
|
|
1299
|
-
getAdapter: (e) => {
|
|
1300
|
-
e = a.isArray(e) ? e : [e];
|
|
1301
|
-
const { length: t } = e;
|
|
1302
|
-
let n, r;
|
|
1303
|
-
const s = {};
|
|
1304
|
-
for (let o = 0; o < t; o++) {
|
|
1305
|
-
n = e[o];
|
|
1306
|
-
let i;
|
|
1307
|
-
if (r = n, !_n(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
|
|
1308
|
-
throw new m(`Unknown adapter '${i}'`);
|
|
1309
|
-
if (r)
|
|
1310
|
-
break;
|
|
1311
|
-
s[i || "#" + o] = r;
|
|
1312
|
-
}
|
|
1313
|
-
if (!r) {
|
|
1314
|
-
const o = Object.entries(s).map(
|
|
1315
|
-
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1316
|
-
);
|
|
1317
|
-
let i = t ? o.length > 1 ? `since :
|
|
1318
|
-
` + o.map(Fe).join(`
|
|
1319
|
-
`) : " " + Fe(o[0]) : "as no adapter specified";
|
|
1320
|
-
throw new m(
|
|
1321
|
-
"There is no suitable adapter to dispatch the request " + i,
|
|
1322
|
-
"ERR_NOT_SUPPORT"
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
return r;
|
|
1326
|
-
},
|
|
1327
|
-
adapters: ae
|
|
1328
|
-
};
|
|
1329
|
-
function ne(e) {
|
|
1330
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1331
|
-
throw new U(null, e);
|
|
1332
|
-
}
|
|
1333
|
-
function _e(e) {
|
|
1334
|
-
return ne(e), e.headers = x.from(e.headers), e.data = te.call(
|
|
1335
|
-
e,
|
|
1336
|
-
e.transformRequest
|
|
1337
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), et.getAdapter(e.adapter || he.adapter)(e).then(function(r) {
|
|
1338
|
-
return ne(e), r.data = te.call(
|
|
1339
|
-
e,
|
|
1340
|
-
e.transformResponse,
|
|
1341
|
-
r
|
|
1342
|
-
), r.headers = x.from(r.headers), r;
|
|
1343
|
-
}, function(r) {
|
|
1344
|
-
return Ke(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1345
|
-
e,
|
|
1346
|
-
e.transformResponse,
|
|
1347
|
-
r.response
|
|
1348
|
-
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
const tt = "1.7.4", me = {};
|
|
1089
|
+
const De = "1.4.0", ne = {};
|
|
1352
1090
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1353
|
-
|
|
1091
|
+
ne[e] = function(r) {
|
|
1354
1092
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1355
1093
|
};
|
|
1356
1094
|
});
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1095
|
+
const he = {};
|
|
1096
|
+
ne.transitional = function(t, n, r) {
|
|
1359
1097
|
function s(o, i) {
|
|
1360
|
-
return "[Axios v" +
|
|
1098
|
+
return "[Axios v" + De + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1361
1099
|
}
|
|
1362
|
-
return (o, i,
|
|
1100
|
+
return (o, i, u) => {
|
|
1363
1101
|
if (t === !1)
|
|
1364
1102
|
throw new m(
|
|
1365
1103
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1366
1104
|
m.ERR_DEPRECATED
|
|
1367
1105
|
);
|
|
1368
|
-
return n && !
|
|
1106
|
+
return n && !he[i] && (he[i] = !0, console.warn(
|
|
1369
1107
|
s(
|
|
1370
1108
|
i,
|
|
1371
1109
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1372
1110
|
)
|
|
1373
|
-
)), t ? t(o, i,
|
|
1111
|
+
)), t ? t(o, i, u) : !0;
|
|
1374
1112
|
};
|
|
1375
1113
|
};
|
|
1376
|
-
function
|
|
1114
|
+
function Gt(e, t, n) {
|
|
1377
1115
|
if (typeof e != "object")
|
|
1378
1116
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1379
1117
|
const r = Object.keys(e);
|
|
@@ -1381,24 +1119,24 @@ function Ln(e, t, n) {
|
|
|
1381
1119
|
for (; s-- > 0; ) {
|
|
1382
1120
|
const o = r[s], i = t[o];
|
|
1383
1121
|
if (i) {
|
|
1384
|
-
const
|
|
1385
|
-
if (
|
|
1386
|
-
throw new m("option " + o + " must be " +
|
|
1122
|
+
const u = e[o], d = u === void 0 || i(u, o, e);
|
|
1123
|
+
if (d !== !0)
|
|
1124
|
+
throw new m("option " + o + " must be " + d, m.ERR_BAD_OPTION_VALUE);
|
|
1387
1125
|
continue;
|
|
1388
1126
|
}
|
|
1389
1127
|
if (n !== !0)
|
|
1390
1128
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1391
1129
|
}
|
|
1392
1130
|
}
|
|
1393
|
-
const
|
|
1394
|
-
assertOptions:
|
|
1395
|
-
validators:
|
|
1396
|
-
},
|
|
1397
|
-
class
|
|
1131
|
+
const Q = {
|
|
1132
|
+
assertOptions: Gt,
|
|
1133
|
+
validators: ne
|
|
1134
|
+
}, x = Q.validators;
|
|
1135
|
+
class k {
|
|
1398
1136
|
constructor(t) {
|
|
1399
1137
|
this.defaults = t, this.interceptors = {
|
|
1400
|
-
request: new
|
|
1401
|
-
response: new
|
|
1138
|
+
request: new ue(),
|
|
1139
|
+
response: new ue()
|
|
1402
1140
|
};
|
|
1403
1141
|
}
|
|
1404
1142
|
/**
|
|
@@ -1409,91 +1147,74 @@ class V {
|
|
|
1409
1147
|
*
|
|
1410
1148
|
* @returns {Promise} The Promise to be fulfilled
|
|
1411
1149
|
*/
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
return await this._request(t, n);
|
|
1415
|
-
} catch (r) {
|
|
1416
|
-
if (r instanceof Error) {
|
|
1417
|
-
let s;
|
|
1418
|
-
Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
|
|
1419
|
-
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1420
|
-
try {
|
|
1421
|
-
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1422
|
-
` + o) : r.stack = o;
|
|
1423
|
-
} catch {
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
throw r;
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
_request(t, n) {
|
|
1430
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1150
|
+
request(t, n) {
|
|
1151
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = P(this.defaults, n);
|
|
1431
1152
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1432
|
-
r !== void 0 &&
|
|
1433
|
-
silentJSONParsing:
|
|
1434
|
-
forcedJSONParsing:
|
|
1435
|
-
clarifyTimeoutError:
|
|
1153
|
+
r !== void 0 && Q.assertOptions(r, {
|
|
1154
|
+
silentJSONParsing: x.transitional(x.boolean),
|
|
1155
|
+
forcedJSONParsing: x.transitional(x.boolean),
|
|
1156
|
+
clarifyTimeoutError: x.transitional(x.boolean)
|
|
1436
1157
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1437
1158
|
serialize: s
|
|
1438
|
-
} :
|
|
1439
|
-
encode:
|
|
1440
|
-
serialize:
|
|
1159
|
+
} : Q.assertOptions(s, {
|
|
1160
|
+
encode: x.function,
|
|
1161
|
+
serialize: x.function
|
|
1441
1162
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1442
|
-
let i
|
|
1163
|
+
let i;
|
|
1164
|
+
i = o && a.merge(
|
|
1443
1165
|
o.common,
|
|
1444
1166
|
o[n.method]
|
|
1445
|
-
)
|
|
1446
|
-
o && a.forEach(
|
|
1167
|
+
), i && a.forEach(
|
|
1447
1168
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1448
|
-
(
|
|
1449
|
-
delete o[
|
|
1169
|
+
(f) => {
|
|
1170
|
+
delete o[f];
|
|
1450
1171
|
}
|
|
1451
|
-
), n.headers =
|
|
1452
|
-
const c = [];
|
|
1453
|
-
let f = !0;
|
|
1454
|
-
this.interceptors.request.forEach(function(y) {
|
|
1455
|
-
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
|
|
1456
|
-
});
|
|
1172
|
+
), n.headers = T.concat(i, o);
|
|
1457
1173
|
const u = [];
|
|
1458
|
-
|
|
1459
|
-
|
|
1174
|
+
let d = !0;
|
|
1175
|
+
this.interceptors.request.forEach(function(h) {
|
|
1176
|
+
typeof h.runWhen == "function" && h.runWhen(n) === !1 || (d = d && h.synchronous, u.unshift(h.fulfilled, h.rejected));
|
|
1460
1177
|
});
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1178
|
+
const c = [];
|
|
1179
|
+
this.interceptors.response.forEach(function(h) {
|
|
1180
|
+
c.push(h.fulfilled, h.rejected);
|
|
1181
|
+
});
|
|
1182
|
+
let l, p = 0, w;
|
|
1183
|
+
if (!d) {
|
|
1184
|
+
const f = [de.bind(this), void 0];
|
|
1185
|
+
for (f.unshift.apply(f, u), f.push.apply(f, c), w = f.length, l = Promise.resolve(n); p < w; )
|
|
1186
|
+
l = l.then(f[p++], f[p++]);
|
|
1466
1187
|
return l;
|
|
1467
1188
|
}
|
|
1468
|
-
|
|
1469
|
-
let
|
|
1470
|
-
for (p = 0; p <
|
|
1471
|
-
const
|
|
1189
|
+
w = u.length;
|
|
1190
|
+
let y = n;
|
|
1191
|
+
for (p = 0; p < w; ) {
|
|
1192
|
+
const f = u[p++], h = u[p++];
|
|
1472
1193
|
try {
|
|
1473
|
-
|
|
1474
|
-
} catch (
|
|
1475
|
-
|
|
1194
|
+
y = f(y);
|
|
1195
|
+
} catch (A) {
|
|
1196
|
+
h.call(this, A);
|
|
1476
1197
|
break;
|
|
1477
1198
|
}
|
|
1478
1199
|
}
|
|
1479
1200
|
try {
|
|
1480
|
-
l =
|
|
1481
|
-
} catch (
|
|
1482
|
-
return Promise.reject(
|
|
1201
|
+
l = de.call(this, y);
|
|
1202
|
+
} catch (f) {
|
|
1203
|
+
return Promise.reject(f);
|
|
1483
1204
|
}
|
|
1484
|
-
for (p = 0,
|
|
1485
|
-
l = l.then(
|
|
1205
|
+
for (p = 0, w = c.length; p < w; )
|
|
1206
|
+
l = l.then(c[p++], c[p++]);
|
|
1486
1207
|
return l;
|
|
1487
1208
|
}
|
|
1488
1209
|
getUri(t) {
|
|
1489
|
-
t =
|
|
1490
|
-
const n =
|
|
1491
|
-
return
|
|
1210
|
+
t = P(this.defaults, t);
|
|
1211
|
+
const n = Be(t.baseURL, t.url);
|
|
1212
|
+
return Pe(n, t.params, t.paramsSerializer);
|
|
1492
1213
|
}
|
|
1493
1214
|
}
|
|
1494
1215
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1495
|
-
|
|
1496
|
-
return this.request(
|
|
1216
|
+
k.prototype[t] = function(n, r) {
|
|
1217
|
+
return this.request(P(r || {}, {
|
|
1497
1218
|
method: t,
|
|
1498
1219
|
url: n,
|
|
1499
1220
|
data: (r || {}).data
|
|
@@ -1502,8 +1223,8 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1502
1223
|
});
|
|
1503
1224
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1504
1225
|
function n(r) {
|
|
1505
|
-
return function(o, i,
|
|
1506
|
-
return this.request(
|
|
1226
|
+
return function(o, i, u) {
|
|
1227
|
+
return this.request(P(u || {}, {
|
|
1507
1228
|
method: t,
|
|
1508
1229
|
headers: r ? {
|
|
1509
1230
|
"Content-Type": "multipart/form-data"
|
|
@@ -1513,10 +1234,10 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1513
1234
|
}));
|
|
1514
1235
|
};
|
|
1515
1236
|
}
|
|
1516
|
-
|
|
1237
|
+
k.prototype[t] = n(), k.prototype[t + "Form"] = n(!0);
|
|
1517
1238
|
});
|
|
1518
|
-
const
|
|
1519
|
-
class
|
|
1239
|
+
const I = k;
|
|
1240
|
+
class re {
|
|
1520
1241
|
constructor(t) {
|
|
1521
1242
|
if (typeof t != "function")
|
|
1522
1243
|
throw new TypeError("executor must be a function.");
|
|
@@ -1534,14 +1255,14 @@ class ye {
|
|
|
1534
1255
|
r._listeners = null;
|
|
1535
1256
|
}), this.promise.then = (s) => {
|
|
1536
1257
|
let o;
|
|
1537
|
-
const i = new Promise((
|
|
1538
|
-
r.subscribe(
|
|
1258
|
+
const i = new Promise((u) => {
|
|
1259
|
+
r.subscribe(u), o = u;
|
|
1539
1260
|
}).then(s);
|
|
1540
1261
|
return i.cancel = function() {
|
|
1541
1262
|
r.unsubscribe(o);
|
|
1542
1263
|
}, i;
|
|
1543
|
-
}, t(function(o, i,
|
|
1544
|
-
r.reason || (r.reason = new
|
|
1264
|
+
}, t(function(o, i, u) {
|
|
1265
|
+
r.reason || (r.reason = new D(o, i, u), n(r.reason));
|
|
1545
1266
|
});
|
|
1546
1267
|
}
|
|
1547
1268
|
/**
|
|
@@ -1577,23 +1298,23 @@ class ye {
|
|
|
1577
1298
|
static source() {
|
|
1578
1299
|
let t;
|
|
1579
1300
|
return {
|
|
1580
|
-
token: new
|
|
1301
|
+
token: new re(function(s) {
|
|
1581
1302
|
t = s;
|
|
1582
1303
|
}),
|
|
1583
1304
|
cancel: t
|
|
1584
1305
|
};
|
|
1585
1306
|
}
|
|
1586
1307
|
}
|
|
1587
|
-
const
|
|
1588
|
-
function
|
|
1308
|
+
const Xt = re;
|
|
1309
|
+
function vt(e) {
|
|
1589
1310
|
return function(n) {
|
|
1590
1311
|
return e.apply(null, n);
|
|
1591
1312
|
};
|
|
1592
1313
|
}
|
|
1593
|
-
function
|
|
1314
|
+
function Qt(e) {
|
|
1594
1315
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1595
1316
|
}
|
|
1596
|
-
const
|
|
1317
|
+
const Y = {
|
|
1597
1318
|
Continue: 100,
|
|
1598
1319
|
SwitchingProtocols: 101,
|
|
1599
1320
|
Processing: 102,
|
|
@@ -1658,48 +1379,47 @@ const ue = {
|
|
|
1658
1379
|
NotExtended: 510,
|
|
1659
1380
|
NetworkAuthenticationRequired: 511
|
|
1660
1381
|
};
|
|
1661
|
-
Object.entries(
|
|
1662
|
-
|
|
1382
|
+
Object.entries(Y).forEach(([e, t]) => {
|
|
1383
|
+
Y[t] = e;
|
|
1663
1384
|
});
|
|
1664
|
-
const
|
|
1665
|
-
function
|
|
1666
|
-
const t = new
|
|
1667
|
-
return a.extend(n,
|
|
1668
|
-
return
|
|
1385
|
+
const Yt = Y;
|
|
1386
|
+
function _e(e) {
|
|
1387
|
+
const t = new I(e), n = me(I.prototype.request, t);
|
|
1388
|
+
return a.extend(n, I.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1389
|
+
return _e(P(e, s));
|
|
1669
1390
|
}, n;
|
|
1670
1391
|
}
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1392
|
+
const E = _e(te);
|
|
1393
|
+
E.Axios = I;
|
|
1394
|
+
E.CanceledError = D;
|
|
1395
|
+
E.CancelToken = Xt;
|
|
1396
|
+
E.isCancel = Fe;
|
|
1397
|
+
E.VERSION = De;
|
|
1398
|
+
E.toFormData = z;
|
|
1399
|
+
E.AxiosError = m;
|
|
1400
|
+
E.Cancel = E.CanceledError;
|
|
1401
|
+
E.all = function(t) {
|
|
1681
1402
|
return Promise.all(t);
|
|
1682
1403
|
};
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
timeout: (t == null ? void 0 : t.timeout) || 3e4
|
|
1404
|
+
E.spread = vt;
|
|
1405
|
+
E.isAxiosError = Qt;
|
|
1406
|
+
E.mergeConfig = P;
|
|
1407
|
+
E.AxiosHeaders = T;
|
|
1408
|
+
E.formToJSON = (e) => ge(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1409
|
+
E.HttpStatusCode = Yt;
|
|
1410
|
+
E.default = E;
|
|
1411
|
+
const Zt = E;
|
|
1412
|
+
class tn {
|
|
1413
|
+
constructor() {
|
|
1414
|
+
se(this, "axiosInstance");
|
|
1415
|
+
this.axiosInstance = Zt.create({
|
|
1416
|
+
timeout: 3e4
|
|
1697
1417
|
}), this.axiosInstance.interceptors.request.use(
|
|
1698
|
-
(
|
|
1699
|
-
(
|
|
1418
|
+
(t) => t,
|
|
1419
|
+
(t) => Promise.reject(t)
|
|
1700
1420
|
), this.axiosInstance.interceptors.response.use(
|
|
1701
|
-
(
|
|
1702
|
-
(
|
|
1421
|
+
(t) => t,
|
|
1422
|
+
(t) => Promise.reject(t)
|
|
1703
1423
|
);
|
|
1704
1424
|
}
|
|
1705
1425
|
get(t, n) {
|
|
@@ -1722,7 +1442,7 @@ class qn {
|
|
|
1722
1442
|
}
|
|
1723
1443
|
// Implement other API methods using Axios...
|
|
1724
1444
|
}
|
|
1725
|
-
class
|
|
1445
|
+
class nn {
|
|
1726
1446
|
constructor(t) {
|
|
1727
1447
|
this.implementation = t;
|
|
1728
1448
|
}
|
|
@@ -1747,6 +1467,6 @@ class Hn {
|
|
|
1747
1467
|
// Implement other API methods...
|
|
1748
1468
|
}
|
|
1749
1469
|
export {
|
|
1750
|
-
|
|
1751
|
-
|
|
1470
|
+
nn as ApiServiceProWrapper,
|
|
1471
|
+
tn as AxiosServiceClass
|
|
1752
1472
|
};
|