@obb871001/api-integration-sdk 1.0.285 → 1.0.287

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import de, { createContext as zi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as ee, useEffect as pe } from "react";
2
- import { useQueries as Bn, useQuery as ne, useQueryClient as Hn, useMutation as se, QueryClient as Al, QueryClientProvider as Ol } from "@tanstack/react-query";
1
+ import de, { createContext as zi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as X, useEffect as pe } from "react";
2
+ import { useQueries as Bn, useQuery as ne, useQueryClient as Hn, useMutation as oe, QueryClient as Al, QueryClientProvider as Ol } from "@tanstack/react-query";
3
3
  import Bl from "axios";
4
4
  import { get as ge, find as Qe, isEmpty as Ee, entries as Wn, map as We, isArray as la, toLower as ht, omit as Hl, replace as Tt, includes as Wl, isObject as Ii, flatMap as Vi, values as zl, keys as kt } from "lodash";
5
5
  import Il from "react-dom";
@@ -75,10 +75,10 @@ function Jl() {
75
75
  me.unshift("Warning: " + z), Function.prototype.apply.call(console[h], console, me);
76
76
  }
77
77
  }
78
- var C = !1, v = !1, x = !1, S = !1, R = !1, B;
78
+ var C = !1, v = !1, x = !1, E = !1, M = !1, B;
79
79
  B = Symbol.for("react.module.reference");
