@obb871001/api-integration-sdk 1.0.341 → 1.0.342

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.js CHANGED
@@ -1,7 +1,7 @@
1
- import de, { createContext as $t, useContext as fi, useState as si, useMemo as Oa, useCallback as z, useRef as ee, useEffect as pe } from "react";
2
- import { useQueries as zn, useQuery as Q, useQueryClient as _i, useMutation as te, QueryClient as Bl, QueryClientProvider as Hl } from "@tanstack/react-query";
1
+ import de, { createContext as $t, useContext as fi, useState as si, useMemo as Oa, useCallback as z, useRef as ae, useEffect as pe } from "react";
2
+ import { useQueries as zn, useQuery as j, useQueryClient as _i, useMutation as X, QueryClient as Bl, QueryClientProvider as Hl } from "@tanstack/react-query";
3
3
  import Wl from "axios";
4
- import { get as ae, find as Ke, isEmpty as Ee, entries as In, forEach as zl, map as Be, isArray as la, toLower as Ei, omit as Il, replace as tt, includes as Vl, isObject as Qt, flatMap as jt, values as Jl, keys as Ni } from "lodash";
4
+ import { get as te, find as Ke, isEmpty as Ee, entries as In, forEach as zl, map as Be, isArray as la, toLower as Ei, omit as Il, replace as tt, includes as Vl, isObject as Qt, flatMap as jt, values as Jl, keys as Ni } from "lodash";
5
5
  import Zl from "react-dom";
6
6
  var ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function yi(e) {
@@ -201,18 +201,18 @@ function $l() {
201
201
  R < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
202
202
  }
203
203
  }
