@fuul/sdk 7.18.1 → 7.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliates/AffiliateService.d.ts +2 -1
- package/dist/affiliates/AffiliateService.d.ts.map +1 -1
- package/dist/core.d.ts +25 -2
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +412 -374
- package/dist/index.umd.js +5 -5
- package/dist/types/api.d.ts +7 -2
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +10 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var zt = Object.defineProperty;
|
|
2
2
|
var Jt = (t, e, r) => e in t ? zt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var b = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
const
|
|
4
|
+
const Xe = "/affiliate-portal";
|
|
5
5
|
class Wt {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
b(this, "httpClient");
|
|
@@ -9,7 +9,7 @@ class Wt {
|
|
|
9
9
|
}
|
|
10
10
|
async getAffiliateStats(e) {
|
|
11
11
|
return (await this.httpClient.get({
|
|
12
|
-
path: `${
|
|
12
|
+
path: `${Xe}/stats`,
|
|
13
13
|
queryParams: {
|
|
14
14
|
user_identifier: e.user_identifier,
|
|
15
15
|
from: e.from,
|
|
@@ -22,7 +22,7 @@ class Wt {
|
|
|
22
22
|
}
|
|
23
23
|
async getAffiliateNewTraders(e) {
|
|
24
24
|
return (await this.httpClient.get({
|
|
25
|
-
path: `${
|
|
25
|
+
path: `${Xe}/new-traders`,
|
|
26
26
|
queryParams: {
|
|
27
27
|
user_identifier: e.user_identifier,
|
|
28
28
|
from: e.from,
|
|
@@ -37,10 +37,10 @@ function _t(t, e) {
|
|
|
37
37
|
return t.apply(e, arguments);
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const { toString: Qt } = Object.prototype, { getPrototypeOf:
|
|
40
|
+
const { toString: Qt } = Object.prototype, { getPrototypeOf: Le } = Object, { iterator: pe, toStringTag: Et } = Symbol, ye = /* @__PURE__ */ ((t) => (e) => {
|
|
41
41
|
const r = Qt.call(e);
|
|
42
42
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
43
|
-
})(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) =>
|
|
43
|
+
})(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => ye(e) === t), me = (t) => (e) => typeof e === t, { isArray: Q } = Array, J = me("undefined");
|
|
44
44
|
function ee(t) {
|
|
45
45
|
return t !== null && !J(t) && t.constructor !== null && !J(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
46
46
|
}
|
|
@@ -49,11 +49,11 @@ function Xt(t) {
|
|
|
49
49
|
let e;
|
|
50
50
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Rt(t.buffer), e;
|
|
51
51
|
}
|
|
52
|
-
const Yt = me("string"), P = me("function"), Ct = me("number"), te = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1,
|
|
53
|
-
if (
|
|
52
|
+
const Yt = me("string"), P = me("function"), Ct = me("number"), te = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, le = (t) => {
|
|
53
|
+
if (ye(t) !== "object")
|
|
54
54
|
return !1;
|
|
55
|
-
const e =
|
|
56
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Et in t) && !(
|
|
55
|
+
const e = Le(t);
|
|
56
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Et in t) && !(pe in t);
|
|
57
57
|
}, Zt = (t) => {
|
|
58
58
|
if (!te(t) || ee(t))
|
|
59
59
|
return !1;
|
|
@@ -66,9 +66,9 @@ const Yt = me("string"), P = me("function"), Ct = me("number"), te = (t) => t !=
|
|
|
66
66
|
function ar() {
|
|
67
67
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const Ye = ar(), Ge = typeof Ye.FormData < "u" ? Ye.FormData : void 0, cr = (t) => {
|
|
70
70
|
let e;
|
|
71
|
-
return t && (
|
|
71
|
+
return t && (Ge && t instanceof Ge || P(t.append) && ((e = ye(t)) === "formdata" || // detect form-data instance
|
|
72
72
|
e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
|
|
73
73
|
}, ur = F("URLSearchParams"), [lr, dr, fr, hr] = [
|
|
74
74
|
"ReadableStream",
|
|
@@ -103,19 +103,19 @@ function St(t, e) {
|
|
|
103
103
|
return s;
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
106
|
-
const
|
|
107
|
-
function
|
|
106
|
+
const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, At = (t) => !J(t) && t !== M;
|
|
107
|
+
function Oe() {
|
|
108
108
|
const { caseless: t, skipUndefined: e } = At(this) && this || {}, r = {}, n = (s, i) => {
|
|
109
109
|
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
110
110
|
return;
|
|
111
111
|
const o = t && St(r, i) || i;
|
|
112
|
-
|
|
112
|
+
le(r[o]) && le(s) ? r[o] = Oe(r[o], s) : le(s) ? r[o] = Oe({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
|
|
113
113
|
};
|
|
114
114
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
115
115
|
arguments[s] && re(arguments[s], n);
|
|
116
116
|
return r;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
|
|
119
119
|
e,
|
|
120
120
|
(s, i) => {
|
|
121
121
|
r && P(s) ? Object.defineProperty(t, i, {
|
|
@@ -131,7 +131,7 @@ const mr = (t, e, r, { allOwnKeys: n } = {}) => (re(
|
|
|
131
131
|
});
|
|
132
132
|
},
|
|
133
133
|
{ allOwnKeys: n }
|
|
134
|
-
), t),
|
|
134
|
+
), t), mr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), gr = (t, e, r, n) => {
|
|
135
135
|
t.prototype = Object.create(e.prototype, n), Object.defineProperty(t.prototype, "constructor", {
|
|
136
136
|
value: t,
|
|
137
137
|
writable: !0,
|
|
@@ -147,7 +147,7 @@ const mr = (t, e, r, { allOwnKeys: n } = {}) => (re(
|
|
|
147
147
|
do {
|
|
148
148
|
for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
|
|
149
149
|
o = s[i], (!n || n(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
|
|
150
|
-
t = r !== !1 &&
|
|
150
|
+
t = r !== !1 && Le(t);
|
|
151
151
|
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
152
152
|
return e;
|
|
153
153
|
}, br = (t, e, r) => {
|
|
@@ -163,8 +163,8 @@ const mr = (t, e, r, { allOwnKeys: n } = {}) => (re(
|
|
|
163
163
|
for (; e-- > 0; )
|
|
164
164
|
r[e] = t[e];
|
|
165
165
|
return r;
|
|
166
|
-
}, Er = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
167
|
-
const n = (t && t[
|
|
166
|
+
}, Er = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Le(Uint8Array)), Rr = (t, e) => {
|
|
167
|
+
const n = (t && t[pe]).call(t);
|
|
168
168
|
let s;
|
|
169
169
|
for (; (s = n.next()) && !s.done; ) {
|
|
170
170
|
const i = s.value;
|
|
@@ -178,7 +178,7 @@ const mr = (t, e, r, { allOwnKeys: n } = {}) => (re(
|
|
|
178
178
|
return n;
|
|
179
179
|
}, Sr = F("HTMLFormElement"), Ar = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
|
|
180
180
|
return n.toUpperCase() + s;
|
|
181
|
-
}),
|
|
181
|
+
}), Ze = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = F("RegExp"), Tt = (t, e) => {
|
|
182
182
|
const r = Object.getOwnPropertyDescriptors(t), n = {};
|
|
183
183
|
re(r, (s, i) => {
|
|
184
184
|
let o;
|
|
@@ -209,7 +209,7 @@ const mr = (t, e, r, { allOwnKeys: n } = {}) => (re(
|
|
|
209
209
|
}, Nr = () => {
|
|
210
210
|
}, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
211
211
|
function Ur(t) {
|
|
212
|
-
return !!(t && P(t.append) && t[Et] === "FormData" && t[
|
|
212
|
+
return !!(t && P(t.append) && t[Et] === "FormData" && t[pe]);
|
|
213
213
|
}
|
|
214
214
|
const Dr = (t) => {
|
|
215
215
|
const e = new Array(10), r = (n, s) => {
|
|
@@ -230,15 +230,15 @@ const Dr = (t) => {
|
|
|
230
230
|
return n;
|
|
231
231
|
};
|
|
232
232
|
return r(t, 0);
|
|
233
|
-
}, Lr = F("AsyncFunction"), Fr = (t) => t && (te(t) || P(t)) && P(t.then) && P(t.catch), Pt = ((t, e) => t ? setImmediate : e ? ((r, n) => (
|
|
233
|
+
}, Lr = F("AsyncFunction"), Fr = (t) => t && (te(t) || P(t)) && P(t.then) && P(t.catch), Pt = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener(
|
|
234
234
|
"message",
|
|
235
235
|
({ source: s, data: i }) => {
|
|
236
|
-
s ===
|
|
236
|
+
s === M && i === r && n.length && n.shift()();
|
|
237
237
|
},
|
|
238
238
|
!1
|
|
239
239
|
), (s) => {
|
|
240
|
-
n.push(s),
|
|
241
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(
|
|
240
|
+
n.push(s), M.postMessage(r, "*");
|
|
241
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Pt, vr = (t) => t != null && P(t[pe]), a = {
|
|
242
242
|
isArray: Q,
|
|
243
243
|
isArrayBuffer: Rt,
|
|
244
244
|
isBuffer: ee,
|
|
@@ -248,7 +248,7 @@ const Dr = (t) => {
|
|
|
248
248
|
isNumber: Ct,
|
|
249
249
|
isBoolean: Gt,
|
|
250
250
|
isObject: te,
|
|
251
|
-
isPlainObject:
|
|
251
|
+
isPlainObject: le,
|
|
252
252
|
isEmptyObject: Zt,
|
|
253
253
|
isReadableStream: lr,
|
|
254
254
|
isRequest: dr,
|
|
@@ -267,21 +267,21 @@ const Dr = (t) => {
|
|
|
267
267
|
isTypedArray: Er,
|
|
268
268
|
isFileList: ir,
|
|
269
269
|
forEach: re,
|
|
270
|
-
merge:
|
|
271
|
-
extend:
|
|
270
|
+
merge: Oe,
|
|
271
|
+
extend: yr,
|
|
272
272
|
trim: pr,
|
|
273
|
-
stripBOM:
|
|
273
|
+
stripBOM: mr,
|
|
274
274
|
inherits: gr,
|
|
275
275
|
toFlatObject: wr,
|
|
276
|
-
kindOf:
|
|
276
|
+
kindOf: ye,
|
|
277
277
|
kindOfTest: F,
|
|
278
278
|
endsWith: br,
|
|
279
279
|
toArray: _r,
|
|
280
280
|
forEachEntry: Rr,
|
|
281
281
|
matchAll: Cr,
|
|
282
282
|
isHTMLForm: Sr,
|
|
283
|
-
hasOwnProperty:
|
|
284
|
-
hasOwnProp:
|
|
283
|
+
hasOwnProperty: Ze,
|
|
284
|
+
hasOwnProp: Ze,
|
|
285
285
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
286
286
|
reduceDescriptors: Tt,
|
|
287
287
|
freezeMethods: Pr,
|
|
@@ -290,7 +290,7 @@ const Dr = (t) => {
|
|
|
290
290
|
noop: Nr,
|
|
291
291
|
toFiniteNumber: xr,
|
|
292
292
|
findKey: St,
|
|
293
|
-
global:
|
|
293
|
+
global: M,
|
|
294
294
|
isContextDefined: At,
|
|
295
295
|
isSpecCompliantForm: Ur,
|
|
296
296
|
toJSONObject: Dr,
|
|
@@ -300,7 +300,7 @@ const Dr = (t) => {
|
|
|
300
300
|
asap: kr,
|
|
301
301
|
isIterable: vr
|
|
302
302
|
};
|
|
303
|
-
let
|
|
303
|
+
let m = class Ot extends Error {
|
|
304
304
|
static from(e, r, n, s, i, o) {
|
|
305
305
|
const c = new Ot(e.message, r || e.code, n, s, i);
|
|
306
306
|
return c.cause = e, c.name = e.name, e.status != null && c.status == null && (c.status = e.status), o && Object.assign(c, o), c;
|
|
@@ -344,37 +344,37 @@ let y = class Ot extends Error {
|
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
347
|
+
m.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
348
|
+
m.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
349
|
+
m.ECONNABORTED = "ECONNABORTED";
|
|
350
|
+
m.ETIMEDOUT = "ETIMEDOUT";
|
|
351
|
+
m.ERR_NETWORK = "ERR_NETWORK";
|
|
352
|
+
m.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
353
|
+
m.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
354
|
+
m.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
355
|
+
m.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
356
|
+
m.ERR_CANCELED = "ERR_CANCELED";
|
|
357
|
+
m.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
358
|
+
m.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
359
359
|
const Br = null;
|
|
360
|
-
function
|
|
360
|
+
function Ne(t) {
|
|
361
361
|
return a.isPlainObject(t) || a.isArray(t);
|
|
362
362
|
}
|
|
363
363
|
function Nt(t) {
|
|
364
364
|
return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Re(t, e, r) {
|
|
367
367
|
return t ? t.concat(e).map(function(s, i) {
|
|
368
368
|
return s = Nt(s), !r && i ? "[" + s + "]" : s;
|
|
369
369
|
}).join(r ? "." : "") : e;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return a.isArray(t) && !t.some(
|
|
371
|
+
function Ir(t) {
|
|
372
|
+
return a.isArray(t) && !t.some(Ne);
|
|
373
373
|
}
|
|
374
|
-
const
|
|
374
|
+
const qr = a.toFlatObject(a, {}, null, function(e) {
|
|
375
375
|
return /^is[A-Z]/.test(e);
|
|
376
376
|
});
|
|
377
|
-
function
|
|
377
|
+
function ge(t, e, r) {
|
|
378
378
|
if (!a.isObject(t))
|
|
379
379
|
throw new TypeError("target must be an object");
|
|
380
380
|
e = e || new FormData(), r = a.toFlatObject(
|
|
@@ -385,8 +385,8 @@ function ye(t, e, r) {
|
|
|
385
385
|
indexes: !1
|
|
386
386
|
},
|
|
387
387
|
!1,
|
|
388
|
-
function(
|
|
389
|
-
return !a.isUndefined(p[
|
|
388
|
+
function(y, p) {
|
|
389
|
+
return !a.isUndefined(p[y]);
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
392
|
const n = r.metaTokens, s = r.visitor || u, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
|
|
@@ -399,38 +399,38 @@ function ye(t, e, r) {
|
|
|
399
399
|
if (a.isBoolean(d))
|
|
400
400
|
return d.toString();
|
|
401
401
|
if (!f && a.isBlob(d))
|
|
402
|
-
throw new
|
|
402
|
+
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
403
403
|
return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
404
404
|
}
|
|
405
|
-
function u(d,
|
|
405
|
+
function u(d, y, p) {
|
|
406
406
|
let E = d;
|
|
407
407
|
if (a.isReactNative(e) && a.isReactNativeBlob(d))
|
|
408
|
-
return e.append(
|
|
408
|
+
return e.append(Re(p, y, i), l(d)), !1;
|
|
409
409
|
if (d && !p && typeof d == "object") {
|
|
410
|
-
if (a.endsWith(
|
|
411
|
-
|
|
412
|
-
else if (a.isArray(d) &&
|
|
413
|
-
return
|
|
410
|
+
if (a.endsWith(y, "{}"))
|
|
411
|
+
y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
|
|
412
|
+
else if (a.isArray(d) && Ir(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (E = a.toArray(d)))
|
|
413
|
+
return y = Nt(y), E.forEach(function(C, A) {
|
|
414
414
|
!(a.isUndefined(C) || C === null) && e.append(
|
|
415
415
|
// eslint-disable-next-line no-nested-ternary
|
|
416
|
-
o === !0 ?
|
|
416
|
+
o === !0 ? Re([y], A, i) : o === null ? y : y + "[]",
|
|
417
417
|
l(C)
|
|
418
418
|
);
|
|
419
419
|
}), !1;
|
|
420
420
|
}
|
|
421
|
-
return
|
|
421
|
+
return Ne(d) ? !0 : (e.append(Re(p, y, i), l(d)), !1);
|
|
422
422
|
}
|
|
423
|
-
const h = [], g = Object.assign(
|
|
423
|
+
const h = [], g = Object.assign(qr, {
|
|
424
424
|
defaultVisitor: u,
|
|
425
425
|
convertValue: l,
|
|
426
|
-
isVisitable:
|
|
426
|
+
isVisitable: Ne
|
|
427
427
|
});
|
|
428
|
-
function R(d,
|
|
428
|
+
function R(d, y) {
|
|
429
429
|
if (!a.isUndefined(d)) {
|
|
430
430
|
if (h.indexOf(d) !== -1)
|
|
431
|
-
throw Error("Circular reference detected in " +
|
|
431
|
+
throw Error("Circular reference detected in " + y.join("."));
|
|
432
432
|
h.push(d), a.forEach(d, function(E, N) {
|
|
433
|
-
(!(a.isUndefined(E) || E === null) && s.call(e, E, a.isString(N) ? N.trim() : N,
|
|
433
|
+
(!(a.isUndefined(E) || E === null) && s.call(e, E, a.isString(N) ? N.trim() : N, y, g)) === !0 && R(E, y ? y.concat(N) : [N]);
|
|
434
434
|
}), h.pop();
|
|
435
435
|
}
|
|
436
436
|
}
|
|
@@ -438,7 +438,7 @@ function ye(t, e, r) {
|
|
|
438
438
|
throw new TypeError("data must be an object");
|
|
439
439
|
return R(t), e;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function et(t) {
|
|
442
442
|
const e = {
|
|
443
443
|
"!": "%21",
|
|
444
444
|
"'": "%27",
|
|
@@ -452,17 +452,17 @@ function Ge(t) {
|
|
|
452
452
|
return e[n];
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
this._pairs = [], t &&
|
|
455
|
+
function Fe(t, e) {
|
|
456
|
+
this._pairs = [], t && ge(t, this, e);
|
|
457
457
|
}
|
|
458
|
-
const xt =
|
|
458
|
+
const xt = Fe.prototype;
|
|
459
459
|
xt.append = function(e, r) {
|
|
460
460
|
this._pairs.push([e, r]);
|
|
461
461
|
};
|
|
462
462
|
xt.toString = function(e) {
|
|
463
463
|
const r = e ? function(n) {
|
|
464
|
-
return e.call(this, n,
|
|
465
|
-
} :
|
|
464
|
+
return e.call(this, n, et);
|
|
465
|
+
} : et;
|
|
466
466
|
return this._pairs.map(function(s) {
|
|
467
467
|
return r(s[0]) + "=" + r(s[1]);
|
|
468
468
|
}, "").join("&");
|
|
@@ -477,13 +477,13 @@ function Ut(t, e, r) {
|
|
|
477
477
|
serialize: r
|
|
478
478
|
} : r, i = s && s.serialize;
|
|
479
479
|
let o;
|
|
480
|
-
if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new
|
|
480
|
+
if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new Fe(e, s).toString(n), o) {
|
|
481
481
|
const c = t.indexOf("#");
|
|
482
482
|
c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
483
483
|
}
|
|
484
484
|
return t;
|
|
485
485
|
}
|
|
486
|
-
class
|
|
486
|
+
class tt {
|
|
487
487
|
constructor() {
|
|
488
488
|
this.handlers = [];
|
|
489
489
|
}
|
|
@@ -538,12 +538,12 @@ class Ze {
|
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
const
|
|
541
|
+
const ke = {
|
|
542
542
|
silentJSONParsing: !0,
|
|
543
543
|
forcedJSONParsing: !0,
|
|
544
544
|
clarifyTimeoutError: !1,
|
|
545
545
|
legacyInterceptorReqResOrdering: !0
|
|
546
|
-
}, $r = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
546
|
+
}, $r = typeof URLSearchParams < "u" ? URLSearchParams : Fe, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
|
|
547
547
|
isBrowser: !0,
|
|
548
548
|
classes: {
|
|
549
549
|
URLSearchParams: $r,
|
|
@@ -551,20 +551,20 @@ const Le = {
|
|
|
551
551
|
Blob: Hr
|
|
552
552
|
},
|
|
553
553
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
554
|
-
},
|
|
555
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr =
|
|
554
|
+
}, ve = typeof window < "u" && typeof document < "u", xe = typeof navigator == "object" && navigator || void 0, Kr = ve && (!xe || ["ReactNative", "NativeScript", "NS"].indexOf(xe.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
555
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = ve && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
556
556
|
__proto__: null,
|
|
557
|
-
hasBrowserEnv:
|
|
557
|
+
hasBrowserEnv: ve,
|
|
558
558
|
hasStandardBrowserEnv: Kr,
|
|
559
559
|
hasStandardBrowserWebWorkerEnv: zr,
|
|
560
|
-
navigator:
|
|
560
|
+
navigator: xe,
|
|
561
561
|
origin: Jr
|
|
562
562
|
}, Symbol.toStringTag, { value: "Module" })), S = {
|
|
563
563
|
...Wr,
|
|
564
564
|
...Vr
|
|
565
565
|
};
|
|
566
566
|
function Qr(t, e) {
|
|
567
|
-
return
|
|
567
|
+
return ge(t, new S.classes.URLSearchParams(), {
|
|
568
568
|
visitor: function(r, n, s, i) {
|
|
569
569
|
return S.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
570
570
|
},
|
|
@@ -609,7 +609,7 @@ function Gr(t, e, r) {
|
|
|
609
609
|
return (r || JSON.stringify)(t);
|
|
610
610
|
}
|
|
611
611
|
const ne = {
|
|
612
|
-
transitional:
|
|
612
|
+
transitional: ke,
|
|
613
613
|
adapter: ["xhr", "http", "fetch"],
|
|
614
614
|
transformRequest: [
|
|
615
615
|
function(e, r) {
|
|
@@ -628,7 +628,7 @@ const ne = {
|
|
|
628
628
|
return Qr(e, this.formSerializer).toString();
|
|
629
629
|
if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
630
630
|
const f = this.env && this.env.FormData;
|
|
631
|
-
return
|
|
631
|
+
return ge(
|
|
632
632
|
c ? { "files[]": e } : e,
|
|
633
633
|
f && new f(),
|
|
634
634
|
this.formSerializer
|
|
@@ -649,7 +649,7 @@ const ne = {
|
|
|
649
649
|
return JSON.parse(e, this.parseReviver);
|
|
650
650
|
} catch (c) {
|
|
651
651
|
if (o)
|
|
652
|
-
throw c.name === "SyntaxError" ?
|
|
652
|
+
throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
return e;
|
|
@@ -706,12 +706,12 @@ const Zr = a.toObjectSet([
|
|
|
706
706
|
`).forEach(function(o) {
|
|
707
707
|
s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || e[r] && Zr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
|
|
708
708
|
}), e;
|
|
709
|
-
},
|
|
709
|
+
}, rt = Symbol("internals");
|
|
710
710
|
function G(t) {
|
|
711
711
|
return t && String(t).trim().toLowerCase();
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
return t === !1 || t == null ? t : a.isArray(t) ? t.map(
|
|
713
|
+
function de(t) {
|
|
714
|
+
return t === !1 || t == null ? t : a.isArray(t) ? t.map(de) : String(t);
|
|
715
715
|
}
|
|
716
716
|
function tn(t) {
|
|
717
717
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -721,7 +721,7 @@ function tn(t) {
|
|
|
721
721
|
return e;
|
|
722
722
|
}
|
|
723
723
|
const rn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
724
|
-
function
|
|
724
|
+
function Ce(t, e, r, n, s) {
|
|
725
725
|
if (a.isFunction(n))
|
|
726
726
|
return n.call(this, e, r);
|
|
727
727
|
if (s && (e = r), !!a.isString(e)) {
|
|
@@ -756,7 +756,7 @@ let O = class {
|
|
|
756
756
|
if (!u)
|
|
757
757
|
throw new Error("header name must be a non-empty string");
|
|
758
758
|
const h = a.findKey(s, u);
|
|
759
|
-
(!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] =
|
|
759
|
+
(!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = de(c));
|
|
760
760
|
}
|
|
761
761
|
const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
|
|
762
762
|
if (a.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -795,7 +795,7 @@ let O = class {
|
|
|
795
795
|
has(e, r) {
|
|
796
796
|
if (e = G(e), e) {
|
|
797
797
|
const n = a.findKey(this, e);
|
|
798
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
798
|
+
return !!(n && this[n] !== void 0 && (!r || Ce(this, this[n], n, r)));
|
|
799
799
|
}
|
|
800
800
|
return !1;
|
|
801
801
|
}
|
|
@@ -805,7 +805,7 @@ let O = class {
|
|
|
805
805
|
function i(o) {
|
|
806
806
|
if (o = G(o), o) {
|
|
807
807
|
const c = a.findKey(n, o);
|
|
808
|
-
c && (!r ||
|
|
808
|
+
c && (!r || Ce(n, n[c], c, r)) && (delete n[c], s = !0);
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
return a.isArray(e) ? e.forEach(i) : i(e), s;
|
|
@@ -815,7 +815,7 @@ let O = class {
|
|
|
815
815
|
let n = r.length, s = !1;
|
|
816
816
|
for (; n--; ) {
|
|
817
817
|
const i = r[n];
|
|
818
|
-
(!e ||
|
|
818
|
+
(!e || Ce(this, this[i], i, e, !0)) && (delete this[i], s = !0);
|
|
819
819
|
}
|
|
820
820
|
return s;
|
|
821
821
|
}
|
|
@@ -824,11 +824,11 @@ let O = class {
|
|
|
824
824
|
return a.forEach(this, (s, i) => {
|
|
825
825
|
const o = a.findKey(n, i);
|
|
826
826
|
if (o) {
|
|
827
|
-
r[o] =
|
|
827
|
+
r[o] = de(s), delete r[i];
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
830
|
const c = e ? nn(i) : String(i).trim();
|
|
831
|
-
c !== i && delete r[i], r[c] =
|
|
831
|
+
c !== i && delete r[i], r[c] = de(s), n[c] = !0;
|
|
832
832
|
}), this;
|
|
833
833
|
}
|
|
834
834
|
concat(...e) {
|
|
@@ -861,7 +861,7 @@ let O = class {
|
|
|
861
861
|
return r.forEach((s) => n.set(s)), n;
|
|
862
862
|
}
|
|
863
863
|
static accessor(e) {
|
|
864
|
-
const n = (this[
|
|
864
|
+
const n = (this[rt] = this[rt] = {
|
|
865
865
|
accessors: {}
|
|
866
866
|
}).accessors, s = this.prototype;
|
|
867
867
|
function i(o) {
|
|
@@ -889,7 +889,7 @@ a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
|
|
|
889
889
|
};
|
|
890
890
|
});
|
|
891
891
|
a.freezeMethods(O);
|
|
892
|
-
function
|
|
892
|
+
function Se(t, e) {
|
|
893
893
|
const r = this || ne, n = e || r, s = O.from(n.headers);
|
|
894
894
|
let i = n.data;
|
|
895
895
|
return a.forEach(t, function(c) {
|
|
@@ -899,7 +899,7 @@ function Ce(t, e) {
|
|
|
899
899
|
function Lt(t) {
|
|
900
900
|
return !!(t && t.__CANCEL__);
|
|
901
901
|
}
|
|
902
|
-
let se = class extends
|
|
902
|
+
let se = class extends m {
|
|
903
903
|
/**
|
|
904
904
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
905
905
|
*
|
|
@@ -910,15 +910,15 @@ let se = class extends y {
|
|
|
910
910
|
* @returns {CanceledError} The created error.
|
|
911
911
|
*/
|
|
912
912
|
constructor(e, r, n) {
|
|
913
|
-
super(e ?? "canceled",
|
|
913
|
+
super(e ?? "canceled", m.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
916
|
function Ft(t, e, r) {
|
|
917
917
|
const n = r.config.validateStatus;
|
|
918
918
|
!r.status || !n || n(r.status) ? t(r) : e(
|
|
919
|
-
new
|
|
919
|
+
new m(
|
|
920
920
|
"Request failed with status code " + r.status,
|
|
921
|
-
[
|
|
921
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
922
922
|
r.config,
|
|
923
923
|
r.request,
|
|
924
924
|
r
|
|
@@ -957,7 +957,7 @@ function cn(t, e) {
|
|
|
957
957
|
}, n - h)));
|
|
958
958
|
}, () => s && o(s)];
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const he = (t, e, r = 3) => {
|
|
961
961
|
let n = 0;
|
|
962
962
|
const s = an(50, 250);
|
|
963
963
|
return cn((i) => {
|
|
@@ -976,7 +976,7 @@ const fe = (t, e, r = 3) => {
|
|
|
976
976
|
};
|
|
977
977
|
t(h);
|
|
978
978
|
}, r);
|
|
979
|
-
},
|
|
979
|
+
}, nt = (t, e) => {
|
|
980
980
|
const r = t != null;
|
|
981
981
|
return [
|
|
982
982
|
(n) => e[0]({
|
|
@@ -986,7 +986,7 @@ const fe = (t, e, r = 3) => {
|
|
|
986
986
|
}),
|
|
987
987
|
e[1]
|
|
988
988
|
];
|
|
989
|
-
},
|
|
989
|
+
}, st = (t) => (...e) => a.asap(() => t(...e)), un = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, S.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
990
990
|
new URL(S.origin),
|
|
991
991
|
S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
|
|
992
992
|
) : () => !0, ln = S.hasStandardBrowserEnv ? (
|
|
@@ -1028,8 +1028,8 @@ function kt(t, e, r) {
|
|
|
1028
1028
|
let n = !dn(e);
|
|
1029
1029
|
return t && (n || r == !1) ? fn(t, e) : e;
|
|
1030
1030
|
}
|
|
1031
|
-
const
|
|
1032
|
-
function
|
|
1031
|
+
const it = (t) => t instanceof O ? { ...t } : t;
|
|
1032
|
+
function V(t, e) {
|
|
1033
1033
|
e = e || {};
|
|
1034
1034
|
const r = {};
|
|
1035
1035
|
function n(l, u, h, g) {
|
|
@@ -1086,7 +1086,7 @@ function H(t, e) {
|
|
|
1086
1086
|
socketPath: o,
|
|
1087
1087
|
responseEncoding: o,
|
|
1088
1088
|
validateStatus: c,
|
|
1089
|
-
headers: (l, u, h) => s(
|
|
1089
|
+
headers: (l, u, h) => s(it(l), it(u), h, !0)
|
|
1090
1090
|
};
|
|
1091
1091
|
return a.forEach(Object.keys({ ...t, ...e }), function(u) {
|
|
1092
1092
|
if (u === "__proto__" || u === "constructor" || u === "prototype") return;
|
|
@@ -1095,7 +1095,7 @@ function H(t, e) {
|
|
|
1095
1095
|
}), r;
|
|
1096
1096
|
}
|
|
1097
1097
|
const vt = (t) => {
|
|
1098
|
-
const e =
|
|
1098
|
+
const e = V({}, t);
|
|
1099
1099
|
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = e;
|
|
1100
1100
|
if (e.headers = o = O.from(o), e.url = Ut(
|
|
1101
1101
|
kt(e.baseURL, e.url, e.allowAbsoluteUrls),
|
|
@@ -1127,7 +1127,7 @@ const vt = (t) => {
|
|
|
1127
1127
|
let i = s.data;
|
|
1128
1128
|
const o = O.from(s.headers).normalize();
|
|
1129
1129
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, g, R, d;
|
|
1130
|
-
function
|
|
1130
|
+
function y() {
|
|
1131
1131
|
R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1132
1132
|
}
|
|
1133
1133
|
let p = new XMLHttpRequest();
|
|
@@ -1147,10 +1147,10 @@ const vt = (t) => {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
Ft(
|
|
1149
1149
|
function(x) {
|
|
1150
|
-
r(x),
|
|
1150
|
+
r(x), y();
|
|
1151
1151
|
},
|
|
1152
1152
|
function(x) {
|
|
1153
|
-
n(x),
|
|
1153
|
+
n(x), y();
|
|
1154
1154
|
},
|
|
1155
1155
|
D
|
|
1156
1156
|
), p = null;
|
|
@@ -1158,32 +1158,32 @@ const vt = (t) => {
|
|
|
1158
1158
|
"onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
|
|
1159
1159
|
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
1160
1160
|
}, p.onabort = function() {
|
|
1161
|
-
p && (n(new
|
|
1161
|
+
p && (n(new m("Request aborted", m.ECONNABORTED, t, p)), p = null);
|
|
1162
1162
|
}, p.onerror = function(A) {
|
|
1163
|
-
const D = A && A.message ? A.message : "Network Error",
|
|
1164
|
-
|
|
1163
|
+
const D = A && A.message ? A.message : "Network Error", j = new m(D, m.ERR_NETWORK, t, p);
|
|
1164
|
+
j.event = A || null, n(j), p = null;
|
|
1165
1165
|
}, p.ontimeout = function() {
|
|
1166
1166
|
let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1167
|
-
const D = s.transitional ||
|
|
1167
|
+
const D = s.transitional || ke;
|
|
1168
1168
|
s.timeoutErrorMessage && (A = s.timeoutErrorMessage), n(
|
|
1169
|
-
new
|
|
1169
|
+
new m(
|
|
1170
1170
|
A,
|
|
1171
|
-
D.clarifyTimeoutError ?
|
|
1171
|
+
D.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1172
1172
|
t,
|
|
1173
1173
|
p
|
|
1174
1174
|
)
|
|
1175
1175
|
), p = null;
|
|
1176
1176
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(A, D) {
|
|
1177
1177
|
p.setRequestHeader(D, A);
|
|
1178
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] =
|
|
1178
|
+
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] = he(l, !0), p.addEventListener("progress", g)), f && p.upload && ([h, R] = he(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (C) => {
|
|
1179
1179
|
p && (n(!C || C.type ? new se(null, t, p) : C), p.abort(), p = null);
|
|
1180
1180
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1181
1181
|
const N = on(s.url);
|
|
1182
1182
|
if (N && S.protocols.indexOf(N) === -1) {
|
|
1183
1183
|
n(
|
|
1184
|
-
new
|
|
1184
|
+
new m(
|
|
1185
1185
|
"Unsupported protocol " + N + ":",
|
|
1186
|
-
|
|
1186
|
+
m.ERR_BAD_REQUEST,
|
|
1187
1187
|
t
|
|
1188
1188
|
)
|
|
1189
1189
|
);
|
|
@@ -1191,7 +1191,7 @@ const vt = (t) => {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
p.send(i || null);
|
|
1193
1193
|
});
|
|
1194
|
-
},
|
|
1194
|
+
}, yn = (t, e) => {
|
|
1195
1195
|
const { length: r } = t = t ? t.filter(Boolean) : [];
|
|
1196
1196
|
if (e || r) {
|
|
1197
1197
|
let n = new AbortController(), s;
|
|
@@ -1200,12 +1200,12 @@ const vt = (t) => {
|
|
|
1200
1200
|
s = !0, c();
|
|
1201
1201
|
const u = l instanceof Error ? l : this.reason;
|
|
1202
1202
|
n.abort(
|
|
1203
|
-
u instanceof
|
|
1203
|
+
u instanceof m ? u : new se(u instanceof Error ? u.message : u)
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
1207
|
let o = e && setTimeout(() => {
|
|
1208
|
-
o = null, i(new
|
|
1208
|
+
o = null, i(new m(`timeout of ${e}ms exceeded`, m.ETIMEDOUT));
|
|
1209
1209
|
}, e);
|
|
1210
1210
|
const c = () => {
|
|
1211
1211
|
t && (o && clearTimeout(o), o = null, t.forEach((l) => {
|
|
@@ -1216,7 +1216,7 @@ const vt = (t) => {
|
|
|
1216
1216
|
const { signal: f } = n;
|
|
1217
1217
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1218
1218
|
}
|
|
1219
|
-
},
|
|
1219
|
+
}, mn = function* (t, e) {
|
|
1220
1220
|
let r = t.byteLength;
|
|
1221
1221
|
if (r < e) {
|
|
1222
1222
|
yield t;
|
|
@@ -1227,7 +1227,7 @@ const vt = (t) => {
|
|
|
1227
1227
|
s = n + e, yield t.slice(n, s), n = s;
|
|
1228
1228
|
}, gn = async function* (t, e) {
|
|
1229
1229
|
for await (const r of wn(t))
|
|
1230
|
-
yield*
|
|
1230
|
+
yield* mn(r, e);
|
|
1231
1231
|
}, wn = async function* (t) {
|
|
1232
1232
|
if (t[Symbol.asyncIterator]) {
|
|
1233
1233
|
yield* t;
|
|
@@ -1244,7 +1244,7 @@ const vt = (t) => {
|
|
|
1244
1244
|
} finally {
|
|
1245
1245
|
await e.cancel();
|
|
1246
1246
|
}
|
|
1247
|
-
},
|
|
1247
|
+
}, ot = (t, e, r, n) => {
|
|
1248
1248
|
const s = gn(t, e);
|
|
1249
1249
|
let i = 0, o, c = (f) => {
|
|
1250
1250
|
o || (o = !0, n && n(f));
|
|
@@ -1276,10 +1276,10 @@ const vt = (t) => {
|
|
|
1276
1276
|
highWaterMark: 2
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
|
-
},
|
|
1279
|
+
}, at = 64 * 1024, { isFunction: ce } = a, bn = (({ Request: t, Response: e }) => ({
|
|
1280
1280
|
Request: t,
|
|
1281
1281
|
Response: e
|
|
1282
|
-
}))(a.global), { ReadableStream:
|
|
1282
|
+
}))(a.global), { ReadableStream: ct, TextEncoder: ut } = a.global, lt = (t, ...e) => {
|
|
1283
1283
|
try {
|
|
1284
1284
|
return !!t(...e);
|
|
1285
1285
|
} catch {
|
|
@@ -1296,27 +1296,27 @@ const vt = (t) => {
|
|
|
1296
1296
|
const { fetch: e, Request: r, Response: n } = t, s = e ? ce(e) : typeof fetch == "function", i = ce(r), o = ce(n);
|
|
1297
1297
|
if (!s)
|
|
1298
1298
|
return !1;
|
|
1299
|
-
const c = s && ce(
|
|
1299
|
+
const c = s && ce(ct), f = s && (typeof ut == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new ut()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && lt(() => {
|
|
1300
1300
|
let d = !1;
|
|
1301
|
-
const
|
|
1302
|
-
body: new
|
|
1301
|
+
const y = new r(S.origin, {
|
|
1302
|
+
body: new ct(),
|
|
1303
1303
|
method: "POST",
|
|
1304
1304
|
get duplex() {
|
|
1305
1305
|
return d = !0, "half";
|
|
1306
1306
|
}
|
|
1307
1307
|
}).headers.has("Content-Type");
|
|
1308
|
-
return d && !
|
|
1309
|
-
}), u = o && c &&
|
|
1308
|
+
return d && !y;
|
|
1309
|
+
}), u = o && c && lt(() => a.isReadableStream(new n("").body)), h = {
|
|
1310
1310
|
stream: u && ((d) => d.body)
|
|
1311
1311
|
};
|
|
1312
1312
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
1313
|
-
!h[d] && (h[d] = (
|
|
1314
|
-
let E =
|
|
1313
|
+
!h[d] && (h[d] = (y, p) => {
|
|
1314
|
+
let E = y && y[d];
|
|
1315
1315
|
if (E)
|
|
1316
|
-
return E.call(
|
|
1317
|
-
throw new
|
|
1316
|
+
return E.call(y);
|
|
1317
|
+
throw new m(
|
|
1318
1318
|
`Response type '${d}' is not supported`,
|
|
1319
|
-
|
|
1319
|
+
m.ERR_NOT_SUPPORT,
|
|
1320
1320
|
p
|
|
1321
1321
|
);
|
|
1322
1322
|
});
|
|
@@ -1335,74 +1335,74 @@ const vt = (t) => {
|
|
|
1335
1335
|
return d.byteLength;
|
|
1336
1336
|
if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
|
|
1337
1337
|
return (await f(d)).byteLength;
|
|
1338
|
-
}, R = async (d,
|
|
1338
|
+
}, R = async (d, y) => {
|
|
1339
1339
|
const p = a.toFiniteNumber(d.getContentLength());
|
|
1340
|
-
return p ?? g(
|
|
1340
|
+
return p ?? g(y);
|
|
1341
1341
|
};
|
|
1342
1342
|
return async (d) => {
|
|
1343
1343
|
let {
|
|
1344
|
-
url:
|
|
1344
|
+
url: y,
|
|
1345
1345
|
method: p,
|
|
1346
1346
|
data: E,
|
|
1347
1347
|
signal: N,
|
|
1348
1348
|
cancelToken: C,
|
|
1349
1349
|
timeout: A,
|
|
1350
1350
|
onDownloadProgress: D,
|
|
1351
|
-
onUploadProgress:
|
|
1351
|
+
onUploadProgress: j,
|
|
1352
1352
|
responseType: x,
|
|
1353
|
-
headers:
|
|
1353
|
+
headers: _e,
|
|
1354
1354
|
withCredentials: ie = "same-origin",
|
|
1355
|
-
fetchOptions:
|
|
1356
|
-
} = vt(d),
|
|
1355
|
+
fetchOptions: Ve
|
|
1356
|
+
} = vt(d), Ke = e || fetch;
|
|
1357
1357
|
x = x ? (x + "").toLowerCase() : "text";
|
|
1358
|
-
let oe =
|
|
1358
|
+
let oe = yn(
|
|
1359
1359
|
[N, C && C.toAbortSignal()],
|
|
1360
1360
|
A
|
|
1361
1361
|
), Y = null;
|
|
1362
|
-
const
|
|
1362
|
+
const $ = oe && oe.unsubscribe && (() => {
|
|
1363
1363
|
oe.unsubscribe();
|
|
1364
1364
|
});
|
|
1365
|
-
let
|
|
1365
|
+
let ze;
|
|
1366
1366
|
try {
|
|
1367
|
-
if (
|
|
1368
|
-
let B = new r(
|
|
1367
|
+
if (j && l && p !== "get" && p !== "head" && (ze = await R(_e, E)) !== 0) {
|
|
1368
|
+
let B = new r(y, {
|
|
1369
1369
|
method: "POST",
|
|
1370
1370
|
body: E,
|
|
1371
1371
|
duplex: "half"
|
|
1372
1372
|
}), z;
|
|
1373
|
-
if (a.isFormData(E) && (z = B.headers.get("content-type")) &&
|
|
1374
|
-
const [
|
|
1375
|
-
|
|
1376
|
-
|
|
1373
|
+
if (a.isFormData(E) && (z = B.headers.get("content-type")) && _e.setContentType(z), B.body) {
|
|
1374
|
+
const [Ee, ae] = nt(
|
|
1375
|
+
ze,
|
|
1376
|
+
he(st(j))
|
|
1377
1377
|
);
|
|
1378
|
-
E =
|
|
1378
|
+
E = ot(B.body, at, Ee, ae);
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
1381
|
a.isString(ie) || (ie = ie ? "include" : "omit");
|
|
1382
|
-
const T = i && "credentials" in r.prototype,
|
|
1383
|
-
...
|
|
1382
|
+
const T = i && "credentials" in r.prototype, Je = {
|
|
1383
|
+
...Ve,
|
|
1384
1384
|
signal: oe,
|
|
1385
1385
|
method: p.toUpperCase(),
|
|
1386
|
-
headers:
|
|
1386
|
+
headers: _e.normalize().toJSON(),
|
|
1387
1387
|
body: E,
|
|
1388
1388
|
duplex: "half",
|
|
1389
1389
|
credentials: T ? ie : void 0
|
|
1390
1390
|
};
|
|
1391
|
-
Y = i && new r(
|
|
1392
|
-
let v = await (i ?
|
|
1393
|
-
const
|
|
1394
|
-
if (u && (D ||
|
|
1391
|
+
Y = i && new r(y, Je);
|
|
1392
|
+
let v = await (i ? Ke(Y, Ve) : Ke(y, Je));
|
|
1393
|
+
const We = u && (x === "stream" || x === "response");
|
|
1394
|
+
if (u && (D || We && $)) {
|
|
1395
1395
|
const B = {};
|
|
1396
|
-
["status", "statusText", "headers"].forEach((
|
|
1397
|
-
B[
|
|
1396
|
+
["status", "statusText", "headers"].forEach((Qe) => {
|
|
1397
|
+
B[Qe] = v[Qe];
|
|
1398
1398
|
});
|
|
1399
|
-
const z = a.toFiniteNumber(v.headers.get("content-length")), [
|
|
1399
|
+
const z = a.toFiniteNumber(v.headers.get("content-length")), [Ee, ae] = D && nt(
|
|
1400
1400
|
z,
|
|
1401
|
-
|
|
1401
|
+
he(st(D), !0)
|
|
1402
1402
|
) || [];
|
|
1403
1403
|
v = new n(
|
|
1404
|
-
|
|
1405
|
-
ae && ae(),
|
|
1404
|
+
ot(v.body, at, Ee, () => {
|
|
1405
|
+
ae && ae(), $ && $();
|
|
1406
1406
|
}),
|
|
1407
1407
|
B
|
|
1408
1408
|
);
|
|
@@ -1412,7 +1412,7 @@ const vt = (t) => {
|
|
|
1412
1412
|
v,
|
|
1413
1413
|
d
|
|
1414
1414
|
);
|
|
1415
|
-
return !
|
|
1415
|
+
return !We && $ && $(), await new Promise((B, z) => {
|
|
1416
1416
|
Ft(B, z, {
|
|
1417
1417
|
data: Kt,
|
|
1418
1418
|
headers: O.from(v.headers),
|
|
@@ -1423,10 +1423,10 @@ const vt = (t) => {
|
|
|
1423
1423
|
});
|
|
1424
1424
|
});
|
|
1425
1425
|
} catch (T) {
|
|
1426
|
-
throw
|
|
1427
|
-
new
|
|
1426
|
+
throw $ && $(), T && T.name === "TypeError" && /Load failed|fetch/i.test(T.message) ? Object.assign(
|
|
1427
|
+
new m(
|
|
1428
1428
|
"Network Error",
|
|
1429
|
-
|
|
1429
|
+
m.ERR_NETWORK,
|
|
1430
1430
|
d,
|
|
1431
1431
|
Y,
|
|
1432
1432
|
T && T.response
|
|
@@ -1434,7 +1434,7 @@ const vt = (t) => {
|
|
|
1434
1434
|
{
|
|
1435
1435
|
cause: T.cause || T
|
|
1436
1436
|
}
|
|
1437
|
-
) :
|
|
1437
|
+
) : m.from(T, T && T.code, d, Y, T && T.response);
|
|
1438
1438
|
}
|
|
1439
1439
|
};
|
|
1440
1440
|
}, En = /* @__PURE__ */ new Map(), Bt = (t) => {
|
|
@@ -1446,14 +1446,14 @@ const vt = (t) => {
|
|
|
1446
1446
|
return l;
|
|
1447
1447
|
};
|
|
1448
1448
|
Bt();
|
|
1449
|
-
const
|
|
1449
|
+
const Be = {
|
|
1450
1450
|
http: Br,
|
|
1451
1451
|
xhr: pn,
|
|
1452
1452
|
fetch: {
|
|
1453
1453
|
get: Bt
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
1456
|
-
a.forEach(
|
|
1456
|
+
a.forEach(Be, (t, e) => {
|
|
1457
1457
|
if (t) {
|
|
1458
1458
|
try {
|
|
1459
1459
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1462,7 +1462,7 @@ a.forEach(ke, (t, e) => {
|
|
|
1462
1462
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1463
1463
|
}
|
|
1464
1464
|
});
|
|
1465
|
-
const
|
|
1465
|
+
const dt = (t) => `- ${t}`, Rn = (t) => a.isFunction(t) || t === null || t === !1;
|
|
1466
1466
|
function Cn(t, e) {
|
|
1467
1467
|
t = a.isArray(t) ? t : [t];
|
|
1468
1468
|
const { length: r } = t;
|
|
@@ -1471,8 +1471,8 @@ function Cn(t, e) {
|
|
|
1471
1471
|
for (let o = 0; o < r; o++) {
|
|
1472
1472
|
n = t[o];
|
|
1473
1473
|
let c;
|
|
1474
|
-
if (s = n, !Rn(n) && (s =
|
|
1475
|
-
throw new
|
|
1474
|
+
if (s = n, !Rn(n) && (s = Be[(c = String(n)).toLowerCase()], s === void 0))
|
|
1475
|
+
throw new m(`Unknown adapter '${c}'`);
|
|
1476
1476
|
if (s && (a.isFunction(s) || (s = s.get(e))))
|
|
1477
1477
|
break;
|
|
1478
1478
|
i[c || "#" + o] = s;
|
|
@@ -1482,16 +1482,16 @@ function Cn(t, e) {
|
|
|
1482
1482
|
([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1483
1483
|
);
|
|
1484
1484
|
let c = r ? o.length > 1 ? `since :
|
|
1485
|
-
` + o.map(
|
|
1486
|
-
`) : " " +
|
|
1487
|
-
throw new
|
|
1485
|
+
` + o.map(dt).join(`
|
|
1486
|
+
`) : " " + dt(o[0]) : "as no adapter specified";
|
|
1487
|
+
throw new m(
|
|
1488
1488
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1489
1489
|
"ERR_NOT_SUPPORT"
|
|
1490
1490
|
);
|
|
1491
1491
|
}
|
|
1492
1492
|
return s;
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1494
|
+
const It = {
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1497
1497
|
* @type {Function}
|
|
@@ -1501,19 +1501,19 @@ const qt = {
|
|
|
1501
1501
|
* Exposes all known adapters
|
|
1502
1502
|
* @type {Object<string, Function|Object>}
|
|
1503
1503
|
*/
|
|
1504
|
-
adapters:
|
|
1504
|
+
adapters: Be
|
|
1505
1505
|
};
|
|
1506
|
-
function
|
|
1506
|
+
function Ae(t) {
|
|
1507
1507
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1508
1508
|
throw new se(null, t);
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1510
|
+
function ft(t) {
|
|
1511
|
+
return Ae(t), t.headers = O.from(t.headers), t.data = Se.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), It.getAdapter(t.adapter || ne.adapter, t)(t).then(
|
|
1512
1512
|
function(n) {
|
|
1513
|
-
return
|
|
1513
|
+
return Ae(t), n.data = Se.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
|
|
1514
1514
|
},
|
|
1515
1515
|
function(n) {
|
|
1516
|
-
return Lt(n) || (
|
|
1516
|
+
return Lt(n) || (Ae(t), n && n.response && (n.response.data = Se.call(
|
|
1517
1517
|
t,
|
|
1518
1518
|
t.transformResponse,
|
|
1519
1519
|
n.response
|
|
@@ -1521,24 +1521,24 @@ function lt(t) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
);
|
|
1523
1523
|
}
|
|
1524
|
-
const
|
|
1524
|
+
const qt = "1.13.6", we = {};
|
|
1525
1525
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1526
|
-
|
|
1526
|
+
we[t] = function(n) {
|
|
1527
1527
|
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1528
1528
|
};
|
|
1529
1529
|
});
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1530
|
+
const ht = {};
|
|
1531
|
+
we.transitional = function(e, r, n) {
|
|
1532
1532
|
function s(i, o) {
|
|
1533
|
-
return "[Axios v" +
|
|
1533
|
+
return "[Axios v" + qt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
|
|
1534
1534
|
}
|
|
1535
1535
|
return (i, o, c) => {
|
|
1536
1536
|
if (e === !1)
|
|
1537
|
-
throw new
|
|
1537
|
+
throw new m(
|
|
1538
1538
|
s(o, " has been removed" + (r ? " in " + r : "")),
|
|
1539
|
-
|
|
1539
|
+
m.ERR_DEPRECATED
|
|
1540
1540
|
);
|
|
1541
|
-
return r && !
|
|
1541
|
+
return r && !ht[o] && (ht[o] = !0, console.warn(
|
|
1542
1542
|
s(
|
|
1543
1543
|
o,
|
|
1544
1544
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -1546,12 +1546,12 @@ ge.transitional = function(e, r, n) {
|
|
|
1546
1546
|
)), e ? e(i, o, c) : !0;
|
|
1547
1547
|
};
|
|
1548
1548
|
};
|
|
1549
|
-
|
|
1549
|
+
we.spelling = function(e) {
|
|
1550
1550
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1551
1551
|
};
|
|
1552
1552
|
function Sn(t, e, r) {
|
|
1553
1553
|
if (typeof t != "object")
|
|
1554
|
-
throw new
|
|
1554
|
+
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1555
1555
|
const n = Object.keys(t);
|
|
1556
1556
|
let s = n.length;
|
|
1557
1557
|
for (; s-- > 0; ) {
|
|
@@ -1559,25 +1559,25 @@ function Sn(t, e, r) {
|
|
|
1559
1559
|
if (o) {
|
|
1560
1560
|
const c = t[i], f = c === void 0 || o(c, i, t);
|
|
1561
1561
|
if (f !== !0)
|
|
1562
|
-
throw new
|
|
1562
|
+
throw new m(
|
|
1563
1563
|
"option " + i + " must be " + f,
|
|
1564
|
-
|
|
1564
|
+
m.ERR_BAD_OPTION_VALUE
|
|
1565
1565
|
);
|
|
1566
1566
|
continue;
|
|
1567
1567
|
}
|
|
1568
1568
|
if (r !== !0)
|
|
1569
|
-
throw new
|
|
1569
|
+
throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
const
|
|
1572
|
+
const fe = {
|
|
1573
1573
|
assertOptions: Sn,
|
|
1574
|
-
validators:
|
|
1575
|
-
}, U =
|
|
1576
|
-
let
|
|
1574
|
+
validators: we
|
|
1575
|
+
}, U = fe.validators;
|
|
1576
|
+
let H = class {
|
|
1577
1577
|
constructor(e) {
|
|
1578
1578
|
this.defaults = e || {}, this.interceptors = {
|
|
1579
|
-
request: new
|
|
1580
|
-
response: new
|
|
1579
|
+
request: new tt(),
|
|
1580
|
+
response: new tt()
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
/**
|
|
@@ -1606,9 +1606,9 @@ let M = class {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
1608
|
_request(e, r) {
|
|
1609
|
-
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r =
|
|
1609
|
+
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = V(this.defaults, r);
|
|
1610
1610
|
const { transitional: n, paramsSerializer: s, headers: i } = r;
|
|
1611
|
-
n !== void 0 &&
|
|
1611
|
+
n !== void 0 && fe.assertOptions(
|
|
1612
1612
|
n,
|
|
1613
1613
|
{
|
|
1614
1614
|
silentJSONParsing: U.transitional(U.boolean),
|
|
@@ -1619,14 +1619,14 @@ let M = class {
|
|
|
1619
1619
|
!1
|
|
1620
1620
|
), s != null && (a.isFunction(s) ? r.paramsSerializer = {
|
|
1621
1621
|
serialize: s
|
|
1622
|
-
} :
|
|
1622
|
+
} : fe.assertOptions(
|
|
1623
1623
|
s,
|
|
1624
1624
|
{
|
|
1625
1625
|
encode: U.function,
|
|
1626
1626
|
serialize: U.function
|
|
1627
1627
|
},
|
|
1628
1628
|
!0
|
|
1629
|
-
)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0),
|
|
1629
|
+
)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(
|
|
1630
1630
|
r,
|
|
1631
1631
|
{
|
|
1632
1632
|
baseUrl: U.spelling("baseURL"),
|
|
@@ -1640,20 +1640,20 @@ let M = class {
|
|
|
1640
1640
|
}), r.headers = O.concat(o, i);
|
|
1641
1641
|
const c = [];
|
|
1642
1642
|
let f = !0;
|
|
1643
|
-
this.interceptors.request.forEach(function(
|
|
1644
|
-
if (typeof
|
|
1643
|
+
this.interceptors.request.forEach(function(y) {
|
|
1644
|
+
if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
|
|
1645
1645
|
return;
|
|
1646
|
-
f = f &&
|
|
1647
|
-
const p = r.transitional ||
|
|
1648
|
-
p && p.legacyInterceptorReqResOrdering ? c.unshift(
|
|
1646
|
+
f = f && y.synchronous;
|
|
1647
|
+
const p = r.transitional || ke;
|
|
1648
|
+
p && p.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
|
|
1649
1649
|
});
|
|
1650
1650
|
const l = [];
|
|
1651
|
-
this.interceptors.response.forEach(function(
|
|
1652
|
-
l.push(
|
|
1651
|
+
this.interceptors.response.forEach(function(y) {
|
|
1652
|
+
l.push(y.fulfilled, y.rejected);
|
|
1653
1653
|
});
|
|
1654
1654
|
let u, h = 0, g;
|
|
1655
1655
|
if (!f) {
|
|
1656
|
-
const d = [
|
|
1656
|
+
const d = [ft.bind(this), void 0];
|
|
1657
1657
|
for (d.unshift(...c), d.push(...l), g = d.length, u = Promise.resolve(r); h < g; )
|
|
1658
1658
|
u = u.then(d[h++], d[h++]);
|
|
1659
1659
|
return u;
|
|
@@ -1661,16 +1661,16 @@ let M = class {
|
|
|
1661
1661
|
g = c.length;
|
|
1662
1662
|
let R = r;
|
|
1663
1663
|
for (; h < g; ) {
|
|
1664
|
-
const d = c[h++],
|
|
1664
|
+
const d = c[h++], y = c[h++];
|
|
1665
1665
|
try {
|
|
1666
1666
|
R = d(R);
|
|
1667
1667
|
} catch (p) {
|
|
1668
|
-
|
|
1668
|
+
y.call(this, p);
|
|
1669
1669
|
break;
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
try {
|
|
1673
|
-
u =
|
|
1673
|
+
u = ft.call(this, R);
|
|
1674
1674
|
} catch (d) {
|
|
1675
1675
|
return Promise.reject(d);
|
|
1676
1676
|
}
|
|
@@ -1679,15 +1679,15 @@ let M = class {
|
|
|
1679
1679
|
return u;
|
|
1680
1680
|
}
|
|
1681
1681
|
getUri(e) {
|
|
1682
|
-
e =
|
|
1682
|
+
e = V(this.defaults, e);
|
|
1683
1683
|
const r = kt(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1684
1684
|
return Ut(r, e.params, e.paramsSerializer);
|
|
1685
1685
|
}
|
|
1686
1686
|
};
|
|
1687
1687
|
a.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1688
|
-
|
|
1688
|
+
H.prototype[e] = function(r, n) {
|
|
1689
1689
|
return this.request(
|
|
1690
|
-
|
|
1690
|
+
V(n || {}, {
|
|
1691
1691
|
method: e,
|
|
1692
1692
|
url: r,
|
|
1693
1693
|
data: (n || {}).data
|
|
@@ -1699,7 +1699,7 @@ a.forEach(["post", "put", "patch"], function(e) {
|
|
|
1699
1699
|
function r(n) {
|
|
1700
1700
|
return function(i, o, c) {
|
|
1701
1701
|
return this.request(
|
|
1702
|
-
|
|
1702
|
+
V(c || {}, {
|
|
1703
1703
|
method: e,
|
|
1704
1704
|
headers: n ? {
|
|
1705
1705
|
"Content-Type": "multipart/form-data"
|
|
@@ -1710,7 +1710,7 @@ a.forEach(["post", "put", "patch"], function(e) {
|
|
|
1710
1710
|
);
|
|
1711
1711
|
};
|
|
1712
1712
|
}
|
|
1713
|
-
|
|
1713
|
+
H.prototype[e] = r(), H.prototype[e + "Form"] = r(!0);
|
|
1714
1714
|
});
|
|
1715
1715
|
let An = class jt {
|
|
1716
1716
|
constructor(e) {
|
|
@@ -1793,7 +1793,7 @@ function Tn(t) {
|
|
|
1793
1793
|
function Pn(t) {
|
|
1794
1794
|
return a.isObject(t) && t.isAxiosError === !0;
|
|
1795
1795
|
}
|
|
1796
|
-
const
|
|
1796
|
+
const Ue = {
|
|
1797
1797
|
Continue: 100,
|
|
1798
1798
|
SwitchingProtocols: 101,
|
|
1799
1799
|
Processing: 102,
|
|
@@ -1864,75 +1864,75 @@ const Ne = {
|
|
|
1864
1864
|
SslHandshakeFailed: 525,
|
|
1865
1865
|
InvalidSslCertificate: 526
|
|
1866
1866
|
};
|
|
1867
|
-
Object.entries(
|
|
1868
|
-
|
|
1867
|
+
Object.entries(Ue).forEach(([t, e]) => {
|
|
1868
|
+
Ue[e] = t;
|
|
1869
1869
|
});
|
|
1870
1870
|
function $t(t) {
|
|
1871
|
-
const e = new
|
|
1872
|
-
return a.extend(r,
|
|
1873
|
-
return $t(
|
|
1871
|
+
const e = new H(t), r = _t(H.prototype.request, e);
|
|
1872
|
+
return a.extend(r, H.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1873
|
+
return $t(V(t, s));
|
|
1874
1874
|
}, r;
|
|
1875
1875
|
}
|
|
1876
1876
|
const _ = $t(ne);
|
|
1877
|
-
_.Axios =
|
|
1877
|
+
_.Axios = H;
|
|
1878
1878
|
_.CanceledError = se;
|
|
1879
1879
|
_.CancelToken = An;
|
|
1880
1880
|
_.isCancel = Lt;
|
|
1881
|
-
_.VERSION =
|
|
1882
|
-
_.toFormData =
|
|
1883
|
-
_.AxiosError =
|
|
1881
|
+
_.VERSION = qt;
|
|
1882
|
+
_.toFormData = ge;
|
|
1883
|
+
_.AxiosError = m;
|
|
1884
1884
|
_.Cancel = _.CanceledError;
|
|
1885
1885
|
_.all = function(e) {
|
|
1886
1886
|
return Promise.all(e);
|
|
1887
1887
|
};
|
|
1888
1888
|
_.spread = Tn;
|
|
1889
1889
|
_.isAxiosError = Pn;
|
|
1890
|
-
_.mergeConfig =
|
|
1890
|
+
_.mergeConfig = V;
|
|
1891
1891
|
_.AxiosHeaders = O;
|
|
1892
1892
|
_.formToJSON = (t) => Dt(a.isHTMLForm(t) ? new FormData(t) : t);
|
|
1893
|
-
_.getAdapter =
|
|
1894
|
-
_.HttpStatusCode =
|
|
1893
|
+
_.getAdapter = It.getAdapter;
|
|
1894
|
+
_.HttpStatusCode = Ue;
|
|
1895
1895
|
_.default = _;
|
|
1896
1896
|
const {
|
|
1897
|
-
Axios:
|
|
1898
|
-
AxiosError:
|
|
1899
|
-
CanceledError:
|
|
1900
|
-
isCancel:
|
|
1901
|
-
CancelToken:
|
|
1902
|
-
VERSION:
|
|
1903
|
-
all:
|
|
1904
|
-
Cancel:
|
|
1905
|
-
isAxiosError:
|
|
1906
|
-
spread:
|
|
1907
|
-
toFormData:
|
|
1908
|
-
AxiosHeaders:
|
|
1909
|
-
HttpStatusCode:
|
|
1910
|
-
formToJSON:
|
|
1911
|
-
getAdapter:
|
|
1912
|
-
mergeConfig:
|
|
1897
|
+
Axios: Vs,
|
|
1898
|
+
AxiosError: ue,
|
|
1899
|
+
CanceledError: Ks,
|
|
1900
|
+
isCancel: zs,
|
|
1901
|
+
CancelToken: Js,
|
|
1902
|
+
VERSION: Ws,
|
|
1903
|
+
all: Qs,
|
|
1904
|
+
Cancel: Xs,
|
|
1905
|
+
isAxiosError: Ys,
|
|
1906
|
+
spread: Gs,
|
|
1907
|
+
toFormData: Zs,
|
|
1908
|
+
AxiosHeaders: ei,
|
|
1909
|
+
HttpStatusCode: ti,
|
|
1910
|
+
formToJSON: ri,
|
|
1911
|
+
getAdapter: ni,
|
|
1912
|
+
mergeConfig: si
|
|
1913
1913
|
} = _;
|
|
1914
|
-
class
|
|
1914
|
+
class Te extends Error {
|
|
1915
1915
|
constructor(r) {
|
|
1916
1916
|
super(r.join(", "));
|
|
1917
1917
|
b(this, "errors");
|
|
1918
1918
|
this.name = "ValidationError", this.errors = r;
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
|
-
class
|
|
1921
|
+
class pt extends Error {
|
|
1922
1922
|
constructor(r) {
|
|
1923
1923
|
super("Address already registered.");
|
|
1924
1924
|
b(this, "address");
|
|
1925
1925
|
this.name = "AddressInUseError", this.address = r;
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
|
-
class
|
|
1928
|
+
class yt extends Error {
|
|
1929
1929
|
constructor(r) {
|
|
1930
1930
|
super("Code already registered.");
|
|
1931
1931
|
b(this, "code");
|
|
1932
1932
|
this.name = "CodeInUseError", this.code = r;
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
|
-
class
|
|
1935
|
+
class Pe extends Error {
|
|
1936
1936
|
constructor() {
|
|
1937
1937
|
super("Invalid signature provided"), this.name = "InvalidSignatureError";
|
|
1938
1938
|
}
|
|
@@ -1960,19 +1960,19 @@ class On {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
})).data;
|
|
1962
1962
|
} catch (l) {
|
|
1963
|
-
if (l instanceof
|
|
1963
|
+
if (l instanceof ue) {
|
|
1964
1964
|
const u = (f = l.response) == null ? void 0 : f.data;
|
|
1965
1965
|
if (typeof (u == null ? void 0 : u.message) == "string") {
|
|
1966
1966
|
const h = u.message.toLowerCase();
|
|
1967
|
-
throw h == "invalid signature" ? new
|
|
1967
|
+
throw h == "invalid signature" ? new Pe() : h == "address in use" ? new pt(e) : h == "code in use" ? new yt(n) : new Error(h);
|
|
1968
1968
|
} else if ((u == null ? void 0 : u.message) instanceof Array)
|
|
1969
|
-
throw new
|
|
1969
|
+
throw new Te(u.message);
|
|
1970
1970
|
}
|
|
1971
1971
|
throw l;
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
|
-
async update(e, r, n, s, i, o
|
|
1975
|
-
var
|
|
1974
|
+
async update(e, r, n, s, i, o) {
|
|
1975
|
+
var c;
|
|
1976
1976
|
try {
|
|
1977
1977
|
await this.httpClient.post({
|
|
1978
1978
|
path: `/affiliates/${e}`,
|
|
@@ -1982,20 +1982,46 @@ class On {
|
|
|
1982
1982
|
identifier_type: r,
|
|
1983
1983
|
signature: s,
|
|
1984
1984
|
signature_public_key: i,
|
|
1985
|
-
account_chain_id: o
|
|
1986
|
-
user_rebate_rate: c
|
|
1985
|
+
account_chain_id: o
|
|
1987
1986
|
}
|
|
1988
1987
|
});
|
|
1989
|
-
} catch (
|
|
1990
|
-
if (
|
|
1991
|
-
const
|
|
1992
|
-
if (typeof (
|
|
1993
|
-
const
|
|
1994
|
-
throw
|
|
1995
|
-
} else if ((
|
|
1996
|
-
throw new
|
|
1988
|
+
} catch (f) {
|
|
1989
|
+
if (f instanceof ue) {
|
|
1990
|
+
const l = (c = f.response) == null ? void 0 : c.data;
|
|
1991
|
+
if (typeof (l == null ? void 0 : l.message) == "string") {
|
|
1992
|
+
const u = l.message.toLowerCase();
|
|
1993
|
+
throw u == "invalid signature" ? new Pe() : u == "address in use" ? new pt(e) : u == "code in use" ? new yt(n) : new Error(u);
|
|
1994
|
+
} else if ((l == null ? void 0 : l.message) instanceof Array)
|
|
1995
|
+
throw new Te(l.message);
|
|
1997
1996
|
}
|
|
1998
|
-
throw
|
|
1997
|
+
throw f;
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
async updateRebateRate(e, r, n, s, i, o, c, f) {
|
|
2001
|
+
var l;
|
|
2002
|
+
try {
|
|
2003
|
+
await this.httpClient.post({
|
|
2004
|
+
path: `/affiliates/${e}/rebate-rate`,
|
|
2005
|
+
postData: {
|
|
2006
|
+
identifier_type: r,
|
|
2007
|
+
code: n,
|
|
2008
|
+
signature: s,
|
|
2009
|
+
signature_public_key: o,
|
|
2010
|
+
account_chain_id: c,
|
|
2011
|
+
source_project_id: f,
|
|
2012
|
+
rebate_rate: i
|
|
2013
|
+
}
|
|
2014
|
+
});
|
|
2015
|
+
} catch (u) {
|
|
2016
|
+
if (u instanceof ue) {
|
|
2017
|
+
const h = (l = u.response) == null ? void 0 : l.data;
|
|
2018
|
+
if (typeof (h == null ? void 0 : h.message) == "string") {
|
|
2019
|
+
const g = h.message.toLowerCase();
|
|
2020
|
+
throw g == "invalid signature" ? new Pe() : new Error(g);
|
|
2021
|
+
} else if ((h == null ? void 0 : h.message) instanceof Array)
|
|
2022
|
+
throw new Te(h.message);
|
|
2023
|
+
}
|
|
2024
|
+
throw u;
|
|
1999
2025
|
}
|
|
2000
2026
|
}
|
|
2001
2027
|
async isCodeFree(e) {
|
|
@@ -2017,7 +2043,7 @@ class On {
|
|
|
2017
2043
|
try {
|
|
2018
2044
|
return (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data;
|
|
2019
2045
|
} catch (s) {
|
|
2020
|
-
if (s instanceof
|
|
2046
|
+
if (s instanceof ue && ((n = s.response) == null ? void 0 : n.status) === 404)
|
|
2021
2047
|
return null;
|
|
2022
2048
|
throw console.error("Fuul SDK: Could not get affiliate code", s), s;
|
|
2023
2049
|
}
|
|
@@ -2037,7 +2063,7 @@ class xn {
|
|
|
2037
2063
|
})).data;
|
|
2038
2064
|
}
|
|
2039
2065
|
}
|
|
2040
|
-
const
|
|
2066
|
+
const mt = "/claim-checks";
|
|
2041
2067
|
class Un {
|
|
2042
2068
|
constructor(e) {
|
|
2043
2069
|
b(this, "httpClient");
|
|
@@ -2053,7 +2079,7 @@ class Un {
|
|
|
2053
2079
|
*/
|
|
2054
2080
|
async getClaimableChecks(e) {
|
|
2055
2081
|
return (await this.httpClient.post({
|
|
2056
|
-
path: `${
|
|
2082
|
+
path: `${mt}/claim`,
|
|
2057
2083
|
postData: {
|
|
2058
2084
|
userIdentifier: e.user_identifier,
|
|
2059
2085
|
userIdentifierType: e.user_identifier_type
|
|
@@ -2069,7 +2095,7 @@ class Un {
|
|
|
2069
2095
|
*/
|
|
2070
2096
|
async getClaimCheckTotals(e) {
|
|
2071
2097
|
return (await this.httpClient.get({
|
|
2072
|
-
path: `${
|
|
2098
|
+
path: `${mt}/totals`,
|
|
2073
2099
|
queryParams: {
|
|
2074
2100
|
user_identifier: e.user_identifier,
|
|
2075
2101
|
user_identifier_type: e.user_identifier_type
|
|
@@ -2146,7 +2172,7 @@ class kn {
|
|
|
2146
2172
|
const vn = "0.0.0", Bn = {
|
|
2147
2173
|
version: vn
|
|
2148
2174
|
};
|
|
2149
|
-
class
|
|
2175
|
+
class In {
|
|
2150
2176
|
constructor(e) {
|
|
2151
2177
|
b(this, "client");
|
|
2152
2178
|
b(this, "defaultQueryParams");
|
|
@@ -2201,7 +2227,7 @@ class qn {
|
|
|
2201
2227
|
});
|
|
2202
2228
|
}
|
|
2203
2229
|
}
|
|
2204
|
-
class
|
|
2230
|
+
class qn {
|
|
2205
2231
|
constructor(e) {
|
|
2206
2232
|
b(this, "httpClient");
|
|
2207
2233
|
this.httpClient = e.httpClient;
|
|
@@ -2394,7 +2420,7 @@ let Hn = (t = 21) => {
|
|
|
2394
2420
|
e += Mn[r[t] & 63];
|
|
2395
2421
|
return e;
|
|
2396
2422
|
};
|
|
2397
|
-
const Vn = "fuul.tracking_id",
|
|
2423
|
+
const Vn = "fuul.tracking_id", Ie = () => Xn(Vn, () => Hn()), bt = () => W("af") || W("referrer"), Kn = () => document.referrer, zn = () => Yn(), Jn = () => W("category"), Wn = () => W("title"), Qn = () => W("tag"), Xn = (t, e) => {
|
|
2398
2424
|
const r = localStorage.getItem(t);
|
|
2399
2425
|
if (r)
|
|
2400
2426
|
return r;
|
|
@@ -2417,27 +2443,27 @@ class Zn {
|
|
|
2417
2443
|
}
|
|
2418
2444
|
}
|
|
2419
2445
|
const es = "https://api.fuul.xyz/api/v1/";
|
|
2420
|
-
let k = !1,
|
|
2446
|
+
let k = !1, De = !1, qe, L, Mt, Ht, I, je, be, X, Vt, K, q, $e;
|
|
2421
2447
|
function ts(t) {
|
|
2422
|
-
k = !!t.debug, !
|
|
2448
|
+
k = !!t.debug, !De && (qe = t.apiKey, Bs(), L = Is(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), be = new kn({ httpClient: L, debug: k }), I = new On({ httpClient: L, debug: k }), je = new Wt({ httpClient: L }), X = new jn({ httpClient: L, debug: k }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), K = new qn({ httpClient: L }), q = new $n({ httpClient: L, debug: k }), $e = new Un({ httpClient: L, debug: k }), De = !0, k && console.debug("Fuul SDK: init() complete"));
|
|
2423
2449
|
}
|
|
2424
2450
|
function w() {
|
|
2425
|
-
if (!
|
|
2451
|
+
if (!De)
|
|
2426
2452
|
throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
|
|
2427
2453
|
}
|
|
2428
2454
|
async function rs(t, e) {
|
|
2429
|
-
w(),
|
|
2455
|
+
w(), Me(), He();
|
|
2430
2456
|
const r = {
|
|
2431
2457
|
name: t,
|
|
2432
2458
|
args: e ?? {},
|
|
2433
2459
|
metadata: {
|
|
2434
|
-
tracking_id:
|
|
2460
|
+
tracking_id: Ie()
|
|
2435
2461
|
}
|
|
2436
2462
|
};
|
|
2437
|
-
await
|
|
2463
|
+
await be.sendEvent(r);
|
|
2438
2464
|
}
|
|
2439
2465
|
async function ns(t, e) {
|
|
2440
|
-
w(),
|
|
2466
|
+
w(), Me(), He();
|
|
2441
2467
|
const r = {
|
|
2442
2468
|
name: "pageview",
|
|
2443
2469
|
args: {
|
|
@@ -2445,7 +2471,7 @@ async function ns(t, e) {
|
|
|
2445
2471
|
locationOrigin: document.location.origin
|
|
2446
2472
|
},
|
|
2447
2473
|
metadata: {
|
|
2448
|
-
tracking_id:
|
|
2474
|
+
tracking_id: Ie(),
|
|
2449
2475
|
referrer_url: Kn(),
|
|
2450
2476
|
source: zn(),
|
|
2451
2477
|
affiliate_id: bt() ?? void 0,
|
|
@@ -2455,10 +2481,10 @@ async function ns(t, e) {
|
|
|
2455
2481
|
tag: Qn() ?? void 0
|
|
2456
2482
|
}
|
|
2457
2483
|
};
|
|
2458
|
-
await
|
|
2484
|
+
await be.sendEvent(r, e);
|
|
2459
2485
|
}
|
|
2460
2486
|
async function ss(t, e) {
|
|
2461
|
-
w(),
|
|
2487
|
+
w(), Me(), He();
|
|
2462
2488
|
const r = {
|
|
2463
2489
|
name: "connect_wallet",
|
|
2464
2490
|
user: {
|
|
@@ -2470,13 +2496,13 @@ async function ss(t, e) {
|
|
|
2470
2496
|
locationOrigin: document.location.origin
|
|
2471
2497
|
},
|
|
2472
2498
|
metadata: {
|
|
2473
|
-
tracking_id:
|
|
2499
|
+
tracking_id: Ie()
|
|
2474
2500
|
}
|
|
2475
2501
|
};
|
|
2476
|
-
t != null && t.signature && (r.signature = t == null ? void 0 : t.signature, r.signature_message = t == null ? void 0 : t.message), t != null && t.signaturePublicKey && (r.signature_public_key = t.signaturePublicKey), t != null && t.accountChainId && (r.account_chain_id = t.accountChainId), await
|
|
2502
|
+
t != null && t.signature && (r.signature = t == null ? void 0 : t.signature, r.signature_message = t == null ? void 0 : t.message), t != null && t.signaturePublicKey && (r.signature_public_key = t.signaturePublicKey), t != null && t.accountChainId && (r.account_chain_id = t.accountChainId), await be.sendEvent(r, e);
|
|
2477
2503
|
}
|
|
2478
2504
|
async function is(t) {
|
|
2479
|
-
return w(),
|
|
2505
|
+
return w(), I.create(
|
|
2480
2506
|
t.userIdentifier,
|
|
2481
2507
|
t.identifierType,
|
|
2482
2508
|
t.code,
|
|
@@ -2487,170 +2513,182 @@ async function is(t) {
|
|
|
2487
2513
|
);
|
|
2488
2514
|
}
|
|
2489
2515
|
async function os(t) {
|
|
2490
|
-
w(), await
|
|
2516
|
+
w(), await I.update(
|
|
2491
2517
|
t.userIdentifier,
|
|
2492
2518
|
t.identifierType,
|
|
2493
2519
|
t.code,
|
|
2494
2520
|
t.signature,
|
|
2495
2521
|
t.signaturePublicKey,
|
|
2496
|
-
t.accountChainId
|
|
2497
|
-
t.userRebateRate
|
|
2522
|
+
t.accountChainId
|
|
2498
2523
|
);
|
|
2499
2524
|
}
|
|
2500
|
-
async function as(t
|
|
2501
|
-
|
|
2525
|
+
async function as(t) {
|
|
2526
|
+
w(), await I.updateRebateRate(
|
|
2527
|
+
t.userIdentifier,
|
|
2528
|
+
t.identifierType,
|
|
2529
|
+
t.code,
|
|
2530
|
+
t.signature,
|
|
2531
|
+
t.rebateRate,
|
|
2532
|
+
t.signaturePublicKey,
|
|
2533
|
+
t.accountChainId,
|
|
2534
|
+
t.sourceProjectId
|
|
2535
|
+
);
|
|
2502
2536
|
}
|
|
2503
|
-
async function cs(t) {
|
|
2504
|
-
return w(), await
|
|
2537
|
+
async function cs(t, e) {
|
|
2538
|
+
return w(), await I.getCode(t, e);
|
|
2505
2539
|
}
|
|
2506
2540
|
async function us(t) {
|
|
2507
|
-
return w(), await
|
|
2541
|
+
return w(), await I.isCodeFree(t);
|
|
2508
2542
|
}
|
|
2509
|
-
async function ls(t
|
|
2543
|
+
async function ls(t) {
|
|
2544
|
+
return w(), await I.isCodeAvailable(t);
|
|
2545
|
+
}
|
|
2546
|
+
async function ds(t, e, r, n) {
|
|
2510
2547
|
w();
|
|
2511
|
-
const s = await
|
|
2548
|
+
const s = await I.getCode(e, r), i = new URLSearchParams({
|
|
2512
2549
|
af: (s == null ? void 0 : s.code) ?? e
|
|
2513
2550
|
});
|
|
2514
2551
|
return n != null && n.title && i.append("af_title", n.title), n != null && n.format && i.append("af_format", n.format), n != null && n.place && i.append("af_place", n.place), `${t}?${i.toString()}`;
|
|
2515
2552
|
}
|
|
2516
|
-
function
|
|
2553
|
+
function fs(t) {
|
|
2517
2554
|
return K.getPayoutsLeaderboard(t);
|
|
2518
2555
|
}
|
|
2519
|
-
function
|
|
2556
|
+
function hs(t) {
|
|
2520
2557
|
return K.getPointsLeaderboard(t);
|
|
2521
2558
|
}
|
|
2522
|
-
function
|
|
2559
|
+
function ps(t) {
|
|
2523
2560
|
return K.getReferredUsersLeaderboard(t);
|
|
2524
2561
|
}
|
|
2525
|
-
function
|
|
2562
|
+
function ys(t) {
|
|
2526
2563
|
return w(), K.getReferredVolume(t);
|
|
2527
2564
|
}
|
|
2528
2565
|
function ms(t) {
|
|
2529
2566
|
return w(), K.getVolumeLeaderboard(t);
|
|
2530
2567
|
}
|
|
2531
|
-
function
|
|
2568
|
+
function gs(t) {
|
|
2532
2569
|
return w(), K.getRevenueLeaderboard(t);
|
|
2533
2570
|
}
|
|
2534
|
-
function
|
|
2571
|
+
function ws(t) {
|
|
2535
2572
|
return X.getUserPayoutsByConversion(t);
|
|
2536
2573
|
}
|
|
2537
|
-
function
|
|
2574
|
+
function bs(t) {
|
|
2538
2575
|
return X.getUserPointsByConversion(t);
|
|
2539
2576
|
}
|
|
2540
|
-
function
|
|
2577
|
+
function _s(t) {
|
|
2541
2578
|
return X.getUserPayoutMovements(t);
|
|
2542
2579
|
}
|
|
2543
|
-
function
|
|
2580
|
+
function Es(t) {
|
|
2544
2581
|
return X.getUserPointsMovements(t);
|
|
2545
2582
|
}
|
|
2546
|
-
function
|
|
2583
|
+
function Rs(t) {
|
|
2547
2584
|
return w(), X.getPayoutsByReferrer(t);
|
|
2548
2585
|
}
|
|
2549
|
-
async function Rs(t) {
|
|
2550
|
-
return w(), Mt.getAll(t);
|
|
2551
|
-
}
|
|
2552
2586
|
async function Cs(t) {
|
|
2553
|
-
return w(),
|
|
2587
|
+
return w(), Mt.getAll(t);
|
|
2554
2588
|
}
|
|
2555
2589
|
async function Ss(t) {
|
|
2556
|
-
return w(),
|
|
2590
|
+
return w(), Ht.getUserReferrer(t);
|
|
2557
2591
|
}
|
|
2558
2592
|
async function As(t) {
|
|
2559
|
-
return w(),
|
|
2593
|
+
return w(), Vt.getUserAudiences(t);
|
|
2560
2594
|
}
|
|
2561
2595
|
async function Ts(t) {
|
|
2562
|
-
return w(), q.
|
|
2596
|
+
return w(), q.listUserReferralCodes(t);
|
|
2563
2597
|
}
|
|
2564
2598
|
async function Ps(t) {
|
|
2565
|
-
return w(), q.
|
|
2599
|
+
return w(), q.generateReferralCodes(t);
|
|
2566
2600
|
}
|
|
2567
2601
|
async function Os(t) {
|
|
2568
|
-
return w(), q.
|
|
2602
|
+
return w(), q.getReferralStatus(t);
|
|
2569
2603
|
}
|
|
2570
2604
|
async function Ns(t) {
|
|
2571
|
-
return w(), q.
|
|
2605
|
+
return w(), q.getReferralCode(t);
|
|
2572
2606
|
}
|
|
2573
2607
|
async function xs(t) {
|
|
2574
|
-
return w(), q.
|
|
2608
|
+
return w(), q.useReferralCode(t);
|
|
2575
2609
|
}
|
|
2576
2610
|
async function Us(t) {
|
|
2577
|
-
return w(), q.
|
|
2611
|
+
return w(), q.updateReferralCode(t);
|
|
2578
2612
|
}
|
|
2579
2613
|
async function Ds(t) {
|
|
2580
|
-
return w(),
|
|
2614
|
+
return w(), q.deleteReferral(t);
|
|
2581
2615
|
}
|
|
2582
2616
|
async function Ls(t) {
|
|
2583
|
-
return w(),
|
|
2617
|
+
return w(), je.getAffiliateStats(t);
|
|
2584
2618
|
}
|
|
2585
2619
|
async function Fs(t) {
|
|
2586
|
-
return w(),
|
|
2620
|
+
return w(), je.getAffiliateNewTraders(t);
|
|
2587
2621
|
}
|
|
2588
2622
|
async function ks(t) {
|
|
2589
|
-
return w(),
|
|
2623
|
+
return w(), $e.getClaimableChecks(t);
|
|
2624
|
+
}
|
|
2625
|
+
async function vs(t) {
|
|
2626
|
+
return w(), $e.getClaimCheckTotals(t);
|
|
2590
2627
|
}
|
|
2591
|
-
function
|
|
2628
|
+
function Me() {
|
|
2592
2629
|
if (typeof window > "u" || typeof document > "u")
|
|
2593
2630
|
throw new Error("Fuul SDK: Browser context required");
|
|
2594
2631
|
}
|
|
2595
|
-
function
|
|
2632
|
+
function He() {
|
|
2596
2633
|
if (navigator.webdriver)
|
|
2597
2634
|
throw new Error("Fuul SDK: Error");
|
|
2598
2635
|
}
|
|
2599
|
-
function
|
|
2600
|
-
if (!
|
|
2636
|
+
function Bs() {
|
|
2637
|
+
if (!qe)
|
|
2601
2638
|
throw new Error("Fuul SDK: Invalid API key");
|
|
2602
2639
|
}
|
|
2603
|
-
function
|
|
2604
|
-
return new
|
|
2640
|
+
function Is(t, e) {
|
|
2641
|
+
return new In({
|
|
2605
2642
|
baseURL: t,
|
|
2606
2643
|
timeout: 3e4,
|
|
2607
|
-
apiKey:
|
|
2644
|
+
apiKey: qe,
|
|
2608
2645
|
queryParams: e
|
|
2609
2646
|
});
|
|
2610
2647
|
}
|
|
2611
|
-
const
|
|
2648
|
+
const ii = {
|
|
2612
2649
|
init: ts,
|
|
2613
2650
|
sendEvent: rs,
|
|
2614
2651
|
sendPageview: ns,
|
|
2615
2652
|
identifyUser: ss,
|
|
2616
|
-
generateTrackingLink:
|
|
2617
|
-
getConversions:
|
|
2653
|
+
generateTrackingLink: ds,
|
|
2654
|
+
getConversions: Cs,
|
|
2618
2655
|
createAffiliateCode: is,
|
|
2619
2656
|
updateAffiliateCode: os,
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2657
|
+
updateRebateRate: as,
|
|
2658
|
+
getAffiliateCode: cs,
|
|
2659
|
+
isAffiliateCodeFree: us,
|
|
2660
|
+
isAffiliateCodeAvailable: ls,
|
|
2661
|
+
getPayoutsLeaderboard: fs,
|
|
2662
|
+
getPointsLeaderboard: hs,
|
|
2663
|
+
getReferredUsersLeaderboard: ps,
|
|
2664
|
+
getReferredVolume: ys,
|
|
2665
|
+
getUserAudiences: As,
|
|
2666
|
+
getUserPayoutsByConversion: ws,
|
|
2667
|
+
getUserPointsByConversion: bs,
|
|
2668
|
+
getUserPointsMovements: Es,
|
|
2669
|
+
getUserPayoutMovements: _s,
|
|
2670
|
+
getPayoutsByReferrer: Rs,
|
|
2671
|
+
getUserReferrer: Ss,
|
|
2634
2672
|
getVolumeLeaderboard: ms,
|
|
2635
|
-
getRevenueLeaderboard:
|
|
2636
|
-
listUserReferralCodes:
|
|
2637
|
-
generateReferralCodes:
|
|
2638
|
-
getReferralStatus:
|
|
2639
|
-
getReferralCode:
|
|
2640
|
-
useReferralCode:
|
|
2641
|
-
updateReferralCode:
|
|
2642
|
-
deleteReferral:
|
|
2643
|
-
getAffiliateStats:
|
|
2644
|
-
getAffiliateNewTraders:
|
|
2645
|
-
getClaimableChecks:
|
|
2646
|
-
getClaimCheckTotals:
|
|
2673
|
+
getRevenueLeaderboard: gs,
|
|
2674
|
+
listUserReferralCodes: Ts,
|
|
2675
|
+
generateReferralCodes: Ps,
|
|
2676
|
+
getReferralStatus: Os,
|
|
2677
|
+
getReferralCode: Ns,
|
|
2678
|
+
useReferralCode: xs,
|
|
2679
|
+
updateReferralCode: Us,
|
|
2680
|
+
deleteReferral: Ds,
|
|
2681
|
+
getAffiliateStats: Ls,
|
|
2682
|
+
getAffiliateNewTraders: Fs,
|
|
2683
|
+
getClaimableChecks: ks,
|
|
2684
|
+
getClaimCheckTotals: vs
|
|
2647
2685
|
};
|
|
2648
2686
|
var qs = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(qs || {});
|
|
2649
2687
|
export {
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2688
|
+
pt as AddressInUseError,
|
|
2689
|
+
yt as CodeInUseError,
|
|
2690
|
+
ii as Fuul,
|
|
2691
|
+
Pe as InvalidSignatureError,
|
|
2654
2692
|
qs as UserIdentifierType,
|
|
2655
|
-
|
|
2693
|
+
Te as ValidationError
|
|
2656
2694
|
};
|