@leancodepl/axios-cqrs-client 9.7.4 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.js +73 -3392
- package/dist/index.umd.cjs +1 -23
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,3447 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
const { toString: Tr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: Be, toStringTag: Jt } = Symbol, He = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
-
const n = Tr.call(t);
|
|
8
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)), ae = (e) => (e = e.toLowerCase(), (t) => He(t) === e), ze = (e) => (t) => typeof t === e, { isArray: ge } = Array, be = ze("undefined");
|
|
10
|
-
function ve(e) {
|
|
11
|
-
return e !== null && !be(e) && e.constructor !== null && !be(e.constructor) && re(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
|
-
}
|
|
13
|
-
const Kt = ae("ArrayBuffer");
|
|
14
|
-
function Sr(e) {
|
|
15
|
-
let t;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Kt(e.buffer), t;
|
|
17
|
-
}
|
|
18
|
-
const Or = ze("string"), re = ze("function"), Gt = ze("number"), Ce = (e) => e !== null && typeof e == "object", Ar = (e) => e === !0 || e === !1, Fe = (e) => {
|
|
19
|
-
if (He(e) !== "object")
|
|
20
|
-
return !1;
|
|
21
|
-
const t = st(e);
|
|
22
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Jt in e) && !(Be in e);
|
|
23
|
-
}, vr = (e) => {
|
|
24
|
-
if (!Ce(e) || ve(e))
|
|
25
|
-
return !1;
|
|
26
|
-
try {
|
|
27
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
28
|
-
} catch {
|
|
29
|
-
return !1;
|
|
30
|
-
}
|
|
31
|
-
}, Cr = ae("Date"), kr = ae("File"), Pr = ae("Blob"), Nr = ae("FileList"), jr = (e) => Ce(e) && re(e.pipe), xr = (e) => {
|
|
32
|
-
let t;
|
|
33
|
-
return e && (typeof FormData == "function" && e instanceof FormData || re(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
|
|
34
|
-
t === "object" && re(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
-
}, Lr = ae("URLSearchParams"), [Ur, Dr, Mr, Fr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), $r = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
-
function ke(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
37
|
-
if (e === null || typeof e > "u")
|
|
38
|
-
return;
|
|
39
|
-
let o, i;
|
|
40
|
-
if (typeof e != "object" && (e = [e]), ge(e))
|
|
41
|
-
for (o = 0, i = e.length; o < i; o++)
|
|
42
|
-
t.call(null, e[o], o, e);
|
|
43
|
-
else {
|
|
44
|
-
if (ve(e))
|
|
45
|
-
return;
|
|
46
|
-
const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), u = a.length;
|
|
47
|
-
let f;
|
|
48
|
-
for (o = 0; o < u; o++)
|
|
49
|
-
f = a[o], t.call(null, e[f], f, e);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function Xt(e, t) {
|
|
53
|
-
if (ve(e))
|
|
54
|
-
return null;
|
|
55
|
-
t = t.toLowerCase();
|
|
56
|
-
const n = Object.keys(e);
|
|
57
|
-
let o = n.length, i;
|
|
58
|
-
for (; o-- > 0; )
|
|
59
|
-
if (i = n[o], t === i.toLowerCase())
|
|
60
|
-
return i;
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qt = (e) => !be(e) && e !== me;
|
|
64
|
-
function Qe() {
|
|
65
|
-
const { caseless: e, skipUndefined: t } = Qt(this) && this || {}, n = {}, o = (i, a) => {
|
|
66
|
-
const u = e && Xt(n, a) || a;
|
|
67
|
-
Fe(n[u]) && Fe(i) ? n[u] = Qe(n[u], i) : Fe(i) ? n[u] = Qe({}, i) : ge(i) ? n[u] = i.slice() : (!t || !be(i)) && (n[u] = i);
|
|
68
|
-
};
|
|
69
|
-
for (let i = 0, a = arguments.length; i < a; i++)
|
|
70
|
-
arguments[i] && ke(arguments[i], o);
|
|
71
|
-
return n;
|
|
72
|
-
}
|
|
73
|
-
const qr = (e, t, n, { allOwnKeys: o } = {}) => (ke(t, (i, a) => {
|
|
74
|
-
n && re(i) ? e[a] = Vt(i, n) : e[a] = i;
|
|
75
|
-
}, { allOwnKeys: o }), e), Ir = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Br = (e, t, n, o) => {
|
|
76
|
-
e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
77
|
-
value: t.prototype
|
|
78
|
-
}), n && Object.assign(e.prototype, n);
|
|
79
|
-
}, Hr = (e, t, n, o) => {
|
|
80
|
-
let i, a, u;
|
|
81
|
-
const f = {};
|
|
82
|
-
if (t = t || {}, e == null) return t;
|
|
83
|
-
do {
|
|
84
|
-
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0; )
|
|
85
|
-
u = i[a], (!o || o(u, e, t)) && !f[u] && (t[u] = e[u], f[u] = !0);
|
|
86
|
-
e = n !== !1 && st(e);
|
|
87
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
88
|
-
return t;
|
|
89
|
-
}, zr = (e, t, n) => {
|
|
90
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
91
|
-
const o = e.indexOf(t, n);
|
|
92
|
-
return o !== -1 && o === n;
|
|
93
|
-
}, Yr = (e) => {
|
|
94
|
-
if (!e) return null;
|
|
95
|
-
if (ge(e)) return e;
|
|
96
|
-
let t = e.length;
|
|
97
|
-
if (!Gt(t)) return null;
|
|
98
|
-
const n = new Array(t);
|
|
99
|
-
for (; t-- > 0; )
|
|
100
|
-
n[t] = e[t];
|
|
101
|
-
return n;
|
|
102
|
-
}, Wr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && st(Uint8Array)), Vr = (e, t) => {
|
|
103
|
-
const o = (e && e[Be]).call(e);
|
|
104
|
-
let i;
|
|
105
|
-
for (; (i = o.next()) && !i.done; ) {
|
|
106
|
-
const a = i.value;
|
|
107
|
-
t.call(e, a[0], a[1]);
|
|
108
|
-
}
|
|
109
|
-
}, Jr = (e, t) => {
|
|
110
|
-
let n;
|
|
111
|
-
const o = [];
|
|
112
|
-
for (; (n = e.exec(t)) !== null; )
|
|
113
|
-
o.push(n);
|
|
114
|
-
return o;
|
|
115
|
-
}, Kr = ae("HTMLFormElement"), Gr = (e) => e.toLowerCase().replace(
|
|
116
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
|
-
function(n, o, i) {
|
|
118
|
-
return o.toUpperCase() + i;
|
|
119
|
-
}
|
|
120
|
-
), Tt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Xr = ae("RegExp"), Zt = (e, t) => {
|
|
121
|
-
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
122
|
-
ke(n, (i, a) => {
|
|
123
|
-
let u;
|
|
124
|
-
(u = t(i, a, e)) !== !1 && (o[a] = u || i);
|
|
125
|
-
}), Object.defineProperties(e, o);
|
|
126
|
-
}, Qr = (e) => {
|
|
127
|
-
Zt(e, (t, n) => {
|
|
128
|
-
if (re(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
129
|
-
return !1;
|
|
130
|
-
const o = e[n];
|
|
131
|
-
if (re(o)) {
|
|
132
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
133
|
-
t.writable = !1;
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
t.set || (t.set = () => {
|
|
137
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}, Zr = (e, t) => {
|
|
142
|
-
const n = {}, o = (i) => {
|
|
143
|
-
i.forEach((a) => {
|
|
144
|
-
n[a] = !0;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
return ge(e) ? o(e) : o(String(e).split(t)), n;
|
|
148
|
-
}, en = () => {
|
|
149
|
-
}, tn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
150
|
-
function rn(e) {
|
|
151
|
-
return !!(e && re(e.append) && e[Jt] === "FormData" && e[Be]);
|
|
152
|
-
}
|
|
153
|
-
const nn = (e) => {
|
|
154
|
-
const t = new Array(10), n = (o, i) => {
|
|
155
|
-
if (Ce(o)) {
|
|
156
|
-
if (t.indexOf(o) >= 0)
|
|
157
|
-
return;
|
|
158
|
-
if (ve(o))
|
|
159
|
-
return o;
|
|
160
|
-
if (!("toJSON" in o)) {
|
|
161
|
-
t[i] = o;
|
|
162
|
-
const a = ge(o) ? [] : {};
|
|
163
|
-
return ke(o, (u, f) => {
|
|
164
|
-
const E = n(u, i + 1);
|
|
165
|
-
!be(E) && (a[f] = E);
|
|
166
|
-
}), t[i] = void 0, a;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return o;
|
|
170
|
-
};
|
|
171
|
-
return n(e, 0);
|
|
172
|
-
}, on = ae("AsyncFunction"), sn = (e) => e && (Ce(e) || re(e)) && re(e.then) && re(e.catch), er = ((e, t) => e ? setImmediate : t ? ((n, o) => (me.addEventListener("message", ({ source: i, data: a }) => {
|
|
173
|
-
i === me && a === n && o.length && o.shift()();
|
|
174
|
-
}, !1), (i) => {
|
|
175
|
-
o.push(i), me.postMessage(n, "*");
|
|
176
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
177
|
-
typeof setImmediate == "function",
|
|
178
|
-
re(me.postMessage)
|
|
179
|
-
), an = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick || er, un = (e) => e != null && re(e[Be]), l = {
|
|
180
|
-
isArray: ge,
|
|
181
|
-
isArrayBuffer: Kt,
|
|
182
|
-
isBuffer: ve,
|
|
183
|
-
isFormData: xr,
|
|
184
|
-
isArrayBufferView: Sr,
|
|
185
|
-
isString: Or,
|
|
186
|
-
isNumber: Gt,
|
|
187
|
-
isBoolean: Ar,
|
|
188
|
-
isObject: Ce,
|
|
189
|
-
isPlainObject: Fe,
|
|
190
|
-
isEmptyObject: vr,
|
|
191
|
-
isReadableStream: Ur,
|
|
192
|
-
isRequest: Dr,
|
|
193
|
-
isResponse: Mr,
|
|
194
|
-
isHeaders: Fr,
|
|
195
|
-
isUndefined: be,
|
|
196
|
-
isDate: Cr,
|
|
197
|
-
isFile: kr,
|
|
198
|
-
isBlob: Pr,
|
|
199
|
-
isRegExp: Xr,
|
|
200
|
-
isFunction: re,
|
|
201
|
-
isStream: jr,
|
|
202
|
-
isURLSearchParams: Lr,
|
|
203
|
-
isTypedArray: Wr,
|
|
204
|
-
isFileList: Nr,
|
|
205
|
-
forEach: ke,
|
|
206
|
-
merge: Qe,
|
|
207
|
-
extend: qr,
|
|
208
|
-
trim: $r,
|
|
209
|
-
stripBOM: Ir,
|
|
210
|
-
inherits: Br,
|
|
211
|
-
toFlatObject: Hr,
|
|
212
|
-
kindOf: He,
|
|
213
|
-
kindOfTest: ae,
|
|
214
|
-
endsWith: zr,
|
|
215
|
-
toArray: Yr,
|
|
216
|
-
forEachEntry: Vr,
|
|
217
|
-
matchAll: Jr,
|
|
218
|
-
isHTMLForm: Kr,
|
|
219
|
-
hasOwnProperty: Tt,
|
|
220
|
-
hasOwnProp: Tt,
|
|
221
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
|
-
reduceDescriptors: Zt,
|
|
223
|
-
freezeMethods: Qr,
|
|
224
|
-
toObjectSet: Zr,
|
|
225
|
-
toCamelCase: Gr,
|
|
226
|
-
noop: en,
|
|
227
|
-
toFiniteNumber: tn,
|
|
228
|
-
findKey: Xt,
|
|
229
|
-
global: me,
|
|
230
|
-
isContextDefined: Qt,
|
|
231
|
-
isSpecCompliantForm: rn,
|
|
232
|
-
toJSONObject: nn,
|
|
233
|
-
isAsyncFn: on,
|
|
234
|
-
isThenable: sn,
|
|
235
|
-
setImmediate: er,
|
|
236
|
-
asap: an,
|
|
237
|
-
isIterable: un
|
|
238
|
-
};
|
|
239
|
-
function k(e, t, n, o, i) {
|
|
240
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), o && (this.request = o), i && (this.response = i, this.status = i.status ? i.status : null);
|
|
241
|
-
}
|
|
242
|
-
l.inherits(k, Error, {
|
|
243
|
-
toJSON: function() {
|
|
244
|
-
return {
|
|
245
|
-
// Standard
|
|
246
|
-
message: this.message,
|
|
247
|
-
name: this.name,
|
|
248
|
-
// Microsoft
|
|
249
|
-
description: this.description,
|
|
250
|
-
number: this.number,
|
|
251
|
-
// Mozilla
|
|
252
|
-
fileName: this.fileName,
|
|
253
|
-
lineNumber: this.lineNumber,
|
|
254
|
-
columnNumber: this.columnNumber,
|
|
255
|
-
stack: this.stack,
|
|
256
|
-
// Axios
|
|
257
|
-
config: l.toJSONObject(this.config),
|
|
258
|
-
code: this.code,
|
|
259
|
-
status: this.status
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
const tr = k.prototype, rr = {};
|
|
264
|
-
[
|
|
265
|
-
"ERR_BAD_OPTION_VALUE",
|
|
266
|
-
"ERR_BAD_OPTION",
|
|
267
|
-
"ECONNABORTED",
|
|
268
|
-
"ETIMEDOUT",
|
|
269
|
-
"ERR_NETWORK",
|
|
270
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
271
|
-
"ERR_DEPRECATED",
|
|
272
|
-
"ERR_BAD_RESPONSE",
|
|
273
|
-
"ERR_BAD_REQUEST",
|
|
274
|
-
"ERR_CANCELED",
|
|
275
|
-
"ERR_NOT_SUPPORT",
|
|
276
|
-
"ERR_INVALID_URL"
|
|
277
|
-
// eslint-disable-next-line func-names
|
|
278
|
-
].forEach((e) => {
|
|
279
|
-
rr[e] = { value: e };
|
|
280
|
-
});
|
|
281
|
-
Object.defineProperties(k, rr);
|
|
282
|
-
Object.defineProperty(tr, "isAxiosError", { value: !0 });
|
|
283
|
-
k.from = (e, t, n, o, i, a) => {
|
|
284
|
-
const u = Object.create(tr);
|
|
285
|
-
l.toFlatObject(e, u, function(p) {
|
|
286
|
-
return p !== Error.prototype;
|
|
287
|
-
}, (h) => h !== "isAxiosError");
|
|
288
|
-
const f = e && e.message ? e.message : "Error", E = t == null && e ? e.code : t;
|
|
289
|
-
return k.call(u, f, E, n, o, i), e && u.cause == null && Object.defineProperty(u, "cause", { value: e, configurable: !0 }), u.name = e && e.name || "Error", a && Object.assign(u, a), u;
|
|
290
|
-
};
|
|
291
|
-
const cn = null;
|
|
292
|
-
function Ze(e) {
|
|
293
|
-
return l.isPlainObject(e) || l.isArray(e);
|
|
294
|
-
}
|
|
295
|
-
function nr(e) {
|
|
296
|
-
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
297
|
-
}
|
|
298
|
-
function St(e, t, n) {
|
|
299
|
-
return e ? e.concat(t).map(function(i, a) {
|
|
300
|
-
return i = nr(i), !n && a ? "[" + i + "]" : i;
|
|
301
|
-
}).join(n ? "." : "") : t;
|
|
302
|
-
}
|
|
303
|
-
function ln(e) {
|
|
304
|
-
return l.isArray(e) && !e.some(Ze);
|
|
305
|
-
}
|
|
306
|
-
const fn = l.toFlatObject(l, {}, null, function(t) {
|
|
307
|
-
return /^is[A-Z]/.test(t);
|
|
308
|
-
});
|
|
309
|
-
function Ye(e, t, n) {
|
|
310
|
-
if (!l.isObject(e))
|
|
311
|
-
throw new TypeError("target must be an object");
|
|
312
|
-
t = t || new FormData(), n = l.toFlatObject(n, {
|
|
313
|
-
metaTokens: !0,
|
|
314
|
-
dots: !1,
|
|
315
|
-
indexes: !1
|
|
316
|
-
}, !1, function(S, _) {
|
|
317
|
-
return !l.isUndefined(_[S]);
|
|
318
|
-
});
|
|
319
|
-
const o = n.metaTokens, i = n.visitor || p, a = n.dots, u = n.indexes, E = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
320
|
-
if (!l.isFunction(i))
|
|
321
|
-
throw new TypeError("visitor must be a function");
|
|
322
|
-
function h(m) {
|
|
323
|
-
if (m === null) return "";
|
|
324
|
-
if (l.isDate(m))
|
|
325
|
-
return m.toISOString();
|
|
326
|
-
if (l.isBoolean(m))
|
|
327
|
-
return m.toString();
|
|
328
|
-
if (!E && l.isBlob(m))
|
|
329
|
-
throw new k("Blob is not supported. Use a Buffer instead.");
|
|
330
|
-
return l.isArrayBuffer(m) || l.isTypedArray(m) ? E && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
331
|
-
}
|
|
332
|
-
function p(m, S, _) {
|
|
333
|
-
let M = m;
|
|
334
|
-
if (m && !_ && typeof m == "object") {
|
|
335
|
-
if (l.endsWith(S, "{}"))
|
|
336
|
-
S = o ? S : S.slice(0, -2), m = JSON.stringify(m);
|
|
337
|
-
else if (l.isArray(m) && ln(m) || (l.isFileList(m) || l.endsWith(S, "[]")) && (M = l.toArray(m)))
|
|
338
|
-
return S = nr(S), M.forEach(function(q, B) {
|
|
339
|
-
!(l.isUndefined(q) || q === null) && t.append(
|
|
340
|
-
// eslint-disable-next-line no-nested-ternary
|
|
341
|
-
u === !0 ? St([S], B, a) : u === null ? S : S + "[]",
|
|
342
|
-
h(q)
|
|
343
|
-
);
|
|
344
|
-
}), !1;
|
|
345
|
-
}
|
|
346
|
-
return Ze(m) ? !0 : (t.append(St(_, S, a), h(m)), !1);
|
|
347
|
-
}
|
|
348
|
-
const R = [], L = Object.assign(fn, {
|
|
349
|
-
defaultVisitor: p,
|
|
350
|
-
convertValue: h,
|
|
351
|
-
isVisitable: Ze
|
|
352
|
-
});
|
|
353
|
-
function $(m, S) {
|
|
354
|
-
if (!l.isUndefined(m)) {
|
|
355
|
-
if (R.indexOf(m) !== -1)
|
|
356
|
-
throw Error("Circular reference detected in " + S.join("."));
|
|
357
|
-
R.push(m), l.forEach(m, function(M, Y) {
|
|
358
|
-
(!(l.isUndefined(M) || M === null) && i.call(
|
|
359
|
-
t,
|
|
360
|
-
M,
|
|
361
|
-
l.isString(Y) ? Y.trim() : Y,
|
|
362
|
-
S,
|
|
363
|
-
L
|
|
364
|
-
)) === !0 && $(M, S ? S.concat(Y) : [Y]);
|
|
365
|
-
}), R.pop();
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
if (!l.isObject(e))
|
|
369
|
-
throw new TypeError("data must be an object");
|
|
370
|
-
return $(e), t;
|
|
371
|
-
}
|
|
372
|
-
function Ot(e) {
|
|
373
|
-
const t = {
|
|
374
|
-
"!": "%21",
|
|
375
|
-
"'": "%27",
|
|
376
|
-
"(": "%28",
|
|
377
|
-
")": "%29",
|
|
378
|
-
"~": "%7E",
|
|
379
|
-
"%20": "+",
|
|
380
|
-
"%00": "\0"
|
|
381
|
-
};
|
|
382
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
|
|
383
|
-
return t[o];
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
function it(e, t) {
|
|
387
|
-
this._pairs = [], e && Ye(e, this, t);
|
|
388
|
-
}
|
|
389
|
-
const or = it.prototype;
|
|
390
|
-
or.append = function(t, n) {
|
|
391
|
-
this._pairs.push([t, n]);
|
|
392
|
-
};
|
|
393
|
-
or.toString = function(t) {
|
|
394
|
-
const n = t ? function(o) {
|
|
395
|
-
return t.call(this, o, Ot);
|
|
396
|
-
} : Ot;
|
|
397
|
-
return this._pairs.map(function(i) {
|
|
398
|
-
return n(i[0]) + "=" + n(i[1]);
|
|
399
|
-
}, "").join("&");
|
|
400
|
-
};
|
|
401
|
-
function dn(e) {
|
|
402
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
403
|
-
}
|
|
404
|
-
function sr(e, t, n) {
|
|
405
|
-
if (!t)
|
|
406
|
-
return e;
|
|
407
|
-
const o = n && n.encode || dn;
|
|
408
|
-
l.isFunction(n) && (n = {
|
|
409
|
-
serialize: n
|
|
410
|
-
});
|
|
411
|
-
const i = n && n.serialize;
|
|
412
|
-
let a;
|
|
413
|
-
if (i ? a = i(t, n) : a = l.isURLSearchParams(t) ? t.toString() : new it(t, n).toString(o), a) {
|
|
414
|
-
const u = e.indexOf("#");
|
|
415
|
-
u !== -1 && (e = e.slice(0, u)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
416
|
-
}
|
|
417
|
-
return e;
|
|
418
|
-
}
|
|
419
|
-
class At {
|
|
420
|
-
constructor() {
|
|
421
|
-
this.handlers = [];
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Add a new interceptor to the stack
|
|
425
|
-
*
|
|
426
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
427
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
428
|
-
*
|
|
429
|
-
* @return {Number} An ID used to remove interceptor later
|
|
430
|
-
*/
|
|
431
|
-
use(t, n, o) {
|
|
432
|
-
return this.handlers.push({
|
|
433
|
-
fulfilled: t,
|
|
434
|
-
rejected: n,
|
|
435
|
-
synchronous: o ? o.synchronous : !1,
|
|
436
|
-
runWhen: o ? o.runWhen : null
|
|
437
|
-
}), this.handlers.length - 1;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Remove an interceptor from the stack
|
|
441
|
-
*
|
|
442
|
-
* @param {Number} id The ID that was returned by `use`
|
|
443
|
-
*
|
|
444
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
445
|
-
*/
|
|
446
|
-
eject(t) {
|
|
447
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Clear all interceptors from the stack
|
|
451
|
-
*
|
|
452
|
-
* @returns {void}
|
|
453
|
-
*/
|
|
454
|
-
clear() {
|
|
455
|
-
this.handlers && (this.handlers = []);
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* Iterate over all the registered interceptors
|
|
459
|
-
*
|
|
460
|
-
* This method is particularly useful for skipping over any
|
|
461
|
-
* interceptors that may have become `null` calling `eject`.
|
|
462
|
-
*
|
|
463
|
-
* @param {Function} fn The function to call for each interceptor
|
|
464
|
-
*
|
|
465
|
-
* @returns {void}
|
|
466
|
-
*/
|
|
467
|
-
forEach(t) {
|
|
468
|
-
l.forEach(this.handlers, function(o) {
|
|
469
|
-
o !== null && t(o);
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
const ir = {
|
|
474
|
-
silentJSONParsing: !0,
|
|
475
|
-
forcedJSONParsing: !0,
|
|
476
|
-
clarifyTimeoutError: !1
|
|
477
|
-
}, pn = typeof URLSearchParams < "u" ? URLSearchParams : it, hn = typeof FormData < "u" ? FormData : null, mn = typeof Blob < "u" ? Blob : null, yn = {
|
|
478
|
-
isBrowser: !0,
|
|
479
|
-
classes: {
|
|
480
|
-
URLSearchParams: pn,
|
|
481
|
-
FormData: hn,
|
|
482
|
-
Blob: mn
|
|
483
|
-
},
|
|
484
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
485
|
-
}, at = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, En = at && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), wn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
486
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", bn = at && window.location.href || "http://localhost", gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
487
|
-
__proto__: null,
|
|
488
|
-
hasBrowserEnv: at,
|
|
489
|
-
hasStandardBrowserEnv: En,
|
|
490
|
-
hasStandardBrowserWebWorkerEnv: wn,
|
|
491
|
-
navigator: et,
|
|
492
|
-
origin: bn
|
|
493
|
-
}, Symbol.toStringTag, { value: "Module" })), X = {
|
|
494
|
-
...gn,
|
|
495
|
-
...yn
|
|
496
|
-
};
|
|
497
|
-
function _n(e, t) {
|
|
498
|
-
return Ye(e, new X.classes.URLSearchParams(), {
|
|
499
|
-
visitor: function(n, o, i, a) {
|
|
500
|
-
return X.isNode && l.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
501
|
-
},
|
|
502
|
-
...t
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
function Rn(e) {
|
|
506
|
-
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
507
|
-
}
|
|
508
|
-
function Tn(e) {
|
|
509
|
-
const t = {}, n = Object.keys(e);
|
|
510
|
-
let o;
|
|
511
|
-
const i = n.length;
|
|
512
|
-
let a;
|
|
513
|
-
for (o = 0; o < i; o++)
|
|
514
|
-
a = n[o], t[a] = e[a];
|
|
515
|
-
return t;
|
|
516
|
-
}
|
|
517
|
-
function ar(e) {
|
|
518
|
-
function t(n, o, i, a) {
|
|
519
|
-
let u = n[a++];
|
|
520
|
-
if (u === "__proto__") return !0;
|
|
521
|
-
const f = Number.isFinite(+u), E = a >= n.length;
|
|
522
|
-
return u = !u && l.isArray(i) ? i.length : u, E ? (l.hasOwnProp(i, u) ? i[u] = [i[u], o] : i[u] = o, !f) : ((!i[u] || !l.isObject(i[u])) && (i[u] = []), t(n, o, i[u], a) && l.isArray(i[u]) && (i[u] = Tn(i[u])), !f);
|
|
523
|
-
}
|
|
524
|
-
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
525
|
-
const n = {};
|
|
526
|
-
return l.forEachEntry(e, (o, i) => {
|
|
527
|
-
t(Rn(o), i, n, 0);
|
|
528
|
-
}), n;
|
|
529
|
-
}
|
|
530
|
-
return null;
|
|
531
|
-
}
|
|
532
|
-
function Sn(e, t, n) {
|
|
533
|
-
if (l.isString(e))
|
|
534
|
-
try {
|
|
535
|
-
return (t || JSON.parse)(e), l.trim(e);
|
|
536
|
-
} catch (o) {
|
|
537
|
-
if (o.name !== "SyntaxError")
|
|
538
|
-
throw o;
|
|
539
|
-
}
|
|
540
|
-
return (n || JSON.stringify)(e);
|
|
541
|
-
}
|
|
542
|
-
const Pe = {
|
|
543
|
-
transitional: ir,
|
|
544
|
-
adapter: ["xhr", "http", "fetch"],
|
|
545
|
-
transformRequest: [function(t, n) {
|
|
546
|
-
const o = n.getContentType() || "", i = o.indexOf("application/json") > -1, a = l.isObject(t);
|
|
547
|
-
if (a && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
548
|
-
return i ? JSON.stringify(ar(t)) : t;
|
|
549
|
-
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
550
|
-
return t;
|
|
551
|
-
if (l.isArrayBufferView(t))
|
|
552
|
-
return t.buffer;
|
|
553
|
-
if (l.isURLSearchParams(t))
|
|
554
|
-
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
555
|
-
let f;
|
|
556
|
-
if (a) {
|
|
557
|
-
if (o.indexOf("application/x-www-form-urlencoded") > -1)
|
|
558
|
-
return _n(t, this.formSerializer).toString();
|
|
559
|
-
if ((f = l.isFileList(t)) || o.indexOf("multipart/form-data") > -1) {
|
|
560
|
-
const E = this.env && this.env.FormData;
|
|
561
|
-
return Ye(
|
|
562
|
-
f ? { "files[]": t } : t,
|
|
563
|
-
E && new E(),
|
|
564
|
-
this.formSerializer
|
|
565
|
-
);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
return a || i ? (n.setContentType("application/json", !1), Sn(t)) : t;
|
|
569
|
-
}],
|
|
570
|
-
transformResponse: [function(t) {
|
|
571
|
-
const n = this.transitional || Pe.transitional, o = n && n.forcedJSONParsing, i = this.responseType === "json";
|
|
572
|
-
if (l.isResponse(t) || l.isReadableStream(t))
|
|
573
|
-
return t;
|
|
574
|
-
if (t && l.isString(t) && (o && !this.responseType || i)) {
|
|
575
|
-
const u = !(n && n.silentJSONParsing) && i;
|
|
576
|
-
try {
|
|
577
|
-
return JSON.parse(t, this.parseReviver);
|
|
578
|
-
} catch (f) {
|
|
579
|
-
if (u)
|
|
580
|
-
throw f.name === "SyntaxError" ? k.from(f, k.ERR_BAD_RESPONSE, this, null, this.response) : f;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return t;
|
|
584
|
-
}],
|
|
585
|
-
/**
|
|
586
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
587
|
-
* timeout is not created.
|
|
588
|
-
*/
|
|
589
|
-
timeout: 0,
|
|
590
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
591
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
592
|
-
maxContentLength: -1,
|
|
593
|
-
maxBodyLength: -1,
|
|
594
|
-
env: {
|
|
595
|
-
FormData: X.classes.FormData,
|
|
596
|
-
Blob: X.classes.Blob
|
|
597
|
-
},
|
|
598
|
-
validateStatus: function(t) {
|
|
599
|
-
return t >= 200 && t < 300;
|
|
600
|
-
},
|
|
601
|
-
headers: {
|
|
602
|
-
common: {
|
|
603
|
-
Accept: "application/json, text/plain, */*",
|
|
604
|
-
"Content-Type": void 0
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
609
|
-
Pe.headers[e] = {};
|
|
610
|
-
});
|
|
611
|
-
const On = l.toObjectSet([
|
|
612
|
-
"age",
|
|
613
|
-
"authorization",
|
|
614
|
-
"content-length",
|
|
615
|
-
"content-type",
|
|
616
|
-
"etag",
|
|
617
|
-
"expires",
|
|
618
|
-
"from",
|
|
619
|
-
"host",
|
|
620
|
-
"if-modified-since",
|
|
621
|
-
"if-unmodified-since",
|
|
622
|
-
"last-modified",
|
|
623
|
-
"location",
|
|
624
|
-
"max-forwards",
|
|
625
|
-
"proxy-authorization",
|
|
626
|
-
"referer",
|
|
627
|
-
"retry-after",
|
|
628
|
-
"user-agent"
|
|
629
|
-
]), An = (e) => {
|
|
630
|
-
const t = {};
|
|
631
|
-
let n, o, i;
|
|
632
|
-
return e && e.split(`
|
|
633
|
-
`).forEach(function(u) {
|
|
634
|
-
i = u.indexOf(":"), n = u.substring(0, i).trim().toLowerCase(), o = u.substring(i + 1).trim(), !(!n || t[n] && On[n]) && (n === "set-cookie" ? t[n] ? t[n].push(o) : t[n] = [o] : t[n] = t[n] ? t[n] + ", " + o : o);
|
|
635
|
-
}), t;
|
|
636
|
-
}, vt = /* @__PURE__ */ Symbol("internals");
|
|
637
|
-
function Te(e) {
|
|
638
|
-
return e && String(e).trim().toLowerCase();
|
|
639
|
-
}
|
|
640
|
-
function $e(e) {
|
|
641
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map($e) : String(e);
|
|
642
|
-
}
|
|
643
|
-
function vn(e) {
|
|
644
|
-
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
645
|
-
let o;
|
|
646
|
-
for (; o = n.exec(e); )
|
|
647
|
-
t[o[1]] = o[2];
|
|
648
|
-
return t;
|
|
649
|
-
}
|
|
650
|
-
const Cn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
651
|
-
function Ke(e, t, n, o, i) {
|
|
652
|
-
if (l.isFunction(o))
|
|
653
|
-
return o.call(this, t, n);
|
|
654
|
-
if (i && (t = n), !!l.isString(t)) {
|
|
655
|
-
if (l.isString(o))
|
|
656
|
-
return t.indexOf(o) !== -1;
|
|
657
|
-
if (l.isRegExp(o))
|
|
658
|
-
return o.test(t);
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
function kn(e) {
|
|
662
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, o) => n.toUpperCase() + o);
|
|
663
|
-
}
|
|
664
|
-
function Pn(e, t) {
|
|
665
|
-
const n = l.toCamelCase(" " + t);
|
|
666
|
-
["get", "set", "has"].forEach((o) => {
|
|
667
|
-
Object.defineProperty(e, o + n, {
|
|
668
|
-
value: function(i, a, u) {
|
|
669
|
-
return this[o].call(this, t, i, a, u);
|
|
670
|
-
},
|
|
671
|
-
configurable: !0
|
|
672
|
-
});
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
let ne = class {
|
|
676
|
-
constructor(t) {
|
|
677
|
-
t && this.set(t);
|
|
678
|
-
}
|
|
679
|
-
set(t, n, o) {
|
|
680
|
-
const i = this;
|
|
681
|
-
function a(f, E, h) {
|
|
682
|
-
const p = Te(E);
|
|
683
|
-
if (!p)
|
|
684
|
-
throw new Error("header name must be a non-empty string");
|
|
685
|
-
const R = l.findKey(i, p);
|
|
686
|
-
(!R || i[R] === void 0 || h === !0 || h === void 0 && i[R] !== !1) && (i[R || E] = $e(f));
|
|
687
|
-
}
|
|
688
|
-
const u = (f, E) => l.forEach(f, (h, p) => a(h, p, E));
|
|
689
|
-
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
690
|
-
u(t, n);
|
|
691
|
-
else if (l.isString(t) && (t = t.trim()) && !Cn(t))
|
|
692
|
-
u(An(t), n);
|
|
693
|
-
else if (l.isObject(t) && l.isIterable(t)) {
|
|
694
|
-
let f = {}, E, h;
|
|
695
|
-
for (const p of t) {
|
|
696
|
-
if (!l.isArray(p))
|
|
697
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
698
|
-
f[h = p[0]] = (E = f[h]) ? l.isArray(E) ? [...E, p[1]] : [E, p[1]] : p[1];
|
|
699
|
-
}
|
|
700
|
-
u(f, n);
|
|
701
|
-
} else
|
|
702
|
-
t != null && a(n, t, o);
|
|
703
|
-
return this;
|
|
704
|
-
}
|
|
705
|
-
get(t, n) {
|
|
706
|
-
if (t = Te(t), t) {
|
|
707
|
-
const o = l.findKey(this, t);
|
|
708
|
-
if (o) {
|
|
709
|
-
const i = this[o];
|
|
710
|
-
if (!n)
|
|
711
|
-
return i;
|
|
712
|
-
if (n === !0)
|
|
713
|
-
return vn(i);
|
|
714
|
-
if (l.isFunction(n))
|
|
715
|
-
return n.call(this, i, o);
|
|
716
|
-
if (l.isRegExp(n))
|
|
717
|
-
return n.exec(i);
|
|
718
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
has(t, n) {
|
|
723
|
-
if (t = Te(t), t) {
|
|
724
|
-
const o = l.findKey(this, t);
|
|
725
|
-
return !!(o && this[o] !== void 0 && (!n || Ke(this, this[o], o, n)));
|
|
726
|
-
}
|
|
727
|
-
return !1;
|
|
728
|
-
}
|
|
729
|
-
delete(t, n) {
|
|
730
|
-
const o = this;
|
|
731
|
-
let i = !1;
|
|
732
|
-
function a(u) {
|
|
733
|
-
if (u = Te(u), u) {
|
|
734
|
-
const f = l.findKey(o, u);
|
|
735
|
-
f && (!n || Ke(o, o[f], f, n)) && (delete o[f], i = !0);
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
return l.isArray(t) ? t.forEach(a) : a(t), i;
|
|
739
|
-
}
|
|
740
|
-
clear(t) {
|
|
741
|
-
const n = Object.keys(this);
|
|
742
|
-
let o = n.length, i = !1;
|
|
743
|
-
for (; o--; ) {
|
|
744
|
-
const a = n[o];
|
|
745
|
-
(!t || Ke(this, this[a], a, t, !0)) && (delete this[a], i = !0);
|
|
746
|
-
}
|
|
747
|
-
return i;
|
|
748
|
-
}
|
|
749
|
-
normalize(t) {
|
|
750
|
-
const n = this, o = {};
|
|
751
|
-
return l.forEach(this, (i, a) => {
|
|
752
|
-
const u = l.findKey(o, a);
|
|
753
|
-
if (u) {
|
|
754
|
-
n[u] = $e(i), delete n[a];
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
const f = t ? kn(a) : String(a).trim();
|
|
758
|
-
f !== a && delete n[a], n[f] = $e(i), o[f] = !0;
|
|
759
|
-
}), this;
|
|
760
|
-
}
|
|
761
|
-
concat(...t) {
|
|
762
|
-
return this.constructor.concat(this, ...t);
|
|
763
|
-
}
|
|
764
|
-
toJSON(t) {
|
|
765
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
766
|
-
return l.forEach(this, (o, i) => {
|
|
767
|
-
o != null && o !== !1 && (n[i] = t && l.isArray(o) ? o.join(", ") : o);
|
|
768
|
-
}), n;
|
|
769
|
-
}
|
|
770
|
-
[Symbol.iterator]() {
|
|
771
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
772
|
-
}
|
|
773
|
-
toString() {
|
|
774
|
-
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
775
|
-
`);
|
|
776
|
-
}
|
|
777
|
-
getSetCookie() {
|
|
778
|
-
return this.get("set-cookie") || [];
|
|
779
|
-
}
|
|
780
|
-
get [Symbol.toStringTag]() {
|
|
781
|
-
return "AxiosHeaders";
|
|
782
|
-
}
|
|
783
|
-
static from(t) {
|
|
784
|
-
return t instanceof this ? t : new this(t);
|
|
785
|
-
}
|
|
786
|
-
static concat(t, ...n) {
|
|
787
|
-
const o = new this(t);
|
|
788
|
-
return n.forEach((i) => o.set(i)), o;
|
|
789
|
-
}
|
|
790
|
-
static accessor(t) {
|
|
791
|
-
const o = (this[vt] = this[vt] = {
|
|
792
|
-
accessors: {}
|
|
793
|
-
}).accessors, i = this.prototype;
|
|
794
|
-
function a(u) {
|
|
795
|
-
const f = Te(u);
|
|
796
|
-
o[f] || (Pn(i, u), o[f] = !0);
|
|
797
|
-
}
|
|
798
|
-
return l.isArray(t) ? t.forEach(a) : a(t), this;
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
802
|
-
l.reduceDescriptors(ne.prototype, ({ value: e }, t) => {
|
|
803
|
-
let n = t[0].toUpperCase() + t.slice(1);
|
|
804
|
-
return {
|
|
805
|
-
get: () => e,
|
|
806
|
-
set(o) {
|
|
807
|
-
this[n] = o;
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
});
|
|
811
|
-
l.freezeMethods(ne);
|
|
812
|
-
function Ge(e, t) {
|
|
813
|
-
const n = this || Pe, o = t || n, i = ne.from(o.headers);
|
|
814
|
-
let a = o.data;
|
|
815
|
-
return l.forEach(e, function(f) {
|
|
816
|
-
a = f.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
817
|
-
}), i.normalize(), a;
|
|
818
|
-
}
|
|
819
|
-
function ur(e) {
|
|
820
|
-
return !!(e && e.__CANCEL__);
|
|
821
|
-
}
|
|
822
|
-
function _e(e, t, n) {
|
|
823
|
-
k.call(this, e ?? "canceled", k.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
824
|
-
}
|
|
825
|
-
l.inherits(_e, k, {
|
|
826
|
-
__CANCEL__: !0
|
|
827
|
-
});
|
|
828
|
-
function cr(e, t, n) {
|
|
829
|
-
const o = n.config.validateStatus;
|
|
830
|
-
!n.status || !o || o(n.status) ? e(n) : t(new k(
|
|
831
|
-
"Request failed with status code " + n.status,
|
|
832
|
-
[k.ERR_BAD_REQUEST, k.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
833
|
-
n.config,
|
|
834
|
-
n.request,
|
|
835
|
-
n
|
|
836
|
-
));
|
|
837
|
-
}
|
|
838
|
-
function Nn(e) {
|
|
839
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
840
|
-
return t && t[1] || "";
|
|
841
|
-
}
|
|
842
|
-
function jn(e, t) {
|
|
843
|
-
e = e || 10;
|
|
844
|
-
const n = new Array(e), o = new Array(e);
|
|
845
|
-
let i = 0, a = 0, u;
|
|
846
|
-
return t = t !== void 0 ? t : 1e3, function(E) {
|
|
847
|
-
const h = Date.now(), p = o[a];
|
|
848
|
-
u || (u = h), n[i] = E, o[i] = h;
|
|
849
|
-
let R = a, L = 0;
|
|
850
|
-
for (; R !== i; )
|
|
851
|
-
L += n[R++], R = R % e;
|
|
852
|
-
if (i = (i + 1) % e, i === a && (a = (a + 1) % e), h - u < t)
|
|
853
|
-
return;
|
|
854
|
-
const $ = p && h - p;
|
|
855
|
-
return $ ? Math.round(L * 1e3 / $) : void 0;
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
function xn(e, t) {
|
|
859
|
-
let n = 0, o = 1e3 / t, i, a;
|
|
860
|
-
const u = (h, p = Date.now()) => {
|
|
861
|
-
n = p, i = null, a && (clearTimeout(a), a = null), e(...h);
|
|
862
|
-
};
|
|
863
|
-
return [(...h) => {
|
|
864
|
-
const p = Date.now(), R = p - n;
|
|
865
|
-
R >= o ? u(h, p) : (i = h, a || (a = setTimeout(() => {
|
|
866
|
-
a = null, u(i);
|
|
867
|
-
}, o - R)));
|
|
868
|
-
}, () => i && u(i)];
|
|
869
|
-
}
|
|
870
|
-
const Ie = (e, t, n = 3) => {
|
|
871
|
-
let o = 0;
|
|
872
|
-
const i = jn(50, 250);
|
|
873
|
-
return xn((a) => {
|
|
874
|
-
const u = a.loaded, f = a.lengthComputable ? a.total : void 0, E = u - o, h = i(E), p = u <= f;
|
|
875
|
-
o = u;
|
|
876
|
-
const R = {
|
|
877
|
-
loaded: u,
|
|
878
|
-
total: f,
|
|
879
|
-
progress: f ? u / f : void 0,
|
|
880
|
-
bytes: E,
|
|
881
|
-
rate: h || void 0,
|
|
882
|
-
estimated: h && f && p ? (f - u) / h : void 0,
|
|
883
|
-
event: a,
|
|
884
|
-
lengthComputable: f != null,
|
|
885
|
-
[t ? "download" : "upload"]: !0
|
|
886
|
-
};
|
|
887
|
-
e(R);
|
|
888
|
-
}, n);
|
|
889
|
-
}, Ct = (e, t) => {
|
|
890
|
-
const n = e != null;
|
|
891
|
-
return [(o) => t[0]({
|
|
892
|
-
lengthComputable: n,
|
|
893
|
-
total: e,
|
|
894
|
-
loaded: o
|
|
895
|
-
}), t[1]];
|
|
896
|
-
}, kt = (e) => (...t) => l.asap(() => e(...t)), Ln = X.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, X.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
897
|
-
new URL(X.origin),
|
|
898
|
-
X.navigator && /(msie|trident)/i.test(X.navigator.userAgent)
|
|
899
|
-
) : () => !0, Un = X.hasStandardBrowserEnv ? (
|
|
900
|
-
// Standard browser envs support document.cookie
|
|
901
|
-
{
|
|
902
|
-
write(e, t, n, o, i, a) {
|
|
903
|
-
const u = [e + "=" + encodeURIComponent(t)];
|
|
904
|
-
l.isNumber(n) && u.push("expires=" + new Date(n).toGMTString()), l.isString(o) && u.push("path=" + o), l.isString(i) && u.push("domain=" + i), a === !0 && u.push("secure"), document.cookie = u.join("; ");
|
|
905
|
-
},
|
|
906
|
-
read(e) {
|
|
907
|
-
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
908
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
909
|
-
},
|
|
910
|
-
remove(e) {
|
|
911
|
-
this.write(e, "", Date.now() - 864e5);
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
) : (
|
|
915
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
916
|
-
{
|
|
917
|
-
write() {
|
|
918
|
-
},
|
|
919
|
-
read() {
|
|
920
|
-
return null;
|
|
921
|
-
},
|
|
922
|
-
remove() {
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
);
|
|
926
|
-
function Dn(e) {
|
|
927
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
928
|
-
}
|
|
929
|
-
function Mn(e, t) {
|
|
930
|
-
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
931
|
-
}
|
|
932
|
-
function lr(e, t, n) {
|
|
933
|
-
let o = !Dn(t);
|
|
934
|
-
return e && (o || n == !1) ? Mn(e, t) : t;
|
|
935
|
-
}
|
|
936
|
-
const Pt = (e) => e instanceof ne ? { ...e } : e;
|
|
937
|
-
function Ee(e, t) {
|
|
938
|
-
t = t || {};
|
|
939
|
-
const n = {};
|
|
940
|
-
function o(h, p, R, L) {
|
|
941
|
-
return l.isPlainObject(h) && l.isPlainObject(p) ? l.merge.call({ caseless: L }, h, p) : l.isPlainObject(p) ? l.merge({}, p) : l.isArray(p) ? p.slice() : p;
|
|
942
|
-
}
|
|
943
|
-
function i(h, p, R, L) {
|
|
944
|
-
if (l.isUndefined(p)) {
|
|
945
|
-
if (!l.isUndefined(h))
|
|
946
|
-
return o(void 0, h, R, L);
|
|
947
|
-
} else return o(h, p, R, L);
|
|
948
|
-
}
|
|
949
|
-
function a(h, p) {
|
|
950
|
-
if (!l.isUndefined(p))
|
|
951
|
-
return o(void 0, p);
|
|
952
|
-
}
|
|
953
|
-
function u(h, p) {
|
|
954
|
-
if (l.isUndefined(p)) {
|
|
955
|
-
if (!l.isUndefined(h))
|
|
956
|
-
return o(void 0, h);
|
|
957
|
-
} else return o(void 0, p);
|
|
958
|
-
}
|
|
959
|
-
function f(h, p, R) {
|
|
960
|
-
if (R in t)
|
|
961
|
-
return o(h, p);
|
|
962
|
-
if (R in e)
|
|
963
|
-
return o(void 0, h);
|
|
964
|
-
}
|
|
965
|
-
const E = {
|
|
966
|
-
url: a,
|
|
967
|
-
method: a,
|
|
968
|
-
data: a,
|
|
969
|
-
baseURL: u,
|
|
970
|
-
transformRequest: u,
|
|
971
|
-
transformResponse: u,
|
|
972
|
-
paramsSerializer: u,
|
|
973
|
-
timeout: u,
|
|
974
|
-
timeoutMessage: u,
|
|
975
|
-
withCredentials: u,
|
|
976
|
-
withXSRFToken: u,
|
|
977
|
-
adapter: u,
|
|
978
|
-
responseType: u,
|
|
979
|
-
xsrfCookieName: u,
|
|
980
|
-
xsrfHeaderName: u,
|
|
981
|
-
onUploadProgress: u,
|
|
982
|
-
onDownloadProgress: u,
|
|
983
|
-
decompress: u,
|
|
984
|
-
maxContentLength: u,
|
|
985
|
-
maxBodyLength: u,
|
|
986
|
-
beforeRedirect: u,
|
|
987
|
-
transport: u,
|
|
988
|
-
httpAgent: u,
|
|
989
|
-
httpsAgent: u,
|
|
990
|
-
cancelToken: u,
|
|
991
|
-
socketPath: u,
|
|
992
|
-
responseEncoding: u,
|
|
993
|
-
validateStatus: f,
|
|
994
|
-
headers: (h, p, R) => i(Pt(h), Pt(p), R, !0)
|
|
995
|
-
};
|
|
996
|
-
return l.forEach(Object.keys({ ...e, ...t }), function(p) {
|
|
997
|
-
const R = E[p] || i, L = R(e[p], t[p], p);
|
|
998
|
-
l.isUndefined(L) && R !== f || (n[p] = L);
|
|
999
|
-
}), n;
|
|
1000
|
-
}
|
|
1001
|
-
const fr = (e) => {
|
|
1002
|
-
const t = Ee({}, e);
|
|
1003
|
-
let { data: n, withXSRFToken: o, xsrfHeaderName: i, xsrfCookieName: a, headers: u, auth: f } = t;
|
|
1004
|
-
if (t.headers = u = ne.from(u), t.url = sr(lr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), f && u.set(
|
|
1005
|
-
"Authorization",
|
|
1006
|
-
"Basic " + btoa((f.username || "") + ":" + (f.password ? unescape(encodeURIComponent(f.password)) : ""))
|
|
1007
|
-
), l.isFormData(n)) {
|
|
1008
|
-
if (X.hasStandardBrowserEnv || X.hasStandardBrowserWebWorkerEnv)
|
|
1009
|
-
u.setContentType(void 0);
|
|
1010
|
-
else if (l.isFunction(n.getHeaders)) {
|
|
1011
|
-
const E = n.getHeaders(), h = ["content-type", "content-length"];
|
|
1012
|
-
Object.entries(E).forEach(([p, R]) => {
|
|
1013
|
-
h.includes(p.toLowerCase()) && u.set(p, R);
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
if (X.hasStandardBrowserEnv && (o && l.isFunction(o) && (o = o(t)), o || o !== !1 && Ln(t.url))) {
|
|
1018
|
-
const E = i && a && Un.read(a);
|
|
1019
|
-
E && u.set(i, E);
|
|
1020
|
-
}
|
|
1021
|
-
return t;
|
|
1022
|
-
}, Fn = typeof XMLHttpRequest < "u", $n = Fn && function(e) {
|
|
1023
|
-
return new Promise(function(n, o) {
|
|
1024
|
-
const i = fr(e);
|
|
1025
|
-
let a = i.data;
|
|
1026
|
-
const u = ne.from(i.headers).normalize();
|
|
1027
|
-
let { responseType: f, onUploadProgress: E, onDownloadProgress: h } = i, p, R, L, $, m;
|
|
1028
|
-
function S() {
|
|
1029
|
-
$ && $(), m && m(), i.cancelToken && i.cancelToken.unsubscribe(p), i.signal && i.signal.removeEventListener("abort", p);
|
|
1030
|
-
}
|
|
1031
|
-
let _ = new XMLHttpRequest();
|
|
1032
|
-
_.open(i.method.toUpperCase(), i.url, !0), _.timeout = i.timeout;
|
|
1033
|
-
function M() {
|
|
1034
|
-
if (!_)
|
|
1035
|
-
return;
|
|
1036
|
-
const q = ne.from(
|
|
1037
|
-
"getAllResponseHeaders" in _ && _.getAllResponseHeaders()
|
|
1038
|
-
), H = {
|
|
1039
|
-
data: !f || f === "text" || f === "json" ? _.responseText : _.response,
|
|
1040
|
-
status: _.status,
|
|
1041
|
-
statusText: _.statusText,
|
|
1042
|
-
headers: q,
|
|
1043
|
-
config: e,
|
|
1044
|
-
request: _
|
|
1045
|
-
};
|
|
1046
|
-
cr(function(A) {
|
|
1047
|
-
n(A), S();
|
|
1048
|
-
}, function(A) {
|
|
1049
|
-
o(A), S();
|
|
1050
|
-
}, H), _ = null;
|
|
1051
|
-
}
|
|
1052
|
-
"onloadend" in _ ? _.onloadend = M : _.onreadystatechange = function() {
|
|
1053
|
-
!_ || _.readyState !== 4 || _.status === 0 && !(_.responseURL && _.responseURL.indexOf("file:") === 0) || setTimeout(M);
|
|
1054
|
-
}, _.onabort = function() {
|
|
1055
|
-
_ && (o(new k("Request aborted", k.ECONNABORTED, e, _)), _ = null);
|
|
1056
|
-
}, _.onerror = function(B) {
|
|
1057
|
-
const H = B && B.message ? B.message : "Network Error", Q = new k(H, k.ERR_NETWORK, e, _);
|
|
1058
|
-
Q.event = B || null, o(Q), _ = null;
|
|
1059
|
-
}, _.ontimeout = function() {
|
|
1060
|
-
let B = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
1061
|
-
const H = i.transitional || ir;
|
|
1062
|
-
i.timeoutErrorMessage && (B = i.timeoutErrorMessage), o(new k(
|
|
1063
|
-
B,
|
|
1064
|
-
H.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
|
|
1065
|
-
e,
|
|
1066
|
-
_
|
|
1067
|
-
)), _ = null;
|
|
1068
|
-
}, a === void 0 && u.setContentType(null), "setRequestHeader" in _ && l.forEach(u.toJSON(), function(B, H) {
|
|
1069
|
-
_.setRequestHeader(H, B);
|
|
1070
|
-
}), l.isUndefined(i.withCredentials) || (_.withCredentials = !!i.withCredentials), f && f !== "json" && (_.responseType = i.responseType), h && ([L, m] = Ie(h, !0), _.addEventListener("progress", L)), E && _.upload && ([R, $] = Ie(E), _.upload.addEventListener("progress", R), _.upload.addEventListener("loadend", $)), (i.cancelToken || i.signal) && (p = (q) => {
|
|
1071
|
-
_ && (o(!q || q.type ? new _e(null, e, _) : q), _.abort(), _ = null);
|
|
1072
|
-
}, i.cancelToken && i.cancelToken.subscribe(p), i.signal && (i.signal.aborted ? p() : i.signal.addEventListener("abort", p)));
|
|
1073
|
-
const Y = Nn(i.url);
|
|
1074
|
-
if (Y && X.protocols.indexOf(Y) === -1) {
|
|
1075
|
-
o(new k("Unsupported protocol " + Y + ":", k.ERR_BAD_REQUEST, e));
|
|
1076
|
-
return;
|
|
1077
|
-
}
|
|
1078
|
-
_.send(a || null);
|
|
1079
|
-
});
|
|
1080
|
-
}, qn = (e, t) => {
|
|
1081
|
-
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1082
|
-
if (t || n) {
|
|
1083
|
-
let o = new AbortController(), i;
|
|
1084
|
-
const a = function(h) {
|
|
1085
|
-
if (!i) {
|
|
1086
|
-
i = !0, f();
|
|
1087
|
-
const p = h instanceof Error ? h : this.reason;
|
|
1088
|
-
o.abort(p instanceof k ? p : new _e(p instanceof Error ? p.message : p));
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
let u = t && setTimeout(() => {
|
|
1092
|
-
u = null, a(new k(`timeout ${t} of ms exceeded`, k.ETIMEDOUT));
|
|
1093
|
-
}, t);
|
|
1094
|
-
const f = () => {
|
|
1095
|
-
e && (u && clearTimeout(u), u = null, e.forEach((h) => {
|
|
1096
|
-
h.unsubscribe ? h.unsubscribe(a) : h.removeEventListener("abort", a);
|
|
1097
|
-
}), e = null);
|
|
1098
|
-
};
|
|
1099
|
-
e.forEach((h) => h.addEventListener("abort", a));
|
|
1100
|
-
const { signal: E } = o;
|
|
1101
|
-
return E.unsubscribe = () => l.asap(f), E;
|
|
1102
|
-
}
|
|
1103
|
-
}, In = function* (e, t) {
|
|
1104
|
-
let n = e.byteLength;
|
|
1105
|
-
if (n < t) {
|
|
1106
|
-
yield e;
|
|
1107
|
-
return;
|
|
1108
|
-
}
|
|
1109
|
-
let o = 0, i;
|
|
1110
|
-
for (; o < n; )
|
|
1111
|
-
i = o + t, yield e.slice(o, i), o = i;
|
|
1112
|
-
}, Bn = async function* (e, t) {
|
|
1113
|
-
for await (const n of Hn(e))
|
|
1114
|
-
yield* In(n, t);
|
|
1115
|
-
}, Hn = async function* (e) {
|
|
1116
|
-
if (e[Symbol.asyncIterator]) {
|
|
1117
|
-
yield* e;
|
|
1118
|
-
return;
|
|
1119
|
-
}
|
|
1120
|
-
const t = e.getReader();
|
|
1121
|
-
try {
|
|
1122
|
-
for (; ; ) {
|
|
1123
|
-
const { done: n, value: o } = await t.read();
|
|
1124
|
-
if (n)
|
|
1125
|
-
break;
|
|
1126
|
-
yield o;
|
|
1127
|
-
}
|
|
1128
|
-
} finally {
|
|
1129
|
-
await t.cancel();
|
|
1130
|
-
}
|
|
1131
|
-
}, Nt = (e, t, n, o) => {
|
|
1132
|
-
const i = Bn(e, t);
|
|
1133
|
-
let a = 0, u, f = (E) => {
|
|
1134
|
-
u || (u = !0, o && o(E));
|
|
1135
|
-
};
|
|
1136
|
-
return new ReadableStream({
|
|
1137
|
-
async pull(E) {
|
|
1138
|
-
try {
|
|
1139
|
-
const { done: h, value: p } = await i.next();
|
|
1140
|
-
if (h) {
|
|
1141
|
-
f(), E.close();
|
|
1142
|
-
return;
|
|
1143
|
-
}
|
|
1144
|
-
let R = p.byteLength;
|
|
1145
|
-
if (n) {
|
|
1146
|
-
let L = a += R;
|
|
1147
|
-
n(L);
|
|
1148
|
-
}
|
|
1149
|
-
E.enqueue(new Uint8Array(p));
|
|
1150
|
-
} catch (h) {
|
|
1151
|
-
throw f(h), h;
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
cancel(E) {
|
|
1155
|
-
return f(E), i.return();
|
|
1156
|
-
}
|
|
1157
|
-
}, {
|
|
1158
|
-
highWaterMark: 2
|
|
1159
|
-
});
|
|
1160
|
-
}, jt = 64 * 1024, { isFunction: Ue } = l, zn = (({ Request: e, Response: t }) => ({
|
|
1161
|
-
Request: e,
|
|
1162
|
-
Response: t
|
|
1163
|
-
}))(l.global), {
|
|
1164
|
-
ReadableStream: xt,
|
|
1165
|
-
TextEncoder: Lt
|
|
1166
|
-
} = l.global, Ut = (e, ...t) => {
|
|
1167
|
-
try {
|
|
1168
|
-
return !!e(...t);
|
|
1169
|
-
} catch {
|
|
1170
|
-
return !1;
|
|
1171
|
-
}
|
|
1172
|
-
}, Yn = (e) => {
|
|
1173
|
-
e = l.merge.call({
|
|
1174
|
-
skipUndefined: !0
|
|
1175
|
-
}, zn, e);
|
|
1176
|
-
const { fetch: t, Request: n, Response: o } = e, i = t ? Ue(t) : typeof fetch == "function", a = Ue(n), u = Ue(o);
|
|
1177
|
-
if (!i)
|
|
1178
|
-
return !1;
|
|
1179
|
-
const f = i && Ue(xt), E = i && (typeof Lt == "function" ? /* @__PURE__ */ ((m) => (S) => m.encode(S))(new Lt()) : async (m) => new Uint8Array(await new n(m).arrayBuffer())), h = a && f && Ut(() => {
|
|
1180
|
-
let m = !1;
|
|
1181
|
-
const S = new n(X.origin, {
|
|
1182
|
-
body: new xt(),
|
|
1183
|
-
method: "POST",
|
|
1184
|
-
get duplex() {
|
|
1185
|
-
return m = !0, "half";
|
|
1186
|
-
}
|
|
1187
|
-
}).headers.has("Content-Type");
|
|
1188
|
-
return m && !S;
|
|
1189
|
-
}), p = u && f && Ut(() => l.isReadableStream(new o("").body)), R = {
|
|
1190
|
-
stream: p && ((m) => m.body)
|
|
1191
|
-
};
|
|
1192
|
-
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
|
|
1193
|
-
!R[m] && (R[m] = (S, _) => {
|
|
1194
|
-
let M = S && S[m];
|
|
1195
|
-
if (M)
|
|
1196
|
-
return M.call(S);
|
|
1197
|
-
throw new k(`Response type '${m}' is not supported`, k.ERR_NOT_SUPPORT, _);
|
|
1198
|
-
});
|
|
1199
|
-
});
|
|
1200
|
-
const L = async (m) => {
|
|
1201
|
-
if (m == null)
|
|
1202
|
-
return 0;
|
|
1203
|
-
if (l.isBlob(m))
|
|
1204
|
-
return m.size;
|
|
1205
|
-
if (l.isSpecCompliantForm(m))
|
|
1206
|
-
return (await new n(X.origin, {
|
|
1207
|
-
method: "POST",
|
|
1208
|
-
body: m
|
|
1209
|
-
}).arrayBuffer()).byteLength;
|
|
1210
|
-
if (l.isArrayBufferView(m) || l.isArrayBuffer(m))
|
|
1211
|
-
return m.byteLength;
|
|
1212
|
-
if (l.isURLSearchParams(m) && (m = m + ""), l.isString(m))
|
|
1213
|
-
return (await E(m)).byteLength;
|
|
1214
|
-
}, $ = async (m, S) => {
|
|
1215
|
-
const _ = l.toFiniteNumber(m.getContentLength());
|
|
1216
|
-
return _ ?? L(S);
|
|
1217
|
-
};
|
|
1218
|
-
return async (m) => {
|
|
1219
|
-
let {
|
|
1220
|
-
url: S,
|
|
1221
|
-
method: _,
|
|
1222
|
-
data: M,
|
|
1223
|
-
signal: Y,
|
|
1224
|
-
cancelToken: q,
|
|
1225
|
-
timeout: B,
|
|
1226
|
-
onDownloadProgress: H,
|
|
1227
|
-
onUploadProgress: Q,
|
|
1228
|
-
responseType: A,
|
|
1229
|
-
headers: ue,
|
|
1230
|
-
withCredentials: V = "same-origin",
|
|
1231
|
-
fetchOptions: ie
|
|
1232
|
-
} = fr(m), ce = t || fetch;
|
|
1233
|
-
A = A ? (A + "").toLowerCase() : "text";
|
|
1234
|
-
let D = qn([Y, q && q.toAbortSignal()], B), Z = null;
|
|
1235
|
-
const K = D && D.unsubscribe && (() => {
|
|
1236
|
-
D.unsubscribe();
|
|
1237
|
-
});
|
|
1238
|
-
let ee;
|
|
1239
|
-
try {
|
|
1240
|
-
if (Q && h && _ !== "get" && _ !== "head" && (ee = await $(ue, M)) !== 0) {
|
|
1241
|
-
let s = new n(S, {
|
|
1242
|
-
method: "POST",
|
|
1243
|
-
body: M,
|
|
1244
|
-
duplex: "half"
|
|
1245
|
-
}), d;
|
|
1246
|
-
if (l.isFormData(M) && (d = s.headers.get("content-type")) && ue.setContentType(d), s.body) {
|
|
1247
|
-
const [b, g] = Ct(
|
|
1248
|
-
ee,
|
|
1249
|
-
Ie(kt(Q))
|
|
1250
|
-
);
|
|
1251
|
-
M = Nt(s.body, jt, b, g);
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
l.isString(V) || (V = V ? "include" : "omit");
|
|
1255
|
-
const I = a && "credentials" in n.prototype, te = {
|
|
1256
|
-
...ie,
|
|
1257
|
-
signal: D,
|
|
1258
|
-
method: _.toUpperCase(),
|
|
1259
|
-
headers: ue.normalize().toJSON(),
|
|
1260
|
-
body: M,
|
|
1261
|
-
duplex: "half",
|
|
1262
|
-
credentials: I ? V : void 0
|
|
1263
|
-
};
|
|
1264
|
-
Z = a && new n(S, te);
|
|
1265
|
-
let G = await (a ? ce(Z, ie) : ce(S, te));
|
|
1266
|
-
const oe = p && (A === "stream" || A === "response");
|
|
1267
|
-
if (p && (H || oe && K)) {
|
|
1268
|
-
const s = {};
|
|
1269
|
-
["status", "statusText", "headers"].forEach((C) => {
|
|
1270
|
-
s[C] = G[C];
|
|
1271
|
-
});
|
|
1272
|
-
const d = l.toFiniteNumber(G.headers.get("content-length")), [b, g] = H && Ct(
|
|
1273
|
-
d,
|
|
1274
|
-
Ie(kt(H), !0)
|
|
1275
|
-
) || [];
|
|
1276
|
-
G = new o(
|
|
1277
|
-
Nt(G.body, jt, b, () => {
|
|
1278
|
-
g && g(), K && K();
|
|
1279
|
-
}),
|
|
1280
|
-
s
|
|
1281
|
-
);
|
|
1282
|
-
}
|
|
1283
|
-
A = A || "text";
|
|
1284
|
-
let de = await R[l.findKey(R, A) || "text"](G, m);
|
|
1285
|
-
return !oe && K && K(), await new Promise((s, d) => {
|
|
1286
|
-
cr(s, d, {
|
|
1287
|
-
data: de,
|
|
1288
|
-
headers: ne.from(G.headers),
|
|
1289
|
-
status: G.status,
|
|
1290
|
-
statusText: G.statusText,
|
|
1291
|
-
config: m,
|
|
1292
|
-
request: Z
|
|
1293
|
-
});
|
|
1294
|
-
});
|
|
1295
|
-
} catch (I) {
|
|
1296
|
-
throw K && K(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
|
|
1297
|
-
new k("Network Error", k.ERR_NETWORK, m, Z),
|
|
1298
|
-
{
|
|
1299
|
-
cause: I.cause || I
|
|
1300
|
-
}
|
|
1301
|
-
) : k.from(I, I && I.code, m, Z);
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
}, Wn = /* @__PURE__ */ new Map(), dr = (e) => {
|
|
1305
|
-
let t = e ? e.env : {};
|
|
1306
|
-
const { fetch: n, Request: o, Response: i } = t, a = [
|
|
1307
|
-
o,
|
|
1308
|
-
i,
|
|
1309
|
-
n
|
|
1310
|
-
];
|
|
1311
|
-
let u = a.length, f = u, E, h, p = Wn;
|
|
1312
|
-
for (; f--; )
|
|
1313
|
-
E = a[f], h = p.get(E), h === void 0 && p.set(E, h = f ? /* @__PURE__ */ new Map() : Yn(t)), p = h;
|
|
1314
|
-
return h;
|
|
1315
|
-
};
|
|
1316
|
-
dr();
|
|
1317
|
-
const tt = {
|
|
1318
|
-
http: cn,
|
|
1319
|
-
xhr: $n,
|
|
1320
|
-
fetch: {
|
|
1321
|
-
get: dr
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
l.forEach(tt, (e, t) => {
|
|
1325
|
-
if (e) {
|
|
1326
|
-
try {
|
|
1327
|
-
Object.defineProperty(e, "name", { value: t });
|
|
1328
|
-
} catch {
|
|
1329
|
-
}
|
|
1330
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
1331
|
-
}
|
|
1332
|
-
});
|
|
1333
|
-
const Dt = (e) => `- ${e}`, Vn = (e) => l.isFunction(e) || e === null || e === !1, pr = {
|
|
1334
|
-
getAdapter: (e, t) => {
|
|
1335
|
-
e = l.isArray(e) ? e : [e];
|
|
1336
|
-
const { length: n } = e;
|
|
1337
|
-
let o, i;
|
|
1338
|
-
const a = {};
|
|
1339
|
-
for (let u = 0; u < n; u++) {
|
|
1340
|
-
o = e[u];
|
|
1341
|
-
let f;
|
|
1342
|
-
if (i = o, !Vn(o) && (i = tt[(f = String(o)).toLowerCase()], i === void 0))
|
|
1343
|
-
throw new k(`Unknown adapter '${f}'`);
|
|
1344
|
-
if (i && (l.isFunction(i) || (i = i.get(t))))
|
|
1345
|
-
break;
|
|
1346
|
-
a[f || "#" + u] = i;
|
|
1347
|
-
}
|
|
1348
|
-
if (!i) {
|
|
1349
|
-
const u = Object.entries(a).map(
|
|
1350
|
-
([E, h]) => `adapter ${E} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1351
|
-
);
|
|
1352
|
-
let f = n ? u.length > 1 ? `since :
|
|
1353
|
-
` + u.map(Dt).join(`
|
|
1354
|
-
`) : " " + Dt(u[0]) : "as no adapter specified";
|
|
1355
|
-
throw new k(
|
|
1356
|
-
"There is no suitable adapter to dispatch the request " + f,
|
|
1357
|
-
"ERR_NOT_SUPPORT"
|
|
1358
|
-
);
|
|
1359
|
-
}
|
|
1360
|
-
return i;
|
|
1361
|
-
},
|
|
1362
|
-
adapters: tt
|
|
1363
|
-
};
|
|
1364
|
-
function Xe(e) {
|
|
1365
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1366
|
-
throw new _e(null, e);
|
|
1367
|
-
}
|
|
1368
|
-
function Mt(e) {
|
|
1369
|
-
return Xe(e), e.headers = ne.from(e.headers), e.data = Ge.call(
|
|
1370
|
-
e,
|
|
1371
|
-
e.transformRequest
|
|
1372
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), pr.getAdapter(e.adapter || Pe.adapter, e)(e).then(function(o) {
|
|
1373
|
-
return Xe(e), o.data = Ge.call(
|
|
1374
|
-
e,
|
|
1375
|
-
e.transformResponse,
|
|
1376
|
-
o
|
|
1377
|
-
), o.headers = ne.from(o.headers), o;
|
|
1378
|
-
}, function(o) {
|
|
1379
|
-
return ur(o) || (Xe(e), o && o.response && (o.response.data = Ge.call(
|
|
1380
|
-
e,
|
|
1381
|
-
e.transformResponse,
|
|
1382
|
-
o.response
|
|
1383
|
-
), o.response.headers = ne.from(o.response.headers))), Promise.reject(o);
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
const hr = "1.12.2", We = {};
|
|
1387
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1388
|
-
We[e] = function(o) {
|
|
1389
|
-
return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1390
|
-
};
|
|
1391
|
-
});
|
|
1392
|
-
const Ft = {};
|
|
1393
|
-
We.transitional = function(t, n, o) {
|
|
1394
|
-
function i(a, u) {
|
|
1395
|
-
return "[Axios v" + hr + "] Transitional option '" + a + "'" + u + (o ? ". " + o : "");
|
|
1396
|
-
}
|
|
1397
|
-
return (a, u, f) => {
|
|
1398
|
-
if (t === !1)
|
|
1399
|
-
throw new k(
|
|
1400
|
-
i(u, " has been removed" + (n ? " in " + n : "")),
|
|
1401
|
-
k.ERR_DEPRECATED
|
|
1402
|
-
);
|
|
1403
|
-
return n && !Ft[u] && (Ft[u] = !0, console.warn(
|
|
1404
|
-
i(
|
|
1405
|
-
u,
|
|
1406
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1407
|
-
)
|
|
1408
|
-
)), t ? t(a, u, f) : !0;
|
|
1409
|
-
};
|
|
1410
|
-
};
|
|
1411
|
-
We.spelling = function(t) {
|
|
1412
|
-
return (n, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
|
|
1413
|
-
};
|
|
1414
|
-
function Jn(e, t, n) {
|
|
1415
|
-
if (typeof e != "object")
|
|
1416
|
-
throw new k("options must be an object", k.ERR_BAD_OPTION_VALUE);
|
|
1417
|
-
const o = Object.keys(e);
|
|
1418
|
-
let i = o.length;
|
|
1419
|
-
for (; i-- > 0; ) {
|
|
1420
|
-
const a = o[i], u = t[a];
|
|
1421
|
-
if (u) {
|
|
1422
|
-
const f = e[a], E = f === void 0 || u(f, a, e);
|
|
1423
|
-
if (E !== !0)
|
|
1424
|
-
throw new k("option " + a + " must be " + E, k.ERR_BAD_OPTION_VALUE);
|
|
1425
|
-
continue;
|
|
1426
|
-
}
|
|
1427
|
-
if (n !== !0)
|
|
1428
|
-
throw new k("Unknown option " + a, k.ERR_BAD_OPTION);
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
const qe = {
|
|
1432
|
-
assertOptions: Jn,
|
|
1433
|
-
validators: We
|
|
1434
|
-
}, le = qe.validators;
|
|
1435
|
-
let ye = class {
|
|
1436
|
-
constructor(t) {
|
|
1437
|
-
this.defaults = t || {}, this.interceptors = {
|
|
1438
|
-
request: new At(),
|
|
1439
|
-
response: new At()
|
|
1440
|
-
};
|
|
1441
|
-
}
|
|
1442
|
-
/**
|
|
1443
|
-
* Dispatch a request
|
|
1444
|
-
*
|
|
1445
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1446
|
-
* @param {?Object} config
|
|
1447
|
-
*
|
|
1448
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1449
|
-
*/
|
|
1450
|
-
async request(t, n) {
|
|
1451
|
-
try {
|
|
1452
|
-
return await this._request(t, n);
|
|
1453
|
-
} catch (o) {
|
|
1454
|
-
if (o instanceof Error) {
|
|
1455
|
-
let i = {};
|
|
1456
|
-
Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
|
|
1457
|
-
const a = i.stack ? i.stack.replace(/^.+\n/, "") : "";
|
|
1458
|
-
try {
|
|
1459
|
-
o.stack ? a && !String(o.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (o.stack += `
|
|
1460
|
-
` + a) : o.stack = a;
|
|
1461
|
-
} catch {
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
throw o;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
_request(t, n) {
|
|
1468
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Ee(this.defaults, n);
|
|
1469
|
-
const { transitional: o, paramsSerializer: i, headers: a } = n;
|
|
1470
|
-
o !== void 0 && qe.assertOptions(o, {
|
|
1471
|
-
silentJSONParsing: le.transitional(le.boolean),
|
|
1472
|
-
forcedJSONParsing: le.transitional(le.boolean),
|
|
1473
|
-
clarifyTimeoutError: le.transitional(le.boolean)
|
|
1474
|
-
}, !1), i != null && (l.isFunction(i) ? n.paramsSerializer = {
|
|
1475
|
-
serialize: i
|
|
1476
|
-
} : qe.assertOptions(i, {
|
|
1477
|
-
encode: le.function,
|
|
1478
|
-
serialize: le.function
|
|
1479
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), qe.assertOptions(n, {
|
|
1480
|
-
baseUrl: le.spelling("baseURL"),
|
|
1481
|
-
withXsrfToken: le.spelling("withXSRFToken")
|
|
1482
|
-
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1483
|
-
let u = a && l.merge(
|
|
1484
|
-
a.common,
|
|
1485
|
-
a[n.method]
|
|
1486
|
-
);
|
|
1487
|
-
a && l.forEach(
|
|
1488
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1489
|
-
(m) => {
|
|
1490
|
-
delete a[m];
|
|
1491
|
-
}
|
|
1492
|
-
), n.headers = ne.concat(u, a);
|
|
1493
|
-
const f = [];
|
|
1494
|
-
let E = !0;
|
|
1495
|
-
this.interceptors.request.forEach(function(S) {
|
|
1496
|
-
typeof S.runWhen == "function" && S.runWhen(n) === !1 || (E = E && S.synchronous, f.unshift(S.fulfilled, S.rejected));
|
|
1497
|
-
});
|
|
1498
|
-
const h = [];
|
|
1499
|
-
this.interceptors.response.forEach(function(S) {
|
|
1500
|
-
h.push(S.fulfilled, S.rejected);
|
|
1501
|
-
});
|
|
1502
|
-
let p, R = 0, L;
|
|
1503
|
-
if (!E) {
|
|
1504
|
-
const m = [Mt.bind(this), void 0];
|
|
1505
|
-
for (m.unshift(...f), m.push(...h), L = m.length, p = Promise.resolve(n); R < L; )
|
|
1506
|
-
p = p.then(m[R++], m[R++]);
|
|
1507
|
-
return p;
|
|
1508
|
-
}
|
|
1509
|
-
L = f.length;
|
|
1510
|
-
let $ = n;
|
|
1511
|
-
for (; R < L; ) {
|
|
1512
|
-
const m = f[R++], S = f[R++];
|
|
1513
|
-
try {
|
|
1514
|
-
$ = m($);
|
|
1515
|
-
} catch (_) {
|
|
1516
|
-
S.call(this, _);
|
|
1517
|
-
break;
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
try {
|
|
1521
|
-
p = Mt.call(this, $);
|
|
1522
|
-
} catch (m) {
|
|
1523
|
-
return Promise.reject(m);
|
|
1524
|
-
}
|
|
1525
|
-
for (R = 0, L = h.length; R < L; )
|
|
1526
|
-
p = p.then(h[R++], h[R++]);
|
|
1527
|
-
return p;
|
|
1528
|
-
}
|
|
1529
|
-
getUri(t) {
|
|
1530
|
-
t = Ee(this.defaults, t);
|
|
1531
|
-
const n = lr(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1532
|
-
return sr(n, t.params, t.paramsSerializer);
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
|
-
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1536
|
-
ye.prototype[t] = function(n, o) {
|
|
1537
|
-
return this.request(Ee(o || {}, {
|
|
1538
|
-
method: t,
|
|
1539
|
-
url: n,
|
|
1540
|
-
data: (o || {}).data
|
|
1541
|
-
}));
|
|
1542
|
-
};
|
|
1543
|
-
});
|
|
1544
|
-
l.forEach(["post", "put", "patch"], function(t) {
|
|
1545
|
-
function n(o) {
|
|
1546
|
-
return function(a, u, f) {
|
|
1547
|
-
return this.request(Ee(f || {}, {
|
|
1548
|
-
method: t,
|
|
1549
|
-
headers: o ? {
|
|
1550
|
-
"Content-Type": "multipart/form-data"
|
|
1551
|
-
} : {},
|
|
1552
|
-
url: a,
|
|
1553
|
-
data: u
|
|
1554
|
-
}));
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1557
|
-
ye.prototype[t] = n(), ye.prototype[t + "Form"] = n(!0);
|
|
1558
|
-
});
|
|
1559
|
-
let Kn = class mr {
|
|
1560
|
-
constructor(t) {
|
|
1561
|
-
if (typeof t != "function")
|
|
1562
|
-
throw new TypeError("executor must be a function.");
|
|
1563
|
-
let n;
|
|
1564
|
-
this.promise = new Promise(function(a) {
|
|
1565
|
-
n = a;
|
|
1566
|
-
});
|
|
1567
|
-
const o = this;
|
|
1568
|
-
this.promise.then((i) => {
|
|
1569
|
-
if (!o._listeners) return;
|
|
1570
|
-
let a = o._listeners.length;
|
|
1571
|
-
for (; a-- > 0; )
|
|
1572
|
-
o._listeners[a](i);
|
|
1573
|
-
o._listeners = null;
|
|
1574
|
-
}), this.promise.then = (i) => {
|
|
1575
|
-
let a;
|
|
1576
|
-
const u = new Promise((f) => {
|
|
1577
|
-
o.subscribe(f), a = f;
|
|
1578
|
-
}).then(i);
|
|
1579
|
-
return u.cancel = function() {
|
|
1580
|
-
o.unsubscribe(a);
|
|
1581
|
-
}, u;
|
|
1582
|
-
}, t(function(a, u, f) {
|
|
1583
|
-
o.reason || (o.reason = new _e(a, u, f), n(o.reason));
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
/**
|
|
1587
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1588
|
-
*/
|
|
1589
|
-
throwIfRequested() {
|
|
1590
|
-
if (this.reason)
|
|
1591
|
-
throw this.reason;
|
|
1592
|
-
}
|
|
1593
|
-
/**
|
|
1594
|
-
* Subscribe to the cancel signal
|
|
1595
|
-
*/
|
|
1596
|
-
subscribe(t) {
|
|
1597
|
-
if (this.reason) {
|
|
1598
|
-
t(this.reason);
|
|
1599
|
-
return;
|
|
1600
|
-
}
|
|
1601
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1602
|
-
}
|
|
1603
|
-
/**
|
|
1604
|
-
* Unsubscribe from the cancel signal
|
|
1605
|
-
*/
|
|
1606
|
-
unsubscribe(t) {
|
|
1607
|
-
if (!this._listeners)
|
|
1608
|
-
return;
|
|
1609
|
-
const n = this._listeners.indexOf(t);
|
|
1610
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1611
|
-
}
|
|
1612
|
-
toAbortSignal() {
|
|
1613
|
-
const t = new AbortController(), n = (o) => {
|
|
1614
|
-
t.abort(o);
|
|
1615
|
-
};
|
|
1616
|
-
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1617
|
-
}
|
|
1618
|
-
/**
|
|
1619
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1620
|
-
* cancels the `CancelToken`.
|
|
1621
|
-
*/
|
|
1622
|
-
static source() {
|
|
1623
|
-
let t;
|
|
1624
|
-
return {
|
|
1625
|
-
token: new mr(function(i) {
|
|
1626
|
-
t = i;
|
|
1627
|
-
}),
|
|
1628
|
-
cancel: t
|
|
1629
|
-
};
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
function Gn(e) {
|
|
1633
|
-
return function(n) {
|
|
1634
|
-
return e.apply(null, n);
|
|
1635
|
-
};
|
|
1636
|
-
}
|
|
1637
|
-
function Xn(e) {
|
|
1638
|
-
return l.isObject(e) && e.isAxiosError === !0;
|
|
1639
|
-
}
|
|
1640
|
-
const rt = {
|
|
1641
|
-
Continue: 100,
|
|
1642
|
-
SwitchingProtocols: 101,
|
|
1643
|
-
Processing: 102,
|
|
1644
|
-
EarlyHints: 103,
|
|
1645
|
-
Ok: 200,
|
|
1646
|
-
Created: 201,
|
|
1647
|
-
Accepted: 202,
|
|
1648
|
-
NonAuthoritativeInformation: 203,
|
|
1649
|
-
NoContent: 204,
|
|
1650
|
-
ResetContent: 205,
|
|
1651
|
-
PartialContent: 206,
|
|
1652
|
-
MultiStatus: 207,
|
|
1653
|
-
AlreadyReported: 208,
|
|
1654
|
-
ImUsed: 226,
|
|
1655
|
-
MultipleChoices: 300,
|
|
1656
|
-
MovedPermanently: 301,
|
|
1657
|
-
Found: 302,
|
|
1658
|
-
SeeOther: 303,
|
|
1659
|
-
NotModified: 304,
|
|
1660
|
-
UseProxy: 305,
|
|
1661
|
-
Unused: 306,
|
|
1662
|
-
TemporaryRedirect: 307,
|
|
1663
|
-
PermanentRedirect: 308,
|
|
1664
|
-
BadRequest: 400,
|
|
1665
|
-
Unauthorized: 401,
|
|
1666
|
-
PaymentRequired: 402,
|
|
1667
|
-
Forbidden: 403,
|
|
1668
|
-
NotFound: 404,
|
|
1669
|
-
MethodNotAllowed: 405,
|
|
1670
|
-
NotAcceptable: 406,
|
|
1671
|
-
ProxyAuthenticationRequired: 407,
|
|
1672
|
-
RequestTimeout: 408,
|
|
1673
|
-
Conflict: 409,
|
|
1674
|
-
Gone: 410,
|
|
1675
|
-
LengthRequired: 411,
|
|
1676
|
-
PreconditionFailed: 412,
|
|
1677
|
-
PayloadTooLarge: 413,
|
|
1678
|
-
UriTooLong: 414,
|
|
1679
|
-
UnsupportedMediaType: 415,
|
|
1680
|
-
RangeNotSatisfiable: 416,
|
|
1681
|
-
ExpectationFailed: 417,
|
|
1682
|
-
ImATeapot: 418,
|
|
1683
|
-
MisdirectedRequest: 421,
|
|
1684
|
-
UnprocessableEntity: 422,
|
|
1685
|
-
Locked: 423,
|
|
1686
|
-
FailedDependency: 424,
|
|
1687
|
-
TooEarly: 425,
|
|
1688
|
-
UpgradeRequired: 426,
|
|
1689
|
-
PreconditionRequired: 428,
|
|
1690
|
-
TooManyRequests: 429,
|
|
1691
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1692
|
-
UnavailableForLegalReasons: 451,
|
|
1693
|
-
InternalServerError: 500,
|
|
1694
|
-
NotImplemented: 501,
|
|
1695
|
-
BadGateway: 502,
|
|
1696
|
-
ServiceUnavailable: 503,
|
|
1697
|
-
GatewayTimeout: 504,
|
|
1698
|
-
HttpVersionNotSupported: 505,
|
|
1699
|
-
VariantAlsoNegotiates: 506,
|
|
1700
|
-
InsufficientStorage: 507,
|
|
1701
|
-
LoopDetected: 508,
|
|
1702
|
-
NotExtended: 510,
|
|
1703
|
-
NetworkAuthenticationRequired: 511
|
|
1704
|
-
};
|
|
1705
|
-
Object.entries(rt).forEach(([e, t]) => {
|
|
1706
|
-
rt[t] = e;
|
|
1707
|
-
});
|
|
1708
|
-
function yr(e) {
|
|
1709
|
-
const t = new ye(e), n = Vt(ye.prototype.request, t);
|
|
1710
|
-
return l.extend(n, ye.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
1711
|
-
return yr(Ee(e, i));
|
|
1712
|
-
}, n;
|
|
1713
|
-
}
|
|
1714
|
-
const W = yr(Pe);
|
|
1715
|
-
W.Axios = ye;
|
|
1716
|
-
W.CanceledError = _e;
|
|
1717
|
-
W.CancelToken = Kn;
|
|
1718
|
-
W.isCancel = ur;
|
|
1719
|
-
W.VERSION = hr;
|
|
1720
|
-
W.toFormData = Ye;
|
|
1721
|
-
W.AxiosError = k;
|
|
1722
|
-
W.Cancel = W.CanceledError;
|
|
1723
|
-
W.all = function(t) {
|
|
1724
|
-
return Promise.all(t);
|
|
1725
|
-
};
|
|
1726
|
-
W.spread = Gn;
|
|
1727
|
-
W.isAxiosError = Xn;
|
|
1728
|
-
W.mergeConfig = Ee;
|
|
1729
|
-
W.AxiosHeaders = ne;
|
|
1730
|
-
W.formToJSON = (e) => ar(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1731
|
-
W.getAdapter = pr.getAdapter;
|
|
1732
|
-
W.HttpStatusCode = rt;
|
|
1733
|
-
W.default = W;
|
|
1734
|
-
const {
|
|
1735
|
-
Axios: po,
|
|
1736
|
-
AxiosError: Qn,
|
|
1737
|
-
CanceledError: ho,
|
|
1738
|
-
isCancel: mo,
|
|
1739
|
-
CancelToken: yo,
|
|
1740
|
-
VERSION: Eo,
|
|
1741
|
-
all: wo,
|
|
1742
|
-
Cancel: bo,
|
|
1743
|
-
isAxiosError: go,
|
|
1744
|
-
spread: _o,
|
|
1745
|
-
toFormData: Ro,
|
|
1746
|
-
AxiosHeaders: Zn,
|
|
1747
|
-
HttpStatusCode: To,
|
|
1748
|
-
formToJSON: So,
|
|
1749
|
-
getAdapter: Oo,
|
|
1750
|
-
mergeConfig: Ao
|
|
1751
|
-
} = W;
|
|
1752
|
-
function nt(e, t, n = []) {
|
|
1753
|
-
return {
|
|
1754
|
-
handle: (o, i) => {
|
|
1755
|
-
let a;
|
|
1756
|
-
for (const f of Array.isArray(o) ? o : [o]) {
|
|
1757
|
-
const E = e.find(
|
|
1758
|
-
(h) => h.ErrorCode === t[f]
|
|
1759
|
-
);
|
|
1760
|
-
if (E) {
|
|
1761
|
-
a = i(f, E);
|
|
1762
|
-
break;
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
let u = n;
|
|
1766
|
-
return a !== void 0 && (u = [...u, a]), nt(
|
|
1767
|
-
e,
|
|
1768
|
-
t,
|
|
1769
|
-
u
|
|
1770
|
-
);
|
|
1771
|
-
},
|
|
1772
|
-
handleAll: (o, i) => {
|
|
1773
|
-
let a;
|
|
1774
|
-
const u = (Array.isArray(o) ? o : [o]).reduce(
|
|
1775
|
-
(E, h) => {
|
|
1776
|
-
const p = e.filter(
|
|
1777
|
-
(R) => R.ErrorCode === t[h]
|
|
1778
|
-
);
|
|
1779
|
-
return p.length === 0 ? E : [
|
|
1780
|
-
...E,
|
|
1781
|
-
{
|
|
1782
|
-
errorName: h,
|
|
1783
|
-
errors: p
|
|
1784
|
-
}
|
|
1785
|
-
];
|
|
1786
|
-
},
|
|
1787
|
-
[]
|
|
1788
|
-
);
|
|
1789
|
-
u.length > 0 && (a = i(u));
|
|
1790
|
-
let f = n;
|
|
1791
|
-
return a !== void 0 && (f = [...f, a]), nt(
|
|
1792
|
-
e,
|
|
1793
|
-
t,
|
|
1794
|
-
f
|
|
1795
|
-
);
|
|
1796
|
-
},
|
|
1797
|
-
check: ((o) => {
|
|
1798
|
-
if (o)
|
|
1799
|
-
return n.reduce(o.reducer, o.initialValue);
|
|
1800
|
-
})
|
|
1801
|
-
};
|
|
1802
|
-
}
|
|
1803
|
-
function eo(e, t) {
|
|
1804
|
-
const n = {
|
|
1805
|
-
...t,
|
|
1806
|
-
success: -1,
|
|
1807
|
-
failure: -2
|
|
1808
|
-
}, o = e.isSuccess ? e.result.WasSuccessful ? [
|
|
1809
|
-
{
|
|
1810
|
-
ErrorMessage: "",
|
|
1811
|
-
PropertyName: "",
|
|
1812
|
-
ErrorCode: -1
|
|
1813
|
-
}
|
|
1814
|
-
] : e.result.ValidationErrors : [
|
|
1815
|
-
{
|
|
1816
|
-
ErrorMessage: "",
|
|
1817
|
-
PropertyName: "",
|
|
1818
|
-
ErrorCode: -2
|
|
1819
|
-
}
|
|
1820
|
-
];
|
|
1821
|
-
return nt(o, n);
|
|
1822
|
-
}
|
|
1823
|
-
function $t(e) {
|
|
1
|
+
import m, { AxiosError as l, AxiosHeaders as h } from "axios";
|
|
2
|
+
import { handleResponse as b } from "@leancodepl/validation";
|
|
3
|
+
import { uncapitalizeDeep as k } from "@leancodepl/utils";
|
|
4
|
+
function p(r) {
|
|
1824
5
|
return {
|
|
1825
6
|
isSuccess: !0,
|
|
1826
|
-
result:
|
|
7
|
+
result: r
|
|
1827
8
|
};
|
|
1828
9
|
}
|
|
1829
|
-
function
|
|
10
|
+
function s(r, o) {
|
|
1830
11
|
return {
|
|
1831
12
|
isSuccess: !1,
|
|
1832
|
-
isAborted: !!
|
|
1833
|
-
error:
|
|
13
|
+
isAborted: !!o?.isAborted,
|
|
14
|
+
error: r
|
|
1834
15
|
};
|
|
1835
16
|
}
|
|
1836
|
-
function
|
|
1837
|
-
cqrsEndpoint:
|
|
1838
|
-
tokenProvider:
|
|
1839
|
-
axiosOptions:
|
|
1840
|
-
tokenHeader:
|
|
17
|
+
function y({
|
|
18
|
+
cqrsEndpoint: r,
|
|
19
|
+
tokenProvider: o,
|
|
20
|
+
axiosOptions: u,
|
|
21
|
+
tokenHeader: c = "Authorization"
|
|
1841
22
|
}) {
|
|
1842
|
-
const
|
|
1843
|
-
baseURL:
|
|
1844
|
-
...
|
|
23
|
+
const n = m.create({
|
|
24
|
+
baseURL: r,
|
|
25
|
+
...u
|
|
1845
26
|
});
|
|
1846
|
-
return
|
|
1847
|
-
const
|
|
1848
|
-
return
|
|
1849
|
-
}),
|
|
1850
|
-
(
|
|
1851
|
-
async (
|
|
1852
|
-
if (!(
|
|
27
|
+
return n.interceptors.request.use(async (e) => {
|
|
28
|
+
const t = await o?.getToken();
|
|
29
|
+
return t && e.headers?.set(c, `Bearer ${t}`), e;
|
|
30
|
+
}), n.interceptors.response.use(
|
|
31
|
+
(e) => (e.data = p(e.data), e),
|
|
32
|
+
async (e) => {
|
|
33
|
+
if (!(e instanceof l))
|
|
1853
34
|
return {
|
|
1854
|
-
data:
|
|
35
|
+
data: s(`Unknown error ${e}`)
|
|
1855
36
|
};
|
|
1856
|
-
if (
|
|
37
|
+
if (e.code === "ERR_CANCELED")
|
|
1857
38
|
return {
|
|
1858
|
-
data:
|
|
39
|
+
data: s(e, {
|
|
1859
40
|
isAborted: !0
|
|
1860
41
|
})
|
|
1861
42
|
};
|
|
1862
|
-
if (!
|
|
43
|
+
if (!e.response)
|
|
1863
44
|
return {
|
|
1864
|
-
data:
|
|
45
|
+
data: s(e)
|
|
1865
46
|
};
|
|
1866
|
-
const
|
|
1867
|
-
switch (
|
|
47
|
+
const t = e.response;
|
|
48
|
+
switch (e.response.status) {
|
|
1868
49
|
case 401: {
|
|
1869
|
-
let
|
|
1870
|
-
if (
|
|
1871
|
-
|
|
50
|
+
let a = e.config;
|
|
51
|
+
if (a?.params?.isRetry) {
|
|
52
|
+
t.data = s("The request has not been authorized and token refresh did not help");
|
|
1872
53
|
break;
|
|
1873
54
|
}
|
|
1874
|
-
if (!
|
|
1875
|
-
|
|
55
|
+
if (!o?.invalidateToken) {
|
|
56
|
+
t.data = s("User needs to be authenticated to execute the command/query/operation");
|
|
1876
57
|
break;
|
|
1877
58
|
}
|
|
1878
|
-
if (!await
|
|
1879
|
-
|
|
59
|
+
if (!await o.invalidateToken()) {
|
|
60
|
+
t.data = s("Cannot refresh access token after the server returned 401 Unauthorized");
|
|
1880
61
|
break;
|
|
1881
62
|
}
|
|
1882
|
-
return
|
|
63
|
+
return a ??= { headers: new h() }, a.params ??= {}, a.params.isRetry = !0, await n.request(a);
|
|
1883
64
|
}
|
|
1884
65
|
case 400:
|
|
1885
|
-
|
|
66
|
+
t.data = s("The request was malformed");
|
|
1886
67
|
break;
|
|
1887
68
|
case 403:
|
|
1888
|
-
|
|
69
|
+
t.data = s("User is not authorized to execute the command/query/operation");
|
|
1889
70
|
break;
|
|
1890
71
|
case 404:
|
|
1891
|
-
|
|
72
|
+
t.data = s("Command/query/operation not found");
|
|
1892
73
|
break;
|
|
1893
74
|
case 422:
|
|
1894
|
-
|
|
75
|
+
t.data = p(e.response.data);
|
|
1895
76
|
break;
|
|
1896
77
|
default:
|
|
1897
|
-
|
|
1898
|
-
`Cannot execute command/query/operation, server returned a ${
|
|
78
|
+
t.data = s(
|
|
79
|
+
`Cannot execute command/query/operation, server returned a ${e.response.status} code`
|
|
1899
80
|
);
|
|
1900
81
|
break;
|
|
1901
82
|
}
|
|
1902
|
-
return
|
|
83
|
+
return t;
|
|
1903
84
|
}
|
|
1904
85
|
), {
|
|
1905
|
-
createQuery(
|
|
1906
|
-
return (
|
|
1907
|
-
const
|
|
1908
|
-
signal:
|
|
1909
|
-
}).then((
|
|
1910
|
-
return
|
|
86
|
+
createQuery(e) {
|
|
87
|
+
return (t) => {
|
|
88
|
+
const a = new AbortController(), i = n.post("query/" + e, t, {
|
|
89
|
+
signal: a.signal
|
|
90
|
+
}).then((d) => d.data);
|
|
91
|
+
return i.abort = a.abort.bind(a), i;
|
|
1911
92
|
};
|
|
1912
93
|
},
|
|
1913
|
-
createOperation(
|
|
1914
|
-
return (
|
|
94
|
+
createOperation(e) {
|
|
95
|
+
return (t) => n.post("operation/" + e, t).then((a) => a.data);
|
|
1915
96
|
},
|
|
1916
|
-
createCommand(
|
|
1917
|
-
async function
|
|
1918
|
-
return (await
|
|
97
|
+
createCommand(e, t) {
|
|
98
|
+
async function a(i) {
|
|
99
|
+
return (await n.post("command/" + e, i)).data;
|
|
1919
100
|
}
|
|
1920
|
-
return
|
|
1921
|
-
}
|
|
1922
|
-
};
|
|
1923
|
-
}
|
|
1924
|
-
var De = { exports: {} }, Se = {};
|
|
1925
|
-
var qt;
|
|
1926
|
-
function ro() {
|
|
1927
|
-
if (qt) return Se;
|
|
1928
|
-
qt = 1;
|
|
1929
|
-
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
1930
|
-
function n(o, i, a) {
|
|
1931
|
-
var u = null;
|
|
1932
|
-
if (a !== void 0 && (u = "" + a), i.key !== void 0 && (u = "" + i.key), "key" in i) {
|
|
1933
|
-
a = {};
|
|
1934
|
-
for (var f in i)
|
|
1935
|
-
f !== "key" && (a[f] = i[f]);
|
|
1936
|
-
} else a = i;
|
|
1937
|
-
return i = a.ref, {
|
|
1938
|
-
$$typeof: e,
|
|
1939
|
-
type: o,
|
|
1940
|
-
key: u,
|
|
1941
|
-
ref: i !== void 0 ? i : null,
|
|
1942
|
-
props: a
|
|
1943
|
-
};
|
|
1944
|
-
}
|
|
1945
|
-
return Se.Fragment = t, Se.jsx = n, Se.jsxs = n, Se;
|
|
1946
|
-
}
|
|
1947
|
-
var Oe = {}, Me = { exports: {} }, v = {};
|
|
1948
|
-
var It;
|
|
1949
|
-
function no() {
|
|
1950
|
-
if (It) return v;
|
|
1951
|
-
It = 1;
|
|
1952
|
-
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), a = /* @__PURE__ */ Symbol.for("react.consumer"), u = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.activity"), L = Symbol.iterator;
|
|
1953
|
-
function $(s) {
|
|
1954
|
-
return s === null || typeof s != "object" ? null : (s = L && s[L] || s["@@iterator"], typeof s == "function" ? s : null);
|
|
1955
|
-
}
|
|
1956
|
-
var m = {
|
|
1957
|
-
isMounted: function() {
|
|
1958
|
-
return !1;
|
|
1959
|
-
},
|
|
1960
|
-
enqueueForceUpdate: function() {
|
|
1961
|
-
},
|
|
1962
|
-
enqueueReplaceState: function() {
|
|
1963
|
-
},
|
|
1964
|
-
enqueueSetState: function() {
|
|
1965
|
-
}
|
|
1966
|
-
}, S = Object.assign, _ = {};
|
|
1967
|
-
function M(s, d, b) {
|
|
1968
|
-
this.props = s, this.context = d, this.refs = _, this.updater = b || m;
|
|
1969
|
-
}
|
|
1970
|
-
M.prototype.isReactComponent = {}, M.prototype.setState = function(s, d) {
|
|
1971
|
-
if (typeof s != "object" && typeof s != "function" && s != null)
|
|
1972
|
-
throw Error(
|
|
1973
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1974
|
-
);
|
|
1975
|
-
this.updater.enqueueSetState(this, s, d, "setState");
|
|
1976
|
-
}, M.prototype.forceUpdate = function(s) {
|
|
1977
|
-
this.updater.enqueueForceUpdate(this, s, "forceUpdate");
|
|
1978
|
-
};
|
|
1979
|
-
function Y() {
|
|
1980
|
-
}
|
|
1981
|
-
Y.prototype = M.prototype;
|
|
1982
|
-
function q(s, d, b) {
|
|
1983
|
-
this.props = s, this.context = d, this.refs = _, this.updater = b || m;
|
|
1984
|
-
}
|
|
1985
|
-
var B = q.prototype = new Y();
|
|
1986
|
-
B.constructor = q, S(B, M.prototype), B.isPureReactComponent = !0;
|
|
1987
|
-
var H = Array.isArray;
|
|
1988
|
-
function Q() {
|
|
1989
|
-
}
|
|
1990
|
-
var A = { H: null, A: null, T: null, S: null }, ue = Object.prototype.hasOwnProperty;
|
|
1991
|
-
function V(s, d, b) {
|
|
1992
|
-
var g = b.ref;
|
|
1993
|
-
return {
|
|
1994
|
-
$$typeof: e,
|
|
1995
|
-
type: s,
|
|
1996
|
-
key: d,
|
|
1997
|
-
ref: g !== void 0 ? g : null,
|
|
1998
|
-
props: b
|
|
1999
|
-
};
|
|
2000
|
-
}
|
|
2001
|
-
function ie(s, d) {
|
|
2002
|
-
return V(s.type, d, s.props);
|
|
2003
|
-
}
|
|
2004
|
-
function ce(s) {
|
|
2005
|
-
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
2006
|
-
}
|
|
2007
|
-
function D(s) {
|
|
2008
|
-
var d = { "=": "=0", ":": "=2" };
|
|
2009
|
-
return "$" + s.replace(/[=:]/g, function(b) {
|
|
2010
|
-
return d[b];
|
|
2011
|
-
});
|
|
2012
|
-
}
|
|
2013
|
-
var Z = /\/+/g;
|
|
2014
|
-
function K(s, d) {
|
|
2015
|
-
return typeof s == "object" && s !== null && s.key != null ? D("" + s.key) : d.toString(36);
|
|
2016
|
-
}
|
|
2017
|
-
function ee(s) {
|
|
2018
|
-
switch (s.status) {
|
|
2019
|
-
case "fulfilled":
|
|
2020
|
-
return s.value;
|
|
2021
|
-
case "rejected":
|
|
2022
|
-
throw s.reason;
|
|
2023
|
-
default:
|
|
2024
|
-
switch (typeof s.status == "string" ? s.then(Q, Q) : (s.status = "pending", s.then(
|
|
2025
|
-
function(d) {
|
|
2026
|
-
s.status === "pending" && (s.status = "fulfilled", s.value = d);
|
|
2027
|
-
},
|
|
2028
|
-
function(d) {
|
|
2029
|
-
s.status === "pending" && (s.status = "rejected", s.reason = d);
|
|
2030
|
-
}
|
|
2031
|
-
)), s.status) {
|
|
2032
|
-
case "fulfilled":
|
|
2033
|
-
return s.value;
|
|
2034
|
-
case "rejected":
|
|
2035
|
-
throw s.reason;
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
throw s;
|
|
2039
|
-
}
|
|
2040
|
-
function I(s, d, b, g, C) {
|
|
2041
|
-
var U = typeof s;
|
|
2042
|
-
(U === "undefined" || U === "boolean") && (s = null);
|
|
2043
|
-
var O = !1;
|
|
2044
|
-
if (s === null) O = !0;
|
|
2045
|
-
else
|
|
2046
|
-
switch (U) {
|
|
2047
|
-
case "bigint":
|
|
2048
|
-
case "string":
|
|
2049
|
-
case "number":
|
|
2050
|
-
O = !0;
|
|
2051
|
-
break;
|
|
2052
|
-
case "object":
|
|
2053
|
-
switch (s.$$typeof) {
|
|
2054
|
-
case e:
|
|
2055
|
-
case t:
|
|
2056
|
-
O = !0;
|
|
2057
|
-
break;
|
|
2058
|
-
case p:
|
|
2059
|
-
return O = s._init, I(
|
|
2060
|
-
O(s._payload),
|
|
2061
|
-
d,
|
|
2062
|
-
b,
|
|
2063
|
-
g,
|
|
2064
|
-
C
|
|
2065
|
-
);
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
if (O)
|
|
2069
|
-
return C = C(s), O = g === "" ? "." + K(s, 0) : g, H(C) ? (b = "", O != null && (b = O.replace(Z, "$&/") + "/"), I(C, d, b, "", function(pe) {
|
|
2070
|
-
return pe;
|
|
2071
|
-
})) : C != null && (ce(C) && (C = ie(
|
|
2072
|
-
C,
|
|
2073
|
-
b + (C.key == null || s && s.key === C.key ? "" : ("" + C.key).replace(
|
|
2074
|
-
Z,
|
|
2075
|
-
"$&/"
|
|
2076
|
-
) + "/") + O
|
|
2077
|
-
)), d.push(C)), 1;
|
|
2078
|
-
O = 0;
|
|
2079
|
-
var J = g === "" ? "." : g + ":";
|
|
2080
|
-
if (H(s))
|
|
2081
|
-
for (var z = 0; z < s.length; z++)
|
|
2082
|
-
g = s[z], U = J + K(g, z), O += I(
|
|
2083
|
-
g,
|
|
2084
|
-
d,
|
|
2085
|
-
b,
|
|
2086
|
-
U,
|
|
2087
|
-
C
|
|
2088
|
-
);
|
|
2089
|
-
else if (z = $(s), typeof z == "function")
|
|
2090
|
-
for (s = z.call(s), z = 0; !(g = s.next()).done; )
|
|
2091
|
-
g = g.value, U = J + K(g, z++), O += I(
|
|
2092
|
-
g,
|
|
2093
|
-
d,
|
|
2094
|
-
b,
|
|
2095
|
-
U,
|
|
2096
|
-
C
|
|
2097
|
-
);
|
|
2098
|
-
else if (U === "object") {
|
|
2099
|
-
if (typeof s.then == "function")
|
|
2100
|
-
return I(
|
|
2101
|
-
ee(s),
|
|
2102
|
-
d,
|
|
2103
|
-
b,
|
|
2104
|
-
g,
|
|
2105
|
-
C
|
|
2106
|
-
);
|
|
2107
|
-
throw d = String(s), Error(
|
|
2108
|
-
"Objects are not valid as a React child (found: " + (d === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : d) + "). If you meant to render a collection of children, use an array instead."
|
|
2109
|
-
);
|
|
2110
|
-
}
|
|
2111
|
-
return O;
|
|
2112
|
-
}
|
|
2113
|
-
function te(s, d, b) {
|
|
2114
|
-
if (s == null) return s;
|
|
2115
|
-
var g = [], C = 0;
|
|
2116
|
-
return I(s, g, "", "", function(U) {
|
|
2117
|
-
return d.call(b, U, C++);
|
|
2118
|
-
}), g;
|
|
2119
|
-
}
|
|
2120
|
-
function G(s) {
|
|
2121
|
-
if (s._status === -1) {
|
|
2122
|
-
var d = s._result;
|
|
2123
|
-
d = d(), d.then(
|
|
2124
|
-
function(b) {
|
|
2125
|
-
(s._status === 0 || s._status === -1) && (s._status = 1, s._result = b);
|
|
2126
|
-
},
|
|
2127
|
-
function(b) {
|
|
2128
|
-
(s._status === 0 || s._status === -1) && (s._status = 2, s._result = b);
|
|
2129
|
-
}
|
|
2130
|
-
), s._status === -1 && (s._status = 0, s._result = d);
|
|
2131
|
-
}
|
|
2132
|
-
if (s._status === 1) return s._result.default;
|
|
2133
|
-
throw s._result;
|
|
2134
|
-
}
|
|
2135
|
-
var oe = typeof reportError == "function" ? reportError : function(s) {
|
|
2136
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
2137
|
-
var d = new window.ErrorEvent("error", {
|
|
2138
|
-
bubbles: !0,
|
|
2139
|
-
cancelable: !0,
|
|
2140
|
-
message: typeof s == "object" && s !== null && typeof s.message == "string" ? String(s.message) : String(s),
|
|
2141
|
-
error: s
|
|
2142
|
-
});
|
|
2143
|
-
if (!window.dispatchEvent(d)) return;
|
|
2144
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
2145
|
-
process.emit("uncaughtException", s);
|
|
2146
|
-
return;
|
|
2147
|
-
}
|
|
2148
|
-
console.error(s);
|
|
2149
|
-
}, de = {
|
|
2150
|
-
map: te,
|
|
2151
|
-
forEach: function(s, d, b) {
|
|
2152
|
-
te(
|
|
2153
|
-
s,
|
|
2154
|
-
function() {
|
|
2155
|
-
d.apply(this, arguments);
|
|
2156
|
-
},
|
|
2157
|
-
b
|
|
2158
|
-
);
|
|
2159
|
-
},
|
|
2160
|
-
count: function(s) {
|
|
2161
|
-
var d = 0;
|
|
2162
|
-
return te(s, function() {
|
|
2163
|
-
d++;
|
|
2164
|
-
}), d;
|
|
2165
|
-
},
|
|
2166
|
-
toArray: function(s) {
|
|
2167
|
-
return te(s, function(d) {
|
|
2168
|
-
return d;
|
|
2169
|
-
}) || [];
|
|
2170
|
-
},
|
|
2171
|
-
only: function(s) {
|
|
2172
|
-
if (!ce(s))
|
|
2173
|
-
throw Error(
|
|
2174
|
-
"React.Children.only expected to receive a single React element child."
|
|
2175
|
-
);
|
|
2176
|
-
return s;
|
|
101
|
+
return a.handle = (i) => a(i).then((d) => b(d, t)), a;
|
|
2177
102
|
}
|
|
2178
103
|
};
|
|
2179
|
-
return v.Activity = R, v.Children = de, v.Component = M, v.Fragment = n, v.Profiler = i, v.PureComponent = q, v.StrictMode = o, v.Suspense = E, v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = A, v.__COMPILER_RUNTIME = {
|
|
2180
|
-
__proto__: null,
|
|
2181
|
-
c: function(s) {
|
|
2182
|
-
return A.H.useMemoCache(s);
|
|
2183
|
-
}
|
|
2184
|
-
}, v.cache = function(s) {
|
|
2185
|
-
return function() {
|
|
2186
|
-
return s.apply(null, arguments);
|
|
2187
|
-
};
|
|
2188
|
-
}, v.cacheSignal = function() {
|
|
2189
|
-
return null;
|
|
2190
|
-
}, v.cloneElement = function(s, d, b) {
|
|
2191
|
-
if (s == null)
|
|
2192
|
-
throw Error(
|
|
2193
|
-
"The argument must be a React element, but you passed " + s + "."
|
|
2194
|
-
);
|
|
2195
|
-
var g = S({}, s.props), C = s.key;
|
|
2196
|
-
if (d != null)
|
|
2197
|
-
for (U in d.key !== void 0 && (C = "" + d.key), d)
|
|
2198
|
-
!ue.call(d, U) || U === "key" || U === "__self" || U === "__source" || U === "ref" && d.ref === void 0 || (g[U] = d[U]);
|
|
2199
|
-
var U = arguments.length - 2;
|
|
2200
|
-
if (U === 1) g.children = b;
|
|
2201
|
-
else if (1 < U) {
|
|
2202
|
-
for (var O = Array(U), J = 0; J < U; J++)
|
|
2203
|
-
O[J] = arguments[J + 2];
|
|
2204
|
-
g.children = O;
|
|
2205
|
-
}
|
|
2206
|
-
return V(s.type, C, g);
|
|
2207
|
-
}, v.createContext = function(s) {
|
|
2208
|
-
return s = {
|
|
2209
|
-
$$typeof: u,
|
|
2210
|
-
_currentValue: s,
|
|
2211
|
-
_currentValue2: s,
|
|
2212
|
-
_threadCount: 0,
|
|
2213
|
-
Provider: null,
|
|
2214
|
-
Consumer: null
|
|
2215
|
-
}, s.Provider = s, s.Consumer = {
|
|
2216
|
-
$$typeof: a,
|
|
2217
|
-
_context: s
|
|
2218
|
-
}, s;
|
|
2219
|
-
}, v.createElement = function(s, d, b) {
|
|
2220
|
-
var g, C = {}, U = null;
|
|
2221
|
-
if (d != null)
|
|
2222
|
-
for (g in d.key !== void 0 && (U = "" + d.key), d)
|
|
2223
|
-
ue.call(d, g) && g !== "key" && g !== "__self" && g !== "__source" && (C[g] = d[g]);
|
|
2224
|
-
var O = arguments.length - 2;
|
|
2225
|
-
if (O === 1) C.children = b;
|
|
2226
|
-
else if (1 < O) {
|
|
2227
|
-
for (var J = Array(O), z = 0; z < O; z++)
|
|
2228
|
-
J[z] = arguments[z + 2];
|
|
2229
|
-
C.children = J;
|
|
2230
|
-
}
|
|
2231
|
-
if (s && s.defaultProps)
|
|
2232
|
-
for (g in O = s.defaultProps, O)
|
|
2233
|
-
C[g] === void 0 && (C[g] = O[g]);
|
|
2234
|
-
return V(s, U, C);
|
|
2235
|
-
}, v.createRef = function() {
|
|
2236
|
-
return { current: null };
|
|
2237
|
-
}, v.forwardRef = function(s) {
|
|
2238
|
-
return { $$typeof: f, render: s };
|
|
2239
|
-
}, v.isValidElement = ce, v.lazy = function(s) {
|
|
2240
|
-
return {
|
|
2241
|
-
$$typeof: p,
|
|
2242
|
-
_payload: { _status: -1, _result: s },
|
|
2243
|
-
_init: G
|
|
2244
|
-
};
|
|
2245
|
-
}, v.memo = function(s, d) {
|
|
2246
|
-
return {
|
|
2247
|
-
$$typeof: h,
|
|
2248
|
-
type: s,
|
|
2249
|
-
compare: d === void 0 ? null : d
|
|
2250
|
-
};
|
|
2251
|
-
}, v.startTransition = function(s) {
|
|
2252
|
-
var d = A.T, b = {};
|
|
2253
|
-
A.T = b;
|
|
2254
|
-
try {
|
|
2255
|
-
var g = s(), C = A.S;
|
|
2256
|
-
C !== null && C(b, g), typeof g == "object" && g !== null && typeof g.then == "function" && g.then(Q, oe);
|
|
2257
|
-
} catch (U) {
|
|
2258
|
-
oe(U);
|
|
2259
|
-
} finally {
|
|
2260
|
-
d !== null && b.types !== null && (d.types = b.types), A.T = d;
|
|
2261
|
-
}
|
|
2262
|
-
}, v.unstable_useCacheRefresh = function() {
|
|
2263
|
-
return A.H.useCacheRefresh();
|
|
2264
|
-
}, v.use = function(s) {
|
|
2265
|
-
return A.H.use(s);
|
|
2266
|
-
}, v.useActionState = function(s, d, b) {
|
|
2267
|
-
return A.H.useActionState(s, d, b);
|
|
2268
|
-
}, v.useCallback = function(s, d) {
|
|
2269
|
-
return A.H.useCallback(s, d);
|
|
2270
|
-
}, v.useContext = function(s) {
|
|
2271
|
-
return A.H.useContext(s);
|
|
2272
|
-
}, v.useDebugValue = function() {
|
|
2273
|
-
}, v.useDeferredValue = function(s, d) {
|
|
2274
|
-
return A.H.useDeferredValue(s, d);
|
|
2275
|
-
}, v.useEffect = function(s, d) {
|
|
2276
|
-
return A.H.useEffect(s, d);
|
|
2277
|
-
}, v.useEffectEvent = function(s) {
|
|
2278
|
-
return A.H.useEffectEvent(s);
|
|
2279
|
-
}, v.useId = function() {
|
|
2280
|
-
return A.H.useId();
|
|
2281
|
-
}, v.useImperativeHandle = function(s, d, b) {
|
|
2282
|
-
return A.H.useImperativeHandle(s, d, b);
|
|
2283
|
-
}, v.useInsertionEffect = function(s, d) {
|
|
2284
|
-
return A.H.useInsertionEffect(s, d);
|
|
2285
|
-
}, v.useLayoutEffect = function(s, d) {
|
|
2286
|
-
return A.H.useLayoutEffect(s, d);
|
|
2287
|
-
}, v.useMemo = function(s, d) {
|
|
2288
|
-
return A.H.useMemo(s, d);
|
|
2289
|
-
}, v.useOptimistic = function(s, d) {
|
|
2290
|
-
return A.H.useOptimistic(s, d);
|
|
2291
|
-
}, v.useReducer = function(s, d, b) {
|
|
2292
|
-
return A.H.useReducer(s, d, b);
|
|
2293
|
-
}, v.useRef = function(s) {
|
|
2294
|
-
return A.H.useRef(s);
|
|
2295
|
-
}, v.useState = function(s) {
|
|
2296
|
-
return A.H.useState(s);
|
|
2297
|
-
}, v.useSyncExternalStore = function(s, d, b) {
|
|
2298
|
-
return A.H.useSyncExternalStore(
|
|
2299
|
-
s,
|
|
2300
|
-
d,
|
|
2301
|
-
b
|
|
2302
|
-
);
|
|
2303
|
-
}, v.useTransition = function() {
|
|
2304
|
-
return A.H.useTransition();
|
|
2305
|
-
}, v.version = "19.2.0", v;
|
|
2306
|
-
}
|
|
2307
|
-
var Ae = { exports: {} };
|
|
2308
|
-
Ae.exports;
|
|
2309
|
-
var Bt;
|
|
2310
|
-
function oo() {
|
|
2311
|
-
return Bt || (Bt = 1, (function(e, t) {
|
|
2312
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
2313
|
-
function n(r, c) {
|
|
2314
|
-
Object.defineProperty(a.prototype, r, {
|
|
2315
|
-
get: function() {
|
|
2316
|
-
console.warn(
|
|
2317
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
2318
|
-
c[0],
|
|
2319
|
-
c[1]
|
|
2320
|
-
);
|
|
2321
|
-
}
|
|
2322
|
-
});
|
|
2323
|
-
}
|
|
2324
|
-
function o(r) {
|
|
2325
|
-
return r === null || typeof r != "object" ? null : (r = ct && r[ct] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
2326
|
-
}
|
|
2327
|
-
function i(r, c) {
|
|
2328
|
-
r = (r = r.constructor) && (r.displayName || r.name) || "ReactClass";
|
|
2329
|
-
var y = r + "." + c;
|
|
2330
|
-
lt[y] || (console.error(
|
|
2331
|
-
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
2332
|
-
c,
|
|
2333
|
-
r
|
|
2334
|
-
), lt[y] = !0);
|
|
2335
|
-
}
|
|
2336
|
-
function a(r, c, y) {
|
|
2337
|
-
this.props = r, this.context = c, this.refs = Ve, this.updater = y || ft;
|
|
2338
|
-
}
|
|
2339
|
-
function u() {
|
|
2340
|
-
}
|
|
2341
|
-
function f(r, c, y) {
|
|
2342
|
-
this.props = r, this.context = c, this.refs = Ve, this.updater = y || ft;
|
|
2343
|
-
}
|
|
2344
|
-
function E() {
|
|
2345
|
-
}
|
|
2346
|
-
function h(r) {
|
|
2347
|
-
return "" + r;
|
|
2348
|
-
}
|
|
2349
|
-
function p(r) {
|
|
2350
|
-
try {
|
|
2351
|
-
h(r);
|
|
2352
|
-
var c = !1;
|
|
2353
|
-
} catch {
|
|
2354
|
-
c = !0;
|
|
2355
|
-
}
|
|
2356
|
-
if (c) {
|
|
2357
|
-
c = console;
|
|
2358
|
-
var y = c.error, w = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
2359
|
-
return y.call(
|
|
2360
|
-
c,
|
|
2361
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2362
|
-
w
|
|
2363
|
-
), h(r);
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
function R(r) {
|
|
2367
|
-
if (r == null) return null;
|
|
2368
|
-
if (typeof r == "function")
|
|
2369
|
-
return r.$$typeof === wr ? null : r.displayName || r.name || null;
|
|
2370
|
-
if (typeof r == "string") return r;
|
|
2371
|
-
switch (r) {
|
|
2372
|
-
case s:
|
|
2373
|
-
return "Fragment";
|
|
2374
|
-
case b:
|
|
2375
|
-
return "Profiler";
|
|
2376
|
-
case d:
|
|
2377
|
-
return "StrictMode";
|
|
2378
|
-
case O:
|
|
2379
|
-
return "Suspense";
|
|
2380
|
-
case J:
|
|
2381
|
-
return "SuspenseList";
|
|
2382
|
-
case ut:
|
|
2383
|
-
return "Activity";
|
|
2384
|
-
}
|
|
2385
|
-
if (typeof r == "object")
|
|
2386
|
-
switch (typeof r.tag == "number" && console.error(
|
|
2387
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
2388
|
-
), r.$$typeof) {
|
|
2389
|
-
case de:
|
|
2390
|
-
return "Portal";
|
|
2391
|
-
case C:
|
|
2392
|
-
return r.displayName || "Context";
|
|
2393
|
-
case g:
|
|
2394
|
-
return (r._context.displayName || "Context") + ".Consumer";
|
|
2395
|
-
case U:
|
|
2396
|
-
var c = r.render;
|
|
2397
|
-
return r = r.displayName, r || (r = c.displayName || c.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
2398
|
-
case z:
|
|
2399
|
-
return c = r.displayName || null, c !== null ? c : R(r.type) || "Memo";
|
|
2400
|
-
case pe:
|
|
2401
|
-
c = r._payload, r = r._init;
|
|
2402
|
-
try {
|
|
2403
|
-
return R(r(c));
|
|
2404
|
-
} catch {
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
return null;
|
|
2408
|
-
}
|
|
2409
|
-
function L(r) {
|
|
2410
|
-
if (r === s) return "<>";
|
|
2411
|
-
if (typeof r == "object" && r !== null && r.$$typeof === pe)
|
|
2412
|
-
return "<...>";
|
|
2413
|
-
try {
|
|
2414
|
-
var c = R(r);
|
|
2415
|
-
return c ? "<" + c + ">" : "<...>";
|
|
2416
|
-
} catch {
|
|
2417
|
-
return "<...>";
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
|
-
function $() {
|
|
2421
|
-
var r = N.A;
|
|
2422
|
-
return r === null ? null : r.getOwner();
|
|
2423
|
-
}
|
|
2424
|
-
function m() {
|
|
2425
|
-
return Error("react-stack-top-frame");
|
|
2426
|
-
}
|
|
2427
|
-
function S(r) {
|
|
2428
|
-
if (Ne.call(r, "key")) {
|
|
2429
|
-
var c = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
2430
|
-
if (c && c.isReactWarning) return !1;
|
|
2431
|
-
}
|
|
2432
|
-
return r.key !== void 0;
|
|
2433
|
-
}
|
|
2434
|
-
function _(r, c) {
|
|
2435
|
-
function y() {
|
|
2436
|
-
mt || (mt = !0, console.error(
|
|
2437
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
2438
|
-
c
|
|
2439
|
-
));
|
|
2440
|
-
}
|
|
2441
|
-
y.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
2442
|
-
get: y,
|
|
2443
|
-
configurable: !0
|
|
2444
|
-
});
|
|
2445
|
-
}
|
|
2446
|
-
function M() {
|
|
2447
|
-
var r = R(this.type);
|
|
2448
|
-
return Et[r] || (Et[r] = !0, console.error(
|
|
2449
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2450
|
-
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
2451
|
-
}
|
|
2452
|
-
function Y(r, c, y, w, T, j) {
|
|
2453
|
-
var P = y.ref;
|
|
2454
|
-
return r = {
|
|
2455
|
-
$$typeof: oe,
|
|
2456
|
-
type: r,
|
|
2457
|
-
key: c,
|
|
2458
|
-
props: y,
|
|
2459
|
-
_owner: w
|
|
2460
|
-
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(r, "ref", {
|
|
2461
|
-
enumerable: !1,
|
|
2462
|
-
get: M
|
|
2463
|
-
}) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
|
|
2464
|
-
configurable: !1,
|
|
2465
|
-
enumerable: !1,
|
|
2466
|
-
writable: !0,
|
|
2467
|
-
value: 0
|
|
2468
|
-
}), Object.defineProperty(r, "_debugInfo", {
|
|
2469
|
-
configurable: !1,
|
|
2470
|
-
enumerable: !1,
|
|
2471
|
-
writable: !0,
|
|
2472
|
-
value: null
|
|
2473
|
-
}), Object.defineProperty(r, "_debugStack", {
|
|
2474
|
-
configurable: !1,
|
|
2475
|
-
enumerable: !1,
|
|
2476
|
-
writable: !0,
|
|
2477
|
-
value: T
|
|
2478
|
-
}), Object.defineProperty(r, "_debugTask", {
|
|
2479
|
-
configurable: !1,
|
|
2480
|
-
enumerable: !1,
|
|
2481
|
-
writable: !0,
|
|
2482
|
-
value: j
|
|
2483
|
-
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
2484
|
-
}
|
|
2485
|
-
function q(r, c) {
|
|
2486
|
-
return c = Y(
|
|
2487
|
-
r.type,
|
|
2488
|
-
c,
|
|
2489
|
-
r.props,
|
|
2490
|
-
r._owner,
|
|
2491
|
-
r._debugStack,
|
|
2492
|
-
r._debugTask
|
|
2493
|
-
), r._store && (c._store.validated = r._store.validated), c;
|
|
2494
|
-
}
|
|
2495
|
-
function B(r) {
|
|
2496
|
-
H(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === pe && (r._payload.status === "fulfilled" ? H(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
|
|
2497
|
-
}
|
|
2498
|
-
function H(r) {
|
|
2499
|
-
return typeof r == "object" && r !== null && r.$$typeof === oe;
|
|
2500
|
-
}
|
|
2501
|
-
function Q(r) {
|
|
2502
|
-
var c = { "=": "=0", ":": "=2" };
|
|
2503
|
-
return "$" + r.replace(/[=:]/g, function(y) {
|
|
2504
|
-
return c[y];
|
|
2505
|
-
});
|
|
2506
|
-
}
|
|
2507
|
-
function A(r, c) {
|
|
2508
|
-
return typeof r == "object" && r !== null && r.key != null ? (p(r.key), Q("" + r.key)) : c.toString(36);
|
|
2509
|
-
}
|
|
2510
|
-
function ue(r) {
|
|
2511
|
-
switch (r.status) {
|
|
2512
|
-
case "fulfilled":
|
|
2513
|
-
return r.value;
|
|
2514
|
-
case "rejected":
|
|
2515
|
-
throw r.reason;
|
|
2516
|
-
default:
|
|
2517
|
-
switch (typeof r.status == "string" ? r.then(E, E) : (r.status = "pending", r.then(
|
|
2518
|
-
function(c) {
|
|
2519
|
-
r.status === "pending" && (r.status = "fulfilled", r.value = c);
|
|
2520
|
-
},
|
|
2521
|
-
function(c) {
|
|
2522
|
-
r.status === "pending" && (r.status = "rejected", r.reason = c);
|
|
2523
|
-
}
|
|
2524
|
-
)), r.status) {
|
|
2525
|
-
case "fulfilled":
|
|
2526
|
-
return r.value;
|
|
2527
|
-
case "rejected":
|
|
2528
|
-
throw r.reason;
|
|
2529
|
-
}
|
|
2530
|
-
}
|
|
2531
|
-
throw r;
|
|
2532
|
-
}
|
|
2533
|
-
function V(r, c, y, w, T) {
|
|
2534
|
-
var j = typeof r;
|
|
2535
|
-
(j === "undefined" || j === "boolean") && (r = null);
|
|
2536
|
-
var P = !1;
|
|
2537
|
-
if (r === null) P = !0;
|
|
2538
|
-
else
|
|
2539
|
-
switch (j) {
|
|
2540
|
-
case "bigint":
|
|
2541
|
-
case "string":
|
|
2542
|
-
case "number":
|
|
2543
|
-
P = !0;
|
|
2544
|
-
break;
|
|
2545
|
-
case "object":
|
|
2546
|
-
switch (r.$$typeof) {
|
|
2547
|
-
case oe:
|
|
2548
|
-
case de:
|
|
2549
|
-
P = !0;
|
|
2550
|
-
break;
|
|
2551
|
-
case pe:
|
|
2552
|
-
return P = r._init, V(
|
|
2553
|
-
P(r._payload),
|
|
2554
|
-
c,
|
|
2555
|
-
y,
|
|
2556
|
-
w,
|
|
2557
|
-
T
|
|
2558
|
-
);
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
if (P) {
|
|
2562
|
-
P = r, T = T(P);
|
|
2563
|
-
var F = w === "" ? "." + A(P, 0) : w;
|
|
2564
|
-
return pt(T) ? (y = "", F != null && (y = F.replace(bt, "$&/") + "/"), V(T, c, y, "", function(he) {
|
|
2565
|
-
return he;
|
|
2566
|
-
})) : T != null && (H(T) && (T.key != null && (P && P.key === T.key || p(T.key)), y = q(
|
|
2567
|
-
T,
|
|
2568
|
-
y + (T.key == null || P && P.key === T.key ? "" : ("" + T.key).replace(
|
|
2569
|
-
bt,
|
|
2570
|
-
"$&/"
|
|
2571
|
-
) + "/") + F
|
|
2572
|
-
), w !== "" && P != null && H(P) && P.key == null && P._store && !P._store.validated && (y._store.validated = 2), T = y), c.push(T)), 1;
|
|
2573
|
-
}
|
|
2574
|
-
if (P = 0, F = w === "" ? "." : w + ":", pt(r))
|
|
2575
|
-
for (var x = 0; x < r.length; x++)
|
|
2576
|
-
w = r[x], j = F + A(w, x), P += V(
|
|
2577
|
-
w,
|
|
2578
|
-
c,
|
|
2579
|
-
y,
|
|
2580
|
-
j,
|
|
2581
|
-
T
|
|
2582
|
-
);
|
|
2583
|
-
else if (x = o(r), typeof x == "function")
|
|
2584
|
-
for (x === r.entries && (wt || console.warn(
|
|
2585
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
2586
|
-
), wt = !0), r = x.call(r), x = 0; !(w = r.next()).done; )
|
|
2587
|
-
w = w.value, j = F + A(w, x++), P += V(
|
|
2588
|
-
w,
|
|
2589
|
-
c,
|
|
2590
|
-
y,
|
|
2591
|
-
j,
|
|
2592
|
-
T
|
|
2593
|
-
);
|
|
2594
|
-
else if (j === "object") {
|
|
2595
|
-
if (typeof r.then == "function")
|
|
2596
|
-
return V(
|
|
2597
|
-
ue(r),
|
|
2598
|
-
c,
|
|
2599
|
-
y,
|
|
2600
|
-
w,
|
|
2601
|
-
T
|
|
2602
|
-
);
|
|
2603
|
-
throw c = String(r), Error(
|
|
2604
|
-
"Objects are not valid as a React child (found: " + (c === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : c) + "). If you meant to render a collection of children, use an array instead."
|
|
2605
|
-
);
|
|
2606
|
-
}
|
|
2607
|
-
return P;
|
|
2608
|
-
}
|
|
2609
|
-
function ie(r, c, y) {
|
|
2610
|
-
if (r == null) return r;
|
|
2611
|
-
var w = [], T = 0;
|
|
2612
|
-
return V(r, w, "", "", function(j) {
|
|
2613
|
-
return c.call(y, j, T++);
|
|
2614
|
-
}), w;
|
|
2615
|
-
}
|
|
2616
|
-
function ce(r) {
|
|
2617
|
-
if (r._status === -1) {
|
|
2618
|
-
var c = r._ioInfo;
|
|
2619
|
-
c != null && (c.start = c.end = performance.now()), c = r._result;
|
|
2620
|
-
var y = c();
|
|
2621
|
-
if (y.then(
|
|
2622
|
-
function(T) {
|
|
2623
|
-
if (r._status === 0 || r._status === -1) {
|
|
2624
|
-
r._status = 1, r._result = T;
|
|
2625
|
-
var j = r._ioInfo;
|
|
2626
|
-
j != null && (j.end = performance.now()), y.status === void 0 && (y.status = "fulfilled", y.value = T);
|
|
2627
|
-
}
|
|
2628
|
-
},
|
|
2629
|
-
function(T) {
|
|
2630
|
-
if (r._status === 0 || r._status === -1) {
|
|
2631
|
-
r._status = 2, r._result = T;
|
|
2632
|
-
var j = r._ioInfo;
|
|
2633
|
-
j != null && (j.end = performance.now()), y.status === void 0 && (y.status = "rejected", y.reason = T);
|
|
2634
|
-
}
|
|
2635
|
-
}
|
|
2636
|
-
), c = r._ioInfo, c != null) {
|
|
2637
|
-
c.value = y;
|
|
2638
|
-
var w = y.displayName;
|
|
2639
|
-
typeof w == "string" && (c.name = w);
|
|
2640
|
-
}
|
|
2641
|
-
r._status === -1 && (r._status = 0, r._result = y);
|
|
2642
|
-
}
|
|
2643
|
-
if (r._status === 1)
|
|
2644
|
-
return c = r._result, c === void 0 && console.error(
|
|
2645
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2646
|
-
|
|
2647
|
-
Your code should look like:
|
|
2648
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
2649
|
-
|
|
2650
|
-
Did you accidentally put curly braces around the import?`,
|
|
2651
|
-
c
|
|
2652
|
-
), "default" in c || console.error(
|
|
2653
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2654
|
-
|
|
2655
|
-
Your code should look like:
|
|
2656
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
2657
|
-
c
|
|
2658
|
-
), c.default;
|
|
2659
|
-
throw r._result;
|
|
2660
|
-
}
|
|
2661
|
-
function D() {
|
|
2662
|
-
var r = N.H;
|
|
2663
|
-
return r === null && console.error(
|
|
2664
|
-
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2665
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2666
|
-
2. You might be breaking the Rules of Hooks
|
|
2667
|
-
3. You might have more than one copy of React in the same app
|
|
2668
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
2669
|
-
), r;
|
|
2670
|
-
}
|
|
2671
|
-
function Z() {
|
|
2672
|
-
N.asyncTransitions--;
|
|
2673
|
-
}
|
|
2674
|
-
function K(r) {
|
|
2675
|
-
if (je === null)
|
|
2676
|
-
try {
|
|
2677
|
-
var c = ("require" + Math.random()).slice(0, 7);
|
|
2678
|
-
je = (e && e[c]).call(
|
|
2679
|
-
e,
|
|
2680
|
-
"timers"
|
|
2681
|
-
).setImmediate;
|
|
2682
|
-
} catch {
|
|
2683
|
-
je = function(w) {
|
|
2684
|
-
_t === !1 && (_t = !0, typeof MessageChannel > "u" && console.error(
|
|
2685
|
-
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
2686
|
-
));
|
|
2687
|
-
var T = new MessageChannel();
|
|
2688
|
-
T.port1.onmessage = w, T.port2.postMessage(void 0);
|
|
2689
|
-
};
|
|
2690
|
-
}
|
|
2691
|
-
return je(r);
|
|
2692
|
-
}
|
|
2693
|
-
function ee(r) {
|
|
2694
|
-
return 1 < r.length && typeof AggregateError == "function" ? new AggregateError(r) : r[0];
|
|
2695
|
-
}
|
|
2696
|
-
function I(r, c) {
|
|
2697
|
-
c !== xe - 1 && console.error(
|
|
2698
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
2699
|
-
), xe = c;
|
|
2700
|
-
}
|
|
2701
|
-
function te(r, c, y) {
|
|
2702
|
-
var w = N.actQueue;
|
|
2703
|
-
if (w !== null)
|
|
2704
|
-
if (w.length !== 0)
|
|
2705
|
-
try {
|
|
2706
|
-
G(w), K(function() {
|
|
2707
|
-
return te(r, c, y);
|
|
2708
|
-
});
|
|
2709
|
-
return;
|
|
2710
|
-
} catch (T) {
|
|
2711
|
-
N.thrownErrors.push(T);
|
|
2712
|
-
}
|
|
2713
|
-
else N.actQueue = null;
|
|
2714
|
-
0 < N.thrownErrors.length ? (w = ee(N.thrownErrors), N.thrownErrors.length = 0, y(w)) : c(r);
|
|
2715
|
-
}
|
|
2716
|
-
function G(r) {
|
|
2717
|
-
if (!Je) {
|
|
2718
|
-
Je = !0;
|
|
2719
|
-
var c = 0;
|
|
2720
|
-
try {
|
|
2721
|
-
for (; c < r.length; c++) {
|
|
2722
|
-
var y = r[c];
|
|
2723
|
-
do {
|
|
2724
|
-
N.didUsePromise = !1;
|
|
2725
|
-
var w = y(!1);
|
|
2726
|
-
if (w !== null) {
|
|
2727
|
-
if (N.didUsePromise) {
|
|
2728
|
-
r[c] = y, r.splice(0, c);
|
|
2729
|
-
return;
|
|
2730
|
-
}
|
|
2731
|
-
y = w;
|
|
2732
|
-
} else break;
|
|
2733
|
-
} while (!0);
|
|
2734
|
-
}
|
|
2735
|
-
r.length = 0;
|
|
2736
|
-
} catch (T) {
|
|
2737
|
-
r.splice(0, c + 1), N.thrownErrors.push(T);
|
|
2738
|
-
} finally {
|
|
2739
|
-
Je = !1;
|
|
2740
|
-
}
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2744
|
-
var oe = /* @__PURE__ */ Symbol.for("react.transitional.element"), de = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), J = /* @__PURE__ */ Symbol.for("react.suspense_list"), z = /* @__PURE__ */ Symbol.for("react.memo"), pe = /* @__PURE__ */ Symbol.for("react.lazy"), ut = /* @__PURE__ */ Symbol.for("react.activity"), ct = Symbol.iterator, lt = {}, ft = {
|
|
2745
|
-
isMounted: function() {
|
|
2746
|
-
return !1;
|
|
2747
|
-
},
|
|
2748
|
-
enqueueForceUpdate: function(r) {
|
|
2749
|
-
i(r, "forceUpdate");
|
|
2750
|
-
},
|
|
2751
|
-
enqueueReplaceState: function(r) {
|
|
2752
|
-
i(r, "replaceState");
|
|
2753
|
-
},
|
|
2754
|
-
enqueueSetState: function(r) {
|
|
2755
|
-
i(r, "setState");
|
|
2756
|
-
}
|
|
2757
|
-
}, dt = Object.assign, Ve = {};
|
|
2758
|
-
Object.freeze(Ve), a.prototype.isReactComponent = {}, a.prototype.setState = function(r, c) {
|
|
2759
|
-
if (typeof r != "object" && typeof r != "function" && r != null)
|
|
2760
|
-
throw Error(
|
|
2761
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
2762
|
-
);
|
|
2763
|
-
this.updater.enqueueSetState(this, r, c, "setState");
|
|
2764
|
-
}, a.prototype.forceUpdate = function(r) {
|
|
2765
|
-
this.updater.enqueueForceUpdate(this, r, "forceUpdate");
|
|
2766
|
-
};
|
|
2767
|
-
var se = {
|
|
2768
|
-
isMounted: [
|
|
2769
|
-
"isMounted",
|
|
2770
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
2771
|
-
],
|
|
2772
|
-
replaceState: [
|
|
2773
|
-
"replaceState",
|
|
2774
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
2775
|
-
]
|
|
2776
|
-
};
|
|
2777
|
-
for (Re in se)
|
|
2778
|
-
se.hasOwnProperty(Re) && n(Re, se[Re]);
|
|
2779
|
-
u.prototype = a.prototype, se = f.prototype = new u(), se.constructor = f, dt(se, a.prototype), se.isPureReactComponent = !0;
|
|
2780
|
-
var pt = Array.isArray, wr = /* @__PURE__ */ Symbol.for("react.client.reference"), N = {
|
|
2781
|
-
H: null,
|
|
2782
|
-
A: null,
|
|
2783
|
-
T: null,
|
|
2784
|
-
S: null,
|
|
2785
|
-
actQueue: null,
|
|
2786
|
-
asyncTransitions: 0,
|
|
2787
|
-
isBatchingLegacy: !1,
|
|
2788
|
-
didScheduleLegacyUpdate: !1,
|
|
2789
|
-
didUsePromise: !1,
|
|
2790
|
-
thrownErrors: [],
|
|
2791
|
-
getCurrentStack: null,
|
|
2792
|
-
recentlyCreatedOwnerStacks: 0
|
|
2793
|
-
}, Ne = Object.prototype.hasOwnProperty, ht = console.createTask ? console.createTask : function() {
|
|
2794
|
-
return null;
|
|
2795
|
-
};
|
|
2796
|
-
se = {
|
|
2797
|
-
react_stack_bottom_frame: function(r) {
|
|
2798
|
-
return r();
|
|
2799
|
-
}
|
|
2800
|
-
};
|
|
2801
|
-
var mt, yt, Et = {}, br = se.react_stack_bottom_frame.bind(
|
|
2802
|
-
se,
|
|
2803
|
-
m
|
|
2804
|
-
)(), gr = ht(L(m)), wt = !1, bt = /\/+/g, gt = typeof reportError == "function" ? reportError : function(r) {
|
|
2805
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
2806
|
-
var c = new window.ErrorEvent("error", {
|
|
2807
|
-
bubbles: !0,
|
|
2808
|
-
cancelable: !0,
|
|
2809
|
-
message: typeof r == "object" && r !== null && typeof r.message == "string" ? String(r.message) : String(r),
|
|
2810
|
-
error: r
|
|
2811
|
-
});
|
|
2812
|
-
if (!window.dispatchEvent(c)) return;
|
|
2813
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
2814
|
-
process.emit("uncaughtException", r);
|
|
2815
|
-
return;
|
|
2816
|
-
}
|
|
2817
|
-
console.error(r);
|
|
2818
|
-
}, _t = !1, je = null, xe = 0, Le = !1, Je = !1, Rt = typeof queueMicrotask == "function" ? function(r) {
|
|
2819
|
-
queueMicrotask(function() {
|
|
2820
|
-
return queueMicrotask(r);
|
|
2821
|
-
});
|
|
2822
|
-
} : K;
|
|
2823
|
-
se = Object.freeze({
|
|
2824
|
-
__proto__: null,
|
|
2825
|
-
c: function(r) {
|
|
2826
|
-
return D().useMemoCache(r);
|
|
2827
|
-
}
|
|
2828
|
-
});
|
|
2829
|
-
var Re = {
|
|
2830
|
-
map: ie,
|
|
2831
|
-
forEach: function(r, c, y) {
|
|
2832
|
-
ie(
|
|
2833
|
-
r,
|
|
2834
|
-
function() {
|
|
2835
|
-
c.apply(this, arguments);
|
|
2836
|
-
},
|
|
2837
|
-
y
|
|
2838
|
-
);
|
|
2839
|
-
},
|
|
2840
|
-
count: function(r) {
|
|
2841
|
-
var c = 0;
|
|
2842
|
-
return ie(r, function() {
|
|
2843
|
-
c++;
|
|
2844
|
-
}), c;
|
|
2845
|
-
},
|
|
2846
|
-
toArray: function(r) {
|
|
2847
|
-
return ie(r, function(c) {
|
|
2848
|
-
return c;
|
|
2849
|
-
}) || [];
|
|
2850
|
-
},
|
|
2851
|
-
only: function(r) {
|
|
2852
|
-
if (!H(r))
|
|
2853
|
-
throw Error(
|
|
2854
|
-
"React.Children.only expected to receive a single React element child."
|
|
2855
|
-
);
|
|
2856
|
-
return r;
|
|
2857
|
-
}
|
|
2858
|
-
};
|
|
2859
|
-
t.Activity = ut, t.Children = Re, t.Component = a, t.Fragment = s, t.Profiler = b, t.PureComponent = f, t.StrictMode = d, t.Suspense = O, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = N, t.__COMPILER_RUNTIME = se, t.act = function(r) {
|
|
2860
|
-
var c = N.actQueue, y = xe;
|
|
2861
|
-
xe++;
|
|
2862
|
-
var w = N.actQueue = c !== null ? c : [], T = !1;
|
|
2863
|
-
try {
|
|
2864
|
-
var j = r();
|
|
2865
|
-
} catch (x) {
|
|
2866
|
-
N.thrownErrors.push(x);
|
|
2867
|
-
}
|
|
2868
|
-
if (0 < N.thrownErrors.length)
|
|
2869
|
-
throw I(c, y), r = ee(N.thrownErrors), N.thrownErrors.length = 0, r;
|
|
2870
|
-
if (j !== null && typeof j == "object" && typeof j.then == "function") {
|
|
2871
|
-
var P = j;
|
|
2872
|
-
return Rt(function() {
|
|
2873
|
-
T || Le || (Le = !0, console.error(
|
|
2874
|
-
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
2875
|
-
));
|
|
2876
|
-
}), {
|
|
2877
|
-
then: function(x, he) {
|
|
2878
|
-
T = !0, P.then(
|
|
2879
|
-
function(we) {
|
|
2880
|
-
if (I(c, y), y === 0) {
|
|
2881
|
-
try {
|
|
2882
|
-
G(w), K(function() {
|
|
2883
|
-
return te(
|
|
2884
|
-
we,
|
|
2885
|
-
x,
|
|
2886
|
-
he
|
|
2887
|
-
);
|
|
2888
|
-
});
|
|
2889
|
-
} catch (Rr) {
|
|
2890
|
-
N.thrownErrors.push(Rr);
|
|
2891
|
-
}
|
|
2892
|
-
if (0 < N.thrownErrors.length) {
|
|
2893
|
-
var _r = ee(
|
|
2894
|
-
N.thrownErrors
|
|
2895
|
-
);
|
|
2896
|
-
N.thrownErrors.length = 0, he(_r);
|
|
2897
|
-
}
|
|
2898
|
-
} else x(we);
|
|
2899
|
-
},
|
|
2900
|
-
function(we) {
|
|
2901
|
-
I(c, y), 0 < N.thrownErrors.length && (we = ee(
|
|
2902
|
-
N.thrownErrors
|
|
2903
|
-
), N.thrownErrors.length = 0), he(we);
|
|
2904
|
-
}
|
|
2905
|
-
);
|
|
2906
|
-
}
|
|
2907
|
-
};
|
|
2908
|
-
}
|
|
2909
|
-
var F = j;
|
|
2910
|
-
if (I(c, y), y === 0 && (G(w), w.length !== 0 && Rt(function() {
|
|
2911
|
-
T || Le || (Le = !0, console.error(
|
|
2912
|
-
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
2913
|
-
));
|
|
2914
|
-
}), N.actQueue = null), 0 < N.thrownErrors.length)
|
|
2915
|
-
throw r = ee(N.thrownErrors), N.thrownErrors.length = 0, r;
|
|
2916
|
-
return {
|
|
2917
|
-
then: function(x, he) {
|
|
2918
|
-
T = !0, y === 0 ? (N.actQueue = w, K(function() {
|
|
2919
|
-
return te(
|
|
2920
|
-
F,
|
|
2921
|
-
x,
|
|
2922
|
-
he
|
|
2923
|
-
);
|
|
2924
|
-
})) : x(F);
|
|
2925
|
-
}
|
|
2926
|
-
};
|
|
2927
|
-
}, t.cache = function(r) {
|
|
2928
|
-
return function() {
|
|
2929
|
-
return r.apply(null, arguments);
|
|
2930
|
-
};
|
|
2931
|
-
}, t.cacheSignal = function() {
|
|
2932
|
-
return null;
|
|
2933
|
-
}, t.captureOwnerStack = function() {
|
|
2934
|
-
var r = N.getCurrentStack;
|
|
2935
|
-
return r === null ? null : r();
|
|
2936
|
-
}, t.cloneElement = function(r, c, y) {
|
|
2937
|
-
if (r == null)
|
|
2938
|
-
throw Error(
|
|
2939
|
-
"The argument must be a React element, but you passed " + r + "."
|
|
2940
|
-
);
|
|
2941
|
-
var w = dt({}, r.props), T = r.key, j = r._owner;
|
|
2942
|
-
if (c != null) {
|
|
2943
|
-
var P;
|
|
2944
|
-
e: {
|
|
2945
|
-
if (Ne.call(c, "ref") && (P = Object.getOwnPropertyDescriptor(
|
|
2946
|
-
c,
|
|
2947
|
-
"ref"
|
|
2948
|
-
).get) && P.isReactWarning) {
|
|
2949
|
-
P = !1;
|
|
2950
|
-
break e;
|
|
2951
|
-
}
|
|
2952
|
-
P = c.ref !== void 0;
|
|
2953
|
-
}
|
|
2954
|
-
P && (j = $()), S(c) && (p(c.key), T = "" + c.key);
|
|
2955
|
-
for (F in c)
|
|
2956
|
-
!Ne.call(c, F) || F === "key" || F === "__self" || F === "__source" || F === "ref" && c.ref === void 0 || (w[F] = c[F]);
|
|
2957
|
-
}
|
|
2958
|
-
var F = arguments.length - 2;
|
|
2959
|
-
if (F === 1) w.children = y;
|
|
2960
|
-
else if (1 < F) {
|
|
2961
|
-
P = Array(F);
|
|
2962
|
-
for (var x = 0; x < F; x++)
|
|
2963
|
-
P[x] = arguments[x + 2];
|
|
2964
|
-
w.children = P;
|
|
2965
|
-
}
|
|
2966
|
-
for (w = Y(
|
|
2967
|
-
r.type,
|
|
2968
|
-
T,
|
|
2969
|
-
w,
|
|
2970
|
-
j,
|
|
2971
|
-
r._debugStack,
|
|
2972
|
-
r._debugTask
|
|
2973
|
-
), T = 2; T < arguments.length; T++)
|
|
2974
|
-
B(arguments[T]);
|
|
2975
|
-
return w;
|
|
2976
|
-
}, t.createContext = function(r) {
|
|
2977
|
-
return r = {
|
|
2978
|
-
$$typeof: C,
|
|
2979
|
-
_currentValue: r,
|
|
2980
|
-
_currentValue2: r,
|
|
2981
|
-
_threadCount: 0,
|
|
2982
|
-
Provider: null,
|
|
2983
|
-
Consumer: null
|
|
2984
|
-
}, r.Provider = r, r.Consumer = {
|
|
2985
|
-
$$typeof: g,
|
|
2986
|
-
_context: r
|
|
2987
|
-
}, r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
2988
|
-
}, t.createElement = function(r, c, y) {
|
|
2989
|
-
for (var w = 2; w < arguments.length; w++)
|
|
2990
|
-
B(arguments[w]);
|
|
2991
|
-
w = {};
|
|
2992
|
-
var T = null;
|
|
2993
|
-
if (c != null)
|
|
2994
|
-
for (x in yt || !("__self" in c) || "key" in c || (yt = !0, console.warn(
|
|
2995
|
-
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
2996
|
-
)), S(c) && (p(c.key), T = "" + c.key), c)
|
|
2997
|
-
Ne.call(c, x) && x !== "key" && x !== "__self" && x !== "__source" && (w[x] = c[x]);
|
|
2998
|
-
var j = arguments.length - 2;
|
|
2999
|
-
if (j === 1) w.children = y;
|
|
3000
|
-
else if (1 < j) {
|
|
3001
|
-
for (var P = Array(j), F = 0; F < j; F++)
|
|
3002
|
-
P[F] = arguments[F + 2];
|
|
3003
|
-
Object.freeze && Object.freeze(P), w.children = P;
|
|
3004
|
-
}
|
|
3005
|
-
if (r && r.defaultProps)
|
|
3006
|
-
for (x in j = r.defaultProps, j)
|
|
3007
|
-
w[x] === void 0 && (w[x] = j[x]);
|
|
3008
|
-
T && _(
|
|
3009
|
-
w,
|
|
3010
|
-
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
3011
|
-
);
|
|
3012
|
-
var x = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
3013
|
-
return Y(
|
|
3014
|
-
r,
|
|
3015
|
-
T,
|
|
3016
|
-
w,
|
|
3017
|
-
$(),
|
|
3018
|
-
x ? Error("react-stack-top-frame") : br,
|
|
3019
|
-
x ? ht(L(r)) : gr
|
|
3020
|
-
);
|
|
3021
|
-
}, t.createRef = function() {
|
|
3022
|
-
var r = { current: null };
|
|
3023
|
-
return Object.seal(r), r;
|
|
3024
|
-
}, t.forwardRef = function(r) {
|
|
3025
|
-
r != null && r.$$typeof === z ? console.error(
|
|
3026
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
3027
|
-
) : typeof r != "function" ? console.error(
|
|
3028
|
-
"forwardRef requires a render function but was given %s.",
|
|
3029
|
-
r === null ? "null" : typeof r
|
|
3030
|
-
) : r.length !== 0 && r.length !== 2 && console.error(
|
|
3031
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
3032
|
-
r.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
3033
|
-
), r != null && r.defaultProps != null && console.error(
|
|
3034
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
3035
|
-
);
|
|
3036
|
-
var c = { $$typeof: U, render: r }, y;
|
|
3037
|
-
return Object.defineProperty(c, "displayName", {
|
|
3038
|
-
enumerable: !1,
|
|
3039
|
-
configurable: !0,
|
|
3040
|
-
get: function() {
|
|
3041
|
-
return y;
|
|
3042
|
-
},
|
|
3043
|
-
set: function(w) {
|
|
3044
|
-
y = w, r.name || r.displayName || (Object.defineProperty(r, "name", { value: w }), r.displayName = w);
|
|
3045
|
-
}
|
|
3046
|
-
}), c;
|
|
3047
|
-
}, t.isValidElement = H, t.lazy = function(r) {
|
|
3048
|
-
r = { _status: -1, _result: r };
|
|
3049
|
-
var c = {
|
|
3050
|
-
$$typeof: pe,
|
|
3051
|
-
_payload: r,
|
|
3052
|
-
_init: ce
|
|
3053
|
-
}, y = {
|
|
3054
|
-
name: "lazy",
|
|
3055
|
-
start: -1,
|
|
3056
|
-
end: -1,
|
|
3057
|
-
value: null,
|
|
3058
|
-
owner: null,
|
|
3059
|
-
debugStack: Error("react-stack-top-frame"),
|
|
3060
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
3061
|
-
};
|
|
3062
|
-
return r._ioInfo = y, c._debugInfo = [{ awaited: y }], c;
|
|
3063
|
-
}, t.memo = function(r, c) {
|
|
3064
|
-
r == null && console.error(
|
|
3065
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
3066
|
-
r === null ? "null" : typeof r
|
|
3067
|
-
), c = {
|
|
3068
|
-
$$typeof: z,
|
|
3069
|
-
type: r,
|
|
3070
|
-
compare: c === void 0 ? null : c
|
|
3071
|
-
};
|
|
3072
|
-
var y;
|
|
3073
|
-
return Object.defineProperty(c, "displayName", {
|
|
3074
|
-
enumerable: !1,
|
|
3075
|
-
configurable: !0,
|
|
3076
|
-
get: function() {
|
|
3077
|
-
return y;
|
|
3078
|
-
},
|
|
3079
|
-
set: function(w) {
|
|
3080
|
-
y = w, r.name || r.displayName || (Object.defineProperty(r, "name", { value: w }), r.displayName = w);
|
|
3081
|
-
}
|
|
3082
|
-
}), c;
|
|
3083
|
-
}, t.startTransition = function(r) {
|
|
3084
|
-
var c = N.T, y = {};
|
|
3085
|
-
y._updatedFibers = /* @__PURE__ */ new Set(), N.T = y;
|
|
3086
|
-
try {
|
|
3087
|
-
var w = r(), T = N.S;
|
|
3088
|
-
T !== null && T(y, w), typeof w == "object" && w !== null && typeof w.then == "function" && (N.asyncTransitions++, w.then(Z, Z), w.then(E, gt));
|
|
3089
|
-
} catch (j) {
|
|
3090
|
-
gt(j);
|
|
3091
|
-
} finally {
|
|
3092
|
-
c === null && y._updatedFibers && (r = y._updatedFibers.size, y._updatedFibers.clear(), 10 < r && console.warn(
|
|
3093
|
-
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
3094
|
-
)), c !== null && y.types !== null && (c.types !== null && c.types !== y.types && console.error(
|
|
3095
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
3096
|
-
), c.types = y.types), N.T = c;
|
|
3097
|
-
}
|
|
3098
|
-
}, t.unstable_useCacheRefresh = function() {
|
|
3099
|
-
return D().useCacheRefresh();
|
|
3100
|
-
}, t.use = function(r) {
|
|
3101
|
-
return D().use(r);
|
|
3102
|
-
}, t.useActionState = function(r, c, y) {
|
|
3103
|
-
return D().useActionState(
|
|
3104
|
-
r,
|
|
3105
|
-
c,
|
|
3106
|
-
y
|
|
3107
|
-
);
|
|
3108
|
-
}, t.useCallback = function(r, c) {
|
|
3109
|
-
return D().useCallback(r, c);
|
|
3110
|
-
}, t.useContext = function(r) {
|
|
3111
|
-
var c = D();
|
|
3112
|
-
return r.$$typeof === g && console.error(
|
|
3113
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
3114
|
-
), c.useContext(r);
|
|
3115
|
-
}, t.useDebugValue = function(r, c) {
|
|
3116
|
-
return D().useDebugValue(r, c);
|
|
3117
|
-
}, t.useDeferredValue = function(r, c) {
|
|
3118
|
-
return D().useDeferredValue(r, c);
|
|
3119
|
-
}, t.useEffect = function(r, c) {
|
|
3120
|
-
return r == null && console.warn(
|
|
3121
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3122
|
-
), D().useEffect(r, c);
|
|
3123
|
-
}, t.useEffectEvent = function(r) {
|
|
3124
|
-
return D().useEffectEvent(r);
|
|
3125
|
-
}, t.useId = function() {
|
|
3126
|
-
return D().useId();
|
|
3127
|
-
}, t.useImperativeHandle = function(r, c, y) {
|
|
3128
|
-
return D().useImperativeHandle(r, c, y);
|
|
3129
|
-
}, t.useInsertionEffect = function(r, c) {
|
|
3130
|
-
return r == null && console.warn(
|
|
3131
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3132
|
-
), D().useInsertionEffect(r, c);
|
|
3133
|
-
}, t.useLayoutEffect = function(r, c) {
|
|
3134
|
-
return r == null && console.warn(
|
|
3135
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
3136
|
-
), D().useLayoutEffect(r, c);
|
|
3137
|
-
}, t.useMemo = function(r, c) {
|
|
3138
|
-
return D().useMemo(r, c);
|
|
3139
|
-
}, t.useOptimistic = function(r, c) {
|
|
3140
|
-
return D().useOptimistic(r, c);
|
|
3141
|
-
}, t.useReducer = function(r, c, y) {
|
|
3142
|
-
return D().useReducer(r, c, y);
|
|
3143
|
-
}, t.useRef = function(r) {
|
|
3144
|
-
return D().useRef(r);
|
|
3145
|
-
}, t.useState = function(r) {
|
|
3146
|
-
return D().useState(r);
|
|
3147
|
-
}, t.useSyncExternalStore = function(r, c, y) {
|
|
3148
|
-
return D().useSyncExternalStore(
|
|
3149
|
-
r,
|
|
3150
|
-
c,
|
|
3151
|
-
y
|
|
3152
|
-
);
|
|
3153
|
-
}, t.useTransition = function() {
|
|
3154
|
-
return D().useTransition();
|
|
3155
|
-
}, t.version = "19.2.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3156
|
-
})();
|
|
3157
|
-
})(Ae, Ae.exports)), Ae.exports;
|
|
3158
|
-
}
|
|
3159
|
-
var Ht;
|
|
3160
|
-
function Er() {
|
|
3161
|
-
return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? Me.exports = no() : Me.exports = oo()), Me.exports;
|
|
3162
|
-
}
|
|
3163
|
-
var zt;
|
|
3164
|
-
function so() {
|
|
3165
|
-
return zt || (zt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3166
|
-
function e(s) {
|
|
3167
|
-
if (s == null) return null;
|
|
3168
|
-
if (typeof s == "function")
|
|
3169
|
-
return s.$$typeof === ce ? null : s.displayName || s.name || null;
|
|
3170
|
-
if (typeof s == "string") return s;
|
|
3171
|
-
switch (s) {
|
|
3172
|
-
case _:
|
|
3173
|
-
return "Fragment";
|
|
3174
|
-
case Y:
|
|
3175
|
-
return "Profiler";
|
|
3176
|
-
case M:
|
|
3177
|
-
return "StrictMode";
|
|
3178
|
-
case Q:
|
|
3179
|
-
return "Suspense";
|
|
3180
|
-
case A:
|
|
3181
|
-
return "SuspenseList";
|
|
3182
|
-
case ie:
|
|
3183
|
-
return "Activity";
|
|
3184
|
-
}
|
|
3185
|
-
if (typeof s == "object")
|
|
3186
|
-
switch (typeof s.tag == "number" && console.error(
|
|
3187
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
3188
|
-
), s.$$typeof) {
|
|
3189
|
-
case S:
|
|
3190
|
-
return "Portal";
|
|
3191
|
-
case B:
|
|
3192
|
-
return s.displayName || "Context";
|
|
3193
|
-
case q:
|
|
3194
|
-
return (s._context.displayName || "Context") + ".Consumer";
|
|
3195
|
-
case H:
|
|
3196
|
-
var d = s.render;
|
|
3197
|
-
return s = s.displayName, s || (s = d.displayName || d.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
3198
|
-
case ue:
|
|
3199
|
-
return d = s.displayName || null, d !== null ? d : e(s.type) || "Memo";
|
|
3200
|
-
case V:
|
|
3201
|
-
d = s._payload, s = s._init;
|
|
3202
|
-
try {
|
|
3203
|
-
return e(s(d));
|
|
3204
|
-
} catch {
|
|
3205
|
-
}
|
|
3206
|
-
}
|
|
3207
|
-
return null;
|
|
3208
|
-
}
|
|
3209
|
-
function t(s) {
|
|
3210
|
-
return "" + s;
|
|
3211
|
-
}
|
|
3212
|
-
function n(s) {
|
|
3213
|
-
try {
|
|
3214
|
-
t(s);
|
|
3215
|
-
var d = !1;
|
|
3216
|
-
} catch {
|
|
3217
|
-
d = !0;
|
|
3218
|
-
}
|
|
3219
|
-
if (d) {
|
|
3220
|
-
d = console;
|
|
3221
|
-
var b = d.error, g = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
3222
|
-
return b.call(
|
|
3223
|
-
d,
|
|
3224
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
3225
|
-
g
|
|
3226
|
-
), t(s);
|
|
3227
|
-
}
|
|
3228
|
-
}
|
|
3229
|
-
function o(s) {
|
|
3230
|
-
if (s === _) return "<>";
|
|
3231
|
-
if (typeof s == "object" && s !== null && s.$$typeof === V)
|
|
3232
|
-
return "<...>";
|
|
3233
|
-
try {
|
|
3234
|
-
var d = e(s);
|
|
3235
|
-
return d ? "<" + d + ">" : "<...>";
|
|
3236
|
-
} catch {
|
|
3237
|
-
return "<...>";
|
|
3238
|
-
}
|
|
3239
|
-
}
|
|
3240
|
-
function i() {
|
|
3241
|
-
var s = D.A;
|
|
3242
|
-
return s === null ? null : s.getOwner();
|
|
3243
|
-
}
|
|
3244
|
-
function a() {
|
|
3245
|
-
return Error("react-stack-top-frame");
|
|
3246
|
-
}
|
|
3247
|
-
function u(s) {
|
|
3248
|
-
if (Z.call(s, "key")) {
|
|
3249
|
-
var d = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
3250
|
-
if (d && d.isReactWarning) return !1;
|
|
3251
|
-
}
|
|
3252
|
-
return s.key !== void 0;
|
|
3253
|
-
}
|
|
3254
|
-
function f(s, d) {
|
|
3255
|
-
function b() {
|
|
3256
|
-
I || (I = !0, console.error(
|
|
3257
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
3258
|
-
d
|
|
3259
|
-
));
|
|
3260
|
-
}
|
|
3261
|
-
b.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
3262
|
-
get: b,
|
|
3263
|
-
configurable: !0
|
|
3264
|
-
});
|
|
3265
|
-
}
|
|
3266
|
-
function E() {
|
|
3267
|
-
var s = e(this.type);
|
|
3268
|
-
return te[s] || (te[s] = !0, console.error(
|
|
3269
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
3270
|
-
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
3271
|
-
}
|
|
3272
|
-
function h(s, d, b, g, C, U) {
|
|
3273
|
-
var O = b.ref;
|
|
3274
|
-
return s = {
|
|
3275
|
-
$$typeof: m,
|
|
3276
|
-
type: s,
|
|
3277
|
-
key: d,
|
|
3278
|
-
props: b,
|
|
3279
|
-
_owner: g
|
|
3280
|
-
}, (O !== void 0 ? O : null) !== null ? Object.defineProperty(s, "ref", {
|
|
3281
|
-
enumerable: !1,
|
|
3282
|
-
get: E
|
|
3283
|
-
}) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
3284
|
-
configurable: !1,
|
|
3285
|
-
enumerable: !1,
|
|
3286
|
-
writable: !0,
|
|
3287
|
-
value: 0
|
|
3288
|
-
}), Object.defineProperty(s, "_debugInfo", {
|
|
3289
|
-
configurable: !1,
|
|
3290
|
-
enumerable: !1,
|
|
3291
|
-
writable: !0,
|
|
3292
|
-
value: null
|
|
3293
|
-
}), Object.defineProperty(s, "_debugStack", {
|
|
3294
|
-
configurable: !1,
|
|
3295
|
-
enumerable: !1,
|
|
3296
|
-
writable: !0,
|
|
3297
|
-
value: C
|
|
3298
|
-
}), Object.defineProperty(s, "_debugTask", {
|
|
3299
|
-
configurable: !1,
|
|
3300
|
-
enumerable: !1,
|
|
3301
|
-
writable: !0,
|
|
3302
|
-
value: U
|
|
3303
|
-
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
3304
|
-
}
|
|
3305
|
-
function p(s, d, b, g, C, U) {
|
|
3306
|
-
var O = d.children;
|
|
3307
|
-
if (O !== void 0)
|
|
3308
|
-
if (g)
|
|
3309
|
-
if (K(O)) {
|
|
3310
|
-
for (g = 0; g < O.length; g++)
|
|
3311
|
-
R(O[g]);
|
|
3312
|
-
Object.freeze && Object.freeze(O);
|
|
3313
|
-
} else
|
|
3314
|
-
console.error(
|
|
3315
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
3316
|
-
);
|
|
3317
|
-
else R(O);
|
|
3318
|
-
if (Z.call(d, "key")) {
|
|
3319
|
-
O = e(s);
|
|
3320
|
-
var J = Object.keys(d).filter(function(pe) {
|
|
3321
|
-
return pe !== "key";
|
|
3322
|
-
});
|
|
3323
|
-
g = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", de[O + g] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
3324
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
3325
|
-
let props = %s;
|
|
3326
|
-
<%s {...props} />
|
|
3327
|
-
React keys must be passed directly to JSX without using spread:
|
|
3328
|
-
let props = %s;
|
|
3329
|
-
<%s key={someKey} {...props} />`,
|
|
3330
|
-
g,
|
|
3331
|
-
O,
|
|
3332
|
-
J,
|
|
3333
|
-
O
|
|
3334
|
-
), de[O + g] = !0);
|
|
3335
|
-
}
|
|
3336
|
-
if (O = null, b !== void 0 && (n(b), O = "" + b), u(d) && (n(d.key), O = "" + d.key), "key" in d) {
|
|
3337
|
-
b = {};
|
|
3338
|
-
for (var z in d)
|
|
3339
|
-
z !== "key" && (b[z] = d[z]);
|
|
3340
|
-
} else b = d;
|
|
3341
|
-
return O && f(
|
|
3342
|
-
b,
|
|
3343
|
-
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
3344
|
-
), h(
|
|
3345
|
-
s,
|
|
3346
|
-
O,
|
|
3347
|
-
b,
|
|
3348
|
-
i(),
|
|
3349
|
-
C,
|
|
3350
|
-
U
|
|
3351
|
-
);
|
|
3352
|
-
}
|
|
3353
|
-
function R(s) {
|
|
3354
|
-
L(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === V && (s._payload.status === "fulfilled" ? L(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
|
|
3355
|
-
}
|
|
3356
|
-
function L(s) {
|
|
3357
|
-
return typeof s == "object" && s !== null && s.$$typeof === m;
|
|
3358
|
-
}
|
|
3359
|
-
var $ = Er(), m = /* @__PURE__ */ Symbol.for("react.transitional.element"), S = /* @__PURE__ */ Symbol.for("react.portal"), _ = /* @__PURE__ */ Symbol.for("react.fragment"), M = /* @__PURE__ */ Symbol.for("react.strict_mode"), Y = /* @__PURE__ */ Symbol.for("react.profiler"), q = /* @__PURE__ */ Symbol.for("react.consumer"), B = /* @__PURE__ */ Symbol.for("react.context"), H = /* @__PURE__ */ Symbol.for("react.forward_ref"), Q = /* @__PURE__ */ Symbol.for("react.suspense"), A = /* @__PURE__ */ Symbol.for("react.suspense_list"), ue = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), ie = /* @__PURE__ */ Symbol.for("react.activity"), ce = /* @__PURE__ */ Symbol.for("react.client.reference"), D = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, K = Array.isArray, ee = console.createTask ? console.createTask : function() {
|
|
3360
|
-
return null;
|
|
3361
|
-
};
|
|
3362
|
-
$ = {
|
|
3363
|
-
react_stack_bottom_frame: function(s) {
|
|
3364
|
-
return s();
|
|
3365
|
-
}
|
|
3366
|
-
};
|
|
3367
|
-
var I, te = {}, G = $.react_stack_bottom_frame.bind(
|
|
3368
|
-
$,
|
|
3369
|
-
a
|
|
3370
|
-
)(), oe = ee(o(a)), de = {};
|
|
3371
|
-
Oe.Fragment = _, Oe.jsx = function(s, d, b) {
|
|
3372
|
-
var g = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
3373
|
-
return p(
|
|
3374
|
-
s,
|
|
3375
|
-
d,
|
|
3376
|
-
b,
|
|
3377
|
-
!1,
|
|
3378
|
-
g ? Error("react-stack-top-frame") : G,
|
|
3379
|
-
g ? ee(o(s)) : oe
|
|
3380
|
-
);
|
|
3381
|
-
}, Oe.jsxs = function(s, d, b) {
|
|
3382
|
-
var g = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
3383
|
-
return p(
|
|
3384
|
-
s,
|
|
3385
|
-
d,
|
|
3386
|
-
b,
|
|
3387
|
-
!0,
|
|
3388
|
-
g ? Error("react-stack-top-frame") : G,
|
|
3389
|
-
g ? ee(o(s)) : oe
|
|
3390
|
-
);
|
|
3391
|
-
};
|
|
3392
|
-
})()), Oe;
|
|
3393
|
-
}
|
|
3394
|
-
var Yt;
|
|
3395
|
-
function io() {
|
|
3396
|
-
return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? De.exports = ro() : De.exports = so()), De.exports;
|
|
3397
|
-
}
|
|
3398
|
-
io();
|
|
3399
|
-
Er();
|
|
3400
|
-
process.env.NODE_ENV;
|
|
3401
|
-
function ao(e, t) {
|
|
3402
|
-
return e.length === 0 ? "" : t(e[0]) + e.slice(1);
|
|
3403
|
-
}
|
|
3404
|
-
function uo(e) {
|
|
3405
|
-
return ao(e, (t) => t.toLowerCase());
|
|
3406
|
-
}
|
|
3407
|
-
function ot(e, t) {
|
|
3408
|
-
if (e != null) {
|
|
3409
|
-
if (Array.isArray(e))
|
|
3410
|
-
return e.map((n) => ot(n));
|
|
3411
|
-
if (typeof e == "object") {
|
|
3412
|
-
const n = uo;
|
|
3413
|
-
return Object.entries(e).reduce(
|
|
3414
|
-
(o, [i, a]) => ({ ...o, [n(i)]: ot(a) }),
|
|
3415
|
-
{}
|
|
3416
|
-
);
|
|
3417
|
-
}
|
|
3418
|
-
return e;
|
|
3419
|
-
}
|
|
3420
|
-
}
|
|
3421
|
-
function co(e) {
|
|
3422
|
-
return ot(e);
|
|
3423
104
|
}
|
|
3424
|
-
function
|
|
3425
|
-
return
|
|
3426
|
-
...
|
|
3427
|
-
result:
|
|
3428
|
-
} :
|
|
105
|
+
function f(r) {
|
|
106
|
+
return r.isSuccess ? {
|
|
107
|
+
...r,
|
|
108
|
+
result: k(r.result)
|
|
109
|
+
} : r;
|
|
3429
110
|
}
|
|
3430
|
-
function
|
|
3431
|
-
const
|
|
111
|
+
function A(r) {
|
|
112
|
+
const o = y(r);
|
|
3432
113
|
return {
|
|
3433
|
-
...
|
|
3434
|
-
createQuery(
|
|
3435
|
-
const
|
|
3436
|
-
return (
|
|
114
|
+
...o,
|
|
115
|
+
createQuery(u) {
|
|
116
|
+
const c = o.createQuery(u);
|
|
117
|
+
return (n) => c(n).then(f);
|
|
3437
118
|
},
|
|
3438
|
-
createOperation(
|
|
3439
|
-
const
|
|
3440
|
-
return (
|
|
119
|
+
createOperation(u) {
|
|
120
|
+
const c = o.createOperation(u);
|
|
121
|
+
return (n) => c(n).then(f);
|
|
3441
122
|
}
|
|
3442
123
|
};
|
|
3443
124
|
}
|
|
3444
125
|
export {
|
|
3445
|
-
|
|
3446
|
-
|
|
126
|
+
y as mkCqrsClient,
|
|
127
|
+
A as mkUncapitalizedCqrsClient
|
|
3447
128
|
};
|