204
- var q = y.ReactCurrentDispatcher, j;
204
+ var q = y.ReactCurrentDispatcher, Q;
205
205
  function K(T, I, J) {
206
206
  {
207
- if (j === void 0)
207
+ if (Q === void 0)
208
208
  try {
209
209
  throw Error();
210
210
  } catch (ue) {
211
211
  var $ = ue.stack.trim().match(/\n( *(at )?)/);
212
- j = $ && $[1] || "";
212
+ Q = $ && $[1] || "";
213
213
  }
214
214
  return `
215
- ` + j + T;
215
+ ` + Q + T;
216
216
  }
217
217
  }
218
218
  var ie = !1, le;
@@ -268,17 +268,17 @@ function $l() {
268
268
  }
269
269
  } catch (We) {
270
270
  if (We && $ && typeof We.stack == "string") {
271
- for (var X = We.stack.split(`
271
+ for (var ee = We.stack.split(`
272
272
  `), Oe = $.stack.split(`
273
- `), be = X.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && X[be] !== Oe[he]; )
273
+ `), be = ee.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && ee[be] !== Oe[he]; )
274
274
  he--;
275
275
  for (; be >= 1 && he >= 0; be--, he--)
276
- if (X[be] !== Oe[he]) {
276
+ if (ee[be] !== Oe[he]) {
277
277
  if (be !== 1 || he !== 1)
278
278
  do
279
- if (be--, he--, he < 0 || X[be] !== Oe[he]) {
279
+ if (be--, he--, he < 0 || ee[be] !== Oe[he]) {
280
280
  var $e = `
281
- ` + X[be].replace(" at new ", " at ");
281
+ ` + ee[be].replace(" at new ", " at ");
282
282
  return T.displayName && $e.includes("<anonymous>") && ($e = $e.replace("<anonymous>", T.displayName)), typeof T == "function" && le.set(T, $e), $e;
283
283
  }
284
284
  while (be >= 1 && he >= 0);
@@ -340,17 +340,17 @@ function $l() {
340
340
  var ge = Function.call.bind(fe);
341
341
  for (var re in T)
342
342
  if (ge(T, re)) {
343
- var X = void 0;
343
+ var ee = void 0;
344
344
  try {
345
345
  if (typeof T[re] != "function") {
346
346
  var Oe = Error(($ || "React class") + ": " + J + " type `" + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof T[re] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
347
  throw Oe.name = "Invariant Violation", Oe;
348
348
  }
349
- X = T[re](I, re, $, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
349
+ ee = T[re](I, re, $, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
350
350
  } catch (be) {
351
- X = be;
351
+ ee = be;
352
352
  }
353
- X && !(X instanceof Error) && (Ge(ue), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", J, re, typeof X), Ge(null)), X instanceof Error && !(X.message in Ie) && (Ie[X.message] = !0, Ge(ue), _("Failed %s type: %s", J, X.message), Ge(null));
353
+ ee && !(ee instanceof Error) && (Ge(ue), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", J, re, typeof ee), Ge(null)), ee instanceof Error && !(ee.message in Ie) && (Ie[ee.message] = !0, Ge(ue), _("Failed %s type: %s", J, ee.message), Ge(null));
354
354
  }
355
355
  }
356
356
  }
@@ -426,7 +426,7 @@ function $l() {
426
426
  }
427
427
  }
428
428
  var Va = function(T, I, J, $, ue, ge, re) {
429
- var X = {
429
+ var ee = {
430
430
  // This tag allows us to uniquely identify this as a React Element
431
431
  $$typeof: n,
432
432
  // Built-in properties that belong on the element
@@ -437,27 +437,27 @@ function $l() {
437
437
  // Record the component responsible for creating this element.
438
438
  _owner: ge
439
439
  };
440
- return X._store = {}, Object.defineProperty(X._store, "validated", {
440
+ return ee._store = {}, Object.defineProperty(ee._store, "validated", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !0,
444
444
  value: !1
445
- }), Object.defineProperty(X, "_self", {
445
+ }), Object.defineProperty(ee, "_self", {
446
446
  configurable: !1,
447
447
  enumerable: !1,
448
448
  writable: !1,
449
449
  value: $
450
- }), Object.defineProperty(X, "_source", {
450
+ }), Object.defineProperty(ee, "_source", {
451
451
  configurable: !1,
452
452
  enumerable: !1,
453
453
  writable: !1,
454
454
  value: ue
455
- }), Object.freeze && (Object.freeze(X.props), Object.freeze(X)), X;
455
+ }), Object.freeze && (Object.freeze(ee.props), Object.freeze(ee)), ee;
456
456
  };
457
457
  function Ja(T, I, J, $, ue) {
458
458
  {
459
- var ge, re = {}, X = null, Oe = null;
460
- J !== void 0 && (xe(J), X = "" + J), Ye(I) && (xe(I.key), X = "" + I.key), Ve(I) && (Oe = I.ref, Ia(I, ue));
459
+ var ge, re = {}, ee = null, Oe = null;
460
+ J !== void 0 && (xe(J), ee = "" + J), Ye(I) && (xe(I.key), ee = "" + I.key), Ve(I) && (Oe = I.ref, Ia(I, ue));
461
461
  for (ge in I)
462
462
  fe.call(I, ge) && !je.hasOwnProperty(ge) && (re[ge] = I[ge]);
463
463
  if (T && T.defaultProps) {
@@ -465,11 +465,11 @@ function $l() {
465
465
  for (ge in be)
466
466
  re[ge] === void 0 && (re[ge] = be[ge]);
467
467
  }
468
- if (X || Oe) {
468
+ if (ee || Oe) {
469
469
  var he = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
470
- X && Da(re, he), Oe && Ea(re, he);
470
+ ee && Da(re, he), Oe && Ea(re, he);
471
471
  }
472
- return Va(T, X, Oe, ue, $, Re.current, re);
472
+ return Va(T, ee, Oe, ue, $, Re.current, re);
473
473
  }
474
474
  }
475
475
  var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
@@ -587,12 +587,12 @@ Check the top-level render call using <` + J + ">.");
587
587
  {
588
588
  var re = k(T);
589
589
  if (!re) {
590
- var X = "";
591
- (T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (X += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
590
+ var ee = "";
591
+ (T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
592
592
  var Oe = La();
593
- Oe ? X += Oe : X += Na();
593
+ Oe ? ee += Oe : ee += Na();
594
594
  var be;
595
- T === null ? be = "null" : ve(T) ? be = "array" : T !== void 0 && T.$$typeof === n ? (be = "<" + (A(T.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : be = typeof T, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, X);
595
+ T === null ? be = "null" : ve(T) ? be = "array" : T !== void 0 && T.$$typeof === n ? (be = "<" + (A(T.type) || "Unknown") + " />", ee = " Did you accidentally export a JSX literal instead of a component?") : be = typeof T, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, ee);
596
596
  }
597
597
  var he = Ja(T, I, J, ue, ge);
598
598
  if (he == null)
@@ -732,7 +732,7 @@ function Ri({
732
732
  }), a.interceptors.response.use(
733
733
  (i) => i.data,
734
734
  (i) => {
735
- const o = ae(
735
+ const o = te(
736
736
  i,
737
737
  "response.data.message",
738
738
  "發生錯誤,請稍後再試。"
@@ -920,7 +920,7 @@ function ir() {
920
920
  case o:
921
921
  return W ? S(1, N) : S(0, N + 1);
922
922
  case i:
923
- var j = this.$locale().weekStart || 0, K = (L < j ? L + 7 : L) - j;
923
+ var Q = this.$locale().weekStart || 0, K = (L < Q ? L + 7 : L) - Q;
924
924
  return S(W ? Z - K : Z + (6 - K), N);
925
925
  case a:
926
926
  case s:
@@ -965,7 +965,7 @@ function ir() {
965
965
  }, R.format = function(P) {
966
966
  var H = this, B = this.$locale();
967
967
  if (!this.isValid()) return B.invalidDate || c;
968
- var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), S = this.$H, x = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, j = function(le, ye, Ue, me) {
968
+ var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), S = this.$H, x = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, Q = function(le, ye, Ue, me) {
969
969
  return le && (le[ye] || le(H, W)) || Ue[ye].slice(0, me);
970
970
  }, K = function(le) {
971
971
  return h.s(S % 12 || 12, le, "0");
@@ -985,9 +985,9 @@ function ir() {
985
985
  case "MM":
986
986
  return h.s(L + 1, 2, "0");
987
987
  case "MMM":
988
- return j(B.monthsShort, L, Z, 3);
988
+ return Q(B.monthsShort, L, Z, 3);
989
989
  case "MMMM":
990
- return j(Z, L);
990
+ return Q(Z, L);
991
991
  case "D":
992
992
  return H.$D;
993
993
  case "DD":
@@ -995,9 +995,9 @@ function ir() {
995
995
  case "d":
996
996
  return String(H.$W);
997
997
  case "dd":
998
- return j(B.weekdaysMin, H.$W, N, 2);
998
+ return Q(B.weekdaysMin, H.$W, N, 2);
999
999
  case "ddd":
1000
- return j(B.weekdaysShort, H.$W, N, 3);
1000
+ return Q(B.weekdaysShort, H.$W, N, 3);
1001
1001
  case "dddd":
1002
1002
  return N[H.$W];
1003
1003
  case "H":
@@ -2413,7 +2413,7 @@ function tl() {
2413
2413
  ]);
2414
2414
  },
2415
2415
  _doProcessBlock: function(s, c) {
2416
- for (var f = this._hash.words, y = f[0], _ = f[1], b = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = b.high, w = b.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, j = h, K = F, ie = A, le = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ie = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
2416
+ for (var f = this._hash.words, y = f[0], _ = f[1], b = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = b.high, w = b.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ie = A, le = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ie = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
2417
2417
  var ve, He, aa = m[Me];
2418
2418
  if (Me < 16)
2419
2419
  He = aa.high = s[c + Me * 2] | 0, ve = aa.low = s[c + Me * 2 + 1] | 0;
@@ -2421,10 +2421,10 @@ function tl() {
2421
2421
  var ta = m[Me - 15], xe = ta.high, Re = ta.low, je = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = m[Me - 2], Ve = ga.high, Ye = ga.low, Ia = (Ve >>> 19 | Ye << 13) ^ (Ve << 3 | Ye >>> 29) ^ Ve >>> 6, Da = (Ye >>> 19 | Ve << 13) ^ (Ye << 3 | Ve >>> 29) ^ (Ye >>> 6 | Ve << 26), Ea = m[Me - 7], Va = Ea.high, Ja = Ea.low, da = m[Me - 16], ya = da.high, qe = da.low;
2422
2422
  ve = oa + Ja, He = je + Va + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, He = He + Ia + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + qe, He = He + ya + (ve >>> 0 < qe >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
2423
2423
  }
2424
- var ca = me & ke ^ ~me & Ie, fa = ce & fe ^ ~ce & Ce, Na = Z & j ^ Z & ie ^ j & ie, La = q & K ^ q & le ^ K & le, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), at = Ga + La, Xt = Ua + Na + (at >>> 0 < Ga >>> 0 ? 1 : 0);
2425
- Ge = Ie, ea = Ce, Ie = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Pe | 0, me = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ie, Ue = le, ie = j, le = K, j = Z, K = q, q = Pe + at | 0, Z = na + Xt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2424
+ var ca = me & ke ^ ~me & Ie, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ie ^ Q & ie, La = q & K ^ q & le ^ K & le, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), at = Ga + La, Xt = Ua + Na + (at >>> 0 < Ga >>> 0 ? 1 : 0);
2425
+ Ge = Ie, ea = Ce, Ie = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Pe | 0, me = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ie, Ue = le, ie = Q, le = K, Q = Z, K = q, q = Pe + at | 0, Z = na + Xt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2426
2426
  }
2427
- k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + j + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + le, b.high = A + ie + (w >>> 0 < le >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + fe, D.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + Ie + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
2427
+ k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + le, b.high = A + ie + (w >>> 0 < le >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + fe, D.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + Ie + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
2428
2428
  },
2429
2429
  _doFinalize: function() {
2430
2430
  var s = this._data, c = s.words, f = this._nDataBytes * 8, y = s.sigBytes * 8;
@@ -2554,8 +2554,8 @@ function Dr() {
2554
2554
  L.high = N.high, L.low = N.low;
2555
2555
  for (var O = 0; O < 5; O++)
2556
2556
  for (var F = 0; F < 5; F++) {
2557
- var B = O + 5 * F, E = _[B], Z = s[B], q = s[(O + 1) % 5 + 5 * F], j = s[(O + 2) % 5 + 5 * F];
2558
- E.high = Z.high ^ ~q.high & j.high, E.low = Z.low ^ ~q.low & j.low;
2557
+ var B = O + 5 * F, E = _[B], Z = s[B], q = s[(O + 1) % 5 + 5 * F], Q = s[(O + 2) % 5 + 5 * F];
2558
+ E.high = Z.high ^ ~q.high & Q.high, E.low = Z.low ^ ~q.low & Q.low;
2559
2559
  }
2560
2560
  var E = _[0], K = u[G];
2561
2561
  E.high ^= K.high, E.low ^= K.low;
@@ -2923,11 +2923,11 @@ function Nr() {
2923
2923
  var O = E + G, k = D[O];
2924
2924
  D[O] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
2925
2925
  }
2926
- var h = this._hash.words, F = u.words, A = s.words, w = a.words, R = i.words, P = o.words, H = m.words, B, W, M, S, x, L, N, Z, q, j;
2927
- L = B = h[0], N = W = h[1], Z = M = h[2], q = S = h[3], j = x = h[4];
2926
+ var h = this._hash.words, F = u.words, A = s.words, w = a.words, R = i.words, P = o.words, H = m.words, B, W, M, S, x, L, N, Z, q, Q;
2927
+ L = B = h[0], N = W = h[1], Z = M = h[2], q = S = h[3], Q = x = h[4];
2928
2928
  for (var K, G = 0; G < 80; G += 1)
2929
- K = B + D[E + w[G]] | 0, G < 16 ? K += f(W, M, S) + F[0] : G < 32 ? K += y(W, M, S) + F[1] : G < 48 ? K += _(W, M, S) + F[2] : G < 64 ? K += b(W, M, S) + F[3] : K += C(W, M, S) + F[4], K = K | 0, K = v(K, P[G]), K = K + x | 0, B = x, x = S, S = v(M, 10), M = W, W = K, K = L + D[E + R[G]] | 0, G < 16 ? K += C(N, Z, q) + A[0] : G < 32 ? K += b(N, Z, q) + A[1] : G < 48 ? K += _(N, Z, q) + A[2] : G < 64 ? K += y(N, Z, q) + A[3] : K += f(N, Z, q) + A[4], K = K | 0, K = v(K, H[G]), K = K + j | 0, L = j, j = q, q = v(Z, 10), Z = N, N = K;
2930
- K = h[1] + M + q | 0, h[1] = h[2] + S + j | 0, h[2] = h[3] + x + L | 0, h[3] = h[4] + B + N | 0, h[4] = h[0] + W + Z | 0, h[0] = K;
2929
+ K = B + D[E + w[G]] | 0, G < 16 ? K += f(W, M, S) + F[0] : G < 32 ? K += y(W, M, S) + F[1] : G < 48 ? K += _(W, M, S) + F[2] : G < 64 ? K += b(W, M, S) + F[3] : K += C(W, M, S) + F[4], K = K | 0, K = v(K, P[G]), K = K + x | 0, B = x, x = S, S = v(M, 10), M = W, W = K, K = L + D[E + R[G]] | 0, G < 16 ? K += C(N, Z, q) + A[0] : G < 32 ? K += b(N, Z, q) + A[1] : G < 48 ? K += _(N, Z, q) + A[2] : G < 64 ? K += y(N, Z, q) + A[3] : K += f(N, Z, q) + A[4], K = K | 0, K = v(K, H[G]), K = K + Q | 0, L = Q, Q = q, q = v(Z, 10), Z = N, N = K;
2930
+ K = h[1] + M + q | 0, h[1] = h[2] + S + Q | 0, h[2] = h[3] + x + L | 0, h[3] = h[4] + B + N | 0, h[4] = h[0] + W + Z | 0, h[0] = K;
2931
2931
  },
2932
2932
  _doFinalize: function() {
2933
2933
  var D = this._data, E = D.words, G = this._nDataBytes * 8, O = D.sigBytes * 8;
@@ -6124,14 +6124,14 @@ const Ca = /* @__PURE__ */ yi(Kt), Pa = (e) => {
6124
6124
  currencyCode: Z,
6125
6125
  validCode: q
6126
6126
  }) => {
6127
- const j = {
6127
+ const Q = {
6128
6128
  memId: M,
6129
6129
  passwd: Pa(S),
6130
6130
  email: L,
6131
6131
  currency_code: Z,
6132
6132
  code: q
6133
6133
  };
6134
- return x && (j.unlimit_code = x), N && (j.invite = N), e.post("/signUp", j);
6134
+ return x && (Q.unlimit_code = x), N && (Q.invite = N), e.post("/signUp", Q);
6135
6135
  },
6136
6136
  [e]
6137
6137
  ), m = z(
@@ -6225,7 +6225,7 @@ const Ca = /* @__PURE__ */ yi(Kt), Pa = (e) => {
6225
6225
  bank_account: N,
6226
6226
  bank_card_number: Z,
6227
6227
  id_card: q,
6228
- id_pic: j
6228
+ id_pic: Q
6229
6229
  } = M;
6230
6230
  return await n.post("/bindBankAccount", M);
6231
6231
  },
@@ -6407,19 +6407,19 @@ const Ca = /* @__PURE__ */ yi(Kt), Pa = (e) => {
6407
6407
  userFavoriteGameApi: t,
6408
6408
  userGameListApi: l,
6409
6409
  userCurrencyExchangeApi: p
6410
- } = oe(), g = Q({
6410
+ } = oe(), g = j({
6411
6411
  queryKey: ["getMemInfo"],
6412
6412
  queryFn: async () => n(),
6413
6413
  enabled: e
6414
- }), U = Q({
6414
+ }), U = j({
6415
6415
  queryKey: ["getFavoriteGame"],
6416
6416
  queryFn: async () => t(),
6417
6417
  enabled: e && g.isSuccess
6418
- }), d = Q({
6418
+ }), d = j({
6419
6419
  queryKey: ["getUserGameList"],
6420
6420
  queryFn: async () => l(),
6421
6421
  enabled: e && g.isSuccess && U.isSuccess
6422
- }), r = Q({
6422
+ }), r = j({
6423
6423
  queryKey: ["getUserCurrencyExchange"],
6424
6424
  queryFn: async () => p(),
6425
6425
  enabled: e && g.isSuccess && U.isSuccess && d.isSuccess
@@ -6498,7 +6498,7 @@ const Ca = /* @__PURE__ */ yi(Kt), Pa = (e) => {
6498
6498
  return { playGameApi: l, betRecordApi: p, betRecordDetailApi: g };
6499
6499
  }, Uo = ({ options: e, formData: n } = {}) => {
6500
6500
  const { betRecordApi: t } = Ci();
6501
- return Q({
6501
+ return j({
6502
6502
  queryKey: ["getBetRecord"],
6503
6503
  queryFn: async () => await t(n),
6504
6504
  select: (l) => In(l).map(([g, U]) => ({
@@ -6509,7 +6509,7 @@ const Ca = /* @__PURE__ */ yi(Kt), Pa = (e) => {
6509
6509
  });
6510
6510
  }, bo = ({ options: e, formData: n } = {}) => {
6511
6511
  const { betRecordDetailApi: t } = Ci();
6512
- return Q({
6512
+ return j({
6513
6513
  queryKey: ["getBetRecordDetail"],
6514
6514
  queryFn: async () => await t(n),
6515
6515
  ...e
@@ -7213,21 +7213,21 @@ function xi() {
7213
7213
  return L = D, [4, (0, r.getUrl)(m, A)];
7214
7214
  case 1:
7215
7215
  return L.current = q.sent(), D.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), D.current = "ABORTED", (0, g.flushSync)(function() {
7216
- return C(function(j) {
7217
- return e(e({}, j), { ABORTED: U.ReadyState.CLOSED });
7216
+ return C(function(Q) {
7217
+ return e(e({}, Q), { ABORTED: U.ReadyState.CLOSED });
7218
7218
  });
7219
7219
  }), [
7220
7220
  2
7221
7221
  /*return*/
7222
- ]) : (N = function(j) {
7222
+ ]) : (N = function(Q) {
7223
7223
  M || (0, g.flushSync)(function() {
7224
- return y(j);
7224
+ return y(Q);
7225
7225
  });
7226
- }, Z = function(j) {
7226
+ }, Z = function(Q) {
7227
7227
  M || (0, g.flushSync)(function() {
7228
7228
  return C(function(K) {
7229
7229
  var ie;
7230
- return e(e({}, K), D.current && (ie = {}, ie[D.current] = j, ie));
7230
+ return e(e({}, K), D.current && (ie = {}, ie[D.current] = Q, ie));
7231
7231
  });
7232
7232
  });
7233
7233
  }, S && (W = (0, d.createOrJoinSocket)(E, D.current, Z, A, N, G, O, k, P)), [
@@ -7462,63 +7462,63 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7462
7462
  };
7463
7463
  }, Mo = ({ options: e } = {}) => {
7464
7464
  const { userLoginApi: n } = oe();
7465
- return te({
7465
+ return X({
7466
7466
  mutationKey: ["userLogin"],
7467
7467
  mutationFn: async (t) => n(t),
7468
7468
  ...e
7469
7469
  });
7470
7470
  }, Ro = ({ options: e } = {}) => {
7471
7471
  const { userLogoutApi: n } = oe();
7472
- return te({
7472
+ return X({
7473
7473
  mutationKey: ["userLogout"],
7474
7474
  mutationFn: async () => n(),
7475
7475
  ...e
7476
7476
  });
7477
7477
  }, Po = ({ options: e } = {}) => {
7478
7478
  const { userSignUpApi: n } = oe();
7479
- return te({
7479
+ return X({
7480
7480
  mutationKey: ["userSignUp"],
7481
7481
  mutationFn: async (t) => n(t),
7482
7482
  ...e
7483
7483
  });
7484
7484
  }, wo = ({ options: e } = {}) => {
7485
7485
  const { addOrRemoveFavoriteGameApi: n } = oe();
7486
- return te({
7486
+ return X({
7487
7487
  mutationKey: ["toggleFavoriteGame"],
7488
7488
  mutationFn: async (t) => n(t),
7489
7489
  ...e
7490
7490
  });
7491
7491
  }, Fo = ({ options: e } = {}) => {
7492
7492
  const { updateUserInfoApi: n } = oe();
7493
- return te({
7493
+ return X({
7494
7494
  mutationKey: ["updateUserInfo"],
7495
7495
  mutationFn: async (t) => n(t),
7496
7496
  ...e
7497
7497
  });
7498
7498
  }, Ao = ({ options: e } = {}) => {
7499
7499
  const { resetUserPasswordApi: n } = oe();
7500
- return te({
7500
+ return X({
7501
7501
  mutationKey: ["resetUserPassword"],
7502
7502
  mutationFn: async (t) => n(t),
7503
7503
  ...e
7504
7504
  });
7505
7505
  }, Oo = ({ options: e } = {}) => {
7506
7506
  const { setUserTransactionPasswordApi: n } = oe();
7507
- return te({
7507
+ return X({
7508
7508
  mutationKey: ["setUserTransactionPassword"],
7509
7509
  mutationFn: async (t) => n(t),
7510
7510
  ...e
7511
7511
  });
7512
7512
  }, Bo = ({ options: e } = {}) => {
7513
7513
  const { resetUserTransactionPasswordApi: n } = oe();
7514
- return te({
7514
+ return X({
7515
7515
  mutationKey: ["resetUserTransactionPassword"],
7516
7516
  mutationFn: async (t) => n(t),
7517
7517
  ...e
7518
7518
  });
7519
7519
  }, Ho = ({ paramsData: e, options: n } = {}) => {
7520
7520
  const { userRebateApi: t } = oe(), { getToken: l } = se();
7521
- return l?.(), Q({
7521
+ return l?.(), j({
7522
7522
  queryKey: ["userRebate", e],
7523
7523
  queryFn: async () => t({ paramsData: e }),
7524
7524
  enabled: !1,
@@ -7526,14 +7526,14 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7526
7526
  });
7527
7527
  }, Wo = ({ options: e } = {}) => {
7528
7528
  const { userBindBankApi: n } = oe();
7529
- return te({
7529
+ return X({
7530
7530
  mutationKey: ["userBindBank"],
7531
7531
  mutationFn: async (t) => n({ formData: t }),
7532
7532
  ...e
7533
7533
  });
7534
7534
  }, zo = ({ options: e } = {}) => {
7535
7535
  const { transferInGameApi: n } = oe();
7536
- return te({
7536
+ return X({
7537
7537
  mutationKey: ["transferInGame"],
7538
7538
  mutationFn: async (t) => n(t),
7539
7539
  retry: !1,
@@ -7541,7 +7541,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7541
7541
  });
7542
7542
  }, Nm = ({ options: e } = {}) => {
7543
7543
  const { currency: n } = se(), { pointTransferApi: t } = oe();
7544
- return te({
7544
+ return X({
7545
7545
  mutationKey: ["pointTransfer"],
7546
7546
  mutationFn: async (l) => t({
7547
7547
  ...l,
@@ -7551,7 +7551,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7551
7551
  });
7552
7552
  }, Lm = ({ options: e } = {}) => {
7553
7553
  const { currency: n } = se(), { checkUserWagerApi: t } = oe();
7554
- return Q({
7554
+ return j({
7555
7555
  queryKey: ["checkUserWager"],
7556
7556
  queryFn: async () => t(),
7557
7557
  select: (l) => {
@@ -7564,7 +7564,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7564
7564
  });
7565
7565
  }, Gm = ({ options: e } = {}) => {
7566
7566
  const n = _i(), { abandonPointsApi: t } = oe();
7567
- return te({
7567
+ return X({
7568
7568
  mutationKey: ["abandonPoint"],
7569
7569
  mutationFn: async (l) => t({
7570
7570
  ...l
@@ -7576,95 +7576,95 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7576
7576
  });
7577
7577
  }, nl = ({ options: e } = {}) => {
7578
7578
  const { lineLoginApi: n } = oe();
7579
- return te({
7579
+ return X({
7580
7580
  mutationKey: ["lineLogin"],
7581
7581
  mutationFn: async (t) => n(t),
7582
7582
  ...e
7583
7583
  });
7584
7584
  }, Io = ({ options: e } = {}) => {
7585
7585
  const { lineLogin2Api: n } = oe();
7586
- return te({
7586
+ return X({
7587
7587
  mutationKey: ["lineLogin"],
7588
7588
  mutationFn: async (t) => n(t),
7589
7589
  ...e
7590
7590
  });
7591
7591
  }, Vo = ({ options: e, formData: n } = {}) => {
7592
7592
  const { getMachineLoginCodeApi: t } = oe();
7593
- return Q({
7593
+ return j({
7594
7594
  queryKey: ["getMachineLoginCode"],
7595
7595
  queryFn: async () => t(n),
7596
7596
  ...e
7597
7597
  });
7598
7598
  }, Mm = ({ options: e } = {}) => {
7599
7599
  const { currency: n } = se(), { memberTransferApi: t } = oe();
7600
- return te({
7600
+ return X({
7601
7601
  mutationKey: ["memberTransfer"],
7602
7602
  mutationFn: async (l) => t({ ...l, currency: n }),
7603
7603
  ...e
7604
7604
  });
7605
7605
  }, Rm = ({ options: e } = {}) => {
7606
7606
  const { mobileLoginApi: n } = oe();
7607
- return te({
7607
+ return X({
7608
7608
  mutationKey: ["mobileLogin"],
7609
7609
  mutationFn: async (t) => n(t),
7610
7610
  ...e
7611
7611
  });
7612
7612
  }, Pm = ({ options: e } = {}) => {
7613
7613
  const { mobileLoginApiV2: n } = oe();
7614
- return te({
7614
+ return X({
7615
7615
  mutationKey: ["mobileLoginV2"],
7616
7616
  mutationFn: async (t) => n(t),
7617
7617
  ...e
7618
7618
  });
7619
7619
  }, wm = ({ options: e } = {}) => {
7620
7620
  const { mobileRegisterApi: n } = oe();
7621
- return te({
7621
+ return X({
7622
7622
  mutationKey: ["mobileRegister"],
7623
7623
  mutationFn: async (t) => n(t),
7624
7624
  ...e
7625
7625
  });
7626
7626
  }, Jo = ({ options: e } = {}) => {
7627
7627
  const { bindAccountApi: n } = oe();
7628
- return te({
7628
+ return X({
7629
7629
  mutationKey: ["bindAccount"],
7630
7630
  mutationFn: async (t) => n(t),
7631
7631
  ...e
7632
7632
  });
7633
7633
  }, Fm = ({ options: e } = {}) => {
7634
7634
  const { sendMobileVerifyCodeApi: n } = oe();
7635
- return te({
7635
+ return X({
7636
7636
  mutationKey: ["sendMobileVerifyCode"],
7637
7637
  mutationFn: async (t) => n(t),
7638
7638
  ...e
7639
7639
  });
7640
7640
  }, Am = ({ options: e, paramsData: n } = {}) => {
7641
7641
  const { verifyPhoneBarApi: t } = Wa();
7642
- return Q({
7642
+ return j({
7643
7643
  queryKey: ["verifyPhoneBar", n],
7644
7644
  queryFn: async () => t(n),
7645
7645
  ...e
7646
7646
  });
7647
7647
  }, Om = ({ options: e, paramsData: n } = {}) => {
7648
7648
  const { verifyDonationCodeApi: t } = Wa();
7649
- return Q({
7649
+ return j({
7650
7650
  queryKey: ["verifyDonationCode", n],
7651
7651
  queryFn: async () => t(n),
7652
7652
  ...e
7653
7653
  });
7654
7654
  }, Bm = ({ options: e } = {}) => {
7655
7655
  const { verifyResetActionApi: n } = oe();
7656
- return te({
7656
+ return X({
7657
7657
  mutationKey: ["verifyResetAction"],
7658
7658
  mutationFn: async (t) => n(t),
7659
7659
  ...e
7660
7660
  });
7661
7661
  }, Hm = ({ options: e, bonusData: n } = {}) => {
7662
7662
  const { getJackpotApi: t } = oe();
7663
- return Q({
7663
+ return j({
7664
7664
  queryKey: ["getJackpotData"],
7665
7665
  queryFn: async () => t(),
7666
7666
  select: (l) => {
7667
- const p = ae(l, "data", {
7667
+ const p = te(l, "data", {
7668
7668
  MAJOR: 0,
7669
7669
  MINOR: 0,
7670
7670
  MINI: 0,
@@ -7672,21 +7672,21 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7672
7672
  MEGA: 0
7673
7673
  });
7674
7674
  return n ? zl(n, (U, d) => {
7675
- U.amount = ae(p, d, 0) + Math.floor(Math.random() * 1e3);
7675
+ U.amount = te(p, d, 0) + Math.floor(Math.random() * 1e3);
7676
7676
  }) : p;
7677
7677
  },
7678
7678
  ...e
7679
7679
  });
7680
7680
  }, Wm = ({ options: e } = {}) => {
7681
7681
  const { getBetRankingApi: n } = oe();
7682
- return Q({
7682
+ return j({
7683
7683
  queryKey: ["getBetRankingData"],
7684
7684
  queryFn: async () => n(),
7685
7685
  ...e
7686
7686
  });
7687
7687
  }, zm = ({ options: e } = {}) => {
7688
7688
  const { getUserAvatarListApi: n } = oe();
7689
- return Q({
7689
+ return j({
7690
7690
  queryKey: ["getAvatarList"],
7691
7691
  queryFn: async () => n(),
7692
7692
  // select: (data) => {
@@ -7696,7 +7696,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7696
7696
  });
7697
7697
  }, Im = ({ options: e } = {}) => {
7698
7698
  const { updateUserAvatarApi: n } = oe();
7699
- return te({
7699
+ return X({
7700
7700
  mutationKey: ["updateAvatar"],
7701
7701
  mutationFn: async (t) => n(t),
7702
7702
  ...e
@@ -7764,9 +7764,9 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7764
7764
  enableNotification: g = !1,
7765
7765
  disabledLineAutoRegister: U = !1
7766
7766
  }) => {
7767
- const { store: d, lng: r } = se(), a = _i(), { isReady: i, setAsReady: o, isPending: m, setAsPending: u } = Zn(), s = Qe(r), c = ee(!1), f = ee(n), y = ae(l, "uid", null);
7768
- ae(l, "testFunction", 0);
7769
- const _ = new URLSearchParams(window.location.search), b = ae(
7767
+ const { store: d, lng: r } = se(), a = _i(), { isReady: i, setAsReady: o, isPending: m, setAsPending: u } = Zn(), s = Qe(r), c = ae(!1), f = ae(n), y = te(l, "uid", null);
7768
+ te(l, "testFunction", 0);
7769
+ const _ = new URLSearchParams(window.location.search), b = te(
7770
7770
  p,
7771
7771
  "enableTransferInGaming",
7772
7772
  !1
@@ -7789,9 +7789,9 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7789
7789
  }), { handleTransferInGame: D } = Go({
7790
7790
  enable: b,
7791
7791
  isTestFunction: !0,
7792
- isTransferMode: ae(p, "isTransferMode", !1),
7793
- isInGameBox: ae(p, "isInGameBox", !1),
7794
- currentGamePlatform: ae(p, "currentGamePlatform", "")
7792
+ isTransferMode: te(p, "isTransferMode", !1),
7793
+ isInGameBox: te(p, "isInGameBox", !1),
7794
+ currentGamePlatform: te(p, "currentGamePlatform", "")
7795
7795
  }), {
7796
7796
  sendMessage: E,
7797
7797
  // 發送普通訊息
@@ -7841,7 +7841,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7841
7841
  pe(() => {
7842
7842
  f.current = n;
7843
7843
  }, [n]);
7844
- const A = ee(null);
7844
+ const A = ae(null);
7845
7845
  return pe(() => {
7846
7846
  if (!h || A.current === h)
7847
7847
  return;
@@ -7856,13 +7856,13 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7856
7856
  onTransferInGame: M,
7857
7857
  onCashRegisterLimit: S,
7858
7858
  onLineLogin: x
7859
- } = f.current, L = ae(h, "type", ""), N = {
7860
- memberInfoUid: ae(h, "member_info_uid", null),
7861
- data: ae(h, "data", null),
7862
- memo: ae(h, "memo", null),
7863
- amount: ae(h, "amount", null),
7864
- limitAmount: ae(h, "limit_amount", null)
7865
- }, Z = Number(N.memberInfoUid) === y, q = N.data, j = N.amount, K = N.limitAmount, ie = _.get("mac") || ui.get("machine_mac_address") || "", le = ae(h, "data.line_id", null), ye = ae(h, "data.line_name", null), Ue = ae(h, "member_info_uid", null);
7859
+ } = f.current, L = te(h, "type", ""), N = {
7860
+ memberInfoUid: te(h, "member_info_uid", null),
7861
+ data: te(h, "data", null),
7862
+ memo: te(h, "memo", null),
7863
+ amount: te(h, "amount", null),
7864
+ limitAmount: te(h, "limit_amount", null)
7865
+ }, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ie = _.get("mac") || ui.get("machine_mac_address") || "", le = te(h, "data.line_id", null), ye = te(h, "data.line_name", null), Ue = te(h, "member_info_uid", null);
7866
7866
  switch (L) {
7867
7867
  case ze.DEPOSIT:
7868
7868
  Z && (D(), w?.(N));
@@ -7872,7 +7872,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7872
7872
  break;
7873
7873
  case ze.ERROR:
7874
7874
  if (Z) {
7875
- const me = ae(h, "open_game_modal", 0) === 1;
7875
+ const me = te(h, "open_game_modal", 0) === 1;
7876
7876
  F(q, {
7877
7877
  notificationType: me ? "gamingNotice" : void 0
7878
7878
  }), P?.(N);
@@ -7899,7 +7899,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7899
7899
  case ze.TRANSFER_IN_GAME:
7900
7900
  case ze.CHECK_REQUEST:
7901
7901
  if (Z && b) {
7902
- const { request_id: me, amount: ce, platform: ke, status: fe } = ae(N, "data", {}) || {}, Ie = localStorage.getItem(
7902
+ const { request_id: me, amount: ce, platform: ke, status: fe } = te(N, "data", {}) || {}, Ie = localStorage.getItem(
7903
7903
  "transfer_in_game_request_id"
7904
7904
  );
7905
7905
  if (fe === "pending") {
@@ -7925,7 +7925,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7925
7925
  case ze.CASH_REGISTER_LIMIT:
7926
7926
  F(q, {
7927
7927
  notificationType: "cashRegisterLimit",
7928
- amount: j,
7928
+ amount: Q,
7929
7929
  limitAmount: K
7930
7930
  }), S?.(N);
7931
7931
  break;
@@ -8044,7 +8044,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8044
8044
  };
8045
8045
  }, Ko = ({ paramsData: e, options: n } = {}) => {
8046
8046
  const { store: t, lng: l, data2URL: p } = se(), { eventListApi: g } = Ya(), U = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
8047
- return Q({
8047
+ return j({
8048
8048
  queryKey: ["eventList", e],
8049
8049
  queryFn: () => g({ paramsData: e }),
8050
8050
  select: (r) => {
@@ -8053,7 +8053,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8053
8053
  const { events_attributes: m } = o, u = Ke(
8054
8054
  m,
8055
8055
  (v) => v.attribute_currency === U
8056
- ) || m[0], s = ae(u, "rewards", {}), c = ae(o, "carousels.[0]", {}), f = Ke(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
8056
+ ) || m[0], s = te(u, "rewards", {}), c = te(o, "carousels.[0]", {}), f = Ke(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
8057
8057
  ...c,
8058
8058
  currentLngCarousel: {
8059
8059
  ...f,
@@ -8161,21 +8161,21 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8161
8161
  });
8162
8162
  }, Zm = ({ options: e } = {}) => {
8163
8163
  const { redeemEventRewardApi: n } = Ya();
8164
- return te({
8164
+ return X({
8165
8165
  mutationKey: ["redeemEventReward"],
8166
8166
  mutationFn: async (t) => n(t),
8167
8167
  ...e
8168
8168
  });
8169
8169
  }, qo = ({ options: e, formData: n } = {}) => {
8170
8170
  const { checkCurrentEventProgessApi: t } = Ya();
8171
- return Q({
8171
+ return j({
8172
8172
  queryKey: ["checkEventProgress"],
8173
8173
  queryFn: async () => t(n),
8174
8174
  ...e
8175
8175
  });
8176
8176
  }, $o = ({ options: e, formData: n } = {}) => {
8177
8177
  const { checkEventStatusApi: t } = Ya();
8178
- return Q({
8178
+ return j({
8179
8179
  queryKey: ["checkEventStatus"],
8180
8180
  queryFn: async () => t(n),
8181
8181
  select: (l) => l.data.event_status,
@@ -8183,7 +8183,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8183
8183
  });
8184
8184
  }, Km = ({ options: e } = {}) => {
8185
8185
  const { settleEventApi: n } = Ya();
8186
- return te({
8186
+ return X({
8187
8187
  mutationKey: ["settleEvent"],
8188
8188
  mutationFn: async (t) => n(t),
8189
8189
  ...e
@@ -8240,11 +8240,11 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8240
8240
  };
8241
8241
  }, $m = ({ gamePlatform: e } = {}) => {
8242
8242
  const { eventWalletListApi: n } = Xa();
8243
- return Q({
8243
+ return j({
8244
8244
  queryKey: ["getEventWalletList", e],
8245
8245
  queryFn: async () => await n({ gamePlatform: e }),
8246
8246
  select: (t) => {
8247
- const l = ae(t, "data", []), p = ae(t, "summary", []), g = e ? Ke(p, (b) => b.restricted_platform === e) : p, U = ae(l, "data", []), {
8247
+ const l = te(t, "data", []), p = te(t, "summary", []), g = e ? Ke(p, (b) => b.restricted_platform === e) : p, U = te(l, "data", []), {
8248
8248
  current_page: d,
8249
8249
  first_page_url: r,
8250
8250
  from: a,
@@ -8276,33 +8276,33 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8276
8276
  };
8277
8277
  }
8278
8278
  });
8279
- }, Qm = ({ eventUids: e = [] } = {}) => {
8280
- const { enabledEventWalletApi: n } = Xa();
8281
- return Q({
8282
- queryKey: ["enabledEventWallet", e],
8283
- queryFn: async () => await n({ eventUids: e })
8279
+ }, Qm = () => {
8280
+ const { enabledEventWalletApi: e } = Xa();
8281
+ return X({
8282
+ mutationKey: ["enabledEventWallet"],
8283
+ mutationFn: async ({ eventUids: n }) => await e({ eventUids: n })
8284
8284
  });
8285
8285
  }, jm = ({ gamePlatform: e = "" } = {}) => {
8286
8286
  const { evaluateEventWalletApi: n } = Xa();
8287
- return Q({
8287
+ return j({
8288
8288
  queryKey: ["evaluateEventWallet", e],
8289
8289
  queryFn: async () => await n({ gamePlatform: e })
8290
8290
  });
8291
8291
  }, Ym = () => {
8292
8292
  const { settleEventWalletApi: e } = Xa();
8293
- return te({
8293
+ return X({
8294
8294
  mutationKey: ["settleEventWallet"],
8295
8295
  mutationFn: async ({ groupUid: n }) => await e({ groupUid: n })
8296
8296
  });
8297
8297
  }, Xm = () => {
8298
8298
  const { abandonEventWalletApi: e } = Xa();
8299
- return te({
8299
+ return X({
8300
8300
  mutationKey: ["abandonEventWallet"],
8301
8301
  mutationFn: async ({ groupUid: n }) => await e({ groupUid: n })
8302
8302
  });
8303
8303
  }, eu = ({ skipPreload: e = !1 } = {}) => {
8304
8304
  const { lng: n, data2URL: t } = se(), { commonCarouselApi: l } = Wa(), p = Qe(n);
8305
- return Q({
8305
+ return j({
8306
8306
  queryKey: ["getCarouselList", e],
8307
8307
  queryFn: async () => {
8308
8308
  const g = window.carousels_list;
@@ -8330,7 +8330,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8330
8330
  });
8331
8331
  }, au = () => {
8332
8332
  const { lng: e } = se(), { commonMarqueeApi: n } = Wa(), t = Qe(e);
8333
- return Q({
8333
+ return j({
8334
8334
  queryKey: ["getMarqueeList"],
8335
8335
  queryFn: async () => {
8336
8336
  const l = window.marquees;
@@ -8343,7 +8343,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8343
8343
  });
8344
8344
  }, tu = ({ options: e } = {}) => {
8345
8345
  const { rankingGameApi: n } = oe();
8346
- return Q({
8346
+ return j({
8347
8347
  queryKey: ["rankingGame"],
8348
8348
  queryFn: async () => n(),
8349
8349
  enabled: window.profit_ranking_status === 1,
@@ -8684,7 +8684,7 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8684
8684
  }, onAction: o = () => {
8685
8685
  }, onMessage: m = () => {
8686
8686
  }, debounce: u = 0, throttle: s = 0, eventsThrottle: c = 200, startOnMount: f = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: b = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: D = !1, disabled: E = !1 } = {}) {
8687
- let G = ee(Te()), O = ee(Te()), k = ee(null), h = ee(null), F = ee(0), A = ee(0), w = ee(0), R = ee(0), P = ee(!1), H = ee(!1), B = ee(!1), W = ee(!0), M = ee(!1), S = ee(null), x = ee(null), L = ee(e), N = ee(0);
8687
+ let G = ae(Te()), O = ae(Te()), k = ae(null), h = ae(null), F = ae(0), A = ae(0), w = ae(0), R = ae(0), P = ae(!1), H = ae(!1), B = ae(!1), W = ae(!0), M = ae(!1), S = ae(null), x = ae(null), L = ae(e), N = ae(0);
8688
8688
  pe(() => {
8689
8689
  if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
8690
8690
  if (e >= Fa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Fa}.`);
@@ -8696,42 +8696,42 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8696
8696
  P.current && (me.current(null, Se), x.current && x.current.active()), je();
8697
8697
  }
8698
8698
  }, [e, n, t, y, E]);
8699
- let Z = ee(_);
8699
+ let Z = ae(_);
8700
8700
  pe(() => {
8701
8701
  Z.current = _;
8702
8702
  }, [_]);
8703
- let q = ee(U), j = ee(l), K = ee([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), ie = ee(E);
8703
+ let q = ae(U), Q = ae(l), K = ae([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), ie = ae(E);
8704
8704
  pe(() => {
8705
8705
  ie.current = E, !W.current && (E ? Ve() : y || je());
8706
8706
  }, [E]);
8707
- let le = ee(d);
8707
+ let le = ae(d);
8708
8708
  pe(() => {
8709
8709
  le.current = d;
8710
8710
  }, [d]);
8711
- let ye = ee(r);
8711
+ let ye = ae(r);
8712
8712
  pe(() => {
8713
8713
  ye.current = r;
8714
8714
  }, [r]);
8715
- let Ue = ee(a);
8715
+ let Ue = ae(a);
8716
8716
  pe(() => {
8717
8717
  Ue.current = a;
8718
8718
  }, [a]);
8719
- let me = ee(i);
8719
+ let me = ae(i);
8720
8720
  pe(() => {
8721
8721
  me.current = i;
8722
8722
  }, [i]);
8723
- let ce = ee(o);
8723
+ let ce = ae(o);
8724
8724
  pe(() => {
8725
8725
  ce.current = o;
8726
8726
  }, [o]);
8727
- let ke = ee(m);
8727
+ let ke = ae(m);
8728
8728
  pe(() => {
8729
8729
  ke.current = m;
8730
8730
  }, [m]);
8731
8731
  let fe = Oa(() => {
8732
8732
  let V = (De, ia) => ce.current(De, ia);
8733
8733
  return u > 0 ? ds(V, u) : s > 0 ? oi(V, s) : V;
8734
- }, [s, u]), Ie = ee();
8734
+ }, [s, u]), Ie = ae();
8735
8735
  pe(() => {
8736
8736
  b && v && (Ie.current = oi(() => {
8737
8737
  x.current.active();
@@ -8771,18 +8771,18 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8771
8771
  return;
8772
8772
  }
8773
8773
  B.current = !1, R.current = 0, w.current = 0, Ge(), b && v && Ie.current();
8774
- }, ta = ee(aa);
8774
+ }, ta = ae(aa);
8775
8775
  pe(() => {
8776
8776
  let V = M.current;
8777
8777
  V && Re(), c > 0 ? ta.current = oi(aa, c) : ta.current = aa, V && xe();
8778
8778
  }, [c, s, u, ce, b, v]);
8779
8779
  let xe = () => {
8780
- pa && j.current && (M.current || (K.current.forEach((V) => {
8781
- j.current.addEventListener(V, ta.current, { capture: !0, passive: !0 });
8780
+ pa && Q.current && (M.current || (K.current.forEach((V) => {
8781
+ Q.current.addEventListener(V, ta.current, { capture: !0, passive: !0 });
8782
8782
  }), M.current = !0));
8783
8783
  }, Re = (V = !1) => {
8784
- pa && j.current && (M.current || V) && (K.current.forEach((De) => {
8785
- j.current.removeEventListener(De, ta.current, { capture: !0 });
8784
+ pa && Q.current && (M.current || V) && (K.current.forEach((De) => {
8785
+ Q.current.removeEventListener(De, ta.current, { capture: !0 });
8786
8786
  }), M.current = !1);
8787
8787
  }, je = z((V) => ie.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.start(), Ge(), !0), [S, P, ie, L, x]), oa = z((V) => ie.current ? !1 : (Ce(), xe(), O.current = Te(), F.current += Te() - k.current, A.current += Te() - k.current, F.current = 0, P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.reset(), y || Ge(), !0), [S, P, L, y, ie, x]), ga = z((V) => ie.current ? !1 : (Ce(), xe(), (P.current || H.current) && ve(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, O.current = Te(), x.current && !V && x.current.activate(), Ge(), !0), [S, P, H, ie, L, x]), Ve = z((V = !1) => ie.current || B.current ? !1 : (R.current = ya(), B.current = !0, Re(), Ce(), x.current && !V && x.current.pause(), !0), [S, ie, x]), Ye = z((V = !1) => ie.current || !B.current ? !1 : (B.current = !1, H.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), x.current && !V && x.current.resume(), !0), [S, L, ie, R, x]), Ia = z((V, De) => (x.current ? (De && ke.current(V, Se), x.current.message(V)) : De && ke.current(V, Se), !0), [m]), Da = z(() => P.current, [P]), Ea = z(() => H.current, [H]), Va = z(() => x.current ? x.current.isLeader : null, [x]), Ja = z(() => x.current ? x.current.isLastActive : null, [x]), da = z(() => x.current ? x.current.token : null, [x]), ya = z(() => {
8788
8788
  if (B.current) return R.current;
@@ -8819,7 +8819,7 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8819
8819
  }, [y, f, E, W]), pe(() => {
8820
8820
  if (!W.current) {
8821
8821
  let V = [...(/* @__PURE__ */ new Set([...p, ...U])).values()];
8822
- if (Re(), K.current = V, j.current = l, q.current = U, y || E) return;
8822
+ if (Re(), K.current = V, Q.current = l, q.current = U, y || E) return;
8823
8823
  f ? je() : xe();
8824
8824
  }
8825
8825
  }, [l, JSON.stringify(p), JSON.stringify(U), W, E, y, f]), pe(() => {
@@ -8850,7 +8850,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8850
8850
  throttle: 500
8851
8851
  }), _s = ({ options: e } = {}) => {
8852
8852
  const { commonInboxApi: n } = Wa(), { getToken: t, lng: l } = se(), p = t?.(), g = Qe(l);
8853
- return Q({
8853
+ return j({
8854
8854
  queryKey: ["inboxList"],
8855
8855
  queryFn: async () => await n(),
8856
8856
  select: (U) => {
@@ -8871,7 +8871,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8871
8871
  });
8872
8872
  }, ys = ({ options: e } = {}) => {
8873
8873
  const { commonReadInboxApi: n } = Wa();
8874
- return te({
8874
+ return X({
8875
8875
  mutationKey: ["readInbox"],
8876
8876
  mutationFn: async (t) => await n(t),
8877
8877
  ...e
@@ -8945,7 +8945,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8945
8945
  }
8946
8946
  ], lu = ({ options: e, formData: n } = {}) => {
8947
8947
  const { lng: t } = se(), { newsListApi: l } = ol(), p = Qe(t);
8948
- return Q({
8948
+ return j({
8949
8949
  queryKey: ["newsList"],
8950
8950
  queryFn: () => {
8951
8951
  const { uid: g, params: U } = n || {};
@@ -8971,7 +8971,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8971
8971
  });
8972
8972
  }, ru = ({ options: e, formData: n } = {}) => {
8973
8973
  const { lng: t } = se(), { newsListApi: l } = ol(), p = Qe(t);
8974
- return Q({
8974
+ return j({
8975
8975
  queryKey: ["newsList"],
8976
8976
  queryFn: () => {
8977
8977
  const { uid: g, params: U } = n || {};
@@ -9160,14 +9160,14 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9160
9160
  };
9161
9161
  }, bs = ({ options: e } = {}) => {
9162
9162
  const { depositApiV1: n } = Ae();
9163
- return Q({
9163
+ return j({
9164
9164
  queryKey: ["depositV1"],
9165
9165
  queryFn: n,
9166
9166
  ...e
9167
9167
  });
9168
9168
  }, Cs = ({ paramsData: e, options: n } = {}) => {
9169
9169
  const { depositApiV2: t } = Ae();
9170
- return Q({
9170
+ return j({
9171
9171
  queryKey: ["depositV2", e],
9172
9172
  queryFn: () => t({ paramsData: e }),
9173
9173
  select: (l) => {
@@ -9192,98 +9192,98 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9192
9192
  });
9193
9193
  }, vs = ({ options: e } = {}) => {
9194
9194
  const { depositApi: n } = Ae();
9195
- return te({
9195
+ return X({
9196
9196
  mutationKey: ["depositAction"],
9197
9197
  mutationFn: async (t) => n(t),
9198
9198
  ...e
9199
9199
  });
9200
9200
  }, hs = ({ options: e } = {}) => {
9201
9201
  const { withdrawApi: n } = Ae();
9202
- return te({
9202
+ return X({
9203
9203
  mutationKey: ["withdrawAction"],
9204
9204
  mutationFn: async (t) => n(t),
9205
9205
  ...e
9206
9206
  });
9207
9207
  }, Ts = ({ paramsData: e, options: n } = {}) => {
9208
9208
  const { depositTransactionApi: t } = Ae();
9209
- return Q({
9209
+ return j({
9210
9210
  queryKey: ["depositTransaction", e],
9211
9211
  queryFn: () => t({ paramsData: e }),
9212
9212
  ...n
9213
9213
  });
9214
9214
  }, ks = ({ paramsData: e, options: n } = {}) => {
9215
9215
  const { eventTransactionApi: t } = Ae();
9216
- return Q({
9216
+ return j({
9217
9217
  queryKey: ["eventTransaction", e],
9218
9218
  queryFn: () => t({ paramsData: e }),
9219
9219
  ...n
9220
9220
  });
9221
9221
  }, xs = ({ options: e } = {}) => {
9222
9222
  const { bankDepositApi: n } = Ae();
9223
- return te({
9223
+ return X({
9224
9224
  mutationKey: ["bankDeposit"],
9225
9225
  mutationFn: async (t) => n(t),
9226
9226
  ...e
9227
9227
  });
9228
9228
  }, Ss = ({ paramsData: e, options: n } = {}) => {
9229
9229
  const { withdrawTransactionApi: t } = Ae();
9230
- return Q({
9230
+ return j({
9231
9231
  queryKey: ["withdrawTransaction", e],
9232
9232
  queryFn: () => t({ paramsData: e }),
9233
9233
  ...n
9234
9234
  });
9235
9235
  }, ou = ({ options: e } = {}) => {
9236
9236
  const { redeemCodeDepositApi: n } = Ae();
9237
- return te({
9237
+ return X({
9238
9238
  mutationKey: ["redeemCodeDeposit"],
9239
9239
  mutationFn: async (t) => n(t),
9240
9240
  ...e
9241
9241
  });
9242
9242
  }, su = ({ options: e } = {}) => {
9243
9243
  const { invoiceApi: n } = Ae();
9244
- return te({
9244
+ return X({
9245
9245
  mutationKey: ["invoiceAction"],
9246
9246
  mutationFn: async (t) => n(t),
9247
9247
  ...e
9248
9248
  });
9249
9249
  }, mu = ({ options: e } = {}) => {
9250
9250
  const { updateInvoiceApi: n } = Ae();
9251
- return te({
9251
+ return X({
9252
9252
  mutationKey: ["updateInvoiceAction"],
9253
9253
  mutationFn: async (t) => n(t),
9254
9254
  ...e
9255
9255
  });
9256
9256
  }, uu = ({ options: e, paramsData: n } = {}) => {
9257
9257
  const { transactionRecordApi: t } = Ae();
9258
- return Q({
9258
+ return j({
9259
9259
  queryKey: ["transactionRecord", "deposit"],
9260
9260
  queryFn: () => t(n, "deposit"),
9261
9261
  ...e
9262
9262
  });
9263
9263
  }, pu = ({ options: e, paramsData: n } = {}) => {
9264
9264
  const { transactionRecordApi: t } = Ae();
9265
- return Q({
9265
+ return j({
9266
9266
  queryKey: ["transactionRecord", "withdraw"],
9267
9267
  queryFn: () => t(n, "withdraw"),
9268
9268
  ...e
9269
9269
  });
9270
9270
  }, gu = ({ options: e, paramsData: n } = {}) => {
9271
9271
  const { transactionRecordApi: t } = Ae();
9272
- return Q({
9272
+ return j({
9273
9273
  queryKey: ["transactionRecord", "event"],
9274
9274
  queryFn: () => t(n, "event"),
9275
9275
  ...e
9276
9276
  });
9277
9277
  }, du = ({ options: e, paramsData: n } = {}) => {
9278
9278
  const { transactionRecordApi: t } = Ae();
9279
- return Q({
9279
+ return j({
9280
9280
  queryKey: ["transactionRecord", "rebate"],
9281
9281
  queryFn: () => t(n, "rebate"),
9282
9282
  ...e
9283
9283
  });
9284
9284
  }, cu = ({ options: e, paramsData: n } = {}) => {
9285
9285
  const { treasureRecordApi: t } = Ae();
9286
- return Q({
9286
+ return j({
9287
9287
  queryKey: ["treasureRecord", n],
9288
9288
  queryFn: () => t(n),
9289
9289
  ...e
@@ -9411,7 +9411,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9411
9411
  extendBuiltins: Fs
9412
9412
  }, _u = (e, n) => {
9413
9413
  const { playGameApi: t } = Ci();
9414
- return Q({
9414
+ return j({
9415
9415
  queryKey: ["playGame"],
9416
9416
  queryFn: async () => {
9417
9417
  const { gameUid: l, gameCode: p, isMobile: g, gameCurrency: U, currentCurrency: d } = e || {}, r = await t({
@@ -9451,7 +9451,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9451
9451
  };
9452
9452
  }, Os = ({ options: e } = {}) => {
9453
9453
  const { currentRebateApi: n } = vl();
9454
- return Q({
9454
+ return j({
9455
9455
  queryKey: ["currentRebate"],
9456
9456
  queryFn: () => n(),
9457
9457
  select: (t) => Il(t, ["code", "status"]),
@@ -9459,7 +9459,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9459
9459
  });
9460
9460
  }, Bs = ({ options: e } = {}) => {
9461
9461
  const { receiveRebateApi: n } = vl();
9462
- return te({
9462
+ return X({
9463
9463
  mutationKey: ["receiveRebate"],
9464
9464
  mutationFn: async () => n(),
9465
9465
  ...e
@@ -9496,7 +9496,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9496
9496
  };
9497
9497
  }, Hs = ({ options: e, formData: n } = {}) => {
9498
9498
  const { rewardListApi: t } = et();
9499
- return Q({
9499
+ return j({
9500
9500
  queryKey: ["rewardsList"],
9501
9501
  queryFn: () => {
9502
9502
  const { uid: l, params: p } = n || {};
@@ -9507,7 +9507,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9507
9507
  const {
9508
9508
  wagering_restricted_amount: U,
9509
9509
  claimed_amount: d
9510
- } = g, r = ae(g, "rewards", {}), {
9510
+ } = g, r = te(g, "rewards", {}), {
9511
9511
  expiration_days: a,
9512
9512
  name: i,
9513
9513
  position: o,
@@ -9536,28 +9536,28 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9536
9536
  });
9537
9537
  }, Ws = ({ options: e } = {}) => {
9538
9538
  const { redeemRewardApi: n } = et();
9539
- return te({
9539
+ return X({
9540
9540
  mutationKey: ["redeemReward"],
9541
9541
  mutationFn: async (t) => await n(t),
9542
9542
  ...e
9543
9543
  });
9544
9544
  }, zs = ({ options: e } = {}) => {
9545
9545
  const { unUsedRewardListApi: n } = et();
9546
- return Q({
9546
+ return j({
9547
9547
  queryKey: ["unUsedRewardsList"],
9548
9548
  queryFn: n,
9549
9549
  ...e
9550
9550
  });
9551
9551
  }, Is = ({ options: e } = {}) => {
9552
9552
  const { expiredRewardListApi: n } = et();
9553
- return Q({
9553
+ return j({
9554
9554
  queryKey: ["expiredRewardsList"],
9555
9555
  queryFn: n,
9556
9556
  ...e
9557
9557
  });
9558
9558
  }, Vs = ({ options: e } = {}) => {
9559
9559
  const { historyRewardApi: n } = et();
9560
- return Q({
9560
+ return j({
9561
9561
  queryKey: ["historyRewardsList"],
9562
9562
  queryFn: n,
9563
9563
  ...e
@@ -9624,18 +9624,18 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9624
9624
  };
9625
9625
  }, bu = ({ paramsData: e, options: n } = {}) => {
9626
9626
  const { client: t, lng: l } = se(), p = Qe(l || "tw"), { treasureListApi: g } = hl();
9627
- return Q({
9627
+ return j({
9628
9628
  queryKey: ["treasureList", e],
9629
9629
  queryFn: () => g(e),
9630
9630
  select: (U) => {
9631
- const d = ae(U, "data", {}), r = {
9632
- current_page: ae(d, "current_page", 1),
9633
- per_page: ae(d, "per_page", 10),
9634
- total: ae(d, "total", 1),
9635
- last_page: ae(d, "last_page", 1)
9631
+ const d = te(U, "data", {}), r = {
9632
+ current_page: te(d, "current_page", 1),
9633
+ per_page: te(d, "per_page", 10),
9634
+ total: te(d, "total", 1),
9635
+ last_page: te(d, "last_page", 1)
9636
9636
  };
9637
9637
  return {
9638
- list: Be(ae(d, "data", []), (i) => {
9638
+ list: Be(te(d, "data", []), (i) => {
9639
9639
  const o = Ke(i.treasure_copywriting, {
9640
9640
  language: p
9641
9641
  });
@@ -9652,7 +9652,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9652
9652
  });
9653
9653
  }, Cu = ({ options: e } = {}) => {
9654
9654
  const { redeemTreasureApi: n } = hl();
9655
- return te({
9655
+ return X({
9656
9656
  mutationKey: ["redeemTreasure"],
9657
9657
  mutationFn: async (t) => n(t),
9658
9658
  ...e
@@ -9665,7 +9665,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9665
9665
  };
9666
9666
  }, vu = ({ options: e } = {}) => {
9667
9667
  const { store: n } = se(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = Tl();
9668
- return Q({
9668
+ return j({
9669
9669
  queryKey: ["vipInfo"],
9670
9670
  queryFn: async () => l(),
9671
9671
  select: (p) => {
@@ -9680,7 +9680,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9680
9680
  });
9681
9681
  }, Js = ({ options: e } = {}) => {
9682
9682
  const { store: n } = se(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = Tl();
9683
- return Q({
9683
+ return j({
9684
9684
  queryKey: ["vipList"],
9685
9685
  queryFn: async () => {
9686
9686
  const p = window.vip_list;
@@ -9698,7 +9698,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9698
9698
  } = d, u = Ke(r, { currency_code: t }) || {}, s = Ke(a, { currency_code: t }) || {}, c = i, f = Be(o, (b) => ({
9699
9699
  ...b,
9700
9700
  rebateRange: JSON.parse(b.rebate_range)
9701
- })), y = ae(m, "[0]", {}), _ = {
9701
+ })), y = te(m, "[0]", {}), _ = {
9702
9702
  ...y,
9703
9703
  platformRebate: JSON.parse(y.rebate || "{}")
9704
9704
  };
@@ -10003,7 +10003,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
10003
10003
  },
10004
10004
  user: { favorite: [] }
10005
10005
  }, im = ({ enabled: e = !0 } = {}) => {
10006
- const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: U, refetch: d } = Q({
10006
+ const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: U, refetch: d } = j({
10007
10007
  queryKey: ["gamesInfo"],
10008
10008
  queryFn: async () => {
10009
10009
  let r = {}, a = {};
@@ -36610,7 +36610,7 @@ function Du({
36610
36610
  }
36611
36611
  const Eu = ({ onFunction: e = () => {
36612
36612
  }, buttonProps: n = {} } = {}) => {
36613
- const { lineConfig: t } = se(), l = ee(!1), p = ae(t, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: m } = nl({
36613
+ const { lineConfig: t } = se(), l = ae(!1), p = te(t, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: m } = nl({
36614
36614
  options: {
36615
36615
  onSuccess: (s) => {
36616
36616
  e(s);
@@ -37516,14 +37516,14 @@ const fm = {
37516
37516
  expired: "Kode QR telah kedaluwarsa"
37517
37517
  }
37518
37518
  }, Gu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
37519
- const { lng: l, getToken: p, lineConfig: g } = se(), [U, d] = si(300), [r, a] = si(!1), i = ee(null), o = ae(g, "liffId", ""), m = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || ui.get("machine_mac_address") || "", { data: f, isFetching: y } = Vo({
37519
+ const { lng: l, getToken: p, lineConfig: g } = se(), [U, d] = si(300), [r, a] = si(!1), i = ae(null), o = te(g, "liffId", ""), m = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || ui.get("machine_mac_address") || "", { data: f, isFetching: y } = Vo({
37520
37520
  formData: {
37521
37521
  mac_address: c
37522
37522
  },
37523
37523
  options: {
37524
37524
  enabled: e ? !0 : !!c && !u
37525
37525
  }
37526
- }), _ = ae(f, "liff_url", "") || `https://liff.line.me/${o}`;
37526
+ }), _ = te(f, "liff_url", "") || `https://liff.line.me/${o}`;
37527
37527
  pe(() => {
37528
37528
  c && ui.set("machine_mac_address", c, { expires: 365 });
37529
37529
  }, [c]), pe(() => (_ && (d(300), a(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
@@ -37595,7 +37595,7 @@ const fm = {
37595
37595
  });
37596
37596
  }
37597
37597
  }
37598
- }), U = ee(!1);
37598
+ }), U = ae(!1);
37599
37599
  return pe(() => {
37600
37600
  if (U.current) return;
37601
37601
  const d = new URLSearchParams(window.location.search), r = d.get("bind_type"), a = d.get("bind_id");