@obb871001/api-integration-sdk 1.0.255 → 1.0.257

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
@@ -12,18 +12,18 @@ function Rl(e) {
12
12
  var u = e.default;
13
13
  if (typeof u == "function") {
14
14
  var n = function l() {
15
- var p = !1;
15
+ var g = !1;
16
16
  try {
17
- p = this instanceof l;
17
+ g = this instanceof l;
18
18
  } catch {
19
19
  }
20
- return p ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
20
+ return g ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
21
21
  };
22
22
  n.prototype = u.prototype;
23
23
  } else n = {};
24
24
  return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(l) {
25
- var p = Object.getOwnPropertyDescriptor(e, l);
26
- Object.defineProperty(n, l, p.get ? p : {
25
+ var g = Object.getOwnPropertyDescriptor(e, l);
26
+ Object.defineProperty(n, l, g.get ? g : {
27
27
  enumerable: !0,
28
28
  get: function() {
29
29
  return e[l];
@@ -36,13 +36,13 @@ var yt;
36
36
  function Pl() {
37
37
  if (yt) return ha;
38
38
  yt = 1;
39
- var e = re, u = Symbol.for("react.element"), n = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
39
+ var e = re, u = Symbol.for("react.element"), n = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
40
40
  function C(f, t, i) {
41
41
  var a, o = {}, r = null, m = null;
42
42
  i !== void 0 && (r = "" + i), t.key !== void 0 && (r = "" + t.key), t.ref !== void 0 && (m = t.ref);
43
- for (a in t) l.call(t, a) && !g.hasOwnProperty(a) && (o[a] = t[a]);
43
+ for (a in t) l.call(t, a) && !p.hasOwnProperty(a) && (o[a] = t[a]);
44
44
  if (f && f.defaultProps) for (a in t = f.defaultProps, t) o[a] === void 0 && (o[a] = t[a]);
45
- return { $$typeof: u, type: f, key: r, ref: m, props: o, _owner: p.current };
45
+ return { $$typeof: u, type: f, key: r, ref: m, props: o, _owner: g.current };
46
46
  }
47
47
  return ha.Fragment = n, ha.jsx = C, ha.jsxs = C, ha;
48
48
  }
@@ -50,7 +50,7 @@ var Ta = {};
50
50
  var Ut;
51
51
  function Fl() {
52
52
  return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && (function() {
53
- var e = re, u = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), f = Symbol.for("react.context"), t = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), r = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), s = Symbol.iterator, c = "@@iterator";
53
+ var e = re, u = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), f = Symbol.for("react.context"), t = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), r = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), s = Symbol.iterator, c = "@@iterator";
54
54
  function d(k) {
55
55
  if (k === null || typeof k != "object")
56
56
  return null;
@@ -78,7 +78,7 @@ function Fl() {
78
78
  var b = !1, h = !1, x = !1, S = !1, N = !1, D;
79
79
  D = Symbol.for("react.module.reference");
80
80
  function v(k) {
81
- return !!(typeof k == "string" || typeof k == "function" || k === l || k === g || N || k === p || k === i || k === a || S || k === m || b || h || x || typeof k == "object" && k !== null && (k.$$typeof === r || k.$$typeof === o || k.$$typeof === C || k.$$typeof === f || k.$$typeof === t || // This needs to include all possible module reference object
81
+ return !!(typeof k == "string" || typeof k == "function" || k === l || k === p || N || k === g || k === i || k === a || S || k === m || b || h || x || typeof k == "object" && k !== null && (k.$$typeof === r || k.$$typeof === o || k.$$typeof === C || k.$$typeof === f || k.$$typeof === t || // This needs to include all possible module reference object
82
82
  // types supported by any Flight configuration anywhere since
83
83
  // we don't know which Flight build this will end up being used
84
84
  // with.
@@ -106,9 +106,9 @@ function Fl() {
106
106
  return "Fragment";
107
107
  case n:
108
108
  return "Portal";
109
- case g:
110
- return "Profiler";
111
109
  case p:
110
+ return "Profiler";
111
+ case g:
112
112
  return "StrictMode";
113
113
  case i:
114
114
  return "Suspense";
@@ -652,12 +652,12 @@ const Rn = at(null), te = () => {
652
652
  PENDING: "pending"
653
653
  }, Pn = at(null), Al = ({ children: e }) => {
654
654
  const [u, n] = xl(ka.PENDING), l = Ea(() => {
655
- const p = u === ka.READY, g = u === ka.PENDING;
655
+ const g = u === ka.READY, p = u === ka.PENDING;
656
656
  return {
657
657
  status: u,
658
658
  setStatus: n,
659
- isReady: p,
660
- isPending: g,
659
+ isReady: g,
660
+ isPending: p,
661
661
  setAsReady: () => n(ka.READY),
662
662
  setAsPending: () => n(ka.PENDING)
663
663
  };
@@ -701,8 +701,8 @@ function vt({
701
701
  getToken: u,
702
702
  timeoutMs: n = 15e3,
703
703
  lng: l = "tw",
704
- store: p,
705
- onError: g,
704
+ store: g,
705
+ onError: p,
706
706
  formData: C = !1,
707
707
  currency: f,
708
708
  toasterOpen: t = !1
@@ -719,7 +719,7 @@ function vt({
719
719
  const r = await u();
720
720
  r && (a.headers.Authorization = `Bearer ${r}`);
721
721
  }
722
- const o = p?.getState()?.isWalletCurrency || f || "TWD";
722
+ const o = g?.getState()?.isWalletCurrency || f || "TWD";
723
723
  return a.headers.Currency = o, a.headers["currency-code"] = o, a.headers.lang = l, a;
724
724
  }), i.interceptors.response.use(
725
725
  (a) => a.data,
@@ -731,7 +731,7 @@ function vt({
731
731
  );
732
732
  if (t) {
733
733
  const r = Pe(l);
734
- p?.dispatch({
734
+ g?.dispatch({
735
735
  type: "ui/showToast",
736
736
  payload: {
737
737
  title: Na[r] || "System Prompt",
@@ -741,7 +741,7 @@ function vt({
741
741
  }
742
742
  });
743
743
  }
744
- return g ? g(a, { instance: i }) : Promise.reject(a);
744
+ return p ? p(a, { instance: i }) : Promise.reject(a);
745
745
  }
746
746
  ), i;
747
747
  }
@@ -753,20 +753,20 @@ const Bn = at(null), Wm = () => {
753
753
  );
754
754
  return e;
755
755
  }, zm = () => {
756
- const e = (l, p) => !l && !p, u = (l) => l.startsWith("pc.");
756
+ const e = (l, g) => !l && !g, u = (l) => l.startsWith("pc.");
757
757
  return {
758
758
  executeLogout: ({
759
759
  isCallBackInvalid: l = !1,
760
- hostname: p = "",
761
- shouldRedirect: g,
760
+ hostname: g = "",
761
+ shouldRedirect: p,
762
762
  onShowError: C,
763
763
  onCleanup: f,
764
764
  onRemoveToken: t,
765
765
  onRedirect: i,
766
766
  onGoogleLogout: a
767
767
  }) => {
768
- const o = u(p);
769
- e(l, o) && C?.(), f?.(), t?.(), g && i?.("/"), a?.();
768
+ const o = u(g);
769
+ e(l, o) && C?.(), f?.(), t?.(), p && i?.("/"), a?.();
770
770
  },
771
771
  shouldShowErrorNotice: e,
772
772
  isMachineDomain: u
@@ -786,11 +786,11 @@ const Bn = at(null), Wm = () => {
786
786
  platforms: u,
787
787
  gameList: n,
788
788
  allGameTypes: l,
789
- allPlatforms: p
789
+ allPlatforms: g
790
790
  }) => {
791
- const g = Hn(l, e);
792
- return g ? u.reduce((C, f) => {
793
- const t = Wn(p, f), i = zn(p, f), a = n[g] || [], o = In(
791
+ const p = Hn(l, e);
792
+ return p ? u.reduce((C, f) => {
793
+ const t = Wn(g, f), i = zn(g, f), a = n[p] || [], o = In(
794
794
  a,
795
795
  t,
796
796
  i
@@ -802,12 +802,12 @@ const Bn = at(null), Wm = () => {
802
802
  gamesOfType: u = [],
803
803
  allPlatforms: n = []
804
804
  }) => {
805
- const l = Wn(n, e), p = zn(n, e), g = In(
805
+ const l = Wn(n, e), g = zn(n, e), p = In(
806
806
  u,
807
807
  l,
808
- p
808
+ g
809
809
  );
810
- return Ol(g);
810
+ return Ol(p);
811
811
  };
812
812
  var Ja = { exports: {} }, Wl = Ja.exports, ht;
813
813
  function zl() {
@@ -815,7 +815,7 @@ function zl() {
815
815
  (function(n, l) {
816
816
  e.exports = l();
817
817
  })(Wl, (function() {
818
- var n = 1e3, l = 6e4, p = 36e5, g = "millisecond", C = "second", f = "minute", t = "hour", i = "day", a = "week", o = "month", r = "quarter", m = "year", s = "date", c = "Invalid Date", d = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
818
+ var n = 1e3, l = 6e4, g = 36e5, p = "millisecond", C = "second", f = "minute", t = "hour", i = "day", a = "week", o = "month", r = "quarter", m = "year", s = "date", c = "Invalid Date", d = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
819
819
  var R = ["th", "st", "nd", "rd"], F = w % 100;
820
820
  return "[" + w + (R[(F - 20) % 10] || R[F] || R[0]) + "]";
821
821
  } }, y = function(w, R, F) {
@@ -831,7 +831,7 @@ function zl() {
831
831
  }, a: function(w) {
832
832
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
833
833
  }, p: function(w) {
834
- return { M: o, y: m, w: a, d: i, D: s, h: t, m: f, s: C, ms: g, Q: r }[w] || String(w || "").toLowerCase().replace(/s$/, "");
834
+ return { M: o, y: m, w: a, d: i, D: s, h: t, m: f, s: C, ms: p, Q: r }[w] || String(w || "").toLowerCase().replace(/s$/, "");
835
835
  }, u: function(w) {
836
836
  return w === void 0;
837
837
  } }, h = "en", x = {};
@@ -929,7 +929,7 @@ function zl() {
929
929
  }, R.endOf = function(F) {
930
930
  return this.startOf(F, !1);
931
931
  }, R.$set = function(F, H) {
932
- var O, W = T.p(F), z = "set" + (this.$u ? "UTC" : ""), L = (O = {}, O[i] = z + "Date", O[s] = z + "Date", O[o] = z + "Month", O[m] = z + "FullYear", O[t] = z + "Hours", O[f] = z + "Minutes", O[C] = z + "Seconds", O[g] = z + "Milliseconds", O)[W], M = W === i ? this.$D + (H - this.$W) : H;
932
+ var O, W = T.p(F), z = "set" + (this.$u ? "UTC" : ""), L = (O = {}, O[i] = z + "Date", O[s] = z + "Date", O[o] = z + "Month", O[m] = z + "FullYear", O[t] = z + "Hours", O[f] = z + "Minutes", O[C] = z + "Seconds", O[p] = z + "Milliseconds", O)[W], M = W === i ? this.$D + (H - this.$W) : H;
933
933
  if (W === o || W === m) {
934
934
  var A = this.clone().set(s, 1);
935
935
  A.$d[L](M), A.init(), this.$d = A.set(s, Math.min(this.$D, A.daysInMonth())).$d;
@@ -950,7 +950,7 @@ function zl() {
950
950
  if (z === m) return this.set(m, this.$y + F);
951
951
  if (z === i) return L(1);
952
952
  if (z === a) return L(7);
953
- var M = (O = {}, O[f] = l, O[t] = p, O[C] = n, O)[z] || 1, A = this.$d.getTime() + F * M;
953
+ var M = (O = {}, O[f] = l, O[t] = g, O[C] = n, O)[z] || 1, A = this.$d.getTime() + F * M;
954
954
  return T.w(A, this);
955
955
  }, R.subtract = function(F, H) {
956
956
  return this.add(-1 * F, H);
@@ -1043,7 +1043,7 @@ function zl() {
1043
1043
  W = (P - A) / 864e5;
1044
1044
  break;
1045
1045
  case t:
1046
- W = P / p;
1046
+ W = P / g;
1047
1047
  break;
1048
1048
  case f:
1049
1049
  W = P / l;
@@ -1075,7 +1075,7 @@ function zl() {
1075
1075
  return this.$d.toUTCString();
1076
1076
  }, w;
1077
1077
  })(), G = E.prototype;
1078
- return v.prototype = G, [["$ms", g], ["$s", C], ["$m", f], ["$H", t], ["$W", i], ["$M", o], ["$y", m], ["$D", s]].forEach((function(w) {
1078
+ return v.prototype = G, [["$ms", p], ["$s", C], ["$m", f], ["$H", t], ["$W", i], ["$M", o], ["$y", m], ["$D", s]].forEach((function(w) {
1079
1079
  G[w[1]] = function(R) {
1080
1080
  return this.$g(R, w[0], w[1]);
1081
1081
  };
@@ -1104,23 +1104,23 @@ function j() {
1104
1104
  (function(n, l) {
1105
1105
  e.exports = l();
1106
1106
  })(ql, function() {
1107
- var n = n || (function(l, p) {
1108
- var g;
1109
- if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof Vi < "u" && Vi.crypto && (g = Vi.crypto), !g && typeof Vl == "function")
1107
+ var n = n || (function(l, g) {
1108
+ var p;
1109
+ if (typeof window < "u" && window.crypto && (p = window.crypto), typeof self < "u" && self.crypto && (p = self.crypto), typeof globalThis < "u" && globalThis.crypto && (p = globalThis.crypto), !p && typeof window < "u" && window.msCrypto && (p = window.msCrypto), !p && typeof Vi < "u" && Vi.crypto && (p = Vi.crypto), !p && typeof Vl == "function")
1110
1110
  try {
1111
- g = Kl;
1111
+ p = Kl;
1112
1112
  } catch {
1113
1113
  }
1114
1114
  var C = function() {
1115
- if (g) {
1116
- if (typeof g.getRandomValues == "function")
1115
+ if (p) {
1116
+ if (typeof p.getRandomValues == "function")
1117
1117
  try {
1118
- return g.getRandomValues(new Uint32Array(1))[0];
1118
+ return p.getRandomValues(new Uint32Array(1))[0];
1119
1119
  } catch {
1120
1120
  }
1121
- if (typeof g.randomBytes == "function")
1121
+ if (typeof p.randomBytes == "function")
1122
1122
  try {
1123
- return g.randomBytes(4).readInt32LE();
1123
+ return p.randomBytes(4).readInt32LE();
1124
1124
  } catch {
1125
1125
  }
1126
1126
  }
@@ -1231,7 +1231,7 @@ function j() {
1231
1231
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
1232
1232
  */
1233
1233
  init: function(_, y) {
1234
- _ = this.words = _ || [], y != p ? this.sigBytes = y : this.sigBytes = _.length * 4;
1234
+ _ = this.words = _ || [], y != g ? this.sigBytes = y : this.sigBytes = _.length * 4;
1235
1235
  },
1236
1236
  /**
1237
1237
  * Converts this word array to a string.
@@ -1606,7 +1606,7 @@ function Ri() {
1606
1606
  e.exports = l(j());
1607
1607
  })(Ql, function(n) {
1608
1608
  return (function(l) {
1609
- var p = n, g = p.lib, C = g.Base, f = g.WordArray, t = p.x64 = {};
1609
+ var g = n, p = g.lib, C = p.Base, f = p.WordArray, t = g.x64 = {};
1610
1610
  t.Word = C.extend({
1611
1611
  /**
1612
1612
  * Initializes a newly created 64-bit word.
@@ -1837,7 +1837,7 @@ function jl() {
1837
1837
  })($l, function(n) {
1838
1838
  return (function() {
1839
1839
  if (typeof ArrayBuffer == "function") {
1840
- var l = n, p = l.lib, g = p.WordArray, C = g.init, f = g.init = function(t) {
1840
+ var l = n, g = l.lib, p = g.WordArray, C = p.init, f = p.init = function(t) {
1841
1841
  if (t instanceof ArrayBuffer && (t = new Uint8Array(t)), (t instanceof Int8Array || typeof Uint8ClampedArray < "u" && t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array) && (t = new Uint8Array(t.buffer, t.byteOffset, t.byteLength)), t instanceof Uint8Array) {
1842
1842
  for (var i = t.byteLength, a = [], o = 0; o < i; o++)
1843
1843
  a[o >>> 2] |= t[o] << 24 - o % 4 * 8;
@@ -1845,7 +1845,7 @@ function jl() {
1845
1845
  } else
1846
1846
  C.apply(this, arguments);
1847
1847
  };
1848
- f.prototype = g;
1848
+ f.prototype = p;
1849
1849
  }
1850
1850
  })(), n.lib.WordArray;
1851
1851
  });
@@ -1858,7 +1858,7 @@ function Xl() {
1858
1858
  e.exports = l(j());
1859
1859
  })(Yl, function(n) {
1860
1860
  return (function() {
1861
- var l = n, p = l.lib, g = p.WordArray, C = l.enc;
1861
+ var l = n, g = l.lib, p = g.WordArray, C = l.enc;
1862
1862
  C.Utf16 = C.Utf16BE = {
1863
1863
  /**
1864
1864
  * Converts a word array to a UTF-16 BE string.
@@ -1896,7 +1896,7 @@ function Xl() {
1896
1896
  parse: function(t) {
1897
1897
  for (var i = t.length, a = [], o = 0; o < i; o++)
1898
1898
  a[o >>> 1] |= t.charCodeAt(o) << 16 - o % 2 * 16;
1899
- return g.create(a, i * 2);
1899
+ return p.create(a, i * 2);
1900
1900
  }
1901
1901
  }, C.Utf16LE = {
1902
1902
  /**
@@ -1935,7 +1935,7 @@ function Xl() {
1935
1935
  parse: function(t) {
1936
1936
  for (var i = t.length, a = [], o = 0; o < i; o++)
1937
1937
  a[o >>> 1] |= f(t.charCodeAt(o) << 16 - o % 2 * 16);
1938
- return g.create(a, i * 2);
1938
+ return p.create(a, i * 2);
1939
1939
  }
1940
1940
  };
1941
1941
  function f(t) {
@@ -1952,7 +1952,7 @@ function ma() {
1952
1952
  e.exports = l(j());
1953
1953
  })(er, function(n) {
1954
1954
  return (function() {
1955
- var l = n, p = l.lib, g = p.WordArray, C = l.enc;
1955
+ var l = n, g = l.lib, p = g.WordArray, C = l.enc;
1956
1956
  C.Base64 = {
1957
1957
  /**
1958
1958
  * Converts a word array to a Base64 string.
@@ -2014,7 +2014,7 @@ function ma() {
2014
2014
  var s = a[t.charCodeAt(m - 1)] << m % 4 * 2, c = a[t.charCodeAt(m)] >>> 6 - m % 4 * 2, d = s | c;
2015
2015
  o[r >>> 2] |= d << 24 - r % 4 * 8, r++;
2016
2016
  }
2017
- return g.create(o, r);
2017
+ return p.create(o, r);
2018
2018
  }
2019
2019
  })(), n.enc.Base64;
2020
2020
  });
@@ -2027,7 +2027,7 @@ function ir() {
2027
2027
  e.exports = l(j());
2028
2028
  })(ar, function(n) {
2029
2029
  return (function() {
2030
- var l = n, p = l.lib, g = p.WordArray, C = l.enc;
2030
+ var l = n, g = l.lib, p = g.WordArray, C = l.enc;
2031
2031
  C.Base64url = {
2032
2032
  /**
2033
2033
  * Converts a word array to a Base64url string.
@@ -2096,7 +2096,7 @@ function ir() {
2096
2096
  var s = a[t.charCodeAt(m - 1)] << m % 4 * 2, c = a[t.charCodeAt(m)] >>> 6 - m % 4 * 2, d = s | c;
2097
2097
  o[r >>> 2] |= d << 24 - r % 4 * 8, r++;
2098
2098
  }
2099
- return g.create(o, r);
2099
+ return p.create(o, r);
2100
2100
  }
2101
2101
  })(), n.enc.Base64url;
2102
2102
  });
@@ -2109,7 +2109,7 @@ function sa() {
2109
2109
  e.exports = l(j());
2110
2110
  })(tr, function(n) {
2111
2111
  return (function(l) {
2112
- var p = n, g = p.lib, C = g.WordArray, f = g.Hasher, t = p.algo, i = [];
2112
+ var g = n, p = g.lib, C = p.WordArray, f = p.Hasher, t = g.algo, i = [];
2113
2113
  (function() {
2114
2114
  for (var c = 0; c < 64; c++)
2115
2115
  i[c] = l.abs(l.sin(c + 1)) * 4294967296 | 0;
@@ -2163,7 +2163,7 @@ function sa() {
2163
2163
  var x = c + (U ^ (d | ~_)) + y + h;
2164
2164
  return (x << b | x >>> 32 - b) + d;
2165
2165
  }
2166
- p.MD5 = f._createHelper(a), p.HmacMD5 = f._createHmacHelper(a);
2166
+ g.MD5 = f._createHelper(a), g.HmacMD5 = f._createHmacHelper(a);
2167
2167
  })(Math), n.MD5;
2168
2168
  });
2169
2169
  })(ei)), ei.exports;
@@ -2175,9 +2175,9 @@ function Vn() {
2175
2175
  e.exports = l(j());
2176
2176
  })(nr, function(n) {
2177
2177
  return (function() {
2178
- var l = n, p = l.lib, g = p.WordArray, C = p.Hasher, f = l.algo, t = [], i = f.SHA1 = C.extend({
2178
+ var l = n, g = l.lib, p = g.WordArray, C = g.Hasher, f = l.algo, t = [], i = f.SHA1 = C.extend({
2179
2179
  _doReset: function() {
2180
- this._hash = new g.init([
2180
+ this._hash = new p.init([
2181
2181
  1732584193,
2182
2182
  4023233417,
2183
2183
  2562383102,
@@ -2219,7 +2219,7 @@ function nt() {
2219
2219
  e.exports = l(j());
2220
2220
  })(lr, function(n) {
2221
2221
  return (function(l) {
2222
- var p = n, g = p.lib, C = g.WordArray, f = g.Hasher, t = p.algo, i = [], a = [];
2222
+ var g = n, p = g.lib, C = p.WordArray, f = p.Hasher, t = g.algo, i = [], a = [];
2223
2223
  (function() {
2224
2224
  function m(U) {
2225
2225
  for (var _ = l.sqrt(U), y = 2; y <= _; y++)
@@ -2259,7 +2259,7 @@ function nt() {
2259
2259
  return m._hash = this._hash.clone(), m;
2260
2260
  }
2261
2261
  });
2262
- p.SHA256 = f._createHelper(r), p.HmacSHA256 = f._createHmacHelper(r);
2262
+ g.SHA256 = f._createHelper(r), g.HmacSHA256 = f._createHmacHelper(r);
2263
2263
  })(Math), n.SHA256;
2264
2264
  });
2265
2265
  })(ii)), ii.exports;
@@ -2267,13 +2267,13 @@ function nt() {
2267
2267
  var ti = { exports: {} }, rr = ti.exports, Mt;
2268
2268
  function or() {
2269
2269
  return Mt || (Mt = 1, (function(e, u) {
2270
- (function(n, l, p) {
2270
+ (function(n, l, g) {
2271
2271
  e.exports = l(j(), nt());
2272
2272
  })(rr, function(n) {
2273
2273
  return (function() {
2274
- var l = n, p = l.lib, g = p.WordArray, C = l.algo, f = C.SHA256, t = C.SHA224 = f.extend({
2274
+ var l = n, g = l.lib, p = g.WordArray, C = l.algo, f = C.SHA256, t = C.SHA224 = f.extend({
2275
2275
  _doReset: function() {
2276
- this._hash = new g.init([
2276
+ this._hash = new p.init([
2277
2277
  3238371032,
2278
2278
  914150663,
2279
2279
  812702999,
@@ -2297,11 +2297,11 @@ function or() {
2297
2297
  var ni = { exports: {} }, mr = ni.exports, Rt;
2298
2298
  function Zn() {
2299
2299
  return Rt || (Rt = 1, (function(e, u) {
2300
- (function(n, l, p) {
2300
+ (function(n, l, g) {
2301
2301
  e.exports = l(j(), Ri());
2302
2302
  })(mr, function(n) {
2303
2303
  return (function() {
2304
- var l = n, p = l.lib, g = p.Hasher, C = l.x64, f = C.Word, t = C.WordArray, i = l.algo;
2304
+ var l = n, g = l.lib, p = g.Hasher, C = l.x64, f = C.Word, t = C.WordArray, i = l.algo;
2305
2305
  function a() {
2306
2306
  return f.create.apply(f, arguments);
2307
2307
  }
@@ -2391,7 +2391,7 @@ function Zn() {
2391
2391
  for (var s = 0; s < 80; s++)
2392
2392
  r[s] = a();
2393
2393
  })();
2394
- var m = i.SHA512 = g.extend({
2394
+ var m = i.SHA512 = p.extend({
2395
2395
  _doReset: function() {
2396
2396
  this._hash = new t.init([
2397
2397
  new f.init(1779033703, 4089235720),
@@ -2425,12 +2425,12 @@ function Zn() {
2425
2425
  return _;
2426
2426
  },
2427
2427
  clone: function() {
2428
- var s = g.clone.call(this);
2428
+ var s = p.clone.call(this);
2429
2429
  return s._hash = this._hash.clone(), s;
2430
2430
  },
2431
2431
  blockSize: 1024 / 32
2432
2432
  });
2433
- l.SHA512 = g._createHelper(m), l.HmacSHA512 = g._createHmacHelper(m);
2433
+ l.SHA512 = p._createHelper(m), l.HmacSHA512 = p._createHmacHelper(m);
2434
2434
  })(), n.SHA512;
2435
2435
  });
2436
2436
  })(ni)), ni.exports;
@@ -2438,21 +2438,21 @@ function Zn() {
2438
2438
  var li = { exports: {} }, sr = li.exports, Pt;
2439
2439
  function ur() {
2440
2440
  return Pt || (Pt = 1, (function(e, u) {
2441
- (function(n, l, p) {
2441
+ (function(n, l, g) {
2442
2442
  e.exports = l(j(), Ri(), Zn());
2443
2443
  })(sr, function(n) {
2444
2444
  return (function() {
2445
- var l = n, p = l.x64, g = p.Word, C = p.WordArray, f = l.algo, t = f.SHA512, i = f.SHA384 = t.extend({
2445
+ var l = n, g = l.x64, p = g.Word, C = g.WordArray, f = l.algo, t = f.SHA512, i = f.SHA384 = t.extend({
2446
2446
  _doReset: function() {
2447
2447
  this._hash = new C.init([
2448
- new g.init(3418070365, 3238371032),
2449
- new g.init(1654270250, 914150663),
2450
- new g.init(2438529370, 812702999),
2451
- new g.init(355462360, 4144912697),
2452
- new g.init(1731405415, 4290775857),
2453
- new g.init(2394180231, 1750603025),
2454
- new g.init(3675008525, 1694076839),
2455
- new g.init(1203062813, 3204075428)
2448
+ new p.init(3418070365, 3238371032),
2449
+ new p.init(1654270250, 914150663),
2450
+ new p.init(2438529370, 812702999),
2451
+ new p.init(355462360, 4144912697),
2452
+ new p.init(1731405415, 4290775857),
2453
+ new p.init(2394180231, 1750603025),
2454
+ new p.init(3675008525, 1694076839),
2455
+ new p.init(1203062813, 3204075428)
2456
2456
  ]);
2457
2457
  },
2458
2458
  _doFinalize: function() {
@@ -2468,11 +2468,11 @@ function ur() {
2468
2468
  var ri = { exports: {} }, pr = ri.exports, Ft;
2469
2469
  function gr() {
2470
2470
  return Ft || (Ft = 1, (function(e, u) {
2471
- (function(n, l, p) {
2471
+ (function(n, l, g) {
2472
2472
  e.exports = l(j(), Ri());
2473
2473
  })(pr, function(n) {
2474
2474
  return (function(l) {
2475
- var p = n, g = p.lib, C = g.WordArray, f = g.Hasher, t = p.x64, i = t.Word, a = p.algo, o = [], r = [], m = [];
2475
+ var g = n, p = g.lib, C = p.WordArray, f = p.Hasher, t = g.x64, i = t.Word, a = g.algo, o = [], r = [], m = [];
2476
2476
  (function() {
2477
2477
  for (var d = 1, U = 0, _ = 0; _ < 24; _++) {
2478
2478
  o[d + 5 * U] = (_ + 1) * (_ + 2) / 2 % 64;
@@ -2570,7 +2570,7 @@ function gr() {
2570
2570
  return d;
2571
2571
  }
2572
2572
  });
2573
- p.SHA3 = f._createHelper(c), p.HmacSHA3 = f._createHmacHelper(c);
2573
+ g.SHA3 = f._createHelper(c), g.HmacSHA3 = f._createHmacHelper(c);
2574
2574
  })(Math), n.SHA3;
2575
2575
  });
2576
2576
  })(ri)), ri.exports;
@@ -2582,7 +2582,7 @@ function cr() {
2582
2582
  e.exports = l(j());
2583
2583
  })(dr, function(n) {
2584
2584
  return (function(l) {
2585
- var p = n, g = p.lib, C = g.WordArray, f = g.Hasher, t = p.algo, i = C.create([
2585
+ var g = n, p = g.lib, C = p.WordArray, f = p.Hasher, t = g.algo, i = C.create([
2586
2586
  0,
2587
2587
  1,
2588
2588
  2,
@@ -2953,7 +2953,7 @@ function cr() {
2953
2953
  function h(x, S) {
2954
2954
  return x << S | x >>> 32 - S;
2955
2955
  }
2956
- p.RIPEMD160 = f._createHelper(c), p.HmacRIPEMD160 = f._createHmacHelper(c);
2956
+ g.RIPEMD160 = f._createHelper(c), g.HmacRIPEMD160 = f._createHmacHelper(c);
2957
2957
  })(), n.RIPEMD160;
2958
2958
  });
2959
2959
  })(oi)), oi.exports;
@@ -2965,8 +2965,8 @@ function lt() {
2965
2965
  e.exports = l(j());
2966
2966
  })(fr, function(n) {
2967
2967
  (function() {
2968
- var l = n, p = l.lib, g = p.Base, C = l.enc, f = C.Utf8, t = l.algo;
2969
- t.HMAC = g.extend({
2968
+ var l = n, g = l.lib, p = g.Base, C = l.enc, f = C.Utf8, t = l.algo;
2969
+ t.HMAC = p.extend({
2970
2970
  /**
2971
2971
  * Initializes a newly created HMAC.
2972
2972
  *
@@ -3039,11 +3039,11 @@ function lt() {
3039
3039
  var si = { exports: {} }, _r = si.exports, Ot;
3040
3040
  function yr() {
3041
3041
  return Ot || (Ot = 1, (function(e, u) {
3042
- (function(n, l, p) {
3042
+ (function(n, l, g) {
3043
3043
  e.exports = l(j(), nt(), lt());
3044
3044
  })(_r, function(n) {
3045
3045
  return (function() {
3046
- var l = n, p = l.lib, g = p.Base, C = p.WordArray, f = l.algo, t = f.SHA256, i = f.HMAC, a = f.PBKDF2 = g.extend({
3046
+ var l = n, g = l.lib, p = g.Base, C = g.WordArray, f = l.algo, t = f.SHA256, i = f.HMAC, a = f.PBKDF2 = p.extend({
3047
3047
  /**
3048
3048
  * Configuration options.
3049
3049
  *
@@ -3051,7 +3051,7 @@ function yr() {
3051
3051
  * @property {Hasher} hasher The hasher to use. Default: SHA256
3052
3052
  * @property {number} iterations The number of iterations to perform. Default: 250000
3053
3053
  */
3054
- cfg: g.extend({
3054
+ cfg: p.extend({
3055
3055
  keySize: 128 / 32,
3056
3056
  hasher: t,
3057
3057
  iterations: 25e4
@@ -3106,11 +3106,11 @@ function yr() {
3106
3106
  var ui = { exports: {} }, Ur = ui.exports, Bt;
3107
3107
  function je() {
3108
3108
  return Bt || (Bt = 1, (function(e, u) {
3109
- (function(n, l, p) {
3109
+ (function(n, l, g) {
3110
3110
  e.exports = l(j(), Vn(), lt());
3111
3111
  })(Ur, function(n) {
3112
3112
  return (function() {
3113
- var l = n, p = l.lib, g = p.Base, C = p.WordArray, f = l.algo, t = f.MD5, i = f.EvpKDF = g.extend({
3113
+ var l = n, g = l.lib, p = g.Base, C = g.WordArray, f = l.algo, t = f.MD5, i = f.EvpKDF = p.extend({
3114
3114
  /**
3115
3115
  * Configuration options.
3116
3116
  *
@@ -3118,7 +3118,7 @@ function je() {
3118
3118
  * @property {Hasher} hasher The hash algorithm to use. Default: MD5
3119
3119
  * @property {number} iterations The number of iterations to perform. Default: 1
3120
3120
  */
3121
- cfg: g.extend({
3121
+ cfg: p.extend({
3122
3122
  keySize: 128 / 32,
3123
3123
  hasher: t,
3124
3124
  iterations: 1
@@ -3169,13 +3169,13 @@ function je() {
3169
3169
  var pi = { exports: {} }, Cr = pi.exports, Ht;
3170
3170
  function _e() {
3171
3171
  return Ht || (Ht = 1, (function(e, u) {
3172
- (function(n, l, p) {
3172
+ (function(n, l, g) {
3173
3173
  e.exports = l(j(), je());
3174
3174
  })(Cr, function(n) {
3175
3175
  n.lib.Cipher || (function(l) {
3176
- var p = n, g = p.lib, C = g.Base, f = g.WordArray, t = g.BufferedBlockAlgorithm, i = p.enc;
3176
+ var g = n, p = g.lib, C = p.Base, f = p.WordArray, t = p.BufferedBlockAlgorithm, i = g.enc;
3177
3177
  i.Utf8;
3178
- var a = i.Base64, o = p.algo, r = o.EvpKDF, m = g.Cipher = t.extend({
3178
+ var a = i.Base64, o = g.algo, r = o.EvpKDF, m = p.Cipher = t.extend({
3179
3179
  /**
3180
3180
  * Configuration options.
3181
3181
  *
@@ -3307,14 +3307,14 @@ function _e() {
3307
3307
  };
3308
3308
  })()
3309
3309
  });
3310
- g.StreamCipher = m.extend({
3310
+ p.StreamCipher = m.extend({
3311
3311
  _doFinalize: function() {
3312
3312
  var v = this._process(!0);
3313
3313
  return v;
3314
3314
  },
3315
3315
  blockSize: 1
3316
3316
  });
3317
- var s = p.mode = {}, c = g.BlockCipherMode = C.extend({
3317
+ var s = g.mode = {}, c = p.BlockCipherMode = C.extend({
3318
3318
  /**
3319
3319
  * Creates this mode for encryption.
3320
3320
  *
@@ -3398,7 +3398,7 @@ function _e() {
3398
3398
  E[G + H] ^= R[H];
3399
3399
  }
3400
3400
  return v;
3401
- })(), U = p.pad = {}, _ = U.Pkcs7 = {
3401
+ })(), U = g.pad = {}, _ = U.Pkcs7 = {
3402
3402
  /**
3403
3403
  * Pads data using the algorithm defined in PKCS #5/7.
3404
3404
  *
@@ -3433,7 +3433,7 @@ function _e() {
3433
3433
  v.sigBytes -= T;
3434
3434
  }
3435
3435
  };
3436
- g.BlockCipher = m.extend({
3436
+ p.BlockCipher = m.extend({
3437
3437
  /**
3438
3438
  * Configuration options.
3439
3439
  *
@@ -3459,7 +3459,7 @@ function _e() {
3459
3459
  },
3460
3460
  blockSize: 128 / 32
3461
3461
  });
3462
- var y = g.CipherParams = C.extend({
3462
+ var y = p.CipherParams = C.extend({
3463
3463
  /**
3464
3464
  * Initializes a newly created cipher params object.
3465
3465
  *
@@ -3500,7 +3500,7 @@ function _e() {
3500
3500
  toString: function(v) {
3501
3501
  return (v || this.formatter).stringify(this);
3502
3502
  }
3503
- }), b = p.format = {}, h = b.OpenSSL = {
3503
+ }), b = g.format = {}, h = b.OpenSSL = {
3504
3504
  /**
3505
3505
  * Converts a cipher params object to an OpenSSL-compatible string.
3506
3506
  *
@@ -3535,7 +3535,7 @@ function _e() {
3535
3535
  var T, E = a.parse(v), G = E.words;
3536
3536
  return G[0] == 1398893684 && G[1] == 1701076831 && (T = f.create(G.slice(2, 4)), G.splice(0, 4), E.sigBytes -= 16), y.create({ ciphertext: E, salt: T });
3537
3537
  }
3538
- }, x = g.SerializableCipher = C.extend({
3538
+ }, x = p.SerializableCipher = C.extend({
3539
3539
  /**
3540
3540
  * Configuration options.
3541
3541
  *
@@ -3616,7 +3616,7 @@ function _e() {
3616
3616
  _parse: function(v, T) {
3617
3617
  return typeof v == "string" ? T.parse(v, this) : v;
3618
3618
  }
3619
- }), S = p.kdf = {}, N = S.OpenSSL = {
3619
+ }), S = g.kdf = {}, N = S.OpenSSL = {
3620
3620
  /**
3621
3621
  * Derives a key and IV from a password.
3622
3622
  *
@@ -3642,7 +3642,7 @@ function _e() {
3642
3642
  var F = f.create(R.words.slice(T), E * 4);
3643
3643
  return R.sigBytes = T * 4, y.create({ key: R, iv: F, salt: G });
3644
3644
  }
3645
- }, D = g.PasswordBasedCipher = x.extend({
3645
+ }, D = p.PasswordBasedCipher = x.extend({
3646
3646
  /**
3647
3647
  * Configuration options.
3648
3648
  *
@@ -3707,27 +3707,27 @@ function _e() {
3707
3707
  var gi = { exports: {} }, br = gi.exports, Wt;
3708
3708
  function vr() {
3709
3709
  return Wt || (Wt = 1, (function(e, u) {
3710
- (function(n, l, p) {
3710
+ (function(n, l, g) {
3711
3711
  e.exports = l(j(), _e());
3712
3712
  })(br, function(n) {
3713
3713
  return n.mode.CFB = (function() {
3714
3714
  var l = n.lib.BlockCipherMode.extend();
3715
3715
  l.Encryptor = l.extend({
3716
- processBlock: function(g, C) {
3716
+ processBlock: function(p, C) {
3717
3717
  var f = this._cipher, t = f.blockSize;
3718
- p.call(this, g, C, t, f), this._prevBlock = g.slice(C, C + t);
3718
+ g.call(this, p, C, t, f), this._prevBlock = p.slice(C, C + t);
3719
3719
  }
3720
3720
  }), l.Decryptor = l.extend({
3721
- processBlock: function(g, C) {
3722
- var f = this._cipher, t = f.blockSize, i = g.slice(C, C + t);
3723
- p.call(this, g, C, t, f), this._prevBlock = i;
3721
+ processBlock: function(p, C) {
3722
+ var f = this._cipher, t = f.blockSize, i = p.slice(C, C + t);
3723
+ g.call(this, p, C, t, f), this._prevBlock = i;
3724
3724
  }
3725
3725
  });
3726
- function p(g, C, f, t) {
3726
+ function g(p, C, f, t) {
3727
3727
  var i, a = this._iv;
3728
3728
  a ? (i = a.slice(0), this._iv = void 0) : i = this._prevBlock, t.encryptBlock(i, 0);
3729
3729
  for (var o = 0; o < f; o++)
3730
- g[C + o] ^= i[o];
3730
+ p[C + o] ^= i[o];
3731
3731
  }
3732
3732
  return l;
3733
3733
  })(), n.mode.CFB;
@@ -3737,21 +3737,21 @@ function vr() {
3737
3737
  var di = { exports: {} }, hr = di.exports, zt;
3738
3738
  function Tr() {
3739
3739
  return zt || (zt = 1, (function(e, u) {
3740
- (function(n, l, p) {
3740
+ (function(n, l, g) {
3741
3741
  e.exports = l(j(), _e());
3742
3742
  })(hr, function(n) {
3743
3743
  return n.mode.CTR = (function() {
3744
- var l = n.lib.BlockCipherMode.extend(), p = l.Encryptor = l.extend({
3745
- processBlock: function(g, C) {
3744
+ var l = n.lib.BlockCipherMode.extend(), g = l.Encryptor = l.extend({
3745
+ processBlock: function(p, C) {
3746
3746
  var f = this._cipher, t = f.blockSize, i = this._iv, a = this._counter;
3747
3747
  i && (a = this._counter = i.slice(0), this._iv = void 0);
3748
3748
  var o = a.slice(0);
3749
3749
  f.encryptBlock(o, 0), a[t - 1] = a[t - 1] + 1 | 0;
3750
3750
  for (var r = 0; r < t; r++)
3751
- g[C + r] ^= o[r];
3751
+ p[C + r] ^= o[r];
3752
3752
  }
3753
3753
  });
3754
- return l.Decryptor = p, l;
3754
+ return l.Decryptor = g, l;
3755
3755
  })(), n.mode.CTR;
3756
3756
  });
3757
3757
  })(di)), di.exports;
@@ -3759,12 +3759,12 @@ function Tr() {
3759
3759
  var ci = { exports: {} }, kr = ci.exports, It;
3760
3760
  function xr() {
3761
3761
  return It || (It = 1, (function(e, u) {
3762
- (function(n, l, p) {
3762
+ (function(n, l, g) {
3763
3763
  e.exports = l(j(), _e());
3764
3764
  })(kr, function(n) {
3765
3765
  return n.mode.CTRGladman = (function() {
3766
3766
  var l = n.lib.BlockCipherMode.extend();
3767
- function p(f) {
3767
+ function g(f) {
3768
3768
  if ((f >> 24 & 255) === 255) {
3769
3769
  var t = f >> 16 & 255, i = f >> 8 & 255, a = f & 255;
3770
3770
  t === 255 ? (t = 0, i === 255 ? (i = 0, a === 255 ? a = 0 : ++a) : ++i) : ++t, f = 0, f += t << 16, f += i << 8, f += a;
@@ -3772,13 +3772,13 @@ function xr() {
3772
3772
  f += 1 << 24;
3773
3773
  return f;
3774
3774
  }
3775
- function g(f) {
3776
- return (f[0] = p(f[0])) === 0 && (f[1] = p(f[1])), f;
3775
+ function p(f) {
3776
+ return (f[0] = g(f[0])) === 0 && (f[1] = g(f[1])), f;
3777
3777
  }
3778
3778
  var C = l.Encryptor = l.extend({
3779
3779
  processBlock: function(f, t) {
3780
3780
  var i = this._cipher, a = i.blockSize, o = this._iv, r = this._counter;
3781
- o && (r = this._counter = o.slice(0), this._iv = void 0), g(r);
3781
+ o && (r = this._counter = o.slice(0), this._iv = void 0), p(r);
3782
3782
  var m = r.slice(0);
3783
3783
  i.encryptBlock(m, 0);
3784
3784
  for (var s = 0; s < a; s++)
@@ -3793,19 +3793,19 @@ function xr() {
3793
3793
  var fi = { exports: {} }, Sr = fi.exports, Vt;
3794
3794
  function Dr() {
3795
3795
  return Vt || (Vt = 1, (function(e, u) {
3796
- (function(n, l, p) {
3796
+ (function(n, l, g) {
3797
3797
  e.exports = l(j(), _e());
3798
3798
  })(Sr, function(n) {
3799
3799
  return n.mode.OFB = (function() {
3800
- var l = n.lib.BlockCipherMode.extend(), p = l.Encryptor = l.extend({
3801
- processBlock: function(g, C) {
3800
+ var l = n.lib.BlockCipherMode.extend(), g = l.Encryptor = l.extend({
3801
+ processBlock: function(p, C) {
3802
3802
  var f = this._cipher, t = f.blockSize, i = this._iv, a = this._keystream;
3803
3803
  i && (a = this._keystream = i.slice(0), this._iv = void 0), f.encryptBlock(a, 0);
3804
3804
  for (var o = 0; o < t; o++)
3805
- g[C + o] ^= a[o];
3805
+ p[C + o] ^= a[o];
3806
3806
  }
3807
3807
  });
3808
- return l.Decryptor = p, l;
3808
+ return l.Decryptor = g, l;
3809
3809
  })(), n.mode.OFB;
3810
3810
  });
3811
3811
  })(fi)), fi.exports;
@@ -3813,18 +3813,18 @@ function Dr() {
3813
3813
  var _i = { exports: {} }, Er = _i.exports, Zt;
3814
3814
  function Nr() {
3815
3815
  return Zt || (Zt = 1, (function(e, u) {
3816
- (function(n, l, p) {
3816
+ (function(n, l, g) {
3817
3817
  e.exports = l(j(), _e());
3818
3818
  })(Er, function(n) {
3819
3819
  return n.mode.ECB = (function() {
3820
3820
  var l = n.lib.BlockCipherMode.extend();
3821
3821
  return l.Encryptor = l.extend({
3822
- processBlock: function(p, g) {
3823
- this._cipher.encryptBlock(p, g);
3822
+ processBlock: function(g, p) {
3823
+ this._cipher.encryptBlock(g, p);
3824
3824
  }
3825
3825
  }), l.Decryptor = l.extend({
3826
- processBlock: function(p, g) {
3827
- this._cipher.decryptBlock(p, g);
3826
+ processBlock: function(g, p) {
3827
+ this._cipher.decryptBlock(g, p);
3828
3828
  }
3829
3829
  }), l;
3830
3830
  })(), n.mode.ECB;
@@ -3834,17 +3834,17 @@ function Nr() {
3834
3834
  var yi = { exports: {} }, Lr = yi.exports, Jt;
3835
3835
  function Gr() {
3836
3836
  return Jt || (Jt = 1, (function(e, u) {
3837
- (function(n, l, p) {
3837
+ (function(n, l, g) {
3838
3838
  e.exports = l(j(), _e());
3839
3839
  })(Lr, function(n) {
3840
3840
  return n.pad.AnsiX923 = {
3841
- pad: function(l, p) {
3842
- var g = l.sigBytes, C = p * 4, f = C - g % C, t = g + f - 1;
3841
+ pad: function(l, g) {
3842
+ var p = l.sigBytes, C = g * 4, f = C - p % C, t = p + f - 1;
3843
3843
  l.clamp(), l.words[t >>> 2] |= f << 24 - t % 4 * 8, l.sigBytes += f;
3844
3844
  },
3845
3845
  unpad: function(l) {
3846
- var p = l.words[l.sigBytes - 1 >>> 2] & 255;
3847
- l.sigBytes -= p;
3846
+ var g = l.words[l.sigBytes - 1 >>> 2] & 255;
3847
+ l.sigBytes -= g;
3848
3848
  }
3849
3849
  }, n.pad.Ansix923;
3850
3850
  });
@@ -3853,17 +3853,17 @@ function Gr() {
3853
3853
  var Ui = { exports: {} }, Mr = Ui.exports, Kt;
3854
3854
  function Rr() {
3855
3855
  return Kt || (Kt = 1, (function(e, u) {
3856
- (function(n, l, p) {
3856
+ (function(n, l, g) {
3857
3857
  e.exports = l(j(), _e());
3858
3858
  })(Mr, function(n) {
3859
3859
  return n.pad.Iso10126 = {
3860
- pad: function(l, p) {
3861
- var g = p * 4, C = g - l.sigBytes % g;
3860
+ pad: function(l, g) {
3861
+ var p = g * 4, C = p - l.sigBytes % p;
3862
3862
  l.concat(n.lib.WordArray.random(C - 1)).concat(n.lib.WordArray.create([C << 24], 1));
3863
3863
  },
3864
3864
  unpad: function(l) {
3865
- var p = l.words[l.sigBytes - 1 >>> 2] & 255;
3866
- l.sigBytes -= p;
3865
+ var g = l.words[l.sigBytes - 1 >>> 2] & 255;
3866
+ l.sigBytes -= g;
3867
3867
  }
3868
3868
  }, n.pad.Iso10126;
3869
3869
  });
@@ -3872,12 +3872,12 @@ function Rr() {
3872
3872
  var Ci = { exports: {} }, Pr = Ci.exports, qt;
3873
3873
  function Fr() {
3874
3874
  return qt || (qt = 1, (function(e, u) {
3875
- (function(n, l, p) {
3875
+ (function(n, l, g) {
3876
3876
  e.exports = l(j(), _e());
3877
3877
  })(Pr, function(n) {
3878
3878
  return n.pad.Iso97971 = {
3879
- pad: function(l, p) {
3880
- l.concat(n.lib.WordArray.create([2147483648], 1)), n.pad.ZeroPadding.pad(l, p);
3879
+ pad: function(l, g) {
3880
+ l.concat(n.lib.WordArray.create([2147483648], 1)), n.pad.ZeroPadding.pad(l, g);
3881
3881
  },
3882
3882
  unpad: function(l) {
3883
3883
  n.pad.ZeroPadding.unpad(l), l.sigBytes--;
@@ -3889,18 +3889,18 @@ function Fr() {
3889
3889
  var bi = { exports: {} }, wr = bi.exports, Qt;
3890
3890
  function Ar() {
3891
3891
  return Qt || (Qt = 1, (function(e, u) {
3892
- (function(n, l, p) {
3892
+ (function(n, l, g) {
3893
3893
  e.exports = l(j(), _e());
3894
3894
  })(wr, function(n) {
3895
3895
  return n.pad.ZeroPadding = {
3896
- pad: function(l, p) {
3897
- var g = p * 4;
3898
- l.clamp(), l.sigBytes += g - (l.sigBytes % g || g);
3896
+ pad: function(l, g) {
3897
+ var p = g * 4;
3898
+ l.clamp(), l.sigBytes += p - (l.sigBytes % p || p);
3899
3899
  },
3900
3900
  unpad: function(l) {
3901
- for (var p = l.words, g = l.sigBytes - 1, g = l.sigBytes - 1; g >= 0; g--)
3902
- if (p[g >>> 2] >>> 24 - g % 4 * 8 & 255) {
3903
- l.sigBytes = g + 1;
3901
+ for (var g = l.words, p = l.sigBytes - 1, p = l.sigBytes - 1; p >= 0; p--)
3902
+ if (g[p >>> 2] >>> 24 - p % 4 * 8 & 255) {
3903
+ l.sigBytes = p + 1;
3904
3904
  break;
3905
3905
  }
3906
3906
  }
@@ -3911,7 +3911,7 @@ function Ar() {
3911
3911
  var vi = { exports: {} }, Or = vi.exports, $t;
3912
3912
  function Br() {
3913
3913
  return $t || ($t = 1, (function(e, u) {
3914
- (function(n, l, p) {
3914
+ (function(n, l, g) {
3915
3915
  e.exports = l(j(), _e());
3916
3916
  })(Or, function(n) {
3917
3917
  return n.pad.NoPadding = {
@@ -3926,11 +3926,11 @@ function Br() {
3926
3926
  var hi = { exports: {} }, Hr = hi.exports, jt;
3927
3927
  function Wr() {
3928
3928
  return jt || (jt = 1, (function(e, u) {
3929
- (function(n, l, p) {
3929
+ (function(n, l, g) {
3930
3930
  e.exports = l(j(), _e());
3931
3931
  })(Hr, function(n) {
3932
3932
  return (function(l) {
3933
- var p = n, g = p.lib, C = g.CipherParams, f = p.enc, t = f.Hex, i = p.format;
3933
+ var g = n, p = g.lib, C = p.CipherParams, f = g.enc, t = f.Hex, i = g.format;
3934
3934
  i.Hex = {
3935
3935
  /**
3936
3936
  * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
@@ -3973,11 +3973,11 @@ function Wr() {
3973
3973
  var Ti = { exports: {} }, zr = Ti.exports, Yt;
3974
3974
  function Ir() {
3975
3975
  return Yt || (Yt = 1, (function(e, u) {
3976
- (function(n, l, p) {
3976
+ (function(n, l, g) {
3977
3977
  e.exports = l(j(), ma(), sa(), je(), _e());
3978
3978
  })(zr, function(n) {
3979
3979
  return (function() {
3980
- var l = n, p = l.lib, g = p.BlockCipher, C = l.algo, f = [], t = [], i = [], a = [], o = [], r = [], m = [], s = [], c = [], d = [];
3980
+ var l = n, g = l.lib, p = g.BlockCipher, C = l.algo, f = [], t = [], i = [], a = [], o = [], r = [], m = [], s = [], c = [], d = [];
3981
3981
  (function() {
3982
3982
  for (var y = [], b = 0; b < 256; b++)
3983
3983
  b < 128 ? y[b] = b << 1 : y[b] = b << 1 ^ 283;
@@ -3990,7 +3990,7 @@ function Ir() {
3990
3990
  m[S] = T << 24 | T >>> 8, s[S] = T << 16 | T >>> 16, c[S] = T << 8 | T >>> 24, d[S] = T, h ? (h = N ^ y[y[y[v ^ N]]], x ^= y[y[x]]) : h = x = 1;
3991
3991
  }
3992
3992
  })();
3993
- var U = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = C.AES = g.extend({
3993
+ var U = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = C.AES = p.extend({
3994
3994
  _doReset: function() {
3995
3995
  var y;
3996
3996
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
@@ -4025,7 +4025,7 @@ function Ir() {
4025
4025
  },
4026
4026
  keySize: 256 / 32
4027
4027
  });
4028
- l.AES = g._createHelper(_);
4028
+ l.AES = p._createHelper(_);
4029
4029
  })(), n.AES;
4030
4030
  });
4031
4031
  })(Ti)), Ti.exports;
@@ -4033,11 +4033,11 @@ function Ir() {
4033
4033
  var ki = { exports: {} }, Vr = ki.exports, Xt;
4034
4034
  function Zr() {
4035
4035
  return Xt || (Xt = 1, (function(e, u) {
4036
- (function(n, l, p) {
4036
+ (function(n, l, g) {
4037
4037
  e.exports = l(j(), ma(), sa(), je(), _e());
4038
4038
  })(Vr, function(n) {
4039
4039
  return (function() {
4040
- var l = n, p = l.lib, g = p.WordArray, C = p.BlockCipher, f = l.algo, t = [
4040
+ var l = n, g = l.lib, p = g.WordArray, C = g.BlockCipher, f = l.algo, t = [
4041
4041
  57,
4042
4042
  49,
4043
4043
  41,
@@ -4733,7 +4733,7 @@ function Zr() {
4733
4733
  if (_.length !== 2 && _.length !== 4 && _.length < 6)
4734
4734
  throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
4735
4735
  var y = _.slice(0, 2), b = _.length < 4 ? _.slice(0, 2) : _.slice(2, 4), h = _.length < 6 ? _.slice(0, 2) : _.slice(4, 6);
4736
- this._des1 = m.createEncryptor(g.create(y)), this._des2 = m.createEncryptor(g.create(b)), this._des3 = m.createEncryptor(g.create(h));
4736
+ this._des1 = m.createEncryptor(p.create(y)), this._des2 = m.createEncryptor(p.create(b)), this._des3 = m.createEncryptor(p.create(h));
4737
4737
  },
4738
4738
  encryptBlock: function(U, _) {
4739
4739
  this._des1.encryptBlock(U, _), this._des2.decryptBlock(U, _), this._des3.encryptBlock(U, _);
@@ -4753,11 +4753,11 @@ function Zr() {
4753
4753
  var xi = { exports: {} }, Jr = xi.exports, en;
4754
4754
  function Kr() {
4755
4755
  return en || (en = 1, (function(e, u) {
4756
- (function(n, l, p) {
4756
+ (function(n, l, g) {
4757
4757
  e.exports = l(j(), ma(), sa(), je(), _e());
4758
4758
  })(Jr, function(n) {
4759
4759
  return (function() {
4760
- var l = n, p = l.lib, g = p.StreamCipher, C = l.algo, f = C.RC4 = g.extend({
4760
+ var l = n, g = l.lib, p = g.StreamCipher, C = l.algo, f = C.RC4 = p.extend({
4761
4761
  _doReset: function() {
4762
4762
  for (var a = this._key, o = a.words, r = a.sigBytes, m = this._S = [], s = 0; s < 256; s++)
4763
4763
  m[s] = s;
@@ -4783,7 +4783,7 @@ function Kr() {
4783
4783
  }
4784
4784
  return this._i = o, this._j = r, m;
4785
4785
  }
4786
- l.RC4 = g._createHelper(f);
4786
+ l.RC4 = p._createHelper(f);
4787
4787
  var i = C.RC4Drop = f.extend({
4788
4788
  /**
4789
4789
  * Configuration options.
@@ -4799,7 +4799,7 @@ function Kr() {
4799
4799
  t.call(this);
4800
4800
  }
4801
4801
  });
4802
- l.RC4Drop = g._createHelper(i);
4802
+ l.RC4Drop = p._createHelper(i);
4803
4803
  })(), n.RC4;
4804
4804
  });
4805
4805
  })(xi)), xi.exports;
@@ -4807,11 +4807,11 @@ function Kr() {
4807
4807
  var Si = { exports: {} }, qr = Si.exports, an;
4808
4808
  function Qr() {
4809
4809
  return an || (an = 1, (function(e, u) {
4810
- (function(n, l, p) {
4810
+ (function(n, l, g) {
4811
4811
  e.exports = l(j(), ma(), sa(), je(), _e());
4812
4812
  })(qr, function(n) {
4813
4813
  return (function() {
4814
- var l = n, p = l.lib, g = p.StreamCipher, C = l.algo, f = [], t = [], i = [], a = C.Rabbit = g.extend({
4814
+ var l = n, g = l.lib, p = g.StreamCipher, C = l.algo, f = [], t = [], i = [], a = C.Rabbit = p.extend({
4815
4815
  _doReset: function() {
4816
4816
  for (var r = this._key.words, m = this.cfg.iv, s = 0; s < 4; s++)
4817
4817
  r[s] = (r[s] << 8 | r[s] >>> 24) & 16711935 | (r[s] << 24 | r[s] >>> 8) & 4278255360;
@@ -4865,7 +4865,7 @@ function Qr() {
4865
4865
  }
4866
4866
  r[0] = i[0] + (i[7] << 16 | i[7] >>> 16) + (i[6] << 16 | i[6] >>> 16) | 0, r[1] = i[1] + (i[0] << 8 | i[0] >>> 24) + i[7] | 0, r[2] = i[2] + (i[1] << 16 | i[1] >>> 16) + (i[0] << 16 | i[0] >>> 16) | 0, r[3] = i[3] + (i[2] << 8 | i[2] >>> 24) + i[1] | 0, r[4] = i[4] + (i[3] << 16 | i[3] >>> 16) + (i[2] << 16 | i[2] >>> 16) | 0, r[5] = i[5] + (i[4] << 8 | i[4] >>> 24) + i[3] | 0, r[6] = i[6] + (i[5] << 16 | i[5] >>> 16) + (i[4] << 16 | i[4] >>> 16) | 0, r[7] = i[7] + (i[6] << 8 | i[6] >>> 24) + i[5] | 0;
4867
4867
  }
4868
- l.Rabbit = g._createHelper(a);
4868
+ l.Rabbit = p._createHelper(a);
4869
4869
  })(), n.Rabbit;
4870
4870
  });
4871
4871
  })(Si)), Si.exports;
@@ -4873,11 +4873,11 @@ function Qr() {
4873
4873
  var Di = { exports: {} }, $r = Di.exports, tn;
4874
4874
  function jr() {
4875
4875
  return tn || (tn = 1, (function(e, u) {
4876
- (function(n, l, p) {
4876
+ (function(n, l, g) {
4877
4877
  e.exports = l(j(), ma(), sa(), je(), _e());
4878
4878
  })($r, function(n) {
4879
4879
  return (function() {
4880
- var l = n, p = l.lib, g = p.StreamCipher, C = l.algo, f = [], t = [], i = [], a = C.RabbitLegacy = g.extend({
4880
+ var l = n, g = l.lib, p = g.StreamCipher, C = l.algo, f = [], t = [], i = [], a = C.RabbitLegacy = p.extend({
4881
4881
  _doReset: function() {
4882
4882
  var r = this._key.words, m = this.cfg.iv, s = this._X = [
4883
4883
  r[0],
@@ -4929,7 +4929,7 @@ function jr() {
4929
4929
  }
4930
4930
  r[0] = i[0] + (i[7] << 16 | i[7] >>> 16) + (i[6] << 16 | i[6] >>> 16) | 0, r[1] = i[1] + (i[0] << 8 | i[0] >>> 24) + i[7] | 0, r[2] = i[2] + (i[1] << 16 | i[1] >>> 16) + (i[0] << 16 | i[0] >>> 16) | 0, r[3] = i[3] + (i[2] << 8 | i[2] >>> 24) + i[1] | 0, r[4] = i[4] + (i[3] << 16 | i[3] >>> 16) + (i[2] << 16 | i[2] >>> 16) | 0, r[5] = i[5] + (i[4] << 8 | i[4] >>> 24) + i[3] | 0, r[6] = i[6] + (i[5] << 16 | i[5] >>> 16) + (i[4] << 16 | i[4] >>> 16) | 0, r[7] = i[7] + (i[6] << 8 | i[6] >>> 24) + i[5] | 0;
4931
4931
  }
4932
- l.RabbitLegacy = g._createHelper(a);
4932
+ l.RabbitLegacy = p._createHelper(a);
4933
4933
  })(), n.RabbitLegacy;
4934
4934
  });
4935
4935
  })(Di)), Di.exports;
@@ -4937,11 +4937,11 @@ function jr() {
4937
4937
  var Ei = { exports: {} }, Yr = Ei.exports, nn;
4938
4938
  function Xr() {
4939
4939
  return nn || (nn = 1, (function(e, u) {
4940
- (function(n, l, p) {
4940
+ (function(n, l, g) {
4941
4941
  e.exports = l(j(), ma(), sa(), je(), _e());
4942
4942
  })(Yr, function(n) {
4943
4943
  return (function() {
4944
- var l = n, p = l.lib, g = p.BlockCipher, C = l.algo;
4944
+ var l = n, g = l.lib, p = g.BlockCipher, C = l.algo;
4945
4945
  const f = 16, t = [
4946
4946
  608135816,
4947
4947
  2242054355,
@@ -6032,7 +6032,7 @@ function Xr() {
6032
6032
  x = r(d, b, h), b = x.left, h = x.right, d.sbox[S][N] = b, d.sbox[S][N + 1] = h;
6033
6033
  return !0;
6034
6034
  }
6035
- var c = C.Blowfish = g.extend({
6035
+ var c = C.Blowfish = p.extend({
6036
6036
  _doReset: function() {
6037
6037
  if (this._keyPriorReset !== this._key) {
6038
6038
  var d = this._keyPriorReset = this._key, U = d.words, _ = d.sigBytes / 4;
@@ -6051,7 +6051,7 @@ function Xr() {
6051
6051
  keySize: 128 / 32,
6052
6052
  ivSize: 64 / 32
6053
6053
  });
6054
- l.Blowfish = g._createHelper(c);
6054
+ l.Blowfish = p._createHelper(c);
6055
6055
  })(), n.Blowfish;
6056
6056
  });
6057
6057
  })(Ei)), Ei.exports;
@@ -6059,7 +6059,7 @@ function Xr() {
6059
6059
  var eo = Ka.exports, ln;
6060
6060
  function ao() {
6061
6061
  return ln || (ln = 1, (function(e, u) {
6062
- (function(n, l, p) {
6062
+ (function(n, l, g) {
6063
6063
  e.exports = l(j(), Ri(), jl(), Xl(), ma(), ir(), sa(), Vn(), nt(), or(), Zn(), ur(), gr(), cr(), lt(), yr(), je(), _e(), vr(), Tr(), xr(), Dr(), Nr(), Gr(), Rr(), Fr(), Ar(), Br(), Wr(), Ir(), Zr(), Kr(), Qr(), jr(), Xr());
6064
6064
  })(eo, function(n) {
6065
6065
  return n;
@@ -6071,12 +6071,12 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6071
6071
  const u = "mySecretPassphrase", n = ia.lib.WordArray.random(16), l = ia.PBKDF2(u, n, {
6072
6072
  keySize: 128 / 32,
6073
6073
  iterations: 1e3
6074
- }), p = ia.AES.encrypt(e, l, {
6074
+ }), g = ia.AES.encrypt(e, l, {
6075
6075
  iv: n,
6076
6076
  mode: ia.mode.CBC,
6077
6077
  padding: ia.pad.Pkcs7
6078
- }), g = n.toString(ia.enc.Base64), C = ia.enc.Base64.stringify(p.ciphertext);
6079
- return g + ":" + C;
6078
+ }), p = n.toString(ia.enc.Base64), C = ia.enc.Base64.stringify(g.ciphertext);
6079
+ return p + ":" + C;
6080
6080
  }, ue = () => {
6081
6081
  const { client: e, formDataClient: u } = te(), n = V(
6082
6082
  async (D) => {
@@ -6088,7 +6088,7 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6088
6088
  return G;
6089
6089
  },
6090
6090
  [e]
6091
- ), l = V(async () => e.get("/member/getMemberInfo"), [e]), p = V(async () => await e.get("/member/getGameList"), [e]), g = V(async () => await e.get("/member/getNowCurrencyExchange"), [e]), C = V(async () => await e.get("member/getFavoriteGame"), [e]), f = V(
6091
+ ), l = V(async () => e.get("/member/getMemberInfo"), [e]), g = V(async () => await e.get("/member/getGameList"), [e]), p = V(async () => await e.get("/member/getNowCurrencyExchange"), [e]), C = V(async () => await e.get("member/getFavoriteGame"), [e]), f = V(
6092
6092
  async (D) => {
6093
6093
  const { account: v, password: T, trans_code: E } = D;
6094
6094
  return await e.post("/login", {
@@ -6252,9 +6252,9 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6252
6252
  return {
6253
6253
  machineLoginApi: n,
6254
6254
  userInfoApi: l,
6255
- userGameListApi: p,
6255
+ userGameListApi: g,
6256
6256
  userFavoriteGameApi: C,
6257
- userCurrencyExchangeApi: g,
6257
+ userCurrencyExchangeApi: p,
6258
6258
  userLoginApi: f,
6259
6259
  userLogoutApi: t,
6260
6260
  addOrRemoveFavoriteGameApi: i,
@@ -6275,7 +6275,7 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6275
6275
  getMachineLoginCodeApi: N
6276
6276
  };
6277
6277
  }, Vm = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
6278
- const { userCurrencyExchangeApi: n } = ue(), { getToken: l } = te(), { enabled: p, ...g } = u, f = !!l?.() && (p ? p.every((t) => t) : !0);
6278
+ const { userCurrencyExchangeApi: n } = ue(), { getToken: l } = te(), { enabled: g, ...p } = u, f = !!l?.() && (g ? g.every((t) => t) : !0);
6279
6279
  return Ln({
6280
6280
  queries: [
6281
6281
  {
@@ -6283,7 +6283,7 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6283
6283
  queryFn: () => n(),
6284
6284
  enabled: f,
6285
6285
  // ← 使用合併後的條件
6286
- ...g
6286
+ ...p
6287
6287
  // ← 不包含 enabled
6288
6288
  }
6289
6289
  ]
@@ -6293,14 +6293,14 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6293
6293
  trigger: u = [],
6294
6294
  enabled: n = !0
6295
6295
  } = {}) => {
6296
- const { getToken: l } = te(), p = l?.(), { userInfoApi: g } = ue();
6296
+ const { getToken: l } = te(), g = l?.(), { userInfoApi: p } = ue();
6297
6297
  return Ln({
6298
6298
  queries: [
6299
6299
  {
6300
6300
  queryKey: ["getMemberInfo", ...u],
6301
- queryFn: async () => await g(),
6301
+ queryFn: async () => await p(),
6302
6302
  refetchInterval: e,
6303
- enabled: !!p && n
6303
+ enabled: !!g && n
6304
6304
  }
6305
6305
  ]
6306
6306
  });
@@ -6309,26 +6309,26 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6309
6309
  userInfoApi: u,
6310
6310
  userFavoriteGameApi: n,
6311
6311
  userGameListApi: l,
6312
- userCurrencyExchangeApi: p
6313
- } = ue(), g = ee({
6312
+ userCurrencyExchangeApi: g
6313
+ } = ue(), p = ee({
6314
6314
  queryKey: ["getMemInfo"],
6315
6315
  queryFn: async () => u(),
6316
6316
  enabled: e
6317
6317
  }), C = ee({
6318
6318
  queryKey: ["getFavoriteGame"],
6319
6319
  queryFn: async () => n(),
6320
- enabled: e && g.isSuccess
6320
+ enabled: e && p.isSuccess
6321
6321
  }), f = ee({
6322
6322
  queryKey: ["getUserGameList"],
6323
6323
  queryFn: async () => l(),
6324
- enabled: e && g.isSuccess && C.isSuccess
6324
+ enabled: e && p.isSuccess && C.isSuccess
6325
6325
  }), t = ee({
6326
6326
  queryKey: ["getUserCurrencyExchange"],
6327
- queryFn: async () => p(),
6328
- enabled: e && g.isSuccess && C.isSuccess && f.isSuccess
6327
+ queryFn: async () => g(),
6328
+ enabled: e && p.isSuccess && C.isSuccess && f.isSuccess
6329
6329
  });
6330
6330
  return [
6331
- g,
6331
+ p,
6332
6332
  C,
6333
6333
  f,
6334
6334
  t
@@ -6359,7 +6359,7 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6359
6359
  });
6360
6360
  },
6361
6361
  [e, n]
6362
- ), p = V(
6362
+ ), g = V(
6363
6363
  async (C) => {
6364
6364
  const {
6365
6365
  startDate: f = he().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
@@ -6377,7 +6377,7 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6377
6377
  return o;
6378
6378
  },
6379
6379
  [e]
6380
- ), g = V(
6380
+ ), p = V(
6381
6381
  async (C) => {
6382
6382
  const {
6383
6383
  startDate: f = he().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
@@ -6398,15 +6398,15 @@ const ia = /* @__PURE__ */ tt(Jn), $e = (e) => {
6398
6398
  },
6399
6399
  [e]
6400
6400
  );
6401
- return { playGameApi: l, betRecordApi: p, betRecordDetailApi: g };
6401
+ return { playGameApi: l, betRecordApi: g, betRecordDetailApi: p };
6402
6402
  }, io = ({ options: e, formData: u } = {}) => {
6403
6403
  const { betRecordApi: n } = rt();
6404
6404
  return ee({
6405
6405
  queryKey: ["getBetRecord"],
6406
6406
  queryFn: async () => await n(u),
6407
- select: (l) => Mn(l).map(([g, C]) => ({
6407
+ select: (l) => Mn(l).map(([p, C]) => ({
6408
6408
  ...C,
6409
- platform: g
6409
+ platform: p
6410
6410
  })),
6411
6411
  ...e
6412
6412
  });
@@ -6445,17 +6445,17 @@ function Oe() {
6445
6445
  interval: 25e3
6446
6446
  };
6447
6447
  var l;
6448
- (function(g) {
6449
- g[g.UNINSTANTIATED = -1] = "UNINSTANTIATED", g[g.CONNECTING = 0] = "CONNECTING", g[g.OPEN = 1] = "OPEN", g[g.CLOSING = 2] = "CLOSING", g[g.CLOSED = 3] = "CLOSED";
6448
+ (function(p) {
6449
+ p[p.UNINSTANTIATED = -1] = "UNINSTANTIATED", p[p.CONNECTING = 0] = "CONNECTING", p[p.OPEN = 1] = "OPEN", p[p.CLOSING = 2] = "CLOSING", p[p.CLOSED = 3] = "CLOSED";
6450
6450
  })(l || (e.ReadyState = l = {}));
6451
- var p = function() {
6451
+ var g = function() {
6452
6452
  try {
6453
6453
  return "EventSource" in globalThis;
6454
6454
  } catch {
6455
6455
  return !1;
6456
6456
  }
6457
6457
  };
6458
- e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && p();
6458
+ e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && g();
6459
6459
  })(Ji)), Ji;
6460
6460
  }
6461
6461
  var xa = {}, Ki = {}, on;
@@ -6476,32 +6476,32 @@ var ta = {}, ze = {}, mn;
6476
6476
  function mt() {
6477
6477
  if (mn) return ze;
6478
6478
  mn = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.setUpSocketIOPing = ze.appendQueryParams = ze.parseSocketIOUrl = void 0;
6479
- var e = Oe(), u = function(p) {
6480
- if (p) {
6481
- var g = /^https|wss/.test(p), C = p.replace(/^(https?|wss?)(:\/\/)?/, ""), f = C.replace(/\/$/, ""), t = g ? "wss" : "ws";
6479
+ var e = Oe(), u = function(g) {
6480
+ if (g) {
6481
+ var p = /^https|wss/.test(g), C = g.replace(/^(https?|wss?)(:\/\/)?/, ""), f = C.replace(/\/$/, ""), t = p ? "wss" : "ws";
6482
6482
  return "".concat(t, "://").concat(f).concat(e.SOCKET_IO_PATH);
6483
- } else if (p === "") {
6484
- var g = /^https/.test(window.location.protocol), t = g ? "wss" : "ws", i = window.location.port ? ":".concat(window.location.port) : "";
6483
+ } else if (g === "") {
6484
+ var p = /^https/.test(window.location.protocol), t = p ? "wss" : "ws", i = window.location.port ? ":".concat(window.location.port) : "";
6485
6485
  return "".concat(t, "://").concat(window.location.hostname).concat(i).concat(e.SOCKET_IO_PATH);
6486
6486
  }
6487
- return p;
6487
+ return g;
6488
6488
  };
6489
6489
  ze.parseSocketIOUrl = u;
6490
- var n = function(p, g) {
6491
- g === void 0 && (g = {});
6492
- var C = /\?([\w]+=[\w]+)/, f = C.test(p), t = "".concat(Object.entries(g).reduce(function(i, a) {
6490
+ var n = function(g, p) {
6491
+ p === void 0 && (p = {});
6492
+ var C = /\?([\w]+=[\w]+)/, f = C.test(g), t = "".concat(Object.entries(p).reduce(function(i, a) {
6493
6493
  var o = a[0], r = a[1];
6494
6494
  return i + "".concat(o, "=").concat(r, "&");
6495
6495
  }, "").slice(0, -1));
6496
- return "".concat(p).concat(f ? "&" : "?").concat(t);
6496
+ return "".concat(g).concat(f ? "&" : "?").concat(t);
6497
6497
  };
6498
6498
  ze.appendQueryParams = n;
6499
- var l = function(p, g) {
6500
- g === void 0 && (g = e.SOCKET_IO_PING_INTERVAL);
6499
+ var l = function(g, p) {
6500
+ p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
6501
6501
  var C = function() {
6502
- return p(e.SOCKET_IO_PING_CODE);
6502
+ return g(e.SOCKET_IO_PING_CODE);
6503
6503
  };
6504
- return window.setInterval(C, g);
6504
+ return window.setInterval(C, p);
6505
6505
  };
6506
6506
  return ze.setUpSocketIOPing = l, ze;
6507
6507
  }
@@ -6511,13 +6511,13 @@ function Kn() {
6511
6511
  sn = 1, Object.defineProperty(za, "__esModule", { value: !0 }), za.heartbeat = n;
6512
6512
  var e = Oe();
6513
6513
  function u(l) {
6514
- return Array.isArray(l) ? l.reduce(function(p, g) {
6515
- return p.current > g.current ? p : g;
6514
+ return Array.isArray(l) ? l.reduce(function(g, p) {
6515
+ return g.current > p.current ? g : p;
6516
6516
  }).current : l.current;
6517
6517
  }
6518
- function n(l, p, g) {
6519
- var C = g || {}, f = C.interval, t = f === void 0 ? e.DEFAULT_HEARTBEAT.interval : f, i = C.timeout, a = i === void 0 ? e.DEFAULT_HEARTBEAT.timeout : i, o = C.message, r = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, m = Math.max(100, t / 10), s = Date.now(), c = setInterval(function() {
6520
- var d = Date.now(), U = u(p);
6518
+ function n(l, g, p) {
6519
+ var C = p || {}, f = C.interval, t = f === void 0 ? e.DEFAULT_HEARTBEAT.interval : f, i = C.timeout, a = i === void 0 ? e.DEFAULT_HEARTBEAT.timeout : i, o = C.message, r = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, m = Math.max(100, t / 10), s = Date.now(), c = setInterval(function() {
6520
+ var d = Date.now(), U = u(g);
6521
6521
  if (U + a <= d)
6522
6522
  console.warn("Heartbeat timed out, closing connection, last message received ".concat(d - U, "ms ago, last ping sent ").concat(d - s, "ms ago")), l.close();
6523
6523
  else if (U + t <= d && s + t <= d)
@@ -6542,15 +6542,15 @@ function st() {
6542
6542
  return (0, e.hasSubscribers)(t) ? Array.from(u[t]) : n;
6543
6543
  };
6544
6544
  e.getSubscribers = l;
6545
- var p = function(t) {
6545
+ var g = function(t) {
6546
6546
  var i;
6547
6547
  return ((i = u[t]) === null || i === void 0 ? void 0 : i.size) > 0;
6548
6548
  };
6549
- e.hasSubscribers = p;
6550
- var g = function(t, i) {
6549
+ e.hasSubscribers = g;
6550
+ var p = function(t, i) {
6551
6551
  u[t] = u[t] || /* @__PURE__ */ new Set(), u[t].add(i);
6552
6552
  };
6553
- e.addSubscriber = g;
6553
+ e.addSubscriber = p;
6554
6554
  var C = function(t, i) {
6555
6555
  u[t].delete(i);
6556
6556
  };
@@ -6570,12 +6570,12 @@ function ut() {
6570
6570
  if (pn) return Sa;
6571
6571
  pn = 1, Object.defineProperty(Sa, "__esModule", { value: !0 }), Sa.assertIsWebSocket = n, Sa.resetGlobalState = l;
6572
6572
  var e = ot(), u = st();
6573
- function n(p, g) {
6574
- if (!g && !(p instanceof WebSocket))
6573
+ function n(g, p) {
6574
+ if (!p && !(g instanceof WebSocket))
6575
6575
  throw new Error("");
6576
6576
  }
6577
- function l(p) {
6578
- (0, u.resetSubscribers)(p), (0, e.resetWebSockets)(p);
6577
+ function l(g) {
6578
+ (0, u.resetSubscribers)(g), (0, e.resetWebSockets)(g);
6579
6579
  }
6580
6580
  return Sa;
6581
6581
  }
@@ -6593,7 +6593,7 @@ function no() {
6593
6593
  }, e.apply(this, arguments);
6594
6594
  };
6595
6595
  Object.defineProperty(ta, "__esModule", { value: !0 }), ta.attachListeners = void 0;
6596
- var u = mt(), n = Kn(), l = Oe(), p = ut(), g = function(a, o, r, m) {
6596
+ var u = mt(), n = Kn(), l = Oe(), g = ut(), p = function(a, o, r, m) {
6597
6597
  a.onmessage = function(s) {
6598
6598
  var c;
6599
6599
  o.current.onMessage && o.current.onMessage(s), typeof m?.current == "number" && (m.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(s) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((c = o.current.heartbeat) === null || c === void 0 ? void 0 : c.returnMessage) === s.data || r(s));
@@ -6609,7 +6609,7 @@ function no() {
6609
6609
  if (l.isEventSourceSupported && a instanceof EventSource)
6610
6610
  return function() {
6611
6611
  };
6612
- (0, p.assertIsWebSocket)(a, o.current.skipAssert);
6612
+ (0, g.assertIsWebSocket)(a, o.current.skipAssert);
6613
6613
  var c;
6614
6614
  return a.onclose = function(d) {
6615
6615
  var U;
@@ -6643,7 +6643,7 @@ function no() {
6643
6643
  };
6644
6644
  }, i = function(a, o, r, m, s, c, d) {
6645
6645
  var U = o.setLastMessage, _ = o.setReadyState, y, b, h;
6646
- return r.current.fromSocketIO && (y = (0, u.setUpSocketIOPing)(d)), g(a, r, U, c), C(a, r, _, s, c), b = f(a, r, _, m, s), h = t(a, r, _, m, s), function() {
6646
+ return r.current.fromSocketIO && (y = (0, u.setUpSocketIOPing)(d)), p(a, r, U, c), C(a, r, _, s, c), b = f(a, r, _, m, s), h = t(a, r, _, m, s), function() {
6647
6647
  _(l.ReadyState.CLOSING), b(), h(), a.close(), y && clearInterval(y);
6648
6648
  };
6649
6649
  };
@@ -6663,7 +6663,7 @@ function lo() {
6663
6663
  }, e.apply(this, arguments);
6664
6664
  };
6665
6665
  Object.defineProperty(na, "__esModule", { value: !0 }), na.attachSharedListeners = void 0;
6666
- var u = ot(), n = Oe(), l = st(), p = mt(), g = Kn(), C = function(o, r, m) {
6666
+ var u = ot(), n = Oe(), l = st(), g = mt(), p = Kn(), C = function(o, r, m) {
6667
6667
  o.onmessage = function(s) {
6668
6668
  (0, l.getSubscribers)(r).forEach(function(c) {
6669
6669
  var d;
@@ -6675,7 +6675,7 @@ function lo() {
6675
6675
  var c = (0, l.getSubscribers)(r);
6676
6676
  c.forEach(function(d) {
6677
6677
  d.reconnectCount.current = 0, d.optionsRef.current.onOpen && d.optionsRef.current.onOpen(s), d.setReadyState(n.ReadyState.OPEN), m && o instanceof WebSocket && (d.lastMessageTime.current = Date.now());
6678
- }), m && o instanceof WebSocket && (0, g.heartbeat)(o, c.map(function(d) {
6678
+ }), m && o instanceof WebSocket && (0, p.heartbeat)(o, c.map(function(d) {
6679
6679
  return d.lastMessageTime;
6680
6680
  }), typeof m == "boolean" ? void 0 : m);
6681
6681
  };
@@ -6705,7 +6705,7 @@ function lo() {
6705
6705
  };
6706
6706
  }, a = function(o, r, m, s) {
6707
6707
  var c;
6708
- return m.current.fromSocketIO && (c = (0, p.setUpSocketIOPing)(s)), C(o, r, m.current.heartbeat), t(o, r), f(o, r, m.current.heartbeat), i(o, r), function() {
6708
+ return m.current.fromSocketIO && (c = (0, g.setUpSocketIOPing)(s)), C(o, r, m.current.heartbeat), t(o, r), f(o, r, m.current.heartbeat), i(o, r), function() {
6709
6709
  c && clearInterval(c);
6710
6710
  };
6711
6711
  };
@@ -6715,9 +6715,9 @@ var cn;
6715
6715
  function ro() {
6716
6716
  if (cn) return xa;
6717
6717
  cn = 1, Object.defineProperty(xa, "__esModule", { value: !0 }), xa.createOrJoinSocket = void 0;
6718
- var e = ot(), u = Oe(), n = no(), l = lo(), p = st(), g = function(f, t, i, a, o) {
6718
+ var e = ot(), u = Oe(), n = no(), l = lo(), g = st(), p = function(f, t, i, a, o) {
6719
6719
  return function() {
6720
- if ((0, p.removeSubscriber)(f, t), !(0, p.hasSubscribers)(f)) {
6720
+ if ((0, g.removeSubscriber)(f, t), !(0, g.hasSubscribers)(f)) {
6721
6721
  try {
6722
6722
  var r = e.sharedWebSockets[f];
6723
6723
  r instanceof WebSocket && (r.onclose = function(m) {
@@ -6742,7 +6742,7 @@ function ro() {
6742
6742
  lastMessageTime: s,
6743
6743
  reconnect: r
6744
6744
  };
6745
- return (0, p.addSubscriber)(t, U), g(t, U, a, i, d);
6745
+ return (0, g.addSubscriber)(t, U), p(t, U, a, i, d);
6746
6746
  } else {
6747
6747
  if (f.current = a.current.eventSourceOptions ? new EventSource(t, a.current.eventSourceOptions) : new WebSocket(t, a.current.protocols), i(u.ReadyState.CONNECTING), !f.current)
6748
6748
  throw new Error("WebSocket failed to be created");
@@ -6848,7 +6848,7 @@ function oo() {
6848
6848
  return t.concat(m || Array.prototype.slice.call(i));
6849
6849
  };
6850
6850
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
6851
- var p = mt(), g = Oe(), C = function(t) {
6851
+ var g = mt(), p = Oe(), C = function(t) {
6852
6852
  return new Promise(function(i) {
6853
6853
  return window.setTimeout(i, t);
6854
6854
  });
@@ -6867,7 +6867,7 @@ function oo() {
6867
6867
  case 2:
6868
6868
  return c = S.sent(), [3, 9];
6869
6869
  case 3:
6870
- return S.sent(), m.current.retryOnError ? (d = (b = m.current.reconnectAttempts) !== null && b !== void 0 ? b : g.DEFAULT_RECONNECT_LIMIT, s < d ? (U = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(s) : m.current.reconnectInterval, [4, C(U ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
6870
+ return S.sent(), m.current.retryOnError ? (d = (b = m.current.reconnectAttempts) !== null && b !== void 0 ? b : p.DEFAULT_RECONNECT_LIMIT, s < d ? (U = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(s) : m.current.reconnectInterval, [4, C(U ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
6871
6871
  case 4:
6872
6872
  return S.sent(), [2, (0, e.getUrl)(r, m, s + 1)];
6873
6873
  case 5:
@@ -6883,7 +6883,7 @@ function oo() {
6883
6883
  case 10:
6884
6884
  c = r, S.label = 11;
6885
6885
  case 11:
6886
- return _ = m.current.fromSocketIO ? (0, p.parseSocketIOUrl)(c) : c, y = m.current.queryParams ? (0, p.appendQueryParams)(_, m.current.queryParams) : _, [2, y];
6886
+ return _ = m.current.fromSocketIO ? (0, g.parseSocketIOUrl)(c) : c, y = m.current.queryParams ? (0, g.appendQueryParams)(_, m.current.queryParams) : _, [2, y];
6887
6887
  }
6888
6888
  });
6889
6889
  });
@@ -6897,13 +6897,13 @@ function mo() {
6897
6897
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
6898
6898
  var u = function(n, l) {
6899
6899
  return new Proxy(n, {
6900
- get: function(p, g) {
6901
- var C = p[g];
6902
- return g === "reconnect" ? l : typeof C == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
6900
+ get: function(g, p) {
6901
+ var C = g[p];
6902
+ return p === "reconnect" ? l : typeof C == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
6903
6903
  }) : C;
6904
6904
  },
6905
- set: function(p, g, C) {
6906
- return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (p[g] = C, !0);
6905
+ set: function(g, p, C) {
6906
+ return /^on/.test(p) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (g[p] = C, !0);
6907
6907
  }
6908
6908
  });
6909
6909
  };
@@ -7011,9 +7011,9 @@ function pt() {
7011
7011
  return r && r.__esModule ? r : { default: r };
7012
7012
  };
7013
7013
  Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.useWebSocket = void 0;
7014
- var p = re, g = Ml, C = Oe(), f = ro(), t = oo(), i = l(mo()), a = ut(), o = function(r, m, s) {
7014
+ var g = re, p = Ml, C = Oe(), f = ro(), t = oo(), i = l(mo()), a = ut(), o = function(r, m, s) {
7015
7015
  m === void 0 && (m = C.DEFAULT_OPTIONS), s === void 0 && (s = !0);
7016
- var c = (0, p.useState)(null), d = c[0], U = c[1], _ = (0, p.useState)({}), y = _[0], b = _[1], h = (0, p.useMemo)(function() {
7016
+ var c = (0, g.useState)(null), d = c[0], U = c[1], _ = (0, g.useState)({}), y = _[0], b = _[1], h = (0, g.useMemo)(function() {
7017
7017
  if (!m.disableJson && d)
7018
7018
  try {
7019
7019
  return JSON.parse(d.data);
@@ -7021,22 +7021,22 @@ function pt() {
7021
7021
  return C.UNPARSABLE_JSON_OBJECT;
7022
7022
  }
7023
7023
  return null;
7024
- }, [d, m.disableJson]), x = (0, p.useRef)(null), S = (0, p.useRef)(null), N = (0, p.useRef)(function() {
7025
- }), D = (0, p.useRef)(0), v = (0, p.useRef)(Date.now()), T = (0, p.useRef)([]), E = (0, p.useRef)(null), G = (0, p.useRef)(m);
7024
+ }, [d, m.disableJson]), x = (0, g.useRef)(null), S = (0, g.useRef)(null), N = (0, g.useRef)(function() {
7025
+ }), D = (0, g.useRef)(0), v = (0, g.useRef)(Date.now()), T = (0, g.useRef)([]), E = (0, g.useRef)(null), G = (0, g.useRef)(m);
7026
7026
  G.current = m;
7027
- var w = x.current && y[x.current] !== void 0 ? y[x.current] : r !== null && s === !0 ? C.ReadyState.CONNECTING : C.ReadyState.UNINSTANTIATED, R = m.queryParams ? JSON.stringify(m.queryParams) : null, F = (0, p.useCallback)(function(W, z) {
7027
+ var w = x.current && y[x.current] !== void 0 ? y[x.current] : r !== null && s === !0 ? C.ReadyState.CONNECTING : C.ReadyState.UNINSTANTIATED, R = m.queryParams ? JSON.stringify(m.queryParams) : null, F = (0, g.useCallback)(function(W, z) {
7028
7028
  var L;
7029
7029
  if (z === void 0 && (z = !0), C.isEventSourceSupported && S.current instanceof EventSource) {
7030
7030
  console.warn("Unable to send a message from an eventSource");
7031
7031
  return;
7032
7032
  }
7033
7033
  ((L = S.current) === null || L === void 0 ? void 0 : L.readyState) === C.ReadyState.OPEN ? ((0, a.assertIsWebSocket)(S.current, G.current.skipAssert), S.current.send(W)) : z && T.current.push(W);
7034
- }, []), H = (0, p.useCallback)(function(W, z) {
7034
+ }, []), H = (0, g.useCallback)(function(W, z) {
7035
7035
  z === void 0 && (z = !0), F(JSON.stringify(W), z);
7036
- }, [F]), O = (0, p.useCallback)(function() {
7036
+ }, [F]), O = (0, g.useCallback)(function() {
7037
7037
  return G.current.share !== !0 || C.isEventSourceSupported && S.current instanceof EventSource ? S.current : (E.current === null && S.current && ((0, a.assertIsWebSocket)(S.current, G.current.skipAssert), E.current = (0, i.default)(S.current, N)), E.current);
7038
7038
  }, []);
7039
- return (0, p.useEffect)(function() {
7039
+ return (0, g.useEffect)(function() {
7040
7040
  if (r !== null && s === !0) {
7041
7041
  var W, z = !1, L = !0, M = function() {
7042
7042
  return u(void 0, void 0, void 0, function() {
@@ -7046,7 +7046,7 @@ function pt() {
7046
7046
  case 0:
7047
7047
  return A = x, [4, (0, t.getUrl)(r, G)];
7048
7048
  case 1:
7049
- return A.current = q.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
7049
+ return A.current = q.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, p.flushSync)(function() {
7050
7050
  return b(function(Y) {
7051
7051
  return e(e({}, Y), { ABORTED: C.ReadyState.CLOSED });
7052
7052
  });
@@ -7054,11 +7054,11 @@ function pt() {
7054
7054
  2
7055
7055
  /*return*/
7056
7056
  ]) : (P = function(Y) {
7057
- z || (0, g.flushSync)(function() {
7057
+ z || (0, p.flushSync)(function() {
7058
7058
  return U(Y);
7059
7059
  });
7060
7060
  }, K = function(Y) {
7061
- z || (0, g.flushSync)(function() {
7061
+ z || (0, p.flushSync)(function() {
7062
7062
  return b(function(Z) {
7063
7063
  var oe;
7064
7064
  return e(e({}, Z), x.current && (oe = {}, oe[x.current] = Y, oe));
@@ -7081,7 +7081,7 @@ function pt() {
7081
7081
  var P;
7082
7082
  return e(e({}, A), x.current && (P = {}, P[x.current] = C.ReadyState.CLOSED, P));
7083
7083
  }));
7084
- }, [r, s, R, F]), (0, p.useEffect)(function() {
7084
+ }, [r, s, R, F]), (0, g.useEffect)(function() {
7085
7085
  w === C.ReadyState.OPEN && T.current.splice(0).forEach(function(W) {
7086
7086
  F(W);
7087
7087
  });
@@ -7110,17 +7110,17 @@ function so() {
7110
7110
  }, e.apply(this, arguments);
7111
7111
  };
7112
7112
  Object.defineProperty(la, "__esModule", { value: !0 }), la.useSocketIO = void 0;
7113
- var u = re, n = pt(), l = Oe(), p = {
7113
+ var u = re, n = pt(), l = Oe(), g = {
7114
7114
  type: "empty",
7115
7115
  payload: null
7116
- }, g = function(f) {
7116
+ }, p = function(f) {
7117
7117
  if (!f || !f.data)
7118
- return p;
7118
+ return g;
7119
7119
  var t = f.data.match(/\[.*]/);
7120
7120
  if (!t)
7121
- return p;
7121
+ return g;
7122
7122
  var i = JSON.parse(t);
7123
- return !Array.isArray(i) || !i[1] ? p : {
7123
+ return !Array.isArray(i) || !i[1] ? g : {
7124
7124
  type: i[0],
7125
7125
  payload: i[1]
7126
7126
  };
@@ -7129,7 +7129,7 @@ function so() {
7129
7129
  var a = (0, u.useMemo)(function() {
7130
7130
  return e(e({}, t), { fromSocketIO: !0 });
7131
7131
  }, []), o = (0, n.useWebSocket)(f, a, i), r = o.sendMessage, m = o.sendJsonMessage, s = o.lastMessage, c = o.readyState, d = o.getWebSocket, U = (0, u.useMemo)(function() {
7132
- return g(s);
7132
+ return p(s);
7133
7133
  }, [s]);
7134
7134
  return {
7135
7135
  sendMessage: r,
@@ -7163,13 +7163,13 @@ function uo() {
7163
7163
  return t;
7164
7164
  };
7165
7165
  Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.useEventSource = void 0;
7166
- var n = re, l = pt(), p = Oe(), g = function(C, f, t) {
7167
- f === void 0 && (f = p.DEFAULT_EVENT_SOURCE_OPTIONS);
7166
+ var n = re, l = pt(), g = Oe(), p = function(C, f, t) {
7167
+ f === void 0 && (f = g.DEFAULT_EVENT_SOURCE_OPTIONS);
7168
7168
  var i = f.withCredentials, a = f.events, o = u(f, ["withCredentials", "events"]);
7169
7169
  t === void 0 && (t = !0);
7170
7170
  var r = e(e({}, o), { eventSourceOptions: {
7171
7171
  withCredentials: i
7172
- } }), m = (0, n.useRef)(p.EMPTY_EVENT_HANDLERS);
7172
+ } }), m = (0, n.useRef)(g.EMPTY_EVENT_HANDLERS);
7173
7173
  a && (m.current = a);
7174
7174
  var s = (0, l.useWebSocket)(C, r, t), c = s.lastMessage, d = s.readyState, U = s.getWebSocket;
7175
7175
  return (0, n.useEffect)(function() {
@@ -7183,7 +7183,7 @@ function uo() {
7183
7183
  getEventSource: U
7184
7184
  };
7185
7185
  };
7186
- return Ve.useEventSource = g, Ve;
7186
+ return Ve.useEventSource = p, Ve;
7187
7187
  }
7188
7188
  var bn;
7189
7189
  function po() {
@@ -7201,13 +7201,13 @@ function po() {
7201
7201
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
7202
7202
  return l.ReadyState;
7203
7203
  } });
7204
- var p = uo();
7204
+ var g = uo();
7205
7205
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
7206
- return p.useEventSource;
7206
+ return g.useEventSource;
7207
7207
  } });
7208
- var g = ut();
7208
+ var p = ut();
7209
7209
  Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
7210
- return g.resetGlobalState;
7210
+ return p.resetGlobalState;
7211
7211
  } });
7212
7212
  })(Zi)), Zi;
7213
7213
  }
@@ -7217,18 +7217,18 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7217
7217
  isTestFunction: u = !1,
7218
7218
  isTransferMode: n = !1,
7219
7219
  isInGameBox: l = !1,
7220
- currentGamePlatform: p = ""
7220
+ currentGamePlatform: g = ""
7221
7221
  }) => {
7222
- const { store: g, lng: C } = te(), { isReady: f, setAsReady: t, isPending: i, setAsPending: a } = Fn(), o = Pe(C), { mutateAsync: r } = So();
7222
+ const { store: p, lng: C } = te(), { isReady: f, setAsReady: t, isPending: i, setAsPending: a } = Fn(), o = Pe(C), { mutateAsync: r } = So();
7223
7223
  return !e || !u || !n ? { handleTransferInGame: () => {
7224
7224
  } } : { handleTransferInGame: async () => {
7225
7225
  console.log("執行遊戲內轉帳"), l && await r({
7226
- platform: p
7226
+ platform: g
7227
7227
  }).then((s) => {
7228
7228
  const { code: c, request_id: d } = s;
7229
7229
  switch (c) {
7230
7230
  case 200:
7231
- t(), g.dispatch({
7231
+ t(), p.dispatch({
7232
7232
  type: "ui/openNotificationModal",
7233
7233
  payload: {
7234
7234
  title: Na[o] || "System Prompt",
@@ -7241,7 +7241,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7241
7241
  localStorage.setItem("transfer_in_game_request_id", d), a();
7242
7242
  return;
7243
7243
  case 102:
7244
- localStorage.setItem("transfer_in_game_request_id", d), a(), g.dispatch({
7244
+ localStorage.setItem("transfer_in_game_request_id", d), a(), p.dispatch({
7245
7245
  type: "ui/openNotificationModal",
7246
7246
  payload: {
7247
7247
  title: Na[o] || "System Prompt",
@@ -7353,8 +7353,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7353
7353
  queryKey: ["checkUserWager"],
7354
7354
  queryFn: async () => n(),
7355
7355
  select: (l) => {
7356
- const { data: p } = l;
7357
- return Re(p?.base, {
7356
+ const { data: g } = l;
7357
+ return Re(g?.base, {
7358
7358
  currency: u
7359
7359
  }) || {};
7360
7360
  },
@@ -7407,7 +7407,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7407
7407
  userBindCard: {}
7408
7408
  }
7409
7409
  } = {}) => {
7410
- const u = _o({ options: e.login }), n = yo({ options: e.logout }), l = Uo({ options: e.register }), p = bo({ options: e.updateUserInfo }), g = Co({
7410
+ const u = _o({ options: e.login }), n = yo({ options: e.logout }), l = Uo({ options: e.register }), g = bo({ options: e.updateUserInfo }), p = Co({
7411
7411
  options: e.toggleFavoriteGame
7412
7412
  }), C = vo({
7413
7413
  options: e.resetUserPassword
@@ -7420,8 +7420,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7420
7420
  login: u,
7421
7421
  logout: n,
7422
7422
  register: l,
7423
- updateUserInfo: p,
7424
- toggleFavoriteGame: g,
7423
+ updateUserInfo: g,
7424
+ toggleFavoriteGame: p,
7425
7425
  resetUserPassword: C,
7426
7426
  setUserTransactionPassword: f,
7427
7427
  resetUserTransactionPassword: t,
@@ -7447,18 +7447,18 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7447
7447
  socketHandlers: u = {},
7448
7448
  options: n = {},
7449
7449
  memberInfo: l = {},
7450
- transferInGamingConfig: p = {
7450
+ transferInGamingConfig: g = {
7451
7451
  enableTransferInGaming: !1,
7452
7452
  isTransferMode: !1,
7453
7453
  isInGameBox: !1,
7454
7454
  currentGamePlatform: ""
7455
7455
  },
7456
- enableNotification: g = !1
7456
+ enableNotification: p = !1
7457
7457
  }) => {
7458
7458
  const { store: C, lng: f } = te(), t = Gn(), { isReady: i, setAsReady: a, isPending: o, setAsPending: r } = Fn(), m = Pe(f), s = Za(!1), c = Za(u), d = le(l, "uid", null);
7459
7459
  le(l, "testFunction", 0);
7460
7460
  const U = new URLSearchParams(window.location.search), _ = le(
7461
- p,
7461
+ g,
7462
7462
  "enableTransferInGaming",
7463
7463
  !1
7464
7464
  ), { mutateAsync: y } = Eo({
@@ -7470,9 +7470,9 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7470
7470
  }), { handleTransferInGame: b } = fo({
7471
7471
  enable: _,
7472
7472
  isTestFunction: !0,
7473
- isTransferMode: le(p, "isTransferMode", !1),
7474
- isInGameBox: le(p, "isInGameBox", !1),
7475
- currentGamePlatform: le(p, "currentGamePlatform", "")
7473
+ isTransferMode: le(g, "isTransferMode", !1),
7474
+ isInGameBox: le(g, "isInGameBox", !1),
7475
+ currentGamePlatform: le(g, "currentGamePlatform", "")
7476
7476
  }), {
7477
7477
  sendMessage: h,
7478
7478
  // 發送普通訊息
@@ -7507,7 +7507,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7507
7507
  }, [h]);
7508
7508
  const v = V(
7509
7509
  (E, G) => {
7510
- g && C.dispatch({
7510
+ p && C.dispatch({
7511
7511
  type: "ui/openNotificationModal",
7512
7512
  payload: {
7513
7513
  title: Na[m] || "System Prompt",
@@ -7517,7 +7517,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7517
7517
  }
7518
7518
  });
7519
7519
  },
7520
- [g, C, m]
7520
+ [p, C, m]
7521
7521
  );
7522
7522
  ra(() => {
7523
7523
  c.current = u;
@@ -7664,27 +7664,27 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7664
7664
  };
7665
7665
  }, Pi = () => {
7666
7666
  const { client: e } = te(), u = V(
7667
- async ({ paramsData: g } = {}) => {
7668
- const { uid: C } = g || {};
7667
+ async ({ paramsData: p } = {}) => {
7668
+ const { uid: C } = p || {};
7669
7669
  return await e.get(`/event/list${C ? `/${C}` : ""}`);
7670
7670
  },
7671
7671
  [e]
7672
7672
  ), n = V(
7673
- async (g) => await e.get("/event/checkMemeberEventsWageringRestricted", {
7674
- params: g
7673
+ async (p) => await e.get("/event/checkMemeberEventsWageringRestricted", {
7674
+ params: p
7675
7675
  }),
7676
7676
  [e]
7677
7677
  ), l = V(
7678
- async (g = {}) => {
7679
- const { event_uid: C } = g || {};
7678
+ async (p = {}) => {
7679
+ const { event_uid: C } = p || {};
7680
7680
  return await e.get(`/event/${C}/memberGetEventRewards`, {
7681
7681
  event_uid: C
7682
7682
  });
7683
7683
  },
7684
7684
  [e]
7685
- ), p = V(
7686
- async (g = {}) => {
7687
- const { currency: C, event_uid: f } = g || {};
7685
+ ), g = V(
7686
+ async (p = {}) => {
7687
+ const { currency: C, event_uid: f } = p || {};
7688
7688
  return await e.post("/event/checkMemberEventsStatus", {
7689
7689
  currency: C,
7690
7690
  event_uid: f
@@ -7695,20 +7695,20 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7695
7695
  return {
7696
7696
  eventListApi: u,
7697
7697
  checkCurrentEventProgessApi: n,
7698
- checkEventStatusApi: p,
7698
+ checkEventStatusApi: g,
7699
7699
  redeemEventRewardApi: l
7700
7700
  };
7701
7701
  }, Go = ({ paramsData: e, options: u } = {}) => {
7702
- const { store: n, lng: l } = te(), { eventListApi: p } = Pi(), g = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", C = Pe(l);
7702
+ const { store: n, lng: l } = te(), { eventListApi: g } = Pi(), p = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", C = Pe(l);
7703
7703
  return ee({
7704
7704
  queryKey: ["eventList", e],
7705
- queryFn: () => p({ paramsData: e }),
7705
+ queryFn: () => g({ paramsData: e }),
7706
7706
  select: (f) => {
7707
7707
  const { data: t } = f;
7708
7708
  return Se(t, (a) => {
7709
7709
  const { events_attributes: o } = a, r = Re(
7710
7710
  o,
7711
- (y) => y.attribute_currency === g
7711
+ (y) => y.attribute_currency === p
7712
7712
  ) || o[0], m = le(r, "rewards", {}), s = le(a, "carousels.[0]", {}), c = {
7713
7713
  ...s,
7714
7714
  currentLngCarousel: Re(s.carousels_lang, (y) => y.lang === C) || s?.carousels_lang?.[0]
@@ -7846,27 +7846,27 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7846
7846
  };
7847
7847
  }, Fi = () => {
7848
7848
  const { client: e } = te(), u = V(async () => {
7849
- const { data: g } = await e.get("/carousels");
7850
- return g;
7851
- }, [e]), n = V(async () => await e.get("/marquees"), [e]), l = V(async () => await e.get("/notification"), [e]), p = V(
7852
- async (g) => await e.put(`/notification/${g}/read`),
7849
+ const { data: p } = await e.get("/carousels");
7850
+ return p;
7851
+ }, [e]), n = V(async () => await e.get("/marquees"), [e]), l = V(async () => await e.get("/notification"), [e]), g = V(
7852
+ async (p) => await e.put(`/notification/${p}/read`),
7853
7853
  [e]
7854
7854
  );
7855
7855
  return {
7856
7856
  commonCarouselApi: u,
7857
7857
  commonMarqueeApi: n,
7858
7858
  commonInboxApi: l,
7859
- commonReadInboxApi: p
7859
+ commonReadInboxApi: g
7860
7860
  };
7861
7861
  }, as = () => {
7862
7862
  const { lng: e, data2URL: u } = te(), { commonCarouselApi: n } = Fi(), l = Pe(e);
7863
7863
  return ee({
7864
7864
  queryKey: ["getCarouselList"],
7865
7865
  queryFn: async () => {
7866
- const p = window.carousels_list;
7867
- return p || await n();
7866
+ const g = window.carousels_list;
7867
+ return g || await n();
7868
7868
  },
7869
- select: (p) => p.map((C) => {
7869
+ select: (g) => g.map((C) => {
7870
7870
  const { carousels_lang: f } = C, t = f?.find((i) => i.lang === l) || f[0];
7871
7871
  return {
7872
7872
  ...C,
@@ -7888,8 +7888,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7888
7888
  return l || await u();
7889
7889
  },
7890
7890
  select: (l) => {
7891
- const p = Ae(l) ? l : l.Marquees;
7892
- return Se(p, (C) => C[n] || C["en-US"]);
7891
+ const g = Ae(l) ? l : l.Marquees;
7892
+ return Se(g, (C) => C[n] || C["en-US"]);
7893
7893
  }
7894
7894
  });
7895
7895
  }, ts = ({ options: e } = {}) => {
@@ -7900,7 +7900,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7900
7900
  enabled: window.profit_ranking_status === 1,
7901
7901
  select: (n) => {
7902
7902
  const { data: l } = n;
7903
- return Se(l, (g) => {
7903
+ return Se(l, (p) => {
7904
7904
  const {
7905
7905
  game_uid: C,
7906
7906
  game_code: f,
@@ -7910,7 +7910,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7910
7910
  platform: o,
7911
7911
  popularity_ranking: r,
7912
7912
  profit: m
7913
- } = g;
7913
+ } = p;
7914
7914
  return {
7915
7915
  gameUid: C,
7916
7916
  //遊戲UID
@@ -7934,7 +7934,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7934
7934
  ...e
7935
7935
  });
7936
7936
  }, Po = ({ options: e } = {}) => {
7937
- const { commonInboxApi: u } = Fi(), { getToken: n, lng: l } = te(), p = n?.(), g = Pe(l);
7937
+ const { commonInboxApi: u } = Fi(), { getToken: n, lng: l } = te(), g = n?.(), p = Pe(l);
7938
7938
  return ee({
7939
7939
  queryKey: ["inboxList"],
7940
7940
  queryFn: async () => await u(),
@@ -7946,12 +7946,12 @@ const co = /* @__PURE__ */ tt(go), fo = ({
7946
7946
  ...i,
7947
7947
  notificationLng: Re(
7948
7948
  a,
7949
- (o) => o.language === g
7949
+ (o) => o.language === p
7950
7950
  ) || a[0]
7951
7951
  };
7952
7952
  });
7953
7953
  },
7954
- enabled: !!p,
7954
+ enabled: !!g,
7955
7955
  ...e
7956
7956
  });
7957
7957
  }, Fo = ({ options: e } = {}) => {
@@ -8029,17 +8029,17 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8029
8029
  ...e.other
8030
8030
  }
8031
8031
  ], ls = ({ options: e, formData: u } = {}) => {
8032
- const { lng: n } = te(), { newsListApi: l } = qn(), p = Pe(n);
8032
+ const { lng: n } = te(), { newsListApi: l } = qn(), g = Pe(n);
8033
8033
  return ee({
8034
8034
  queryKey: ["newsList"],
8035
8035
  queryFn: () => {
8036
- const { uid: g, params: C } = u || {};
8037
- return l({ uid: g, params: C });
8036
+ const { uid: p, params: C } = u || {};
8037
+ return l({ uid: p, params: C });
8038
8038
  },
8039
- select: (g) => {
8040
- const { data: C } = g, f = C.data?.filter((i) => i.is_active === 1), t = Se(f, (i) => {
8039
+ select: (p) => {
8040
+ const { data: C } = p, f = C.data?.filter((i) => i.is_active === 1), t = Se(f, (i) => {
8041
8041
  const a = Re(i.news_language, {
8042
- language: p
8042
+ language: g
8043
8043
  }) || i.news_language[0];
8044
8044
  return {
8045
8045
  ...i,
@@ -8047,7 +8047,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8047
8047
  };
8048
8048
  });
8049
8049
  return {
8050
- ...g.data,
8050
+ ...p.data,
8051
8051
  data: t,
8052
8052
  blogType: wo({ typeConfig: e?.typeConfig })
8053
8053
  };
@@ -8055,19 +8055,19 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8055
8055
  ...e
8056
8056
  });
8057
8057
  }, rs = ({ options: e, formData: u } = {}) => {
8058
- const { lng: n } = te(), { newsListApi: l } = qn(), p = Pe(n);
8058
+ const { lng: n } = te(), { newsListApi: l } = qn(), g = Pe(n);
8059
8059
  return ee({
8060
8060
  queryKey: ["newsList"],
8061
8061
  queryFn: () => {
8062
- const { uid: g, params: C } = u || {};
8063
- return l({ uid: g, params: C });
8062
+ const { uid: p, params: C } = u || {};
8063
+ return l({ uid: p, params: C });
8064
8064
  },
8065
- select: (g) => {
8066
- const C = Re(g.data.news_language, {
8067
- language: p
8068
- }) || g.data.news_language[0];
8065
+ select: (p) => {
8066
+ const C = Re(p.data.news_language, {
8067
+ language: g
8068
+ }) || p.data.news_language[0];
8069
8069
  return {
8070
- ...g.data,
8070
+ ...p.data,
8071
8071
  currentLngData: C
8072
8072
  };
8073
8073
  },
@@ -8092,7 +8092,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8092
8092
  });
8093
8093
  },
8094
8094
  [e]
8095
- ), p = V(
8095
+ ), g = V(
8096
8096
  async (o) => {
8097
8097
  const { bank_uid: r, amount: m, bank_number_last5: s, postscript: c } = o;
8098
8098
  return await e.post("/vip/deposit", {
@@ -8103,7 +8103,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8103
8103
  });
8104
8104
  },
8105
8105
  [e]
8106
- ), g = V(
8106
+ ), p = V(
8107
8107
  async (o) => {
8108
8108
  const {
8109
8109
  withdrawal_amount: r,
@@ -8181,8 +8181,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8181
8181
  depositApiV1: u,
8182
8182
  depositApiV2: n,
8183
8183
  depositApi: l,
8184
- bankDepositApi: p,
8185
- withdrawApi: g,
8184
+ bankDepositApi: g,
8185
+ withdrawApi: p,
8186
8186
  depositTransactionApi: C,
8187
8187
  eventTransactionApi: f,
8188
8188
  withdrawTransactionApi: t,
@@ -8202,7 +8202,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8202
8202
  queryKey: ["depositV2", e],
8203
8203
  queryFn: () => n({ paramsData: e }),
8204
8204
  select: (l) => {
8205
- const { third_party: p, bank: g, vip: C } = l, f = Se(p, (t) => ({
8205
+ const { third_party: g, bank: p, vip: C } = l, f = Se(g, (t) => ({
8206
8206
  ...t,
8207
8207
  providerList: Se(t.providers, (i) => ({
8208
8208
  ...i,
@@ -8214,7 +8214,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8214
8214
  methodImageUrl: `${Ze}/paymentIcon/${ct(t.method_name)}pay.png`
8215
8215
  }));
8216
8216
  return {
8217
- bank: g,
8217
+ bank: p,
8218
8218
  vip: C,
8219
8219
  thirdParty: f
8220
8220
  };
@@ -8282,12 +8282,12 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8282
8282
  depositV2: u = {},
8283
8283
  depositTransaction: n = {},
8284
8284
  depositAction: l = {},
8285
- withdrawAction: p = {},
8286
- bankDeposit: g = {},
8285
+ withdrawAction: g = {},
8286
+ bankDeposit: p = {},
8287
8287
  eventTransaction: C = {},
8288
8288
  withdrawTransaction: f = {}
8289
8289
  } = {}) => {
8290
- const t = Ao(e), i = Oo(u), a = Wo(n), o = Bo(l), r = Ho(p), m = Io(g), s = zo(C), c = Vo(
8290
+ const t = Ao(e), i = Oo(u), a = Wo(n), o = Bo(l), r = Ho(g), m = Io(p), s = zo(C), c = Vo(
8291
8291
  f
8292
8292
  );
8293
8293
  return {
@@ -8304,17 +8304,17 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8304
8304
  let u = {};
8305
8305
  return e.forEach((n, l) => u[n] = l), u;
8306
8306
  })(Da), Ko = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Ue = String.fromCharCode.bind(String), Tn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), $n = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (u) => u == "+" ? "-" : "_"), jn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Yn = (e) => {
8307
- let u, n, l, p, g = "";
8307
+ let u, n, l, g, p = "";
8308
8308
  const C = e.length % 3;
8309
8309
  for (let f = 0; f < e.length; ) {
8310
- if ((n = e.charCodeAt(f++)) > 255 || (l = e.charCodeAt(f++)) > 255 || (p = e.charCodeAt(f++)) > 255)
8310
+ if ((n = e.charCodeAt(f++)) > 255 || (l = e.charCodeAt(f++)) > 255 || (g = e.charCodeAt(f++)) > 255)
8311
8311
  throw new TypeError("invalid character found");
8312
- u = n << 16 | l << 8 | p, g += Da[u >> 18 & 63] + Da[u >> 12 & 63] + Da[u >> 6 & 63] + Da[u & 63];
8312
+ u = n << 16 | l << 8 | g, p += Da[u >> 18 & 63] + Da[u >> 12 & 63] + Da[u >> 6 & 63] + Da[u & 63];
8313
8313
  }
8314
- return C ? g.slice(0, C - 3) + "===".substring(C) : g;
8314
+ return C ? p.slice(0, C - 3) + "===".substring(C) : p;
8315
8315
  }, gt = typeof btoa == "function" ? (e) => btoa(e) : _a ? (e) => Buffer.from(e, "binary").toString("base64") : Yn, $i = _a ? (e) => Buffer.from(e).toString("base64") : (e) => {
8316
8316
  let n = [];
8317
- for (let l = 0, p = e.length; l < p; l += 4096)
8317
+ for (let l = 0, g = e.length; l < g; l += 4096)
8318
8318
  n.push(Ue.apply(null, e.subarray(l, l + 4096)));
8319
8319
  return gt(n.join(""));
8320
8320
  }, Ni = (e, u = !1) => u ? $n($i(e)) : $i(e), qo = (e) => {
@@ -8339,10 +8339,10 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8339
8339
  if (e = e.replace(/\s+/g, ""), !Ko.test(e))
8340
8340
  throw new TypeError("malformed base64.");
8341
8341
  e += "==".slice(2 - (e.length & 3));
8342
- let u, n, l, p = [];
8343
- for (let g = 0; g < e.length; )
8344
- u = Ia[e.charAt(g++)] << 18 | Ia[e.charAt(g++)] << 12 | (n = Ia[e.charAt(g++)]) << 6 | (l = Ia[e.charAt(g++)]), n === 64 ? p.push(Ue(u >> 16 & 255)) : l === 64 ? p.push(Ue(u >> 16 & 255, u >> 8 & 255)) : p.push(Ue(u >> 16 & 255, u >> 8 & 255, u & 255));
8345
- return p.join("");
8342
+ let u, n, l, g = [];
8343
+ for (let p = 0; p < e.length; )
8344
+ u = Ia[e.charAt(p++)] << 18 | Ia[e.charAt(p++)] << 12 | (n = Ia[e.charAt(p++)]) << 6 | (l = Ia[e.charAt(p++)]), n === 64 ? g.push(Ue(u >> 16 & 255)) : l === 64 ? g.push(Ue(u >> 16 & 255, u >> 8 & 255)) : g.push(Ue(u >> 16 & 255, u >> 8 & 255, u & 255));
8345
+ return g.join("");
8346
8346
  }, dt = typeof atob == "function" ? (e) => atob(jn(e)) : _a ? (e) => Buffer.from(e, "base64").toString("binary") : al, il = _a ? (e) => Tn(Buffer.from(e, "base64")) : (e) => Tn(dt(e).split("").map((u) => u.charCodeAt(0))), tl = (e) => il(nl(e)), Yo = _a ? (e) => Buffer.from(e, "base64").toString("utf8") : vn ? (e) => vn.decode(il(e)) : (e) => el(dt(e)), nl = (e) => jn(e.replace(/[-_]/g, (u) => u == "-" ? "+" : "/")), ji = (e) => Yo(nl(e)), Xo = (e) => {
8347
8347
  if (typeof e != "string")
8348
8348
  return !1;
@@ -8403,10 +8403,10 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8403
8403
  return ee({
8404
8404
  queryKey: ["playGame"],
8405
8405
  queryFn: async () => {
8406
- const { gameUid: l, gameCode: p, isMobile: g, gameCurrency: C, currentCurrency: f } = e || {}, t = await n({
8406
+ const { gameUid: l, gameCode: g, isMobile: p, gameCurrency: C, currentCurrency: f } = e || {}, t = await n({
8407
8407
  gameUid: l,
8408
- gameCode: p,
8409
- isMobile: g,
8408
+ gameCode: g,
8409
+ isMobile: p,
8410
8410
  gameCurrency: C,
8411
8411
  currentCurrency: f
8412
8412
  }), {
@@ -8470,33 +8470,33 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8470
8470
  params: f
8471
8471
  }),
8472
8472
  [e]
8473
- ), n = V(async () => await e.get("/memberRewards/member/unused"), [e]), l = V(async () => await e.get("/memberRewards/member/expired"), [e]), p = V(
8473
+ ), n = V(async () => await e.get("/memberRewards/member/unused"), [e]), l = V(async () => await e.get("/memberRewards/member/expired"), [e]), g = V(
8474
8474
  async (C) => await e.post("/memberRewards/memberGetRewards", {
8475
8475
  memberRewards_uid: C
8476
8476
  }),
8477
8477
  [e]
8478
- ), g = V(async () => await e.get("/memberRewards/member/history"), [e]);
8478
+ ), p = V(async () => await e.get("/memberRewards/member/history"), [e]);
8479
8479
  return {
8480
8480
  rewardListApi: u,
8481
8481
  unUsedRewardListApi: n,
8482
8482
  expiredRewardListApi: l,
8483
- redeemRewardApi: p,
8484
- historyRewardApi: g
8483
+ redeemRewardApi: g,
8484
+ historyRewardApi: p
8485
8485
  };
8486
8486
  }, nm = ({ options: e } = {}) => {
8487
8487
  const { rewardListApi: u } = La();
8488
8488
  return ee({
8489
8489
  queryKey: ["rewardsList"],
8490
8490
  queryFn: (n) => {
8491
- const { uid: l, params: p } = n || {};
8492
- return u({ uid: l, params: p });
8491
+ const { uid: l, params: g } = n || {};
8492
+ return u({ uid: l, params: g });
8493
8493
  },
8494
8494
  select: (n) => {
8495
- const l = Se(n.data, (p) => {
8495
+ const l = Se(n.data, (g) => {
8496
8496
  const {
8497
- wagering_restricted_amount: g,
8497
+ wagering_restricted_amount: p,
8498
8498
  claimed_amount: C
8499
- } = p, f = le(p, "rewards", {}), {
8499
+ } = g, f = le(g, "rewards", {}), {
8500
8500
  expiration_days: t,
8501
8501
  name: i,
8502
8502
  position: a,
@@ -8504,13 +8504,13 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8504
8504
  uid: r
8505
8505
  } = f;
8506
8506
  return {
8507
- ...p,
8507
+ ...g,
8508
8508
  rewardExpirationDays: t,
8509
8509
  rewardName: i,
8510
8510
  rewardPosition: a,
8511
8511
  rewardType: o,
8512
8512
  rewardUid: r,
8513
- rewardWagering: g,
8513
+ rewardWagering: p,
8514
8514
  rewardAmount: C,
8515
8515
  rewardBg: An(),
8516
8516
  rewardIcon: wn("win")
@@ -8564,17 +8564,17 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8564
8564
  options: e.redeemReward
8565
8565
  }), l = rm({
8566
8566
  options: e.unUsedRewardsList
8567
- }), p = om({
8567
+ }), g = om({
8568
8568
  options: e.expiredRewardsList
8569
- }), g = mm({
8569
+ }), p = mm({
8570
8570
  options: e.historyRewardsList
8571
8571
  });
8572
8572
  return {
8573
8573
  rewardsListQuery: u,
8574
8574
  redeemRewardMutation: n,
8575
8575
  unUsedRewardsListQuery: l,
8576
- expiredRewardsListQuery: p,
8577
- historyRewardsListQuery: g
8576
+ expiredRewardsListQuery: g,
8577
+ historyRewardsListQuery: p
8578
8578
  };
8579
8579
  }, sl = () => {
8580
8580
  const { client: e } = te(), u = V(async () => await e.get("/vip/list"), [e]), n = V(async () => await e.get("/vip/check"), [e]);
@@ -8587,12 +8587,12 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8587
8587
  return ee({
8588
8588
  queryKey: ["vipInfo"],
8589
8589
  queryFn: async () => l(),
8590
- select: (p) => {
8591
- const { data: g } = p;
8590
+ select: (g) => {
8591
+ const { data: p } = g;
8592
8592
  return {
8593
- currentWager: g.wagering,
8593
+ currentWager: p.wagering,
8594
8594
  currentLevel: n.vip_level,
8595
- currentVipStatus: g.status
8595
+ currentVipStatus: p.status
8596
8596
  };
8597
8597
  },
8598
8598
  ...e
@@ -8602,12 +8602,12 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8602
8602
  return ee({
8603
8603
  queryKey: ["vipList"],
8604
8604
  queryFn: async () => {
8605
- const p = window.vip_list;
8606
- return p || l();
8605
+ const g = window.vip_list;
8606
+ return g || l();
8607
8607
  },
8608
- select: (p) => {
8609
- const g = Ae(p) ? p : p.data;
8610
- return Se(g, (f) => {
8608
+ select: (g) => {
8609
+ const p = Ae(g) ? g : g.data;
8610
+ return Se(p, (f) => {
8611
8611
  const {
8612
8612
  vip_criteria: t,
8613
8613
  vip_payment_tags: i,
@@ -8661,9 +8661,9 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8661
8661
  const { lng: u } = te(), n = Sn(u), {
8662
8662
  gameCode: l,
8663
8663
  // 遊戲代碼
8664
- gameUid: p,
8664
+ gameUid: g,
8665
8665
  // 遊戲唯一標識符
8666
- gameTypeUid: g,
8666
+ gameTypeUid: p,
8667
8667
  // 遊戲類型唯一標識符
8668
8668
  platformUid: C,
8669
8669
  // 平台唯一標識符
@@ -8699,8 +8699,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8699
8699
  } = e, h = e?.[`gameName${Sn(n)}`], x = `${bt}/${Dn}/en/${i}/${ft(l, / /g, "_")}.webp`, S = `${bt}/${Dn}/en/${i}/${ft(l, / /g, "_")}.gif`;
8700
8700
  return {
8701
8701
  gameCode: l,
8702
- gameUid: p,
8703
- gameTypeUid: g,
8702
+ gameUid: g,
8703
+ gameTypeUid: p,
8704
8704
  providerUid: C,
8705
8705
  supportCurrency: f,
8706
8706
  enterLobbyMode: t,
@@ -8737,9 +8737,9 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8737
8737
  // 子平台枚舉
8738
8738
  platformEnum: l,
8739
8739
  // 平台枚舉
8740
- isUnderMaintenance: p,
8740
+ isUnderMaintenance: g,
8741
8741
  // 是否維護中
8742
- maintenanceStartTime: g,
8742
+ maintenanceStartTime: p,
8743
8743
  // 維護開始時間
8744
8744
  maintenanceEndTime: C,
8745
8745
  // 維護結束時間
@@ -8757,8 +8757,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8757
8757
  return {
8758
8758
  subPlatformEnum: n,
8759
8759
  platformEnum: l,
8760
- isUnderMaintenance: p,
8761
- maintenanceStartTime: g,
8760
+ isUnderMaintenance: g,
8761
+ maintenanceStartTime: p,
8762
8762
  maintenanceEndTime: C,
8763
8763
  platform: f,
8764
8764
  platformUid: t,
@@ -8768,35 +8768,35 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8768
8768
  platformImageUrl: r
8769
8769
  };
8770
8770
  }, pm = (e = {}) => !Gi(e) || fe(e) ? [] : Mi(e), En = (e = []) => !Ae(e) || fe(e) ? [] : Se(e, "platform"), gm = (e = []) => !Ae(e) || fe(e) ? [] : Se(e, "gameTypeName"), dm = (e = []) => !Ae(e) || fe(e) ? [] : Se(e, "game_subtype"), cm = (e = {}) => !Gi(e) || fe(e) ? [] : Mi(e), fm = (e = [], u = []) => !Ae(e) || fe(e) ? {} : !Ae(u) || fe(u) ? {} : e.reduce((n, l) => {
8771
- const p = u.map((g) => g.game_subtype);
8772
- return p.forEach((g) => {
8773
- n[g] = n[g] || [];
8774
- }), p.includes(l.game_subtype) && n[l.game_subtype].push(l), n;
8771
+ const g = u.map((p) => p.game_subtype);
8772
+ return g.forEach((p) => {
8773
+ n[p] = n[p] || [];
8774
+ }), g.includes(l.game_subtype) && n[l.game_subtype].push(l), n;
8775
8775
  }, {}), _m = ({
8776
8776
  gameTypes: e = [],
8777
8777
  platforms: u = [],
8778
8778
  gameList: n = {},
8779
8779
  allGameTypes: l = [],
8780
- allPlatforms: p = []
8781
- }) => !Ae(e) || !Ae(u) ? {} : fe(n) ? {} : e.reduce((g, C) => {
8780
+ allPlatforms: g = []
8781
+ }) => !Ae(e) || !Ae(u) ? {} : fe(n) ? {} : e.reduce((p, C) => {
8782
8782
  const f = Bl({
8783
8783
  gameTypeName: C,
8784
8784
  platforms: u,
8785
8785
  gameList: n,
8786
8786
  allGameTypes: l,
8787
- allPlatforms: p
8787
+ allPlatforms: g
8788
8788
  });
8789
- return fe(f) || (g[C] = f), g;
8789
+ return fe(f) || (p[C] = f), p;
8790
8790
  }, {}), ys = ({
8791
8791
  types: e = [],
8792
8792
  platforms: u = [],
8793
8793
  allGameType: n = [],
8794
8794
  allGamePlatform: l = [],
8795
- allGameList: p = {}
8796
- } = {}) => !Array.isArray(e) || !Array.isArray(u) ? {} : e.reduce((g, C) => {
8795
+ allGameList: g = {}
8796
+ } = {}) => !Array.isArray(e) || !Array.isArray(u) ? {} : e.reduce((p, C) => {
8797
8797
  const f = Hn(n, C);
8798
- if (!f) return g;
8799
- const t = p[f] || [], i = u.reduce((a, o) => {
8798
+ if (!f) return p;
8799
+ const t = g[f] || [], i = u.reduce((a, o) => {
8800
8800
  const r = Hl({
8801
8801
  platformName: o,
8802
8802
  gamesOfType: t,
@@ -8804,17 +8804,17 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8804
8804
  });
8805
8805
  return fe(r) ? a : { ...a, [o]: r };
8806
8806
  }, {});
8807
- return fe(i) || (g[C] = i), g;
8808
- }, {}), ym = (e = {}) => !Gi(e) || fe(e) ? {} : Object.values(e).reduce((n, l) => (Object.entries(l).forEach(([p, g]) => {
8809
- n[p] ? n[p] = [...n[p], ...g] : n[p] = g;
8807
+ return fe(i) || (p[C] = i), p;
8808
+ }, {}), ym = (e = {}) => !Gi(e) || fe(e) ? {} : Object.values(e).reduce((n, l) => (Object.entries(l).forEach(([g, p]) => {
8809
+ n[g] ? n[g] = [...n[g], ...p] : n[g] = p;
8810
8810
  }), n), {}), Um = (e = {}) => {
8811
8811
  if (!Gi(e) || fe(e)) return {};
8812
8812
  const u = {};
8813
8813
  for (const [n, l] of Object.entries(e)) {
8814
8814
  u[n] = {};
8815
- for (const p of l) {
8816
- const g = p.game_subtype;
8817
- u[n][g] || (u[n][g] = []), u[n][g].push(p);
8815
+ for (const g of l) {
8816
+ const p = g.game_subtype;
8817
+ u[n][p] || (u[n][p] = []), u[n][p].push(g);
8818
8818
  }
8819
8819
  }
8820
8820
  return u;
@@ -8823,8 +8823,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8823
8823
  allGamePlatform: u = [],
8824
8824
  allGameType: n = [],
8825
8825
  allGame_subtype: l = [],
8826
- allNewGameList: p = [],
8827
- allTopGameList: g = [],
8826
+ allNewGameList: g = [],
8827
+ allTopGameList: p = [],
8828
8828
  randomlySelectedGames: C = [],
8829
8829
  userFavoriteGame: f = {},
8830
8830
  exclusiveBrandGames: t = [],
@@ -8868,8 +8868,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8868
8868
  },
8869
8869
  gameList: {
8870
8870
  all: o,
8871
- new: p,
8872
- top: g,
8871
+ new: g,
8872
+ top: p,
8873
8873
  favorite: d,
8874
8874
  highlight: i,
8875
8875
  exclusiveBrand: t,
@@ -8912,7 +8912,7 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8912
8912
  },
8913
8913
  user: { favorite: [] }
8914
8914
  }, vm = ({ enabled: e = !0 } = {}) => {
8915
- const { getToken: u } = te(), { userFavoriteGameApi: n, userGameListApi: l } = ue(), { data: p, isLoading: g, error: C, refetch: f } = ee({
8915
+ const { getToken: u } = te(), { userFavoriteGameApi: n, userGameListApi: l } = ue(), { data: g, isLoading: p, error: C, refetch: f } = ee({
8916
8916
  queryKey: ["gamesInfo"],
8917
8917
  queryFn: async () => {
8918
8918
  let t = {}, i = {};
@@ -8944,8 +8944,8 @@ const co = /* @__PURE__ */ tt(go), fo = ({
8944
8944
  refetchOnWindowFocus: !1
8945
8945
  });
8946
8946
  return {
8947
- gamesInfo: p || bm,
8948
- isLoading: g,
8947
+ gamesInfo: g || bm,
8948
+ isLoading: p,
8949
8949
  error: C,
8950
8950
  refetch: f
8951
8951
  };
@@ -35492,11 +35492,11 @@ function Cs({
35492
35492
  autoFetchGamesInfo: u = !1,
35493
35493
  useMockData: n = !1,
35494
35494
  queryClient: l,
35495
- ...p
35495
+ ...g
35496
35496
  }) {
35497
- const g = Ea(() => vt(p), [p]), C = Ea(
35498
- () => vt({ ...p, formData: !0 }),
35499
- [p]
35497
+ const p = Ea(() => vt(g), [g]), C = Ea(
35498
+ () => vt({ ...g, formData: !0 }),
35499
+ [g]
35500
35500
  ), f = Ea(
35501
35501
  () => new Sl({
35502
35502
  defaultOptions: {
@@ -35508,7 +35508,7 @@ function Cs({
35508
35508
  }),
35509
35509
  []
35510
35510
  ), t = l || f;
35511
- return /* @__PURE__ */ Me.jsx(Dl, { client: t, children: /* @__PURE__ */ Me.jsx(Rn.Provider, { value: { client: g, formDataClient: C, ...p }, children: /* @__PURE__ */ Me.jsx(Al, { children: /* @__PURE__ */ Me.jsx(
35511
+ return /* @__PURE__ */ Me.jsx(Dl, { client: t, children: /* @__PURE__ */ Me.jsx(Rn.Provider, { value: { client: p, formDataClient: C, ...g }, children: /* @__PURE__ */ Me.jsx(Al, { children: /* @__PURE__ */ Me.jsx(
35512
35512
  Tm,
35513
35513
  {
35514
35514
  autoFetch: u,
@@ -35537,47 +35537,47 @@ var km = {
35537
35537
  }
35538
35538
  };
35539
35539
  function Yi(e, u) {
35540
- function n(p, g, C) {
35540
+ function n(g, p, C) {
35541
35541
  if (!(typeof document > "u")) {
35542
- C = Va({}, u, C), typeof C.expires == "number" && (C.expires = new Date(Date.now() + C.expires * 864e5)), C.expires && (C.expires = C.expires.toUTCString()), p = encodeURIComponent(p).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
35542
+ C = Va({}, u, C), typeof C.expires == "number" && (C.expires = new Date(Date.now() + C.expires * 864e5)), C.expires && (C.expires = C.expires.toUTCString()), g = encodeURIComponent(g).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
35543
35543
  var f = "";
35544
35544
  for (var t in C)
35545
35545
  C[t] && (f += "; " + t, C[t] !== !0 && (f += "=" + C[t].split(";")[0]));
35546
- return document.cookie = p + "=" + e.write(g, p) + f;
35546
+ return document.cookie = g + "=" + e.write(p, g) + f;
35547
35547
  }
35548
35548
  }
35549
- function l(p) {
35550
- if (!(typeof document > "u" || arguments.length && !p)) {
35551
- for (var g = document.cookie ? document.cookie.split("; ") : [], C = {}, f = 0; f < g.length; f++) {
35552
- var t = g[f].split("="), i = t.slice(1).join("=");
35549
+ function l(g) {
35550
+ if (!(typeof document > "u" || arguments.length && !g)) {
35551
+ for (var p = document.cookie ? document.cookie.split("; ") : [], C = {}, f = 0; f < p.length; f++) {
35552
+ var t = p[f].split("="), i = t.slice(1).join("=");
35553
35553
  try {
35554
35554
  var a = decodeURIComponent(t[0]);
35555
- if (C[a] = e.read(i, a), p === a)
35555
+ if (C[a] = e.read(i, a), g === a)
35556
35556
  break;
35557
35557
  } catch {
35558
35558
  }
35559
35559
  }
35560
- return p ? C[p] : C;
35560
+ return g ? C[g] : C;
35561
35561
  }
35562
35562
  }
35563
35563
  return Object.create(
35564
35564
  {
35565
35565
  set: n,
35566
35566
  get: l,
35567
- remove: function(p, g) {
35567
+ remove: function(g, p) {
35568
35568
  n(
35569
- p,
35569
+ g,
35570
35570
  "",
35571
- Va({}, g, {
35571
+ Va({}, p, {
35572
35572
  expires: -1
35573
35573
  })
35574
35574
  );
35575
35575
  },
35576
- withAttributes: function(p) {
35577
- return Yi(this.converter, Va({}, this.attributes, p));
35576
+ withAttributes: function(g) {
35577
+ return Yi(this.converter, Va({}, this.attributes, g));
35578
35578
  },
35579
- withConverter: function(p) {
35580
- return Yi(Va({}, this.converter, p), this.attributes);
35579
+ withConverter: function(g) {
35580
+ return Yi(Va({}, this.converter, g), this.attributes);
35581
35581
  }
35582
35582
  },
35583
35583
  {
@@ -35589,7 +35589,7 @@ function Yi(e, u) {
35589
35589
  Yi(km, { path: "/" });
35590
35590
  const bs = ({ onFunction: e = () => {
35591
35591
  }, buttonProps: u = {} } = {}) => {
35592
- const { lineConfig: n } = te(), l = Za(!1), p = le(n, "liffId", ""), g = new URLSearchParams(window.location.search), C = g.get("line_login"), f = g.get("trans_code"), t = g.get("line_id"), i = g.get("line_name"), a = g.get("invite_code"), { mutate: o, isPending: r } = Do({
35592
+ const { lineConfig: n } = te(), l = Za(!1), g = le(n, "liffId", ""), p = new URLSearchParams(window.location.search), C = p.get("line_login"), f = p.get("trans_code"), t = p.get("line_id"), i = p.get("line_name"), a = p.get("invite_code"), { mutate: o, isPending: r } = Do({
35593
35593
  options: {
35594
35594
  onSuccess: (s) => {
35595
35595
  e(s);
@@ -35614,9 +35614,9 @@ const bs = ({ onFunction: e = () => {
35614
35614
  e
35615
35615
  ]);
35616
35616
  const m = () => {
35617
- window.location.href = `https://liff.line.me/${p}`;
35617
+ window.location.href = `https://liff.line.me/${g}`;
35618
35618
  };
35619
- return p ? /* @__PURE__ */ Me.jsx(
35619
+ return g ? /* @__PURE__ */ Me.jsx(
35620
35620
  "button",
35621
35621
  {
35622
35622
  className: "line-login-btn",
@@ -35672,7 +35672,7 @@ var oa;
35672
35672
  d < s && (o = c, s = d), this.applyMask(c);
35673
35673
  }
35674
35674
  }
35675
- p(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
35675
+ g(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
35676
35676
  }
35677
35677
  /*-- Static factory functions (high level) --*/
35678
35678
  // Returns a QR Code representing the given Unicode text string at the given error correction level.
@@ -35723,9 +35723,9 @@ var oa;
35723
35723
  for (const b of y.getData())
35724
35724
  d.push(b);
35725
35725
  }
35726
- p(d.length == c);
35726
+ g(d.length == c);
35727
35727
  const U = Q.getNumDataCodewords(s, i) * 8;
35728
- p(d.length <= U), n(0, Math.min(4, U - d.length), d), n(0, (8 - d.length % 8) % 8, d), p(d.length % 8 == 0);
35728
+ g(d.length <= U), n(0, Math.min(4, U - d.length), d), n(0, (8 - d.length % 8) % 8, d), g(d.length % 8 == 0);
35729
35729
  for (let y = 236; d.length < U; y ^= 253)
35730
35730
  n(y, 8, d);
35731
35731
  let _ = [];
@@ -35764,7 +35764,7 @@ var oa;
35764
35764
  for (let r = 0; r < 10; r++)
35765
35765
  a = a << 1 ^ (a >>> 9) * 1335;
35766
35766
  const o = (i << 10 | a) ^ 21522;
35767
- p(o >>> 15 == 0);
35767
+ g(o >>> 15 == 0);
35768
35768
  for (let r = 0; r <= 5; r++)
35769
35769
  this.setFunctionModule(8, r, l(o, r));
35770
35770
  this.setFunctionModule(8, 7, l(o, 6)), this.setFunctionModule(8, 8, l(o, 7)), this.setFunctionModule(7, 8, l(o, 8));
@@ -35785,7 +35785,7 @@ var oa;
35785
35785
  for (let a = 0; a < 12; a++)
35786
35786
  t = t << 1 ^ (t >>> 11) * 7973;
35787
35787
  const i = this.version << 12 | t;
35788
- p(i >>> 18 == 0);
35788
+ g(i >>> 18 == 0);
35789
35789
  for (let a = 0; a < 18; a++) {
35790
35790
  const o = l(i, a), r = this.size - 11 + a % 3, m = Math.floor(a / 3);
35791
35791
  this.setFunctionModule(r, m, o), this.setFunctionModule(m, r, o);
@@ -35833,7 +35833,7 @@ var oa;
35833
35833
  d.forEach((b, h) => {
35834
35834
  (y != c - r || h >= s) && _.push(b[y]);
35835
35835
  });
35836
- return p(_.length == m), _;
35836
+ return g(_.length == m), _;
35837
35837
  }
35838
35838
  // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
35839
35839
  // data area of this QR Code. Function modules need to be marked off before this is called.
@@ -35849,7 +35849,7 @@ var oa;
35849
35849
  !this.isFunction[c][m] && i < t.length * 8 && (this.modules[c][m] = l(t[i >>> 3], 7 - (i & 7)), i++);
35850
35850
  }
35851
35851
  }
35852
- p(i == t.length * 8);
35852
+ g(i == t.length * 8);
35853
35853
  }
35854
35854
  // XORs the codeword modules in this QR Code with the given mask pattern.
35855
35855
  // The function modules must be marked and the codeword bits must be drawn
@@ -35918,7 +35918,7 @@ var oa;
35918
35918
  for (const r of this.modules)
35919
35919
  i = r.reduce((m, s) => m + (s ? 1 : 0), i);
35920
35920
  const a = this.size * this.size, o = Math.ceil(Math.abs(i * 20 - a * 10) / a) - 1;
35921
- return p(0 <= o && o <= 9), t += o * Q.PENALTY_N4, p(0 <= t && t <= 2568888), t;
35921
+ return g(0 <= o && o <= 9), t += o * Q.PENALTY_N4, g(0 <= t && t <= 2568888), t;
35922
35922
  }
35923
35923
  /*-- Private helper functions --*/
35924
35924
  // Returns an ascending list of positions of alignment patterns for this version number.
@@ -35946,7 +35946,7 @@ var oa;
35946
35946
  const a = Math.floor(t / 7) + 2;
35947
35947
  i -= (25 * a - 10) * a - 55, t >= 7 && (i -= 36);
35948
35948
  }
35949
- return p(208 <= i && i <= 29648), i;
35949
+ return g(208 <= i && i <= 29648), i;
35950
35950
  }
35951
35951
  // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
35952
35952
  // QR Code of the given version number and error correction level, with remainder bits discarded.
@@ -35988,13 +35988,13 @@ var oa;
35988
35988
  let a = 0;
35989
35989
  for (let o = 7; o >= 0; o--)
35990
35990
  a = a << 1 ^ (a >>> 7) * 285, a ^= (i >>> o & 1) * t;
35991
- return p(a >>> 8 == 0), a;
35991
+ return g(a >>> 8 == 0), a;
35992
35992
  }
35993
35993
  // Can only be called immediately after a light run is added, and
35994
35994
  // returns either 0, 1, or 2. A helper function for getPenaltyScore().
35995
35995
  finderPenaltyCountPatterns(t) {
35996
35996
  const i = t[1];
35997
- p(i <= this.size * 3);
35997
+ g(i <= this.size * 3);
35998
35998
  const a = i > 0 && t[2] == i && t[3] == i * 3 && t[4] == i && t[5] == i;
35999
35999
  return (a && t[0] >= i * 4 && t[6] >= i ? 1 : 0) + (a && t[6] >= i * 4 && t[0] >= i ? 1 : 0);
36000
36000
  }
@@ -36039,11 +36039,11 @@ var oa;
36039
36039
  function l(f, t) {
36040
36040
  return (f >>> t & 1) != 0;
36041
36041
  }
36042
- function p(f) {
36042
+ function g(f) {
36043
36043
  if (!f)
36044
36044
  throw new Error("Assertion error");
36045
36045
  }
36046
- const g = class se {
36046
+ const p = class se {
36047
36047
  /*-- Constructor (low level) and fields --*/
36048
36048
  // Creates a new QR Code segment with the given attributes and data.
36049
36049
  // The character count (numChars) must agree with the mode and the bit buffer length,
@@ -36145,17 +36145,17 @@ var oa;
36145
36145
  return i;
36146
36146
  }
36147
36147
  };
36148
- g.NUMERIC_REGEX = /^[0-9]*$/, g.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, g.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
36149
- let C = g;
36150
- e.QrSegment = g;
36148
+ p.NUMERIC_REGEX = /^[0-9]*$/, p.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, p.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
36149
+ let C = p;
36150
+ e.QrSegment = p;
36151
36151
  })(oa || (oa = {}));
36152
36152
  ((e) => {
36153
36153
  ((u) => {
36154
36154
  const n = class {
36155
36155
  // The QR Code can tolerate about 30% erroneous codewords
36156
36156
  /*-- Constructor and fields --*/
36157
- constructor(p, g) {
36158
- this.ordinal = p, this.formatBits = g;
36157
+ constructor(g, p) {
36158
+ this.ordinal = g, this.formatBits = p;
36159
36159
  }
36160
36160
  };
36161
36161
  n.LOW = new n(0, 1), n.MEDIUM = new n(1, 0), n.QUARTILE = new n(2, 3), n.HIGH = new n(3, 2), u.Ecc = n;
@@ -36165,14 +36165,14 @@ var oa;
36165
36165
  ((u) => {
36166
36166
  const n = class {
36167
36167
  /*-- Constructor and fields --*/
36168
- constructor(p, g) {
36169
- this.modeBits = p, this.numBitsCharCount = g;
36168
+ constructor(g, p) {
36169
+ this.modeBits = g, this.numBitsCharCount = p;
36170
36170
  }
36171
36171
  /*-- Method --*/
36172
36172
  // (Package-private) Returns the bit width of the character count field for a segment in
36173
36173
  // this mode in a QR Code at the given version number. The result is in the range [0, 16].
36174
- numCharCountBits(p) {
36175
- return this.numBitsCharCount[Math.floor((p + 7) / 17)];
36174
+ numCharCountBits(g) {
36175
+ return this.numBitsCharCount[Math.floor((g + 7) / 17)];
36176
36176
  }
36177
36177
  };
36178
36178
  n.NUMERIC = new n(1, [10, 12, 14]), n.ALPHANUMERIC = new n(2, [9, 11, 13]), n.BYTE = new n(4, [8, 16, 16]), n.KANJI = new n(8, [8, 10, 12]), n.ECI = new n(7, [0, 0, 0]), u.Mode = n;
@@ -36187,34 +36187,34 @@ var Sm = {
36187
36187
  }, gl = 128, dl = "L", cl = "#FFFFFF", fl = "#000000", _l = !1, yl = 1, Dm = 4, Em = 0, Nm = 0.1;
36188
36188
  function Ul(e, u = 0) {
36189
36189
  const n = [];
36190
- return e.forEach(function(l, p) {
36191
- let g = null;
36190
+ return e.forEach(function(l, g) {
36191
+ let p = null;
36192
36192
  l.forEach(function(C, f) {
36193
- if (!C && g !== null) {
36193
+ if (!C && p !== null) {
36194
36194
  n.push(
36195
- `M${g + u} ${p + u}h${f - g}v1H${g + u}z`
36196
- ), g = null;
36195
+ `M${p + u} ${g + u}h${f - p}v1H${p + u}z`
36196
+ ), p = null;
36197
36197
  return;
36198
36198
  }
36199
36199
  if (f === l.length - 1) {
36200
36200
  if (!C)
36201
36201
  return;
36202
- g === null ? n.push(`M${f + u},${p + u} h1v1H${f + u}z`) : n.push(
36203
- `M${g + u},${p + u} h${f + 1 - g}v1H${g + u}z`
36202
+ p === null ? n.push(`M${f + u},${g + u} h1v1H${f + u}z`) : n.push(
36203
+ `M${p + u},${g + u} h${f + 1 - p}v1H${p + u}z`
36204
36204
  );
36205
36205
  return;
36206
36206
  }
36207
- C && g === null && (g = f);
36207
+ C && p === null && (p = f);
36208
36208
  });
36209
36209
  }), n.join("");
36210
36210
  }
36211
36211
  function Cl(e, u) {
36212
- return e.slice().map((n, l) => l < u.y || l >= u.y + u.h ? n : n.map((p, g) => g < u.x || g >= u.x + u.w ? p : !1));
36212
+ return e.slice().map((n, l) => l < u.y || l >= u.y + u.h ? n : n.map((g, p) => p < u.x || p >= u.x + u.w ? g : !1));
36213
36213
  }
36214
36214
  function Lm(e, u, n, l) {
36215
36215
  if (l == null)
36216
36216
  return null;
36217
- const p = e.length + n * 2, g = Math.floor(u * Nm), C = p / u, f = (l.width || g) * C, t = (l.height || g) * C, i = l.x == null ? e.length / 2 - f / 2 : l.x * C, a = l.y == null ? e.length / 2 - t / 2 : l.y * C, o = l.opacity == null ? 1 : l.opacity;
36217
+ const g = e.length + n * 2, p = Math.floor(u * Nm), C = g / u, f = (l.width || p) * C, t = (l.height || p) * C, i = l.x == null ? e.length / 2 - f / 2 : l.x * C, a = l.y == null ? e.length / 2 - t / 2 : l.y * C, o = l.opacity == null ? 1 : l.opacity;
36218
36218
  let r = null;
36219
36219
  if (l.excavate) {
36220
36220
  let s = Math.floor(i), c = Math.floor(a), d = Math.ceil(f + i - s), U = Math.ceil(t + a - c);
@@ -36231,8 +36231,8 @@ function bl({
36231
36231
  level: u,
36232
36232
  minVersion: n,
36233
36233
  includeMargin: l,
36234
- marginSize: p,
36235
- imageSettings: g,
36234
+ marginSize: g,
36235
+ imageSettings: p,
36236
36236
  size: C,
36237
36237
  boostLevel: f
36238
36238
  }) {
@@ -36249,11 +36249,11 @@ function bl({
36249
36249
  }, [e, u, n, f]);
36250
36250
  const { cells: i, margin: a, numCells: o, calculatedImageSettings: r } = re.useMemo(() => {
36251
36251
  let m = t.getModules();
36252
- const s = Gm(l, p), c = m.length + s * 2, d = Lm(
36252
+ const s = Gm(l, g), c = m.length + s * 2, d = Lm(
36253
36253
  m,
36254
36254
  C,
36255
36255
  s,
36256
- g
36256
+ p
36257
36257
  );
36258
36258
  return {
36259
36259
  cells: m,
@@ -36261,7 +36261,7 @@ function bl({
36261
36261
  numCells: c,
36262
36262
  calculatedImageSettings: d
36263
36263
  };
36264
- }, [t, C, g, l, p]);
36264
+ }, [t, C, p, l, g]);
36265
36265
  return {
36266
36266
  qrcode: t,
36267
36267
  margin: a,
@@ -36280,8 +36280,8 @@ var Mm = (function() {
36280
36280
  })(), Rm = re.forwardRef(
36281
36281
  function(u, n) {
36282
36282
  const l = u, {
36283
- value: p,
36284
- size: g = gl,
36283
+ value: g,
36284
+ size: p = gl,
36285
36285
  level: C = dl,
36286
36286
  bgColor: f = cl,
36287
36287
  fgColor: t = fl,
@@ -36307,14 +36307,14 @@ var Mm = (function() {
36307
36307
  },
36308
36308
  [n]
36309
36309
  ), [x, S] = re.useState(!1), { margin: N, cells: D, numCells: v, calculatedImageSettings: T } = bl({
36310
- value: p,
36310
+ value: g,
36311
36311
  level: C,
36312
36312
  minVersion: a,
36313
36313
  boostLevel: o,
36314
36314
  includeMargin: i,
36315
36315
  marginSize: r,
36316
36316
  imageSettings: m,
36317
- size: g
36317
+ size: p
36318
36318
  });
36319
36319
  re.useEffect(() => {
36320
36320
  if (y.current != null) {
@@ -36328,8 +36328,8 @@ var Mm = (function() {
36328
36328
  T.excavation
36329
36329
  ));
36330
36330
  const W = window.devicePixelRatio || 1;
36331
- w.height = w.width = g * W;
36332
- const z = g / v * W;
36331
+ w.height = w.width = p * W;
36332
+ const z = p / v * W;
36333
36333
  R.scale(z, z), R.fillStyle = f, R.fillRect(0, 0, v, v), R.fillStyle = t, Mm ? R.fill(new Path2D(Ul(F, N))) : D.forEach(function(L, M) {
36334
36334
  L.forEach(function(A, P) {
36335
36335
  A && R.fillRect(P + N, M + N, 1, 1);
@@ -36345,7 +36345,7 @@ var Mm = (function() {
36345
36345
  }), re.useEffect(() => {
36346
36346
  S(!1);
36347
36347
  }, [_]);
36348
- const E = Xi({ height: g, width: g }, d);
36348
+ const E = Xi({ height: p, width: p }, d);
36349
36349
  let G = null;
36350
36350
  return _ != null && (G = /* @__PURE__ */ re.createElement(
36351
36351
  "img",
@@ -36363,8 +36363,8 @@ var Mm = (function() {
36363
36363
  "canvas",
36364
36364
  Xi({
36365
36365
  style: E,
36366
- height: g,
36367
- width: g,
36366
+ height: p,
36367
+ width: p,
36368
36368
  ref: h,
36369
36369
  role: "img"
36370
36370
  }, U)
@@ -36375,8 +36375,8 @@ Rm.displayName = "QRCodeCanvas";
36375
36375
  var vl = re.forwardRef(
36376
36376
  function(u, n) {
36377
36377
  const l = u, {
36378
- value: p,
36379
- size: g = gl,
36378
+ value: g,
36379
+ size: p = gl,
36380
36380
  level: C = dl,
36381
36381
  bgColor: f = cl,
36382
36382
  fgColor: t = fl,
@@ -36399,14 +36399,14 @@ var vl = re.forwardRef(
36399
36399
  "marginSize",
36400
36400
  "imageSettings"
36401
36401
  ]), { margin: d, cells: U, numCells: _, calculatedImageSettings: y } = bl({
36402
- value: p,
36402
+ value: g,
36403
36403
  level: C,
36404
36404
  minVersion: a,
36405
36405
  boostLevel: o,
36406
36406
  includeMargin: i,
36407
36407
  marginSize: m,
36408
36408
  imageSettings: s,
36409
- size: g
36409
+ size: p
36410
36410
  });
36411
36411
  let b = U, h = null;
36412
36412
  s != null && y != null && (y.excavation != null && (b = Cl(
@@ -36429,8 +36429,8 @@ var vl = re.forwardRef(
36429
36429
  return /* @__PURE__ */ re.createElement(
36430
36430
  "svg",
36431
36431
  Xi({
36432
- height: g,
36433
- width: g,
36432
+ height: p,
36433
+ width: p,
36434
36434
  viewBox: `0 0 ${_} ${_}`,
36435
36435
  ref: n,
36436
36436
  role: "img"
@@ -36469,16 +36469,16 @@ const Pm = {
36469
36469
  th_TH: "โปรดใช้ LINE สแกน QR Code เพื่อเข้าสู่ระบบ",
36470
36470
  id_ID: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk"
36471
36471
  }, Ts = () => {
36472
- const { lng: e } = te(), u = Pe(e), l = new URLSearchParams(window.location.search).get("mac_address"), { data: p, isFetching: g } = No({
36472
+ const { lng: e, getToken: u } = te(), n = Pe(e), l = u?.(), p = new URLSearchParams(window.location.search).get("mac_address"), { data: C, isFetching: f } = No({
36473
36473
  formData: {
36474
- mac_address: l
36474
+ mac_address: p
36475
36475
  },
36476
36476
  options: {
36477
- enabled: !!l
36477
+ enabled: !!p || l
36478
36478
  }
36479
- }), C = le(p, "liff_url", "");
36480
- return l ? /* @__PURE__ */ Me.jsxs("div", { style: Pm, children: [
36481
- /* @__PURE__ */ Me.jsx("p", { style: { fontWeight: "bold" }, children: Fm[u] }),
36479
+ }), t = le(C, "liff_url", "");
36480
+ return !p || l ? null : /* @__PURE__ */ Me.jsxs("div", { style: Pm, children: [
36481
+ /* @__PURE__ */ Me.jsx("p", { style: { fontWeight: "bold" }, children: Fm[n] }),
36482
36482
  /* @__PURE__ */ Me.jsx(
36483
36483
  "div",
36484
36484
  {
@@ -36493,10 +36493,10 @@ const Pm = {
36493
36493
  boxSizing: "border-box",
36494
36494
  color: "black"
36495
36495
  },
36496
- children: g ? "Loading..." : /* @__PURE__ */ Me.jsx(vl, { value: C })
36496
+ children: f ? "Loading..." : /* @__PURE__ */ Me.jsx(vl, { value: t })
36497
36497
  }
36498
36498
  )
36499
- ] }) : null;
36499
+ ] });
36500
36500
  };
36501
36501
  export {
36502
36502
  Rn as ApiCtx,