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