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