80
80
  function k(h) {
81
- return !!(typeof h == "string" || typeof h == "function" || h === n || h === g || R || h === p || h === a || h === i || S || h === u || C || v || x || typeof h == "object" && h !== null && (h.$$typeof === o || h.$$typeof === s || h.$$typeof === b || h.$$typeof === f || h.$$typeof === l || // This needs to include all possible module reference object
81
+ return !!(typeof h == "string" || typeof h == "function" || h === n || h === g || M || h === p || h === a || h === i || E || h === u || C || v || x || typeof h == "object" && h !== null && (h.$$typeof === o || h.$$typeof === s || h.$$typeof === b || h.$$typeof === f || h.$$typeof === l || // 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.
@@ -91,10 +91,10 @@ function Jl() {
91
91
  var re = z.displayName || z.name || "";
92
92
  return re !== "" ? Z + "(" + re + ")" : Z;
93
93
  }
94
- function F(h) {
94
+ function P(h) {
95
95
  return h.displayName || "Context";
96
96
  }
97
- function N(h) {
97
+ function A(h) {
98
98
  if (h == null)
99
99
  return null;
100
100
  if (typeof h.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
@@ -119,19 +119,19 @@ function Jl() {
119
119
  switch (h.$$typeof) {
120
120
  case f:
121
121
  var z = h;
122
- return F(z) + ".Consumer";
122
+ return P(z) + ".Consumer";
123
123
  case b:
124
124
  var Z = h;
125
- return F(Z._context) + ".Provider";
125
+ return P(Z._context) + ".Provider";
126
126
  case l:
127
127
  return T(h, h.render, "ForwardRef");
128
128
  case s:
129
129
  var $ = h.displayName || null;
130
- return $ !== null ? $ : N(h.type) || "Memo";
130
+ return $ !== null ? $ : A(h.type) || "Memo";
131
131
  case o: {
132
132
  var re = h, me = re._payload, te = re._init;
133
133
  try {
134
- return N(te(me));
134
+ return A(te(me));
135
135
  } catch {
136
136
  return null;
137
137
  }
@@ -139,14 +139,14 @@ function Jl() {
139
139
  }
140
140
  return null;
141
141
  }
142
- var E = Object.assign, D = 0, L, A, O, H, W, M, G;
142
+ var S = Object.assign, D = 0, N, F, O, H, W, G, L;
143
143
  function w() {
144
144
  }
145
145
  w.__reactDisabledLog = !0;
146
- function P() {
146
+ function R() {
147
147
  {
148
148
  if (D === 0) {
149
- L = console.log, A = console.info, O = console.warn, H = console.error, W = console.group, M = console.groupCollapsed, G = console.groupEnd;
149
+ N = console.log, F = console.info, O = console.warn, H = console.error, W = console.group, G = console.groupCollapsed, L = console.groupEnd;
150
150
  var h = {
151
151
  configurable: !0,
152
152
  enumerable: !0,
@@ -175,26 +175,26 @@ function Jl() {
175
175
  writable: !0
176
176
  };
177
177
  Object.defineProperties(console, {
178
- log: E({}, h, {
179
- value: L
178
+ log: S({}, h, {
179
+ value: N
180
180
  }),
181
- info: E({}, h, {
182
- value: A
181
+ info: S({}, h, {
182
+ value: F
183
183
  }),
184
- warn: E({}, h, {
184
+ warn: S({}, h, {
185
185
  value: O
186
186
  }),
187
- error: E({}, h, {
187
+ error: S({}, h, {
188
188
  value: H
189
189
  }),
190
- group: E({}, h, {
190
+ group: S({}, h, {
191
191
  value: W
192
192
  }),
193
- groupCollapsed: E({}, h, {
194
- value: M
195
- }),
196
- groupEnd: E({}, h, {
193
+ groupCollapsed: S({}, h, {
197
194
  value: G
195
+ }),
196
+ groupEnd: S({}, h, {
197
+ value: L
198
198
  })
199
199
  });
200
200
  }
@@ -215,13 +215,13 @@ function Jl() {
215
215
  ` + Q + h;
216
216
  }
217
217
  }
218
- var X = !1, ie;
218
+ var ee = !1, ie;
219
219
  {
220
220
  var _e = typeof WeakMap == "function" ? WeakMap : Map;
221
221
  ie = new _e();
222
222
  }
223
223
  function ye(h, z) {
224
- if (!h || X)
224
+ if (!h || ee)
225
225
  return "";
226
226
  {
227
227
  var Z = ie.get(h);
@@ -229,11 +229,11 @@ function Jl() {
229
229
  return Z;
230
230
  }
231
231
  var $;
232
- X = !0;
232
+ ee = !0;
233
233
  var re = Error.prepareStackTrace;
234
234
  Error.prepareStackTrace = void 0;
235
235
  var me;
236
- me = q.current, q.current = null, P();
236
+ me = q.current, q.current = null, R();
237
237
  try {
238
238
  if (z) {
239
239
  var te = function() {
@@ -286,7 +286,7 @@ function Jl() {
286
286
  }
287
287
  }
288
288
  } finally {
289
- X = !1, q.current = me, K(), Error.prepareStackTrace = re;
289
+ ee = !1, q.current = me, K(), Error.prepareStackTrace = re;
290
290
  }
291
291
  var Pa = h ? h.displayName || h.name : "", Ca = Pa ? J(Pa) : "";
292
292
  return typeof h == "function" && ie.set(h, Ca), Ca;
@@ -488,7 +488,7 @@ function Jl() {
488
488
  function La() {
489
489
  {
490
490
  if (da.current) {
491
- var h = N(da.current.type);
491
+ var h = A(da.current.type);
492
492
  if (h)
493
493
  return `
494
494
 
@@ -523,7 +523,7 @@ Check the top-level render call using <` + Z + ">.");
523
523
  return;
524
524
  ba[Z] = !0;
525
525
  var $ = "";
526
- h && h._owner && h._owner !== da.current && ($ = " It was passed a child from " + N(h._owner.type) + "."), Ze(h), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, $), Ze(null);
526
+ h && h._owner && h._owner !== da.current && ($ = " It was passed a child from " + A(h._owner.type) + "."), Ze(h), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, $), Ze(null);
527
527
  }
528
528
  }
529
529
  function Se(h, z) {
@@ -560,11 +560,11 @@ Check the top-level render call using <` + Z + ">.");
560
560
  else
561
561
  return;
562
562
  if (Z) {
563
- var $ = N(z);
563
+ var $ = A(z);
564
564
  ea(Z, h.props, "prop", $, h);
565
565
  } else if (z.PropTypes !== void 0 && !ca) {
566
566
  ca = !0;
567
- var re = N(z);
567
+ var re = A(z);
568
568
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", re || "Unknown");
569
569
  }
570
570
  typeof z.getDefaultProps == "function" && !z.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -592,7 +592,7 @@ Check the top-level render call using <` + Z + ">.");
592
592
  var Ae = Ga();
593
593
  Ae ? Y += Ae : Y += La();
594
594
  var be;
595
- h === null ? be = "null" : ve(h) ? be = "array" : h !== void 0 && h.$$typeof === r ? (be = "<" + (N(h.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : be = typeof h, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, Y);
595
+ h === null ? be = "null" : ve(h) ? be = "array" : h !== void 0 && h.$$typeof === r ? (be = "<" + (A(h.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : be = typeof h, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, Y);
596
596
  }
597
597
  var he = Ia(h, z, Z, re, me);
598
598
  if (he == null)
@@ -611,7 +611,7 @@ Check the top-level render call using <` + Z + ">.");
611
611
  Se(Je, h);
612
612
  }
613
613
  if (Ue.call(z, "key")) {
614
- var Ca = N(h), Be = Object.keys(z).filter(function(wl) {
614
+ var Ca = A(h), Be = Object.keys(z).filter(function(wl) {
615
615
  return wl !== "key";
616
616
  }), $i = Be.length > 0 ? "{key: someKey, " + Be.join(": ..., ") + ": ...}" : "{key: someKey}";
617
617
  if (!ta[Ca + $i]) {
@@ -642,7 +642,7 @@ function Kl() {
642
642
  return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Xa.exports = Zl() : Xa.exports = Jl()), Xa.exports;
643
643
  }
644
644
  var we = Kl();
645
- const zn = zi(null), oe = () => {
645
+ const zn = zi(null), se = () => {
646
646
  const e = ut(zn);
647
647
  if (!e)
648
648
  throw new Error("useApiContext must be used within ApiProvider");
@@ -745,14 +745,14 @@ function Nt({
745
745
  }
746
746
  ), a;
747
747
  }
748
- const qn = zi(null), ym = () => {
748
+ const qn = zi(null), Um = () => {
749
749
  const e = ut(qn);
750
750
  if (!e)
751
751
  throw new Error(
752
752
  "useGameInfoContext must be used within a GameInfoCtx.Provider"
753
753
  );
754
754
  return e;
755
- }, Um = () => {
755
+ }, bm = () => {
756
756
  const e = (n, p) => !n && !p, r = (n) => n.startsWith("pc.");
757
757
  return {
758
758
  executeLogout: ({
@@ -771,7 +771,7 @@ const qn = zi(null), ym = () => {
771
771
  shouldShowErrorNotice: e,
772
772
  isMachineDomain: r
773
773
  };
774
- }, bm = (e) => {
774
+ }, Cm = (e) => {
775
775
  let r = Number(e);
776
776
  return isNaN(r) ? e : new Intl.NumberFormat("en-US", {
777
777
  style: "decimal",
@@ -815,153 +815,153 @@ function Xl() {
815
815
  (function(t, n) {
816
816
  e.exports = n();
817
817
  })(Yl, (function() {
818
- var t = 1e3, n = 6e4, p = 36e5, g = "millisecond", b = "second", f = "minute", l = "hour", a = "day", i = "week", s = "month", o = "quarter", u = "year", m = "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+)?$/, y = /\[([^\]]+)]|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(E) {
819
- var D = ["th", "st", "nd", "rd"], L = E % 100;
820
- return "[" + E + (D[(L - 20) % 10] || D[L] || D[0]) + "]";
821
- } }, U = function(E, D, L) {
822
- var A = String(E);
823
- return !A || A.length >= D ? E : "" + Array(D + 1 - A.length).join(L) + E;
824
- }, C = { s: U, z: function(E) {
825
- var D = -E.utcOffset(), L = Math.abs(D), A = Math.floor(L / 60), O = L % 60;
826
- return (D <= 0 ? "+" : "-") + U(A, 2, "0") + ":" + U(O, 2, "0");
827
- }, m: function E(D, L) {
828
- if (D.date() < L.date()) return -E(L, D);
829
- var A = 12 * (L.year() - D.year()) + (L.month() - D.month()), O = D.clone().add(A, s), H = L - O < 0, W = D.clone().add(A + (H ? -1 : 1), s);
830
- return +(-(A + (L - O) / (H ? O - W : W - O)) || 0);
831
- }, a: function(E) {
832
- return E < 0 ? Math.ceil(E) || 0 : Math.floor(E);
833
- }, p: function(E) {
834
- return { M: s, y: u, w: i, d: a, D: m, h: l, m: f, s: b, ms: g, Q: o }[E] || String(E || "").toLowerCase().replace(/s$/, "");
835
- }, u: function(E) {
836
- return E === void 0;
818
+ var t = 1e3, n = 6e4, p = 36e5, g = "millisecond", b = "second", f = "minute", l = "hour", a = "day", i = "week", s = "month", o = "quarter", u = "year", m = "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+)?$/, y = /\[([^\]]+)]|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(S) {
819
+ var D = ["th", "st", "nd", "rd"], N = S % 100;
820
+ return "[" + S + (D[(N - 20) % 10] || D[N] || D[0]) + "]";
821
+ } }, U = function(S, D, N) {
822
+ var F = String(S);
823
+ return !F || F.length >= D ? S : "" + Array(D + 1 - F.length).join(N) + S;
824
+ }, C = { s: U, z: function(S) {
825
+ var D = -S.utcOffset(), N = Math.abs(D), F = Math.floor(N / 60), O = N % 60;
826
+ return (D <= 0 ? "+" : "-") + U(F, 2, "0") + ":" + U(O, 2, "0");
827
+ }, m: function S(D, N) {
828
+ if (D.date() < N.date()) return -S(N, D);
829
+ var F = 12 * (N.year() - D.year()) + (N.month() - D.month()), O = D.clone().add(F, s), H = N - O < 0, W = D.clone().add(F + (H ? -1 : 1), s);
830
+ return +(-(F + (N - O) / (H ? O - W : W - O)) || 0);
831
+ }, a: function(S) {
832
+ return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
833
+ }, p: function(S) {
834
+ return { M: s, y: u, w: i, d: a, D: m, h: l, m: f, s: b, ms: g, Q: o }[S] || String(S || "").toLowerCase().replace(/s$/, "");
835
+ }, u: function(S) {
836
+ return S === void 0;
837
837
  } }, v = "en", x = {};
838
838
  x[v] = _;
839
- var S = "$isDayjsObject", R = function(E) {
840
- return E instanceof F || !(!E || !E[S]);
841
- }, B = function E(D, L, A) {
839
+ var E = "$isDayjsObject", M = function(S) {
840
+ return S instanceof P || !(!S || !S[E]);
841
+ }, B = function S(D, N, F) {
842
842
  var O;
843
843
  if (!D) return v;
844
844
  if (typeof D == "string") {
845
845
  var H = D.toLowerCase();
846
- x[H] && (O = H), L && (x[H] = L, O = H);
846
+ x[H] && (O = H), N && (x[H] = N, O = H);
847
847
  var W = D.split("-");
848
- if (!O && W.length > 1) return E(W[0]);
848
+ if (!O && W.length > 1) return S(W[0]);
849
849
  } else {
850
- var M = D.name;
851
- x[M] = D, O = M;
850
+ var G = D.name;
851
+ x[G] = D, O = G;
852
852
  }
853
- return !A && O && (v = O), O || !A && v;
854
- }, k = function(E, D) {
855
- if (R(E)) return E.clone();
856
- var L = typeof D == "object" ? D : {};
857
- return L.date = E, L.args = arguments, new F(L);
853
+ return !F && O && (v = O), O || !F && v;
854
+ }, k = function(S, D) {
855
+ if (M(S)) return S.clone();
856
+ var N = typeof D == "object" ? D : {};
857
+ return N.date = S, N.args = arguments, new P(N);
858
858
  }, T = C;
859
- T.l = B, T.i = R, T.w = function(E, D) {
860
- return k(E, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
859
+ T.l = B, T.i = M, T.w = function(S, D) {
860
+ return k(S, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
861
861
  };
862
- var F = (function() {
863
- function E(L) {
864
- this.$L = B(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[S] = !0;
862
+ var P = (function() {
863
+ function S(N) {
864
+ this.$L = B(N.locale, null, !0), this.parse(N), this.$x = this.$x || N.x || {}, this[E] = !0;
865
865
  }
866
- var D = E.prototype;
867
- return D.parse = function(L) {
868
- this.$d = (function(A) {
869
- var O = A.date, H = A.utc;
866
+ var D = S.prototype;
867
+ return D.parse = function(N) {
868
+ this.$d = (function(F) {
869
+ var O = F.date, H = F.utc;
870
870
  if (O === null) return /* @__PURE__ */ new Date(NaN);
871
871
  if (T.u(O)) return /* @__PURE__ */ new Date();
872
872
  if (O instanceof Date) return new Date(O);
873
873
  if (typeof O == "string" && !/Z$/i.test(O)) {
874
874
  var W = O.match(d);
875
875
  if (W) {
876
- var M = W[2] - 1 || 0, G = (W[7] || "0").substring(0, 3);
877
- return H ? new Date(Date.UTC(W[1], M, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, G)) : new Date(W[1], M, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, G);
876
+ var G = W[2] - 1 || 0, L = (W[7] || "0").substring(0, 3);
877
+ return H ? new Date(Date.UTC(W[1], G, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, L)) : new Date(W[1], G, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, L);
878
878
  }
879
879
  }
880
880
  return new Date(O);
881
- })(L), this.init();
881
+ })(N), this.init();
882
882
  }, D.init = function() {
883
- var L = this.$d;
884
- this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds();
883
+ var N = this.$d;
884
+ this.$y = N.getFullYear(), this.$M = N.getMonth(), this.$D = N.getDate(), this.$W = N.getDay(), this.$H = N.getHours(), this.$m = N.getMinutes(), this.$s = N.getSeconds(), this.$ms = N.getMilliseconds();
885
885
  }, D.$utils = function() {
886
886
  return T;
887
887
  }, D.isValid = function() {
888
888
  return this.$d.toString() !== c;
889
- }, D.isSame = function(L, A) {
890
- var O = k(L);
891
- return this.startOf(A) <= O && O <= this.endOf(A);
892
- }, D.isAfter = function(L, A) {
893
- return k(L) < this.startOf(A);
894
- }, D.isBefore = function(L, A) {
895
- return this.endOf(A) < k(L);
896
- }, D.$g = function(L, A, O) {
897
- return T.u(L) ? this[A] : this.set(O, L);
889
+ }, D.isSame = function(N, F) {
890
+ var O = k(N);
891
+ return this.startOf(F) <= O && O <= this.endOf(F);
892
+ }, D.isAfter = function(N, F) {
893
+ return k(N) < this.startOf(F);
894
+ }, D.isBefore = function(N, F) {
895
+ return this.endOf(F) < k(N);
896
+ }, D.$g = function(N, F, O) {
897
+ return T.u(N) ? this[F] : this.set(O, N);
898
898
  }, D.unix = function() {
899
899
  return Math.floor(this.valueOf() / 1e3);
900
900
  }, D.valueOf = function() {
901
901
  return this.$d.getTime();
902
- }, D.startOf = function(L, A) {
903
- var O = this, H = !!T.u(A) || A, W = T.p(L), M = function(X, ie) {
904
- var _e = T.w(O.$u ? Date.UTC(O.$y, ie, X) : new Date(O.$y, ie, X), O);
902
+ }, D.startOf = function(N, F) {
903
+ var O = this, H = !!T.u(F) || F, W = T.p(N), G = function(ee, ie) {
904
+ var _e = T.w(O.$u ? Date.UTC(O.$y, ie, ee) : new Date(O.$y, ie, ee), O);
905
905
  return H ? _e : _e.endOf(a);
906
- }, G = function(X, ie) {
907
- return T.w(O.toDate()[X].apply(O.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), O);
908
- }, w = this.$W, P = this.$M, K = this.$D, q = "set" + (this.$u ? "UTC" : "");
906
+ }, L = function(ee, ie) {
907
+ return T.w(O.toDate()[ee].apply(O.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), O);
908
+ }, w = this.$W, R = this.$M, K = this.$D, q = "set" + (this.$u ? "UTC" : "");
909
909
  switch (W) {
910
910
  case u:
911
- return H ? M(1, 0) : M(31, 11);
911
+ return H ? G(1, 0) : G(31, 11);
912
912
  case s:
913
- return H ? M(1, P) : M(0, P + 1);
913
+ return H ? G(1, R) : G(0, R + 1);
914
914
  case i:
915
915
  var Q = this.$locale().weekStart || 0, J = (w < Q ? w + 7 : w) - Q;
916
- return M(H ? K - J : K + (6 - J), P);
916
+ return G(H ? K - J : K + (6 - J), R);
917
917
  case a:
918
918
  case m:
919
- return G(q + "Hours", 0);
919
+ return L(q + "Hours", 0);
920
920
  case l:
921
- return G(q + "Minutes", 1);
921
+ return L(q + "Minutes", 1);
922
922
  case f:
923
- return G(q + "Seconds", 2);
923
+ return L(q + "Seconds", 2);
924
924
  case b:
925
- return G(q + "Milliseconds", 3);
925
+ return L(q + "Milliseconds", 3);
926
926
  default:
927
927
  return this.clone();
928
928
  }
929
- }, D.endOf = function(L) {
930
- return this.startOf(L, !1);
931
- }, D.$set = function(L, A) {
932
- var O, H = T.p(L), W = "set" + (this.$u ? "UTC" : ""), M = (O = {}, O[a] = W + "Date", O[m] = W + "Date", O[s] = W + "Month", O[u] = W + "FullYear", O[l] = W + "Hours", O[f] = W + "Minutes", O[b] = W + "Seconds", O[g] = W + "Milliseconds", O)[H], G = H === a ? this.$D + (A - this.$W) : A;
929
+ }, D.endOf = function(N) {
930
+ return this.startOf(N, !1);
931
+ }, D.$set = function(N, F) {
932
+ var O, H = T.p(N), W = "set" + (this.$u ? "UTC" : ""), G = (O = {}, O[a] = W + "Date", O[m] = W + "Date", O[s] = W + "Month", O[u] = W + "FullYear", O[l] = W + "Hours", O[f] = W + "Minutes", O[b] = W + "Seconds", O[g] = W + "Milliseconds", O)[H], L = H === a ? this.$D + (F - this.$W) : F;
933
933
  if (H === s || H === u) {
934
934
  var w = this.clone().set(m, 1);
935
- w.$d[M](G), w.init(), this.$d = w.set(m, Math.min(this.$D, w.daysInMonth())).$d;
936
- } else M && this.$d[M](G);
935
+ w.$d[G](L), w.init(), this.$d = w.set(m, Math.min(this.$D, w.daysInMonth())).$d;
936
+ } else G && this.$d[G](L);
937
937
  return this.init(), this;
938
- }, D.set = function(L, A) {
939
- return this.clone().$set(L, A);
940
- }, D.get = function(L) {
941
- return this[T.p(L)]();
942
- }, D.add = function(L, A) {
938
+ }, D.set = function(N, F) {
939
+ return this.clone().$set(N, F);
940
+ }, D.get = function(N) {
941
+ return this[T.p(N)]();
942
+ }, D.add = function(N, F) {
943
943
  var O, H = this;
944
- L = Number(L);
945
- var W = T.p(A), M = function(P) {
944
+ N = Number(N);
945
+ var W = T.p(F), G = function(R) {
946
946
  var K = k(H);
947
- return T.w(K.date(K.date() + Math.round(P * L)), H);
947
+ return T.w(K.date(K.date() + Math.round(R * N)), H);
948
948
  };
949
- if (W === s) return this.set(s, this.$M + L);
950
- if (W === u) return this.set(u, this.$y + L);
951
- if (W === a) return M(1);
952
- if (W === i) return M(7);
953
- var G = (O = {}, O[f] = n, O[l] = p, O[b] = t, O)[W] || 1, w = this.$d.getTime() + L * G;
949
+ if (W === s) return this.set(s, this.$M + N);
950
+ if (W === u) return this.set(u, this.$y + N);
951
+ if (W === a) return G(1);
952
+ if (W === i) return G(7);
953
+ var L = (O = {}, O[f] = n, O[l] = p, O[b] = t, O)[W] || 1, w = this.$d.getTime() + N * L;
954
954
  return T.w(w, this);
955
- }, D.subtract = function(L, A) {
956
- return this.add(-1 * L, A);
957
- }, D.format = function(L) {
958
- var A = this, O = this.$locale();
955
+ }, D.subtract = function(N, F) {
956
+ return this.add(-1 * N, F);
957
+ }, D.format = function(N) {
958
+ var F = this, O = this.$locale();
959
959
  if (!this.isValid()) return O.invalidDate || c;
960
- var H = L || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), M = this.$H, G = this.$m, w = this.$M, P = O.weekdays, K = O.months, q = O.meridiem, Q = function(ie, _e, ye, le) {
961
- return ie && (ie[_e] || ie(A, H)) || ye[_e].slice(0, le);
960
+ var H = N || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), G = this.$H, L = this.$m, w = this.$M, R = O.weekdays, K = O.months, q = O.meridiem, Q = function(ie, _e, ye, le) {
961
+ return ie && (ie[_e] || ie(F, H)) || ye[_e].slice(0, le);
962
962
  }, J = function(ie) {
963
- return T.s(M % 12 || 12, ie, "0");
964
- }, X = q || function(ie, _e, ye) {
963
+ return T.s(G % 12 || 12, ie, "0");
964
+ }, ee = q || function(ie, _e, ye) {
965
965
  var le = ie < 12 ? "AM" : "PM";
966
966
  return ye ? le.toLowerCase() : le;
967
967
  };
@@ -969,9 +969,9 @@ function Xl() {
969
969
  return _e || (function(ye) {
970
970
  switch (ye) {
971
971
  case "YY":
972
- return String(A.$y).slice(-2);
972
+ return String(F.$y).slice(-2);
973
973
  case "YYYY":
974
- return T.s(A.$y, 4, "0");
974
+ return T.s(F.$y, 4, "0");
975
975
  case "M":
976
976
  return w + 1;
977
977
  case "MM":
@@ -981,39 +981,39 @@ function Xl() {
981
981
  case "MMMM":
982
982
  return Q(K, w);
983
983
  case "D":
984
- return A.$D;
984
+ return F.$D;
985
985
  case "DD":
986
- return T.s(A.$D, 2, "0");
986
+ return T.s(F.$D, 2, "0");
987
987
  case "d":
988
- return String(A.$W);
988
+ return String(F.$W);
989
989
  case "dd":
990
- return Q(O.weekdaysMin, A.$W, P, 2);
990
+ return Q(O.weekdaysMin, F.$W, R, 2);
991
991
  case "ddd":
992
- return Q(O.weekdaysShort, A.$W, P, 3);
992
+ return Q(O.weekdaysShort, F.$W, R, 3);
993
993
  case "dddd":
994
- return P[A.$W];
994
+ return R[F.$W];
995
995
  case "H":
996
- return String(M);
996
+ return String(G);
997
997
  case "HH":
998
- return T.s(M, 2, "0");
998
+ return T.s(G, 2, "0");
999
999
  case "h":
1000
1000
  return J(1);
1001
1001
  case "hh":
1002
1002
  return J(2);
1003
1003
  case "a":
1004
- return X(M, G, !0);
1004
+ return ee(G, L, !0);
1005
1005
  case "A":
1006
- return X(M, G, !1);
1006
+ return ee(G, L, !1);
1007
1007
  case "m":
1008
- return String(G);
1008
+ return String(L);
1009
1009
  case "mm":
1010
- return T.s(G, 2, "0");
1010
+ return T.s(L, 2, "0");
1011
1011
  case "s":
1012
- return String(A.$s);
1012
+ return String(F.$s);
1013
1013
  case "ss":
1014
- return T.s(A.$s, 2, "0");
1014
+ return T.s(F.$s, 2, "0");
1015
1015
  case "SSS":
1016
- return T.s(A.$ms, 3, "0");
1016
+ return T.s(F.$ms, 3, "0");
1017
1017
  case "Z":
1018
1018
  return W;
1019
1019
  }
@@ -1022,11 +1022,11 @@ function Xl() {
1022
1022
  }));
1023
1023
  }, D.utcOffset = function() {
1024
1024
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1025
- }, D.diff = function(L, A, O) {
1026
- var H, W = this, M = T.p(A), G = k(L), w = (G.utcOffset() - this.utcOffset()) * n, P = this - G, K = function() {
1027
- return T.m(W, G);
1025
+ }, D.diff = function(N, F, O) {
1026
+ var H, W = this, G = T.p(F), L = k(N), w = (L.utcOffset() - this.utcOffset()) * n, R = this - L, K = function() {
1027
+ return T.m(W, L);
1028
1028
  };
1029
- switch (M) {
1029
+ switch (G) {
1030
1030
  case u:
1031
1031
  H = K() / 12;
1032
1032
  break;
@@ -1037,31 +1037,31 @@ function Xl() {
1037
1037
  H = K() / 3;
1038
1038
  break;
1039
1039
  case i:
1040
- H = (P - w) / 6048e5;
1040
+ H = (R - w) / 6048e5;
1041
1041
  break;
1042
1042
  case a:
1043
- H = (P - w) / 864e5;
1043
+ H = (R - w) / 864e5;
1044
1044
  break;
1045
1045
  case l:
1046
- H = P / p;
1046
+ H = R / p;
1047
1047
  break;
1048
1048
  case f:
1049
- H = P / n;
1049
+ H = R / n;
1050
1050
  break;
1051
1051
  case b:
1052
- H = P / t;
1052
+ H = R / t;
1053
1053
  break;
1054
1054
  default:
1055
- H = P;
1055
+ H = R;
1056
1056
  }
1057
1057
  return O ? H : T.a(H);
1058
1058
  }, D.daysInMonth = function() {
1059
1059
  return this.endOf(s).$D;
1060
1060
  }, D.$locale = function() {
1061
1061
  return x[this.$L];
1062
- }, D.locale = function(L, A) {
1063
- if (!L) return this.$L;
1064
- var O = this.clone(), H = B(L, A, !0);
1062
+ }, D.locale = function(N, F) {
1063
+ if (!N) return this.$L;
1064
+ var O = this.clone(), H = B(N, F, !0);
1065
1065
  return H && (O.$L = H), O;
1066
1066
  }, D.clone = function() {
1067
1067
  return T.w(this.$d, this);
@@ -1073,16 +1073,16 @@ function Xl() {
1073
1073
  return this.$d.toISOString();
1074
1074
  }, D.toString = function() {
1075
1075
  return this.$d.toUTCString();
1076
- }, E;
1077
- })(), N = F.prototype;
1078
- return k.prototype = N, [["$ms", g], ["$s", b], ["$m", f], ["$H", l], ["$W", a], ["$M", s], ["$y", u], ["$D", m]].forEach((function(E) {
1079
- N[E[1]] = function(D) {
1080
- return this.$g(D, E[0], E[1]);
1076
+ }, S;
1077
+ })(), A = P.prototype;
1078
+ return k.prototype = A, [["$ms", g], ["$s", b], ["$m", f], ["$H", l], ["$W", a], ["$M", s], ["$y", u], ["$D", m]].forEach((function(S) {
1079
+ A[S[1]] = function(D) {
1080
+ return this.$g(D, S[0], S[1]);
1081
1081
  };
1082
- })), k.extend = function(E, D) {
1083
- return E.$i || (E(D, F, k), E.$i = !0), k;
1084
- }, k.locale = B, k.isDayjs = R, k.unix = function(E) {
1085
- return k(1e3 * E);
1082
+ })), k.extend = function(S, D) {
1083
+ return S.$i || (S(D, P, k), S.$i = !0), k;
1084
+ }, k.locale = B, k.isDayjs = M, k.unix = function(S) {
1085
+ return k(1e3 * S);
1086
1086
  }, k.en = x[v], k.Ls = x, k.p = {}, k;
1087
1087
  }));
1088
1088
  })(ti)), ti.exports;
@@ -1263,9 +1263,9 @@ function ae() {
1263
1263
  concat: function(_) {
1264
1264
  var U = this.words, C = _.words, v = this.sigBytes, x = _.sigBytes;
1265
1265
  if (this.clamp(), v % 4)
1266
- for (var S = 0; S < x; S++) {
1267
- var R = C[S >>> 2] >>> 24 - S % 4 * 8 & 255;
1268
- U[v + S >>> 2] |= R << 24 - (v + S) % 4 * 8;
1266
+ for (var E = 0; E < x; E++) {
1267
+ var M = C[E >>> 2] >>> 24 - E % 4 * 8 & 255;
1268
+ U[v + E >>> 2] |= M << 24 - (v + E) % 4 * 8;
1269
1269
  }
1270
1270
  else
1271
1271
  for (var B = 0; B < x; B += 4)
@@ -1330,8 +1330,8 @@ function ae() {
1330
1330
  */
1331
1331
  stringify: function(_) {
1332
1332
  for (var U = _.words, C = _.sigBytes, v = [], x = 0; x < C; x++) {
1333
- var S = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
1334
- v.push((S >>> 4).toString(16)), v.push((S & 15).toString(16));
1333
+ var E = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
1334
+ v.push((E >>> 4).toString(16)), v.push((E & 15).toString(16));
1335
1335
  }
1336
1336
  return v.join("");
1337
1337
  },
@@ -1369,8 +1369,8 @@ function ae() {
1369
1369
  */
1370
1370
  stringify: function(_) {
1371
1371
  for (var U = _.words, C = _.sigBytes, v = [], x = 0; x < C; x++) {
1372
- var S = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
1373
- v.push(String.fromCharCode(S));
1372
+ var E = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
1373
+ v.push(String.fromCharCode(E));
1374
1374
  }
1375
1375
  return v.join("");
1376
1376
  },
@@ -1468,12 +1468,12 @@ function ae() {
1468
1468
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
1469
1469
  */
1470
1470
  _process: function(_) {
1471
- var U, C = this._data, v = C.words, x = C.sigBytes, S = this.blockSize, R = S * 4, B = x / R;
1471
+ var U, C = this._data, v = C.words, x = C.sigBytes, E = this.blockSize, M = E * 4, B = x / M;
1472
1472
  _ ? B = n.ceil(B) : B = n.max((B | 0) - this._minBufferSize, 0);
1473
- var k = B * S, T = n.min(k * 4, x);
1473
+ var k = B * E, T = n.min(k * 4, x);
1474
1474
  if (k) {
1475
- for (var F = 0; F < k; F += S)
1476
- this._doProcessBlock(v, F);
1475
+ for (var P = 0; P < k; P += E)
1476
+ this._doProcessBlock(v, P);
1477
1477
  U = v.splice(0, k), C.sigBytes -= T;
1478
1478
  }
1479
1479
  return new s.init(U, T);
@@ -2128,17 +2128,17 @@ function Da() {
2128
2128
  var _ = d + y, U = c[_];
2129
2129
  c[_] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
2130
2130
  }
2131
- var C = this._hash.words, v = c[d + 0], x = c[d + 1], S = c[d + 2], R = c[d + 3], B = c[d + 4], k = c[d + 5], T = c[d + 6], F = c[d + 7], N = c[d + 8], E = c[d + 9], D = c[d + 10], L = c[d + 11], A = c[d + 12], O = c[d + 13], H = c[d + 14], W = c[d + 15], M = C[0], G = C[1], w = C[2], P = C[3];
2132
- M = s(M, G, w, P, v, 7, a[0]), P = s(P, M, G, w, x, 12, a[1]), w = s(w, P, M, G, S, 17, a[2]), G = s(G, w, P, M, R, 22, a[3]), M = s(M, G, w, P, B, 7, a[4]), P = s(P, M, G, w, k, 12, a[5]), w = s(w, P, M, G, T, 17, a[6]), G = s(G, w, P, M, F, 22, a[7]), M = s(M, G, w, P, N, 7, a[8]), P = s(P, M, G, w, E, 12, a[9]), w = s(w, P, M, G, D, 17, a[10]), G = s(G, w, P, M, L, 22, a[11]), M = s(M, G, w, P, A, 7, a[12]), P = s(P, M, G, w, O, 12, a[13]), w = s(w, P, M, G, H, 17, a[14]), G = s(G, w, P, M, W, 22, a[15]), M = o(M, G, w, P, x, 5, a[16]), P = o(P, M, G, w, T, 9, a[17]), w = o(w, P, M, G, L, 14, a[18]), G = o(G, w, P, M, v, 20, a[19]), M = o(M, G, w, P, k, 5, a[20]), P = o(P, M, G, w, D, 9, a[21]), w = o(w, P, M, G, W, 14, a[22]), G = o(G, w, P, M, B, 20, a[23]), M = o(M, G, w, P, E, 5, a[24]), P = o(P, M, G, w, H, 9, a[25]), w = o(w, P, M, G, R, 14, a[26]), G = o(G, w, P, M, N, 20, a[27]), M = o(M, G, w, P, O, 5, a[28]), P = o(P, M, G, w, S, 9, a[29]), w = o(w, P, M, G, F, 14, a[30]), G = o(G, w, P, M, A, 20, a[31]), M = u(M, G, w, P, k, 4, a[32]), P = u(P, M, G, w, N, 11, a[33]), w = u(w, P, M, G, L, 16, a[34]), G = u(G, w, P, M, H, 23, a[35]), M = u(M, G, w, P, x, 4, a[36]), P = u(P, M, G, w, B, 11, a[37]), w = u(w, P, M, G, F, 16, a[38]), G = u(G, w, P, M, D, 23, a[39]), M = u(M, G, w, P, O, 4, a[40]), P = u(P, M, G, w, v, 11, a[41]), w = u(w, P, M, G, R, 16, a[42]), G = u(G, w, P, M, T, 23, a[43]), M = u(M, G, w, P, E, 4, a[44]), P = u(P, M, G, w, A, 11, a[45]), w = u(w, P, M, G, W, 16, a[46]), G = u(G, w, P, M, S, 23, a[47]), M = m(M, G, w, P, v, 6, a[48]), P = m(P, M, G, w, F, 10, a[49]), w = m(w, P, M, G, H, 15, a[50]), G = m(G, w, P, M, k, 21, a[51]), M = m(M, G, w, P, A, 6, a[52]), P = m(P, M, G, w, R, 10, a[53]), w = m(w, P, M, G, D, 15, a[54]), G = m(G, w, P, M, x, 21, a[55]), M = m(M, G, w, P, N, 6, a[56]), P = m(P, M, G, w, W, 10, a[57]), w = m(w, P, M, G, T, 15, a[58]), G = m(G, w, P, M, O, 21, a[59]), M = m(M, G, w, P, B, 6, a[60]), P = m(P, M, G, w, L, 10, a[61]), w = m(w, P, M, G, S, 15, a[62]), G = m(G, w, P, M, E, 21, a[63]), C[0] = C[0] + M | 0, C[1] = C[1] + G | 0, C[2] = C[2] + w | 0, C[3] = C[3] + P | 0;
2131
+ var C = this._hash.words, v = c[d + 0], x = c[d + 1], E = c[d + 2], M = c[d + 3], B = c[d + 4], k = c[d + 5], T = c[d + 6], P = c[d + 7], A = c[d + 8], S = c[d + 9], D = c[d + 10], N = c[d + 11], F = c[d + 12], O = c[d + 13], H = c[d + 14], W = c[d + 15], G = C[0], L = C[1], w = C[2], R = C[3];
2132
+ G = s(G, L, w, R, v, 7, a[0]), R = s(R, G, L, w, x, 12, a[1]), w = s(w, R, G, L, E, 17, a[2]), L = s(L, w, R, G, M, 22, a[3]), G = s(G, L, w, R, B, 7, a[4]), R = s(R, G, L, w, k, 12, a[5]), w = s(w, R, G, L, T, 17, a[6]), L = s(L, w, R, G, P, 22, a[7]), G = s(G, L, w, R, A, 7, a[8]), R = s(R, G, L, w, S, 12, a[9]), w = s(w, R, G, L, D, 17, a[10]), L = s(L, w, R, G, N, 22, a[11]), G = s(G, L, w, R, F, 7, a[12]), R = s(R, G, L, w, O, 12, a[13]), w = s(w, R, G, L, H, 17, a[14]), L = s(L, w, R, G, W, 22, a[15]), G = o(G, L, w, R, x, 5, a[16]), R = o(R, G, L, w, T, 9, a[17]), w = o(w, R, G, L, N, 14, a[18]), L = o(L, w, R, G, v, 20, a[19]), G = o(G, L, w, R, k, 5, a[20]), R = o(R, G, L, w, D, 9, a[21]), w = o(w, R, G, L, W, 14, a[22]), L = o(L, w, R, G, B, 20, a[23]), G = o(G, L, w, R, S, 5, a[24]), R = o(R, G, L, w, H, 9, a[25]), w = o(w, R, G, L, M, 14, a[26]), L = o(L, w, R, G, A, 20, a[27]), G = o(G, L, w, R, O, 5, a[28]), R = o(R, G, L, w, E, 9, a[29]), w = o(w, R, G, L, P, 14, a[30]), L = o(L, w, R, G, F, 20, a[31]), G = u(G, L, w, R, k, 4, a[32]), R = u(R, G, L, w, A, 11, a[33]), w = u(w, R, G, L, N, 16, a[34]), L = u(L, w, R, G, H, 23, a[35]), G = u(G, L, w, R, x, 4, a[36]), R = u(R, G, L, w, B, 11, a[37]), w = u(w, R, G, L, P, 16, a[38]), L = u(L, w, R, G, D, 23, a[39]), G = u(G, L, w, R, O, 4, a[40]), R = u(R, G, L, w, v, 11, a[41]), w = u(w, R, G, L, M, 16, a[42]), L = u(L, w, R, G, T, 23, a[43]), G = u(G, L, w, R, S, 4, a[44]), R = u(R, G, L, w, F, 11, a[45]), w = u(w, R, G, L, W, 16, a[46]), L = u(L, w, R, G, E, 23, a[47]), G = m(G, L, w, R, v, 6, a[48]), R = m(R, G, L, w, P, 10, a[49]), w = m(w, R, G, L, H, 15, a[50]), L = m(L, w, R, G, k, 21, a[51]), G = m(G, L, w, R, F, 6, a[52]), R = m(R, G, L, w, M, 10, a[53]), w = m(w, R, G, L, D, 15, a[54]), L = m(L, w, R, G, x, 21, a[55]), G = m(G, L, w, R, A, 6, a[56]), R = m(R, G, L, w, W, 10, a[57]), w = m(w, R, G, L, T, 15, a[58]), L = m(L, w, R, G, O, 21, a[59]), G = m(G, L, w, R, B, 6, a[60]), R = m(R, G, L, w, N, 10, a[61]), w = m(w, R, G, L, E, 15, a[62]), L = m(L, w, R, G, S, 21, a[63]), C[0] = C[0] + G | 0, C[1] = C[1] + L | 0, C[2] = C[2] + w | 0, C[3] = C[3] + R | 0;
2133
2133
  },
2134
2134
  _doFinalize: function() {
2135
2135
  var c = this._data, d = c.words, y = this._nDataBytes * 8, _ = c.sigBytes * 8;
2136
2136
  d[_ >>> 5] |= 128 << 24 - _ % 32;
2137
2137
  var U = n.floor(y / 4294967296), C = y;
2138
2138
  d[(_ + 64 >>> 9 << 4) + 15] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, d[(_ + 64 >>> 9 << 4) + 14] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, c.sigBytes = (d.length + 1) * 4, this._process();
2139
- for (var v = this._hash, x = v.words, S = 0; S < 4; S++) {
2140
- var R = x[S];
2141
- x[S] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
2139
+ for (var v = this._hash, x = v.words, E = 0; E < 4; E++) {
2140
+ var M = x[E];
2141
+ x[E] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360;
2142
2142
  }
2143
2143
  return v;
2144
2144
  },
@@ -2238,17 +2238,17 @@ function gt() {
2238
2238
  this._hash = new b.init(a.slice(0));
2239
2239
  },
2240
2240
  _doProcessBlock: function(u, m) {
2241
- for (var c = this._hash.words, d = c[0], y = c[1], _ = c[2], U = c[3], C = c[4], v = c[5], x = c[6], S = c[7], R = 0; R < 64; R++) {
2242
- if (R < 16)
2243
- s[R] = u[m + R] | 0;
2241
+ for (var c = this._hash.words, d = c[0], y = c[1], _ = c[2], U = c[3], C = c[4], v = c[5], x = c[6], E = c[7], M = 0; M < 64; M++) {
2242
+ if (M < 16)
2243
+ s[M] = u[m + M] | 0;
2244
2244
  else {
2245
- var B = s[R - 15], k = (B << 25 | B >>> 7) ^ (B << 14 | B >>> 18) ^ B >>> 3, T = s[R - 2], F = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
2246
- s[R] = k + s[R - 7] + F + s[R - 16];
2245
+ var B = s[M - 15], k = (B << 25 | B >>> 7) ^ (B << 14 | B >>> 18) ^ B >>> 3, T = s[M - 2], P = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
2246
+ s[M] = k + s[M - 7] + P + s[M - 16];
2247
2247
  }
2248
- var N = C & v ^ ~C & x, E = d & y ^ d & _ ^ y & _, D = (d << 30 | d >>> 2) ^ (d << 19 | d >>> 13) ^ (d << 10 | d >>> 22), L = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), A = S + L + N + i[R] + s[R], O = D + E;
2249
- S = x, x = v, v = C, C = U + A | 0, U = _, _ = y, y = d, d = A + O | 0;
2248
+ var A = C & v ^ ~C & x, S = d & y ^ d & _ ^ y & _, D = (d << 30 | d >>> 2) ^ (d << 19 | d >>> 13) ^ (d << 10 | d >>> 22), N = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), F = E + N + A + i[M] + s[M], O = D + S;
2249
+ E = x, x = v, v = C, C = U + F | 0, U = _, _ = y, y = d, d = F + O | 0;
2250
2250
  }
2251
- c[0] = c[0] + d | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] + U | 0, c[4] = c[4] + C | 0, c[5] = c[5] + v | 0, c[6] = c[6] + x | 0, c[7] = c[7] + S | 0;
2251
+ c[0] = c[0] + d | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] + U | 0, c[4] = c[4] + C | 0, c[5] = c[5] + v | 0, c[6] = c[6] + x | 0, c[7] = c[7] + E | 0;
2252
2252
  },
2253
2253
  _doFinalize: function() {
2254
2254
  var u = this._data, m = u.words, c = this._nDataBytes * 8, d = u.sigBytes * 8;
@@ -2405,7 +2405,7 @@ function el() {
2405
2405
  ]);
2406
2406
  },
2407
2407
  _doProcessBlock: function(m, c) {
2408
- for (var d = this._hash.words, y = d[0], _ = d[1], U = d[2], C = d[3], v = d[4], x = d[5], S = d[6], R = d[7], B = y.high, k = y.low, T = _.high, F = _.low, N = U.high, E = U.low, D = C.high, L = C.low, A = v.high, O = v.low, H = x.high, W = x.low, M = S.high, G = S.low, w = R.high, P = R.low, K = B, q = k, Q = T, J = F, X = N, ie = E, _e = D, ye = L, le = A, ce = O, ke = H, Ue = W, ze = M, Ce = G, Ge = w, ea = P, Me = 0; Me < 80; Me++) {
2408
+ for (var d = this._hash.words, y = d[0], _ = d[1], U = d[2], C = d[3], v = d[4], x = d[5], E = d[6], M = d[7], B = y.high, k = y.low, T = _.high, P = _.low, A = U.high, S = U.low, D = C.high, N = C.low, F = v.high, O = v.low, H = x.high, W = x.low, G = E.high, L = E.low, w = M.high, R = M.low, K = B, q = k, Q = T, J = P, ee = A, ie = S, _e = D, ye = N, le = F, ce = O, ke = H, Ue = W, ze = G, Ce = L, Ge = w, ea = R, Me = 0; Me < 80; Me++) {
2409
2409
  var ve, Oe, aa = o[Me];
2410
2410
  if (Me < 16)
2411
2411
  Oe = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
@@ -2413,10 +2413,10 @@ function el() {
2413
2413
  var ia = o[Me - 15], xe = ia.high, Re = ia.low, Ke = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = o[Me - 2], Ie = ga.high, qe = ga.low, Wa = (Ie >>> 19 | qe << 13) ^ (Ie << 3 | qe >>> 29) ^ Ie >>> 6, Ea = (qe >>> 19 | Ie << 13) ^ (qe << 3 | Ie >>> 29) ^ (qe >>> 6 | Ie << 26), Na = o[Me - 7], za = Na.high, Ia = Na.low, da = o[Me - 16], Ua = da.high, Ze = da.low;
2414
2414
  ve = oa + Ia, Oe = Ke + za + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Ea, Oe = Oe + Wa + (ve >>> 0 < Ea >>> 0 ? 1 : 0), ve = ve + Ze, Oe = Oe + Ua + (ve >>> 0 < Ze >>> 0 ? 1 : 0), aa.high = Oe, aa.low = ve;
2415
2415
  }
2416
- var ca = le & ke ^ ~le & ze, fa = ce & Ue ^ ~ce & Ce, La = K & Q ^ K & X ^ Q & X, Ga = q & J ^ q & ie ^ J & ie, ba = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ma = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Ra = (le >>> 14 | ce << 18) ^ (le >>> 18 | ce << 14) ^ (le << 23 | ce >>> 9), Se = (ce >>> 14 | le << 18) ^ (ce >>> 18 | le << 14) ^ (ce << 23 | le >>> 9), V = s[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Ra + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + Oe + (Pe >>> 0 < ve >>> 0 ? 1 : 0), Ya = Ma + Ga, qi = ba + La + (Ya >>> 0 < Ma >>> 0 ? 1 : 0);
2417
- Ge = ze, ea = Ce, ze = ke, Ce = Ue, ke = le, Ue = ce, ce = ye + Pe | 0, le = _e + na + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, _e = X, ye = ie, X = Q, ie = J, Q = K, J = q, q = Pe + Ya | 0, K = na + qi + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2416
+ var ca = le & ke ^ ~le & ze, fa = ce & Ue ^ ~ce & Ce, La = K & Q ^ K & ee ^ Q & ee, Ga = q & J ^ q & ie ^ J & ie, ba = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ma = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Ra = (le >>> 14 | ce << 18) ^ (le >>> 18 | ce << 14) ^ (le << 23 | ce >>> 9), Se = (ce >>> 14 | le << 18) ^ (ce >>> 18 | le << 14) ^ (ce << 23 | le >>> 9), V = s[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Ra + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + Oe + (Pe >>> 0 < ve >>> 0 ? 1 : 0), Ya = Ma + Ga, qi = ba + La + (Ya >>> 0 < Ma >>> 0 ? 1 : 0);
2417
+ Ge = ze, ea = Ce, ze = ke, Ce = Ue, ke = le, Ue = ce, ce = ye + Pe | 0, le = _e + na + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, _e = ee, ye = ie, ee = Q, ie = J, Q = K, J = q, q = Pe + Ya | 0, K = na + qi + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2418
2418
  }
2419
- k = y.low = k + q, y.high = B + K + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + J, _.high = T + Q + (F >>> 0 < J >>> 0 ? 1 : 0), E = U.low = E + ie, U.high = N + X + (E >>> 0 < ie >>> 0 ? 1 : 0), L = C.low = L + ye, C.high = D + _e + (L >>> 0 < ye >>> 0 ? 1 : 0), O = v.low = O + ce, v.high = A + le + (O >>> 0 < ce >>> 0 ? 1 : 0), W = x.low = W + Ue, x.high = H + ke + (W >>> 0 < Ue >>> 0 ? 1 : 0), G = S.low = G + Ce, S.high = M + ze + (G >>> 0 < Ce >>> 0 ? 1 : 0), P = R.low = P + ea, R.high = w + Ge + (P >>> 0 < ea >>> 0 ? 1 : 0);
2419
+ k = y.low = k + q, y.high = B + K + (k >>> 0 < q >>> 0 ? 1 : 0), P = _.low = P + J, _.high = T + Q + (P >>> 0 < J >>> 0 ? 1 : 0), S = U.low = S + ie, U.high = A + ee + (S >>> 0 < ie >>> 0 ? 1 : 0), N = C.low = N + ye, C.high = D + _e + (N >>> 0 < ye >>> 0 ? 1 : 0), O = v.low = O + ce, v.high = F + le + (O >>> 0 < ce >>> 0 ? 1 : 0), W = x.low = W + Ue, x.high = H + ke + (W >>> 0 < Ue >>> 0 ? 1 : 0), L = E.low = L + Ce, E.high = G + ze + (L >>> 0 < Ce >>> 0 ? 1 : 0), R = M.low = R + ea, M.high = w + Ge + (R >>> 0 < ea >>> 0 ? 1 : 0);
2420
2420
  },
2421
2421
  _doFinalize: function() {
2422
2422
  var m = this._data, c = m.words, d = this._nDataBytes * 8, y = m.sigBytes * 8;
@@ -2483,14 +2483,14 @@ function Tr() {
2483
2483
  for (var y = 0; y < 5; y++)
2484
2484
  o[d + 5 * y] = y + (2 * d + 3 * y) % 5 * 5;
2485
2485
  for (var v = 1, x = 0; x < 24; x++) {
2486
- for (var S = 0, R = 0, B = 0; B < 7; B++) {
2486
+ for (var E = 0, M = 0, B = 0; B < 7; B++) {
2487
2487
  if (v & 1) {
2488
2488
  var k = (1 << B) - 1;
2489
- k < 32 ? R ^= 1 << k : S ^= 1 << k - 32;
2489
+ k < 32 ? M ^= 1 << k : E ^= 1 << k - 32;
2490
2490
  }
2491
2491
  v & 128 ? v = v << 1 ^ 113 : v <<= 1;
2492
2492
  }
2493
- u[x] = a.create(S, R);
2493
+ u[x] = a.create(E, M);
2494
2494
  }
2495
2495
  })();
2496
2496
  var m = [];
@@ -2519,38 +2519,38 @@ function Tr() {
2519
2519
  for (var _ = this._state, U = this.blockSize / 2, C = 0; C < U; C++) {
2520
2520
  var v = d[y + 2 * C], x = d[y + 2 * C + 1];
2521
2521
  v = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
2522
- var S = _[C];
2523
- S.high ^= x, S.low ^= v;
2522
+ var E = _[C];
2523
+ E.high ^= x, E.low ^= v;
2524
2524
  }
2525
- for (var R = 0; R < 24; R++) {
2525
+ for (var M = 0; M < 24; M++) {
2526
2526
  for (var B = 0; B < 5; B++) {
2527
- for (var k = 0, T = 0, F = 0; F < 5; F++) {
2528
- var S = _[B + 5 * F];
2529
- k ^= S.high, T ^= S.low;
2527
+ for (var k = 0, T = 0, P = 0; P < 5; P++) {
2528
+ var E = _[B + 5 * P];
2529
+ k ^= E.high, T ^= E.low;
2530
2530
  }
2531
- var N = m[B];
2532
- N.high = k, N.low = T;
2531
+ var A = m[B];
2532
+ A.high = k, A.low = T;
2533
2533
  }
2534
2534
  for (var B = 0; B < 5; B++)
2535
- for (var E = m[(B + 4) % 5], D = m[(B + 1) % 5], L = D.high, A = D.low, k = E.high ^ (L << 1 | A >>> 31), T = E.low ^ (A << 1 | L >>> 31), F = 0; F < 5; F++) {
2536
- var S = _[B + 5 * F];
2537
- S.high ^= k, S.low ^= T;
2535
+ for (var S = m[(B + 4) % 5], D = m[(B + 1) % 5], N = D.high, F = D.low, k = S.high ^ (N << 1 | F >>> 31), T = S.low ^ (F << 1 | N >>> 31), P = 0; P < 5; P++) {
2536
+ var E = _[B + 5 * P];
2537
+ E.high ^= k, E.low ^= T;
2538
2538
  }
2539
2539
  for (var O = 1; O < 25; O++) {
2540
- var k, T, S = _[O], H = S.high, W = S.low, M = s[O];
2541
- M < 32 ? (k = H << M | W >>> 32 - M, T = W << M | H >>> 32 - M) : (k = W << M - 32 | H >>> 64 - M, T = H << M - 32 | W >>> 64 - M);
2542
- var G = m[o[O]];
2543
- G.high = k, G.low = T;
2540
+ var k, T, E = _[O], H = E.high, W = E.low, G = s[O];
2541
+ G < 32 ? (k = H << G | W >>> 32 - G, T = W << G | H >>> 32 - G) : (k = W << G - 32 | H >>> 64 - G, T = H << G - 32 | W >>> 64 - G);
2542
+ var L = m[o[O]];
2543
+ L.high = k, L.low = T;
2544
2544
  }
2545
- var w = m[0], P = _[0];
2546
- w.high = P.high, w.low = P.low;
2545
+ var w = m[0], R = _[0];
2546
+ w.high = R.high, w.low = R.low;
2547
2547
  for (var B = 0; B < 5; B++)
2548
- for (var F = 0; F < 5; F++) {
2549
- var O = B + 5 * F, S = _[O], K = m[O], q = m[(B + 1) % 5 + 5 * F], Q = m[(B + 2) % 5 + 5 * F];
2550
- S.high = K.high ^ ~q.high & Q.high, S.low = K.low ^ ~q.low & Q.low;
2548
+ for (var P = 0; P < 5; P++) {
2549
+ var O = B + 5 * P, E = _[O], K = m[O], q = m[(B + 1) % 5 + 5 * P], Q = m[(B + 2) % 5 + 5 * P];
2550
+ E.high = K.high ^ ~q.high & Q.high, E.low = K.low ^ ~q.low & Q.low;
2551
2551
  }
2552
- var S = _[0], J = u[R];
2553
- S.high ^= J.high, S.low ^= J.low;
2552
+ var E = _[0], J = u[M];
2553
+ E.high ^= J.high, E.low ^= J.low;
2554
2554
  }
2555
2555
  },
2556
2556
  _doFinalize: function() {
@@ -2558,11 +2558,11 @@ function Tr() {
2558
2558
  this._nDataBytes * 8;
2559
2559
  var _ = d.sigBytes * 8, U = this.blockSize * 32;
2560
2560
  y[_ >>> 5] |= 1 << 24 - _ % 32, y[(n.ceil((_ + 1) / U) * U >>> 5) - 1] |= 128, d.sigBytes = y.length * 4, this._process();
2561
- for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, S = [], R = 0; R < x; R++) {
2562
- var B = C[R], k = B.high, T = B.low;
2563
- k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, T = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, S.push(T), S.push(k);
2561
+ for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, E = [], M = 0; M < x; M++) {
2562
+ var B = C[M], k = B.high, T = B.low;
2563
+ k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, T = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, E.push(T), E.push(k);
2564
2564
  }
2565
- return new b.init(S, v);
2565
+ return new b.init(E, v);
2566
2566
  },
2567
2567
  clone: function() {
2568
2568
  for (var d = f.clone.call(this), y = d._state = this._state.slice(0), _ = 0; _ < 25; _++)
@@ -2910,23 +2910,23 @@ function xr() {
2910
2910
  _doReset: function() {
2911
2911
  this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
2912
2912
  },
2913
- _doProcessBlock: function(x, S) {
2914
- for (var R = 0; R < 16; R++) {
2915
- var B = S + R, k = x[B];
2913
+ _doProcessBlock: function(x, E) {
2914
+ for (var M = 0; M < 16; M++) {
2915
+ var B = E + M, k = x[B];
2916
2916
  x[B] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
2917
2917
  }
2918
- var T = this._hash.words, F = u.words, N = m.words, E = a.words, D = i.words, L = s.words, A = o.words, O, H, W, M, G, w, P, K, q, Q;
2919
- w = O = T[0], P = H = T[1], K = W = T[2], q = M = T[3], Q = G = T[4];
2920
- for (var J, R = 0; R < 80; R += 1)
2921
- J = O + x[S + E[R]] | 0, R < 16 ? J += d(H, W, M) + F[0] : R < 32 ? J += y(H, W, M) + F[1] : R < 48 ? J += _(H, W, M) + F[2] : R < 64 ? J += U(H, W, M) + F[3] : J += C(H, W, M) + F[4], J = J | 0, J = v(J, L[R]), J = J + G | 0, O = G, G = M, M = v(W, 10), W = H, H = J, J = w + x[S + D[R]] | 0, R < 16 ? J += C(P, K, q) + N[0] : R < 32 ? J += U(P, K, q) + N[1] : R < 48 ? J += _(P, K, q) + N[2] : R < 64 ? J += y(P, K, q) + N[3] : J += d(P, K, q) + N[4], J = J | 0, J = v(J, A[R]), J = J + Q | 0, w = Q, Q = q, q = v(K, 10), K = P, P = J;
2922
- J = T[1] + W + q | 0, T[1] = T[2] + M + Q | 0, T[2] = T[3] + G + w | 0, T[3] = T[4] + O + P | 0, T[4] = T[0] + H + K | 0, T[0] = J;
2918
+ var T = this._hash.words, P = u.words, A = m.words, S = a.words, D = i.words, N = s.words, F = o.words, O, H, W, G, L, w, R, K, q, Q;
2919
+ w = O = T[0], R = H = T[1], K = W = T[2], q = G = T[3], Q = L = T[4];
2920
+ for (var J, M = 0; M < 80; M += 1)
2921
+ J = O + x[E + S[M]] | 0, M < 16 ? J += d(H, W, G) + P[0] : M < 32 ? J += y(H, W, G) + P[1] : M < 48 ? J += _(H, W, G) + P[2] : M < 64 ? J += U(H, W, G) + P[3] : J += C(H, W, G) + P[4], J = J | 0, J = v(J, N[M]), J = J + L | 0, O = L, L = G, G = v(W, 10), W = H, H = J, J = w + x[E + D[M]] | 0, M < 16 ? J += C(R, K, q) + A[0] : M < 32 ? J += U(R, K, q) + A[1] : M < 48 ? J += _(R, K, q) + A[2] : M < 64 ? J += y(R, K, q) + A[3] : J += d(R, K, q) + A[4], J = J | 0, J = v(J, F[M]), J = J + Q | 0, w = Q, Q = q, q = v(K, 10), K = R, R = J;
2922
+ J = T[1] + W + q | 0, T[1] = T[2] + G + Q | 0, T[2] = T[3] + L + w | 0, T[3] = T[4] + O + R | 0, T[4] = T[0] + H + K | 0, T[0] = J;
2923
2923
  },
2924
2924
  _doFinalize: function() {
2925
- var x = this._data, S = x.words, R = this._nDataBytes * 8, B = x.sigBytes * 8;
2926
- S[B >>> 5] |= 128 << 24 - B % 32, S[(B + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, x.sigBytes = (S.length + 1) * 4, this._process();
2927
- for (var k = this._hash, T = k.words, F = 0; F < 5; F++) {
2928
- var N = T[F];
2929
- T[F] = (N << 8 | N >>> 24) & 16711935 | (N << 24 | N >>> 8) & 4278255360;
2925
+ var x = this._data, E = x.words, M = this._nDataBytes * 8, B = x.sigBytes * 8;
2926
+ E[B >>> 5] |= 128 << 24 - B % 32, E[(B + 64 >>> 9 << 4) + 14] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360, x.sigBytes = (E.length + 1) * 4, this._process();
2927
+ for (var k = this._hash, T = k.words, P = 0; P < 5; P++) {
2928
+ var A = T[P];
2929
+ T[P] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
2930
2930
  }
2931
2931
  return k;
2932
2932
  },
@@ -2935,23 +2935,23 @@ function xr() {
2935
2935
  return x._hash = this._hash.clone(), x;
2936
2936
  }
2937
2937
  });
2938
- function d(x, S, R) {
2939
- return x ^ S ^ R;
2938
+ function d(x, E, M) {
2939
+ return x ^ E ^ M;
2940
2940
  }
2941
- function y(x, S, R) {
2942
- return x & S | ~x & R;
2941
+ function y(x, E, M) {
2942
+ return x & E | ~x & M;
2943
2943
  }
2944
- function _(x, S, R) {
2945
- return (x | ~S) ^ R;
2944
+ function _(x, E, M) {
2945
+ return (x | ~E) ^ M;
2946
2946
  }
2947
- function U(x, S, R) {
2948
- return x & R | S & ~R;
2947
+ function U(x, E, M) {
2948
+ return x & M | E & ~M;
2949
2949
  }
2950
- function C(x, S, R) {
2951
- return x ^ (S | ~R);
2950
+ function C(x, E, M) {
2951
+ return x ^ (E | ~M);
2952
2952
  }
2953
- function v(x, S) {
2954
- return x << S | x >>> 32 - S;
2953
+ function v(x, E) {
2954
+ return x << E | x >>> 32 - E;
2955
2955
  }
2956
2956
  p.RIPEMD160 = f._createHelper(c), p.HmacRIPEMD160 = f._createHmacHelper(c);
2957
2957
  })(), t.RIPEMD160;
@@ -3086,9 +3086,9 @@ function Er() {
3086
3086
  for (var u = this.cfg, m = a.create(u.hasher, s), c = b.create(), d = b.create([1]), y = c.words, _ = d.words, U = u.keySize, C = u.iterations; y.length < U; ) {
3087
3087
  var v = m.update(o).finalize(d);
3088
3088
  m.reset();
3089
- for (var x = v.words, S = x.length, R = v, B = 1; B < C; B++) {
3090
- R = m.finalize(R), m.reset();
3091
- for (var k = R.words, T = 0; T < S; T++)
3089
+ for (var x = v.words, E = x.length, M = v, B = 1; B < C; B++) {
3090
+ M = m.finalize(M), m.reset();
3091
+ for (var k = M.words, T = 0; T < E; T++)
3092
3092
  x[T] ^= k[T];
3093
3093
  }
3094
3094
  c.concat(v), _[0]++;
@@ -3227,8 +3227,8 @@ function Ne() {
3227
3227
  *
3228
3228
  * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
3229
3229
  */
3230
- init: function(k, T, F) {
3231
- this.cfg = this.cfg.extend(F), this._xformMode = k, this._key = T, this.reset();
3230
+ init: function(k, T, P) {
3231
+ this.cfg = this.cfg.extend(P), this._xformMode = k, this._key = T, this.reset();
3232
3232
  },
3233
3233
  /**
3234
3234
  * Resets this cipher to its initial state.
@@ -3297,11 +3297,11 @@ function Ne() {
3297
3297
  }
3298
3298
  return function(T) {
3299
3299
  return {
3300
- encrypt: function(F, N, E) {
3301
- return k(N).encrypt(T, F, N, E);
3300
+ encrypt: function(P, A, S) {
3301
+ return k(A).encrypt(T, P, A, S);
3302
3302
  },
3303
- decrypt: function(F, N, E) {
3304
- return k(N).decrypt(T, F, N, E);
3303
+ decrypt: function(P, A, S) {
3304
+ return k(A).decrypt(T, P, A, S);
3305
3305
  }
3306
3306
  };
3307
3307
  };
@@ -3371,9 +3371,9 @@ function Ne() {
3371
3371
  *
3372
3372
  * mode.processBlock(data.words, offset);
3373
3373
  */
3374
- processBlock: function(F, N) {
3375
- var E = this._cipher, D = E.blockSize;
3376
- T.call(this, F, N, D), E.encryptBlock(F, N), this._prevBlock = F.slice(N, N + D);
3374
+ processBlock: function(P, A) {
3375
+ var S = this._cipher, D = S.blockSize;
3376
+ T.call(this, P, A, D), S.encryptBlock(P, A), this._prevBlock = P.slice(A, A + D);
3377
3377
  }
3378
3378
  }), k.Decryptor = k.extend({
3379
3379
  /**
@@ -3386,16 +3386,16 @@ function Ne() {
3386
3386
  *
3387
3387
  * mode.processBlock(data.words, offset);
3388
3388
  */
3389
- processBlock: function(F, N) {
3390
- var E = this._cipher, D = E.blockSize, L = F.slice(N, N + D);
3391
- E.decryptBlock(F, N), T.call(this, F, N, D), this._prevBlock = L;
3389
+ processBlock: function(P, A) {
3390
+ var S = this._cipher, D = S.blockSize, N = P.slice(A, A + D);
3391
+ S.decryptBlock(P, A), T.call(this, P, A, D), this._prevBlock = N;
3392
3392
  }
3393
3393
  });
3394
- function T(F, N, E) {
3395
- var D, L = this._iv;
3396
- L ? (D = L, this._iv = n) : D = this._prevBlock;
3397
- for (var A = 0; A < E; A++)
3398
- F[N + A] ^= D[A];
3394
+ function T(P, A, S) {
3395
+ var D, N = this._iv;
3396
+ N ? (D = N, this._iv = n) : D = this._prevBlock;
3397
+ for (var F = 0; F < S; F++)
3398
+ P[A + F] ^= D[F];
3399
3399
  }
3400
3400
  return k;
3401
3401
  })(), y = p.pad = {}, _ = y.Pkcs7 = {
@@ -3412,10 +3412,10 @@ function Ne() {
3412
3412
  * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
3413
3413
  */
3414
3414
  pad: function(k, T) {
3415
- for (var F = T * 4, N = F - k.sigBytes % F, E = N << 24 | N << 16 | N << 8 | N, D = [], L = 0; L < N; L += 4)
3416
- D.push(E);
3417
- var A = f.create(D, N);
3418
- k.concat(A);
3415
+ for (var P = T * 4, A = P - k.sigBytes % P, S = A << 24 | A << 16 | A << 8 | A, D = [], N = 0; N < A; N += 4)
3416
+ D.push(S);
3417
+ var F = f.create(D, A);
3418
+ k.concat(F);
3419
3419
  },
3420
3420
  /**
3421
3421
  * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
@@ -3447,8 +3447,8 @@ function Ne() {
3447
3447
  reset: function() {
3448
3448
  var k;
3449
3449
  u.reset.call(this);
3450
- var T = this.cfg, F = T.iv, N = T.mode;
3451
- this._xformMode == this._ENC_XFORM_MODE ? k = N.createEncryptor : (k = N.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, F && F.words) : (this._mode = k.call(N, this, F && F.words), this._mode.__creator = k);
3450
+ var T = this.cfg, P = T.iv, A = T.mode;
3451
+ this._xformMode == this._ENC_XFORM_MODE ? k = A.createEncryptor : (k = A.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, P && P.words) : (this._mode = k.call(A, this, P && P.words), this._mode.__creator = k);
3452
3452
  },
3453
3453
  _doProcessBlock: function(k, T) {
3454
3454
  this._mode.processBlock(k, T);
@@ -3515,8 +3515,8 @@ function Ne() {
3515
3515
  * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
3516
3516
  */
3517
3517
  stringify: function(k) {
3518
- var T, F = k.ciphertext, N = k.salt;
3519
- return N ? T = f.create([1398893684, 1701076831]).concat(N).concat(F) : T = F, T.toString(i);
3518
+ var T, P = k.ciphertext, A = k.salt;
3519
+ return A ? T = f.create([1398893684, 1701076831]).concat(A).concat(P) : T = P, T.toString(i);
3520
3520
  },
3521
3521
  /**
3522
3522
  * Converts an OpenSSL-compatible string to a cipher params object.
@@ -3532,8 +3532,8 @@ function Ne() {
3532
3532
  * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
3533
3533
  */
3534
3534
  parse: function(k) {
3535
- var T, F = i.parse(k), N = F.words;
3536
- return N[0] == 1398893684 && N[1] == 1701076831 && (T = f.create(N.slice(2, 4)), N.splice(0, 4), F.sigBytes -= 16), U.create({ ciphertext: F, salt: T });
3535
+ var T, P = i.parse(k), A = P.words;
3536
+ return A[0] == 1398893684 && A[1] == 1701076831 && (T = f.create(A.slice(2, 4)), A.splice(0, 4), P.sigBytes -= 16), U.create({ ciphertext: P, salt: T });
3537
3537
  }
3538
3538
  }, x = g.SerializableCipher = b.extend({
3539
3539
  /**
@@ -3562,18 +3562,18 @@ function Ne() {
3562
3562
  * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
3563
3563
  * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
3564
3564
  */
3565
- encrypt: function(k, T, F, N) {
3566
- N = this.cfg.extend(N);
3567
- var E = k.createEncryptor(F, N), D = E.finalize(T), L = E.cfg;
3565
+ encrypt: function(k, T, P, A) {
3566
+ A = this.cfg.extend(A);
3567
+ var S = k.createEncryptor(P, A), D = S.finalize(T), N = S.cfg;
3568
3568
  return U.create({
3569
3569
  ciphertext: D,
3570
- key: F,
3571
- iv: L.iv,
3570
+ key: P,
3571
+ iv: N.iv,
3572
3572
  algorithm: k,
3573
- mode: L.mode,
3574
- padding: L.padding,
3573
+ mode: N.mode,
3574
+ padding: N.padding,
3575
3575
  blockSize: k.blockSize,
3576
- formatter: N.format
3576
+ formatter: A.format
3577
3577
  });
3578
3578
  },
3579
3579
  /**
@@ -3593,10 +3593,10 @@ function Ne() {
3593
3593
  * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
3594
3594
  * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
3595
3595
  */
3596
- decrypt: function(k, T, F, N) {
3597
- N = this.cfg.extend(N), T = this._parse(T, N.format);
3598
- var E = k.createDecryptor(F, N).finalize(T.ciphertext);
3599
- return E;
3596
+ decrypt: function(k, T, P, A) {
3597
+ A = this.cfg.extend(A), T = this._parse(T, A.format);
3598
+ var S = k.createDecryptor(P, A).finalize(T.ciphertext);
3599
+ return S;
3600
3600
  },
3601
3601
  /**
3602
3602
  * Converts serialized ciphertext to CipherParams,
@@ -3616,7 +3616,7 @@ function Ne() {
3616
3616
  _parse: function(k, T) {
3617
3617
  return typeof k == "string" ? T.parse(k, this) : k;
3618
3618
  }
3619
- }), S = p.kdf = {}, R = S.OpenSSL = {
3619
+ }), E = p.kdf = {}, M = E.OpenSSL = {
3620
3620
  /**
3621
3621
  * Derives a key and IV from a password.
3622
3622
  *
@@ -3634,13 +3634,13 @@ function Ne() {
3634
3634
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
3635
3635
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
3636
3636
  */
3637
- execute: function(k, T, F, N, E) {
3638
- if (N || (N = f.random(64 / 8)), E)
3639
- var D = o.create({ keySize: T + F, hasher: E }).compute(k, N);
3637
+ execute: function(k, T, P, A, S) {
3638
+ if (A || (A = f.random(64 / 8)), S)
3639
+ var D = o.create({ keySize: T + P, hasher: S }).compute(k, A);
3640
3640
  else
3641
- var D = o.create({ keySize: T + F }).compute(k, N);
3642
- var L = f.create(D.words.slice(T), F * 4);
3643
- return D.sigBytes = T * 4, U.create({ key: D, iv: L, salt: N });
3641
+ var D = o.create({ keySize: T + P }).compute(k, A);
3642
+ var N = f.create(D.words.slice(T), P * 4);
3643
+ return D.sigBytes = T * 4, U.create({ key: D, iv: N, salt: A });
3644
3644
  }
3645
3645
  }, B = g.PasswordBasedCipher = x.extend({
3646
3646
  /**
@@ -3649,7 +3649,7 @@ function Ne() {
3649
3649
  * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
3650
3650
  */
3651
3651
  cfg: x.cfg.extend({
3652
- kdf: R
3652
+ kdf: M
3653
3653
  }),
3654
3654
  /**
3655
3655
  * Encrypts a message using a password.
@@ -3668,12 +3668,12 @@ function Ne() {
3668
3668
  * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
3669
3669
  * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
3670
3670
  */
3671
- encrypt: function(k, T, F, N) {
3672
- N = this.cfg.extend(N);
3673
- var E = N.kdf.execute(F, k.keySize, k.ivSize, N.salt, N.hasher);
3674
- N.iv = E.iv;
3675
- var D = x.encrypt.call(this, k, T, E.key, N);
3676
- return D.mixIn(E), D;
3671
+ encrypt: function(k, T, P, A) {
3672
+ A = this.cfg.extend(A);
3673
+ var S = A.kdf.execute(P, k.keySize, k.ivSize, A.salt, A.hasher);
3674
+ A.iv = S.iv;
3675
+ var D = x.encrypt.call(this, k, T, S.key, A);
3676
+ return D.mixIn(S), D;
3677
3677
  },
3678
3678
  /**
3679
3679
  * Decrypts serialized ciphertext using a password.
@@ -3692,11 +3692,11 @@ function Ne() {
3692
3692
  * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
3693
3693
  * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
3694
3694
  */
3695
- decrypt: function(k, T, F, N) {
3696
- N = this.cfg.extend(N), T = this._parse(T, N.format);
3697
- var E = N.kdf.execute(F, k.keySize, k.ivSize, T.salt, N.hasher);
3698
- N.iv = E.iv;
3699
- var D = x.decrypt.call(this, k, T, E.key, N);
3695
+ decrypt: function(k, T, P, A) {
3696
+ A = this.cfg.extend(A), T = this._parse(T, A.format);
3697
+ var S = A.kdf.execute(P, k.keySize, k.ivSize, T.salt, A.hasher);
3698
+ A.iv = S.iv;
3699
+ var D = x.decrypt.call(this, k, T, S.key, A);
3700
3700
  return D;
3701
3701
  }
3702
3702
  });
@@ -3982,27 +3982,27 @@ function eo() {
3982
3982
  for (var U = [], C = 0; C < 256; C++)
3983
3983
  C < 128 ? U[C] = C << 1 : U[C] = C << 1 ^ 283;
3984
3984
  for (var v = 0, x = 0, C = 0; C < 256; C++) {
3985
- var S = x ^ x << 1 ^ x << 2 ^ x << 3 ^ x << 4;
3986
- S = S >>> 8 ^ S & 255 ^ 99, f[v] = S, l[S] = v;
3987
- var R = U[v], B = U[R], k = U[B], T = U[S] * 257 ^ S * 16843008;
3985
+ var E = x ^ x << 1 ^ x << 2 ^ x << 3 ^ x << 4;
3986
+ E = E >>> 8 ^ E & 255 ^ 99, f[v] = E, l[E] = v;
3987
+ var M = U[v], B = U[M], k = U[B], T = U[E] * 257 ^ E * 16843008;
3988
3988
  a[v] = T << 24 | T >>> 8, i[v] = T << 16 | T >>> 16, s[v] = T << 8 | T >>> 24, o[v] = T;
3989
- var T = k * 16843009 ^ B * 65537 ^ R * 257 ^ v * 16843008;
3990
- u[S] = T << 24 | T >>> 8, m[S] = T << 16 | T >>> 16, c[S] = T << 8 | T >>> 24, d[S] = T, v ? (v = R ^ U[U[U[k ^ R]]], x ^= U[U[x]]) : v = x = 1;
3989
+ var T = k * 16843009 ^ B * 65537 ^ M * 257 ^ v * 16843008;
3990
+ u[E] = T << 24 | T >>> 8, m[E] = T << 16 | T >>> 16, c[E] = T << 8 | T >>> 24, d[E] = T, v ? (v = M ^ U[U[U[k ^ M]]], x ^= U[U[x]]) : v = x = 1;
3991
3991
  }
3992
3992
  })();
3993
3993
  var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = b.AES = g.extend({
3994
3994
  _doReset: function() {
3995
3995
  var U;
3996
3996
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
3997
- for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, S = this._nRounds = x + 6, R = (S + 1) * 4, B = this._keySchedule = [], k = 0; k < R; k++)
3997
+ for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, E = this._nRounds = x + 6, M = (E + 1) * 4, B = this._keySchedule = [], k = 0; k < M; k++)
3998
3998
  k < x ? B[k] = v[k] : (U = B[k - 1], k % x ? x > 6 && k % x == 4 && (U = f[U >>> 24] << 24 | f[U >>> 16 & 255] << 16 | f[U >>> 8 & 255] << 8 | f[U & 255]) : (U = U << 8 | U >>> 24, U = f[U >>> 24] << 24 | f[U >>> 16 & 255] << 16 | f[U >>> 8 & 255] << 8 | f[U & 255], U ^= y[k / x | 0] << 24), B[k] = B[k - x] ^ U);
3999
- for (var T = this._invKeySchedule = [], F = 0; F < R; F++) {
4000
- var k = R - F;
4001
- if (F % 4)
3999
+ for (var T = this._invKeySchedule = [], P = 0; P < M; P++) {
4000
+ var k = M - P;
4001
+ if (P % 4)
4002
4002
  var U = B[k];
4003
4003
  else
4004
4004
  var U = B[k - 4];
4005
- F < 4 || k <= 4 ? T[F] = U : T[F] = u[f[U >>> 24]] ^ m[f[U >>> 16 & 255]] ^ c[f[U >>> 8 & 255]] ^ d[f[U & 255]];
4005
+ P < 4 || k <= 4 ? T[P] = U : T[P] = u[f[U >>> 24]] ^ m[f[U >>> 16 & 255]] ^ c[f[U >>> 8 & 255]] ^ d[f[U & 255]];
4006
4006
  }
4007
4007
  }
4008
4008
  },
@@ -4015,13 +4015,13 @@ function eo() {
4015
4015
  var v = U[C + 1];
4016
4016
  U[C + 1] = U[C + 3], U[C + 3] = v;
4017
4017
  },
4018
- _doCryptBlock: function(U, C, v, x, S, R, B, k) {
4019
- for (var T = this._nRounds, F = U[C] ^ v[0], N = U[C + 1] ^ v[1], E = U[C + 2] ^ v[2], D = U[C + 3] ^ v[3], L = 4, A = 1; A < T; A++) {
4020
- var O = x[F >>> 24] ^ S[N >>> 16 & 255] ^ R[E >>> 8 & 255] ^ B[D & 255] ^ v[L++], H = x[N >>> 24] ^ S[E >>> 16 & 255] ^ R[D >>> 8 & 255] ^ B[F & 255] ^ v[L++], W = x[E >>> 24] ^ S[D >>> 16 & 255] ^ R[F >>> 8 & 255] ^ B[N & 255] ^ v[L++], M = x[D >>> 24] ^ S[F >>> 16 & 255] ^ R[N >>> 8 & 255] ^ B[E & 255] ^ v[L++];
4021
- F = O, N = H, E = W, D = M;
4018
+ _doCryptBlock: function(U, C, v, x, E, M, B, k) {
4019
+ for (var T = this._nRounds, P = U[C] ^ v[0], A = U[C + 1] ^ v[1], S = U[C + 2] ^ v[2], D = U[C + 3] ^ v[3], N = 4, F = 1; F < T; F++) {
4020
+ var O = x[P >>> 24] ^ E[A >>> 16 & 255] ^ M[S >>> 8 & 255] ^ B[D & 255] ^ v[N++], H = x[A >>> 24] ^ E[S >>> 16 & 255] ^ M[D >>> 8 & 255] ^ B[P & 255] ^ v[N++], W = x[S >>> 24] ^ E[D >>> 16 & 255] ^ M[P >>> 8 & 255] ^ B[A & 255] ^ v[N++], G = x[D >>> 24] ^ E[P >>> 16 & 255] ^ M[A >>> 8 & 255] ^ B[S & 255] ^ v[N++];
4021
+ P = O, A = H, S = W, D = G;
4022
4022
  }
4023
- var O = (k[F >>> 24] << 24 | k[N >>> 16 & 255] << 16 | k[E >>> 8 & 255] << 8 | k[D & 255]) ^ v[L++], H = (k[N >>> 24] << 24 | k[E >>> 16 & 255] << 16 | k[D >>> 8 & 255] << 8 | k[F & 255]) ^ v[L++], W = (k[E >>> 24] << 24 | k[D >>> 16 & 255] << 16 | k[F >>> 8 & 255] << 8 | k[N & 255]) ^ v[L++], M = (k[D >>> 24] << 24 | k[F >>> 16 & 255] << 16 | k[N >>> 8 & 255] << 8 | k[E & 255]) ^ v[L++];
4024
- U[C] = O, U[C + 1] = H, U[C + 2] = W, U[C + 3] = M;
4023
+ var O = (k[P >>> 24] << 24 | k[A >>> 16 & 255] << 16 | k[S >>> 8 & 255] << 8 | k[D & 255]) ^ v[N++], H = (k[A >>> 24] << 24 | k[S >>> 16 & 255] << 16 | k[D >>> 8 & 255] << 8 | k[P & 255]) ^ v[N++], W = (k[S >>> 24] << 24 | k[D >>> 16 & 255] << 16 | k[P >>> 8 & 255] << 8 | k[A & 255]) ^ v[N++], G = (k[D >>> 24] << 24 | k[P >>> 16 & 255] << 16 | k[A >>> 8 & 255] << 8 | k[S & 255]) ^ v[N++];
4024
+ U[C] = O, U[C + 1] = H, U[C + 2] = W, U[C + 3] = G;
4025
4025
  },
4026
4026
  keySize: 256 / 32
4027
4027
  });
@@ -4687,13 +4687,13 @@ function io() {
4687
4687
  var v = l[C] - 1;
4688
4688
  U[C] = _[v >>> 5] >>> 31 - v % 32 & 1;
4689
4689
  }
4690
- for (var x = this._subKeys = [], S = 0; S < 16; S++) {
4691
- for (var R = x[S] = [], B = i[S], C = 0; C < 24; C++)
4692
- R[C / 6 | 0] |= U[(a[C] - 1 + B) % 28] << 31 - C % 6, R[4 + (C / 6 | 0)] |= U[28 + (a[C + 24] - 1 + B) % 28] << 31 - C % 6;
4693
- R[0] = R[0] << 1 | R[0] >>> 31;
4690
+ for (var x = this._subKeys = [], E = 0; E < 16; E++) {
4691
+ for (var M = x[E] = [], B = i[E], C = 0; C < 24; C++)
4692
+ M[C / 6 | 0] |= U[(a[C] - 1 + B) % 28] << 31 - C % 6, M[4 + (C / 6 | 0)] |= U[28 + (a[C + 24] - 1 + B) % 28] << 31 - C % 6;
4693
+ M[0] = M[0] << 1 | M[0] >>> 31;
4694
4694
  for (var C = 1; C < 7; C++)
4695
- R[C] = R[C] >>> (C - 1) * 4 + 3;
4696
- R[7] = R[7] << 5 | R[7] >>> 27;
4695
+ M[C] = M[C] >>> (C - 1) * 4 + 3;
4696
+ M[7] = M[7] << 5 | M[7] >>> 27;
4697
4697
  }
4698
4698
  for (var k = this._invSubKeys = [], C = 0; C < 16; C++)
4699
4699
  k[C] = x[15 - C];
@@ -4707,9 +4707,9 @@ function io() {
4707
4707
  _doCryptBlock: function(y, _, U) {
4708
4708
  this._lBlock = y[_], this._rBlock = y[_ + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), c.call(this, 2, 858993459), c.call(this, 8, 16711935), m.call(this, 1, 1431655765);
4709
4709
  for (var C = 0; C < 16; C++) {
4710
- for (var v = U[C], x = this._lBlock, S = this._rBlock, R = 0, B = 0; B < 8; B++)
4711
- R |= s[B][((S ^ v[B]) & o[B]) >>> 0];
4712
- this._lBlock = S, this._rBlock = x ^ R;
4710
+ for (var v = U[C], x = this._lBlock, E = this._rBlock, M = 0, B = 0; B < 8; B++)
4711
+ M |= s[B][((E ^ v[B]) & o[B]) >>> 0];
4712
+ this._lBlock = E, this._rBlock = x ^ M;
4713
4713
  }
4714
4714
  var k = this._lBlock;
4715
4715
  this._lBlock = this._rBlock, this._rBlock = k, m.call(this, 1, 1431655765), c.call(this, 8, 16711935), c.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), y[_] = this._lBlock, y[_ + 1] = this._rBlock;
@@ -4840,8 +4840,8 @@ function ro() {
4840
4840
  for (var m = 0; m < 8; m++)
4841
4841
  d[m] ^= c[m + 4 & 7];
4842
4842
  if (u) {
4843
- var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, S = v << 16 | C & 65535;
4844
- d[0] ^= C, d[1] ^= x, d[2] ^= v, d[3] ^= S, d[4] ^= C, d[5] ^= x, d[6] ^= v, d[7] ^= S;
4843
+ var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, E = v << 16 | C & 65535;
4844
+ d[0] ^= C, d[1] ^= x, d[2] ^= v, d[3] ^= E, d[4] ^= C, d[5] ^= x, d[6] ^= v, d[7] ^= E;
4845
4845
  for (var m = 0; m < 4; m++)
4846
4846
  s.call(this);
4847
4847
  }
@@ -4904,8 +4904,8 @@ function so() {
4904
4904
  for (var d = 0; d < 8; d++)
4905
4905
  c[d] ^= m[d + 4 & 7];
4906
4906
  if (u) {
4907
- var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, S = v << 16 | C & 65535;
4908
- c[0] ^= C, c[1] ^= x, c[2] ^= v, c[3] ^= S, c[4] ^= C, c[5] ^= x, c[6] ^= v, c[7] ^= S;
4907
+ var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, E = v << 16 | C & 65535;
4908
+ c[0] ^= C, c[1] ^= x, c[2] ^= v, c[3] ^= E, c[4] ^= C, c[5] ^= x, c[6] ^= v, c[7] ^= E;
4909
4909
  for (var d = 0; d < 4; d++)
4910
4910
  s.call(this);
4911
4911
  }
@@ -6016,20 +6016,20 @@ function uo() {
6016
6016
  return v = U, U = C, C = v, C = C ^ d.pbox[1], U = U ^ d.pbox[0], { left: U, right: C };
6017
6017
  }
6018
6018
  function m(d, y, _) {
6019
- for (let S = 0; S < 4; S++) {
6020
- d.sbox[S] = [];
6021
- for (let R = 0; R < 256; R++)
6022
- d.sbox[S][R] = a[S][R];
6019
+ for (let E = 0; E < 4; E++) {
6020
+ d.sbox[E] = [];
6021
+ for (let M = 0; M < 256; M++)
6022
+ d.sbox[E][M] = a[E][M];
6023
6023
  }
6024
6024
  let U = 0;
6025
- for (let S = 0; S < f + 2; S++)
6026
- d.pbox[S] = l[S] ^ y[U], U++, U >= _ && (U = 0);
6025
+ for (let E = 0; E < f + 2; E++)
6026
+ d.pbox[E] = l[E] ^ y[U], U++, U >= _ && (U = 0);
6027
6027
  let C = 0, v = 0, x = 0;
6028
- for (let S = 0; S < f + 2; S += 2)
6029
- x = o(d, C, v), C = x.left, v = x.right, d.pbox[S] = C, d.pbox[S + 1] = v;
6030
- for (let S = 0; S < 4; S++)
6031
- for (let R = 0; R < 256; R += 2)
6032
- x = o(d, C, v), C = x.left, v = x.right, d.sbox[S][R] = C, d.sbox[S][R + 1] = v;
6028
+ for (let E = 0; E < f + 2; E += 2)
6029
+ x = o(d, C, v), C = x.left, v = x.right, d.pbox[E] = C, d.pbox[E + 1] = v;
6030
+ for (let E = 0; E < 4; E++)
6031
+ for (let M = 0; M < 256; M += 2)
6032
+ x = o(d, C, v), C = x.left, v = x.right, d.sbox[E][M] = C, d.sbox[E][M + 1] = v;
6033
6033
  return !0;
6034
6034
  }
6035
6035
  var c = b.Blowfish = g.extend({
@@ -6078,215 +6078,224 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
6078
6078
  }), g = t.toString(va.enc.Base64), b = va.enc.Base64.stringify(p.ciphertext);
6079
6079
  return g + ":" + b;
6080
6080
  }, ue = () => {
6081
- const { client: e, formDataClient: r } = oe(), t = I(
6082
- async (N) => {
6083
- const { mac_address: E = "", app_version: D = "", anydesk_id: L = "" } = N, { data: A } = await e.post("/cash-register/login", {
6084
- mac_address: E,
6085
- app_version: D,
6086
- anydesk_id: L
6081
+ const { client: e, formDataClient: r } = se(), t = I(
6082
+ async (S) => {
6083
+ const { mac_address: D = "", app_version: N = "", anydesk_id: F = "" } = S, { data: O } = await e.post("/cash-register/login", {
6084
+ mac_address: D,
6085
+ app_version: N,
6086
+ anydesk_id: F
6087
6087
  });
6088
- return A;
6088
+ return O;
6089
6089
  },
6090
6090
  [e]
6091
6091
  ), n = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = I(async () => await e.get("member/getFavoriteGame"), [e]), f = I(
6092
- async (N) => {
6093
- const { account: E, password: D, trans_code: L } = N;
6092
+ async (S) => {
6093
+ const { account: D, password: N, trans_code: F } = S;
6094
6094
  return await e.post("/login", {
6095
- memId: E,
6096
- passwd: D,
6097
- trans_code: L
6095
+ memId: D,
6096
+ passwd: N,
6097
+ trans_code: F
6098
6098
  });
6099
6099
  },
6100
6100
  [e]
6101
6101
  ), l = I(async () => await e.post("/logout"), [e]), a = I(
6102
- async (N) => {
6103
- const { gameUid: E = "", status: D = 0 } = N;
6104
- return await e.put(`/member/toggleFavoriteGame/${E}`, {
6105
- status: D
6102
+ async (S) => {
6103
+ const { gameUid: D = "", status: N = 0 } = S;
6104
+ return await e.put(`/member/toggleFavoriteGame/${D}`, {
6105
+ status: N
6106
6106
  });
6107
6107
  },
6108
6108
  [e]
6109
6109
  ), i = I(async () => await e.get("/profit/ranking"), [e]), s = I(
6110
6110
  async ({
6111
- memberId: N,
6112
- password: E,
6113
- unlimitCode: D,
6114
- email: L,
6115
- inviteCode: A,
6116
- currencyCode: O,
6117
- validCode: H
6111
+ memberId: S,
6112
+ password: D,
6113
+ unlimitCode: N,
6114
+ email: F,
6115
+ inviteCode: O,
6116
+ currencyCode: H,
6117
+ validCode: W
6118
6118
  }) => {
6119
- const W = {
6120
- memId: N,
6121
- passwd: _a(E),
6122
- email: L,
6123
- currency_code: O,
6124
- code: H
6119
+ const G = {
6120
+ memId: S,
6121
+ passwd: _a(D),
6122
+ email: F,
6123
+ currency_code: H,
6124
+ code: W
6125
6125
  };
6126
- return D && (W.unlimit_code = D), A && (W.invite = A), e.post("/signUp", W);
6126
+ return N && (G.unlimit_code = N), O && (G.invite = O), e.post("/signUp", G);
6127
6127
  },
6128
6128
  [e]
6129
6129
  ), o = I(
6130
- async (N) => {
6131
- const { name: E, birthday: D, email: L, mobile: A } = N;
6130
+ async (S) => {
6131
+ const { name: D, birthday: N, email: F, mobile: O } = S;
6132
6132
  return await e.post("/editMembetInfo", {
6133
- name: E,
6133
+ name: D,
6134
6134
  // 暱稱
6135
- birthday: D,
6135
+ birthday: N,
6136
6136
  // 生日 (格式:YYYY-MM-DD)
6137
- email: L,
6137
+ email: F,
6138
6138
  // 電子郵件
6139
- mobile: A
6139
+ mobile: O
6140
6140
  // 手機號碼
6141
6141
  });
6142
6142
  },
6143
6143
  [e]
6144
6144
  ), u = I(
6145
- async (N) => {
6146
- const { oldPwd: E, newPwd: D } = N;
6145
+ async (S) => {
6146
+ const { oldPwd: D, newPwd: N } = S;
6147
6147
  return await e.post("/passwordReset", {
6148
- old_pwd: _a(E),
6149
- new_pwd: _a(D)
6148
+ old_pwd: _a(D),
6149
+ new_pwd: _a(N)
6150
6150
  });
6151
6151
  },
6152
6152
  [e]
6153
6153
  ), m = I(
6154
- async (N) => {
6155
- const { newPwd: E, confirmNewPwd: D } = N;
6154
+ async (S) => {
6155
+ const { newPwd: D, confirmNewPwd: N } = S;
6156
6156
  return await e.post("/setWithdrawPassword", {
6157
- newPassword: _a(E),
6158
- confirmPassword: _a(D)
6157
+ newPassword: _a(D),
6158
+ confirmPassword: _a(N)
6159
6159
  });
6160
6160
  },
6161
6161
  [e]
6162
6162
  ), c = I(
6163
- async (N) => {
6164
- const { oldPwd: E, newPwd: D } = N;
6163
+ async (S) => {
6164
+ const { oldPwd: D, newPwd: N } = S;
6165
6165
  return await e.post("/withdrawPasswordReset", {
6166
- old_pwd: _a(E),
6167
- new_pwd: _a(D)
6166
+ old_pwd: _a(D),
6167
+ new_pwd: _a(N)
6168
6168
  });
6169
6169
  },
6170
6170
  [e]
6171
6171
  ), d = I(
6172
- async ({ paramsData: N }) => {
6173
- const { start_time: E, end_time: D, limit: L = 25 } = N || {};
6172
+ async ({ paramsData: S }) => {
6173
+ const { start_time: D, end_time: N, limit: F = 25 } = S || {};
6174
6174
  return await e.get("/report/totalprofit", {
6175
6175
  params: {
6176
- start_time: `${Fe(E).format("YYYY-MM-DD")} 12:00:00`,
6177
- end_time: `${Fe(D).format("YYYY-MM-DD")} 11:59:59`,
6178
- limit: L
6176
+ start_time: `${Fe(D).format("YYYY-MM-DD")} 12:00:00`,
6177
+ end_time: `${Fe(N).format("YYYY-MM-DD")} 11:59:59`,
6178
+ limit: F
6179
6179
  }
6180
6180
  });
6181
6181
  },
6182
6182
  [e]
6183
6183
  ), y = I(
6184
- async (N) => {
6185
- const { platform: E } = N;
6184
+ async (S) => {
6185
+ const { platform: D } = S;
6186
6186
  return await e.post("/member/all-in-la", {
6187
- platform: E
6187
+ platform: D
6188
6188
  });
6189
6189
  },
6190
6190
  [e]
6191
6191
  ), _ = I(async () => await e.get("/member/checkRestrictedWagering"), [e]), U = I(
6192
- async (N) => {
6193
- const { memId: E, point: D, currency: L, password: A } = N;
6192
+ async (S) => {
6193
+ const { memId: D, point: N, currency: F, password: O } = S;
6194
6194
  return await e.post("/pointsTransaction", {
6195
- to_memId: E,
6196
- point: D,
6197
- currency: L,
6198
- password: _a(A)
6195
+ to_memId: D,
6196
+ point: N,
6197
+ currency: F,
6198
+ password: _a(O)
6199
6199
  });
6200
6200
  },
6201
6201
  [e]
6202
6202
  ), C = I(
6203
- async ({ formData: N }) => {
6203
+ async ({ formData: S }) => {
6204
6204
  const {
6205
- bank_name: E,
6206
- bank_account_name: D,
6207
- bank_branch_name: L,
6208
- bank_account: A,
6209
- bank_card_number: O,
6210
- id_card: H,
6211
- id_pic: W
6212
- } = N;
6213
- return await r.post("/bindBankAccount", N);
6205
+ bank_name: D,
6206
+ bank_account_name: N,
6207
+ bank_branch_name: F,
6208
+ bank_account: O,
6209
+ bank_card_number: H,
6210
+ id_card: W,
6211
+ id_pic: G
6212
+ } = S;
6213
+ return await r.post("/bindBankAccount", S);
6214
6214
  },
6215
6215
  [r]
6216
6216
  ), v = I(
6217
- async (N) => {
6218
- const { point_transfer: E } = N;
6217
+ async (S) => {
6218
+ const { point_transfer: D } = S;
6219
6219
  return await e.post("/cash-register/clear", {
6220
- point_transfer: E
6220
+ point_transfer: D
6221
6221
  });
6222
6222
  },
6223
6223
  [e]
6224
6224
  ), x = I(
6225
- async (N) => {
6226
- const { trans_code: E, line_id: D, invite: L, line_name: A } = N;
6225
+ async (S) => {
6226
+ const { trans_code: D, line_id: N, invite: F, line_name: O } = S;
6227
6227
  return await e.post("/goLine", {
6228
- trans_code: E,
6229
- line_id: D,
6230
- invite: L,
6231
- line_name: A
6228
+ trans_code: D,
6229
+ line_id: N,
6230
+ invite: F,
6231
+ line_name: O
6232
6232
  });
6233
6233
  },
6234
6234
  [e]
6235
- ), S = I(
6236
- async (N) => {
6237
- const { trans_code: E, line_id: D, line_name: L } = N;
6235
+ ), E = I(
6236
+ async (S) => {
6237
+ const { trans_code: D, line_id: N, line_name: F } = S;
6238
6238
  return await e.post("/login/line", {
6239
- trans_code: E,
6240
- line_id: D,
6241
- line_name: L
6239
+ trans_code: D,
6240
+ line_id: N,
6241
+ line_name: F
6242
6242
  });
6243
6243
  },
6244
6244
  [e]
6245
- ), R = I(
6246
- async (N) => {
6247
- const { mac_address: E } = N;
6248
- return await e.get(`/machine-login-code/${E}`);
6245
+ ), M = I(
6246
+ async (S) => {
6247
+ const { mac_address: D } = S;
6248
+ return await e.get(`/machine-login-code/${D}`);
6249
6249
  },
6250
6250
  [e]
6251
6251
  ), B = I(
6252
- async (N) => {
6253
- const { member_info_uid: E, point: D, currency: L, withdraw_password: A } = N;
6254
- return await e.post(`/member/transfer/${E}`, {
6255
- point: D,
6256
- currency: L,
6257
- withdraw_password: A
6252
+ async (S) => {
6253
+ const { member_info_uid: D, point: N, currency: F, withdraw_password: O } = S;
6254
+ return await e.post(`/member/transfer/${D}`, {
6255
+ point: N,
6256
+ currency: F,
6257
+ withdraw_password: O
6258
6258
  });
6259
6259
  },
6260
6260
  [e]
6261
6261
  ), k = I(
6262
- async (N) => {
6263
- const { mobile: E, verifyCode: D } = N;
6262
+ async (S) => {
6263
+ const { mobile: D, verifyCode: N } = S;
6264
6264
  return await e.post("/sms/verifyValidationCode", {
6265
- mobile: E,
6266
- inputCode: D
6265
+ mobile: D,
6266
+ inputCode: N
6267
6267
  });
6268
6268
  },
6269
6269
  [e]
6270
6270
  ), T = I(
6271
- async (N) => {
6272
- const { mobile: E, verifyCode: D, snCode: L } = N;
6271
+ async (S) => {
6272
+ const { mobile: D, verifyCode: N, snCode: F } = S;
6273
6273
  return await e.post("/goMobile", {
6274
- mobile: E,
6275
- verification_code: D,
6276
- sn_code: L
6274
+ mobile: D,
6275
+ verification_code: N,
6276
+ sn_code: F
6277
6277
  });
6278
6278
  },
6279
6279
  [e]
6280
- ), F = I(
6281
- async (N) => {
6282
- const { mobile: E } = N;
6280
+ ), P = I(
6281
+ async (S) => {
6282
+ const { mobile: D } = S;
6283
6283
  return await e.get("/sms/getValidCode", {
6284
6284
  params: {
6285
- mobile: E
6285
+ mobile: D
6286
6286
  }
6287
6287
  });
6288
6288
  },
6289
6289
  [e]
6290
+ ), A = I(
6291
+ async (S) => {
6292
+ const { bindType: D, bindId: N } = S;
6293
+ return await e.post("/member/bindThirdPartyAccount", {
6294
+ bind_type: D,
6295
+ bind_id: N
6296
+ });
6297
+ },
6298
+ [e]
6290
6299
  );
6291
6300
  return {
6292
6301
  machineLoginApi: t,
@@ -6310,15 +6319,16 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
6310
6319
  pointTransferApi: U,
6311
6320
  abandonPointsApi: v,
6312
6321
  lineLoginApi: x,
6313
- lineLogin2Api: S,
6314
- getMachineLoginCodeApi: R,
6322
+ lineLogin2Api: E,
6323
+ getMachineLoginCodeApi: M,
6315
6324
  memberTransferApi: B,
6316
6325
  mobileLoginApi: k,
6317
- sendMobileVerifyCodeApi: F,
6318
- mobileLoginApiV2: T
6326
+ sendMobileVerifyCodeApi: P,
6327
+ mobileLoginApiV2: T,
6328
+ bindAccountApi: A
6319
6329
  };
6320
- }, Cm = ({ otherQueryKey: e = [], options: r = {} } = {}) => {
6321
- const { userCurrencyExchangeApi: t } = ue(), { getToken: n } = oe(), { enabled: p, ...g } = r, f = !!n?.() && (p ? p.every((l) => l) : !0);
6330
+ }, vm = ({ otherQueryKey: e = [], options: r = {} } = {}) => {
6331
+ const { userCurrencyExchangeApi: t } = ue(), { getToken: n } = se(), { enabled: p, ...g } = r, f = !!n?.() && (p ? p.every((l) => l) : !0);
6322
6332
  return Bn({
6323
6333
  queries: [
6324
6334
  {
@@ -6331,12 +6341,12 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
6331
6341
  }
6332
6342
  ]
6333
6343
  });
6334
- }, vm = ({
6344
+ }, hm = ({
6335
6345
  refetchInterval: e = 5e4,
6336
6346
  trigger: r = [],
6337
6347
  enabled: t = !0
6338
6348
  } = {}) => {
6339
- const { getToken: n } = oe(), p = n?.(), { userInfoApi: g } = ue();
6349
+ const { getToken: n } = se(), p = n?.(), { userInfoApi: g } = ue();
6340
6350
  return Bn({
6341
6351
  queries: [
6342
6352
  {
@@ -6347,7 +6357,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
6347
6357
  }
6348
6358
  ]
6349
6359
  });
6350
- }, hm = ({ enabled: e = !0 } = {}) => {
6360
+ }, Tm = ({ enabled: e = !0 } = {}) => {
6351
6361
  const {
6352
6362
  userInfoApi: r,
6353
6363
  userFavoriteGameApi: t,
@@ -6377,7 +6387,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
6377
6387
  l
6378
6388
  ];
6379
6389
  }, ct = () => {
6380
- const { client: e, lng: r } = oe(), t = Ye(r || "tw"), n = I(
6390
+ const { client: e, lng: r } = se(), t = Ye(r || "tw"), n = I(
6381
6391
  async (b) => {
6382
6392
  const {
6383
6393
  gameUid: f = "",
@@ -6460,7 +6470,7 @@ const va = /* @__PURE__ */ pt(al), _a = (e) => {
6460
6470
  queryFn: async () => await t(r),
6461
6471
  ...e
6462
6472
  });
6463
- }, Tm = ({
6473
+ }, km = ({
6464
6474
  options: e = {
6465
6475
  betRecord: {},
6466
6476
  betRecordDetail: {}
@@ -6969,19 +6979,19 @@ function Co() {
6969
6979
  i[s - 2] = arguments[s];
6970
6980
  return r(void 0, n([l, a], i, !0), void 0, function(o, u, m) {
6971
6981
  var c, d, y, _, U, C, v, x;
6972
- return m === void 0 && (m = 0), t(this, function(S) {
6973
- switch (S.label) {
6982
+ return m === void 0 && (m = 0), t(this, function(E) {
6983
+ switch (E.label) {
6974
6984
  case 0:
6975
6985
  if (typeof o != "function") return [3, 10];
6976
- S.label = 1;
6986
+ E.label = 1;
6977
6987
  case 1:
6978
- return S.trys.push([1, 3, , 9]), [4, o()];
6988
+ return E.trys.push([1, 3, , 9]), [4, o()];
6979
6989
  case 2:
6980
- return c = S.sent(), [3, 9];
6990
+ return c = E.sent(), [3, 9];
6981
6991
  case 3:
6982
- return S.sent(), u.current.retryOnError ? (d = (C = u.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < d ? (y = typeof u.current.reconnectInterval == "function" ? u.current.reconnectInterval(m) : u.current.reconnectInterval, [4, b(y ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
6992
+ return E.sent(), u.current.retryOnError ? (d = (C = u.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < d ? (y = typeof u.current.reconnectInterval == "function" ? u.current.reconnectInterval(m) : u.current.reconnectInterval, [4, b(y ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
6983
6993
  case 4:
6984
- return S.sent(), [2, (0, e.getUrl)(o, u, m + 1)];
6994
+ return E.sent(), [2, (0, e.getUrl)(o, u, m + 1)];
6985
6995
  case 5:
6986
6996
  return (x = (v = u.current).onReconnectStop) === null || x === void 0 || x.call(v, m), [2, null];
6987
6997
  case 6:
@@ -6993,7 +7003,7 @@ function Co() {
6993
7003
  case 9:
6994
7004
  return [3, 11];
6995
7005
  case 10:
6996
- c = o, S.label = 11;
7006
+ c = o, E.label = 11;
6997
7007
  case 11:
6998
7008
  return _ = u.current.fromSocketIO ? (0, p.parseSocketIOUrl)(c) : c, U = u.current.queryParams ? (0, p.appendQueryParams)(_, u.current.queryParams) : _, [2, U];
6999
7009
  }
@@ -7044,15 +7054,15 @@ function bt() {
7044
7054
  function U(x) {
7045
7055
  try {
7046
7056
  v(c.next(x));
7047
- } catch (S) {
7048
- _(S);
7057
+ } catch (E) {
7058
+ _(E);
7049
7059
  }
7050
7060
  }
7051
7061
  function C(x) {
7052
7062
  try {
7053
7063
  v(c.throw(x));
7054
- } catch (S) {
7055
- _(S);
7064
+ } catch (E) {
7065
+ _(E);
7056
7066
  }
7057
7067
  }
7058
7068
  function v(x) {
@@ -7133,30 +7143,30 @@ function bt() {
7133
7143
  return b.UNPARSABLE_JSON_OBJECT;
7134
7144
  }
7135
7145
  return null;
7136
- }, [d, u.disableJson]), x = (0, p.useRef)(null), S = (0, p.useRef)(null), R = (0, p.useRef)(function() {
7137
- }), B = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), T = (0, p.useRef)([]), F = (0, p.useRef)(null), N = (0, p.useRef)(u);
7138
- N.current = u;
7139
- var E = x.current && U[x.current] !== void 0 ? U[x.current] : o !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, D = u.queryParams ? JSON.stringify(u.queryParams) : null, L = (0, p.useCallback)(function(H, W) {
7140
- var M;
7141
- if (W === void 0 && (W = !0), b.isEventSourceSupported && S.current instanceof EventSource) {
7146
+ }, [d, u.disableJson]), x = (0, p.useRef)(null), E = (0, p.useRef)(null), M = (0, p.useRef)(function() {
7147
+ }), B = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), T = (0, p.useRef)([]), P = (0, p.useRef)(null), A = (0, p.useRef)(u);
7148
+ A.current = u;
7149
+ var S = x.current && U[x.current] !== void 0 ? U[x.current] : o !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, D = u.queryParams ? JSON.stringify(u.queryParams) : null, N = (0, p.useCallback)(function(H, W) {
7150
+ var G;
7151
+ if (W === void 0 && (W = !0), b.isEventSourceSupported && E.current instanceof EventSource) {
7142
7152
  console.warn("Unable to send a message from an eventSource");
7143
7153
  return;
7144
7154
  }
7145
- ((M = S.current) === null || M === void 0 ? void 0 : M.readyState) === b.ReadyState.OPEN ? ((0, i.assertIsWebSocket)(S.current, N.current.skipAssert), S.current.send(H)) : W && T.current.push(H);
7146
- }, []), A = (0, p.useCallback)(function(H, W) {
7147
- W === void 0 && (W = !0), L(JSON.stringify(H), W);
7148
- }, [L]), O = (0, p.useCallback)(function() {
7149
- return N.current.share !== !0 || b.isEventSourceSupported && S.current instanceof EventSource ? S.current : (F.current === null && S.current && ((0, i.assertIsWebSocket)(S.current, N.current.skipAssert), F.current = (0, a.default)(S.current, R)), F.current);
7155
+ ((G = E.current) === null || G === void 0 ? void 0 : G.readyState) === b.ReadyState.OPEN ? ((0, i.assertIsWebSocket)(E.current, A.current.skipAssert), E.current.send(H)) : W && T.current.push(H);
7156
+ }, []), F = (0, p.useCallback)(function(H, W) {
7157
+ W === void 0 && (W = !0), N(JSON.stringify(H), W);
7158
+ }, [N]), O = (0, p.useCallback)(function() {
7159
+ return A.current.share !== !0 || b.isEventSourceSupported && E.current instanceof EventSource ? E.current : (P.current === null && E.current && ((0, i.assertIsWebSocket)(E.current, A.current.skipAssert), P.current = (0, a.default)(E.current, M)), P.current);
7150
7160
  }, []);
7151
7161
  return (0, p.useEffect)(function() {
7152
7162
  if (o !== null && m === !0) {
7153
- var H, W = !1, M = !0, G = function() {
7163
+ var H, W = !1, G = !0, L = function() {
7154
7164
  return r(void 0, void 0, void 0, function() {
7155
- var w, P, K;
7165
+ var w, R, K;
7156
7166
  return t(this, function(q) {
7157
7167
  switch (q.label) {
7158
7168
  case 0:
7159
- return w = x, [4, (0, l.getUrl)(o, N)];
7169
+ return w = x, [4, (0, l.getUrl)(o, A)];
7160
7170
  case 1:
7161
7171
  return w.current = q.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
7162
7172
  return C(function(Q) {
@@ -7165,18 +7175,18 @@ function bt() {
7165
7175
  }), [
7166
7176
  2
7167
7177
  /*return*/
7168
- ]) : (P = function(Q) {
7178
+ ]) : (R = function(Q) {
7169
7179
  W || (0, g.flushSync)(function() {
7170
7180
  return y(Q);
7171
7181
  });
7172
7182
  }, K = function(Q) {
7173
7183
  W || (0, g.flushSync)(function() {
7174
7184
  return C(function(J) {
7175
- var X;
7176
- return e(e({}, J), x.current && (X = {}, X[x.current] = Q, X));
7185
+ var ee;
7186
+ return e(e({}, J), x.current && (ee = {}, ee[x.current] = Q, ee));
7177
7187
  });
7178
7188
  });
7179
- }, M && (H = (0, f.createOrJoinSocket)(S, x.current, K, N, P, R, B, k, L)), [
7189
+ }, G && (H = (0, f.createOrJoinSocket)(E, x.current, K, A, R, M, B, k, N)), [
7180
7190
  2
7181
7191
  /*return*/
7182
7192
  ]);
@@ -7184,25 +7194,25 @@ function bt() {
7184
7194
  });
7185
7195
  });
7186
7196
  };
7187
- return R.current = function() {
7188
- W || (F.current && (F.current = null), H?.(), G());
7189
- }, G(), function() {
7190
- W = !0, M = !1, F.current && (F.current = null), H?.(), y(null);
7197
+ return M.current = function() {
7198
+ W || (P.current && (P.current = null), H?.(), L());
7199
+ }, L(), function() {
7200
+ W = !0, G = !1, P.current && (P.current = null), H?.(), y(null);
7191
7201
  };
7192
7202
  } else (o === null || m === !1) && (B.current = 0, C(function(w) {
7193
- var P;
7194
- return e(e({}, w), x.current && (P = {}, P[x.current] = b.ReadyState.CLOSED, P));
7203
+ var R;
7204
+ return e(e({}, w), x.current && (R = {}, R[x.current] = b.ReadyState.CLOSED, R));
7195
7205
  }));
7196
- }, [o, m, D, L]), (0, p.useEffect)(function() {
7197
- E === b.ReadyState.OPEN && T.current.splice(0).forEach(function(H) {
7198
- L(H);
7206
+ }, [o, m, D, N]), (0, p.useEffect)(function() {
7207
+ S === b.ReadyState.OPEN && T.current.splice(0).forEach(function(H) {
7208
+ N(H);
7199
7209
  });
7200
- }, [E]), {
7201
- sendMessage: L,
7202
- sendJsonMessage: A,
7210
+ }, [S]), {
7211
+ sendMessage: N,
7212
+ sendJsonMessage: F,
7203
7213
  lastMessage: d,
7204
7214
  lastJsonMessage: v,
7205
- readyState: E,
7215
+ readyState: S,
7206
7216
  getWebSocket: O
7207
7217
  };
7208
7218
  };
@@ -7331,7 +7341,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7331
7341
  isInGameBox: n = !1,
7332
7342
  currentGamePlatform: p = ""
7333
7343
  }) => {
7334
- const { store: g, lng: b } = oe(), { isReady: f, setAsReady: l, isPending: a, setAsPending: i } = Vn(), s = Ye(b), { mutateAsync: o } = Oo();
7344
+ const { store: g, lng: b } = se(), { isReady: f, setAsReady: l, isPending: a, setAsPending: i } = Vn(), s = Ye(b), { mutateAsync: o } = Oo();
7335
7345
  return !e || !r || !t ? { handleTransferInGame: () => {
7336
7346
  } } : { handleTransferInGame: async () => {
7337
7347
  console.log("執行遊戲內轉帳"), n && await o({
@@ -7372,62 +7382,62 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7372
7382
  } };
7373
7383
  }, Eo = ({ options: e } = {}) => {
7374
7384
  const { userLoginApi: r } = ue();
7375
- return se({
7385
+ return oe({
7376
7386
  mutationKey: ["userLogin"],
7377
7387
  mutationFn: async (t) => r(t),
7378
7388
  ...e
7379
7389
  });
7380
7390
  }, No = ({ options: e } = {}) => {
7381
7391
  const { userLogoutApi: r } = ue();
7382
- return se({
7392
+ return oe({
7383
7393
  mutationKey: ["userLogout"],
7384
7394
  mutationFn: async () => r(),
7385
7395
  ...e
7386
7396
  });
7387
7397
  }, Lo = ({ options: e } = {}) => {
7388
7398
  const { userSignUpApi: r } = ue();
7389
- return se({
7399
+ return oe({
7390
7400
  mutationKey: ["userSignUp"],
7391
7401
  mutationFn: async (t) => r(t),
7392
7402
  ...e
7393
7403
  });
7394
7404
  }, Go = ({ options: e } = {}) => {
7395
7405
  const { addOrRemoveFavoriteGameApi: r } = ue();
7396
- return se({
7406
+ return oe({
7397
7407
  mutationKey: ["toggleFavoriteGame"],
7398
7408
  mutationFn: async (t) => r(t),
7399
7409
  ...e
7400
7410
  });
7401
7411
  }, Mo = ({ options: e } = {}) => {
7402
7412
  const { updateUserInfoApi: r } = ue();
7403
- return se({
7413
+ return oe({
7404
7414
  mutationKey: ["updateUserInfo"],
7405
7415
  mutationFn: async (t) => r(t),
7406
7416
  ...e
7407
7417
  });
7408
7418
  }, Ro = ({ options: e } = {}) => {
7409
7419
  const { resetUserPasswordApi: r } = ue();
7410
- return se({
7420
+ return oe({
7411
7421
  mutationKey: ["resetUserPassword"],
7412
7422
  mutationFn: async (t) => r(t),
7413
7423
  ...e
7414
7424
  });
7415
7425
  }, Po = ({ options: e } = {}) => {
7416
7426
  const { setUserTransactionPasswordApi: r } = ue();
7417
- return se({
7427
+ return oe({
7418
7428
  mutationKey: ["setUserTransactionPassword"],
7419
7429
  mutationFn: async (t) => r(t),
7420
7430
  ...e
7421
7431
  });
7422
7432
  }, Fo = ({ options: e } = {}) => {
7423
7433
  const { resetUserTransactionPasswordApi: r } = ue();
7424
- return se({
7434
+ return oe({
7425
7435
  mutationKey: ["resetUserTransactionPassword"],
7426
7436
  mutationFn: async (t) => r(t),
7427
7437
  ...e
7428
7438
  });
7429
7439
  }, wo = ({ paramsData: e, options: r } = {}) => {
7430
- const { userRebateApi: t } = ue(), { getToken: n } = oe();
7440
+ const { userRebateApi: t } = ue(), { getToken: n } = se();
7431
7441
  return n?.(), ne({
7432
7442
  queryKey: ["userRebate", e],
7433
7443
  queryFn: async () => t({ paramsData: e }),
@@ -7436,22 +7446,22 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7436
7446
  });
7437
7447
  }, Ao = ({ options: e } = {}) => {
7438
7448
  const { userBindBankApi: r } = ue();
7439
- return se({
7449
+ return oe({
7440
7450
  mutationKey: ["userBindBank"],
7441
7451
  mutationFn: async (t) => r({ formData: t }),
7442
7452
  ...e
7443
7453
  });
7444
7454
  }, Oo = ({ options: e } = {}) => {
7445
7455
  const { transferInGameApi: r } = ue();
7446
- return se({
7456
+ return oe({
7447
7457
  mutationKey: ["transferInGame"],
7448
7458
  mutationFn: async (t) => r(t),
7449
7459
  retry: !1,
7450
7460
  ...e
7451
7461
  });
7452
- }, km = ({ options: e } = {}) => {
7453
- const { currency: r } = oe(), { pointTransferApi: t } = ue();
7454
- return se({
7462
+ }, xm = ({ options: e } = {}) => {
7463
+ const { currency: r } = se(), { pointTransferApi: t } = ue();
7464
+ return oe({
7455
7465
  mutationKey: ["pointTransfer"],
7456
7466
  mutationFn: async (n) => t({
7457
7467
  ...n,
@@ -7459,8 +7469,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7459
7469
  }),
7460
7470
  ...e
7461
7471
  });
7462
- }, xm = ({ options: e } = {}) => {
7463
- const { currency: r } = oe(), { checkUserWagerApi: t } = ue();
7472
+ }, Sm = ({ options: e } = {}) => {
7473
+ const { currency: r } = se(), { checkUserWagerApi: t } = ue();
7464
7474
  return ne({
7465
7475
  queryKey: ["checkUserWager"],
7466
7476
  queryFn: async () => t(),
@@ -7472,9 +7482,9 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7472
7482
  },
7473
7483
  ...e
7474
7484
  });
7475
- }, Sm = ({ options: e } = {}) => {
7485
+ }, Dm = ({ options: e } = {}) => {
7476
7486
  const r = Hn(), { abandonPointsApi: t } = ue();
7477
- return se({
7487
+ return oe({
7478
7488
  mutationKey: ["abandonPoint"],
7479
7489
  mutationFn: async (n) => t({
7480
7490
  ...n
@@ -7486,14 +7496,14 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7486
7496
  });
7487
7497
  }, tl = ({ options: e } = {}) => {
7488
7498
  const { lineLoginApi: r } = ue();
7489
- return se({
7499
+ return oe({
7490
7500
  mutationKey: ["lineLogin"],
7491
7501
  mutationFn: async (t) => r(t),
7492
7502
  ...e
7493
7503
  });
7494
7504
  }, Bo = ({ options: e } = {}) => {
7495
7505
  const { lineLogin2Api: r } = ue();
7496
- return se({
7506
+ return oe({
7497
7507
  mutationKey: ["lineLogin"],
7498
7508
  mutationFn: async (t) => r(t),
7499
7509
  ...e
@@ -7505,35 +7515,42 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7505
7515
  queryFn: async () => t(r),
7506
7516
  ...e
7507
7517
  });
7508
- }, Dm = ({ options: e } = {}) => {
7509
- const { currency: r } = oe(), { memberTransferApi: t } = ue();
7510
- return se({
7518
+ }, Em = ({ options: e } = {}) => {
7519
+ const { currency: r } = se(), { memberTransferApi: t } = ue();
7520
+ return oe({
7511
7521
  mutationKey: ["memberTransfer"],
7512
7522
  mutationFn: async (n) => t({ ...n, currency: r }),
7513
7523
  ...e
7514
7524
  });
7515
- }, Em = ({ options: e } = {}) => {
7525
+ }, Nm = ({ options: e } = {}) => {
7516
7526
  const { mobileLoginApi: r } = ue();
7517
- return se({
7527
+ return oe({
7518
7528
  mutationKey: ["mobileLogin"],
7519
7529
  mutationFn: async (t) => r(t),
7520
7530
  ...e
7521
7531
  });
7522
- }, Nm = ({ options: e } = {}) => {
7532
+ }, Lm = ({ options: e } = {}) => {
7523
7533
  const { mobileLoginApiV2: r } = ue();
7524
- return se({
7534
+ return oe({
7525
7535
  mutationKey: ["mobileLoginV2"],
7526
7536
  mutationFn: async (t) => r(t),
7527
7537
  ...e
7528
7538
  });
7529
- }, Lm = ({ options: e } = {}) => {
7539
+ }, Wo = ({ options: e } = {}) => {
7540
+ const { bindAccountApi: r } = ue();
7541
+ return oe({
7542
+ mutationKey: ["bindAccount"],
7543
+ mutationFn: async (t) => r(t),
7544
+ ...e
7545
+ });
7546
+ }, Gm = ({ options: e } = {}) => {
7530
7547
  const { sendMobileVerifyCodeApi: r } = ue();
7531
- return se({
7548
+ return oe({
7532
7549
  mutationKey: ["sendMobileVerifyCode"],
7533
7550
  mutationFn: async (t) => r(t),
7534
7551
  ...e
7535
7552
  });
7536
- }, Gm = ({
7553
+ }, Mm = ({
7537
7554
  options: e = {
7538
7555
  login: {},
7539
7556
  logout: {},
@@ -7582,7 +7599,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7582
7599
  UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
7583
7600
  GAME_MAINTAIN: "game_maintain",
7584
7601
  LINE_LOGIN: "line_login"
7585
- }, Wo = 3e4, Mm = ({
7602
+ }, zo = 3e4, Rm = ({
7586
7603
  socketUrl: e,
7587
7604
  socketHandlers: r = {},
7588
7605
  options: t = {},
@@ -7596,7 +7613,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7596
7613
  enableNotification: g = !1,
7597
7614
  disabledLineAutoRegister: b = !1
7598
7615
  }) => {
7599
- const { store: f, lng: l } = oe(), a = Hn(), { isReady: i, setAsReady: s, isPending: o, setAsPending: u } = Vn(), m = Ye(l), c = ee(!1), d = ee(r), y = ge(n, "uid", null);
7616
+ const { store: f, lng: l } = se(), a = Hn(), { isReady: i, setAsReady: s, isPending: o, setAsPending: u } = Vn(), m = Ye(l), c = X(!1), d = X(r), y = ge(n, "uid", null);
7600
7617
  ge(n, "testFunction", 0);
7601
7618
  const _ = new URLSearchParams(window.location.search), U = ge(
7602
7619
  p,
@@ -7604,17 +7621,17 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7604
7621
  !1
7605
7622
  ), { mutateAsync: C } = tl({
7606
7623
  options: {
7607
- onSuccess: (E) => {
7608
- d.current.onLineLogin?.(E);
7624
+ onSuccess: (S) => {
7625
+ d.current.onLineLogin?.(S);
7609
7626
  },
7610
7627
  retry: !1
7611
7628
  }
7612
7629
  }), { mutateAsync: v } = Bo({
7613
7630
  options: {
7614
- onSuccess: (E) => {
7615
- d.current.onLineLogin?.(E);
7631
+ onSuccess: (S) => {
7632
+ d.current.onLineLogin?.(S);
7616
7633
  },
7617
- onError: (E, D) => {
7634
+ onError: (S, D) => {
7618
7635
  b || C(D);
7619
7636
  }
7620
7637
  }
@@ -7625,9 +7642,9 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7625
7642
  isInGameBox: ge(p, "isInGameBox", !1),
7626
7643
  currentGamePlatform: ge(p, "currentGamePlatform", "")
7627
7644
  }), {
7628
- sendMessage: S,
7645
+ sendMessage: E,
7629
7646
  // 發送普通訊息
7630
- sendJsonMessage: R,
7647
+ sendJsonMessage: M,
7631
7648
  // 發送 JSON 訊息
7632
7649
  lastMessage: B,
7633
7650
  // 最後接收到的訊息
@@ -7650,19 +7667,19 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7650
7667
  }
7651
7668
  }, [B]);
7652
7669
  pe(() => {
7653
- const E = setInterval(
7654
- () => S("ping"),
7655
- Wo
7670
+ const S = setInterval(
7671
+ () => E("ping"),
7672
+ zo
7656
7673
  );
7657
- return () => clearInterval(E);
7658
- }, [S]);
7659
- const F = I(
7660
- (E, D) => {
7674
+ return () => clearInterval(S);
7675
+ }, [E]);
7676
+ const P = I(
7677
+ (S, D) => {
7661
7678
  g && f.dispatch({
7662
7679
  type: "ui/openNotificationModal",
7663
7680
  payload: {
7664
7681
  title: Qa[m] || "System Prompt",
7665
- content: E,
7682
+ content: S,
7666
7683
  type: "warning",
7667
7684
  props: D
7668
7685
  }
@@ -7673,55 +7690,55 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7673
7690
  pe(() => {
7674
7691
  d.current = r;
7675
7692
  }, [r]);
7676
- const N = ee(null);
7693
+ const A = X(null);
7677
7694
  return pe(() => {
7678
- if (!T || N.current === T)
7695
+ if (!T || A.current === T)
7679
7696
  return;
7680
- N.current = T;
7697
+ A.current = T;
7681
7698
  const {
7682
- onDeposit: E,
7699
+ onDeposit: S,
7683
7700
  onTransCode: D,
7684
- onError: L,
7685
- onUpdateMember: A,
7701
+ onError: N,
7702
+ onUpdateMember: F,
7686
7703
  onMaintainNotice: O,
7687
7704
  onMaintainNoticeMember: H,
7688
7705
  onTransferInGame: W,
7689
- onCashRegisterLimit: M,
7690
- onLineLogin: G
7691
- } = d.current, w = ge(T, "type", ""), P = {
7706
+ onCashRegisterLimit: G,
7707
+ onLineLogin: L
7708
+ } = d.current, w = ge(T, "type", ""), R = {
7692
7709
  memberInfoUid: ge(T, "member_info_uid", null),
7693
7710
  data: ge(T, "data", null),
7694
7711
  memo: ge(T, "memo", null),
7695
7712
  amount: ge(T, "amount", null),
7696
7713
  limitAmount: ge(T, "limit_amount", null)
7697
- }, K = Number(P.memberInfoUid) === y, q = P.data, Q = P.amount, J = P.limitAmount, X = _.get("mac") || lt.get("machine_mac_address") || "", ie = ge(T, "data.line_id", null), _e = ge(T, "data.line_name", null), ye = ge(T, "member_info_uid", null);
7714
+ }, K = Number(R.memberInfoUid) === y, q = R.data, Q = R.amount, J = R.limitAmount, ee = _.get("mac") || lt.get("machine_mac_address") || "", ie = ge(T, "data.line_id", null), _e = ge(T, "data.line_name", null), ye = ge(T, "member_info_uid", null);
7698
7715
  switch (w) {
7699
7716
  case He.DEPOSIT:
7700
- K && (x(), E?.(P));
7717
+ K && (x(), S?.(R));
7701
7718
  break;
7702
7719
  case He.TRANS_CODE:
7703
- D?.(P);
7720
+ D?.(R);
7704
7721
  break;
7705
7722
  case He.ERROR:
7706
7723
  if (K) {
7707
7724
  const le = ge(T, "open_game_modal", 0) === 1;
7708
- F(q, {
7725
+ P(q, {
7709
7726
  notificationType: le ? "gamingNotice" : void 0
7710
- }), L?.(P);
7727
+ }), N?.(R);
7711
7728
  }
7712
7729
  break;
7713
7730
  case He.UPDATE_MEMBER:
7714
7731
  y && (a.invalidateQueries({
7715
7732
  queryKey: ["getMemberInfo"]
7716
- }), A?.(P));
7733
+ }), F?.(R));
7717
7734
  break;
7718
7735
  case He.MAINTAIN_NOTICE:
7719
- F(q, {
7736
+ P(q, {
7720
7737
  notificationType: "maintainNotice"
7721
- }), O?.(P);
7738
+ }), O?.(R);
7722
7739
  break;
7723
7740
  case He.MAINTAIN_NOTICE_MEMBER:
7724
- K && (F(q), H?.(P), setTimeout(() => {
7741
+ K && (P(q), H?.(R), setTimeout(() => {
7725
7742
  window.location.reload();
7726
7743
  }, 5e4));
7727
7744
  break;
@@ -7732,7 +7749,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7732
7749
  case He.CHECK_REQUEST:
7733
7750
  if (K && U) {
7734
7751
  const { request_id: le, amount: ce, platform: ke, status: Ue } = ge(
7735
- P,
7752
+ R,
7736
7753
  "data",
7737
7754
  {}
7738
7755
  ), ze = localStorage.getItem(
@@ -7755,28 +7772,28 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7755
7772
  }
7756
7773
  });
7757
7774
  }
7758
- W?.(P);
7775
+ W?.(R);
7759
7776
  }
7760
7777
  break;
7761
7778
  case He.CASH_REGISTER_LIMIT:
7762
- F(q, {
7779
+ P(q, {
7763
7780
  notificationType: "cashRegisterLimit",
7764
7781
  amount: Q,
7765
7782
  limitAmount: J
7766
- }), M?.(P);
7783
+ }), G?.(R);
7767
7784
  break;
7768
7785
  case He.UPDATE_ONLY_ONE_MEMBER:
7769
7786
  K && (a.invalidateQueries({
7770
7787
  queryKey: ["getMemberInfo"]
7771
- }), A?.(P));
7788
+ }), F?.(R));
7772
7789
  break;
7773
7790
  case He.GAME_MAINTAIN:
7774
- F(q, {
7791
+ P(q, {
7775
7792
  notificationType: "gameMaintain"
7776
7793
  });
7777
7794
  break;
7778
7795
  case He.LINE_LOGIN:
7779
- ye === X && v({
7796
+ ye === ee && v({
7780
7797
  line_id: ie,
7781
7798
  line_name: _e
7782
7799
  });
@@ -7791,30 +7808,30 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7791
7808
  f,
7792
7809
  a,
7793
7810
  m,
7794
- F,
7811
+ P,
7795
7812
  o,
7796
7813
  x,
7797
7814
  U,
7798
7815
  s
7799
7816
  ]), pe(() => () => c.current = !0, []), pe(() => {
7800
7817
  if (U) {
7801
- const E = localStorage.getItem(
7818
+ const S = localStorage.getItem(
7802
7819
  "transfer_in_game_request_id"
7803
7820
  );
7804
- E && y && o && R({
7821
+ S && y && o && M({
7805
7822
  type: He.CHECK_REQUEST,
7806
- request_id: E,
7823
+ request_id: S,
7807
7824
  member_info_uid: y
7808
7825
  });
7809
7826
  }
7810
- }, [y, o, R, U]), {
7811
- sendMessage: S,
7812
- sendJsonMessage: R,
7827
+ }, [y, o, M, U]), {
7828
+ sendMessage: E,
7829
+ sendJsonMessage: M,
7813
7830
  readyState: k
7814
7831
  // WebSocket 連線狀態
7815
7832
  };
7816
7833
  }, Ji = () => {
7817
- const { client: e } = oe(), r = I(
7834
+ const { client: e } = se(), r = I(
7818
7835
  async ({ paramsData: g } = {}) => {
7819
7836
  const { uid: b } = g || {};
7820
7837
  return await e.get(`/event/list${b ? `/${b}` : ""}`);
@@ -7849,8 +7866,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7849
7866
  checkEventStatusApi: p,
7850
7867
  redeemEventRewardApi: n
7851
7868
  };
7852
- }, zo = ({ paramsData: e, options: r } = {}) => {
7853
- const { store: t, lng: n, data2URL: p } = oe(), { eventListApi: g } = Ji(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", f = Ye(n);
7869
+ }, Io = ({ paramsData: e, options: r } = {}) => {
7870
+ const { store: t, lng: n, data2URL: p } = se(), { eventListApi: g } = Ji(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", f = Ye(n);
7854
7871
  return ne({
7855
7872
  queryKey: ["eventList", e],
7856
7873
  queryFn: () => g({ paramsData: e }),
@@ -7962,21 +7979,21 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7962
7979
  },
7963
7980
  ...r
7964
7981
  });
7965
- }, Rm = ({ options: e } = {}) => {
7982
+ }, Pm = ({ options: e } = {}) => {
7966
7983
  const { redeemEventRewardApi: r } = Ji();
7967
- return se({
7984
+ return oe({
7968
7985
  mutationKey: ["redeemEventReward"],
7969
7986
  mutationFn: async (t) => r(t),
7970
7987
  ...e
7971
7988
  });
7972
- }, Io = ({ options: e, formData: r } = {}) => {
7989
+ }, Vo = ({ options: e, formData: r } = {}) => {
7973
7990
  const { checkCurrentEventProgessApi: t } = Ji();
7974
7991
  return ne({
7975
7992
  queryKey: ["checkEventProgress"],
7976
7993
  queryFn: async () => t(r),
7977
7994
  ...e
7978
7995
  });
7979
- }, Vo = ({ options: e, formData: r } = {}) => {
7996
+ }, Zo = ({ options: e, formData: r } = {}) => {
7980
7997
  const { checkEventStatusApi: t } = Ji();
7981
7998
  return ne({
7982
7999
  queryKey: ["checkEventStatus"],
@@ -7984,16 +8001,16 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
7984
8001
  select: (n) => n.data.event_status,
7985
8002
  ...e
7986
8003
  });
7987
- }, Pm = ({
8004
+ }, Fm = ({
7988
8005
  options: e = {
7989
8006
  eventList: {},
7990
8007
  checkEventProgress: {},
7991
8008
  checkEventStatus: {}
7992
8009
  }
7993
8010
  } = {}) => {
7994
- const r = zo({ options: e.eventList }), t = Io({
8011
+ const r = Io({ options: e.eventList }), t = Vo({
7995
8012
  options: e.checkEventProgress
7996
- }), n = Vo({
8013
+ }), n = Zo({
7997
8014
  options: e.checkEventStatus
7998
8015
  });
7999
8016
  return {
@@ -8002,7 +8019,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8002
8019
  checkEventStatusQuery: n
8003
8020
  };
8004
8021
  }, Ki = () => {
8005
- const { client: e } = oe(), r = I(async () => {
8022
+ const { client: e } = se(), r = I(async () => {
8006
8023
  const { data: g } = await e.get("/carousels");
8007
8024
  return g;
8008
8025
  }, [e]), t = I(async () => await e.get("/marquees"), [e]), n = I(async () => await e.get("/notification"), [e]), p = I(
@@ -8015,8 +8032,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8015
8032
  commonInboxApi: n,
8016
8033
  commonReadInboxApi: p
8017
8034
  };
8018
- }, Fm = () => {
8019
- const { lng: e, data2URL: r } = oe(), { commonCarouselApi: t } = Ki(), n = Ye(e);
8035
+ }, wm = () => {
8036
+ const { lng: e, data2URL: r } = se(), { commonCarouselApi: t } = Ki(), n = Ye(e);
8020
8037
  return ne({
8021
8038
  queryKey: ["getCarouselList"],
8022
8039
  queryFn: async () => {
@@ -8036,8 +8053,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8036
8053
  };
8037
8054
  })
8038
8055
  });
8039
- }, wm = () => {
8040
- const { lng: e } = oe(), { commonMarqueeApi: r } = Ki(), t = Ye(e);
8056
+ }, Am = () => {
8057
+ const { lng: e } = se(), { commonMarqueeApi: r } = Ki(), t = Ye(e);
8041
8058
  return ne({
8042
8059
  queryKey: ["getMarqueeList"],
8043
8060
  queryFn: async () => {
@@ -8049,7 +8066,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8049
8066
  return We(p, (b) => b[t] || b["en-US"]);
8050
8067
  }
8051
8068
  });
8052
- }, Am = ({ options: e } = {}) => {
8069
+ }, Om = ({ options: e } = {}) => {
8053
8070
  const { rankingGameApi: r } = ue();
8054
8071
  return ne({
8055
8072
  queryKey: ["rankingGame"],
@@ -8090,8 +8107,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8090
8107
  },
8091
8108
  ...e
8092
8109
  });
8093
- }, Zo = ({ options: e } = {}) => {
8094
- const { commonInboxApi: r } = Ki(), { getToken: t, lng: n } = oe(), p = t?.(), g = Ye(n);
8110
+ }, Jo = ({ options: e } = {}) => {
8111
+ const { commonInboxApi: r } = Ki(), { getToken: t, lng: n } = se(), p = t?.(), g = Ye(n);
8095
8112
  return ne({
8096
8113
  queryKey: ["inboxList"],
8097
8114
  queryFn: async () => await r(),
@@ -8111,26 +8128,26 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8111
8128
  enabled: !!p,
8112
8129
  ...e
8113
8130
  });
8114
- }, Jo = ({ options: e } = {}) => {
8131
+ }, Ko = ({ options: e } = {}) => {
8115
8132
  const { commonReadInboxApi: r } = Ki();
8116
- return se({
8133
+ return oe({
8117
8134
  mutationKey: ["readInbox"],
8118
8135
  mutationFn: async (t) => await r(t),
8119
8136
  ...e
8120
8137
  });
8121
- }, Om = ({
8138
+ }, Bm = ({
8122
8139
  options: e = {
8123
8140
  inboxList: {},
8124
8141
  readInbox: {}
8125
8142
  }
8126
8143
  } = {}) => {
8127
- const r = Zo({ options: e.inboxList }), t = Jo({ options: e.readInbox });
8144
+ const r = Jo({ options: e.inboxList }), t = Ko({ options: e.readInbox });
8128
8145
  return {
8129
8146
  inboxListQuery: r,
8130
8147
  readInboxMutation: t
8131
8148
  };
8132
8149
  }, nl = () => {
8133
- const { client: e } = oe();
8150
+ const { client: e } = se();
8134
8151
  return {
8135
8152
  newsListApi: I(
8136
8153
  async ({ uid: t, params: n } = {}) => await e.get(`/news${t ? `/${t}` : ""}`, {
@@ -8139,7 +8156,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8139
8156
  [e]
8140
8157
  )
8141
8158
  };
8142
- }, Ko = ({
8159
+ }, qo = ({
8143
8160
  typeConfig: e = {
8144
8161
  all: {},
8145
8162
  crypto: {},
@@ -8185,8 +8202,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8185
8202
  value: "other",
8186
8203
  ...e.other
8187
8204
  }
8188
- ], Bm = ({ options: e, formData: r } = {}) => {
8189
- const { lng: t } = oe(), { newsListApi: n } = nl(), p = Ye(t);
8205
+ ], Hm = ({ options: e, formData: r } = {}) => {
8206
+ const { lng: t } = se(), { newsListApi: n } = nl(), p = Ye(t);
8190
8207
  return ne({
8191
8208
  queryKey: ["newsList"],
8192
8209
  queryFn: () => {
@@ -8206,13 +8223,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8206
8223
  return {
8207
8224
  ...g.data,
8208
8225
  data: l,
8209
- blogType: Ko({ typeConfig: e?.typeConfig })
8226
+ blogType: qo({ typeConfig: e?.typeConfig })
8210
8227
  };
8211
8228
  },
8212
8229
  ...e
8213
8230
  });
8214
- }, Hm = ({ options: e, formData: r } = {}) => {
8215
- const { lng: t } = oe(), { newsListApi: n } = nl(), p = Ye(t);
8231
+ }, Wm = ({ options: e, formData: r } = {}) => {
8232
+ const { lng: t } = se(), { newsListApi: n } = nl(), p = Ye(t);
8216
8233
  return ne({
8217
8234
  queryKey: ["newsList"],
8218
8235
  queryFn: () => {
@@ -8231,7 +8248,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8231
8248
  ...e
8232
8249
  });
8233
8250
  }, Xe = () => {
8234
- const { client: e } = oe(), r = I(async () => await e.get("/payment/list"), [e]), t = I(
8251
+ const { client: e } = se(), r = I(async () => await e.get("/payment/list"), [e]), t = I(
8235
8252
  async ({ paramsData: o }) => await e.get("/thirdPartyPayment/list", {
8236
8253
  params: { ...o }
8237
8254
  }),
@@ -8356,14 +8373,14 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8356
8373
  invoiceApi: i,
8357
8374
  updateInvoiceApi: s
8358
8375
  };
8359
- }, qo = ({ options: e } = {}) => {
8376
+ }, $o = ({ options: e } = {}) => {
8360
8377
  const { depositApiV1: r } = Xe();
8361
8378
  return ne({
8362
8379
  queryKey: ["depositV1"],
8363
8380
  queryFn: r,
8364
8381
  ...e
8365
8382
  });
8366
- }, $o = ({ paramsData: e, options: r } = {}) => {
8383
+ }, Qo = ({ paramsData: e, options: r } = {}) => {
8367
8384
  const { depositApiV2: t } = Xe();
8368
8385
  return ne({
8369
8386
  queryKey: ["depositV2", e],
@@ -8388,70 +8405,70 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8388
8405
  },
8389
8406
  ...r
8390
8407
  });
8391
- }, Qo = ({ options: e } = {}) => {
8408
+ }, jo = ({ options: e } = {}) => {
8392
8409
  const { depositApi: r } = Xe();
8393
- return se({
8410
+ return oe({
8394
8411
  mutationKey: ["depositAction"],
8395
8412
  mutationFn: async (t) => r(t),
8396
8413
  ...e
8397
8414
  });
8398
- }, jo = ({ options: e } = {}) => {
8415
+ }, Yo = ({ options: e } = {}) => {
8399
8416
  const { withdrawApi: r } = Xe();
8400
- return se({
8417
+ return oe({
8401
8418
  mutationKey: ["withdrawAction"],
8402
8419
  mutationFn: async (t) => r(t),
8403
8420
  ...e
8404
8421
  });
8405
- }, Yo = ({ paramsData: e, options: r } = {}) => {
8422
+ }, Xo = ({ paramsData: e, options: r } = {}) => {
8406
8423
  const { depositTransactionApi: t } = Xe();
8407
8424
  return ne({
8408
8425
  queryKey: ["depositTransaction", e],
8409
8426
  queryFn: () => t({ paramsData: e }),
8410
8427
  ...r
8411
8428
  });
8412
- }, Xo = ({ paramsData: e, options: r } = {}) => {
8429
+ }, es = ({ paramsData: e, options: r } = {}) => {
8413
8430
  const { eventTransactionApi: t } = Xe();
8414
8431
  return ne({
8415
8432
  queryKey: ["eventTransaction", e],
8416
8433
  queryFn: () => t({ paramsData: e }),
8417
8434
  ...r
8418
8435
  });
8419
- }, es = ({ options: e } = {}) => {
8436
+ }, as = ({ options: e } = {}) => {
8420
8437
  const { bankDepositApi: r } = Xe();
8421
- return se({
8438
+ return oe({
8422
8439
  mutationKey: ["bankDeposit"],
8423
8440
  mutationFn: async (t) => r(t),
8424
8441
  ...e
8425
8442
  });
8426
- }, as = ({ paramsData: e, options: r } = {}) => {
8443
+ }, is = ({ paramsData: e, options: r } = {}) => {
8427
8444
  const { withdrawTransactionApi: t } = Xe();
8428
8445
  return ne({
8429
8446
  queryKey: ["withdrawTransaction", e],
8430
8447
  queryFn: () => t({ paramsData: e }),
8431
8448
  ...r
8432
8449
  });
8433
- }, Wm = ({ options: e } = {}) => {
8450
+ }, zm = ({ options: e } = {}) => {
8434
8451
  const { redeemCodeDepositApi: r } = Xe();
8435
- return se({
8452
+ return oe({
8436
8453
  mutationKey: ["redeemCodeDeposit"],
8437
8454
  mutationFn: async (t) => r(t),
8438
8455
  ...e
8439
8456
  });
8440
- }, zm = ({ options: e } = {}) => {
8457
+ }, Im = ({ options: e } = {}) => {
8441
8458
  const { invoiceApi: r } = Xe();
8442
- return se({
8459
+ return oe({
8443
8460
  mutationKey: ["invoiceAction"],
8444
8461
  mutationFn: async (t) => r(t),
8445
8462
  ...e
8446
8463
  });
8447
- }, Im = ({ options: e } = {}) => {
8464
+ }, Vm = ({ options: e } = {}) => {
8448
8465
  const { updateInvoiceApi: r } = Xe();
8449
- return se({
8466
+ return oe({
8450
8467
  mutationKey: ["updateInvoiceAction"],
8451
8468
  mutationFn: async (t) => r(t),
8452
8469
  ...e
8453
8470
  });
8454
- }, Vm = ({
8471
+ }, Zm = ({
8455
8472
  depositV1: e = {},
8456
8473
  depositV2: r = {},
8457
8474
  depositTransaction: t = {},
@@ -8461,7 +8478,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8461
8478
  eventTransaction: b = {},
8462
8479
  withdrawTransaction: f = {}
8463
8480
  } = {}) => {
8464
- const l = qo(e), a = $o(r), i = Yo(t), s = Qo(n), o = jo(p), u = es(g), m = Xo(b), c = as(
8481
+ const l = $o(e), a = Qo(r), i = Xo(t), s = jo(n), o = Yo(p), u = as(g), m = es(b), c = is(
8465
8482
  f
8466
8483
  );
8467
8484
  return {
@@ -8474,10 +8491,10 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8474
8491
  eventTransaction: m,
8475
8492
  withdrawTransaction: c
8476
8493
  };
8477
- }, ll = "3.7.8", is = ll, Ha = typeof Buffer == "function", Nn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ln = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ts = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", $a = Array.prototype.slice.call(ts), ii = ((e) => {
8494
+ }, ll = "3.7.8", ts = ll, Ha = typeof Buffer == "function", Nn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ln = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ns = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", $a = Array.prototype.slice.call(ns), ii = ((e) => {
8478
8495
  let r = {};
8479
8496
  return e.forEach((t, n) => r[t] = n), r;
8480
- })($a), ns = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Gn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), rl = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (r) => r == "+" ? "-" : "_"), ol = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), sl = (e) => {
8497
+ })($a), ls = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Gn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), rl = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (r) => r == "+" ? "-" : "_"), ol = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), sl = (e) => {
8481
8498
  let r, t, n, p, g = "";
8482
8499
  const b = e.length % 3;
8483
8500
  for (let f = 0; f < e.length; ) {
@@ -8491,7 +8508,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8491
8508
  for (let n = 0, p = e.length; n < p; n += 4096)
8492
8509
  t.push(Le.apply(null, e.subarray(n, n + 4096)));
8493
8510
  return Ct(t.join(""));
8494
- }, Hi = (e, r = !1) => r ? rl(rt(e)) : rt(e), ls = (e) => {
8511
+ }, Hi = (e, r = !1) => r ? rl(rt(e)) : rt(e), rs = (e) => {
8495
8512
  if (e.length < 2) {
8496
8513
  var r = e.charCodeAt(0);
8497
8514
  return r < 128 ? e : r < 2048 ? Le(192 | r >>> 6) + Le(128 | r & 63) : Le(224 | r >>> 12 & 15) + Le(128 | r >>> 6 & 63) + Le(128 | r & 63);
@@ -8499,7 +8516,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8499
8516
  var r = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
8500
8517
  return Le(240 | r >>> 18 & 7) + Le(128 | r >>> 12 & 63) + Le(128 | r >>> 6 & 63) + Le(128 | r & 63);
8501
8518
  }
8502
- }, rs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, ml = (e) => e.replace(rs, ls), Mn = Ha ? (e) => Buffer.from(e, "utf8").toString("base64") : Ln ? (e) => rt(Ln.encode(e)) : (e) => Ct(ml(e)), Ba = (e, r = !1) => r ? rl(Mn(e)) : Mn(e), Rn = (e) => Ba(e, !0), os = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, ss = (e) => {
8519
+ }, os = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, ml = (e) => e.replace(os, rs), Mn = Ha ? (e) => Buffer.from(e, "utf8").toString("base64") : Ln ? (e) => rt(Ln.encode(e)) : (e) => Ct(ml(e)), Ba = (e, r = !1) => r ? rl(Mn(e)) : Mn(e), Rn = (e) => Ba(e, !0), ss = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, ms = (e) => {
8503
8520
  switch (e.length) {
8504
8521
  case 4:
8505
8522
  var r = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), t = r - 65536;
@@ -8509,15 +8526,15 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8509
8526
  default:
8510
8527
  return Le((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
8511
8528
  }
8512
- }, ul = (e) => e.replace(os, ss), pl = (e) => {
8513
- if (e = e.replace(/\s+/g, ""), !ns.test(e))
8529
+ }, ul = (e) => e.replace(ss, ms), pl = (e) => {
8530
+ if (e = e.replace(/\s+/g, ""), !ls.test(e))
8514
8531
  throw new TypeError("malformed base64.");
8515
8532
  e += "==".slice(2 - (e.length & 3));
8516
8533
  let r, t, n, p = [];
8517
8534
  for (let g = 0; g < e.length; )
8518
8535
  r = ii[e.charAt(g++)] << 18 | ii[e.charAt(g++)] << 12 | (t = ii[e.charAt(g++)]) << 6 | (n = ii[e.charAt(g++)]), t === 64 ? p.push(Le(r >> 16 & 255)) : n === 64 ? p.push(Le(r >> 16 & 255, r >> 8 & 255)) : p.push(Le(r >> 16 & 255, r >> 8 & 255, r & 255));
8519
8536
  return p.join("");
8520
- }, vt = typeof atob == "function" ? (e) => atob(ol(e)) : Ha ? (e) => Buffer.from(e, "base64").toString("binary") : pl, gl = Ha ? (e) => Gn(Buffer.from(e, "base64")) : (e) => Gn(vt(e).split("").map((r) => r.charCodeAt(0))), dl = (e) => gl(cl(e)), ms = Ha ? (e) => Buffer.from(e, "base64").toString("utf8") : Nn ? (e) => Nn.decode(gl(e)) : (e) => ul(vt(e)), cl = (e) => ol(e.replace(/[-_]/g, (r) => r == "-" ? "+" : "/")), ot = (e) => ms(cl(e)), us = (e) => {
8537
+ }, vt = typeof atob == "function" ? (e) => atob(ol(e)) : Ha ? (e) => Buffer.from(e, "base64").toString("binary") : pl, gl = Ha ? (e) => Gn(Buffer.from(e, "base64")) : (e) => Gn(vt(e).split("").map((r) => r.charCodeAt(0))), dl = (e) => gl(cl(e)), us = Ha ? (e) => Buffer.from(e, "base64").toString("utf8") : Nn ? (e) => Nn.decode(gl(e)) : (e) => ul(vt(e)), cl = (e) => ol(e.replace(/[-_]/g, (r) => r == "-" ? "+" : "/")), ot = (e) => us(cl(e)), ps = (e) => {
8521
8538
  if (typeof e != "string")
8522
8539
  return !1;
8523
8540
  const r = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
@@ -8549,11 +8566,11 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8549
8566
  }), e("toBase64URL", function() {
8550
8567
  return Hi(this, !0);
8551
8568
  });
8552
- }, ps = () => {
8569
+ }, gs = () => {
8553
8570
  _l(), yl();
8554
- }, gs = {
8571
+ }, ds = {
8555
8572
  version: ll,
8556
- VERSION: is,
8573
+ VERSION: ts,
8557
8574
  atob: vt,
8558
8575
  atobPolyfill: pl,
8559
8576
  btoa: Ct,
@@ -8566,13 +8583,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8566
8583
  utob: ml,
8567
8584
  btou: ul,
8568
8585
  decode: ot,
8569
- isValid: us,
8586
+ isValid: ps,
8570
8587
  fromUint8Array: Hi,
8571
8588
  toUint8Array: dl,
8572
8589
  extendString: _l,
8573
8590
  extendUint8Array: yl,
8574
- extendBuiltins: ps
8575
- }, Zm = (e, r) => {
8591
+ extendBuiltins: gs
8592
+ }, Jm = (e, r) => {
8576
8593
  const { playGameApi: t } = ct();
8577
8594
  return ne({
8578
8595
  queryKey: ["playGame"],
@@ -8599,7 +8616,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8599
8616
  supportPortrait: o,
8600
8617
  isHtmlCode: m,
8601
8618
  gameUrl: u,
8602
- decodeGameUrl: gs.decode(u),
8619
+ decodeGameUrl: ds.decode(u),
8603
8620
  message: c
8604
8621
  };
8605
8622
  },
@@ -8607,12 +8624,12 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8607
8624
  ...r
8608
8625
  });
8609
8626
  }, Ul = () => {
8610
- const { client: e } = oe(), r = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
8627
+ const { client: e } = se(), r = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
8611
8628
  return {
8612
8629
  currentRebateApi: r,
8613
8630
  receiveRebateApi: t
8614
8631
  };
8615
- }, ds = ({ options: e } = {}) => {
8632
+ }, cs = ({ options: e } = {}) => {
8616
8633
  const { currentRebateApi: r } = Ul();
8617
8634
  return ne({
8618
8635
  queryKey: ["currentRebate"],
@@ -8620,26 +8637,26 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8620
8637
  select: (t) => Hl(t, ["code", "status"]),
8621
8638
  ...e
8622
8639
  });
8623
- }, cs = ({ options: e } = {}) => {
8640
+ }, fs = ({ options: e } = {}) => {
8624
8641
  const { receiveRebateApi: r } = Ul();
8625
- return se({
8642
+ return oe({
8626
8643
  mutationKey: ["receiveRebate"],
8627
8644
  mutationFn: async () => r(),
8628
8645
  ...e
8629
8646
  });
8630
- }, Jm = ({
8647
+ }, Km = ({
8631
8648
  options: e = {
8632
8649
  currentRebate: {},
8633
8650
  receiveRebate: {}
8634
8651
  }
8635
8652
  } = {}) => {
8636
- const r = ds({ options: e.currentRebate }), t = cs({ options: e.receiveRebate });
8653
+ const r = cs({ options: e.currentRebate }), t = fs({ options: e.receiveRebate });
8637
8654
  return {
8638
8655
  currentRebate: r,
8639
8656
  receiveRebate: t
8640
8657
  };
8641
8658
  }, ja = () => {
8642
- const { client: e } = oe(), r = I(
8659
+ const { client: e } = se(), r = I(
8643
8660
  async ({ uid: b, params: f } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
8644
8661
  params: f
8645
8662
  }),
@@ -8657,7 +8674,7 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8657
8674
  redeemRewardApi: p,
8658
8675
  historyRewardApi: g
8659
8676
  };
8660
- }, fs = ({ options: e } = {}) => {
8677
+ }, _s = ({ options: e } = {}) => {
8661
8678
  const { rewardListApi: r } = ja();
8662
8679
  return ne({
8663
8680
  queryKey: ["rewardsList"],
@@ -8697,35 +8714,35 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8697
8714
  },
8698
8715
  ...e
8699
8716
  });
8700
- }, _s = ({ options: e } = {}) => {
8717
+ }, ys = ({ options: e } = {}) => {
8701
8718
  const { redeemRewardApi: r } = ja();
8702
- return se({
8719
+ return oe({
8703
8720
  mutationKey: ["redeemReward"],
8704
8721
  mutationFn: async (t) => await r(t),
8705
8722
  ...e
8706
8723
  });
8707
- }, ys = ({ options: e } = {}) => {
8724
+ }, Us = ({ options: e } = {}) => {
8708
8725
  const { unUsedRewardListApi: r } = ja();
8709
8726
  return ne({
8710
8727
  queryKey: ["unUsedRewardsList"],
8711
8728
  queryFn: r,
8712
8729
  ...e
8713
8730
  });
8714
- }, Us = ({ options: e } = {}) => {
8731
+ }, bs = ({ options: e } = {}) => {
8715
8732
  const { expiredRewardListApi: r } = ja();
8716
8733
  return ne({
8717
8734
  queryKey: ["expiredRewardsList"],
8718
8735
  queryFn: r,
8719
8736
  ...e
8720
8737
  });
8721
- }, bs = ({ options: e } = {}) => {
8738
+ }, Cs = ({ options: e } = {}) => {
8722
8739
  const { historyRewardApi: r } = ja();
8723
8740
  return ne({
8724
8741
  queryKey: ["historyRewardsList"],
8725
8742
  queryFn: r,
8726
8743
  ...e
8727
8744
  });
8728
- }, Km = ({
8745
+ }, qm = ({
8729
8746
  options: e = {
8730
8747
  rewardsList: {},
8731
8748
  redeemReward: {},
@@ -8734,13 +8751,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8734
8751
  historyRewardsList: {}
8735
8752
  }
8736
8753
  } = {}) => {
8737
- const r = fs({ options: e.rewardsList }), t = _s({
8754
+ const r = _s({ options: e.rewardsList }), t = ys({
8738
8755
  options: e.redeemReward
8739
- }), n = ys({
8756
+ }), n = Us({
8740
8757
  options: e.unUsedRewardsList
8741
- }), p = Us({
8758
+ }), p = bs({
8742
8759
  options: e.expiredRewardsList
8743
- }), g = bs({
8760
+ }), g = Cs({
8744
8761
  options: e.historyRewardsList
8745
8762
  });
8746
8763
  return {
@@ -8751,13 +8768,13 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8751
8768
  historyRewardsListQuery: g
8752
8769
  };
8753
8770
  }, bl = () => {
8754
- const { client: e } = oe(), r = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
8771
+ const { client: e } = se(), r = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
8755
8772
  return {
8756
8773
  vipListApi: r,
8757
8774
  vipInfoApi: t
8758
8775
  };
8759
- }, qm = ({ options: e } = {}) => {
8760
- const { store: r } = oe(), t = r?.getState()?.isMemberInfo || r?.getState()?.member?.member || {}, { vipInfoApi: n } = bl();
8776
+ }, $m = ({ options: e } = {}) => {
8777
+ const { store: r } = se(), t = r?.getState()?.isMemberInfo || r?.getState()?.member?.member || {}, { vipInfoApi: n } = bl();
8761
8778
  return ne({
8762
8779
  queryKey: ["vipInfo"],
8763
8780
  queryFn: async () => n(),
@@ -8771,8 +8788,8 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8771
8788
  },
8772
8789
  ...e
8773
8790
  });
8774
- }, Cs = ({ options: e } = {}) => {
8775
- const { store: r } = oe(), t = r?.getState()?.isWalletCurrency || r?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: n } = bl();
8791
+ }, vs = ({ options: e } = {}) => {
8792
+ const { store: r } = se(), t = r?.getState()?.isWalletCurrency || r?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: n } = bl();
8776
8793
  return ne({
8777
8794
  queryKey: ["vipList"],
8778
8795
  queryFn: async () => {
@@ -8808,15 +8825,15 @@ const So = /* @__PURE__ */ pt(xo), Do = ({
8808
8825
  },
8809
8826
  ...e
8810
8827
  });
8811
- }, $m = ({ options: e } = {
8828
+ }, Qm = ({ options: e } = {
8812
8829
  vipList: {}
8813
8830
  }) => ({
8814
- vipList: Cs({ options: e.vipList })
8831
+ vipList: vs({ options: e.vipList })
8815
8832
  });
8816
- var vs = Object.create, Cl = Object.defineProperty, hs = Object.getOwnPropertyDescriptor, Ts = Object.getOwnPropertyNames, ks = Object.getPrototypeOf, xs = Object.prototype.hasOwnProperty, Ss = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), Ds = (e, r, t, n) => {
8817
- if (r && typeof r == "object" || typeof r == "function") for (let p of Ts(r)) !xs.call(e, p) && p !== t && Cl(e, p, { get: () => r[p], enumerable: !(n = hs(r, p)) || n.enumerable });
8833
+ var hs = Object.create, Cl = Object.defineProperty, Ts = Object.getOwnPropertyDescriptor, ks = Object.getOwnPropertyNames, xs = Object.getPrototypeOf, Ss = Object.prototype.hasOwnProperty, Ds = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), Es = (e, r, t, n) => {
8834
+ if (r && typeof r == "object" || typeof r == "function") for (let p of ks(r)) !Ss.call(e, p) && p !== t && Cl(e, p, { get: () => r[p], enumerable: !(n = Ts(r, p)) || n.enumerable });
8818
8835
  return e;
8819
- }, Es = (e, r, t) => (t = e != null ? vs(ks(e)) : {}, Ds(!e || !e.__esModule ? Cl(t, "default", { value: e, enumerable: !0 }) : t, e)), Ns = Ss((e, r) => {
8836
+ }, Ns = (e, r, t) => (t = e != null ? hs(xs(e)) : {}, Es(!e || !e.__esModule ? Cl(t, "default", { value: e, enumerable: !0 }) : t, e)), Ls = Ds((e, r) => {
8820
8837
  (function(t, n) {
8821
8838
  typeof e == "object" && typeof r < "u" ? n(e) : typeof define == "function" && define.amd ? define(["exports"], n) : (t = typeof globalThis < "u" ? globalThis : t || self, n(t.fastUniqueNumbers = {}));
8822
8839
  })(e, function(t) {
@@ -8845,12 +8862,12 @@ var vs = Object.create, Cl = Object.defineProperty, hs = Object.getOwnPropertyDe
8845
8862
  t.addUniqueNumber = o, t.generateUniqueNumber = s;
8846
8863
  });
8847
8864
  });
8848
- Es(Ns());
8865
+ Ns(Ls());
8849
8866
  var pa = (typeof window > "u" ? "undefined" : typeof window) == "object", $e = { setTimeout: pa ? setTimeout.bind(window) : setTimeout, clearTimeout: pa ? clearTimeout.bind(window) : clearTimeout, setInterval: pa ? setInterval.bind(window) : setInterval, clearInterval: pa ? clearInterval.bind(window) : clearInterval };
8850
- function Ls(e) {
8867
+ function Gs(e) {
8851
8868
  $e.setTimeout = e.setTimeout, $e.clearTimeout = e.clearTimeout, $e.setInterval = e.setInterval, $e.clearInterval = e.clearInterval;
8852
8869
  }
8853
- var Fa = {}, Gs = class {
8870
+ var Fa = {}, Ms = class {
8854
8871
  name;
8855
8872
  closed = !1;
8856
8873
  mc = new MessageChannel();
@@ -8898,14 +8915,14 @@ var Fa = {}, Gs = class {
8898
8915
  dispatchEvent(e) {
8899
8916
  return this.mc.port1.dispatchEvent(e);
8900
8917
  }
8901
- }, Ms = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : Gs;
8902
- function Rs(e = 0) {
8918
+ }, Rs = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : Ms;
8919
+ function Ps(e = 0) {
8903
8920
  return new Promise((r) => $e.setTimeout(r, e));
8904
8921
  }
8905
8922
  function vl() {
8906
8923
  return Math.random().toString(36).substring(2);
8907
8924
  }
8908
- var Ps = class {
8925
+ var Fs = class {
8909
8926
  options;
8910
8927
  channel;
8911
8928
  token = vl();
@@ -8929,7 +8946,7 @@ var Ps = class {
8929
8946
  };
8930
8947
  this.channel.addEventListener("message", r);
8931
8948
  try {
8932
- return this.sendAction(0), await Rs(this.options.responseTime), this.channel.removeEventListener("message", r), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
8949
+ return this.sendAction(0), await Ps(this.options.responseTime), this.channel.removeEventListener("message", r), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
8933
8950
  } catch {
8934
8951
  return !1;
8935
8952
  }
@@ -8985,7 +9002,7 @@ var Ps = class {
8985
9002
  }
8986
9003
  }
8987
9004
  }
8988
- }, Fs = class {
9005
+ }, ws = class {
8989
9006
  channel;
8990
9007
  options;
8991
9008
  elector;
@@ -8995,9 +9012,9 @@ var Ps = class {
8995
9012
  isLastActive = !1;
8996
9013
  constructor(e) {
8997
9014
  let { channelName: r } = e;
8998
- if (this.options = e, this.channel = new Ms(r), this.registry.set(this.token, 1), e.leaderElection) {
9015
+ if (this.options = e, this.channel = new Rs(r), this.registry.set(this.token, 1), e.leaderElection) {
8999
9016
  let t = { fallbackInterval: 2e3, responseTime: 100 };
9000
- this.elector = new Ps(this.channel, t), this.elector.waitForLeadership();
9017
+ this.elector = new Fs(this.channel, t), this.elector.waitForLeadership();
9001
9018
  }
9002
9019
  this.channel.addEventListener("message", (t) => {
9003
9020
  let { action: n, token: p, data: g } = t.data;
@@ -9087,8 +9104,8 @@ var Ps = class {
9087
9104
  close() {
9088
9105
  this.options.leaderElection && this.elector.close(), this.send(4), this.channel.close();
9089
9106
  }
9090
- }, ws = pa ? document : null, As = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
9091
- function Os(e, r) {
9107
+ }, As = pa ? document : null, Os = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
9108
+ function Bs(e, r) {
9092
9109
  let t;
9093
9110
  function n(...p) {
9094
9111
  t && clearTimeout(t), t = setTimeout(() => {
@@ -9107,101 +9124,101 @@ function it(e, r) {
9107
9124
  };
9108
9125
  }
9109
9126
  var Te = () => Date.now(), wa = 2147483647;
9110
- function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle: t = 0, element: n = ws, events: p = As, timers: g = void 0, immediateEvents: b = [], onPresenceChange: f = () => {
9127
+ function Hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle: t = 0, element: n = As, events: p = Os, timers: g = void 0, immediateEvents: b = [], onPresenceChange: f = () => {
9111
9128
  }, onPrompt: l = () => {
9112
9129
  }, onIdle: a = () => {
9113
9130
  }, onActive: i = () => {
9114
9131
  }, onAction: s = () => {
9115
9132
  }, onMessage: o = () => {
9116
- }, debounce: u = 0, throttle: m = 0, eventsThrottle: c = 200, startOnMount: d = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: S = !1 } = {}) {
9117
- let R = ee(Te()), B = ee(Te()), k = ee(null), T = ee(null), F = ee(0), N = ee(0), E = ee(0), D = ee(0), L = ee(!1), A = ee(!1), O = ee(!1), H = ee(!0), W = ee(!1), M = ee(null), G = ee(null), w = ee(e), P = ee(0);
9133
+ }, debounce: u = 0, throttle: m = 0, eventsThrottle: c = 200, startOnMount: d = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: E = !1 } = {}) {
9134
+ let M = X(Te()), B = X(Te()), k = X(null), T = X(null), P = X(0), A = X(0), S = X(0), D = X(0), N = X(!1), F = X(!1), O = X(!1), H = X(!0), W = X(!1), G = X(null), L = X(null), w = X(e), R = X(0);
9118
9135
  pe(() => {
9119
9136
  if (r && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && r) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
9120
9137
  if (e >= wa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${wa}.`);
9121
9138
  if (r >= wa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${wa}.`);
9122
9139
  if (t >= wa) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${wa}.`);
9123
9140
  if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
9124
- if (t ? (w.current = e - t, P.current = t) : (w.current = e, P.current = r), !H.current) {
9125
- if (y || S) return;
9126
- L.current && (le.current(null, Se), G.current && G.current.active()), Ke();
9141
+ if (t ? (w.current = e - t, R.current = t) : (w.current = e, R.current = r), !H.current) {
9142
+ if (y || E) return;
9143
+ N.current && (le.current(null, Se), L.current && L.current.active()), Ke();
9127
9144
  }
9128
- }, [e, r, t, y, S]);
9129
- let K = ee(_);
9145
+ }, [e, r, t, y, E]);
9146
+ let K = X(_);
9130
9147
  pe(() => {
9131
9148
  K.current = _;
9132
9149
  }, [_]);
9133
- let q = ee(b), Q = ee(n), J = ee([...(/* @__PURE__ */ new Set([...p, ...b])).values()]), X = ee(S);
9150
+ let q = X(b), Q = X(n), J = X([...(/* @__PURE__ */ new Set([...p, ...b])).values()]), ee = X(E);
9134
9151
  pe(() => {
9135
- X.current = S, !H.current && (S ? Ie() : y || Ke());
9136
- }, [S]);
9137
- let ie = ee(f);
9152
+ ee.current = E, !H.current && (E ? Ie() : y || Ke());
9153
+ }, [E]);
9154
+ let ie = X(f);
9138
9155
  pe(() => {
9139
9156
  ie.current = f;
9140
9157
  }, [f]);
9141
- let _e = ee(l);
9158
+ let _e = X(l);
9142
9159
  pe(() => {
9143
9160
  _e.current = l;
9144
9161
  }, [l]);
9145
- let ye = ee(a);
9162
+ let ye = X(a);
9146
9163
  pe(() => {
9147
9164
  ye.current = a;
9148
9165
  }, [a]);
9149
- let le = ee(i);
9166
+ let le = X(i);
9150
9167
  pe(() => {
9151
9168
  le.current = i;
9152
9169
  }, [i]);
9153
- let ce = ee(s);
9170
+ let ce = X(s);
9154
9171
  pe(() => {
9155
9172
  ce.current = s;
9156
9173
  }, [s]);
9157
- let ke = ee(o);
9174
+ let ke = X(o);
9158
9175
  pe(() => {
9159
9176
  ke.current = o;
9160
9177
  }, [o]);
9161
9178
  let Ue = Oa(() => {
9162
9179
  let V = (De, ta) => ce.current(De, ta);
9163
- return u > 0 ? Os(V, u) : m > 0 ? it(V, m) : V;
9164
- }, [m, u]), ze = ee();
9180
+ return u > 0 ? Bs(V, u) : m > 0 ? it(V, m) : V;
9181
+ }, [m, u]), ze = X();
9165
9182
  pe(() => {
9166
9183
  U && v && (ze.current = it(() => {
9167
- G.current.active();
9184
+ L.current.active();
9168
9185
  }, v));
9169
9186
  }, [U, v]);
9170
9187
  let Ce = () => {
9171
- M.current !== null && ($e.clearTimeout(M.current), M.current = null);
9188
+ G.current !== null && ($e.clearTimeout(G.current), G.current = null);
9172
9189
  }, Ge = (V, De = !0) => {
9173
- Ce(), M.current = $e.setTimeout(Oe, V || w.current), De && (T.current = Te());
9190
+ Ce(), G.current = $e.setTimeout(Oe, V || w.current), De && (T.current = Te());
9174
9191
  }, ea = (V) => {
9175
- !A.current && !L.current && (_e.current(V, Se), ie.current({ type: "active", prompted: !0 }, Se)), D.current = 0, E.current = Te(), A.current = !0, Ge(P.current, !1);
9192
+ !F.current && !N.current && (_e.current(V, Se), ie.current({ type: "active", prompted: !0 }, Se)), D.current = 0, S.current = Te(), F.current = !0, Ge(R.current, !1);
9176
9193
  }, Me = () => {
9177
- Ce(), L.current || (ye.current(null, Se), ie.current({ type: "idle" }, Se)), L.current = !0, k.current = Te(), K.current ? Re() : A.current && (E.current = 0, A.current = !1);
9194
+ Ce(), N.current || (ye.current(null, Se), ie.current({ type: "idle" }, Se)), N.current = !0, k.current = Te(), K.current ? Re() : F.current && (S.current = 0, F.current = !1);
9178
9195
  }, ve = (V) => {
9179
- Ce(), (L.current || A.current) && (le.current(V, Se), ie.current({ type: "active", prompted: !1 }, Se)), A.current = !1, E.current = 0, L.current = !1, F.current += Te() - k.current, N.current += Te() - k.current, xe(), Ge();
9196
+ Ce(), (N.current || F.current) && (le.current(V, Se), ie.current({ type: "active", prompted: !1 }, Se)), F.current = !1, S.current = 0, N.current = !1, P.current += Te() - k.current, A.current += Te() - k.current, xe(), Ge();
9180
9197
  }, Oe = (V) => {
9181
- if (!L.current) {
9198
+ if (!N.current) {
9182
9199
  Ue.cancel && Ue.cancel();
9183
9200
  let De = Te() - T.current;
9184
- if (!(w.current + P.current < De) && P.current > 0 && !A.current) {
9185
- G.current ? G.current.prompt() : ea(V);
9201
+ if (!(w.current + R.current < De) && R.current > 0 && !F.current) {
9202
+ L.current ? L.current.prompt() : ea(V);
9186
9203
  return;
9187
9204
  }
9188
- G.current ? G.current.idle() : Me();
9205
+ L.current ? L.current.idle() : Me();
9189
9206
  return;
9190
9207
  }
9191
- G.current ? G.current.active() : ve(V);
9208
+ L.current ? L.current.active() : ve(V);
9192
9209
  }, aa = (V) => {
9193
- if (!d && !T.current && (T.current = Te(), le.current(null, Se)), Ue(V, Se), A.current) return;
9194
- if (Ce(), !L.current && q.current.includes(V.type)) {
9210
+ if (!d && !T.current && (T.current = Te(), le.current(null, Se)), Ue(V, Se), F.current) return;
9211
+ if (Ce(), !N.current && q.current.includes(V.type)) {
9195
9212
  Oe(V);
9196
9213
  return;
9197
9214
  }
9198
9215
  let De = Te() - T.current;
9199
- if (L.current && !_ || !L.current && De >= w.current) {
9216
+ if (N.current && !_ || !N.current && De >= w.current) {
9200
9217
  Oe(V);
9201
9218
  return;
9202
9219
  }
9203
- O.current = !1, D.current = 0, E.current = 0, Ge(), U && v && ze.current();
9204
- }, ia = ee(aa);
9220
+ O.current = !1, D.current = 0, S.current = 0, Ge(), U && v && ze.current();
9221
+ }, ia = X(aa);
9205
9222
  pe(() => {
9206
9223
  let V = W.current;
9207
9224
  V && Re(), c > 0 ? ia.current = it(aa, c) : ia.current = aa, V && xe();
@@ -9214,28 +9231,28 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
9214
9231
  pa && Q.current && (W.current || V) && (J.current.forEach((De) => {
9215
9232
  Q.current.removeEventListener(De, ia.current, { capture: !0 });
9216
9233
  }), W.current = !1);
9217
- }, Ke = I((V) => X.current ? !1 : (Ce(), xe(), L.current = !1, A.current = !1, O.current = !1, D.current = 0, E.current = 0, G.current && !V && G.current.start(), Ge(), !0), [M, L, X, w, G]), oa = I((V) => X.current ? !1 : (Ce(), xe(), B.current = Te(), F.current += Te() - k.current, N.current += Te() - k.current, F.current = 0, L.current = !1, A.current = !1, O.current = !1, D.current = 0, E.current = 0, G.current && !V && G.current.reset(), y || Ge(), !0), [M, L, w, y, X, G]), ga = I((V) => X.current ? !1 : (Ce(), xe(), (L.current || A.current) && ve(), L.current = !1, A.current = !1, O.current = !1, D.current = 0, E.current = 0, B.current = Te(), G.current && !V && G.current.activate(), Ge(), !0), [M, L, A, X, w, G]), Ie = I((V = !1) => X.current || O.current ? !1 : (D.current = Ua(), O.current = !0, Re(), Ce(), G.current && !V && G.current.pause(), !0), [M, X, G]), qe = I((V = !1) => X.current || !O.current ? !1 : (O.current = !1, A.current || xe(), L.current || Ge(D.current), E.current && (E.current = Te()), G.current && !V && G.current.resume(), !0), [M, w, X, D, G]), Wa = I((V, De) => (G.current ? (De && ke.current(V, Se), G.current.message(V)) : De && ke.current(V, Se), !0), [o]), Ea = I(() => L.current, [L]), Na = I(() => A.current, [A]), za = I(() => G.current ? G.current.isLeader : null, [G]), Ia = I(() => G.current ? G.current.isLastActive : null, [G]), da = I(() => G.current ? G.current.token : null, [G]), Ua = I(() => {
9234
+ }, Ke = I((V) => ee.current ? !1 : (Ce(), xe(), N.current = !1, F.current = !1, O.current = !1, D.current = 0, S.current = 0, L.current && !V && L.current.start(), Ge(), !0), [G, N, ee, w, L]), oa = I((V) => ee.current ? !1 : (Ce(), xe(), B.current = Te(), P.current += Te() - k.current, A.current += Te() - k.current, P.current = 0, N.current = !1, F.current = !1, O.current = !1, D.current = 0, S.current = 0, L.current && !V && L.current.reset(), y || Ge(), !0), [G, N, w, y, ee, L]), ga = I((V) => ee.current ? !1 : (Ce(), xe(), (N.current || F.current) && ve(), N.current = !1, F.current = !1, O.current = !1, D.current = 0, S.current = 0, B.current = Te(), L.current && !V && L.current.activate(), Ge(), !0), [G, N, F, ee, w, L]), Ie = I((V = !1) => ee.current || O.current ? !1 : (D.current = Ua(), O.current = !0, Re(), Ce(), L.current && !V && L.current.pause(), !0), [G, ee, L]), qe = I((V = !1) => ee.current || !O.current ? !1 : (O.current = !1, F.current || xe(), N.current || Ge(D.current), S.current && (S.current = Te()), L.current && !V && L.current.resume(), !0), [G, w, ee, D, L]), Wa = I((V, De) => (L.current ? (De && ke.current(V, Se), L.current.message(V)) : De && ke.current(V, Se), !0), [o]), Ea = I(() => N.current, [N]), Na = I(() => F.current, [F]), za = I(() => L.current ? L.current.isLeader : null, [L]), Ia = I(() => L.current ? L.current.isLastActive : null, [L]), da = I(() => L.current ? L.current.token : null, [L]), Ua = I(() => {
9218
9235
  if (O.current) return D.current;
9219
- let V = D.current ? D.current : P.current + w.current, De = T.current ? Te() - T.current : 0, ta = Math.floor(V - De);
9236
+ let V = D.current ? D.current : R.current + w.current, De = T.current ? Te() - T.current : 0, ta = Math.floor(V - De);
9220
9237
  return ta < 0 ? 0 : Math.abs(ta);
9221
- }, [w, P, A, D, T]), Ze = I(() => Math.round(Te() - B.current), [B]), ca = I(() => Math.round(Te() - R.current), [R]), fa = I(() => k.current ? new Date(k.current) : null, [k]), La = I(() => T.current ? new Date(T.current) : null, [T]), Ga = I(() => L.current ? Math.round(Te() - k.current + F.current) : Math.round(F.current), [k, F]), ba = I(() => L.current ? Math.round(Te() - k.current + N.current) : Math.round(N.current), [k, N]), Ma = I(() => {
9238
+ }, [w, R, F, D, T]), Ze = I(() => Math.round(Te() - B.current), [B]), ca = I(() => Math.round(Te() - M.current), [M]), fa = I(() => k.current ? new Date(k.current) : null, [k]), La = I(() => T.current ? new Date(T.current) : null, [T]), Ga = I(() => N.current ? Math.round(Te() - k.current + P.current) : Math.round(P.current), [k, P]), ba = I(() => N.current ? Math.round(Te() - k.current + A.current) : Math.round(A.current), [k, A]), Ma = I(() => {
9222
9239
  let V = Math.round(Ze() - Ga());
9223
9240
  return V >= 0 ? V : 0;
9224
- }, [k, F]), Ra = I(() => {
9241
+ }, [k, P]), Ra = I(() => {
9225
9242
  let V = Math.round(ca() - ba());
9226
9243
  return V >= 0 ? V : 0;
9227
- }, [k, F]);
9244
+ }, [k, P]);
9228
9245
  pe(() => {
9229
9246
  if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
9230
- g && Ls(g);
9247
+ g && Gs(g);
9231
9248
  let V = () => {
9232
- G.current && G.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
9249
+ L.current && L.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
9233
9250
  };
9234
9251
  return pa && window.addEventListener("beforeunload", V), () => {
9235
- pa && window.removeEventListener("beforeunload", V), G.current && G.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
9252
+ pa && window.removeEventListener("beforeunload", V), L.current && L.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
9236
9253
  };
9237
9254
  }, []), pe(() => {
9238
- G.current && G.current.close(), U ? G.current = new Fs({ channelName: C, leaderElection: x, onPrompt: () => {
9255
+ L.current && L.current.close(), U ? L.current = new ws({ channelName: C, leaderElection: x, onPrompt: () => {
9239
9256
  ea();
9240
9257
  }, onIdle: () => {
9241
9258
  Me();
@@ -9243,16 +9260,16 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
9243
9260
  ve();
9244
9261
  }, onMessage: (V) => {
9245
9262
  ke.current(V, Se);
9246
- }, start: Ke, reset: oa, activate: ga, pause: Ie, resume: qe }) : G.current = null;
9263
+ }, start: Ke, reset: oa, activate: ga, pause: Ie, resume: qe }) : L.current = null;
9247
9264
  }, [U, C, x, _e, ye, le, ke, Ke, oa, Ie, qe]), pe(() => {
9248
- H.current || (Ce(), Re(!0)), !(y || S) && (d ? Ke() : xe());
9249
- }, [y, d, S, H]), pe(() => {
9265
+ H.current || (Ce(), Re(!0)), !(y || E) && (d ? Ke() : xe());
9266
+ }, [y, d, E, H]), pe(() => {
9250
9267
  if (!H.current) {
9251
9268
  let V = [...(/* @__PURE__ */ new Set([...p, ...b])).values()];
9252
- if (Re(), J.current = V, Q.current = n, q.current = b, y || S) return;
9269
+ if (Re(), J.current = V, Q.current = n, q.current = b, y || E) return;
9253
9270
  d ? Ke() : xe();
9254
9271
  }
9255
- }, [n, JSON.stringify(p), JSON.stringify(b), H, S, y, d]), pe(() => {
9272
+ }, [n, JSON.stringify(p), JSON.stringify(b), H, E, y, d]), pe(() => {
9256
9273
  H.current && (H.current = !1);
9257
9274
  }, [H]);
9258
9275
  let Se = { message: Wa, start: Ke, reset: oa, activate: ga, pause: Ie, resume: qe, isIdle: Ea, isPrompted: Na, isLeader: za, isLastActiveTab: Ia, getTabId: da, getRemainingTime: Ua, getElapsedTime: Ze, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: ba, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
@@ -9270,9 +9287,9 @@ function Bs({ timeout: e = 1e3 * 60 * 20, promptTimeout: r = 0, promptBeforeIdle
9270
9287
  } };
9271
9288
  return Se;
9272
9289
  }
9273
- var Hs = zi(null);
9274
- Hs.Consumer;
9275
- const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9290
+ var Ws = zi(null);
9291
+ Ws.Consumer;
9292
+ const jm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Hs({
9276
9293
  onIdle: e,
9277
9294
  onActive: r,
9278
9295
  onAction: t,
@@ -9297,8 +9314,8 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9297
9314
  default:
9298
9315
  return "En";
9299
9316
  }
9300
- }, Fn = "game-icon-ds88", jm = ({ gameData: e = {} } = {}) => {
9301
- const { lng: r } = oe(), t = Pn(r), {
9317
+ }, Fn = "game-icon-ds88", Ym = ({ gameData: e = {} } = {}) => {
9318
+ const { lng: r } = se(), t = Pn(r), {
9302
9319
  gameCode: n,
9303
9320
  // 遊戲代碼
9304
9321
  gameUid: p,
@@ -9336,7 +9353,7 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9336
9353
  // 越南名稱
9337
9354
  gameNameTw: C
9338
9355
  // 繁體中文名稱
9339
- } = e, v = e?.[`gameName${Pn(t)}`], x = `${Et}/${Fn}/en/${a}/${Tt(n, / /g, "_")}.webp`, S = `${Et}/${Fn}/en/${a}/${Tt(n, / /g, "_")}.gif`;
9356
+ } = e, v = e?.[`gameName${Pn(t)}`], x = `${Et}/${Fn}/en/${a}/${Tt(n, / /g, "_")}.webp`, E = `${Et}/${Fn}/en/${a}/${Tt(n, / /g, "_")}.gif`;
9340
9357
  return {
9341
9358
  gameCode: n,
9342
9359
  gameUid: p,
@@ -9358,9 +9375,9 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9358
9375
  gameNameTw: C,
9359
9376
  gameName: v,
9360
9377
  gameImageUrl: x,
9361
- gameImageUrlAnimated: S
9378
+ gameImageUrlAnimated: E
9362
9379
  };
9363
- }, Ws = (e, r = !1) => Wl([
9380
+ }, zs = (e, r = !1) => Wl([
9364
9381
  "EVO",
9365
9382
  "IMSPRIBE",
9366
9383
  "SABA",
@@ -9371,7 +9388,7 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9371
9388
  "HACK",
9372
9389
  "NAGA",
9373
9390
  "RSG"
9374
- ], e) && r ? `${e}_dark` : e, Ym = ({ platformData: e, darkMode: r } = {}) => {
9391
+ ], e) && r ? `${e}_dark` : e, Xm = ({ platformData: e, darkMode: r } = {}) => {
9375
9392
  const {
9376
9393
  SubPlatformEnum: t,
9377
9394
  // 子平台枚舉
@@ -9393,7 +9410,7 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9393
9410
  // 臨時維護開始時間
9394
9411
  temp_maintenance_end_time: s
9395
9412
  // 臨時維護結束時間
9396
- } = e || {}, o = `${je}/${Kn}/${Ws(n, r)}.png`;
9413
+ } = e || {}, o = `${je}/${Kn}/${zs(n, r)}.png`;
9397
9414
  return {
9398
9415
  subPlatformEnum: t,
9399
9416
  platformEnum: n,
@@ -9407,12 +9424,12 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9407
9424
  tempMaintenanceEndTime: s,
9408
9425
  platformImageUrl: o
9409
9426
  };
9410
- }, zs = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), wn = (e = []) => !la(e) || Ee(e) ? [] : We(e, "platform"), Is = (e = []) => !la(e) || Ee(e) ? [] : We(e, "gameTypeName"), Vs = (e = []) => !la(e) || Ee(e) ? [] : We(e, "game_subtype"), Zs = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), Js = (e = [], r = []) => !la(e) || Ee(e) ? {} : !la(r) || Ee(r) ? {} : e.reduce((t, n) => {
9427
+ }, Is = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), wn = (e = []) => !la(e) || Ee(e) ? [] : We(e, "platform"), Vs = (e = []) => !la(e) || Ee(e) ? [] : We(e, "gameTypeName"), Zs = (e = []) => !la(e) || Ee(e) ? [] : We(e, "game_subtype"), Js = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), Ks = (e = [], r = []) => !la(e) || Ee(e) ? {} : !la(r) || Ee(r) ? {} : e.reduce((t, n) => {
9411
9428
  const p = r.map((g) => g.game_subtype);
9412
9429
  return p.forEach((g) => {
9413
9430
  t[g] = t[g] || [];
9414
9431
  }), p.includes(n.game_subtype) && t[n.game_subtype].push(n), t;
9415
- }, {}), Ks = ({
9432
+ }, {}), qs = ({
9416
9433
  gameTypes: e = [],
9417
9434
  platforms: r = [],
9418
9435
  gameList: t = {},
@@ -9427,7 +9444,7 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9427
9444
  allPlatforms: p
9428
9445
  });
9429
9446
  return Ee(f) || (g[b] = f), g;
9430
- }, {}), Xm = ({
9447
+ }, {}), eu = ({
9431
9448
  types: e = [],
9432
9449
  platforms: r = [],
9433
9450
  allGameType: t = [],
@@ -9445,9 +9462,9 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9445
9462
  return Ee(o) ? i : { ...i, [s]: o };
9446
9463
  }, {});
9447
9464
  return Ee(a) || (g[b] = a), g;
9448
- }, {}), qs = (e = {}) => !Ii(e) || Ee(e) ? {} : Object.values(e).reduce((t, n) => (Object.entries(n).forEach(([p, g]) => {
9465
+ }, {}), $s = (e = {}) => !Ii(e) || Ee(e) ? {} : Object.values(e).reduce((t, n) => (Object.entries(n).forEach(([p, g]) => {
9449
9466
  t[p] ? t[p] = [...t[p], ...g] : t[p] = g;
9450
- }), t), {}), $s = (e = {}) => {
9467
+ }), t), {}), Qs = (e = {}) => {
9451
9468
  if (!Ii(e) || Ee(e)) return {};
9452
9469
  const r = {};
9453
9470
  for (const [t, n] of Object.entries(e)) {
@@ -9458,7 +9475,7 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9458
9475
  }
9459
9476
  }
9460
9477
  return r;
9461
- }, Qs = ({
9478
+ }, js = ({
9462
9479
  allGameList: e = {},
9463
9480
  allGamePlatform: r = [],
9464
9481
  allGameType: t = [],
@@ -9471,34 +9488,34 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9471
9488
  highlightGames: a = [],
9472
9489
  originPlatform: i = []
9473
9490
  }) => {
9474
- const s = zs(e), o = wn(r), u = Is(t), m = Vs(n), c = wn(i), d = Zs(f), y = Ks({
9491
+ const s = Is(e), o = wn(r), u = Vs(t), m = Zs(n), c = wn(i), d = Js(f), y = qs({
9475
9492
  gameTypes: u,
9476
9493
  platforms: o,
9477
9494
  gameList: e,
9478
9495
  allGameTypes: t,
9479
9496
  allPlatforms: r
9480
- }), _ = We(r, (R) => {
9481
- const B = `${je}/${Kn}/${R.platformEnum}.png`;
9497
+ }), _ = We(r, (M) => {
9498
+ const B = `${je}/${Kn}/${M.platformEnum}.png`;
9482
9499
  return {
9483
- ...R,
9500
+ ...M,
9484
9501
  platformImageUrl: B
9485
9502
  };
9486
- }), U = Js(s, n), C = qs(y), v = $s(C), x = Wn(y).reduce(
9487
- (R, [B, k]) => {
9503
+ }), U = Ks(s, n), C = $s(y), v = Qs(C), x = Wn(y).reduce(
9504
+ (M, [B, k]) => {
9488
9505
  const T = Vi(zl(k));
9489
- return R[B] = T, R;
9506
+ return M[B] = T, M;
9490
9507
  },
9491
9508
  {}
9492
- ), S = kt(y).reduce((R, B) => {
9509
+ ), E = kt(y).reduce((M, B) => {
9493
9510
  const k = kt(y[B]);
9494
- return R[B] = k, R;
9511
+ return M[B] = k, M;
9495
9512
  }, {});
9496
9513
  return {
9497
9514
  platform: {
9498
9515
  all: o,
9499
9516
  origin: c,
9500
9517
  originPlatform: _,
9501
- byGameType: S
9518
+ byGameType: E
9502
9519
  },
9503
9520
  type: {
9504
9521
  main: u,
@@ -9526,12 +9543,12 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9526
9543
  favorite: d
9527
9544
  }
9528
9545
  };
9529
- }, eu = (e = []) => !la(e) || Ee(e) ? [] : Vi(e, (r) => Ee(r.SubPlatformEnum) ? r : r.SubPlatformEnum.map((t) => ({
9546
+ }, au = (e = []) => !la(e) || Ee(e) ? [] : Vi(e, (r) => Ee(r.SubPlatformEnum) ? r : r.SubPlatformEnum.map((t) => ({
9530
9547
  ...r,
9531
9548
  ...t,
9532
9549
  platform: t.SubPlatformEnum,
9533
9550
  platformEnum: t.SubPlatformEnum
9534
- }))), js = {
9551
+ }))), Ys = {
9535
9552
  platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
9536
9553
  type: { main: [], sub: [], originMain: [], originSub: [] },
9537
9554
  gameList: {
@@ -9551,8 +9568,8 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9551
9568
  byGameType: {}
9552
9569
  },
9553
9570
  user: { favorite: [] }
9554
- }, Ys = ({ enabled: e = !0 } = {}) => {
9555
- const { getToken: r } = oe(), { userFavoriteGameApi: t, userGameListApi: n } = ue(), { data: p, isLoading: g, error: b, refetch: f } = ne({
9571
+ }, Xs = ({ enabled: e = !0 } = {}) => {
9572
+ const { getToken: r } = se(), { userFavoriteGameApi: t, userGameListApi: n } = ue(), { data: p, isLoading: g, error: b, refetch: f } = ne({
9556
9573
  queryKey: ["gamesInfo"],
9557
9574
  queryFn: async () => {
9558
9575
  let l = {}, a = {};
@@ -9561,7 +9578,7 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9561
9578
  } catch (i) {
9562
9579
  console.warn("Failed to fetch favorite games:", i);
9563
9580
  }
9564
- return Qs({
9581
+ return js({
9565
9582
  allGameList: a.gameTypeGroup || window.gameTypeGroup || {},
9566
9583
  allGamePlatform: a.platforms || window.platforms || [],
9567
9584
  allGameType: a.gameType || window.gameType || [],
@@ -9584,12 +9601,12 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
9584
9601
  refetchOnWindowFocus: !1
9585
9602
  });
9586
9603
  return {
9587
- gamesInfo: p || js,
9604
+ gamesInfo: p || Ys,
9588
9605
  isLoading: g,
9589
9606
  error: b,
9590
9607
  refetch: f
9591
9608
  };
9592
- }, Xs = (e = !1) => {
9609
+ }, em = (e = !1) => {
9593
9610
  if (!e && window.gameTypeGroup) {
9594
9611
  console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
9595
9612
  return;
@@ -36116,18 +36133,18 @@ const Qm = ({ onIdle: e, onActive: r, onAction: t, timeout: n = 6e5 }) => Bs({
36116
36133
  is_invalid_bet: 0
36117
36134
  }
36118
36135
  });
36119
- }, em = ({
36136
+ }, am = ({
36120
36137
  children: e,
36121
36138
  autoFetch: r = !1,
36122
36139
  mockData: t = !1
36123
36140
  }) => {
36124
36141
  pe(() => {
36125
- t && Xs(!0);
36142
+ t && em(!0);
36126
36143
  }, [t]);
36127
- const n = Ys({ enabled: r });
36144
+ const n = Xs({ enabled: r });
36128
36145
  return /* @__PURE__ */ we.jsx(qn.Provider, { value: n, children: e });
36129
36146
  };
36130
- function au({
36147
+ function iu({
36131
36148
  children: e,
36132
36149
  autoFetchGamesInfo: r = !1,
36133
36150
  useMockData: t = !1,
@@ -36149,7 +36166,7 @@ function au({
36149
36166
  []
36150
36167
  ), l = n || f;
36151
36168
  return /* @__PURE__ */ we.jsx(Ol, { client: l, children: /* @__PURE__ */ we.jsx(zn.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ we.jsx(ql, { children: /* @__PURE__ */ we.jsx(
36152
- em,
36169
+ am,
36153
36170
  {
36154
36171
  autoFetch: r,
36155
36172
  mockData: t,
@@ -36157,9 +36174,9 @@ function au({
36157
36174
  }
36158
36175
  ) }) }) });
36159
36176
  }
36160
- const iu = ({ onFunction: e = () => {
36177
+ const tu = ({ onFunction: e = () => {
36161
36178
  }, buttonProps: r = {} } = {}) => {
36162
- const { lineConfig: t } = oe(), n = ee(!1), p = ge(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), f = g.get("trans_code"), l = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: s, isPending: o } = tl({
36179
+ const { lineConfig: t } = se(), n = X(!1), p = ge(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), f = g.get("trans_code"), l = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: s, isPending: o } = tl({
36163
36180
  options: {
36164
36181
  onSuccess: (m) => {
36165
36182
  e(m);
@@ -36197,7 +36214,7 @@ const iu = ({ onFunction: e = () => {
36197
36214
  }
36198
36215
  ) : null;
36199
36216
  };
36200
- var am = Object.defineProperty, Wi = Object.getOwnPropertySymbols, hl = Object.prototype.hasOwnProperty, Tl = Object.prototype.propertyIsEnumerable, An = (e, r, t) => r in e ? am(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, st = (e, r) => {
36217
+ var im = Object.defineProperty, Wi = Object.getOwnPropertySymbols, hl = Object.prototype.hasOwnProperty, Tl = Object.prototype.propertyIsEnumerable, An = (e, r, t) => r in e ? im(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, st = (e, r) => {
36201
36218
  for (var t in r || (r = {}))
36202
36219
  hl.call(r, t) && An(e, t, r[t]);
36203
36220
  if (Wi)
@@ -36749,12 +36766,12 @@ var xa;
36749
36766
  })(e.QrSegment || (e.QrSegment = {}));
36750
36767
  })(xa || (xa = {}));
36751
36768
  var Aa = xa;
36752
- var im = {
36769
+ var tm = {
36753
36770
  L: Aa.QrCode.Ecc.LOW,
36754
36771
  M: Aa.QrCode.Ecc.MEDIUM,
36755
36772
  Q: Aa.QrCode.Ecc.QUARTILE,
36756
36773
  H: Aa.QrCode.Ecc.HIGH
36757
- }, kl = 128, xl = "L", Sl = "#FFFFFF", Dl = "#000000", El = !1, Nl = 1, tm = 4, nm = 0, lm = 0.1;
36774
+ }, kl = 128, xl = "L", Sl = "#FFFFFF", Dl = "#000000", El = !1, Nl = 1, nm = 4, lm = 0, rm = 0.1;
36758
36775
  function Ll(e, r = 0) {
36759
36776
  const t = [];
36760
36777
  return e.forEach(function(n, p) {
@@ -36781,10 +36798,10 @@ function Ll(e, r = 0) {
36781
36798
  function Gl(e, r) {
36782
36799
  return e.slice().map((t, n) => n < r.y || n >= r.y + r.h ? t : t.map((p, g) => g < r.x || g >= r.x + r.w ? p : !1));
36783
36800
  }
36784
- function rm(e, r, t, n) {
36801
+ function om(e, r, t, n) {
36785
36802
  if (n == null)
36786
36803
  return null;
36787
- const p = e.length + t * 2, g = Math.floor(r * lm), b = p / r, f = (n.width || g) * b, l = (n.height || g) * b, a = n.x == null ? e.length / 2 - f / 2 : n.x * b, i = n.y == null ? e.length / 2 - l / 2 : n.y * b, s = n.opacity == null ? 1 : n.opacity;
36804
+ const p = e.length + t * 2, g = Math.floor(r * rm), b = p / r, f = (n.width || g) * b, l = (n.height || g) * b, a = n.x == null ? e.length / 2 - f / 2 : n.x * b, i = n.y == null ? e.length / 2 - l / 2 : n.y * b, s = n.opacity == null ? 1 : n.opacity;
36788
36805
  let o = null;
36789
36806
  if (n.excavate) {
36790
36807
  let m = Math.floor(a), c = Math.floor(i), d = Math.ceil(f + a - m), y = Math.ceil(l + i - c);
@@ -36793,8 +36810,8 @@ function rm(e, r, t, n) {
36793
36810
  const u = n.crossOrigin;
36794
36811
  return { x: a, y: i, h: l, w: f, excavation: o, opacity: s, crossOrigin: u };
36795
36812
  }
36796
- function om(e, r) {
36797
- return r != null ? Math.max(Math.floor(r), 0) : e ? tm : nm;
36813
+ function sm(e, r) {
36814
+ return r != null ? Math.max(Math.floor(r), 0) : e ? nm : lm;
36798
36815
  }
36799
36816
  function Ml({
36800
36817
  value: e,
@@ -36810,7 +36827,7 @@ function Ml({
36810
36827
  const m = (Array.isArray(e) ? e : [e]).reduce((c, d) => (c.push(...Aa.QrSegment.makeSegments(d)), c), []);
36811
36828
  return Aa.QrCode.encodeSegments(
36812
36829
  m,
36813
- im[r],
36830
+ tm[r],
36814
36831
  t,
36815
36832
  void 0,
36816
36833
  void 0,
@@ -36819,7 +36836,7 @@ function Ml({
36819
36836
  }, [e, r, t, f]);
36820
36837
  const { cells: a, margin: i, numCells: s, calculatedImageSettings: o } = de.useMemo(() => {
36821
36838
  let u = l.getModules();
36822
- const m = om(n, p), c = u.length + m * 2, d = rm(
36839
+ const m = sm(n, p), c = u.length + m * 2, d = om(
36823
36840
  u,
36824
36841
  b,
36825
36842
  m,
@@ -36840,14 +36857,14 @@ function Ml({
36840
36857
  calculatedImageSettings: o
36841
36858
  };
36842
36859
  }
36843
- var sm = (function() {
36860
+ var mm = (function() {
36844
36861
  try {
36845
36862
  new Path2D().addPath(new Path2D());
36846
36863
  } catch {
36847
36864
  return !1;
36848
36865
  }
36849
36866
  return !0;
36850
- })(), mm = de.forwardRef(
36867
+ })(), um = de.forwardRef(
36851
36868
  function(r, t) {
36852
36869
  const n = r, {
36853
36870
  value: p,
@@ -36872,11 +36889,11 @@ var sm = (function() {
36872
36889
  "marginSize",
36873
36890
  "imageSettings"
36874
36891
  ]), { style: d } = c, y = mt(c, ["style"]), _ = u?.src, U = de.useRef(null), C = de.useRef(null), v = de.useCallback(
36875
- (E) => {
36876
- U.current = E, typeof t == "function" ? t(E) : t && (t.current = E);
36892
+ (S) => {
36893
+ U.current = S, typeof t == "function" ? t(S) : t && (t.current = S);
36877
36894
  },
36878
36895
  [t]
36879
- ), [x, S] = de.useState(!1), { margin: R, cells: B, numCells: k, calculatedImageSettings: T } = Ml({
36896
+ ), [x, E] = de.useState(!1), { margin: M, cells: B, numCells: k, calculatedImageSettings: T } = Ml({
36880
36897
  value: p,
36881
36898
  level: b,
36882
36899
  minVersion: i,
@@ -36888,43 +36905,43 @@ var sm = (function() {
36888
36905
  });
36889
36906
  de.useEffect(() => {
36890
36907
  if (U.current != null) {
36891
- const E = U.current, D = E.getContext("2d");
36908
+ const S = U.current, D = S.getContext("2d");
36892
36909
  if (!D)
36893
36910
  return;
36894
- let L = B;
36895
- const A = C.current, O = T != null && A !== null && A.complete && A.naturalHeight !== 0 && A.naturalWidth !== 0;
36896
- O && T.excavation != null && (L = Gl(
36911
+ let N = B;
36912
+ const F = C.current, O = T != null && F !== null && F.complete && F.naturalHeight !== 0 && F.naturalWidth !== 0;
36913
+ O && T.excavation != null && (N = Gl(
36897
36914
  B,
36898
36915
  T.excavation
36899
36916
  ));
36900
36917
  const H = window.devicePixelRatio || 1;
36901
- E.height = E.width = g * H;
36918
+ S.height = S.width = g * H;
36902
36919
  const W = g / k * H;
36903
- D.scale(W, W), D.fillStyle = f, D.fillRect(0, 0, k, k), D.fillStyle = l, sm ? D.fill(new Path2D(Ll(L, R))) : B.forEach(function(M, G) {
36904
- M.forEach(function(w, P) {
36905
- w && D.fillRect(P + R, G + R, 1, 1);
36920
+ D.scale(W, W), D.fillStyle = f, D.fillRect(0, 0, k, k), D.fillStyle = l, mm ? D.fill(new Path2D(Ll(N, M))) : B.forEach(function(G, L) {
36921
+ G.forEach(function(w, R) {
36922
+ w && D.fillRect(R + M, L + M, 1, 1);
36906
36923
  });
36907
36924
  }), T && (D.globalAlpha = T.opacity), O && D.drawImage(
36908
- A,
36909
- T.x + R,
36910
- T.y + R,
36925
+ F,
36926
+ T.x + M,
36927
+ T.y + M,
36911
36928
  T.w,
36912
36929
  T.h
36913
36930
  );
36914
36931
  }
36915
36932
  }), de.useEffect(() => {
36916
- S(!1);
36933
+ E(!1);
36917
36934
  }, [_]);
36918
- const F = st({ height: g, width: g }, d);
36919
- let N = null;
36920
- return _ != null && (N = /* @__PURE__ */ de.createElement(
36935
+ const P = st({ height: g, width: g }, d);
36936
+ let A = null;
36937
+ return _ != null && (A = /* @__PURE__ */ de.createElement(
36921
36938
  "img",
36922
36939
  {
36923
36940
  src: _,
36924
36941
  key: _,
36925
36942
  style: { display: "none" },
36926
36943
  onLoad: () => {
36927
- S(!0);
36944
+ E(!0);
36928
36945
  },
36929
36946
  ref: C,
36930
36947
  crossOrigin: T?.crossOrigin
@@ -36932,16 +36949,16 @@ var sm = (function() {
36932
36949
  )), /* @__PURE__ */ de.createElement(de.Fragment, null, /* @__PURE__ */ de.createElement(
36933
36950
  "canvas",
36934
36951
  st({
36935
- style: F,
36952
+ style: P,
36936
36953
  height: g,
36937
36954
  width: g,
36938
36955
  ref: v,
36939
36956
  role: "img"
36940
36957
  }, y)
36941
- ), N);
36958
+ ), A);
36942
36959
  }
36943
36960
  );
36944
- mm.displayName = "QRCodeCanvas";
36961
+ um.displayName = "QRCodeCanvas";
36945
36962
  var Rl = de.forwardRef(
36946
36963
  function(r, t) {
36947
36964
  const n = r, {
@@ -37020,7 +37037,7 @@ var Rl = de.forwardRef(
37020
37037
  }
37021
37038
  );
37022
37039
  Rl.displayName = "QRCodeSVG";
37023
- const um = {
37040
+ const pm = {
37024
37041
  position: "fixed",
37025
37042
  top: 0,
37026
37043
  left: 0,
@@ -37033,7 +37050,7 @@ const um = {
37033
37050
  justifyContent: "center",
37034
37051
  zIndex: 1e4,
37035
37052
  gap: "2em"
37036
- }, pm = {
37053
+ }, gm = {
37037
37054
  position: "absolute",
37038
37055
  top: "20px",
37039
37056
  right: "20px",
@@ -37064,8 +37081,8 @@ const um = {
37064
37081
  title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
37065
37082
  expired: "Kode QR telah kedaluwarsa"
37066
37083
  }
37067
- }, lu = ({ forcedShow: e = !1, isVisible: r, setIsVisible: t } = {}) => {
37068
- const { lng: n, getToken: p } = oe(), [g, b] = tt(300), [f, l] = tt(!1), a = ee(null), i = Ye(n), s = p?.(), u = new URLSearchParams(window.location.search).get("mac") || lt.get("machine_mac_address") || "", { data: m, isFetching: c } = Ho({
37084
+ }, ru = ({ forcedShow: e = !1, isVisible: r, setIsVisible: t } = {}) => {
37085
+ const { lng: n, getToken: p } = se(), [g, b] = tt(300), [f, l] = tt(!1), a = X(null), i = Ye(n), s = p?.(), u = new URLSearchParams(window.location.search).get("mac") || lt.get("machine_mac_address") || "", { data: m, isFetching: c } = Ho({
37069
37086
  formData: {
37070
37087
  mac_address: u
37071
37088
  },
@@ -37086,11 +37103,11 @@ const um = {
37086
37103
  };
37087
37104
  if (!e && (!u || s)) return null;
37088
37105
  const _ = On[i] || On.en_US;
37089
- return r && /* @__PURE__ */ we.jsxs("div", { style: um, children: [
37106
+ return r && /* @__PURE__ */ we.jsxs("div", { style: pm, children: [
37090
37107
  /* @__PURE__ */ we.jsx(
37091
37108
  "div",
37092
37109
  {
37093
- style: pm,
37110
+ style: gm,
37094
37111
  onClick: () => t(!1),
37095
37112
  role: "button",
37096
37113
  "aria-label": "Close",
@@ -37129,111 +37146,134 @@ const um = {
37129
37146
  )
37130
37147
  ] })
37131
37148
  ] });
37149
+ }, ou = () => {
37150
+ const {
37151
+ mutate: e,
37152
+ isPending: r,
37153
+ isSuccess: t,
37154
+ isError: n,
37155
+ error: p
37156
+ } = Wo(), g = X(!1);
37157
+ return pe(() => {
37158
+ if (g.current) return;
37159
+ const b = new URLSearchParams(window.location.search), f = b.get("bind_type"), l = b.get("bind_id");
37160
+ if (f && l)
37161
+ switch (g.current = !0, f) {
37162
+ case "line":
37163
+ e({ bindType: f, bindId: l });
37164
+ break;
37165
+ default:
37166
+ console.warn(`Unsupported bind type: ${f}`);
37167
+ break;
37168
+ }
37169
+ }, [e]), null;
37132
37170
  };
37133
37171
  export {
37134
37172
  zn as ApiCtx,
37135
- au as ApiProvider,
37173
+ iu as ApiProvider,
37174
+ ou as Bind,
37136
37175
  qn as GamesInfoCtx,
37137
- iu as LineLogin,
37138
- lu as LineQrCode,
37176
+ tu as LineLogin,
37177
+ ru as LineQrCode,
37139
37178
  Ja as STATUS_TYPES,
37140
37179
  In as StatusContext,
37141
37180
  ql as StatusProvider,
37142
- Ks as buildMultiTypes,
37143
- Xm as buildMultiTypesWithSubTypes,
37181
+ qs as buildMultiTypes,
37182
+ eu as buildMultiTypesWithSubTypes,
37144
37183
  jl as buildSinglePlatformWithSubTypes,
37145
37184
  Ql as buildSingleType,
37146
- Js as categorizeGames,
37185
+ Ks as categorizeGames,
37147
37186
  Ye as convertLanguageCode,
37148
- Um as createLogoutHandler,
37149
- Vs as extractGameSubTypeNames,
37150
- Is as extractGameTypeNames,
37187
+ bm as createLogoutHandler,
37188
+ Zs as extractGameSubTypeNames,
37189
+ Vs as extractGameTypeNames,
37151
37190
  wn as extractPlatformNames,
37152
37191
  Yn as filterGamesByPlatform,
37153
37192
  $n as findGameTypeUid,
37154
37193
  Qn as findPlatformUid,
37155
37194
  jn as findSubPlatform,
37156
- zs as flattenAllGames,
37157
- Zs as flattenFavoriteGames,
37158
- bm as formatNumber,
37159
- qs as groupGamesByPlatform,
37160
- $s as groupGamesByPlatformAndSubType,
37195
+ Is as flattenAllGames,
37196
+ Js as flattenFavoriteGames,
37197
+ Cm as formatNumber,
37198
+ $s as groupGamesByPlatform,
37199
+ Qs as groupGamesByPlatformAndSubType,
37161
37200
  $l as groupGamesBySubType,
37162
- Ws as handleDarkImage,
37163
- Xs as initMockWindowData,
37164
- Qs as processGameInfo,
37165
- eu as processPlatformData,
37166
- Sm as useAbandonPoint,
37167
- oe as useApiContext,
37168
- Cm as useBalanceGetter,
37169
- Tm as useBet,
37201
+ zs as handleDarkImage,
37202
+ em as initMockWindowData,
37203
+ js as processGameInfo,
37204
+ au as processPlatformData,
37205
+ Dm as useAbandonPoint,
37206
+ se as useApiContext,
37207
+ vm as useBalanceGetter,
37208
+ km as useBet,
37170
37209
  co as useBetRecord,
37171
37210
  fo as useBetRecordDetail,
37172
- Io as useCheckCurrentEventProgress,
37173
- Vo as useCheckEventStatus,
37174
- xm as useCheckPlayerWager,
37175
- Mm as useClientWebSocket,
37176
- ds as useCurrentRebate,
37177
- Qo as useDepositAction,
37178
- Yo as useDepositTransaction,
37179
- qo as useDepositV1,
37180
- $o as useDepositV2,
37181
- Pm as useEvent,
37182
- zo as useEventList,
37183
- Xo as useEventTransaction,
37184
- Us as useExpiredRewardsList,
37185
- jm as useGameConfig,
37186
- ym as useGameInfoContext,
37187
- Ys as useGamesInfo,
37188
- Fm as useGetCarouseList,
37211
+ Wo as useBindAccount,
37212
+ Vo as useCheckCurrentEventProgress,
37213
+ Zo as useCheckEventStatus,
37214
+ Sm as useCheckPlayerWager,
37215
+ Rm as useClientWebSocket,
37216
+ cs as useCurrentRebate,
37217
+ jo as useDepositAction,
37218
+ Xo as useDepositTransaction,
37219
+ $o as useDepositV1,
37220
+ Qo as useDepositV2,
37221
+ Fm as useEvent,
37222
+ Io as useEventList,
37223
+ es as useEventTransaction,
37224
+ bs as useExpiredRewardsList,
37225
+ Ym as useGameConfig,
37226
+ Um as useGameInfoContext,
37227
+ Xs as useGamesInfo,
37228
+ wm as useGetCarouseList,
37189
37229
  Ho as useGetMachineLoginCode,
37190
- wm as useGetMarquee,
37191
- vm as useGetMemberInfo,
37192
- Am as useGetRankingGame,
37193
- bs as useHistoryRewardsList,
37194
- Qm as useIdleTimeout,
37195
- Om as useInbox,
37196
- Zo as useInboxList,
37197
- hm as useInitializeWithToken,
37198
- zm as useInvoiceAction,
37230
+ Am as useGetMarquee,
37231
+ hm as useGetMemberInfo,
37232
+ Om as useGetRankingGame,
37233
+ Cs as useHistoryRewardsList,
37234
+ jm as useIdleTimeout,
37235
+ Bm as useInbox,
37236
+ Jo as useInboxList,
37237
+ Tm as useInitializeWithToken,
37238
+ Im as useInvoiceAction,
37199
37239
  tl as useLineLogin,
37200
37240
  Bo as useLineLogin2,
37201
37241
  Eo as useLogin,
37202
37242
  No as useLogout,
37203
- Dm as useMemberTransfer,
37204
- Em as useMobileLogin,
37205
- Nm as useMobileLoginV2,
37206
- Hm as useNewsDetail,
37207
- Bm as useNewsList,
37208
- Vm as usePayment,
37209
- Ym as usePlatformConfig,
37210
- Zm as usePlayGame,
37211
- km as usePointTransfer,
37212
- Jo as useReadInbox,
37213
- Jm as useRebate,
37214
- cs as useReceiveRebate,
37215
- Wm as useRedeemCodeDeposit,
37216
- Rm as useRedeemEventReward,
37217
- _s as useRedeemReward,
37243
+ Em as useMemberTransfer,
37244
+ Nm as useMobileLogin,
37245
+ Lm as useMobileLoginV2,
37246
+ Wm as useNewsDetail,
37247
+ Hm as useNewsList,
37248
+ Zm as usePayment,
37249
+ Xm as usePlatformConfig,
37250
+ Jm as usePlayGame,
37251
+ xm as usePointTransfer,
37252
+ Ko as useReadInbox,
37253
+ Km as useRebate,
37254
+ fs as useReceiveRebate,
37255
+ zm as useRedeemCodeDeposit,
37256
+ Pm as useRedeemEventReward,
37257
+ ys as useRedeemReward,
37218
37258
  Ro as useResetUserPassword,
37219
37259
  Fo as useResetUserTransactionPassword,
37220
- Km as useRewards,
37221
- fs as useRewardsList,
37222
- Lm as useSendMobileVerifyCode,
37260
+ qm as useRewards,
37261
+ _s as useRewardsList,
37262
+ Gm as useSendMobileVerifyCode,
37223
37263
  Po as useSetUserTransactionPassword,
37224
37264
  Lo as useSignUp,
37225
37265
  Vn as useStatus,
37226
37266
  Go as useToggleFavoriteGame,
37227
37267
  Oo as useTransferInGame,
37228
- ys as useUnUsedRewardsList,
37229
- Im as useUpdateInvoiceAction,
37268
+ Us as useUnUsedRewardsList,
37269
+ Vm as useUpdateInvoiceAction,
37230
37270
  Mo as useUpdateUserInfo,
37231
- Gm as useUser,
37271
+ Mm as useUser,
37232
37272
  Ao as useUserBindCard,
37233
37273
  wo as useUserRebate,
37234
- $m as useVip,
37235
- qm as useVipInfo,
37236
- Cs as useVipList,
37237
- jo as useWithdrawAction,
37238
- as as useWithdrawTransaction
37274
+ Qm as useVip,
37275
+ $m as useVipInfo,
37276
+ vs as useVipList,
37277
+ Yo as useWithdrawAction,
37278
+ is as useWithdrawTransaction
37239
37279
  };