@fuul/sdk 7.21.0 → 7.23.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/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 Ae = "/affiliate-portal";
4
+ const Z = "/affiliate-portal";
5
5
  class Wt {
6
6
  constructor(e) {
7
7
  b(this, "httpClient");
@@ -9,20 +9,21 @@ class Wt {
9
9
  }
10
10
  async getAffiliateStats(e) {
11
11
  return (await this.httpClient.get({
12
- path: `${Ae}/stats`,
12
+ path: `${Z}/stats`,
13
13
  queryParams: {
14
14
  user_identifier: e.user_identifier,
15
15
  from: e.from,
16
16
  to: e.to,
17
17
  this_month: e.this_month,
18
18
  conversion_id: e.conversion_id,
19
+ conversion_external_id: e.conversion_external_id,
19
20
  conversion_name: e.conversion_name
20
21
  }
21
22
  })).data;
22
23
  }
23
24
  async getAffiliateTotalStats(e) {
24
25
  return (await this.httpClient.get({
25
- path: `${Ae}/total-stats`,
26
+ path: `${Z}/total-stats`,
26
27
  queryParams: {
27
28
  statuses: e.statuses,
28
29
  regions: e.regions,
@@ -30,9 +31,32 @@ class Wt {
30
31
  }
31
32
  })).data;
32
33
  }
34
+ async getReferralTree(e) {
35
+ return (await this.httpClient.get({
36
+ path: `${Z}/referral-tree`,
37
+ queryParams: {
38
+ user_identifier: e.user_identifier
39
+ }
40
+ })).data;
41
+ }
42
+ async getStatsBreakdown(e) {
43
+ return (await this.httpClient.get({
44
+ path: `${Z}/stats-breakdown`,
45
+ queryParams: {
46
+ user_identifier: e.user_identifier,
47
+ group_by: e.group_by,
48
+ date_range: e.date_range,
49
+ from: e.from,
50
+ to: e.to,
51
+ conversion_external_id: e.conversion_external_id,
52
+ conversion_name: e.conversion_name,
53
+ currency_id: e.currency_id
54
+ }
55
+ })).data;
56
+ }
33
57
  async getAffiliateNewTraders(e) {
34
58
  return (await this.httpClient.get({
35
- path: `${Ae}/new-traders`,
59
+ path: `${Z}/new-traders`,
36
60
  queryParams: {
37
61
  user_identifier: e.user_identifier,
38
62
  from: e.from,
@@ -47,11 +71,11 @@ function _t(t, e) {
47
71
  return t.apply(e, arguments);
48
72
  };
49
73
  }
50
- const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: me, toStringTag: Ct } = Symbol, ge = /* @__PURE__ */ ((t) => (e) => {
74
+ const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: we, toStringTag: Ct } = Symbol, be = /* @__PURE__ */ ((t) => (e) => {
51
75
  const r = Qt.call(e);
52
76
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
53
- })(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => ge(e) === t), we = (t) => (e) => typeof e === t, { isArray: Q } = Array, J = we("undefined");
54
- function ee(t) {
77
+ })(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => be(e) === t), _e = (t) => (e) => typeof e === t, { isArray: Q } = Array, J = _e("undefined");
78
+ function re(t) {
55
79
  return t !== null && !J(t) && t.constructor !== null && !J(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
56
80
  }
57
81
  const Et = F("ArrayBuffer");
@@ -59,26 +83,26 @@ function Xt(t) {
59
83
  let e;
60
84
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Et(t.buffer), e;
61
85
  }
62
- const Yt = we("string"), P = we("function"), Rt = we("number"), te = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, fe = (t) => {
63
- if (ge(t) !== "object")
86
+ const Yt = _e("string"), P = _e("function"), Rt = _e("number"), ne = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, pe = (t) => {
87
+ if (be(t) !== "object")
64
88
  return !1;
65
89
  const e = Be(t);
66
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ct in t) && !(me in t);
90
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ct in t) && !(we in t);
67
91
  }, Zt = (t) => {
68
- if (!te(t) || ee(t))
92
+ if (!ne(t) || re(t))
69
93
  return !1;
70
94
  try {
71
95
  return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
72
96
  } catch {
73
97
  return !1;
74
98
  }
75
- }, er = F("Date"), tr = F("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = F("Blob"), ir = F("FileList"), or = (t) => te(t) && P(t.pipe);
99
+ }, er = F("Date"), tr = F("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = F("Blob"), ir = F("FileList"), or = (t) => ne(t) && P(t.pipe);
76
100
  function ar() {
77
101
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
78
102
  }
79
103
  const Ge = ar(), Ze = typeof Ge.FormData < "u" ? Ge.FormData : void 0, cr = (t) => {
80
104
  let e;
81
- return t && (Ze && t instanceof Ze || P(t.append) && ((e = ge(t)) === "formdata" || // detect form-data instance
105
+ return t && (Ze && t instanceof Ze || P(t.append) && ((e = be(t)) === "formdata" || // detect form-data instance
82
106
  e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
83
107
  }, ur = F("URLSearchParams"), [lr, dr, fr, hr] = [
84
108
  "ReadableStream",
@@ -86,7 +110,7 @@ const Ge = ar(), Ze = typeof Ge.FormData < "u" ? Ge.FormData : void 0, cr = (t)
86
110
  "Response",
87
111
  "Headers"
88
112
  ].map(F), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
89
- function re(t, e, { allOwnKeys: r = !1 } = {}) {
113
+ function se(t, e, { allOwnKeys: r = !1 } = {}) {
90
114
  if (t === null || typeof t > "u")
91
115
  return;
92
116
  let n, s;
@@ -94,7 +118,7 @@ function re(t, e, { allOwnKeys: r = !1 } = {}) {
94
118
  for (n = 0, s = t.length; n < s; n++)
95
119
  e.call(null, t[n], n, t);
96
120
  else {
97
- if (ee(t))
121
+ if (re(t))
98
122
  return;
99
123
  const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
100
124
  let c;
@@ -103,7 +127,7 @@ function re(t, e, { allOwnKeys: r = !1 } = {}) {
103
127
  }
104
128
  }
105
129
  function St(t, e) {
106
- if (ee(t))
130
+ if (re(t))
107
131
  return null;
108
132
  e = e.toLowerCase();
109
133
  const r = Object.keys(t);
@@ -113,19 +137,19 @@ function St(t, e) {
113
137
  return s;
114
138
  return null;
115
139
  }
116
- const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, At = (t) => !J(t) && t !== M;
140
+ const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tt = (t) => !J(t) && t !== M;
117
141
  function De() {
118
- const { caseless: t, skipUndefined: e } = At(this) && this || {}, r = {}, n = (s, i) => {
142
+ const { caseless: t, skipUndefined: e } = Tt(this) && this || {}, r = {}, n = (s, i) => {
119
143
  if (i === "__proto__" || i === "constructor" || i === "prototype")
120
144
  return;
121
145
  const o = t && St(r, i) || i;
122
- fe(r[o]) && fe(s) ? r[o] = De(r[o], s) : fe(s) ? r[o] = De({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
146
+ pe(r[o]) && pe(s) ? r[o] = De(r[o], s) : pe(s) ? r[o] = De({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
123
147
  };
124
148
  for (let s = 0, i = arguments.length; s < i; s++)
125
- arguments[s] && re(arguments[s], n);
149
+ arguments[s] && se(arguments[s], n);
126
150
  return r;
127
151
  }
128
- const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
152
+ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
129
153
  e,
130
154
  (s, i) => {
131
155
  r && P(s) ? Object.defineProperty(t, i, {
@@ -174,7 +198,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
174
198
  r[e] = t[e];
175
199
  return r;
176
200
  }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Er = (t, e) => {
177
- const n = (t && t[me]).call(t);
201
+ const n = (t && t[we]).call(t);
178
202
  let s;
179
203
  for (; (s = n.next()) && !s.done; ) {
180
204
  const i = s.value;
@@ -186,16 +210,16 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
186
210
  for (; (r = t.exec(e)) !== null; )
187
211
  n.push(r);
188
212
  return n;
189
- }, Sr = F("HTMLFormElement"), Ar = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
213
+ }, Sr = F("HTMLFormElement"), Tr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
190
214
  return n.toUpperCase() + s;
191
- }), et = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = F("RegExp"), Tt = (t, e) => {
215
+ }), et = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ar = F("RegExp"), At = (t, e) => {
192
216
  const r = Object.getOwnPropertyDescriptors(t), n = {};
193
- re(r, (s, i) => {
217
+ se(r, (s, i) => {
194
218
  let o;
195
219
  (o = e(s, i, t)) !== !1 && (n[i] = o || s);
196
220
  }), Object.defineProperties(t, n);
197
221
  }, Pr = (t) => {
198
- Tt(t, (e, r) => {
222
+ At(t, (e, r) => {
199
223
  if (P(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
200
224
  return !1;
201
225
  const n = t[r];
@@ -219,19 +243,19 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
219
243
  }, Nr = () => {
220
244
  }, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
221
245
  function Ur(t) {
222
- return !!(t && P(t.append) && t[Ct] === "FormData" && t[me]);
246
+ return !!(t && P(t.append) && t[Ct] === "FormData" && t[we]);
223
247
  }
224
248
  const Dr = (t) => {
225
249
  const e = new Array(10), r = (n, s) => {
226
- if (te(n)) {
250
+ if (ne(n)) {
227
251
  if (e.indexOf(n) >= 0)
228
252
  return;
229
- if (ee(n))
253
+ if (re(n))
230
254
  return n;
231
255
  if (!("toJSON" in n)) {
232
256
  e[s] = n;
233
257
  const i = Q(n) ? [] : {};
234
- return re(n, (o, c) => {
258
+ return se(n, (o, c) => {
235
259
  const f = r(o, s + 1);
236
260
  !J(f) && (i[c] = f);
237
261
  }), e[s] = void 0, i;
@@ -240,7 +264,7 @@ const Dr = (t) => {
240
264
  return n;
241
265
  };
242
266
  return r(t, 0);
243
- }, 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(
267
+ }, Lr = F("AsyncFunction"), Fr = (t) => t && (ne(t) || P(t)) && P(t.then) && P(t.catch), Pt = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener(
244
268
  "message",
245
269
  ({ source: s, data: i }) => {
246
270
  s === M && i === r && n.length && n.shift()();
@@ -248,17 +272,17 @@ const Dr = (t) => {
248
272
  !1
249
273
  ), (s) => {
250
274
  n.push(s), M.postMessage(r, "*");
251
- }))(`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[me]), a = {
275
+ }))(`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[we]), a = {
252
276
  isArray: Q,
253
277
  isArrayBuffer: Et,
254
- isBuffer: ee,
278
+ isBuffer: re,
255
279
  isFormData: cr,
256
280
  isArrayBufferView: Xt,
257
281
  isString: Yt,
258
282
  isNumber: Rt,
259
283
  isBoolean: Gt,
260
- isObject: te,
261
- isPlainObject: fe,
284
+ isObject: ne,
285
+ isPlainObject: pe,
262
286
  isEmptyObject: Zt,
263
287
  isReadableStream: lr,
264
288
  isRequest: dr,
@@ -270,20 +294,20 @@ const Dr = (t) => {
270
294
  isReactNativeBlob: rr,
271
295
  isReactNative: nr,
272
296
  isBlob: sr,
273
- isRegExp: Tr,
297
+ isRegExp: Ar,
274
298
  isFunction: P,
275
299
  isStream: or,
276
300
  isURLSearchParams: ur,
277
301
  isTypedArray: Cr,
278
302
  isFileList: ir,
279
- forEach: re,
303
+ forEach: se,
280
304
  merge: De,
281
305
  extend: yr,
282
306
  trim: pr,
283
307
  stripBOM: mr,
284
308
  inherits: gr,
285
309
  toFlatObject: wr,
286
- kindOf: ge,
310
+ kindOf: be,
287
311
  kindOfTest: F,
288
312
  endsWith: br,
289
313
  toArray: _r,
@@ -293,15 +317,15 @@ const Dr = (t) => {
293
317
  hasOwnProperty: et,
294
318
  hasOwnProp: et,
295
319
  // an alias to avoid ESLint no-prototype-builtins detection
296
- reduceDescriptors: Tt,
320
+ reduceDescriptors: At,
297
321
  freezeMethods: Pr,
298
322
  toObjectSet: Or,
299
- toCamelCase: Ar,
323
+ toCamelCase: Tr,
300
324
  noop: Nr,
301
325
  toFiniteNumber: xr,
302
326
  findKey: St,
303
327
  global: M,
304
- isContextDefined: At,
328
+ isContextDefined: Tt,
305
329
  isSpecCompliantForm: Ur,
306
330
  toJSONObject: Dr,
307
331
  isAsyncFn: Lr,
@@ -373,18 +397,18 @@ function Le(t) {
373
397
  function Nt(t) {
374
398
  return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
375
399
  }
376
- function Te(t, e, r) {
400
+ function Ae(t, e, r) {
377
401
  return t ? t.concat(e).map(function(s, i) {
378
402
  return s = Nt(s), !r && i ? "[" + s + "]" : s;
379
403
  }).join(r ? "." : "") : e;
380
404
  }
381
- function Ir(t) {
405
+ function qr(t) {
382
406
  return a.isArray(t) && !t.some(Le);
383
407
  }
384
- const qr = a.toFlatObject(a, {}, null, function(e) {
408
+ const Ir = a.toFlatObject(a, {}, null, function(e) {
385
409
  return /^is[A-Z]/.test(e);
386
410
  });
387
- function be(t, e, r) {
411
+ function Ce(t, e, r) {
388
412
  if (!a.isObject(t))
389
413
  throw new TypeError("target must be an object");
390
414
  e = e || new FormData(), r = a.toFlatObject(
@@ -415,22 +439,22 @@ function be(t, e, r) {
415
439
  function u(d, y, p) {
416
440
  let C = d;
417
441
  if (a.isReactNative(e) && a.isReactNativeBlob(d))
418
- return e.append(Te(p, y, i), l(d)), !1;
442
+ return e.append(Ae(p, y, i), l(d)), !1;
419
443
  if (d && !p && typeof d == "object") {
420
444
  if (a.endsWith(y, "{}"))
421
445
  y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
422
- else if (a.isArray(d) && Ir(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (C = a.toArray(d)))
423
- return y = Nt(y), C.forEach(function(R, A) {
446
+ else if (a.isArray(d) && qr(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (C = a.toArray(d)))
447
+ return y = Nt(y), C.forEach(function(R, T) {
424
448
  !(a.isUndefined(R) || R === null) && e.append(
425
449
  // eslint-disable-next-line no-nested-ternary
426
- o === !0 ? Te([y], A, i) : o === null ? y : y + "[]",
450
+ o === !0 ? Ae([y], T, i) : o === null ? y : y + "[]",
427
451
  l(R)
428
452
  );
429
453
  }), !1;
430
454
  }
431
- return Le(d) ? !0 : (e.append(Te(p, y, i), l(d)), !1);
455
+ return Le(d) ? !0 : (e.append(Ae(p, y, i), l(d)), !1);
432
456
  }
433
- const h = [], g = Object.assign(qr, {
457
+ const h = [], g = Object.assign(Ir, {
434
458
  defaultVisitor: u,
435
459
  convertValue: l,
436
460
  isVisitable: Le
@@ -462,10 +486,10 @@ function tt(t) {
462
486
  return e[n];
463
487
  });
464
488
  }
465
- function Ie(t, e) {
466
- this._pairs = [], t && be(t, this, e);
489
+ function qe(t, e) {
490
+ this._pairs = [], t && Ce(t, this, e);
467
491
  }
468
- const xt = Ie.prototype;
492
+ const xt = qe.prototype;
469
493
  xt.append = function(e, r) {
470
494
  this._pairs.push([e, r]);
471
495
  };
@@ -477,17 +501,17 @@ xt.toString = function(e) {
477
501
  return r(s[0]) + "=" + r(s[1]);
478
502
  }, "").join("&");
479
503
  };
480
- function jr(t) {
504
+ function $r(t) {
481
505
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
482
506
  }
483
507
  function Ut(t, e, r) {
484
508
  if (!e)
485
509
  return t;
486
- const n = r && r.encode || jr, s = a.isFunction(r) ? {
510
+ const n = r && r.encode || $r, s = a.isFunction(r) ? {
487
511
  serialize: r
488
512
  } : r, i = s && s.serialize;
489
513
  let o;
490
- if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new Ie(e, s).toString(n), o) {
514
+ if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new qe(e, s).toString(n), o) {
491
515
  const c = t.indexOf("#");
492
516
  c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
493
517
  }
@@ -548,23 +572,23 @@ class rt {
548
572
  });
549
573
  }
550
574
  }
551
- const qe = {
575
+ const Ie = {
552
576
  silentJSONParsing: !0,
553
577
  forcedJSONParsing: !0,
554
578
  clarifyTimeoutError: !1,
555
579
  legacyInterceptorReqResOrdering: !0
556
- }, $r = typeof URLSearchParams < "u" ? URLSearchParams : Ie, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
580
+ }, jr = typeof URLSearchParams < "u" ? URLSearchParams : qe, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
557
581
  isBrowser: !0,
558
582
  classes: {
559
- URLSearchParams: $r,
583
+ URLSearchParams: jr,
560
584
  FormData: Mr,
561
585
  Blob: Hr
562
586
  },
563
587
  protocols: ["http", "https", "file", "blob", "url", "data"]
564
- }, je = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Kr = je && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
565
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = je && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
588
+ }, $e = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Kr = $e && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
589
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = $e && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
566
590
  __proto__: null,
567
- hasBrowserEnv: je,
591
+ hasBrowserEnv: $e,
568
592
  hasStandardBrowserEnv: Kr,
569
593
  hasStandardBrowserWebWorkerEnv: zr,
570
594
  navigator: Fe,
@@ -574,7 +598,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr
574
598
  ...Vr
575
599
  };
576
600
  function Qr(t, e) {
577
- return be(t, new S.classes.URLSearchParams(), {
601
+ return Ce(t, new S.classes.URLSearchParams(), {
578
602
  visitor: function(r, n, s, i) {
579
603
  return S.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
580
604
  },
@@ -618,8 +642,8 @@ function Gr(t, e, r) {
618
642
  }
619
643
  return (r || JSON.stringify)(t);
620
644
  }
621
- const ne = {
622
- transitional: qe,
645
+ const ie = {
646
+ transitional: Ie,
623
647
  adapter: ["xhr", "http", "fetch"],
624
648
  transformRequest: [
625
649
  function(e, r) {
@@ -638,7 +662,7 @@ const ne = {
638
662
  return Qr(e, this.formSerializer).toString();
639
663
  if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
640
664
  const f = this.env && this.env.FormData;
641
- return be(
665
+ return Ce(
642
666
  c ? { "files[]": e } : e,
643
667
  f && new f(),
644
668
  this.formSerializer
@@ -650,7 +674,7 @@ const ne = {
650
674
  ],
651
675
  transformResponse: [
652
676
  function(e) {
653
- const r = this.transitional || ne.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
677
+ const r = this.transitional || ie.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
654
678
  if (a.isResponse(e) || a.isReadableStream(e))
655
679
  return e;
656
680
  if (e && a.isString(e) && (n && !this.responseType || s)) {
@@ -689,7 +713,7 @@ const ne = {
689
713
  }
690
714
  };
691
715
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
692
- ne.headers[t] = {};
716
+ ie.headers[t] = {};
693
717
  });
694
718
  const Zr = a.toObjectSet([
695
719
  "age",
@@ -717,11 +741,11 @@ const Zr = a.toObjectSet([
717
741
  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);
718
742
  }), e;
719
743
  }, nt = Symbol("internals");
720
- function G(t) {
744
+ function ee(t) {
721
745
  return t && String(t).trim().toLowerCase();
722
746
  }
723
- function he(t) {
724
- return t === !1 || t == null ? t : a.isArray(t) ? t.map(he) : String(t);
747
+ function ye(t) {
748
+ return t === !1 || t == null ? t : a.isArray(t) ? t.map(ye) : String(t);
725
749
  }
726
750
  function tn(t) {
727
751
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -762,11 +786,11 @@ let O = class {
762
786
  set(e, r, n) {
763
787
  const s = this;
764
788
  function i(c, f, l) {
765
- const u = G(f);
789
+ const u = ee(f);
766
790
  if (!u)
767
791
  throw new Error("header name must be a non-empty string");
768
792
  const h = a.findKey(s, u);
769
- (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = he(c));
793
+ (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = ye(c));
770
794
  }
771
795
  const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
772
796
  if (a.isPlainObject(e) || e instanceof this.constructor)
@@ -786,7 +810,7 @@ let O = class {
786
810
  return this;
787
811
  }
788
812
  get(e, r) {
789
- if (e = G(e), e) {
813
+ if (e = ee(e), e) {
790
814
  const n = a.findKey(this, e);
791
815
  if (n) {
792
816
  const s = this[n];
@@ -803,7 +827,7 @@ let O = class {
803
827
  }
804
828
  }
805
829
  has(e, r) {
806
- if (e = G(e), e) {
830
+ if (e = ee(e), e) {
807
831
  const n = a.findKey(this, e);
808
832
  return !!(n && this[n] !== void 0 && (!r || Pe(this, this[n], n, r)));
809
833
  }
@@ -813,7 +837,7 @@ let O = class {
813
837
  const n = this;
814
838
  let s = !1;
815
839
  function i(o) {
816
- if (o = G(o), o) {
840
+ if (o = ee(o), o) {
817
841
  const c = a.findKey(n, o);
818
842
  c && (!r || Pe(n, n[c], c, r)) && (delete n[c], s = !0);
819
843
  }
@@ -834,11 +858,11 @@ let O = class {
834
858
  return a.forEach(this, (s, i) => {
835
859
  const o = a.findKey(n, i);
836
860
  if (o) {
837
- r[o] = he(s), delete r[i];
861
+ r[o] = ye(s), delete r[i];
838
862
  return;
839
863
  }
840
864
  const c = e ? nn(i) : String(i).trim();
841
- c !== i && delete r[i], r[c] = he(s), n[c] = !0;
865
+ c !== i && delete r[i], r[c] = ye(s), n[c] = !0;
842
866
  }), this;
843
867
  }
844
868
  concat(...e) {
@@ -875,7 +899,7 @@ let O = class {
875
899
  accessors: {}
876
900
  }).accessors, s = this.prototype;
877
901
  function i(o) {
878
- const c = G(o);
902
+ const c = ee(o);
879
903
  n[c] || (sn(s, o), n[c] = !0);
880
904
  }
881
905
  return a.isArray(e) ? e.forEach(i) : i(e), this;
@@ -900,7 +924,7 @@ a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
900
924
  });
901
925
  a.freezeMethods(O);
902
926
  function Oe(t, e) {
903
- const r = this || ne, n = e || r, s = O.from(n.headers);
927
+ const r = this || ie, n = e || r, s = O.from(n.headers);
904
928
  let i = n.data;
905
929
  return a.forEach(t, function(c) {
906
930
  i = c.call(r, i, s.normalize(), e ? e.status : void 0);
@@ -909,7 +933,7 @@ function Oe(t, e) {
909
933
  function Lt(t) {
910
934
  return !!(t && t.__CANCEL__);
911
935
  }
912
- let se = class extends m {
936
+ let oe = class extends m {
913
937
  /**
914
938
  * A `CanceledError` is an object that is thrown when an operation is canceled.
915
939
  *
@@ -967,7 +991,7 @@ function cn(t, e) {
967
991
  }, n - h)));
968
992
  }, () => s && o(s)];
969
993
  }
970
- const ye = (t, e, r = 3) => {
994
+ const ge = (t, e, r = 3) => {
971
995
  let n = 0;
972
996
  const s = an(50, 250);
973
997
  return cn((i) => {
@@ -1169,24 +1193,24 @@ const vt = (t) => {
1169
1193
  !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(C);
1170
1194
  }, p.onabort = function() {
1171
1195
  p && (n(new m("Request aborted", m.ECONNABORTED, t, p)), p = null);
1172
- }, p.onerror = function(A) {
1173
- const D = A && A.message ? A.message : "Network Error", j = new m(D, m.ERR_NETWORK, t, p);
1174
- j.event = A || null, n(j), p = null;
1196
+ }, p.onerror = function(T) {
1197
+ const D = T && T.message ? T.message : "Network Error", $ = new m(D, m.ERR_NETWORK, t, p);
1198
+ $.event = T || null, n($), p = null;
1175
1199
  }, p.ontimeout = function() {
1176
- let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1177
- const D = s.transitional || qe;
1178
- s.timeoutErrorMessage && (A = s.timeoutErrorMessage), n(
1200
+ let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1201
+ const D = s.transitional || Ie;
1202
+ s.timeoutErrorMessage && (T = s.timeoutErrorMessage), n(
1179
1203
  new m(
1180
- A,
1204
+ T,
1181
1205
  D.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1182
1206
  t,
1183
1207
  p
1184
1208
  )
1185
1209
  ), p = null;
1186
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(A, D) {
1187
- p.setRequestHeader(D, A);
1188
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] = ye(l, !0), p.addEventListener("progress", g)), f && p.upload && ([h, E] = ye(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (R) => {
1189
- p && (n(!R || R.type ? new se(null, t, p) : R), p.abort(), p = null);
1210
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(T, D) {
1211
+ p.setRequestHeader(D, T);
1212
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] = ge(l, !0), p.addEventListener("progress", g)), f && p.upload && ([h, E] = ge(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (R) => {
1213
+ p && (n(!R || R.type ? new oe(null, t, p) : R), p.abort(), p = null);
1190
1214
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1191
1215
  const N = on(s.url);
1192
1216
  if (N && S.protocols.indexOf(N) === -1) {
@@ -1210,7 +1234,7 @@ const vt = (t) => {
1210
1234
  s = !0, c();
1211
1235
  const u = l instanceof Error ? l : this.reason;
1212
1236
  n.abort(
1213
- u instanceof m ? u : new se(u instanceof Error ? u.message : u)
1237
+ u instanceof m ? u : new oe(u instanceof Error ? u.message : u)
1214
1238
  );
1215
1239
  }
1216
1240
  };
@@ -1286,7 +1310,7 @@ const vt = (t) => {
1286
1310
  highWaterMark: 2
1287
1311
  }
1288
1312
  );
1289
- }, ct = 64 * 1024, { isFunction: ue } = a, bn = (({ Request: t, Response: e }) => ({
1313
+ }, ct = 64 * 1024, { isFunction: de } = a, bn = (({ Request: t, Response: e }) => ({
1290
1314
  Request: t,
1291
1315
  Response: e
1292
1316
  }))(a.global), { ReadableStream: ut, TextEncoder: lt } = a.global, dt = (t, ...e) => {
@@ -1303,10 +1327,10 @@ const vt = (t) => {
1303
1327
  bn,
1304
1328
  t
1305
1329
  );
1306
- const { fetch: e, Request: r, Response: n } = t, s = e ? ue(e) : typeof fetch == "function", i = ue(r), o = ue(n);
1330
+ const { fetch: e, Request: r, Response: n } = t, s = e ? de(e) : typeof fetch == "function", i = de(r), o = de(n);
1307
1331
  if (!s)
1308
1332
  return !1;
1309
- const c = s && ue(ut), f = s && (typeof lt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new lt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && dt(() => {
1333
+ const c = s && de(ut), f = s && (typeof lt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new lt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && dt(() => {
1310
1334
  let d = !1;
1311
1335
  const y = new r(S.origin, {
1312
1336
  body: new ut(),
@@ -1356,63 +1380,63 @@ const vt = (t) => {
1356
1380
  data: C,
1357
1381
  signal: N,
1358
1382
  cancelToken: R,
1359
- timeout: A,
1383
+ timeout: T,
1360
1384
  onDownloadProgress: D,
1361
- onUploadProgress: j,
1385
+ onUploadProgress: $,
1362
1386
  responseType: x,
1363
- headers: Re,
1364
- withCredentials: oe = "same-origin",
1387
+ headers: Se,
1388
+ withCredentials: ce = "same-origin",
1365
1389
  fetchOptions: ze
1366
1390
  } = vt(d), Je = e || fetch;
1367
1391
  x = x ? (x + "").toLowerCase() : "text";
1368
- let ae = yn(
1392
+ let ue = yn(
1369
1393
  [N, R && R.toAbortSignal()],
1370
- A
1371
- ), Y = null;
1372
- const $ = ae && ae.unsubscribe && (() => {
1373
- ae.unsubscribe();
1394
+ T
1395
+ ), G = null;
1396
+ const j = ue && ue.unsubscribe && (() => {
1397
+ ue.unsubscribe();
1374
1398
  });
1375
1399
  let We;
1376
1400
  try {
1377
- if (j && l && p !== "get" && p !== "head" && (We = await E(Re, C)) !== 0) {
1401
+ if ($ && l && p !== "get" && p !== "head" && (We = await E(Se, C)) !== 0) {
1378
1402
  let B = new r(y, {
1379
1403
  method: "POST",
1380
1404
  body: C,
1381
1405
  duplex: "half"
1382
1406
  }), z;
1383
- if (a.isFormData(C) && (z = B.headers.get("content-type")) && Re.setContentType(z), B.body) {
1384
- const [Se, ce] = st(
1407
+ if (a.isFormData(C) && (z = B.headers.get("content-type")) && Se.setContentType(z), B.body) {
1408
+ const [Te, le] = st(
1385
1409
  We,
1386
- ye(it(j))
1410
+ ge(it($))
1387
1411
  );
1388
- C = at(B.body, ct, Se, ce);
1412
+ C = at(B.body, ct, Te, le);
1389
1413
  }
1390
1414
  }
1391
- a.isString(oe) || (oe = oe ? "include" : "omit");
1392
- const T = i && "credentials" in r.prototype, Qe = {
1415
+ a.isString(ce) || (ce = ce ? "include" : "omit");
1416
+ const A = i && "credentials" in r.prototype, Qe = {
1393
1417
  ...ze,
1394
- signal: ae,
1418
+ signal: ue,
1395
1419
  method: p.toUpperCase(),
1396
- headers: Re.normalize().toJSON(),
1420
+ headers: Se.normalize().toJSON(),
1397
1421
  body: C,
1398
1422
  duplex: "half",
1399
- credentials: T ? oe : void 0
1423
+ credentials: A ? ce : void 0
1400
1424
  };
1401
- Y = i && new r(y, Qe);
1402
- let v = await (i ? Je(Y, ze) : Je(y, Qe));
1425
+ G = i && new r(y, Qe);
1426
+ let v = await (i ? Je(G, ze) : Je(y, Qe));
1403
1427
  const Xe = u && (x === "stream" || x === "response");
1404
- if (u && (D || Xe && $)) {
1428
+ if (u && (D || Xe && j)) {
1405
1429
  const B = {};
1406
1430
  ["status", "statusText", "headers"].forEach((Ye) => {
1407
1431
  B[Ye] = v[Ye];
1408
1432
  });
1409
- const z = a.toFiniteNumber(v.headers.get("content-length")), [Se, ce] = D && st(
1433
+ const z = a.toFiniteNumber(v.headers.get("content-length")), [Te, le] = D && st(
1410
1434
  z,
1411
- ye(it(D), !0)
1435
+ ge(it(D), !0)
1412
1436
  ) || [];
1413
1437
  v = new n(
1414
- at(v.body, ct, Se, () => {
1415
- ce && ce(), $ && $();
1438
+ at(v.body, ct, Te, () => {
1439
+ le && le(), j && j();
1416
1440
  }),
1417
1441
  B
1418
1442
  );
@@ -1422,29 +1446,29 @@ const vt = (t) => {
1422
1446
  v,
1423
1447
  d
1424
1448
  );
1425
- return !Xe && $ && $(), await new Promise((B, z) => {
1449
+ return !Xe && j && j(), await new Promise((B, z) => {
1426
1450
  Ft(B, z, {
1427
1451
  data: Kt,
1428
1452
  headers: O.from(v.headers),
1429
1453
  status: v.status,
1430
1454
  statusText: v.statusText,
1431
1455
  config: d,
1432
- request: Y
1456
+ request: G
1433
1457
  });
1434
1458
  });
1435
- } catch (T) {
1436
- throw $ && $(), T && T.name === "TypeError" && /Load failed|fetch/i.test(T.message) ? Object.assign(
1459
+ } catch (A) {
1460
+ throw j && j(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
1437
1461
  new m(
1438
1462
  "Network Error",
1439
1463
  m.ERR_NETWORK,
1440
1464
  d,
1441
- Y,
1442
- T && T.response
1465
+ G,
1466
+ A && A.response
1443
1467
  ),
1444
1468
  {
1445
- cause: T.cause || T
1469
+ cause: A.cause || A
1446
1470
  }
1447
- ) : m.from(T, T && T.code, d, Y, T && T.response);
1471
+ ) : m.from(A, A && A.code, d, G, A && A.response);
1448
1472
  }
1449
1473
  };
1450
1474
  }, Cn = /* @__PURE__ */ new Map(), Bt = (t) => {
@@ -1456,14 +1480,14 @@ const vt = (t) => {
1456
1480
  return l;
1457
1481
  };
1458
1482
  Bt();
1459
- const $e = {
1483
+ const je = {
1460
1484
  http: Br,
1461
1485
  xhr: pn,
1462
1486
  fetch: {
1463
1487
  get: Bt
1464
1488
  }
1465
1489
  };
1466
- a.forEach($e, (t, e) => {
1490
+ a.forEach(je, (t, e) => {
1467
1491
  if (t) {
1468
1492
  try {
1469
1493
  Object.defineProperty(t, "name", { value: e });
@@ -1481,7 +1505,7 @@ function Rn(t, e) {
1481
1505
  for (let o = 0; o < r; o++) {
1482
1506
  n = t[o];
1483
1507
  let c;
1484
- if (s = n, !En(n) && (s = $e[(c = String(n)).toLowerCase()], s === void 0))
1508
+ if (s = n, !En(n) && (s = je[(c = String(n)).toLowerCase()], s === void 0))
1485
1509
  throw new m(`Unknown adapter '${c}'`);
1486
1510
  if (s && (a.isFunction(s) || (s = s.get(e))))
1487
1511
  break;
@@ -1501,7 +1525,7 @@ function Rn(t, e) {
1501
1525
  }
1502
1526
  return s;
1503
1527
  }
1504
- const It = {
1528
+ const qt = {
1505
1529
  /**
1506
1530
  * Resolve an adapter from a list of adapter names or functions.
1507
1531
  * @type {Function}
@@ -1511,14 +1535,14 @@ const It = {
1511
1535
  * Exposes all known adapters
1512
1536
  * @type {Object<string, Function|Object>}
1513
1537
  */
1514
- adapters: $e
1538
+ adapters: je
1515
1539
  };
1516
1540
  function Ne(t) {
1517
1541
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1518
- throw new se(null, t);
1542
+ throw new oe(null, t);
1519
1543
  }
1520
1544
  function ht(t) {
1521
- return Ne(t), t.headers = O.from(t.headers), t.data = Oe.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(
1545
+ return Ne(t), t.headers = O.from(t.headers), t.data = Oe.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), qt.getAdapter(t.adapter || ie.adapter, t)(t).then(
1522
1546
  function(n) {
1523
1547
  return Ne(t), n.data = Oe.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1524
1548
  },
@@ -1531,16 +1555,16 @@ function ht(t) {
1531
1555
  }
1532
1556
  );
1533
1557
  }
1534
- const qt = "1.13.6", _e = {};
1558
+ const It = "1.13.6", Ee = {};
1535
1559
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1536
- _e[t] = function(n) {
1560
+ Ee[t] = function(n) {
1537
1561
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1538
1562
  };
1539
1563
  });
1540
1564
  const pt = {};
1541
- _e.transitional = function(e, r, n) {
1565
+ Ee.transitional = function(e, r, n) {
1542
1566
  function s(i, o) {
1543
- return "[Axios v" + qt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1567
+ return "[Axios v" + It + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1544
1568
  }
1545
1569
  return (i, o, c) => {
1546
1570
  if (e === !1)
@@ -1556,7 +1580,7 @@ _e.transitional = function(e, r, n) {
1556
1580
  )), e ? e(i, o, c) : !0;
1557
1581
  };
1558
1582
  };
1559
- _e.spelling = function(e) {
1583
+ Ee.spelling = function(e) {
1560
1584
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1561
1585
  };
1562
1586
  function Sn(t, e, r) {
@@ -1579,10 +1603,10 @@ function Sn(t, e, r) {
1579
1603
  throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1580
1604
  }
1581
1605
  }
1582
- const pe = {
1606
+ const me = {
1583
1607
  assertOptions: Sn,
1584
- validators: _e
1585
- }, U = pe.validators;
1608
+ validators: Ee
1609
+ }, U = me.validators;
1586
1610
  let H = class {
1587
1611
  constructor(e) {
1588
1612
  this.defaults = e || {}, this.interceptors = {
@@ -1618,7 +1642,7 @@ let H = class {
1618
1642
  _request(e, r) {
1619
1643
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = V(this.defaults, r);
1620
1644
  const { transitional: n, paramsSerializer: s, headers: i } = r;
1621
- n !== void 0 && pe.assertOptions(
1645
+ n !== void 0 && me.assertOptions(
1622
1646
  n,
1623
1647
  {
1624
1648
  silentJSONParsing: U.transitional(U.boolean),
@@ -1629,14 +1653,14 @@ let H = class {
1629
1653
  !1
1630
1654
  ), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1631
1655
  serialize: s
1632
- } : pe.assertOptions(
1656
+ } : me.assertOptions(
1633
1657
  s,
1634
1658
  {
1635
1659
  encode: U.function,
1636
1660
  serialize: U.function
1637
1661
  },
1638
1662
  !0
1639
- )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), pe.assertOptions(
1663
+ )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), me.assertOptions(
1640
1664
  r,
1641
1665
  {
1642
1666
  baseUrl: U.spelling("baseURL"),
@@ -1654,7 +1678,7 @@ let H = class {
1654
1678
  if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
1655
1679
  return;
1656
1680
  f = f && y.synchronous;
1657
- const p = r.transitional || qe;
1681
+ const p = r.transitional || Ie;
1658
1682
  p && p.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
1659
1683
  });
1660
1684
  const l = [];
@@ -1722,7 +1746,7 @@ a.forEach(["post", "put", "patch"], function(e) {
1722
1746
  }
1723
1747
  H.prototype[e] = r(), H.prototype[e + "Form"] = r(!0);
1724
1748
  });
1725
- let An = class jt {
1749
+ let Tn = class $t {
1726
1750
  constructor(e) {
1727
1751
  if (typeof e != "function")
1728
1752
  throw new TypeError("executor must be a function.");
@@ -1746,7 +1770,7 @@ let An = class jt {
1746
1770
  n.unsubscribe(i);
1747
1771
  }, o;
1748
1772
  }, e(function(i, o, c) {
1749
- n.reason || (n.reason = new se(i, o, c), r(n.reason));
1773
+ n.reason || (n.reason = new oe(i, o, c), r(n.reason));
1750
1774
  });
1751
1775
  }
1752
1776
  /**
@@ -1788,14 +1812,14 @@ let An = class jt {
1788
1812
  static source() {
1789
1813
  let e;
1790
1814
  return {
1791
- token: new jt(function(s) {
1815
+ token: new $t(function(s) {
1792
1816
  e = s;
1793
1817
  }),
1794
1818
  cancel: e
1795
1819
  };
1796
1820
  }
1797
1821
  };
1798
- function Tn(t) {
1822
+ function An(t) {
1799
1823
  return function(r) {
1800
1824
  return t.apply(null, r);
1801
1825
  };
@@ -1877,49 +1901,49 @@ const ke = {
1877
1901
  Object.entries(ke).forEach(([t, e]) => {
1878
1902
  ke[e] = t;
1879
1903
  });
1880
- function $t(t) {
1904
+ function jt(t) {
1881
1905
  const e = new H(t), r = _t(H.prototype.request, e);
1882
1906
  return a.extend(r, H.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1883
- return $t(V(t, s));
1907
+ return jt(V(t, s));
1884
1908
  }, r;
1885
1909
  }
1886
- const _ = $t(ne);
1910
+ const _ = jt(ie);
1887
1911
  _.Axios = H;
1888
- _.CanceledError = se;
1889
- _.CancelToken = An;
1912
+ _.CanceledError = oe;
1913
+ _.CancelToken = Tn;
1890
1914
  _.isCancel = Lt;
1891
- _.VERSION = qt;
1892
- _.toFormData = be;
1915
+ _.VERSION = It;
1916
+ _.toFormData = Ce;
1893
1917
  _.AxiosError = m;
1894
1918
  _.Cancel = _.CanceledError;
1895
1919
  _.all = function(e) {
1896
1920
  return Promise.all(e);
1897
1921
  };
1898
- _.spread = Tn;
1922
+ _.spread = An;
1899
1923
  _.isAxiosError = Pn;
1900
1924
  _.mergeConfig = V;
1901
1925
  _.AxiosHeaders = O;
1902
1926
  _.formToJSON = (t) => Dt(a.isHTMLForm(t) ? new FormData(t) : t);
1903
- _.getAdapter = It.getAdapter;
1927
+ _.getAdapter = qt.getAdapter;
1904
1928
  _.HttpStatusCode = ke;
1905
1929
  _.default = _;
1906
1930
  const {
1907
- Axios: Ws,
1908
- AxiosError: le,
1909
- CanceledError: Qs,
1910
- isCancel: Xs,
1911
- CancelToken: Ys,
1912
- VERSION: Gs,
1913
- all: Zs,
1914
- Cancel: ei,
1915
- isAxiosError: ti,
1916
- spread: ri,
1917
- toFormData: ni,
1918
- AxiosHeaders: si,
1919
- HttpStatusCode: ii,
1920
- formToJSON: oi,
1921
- getAdapter: ai,
1922
- mergeConfig: ci
1931
+ Axios: Xs,
1932
+ AxiosError: fe,
1933
+ CanceledError: Ys,
1934
+ isCancel: Gs,
1935
+ CancelToken: Zs,
1936
+ VERSION: ei,
1937
+ all: ti,
1938
+ Cancel: ri,
1939
+ isAxiosError: ni,
1940
+ spread: si,
1941
+ toFormData: ii,
1942
+ AxiosHeaders: oi,
1943
+ HttpStatusCode: ai,
1944
+ formToJSON: ci,
1945
+ getAdapter: ui,
1946
+ mergeConfig: li
1923
1947
  } = _;
1924
1948
  class xe extends Error {
1925
1949
  constructor(r) {
@@ -1970,7 +1994,7 @@ class On {
1970
1994
  }
1971
1995
  })).data;
1972
1996
  } catch (l) {
1973
- if (l instanceof le) {
1997
+ if (l instanceof fe) {
1974
1998
  const u = (f = l.response) == null ? void 0 : f.data;
1975
1999
  if (typeof (u == null ? void 0 : u.message) == "string") {
1976
2000
  const h = u.message.toLowerCase();
@@ -1996,7 +2020,7 @@ class On {
1996
2020
  }
1997
2021
  });
1998
2022
  } catch (f) {
1999
- if (f instanceof le) {
2023
+ if (f instanceof fe) {
2000
2024
  const l = (c = f.response) == null ? void 0 : c.data;
2001
2025
  if (typeof (l == null ? void 0 : l.message) == "string") {
2002
2026
  const u = l.message.toLowerCase();
@@ -2023,7 +2047,7 @@ class On {
2023
2047
  }
2024
2048
  });
2025
2049
  } catch (u) {
2026
- if (u instanceof le) {
2050
+ if (u instanceof fe) {
2027
2051
  const h = (l = u.response) == null ? void 0 : l.data;
2028
2052
  if (typeof (h == null ? void 0 : h.message) == "string") {
2029
2053
  const g = h.message.toLowerCase();
@@ -2053,7 +2077,7 @@ class On {
2053
2077
  try {
2054
2078
  return (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data;
2055
2079
  } catch (s) {
2056
- if (s instanceof le && ((n = s.response) == null ? void 0 : n.status) === 404)
2080
+ if (s instanceof fe && ((n = s.response) == null ? void 0 : n.status) === 404)
2057
2081
  return null;
2058
2082
  throw console.error("Fuul SDK: Could not get affiliate code", s), s;
2059
2083
  }
@@ -2073,7 +2097,7 @@ class xn {
2073
2097
  })).data;
2074
2098
  }
2075
2099
  }
2076
- const de = "/claim-checks";
2100
+ const he = "/claim-checks";
2077
2101
  class Un {
2078
2102
  constructor(e) {
2079
2103
  b(this, "httpClient");
@@ -2092,7 +2116,7 @@ class Un {
2092
2116
  user_identifier_type: e.user_identifier_type
2093
2117
  };
2094
2118
  return e.status && (r.status = e.status), (await this.httpClient.get({
2095
- path: de,
2119
+ path: he,
2096
2120
  queryParams: r
2097
2121
  })).data;
2098
2122
  }
@@ -2104,7 +2128,7 @@ class Un {
2104
2128
  */
2105
2129
  async closeClaimChecks(e) {
2106
2130
  return (await this.httpClient.post({
2107
- path: `${de}/close`,
2131
+ path: `${he}/close`,
2108
2132
  postData: {
2109
2133
  userIdentifier: e.user_identifier,
2110
2134
  userIdentifierType: e.user_identifier_type,
@@ -2121,7 +2145,7 @@ class Un {
2121
2145
  */
2122
2146
  async getClaimableChecks(e) {
2123
2147
  return (await this.httpClient.post({
2124
- path: `${de}/claim`,
2148
+ path: `${he}/claim`,
2125
2149
  postData: {
2126
2150
  userIdentifier: e.user_identifier,
2127
2151
  userIdentifierType: e.user_identifier_type
@@ -2137,7 +2161,7 @@ class Un {
2137
2161
  */
2138
2162
  async getClaimCheckTotals(e) {
2139
2163
  return (await this.httpClient.get({
2140
- path: `${de}/totals`,
2164
+ path: `${he}/totals`,
2141
2165
  queryParams: {
2142
2166
  user_identifier: e.user_identifier,
2143
2167
  user_identifier_type: e.user_identifier_type
@@ -2214,7 +2238,7 @@ class kn {
2214
2238
  const vn = "0.0.0", Bn = {
2215
2239
  version: vn
2216
2240
  };
2217
- class In {
2241
+ class qn {
2218
2242
  constructor(e) {
2219
2243
  b(this, "client");
2220
2244
  b(this, "defaultQueryParams");
@@ -2269,7 +2293,7 @@ class In {
2269
2293
  });
2270
2294
  }
2271
2295
  }
2272
- class qn {
2296
+ class In {
2273
2297
  constructor(e) {
2274
2298
  b(this, "httpClient");
2275
2299
  this.httpClient = e.httpClient;
@@ -2331,8 +2355,8 @@ class qn {
2331
2355
  })).data;
2332
2356
  }
2333
2357
  }
2334
- const Z = "/payouts";
2335
- class jn {
2358
+ const te = "/payouts";
2359
+ class $n {
2336
2360
  constructor(e) {
2337
2361
  b(this, "httpClient");
2338
2362
  b(this, "_debug");
@@ -2340,31 +2364,31 @@ class jn {
2340
2364
  }
2341
2365
  async getUserPayoutsByConversion(e) {
2342
2366
  return (await this.httpClient.get({
2343
- path: Z,
2367
+ path: te,
2344
2368
  queryParams: { ...e, type: "onchain-currency" }
2345
2369
  })).data;
2346
2370
  }
2347
2371
  async getUserPointsByConversion(e) {
2348
2372
  return (await this.httpClient.get({
2349
- path: Z,
2373
+ path: te,
2350
2374
  queryParams: { ...e, type: "point" }
2351
2375
  })).data;
2352
2376
  }
2353
2377
  async getUserPayoutMovements(e) {
2354
2378
  return (await this.httpClient.get({
2355
- path: `${Z}/movements`,
2379
+ path: `${te}/movements`,
2356
2380
  queryParams: { ...e, type: "onchain-currency" }
2357
2381
  })).data;
2358
2382
  }
2359
2383
  async getUserPointsMovements(e) {
2360
2384
  return (await this.httpClient.get({
2361
- path: `${Z}/movements`,
2385
+ path: `${te}/movements`,
2362
2386
  queryParams: { ...e, type: "point" }
2363
2387
  })).data;
2364
2388
  }
2365
2389
  async getPayoutsByReferrer(e) {
2366
2390
  return (await this.httpClient.get({
2367
- path: `${Z}/by-referrer`,
2391
+ path: `${te}/by-referrer`,
2368
2392
  queryParams: {
2369
2393
  user_identifier: e.user_identifier,
2370
2394
  user_identifier_type: e.user_identifier_type
@@ -2372,7 +2396,7 @@ class jn {
2372
2396
  })).data;
2373
2397
  }
2374
2398
  }
2375
- class $n {
2399
+ class jn {
2376
2400
  constructor(e) {
2377
2401
  b(this, "httpClient");
2378
2402
  b(this, "_debug");
@@ -2485,9 +2509,9 @@ class Zn {
2485
2509
  }
2486
2510
  }
2487
2511
  const es = "https://api.fuul.xyz/api/v1/";
2488
- let k = !1, ve = !1, He, L, Mt, Ht, I, Ce, Ee, X, Vt, K, q, ie;
2512
+ let k = !1, ve = !1, He, L, Mt, Ht, q, X, Re, Y, Vt, K, I, ae;
2489
2513
  function ts(t) {
2490
- k = !!t.debug, !ve && (He = t.apiKey, js(), L = $s(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), Ee = new kn({ httpClient: L, debug: k }), I = new On({ httpClient: L, debug: k }), Ce = 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 }), ie = new Un({ httpClient: L, debug: k }), ve = !0, k && console.debug("Fuul SDK: init() complete"));
2514
+ k = !!t.debug, !ve && (He = t.apiKey, Ms(), L = Hs(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), Re = new kn({ httpClient: L, debug: k }), q = new On({ httpClient: L, debug: k }), X = new Wt({ httpClient: L }), Y = new $n({ httpClient: L, debug: k }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), K = new In({ httpClient: L }), I = new jn({ httpClient: L, debug: k }), ae = new Un({ httpClient: L, debug: k }), ve = !0, k && console.debug("Fuul SDK: init() complete"));
2491
2515
  }
2492
2516
  function w() {
2493
2517
  if (!ve)
@@ -2502,7 +2526,7 @@ async function rs(t, e) {
2502
2526
  tracking_id: Me()
2503
2527
  }
2504
2528
  };
2505
- await Ee.sendEvent(r);
2529
+ await Re.sendEvent(r);
2506
2530
  }
2507
2531
  async function ns(t, e) {
2508
2532
  w(), Ve(), Ke();
@@ -2523,7 +2547,7 @@ async function ns(t, e) {
2523
2547
  tag: Qn() ?? void 0
2524
2548
  }
2525
2549
  };
2526
- await Ee.sendEvent(r, e);
2550
+ await Re.sendEvent(r, e);
2527
2551
  }
2528
2552
  async function ss(t, e) {
2529
2553
  w(), Ve(), Ke();
@@ -2541,10 +2565,10 @@ async function ss(t, e) {
2541
2565
  tracking_id: Me()
2542
2566
  }
2543
2567
  };
2544
- 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 Ee.sendEvent(r, e);
2568
+ 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 Re.sendEvent(r, e);
2545
2569
  }
2546
2570
  async function is(t) {
2547
- return w(), I.create(
2571
+ return w(), q.create(
2548
2572
  t.userIdentifier,
2549
2573
  t.identifierType,
2550
2574
  t.code,
@@ -2555,7 +2579,7 @@ async function is(t) {
2555
2579
  );
2556
2580
  }
2557
2581
  async function os(t) {
2558
- w(), await I.update(
2582
+ w(), await q.update(
2559
2583
  t.userIdentifier,
2560
2584
  t.identifierType,
2561
2585
  t.code,
@@ -2565,7 +2589,7 @@ async function os(t) {
2565
2589
  );
2566
2590
  }
2567
2591
  async function as(t) {
2568
- w(), await I.updateRebateRate(
2592
+ w(), await q.updateRebateRate(
2569
2593
  t.userIdentifier,
2570
2594
  t.identifierType,
2571
2595
  t.code,
@@ -2577,17 +2601,17 @@ async function as(t) {
2577
2601
  );
2578
2602
  }
2579
2603
  async function cs(t, e) {
2580
- return w(), await I.getCode(t, e);
2604
+ return w(), await q.getCode(t, e);
2581
2605
  }
2582
2606
  async function us(t) {
2583
- return w(), await I.isCodeFree(t);
2607
+ return w(), await q.isCodeFree(t);
2584
2608
  }
2585
2609
  async function ls(t) {
2586
- return w(), await I.isCodeAvailable(t);
2610
+ return w(), await q.isCodeAvailable(t);
2587
2611
  }
2588
2612
  async function ds(t, e, r, n) {
2589
2613
  w();
2590
- const s = await I.getCode(e, r), i = new URLSearchParams({
2614
+ const s = await q.getCode(e, r), i = new URLSearchParams({
2591
2615
  af: (s == null ? void 0 : s.code) ?? e
2592
2616
  });
2593
2617
  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()}`;
@@ -2611,19 +2635,19 @@ function gs(t) {
2611
2635
  return w(), K.getRevenueLeaderboard(t);
2612
2636
  }
2613
2637
  function ws(t) {
2614
- return X.getUserPayoutsByConversion(t);
2638
+ return Y.getUserPayoutsByConversion(t);
2615
2639
  }
2616
2640
  function bs(t) {
2617
- return X.getUserPointsByConversion(t);
2641
+ return Y.getUserPointsByConversion(t);
2618
2642
  }
2619
2643
  function _s(t) {
2620
- return X.getUserPayoutMovements(t);
2644
+ return Y.getUserPayoutMovements(t);
2621
2645
  }
2622
2646
  function Cs(t) {
2623
- return X.getUserPointsMovements(t);
2647
+ return Y.getUserPointsMovements(t);
2624
2648
  }
2625
2649
  function Es(t) {
2626
- return w(), X.getPayoutsByReferrer(t);
2650
+ return w(), Y.getPayoutsByReferrer(t);
2627
2651
  }
2628
2652
  async function Rs(t) {
2629
2653
  return w(), Mt.getAll(t);
@@ -2631,50 +2655,56 @@ async function Rs(t) {
2631
2655
  async function Ss(t) {
2632
2656
  return w(), Ht.getUserReferrer(t);
2633
2657
  }
2634
- async function As(t) {
2658
+ async function Ts(t) {
2635
2659
  return w(), Vt.getUserAudiences(t);
2636
2660
  }
2637
- async function Ts(t) {
2638
- return w(), q.listUserReferralCodes(t);
2661
+ async function As(t) {
2662
+ return w(), I.listUserReferralCodes(t);
2639
2663
  }
2640
2664
  async function Ps(t) {
2641
- return w(), q.generateReferralCodes(t);
2665
+ return w(), I.generateReferralCodes(t);
2642
2666
  }
2643
2667
  async function Os(t) {
2644
- return w(), q.getReferralStatus(t);
2668
+ return w(), I.getReferralStatus(t);
2645
2669
  }
2646
2670
  async function Ns(t) {
2647
- return w(), q.getReferralCode(t);
2671
+ return w(), I.getReferralCode(t);
2648
2672
  }
2649
2673
  async function xs(t) {
2650
- return w(), q.useReferralCode(t);
2674
+ return w(), I.useReferralCode(t);
2651
2675
  }
2652
2676
  async function Us(t) {
2653
- return w(), q.updateReferralCode(t);
2677
+ return w(), I.updateReferralCode(t);
2654
2678
  }
2655
2679
  async function Ds(t) {
2656
- return w(), q.deleteReferral(t);
2680
+ return w(), I.deleteReferral(t);
2657
2681
  }
2658
2682
  async function Ls(t) {
2659
- return w(), Ce.getAffiliateStats(t);
2683
+ return w(), X.getAffiliateStats(t);
2660
2684
  }
2661
2685
  async function Fs(t) {
2662
- return w(), Ce.getAffiliateNewTraders(t);
2686
+ return w(), X.getAffiliateNewTraders(t);
2663
2687
  }
2664
2688
  async function ks(t) {
2665
- return w(), Ce.getAffiliateTotalStats(t);
2689
+ return w(), X.getAffiliateTotalStats(t);
2666
2690
  }
2667
2691
  async function vs(t) {
2668
- return w(), ie.getClaimChecks(t);
2692
+ return w(), X.getReferralTree(t);
2669
2693
  }
2670
2694
  async function Bs(t) {
2671
- return w(), ie.closeClaimChecks(t);
2695
+ return w(), X.getStatsBreakdown(t);
2696
+ }
2697
+ async function qs(t) {
2698
+ return w(), ae.getClaimChecks(t);
2672
2699
  }
2673
2700
  async function Is(t) {
2674
- return w(), ie.getClaimableChecks(t);
2701
+ return w(), ae.closeClaimChecks(t);
2675
2702
  }
2676
- async function qs(t) {
2677
- return w(), ie.getClaimCheckTotals(t);
2703
+ async function $s(t) {
2704
+ return w(), ae.getClaimableChecks(t);
2705
+ }
2706
+ async function js(t) {
2707
+ return w(), ae.getClaimCheckTotals(t);
2678
2708
  }
2679
2709
  function Ve() {
2680
2710
  if (typeof window > "u" || typeof document > "u")
@@ -2684,19 +2714,19 @@ function Ke() {
2684
2714
  if (navigator.webdriver)
2685
2715
  throw new Error("Fuul SDK: Error");
2686
2716
  }
2687
- function js() {
2717
+ function Ms() {
2688
2718
  if (!He)
2689
2719
  throw new Error("Fuul SDK: Invalid API key");
2690
2720
  }
2691
- function $s(t, e) {
2692
- return new In({
2721
+ function Hs(t, e) {
2722
+ return new qn({
2693
2723
  baseURL: t,
2694
2724
  timeout: 3e4,
2695
2725
  apiKey: He,
2696
2726
  queryParams: e
2697
2727
  });
2698
2728
  }
2699
- const ui = {
2729
+ const di = {
2700
2730
  init: ts,
2701
2731
  sendEvent: rs,
2702
2732
  sendPageview: ns,
@@ -2713,7 +2743,7 @@ const ui = {
2713
2743
  getPointsLeaderboard: hs,
2714
2744
  getReferredUsersLeaderboard: ps,
2715
2745
  getReferredVolume: ys,
2716
- getUserAudiences: As,
2746
+ getUserAudiences: Ts,
2717
2747
  getUserPayoutsByConversion: ws,
2718
2748
  getUserPointsByConversion: bs,
2719
2749
  getUserPointsMovements: Cs,
@@ -2722,7 +2752,7 @@ const ui = {
2722
2752
  getUserReferrer: Ss,
2723
2753
  getVolumeLeaderboard: ms,
2724
2754
  getRevenueLeaderboard: gs,
2725
- listUserReferralCodes: Ts,
2755
+ listUserReferralCodes: As,
2726
2756
  generateReferralCodes: Ps,
2727
2757
  getReferralStatus: Os,
2728
2758
  getReferralCode: Ns,
@@ -2732,18 +2762,20 @@ const ui = {
2732
2762
  getAffiliateStats: Ls,
2733
2763
  getAffiliateNewTraders: Fs,
2734
2764
  getAffiliateTotalStats: ks,
2735
- getClaimChecks: vs,
2736
- closeClaimChecks: Bs,
2737
- getClaimableChecks: Is,
2738
- getClaimCheckTotals: qs
2765
+ getReferralTree: vs,
2766
+ getStatsBreakdown: Bs,
2767
+ getClaimChecks: qs,
2768
+ closeClaimChecks: Is,
2769
+ getClaimableChecks: $s,
2770
+ getClaimCheckTotals: js
2739
2771
  };
2740
- var Ms = /* @__PURE__ */ ((t) => (t.Open = "open", t.Unclaimed = "unclaimed", t.Claimed = "claimed", t))(Ms || {}), Hs = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(Hs || {});
2772
+ var Vs = /* @__PURE__ */ ((t) => (t.Open = "open", t.Unclaimed = "unclaimed", t.Claimed = "claimed", t))(Vs || {}), Ks = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(Ks || {});
2741
2773
  export {
2742
2774
  yt as AddressInUseError,
2743
- Ms as ClaimCheckStatus,
2775
+ Vs as ClaimCheckStatus,
2744
2776
  mt as CodeInUseError,
2745
- ui as Fuul,
2777
+ di as Fuul,
2746
2778
  Ue as InvalidSignatureError,
2747
- Hs as UserIdentifierType,
2779
+ Ks as UserIdentifierType,
2748
2780
  xe as ValidationError
2749
2781
  };