@fuul/sdk 7.20.0 → 7.22.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 Ce = "/affiliate-portal";
4
+ const Ae = "/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: `${Ce}/stats`,
12
+ path: `${Ae}/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: `${Ce}/total-stats`,
26
+ path: `${Ae}/total-stats`,
26
27
  queryParams: {
27
28
  statuses: e.statuses,
28
29
  regions: e.regions,
@@ -32,7 +33,7 @@ class Wt {
32
33
  }
33
34
  async getAffiliateNewTraders(e) {
34
35
  return (await this.httpClient.get({
35
- path: `${Ce}/new-traders`,
36
+ path: `${Ae}/new-traders`,
36
37
  queryParams: {
37
38
  user_identifier: e.user_identifier,
38
39
  from: e.from,
@@ -47,23 +48,23 @@ function _t(t, e) {
47
48
  return t.apply(e, arguments);
48
49
  };
49
50
  }
50
- const { toString: Qt } = Object.prototype, { getPrototypeOf: ke } = Object, { iterator: pe, toStringTag: Et } = Symbol, ye = /* @__PURE__ */ ((t) => (e) => {
51
+ const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: me, toStringTag: Ct } = Symbol, ge = /* @__PURE__ */ ((t) => (e) => {
51
52
  const r = Qt.call(e);
52
53
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
53
- })(/* @__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");
54
+ })(/* @__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
55
  function ee(t) {
55
56
  return t !== null && !J(t) && t.constructor !== null && !J(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
56
57
  }
57
- const Rt = F("ArrayBuffer");
58
+ const Et = F("ArrayBuffer");
58
59
  function Xt(t) {
59
60
  let e;
60
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Rt(t.buffer), e;
61
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Et(t.buffer), e;
61
62
  }
62
- 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) => {
63
- if (ye(t) !== "object")
63
+ 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) => {
64
+ if (ge(t) !== "object")
64
65
  return !1;
65
- const e = ke(t);
66
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Et in t) && !(pe in t);
66
+ const e = Be(t);
67
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ct in t) && !(me in t);
67
68
  }, Zt = (t) => {
68
69
  if (!te(t) || ee(t))
69
70
  return !1;
@@ -76,9 +77,9 @@ const Yt = me("string"), P = me("function"), Ct = me("number"), te = (t) => t !=
76
77
  function ar() {
77
78
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
78
79
  }
79
- const Ye = ar(), Ge = typeof Ye.FormData < "u" ? Ye.FormData : void 0, cr = (t) => {
80
+ const Ge = ar(), Ze = typeof Ge.FormData < "u" ? Ge.FormData : void 0, cr = (t) => {
80
81
  let e;
81
- return t && (Ge && t instanceof Ge || P(t.append) && ((e = ye(t)) === "formdata" || // detect form-data instance
82
+ return t && (Ze && t instanceof Ze || P(t.append) && ((e = ge(t)) === "formdata" || // detect form-data instance
82
83
  e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
83
84
  }, ur = F("URLSearchParams"), [lr, dr, fr, hr] = [
84
85
  "ReadableStream",
@@ -114,12 +115,12 @@ function St(t, e) {
114
115
  return null;
115
116
  }
116
117
  const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, At = (t) => !J(t) && t !== M;
117
- function xe() {
118
+ function De() {
118
119
  const { caseless: t, skipUndefined: e } = At(this) && this || {}, r = {}, n = (s, i) => {
119
120
  if (i === "__proto__" || i === "constructor" || i === "prototype")
120
121
  return;
121
122
  const o = t && St(r, i) || i;
122
- le(r[o]) && le(s) ? r[o] = xe(r[o], s) : le(s) ? r[o] = xe({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
123
+ 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);
123
124
  };
124
125
  for (let s = 0, i = arguments.length; s < i; s++)
125
126
  arguments[s] && re(arguments[s], n);
@@ -157,7 +158,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
157
158
  do {
158
159
  for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
159
160
  o = s[i], (!n || n(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
160
- t = r !== !1 && ke(t);
161
+ t = r !== !1 && Be(t);
161
162
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
162
163
  return e;
163
164
  }, br = (t, e, r) => {
@@ -168,19 +169,19 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
168
169
  if (!t) return null;
169
170
  if (Q(t)) return t;
170
171
  let e = t.length;
171
- if (!Ct(e)) return null;
172
+ if (!Rt(e)) return null;
172
173
  const r = new Array(e);
173
174
  for (; e-- > 0; )
174
175
  r[e] = t[e];
175
176
  return r;
176
- }, Er = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ke(Uint8Array)), Rr = (t, e) => {
177
- const n = (t && t[pe]).call(t);
177
+ }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Er = (t, e) => {
178
+ const n = (t && t[me]).call(t);
178
179
  let s;
179
180
  for (; (s = n.next()) && !s.done; ) {
180
181
  const i = s.value;
181
182
  e.call(t, i[0], i[1]);
182
183
  }
183
- }, Cr = (t, e) => {
184
+ }, Rr = (t, e) => {
184
185
  let r;
185
186
  const n = [];
186
187
  for (; (r = t.exec(e)) !== null; )
@@ -188,7 +189,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
188
189
  return n;
189
190
  }, Sr = F("HTMLFormElement"), Ar = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
190
191
  return n.toUpperCase() + s;
191
- }), Ze = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = F("RegExp"), Tt = (t, e) => {
192
+ }), et = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = F("RegExp"), Tt = (t, e) => {
192
193
  const r = Object.getOwnPropertyDescriptors(t), n = {};
193
194
  re(r, (s, i) => {
194
195
  let o;
@@ -219,7 +220,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
219
220
  }, Nr = () => {
220
221
  }, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
221
222
  function Ur(t) {
222
- return !!(t && P(t.append) && t[Et] === "FormData" && t[pe]);
223
+ return !!(t && P(t.append) && t[Ct] === "FormData" && t[me]);
223
224
  }
224
225
  const Dr = (t) => {
225
226
  const e = new Array(10), r = (n, s) => {
@@ -248,17 +249,17 @@ const Dr = (t) => {
248
249
  !1
249
250
  ), (s) => {
250
251
  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[pe]), a = {
252
+ }))(`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 = {
252
253
  isArray: Q,
253
- isArrayBuffer: Rt,
254
+ isArrayBuffer: Et,
254
255
  isBuffer: ee,
255
256
  isFormData: cr,
256
257
  isArrayBufferView: Xt,
257
258
  isString: Yt,
258
- isNumber: Ct,
259
+ isNumber: Rt,
259
260
  isBoolean: Gt,
260
261
  isObject: te,
261
- isPlainObject: le,
262
+ isPlainObject: fe,
262
263
  isEmptyObject: Zt,
263
264
  isReadableStream: lr,
264
265
  isRequest: dr,
@@ -274,24 +275,24 @@ const Dr = (t) => {
274
275
  isFunction: P,
275
276
  isStream: or,
276
277
  isURLSearchParams: ur,
277
- isTypedArray: Er,
278
+ isTypedArray: Cr,
278
279
  isFileList: ir,
279
280
  forEach: re,
280
- merge: xe,
281
+ merge: De,
281
282
  extend: yr,
282
283
  trim: pr,
283
284
  stripBOM: mr,
284
285
  inherits: gr,
285
286
  toFlatObject: wr,
286
- kindOf: ye,
287
+ kindOf: ge,
287
288
  kindOfTest: F,
288
289
  endsWith: br,
289
290
  toArray: _r,
290
- forEachEntry: Rr,
291
- matchAll: Cr,
291
+ forEachEntry: Er,
292
+ matchAll: Rr,
292
293
  isHTMLForm: Sr,
293
- hasOwnProperty: Ze,
294
- hasOwnProp: Ze,
294
+ hasOwnProperty: et,
295
+ hasOwnProp: et,
295
296
  // an alias to avoid ESLint no-prototype-builtins detection
296
297
  reduceDescriptors: Tt,
297
298
  freezeMethods: Pr,
@@ -367,24 +368,24 @@ m.ERR_CANCELED = "ERR_CANCELED";
367
368
  m.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
368
369
  m.ERR_INVALID_URL = "ERR_INVALID_URL";
369
370
  const Br = null;
370
- function Ue(t) {
371
+ function Le(t) {
371
372
  return a.isPlainObject(t) || a.isArray(t);
372
373
  }
373
374
  function Nt(t) {
374
375
  return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
375
376
  }
376
- function Se(t, e, r) {
377
+ function Te(t, e, r) {
377
378
  return t ? t.concat(e).map(function(s, i) {
378
379
  return s = Nt(s), !r && i ? "[" + s + "]" : s;
379
380
  }).join(r ? "." : "") : e;
380
381
  }
381
- function qr(t) {
382
- return a.isArray(t) && !t.some(Ue);
382
+ function Ir(t) {
383
+ return a.isArray(t) && !t.some(Le);
383
384
  }
384
- const Ir = a.toFlatObject(a, {}, null, function(e) {
385
+ const qr = a.toFlatObject(a, {}, null, function(e) {
385
386
  return /^is[A-Z]/.test(e);
386
387
  });
387
- function ge(t, e, r) {
388
+ function be(t, e, r) {
388
389
  if (!a.isObject(t))
389
390
  throw new TypeError("target must be an object");
390
391
  e = e || new FormData(), r = a.toFlatObject(
@@ -413,42 +414,42 @@ function ge(t, e, r) {
413
414
  return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
414
415
  }
415
416
  function u(d, y, p) {
416
- let E = d;
417
+ let C = d;
417
418
  if (a.isReactNative(e) && a.isReactNativeBlob(d))
418
- return e.append(Se(p, y, i), l(d)), !1;
419
+ return e.append(Te(p, y, i), l(d)), !1;
419
420
  if (d && !p && typeof d == "object") {
420
421
  if (a.endsWith(y, "{}"))
421
422
  y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
422
- else if (a.isArray(d) && qr(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (E = a.toArray(d)))
423
- return y = Nt(y), E.forEach(function(C, A) {
424
- !(a.isUndefined(C) || C === null) && e.append(
423
+ else if (a.isArray(d) && Ir(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (C = a.toArray(d)))
424
+ return y = Nt(y), C.forEach(function(R, A) {
425
+ !(a.isUndefined(R) || R === null) && e.append(
425
426
  // eslint-disable-next-line no-nested-ternary
426
- o === !0 ? Se([y], A, i) : o === null ? y : y + "[]",
427
- l(C)
427
+ o === !0 ? Te([y], A, i) : o === null ? y : y + "[]",
428
+ l(R)
428
429
  );
429
430
  }), !1;
430
431
  }
431
- return Ue(d) ? !0 : (e.append(Se(p, y, i), l(d)), !1);
432
+ return Le(d) ? !0 : (e.append(Te(p, y, i), l(d)), !1);
432
433
  }
433
- const h = [], g = Object.assign(Ir, {
434
+ const h = [], g = Object.assign(qr, {
434
435
  defaultVisitor: u,
435
436
  convertValue: l,
436
- isVisitable: Ue
437
+ isVisitable: Le
437
438
  });
438
- function R(d, y) {
439
+ function E(d, y) {
439
440
  if (!a.isUndefined(d)) {
440
441
  if (h.indexOf(d) !== -1)
441
442
  throw Error("Circular reference detected in " + y.join("."));
442
- h.push(d), a.forEach(d, function(E, N) {
443
- (!(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]);
443
+ h.push(d), a.forEach(d, function(C, N) {
444
+ (!(a.isUndefined(C) || C === null) && s.call(e, C, a.isString(N) ? N.trim() : N, y, g)) === !0 && E(C, y ? y.concat(N) : [N]);
444
445
  }), h.pop();
445
446
  }
446
447
  }
447
448
  if (!a.isObject(t))
448
449
  throw new TypeError("data must be an object");
449
- return R(t), e;
450
+ return E(t), e;
450
451
  }
451
- function et(t) {
452
+ function tt(t) {
452
453
  const e = {
453
454
  "!": "%21",
454
455
  "'": "%27",
@@ -462,17 +463,17 @@ function et(t) {
462
463
  return e[n];
463
464
  });
464
465
  }
465
- function ve(t, e) {
466
- this._pairs = [], t && ge(t, this, e);
466
+ function Ie(t, e) {
467
+ this._pairs = [], t && be(t, this, e);
467
468
  }
468
- const xt = ve.prototype;
469
+ const xt = Ie.prototype;
469
470
  xt.append = function(e, r) {
470
471
  this._pairs.push([e, r]);
471
472
  };
472
473
  xt.toString = function(e) {
473
474
  const r = e ? function(n) {
474
- return e.call(this, n, et);
475
- } : et;
475
+ return e.call(this, n, tt);
476
+ } : tt;
476
477
  return this._pairs.map(function(s) {
477
478
  return r(s[0]) + "=" + r(s[1]);
478
479
  }, "").join("&");
@@ -487,13 +488,13 @@ function Ut(t, e, r) {
487
488
  serialize: r
488
489
  } : r, i = s && s.serialize;
489
490
  let o;
490
- if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new ve(e, s).toString(n), o) {
491
+ if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new Ie(e, s).toString(n), o) {
491
492
  const c = t.indexOf("#");
492
493
  c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
493
494
  }
494
495
  return t;
495
496
  }
496
- class tt {
497
+ class rt {
497
498
  constructor() {
498
499
  this.handlers = [];
499
500
  }
@@ -548,12 +549,12 @@ class tt {
548
549
  });
549
550
  }
550
551
  }
551
- const Be = {
552
+ const qe = {
552
553
  silentJSONParsing: !0,
553
554
  forcedJSONParsing: !0,
554
555
  clarifyTimeoutError: !1,
555
556
  legacyInterceptorReqResOrdering: !0
556
- }, $r = typeof URLSearchParams < "u" ? URLSearchParams : ve, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
557
+ }, $r = typeof URLSearchParams < "u" ? URLSearchParams : Ie, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
557
558
  isBrowser: !0,
558
559
  classes: {
559
560
  URLSearchParams: $r,
@@ -561,20 +562,20 @@ const Be = {
561
562
  Blob: Hr
562
563
  },
563
564
  protocols: ["http", "https", "file", "blob", "url", "data"]
564
- }, qe = typeof window < "u" && typeof document < "u", De = typeof navigator == "object" && navigator || void 0, Kr = qe && (!De || ["ReactNative", "NativeScript", "NS"].indexOf(De.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
565
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = qe && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
565
+ }, 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
566
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = je && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
566
567
  __proto__: null,
567
- hasBrowserEnv: qe,
568
+ hasBrowserEnv: je,
568
569
  hasStandardBrowserEnv: Kr,
569
570
  hasStandardBrowserWebWorkerEnv: zr,
570
- navigator: De,
571
+ navigator: Fe,
571
572
  origin: Jr
572
573
  }, Symbol.toStringTag, { value: "Module" })), S = {
573
574
  ...Wr,
574
575
  ...Vr
575
576
  };
576
577
  function Qr(t, e) {
577
- return ge(t, new S.classes.URLSearchParams(), {
578
+ return be(t, new S.classes.URLSearchParams(), {
578
579
  visitor: function(r, n, s, i) {
579
580
  return S.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
580
581
  },
@@ -619,7 +620,7 @@ function Gr(t, e, r) {
619
620
  return (r || JSON.stringify)(t);
620
621
  }
621
622
  const ne = {
622
- transitional: Be,
623
+ transitional: qe,
623
624
  adapter: ["xhr", "http", "fetch"],
624
625
  transformRequest: [
625
626
  function(e, r) {
@@ -638,7 +639,7 @@ const ne = {
638
639
  return Qr(e, this.formSerializer).toString();
639
640
  if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
640
641
  const f = this.env && this.env.FormData;
641
- return ge(
642
+ return be(
642
643
  c ? { "files[]": e } : e,
643
644
  f && new f(),
644
645
  this.formSerializer
@@ -716,12 +717,12 @@ const Zr = a.toObjectSet([
716
717
  `).forEach(function(o) {
717
718
  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
719
  }), e;
719
- }, rt = Symbol("internals");
720
+ }, nt = Symbol("internals");
720
721
  function G(t) {
721
722
  return t && String(t).trim().toLowerCase();
722
723
  }
723
- function de(t) {
724
- return t === !1 || t == null ? t : a.isArray(t) ? t.map(de) : String(t);
724
+ function he(t) {
725
+ return t === !1 || t == null ? t : a.isArray(t) ? t.map(he) : String(t);
725
726
  }
726
727
  function tn(t) {
727
728
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -731,7 +732,7 @@ function tn(t) {
731
732
  return e;
732
733
  }
733
734
  const rn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
734
- function Ae(t, e, r, n, s) {
735
+ function Pe(t, e, r, n, s) {
735
736
  if (a.isFunction(n))
736
737
  return n.call(this, e, r);
737
738
  if (s && (e = r), !!a.isString(e)) {
@@ -766,7 +767,7 @@ let O = class {
766
767
  if (!u)
767
768
  throw new Error("header name must be a non-empty string");
768
769
  const h = a.findKey(s, u);
769
- (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = de(c));
770
+ (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = he(c));
770
771
  }
771
772
  const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
772
773
  if (a.isPlainObject(e) || e instanceof this.constructor)
@@ -805,7 +806,7 @@ let O = class {
805
806
  has(e, r) {
806
807
  if (e = G(e), e) {
807
808
  const n = a.findKey(this, e);
808
- return !!(n && this[n] !== void 0 && (!r || Ae(this, this[n], n, r)));
809
+ return !!(n && this[n] !== void 0 && (!r || Pe(this, this[n], n, r)));
809
810
  }
810
811
  return !1;
811
812
  }
@@ -815,7 +816,7 @@ let O = class {
815
816
  function i(o) {
816
817
  if (o = G(o), o) {
817
818
  const c = a.findKey(n, o);
818
- c && (!r || Ae(n, n[c], c, r)) && (delete n[c], s = !0);
819
+ c && (!r || Pe(n, n[c], c, r)) && (delete n[c], s = !0);
819
820
  }
820
821
  }
821
822
  return a.isArray(e) ? e.forEach(i) : i(e), s;
@@ -825,7 +826,7 @@ let O = class {
825
826
  let n = r.length, s = !1;
826
827
  for (; n--; ) {
827
828
  const i = r[n];
828
- (!e || Ae(this, this[i], i, e, !0)) && (delete this[i], s = !0);
829
+ (!e || Pe(this, this[i], i, e, !0)) && (delete this[i], s = !0);
829
830
  }
830
831
  return s;
831
832
  }
@@ -834,11 +835,11 @@ let O = class {
834
835
  return a.forEach(this, (s, i) => {
835
836
  const o = a.findKey(n, i);
836
837
  if (o) {
837
- r[o] = de(s), delete r[i];
838
+ r[o] = he(s), delete r[i];
838
839
  return;
839
840
  }
840
841
  const c = e ? nn(i) : String(i).trim();
841
- c !== i && delete r[i], r[c] = de(s), n[c] = !0;
842
+ c !== i && delete r[i], r[c] = he(s), n[c] = !0;
842
843
  }), this;
843
844
  }
844
845
  concat(...e) {
@@ -871,7 +872,7 @@ let O = class {
871
872
  return r.forEach((s) => n.set(s)), n;
872
873
  }
873
874
  static accessor(e) {
874
- const n = (this[rt] = this[rt] = {
875
+ const n = (this[nt] = this[nt] = {
875
876
  accessors: {}
876
877
  }).accessors, s = this.prototype;
877
878
  function i(o) {
@@ -899,7 +900,7 @@ a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
899
900
  };
900
901
  });
901
902
  a.freezeMethods(O);
902
- function Te(t, e) {
903
+ function Oe(t, e) {
903
904
  const r = this || ne, n = e || r, s = O.from(n.headers);
904
905
  let i = n.data;
905
906
  return a.forEach(t, function(c) {
@@ -951,8 +952,8 @@ function an(t, e) {
951
952
  g += r[h++], h = h % t;
952
953
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
953
954
  return;
954
- const R = u && l - u;
955
- return R ? Math.round(g * 1e3 / R) : void 0;
955
+ const E = u && l - u;
956
+ return E ? Math.round(g * 1e3 / E) : void 0;
956
957
  };
957
958
  }
958
959
  function cn(t, e) {
@@ -967,7 +968,7 @@ function cn(t, e) {
967
968
  }, n - h)));
968
969
  }, () => s && o(s)];
969
970
  }
970
- const he = (t, e, r = 3) => {
971
+ const ye = (t, e, r = 3) => {
971
972
  let n = 0;
972
973
  const s = an(50, 250);
973
974
  return cn((i) => {
@@ -986,7 +987,7 @@ const he = (t, e, r = 3) => {
986
987
  };
987
988
  t(h);
988
989
  }, r);
989
- }, nt = (t, e) => {
990
+ }, st = (t, e) => {
990
991
  const r = t != null;
991
992
  return [
992
993
  (n) => e[0]({
@@ -996,7 +997,7 @@ const he = (t, e, r = 3) => {
996
997
  }),
997
998
  e[1]
998
999
  ];
999
- }, 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)))(
1000
+ }, it = (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)))(
1000
1001
  new URL(S.origin),
1001
1002
  S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
1002
1003
  ) : () => !0, ln = S.hasStandardBrowserEnv ? (
@@ -1038,7 +1039,7 @@ function kt(t, e, r) {
1038
1039
  let n = !dn(e);
1039
1040
  return t && (n || r == !1) ? fn(t, e) : e;
1040
1041
  }
1041
- const it = (t) => t instanceof O ? { ...t } : t;
1042
+ const ot = (t) => t instanceof O ? { ...t } : t;
1042
1043
  function V(t, e) {
1043
1044
  e = e || {};
1044
1045
  const r = {};
@@ -1096,7 +1097,7 @@ function V(t, e) {
1096
1097
  socketPath: o,
1097
1098
  responseEncoding: o,
1098
1099
  validateStatus: c,
1099
- headers: (l, u, h) => s(it(l), it(u), h, !0)
1100
+ headers: (l, u, h) => s(ot(l), ot(u), h, !0)
1100
1101
  };
1101
1102
  return a.forEach(Object.keys({ ...t, ...e }), function(u) {
1102
1103
  if (u === "__proto__" || u === "constructor" || u === "prototype") return;
@@ -1136,22 +1137,22 @@ const vt = (t) => {
1136
1137
  const s = vt(t);
1137
1138
  let i = s.data;
1138
1139
  const o = O.from(s.headers).normalize();
1139
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, g, R, d;
1140
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, g, E, d;
1140
1141
  function y() {
1141
- R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1142
+ E && E(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1142
1143
  }
1143
1144
  let p = new XMLHttpRequest();
1144
1145
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1145
- function E() {
1146
+ function C() {
1146
1147
  if (!p)
1147
1148
  return;
1148
- const C = O.from(
1149
+ const R = O.from(
1149
1150
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1150
1151
  ), D = {
1151
1152
  data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1152
1153
  status: p.status,
1153
1154
  statusText: p.statusText,
1154
- headers: C,
1155
+ headers: R,
1155
1156
  config: t,
1156
1157
  request: p
1157
1158
  };
@@ -1165,8 +1166,8 @@ const vt = (t) => {
1165
1166
  D
1166
1167
  ), p = null;
1167
1168
  }
1168
- "onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
1169
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
1169
+ "onloadend" in p ? p.onloadend = C : p.onreadystatechange = function() {
1170
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(C);
1170
1171
  }, p.onabort = function() {
1171
1172
  p && (n(new m("Request aborted", m.ECONNABORTED, t, p)), p = null);
1172
1173
  }, p.onerror = function(A) {
@@ -1174,7 +1175,7 @@ const vt = (t) => {
1174
1175
  j.event = A || null, n(j), p = null;
1175
1176
  }, p.ontimeout = function() {
1176
1177
  let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1177
- const D = s.transitional || Be;
1178
+ const D = s.transitional || qe;
1178
1179
  s.timeoutErrorMessage && (A = s.timeoutErrorMessage), n(
1179
1180
  new m(
1180
1181
  A,
@@ -1185,8 +1186,8 @@ const vt = (t) => {
1185
1186
  ), p = null;
1186
1187
  }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(A, D) {
1187
1188
  p.setRequestHeader(D, A);
1188
- }), 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) => {
1189
- p && (n(!C || C.type ? new se(null, t, p) : C), p.abort(), p = null);
1189
+ }), 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) => {
1190
+ p && (n(!R || R.type ? new se(null, t, p) : R), p.abort(), p = null);
1190
1191
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1191
1192
  const N = on(s.url);
1192
1193
  if (N && S.protocols.indexOf(N) === -1) {
@@ -1254,7 +1255,7 @@ const vt = (t) => {
1254
1255
  } finally {
1255
1256
  await e.cancel();
1256
1257
  }
1257
- }, ot = (t, e, r, n) => {
1258
+ }, at = (t, e, r, n) => {
1258
1259
  const s = gn(t, e);
1259
1260
  let i = 0, o, c = (f) => {
1260
1261
  o || (o = !0, n && n(f));
@@ -1286,10 +1287,10 @@ const vt = (t) => {
1286
1287
  highWaterMark: 2
1287
1288
  }
1288
1289
  );
1289
- }, at = 64 * 1024, { isFunction: ce } = a, bn = (({ Request: t, Response: e }) => ({
1290
+ }, ct = 64 * 1024, { isFunction: ue } = a, bn = (({ Request: t, Response: e }) => ({
1290
1291
  Request: t,
1291
1292
  Response: e
1292
- }))(a.global), { ReadableStream: ct, TextEncoder: ut } = a.global, lt = (t, ...e) => {
1293
+ }))(a.global), { ReadableStream: ut, TextEncoder: lt } = a.global, dt = (t, ...e) => {
1293
1294
  try {
1294
1295
  return !!t(...e);
1295
1296
  } catch {
@@ -1303,27 +1304,27 @@ const vt = (t) => {
1303
1304
  bn,
1304
1305
  t
1305
1306
  );
1306
- const { fetch: e, Request: r, Response: n } = t, s = e ? ce(e) : typeof fetch == "function", i = ce(r), o = ce(n);
1307
+ const { fetch: e, Request: r, Response: n } = t, s = e ? ue(e) : typeof fetch == "function", i = ue(r), o = ue(n);
1307
1308
  if (!s)
1308
1309
  return !1;
1309
- 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(() => {
1310
+ 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(() => {
1310
1311
  let d = !1;
1311
1312
  const y = new r(S.origin, {
1312
- body: new ct(),
1313
+ body: new ut(),
1313
1314
  method: "POST",
1314
1315
  get duplex() {
1315
1316
  return d = !0, "half";
1316
1317
  }
1317
1318
  }).headers.has("Content-Type");
1318
1319
  return d && !y;
1319
- }), u = o && c && lt(() => a.isReadableStream(new n("").body)), h = {
1320
+ }), u = o && c && dt(() => a.isReadableStream(new n("").body)), h = {
1320
1321
  stream: u && ((d) => d.body)
1321
1322
  };
1322
1323
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1323
1324
  !h[d] && (h[d] = (y, p) => {
1324
- let E = y && y[d];
1325
- if (E)
1326
- return E.call(y);
1325
+ let C = y && y[d];
1326
+ if (C)
1327
+ return C.call(y);
1327
1328
  throw new m(
1328
1329
  `Response type '${d}' is not supported`,
1329
1330
  m.ERR_NOT_SUPPORT,
@@ -1345,7 +1346,7 @@ const vt = (t) => {
1345
1346
  return d.byteLength;
1346
1347
  if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
1347
1348
  return (await f(d)).byteLength;
1348
- }, R = async (d, y) => {
1349
+ }, E = async (d, y) => {
1349
1350
  const p = a.toFiniteNumber(d.getContentLength());
1350
1351
  return p ?? g(y);
1351
1352
  };
@@ -1353,66 +1354,66 @@ const vt = (t) => {
1353
1354
  let {
1354
1355
  url: y,
1355
1356
  method: p,
1356
- data: E,
1357
+ data: C,
1357
1358
  signal: N,
1358
- cancelToken: C,
1359
+ cancelToken: R,
1359
1360
  timeout: A,
1360
1361
  onDownloadProgress: D,
1361
1362
  onUploadProgress: j,
1362
1363
  responseType: x,
1363
- headers: Ee,
1364
- withCredentials: ie = "same-origin",
1365
- fetchOptions: Ke
1366
- } = vt(d), ze = e || fetch;
1364
+ headers: Re,
1365
+ withCredentials: oe = "same-origin",
1366
+ fetchOptions: ze
1367
+ } = vt(d), Je = e || fetch;
1367
1368
  x = x ? (x + "").toLowerCase() : "text";
1368
- let oe = yn(
1369
- [N, C && C.toAbortSignal()],
1369
+ let ae = yn(
1370
+ [N, R && R.toAbortSignal()],
1370
1371
  A
1371
1372
  ), Y = null;
1372
- const $ = oe && oe.unsubscribe && (() => {
1373
- oe.unsubscribe();
1373
+ const $ = ae && ae.unsubscribe && (() => {
1374
+ ae.unsubscribe();
1374
1375
  });
1375
- let Je;
1376
+ let We;
1376
1377
  try {
1377
- if (j && l && p !== "get" && p !== "head" && (Je = await R(Ee, E)) !== 0) {
1378
+ if (j && l && p !== "get" && p !== "head" && (We = await E(Re, C)) !== 0) {
1378
1379
  let B = new r(y, {
1379
1380
  method: "POST",
1380
- body: E,
1381
+ body: C,
1381
1382
  duplex: "half"
1382
1383
  }), z;
1383
- if (a.isFormData(E) && (z = B.headers.get("content-type")) && Ee.setContentType(z), B.body) {
1384
- const [Re, ae] = nt(
1385
- Je,
1386
- he(st(j))
1384
+ if (a.isFormData(C) && (z = B.headers.get("content-type")) && Re.setContentType(z), B.body) {
1385
+ const [Se, ce] = st(
1386
+ We,
1387
+ ye(it(j))
1387
1388
  );
1388
- E = ot(B.body, at, Re, ae);
1389
+ C = at(B.body, ct, Se, ce);
1389
1390
  }
1390
1391
  }
1391
- a.isString(ie) || (ie = ie ? "include" : "omit");
1392
- const T = i && "credentials" in r.prototype, We = {
1393
- ...Ke,
1394
- signal: oe,
1392
+ a.isString(oe) || (oe = oe ? "include" : "omit");
1393
+ const T = i && "credentials" in r.prototype, Qe = {
1394
+ ...ze,
1395
+ signal: ae,
1395
1396
  method: p.toUpperCase(),
1396
- headers: Ee.normalize().toJSON(),
1397
- body: E,
1397
+ headers: Re.normalize().toJSON(),
1398
+ body: C,
1398
1399
  duplex: "half",
1399
- credentials: T ? ie : void 0
1400
+ credentials: T ? oe : void 0
1400
1401
  };
1401
- Y = i && new r(y, We);
1402
- let v = await (i ? ze(Y, Ke) : ze(y, We));
1403
- const Qe = u && (x === "stream" || x === "response");
1404
- if (u && (D || Qe && $)) {
1402
+ Y = i && new r(y, Qe);
1403
+ let v = await (i ? Je(Y, ze) : Je(y, Qe));
1404
+ const Xe = u && (x === "stream" || x === "response");
1405
+ if (u && (D || Xe && $)) {
1405
1406
  const B = {};
1406
- ["status", "statusText", "headers"].forEach((Xe) => {
1407
- B[Xe] = v[Xe];
1407
+ ["status", "statusText", "headers"].forEach((Ye) => {
1408
+ B[Ye] = v[Ye];
1408
1409
  });
1409
- const z = a.toFiniteNumber(v.headers.get("content-length")), [Re, ae] = D && nt(
1410
+ const z = a.toFiniteNumber(v.headers.get("content-length")), [Se, ce] = D && st(
1410
1411
  z,
1411
- he(st(D), !0)
1412
+ ye(it(D), !0)
1412
1413
  ) || [];
1413
1414
  v = new n(
1414
- ot(v.body, at, Re, () => {
1415
- ae && ae(), $ && $();
1415
+ at(v.body, ct, Se, () => {
1416
+ ce && ce(), $ && $();
1416
1417
  }),
1417
1418
  B
1418
1419
  );
@@ -1422,7 +1423,7 @@ const vt = (t) => {
1422
1423
  v,
1423
1424
  d
1424
1425
  );
1425
- return !Qe && $ && $(), await new Promise((B, z) => {
1426
+ return !Xe && $ && $(), await new Promise((B, z) => {
1426
1427
  Ft(B, z, {
1427
1428
  data: Kt,
1428
1429
  headers: O.from(v.headers),
@@ -1447,23 +1448,23 @@ const vt = (t) => {
1447
1448
  ) : m.from(T, T && T.code, d, Y, T && T.response);
1448
1449
  }
1449
1450
  };
1450
- }, En = /* @__PURE__ */ new Map(), Bt = (t) => {
1451
+ }, Cn = /* @__PURE__ */ new Map(), Bt = (t) => {
1451
1452
  let e = t && t.env || {};
1452
1453
  const { fetch: r, Request: n, Response: s } = e, i = [n, s, r];
1453
- let o = i.length, c = o, f, l, u = En;
1454
+ let o = i.length, c = o, f, l, u = Cn;
1454
1455
  for (; c--; )
1455
1456
  f = i[c], l = u.get(f), l === void 0 && u.set(f, l = c ? /* @__PURE__ */ new Map() : _n(e)), u = l;
1456
1457
  return l;
1457
1458
  };
1458
1459
  Bt();
1459
- const Ie = {
1460
+ const $e = {
1460
1461
  http: Br,
1461
1462
  xhr: pn,
1462
1463
  fetch: {
1463
1464
  get: Bt
1464
1465
  }
1465
1466
  };
1466
- a.forEach(Ie, (t, e) => {
1467
+ a.forEach($e, (t, e) => {
1467
1468
  if (t) {
1468
1469
  try {
1469
1470
  Object.defineProperty(t, "name", { value: e });
@@ -1472,8 +1473,8 @@ a.forEach(Ie, (t, e) => {
1472
1473
  Object.defineProperty(t, "adapterName", { value: e });
1473
1474
  }
1474
1475
  });
1475
- const dt = (t) => `- ${t}`, Rn = (t) => a.isFunction(t) || t === null || t === !1;
1476
- function Cn(t, e) {
1476
+ const ft = (t) => `- ${t}`, En = (t) => a.isFunction(t) || t === null || t === !1;
1477
+ function Rn(t, e) {
1477
1478
  t = a.isArray(t) ? t : [t];
1478
1479
  const { length: r } = t;
1479
1480
  let n, s;
@@ -1481,7 +1482,7 @@ function Cn(t, e) {
1481
1482
  for (let o = 0; o < r; o++) {
1482
1483
  n = t[o];
1483
1484
  let c;
1484
- if (s = n, !Rn(n) && (s = Ie[(c = String(n)).toLowerCase()], s === void 0))
1485
+ if (s = n, !En(n) && (s = $e[(c = String(n)).toLowerCase()], s === void 0))
1485
1486
  throw new m(`Unknown adapter '${c}'`);
1486
1487
  if (s && (a.isFunction(s) || (s = s.get(e))))
1487
1488
  break;
@@ -1492,8 +1493,8 @@ function Cn(t, e) {
1492
1493
  ([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1493
1494
  );
1494
1495
  let c = r ? o.length > 1 ? `since :
1495
- ` + o.map(dt).join(`
1496
- `) : " " + dt(o[0]) : "as no adapter specified";
1496
+ ` + o.map(ft).join(`
1497
+ `) : " " + ft(o[0]) : "as no adapter specified";
1497
1498
  throw new m(
1498
1499
  "There is no suitable adapter to dispatch the request " + c,
1499
1500
  "ERR_NOT_SUPPORT"
@@ -1501,29 +1502,29 @@ function Cn(t, e) {
1501
1502
  }
1502
1503
  return s;
1503
1504
  }
1504
- const qt = {
1505
+ const It = {
1505
1506
  /**
1506
1507
  * Resolve an adapter from a list of adapter names or functions.
1507
1508
  * @type {Function}
1508
1509
  */
1509
- getAdapter: Cn,
1510
+ getAdapter: Rn,
1510
1511
  /**
1511
1512
  * Exposes all known adapters
1512
1513
  * @type {Object<string, Function|Object>}
1513
1514
  */
1514
- adapters: Ie
1515
+ adapters: $e
1515
1516
  };
1516
- function Pe(t) {
1517
+ function Ne(t) {
1517
1518
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1518
1519
  throw new se(null, t);
1519
1520
  }
1520
- function ft(t) {
1521
- return Pe(t), t.headers = O.from(t.headers), t.data = Te.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), qt.getAdapter(t.adapter || ne.adapter, t)(t).then(
1521
+ function ht(t) {
1522
+ 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(
1522
1523
  function(n) {
1523
- return Pe(t), n.data = Te.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1524
+ return Ne(t), n.data = Oe.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1524
1525
  },
1525
1526
  function(n) {
1526
- return Lt(n) || (Pe(t), n && n.response && (n.response.data = Te.call(
1527
+ return Lt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1527
1528
  t,
1528
1529
  t.transformResponse,
1529
1530
  n.response
@@ -1531,16 +1532,16 @@ function ft(t) {
1531
1532
  }
1532
1533
  );
1533
1534
  }
1534
- const It = "1.13.6", we = {};
1535
+ const qt = "1.13.6", _e = {};
1535
1536
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1536
- we[t] = function(n) {
1537
+ _e[t] = function(n) {
1537
1538
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1538
1539
  };
1539
1540
  });
1540
- const ht = {};
1541
- we.transitional = function(e, r, n) {
1541
+ const pt = {};
1542
+ _e.transitional = function(e, r, n) {
1542
1543
  function s(i, o) {
1543
- return "[Axios v" + It + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1544
+ return "[Axios v" + qt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1544
1545
  }
1545
1546
  return (i, o, c) => {
1546
1547
  if (e === !1)
@@ -1548,7 +1549,7 @@ we.transitional = function(e, r, n) {
1548
1549
  s(o, " has been removed" + (r ? " in " + r : "")),
1549
1550
  m.ERR_DEPRECATED
1550
1551
  );
1551
- return r && !ht[o] && (ht[o] = !0, console.warn(
1552
+ return r && !pt[o] && (pt[o] = !0, console.warn(
1552
1553
  s(
1553
1554
  o,
1554
1555
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -1556,7 +1557,7 @@ we.transitional = function(e, r, n) {
1556
1557
  )), e ? e(i, o, c) : !0;
1557
1558
  };
1558
1559
  };
1559
- we.spelling = function(e) {
1560
+ _e.spelling = function(e) {
1560
1561
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1561
1562
  };
1562
1563
  function Sn(t, e, r) {
@@ -1579,15 +1580,15 @@ function Sn(t, e, r) {
1579
1580
  throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1580
1581
  }
1581
1582
  }
1582
- const fe = {
1583
+ const pe = {
1583
1584
  assertOptions: Sn,
1584
- validators: we
1585
- }, U = fe.validators;
1585
+ validators: _e
1586
+ }, U = pe.validators;
1586
1587
  let H = class {
1587
1588
  constructor(e) {
1588
1589
  this.defaults = e || {}, this.interceptors = {
1589
- request: new tt(),
1590
- response: new tt()
1590
+ request: new rt(),
1591
+ response: new rt()
1591
1592
  };
1592
1593
  }
1593
1594
  /**
@@ -1618,7 +1619,7 @@ let H = class {
1618
1619
  _request(e, r) {
1619
1620
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = V(this.defaults, r);
1620
1621
  const { transitional: n, paramsSerializer: s, headers: i } = r;
1621
- n !== void 0 && fe.assertOptions(
1622
+ n !== void 0 && pe.assertOptions(
1622
1623
  n,
1623
1624
  {
1624
1625
  silentJSONParsing: U.transitional(U.boolean),
@@ -1629,14 +1630,14 @@ let H = class {
1629
1630
  !1
1630
1631
  ), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1631
1632
  serialize: s
1632
- } : fe.assertOptions(
1633
+ } : pe.assertOptions(
1633
1634
  s,
1634
1635
  {
1635
1636
  encode: U.function,
1636
1637
  serialize: U.function
1637
1638
  },
1638
1639
  !0
1639
- )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(
1640
+ )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), pe.assertOptions(
1640
1641
  r,
1641
1642
  {
1642
1643
  baseUrl: U.spelling("baseURL"),
@@ -1654,7 +1655,7 @@ let H = class {
1654
1655
  if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
1655
1656
  return;
1656
1657
  f = f && y.synchronous;
1657
- const p = r.transitional || Be;
1658
+ const p = r.transitional || qe;
1658
1659
  p && p.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
1659
1660
  });
1660
1661
  const l = [];
@@ -1663,24 +1664,24 @@ let H = class {
1663
1664
  });
1664
1665
  let u, h = 0, g;
1665
1666
  if (!f) {
1666
- const d = [ft.bind(this), void 0];
1667
+ const d = [ht.bind(this), void 0];
1667
1668
  for (d.unshift(...c), d.push(...l), g = d.length, u = Promise.resolve(r); h < g; )
1668
1669
  u = u.then(d[h++], d[h++]);
1669
1670
  return u;
1670
1671
  }
1671
1672
  g = c.length;
1672
- let R = r;
1673
+ let E = r;
1673
1674
  for (; h < g; ) {
1674
1675
  const d = c[h++], y = c[h++];
1675
1676
  try {
1676
- R = d(R);
1677
+ E = d(E);
1677
1678
  } catch (p) {
1678
1679
  y.call(this, p);
1679
1680
  break;
1680
1681
  }
1681
1682
  }
1682
1683
  try {
1683
- u = ft.call(this, R);
1684
+ u = ht.call(this, E);
1684
1685
  } catch (d) {
1685
1686
  return Promise.reject(d);
1686
1687
  }
@@ -1803,7 +1804,7 @@ function Tn(t) {
1803
1804
  function Pn(t) {
1804
1805
  return a.isObject(t) && t.isAxiosError === !0;
1805
1806
  }
1806
- const Le = {
1807
+ const ke = {
1807
1808
  Continue: 100,
1808
1809
  SwitchingProtocols: 101,
1809
1810
  Processing: 102,
@@ -1874,8 +1875,8 @@ const Le = {
1874
1875
  SslHandshakeFailed: 525,
1875
1876
  InvalidSslCertificate: 526
1876
1877
  };
1877
- Object.entries(Le).forEach(([t, e]) => {
1878
- Le[e] = t;
1878
+ Object.entries(ke).forEach(([t, e]) => {
1879
+ ke[e] = t;
1879
1880
  });
1880
1881
  function $t(t) {
1881
1882
  const e = new H(t), r = _t(H.prototype.request, e);
@@ -1888,8 +1889,8 @@ _.Axios = H;
1888
1889
  _.CanceledError = se;
1889
1890
  _.CancelToken = An;
1890
1891
  _.isCancel = Lt;
1891
- _.VERSION = It;
1892
- _.toFormData = ge;
1892
+ _.VERSION = qt;
1893
+ _.toFormData = be;
1893
1894
  _.AxiosError = m;
1894
1895
  _.Cancel = _.CanceledError;
1895
1896
  _.all = function(e) {
@@ -1900,49 +1901,49 @@ _.isAxiosError = Pn;
1900
1901
  _.mergeConfig = V;
1901
1902
  _.AxiosHeaders = O;
1902
1903
  _.formToJSON = (t) => Dt(a.isHTMLForm(t) ? new FormData(t) : t);
1903
- _.getAdapter = qt.getAdapter;
1904
- _.HttpStatusCode = Le;
1904
+ _.getAdapter = It.getAdapter;
1905
+ _.HttpStatusCode = ke;
1905
1906
  _.default = _;
1906
1907
  const {
1907
- Axios: Ks,
1908
- AxiosError: ue,
1909
- CanceledError: zs,
1910
- isCancel: Js,
1911
- CancelToken: Ws,
1912
- VERSION: Qs,
1913
- all: Xs,
1914
- Cancel: Ys,
1915
- isAxiosError: Gs,
1916
- spread: Zs,
1917
- toFormData: ei,
1918
- AxiosHeaders: ti,
1919
- HttpStatusCode: ri,
1920
- formToJSON: ni,
1921
- getAdapter: si,
1922
- mergeConfig: ii
1908
+ Axios: Ws,
1909
+ AxiosError: le,
1910
+ CanceledError: Qs,
1911
+ isCancel: Xs,
1912
+ CancelToken: Ys,
1913
+ VERSION: Gs,
1914
+ all: Zs,
1915
+ Cancel: ei,
1916
+ isAxiosError: ti,
1917
+ spread: ri,
1918
+ toFormData: ni,
1919
+ AxiosHeaders: si,
1920
+ HttpStatusCode: ii,
1921
+ formToJSON: oi,
1922
+ getAdapter: ai,
1923
+ mergeConfig: ci
1923
1924
  } = _;
1924
- class Oe extends Error {
1925
+ class xe extends Error {
1925
1926
  constructor(r) {
1926
1927
  super(r.join(", "));
1927
1928
  b(this, "errors");
1928
1929
  this.name = "ValidationError", this.errors = r;
1929
1930
  }
1930
1931
  }
1931
- class pt extends Error {
1932
+ class yt extends Error {
1932
1933
  constructor(r) {
1933
1934
  super("Address already registered.");
1934
1935
  b(this, "address");
1935
1936
  this.name = "AddressInUseError", this.address = r;
1936
1937
  }
1937
1938
  }
1938
- class yt extends Error {
1939
+ class mt extends Error {
1939
1940
  constructor(r) {
1940
1941
  super("Code already registered.");
1941
1942
  b(this, "code");
1942
1943
  this.name = "CodeInUseError", this.code = r;
1943
1944
  }
1944
1945
  }
1945
- class Ne extends Error {
1946
+ class Ue extends Error {
1946
1947
  constructor() {
1947
1948
  super("Invalid signature provided"), this.name = "InvalidSignatureError";
1948
1949
  }
@@ -1970,13 +1971,13 @@ class On {
1970
1971
  }
1971
1972
  })).data;
1972
1973
  } catch (l) {
1973
- if (l instanceof ue) {
1974
+ if (l instanceof le) {
1974
1975
  const u = (f = l.response) == null ? void 0 : f.data;
1975
1976
  if (typeof (u == null ? void 0 : u.message) == "string") {
1976
1977
  const h = u.message.toLowerCase();
1977
- throw h == "invalid signature" ? new Ne() : h == "address in use" ? new pt(e) : h == "code in use" ? new yt(n) : new Error(h);
1978
+ throw h == "invalid signature" ? new Ue() : h == "address in use" ? new yt(e) : h == "code in use" ? new mt(n) : new Error(h);
1978
1979
  } else if ((u == null ? void 0 : u.message) instanceof Array)
1979
- throw new Oe(u.message);
1980
+ throw new xe(u.message);
1980
1981
  }
1981
1982
  throw l;
1982
1983
  }
@@ -1996,13 +1997,13 @@ class On {
1996
1997
  }
1997
1998
  });
1998
1999
  } catch (f) {
1999
- if (f instanceof ue) {
2000
+ if (f instanceof le) {
2000
2001
  const l = (c = f.response) == null ? void 0 : c.data;
2001
2002
  if (typeof (l == null ? void 0 : l.message) == "string") {
2002
2003
  const u = l.message.toLowerCase();
2003
- throw u == "invalid signature" ? new Ne() : u == "address in use" ? new pt(e) : u == "code in use" ? new yt(n) : new Error(u);
2004
+ throw u == "invalid signature" ? new Ue() : u == "address in use" ? new yt(e) : u == "code in use" ? new mt(n) : new Error(u);
2004
2005
  } else if ((l == null ? void 0 : l.message) instanceof Array)
2005
- throw new Oe(l.message);
2006
+ throw new xe(l.message);
2006
2007
  }
2007
2008
  throw f;
2008
2009
  }
@@ -2023,13 +2024,13 @@ class On {
2023
2024
  }
2024
2025
  });
2025
2026
  } catch (u) {
2026
- if (u instanceof ue) {
2027
+ if (u instanceof le) {
2027
2028
  const h = (l = u.response) == null ? void 0 : l.data;
2028
2029
  if (typeof (h == null ? void 0 : h.message) == "string") {
2029
2030
  const g = h.message.toLowerCase();
2030
- throw g == "invalid signature" ? new Ne() : new Error(g);
2031
+ throw g == "invalid signature" ? new Ue() : new Error(g);
2031
2032
  } else if ((h == null ? void 0 : h.message) instanceof Array)
2032
- throw new Oe(h.message);
2033
+ throw new xe(h.message);
2033
2034
  }
2034
2035
  throw u;
2035
2036
  }
@@ -2053,7 +2054,7 @@ class On {
2053
2054
  try {
2054
2055
  return (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data;
2055
2056
  } catch (s) {
2056
- if (s instanceof ue && ((n = s.response) == null ? void 0 : n.status) === 404)
2057
+ if (s instanceof le && ((n = s.response) == null ? void 0 : n.status) === 404)
2057
2058
  return null;
2058
2059
  throw console.error("Fuul SDK: Could not get affiliate code", s), s;
2059
2060
  }
@@ -2073,13 +2074,45 @@ class xn {
2073
2074
  })).data;
2074
2075
  }
2075
2076
  }
2076
- const mt = "/claim-checks";
2077
+ const de = "/claim-checks";
2077
2078
  class Un {
2078
2079
  constructor(e) {
2079
2080
  b(this, "httpClient");
2080
2081
  b(this, "_debug");
2081
2082
  this.httpClient = e.httpClient, this._debug = e.debug;
2082
2083
  }
2084
+ /**
2085
+ * Retrieves claim checks for a user with optional status filtering
2086
+ *
2087
+ * @param {GetClaimChecksParams} params - User identifier and optional status filter
2088
+ * @returns {Promise<GetClaimChecksResponse>} List of claim checks
2089
+ */
2090
+ async getClaimChecks(e) {
2091
+ const r = {
2092
+ user_identifier: e.user_identifier,
2093
+ user_identifier_type: e.user_identifier_type
2094
+ };
2095
+ return e.status && (r.status = e.status), (await this.httpClient.get({
2096
+ path: de,
2097
+ queryParams: r
2098
+ })).data;
2099
+ }
2100
+ /**
2101
+ * Closes open claim checks, aggregating and signing them for on-chain claiming
2102
+ *
2103
+ * @param {CloseClaimChecksParams} params - User identifier and claim check IDs to close
2104
+ * @returns {Promise<CloseClaimChecksResponse>} Array of signed claim responses ready for on-chain execution
2105
+ */
2106
+ async closeClaimChecks(e) {
2107
+ return (await this.httpClient.post({
2108
+ path: `${de}/close`,
2109
+ postData: {
2110
+ userIdentifier: e.user_identifier,
2111
+ userIdentifierType: e.user_identifier_type,
2112
+ claim_check_ids: e.claim_check_ids
2113
+ }
2114
+ })).data;
2115
+ }
2083
2116
  /**
2084
2117
  * Retrieves all claimable claim checks for a user
2085
2118
  * Returns only unclaimed checks with valid (non-expired) deadlines
@@ -2089,7 +2122,7 @@ class Un {
2089
2122
  */
2090
2123
  async getClaimableChecks(e) {
2091
2124
  return (await this.httpClient.post({
2092
- path: `${mt}/claim`,
2125
+ path: `${de}/claim`,
2093
2126
  postData: {
2094
2127
  userIdentifier: e.user_identifier,
2095
2128
  userIdentifierType: e.user_identifier_type
@@ -2105,7 +2138,7 @@ class Un {
2105
2138
  */
2106
2139
  async getClaimCheckTotals(e) {
2107
2140
  return (await this.httpClient.get({
2108
- path: `${mt}/totals`,
2141
+ path: `${de}/totals`,
2109
2142
  queryParams: {
2110
2143
  user_identifier: e.user_identifier,
2111
2144
  user_identifier_type: e.user_identifier_type
@@ -2145,7 +2178,7 @@ class kn {
2145
2178
  this.debug && console.debug(`Fuul SDK: Sent '${e.name}' event`), this.saveSentEvent(e);
2146
2179
  }
2147
2180
  isDuplicate(e) {
2148
- var u, h, g, R;
2181
+ var u, h, g, E;
2149
2182
  const r = `${gt}_${e.name}`, n = localStorage.getItem(r);
2150
2183
  if (!n)
2151
2184
  return !1;
@@ -2153,7 +2186,7 @@ class kn {
2153
2186
  if (this.getCurrentTimestamp() - s.timestamp > Ln)
2154
2187
  return !1;
2155
2188
  let f = !1;
2156
- e.metadata && (f = s.metadata.tracking_id === e.metadata.tracking_id && s.metadata.project_id === e.metadata.project_id && s.metadata.referrer === e.metadata.referrer && s.metadata.source === e.metadata.source && s.metadata.category === e.metadata.category && s.metadata.title === e.metadata.title && s.metadata.tag === e.metadata.tag && s.user_address === e.user_address && ((u = s.user) == null ? void 0 : u.identifier) === ((h = e.user) == null ? void 0 : h.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((R = e.user) == null ? void 0 : R.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2189
+ e.metadata && (f = s.metadata.tracking_id === e.metadata.tracking_id && s.metadata.project_id === e.metadata.project_id && s.metadata.referrer === e.metadata.referrer && s.metadata.source === e.metadata.source && s.metadata.category === e.metadata.category && s.metadata.title === e.metadata.title && s.metadata.tag === e.metadata.tag && s.user_address === e.user_address && ((u = s.user) == null ? void 0 : u.identifier) === ((h = e.user) == null ? void 0 : h.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((E = e.user) == null ? void 0 : E.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2157
2190
  let l = !1;
2158
2191
  return e.args && s.args && (l = s.args.page === e.args.page), l && f;
2159
2192
  }
@@ -2182,7 +2215,7 @@ class kn {
2182
2215
  const vn = "0.0.0", Bn = {
2183
2216
  version: vn
2184
2217
  };
2185
- class qn {
2218
+ class In {
2186
2219
  constructor(e) {
2187
2220
  b(this, "client");
2188
2221
  b(this, "defaultQueryParams");
@@ -2237,7 +2270,7 @@ class qn {
2237
2270
  });
2238
2271
  }
2239
2272
  }
2240
- class In {
2273
+ class qn {
2241
2274
  constructor(e) {
2242
2275
  b(this, "httpClient");
2243
2276
  this.httpClient = e.httpClient;
@@ -2430,7 +2463,7 @@ let Hn = (t = 21) => {
2430
2463
  e += Mn[r[t] & 63];
2431
2464
  return e;
2432
2465
  };
2433
- const Vn = "fuul.tracking_id", je = () => 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) => {
2466
+ const Vn = "fuul.tracking_id", Me = () => 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) => {
2434
2467
  const r = localStorage.getItem(t);
2435
2468
  if (r)
2436
2469
  return r;
@@ -2453,27 +2486,27 @@ class Zn {
2453
2486
  }
2454
2487
  }
2455
2488
  const es = "https://api.fuul.xyz/api/v1/";
2456
- let k = !1, Fe = !1, $e, L, Mt, Ht, q, be, _e, X, Vt, K, I, Me;
2489
+ let k = !1, ve = !1, He, L, Mt, Ht, I, Ce, Ee, X, Vt, K, q, ie;
2457
2490
  function ts(t) {
2458
- k = !!t.debug, !Fe && ($e = t.apiKey, qs(), L = Is(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), _e = new kn({ httpClient: L, debug: k }), q = new On({ httpClient: L, debug: k }), be = 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 In({ httpClient: L }), I = new $n({ httpClient: L, debug: k }), Me = new Un({ httpClient: L, debug: k }), Fe = !0, k && console.debug("Fuul SDK: init() complete"));
2491
+ 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"));
2459
2492
  }
2460
2493
  function w() {
2461
- if (!Fe)
2494
+ if (!ve)
2462
2495
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
2463
2496
  }
2464
2497
  async function rs(t, e) {
2465
- w(), He(), Ve();
2498
+ w(), Ve(), Ke();
2466
2499
  const r = {
2467
2500
  name: t,
2468
2501
  args: e ?? {},
2469
2502
  metadata: {
2470
- tracking_id: je()
2503
+ tracking_id: Me()
2471
2504
  }
2472
2505
  };
2473
- await _e.sendEvent(r);
2506
+ await Ee.sendEvent(r);
2474
2507
  }
2475
2508
  async function ns(t, e) {
2476
- w(), He(), Ve();
2509
+ w(), Ve(), Ke();
2477
2510
  const r = {
2478
2511
  name: "pageview",
2479
2512
  args: {
@@ -2481,7 +2514,7 @@ async function ns(t, e) {
2481
2514
  locationOrigin: document.location.origin
2482
2515
  },
2483
2516
  metadata: {
2484
- tracking_id: je(),
2517
+ tracking_id: Me(),
2485
2518
  referrer_url: Kn(),
2486
2519
  source: zn(),
2487
2520
  affiliate_id: bt() ?? void 0,
@@ -2491,10 +2524,10 @@ async function ns(t, e) {
2491
2524
  tag: Qn() ?? void 0
2492
2525
  }
2493
2526
  };
2494
- await _e.sendEvent(r, e);
2527
+ await Ee.sendEvent(r, e);
2495
2528
  }
2496
2529
  async function ss(t, e) {
2497
- w(), He(), Ve();
2530
+ w(), Ve(), Ke();
2498
2531
  const r = {
2499
2532
  name: "connect_wallet",
2500
2533
  user: {
@@ -2506,13 +2539,13 @@ async function ss(t, e) {
2506
2539
  locationOrigin: document.location.origin
2507
2540
  },
2508
2541
  metadata: {
2509
- tracking_id: je()
2542
+ tracking_id: Me()
2510
2543
  }
2511
2544
  };
2512
- 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 _e.sendEvent(r, e);
2545
+ 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);
2513
2546
  }
2514
2547
  async function is(t) {
2515
- return w(), q.create(
2548
+ return w(), I.create(
2516
2549
  t.userIdentifier,
2517
2550
  t.identifierType,
2518
2551
  t.code,
@@ -2523,7 +2556,7 @@ async function is(t) {
2523
2556
  );
2524
2557
  }
2525
2558
  async function os(t) {
2526
- w(), await q.update(
2559
+ w(), await I.update(
2527
2560
  t.userIdentifier,
2528
2561
  t.identifierType,
2529
2562
  t.code,
@@ -2533,7 +2566,7 @@ async function os(t) {
2533
2566
  );
2534
2567
  }
2535
2568
  async function as(t) {
2536
- w(), await q.updateRebateRate(
2569
+ w(), await I.updateRebateRate(
2537
2570
  t.userIdentifier,
2538
2571
  t.identifierType,
2539
2572
  t.code,
@@ -2545,17 +2578,17 @@ async function as(t) {
2545
2578
  );
2546
2579
  }
2547
2580
  async function cs(t, e) {
2548
- return w(), await q.getCode(t, e);
2581
+ return w(), await I.getCode(t, e);
2549
2582
  }
2550
2583
  async function us(t) {
2551
- return w(), await q.isCodeFree(t);
2584
+ return w(), await I.isCodeFree(t);
2552
2585
  }
2553
2586
  async function ls(t) {
2554
- return w(), await q.isCodeAvailable(t);
2587
+ return w(), await I.isCodeAvailable(t);
2555
2588
  }
2556
2589
  async function ds(t, e, r, n) {
2557
2590
  w();
2558
- const s = await q.getCode(e, r), i = new URLSearchParams({
2591
+ const s = await I.getCode(e, r), i = new URLSearchParams({
2559
2592
  af: (s == null ? void 0 : s.code) ?? e
2560
2593
  });
2561
2594
  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()}`;
@@ -2587,13 +2620,13 @@ function bs(t) {
2587
2620
  function _s(t) {
2588
2621
  return X.getUserPayoutMovements(t);
2589
2622
  }
2590
- function Es(t) {
2623
+ function Cs(t) {
2591
2624
  return X.getUserPointsMovements(t);
2592
2625
  }
2593
- function Rs(t) {
2626
+ function Es(t) {
2594
2627
  return w(), X.getPayoutsByReferrer(t);
2595
2628
  }
2596
- async function Cs(t) {
2629
+ async function Rs(t) {
2597
2630
  return w(), Mt.getAll(t);
2598
2631
  }
2599
2632
  async function Ss(t) {
@@ -2603,68 +2636,74 @@ async function As(t) {
2603
2636
  return w(), Vt.getUserAudiences(t);
2604
2637
  }
2605
2638
  async function Ts(t) {
2606
- return w(), I.listUserReferralCodes(t);
2639
+ return w(), q.listUserReferralCodes(t);
2607
2640
  }
2608
2641
  async function Ps(t) {
2609
- return w(), I.generateReferralCodes(t);
2642
+ return w(), q.generateReferralCodes(t);
2610
2643
  }
2611
2644
  async function Os(t) {
2612
- return w(), I.getReferralStatus(t);
2645
+ return w(), q.getReferralStatus(t);
2613
2646
  }
2614
2647
  async function Ns(t) {
2615
- return w(), I.getReferralCode(t);
2648
+ return w(), q.getReferralCode(t);
2616
2649
  }
2617
2650
  async function xs(t) {
2618
- return w(), I.useReferralCode(t);
2651
+ return w(), q.useReferralCode(t);
2619
2652
  }
2620
2653
  async function Us(t) {
2621
- return w(), I.updateReferralCode(t);
2654
+ return w(), q.updateReferralCode(t);
2622
2655
  }
2623
2656
  async function Ds(t) {
2624
- return w(), I.deleteReferral(t);
2657
+ return w(), q.deleteReferral(t);
2625
2658
  }
2626
2659
  async function Ls(t) {
2627
- return w(), be.getAffiliateStats(t);
2660
+ return w(), Ce.getAffiliateStats(t);
2628
2661
  }
2629
2662
  async function Fs(t) {
2630
- return w(), be.getAffiliateNewTraders(t);
2663
+ return w(), Ce.getAffiliateNewTraders(t);
2631
2664
  }
2632
2665
  async function ks(t) {
2633
- return w(), be.getAffiliateTotalStats(t);
2666
+ return w(), Ce.getAffiliateTotalStats(t);
2634
2667
  }
2635
2668
  async function vs(t) {
2636
- return w(), Me.getClaimableChecks(t);
2669
+ return w(), ie.getClaimChecks(t);
2637
2670
  }
2638
2671
  async function Bs(t) {
2639
- return w(), Me.getClaimCheckTotals(t);
2672
+ return w(), ie.closeClaimChecks(t);
2673
+ }
2674
+ async function Is(t) {
2675
+ return w(), ie.getClaimableChecks(t);
2640
2676
  }
2641
- function He() {
2677
+ async function qs(t) {
2678
+ return w(), ie.getClaimCheckTotals(t);
2679
+ }
2680
+ function Ve() {
2642
2681
  if (typeof window > "u" || typeof document > "u")
2643
2682
  throw new Error("Fuul SDK: Browser context required");
2644
2683
  }
2645
- function Ve() {
2684
+ function Ke() {
2646
2685
  if (navigator.webdriver)
2647
2686
  throw new Error("Fuul SDK: Error");
2648
2687
  }
2649
- function qs() {
2650
- if (!$e)
2688
+ function js() {
2689
+ if (!He)
2651
2690
  throw new Error("Fuul SDK: Invalid API key");
2652
2691
  }
2653
- function Is(t, e) {
2654
- return new qn({
2692
+ function $s(t, e) {
2693
+ return new In({
2655
2694
  baseURL: t,
2656
2695
  timeout: 3e4,
2657
- apiKey: $e,
2696
+ apiKey: He,
2658
2697
  queryParams: e
2659
2698
  });
2660
2699
  }
2661
- const oi = {
2700
+ const ui = {
2662
2701
  init: ts,
2663
2702
  sendEvent: rs,
2664
2703
  sendPageview: ns,
2665
2704
  identifyUser: ss,
2666
2705
  generateTrackingLink: ds,
2667
- getConversions: Cs,
2706
+ getConversions: Rs,
2668
2707
  createAffiliateCode: is,
2669
2708
  updateAffiliateCode: os,
2670
2709
  updateRebateRate: as,
@@ -2678,9 +2717,9 @@ const oi = {
2678
2717
  getUserAudiences: As,
2679
2718
  getUserPayoutsByConversion: ws,
2680
2719
  getUserPointsByConversion: bs,
2681
- getUserPointsMovements: Es,
2720
+ getUserPointsMovements: Cs,
2682
2721
  getUserPayoutMovements: _s,
2683
- getPayoutsByReferrer: Rs,
2722
+ getPayoutsByReferrer: Es,
2684
2723
  getUserReferrer: Ss,
2685
2724
  getVolumeLeaderboard: ms,
2686
2725
  getRevenueLeaderboard: gs,
@@ -2694,15 +2733,18 @@ const oi = {
2694
2733
  getAffiliateStats: Ls,
2695
2734
  getAffiliateNewTraders: Fs,
2696
2735
  getAffiliateTotalStats: ks,
2697
- getClaimableChecks: vs,
2698
- getClaimCheckTotals: Bs
2736
+ getClaimChecks: vs,
2737
+ closeClaimChecks: Bs,
2738
+ getClaimableChecks: Is,
2739
+ getClaimCheckTotals: qs
2699
2740
  };
2700
- var js = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(js || {});
2741
+ 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 || {});
2701
2742
  export {
2702
- pt as AddressInUseError,
2703
- yt as CodeInUseError,
2704
- oi as Fuul,
2705
- Ne as InvalidSignatureError,
2706
- js as UserIdentifierType,
2707
- Oe as ValidationError
2743
+ yt as AddressInUseError,
2744
+ Ms as ClaimCheckStatus,
2745
+ mt as CodeInUseError,
2746
+ ui as Fuul,
2747
+ Ue as InvalidSignatureError,
2748
+ Hs as UserIdentifierType,
2749
+ xe as ValidationError
2708
2750
  };