@articles-media/articles-dev-box 1.0.15 → 1.0.17
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 +4 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -2
- package/dist/{AdConfirmExitModal-CKkMAvBK.js → AdConfirmExitModal-Bhz-lt9w.js} +1 -1
- package/dist/{AdConfirmExitModal-CcSxmXKT.cjs → AdConfirmExitModal-N3Lvhb4y.cjs} +1 -1
- package/dist/{AdDetailsModal-k840vrS2.cjs → AdDetailsModal-BMj8DjV0.cjs} +1 -1
- package/dist/{AdDetailsModal-Bp5hZm9N.js → AdDetailsModal-DXvfmyKK.js} +1 -1
- package/dist/DarkModeHandler.cjs +1 -0
- package/dist/DarkModeHandler.js +17 -0
- package/dist/ElementChildren-DN3RWY2E.js +51 -0
- package/dist/ElementChildren-eAwIENLl.cjs +1 -0
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +85 -98
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -2
- package/dist/{GlobalBody-tmIC_GWn.js → GlobalBody-BrrtfBBs.js} +2 -2
- package/dist/{GlobalBody-BQ2qC81K.cjs → GlobalBody-weON_TbJ.cjs} +1 -1
- package/dist/GlobalBody.cjs +1 -1
- package/dist/GlobalBody.js +1 -1
- package/dist/{Modal-Wmqy9fOm.cjs → Modal-Bdhkgkwr.cjs} +2 -2
- package/dist/{Modal-C9oYRgI1.js → Modal-nux8R77F.js} +320 -306
- package/dist/SettingsModal.cjs +1 -0
- package/dist/SettingsModal.js +658 -0
- package/dist/{StatusModal-CAVxWCUq.js → StatusModal-B086BgSW.js} +2 -2
- package/dist/{StatusModal-BlwaI-2B.cjs → StatusModal-CzPyqQQA.cjs} +1 -1
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +465 -505
- package/dist/{index-DLYx67wi.js → index-C8MeSLnR.js} +935 -825
- package/dist/index-DWV8myok.cjs +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +19 -13
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +1 -1
- package/dist/useUserFriends.cjs +1 -0
- package/dist/useUserFriends.js +52 -0
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +1 -1
- package/package.json +13 -1
- package/dist/index-Ddv_TnxK.cjs +0 -6
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import ge, { createContext as kn, useEffect as Mn, useLayoutEffect as Hn, useContext as Vn, useMemo as rn, useRef as le, useCallback as ze, useDebugValue as $n } from "react";
|
|
2
|
+
function sn(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: Wn } = Object.prototype, { getPrototypeOf: yt } = Object, { iterator: qe, toStringTag: on } = Symbol, ke = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = Wn.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 && !ye(e) && e.constructor !== null && !ye(e.constructor) &&
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), X = (e) => (e = e.toLowerCase(), (t) => ke(t) === e), Me = (e) => (t) => typeof t === e, { isArray: we } = Array, ye = Me("undefined");
|
|
11
|
+
function Oe(e) {
|
|
12
|
+
return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const an = X("ArrayBuffer");
|
|
15
|
+
function zn(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 && an(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
19
|
+
const Jn = Me("string"), q = Me("function"), cn = Me("number"), Te = (e) => e !== null && typeof e == "object", Kn = (e) => e === !0 || e === !1, Ue = (e) => {
|
|
20
|
+
if (ke(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
|
-
const t =
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
24
|
-
},
|
|
25
|
-
if (!
|
|
22
|
+
const t = yt(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(on in e) && !(qe in e);
|
|
24
|
+
}, Gn = (e) => {
|
|
25
|
+
if (!Te(e) || Oe(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
|
+
}, Xn = X("Date"), Yn = X("File"), Qn = (e) => !!(e && typeof e.uri < "u"), Zn = (e) => e && typeof e.getParts < "u", er = X("Blob"), tr = X("FileList"), nr = (e) => Te(e) && q(e.pipe);
|
|
33
|
+
function rr() {
|
|
34
|
+
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
35
|
+
}
|
|
36
|
+
const Nt = rr(), Lt = typeof Nt.FormData < "u" ? Nt.FormData : void 0, sr = (e) => {
|
|
33
37
|
let t;
|
|
34
|
-
return e && (
|
|
35
|
-
t === "object" &&
|
|
36
|
-
},
|
|
38
|
+
return e && (Lt && e instanceof Lt || q(e.append) && ((t = ke(e)) === "formdata" || // detect form-data instance
|
|
39
|
+
t === "object" && q(e.toString) && e.toString() === "[object FormData]"));
|
|
40
|
+
}, or = X("URLSearchParams"), [ir, ar, cr, ur] = [
|
|
41
|
+
"ReadableStream",
|
|
42
|
+
"Request",
|
|
43
|
+
"Response",
|
|
44
|
+
"Headers"
|
|
45
|
+
].map(X), lr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
46
|
function _e(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
38
47
|
if (e === null || typeof e > "u")
|
|
39
48
|
return;
|
|
@@ -42,7 +51,7 @@ function _e(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
42
51
|
for (r = 0, s = e.length; r < s; r++)
|
|
43
52
|
t.call(null, e[r], r, e);
|
|
44
53
|
else {
|
|
45
|
-
if (
|
|
54
|
+
if (Oe(e))
|
|
46
55
|
return;
|
|
47
56
|
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
48
57
|
let a;
|
|
@@ -50,8 +59,8 @@ function _e(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
50
59
|
a = i[r], t.call(null, e[a], a, e);
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
62
|
+
function un(e, t) {
|
|
63
|
+
if (Oe(e))
|
|
55
64
|
return null;
|
|
56
65
|
t = t.toLowerCase();
|
|
57
66
|
const n = Object.keys(e);
|
|
@@ -61,75 +70,93 @@ function on(e, t) {
|
|
|
61
70
|
return s;
|
|
62
71
|
return null;
|
|
63
72
|
}
|
|
64
|
-
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
65
|
-
function
|
|
66
|
-
const { caseless: e, skipUndefined: t } =
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ln = (e) => !ye(e) && e !== fe;
|
|
74
|
+
function ot() {
|
|
75
|
+
const { caseless: e, skipUndefined: t } = ln(this) && this || {}, n = {}, r = (s, i) => {
|
|
76
|
+
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
77
|
+
return;
|
|
78
|
+
const o = e && un(n, i) || i;
|
|
79
|
+
Ue(n[o]) && Ue(s) ? n[o] = ot(n[o], s) : Ue(s) ? n[o] = ot({}, s) : we(s) ? n[o] = s.slice() : (!t || !ye(s)) && (n[o] = s);
|
|
69
80
|
};
|
|
70
81
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
71
82
|
arguments[s] && _e(arguments[s], r);
|
|
72
83
|
return n;
|
|
73
84
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
const fr = (e, t, n, { allOwnKeys: r } = {}) => (_e(
|
|
86
|
+
t,
|
|
87
|
+
(s, i) => {
|
|
88
|
+
n && q(s) ? Object.defineProperty(e, i, {
|
|
89
|
+
value: sn(s, n),
|
|
90
|
+
writable: !0,
|
|
91
|
+
enumerable: !0,
|
|
92
|
+
configurable: !0
|
|
93
|
+
}) : Object.defineProperty(e, i, {
|
|
94
|
+
value: s,
|
|
95
|
+
writable: !0,
|
|
96
|
+
enumerable: !0,
|
|
97
|
+
configurable: !0
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
{ allOwnKeys: r }
|
|
101
|
+
), e), dr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), pr = (e, t, n, r) => {
|
|
102
|
+
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
103
|
+
value: e,
|
|
104
|
+
writable: !0,
|
|
105
|
+
enumerable: !1,
|
|
106
|
+
configurable: !0
|
|
107
|
+
}), Object.defineProperty(e, "super", {
|
|
78
108
|
value: t.prototype
|
|
79
109
|
}), n && Object.assign(e.prototype, n);
|
|
80
|
-
},
|
|
110
|
+
}, hr = (e, t, n, r) => {
|
|
81
111
|
let s, i, o;
|
|
82
112
|
const a = {};
|
|
83
113
|
if (t = t || {}, e == null) return t;
|
|
84
114
|
do {
|
|
85
115
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
86
116
|
o = s[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
|
|
87
|
-
e = n !== !1 &&
|
|
117
|
+
e = n !== !1 && yt(e);
|
|
88
118
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
89
119
|
return t;
|
|
90
|
-
},
|
|
120
|
+
}, mr = (e, t, n) => {
|
|
91
121
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
92
122
|
const r = e.indexOf(t, n);
|
|
93
123
|
return r !== -1 && r === n;
|
|
94
|
-
},
|
|
124
|
+
}, Er = (e) => {
|
|
95
125
|
if (!e) return null;
|
|
96
126
|
if (we(e)) return e;
|
|
97
127
|
let t = e.length;
|
|
98
|
-
if (!
|
|
128
|
+
if (!cn(t)) return null;
|
|
99
129
|
const n = new Array(t);
|
|
100
130
|
for (; t-- > 0; )
|
|
101
131
|
n[t] = e[t];
|
|
102
132
|
return n;
|
|
103
|
-
},
|
|
104
|
-
const r = (e && e[
|
|
133
|
+
}, yr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && yt(Uint8Array)), wr = (e, t) => {
|
|
134
|
+
const r = (e && e[qe]).call(e);
|
|
105
135
|
let s;
|
|
106
136
|
for (; (s = r.next()) && !s.done; ) {
|
|
107
137
|
const i = s.value;
|
|
108
138
|
t.call(e, i[0], i[1]);
|
|
109
139
|
}
|
|
110
|
-
},
|
|
140
|
+
}, Rr = (e, t) => {
|
|
111
141
|
let n;
|
|
112
142
|
const r = [];
|
|
113
143
|
for (; (n = e.exec(t)) !== null; )
|
|
114
144
|
r.push(n);
|
|
115
145
|
return r;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return r.toUpperCase() + s;
|
|
120
|
-
}
|
|
121
|
-
), xt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wr = G("RegExp"), cn = (e, t) => {
|
|
146
|
+
}, Sr = X("HTMLFormElement"), br = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
147
|
+
return r.toUpperCase() + s;
|
|
148
|
+
}), Pt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), gr = X("RegExp"), fn = (e, t) => {
|
|
122
149
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
123
150
|
_e(n, (s, i) => {
|
|
124
151
|
let o;
|
|
125
152
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
126
153
|
}), Object.defineProperties(e, r);
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
if (
|
|
154
|
+
}, Or = (e) => {
|
|
155
|
+
fn(e, (t, n) => {
|
|
156
|
+
if (q(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
130
157
|
return !1;
|
|
131
158
|
const r = e[n];
|
|
132
|
-
if (
|
|
159
|
+
if (q(r)) {
|
|
133
160
|
if (t.enumerable = !1, "writable" in t) {
|
|
134
161
|
t.writable = !1;
|
|
135
162
|
return;
|
|
@@ -139,24 +166,24 @@ const ar = (e, t, n, { allOwnKeys: r } = {}) => (_e(t, (s, i) => {
|
|
|
139
166
|
});
|
|
140
167
|
}
|
|
141
168
|
});
|
|
142
|
-
},
|
|
169
|
+
}, Tr = (e, t) => {
|
|
143
170
|
const n = {}, r = (s) => {
|
|
144
171
|
s.forEach((i) => {
|
|
145
172
|
n[i] = !0;
|
|
146
173
|
});
|
|
147
174
|
};
|
|
148
175
|
return we(e) ? r(e) : r(String(e).split(t)), n;
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
return !!(e &&
|
|
176
|
+
}, _r = () => {
|
|
177
|
+
}, Ar = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
178
|
+
function Cr(e) {
|
|
179
|
+
return !!(e && q(e.append) && e[on] === "FormData" && e[qe]);
|
|
153
180
|
}
|
|
154
|
-
const
|
|
181
|
+
const xr = (e) => {
|
|
155
182
|
const t = new Array(10), n = (r, s) => {
|
|
156
|
-
if (
|
|
183
|
+
if (Te(r)) {
|
|
157
184
|
if (t.indexOf(r) >= 0)
|
|
158
185
|
return;
|
|
159
|
-
if (
|
|
186
|
+
if (Oe(r))
|
|
160
187
|
return r;
|
|
161
188
|
if (!("toJSON" in r)) {
|
|
162
189
|
t[s] = r;
|
|
@@ -170,78 +197,101 @@ const Tr = (e) => {
|
|
|
170
197
|
return r;
|
|
171
198
|
};
|
|
172
199
|
return n(e, 0);
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
|
|
200
|
+
}, Dr = X("AsyncFunction"), Nr = (e) => e && (Te(e) || q(e)) && q(e.then) && q(e.catch), dn = ((e, t) => e ? setImmediate : t ? ((n, r) => (fe.addEventListener(
|
|
201
|
+
"message",
|
|
202
|
+
({ source: s, data: i }) => {
|
|
203
|
+
s === fe && i === n && r.length && r.shift()();
|
|
204
|
+
},
|
|
205
|
+
!1
|
|
206
|
+
), (s) => {
|
|
176
207
|
r.push(s), fe.postMessage(n, "*");
|
|
177
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
178
|
-
typeof setImmediate == "function",
|
|
179
|
-
k(fe.postMessage)
|
|
180
|
-
), Cr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || un, xr = (e) => e != null && k(e[ke]), c = {
|
|
208
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", q(fe.postMessage)), Lr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || dn, Pr = (e) => e != null && q(e[qe]), c = {
|
|
181
209
|
isArray: we,
|
|
182
|
-
isArrayBuffer:
|
|
183
|
-
isBuffer:
|
|
184
|
-
isFormData:
|
|
185
|
-
isArrayBufferView:
|
|
186
|
-
isString:
|
|
187
|
-
isNumber:
|
|
188
|
-
isBoolean:
|
|
189
|
-
isObject:
|
|
210
|
+
isArrayBuffer: an,
|
|
211
|
+
isBuffer: Oe,
|
|
212
|
+
isFormData: sr,
|
|
213
|
+
isArrayBufferView: zn,
|
|
214
|
+
isString: Jn,
|
|
215
|
+
isNumber: cn,
|
|
216
|
+
isBoolean: Kn,
|
|
217
|
+
isObject: Te,
|
|
190
218
|
isPlainObject: Ue,
|
|
191
|
-
isEmptyObject:
|
|
192
|
-
isReadableStream:
|
|
193
|
-
isRequest:
|
|
194
|
-
isResponse:
|
|
195
|
-
isHeaders:
|
|
219
|
+
isEmptyObject: Gn,
|
|
220
|
+
isReadableStream: ir,
|
|
221
|
+
isRequest: ar,
|
|
222
|
+
isResponse: cr,
|
|
223
|
+
isHeaders: ur,
|
|
196
224
|
isUndefined: ye,
|
|
197
|
-
isDate:
|
|
198
|
-
isFile:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
225
|
+
isDate: Xn,
|
|
226
|
+
isFile: Yn,
|
|
227
|
+
isReactNativeBlob: Qn,
|
|
228
|
+
isReactNative: Zn,
|
|
229
|
+
isBlob: er,
|
|
230
|
+
isRegExp: gr,
|
|
231
|
+
isFunction: q,
|
|
232
|
+
isStream: nr,
|
|
233
|
+
isURLSearchParams: or,
|
|
234
|
+
isTypedArray: yr,
|
|
235
|
+
isFileList: tr,
|
|
206
236
|
forEach: _e,
|
|
207
|
-
merge:
|
|
208
|
-
extend:
|
|
209
|
-
trim:
|
|
210
|
-
stripBOM:
|
|
211
|
-
inherits:
|
|
212
|
-
toFlatObject:
|
|
213
|
-
kindOf:
|
|
214
|
-
kindOfTest:
|
|
215
|
-
endsWith:
|
|
216
|
-
toArray:
|
|
217
|
-
forEachEntry:
|
|
218
|
-
matchAll:
|
|
219
|
-
isHTMLForm:
|
|
220
|
-
hasOwnProperty:
|
|
221
|
-
hasOwnProp:
|
|
237
|
+
merge: ot,
|
|
238
|
+
extend: fr,
|
|
239
|
+
trim: lr,
|
|
240
|
+
stripBOM: dr,
|
|
241
|
+
inherits: pr,
|
|
242
|
+
toFlatObject: hr,
|
|
243
|
+
kindOf: ke,
|
|
244
|
+
kindOfTest: X,
|
|
245
|
+
endsWith: mr,
|
|
246
|
+
toArray: Er,
|
|
247
|
+
forEachEntry: wr,
|
|
248
|
+
matchAll: Rr,
|
|
249
|
+
isHTMLForm: Sr,
|
|
250
|
+
hasOwnProperty: Pt,
|
|
251
|
+
hasOwnProp: Pt,
|
|
222
252
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
223
|
-
reduceDescriptors:
|
|
224
|
-
freezeMethods:
|
|
225
|
-
toObjectSet:
|
|
226
|
-
toCamelCase:
|
|
227
|
-
noop:
|
|
228
|
-
toFiniteNumber:
|
|
229
|
-
findKey:
|
|
253
|
+
reduceDescriptors: fn,
|
|
254
|
+
freezeMethods: Or,
|
|
255
|
+
toObjectSet: Tr,
|
|
256
|
+
toCamelCase: br,
|
|
257
|
+
noop: _r,
|
|
258
|
+
toFiniteNumber: Ar,
|
|
259
|
+
findKey: un,
|
|
230
260
|
global: fe,
|
|
231
|
-
isContextDefined:
|
|
232
|
-
isSpecCompliantForm:
|
|
233
|
-
toJSONObject:
|
|
234
|
-
isAsyncFn:
|
|
235
|
-
isThenable:
|
|
236
|
-
setImmediate:
|
|
237
|
-
asap:
|
|
238
|
-
isIterable:
|
|
261
|
+
isContextDefined: ln,
|
|
262
|
+
isSpecCompliantForm: Cr,
|
|
263
|
+
toJSONObject: xr,
|
|
264
|
+
isAsyncFn: Dr,
|
|
265
|
+
isThenable: Nr,
|
|
266
|
+
setImmediate: dn,
|
|
267
|
+
asap: Lr,
|
|
268
|
+
isIterable: Pr
|
|
239
269
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
270
|
+
let R = class pn extends Error {
|
|
271
|
+
static from(t, n, r, s, i, o) {
|
|
272
|
+
const a = new pn(t.message, n || t.code, r, s, i);
|
|
273
|
+
return a.cause = t, a.name = t.name, t.status != null && a.status == null && (a.status = t.status), o && Object.assign(a, o), a;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
277
|
+
*
|
|
278
|
+
* @param {string} message The error message.
|
|
279
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
280
|
+
* @param {Object} [config] The config.
|
|
281
|
+
* @param {Object} [request] The request.
|
|
282
|
+
* @param {Object} [response] The response.
|
|
283
|
+
*
|
|
284
|
+
* @returns {Error} The created error.
|
|
285
|
+
*/
|
|
286
|
+
constructor(t, n, r, s, i) {
|
|
287
|
+
super(t), Object.defineProperty(this, "message", {
|
|
288
|
+
value: t,
|
|
289
|
+
enumerable: !0,
|
|
290
|
+
writable: !0,
|
|
291
|
+
configurable: !0
|
|
292
|
+
}), 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);
|
|
293
|
+
}
|
|
294
|
+
toJSON() {
|
|
245
295
|
return {
|
|
246
296
|
// Standard
|
|
247
297
|
message: this.message,
|
|
@@ -260,63 +310,52 @@ c.inherits(S, Error, {
|
|
|
260
310
|
status: this.status
|
|
261
311
|
};
|
|
262
312
|
}
|
|
263
|
-
});
|
|
264
|
-
const ln = S.prototype, fn = {};
|
|
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
|
-
fn[e] = { value: e };
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperties(S, fn);
|
|
283
|
-
Object.defineProperty(ln, "isAxiosError", { value: !0 });
|
|
284
|
-
S.from = (e, t, n, r, s, i) => {
|
|
285
|
-
const o = Object.create(ln);
|
|
286
|
-
c.toFlatObject(e, o, function(l) {
|
|
287
|
-
return l !== Error.prototype;
|
|
288
|
-
}, (f) => f !== "isAxiosError");
|
|
289
|
-
const a = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
290
|
-
return S.call(o, a, 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
313
|
};
|
|
292
|
-
|
|
293
|
-
|
|
314
|
+
R.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
315
|
+
R.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
316
|
+
R.ECONNABORTED = "ECONNABORTED";
|
|
317
|
+
R.ETIMEDOUT = "ETIMEDOUT";
|
|
318
|
+
R.ERR_NETWORK = "ERR_NETWORK";
|
|
319
|
+
R.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
320
|
+
R.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
321
|
+
R.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
322
|
+
R.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
323
|
+
R.ERR_CANCELED = "ERR_CANCELED";
|
|
324
|
+
R.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
325
|
+
R.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
326
|
+
const Fr = null;
|
|
327
|
+
function it(e) {
|
|
294
328
|
return c.isPlainObject(e) || c.isArray(e);
|
|
295
329
|
}
|
|
296
|
-
function
|
|
330
|
+
function hn(e) {
|
|
297
331
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
298
332
|
}
|
|
299
|
-
function
|
|
333
|
+
function Je(e, t, n) {
|
|
300
334
|
return e ? e.concat(t).map(function(s, i) {
|
|
301
|
-
return s =
|
|
335
|
+
return s = hn(s), !n && i ? "[" + s + "]" : s;
|
|
302
336
|
}).join(n ? "." : "") : t;
|
|
303
337
|
}
|
|
304
|
-
function
|
|
305
|
-
return c.isArray(e) && !e.some(
|
|
338
|
+
function vr(e) {
|
|
339
|
+
return c.isArray(e) && !e.some(it);
|
|
306
340
|
}
|
|
307
|
-
const
|
|
341
|
+
const Ur = c.toFlatObject(c, {}, null, function(t) {
|
|
308
342
|
return /^is[A-Z]/.test(t);
|
|
309
343
|
});
|
|
310
|
-
function
|
|
344
|
+
function He(e, t, n) {
|
|
311
345
|
if (!c.isObject(e))
|
|
312
346
|
throw new TypeError("target must be an object");
|
|
313
|
-
t = t || new FormData(), n = c.toFlatObject(
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
347
|
+
t = t || new FormData(), n = c.toFlatObject(
|
|
348
|
+
n,
|
|
349
|
+
{
|
|
350
|
+
metaTokens: !0,
|
|
351
|
+
dots: !1,
|
|
352
|
+
indexes: !1
|
|
353
|
+
},
|
|
354
|
+
!1,
|
|
355
|
+
function(m, h) {
|
|
356
|
+
return !c.isUndefined(h[m]);
|
|
357
|
+
}
|
|
358
|
+
);
|
|
320
359
|
const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
|
|
321
360
|
if (!c.isFunction(s))
|
|
322
361
|
throw new TypeError("visitor must be a function");
|
|
@@ -327,42 +366,38 @@ function Me(e, t, n) {
|
|
|
327
366
|
if (c.isBoolean(u))
|
|
328
367
|
return u.toString();
|
|
329
368
|
if (!d && c.isBlob(u))
|
|
330
|
-
throw new
|
|
369
|
+
throw new R("Blob is not supported. Use a Buffer instead.");
|
|
331
370
|
return c.isArrayBuffer(u) || c.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
332
371
|
}
|
|
333
372
|
function l(u, m, h) {
|
|
334
|
-
let
|
|
373
|
+
let S = u;
|
|
374
|
+
if (c.isReactNative(t) && c.isReactNativeBlob(u))
|
|
375
|
+
return t.append(Je(h, m, i), f(u)), !1;
|
|
335
376
|
if (u && !h && typeof u == "object") {
|
|
336
377
|
if (c.endsWith(m, "{}"))
|
|
337
378
|
m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
|
|
338
|
-
else if (c.isArray(u) &&
|
|
339
|
-
return m =
|
|
340
|
-
!(c.isUndefined(
|
|
379
|
+
else if (c.isArray(u) && vr(u) || (c.isFileList(u) || c.endsWith(m, "[]")) && (S = c.toArray(u)))
|
|
380
|
+
return m = hn(m), S.forEach(function(_, x) {
|
|
381
|
+
!(c.isUndefined(_) || _ === null) && t.append(
|
|
341
382
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
o === !0 ?
|
|
343
|
-
f(
|
|
383
|
+
o === !0 ? Je([m], x, i) : o === null ? m : m + "[]",
|
|
384
|
+
f(_)
|
|
344
385
|
);
|
|
345
386
|
}), !1;
|
|
346
387
|
}
|
|
347
|
-
return
|
|
388
|
+
return it(u) ? !0 : (t.append(Je(h, m, i), f(u)), !1);
|
|
348
389
|
}
|
|
349
|
-
const p = [], E = Object.assign(
|
|
390
|
+
const p = [], E = Object.assign(Ur, {
|
|
350
391
|
defaultVisitor: l,
|
|
351
392
|
convertValue: f,
|
|
352
|
-
isVisitable:
|
|
393
|
+
isVisitable: it
|
|
353
394
|
});
|
|
354
395
|
function y(u, m) {
|
|
355
396
|
if (!c.isUndefined(u)) {
|
|
356
397
|
if (p.indexOf(u) !== -1)
|
|
357
398
|
throw Error("Circular reference detected in " + m.join("."));
|
|
358
|
-
p.push(u), c.forEach(u, function(
|
|
359
|
-
(!(c.isUndefined(
|
|
360
|
-
t,
|
|
361
|
-
g,
|
|
362
|
-
c.isString(w) ? w.trim() : w,
|
|
363
|
-
m,
|
|
364
|
-
E
|
|
365
|
-
)) === !0 && y(g, m ? m.concat(w) : [w]);
|
|
399
|
+
p.push(u), c.forEach(u, function(S, w) {
|
|
400
|
+
(!(c.isUndefined(S) || S === null) && s.call(t, S, c.isString(w) ? w.trim() : w, m, E)) === !0 && y(S, m ? m.concat(w) : [w]);
|
|
366
401
|
}), p.pop();
|
|
367
402
|
}
|
|
368
403
|
}
|
|
@@ -370,7 +405,7 @@ function Me(e, t, n) {
|
|
|
370
405
|
throw new TypeError("data must be an object");
|
|
371
406
|
return y(e), t;
|
|
372
407
|
}
|
|
373
|
-
function
|
|
408
|
+
function Ft(e) {
|
|
374
409
|
const t = {
|
|
375
410
|
"!": "%21",
|
|
376
411
|
"'": "%27",
|
|
@@ -384,40 +419,38 @@ function Lt(e) {
|
|
|
384
419
|
return t[r];
|
|
385
420
|
});
|
|
386
421
|
}
|
|
387
|
-
function
|
|
388
|
-
this._pairs = [], e &&
|
|
422
|
+
function wt(e, t) {
|
|
423
|
+
this._pairs = [], e && He(e, this, t);
|
|
389
424
|
}
|
|
390
|
-
const
|
|
391
|
-
|
|
425
|
+
const mn = wt.prototype;
|
|
426
|
+
mn.append = function(t, n) {
|
|
392
427
|
this._pairs.push([t, n]);
|
|
393
428
|
};
|
|
394
|
-
|
|
429
|
+
mn.toString = function(t) {
|
|
395
430
|
const n = t ? function(r) {
|
|
396
|
-
return t.call(this, r,
|
|
397
|
-
} :
|
|
431
|
+
return t.call(this, r, Ft);
|
|
432
|
+
} : Ft;
|
|
398
433
|
return this._pairs.map(function(s) {
|
|
399
434
|
return n(s[0]) + "=" + n(s[1]);
|
|
400
435
|
}, "").join("&");
|
|
401
436
|
};
|
|
402
|
-
function
|
|
437
|
+
function Ir(e) {
|
|
403
438
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
404
439
|
}
|
|
405
|
-
function
|
|
440
|
+
function En(e, t, n) {
|
|
406
441
|
if (!t)
|
|
407
442
|
return e;
|
|
408
|
-
const r = n && n.encode ||
|
|
409
|
-
c.isFunction(n) && (n = {
|
|
443
|
+
const r = n && n.encode || Ir, s = c.isFunction(n) ? {
|
|
410
444
|
serialize: n
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
445
|
+
} : n, i = s && s.serialize;
|
|
446
|
+
let o;
|
|
447
|
+
if (i ? o = i(t, s) : o = c.isURLSearchParams(t) ? t.toString() : new wt(t, s).toString(r), o) {
|
|
448
|
+
const a = e.indexOf("#");
|
|
449
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
417
450
|
}
|
|
418
451
|
return e;
|
|
419
452
|
}
|
|
420
|
-
class
|
|
453
|
+
class vt {
|
|
421
454
|
constructor() {
|
|
422
455
|
this.handlers = [];
|
|
423
456
|
}
|
|
@@ -426,6 +459,7 @@ class Nt {
|
|
|
426
459
|
*
|
|
427
460
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
428
461
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
462
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
429
463
|
*
|
|
430
464
|
* @return {Number} An ID used to remove interceptor later
|
|
431
465
|
*/
|
|
@@ -471,42 +505,43 @@ class Nt {
|
|
|
471
505
|
});
|
|
472
506
|
}
|
|
473
507
|
}
|
|
474
|
-
const
|
|
508
|
+
const Rt = {
|
|
475
509
|
silentJSONParsing: !0,
|
|
476
510
|
forcedJSONParsing: !0,
|
|
477
|
-
clarifyTimeoutError: !1
|
|
478
|
-
|
|
511
|
+
clarifyTimeoutError: !1,
|
|
512
|
+
legacyInterceptorReqResOrdering: !0
|
|
513
|
+
}, Br = typeof URLSearchParams < "u" ? URLSearchParams : wt, jr = typeof FormData < "u" ? FormData : null, qr = typeof Blob < "u" ? Blob : null, kr = {
|
|
479
514
|
isBrowser: !0,
|
|
480
515
|
classes: {
|
|
481
|
-
URLSearchParams:
|
|
482
|
-
FormData:
|
|
483
|
-
Blob:
|
|
516
|
+
URLSearchParams: Br,
|
|
517
|
+
FormData: jr,
|
|
518
|
+
Blob: qr
|
|
484
519
|
},
|
|
485
520
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
},
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
521
|
+
}, St = typeof window < "u" && typeof document < "u", at = typeof navigator == "object" && navigator || void 0, Mr = St && (!at || ["ReactNative", "NativeScript", "NS"].indexOf(at.product) < 0), Hr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
522
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Vr = St && window.location.href || "http://localhost", $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
523
|
__proto__: null,
|
|
489
|
-
hasBrowserEnv:
|
|
490
|
-
hasStandardBrowserEnv:
|
|
491
|
-
hasStandardBrowserWebWorkerEnv:
|
|
492
|
-
navigator:
|
|
493
|
-
origin:
|
|
494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
495
|
-
|
|
496
|
-
...
|
|
524
|
+
hasBrowserEnv: St,
|
|
525
|
+
hasStandardBrowserEnv: Mr,
|
|
526
|
+
hasStandardBrowserWebWorkerEnv: Hr,
|
|
527
|
+
navigator: at,
|
|
528
|
+
origin: Vr
|
|
529
|
+
}, Symbol.toStringTag, { value: "Module" })), B = {
|
|
530
|
+
...$r,
|
|
531
|
+
...kr
|
|
497
532
|
};
|
|
498
|
-
function
|
|
499
|
-
return
|
|
533
|
+
function Wr(e, t) {
|
|
534
|
+
return He(e, new B.classes.URLSearchParams(), {
|
|
500
535
|
visitor: function(n, r, s, i) {
|
|
501
|
-
return
|
|
536
|
+
return B.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
502
537
|
},
|
|
503
538
|
...t
|
|
504
539
|
});
|
|
505
540
|
}
|
|
506
|
-
function
|
|
541
|
+
function zr(e) {
|
|
507
542
|
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
508
543
|
}
|
|
509
|
-
function
|
|
544
|
+
function Jr(e) {
|
|
510
545
|
const t = {}, n = Object.keys(e);
|
|
511
546
|
let r;
|
|
512
547
|
const s = n.length;
|
|
@@ -515,22 +550,22 @@ function Vr(e) {
|
|
|
515
550
|
i = n[r], t[i] = e[i];
|
|
516
551
|
return t;
|
|
517
552
|
}
|
|
518
|
-
function
|
|
553
|
+
function yn(e) {
|
|
519
554
|
function t(n, r, s, i) {
|
|
520
555
|
let o = n[i++];
|
|
521
556
|
if (o === "__proto__") return !0;
|
|
522
557
|
const a = Number.isFinite(+o), d = i >= n.length;
|
|
523
|
-
return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] =
|
|
558
|
+
return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = Jr(s[o])), !a);
|
|
524
559
|
}
|
|
525
560
|
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
526
561
|
const n = {};
|
|
527
562
|
return c.forEachEntry(e, (r, s) => {
|
|
528
|
-
t(
|
|
563
|
+
t(zr(r), s, n, 0);
|
|
529
564
|
}), n;
|
|
530
565
|
}
|
|
531
566
|
return null;
|
|
532
567
|
}
|
|
533
|
-
function
|
|
568
|
+
function Kr(e, t, n) {
|
|
534
569
|
if (c.isString(e))
|
|
535
570
|
try {
|
|
536
571
|
return (t || JSON.parse)(e), c.trim(e);
|
|
@@ -540,49 +575,53 @@ function $r(e, t, n) {
|
|
|
540
575
|
}
|
|
541
576
|
return (n || JSON.stringify)(e);
|
|
542
577
|
}
|
|
543
|
-
const
|
|
544
|
-
transitional:
|
|
578
|
+
const Ae = {
|
|
579
|
+
transitional: Rt,
|
|
545
580
|
adapter: ["xhr", "http", "fetch"],
|
|
546
|
-
transformRequest: [
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
if (
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
581
|
+
transformRequest: [
|
|
582
|
+
function(t, n) {
|
|
583
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
|
|
584
|
+
if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
|
|
585
|
+
return s ? JSON.stringify(yn(t)) : t;
|
|
586
|
+
if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
|
|
587
|
+
return t;
|
|
588
|
+
if (c.isArrayBufferView(t))
|
|
589
|
+
return t.buffer;
|
|
590
|
+
if (c.isURLSearchParams(t))
|
|
591
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
592
|
+
let a;
|
|
593
|
+
if (i) {
|
|
594
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
595
|
+
return Wr(t, this.formSerializer).toString();
|
|
596
|
+
if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
597
|
+
const d = this.env && this.env.FormData;
|
|
598
|
+
return He(
|
|
599
|
+
a ? { "files[]": t } : t,
|
|
600
|
+
d && new d(),
|
|
601
|
+
this.formSerializer
|
|
602
|
+
);
|
|
603
|
+
}
|
|
567
604
|
}
|
|
605
|
+
return i || s ? (n.setContentType("application/json", !1), Kr(t)) : t;
|
|
568
606
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
607
|
+
],
|
|
608
|
+
transformResponse: [
|
|
609
|
+
function(t) {
|
|
610
|
+
const n = this.transitional || Ae.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
611
|
+
if (c.isResponse(t) || c.isReadableStream(t))
|
|
612
|
+
return t;
|
|
613
|
+
if (t && c.isString(t) && (r && !this.responseType || s)) {
|
|
614
|
+
const o = !(n && n.silentJSONParsing) && s;
|
|
615
|
+
try {
|
|
616
|
+
return JSON.parse(t, this.parseReviver);
|
|
617
|
+
} catch (a) {
|
|
618
|
+
if (o)
|
|
619
|
+
throw a.name === "SyntaxError" ? R.from(a, R.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
620
|
+
}
|
|
582
621
|
}
|
|
622
|
+
return t;
|
|
583
623
|
}
|
|
584
|
-
|
|
585
|
-
}],
|
|
624
|
+
],
|
|
586
625
|
/**
|
|
587
626
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
588
627
|
* timeout is not created.
|
|
@@ -593,8 +632,8 @@ const Ce = {
|
|
|
593
632
|
maxContentLength: -1,
|
|
594
633
|
maxBodyLength: -1,
|
|
595
634
|
env: {
|
|
596
|
-
FormData:
|
|
597
|
-
Blob:
|
|
635
|
+
FormData: B.classes.FormData,
|
|
636
|
+
Blob: B.classes.Blob
|
|
598
637
|
},
|
|
599
638
|
validateStatus: function(t) {
|
|
600
639
|
return t >= 200 && t < 300;
|
|
@@ -607,9 +646,9 @@ const Ce = {
|
|
|
607
646
|
}
|
|
608
647
|
};
|
|
609
648
|
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
610
|
-
|
|
649
|
+
Ae.headers[e] = {};
|
|
611
650
|
});
|
|
612
|
-
const
|
|
651
|
+
const Gr = c.toObjectSet([
|
|
613
652
|
"age",
|
|
614
653
|
"authorization",
|
|
615
654
|
"content-length",
|
|
@@ -627,29 +666,29 @@ const Wr = c.toObjectSet([
|
|
|
627
666
|
"referer",
|
|
628
667
|
"retry-after",
|
|
629
668
|
"user-agent"
|
|
630
|
-
]),
|
|
669
|
+
]), Xr = (e) => {
|
|
631
670
|
const t = {};
|
|
632
671
|
let n, r, s;
|
|
633
672
|
return e && e.split(`
|
|
634
673
|
`).forEach(function(o) {
|
|
635
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] &&
|
|
674
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Gr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
636
675
|
}), t;
|
|
637
|
-
},
|
|
638
|
-
function
|
|
676
|
+
}, Ut = /* @__PURE__ */ Symbol("internals");
|
|
677
|
+
function be(e) {
|
|
639
678
|
return e && String(e).trim().toLowerCase();
|
|
640
679
|
}
|
|
641
680
|
function Ie(e) {
|
|
642
|
-
return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ie) : String(e);
|
|
681
|
+
return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ie) : String(e).replace(/[\r\n]+$/, "");
|
|
643
682
|
}
|
|
644
|
-
function
|
|
683
|
+
function Yr(e) {
|
|
645
684
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
646
685
|
let r;
|
|
647
686
|
for (; r = n.exec(e); )
|
|
648
687
|
t[r[1]] = r[2];
|
|
649
688
|
return t;
|
|
650
689
|
}
|
|
651
|
-
const
|
|
652
|
-
function
|
|
690
|
+
const Qr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
691
|
+
function Ke(e, t, n, r, s) {
|
|
653
692
|
if (c.isFunction(r))
|
|
654
693
|
return r.call(this, t, n);
|
|
655
694
|
if (s && (t = n), !!c.isString(t)) {
|
|
@@ -659,10 +698,10 @@ function Je(e, t, n, r, s) {
|
|
|
659
698
|
return r.test(t);
|
|
660
699
|
}
|
|
661
700
|
}
|
|
662
|
-
function
|
|
701
|
+
function Zr(e) {
|
|
663
702
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
664
703
|
}
|
|
665
|
-
function
|
|
704
|
+
function es(e, t) {
|
|
666
705
|
const n = c.toCamelCase(" " + t);
|
|
667
706
|
["get", "set", "has"].forEach((r) => {
|
|
668
707
|
Object.defineProperty(e, r + n, {
|
|
@@ -673,14 +712,14 @@ function Xr(e, t) {
|
|
|
673
712
|
});
|
|
674
713
|
});
|
|
675
714
|
}
|
|
676
|
-
let
|
|
715
|
+
let k = class {
|
|
677
716
|
constructor(t) {
|
|
678
717
|
t && this.set(t);
|
|
679
718
|
}
|
|
680
719
|
set(t, n, r) {
|
|
681
720
|
const s = this;
|
|
682
721
|
function i(a, d, f) {
|
|
683
|
-
const l =
|
|
722
|
+
const l = be(d);
|
|
684
723
|
if (!l)
|
|
685
724
|
throw new Error("header name must be a non-empty string");
|
|
686
725
|
const p = c.findKey(s, l);
|
|
@@ -689,8 +728,8 @@ let q = class {
|
|
|
689
728
|
const o = (a, d) => c.forEach(a, (f, l) => i(f, l, d));
|
|
690
729
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
691
730
|
o(t, n);
|
|
692
|
-
else if (c.isString(t) && (t = t.trim()) && !
|
|
693
|
-
o(
|
|
731
|
+
else if (c.isString(t) && (t = t.trim()) && !Qr(t))
|
|
732
|
+
o(Xr(t), n);
|
|
694
733
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
695
734
|
let a = {}, d, f;
|
|
696
735
|
for (const l of t) {
|
|
@@ -704,14 +743,14 @@ let q = class {
|
|
|
704
743
|
return this;
|
|
705
744
|
}
|
|
706
745
|
get(t, n) {
|
|
707
|
-
if (t =
|
|
746
|
+
if (t = be(t), t) {
|
|
708
747
|
const r = c.findKey(this, t);
|
|
709
748
|
if (r) {
|
|
710
749
|
const s = this[r];
|
|
711
750
|
if (!n)
|
|
712
751
|
return s;
|
|
713
752
|
if (n === !0)
|
|
714
|
-
return
|
|
753
|
+
return Yr(s);
|
|
715
754
|
if (c.isFunction(n))
|
|
716
755
|
return n.call(this, s, r);
|
|
717
756
|
if (c.isRegExp(n))
|
|
@@ -721,9 +760,9 @@ let q = class {
|
|
|
721
760
|
}
|
|
722
761
|
}
|
|
723
762
|
has(t, n) {
|
|
724
|
-
if (t =
|
|
763
|
+
if (t = be(t), t) {
|
|
725
764
|
const r = c.findKey(this, t);
|
|
726
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
765
|
+
return !!(r && this[r] !== void 0 && (!n || Ke(this, this[r], r, n)));
|
|
727
766
|
}
|
|
728
767
|
return !1;
|
|
729
768
|
}
|
|
@@ -731,9 +770,9 @@ let q = class {
|
|
|
731
770
|
const r = this;
|
|
732
771
|
let s = !1;
|
|
733
772
|
function i(o) {
|
|
734
|
-
if (o =
|
|
773
|
+
if (o = be(o), o) {
|
|
735
774
|
const a = c.findKey(r, o);
|
|
736
|
-
a && (!n ||
|
|
775
|
+
a && (!n || Ke(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
737
776
|
}
|
|
738
777
|
}
|
|
739
778
|
return c.isArray(t) ? t.forEach(i) : i(t), s;
|
|
@@ -743,7 +782,7 @@ let q = class {
|
|
|
743
782
|
let r = n.length, s = !1;
|
|
744
783
|
for (; r--; ) {
|
|
745
784
|
const i = n[r];
|
|
746
|
-
(!t ||
|
|
785
|
+
(!t || Ke(this, this[i], i, t, !0)) && (delete this[i], s = !0);
|
|
747
786
|
}
|
|
748
787
|
return s;
|
|
749
788
|
}
|
|
@@ -755,7 +794,7 @@ let q = class {
|
|
|
755
794
|
n[o] = Ie(s), delete n[i];
|
|
756
795
|
return;
|
|
757
796
|
}
|
|
758
|
-
const a = t ?
|
|
797
|
+
const a = t ? Zr(i) : String(i).trim();
|
|
759
798
|
a !== i && delete n[i], n[a] = Ie(s), r[a] = !0;
|
|
760
799
|
}), this;
|
|
761
800
|
}
|
|
@@ -789,18 +828,25 @@ let q = class {
|
|
|
789
828
|
return n.forEach((s) => r.set(s)), r;
|
|
790
829
|
}
|
|
791
830
|
static accessor(t) {
|
|
792
|
-
const r = (this[
|
|
831
|
+
const r = (this[Ut] = this[Ut] = {
|
|
793
832
|
accessors: {}
|
|
794
833
|
}).accessors, s = this.prototype;
|
|
795
834
|
function i(o) {
|
|
796
|
-
const a =
|
|
797
|
-
r[a] || (
|
|
835
|
+
const a = be(o);
|
|
836
|
+
r[a] || (es(s, o), r[a] = !0);
|
|
798
837
|
}
|
|
799
838
|
return c.isArray(t) ? t.forEach(i) : i(t), this;
|
|
800
839
|
}
|
|
801
840
|
};
|
|
802
|
-
|
|
803
|
-
|
|
841
|
+
k.accessor([
|
|
842
|
+
"Content-Type",
|
|
843
|
+
"Content-Length",
|
|
844
|
+
"Accept",
|
|
845
|
+
"Accept-Encoding",
|
|
846
|
+
"User-Agent",
|
|
847
|
+
"Authorization"
|
|
848
|
+
]);
|
|
849
|
+
c.reduceDescriptors(k.prototype, ({ value: e }, t) => {
|
|
804
850
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
805
851
|
return {
|
|
806
852
|
get: () => e,
|
|
@@ -809,38 +855,48 @@ c.reduceDescriptors(q.prototype, ({ value: e }, t) => {
|
|
|
809
855
|
}
|
|
810
856
|
};
|
|
811
857
|
});
|
|
812
|
-
c.freezeMethods(
|
|
813
|
-
function
|
|
814
|
-
const n = this ||
|
|
858
|
+
c.freezeMethods(k);
|
|
859
|
+
function Ge(e, t) {
|
|
860
|
+
const n = this || Ae, r = t || n, s = k.from(r.headers);
|
|
815
861
|
let i = r.data;
|
|
816
862
|
return c.forEach(e, function(a) {
|
|
817
863
|
i = a.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
818
864
|
}), s.normalize(), i;
|
|
819
865
|
}
|
|
820
|
-
function
|
|
866
|
+
function wn(e) {
|
|
821
867
|
return !!(e && e.__CANCEL__);
|
|
822
868
|
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
}
|
|
829
|
-
|
|
869
|
+
let Ce = class extends R {
|
|
870
|
+
/**
|
|
871
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
872
|
+
*
|
|
873
|
+
* @param {string=} message The message.
|
|
874
|
+
* @param {Object=} config The config.
|
|
875
|
+
* @param {Object=} request The request.
|
|
876
|
+
*
|
|
877
|
+
* @returns {CanceledError} The created error.
|
|
878
|
+
*/
|
|
879
|
+
constructor(t, n, r) {
|
|
880
|
+
super(t ?? "canceled", R.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
function Rn(e, t, n) {
|
|
830
884
|
const r = n.config.validateStatus;
|
|
831
|
-
!n.status || !r || r(n.status) ? e(n) : t(
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
885
|
+
!n.status || !r || r(n.status) ? e(n) : t(
|
|
886
|
+
new R(
|
|
887
|
+
"Request failed with status code " + n.status,
|
|
888
|
+
[R.ERR_BAD_REQUEST, R.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
889
|
+
n.config,
|
|
890
|
+
n.request,
|
|
891
|
+
n
|
|
892
|
+
)
|
|
893
|
+
);
|
|
838
894
|
}
|
|
839
|
-
function
|
|
895
|
+
function ts(e) {
|
|
840
896
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
841
897
|
return t && t[1] || "";
|
|
842
898
|
}
|
|
843
|
-
function
|
|
899
|
+
function ns(e, t) {
|
|
844
900
|
e = e || 10;
|
|
845
901
|
const n = new Array(e), r = new Array(e);
|
|
846
902
|
let s = 0, i = 0, o;
|
|
@@ -856,7 +912,7 @@ function Qr(e, t) {
|
|
|
856
912
|
return y ? Math.round(E * 1e3 / y) : void 0;
|
|
857
913
|
};
|
|
858
914
|
}
|
|
859
|
-
function
|
|
915
|
+
function rs(e, t) {
|
|
860
916
|
let n = 0, r = 1e3 / t, s, i;
|
|
861
917
|
const o = (f, l = Date.now()) => {
|
|
862
918
|
n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
|
|
@@ -870,8 +926,8 @@ function Zr(e, t) {
|
|
|
870
926
|
}
|
|
871
927
|
const je = (e, t, n = 3) => {
|
|
872
928
|
let r = 0;
|
|
873
|
-
const s =
|
|
874
|
-
return
|
|
929
|
+
const s = ns(50, 250);
|
|
930
|
+
return rs((i) => {
|
|
875
931
|
const o = i.loaded, a = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= a;
|
|
876
932
|
r = o;
|
|
877
933
|
const p = {
|
|
@@ -887,17 +943,20 @@ const je = (e, t, n = 3) => {
|
|
|
887
943
|
};
|
|
888
944
|
e(p);
|
|
889
945
|
}, n);
|
|
890
|
-
},
|
|
946
|
+
}, It = (e, t) => {
|
|
891
947
|
const n = e != null;
|
|
892
|
-
return [
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
)
|
|
948
|
+
return [
|
|
949
|
+
(r) => t[0]({
|
|
950
|
+
lengthComputable: n,
|
|
951
|
+
total: e,
|
|
952
|
+
loaded: r
|
|
953
|
+
}),
|
|
954
|
+
t[1]
|
|
955
|
+
];
|
|
956
|
+
}, Bt = (e) => (...t) => c.asap(() => e(...t)), ss = B.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, B.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
957
|
+
new URL(B.origin),
|
|
958
|
+
B.navigator && /(msie|trident)/i.test(B.navigator.userAgent)
|
|
959
|
+
) : () => !0, os = B.hasStandardBrowserEnv ? (
|
|
901
960
|
// Standard browser envs support document.cookie
|
|
902
961
|
{
|
|
903
962
|
write(e, t, n, r, s, i, o) {
|
|
@@ -926,17 +985,17 @@ const je = (e, t, n = 3) => {
|
|
|
926
985
|
}
|
|
927
986
|
}
|
|
928
987
|
);
|
|
929
|
-
function
|
|
930
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
988
|
+
function is(e) {
|
|
989
|
+
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
931
990
|
}
|
|
932
|
-
function
|
|
991
|
+
function as(e, t) {
|
|
933
992
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
934
993
|
}
|
|
935
994
|
function Sn(e, t, n) {
|
|
936
|
-
let r = !
|
|
937
|
-
return e && (r || n == !1) ?
|
|
995
|
+
let r = !is(t);
|
|
996
|
+
return e && (r || n == !1) ? as(e, t) : t;
|
|
938
997
|
}
|
|
939
|
-
const
|
|
998
|
+
const jt = (e) => e instanceof k ? { ...e } : e;
|
|
940
999
|
function pe(e, t) {
|
|
941
1000
|
t = t || {};
|
|
942
1001
|
const n = {};
|
|
@@ -994,21 +1053,28 @@ function pe(e, t) {
|
|
|
994
1053
|
socketPath: o,
|
|
995
1054
|
responseEncoding: o,
|
|
996
1055
|
validateStatus: a,
|
|
997
|
-
headers: (f, l, p) => s(
|
|
1056
|
+
headers: (f, l, p) => s(jt(f), jt(l), p, !0)
|
|
998
1057
|
};
|
|
999
1058
|
return c.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1000
|
-
|
|
1059
|
+
if (l === "__proto__" || l === "constructor" || l === "prototype") return;
|
|
1060
|
+
const p = c.hasOwnProp(d, l) ? d[l] : s, E = p(e[l], t[l], l);
|
|
1001
1061
|
c.isUndefined(E) && p !== a || (n[l] = E);
|
|
1002
1062
|
}), n;
|
|
1003
1063
|
}
|
|
1004
|
-
const
|
|
1064
|
+
const bn = (e) => {
|
|
1005
1065
|
const t = pe({}, e);
|
|
1006
1066
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = t;
|
|
1007
|
-
if (t.headers = o =
|
|
1067
|
+
if (t.headers = o = k.from(o), t.url = En(
|
|
1068
|
+
Sn(t.baseURL, t.url, t.allowAbsoluteUrls),
|
|
1069
|
+
e.params,
|
|
1070
|
+
e.paramsSerializer
|
|
1071
|
+
), a && o.set(
|
|
1008
1072
|
"Authorization",
|
|
1009
|
-
"Basic " + btoa(
|
|
1073
|
+
"Basic " + btoa(
|
|
1074
|
+
(a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")
|
|
1075
|
+
)
|
|
1010
1076
|
), c.isFormData(n)) {
|
|
1011
|
-
if (
|
|
1077
|
+
if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
|
|
1012
1078
|
o.setContentType(void 0);
|
|
1013
1079
|
else if (c.isFunction(n.getHeaders)) {
|
|
1014
1080
|
const d = n.getHeaders(), f = ["content-type", "content-length"];
|
|
@@ -1017,70 +1083,82 @@ const gn = (e) => {
|
|
|
1017
1083
|
});
|
|
1018
1084
|
}
|
|
1019
1085
|
}
|
|
1020
|
-
if (
|
|
1021
|
-
const d = s && i &&
|
|
1086
|
+
if (B.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && ss(t.url))) {
|
|
1087
|
+
const d = s && i && os.read(i);
|
|
1022
1088
|
d && o.set(s, d);
|
|
1023
1089
|
}
|
|
1024
1090
|
return t;
|
|
1025
|
-
},
|
|
1091
|
+
}, cs = typeof XMLHttpRequest < "u", us = cs && function(e) {
|
|
1026
1092
|
return new Promise(function(n, r) {
|
|
1027
|
-
const s =
|
|
1093
|
+
const s = bn(e);
|
|
1028
1094
|
let i = s.data;
|
|
1029
|
-
const o =
|
|
1095
|
+
const o = k.from(s.headers).normalize();
|
|
1030
1096
|
let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = s, l, p, E, y, u;
|
|
1031
1097
|
function m() {
|
|
1032
1098
|
y && y(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1033
1099
|
}
|
|
1034
1100
|
let h = new XMLHttpRequest();
|
|
1035
1101
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1036
|
-
function
|
|
1102
|
+
function S() {
|
|
1037
1103
|
if (!h)
|
|
1038
1104
|
return;
|
|
1039
|
-
const
|
|
1105
|
+
const _ = k.from(
|
|
1040
1106
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1041
|
-
),
|
|
1107
|
+
), g = {
|
|
1042
1108
|
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1043
1109
|
status: h.status,
|
|
1044
1110
|
statusText: h.statusText,
|
|
1045
|
-
headers:
|
|
1111
|
+
headers: _,
|
|
1046
1112
|
config: e,
|
|
1047
1113
|
request: h
|
|
1048
1114
|
};
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1115
|
+
Rn(
|
|
1116
|
+
function(A) {
|
|
1117
|
+
n(A), m();
|
|
1118
|
+
},
|
|
1119
|
+
function(A) {
|
|
1120
|
+
r(A), m();
|
|
1121
|
+
},
|
|
1122
|
+
g
|
|
1123
|
+
), h = null;
|
|
1054
1124
|
}
|
|
1055
|
-
"onloadend" in h ? h.onloadend =
|
|
1056
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1125
|
+
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
|
|
1126
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1057
1127
|
}, h.onabort = function() {
|
|
1058
|
-
h && (r(new
|
|
1128
|
+
h && (r(new R("Request aborted", R.ECONNABORTED, e, h)), h = null);
|
|
1059
1129
|
}, h.onerror = function(x) {
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1130
|
+
const g = x && x.message ? x.message : "Network Error", v = new R(g, R.ERR_NETWORK, e, h);
|
|
1131
|
+
v.event = x || null, r(v), h = null;
|
|
1062
1132
|
}, h.ontimeout = function() {
|
|
1063
1133
|
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1064
|
-
const
|
|
1065
|
-
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1074
|
-
h
|
|
1134
|
+
const g = s.transitional || Rt;
|
|
1135
|
+
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(
|
|
1136
|
+
new R(
|
|
1137
|
+
x,
|
|
1138
|
+
g.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
|
|
1139
|
+
e,
|
|
1140
|
+
h
|
|
1141
|
+
)
|
|
1142
|
+
), h = null;
|
|
1143
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && c.forEach(o.toJSON(), function(x, g) {
|
|
1144
|
+
h.setRequestHeader(g, x);
|
|
1145
|
+
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), f && ([E, u] = je(f, !0), h.addEventListener("progress", E)), d && h.upload && ([p, y] = je(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (_) => {
|
|
1146
|
+
h && (r(!_ || _.type ? new Ce(null, e, h) : _), h.abort(), h = null);
|
|
1075
1147
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1076
|
-
const w =
|
|
1077
|
-
if (w &&
|
|
1078
|
-
r(
|
|
1148
|
+
const w = ts(s.url);
|
|
1149
|
+
if (w && B.protocols.indexOf(w) === -1) {
|
|
1150
|
+
r(
|
|
1151
|
+
new R(
|
|
1152
|
+
"Unsupported protocol " + w + ":",
|
|
1153
|
+
R.ERR_BAD_REQUEST,
|
|
1154
|
+
e
|
|
1155
|
+
)
|
|
1156
|
+
);
|
|
1079
1157
|
return;
|
|
1080
1158
|
}
|
|
1081
1159
|
h.send(i || null);
|
|
1082
1160
|
});
|
|
1083
|
-
},
|
|
1161
|
+
}, ls = (e, t) => {
|
|
1084
1162
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1085
1163
|
if (t || n) {
|
|
1086
1164
|
let r = new AbortController(), s;
|
|
@@ -1088,11 +1166,13 @@ const gn = (e) => {
|
|
|
1088
1166
|
if (!s) {
|
|
1089
1167
|
s = !0, a();
|
|
1090
1168
|
const l = f instanceof Error ? f : this.reason;
|
|
1091
|
-
r.abort(
|
|
1169
|
+
r.abort(
|
|
1170
|
+
l instanceof R ? l : new Ce(l instanceof Error ? l.message : l)
|
|
1171
|
+
);
|
|
1092
1172
|
}
|
|
1093
1173
|
};
|
|
1094
1174
|
let o = t && setTimeout(() => {
|
|
1095
|
-
o = null, i(new
|
|
1175
|
+
o = null, i(new R(`timeout of ${t}ms exceeded`, R.ETIMEDOUT));
|
|
1096
1176
|
}, t);
|
|
1097
1177
|
const a = () => {
|
|
1098
1178
|
e && (o && clearTimeout(o), o = null, e.forEach((f) => {
|
|
@@ -1103,7 +1183,7 @@ const gn = (e) => {
|
|
|
1103
1183
|
const { signal: d } = r;
|
|
1104
1184
|
return d.unsubscribe = () => c.asap(a), d;
|
|
1105
1185
|
}
|
|
1106
|
-
},
|
|
1186
|
+
}, fs = function* (e, t) {
|
|
1107
1187
|
let n = e.byteLength;
|
|
1108
1188
|
if (n < t) {
|
|
1109
1189
|
yield e;
|
|
@@ -1112,10 +1192,10 @@ const gn = (e) => {
|
|
|
1112
1192
|
let r = 0, s;
|
|
1113
1193
|
for (; r < n; )
|
|
1114
1194
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1115
|
-
},
|
|
1116
|
-
for await (const n of
|
|
1117
|
-
yield*
|
|
1118
|
-
},
|
|
1195
|
+
}, ds = async function* (e, t) {
|
|
1196
|
+
for await (const n of ps(e))
|
|
1197
|
+
yield* fs(n, t);
|
|
1198
|
+
}, ps = async function* (e) {
|
|
1119
1199
|
if (e[Symbol.asyncIterator]) {
|
|
1120
1200
|
yield* e;
|
|
1121
1201
|
return;
|
|
@@ -1131,73 +1211,81 @@ const gn = (e) => {
|
|
|
1131
1211
|
} finally {
|
|
1132
1212
|
await t.cancel();
|
|
1133
1213
|
}
|
|
1134
|
-
},
|
|
1135
|
-
const s =
|
|
1214
|
+
}, qt = (e, t, n, r) => {
|
|
1215
|
+
const s = ds(e, t);
|
|
1136
1216
|
let i = 0, o, a = (d) => {
|
|
1137
1217
|
o || (o = !0, r && r(d));
|
|
1138
1218
|
};
|
|
1139
|
-
return new ReadableStream(
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1219
|
+
return new ReadableStream(
|
|
1220
|
+
{
|
|
1221
|
+
async pull(d) {
|
|
1222
|
+
try {
|
|
1223
|
+
const { done: f, value: l } = await s.next();
|
|
1224
|
+
if (f) {
|
|
1225
|
+
a(), d.close();
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
let p = l.byteLength;
|
|
1229
|
+
if (n) {
|
|
1230
|
+
let E = i += p;
|
|
1231
|
+
n(E);
|
|
1232
|
+
}
|
|
1233
|
+
d.enqueue(new Uint8Array(l));
|
|
1234
|
+
} catch (f) {
|
|
1235
|
+
throw a(f), f;
|
|
1151
1236
|
}
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1237
|
+
},
|
|
1238
|
+
cancel(d) {
|
|
1239
|
+
return a(d), s.return();
|
|
1155
1240
|
}
|
|
1156
1241
|
},
|
|
1157
|
-
|
|
1158
|
-
|
|
1242
|
+
{
|
|
1243
|
+
highWaterMark: 2
|
|
1159
1244
|
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
});
|
|
1163
|
-
}, Bt = 64 * 1024, { isFunction: Ne } = c, ls = (({ Request: e, Response: t }) => ({
|
|
1245
|
+
);
|
|
1246
|
+
}, kt = 64 * 1024, { isFunction: Le } = c, hs = (({ Request: e, Response: t }) => ({
|
|
1164
1247
|
Request: e,
|
|
1165
1248
|
Response: t
|
|
1166
|
-
}))(c.global), {
|
|
1167
|
-
ReadableStream: jt,
|
|
1168
|
-
TextEncoder: kt
|
|
1169
|
-
} = c.global, qt = (e, ...t) => {
|
|
1249
|
+
}))(c.global), { ReadableStream: Mt, TextEncoder: Ht } = c.global, Vt = (e, ...t) => {
|
|
1170
1250
|
try {
|
|
1171
1251
|
return !!e(...t);
|
|
1172
1252
|
} catch {
|
|
1173
1253
|
return !1;
|
|
1174
1254
|
}
|
|
1175
|
-
},
|
|
1176
|
-
e = c.merge.call(
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1255
|
+
}, ms = (e) => {
|
|
1256
|
+
e = c.merge.call(
|
|
1257
|
+
{
|
|
1258
|
+
skipUndefined: !0
|
|
1259
|
+
},
|
|
1260
|
+
hs,
|
|
1261
|
+
e
|
|
1262
|
+
);
|
|
1263
|
+
const { fetch: t, Request: n, Response: r } = e, s = t ? Le(t) : typeof fetch == "function", i = Le(n), o = Le(r);
|
|
1180
1264
|
if (!s)
|
|
1181
1265
|
return !1;
|
|
1182
|
-
const a = s &&
|
|
1266
|
+
const a = s && Le(Mt), d = s && (typeof Ht == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new Ht()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && a && Vt(() => {
|
|
1183
1267
|
let u = !1;
|
|
1184
|
-
const m = new n(
|
|
1185
|
-
body:
|
|
1268
|
+
const m = new Mt(), h = new n(B.origin, {
|
|
1269
|
+
body: m,
|
|
1186
1270
|
method: "POST",
|
|
1187
1271
|
get duplex() {
|
|
1188
1272
|
return u = !0, "half";
|
|
1189
1273
|
}
|
|
1190
1274
|
}).headers.has("Content-Type");
|
|
1191
|
-
return u && !
|
|
1192
|
-
}), l = o && a &&
|
|
1275
|
+
return m.cancel(), u && !h;
|
|
1276
|
+
}), l = o && a && Vt(() => c.isReadableStream(new r("").body)), p = {
|
|
1193
1277
|
stream: l && ((u) => u.body)
|
|
1194
1278
|
};
|
|
1195
1279
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
1196
1280
|
!p[u] && (p[u] = (m, h) => {
|
|
1197
|
-
let
|
|
1198
|
-
if (
|
|
1199
|
-
return
|
|
1200
|
-
throw new
|
|
1281
|
+
let S = m && m[u];
|
|
1282
|
+
if (S)
|
|
1283
|
+
return S.call(m);
|
|
1284
|
+
throw new R(
|
|
1285
|
+
`Response type '${u}' is not supported`,
|
|
1286
|
+
R.ERR_NOT_SUPPORT,
|
|
1287
|
+
h
|
|
1288
|
+
);
|
|
1201
1289
|
});
|
|
1202
1290
|
});
|
|
1203
1291
|
const E = async (u) => {
|
|
@@ -1206,7 +1294,7 @@ const gn = (e) => {
|
|
|
1206
1294
|
if (c.isBlob(u))
|
|
1207
1295
|
return u.size;
|
|
1208
1296
|
if (c.isSpecCompliantForm(u))
|
|
1209
|
-
return (await new n(
|
|
1297
|
+
return (await new n(B.origin, {
|
|
1210
1298
|
method: "POST",
|
|
1211
1299
|
body: u
|
|
1212
1300
|
}).arrayBuffer()).byteLength;
|
|
@@ -1222,109 +1310,117 @@ const gn = (e) => {
|
|
|
1222
1310
|
let {
|
|
1223
1311
|
url: m,
|
|
1224
1312
|
method: h,
|
|
1225
|
-
data:
|
|
1313
|
+
data: S,
|
|
1226
1314
|
signal: w,
|
|
1227
|
-
cancelToken:
|
|
1315
|
+
cancelToken: _,
|
|
1228
1316
|
timeout: x,
|
|
1229
|
-
onDownloadProgress:
|
|
1230
|
-
onUploadProgress:
|
|
1231
|
-
responseType:
|
|
1232
|
-
headers:
|
|
1317
|
+
onDownloadProgress: g,
|
|
1318
|
+
onUploadProgress: v,
|
|
1319
|
+
responseType: A,
|
|
1320
|
+
headers: Y,
|
|
1233
1321
|
withCredentials: O = "same-origin",
|
|
1234
1322
|
fetchOptions: ee
|
|
1235
|
-
} =
|
|
1236
|
-
|
|
1237
|
-
let
|
|
1238
|
-
|
|
1239
|
-
|
|
1323
|
+
} = bn(u), M = t || fetch;
|
|
1324
|
+
A = A ? (A + "").toLowerCase() : "text";
|
|
1325
|
+
let z = ls(
|
|
1326
|
+
[w, _ && _.toAbortSignal()],
|
|
1327
|
+
x
|
|
1328
|
+
), H = null;
|
|
1329
|
+
const P = z && z.unsubscribe && (() => {
|
|
1330
|
+
z.unsubscribe();
|
|
1240
1331
|
});
|
|
1241
1332
|
let te;
|
|
1242
1333
|
try {
|
|
1243
|
-
if (
|
|
1244
|
-
let
|
|
1334
|
+
if (v && f && h !== "get" && h !== "head" && (te = await y(Y, S)) !== 0) {
|
|
1335
|
+
let Q = new n(m, {
|
|
1245
1336
|
method: "POST",
|
|
1246
|
-
body:
|
|
1337
|
+
body: S,
|
|
1247
1338
|
duplex: "half"
|
|
1248
1339
|
}), V;
|
|
1249
|
-
if (c.isFormData(
|
|
1250
|
-
const [
|
|
1340
|
+
if (c.isFormData(S) && (V = Q.headers.get("content-type")) && Y.setContentType(V), Q.body) {
|
|
1341
|
+
const [K, re] = It(
|
|
1251
1342
|
te,
|
|
1252
|
-
je(
|
|
1343
|
+
je(Bt(v))
|
|
1253
1344
|
);
|
|
1254
|
-
|
|
1345
|
+
S = qt(Q.body, kt, K, re);
|
|
1255
1346
|
}
|
|
1256
1347
|
}
|
|
1257
1348
|
c.isString(O) || (O = O ? "include" : "omit");
|
|
1258
|
-
const
|
|
1349
|
+
const F = i && "credentials" in n.prototype, Re = {
|
|
1259
1350
|
...ee,
|
|
1260
|
-
signal:
|
|
1351
|
+
signal: z,
|
|
1261
1352
|
method: h.toUpperCase(),
|
|
1262
|
-
headers:
|
|
1263
|
-
body:
|
|
1353
|
+
headers: Y.normalize().toJSON(),
|
|
1354
|
+
body: S,
|
|
1264
1355
|
duplex: "half",
|
|
1265
|
-
credentials:
|
|
1356
|
+
credentials: F ? O : void 0
|
|
1266
1357
|
};
|
|
1267
|
-
|
|
1268
|
-
let
|
|
1269
|
-
const ne = l && (
|
|
1270
|
-
if (l && (
|
|
1271
|
-
const
|
|
1358
|
+
H = i && new n(m, Re);
|
|
1359
|
+
let J = await (i ? M(H, ee) : M(m, Re));
|
|
1360
|
+
const ne = l && (A === "stream" || A === "response");
|
|
1361
|
+
if (l && (g || ne && P)) {
|
|
1362
|
+
const Q = {};
|
|
1272
1363
|
["status", "statusText", "headers"].forEach((he) => {
|
|
1273
|
-
|
|
1364
|
+
Q[he] = J[he];
|
|
1274
1365
|
});
|
|
1275
|
-
const V = c.toFiniteNumber(
|
|
1366
|
+
const V = c.toFiniteNumber(J.headers.get("content-length")), [K, re] = g && It(
|
|
1276
1367
|
V,
|
|
1277
|
-
je(
|
|
1368
|
+
je(Bt(g), !0)
|
|
1278
1369
|
) || [];
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
re && re(),
|
|
1370
|
+
J = new r(
|
|
1371
|
+
qt(J.body, kt, K, () => {
|
|
1372
|
+
re && re(), P && P();
|
|
1282
1373
|
}),
|
|
1283
|
-
|
|
1374
|
+
Q
|
|
1284
1375
|
);
|
|
1285
1376
|
}
|
|
1286
|
-
|
|
1287
|
-
let De = await p[c.findKey(p,
|
|
1288
|
-
|
|
1289
|
-
|
|
1377
|
+
A = A || "text";
|
|
1378
|
+
let De = await p[c.findKey(p, A) || "text"](
|
|
1379
|
+
J,
|
|
1380
|
+
u
|
|
1381
|
+
);
|
|
1382
|
+
return !ne && P && P(), await new Promise((Q, V) => {
|
|
1383
|
+
Rn(Q, V, {
|
|
1290
1384
|
data: De,
|
|
1291
|
-
headers:
|
|
1292
|
-
status:
|
|
1293
|
-
statusText:
|
|
1385
|
+
headers: k.from(J.headers),
|
|
1386
|
+
status: J.status,
|
|
1387
|
+
statusText: J.statusText,
|
|
1294
1388
|
config: u,
|
|
1295
|
-
request:
|
|
1389
|
+
request: H
|
|
1296
1390
|
});
|
|
1297
1391
|
});
|
|
1298
|
-
} catch (
|
|
1299
|
-
throw
|
|
1300
|
-
new
|
|
1392
|
+
} catch (F) {
|
|
1393
|
+
throw P && P(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
|
|
1394
|
+
new R(
|
|
1395
|
+
"Network Error",
|
|
1396
|
+
R.ERR_NETWORK,
|
|
1397
|
+
u,
|
|
1398
|
+
H,
|
|
1399
|
+
F && F.response
|
|
1400
|
+
),
|
|
1301
1401
|
{
|
|
1302
|
-
cause:
|
|
1402
|
+
cause: F.cause || F
|
|
1303
1403
|
}
|
|
1304
|
-
) :
|
|
1404
|
+
) : R.from(F, F && F.code, u, H, F && F.response);
|
|
1305
1405
|
}
|
|
1306
1406
|
};
|
|
1307
|
-
},
|
|
1407
|
+
}, Es = /* @__PURE__ */ new Map(), gn = (e) => {
|
|
1308
1408
|
let t = e && e.env || {};
|
|
1309
|
-
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1310
|
-
|
|
1311
|
-
s,
|
|
1312
|
-
n
|
|
1313
|
-
];
|
|
1314
|
-
let o = i.length, a = o, d, f, l = ds;
|
|
1409
|
+
const { fetch: n, Request: r, Response: s } = t, i = [r, s, n];
|
|
1410
|
+
let o = i.length, a = o, d, f, l = Es;
|
|
1315
1411
|
for (; a--; )
|
|
1316
|
-
d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() :
|
|
1412
|
+
d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() : ms(t)), l = f;
|
|
1317
1413
|
return f;
|
|
1318
1414
|
};
|
|
1319
|
-
|
|
1320
|
-
const
|
|
1321
|
-
http:
|
|
1322
|
-
xhr:
|
|
1415
|
+
gn();
|
|
1416
|
+
const bt = {
|
|
1417
|
+
http: Fr,
|
|
1418
|
+
xhr: us,
|
|
1323
1419
|
fetch: {
|
|
1324
|
-
get:
|
|
1420
|
+
get: gn
|
|
1325
1421
|
}
|
|
1326
1422
|
};
|
|
1327
|
-
c.forEach(
|
|
1423
|
+
c.forEach(bt, (e, t) => {
|
|
1328
1424
|
if (e) {
|
|
1329
1425
|
try {
|
|
1330
1426
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1333,8 +1429,8 @@ c.forEach(St, (e, t) => {
|
|
|
1333
1429
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1334
1430
|
}
|
|
1335
1431
|
});
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1432
|
+
const $t = (e) => `- ${e}`, ys = (e) => c.isFunction(e) || e === null || e === !1;
|
|
1433
|
+
function ws(e, t) {
|
|
1338
1434
|
e = c.isArray(e) ? e : [e];
|
|
1339
1435
|
const { length: n } = e;
|
|
1340
1436
|
let r, s;
|
|
@@ -1342,8 +1438,8 @@ function hs(e, t) {
|
|
|
1342
1438
|
for (let o = 0; o < n; o++) {
|
|
1343
1439
|
r = e[o];
|
|
1344
1440
|
let a;
|
|
1345
|
-
if (s = r, !
|
|
1346
|
-
throw new
|
|
1441
|
+
if (s = r, !ys(r) && (s = bt[(a = String(r)).toLowerCase()], s === void 0))
|
|
1442
|
+
throw new R(`Unknown adapter '${a}'`);
|
|
1347
1443
|
if (s && (c.isFunction(s) || (s = s.get(t))))
|
|
1348
1444
|
break;
|
|
1349
1445
|
i[a || "#" + o] = s;
|
|
@@ -1353,67 +1449,63 @@ function hs(e, t) {
|
|
|
1353
1449
|
([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1354
1450
|
);
|
|
1355
1451
|
let a = n ? o.length > 1 ? `since :
|
|
1356
|
-
` + o.map(
|
|
1357
|
-
`) : " " +
|
|
1358
|
-
throw new
|
|
1452
|
+
` + o.map($t).join(`
|
|
1453
|
+
`) : " " + $t(o[0]) : "as no adapter specified";
|
|
1454
|
+
throw new R(
|
|
1359
1455
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1360
1456
|
"ERR_NOT_SUPPORT"
|
|
1361
1457
|
);
|
|
1362
1458
|
}
|
|
1363
1459
|
return s;
|
|
1364
1460
|
}
|
|
1365
|
-
const
|
|
1461
|
+
const On = {
|
|
1366
1462
|
/**
|
|
1367
1463
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1368
1464
|
* @type {Function}
|
|
1369
1465
|
*/
|
|
1370
|
-
getAdapter:
|
|
1466
|
+
getAdapter: ws,
|
|
1371
1467
|
/**
|
|
1372
1468
|
* Exposes all known adapters
|
|
1373
1469
|
* @type {Object<string, Function|Object>}
|
|
1374
1470
|
*/
|
|
1375
|
-
adapters:
|
|
1471
|
+
adapters: bt
|
|
1376
1472
|
};
|
|
1377
|
-
function
|
|
1473
|
+
function Xe(e) {
|
|
1378
1474
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1379
|
-
throw new
|
|
1475
|
+
throw new Ce(null, e);
|
|
1380
1476
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
e,
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
e.transformResponse,
|
|
1395
|
-
r.response
|
|
1396
|
-
), r.response.headers = q.from(r.response.headers))), Promise.reject(r);
|
|
1397
|
-
});
|
|
1477
|
+
function Wt(e) {
|
|
1478
|
+
return Xe(e), e.headers = k.from(e.headers), e.data = Ge.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), On.getAdapter(e.adapter || Ae.adapter, e)(e).then(
|
|
1479
|
+
function(r) {
|
|
1480
|
+
return Xe(e), r.data = Ge.call(e, e.transformResponse, r), r.headers = k.from(r.headers), r;
|
|
1481
|
+
},
|
|
1482
|
+
function(r) {
|
|
1483
|
+
return wn(r) || (Xe(e), r && r.response && (r.response.data = Ge.call(
|
|
1484
|
+
e,
|
|
1485
|
+
e.transformResponse,
|
|
1486
|
+
r.response
|
|
1487
|
+
), r.response.headers = k.from(r.response.headers))), Promise.reject(r);
|
|
1488
|
+
}
|
|
1489
|
+
);
|
|
1398
1490
|
}
|
|
1399
|
-
const
|
|
1491
|
+
const Tn = "1.14.0", Ve = {};
|
|
1400
1492
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1401
1493
|
Ve[e] = function(r) {
|
|
1402
1494
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1403
1495
|
};
|
|
1404
1496
|
});
|
|
1405
|
-
const
|
|
1497
|
+
const zt = {};
|
|
1406
1498
|
Ve.transitional = function(t, n, r) {
|
|
1407
1499
|
function s(i, o) {
|
|
1408
|
-
return "[Axios v" +
|
|
1500
|
+
return "[Axios v" + Tn + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1409
1501
|
}
|
|
1410
1502
|
return (i, o, a) => {
|
|
1411
1503
|
if (t === !1)
|
|
1412
|
-
throw new
|
|
1504
|
+
throw new R(
|
|
1413
1505
|
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1414
|
-
|
|
1506
|
+
R.ERR_DEPRECATED
|
|
1415
1507
|
);
|
|
1416
|
-
return n && !
|
|
1508
|
+
return n && !zt[o] && (zt[o] = !0, console.warn(
|
|
1417
1509
|
s(
|
|
1418
1510
|
o,
|
|
1419
1511
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1424,9 +1516,9 @@ Ve.transitional = function(t, n, r) {
|
|
|
1424
1516
|
Ve.spelling = function(t) {
|
|
1425
1517
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1426
1518
|
};
|
|
1427
|
-
function
|
|
1519
|
+
function Rs(e, t, n) {
|
|
1428
1520
|
if (typeof e != "object")
|
|
1429
|
-
throw new
|
|
1521
|
+
throw new R("options must be an object", R.ERR_BAD_OPTION_VALUE);
|
|
1430
1522
|
const r = Object.keys(e);
|
|
1431
1523
|
let s = r.length;
|
|
1432
1524
|
for (; s-- > 0; ) {
|
|
@@ -1434,22 +1526,25 @@ function ms(e, t, n) {
|
|
|
1434
1526
|
if (o) {
|
|
1435
1527
|
const a = e[i], d = a === void 0 || o(a, i, e);
|
|
1436
1528
|
if (d !== !0)
|
|
1437
|
-
throw new
|
|
1529
|
+
throw new R(
|
|
1530
|
+
"option " + i + " must be " + d,
|
|
1531
|
+
R.ERR_BAD_OPTION_VALUE
|
|
1532
|
+
);
|
|
1438
1533
|
continue;
|
|
1439
1534
|
}
|
|
1440
1535
|
if (n !== !0)
|
|
1441
|
-
throw new
|
|
1536
|
+
throw new R("Unknown option " + i, R.ERR_BAD_OPTION);
|
|
1442
1537
|
}
|
|
1443
1538
|
}
|
|
1444
1539
|
const Be = {
|
|
1445
|
-
assertOptions:
|
|
1540
|
+
assertOptions: Rs,
|
|
1446
1541
|
validators: Ve
|
|
1447
|
-
},
|
|
1542
|
+
}, W = Be.validators;
|
|
1448
1543
|
let de = class {
|
|
1449
1544
|
constructor(t) {
|
|
1450
1545
|
this.defaults = t || {}, this.interceptors = {
|
|
1451
|
-
request: new
|
|
1452
|
-
response: new
|
|
1546
|
+
request: new vt(),
|
|
1547
|
+
response: new vt()
|
|
1453
1548
|
};
|
|
1454
1549
|
}
|
|
1455
1550
|
/**
|
|
@@ -1480,33 +1575,44 @@ let de = class {
|
|
|
1480
1575
|
_request(t, n) {
|
|
1481
1576
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = pe(this.defaults, n);
|
|
1482
1577
|
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1483
|
-
r !== void 0 && Be.assertOptions(
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1578
|
+
r !== void 0 && Be.assertOptions(
|
|
1579
|
+
r,
|
|
1580
|
+
{
|
|
1581
|
+
silentJSONParsing: W.transitional(W.boolean),
|
|
1582
|
+
forcedJSONParsing: W.transitional(W.boolean),
|
|
1583
|
+
clarifyTimeoutError: W.transitional(W.boolean),
|
|
1584
|
+
legacyInterceptorReqResOrdering: W.transitional(W.boolean)
|
|
1585
|
+
},
|
|
1586
|
+
!1
|
|
1587
|
+
), s != null && (c.isFunction(s) ? n.paramsSerializer = {
|
|
1488
1588
|
serialize: s
|
|
1489
|
-
} : Be.assertOptions(
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1589
|
+
} : Be.assertOptions(
|
|
1590
|
+
s,
|
|
1591
|
+
{
|
|
1592
|
+
encode: W.function,
|
|
1593
|
+
serialize: W.function
|
|
1594
|
+
},
|
|
1595
|
+
!0
|
|
1596
|
+
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(
|
|
1597
|
+
n,
|
|
1598
|
+
{
|
|
1599
|
+
baseUrl: W.spelling("baseURL"),
|
|
1600
|
+
withXsrfToken: W.spelling("withXSRFToken")
|
|
1601
|
+
},
|
|
1602
|
+
!0
|
|
1603
|
+
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1604
|
+
let o = i && c.merge(i.common, i[n.method]);
|
|
1605
|
+
i && c.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (u) => {
|
|
1606
|
+
delete i[u];
|
|
1607
|
+
}), n.headers = k.concat(o, i);
|
|
1506
1608
|
const a = [];
|
|
1507
1609
|
let d = !0;
|
|
1508
1610
|
this.interceptors.request.forEach(function(m) {
|
|
1509
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1
|
|
1611
|
+
if (typeof m.runWhen == "function" && m.runWhen(n) === !1)
|
|
1612
|
+
return;
|
|
1613
|
+
d = d && m.synchronous;
|
|
1614
|
+
const h = n.transitional || Rt;
|
|
1615
|
+
h && h.legacyInterceptorReqResOrdering ? a.unshift(m.fulfilled, m.rejected) : a.push(m.fulfilled, m.rejected);
|
|
1510
1616
|
});
|
|
1511
1617
|
const f = [];
|
|
1512
1618
|
this.interceptors.response.forEach(function(m) {
|
|
@@ -1514,7 +1620,7 @@ let de = class {
|
|
|
1514
1620
|
});
|
|
1515
1621
|
let l, p = 0, E;
|
|
1516
1622
|
if (!d) {
|
|
1517
|
-
const u = [
|
|
1623
|
+
const u = [Wt.bind(this), void 0];
|
|
1518
1624
|
for (u.unshift(...a), u.push(...f), E = u.length, l = Promise.resolve(n); p < E; )
|
|
1519
1625
|
l = l.then(u[p++], u[p++]);
|
|
1520
1626
|
return l;
|
|
@@ -1531,7 +1637,7 @@ let de = class {
|
|
|
1531
1637
|
}
|
|
1532
1638
|
}
|
|
1533
1639
|
try {
|
|
1534
|
-
l =
|
|
1640
|
+
l = Wt.call(this, y);
|
|
1535
1641
|
} catch (u) {
|
|
1536
1642
|
return Promise.reject(u);
|
|
1537
1643
|
}
|
|
@@ -1542,34 +1648,38 @@ let de = class {
|
|
|
1542
1648
|
getUri(t) {
|
|
1543
1649
|
t = pe(this.defaults, t);
|
|
1544
1650
|
const n = Sn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1545
|
-
return
|
|
1651
|
+
return En(n, t.params, t.paramsSerializer);
|
|
1546
1652
|
}
|
|
1547
1653
|
};
|
|
1548
1654
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1549
1655
|
de.prototype[t] = function(n, r) {
|
|
1550
|
-
return this.request(
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1656
|
+
return this.request(
|
|
1657
|
+
pe(r || {}, {
|
|
1658
|
+
method: t,
|
|
1659
|
+
url: n,
|
|
1660
|
+
data: (r || {}).data
|
|
1661
|
+
})
|
|
1662
|
+
);
|
|
1555
1663
|
};
|
|
1556
1664
|
});
|
|
1557
1665
|
c.forEach(["post", "put", "patch"], function(t) {
|
|
1558
1666
|
function n(r) {
|
|
1559
1667
|
return function(i, o, a) {
|
|
1560
|
-
return this.request(
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1668
|
+
return this.request(
|
|
1669
|
+
pe(a || {}, {
|
|
1670
|
+
method: t,
|
|
1671
|
+
headers: r ? {
|
|
1672
|
+
"Content-Type": "multipart/form-data"
|
|
1673
|
+
} : {},
|
|
1674
|
+
url: i,
|
|
1675
|
+
data: o
|
|
1676
|
+
})
|
|
1677
|
+
);
|
|
1568
1678
|
};
|
|
1569
1679
|
}
|
|
1570
1680
|
de.prototype[t] = n(), de.prototype[t + "Form"] = n(!0);
|
|
1571
1681
|
});
|
|
1572
|
-
let
|
|
1682
|
+
let Ss = class _n {
|
|
1573
1683
|
constructor(t) {
|
|
1574
1684
|
if (typeof t != "function")
|
|
1575
1685
|
throw new TypeError("executor must be a function.");
|
|
@@ -1593,7 +1703,7 @@ let Es = class Tn {
|
|
|
1593
1703
|
r.unsubscribe(i);
|
|
1594
1704
|
}, o;
|
|
1595
1705
|
}, t(function(i, o, a) {
|
|
1596
|
-
r.reason || (r.reason = new
|
|
1706
|
+
r.reason || (r.reason = new Ce(i, o, a), n(r.reason));
|
|
1597
1707
|
});
|
|
1598
1708
|
}
|
|
1599
1709
|
/**
|
|
@@ -1635,22 +1745,22 @@ let Es = class Tn {
|
|
|
1635
1745
|
static source() {
|
|
1636
1746
|
let t;
|
|
1637
1747
|
return {
|
|
1638
|
-
token: new
|
|
1748
|
+
token: new _n(function(s) {
|
|
1639
1749
|
t = s;
|
|
1640
1750
|
}),
|
|
1641
1751
|
cancel: t
|
|
1642
1752
|
};
|
|
1643
1753
|
}
|
|
1644
1754
|
};
|
|
1645
|
-
function
|
|
1755
|
+
function bs(e) {
|
|
1646
1756
|
return function(n) {
|
|
1647
1757
|
return e.apply(null, n);
|
|
1648
1758
|
};
|
|
1649
1759
|
}
|
|
1650
|
-
function
|
|
1760
|
+
function gs(e) {
|
|
1651
1761
|
return c.isObject(e) && e.isAxiosError === !0;
|
|
1652
1762
|
}
|
|
1653
|
-
const
|
|
1763
|
+
const ct = {
|
|
1654
1764
|
Continue: 100,
|
|
1655
1765
|
SwitchingProtocols: 101,
|
|
1656
1766
|
Processing: 102,
|
|
@@ -1721,59 +1831,59 @@ const at = {
|
|
|
1721
1831
|
SslHandshakeFailed: 525,
|
|
1722
1832
|
InvalidSslCertificate: 526
|
|
1723
1833
|
};
|
|
1724
|
-
Object.entries(
|
|
1725
|
-
|
|
1834
|
+
Object.entries(ct).forEach(([e, t]) => {
|
|
1835
|
+
ct[t] = e;
|
|
1726
1836
|
});
|
|
1727
1837
|
function An(e) {
|
|
1728
|
-
const t = new de(e), n =
|
|
1838
|
+
const t = new de(e), n = sn(de.prototype.request, t);
|
|
1729
1839
|
return c.extend(n, de.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1730
1840
|
return An(pe(e, s));
|
|
1731
1841
|
}, n;
|
|
1732
1842
|
}
|
|
1733
|
-
const
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1843
|
+
const L = An(Ae);
|
|
1844
|
+
L.Axios = de;
|
|
1845
|
+
L.CanceledError = Ce;
|
|
1846
|
+
L.CancelToken = Ss;
|
|
1847
|
+
L.isCancel = wn;
|
|
1848
|
+
L.VERSION = Tn;
|
|
1849
|
+
L.toFormData = He;
|
|
1850
|
+
L.AxiosError = R;
|
|
1851
|
+
L.Cancel = L.CanceledError;
|
|
1852
|
+
L.all = function(t) {
|
|
1743
1853
|
return Promise.all(t);
|
|
1744
1854
|
};
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1855
|
+
L.spread = bs;
|
|
1856
|
+
L.isAxiosError = gs;
|
|
1857
|
+
L.mergeConfig = pe;
|
|
1858
|
+
L.AxiosHeaders = k;
|
|
1859
|
+
L.formToJSON = (e) => yn(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1860
|
+
L.getAdapter = On.getAdapter;
|
|
1861
|
+
L.HttpStatusCode = ct;
|
|
1862
|
+
L.default = L;
|
|
1753
1863
|
const {
|
|
1754
|
-
Axios:
|
|
1755
|
-
AxiosError:
|
|
1756
|
-
CanceledError:
|
|
1757
|
-
isCancel:
|
|
1758
|
-
CancelToken:
|
|
1759
|
-
VERSION:
|
|
1760
|
-
all:
|
|
1761
|
-
Cancel:
|
|
1762
|
-
isAxiosError:
|
|
1763
|
-
spread:
|
|
1764
|
-
toFormData:
|
|
1765
|
-
AxiosHeaders:
|
|
1766
|
-
HttpStatusCode:
|
|
1767
|
-
formToJSON:
|
|
1768
|
-
getAdapter:
|
|
1769
|
-
mergeConfig:
|
|
1770
|
-
} =
|
|
1771
|
-
var
|
|
1772
|
-
var
|
|
1773
|
-
function
|
|
1774
|
-
if (
|
|
1775
|
-
|
|
1776
|
-
var e =
|
|
1864
|
+
Axios: oo,
|
|
1865
|
+
AxiosError: io,
|
|
1866
|
+
CanceledError: ao,
|
|
1867
|
+
isCancel: co,
|
|
1868
|
+
CancelToken: uo,
|
|
1869
|
+
VERSION: lo,
|
|
1870
|
+
all: fo,
|
|
1871
|
+
Cancel: po,
|
|
1872
|
+
isAxiosError: ho,
|
|
1873
|
+
spread: mo,
|
|
1874
|
+
toFormData: Eo,
|
|
1875
|
+
AxiosHeaders: yo,
|
|
1876
|
+
HttpStatusCode: wo,
|
|
1877
|
+
formToJSON: Ro,
|
|
1878
|
+
getAdapter: So,
|
|
1879
|
+
mergeConfig: bo
|
|
1880
|
+
} = L;
|
|
1881
|
+
var Pe = { exports: {} }, Ye = {};
|
|
1882
|
+
var Jt;
|
|
1883
|
+
function Os() {
|
|
1884
|
+
if (Jt) return Ye;
|
|
1885
|
+
Jt = 1;
|
|
1886
|
+
var e = ge;
|
|
1777
1887
|
function t(p, E) {
|
|
1778
1888
|
return p === E && (p !== 0 || 1 / p === 1 / E) || p !== p && E !== E;
|
|
1779
1889
|
}
|
|
@@ -1808,12 +1918,12 @@ function Ss() {
|
|
|
1808
1918
|
return E();
|
|
1809
1919
|
}
|
|
1810
1920
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : a;
|
|
1811
|
-
return
|
|
1921
|
+
return Ye.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Ye;
|
|
1812
1922
|
}
|
|
1813
|
-
var
|
|
1814
|
-
var
|
|
1815
|
-
function
|
|
1816
|
-
return
|
|
1923
|
+
var Qe = {};
|
|
1924
|
+
var Kt;
|
|
1925
|
+
function Ts() {
|
|
1926
|
+
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1817
1927
|
function e(y, u) {
|
|
1818
1928
|
return y === u && (y !== 0 || 1 / y === 1 / u) || y !== y && u !== u;
|
|
1819
1929
|
}
|
|
@@ -1831,16 +1941,16 @@ function gs() {
|
|
|
1831
1941
|
h = o({
|
|
1832
1942
|
inst: { value: m, getSnapshot: u }
|
|
1833
1943
|
});
|
|
1834
|
-
var
|
|
1944
|
+
var S = h[0].inst, w = h[1];
|
|
1835
1945
|
return d(
|
|
1836
1946
|
function() {
|
|
1837
|
-
|
|
1947
|
+
S.value = m, S.getSnapshot = u, n(S) && w({ inst: S });
|
|
1838
1948
|
},
|
|
1839
1949
|
[y, m, u]
|
|
1840
1950
|
), a(
|
|
1841
1951
|
function() {
|
|
1842
|
-
return n(
|
|
1843
|
-
n(
|
|
1952
|
+
return n(S) && w({ inst: S }), y(function() {
|
|
1953
|
+
n(S) && w({ inst: S });
|
|
1844
1954
|
});
|
|
1845
1955
|
},
|
|
1846
1956
|
[y]
|
|
@@ -1860,18 +1970,18 @@ function gs() {
|
|
|
1860
1970
|
return u();
|
|
1861
1971
|
}
|
|
1862
1972
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1863
|
-
var s =
|
|
1864
|
-
|
|
1865
|
-
})()),
|
|
1973
|
+
var s = ge, i = typeof Object.is == "function" ? Object.is : e, o = s.useState, a = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, l = !1, p = !1, E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
1974
|
+
Qe.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1975
|
+
})()), Qe;
|
|
1866
1976
|
}
|
|
1867
|
-
var
|
|
1868
|
-
function
|
|
1869
|
-
return
|
|
1977
|
+
var Gt;
|
|
1978
|
+
function _s() {
|
|
1979
|
+
return Gt || (Gt = 1, process.env.NODE_ENV === "production" ? Pe.exports = Os() : Pe.exports = Ts()), Pe.exports;
|
|
1870
1980
|
}
|
|
1871
|
-
var
|
|
1872
|
-
const
|
|
1873
|
-
var
|
|
1874
|
-
function
|
|
1981
|
+
var Xt = _s();
|
|
1982
|
+
const Cn = 0, xn = 1, Dn = 2, Yt = 3;
|
|
1983
|
+
var Qt = Object.prototype.hasOwnProperty;
|
|
1984
|
+
function ut(e, t) {
|
|
1875
1985
|
var n, r;
|
|
1876
1986
|
if (e === t) return !0;
|
|
1877
1987
|
if (e && t && (n = e.constructor) === t.constructor) {
|
|
@@ -1879,96 +1989,96 @@ function ct(e, t) {
|
|
|
1879
1989
|
if (n === RegExp) return e.toString() === t.toString();
|
|
1880
1990
|
if (n === Array) {
|
|
1881
1991
|
if ((r = e.length) === t.length)
|
|
1882
|
-
for (; r-- &&
|
|
1992
|
+
for (; r-- && ut(e[r], t[r]); ) ;
|
|
1883
1993
|
return r === -1;
|
|
1884
1994
|
}
|
|
1885
1995
|
if (!n || typeof e == "object") {
|
|
1886
1996
|
r = 0;
|
|
1887
1997
|
for (n in e)
|
|
1888
|
-
if (
|
|
1998
|
+
if (Qt.call(e, n) && ++r && !Qt.call(t, n) || !(n in t) || !ut(e[n], t[n])) return !1;
|
|
1889
1999
|
return Object.keys(t).length === r;
|
|
1890
2000
|
}
|
|
1891
2001
|
}
|
|
1892
2002
|
return e !== e && t !== t;
|
|
1893
2003
|
}
|
|
1894
2004
|
const ie = /* @__PURE__ */ new WeakMap(), ae = () => {
|
|
1895
|
-
},
|
|
2005
|
+
}, I = (
|
|
1896
2006
|
/*#__NOINLINE__*/
|
|
1897
2007
|
ae()
|
|
1898
|
-
),
|
|
2008
|
+
), lt = Object, b = (e) => e === I, Z = (e) => typeof e == "function", ce = (e, t) => ({
|
|
1899
2009
|
...e,
|
|
1900
2010
|
...t
|
|
1901
|
-
}),
|
|
2011
|
+
}), Nn = (e) => Z(e.then), Ze = {}, Fe = {}, gt = "undefined", xe = typeof window != gt, ft = typeof document != gt, As = xe && "Deno" in window, Cs = () => xe && typeof window.requestAnimationFrame != gt, Ln = (e, t) => {
|
|
1902
2012
|
const n = ie.get(e);
|
|
1903
2013
|
return [
|
|
1904
2014
|
// Getter
|
|
1905
|
-
() => !b(t) && e.get(t) ||
|
|
2015
|
+
() => !b(t) && e.get(t) || Ze,
|
|
1906
2016
|
// Setter
|
|
1907
2017
|
(r) => {
|
|
1908
2018
|
if (!b(t)) {
|
|
1909
2019
|
const s = e.get(t);
|
|
1910
|
-
t in
|
|
2020
|
+
t in Fe || (Fe[t] = s), n[5](t, ce(s, r), s || Ze);
|
|
1911
2021
|
}
|
|
1912
2022
|
},
|
|
1913
2023
|
// Subscriber
|
|
1914
2024
|
n[6],
|
|
1915
2025
|
// Get server cache snapshot
|
|
1916
|
-
() => !b(t) && t in
|
|
2026
|
+
() => !b(t) && t in Fe ? Fe[t] : !b(t) && e.get(t) || Ze
|
|
1917
2027
|
];
|
|
1918
2028
|
};
|
|
1919
|
-
let
|
|
1920
|
-
const
|
|
2029
|
+
let dt = !0;
|
|
2030
|
+
const xs = () => dt, [pt, ht] = xe && window.addEventListener ? [
|
|
1921
2031
|
window.addEventListener.bind(window),
|
|
1922
2032
|
window.removeEventListener.bind(window)
|
|
1923
2033
|
] : [
|
|
1924
2034
|
ae,
|
|
1925
2035
|
ae
|
|
1926
|
-
],
|
|
1927
|
-
const e =
|
|
2036
|
+
], Ds = () => {
|
|
2037
|
+
const e = ft && document.visibilityState;
|
|
1928
2038
|
return b(e) || e !== "hidden";
|
|
1929
|
-
},
|
|
1930
|
-
|
|
1931
|
-
}),
|
|
2039
|
+
}, Ns = (e) => (ft && document.addEventListener("visibilitychange", e), pt("focus", e), () => {
|
|
2040
|
+
ft && document.removeEventListener("visibilitychange", e), ht("focus", e);
|
|
2041
|
+
}), Ls = (e) => {
|
|
1932
2042
|
const t = () => {
|
|
1933
|
-
|
|
2043
|
+
dt = !0, e();
|
|
1934
2044
|
}, n = () => {
|
|
1935
|
-
|
|
2045
|
+
dt = !1;
|
|
1936
2046
|
};
|
|
1937
|
-
return
|
|
1938
|
-
|
|
2047
|
+
return pt("online", t), pt("offline", n), () => {
|
|
2048
|
+
ht("online", t), ht("offline", n);
|
|
1939
2049
|
};
|
|
1940
|
-
},
|
|
1941
|
-
isOnline:
|
|
1942
|
-
isVisible:
|
|
1943
|
-
},
|
|
1944
|
-
initFocus:
|
|
1945
|
-
initReconnect:
|
|
1946
|
-
},
|
|
2050
|
+
}, Ps = {
|
|
2051
|
+
isOnline: xs,
|
|
2052
|
+
isVisible: Ds
|
|
2053
|
+
}, Fs = {
|
|
2054
|
+
initFocus: Ns,
|
|
2055
|
+
initReconnect: Ls
|
|
2056
|
+
}, Zt = !ge.useId, Ee = !xe || As, vs = (e) => Cs() ? window.requestAnimationFrame(e) : setTimeout(e, 1), et = Ee ? Mn : Hn, tt = typeof navigator < "u" && navigator.connection, en = !Ee && tt && ([
|
|
1947
2057
|
"slow-2g",
|
|
1948
2058
|
"2g"
|
|
1949
|
-
].includes(
|
|
1950
|
-
let
|
|
1951
|
-
const
|
|
1952
|
-
const t = typeof e, n =
|
|
2059
|
+
].includes(tt.effectiveType) || tt.saveData), ve = /* @__PURE__ */ new WeakMap(), Us = (e) => lt.prototype.toString.call(e), nt = (e, t) => e === `[object ${t}]`;
|
|
2060
|
+
let Is = 0;
|
|
2061
|
+
const mt = (e) => {
|
|
2062
|
+
const t = typeof e, n = Us(e), r = nt(n, "Date"), s = nt(n, "RegExp"), i = nt(n, "Object");
|
|
1953
2063
|
let o, a;
|
|
1954
|
-
if (
|
|
2064
|
+
if (lt(e) === e && !r && !s) {
|
|
1955
2065
|
if (o = ve.get(e), o) return o;
|
|
1956
|
-
if (o = ++
|
|
2066
|
+
if (o = ++Is + "~", ve.set(e, o), Array.isArray(e)) {
|
|
1957
2067
|
for (o = "@", a = 0; a < e.length; a++)
|
|
1958
|
-
o +=
|
|
2068
|
+
o += mt(e[a]) + ",";
|
|
1959
2069
|
ve.set(e, o);
|
|
1960
2070
|
}
|
|
1961
2071
|
if (i) {
|
|
1962
2072
|
o = "#";
|
|
1963
|
-
const d =
|
|
2073
|
+
const d = lt.keys(e).sort();
|
|
1964
2074
|
for (; !b(a = d.pop()); )
|
|
1965
|
-
b(e[a]) || (o += a + ":" +
|
|
2075
|
+
b(e[a]) || (o += a + ":" + mt(e[a]) + ",");
|
|
1966
2076
|
ve.set(e, o);
|
|
1967
2077
|
}
|
|
1968
2078
|
} else
|
|
1969
2079
|
o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
1970
2080
|
return o;
|
|
1971
|
-
},
|
|
2081
|
+
}, Ot = (e) => {
|
|
1972
2082
|
if (Z(e))
|
|
1973
2083
|
try {
|
|
1974
2084
|
e = e();
|
|
@@ -1976,14 +2086,14 @@ const ht = (e) => {
|
|
|
1976
2086
|
e = "";
|
|
1977
2087
|
}
|
|
1978
2088
|
const t = e;
|
|
1979
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
|
2089
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? mt(e) : "", [
|
|
1980
2090
|
e,
|
|
1981
2091
|
t
|
|
1982
2092
|
];
|
|
1983
2093
|
};
|
|
1984
|
-
let
|
|
1985
|
-
const
|
|
1986
|
-
async function
|
|
2094
|
+
let Bs = 0;
|
|
2095
|
+
const Et = () => ++Bs;
|
|
2096
|
+
async function Pn(...e) {
|
|
1987
2097
|
const [t, n, r, s] = e, i = ce({
|
|
1988
2098
|
populateCache: !0,
|
|
1989
2099
|
throwOnError: !0
|
|
@@ -2003,71 +2113,71 @@ async function Nn(...e) {
|
|
|
2003
2113
|
}
|
|
2004
2114
|
return p(n);
|
|
2005
2115
|
async function p(E) {
|
|
2006
|
-
const [y] =
|
|
2116
|
+
const [y] = Ot(E);
|
|
2007
2117
|
if (!y) return;
|
|
2008
|
-
const [u, m] = Ln(t, y), [h,
|
|
2009
|
-
const
|
|
2010
|
-
return (Z(i.revalidate) ? i.revalidate(u().data, E) : i.revalidate !== !1) && (delete w[y], delete
|
|
2118
|
+
const [u, m] = Ln(t, y), [h, S, w, _] = ie.get(t), x = () => {
|
|
2119
|
+
const P = h[y];
|
|
2120
|
+
return (Z(i.revalidate) ? i.revalidate(u().data, E) : i.revalidate !== !1) && (delete w[y], delete _[y], P && P[0]) ? P[0](Dn).then(() => u().data) : u().data;
|
|
2011
2121
|
};
|
|
2012
2122
|
if (e.length < 3)
|
|
2013
2123
|
return x();
|
|
2014
|
-
let
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2017
|
-
|
|
2124
|
+
let g = r, v, A = !1;
|
|
2125
|
+
const Y = Et();
|
|
2126
|
+
S[y] = [
|
|
2127
|
+
Y,
|
|
2018
2128
|
0
|
|
2019
2129
|
];
|
|
2020
|
-
const O = !b(d), ee = u(),
|
|
2021
|
-
if (O && (d = Z(d) ? d(
|
|
2130
|
+
const O = !b(d), ee = u(), M = ee.data, z = ee._c, H = b(z) ? M : z;
|
|
2131
|
+
if (O && (d = Z(d) ? d(H, M) : d, m({
|
|
2022
2132
|
data: d,
|
|
2023
|
-
_c:
|
|
2024
|
-
})), Z(
|
|
2133
|
+
_c: H
|
|
2134
|
+
})), Z(g))
|
|
2025
2135
|
try {
|
|
2026
|
-
|
|
2027
|
-
} catch (
|
|
2028
|
-
|
|
2136
|
+
g = g(H);
|
|
2137
|
+
} catch (P) {
|
|
2138
|
+
v = P, A = !0;
|
|
2029
2139
|
}
|
|
2030
|
-
if (
|
|
2031
|
-
if (
|
|
2032
|
-
|
|
2033
|
-
}),
|
|
2034
|
-
if (
|
|
2035
|
-
return
|
|
2036
|
-
} else
|
|
2037
|
-
data:
|
|
2038
|
-
_c:
|
|
2140
|
+
if (g && Nn(g))
|
|
2141
|
+
if (g = await g.catch((P) => {
|
|
2142
|
+
v = P, A = !0;
|
|
2143
|
+
}), Y !== S[y][0]) {
|
|
2144
|
+
if (A) throw v;
|
|
2145
|
+
return g;
|
|
2146
|
+
} else A && O && f(v) && (o = !0, m({
|
|
2147
|
+
data: H,
|
|
2148
|
+
_c: I
|
|
2039
2149
|
}));
|
|
2040
|
-
if (o && !
|
|
2150
|
+
if (o && !A)
|
|
2041
2151
|
if (Z(o)) {
|
|
2042
|
-
const
|
|
2152
|
+
const P = o(g, H);
|
|
2043
2153
|
m({
|
|
2044
|
-
data:
|
|
2045
|
-
error:
|
|
2046
|
-
_c:
|
|
2154
|
+
data: P,
|
|
2155
|
+
error: I,
|
|
2156
|
+
_c: I
|
|
2047
2157
|
});
|
|
2048
2158
|
} else
|
|
2049
2159
|
m({
|
|
2050
|
-
data:
|
|
2051
|
-
error:
|
|
2052
|
-
_c:
|
|
2160
|
+
data: g,
|
|
2161
|
+
error: I,
|
|
2162
|
+
_c: I
|
|
2053
2163
|
});
|
|
2054
|
-
if (
|
|
2164
|
+
if (S[y][1] = Et(), Promise.resolve(x()).then(() => {
|
|
2055
2165
|
m({
|
|
2056
|
-
_c:
|
|
2166
|
+
_c: I
|
|
2057
2167
|
});
|
|
2058
|
-
}),
|
|
2059
|
-
if (l) throw
|
|
2168
|
+
}), A) {
|
|
2169
|
+
if (l) throw v;
|
|
2060
2170
|
return;
|
|
2061
2171
|
}
|
|
2062
|
-
return
|
|
2172
|
+
return g;
|
|
2063
2173
|
}
|
|
2064
2174
|
}
|
|
2065
|
-
const
|
|
2175
|
+
const tn = (e, t) => {
|
|
2066
2176
|
for (const n in e)
|
|
2067
2177
|
e[n][0] && e[n][0](t);
|
|
2068
|
-
},
|
|
2178
|
+
}, js = (e, t) => {
|
|
2069
2179
|
if (!ie.has(e)) {
|
|
2070
|
-
const n = ce(
|
|
2180
|
+
const n = ce(Fs, t), r = /* @__PURE__ */ Object.create(null), s = Pn.bind(I, e);
|
|
2071
2181
|
let i = ae;
|
|
2072
2182
|
const o = /* @__PURE__ */ Object.create(null), a = (l, p) => {
|
|
2073
2183
|
const E = o[l] || [];
|
|
@@ -2088,7 +2198,7 @@ const Qt = (e, t) => {
|
|
|
2088
2198
|
d,
|
|
2089
2199
|
a
|
|
2090
2200
|
]), !Ee)) {
|
|
2091
|
-
const l = n.initFocus(setTimeout.bind(
|
|
2201
|
+
const l = n.initFocus(setTimeout.bind(I, tn.bind(I, r, Cn))), p = n.initReconnect(setTimeout.bind(I, tn.bind(I, r, xn)));
|
|
2092
2202
|
i = () => {
|
|
2093
2203
|
l && l(), p && p(), ie.delete(e);
|
|
2094
2204
|
};
|
|
@@ -2105,16 +2215,16 @@ const Qt = (e, t) => {
|
|
|
2105
2215
|
e,
|
|
2106
2216
|
ie.get(e)[4]
|
|
2107
2217
|
];
|
|
2108
|
-
},
|
|
2218
|
+
}, qs = (e, t, n, r, s) => {
|
|
2109
2219
|
const i = n.errorRetryCount, o = s.retryCount, a = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * n.errorRetryInterval;
|
|
2110
2220
|
!b(i) && o > i || setTimeout(r, a, s);
|
|
2111
|
-
},
|
|
2221
|
+
}, ks = ut, [Fn, Ms] = js(/* @__PURE__ */ new Map()), Hs = ce(
|
|
2112
2222
|
{
|
|
2113
2223
|
// events
|
|
2114
2224
|
onLoadingSlow: ae,
|
|
2115
2225
|
onSuccess: ae,
|
|
2116
2226
|
onError: ae,
|
|
2117
|
-
onErrorRetry:
|
|
2227
|
+
onErrorRetry: qs,
|
|
2118
2228
|
onDiscarded: ae,
|
|
2119
2229
|
// switches
|
|
2120
2230
|
revalidateOnFocus: !0,
|
|
@@ -2122,29 +2232,29 @@ const Qt = (e, t) => {
|
|
|
2122
2232
|
revalidateIfStale: !0,
|
|
2123
2233
|
shouldRetryOnError: !0,
|
|
2124
2234
|
// timeouts
|
|
2125
|
-
errorRetryInterval:
|
|
2235
|
+
errorRetryInterval: en ? 1e4 : 5e3,
|
|
2126
2236
|
focusThrottleInterval: 5 * 1e3,
|
|
2127
2237
|
dedupingInterval: 2 * 1e3,
|
|
2128
|
-
loadingTimeout:
|
|
2238
|
+
loadingTimeout: en ? 5e3 : 3e3,
|
|
2129
2239
|
// providers
|
|
2130
|
-
compare:
|
|
2240
|
+
compare: ks,
|
|
2131
2241
|
isPaused: () => !1,
|
|
2132
2242
|
cache: Fn,
|
|
2133
|
-
mutate:
|
|
2243
|
+
mutate: Ms,
|
|
2134
2244
|
fallback: {}
|
|
2135
2245
|
},
|
|
2136
2246
|
// use web preset by default
|
|
2137
|
-
|
|
2138
|
-
),
|
|
2247
|
+
Ps
|
|
2248
|
+
), Vs = (e, t) => {
|
|
2139
2249
|
const n = ce(e, t);
|
|
2140
2250
|
if (t) {
|
|
2141
2251
|
const { use: r, fallback: s } = e, { use: i, fallback: o } = t;
|
|
2142
2252
|
r && i && (n.use = r.concat(i)), s && o && (n.fallback = ce(s, o));
|
|
2143
2253
|
}
|
|
2144
2254
|
return n;
|
|
2145
|
-
},
|
|
2146
|
-
|
|
2147
|
-
},
|
|
2255
|
+
}, $s = kn({}), Ws = "$inf$", vn = xe && window.__SWR_DEVTOOLS_USE__, zs = vn ? window.__SWR_DEVTOOLS_USE__ : [], Js = () => {
|
|
2256
|
+
vn && (window.__SWR_DEVTOOLS_REACT__ = ge);
|
|
2257
|
+
}, Un = (e) => Z(e[1]) ? [
|
|
2148
2258
|
e[0],
|
|
2149
2259
|
e[1],
|
|
2150
2260
|
e[2] || {}
|
|
@@ -2152,39 +2262,39 @@ const Qt = (e, t) => {
|
|
|
2152
2262
|
e[0],
|
|
2153
2263
|
null,
|
|
2154
2264
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
2155
|
-
],
|
|
2156
|
-
const e =
|
|
2157
|
-
return
|
|
2265
|
+
], Ks = () => {
|
|
2266
|
+
const e = Vn($s);
|
|
2267
|
+
return rn(() => ce(Hs, e), [
|
|
2158
2268
|
e
|
|
2159
2269
|
]);
|
|
2160
|
-
},
|
|
2161
|
-
const [o] =
|
|
2162
|
-
if (o.startsWith(
|
|
2270
|
+
}, Gs = (e) => (t, n, r) => e(t, n && ((...i) => {
|
|
2271
|
+
const [o] = Ot(t), [, , , a] = ie.get(Fn);
|
|
2272
|
+
if (o.startsWith(Ws))
|
|
2163
2273
|
return n(...i);
|
|
2164
2274
|
const d = a[o];
|
|
2165
2275
|
return b(d) ? n(...i) : (delete a[o], d);
|
|
2166
|
-
}), r),
|
|
2167
|
-
const r =
|
|
2276
|
+
}), r), Xs = zs.concat(Gs), Ys = (e) => function(...n) {
|
|
2277
|
+
const r = Ks(), [s, i, o] = Un(n), a = Vs(r, o);
|
|
2168
2278
|
let d = e;
|
|
2169
|
-
const { use: f } = a, l = (f || []).concat(
|
|
2279
|
+
const { use: f } = a, l = (f || []).concat(Xs);
|
|
2170
2280
|
for (let p = l.length; p--; )
|
|
2171
2281
|
d = l[p](d);
|
|
2172
2282
|
return d(s, i || a.fetcher || null, a);
|
|
2173
|
-
},
|
|
2283
|
+
}, Qs = (e, t, n) => {
|
|
2174
2284
|
const r = t[e] || (t[e] = []);
|
|
2175
2285
|
return r.push(n), () => {
|
|
2176
2286
|
const s = r.indexOf(n);
|
|
2177
2287
|
s >= 0 && (r[s] = r[r.length - 1], r.pop());
|
|
2178
2288
|
};
|
|
2179
|
-
},
|
|
2180
|
-
const [r, s, i] =
|
|
2289
|
+
}, go = (e, t) => (...n) => {
|
|
2290
|
+
const [r, s, i] = Un(n), o = (i.use || []).concat(t);
|
|
2181
2291
|
return e(r, s, {
|
|
2182
2292
|
...i,
|
|
2183
2293
|
use: o
|
|
2184
2294
|
});
|
|
2185
2295
|
};
|
|
2186
|
-
|
|
2187
|
-
const
|
|
2296
|
+
Js();
|
|
2297
|
+
const rt = ge.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
2188
2298
|
// and emitting an error.
|
|
2189
2299
|
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
2190
2300
|
// https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
|
|
@@ -2203,20 +2313,20 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2203
2313
|
e.status = "rejected", e.reason = t;
|
|
2204
2314
|
}), e;
|
|
2205
2315
|
}
|
|
2206
|
-
}),
|
|
2316
|
+
}), st = {
|
|
2207
2317
|
dedupe: !0
|
|
2208
|
-
},
|
|
2209
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData: E, strictServerPrefetchWarning: y } = n, [u, m, h,
|
|
2210
|
-
for (const
|
|
2211
|
-
const D =
|
|
2318
|
+
}, nn = Promise.resolve(I), Zs = (e, t, n) => {
|
|
2319
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData: E, strictServerPrefetchWarning: y } = n, [u, m, h, S] = ie.get(r), [w, _] = Ot(e), x = le(!1), g = le(!1), v = le(w), A = le(t), Y = le(n), O = () => Y.current, ee = () => O().isVisible() && O().isOnline(), [M, z, H, P] = Ln(r, w), te = le({}).current, F = b(o) ? b(n.fallback) ? I : n.fallback[w] : o, Re = (T, C) => {
|
|
2320
|
+
for (const N in te) {
|
|
2321
|
+
const D = N;
|
|
2212
2322
|
if (D === "data") {
|
|
2213
|
-
if (!s(T[D], C[D]) && (!b(T[D]) || !s(
|
|
2323
|
+
if (!s(T[D], C[D]) && (!b(T[D]) || !s(Ne, C[D])))
|
|
2214
2324
|
return !1;
|
|
2215
2325
|
} else if (C[D] !== T[D])
|
|
2216
2326
|
return !1;
|
|
2217
2327
|
}
|
|
2218
2328
|
return !0;
|
|
2219
|
-
},
|
|
2329
|
+
}, J = rn(() => {
|
|
2220
2330
|
const T = !w || !t ? !1 : b(a) ? O().isPaused() || i ? !1 : d !== !1 : a, C = (j) => {
|
|
2221
2331
|
const se = ce(j);
|
|
2222
2332
|
return delete se._k, T ? {
|
|
@@ -2224,77 +2334,77 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2224
2334
|
isLoading: !0,
|
|
2225
2335
|
...se
|
|
2226
2336
|
} : se;
|
|
2227
|
-
},
|
|
2228
|
-
let
|
|
2337
|
+
}, N = M(), D = P(), G = C(N), me = N === D ? G : C(D);
|
|
2338
|
+
let U = G;
|
|
2229
2339
|
return [
|
|
2230
2340
|
() => {
|
|
2231
|
-
const j = C(
|
|
2232
|
-
return
|
|
2341
|
+
const j = C(M());
|
|
2342
|
+
return Re(j, U) ? (U.data = j.data, U.isLoading = j.isLoading, U.isValidating = j.isValidating, U.error = j.error, U) : (U = j, j);
|
|
2233
2343
|
},
|
|
2234
2344
|
() => me
|
|
2235
2345
|
];
|
|
2236
2346
|
}, [
|
|
2237
2347
|
r,
|
|
2238
2348
|
w
|
|
2239
|
-
]), ne =
|
|
2240
|
-
(T) =>
|
|
2241
|
-
|
|
2349
|
+
]), ne = Xt.useSyncExternalStore(ze(
|
|
2350
|
+
(T) => H(w, (C, N) => {
|
|
2351
|
+
Re(N, C) || T();
|
|
2242
2352
|
}),
|
|
2243
2353
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2244
2354
|
[
|
|
2245
2355
|
r,
|
|
2246
2356
|
w
|
|
2247
2357
|
]
|
|
2248
|
-
),
|
|
2249
|
-
|
|
2250
|
-
y &&
|
|
2251
|
-
const
|
|
2358
|
+
), J[0], J[1]), De = !x.current, Q = u[w] && u[w].length > 0, V = ne.data, K = b(V) ? F && Nn(F) ? rt(F) : F : V, re = ne.error, he = le(K), Ne = E ? b(V) ? b(he.current) ? K : he.current : V : K, ue = w && b(K), In = !Ee && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2359
|
+
Xt.useSyncExternalStore(() => ae, () => !1, () => !0);
|
|
2360
|
+
y && In && !i && ue && console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
|
|
2361
|
+
const Tt = Q && !b(re) ? !1 : De && !b(a) ? a : O().isPaused() ? !1 : i ? b(K) ? !1 : d : b(K) || d, _t = !!(w && t && De && Tt), Bn = b(ne.isValidating) ? _t : ne.isValidating, jn = b(ne.isLoading) ? _t : ne.isLoading, Se = ze(
|
|
2252
2362
|
async (T) => {
|
|
2253
|
-
const C =
|
|
2254
|
-
if (!w || !C ||
|
|
2363
|
+
const C = A.current;
|
|
2364
|
+
if (!w || !C || g.current || O().isPaused())
|
|
2255
2365
|
return !1;
|
|
2256
|
-
let
|
|
2257
|
-
const me = T || {},
|
|
2366
|
+
let N, D, G = !0;
|
|
2367
|
+
const me = T || {}, U = !h[w] || !me.dedupe, j = () => Zt ? !g.current && w === v.current && x.current : w === v.current, se = {
|
|
2258
2368
|
isValidating: !1,
|
|
2259
2369
|
isLoading: !1
|
|
2260
|
-
},
|
|
2261
|
-
|
|
2262
|
-
},
|
|
2370
|
+
}, Ct = () => {
|
|
2371
|
+
z(se);
|
|
2372
|
+
}, xt = () => {
|
|
2263
2373
|
const $ = h[w];
|
|
2264
2374
|
$ && $[1] === D && delete h[w];
|
|
2265
|
-
},
|
|
2375
|
+
}, Dt = {
|
|
2266
2376
|
isValidating: !0
|
|
2267
2377
|
};
|
|
2268
|
-
b(
|
|
2378
|
+
b(M().data) && (Dt.isLoading = !0);
|
|
2269
2379
|
try {
|
|
2270
|
-
if (
|
|
2271
|
-
|
|
2380
|
+
if (U && (z(Dt), n.loadingTimeout && b(M().data) && setTimeout(() => {
|
|
2381
|
+
G && j() && O().onLoadingSlow(w, n);
|
|
2272
2382
|
}, n.loadingTimeout), h[w] = [
|
|
2273
|
-
C(
|
|
2274
|
-
|
|
2275
|
-
]), [
|
|
2276
|
-
return
|
|
2277
|
-
se.error =
|
|
2383
|
+
C(_),
|
|
2384
|
+
Et()
|
|
2385
|
+
]), [N, D] = h[w], N = await N, U && setTimeout(xt, n.dedupingInterval), !h[w] || h[w][1] !== D)
|
|
2386
|
+
return U && j() && O().onDiscarded(w), !1;
|
|
2387
|
+
se.error = I;
|
|
2278
2388
|
const $ = m[w];
|
|
2279
2389
|
if (!b($) && // case 1
|
|
2280
2390
|
(D <= $[0] || // case 2
|
|
2281
2391
|
D <= $[1] || // case 3
|
|
2282
2392
|
$[1] === 0))
|
|
2283
|
-
return
|
|
2284
|
-
const oe =
|
|
2285
|
-
se.data = s(oe,
|
|
2393
|
+
return Ct(), U && j() && O().onDiscarded(w), !1;
|
|
2394
|
+
const oe = M().data;
|
|
2395
|
+
se.data = s(oe, N) ? oe : N, U && j() && O().onSuccess(N, w, n);
|
|
2286
2396
|
} catch ($) {
|
|
2287
|
-
|
|
2397
|
+
xt();
|
|
2288
2398
|
const oe = O(), { shouldRetryOnError: $e } = oe;
|
|
2289
|
-
oe.isPaused() || (se.error = $,
|
|
2399
|
+
oe.isPaused() || (se.error = $, U && j() && (oe.onError($, w, oe), ($e === !0 || Z($e) && $e($)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || ee()) && oe.onErrorRetry($, w, oe, (qn) => {
|
|
2290
2400
|
const We = u[w];
|
|
2291
|
-
We && We[0] && We[0](
|
|
2401
|
+
We && We[0] && We[0](Yt, qn);
|
|
2292
2402
|
}, {
|
|
2293
2403
|
retryCount: (me.retryCount || 0) + 1,
|
|
2294
2404
|
dedupe: !0
|
|
2295
2405
|
})));
|
|
2296
2406
|
}
|
|
2297
|
-
return
|
|
2407
|
+
return G = !1, Ct(), !0;
|
|
2298
2408
|
},
|
|
2299
2409
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
|
2300
2410
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
|
@@ -2311,47 +2421,47 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2311
2421
|
w,
|
|
2312
2422
|
r
|
|
2313
2423
|
]
|
|
2314
|
-
),
|
|
2424
|
+
), At = ze(
|
|
2315
2425
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
2316
|
-
(...T) =>
|
|
2426
|
+
(...T) => Pn(r, v.current, ...T),
|
|
2317
2427
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2318
2428
|
[]
|
|
2319
2429
|
);
|
|
2320
|
-
if (
|
|
2321
|
-
|
|
2322
|
-
}),
|
|
2430
|
+
if (et(() => {
|
|
2431
|
+
A.current = t, Y.current = n, b(V) || (he.current = V);
|
|
2432
|
+
}), et(() => {
|
|
2323
2433
|
if (!w) return;
|
|
2324
|
-
const T =
|
|
2434
|
+
const T = Se.bind(I, st);
|
|
2325
2435
|
let C = 0;
|
|
2326
2436
|
O().revalidateOnFocus && (C = Date.now() + O().focusThrottleInterval);
|
|
2327
|
-
const D =
|
|
2328
|
-
if (
|
|
2329
|
-
const
|
|
2330
|
-
O().revalidateOnFocus &&
|
|
2331
|
-
} else if (
|
|
2437
|
+
const D = Qs(w, u, (G, me = {}) => {
|
|
2438
|
+
if (G == Cn) {
|
|
2439
|
+
const U = Date.now();
|
|
2440
|
+
O().revalidateOnFocus && U > C && ee() && (C = U + O().focusThrottleInterval, T());
|
|
2441
|
+
} else if (G == xn)
|
|
2332
2442
|
O().revalidateOnReconnect && ee() && T();
|
|
2333
2443
|
else {
|
|
2334
|
-
if (
|
|
2335
|
-
return
|
|
2336
|
-
if (
|
|
2337
|
-
return
|
|
2444
|
+
if (G == Dn)
|
|
2445
|
+
return Se();
|
|
2446
|
+
if (G == Yt)
|
|
2447
|
+
return Se(me);
|
|
2338
2448
|
}
|
|
2339
2449
|
});
|
|
2340
|
-
return
|
|
2341
|
-
_k:
|
|
2342
|
-
}),
|
|
2343
|
-
|
|
2450
|
+
return g.current = !1, v.current = w, x.current = !0, z({
|
|
2451
|
+
_k: _
|
|
2452
|
+
}), Tt && (h[w] || (b(K) || Ee ? T() : vs(T))), () => {
|
|
2453
|
+
g.current = !0, D();
|
|
2344
2454
|
};
|
|
2345
2455
|
}, [
|
|
2346
2456
|
w
|
|
2347
|
-
]),
|
|
2457
|
+
]), et(() => {
|
|
2348
2458
|
let T;
|
|
2349
2459
|
function C() {
|
|
2350
|
-
const D = Z(f) ? f(
|
|
2351
|
-
D && T !== -1 && (T = setTimeout(
|
|
2460
|
+
const D = Z(f) ? f(M().data) : f;
|
|
2461
|
+
D && T !== -1 && (T = setTimeout(N, D));
|
|
2352
2462
|
}
|
|
2353
|
-
function
|
|
2354
|
-
!
|
|
2463
|
+
function N() {
|
|
2464
|
+
!M().error && (l || O().isVisible()) && (p || O().isOnline()) ? Se(st).then(C) : C();
|
|
2355
2465
|
}
|
|
2356
2466
|
return C(), () => {
|
|
2357
2467
|
T && (clearTimeout(T), T = -1);
|
|
@@ -2361,34 +2471,34 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2361
2471
|
l,
|
|
2362
2472
|
p,
|
|
2363
2473
|
w
|
|
2364
|
-
]),
|
|
2365
|
-
if (!
|
|
2474
|
+
]), $n(Ne), i) {
|
|
2475
|
+
if (!Zt && Ee && ue)
|
|
2366
2476
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
2367
|
-
ue && (
|
|
2368
|
-
const T =
|
|
2369
|
-
if (
|
|
2477
|
+
ue && (A.current = t, Y.current = n, g.current = !1);
|
|
2478
|
+
const T = S[w], C = !b(T) && ue ? At(T) : nn;
|
|
2479
|
+
if (rt(C), !b(re) && ue)
|
|
2370
2480
|
throw re;
|
|
2371
|
-
const
|
|
2372
|
-
!b(
|
|
2481
|
+
const N = ue ? Se(st) : nn;
|
|
2482
|
+
!b(Ne) && ue && (N.status = "fulfilled", N.value = !0), rt(N);
|
|
2373
2483
|
}
|
|
2374
2484
|
return {
|
|
2375
|
-
mutate:
|
|
2485
|
+
mutate: At,
|
|
2376
2486
|
get data() {
|
|
2377
|
-
return te.data = !0,
|
|
2487
|
+
return te.data = !0, Ne;
|
|
2378
2488
|
},
|
|
2379
2489
|
get error() {
|
|
2380
2490
|
return te.error = !0, re;
|
|
2381
2491
|
},
|
|
2382
2492
|
get isValidating() {
|
|
2383
|
-
return te.isValidating = !0,
|
|
2493
|
+
return te.isValidating = !0, Bn;
|
|
2384
2494
|
},
|
|
2385
2495
|
get isLoading() {
|
|
2386
|
-
return te.isLoading = !0,
|
|
2496
|
+
return te.isLoading = !0, jn;
|
|
2387
2497
|
}
|
|
2388
2498
|
};
|
|
2389
|
-
},
|
|
2499
|
+
}, Oo = Ys(Zs);
|
|
2390
2500
|
export {
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2501
|
+
L as a,
|
|
2502
|
+
Oo as u,
|
|
2503
|
+
go as w
|
|
2394
2504
|
};
|