@obb871001/api-integration-sdk 1.0.390 → 1.0.392
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.cjs +3 -3
- package/dist/index.js +160 -159
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fe, { createContext as jt, useContext as _i, useState as Xa, useMemo as Ba, useCallback as H, useRef as ae, useEffect as ue } from "react";
|
|
2
2
|
import { useQueries as zn, useQuery as j, useQueryClient as xa, useMutation as X, QueryClient as Wr, QueryClientProvider as zr } from "@tanstack/react-query";
|
|
3
3
|
import Ir from "axios";
|
|
4
|
-
import { get as Q,
|
|
4
|
+
import { get as Q, isEmpty as Ge, find as Ve, entries as In, forEach as Vr, map as Se, isArray as ea, toLower as Ei, omit as Jr, keyBy as Zr, replace as nt, includes as Kr, isObject as Yt, flatMap as Xt, values as qr, keys as Ni } from "lodash";
|
|
5
5
|
import $r from "react-dom";
|
|
6
6
|
var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function yi(e) {
|
|
@@ -36,7 +36,7 @@ var Li;
|
|
|
36
36
|
function jr() {
|
|
37
37
|
if (Li) return Ka;
|
|
38
38
|
Li = 1;
|
|
39
|
-
var e = fe, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
39
|
+
var e = fe, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function U(d, l, t) {
|
|
41
41
|
var i, o = {}, s = null, u = null;
|
|
42
42
|
t !== void 0 && (s = "" + t), l.key !== void 0 && (s = "" + l.key), l.ref !== void 0 && (u = l.ref);
|
|
@@ -50,7 +50,7 @@ var qa = {};
|
|
|
50
50
|
var Gi;
|
|
51
51
|
function Yr() {
|
|
52
52
|
return Gi || (Gi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = fe, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), t = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), s = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), m = Symbol.iterator, _ = "@@iterator";
|
|
53
|
+
var e = fe, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), p = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"), U = /* @__PURE__ */ Symbol.for("react.provider"), d = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), t = /* @__PURE__ */ Symbol.for("react.suspense"), i = /* @__PURE__ */ Symbol.for("react.suspense_list"), o = /* @__PURE__ */ Symbol.for("react.memo"), s = /* @__PURE__ */ Symbol.for("react.lazy"), u = /* @__PURE__ */ Symbol.for("react.offscreen"), m = Symbol.iterator, _ = "@@iterator";
|
|
54
54
|
function c(x) {
|
|
55
55
|
if (x === null || typeof x != "object")
|
|
56
56
|
return null;
|
|
@@ -76,7 +76,7 @@ function Yr() {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
var C = !1, v = !1, S = !1, E = !1, M = !1, A;
|
|
79
|
-
A = Symbol.for("react.module.reference");
|
|
79
|
+
A = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
80
80
|
function k(x) {
|
|
81
81
|
return !!(typeof x == "string" || typeof x == "function" || x === r || x === g || M || x === p || x === t || x === i || E || x === u || C || v || S || typeof x == "object" && x !== null && (x.$$typeof === s || x.$$typeof === o || x.$$typeof === U || x.$$typeof === d || x.$$typeof === l || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
@@ -166,7 +166,7 @@ function Yr() {
|
|
|
166
166
|
R++;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function K() {
|
|
170
170
|
{
|
|
171
171
|
if (R--, R === 0) {
|
|
172
172
|
var x = {
|
|
@@ -202,7 +202,7 @@ function Yr() {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
var J = y.ReactCurrentDispatcher, $;
|
|
205
|
-
function
|
|
205
|
+
function q(x, I, Z) {
|
|
206
206
|
{
|
|
207
207
|
if ($ === void 0)
|
|
208
208
|
try {
|
|
@@ -286,9 +286,9 @@ function Yr() {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
te = !1, J.current = ge,
|
|
289
|
+
te = !1, J.current = ge, K(), Error.prepareStackTrace = me;
|
|
290
290
|
}
|
|
291
|
-
var Pa = x ? x.displayName || x.name : "", ba = Pa ?
|
|
291
|
+
var Pa = x ? x.displayName || x.name : "", ba = Pa ? q(Pa) : "";
|
|
292
292
|
return typeof x == "function" && le.set(x, ba), ba;
|
|
293
293
|
}
|
|
294
294
|
function pe(x, I, Z) {
|
|
@@ -304,12 +304,12 @@ function Yr() {
|
|
|
304
304
|
if (typeof x == "function")
|
|
305
305
|
return Ce(x, ye(x));
|
|
306
306
|
if (typeof x == "string")
|
|
307
|
-
return
|
|
307
|
+
return q(x);
|
|
308
308
|
switch (x) {
|
|
309
309
|
case t:
|
|
310
|
-
return
|
|
310
|
+
return q("Suspense");
|
|
311
311
|
case i:
|
|
312
|
-
return
|
|
312
|
+
return q("SuspenseList");
|
|
313
313
|
}
|
|
314
314
|
if (typeof x == "object")
|
|
315
315
|
switch (x.$$typeof) {
|
|
@@ -374,7 +374,7 @@ function Yr() {
|
|
|
374
374
|
function ia(x) {
|
|
375
375
|
return "" + x;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function De(x) {
|
|
378
378
|
if (ta(x))
|
|
379
379
|
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(x)), ia(x);
|
|
380
380
|
}
|
|
@@ -457,7 +457,7 @@ function Yr() {
|
|
|
457
457
|
function Za(x, I, Z, Y, me) {
|
|
458
458
|
{
|
|
459
459
|
var ge, oe = {}, ie = null, He = null;
|
|
460
|
-
Z !== void 0 && (
|
|
460
|
+
Z !== void 0 && (De(Z), ie = "" + Z), Ye(I) && (De(I.key), ie = "" + I.key), Je(I) && (He = I.ref, Va(I, me));
|
|
461
461
|
for (ge in I)
|
|
462
462
|
_e.call(I, ge) && !je.hasOwnProperty(ge) && (oe[ge] = I[ge]);
|
|
463
463
|
if (x && x.defaultProps) {
|
|
@@ -526,7 +526,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
526
526
|
x && x._owner && x._owner !== da.current && (Y = " It was passed a child from " + P(x._owner.type) + "."), qe(x), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, Y), qe(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Ee(x, I) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof x != "object")
|
|
532
532
|
return;
|
|
@@ -570,7 +570,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
570
570
|
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Ne(x) {
|
|
574
574
|
{
|
|
575
575
|
for (var I = Object.keys(x.props), Z = 0; Z < I.length; Z++) {
|
|
576
576
|
var Y = I[Z];
|
|
@@ -603,12 +603,12 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
603
603
|
if (Y)
|
|
604
604
|
if (he($e)) {
|
|
605
605
|
for (var Pa = 0; Pa < $e.length; Pa++)
|
|
606
|
-
|
|
606
|
+
Ee($e[Pa], x);
|
|
607
607
|
Object.freeze && Object.freeze($e);
|
|
608
608
|
} else
|
|
609
609
|
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
610
610
|
else
|
|
611
|
-
|
|
611
|
+
Ee($e, x);
|
|
612
612
|
}
|
|
613
613
|
if (_e.call(I, "key")) {
|
|
614
614
|
var ba = P(x), Ie = Object.keys(I).filter(function(Hr) {
|
|
@@ -624,7 +624,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
624
624
|
<%s key={someKey} {...props} />`, ti, ba, Br, ba), na[ba + ti] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
return x === r ?
|
|
627
|
+
return x === r ? Ne(Te) : V(Te), Te;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function ra(x, I, Z) {
|
|
@@ -805,7 +805,7 @@ const Qn = jt(null), Em = () => {
|
|
|
805
805
|
minimumFractionDigits: 2,
|
|
806
806
|
maximumFractionDigits: 2
|
|
807
807
|
}).format(n);
|
|
808
|
-
}, jn = (e = [], n) => Ve(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ve(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ve(e, { SubPlatformEnum: n }), er = (e = [], n, a) =>
|
|
808
|
+
}, jn = (e = [], n) => Ve(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ve(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ve(e, { SubPlatformEnum: n }), er = (e = [], n, a) => Ge(e) ? [] : e.filter((r) => a ? String(r?.SubPlatformEnumUid) === String(a?.SubPlatformEnumUid) : String(r.platformUid) === String(n)), il = (e = []) => Ge(e) ? {} : e.reduce((n, a) => {
|
|
809
809
|
const r = a?.game_subtype || "UNKNOWN";
|
|
810
810
|
return n[r] || (n[r] = []), n[r].push(a), n;
|
|
811
811
|
}, {}), nl = ({
|
|
@@ -822,7 +822,7 @@ const Qn = jt(null), Em = () => {
|
|
|
822
822
|
l,
|
|
823
823
|
t
|
|
824
824
|
);
|
|
825
|
-
return
|
|
825
|
+
return Ge(o) || (U[d] = o), U;
|
|
826
826
|
}, {}) : {};
|
|
827
827
|
}, rl = ({
|
|
828
828
|
platformName: e,
|
|
@@ -842,7 +842,7 @@ function ol() {
|
|
|
842
842
|
(function(a, r) {
|
|
843
843
|
e.exports = r();
|
|
844
844
|
})(ll, (function() {
|
|
845
|
-
var a = 1e3, r = 6e4, p = 36e5, g = "millisecond", U = "second", d = "minute", l = "hour", t = "day", i = "week", o = "month", s = "quarter", u = "year", m = "date", _ = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|
|
|
845
|
+
var a = 1e3, r = 6e4, p = 36e5, g = "millisecond", U = "second", d = "minute", l = "hour", t = "day", i = "week", o = "month", s = "quarter", u = "year", m = "date", _ = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|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, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
846
846
|
var R = ["th", "st", "nd", "rd"], G = w % 100;
|
|
847
847
|
return "[" + w + (R[(G - 20) % 10] || R[G] || R[0]) + "]";
|
|
848
848
|
} }, b = function(w, R, G) {
|
|
@@ -932,15 +932,15 @@ function ol() {
|
|
|
932
932
|
return W ? be : be.endOf(t);
|
|
933
933
|
}, T = function(te, le) {
|
|
934
934
|
return D.w(O.toDate()[te].apply(O.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), O);
|
|
935
|
-
}, N = this.$W, L = this.$M,
|
|
935
|
+
}, N = this.$W, L = this.$M, K = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
|
936
936
|
switch (z) {
|
|
937
937
|
case u:
|
|
938
938
|
return W ? h(1, 0) : h(31, 11);
|
|
939
939
|
case o:
|
|
940
940
|
return W ? h(1, L) : h(0, L + 1);
|
|
941
941
|
case i:
|
|
942
|
-
var $ = this.$locale().weekStart || 0,
|
|
943
|
-
return h(W ?
|
|
942
|
+
var $ = this.$locale().weekStart || 0, q = (N < $ ? N + 7 : N) - $;
|
|
943
|
+
return h(W ? K - q : K + (6 - q), L);
|
|
944
944
|
case t:
|
|
945
945
|
case m:
|
|
946
946
|
return T(J + "Hours", 0);
|
|
@@ -970,8 +970,8 @@ function ol() {
|
|
|
970
970
|
var O, W = this;
|
|
971
971
|
G = Number(G);
|
|
972
972
|
var z = D.p(B), h = function(L) {
|
|
973
|
-
var
|
|
974
|
-
return D.w(
|
|
973
|
+
var K = k(W);
|
|
974
|
+
return D.w(K.date(K.date() + Math.round(L * G)), W);
|
|
975
975
|
};
|
|
976
976
|
if (z === o) return this.set(o, this.$M + G);
|
|
977
977
|
if (z === u) return this.set(u, this.$y + G);
|
|
@@ -984,9 +984,9 @@ function ol() {
|
|
|
984
984
|
}, R.format = function(G) {
|
|
985
985
|
var B = this, O = this.$locale();
|
|
986
986
|
if (!this.isValid()) return O.invalidDate || _;
|
|
987
|
-
var W = G || "YYYY-MM-DDTHH:mm:ssZ", z = D.z(this), h = this.$H, T = this.$m, N = this.$M, L = O.weekdays,
|
|
987
|
+
var W = G || "YYYY-MM-DDTHH:mm:ssZ", z = D.z(this), h = this.$H, T = this.$m, N = this.$M, L = O.weekdays, K = O.months, J = O.meridiem, $ = function(le, be, Ce, pe) {
|
|
988
988
|
return le && (le[be] || le(B, W)) || Ce[be].slice(0, pe);
|
|
989
|
-
},
|
|
989
|
+
}, q = function(le) {
|
|
990
990
|
return D.s(h % 12 || 12, le, "0");
|
|
991
991
|
}, te = J || function(le, be, Ce) {
|
|
992
992
|
var pe = le < 12 ? "AM" : "PM";
|
|
@@ -1004,9 +1004,9 @@ function ol() {
|
|
|
1004
1004
|
case "MM":
|
|
1005
1005
|
return D.s(N + 1, 2, "0");
|
|
1006
1006
|
case "MMM":
|
|
1007
|
-
return $(O.monthsShort, N,
|
|
1007
|
+
return $(O.monthsShort, N, K, 3);
|
|
1008
1008
|
case "MMMM":
|
|
1009
|
-
return $(
|
|
1009
|
+
return $(K, N);
|
|
1010
1010
|
case "D":
|
|
1011
1011
|
return B.$D;
|
|
1012
1012
|
case "DD":
|
|
@@ -1024,9 +1024,9 @@ function ol() {
|
|
|
1024
1024
|
case "HH":
|
|
1025
1025
|
return D.s(h, 2, "0");
|
|
1026
1026
|
case "h":
|
|
1027
|
-
return
|
|
1027
|
+
return q(1);
|
|
1028
1028
|
case "hh":
|
|
1029
|
-
return
|
|
1029
|
+
return q(2);
|
|
1030
1030
|
case "a":
|
|
1031
1031
|
return te(h, T, !0);
|
|
1032
1032
|
case "A":
|
|
@@ -1050,18 +1050,18 @@ function ol() {
|
|
|
1050
1050
|
}, R.utcOffset = function() {
|
|
1051
1051
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1052
1052
|
}, R.diff = function(G, B, O) {
|
|
1053
|
-
var W, z = this, h = D.p(B), T = k(G), N = (T.utcOffset() - this.utcOffset()) * r, L = this - T,
|
|
1053
|
+
var W, z = this, h = D.p(B), T = k(G), N = (T.utcOffset() - this.utcOffset()) * r, L = this - T, K = function() {
|
|
1054
1054
|
return D.m(z, T);
|
|
1055
1055
|
};
|
|
1056
1056
|
switch (h) {
|
|
1057
1057
|
case u:
|
|
1058
|
-
W =
|
|
1058
|
+
W = K() / 12;
|
|
1059
1059
|
break;
|
|
1060
1060
|
case o:
|
|
1061
|
-
W =
|
|
1061
|
+
W = K();
|
|
1062
1062
|
break;
|
|
1063
1063
|
case s:
|
|
1064
|
-
W =
|
|
1064
|
+
W = K() / 3;
|
|
1065
1065
|
break;
|
|
1066
1066
|
case i:
|
|
1067
1067
|
W = (L - N) / 6048e5;
|
|
@@ -1115,7 +1115,7 @@ function ol() {
|
|
|
1115
1115
|
})(pt)), pt.exports;
|
|
1116
1116
|
}
|
|
1117
1117
|
var sl = ol();
|
|
1118
|
-
const
|
|
1118
|
+
const Le = /* @__PURE__ */ yi(sl);
|
|
1119
1119
|
var gt = { exports: {} };
|
|
1120
1120
|
function ml(e) {
|
|
1121
1121
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -2432,18 +2432,18 @@ function tr() {
|
|
|
2432
2432
|
]);
|
|
2433
2433
|
},
|
|
2434
2434
|
_doProcessBlock: function(m, _) {
|
|
2435
|
-
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], S = c[5], E = c[6], M = c[7], A = y.high, k = y.low, D = f.high, F = f.low, P = b.high, w = b.low, R = C.high, G = C.low, B = v.high, O = v.low, W = S.high, z = S.low, h = E.high, T = E.low, N = M.high, L = M.low,
|
|
2435
|
+
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], S = c[5], E = c[6], M = c[7], A = y.high, k = y.low, D = f.high, F = f.low, P = b.high, w = b.low, R = C.high, G = C.low, B = v.high, O = v.low, W = S.high, z = S.low, h = E.high, T = E.low, N = M.high, L = M.low, K = A, J = k, $ = D, q = F, te = P, le = w, be = R, Ce = G, pe = B, ye = O, ce = W, _e = z, we = h, de = T, xe = N, aa = L, Fe = 0; Fe < 80; Fe++) {
|
|
2436
2436
|
var he, ze, ta = s[Fe];
|
|
2437
2437
|
if (Fe < 16)
|
|
2438
2438
|
ze = ta.high = m[_ + Fe * 2] | 0, he = ta.low = m[_ + Fe * 2 + 1] | 0;
|
|
2439
2439
|
else {
|
|
2440
|
-
var ia = s[Fe - 15],
|
|
2440
|
+
var ia = s[Fe - 15], De = ia.high, Ae = ia.low, je = (De >>> 1 | Ae << 31) ^ (De >>> 8 | Ae << 24) ^ De >>> 7, oa = (Ae >>> 1 | De << 31) ^ (Ae >>> 8 | De << 24) ^ (Ae >>> 7 | De << 25), ga = s[Fe - 2], Je = ga.high, Ye = ga.low, Va = (Je >>> 19 | Ye << 13) ^ (Je << 3 | Ye >>> 29) ^ Je >>> 6, Ea = (Ye >>> 19 | Je << 13) ^ (Ye << 3 | Je >>> 29) ^ (Ye >>> 6 | Je << 26), Na = s[Fe - 7], Ja = Na.high, Za = Na.low, da = s[Fe - 16], ya = da.high, qe = da.low;
|
|
2441
2441
|
he = oa + Za, ze = je + Ja + (he >>> 0 < oa >>> 0 ? 1 : 0), he = he + Ea, ze = ze + Va + (he >>> 0 < Ea >>> 0 ? 1 : 0), he = he + qe, ze = ze + ya + (he >>> 0 < qe >>> 0 ? 1 : 0), ta.high = ze, ta.low = he;
|
|
2442
2442
|
}
|
|
2443
|
-
var ca = pe & ce ^ ~pe & we, fa = ye & _e ^ ~ye & de, La =
|
|
2444
|
-
xe = we, aa = de, we = ce, de = _e, ce = pe, _e = ye, ye = Ce + Oe | 0, pe = be + ra + (ye >>> 0 < Ce >>> 0 ? 1 : 0) | 0, be = te, Ce = le, te = $, le =
|
|
2443
|
+
var ca = pe & ce ^ ~pe & we, fa = ye & _e ^ ~ye & de, La = K & $ ^ K & te ^ $ & te, Ga = J & q ^ J & le ^ q & le, Ua = (K >>> 28 | J << 4) ^ (K << 30 | J >>> 2) ^ (K << 25 | J >>> 7), Ma = (J >>> 28 | K << 4) ^ (J << 30 | K >>> 2) ^ (J << 25 | K >>> 7), Ra = (pe >>> 14 | ye << 18) ^ (pe >>> 18 | ye << 14) ^ (pe << 23 | ye >>> 9), Ee = (ye >>> 14 | pe << 18) ^ (ye >>> 18 | pe << 14) ^ (ye << 23 | pe >>> 9), V = o[Fe], Ne = V.high, na = V.low, Oe = aa + Ee, ra = xe + Ra + (Oe >>> 0 < aa >>> 0 ? 1 : 0), Oe = Oe + fa, ra = ra + ca + (Oe >>> 0 < fa >>> 0 ? 1 : 0), Oe = Oe + na, ra = ra + Ne + (Oe >>> 0 < na >>> 0 ? 1 : 0), Oe = Oe + he, ra = ra + ze + (Oe >>> 0 < he >>> 0 ? 1 : 0), it = Ma + Ga, ai = Ua + La + (it >>> 0 < Ma >>> 0 ? 1 : 0);
|
|
2444
|
+
xe = we, aa = de, we = ce, de = _e, ce = pe, _e = ye, ye = Ce + Oe | 0, pe = be + ra + (ye >>> 0 < Ce >>> 0 ? 1 : 0) | 0, be = te, Ce = le, te = $, le = q, $ = K, q = J, J = Oe + it | 0, K = ra + ai + (J >>> 0 < Oe >>> 0 ? 1 : 0) | 0;
|
|
2445
2445
|
}
|
|
2446
|
-
k = y.low = k + J, y.high = A +
|
|
2446
|
+
k = y.low = k + J, y.high = A + K + (k >>> 0 < J >>> 0 ? 1 : 0), F = f.low = F + q, f.high = D + $ + (F >>> 0 < q >>> 0 ? 1 : 0), w = b.low = w + le, b.high = P + te + (w >>> 0 < le >>> 0 ? 1 : 0), G = C.low = G + Ce, C.high = R + be + (G >>> 0 < Ce >>> 0 ? 1 : 0), O = v.low = O + ye, v.high = B + pe + (O >>> 0 < ye >>> 0 ? 1 : 0), z = S.low = z + _e, S.high = W + ce + (z >>> 0 < _e >>> 0 ? 1 : 0), T = E.low = T + de, E.high = h + we + (T >>> 0 < de >>> 0 ? 1 : 0), L = M.low = L + aa, M.high = N + xe + (L >>> 0 < aa >>> 0 ? 1 : 0);
|
|
2447
2447
|
},
|
|
2448
2448
|
_doFinalize: function() {
|
|
2449
2449
|
var m = this._data, _ = m.words, c = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
@@ -2573,11 +2573,11 @@ function Gl() {
|
|
|
2573
2573
|
N.high = L.high, N.low = L.low;
|
|
2574
2574
|
for (var A = 0; A < 5; A++)
|
|
2575
2575
|
for (var F = 0; F < 5; F++) {
|
|
2576
|
-
var O = A + 5 * F, E = f[O],
|
|
2577
|
-
E.high =
|
|
2576
|
+
var O = A + 5 * F, E = f[O], K = m[O], J = m[(A + 1) % 5 + 5 * F], $ = m[(A + 2) % 5 + 5 * F];
|
|
2577
|
+
E.high = K.high ^ ~J.high & $.high, E.low = K.low ^ ~J.low & $.low;
|
|
2578
2578
|
}
|
|
2579
|
-
var E = f[0],
|
|
2580
|
-
E.high ^=
|
|
2579
|
+
var E = f[0], q = u[M];
|
|
2580
|
+
E.high ^= q.high, E.low ^= q.low;
|
|
2581
2581
|
}
|
|
2582
2582
|
},
|
|
2583
2583
|
_doFinalize: function() {
|
|
@@ -2942,11 +2942,11 @@ function Rl() {
|
|
|
2942
2942
|
var A = E + M, k = S[A];
|
|
2943
2943
|
S[A] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2944
2944
|
}
|
|
2945
|
-
var D = this._hash.words, F = u.words, P = m.words, w = t.words, R = i.words, G = o.words, B = s.words, O, W, z, h, T, N, L,
|
|
2946
|
-
N = O = D[0], L = W = D[1],
|
|
2947
|
-
for (var
|
|
2948
|
-
|
|
2949
|
-
|
|
2945
|
+
var D = this._hash.words, F = u.words, P = m.words, w = t.words, R = i.words, G = o.words, B = s.words, O, W, z, h, T, N, L, K, J, $;
|
|
2946
|
+
N = O = D[0], L = W = D[1], K = z = D[2], J = h = D[3], $ = T = D[4];
|
|
2947
|
+
for (var q, M = 0; M < 80; M += 1)
|
|
2948
|
+
q = O + S[E + w[M]] | 0, M < 16 ? q += c(W, z, h) + F[0] : M < 32 ? q += y(W, z, h) + F[1] : M < 48 ? q += f(W, z, h) + F[2] : M < 64 ? q += b(W, z, h) + F[3] : q += C(W, z, h) + F[4], q = q | 0, q = v(q, G[M]), q = q + T | 0, O = T, T = h, h = v(z, 10), z = W, W = q, q = N + S[E + R[M]] | 0, M < 16 ? q += C(L, K, J) + P[0] : M < 32 ? q += b(L, K, J) + P[1] : M < 48 ? q += f(L, K, J) + P[2] : M < 64 ? q += y(L, K, J) + P[3] : q += c(L, K, J) + P[4], q = q | 0, q = v(q, B[M]), q = q + $ | 0, N = $, $ = J, J = v(K, 10), K = L, L = q;
|
|
2949
|
+
q = D[1] + z + J | 0, D[1] = D[2] + h + $ | 0, D[2] = D[3] + T + N | 0, D[3] = D[4] + O + L | 0, D[4] = D[0] + W + K | 0, D[0] = q;
|
|
2950
2950
|
},
|
|
2951
2951
|
_doFinalize: function() {
|
|
2952
2952
|
var S = this._data, E = S.words, M = this._nDataBytes * 8, A = S.sigBytes * 8;
|
|
@@ -6139,23 +6139,23 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6139
6139
|
password: T,
|
|
6140
6140
|
unlimitCode: N,
|
|
6141
6141
|
email: L,
|
|
6142
|
-
inviteCode:
|
|
6142
|
+
inviteCode: K,
|
|
6143
6143
|
currencyCode: J,
|
|
6144
6144
|
validCode: $
|
|
6145
6145
|
}) => {
|
|
6146
|
-
const
|
|
6146
|
+
const q = {
|
|
6147
6147
|
memId: h,
|
|
6148
6148
|
passwd: wa(T),
|
|
6149
6149
|
email: L,
|
|
6150
6150
|
currency_code: J,
|
|
6151
6151
|
code: $
|
|
6152
6152
|
};
|
|
6153
|
-
return N && (
|
|
6153
|
+
return N && (q.unlimit_code = N), K && (q.invite = K), e.post("/signUp", q);
|
|
6154
6154
|
},
|
|
6155
6155
|
[e]
|
|
6156
6156
|
), s = H(
|
|
6157
6157
|
async (h) => {
|
|
6158
|
-
const { name: T, birthday: N, email: L, mobile:
|
|
6158
|
+
const { name: T, birthday: N, email: L, mobile: K } = h;
|
|
6159
6159
|
return await e.post("/editMembetInfo", {
|
|
6160
6160
|
name: T,
|
|
6161
6161
|
// 暱稱
|
|
@@ -6163,7 +6163,7 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6163
6163
|
// 生日 (格式:YYYY-MM-DD)
|
|
6164
6164
|
email: L,
|
|
6165
6165
|
// 電子郵件
|
|
6166
|
-
mobile:
|
|
6166
|
+
mobile: K
|
|
6167
6167
|
// 手機號碼
|
|
6168
6168
|
});
|
|
6169
6169
|
},
|
|
@@ -6209,8 +6209,8 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6209
6209
|
const { start_time: T, end_time: N, limit: L = 25 } = h || {};
|
|
6210
6210
|
return await e.get("/report/totalprofit", {
|
|
6211
6211
|
params: {
|
|
6212
|
-
str_date: `${
|
|
6213
|
-
end_date: `${
|
|
6212
|
+
str_date: `${Le(T).format("YYYY-MM-DD")} 12:00:00`,
|
|
6213
|
+
end_date: `${Le(N).format("YYYY-MM-DD")} 11:59:59`,
|
|
6214
6214
|
limit: L
|
|
6215
6215
|
}
|
|
6216
6216
|
});
|
|
@@ -6226,12 +6226,12 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6226
6226
|
[e]
|
|
6227
6227
|
), b = H(async () => await e.get("/member/checkRestrictedWagering"), [e]), C = H(
|
|
6228
6228
|
async (h) => {
|
|
6229
|
-
const { memId: T, point: N, currency: L, password:
|
|
6229
|
+
const { memId: T, point: N, currency: L, password: K } = h;
|
|
6230
6230
|
return await e.post("/pointsTransaction", {
|
|
6231
6231
|
to_memId: T,
|
|
6232
6232
|
point: N,
|
|
6233
6233
|
currency: L,
|
|
6234
|
-
password: wa(
|
|
6234
|
+
password: wa(K)
|
|
6235
6235
|
});
|
|
6236
6236
|
},
|
|
6237
6237
|
[e]
|
|
@@ -6241,10 +6241,10 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6241
6241
|
bank_name: T,
|
|
6242
6242
|
bank_account_name: N,
|
|
6243
6243
|
bank_branch_name: L,
|
|
6244
|
-
bank_account:
|
|
6244
|
+
bank_account: K,
|
|
6245
6245
|
bank_card_number: J,
|
|
6246
6246
|
id_card: $,
|
|
6247
|
-
id_pic:
|
|
6247
|
+
id_pic: q
|
|
6248
6248
|
} = h;
|
|
6249
6249
|
return await n.post("/bindBankAccount", h);
|
|
6250
6250
|
},
|
|
@@ -6259,12 +6259,12 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6259
6259
|
[e]
|
|
6260
6260
|
), E = H(
|
|
6261
6261
|
async (h) => {
|
|
6262
|
-
const { trans_code: T, line_id: N, invite: L, line_name:
|
|
6262
|
+
const { trans_code: T, line_id: N, invite: L, line_name: K } = h;
|
|
6263
6263
|
return await e.post("/goLine", {
|
|
6264
6264
|
trans_code: T,
|
|
6265
6265
|
line_id: N,
|
|
6266
6266
|
invite: L,
|
|
6267
|
-
line_name:
|
|
6267
|
+
line_name: K
|
|
6268
6268
|
});
|
|
6269
6269
|
},
|
|
6270
6270
|
[e]
|
|
@@ -6286,11 +6286,11 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6286
6286
|
[e]
|
|
6287
6287
|
), k = H(
|
|
6288
6288
|
async (h) => {
|
|
6289
|
-
const { member_info_uid: T, point: N, currency: L, withdraw_password:
|
|
6289
|
+
const { member_info_uid: T, point: N, currency: L, withdraw_password: K } = h;
|
|
6290
6290
|
return await e.post(`/member/transfer/${T}`, {
|
|
6291
6291
|
point: N,
|
|
6292
6292
|
currency: L,
|
|
6293
|
-
withdraw_password:
|
|
6293
|
+
withdraw_password: K
|
|
6294
6294
|
});
|
|
6295
6295
|
},
|
|
6296
6296
|
[e]
|
|
@@ -6315,11 +6315,13 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6315
6315
|
[e]
|
|
6316
6316
|
), P = H(
|
|
6317
6317
|
async (h) => {
|
|
6318
|
-
const { mobile: T, verifyCode: N, invite: L } = h;
|
|
6318
|
+
const { mobile: T, verifyCode: N, invite: L, invoiceType: K, invoiceCode: J } = h;
|
|
6319
6319
|
return await e.post("/goMobileByInvite", {
|
|
6320
6320
|
mobile: T,
|
|
6321
6321
|
verification_code: N,
|
|
6322
|
-
invite: L
|
|
6322
|
+
invite: L,
|
|
6323
|
+
invoice_type: K,
|
|
6324
|
+
invoice_code: J
|
|
6323
6325
|
});
|
|
6324
6326
|
},
|
|
6325
6327
|
[e]
|
|
@@ -6482,8 +6484,8 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6482
6484
|
), p = H(
|
|
6483
6485
|
async (U) => {
|
|
6484
6486
|
const {
|
|
6485
|
-
startDate: d =
|
|
6486
|
-
endDate: l =
|
|
6487
|
+
startDate: d = Le().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6488
|
+
endDate: l = Le().format("YYYY-MM-DD 11:59:59"),
|
|
6487
6489
|
platform: t = "",
|
|
6488
6490
|
limit: i = 25
|
|
6489
6491
|
} = U, { data: o } = await e.get("/report/netprofit", {
|
|
@@ -6500,8 +6502,8 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6500
6502
|
), g = H(
|
|
6501
6503
|
async (U) => {
|
|
6502
6504
|
const {
|
|
6503
|
-
startDate: d =
|
|
6504
|
-
endDate: l =
|
|
6505
|
+
startDate: d = Le().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6506
|
+
endDate: l = Le().format("YYYY-MM-DD 11:59:59"),
|
|
6505
6507
|
platform: t,
|
|
6506
6508
|
limit: i = 25,
|
|
6507
6509
|
page: o = 1
|
|
@@ -6555,7 +6557,7 @@ function ot(e) {
|
|
|
6555
6557
|
for (var n = 1; n < arguments.length; n++) {
|
|
6556
6558
|
var a = arguments[n];
|
|
6557
6559
|
for (var r in a)
|
|
6558
|
-
e[r] = a[r];
|
|
6560
|
+
r !== "__proto__" && (e[r] = a[r]);
|
|
6559
6561
|
}
|
|
6560
6562
|
return e;
|
|
6561
6563
|
}
|
|
@@ -6586,7 +6588,7 @@ function ui(e, n) {
|
|
|
6586
6588
|
var l = g[d].split("="), t = l.slice(1).join("=");
|
|
6587
6589
|
try {
|
|
6588
6590
|
var i = decodeURIComponent(l[0]);
|
|
6589
|
-
if (U[i] = e.read(t, i), p === i)
|
|
6591
|
+
if (i in U || (U[i] = e.read(t, i)), p === i)
|
|
6590
6592
|
break;
|
|
6591
6593
|
} catch {
|
|
6592
6594
|
}
|
|
@@ -7229,7 +7231,7 @@ function xi() {
|
|
|
7229
7231
|
if (s !== null && m === !0) {
|
|
7230
7232
|
var W, z = !1, h = !0, T = function() {
|
|
7231
7233
|
return n(void 0, void 0, void 0, function() {
|
|
7232
|
-
var N, L,
|
|
7234
|
+
var N, L, K;
|
|
7233
7235
|
return a(this, function(J) {
|
|
7234
7236
|
switch (J.label) {
|
|
7235
7237
|
case 0:
|
|
@@ -7246,14 +7248,14 @@ function xi() {
|
|
|
7246
7248
|
z || (0, g.flushSync)(function() {
|
|
7247
7249
|
return y($);
|
|
7248
7250
|
});
|
|
7249
|
-
},
|
|
7251
|
+
}, K = function($) {
|
|
7250
7252
|
z || (0, g.flushSync)(function() {
|
|
7251
|
-
return C(function(
|
|
7253
|
+
return C(function(q) {
|
|
7252
7254
|
var te;
|
|
7253
|
-
return e(e({},
|
|
7255
|
+
return e(e({}, q), S.current && (te = {}, te[S.current] = $, te));
|
|
7254
7256
|
});
|
|
7255
7257
|
});
|
|
7256
|
-
}, h && (W = (0, d.createOrJoinSocket)(E, S.current,
|
|
7258
|
+
}, h && (W = (0, d.createOrJoinSocket)(E, S.current, K, P, L, M, A, k, G)), [
|
|
7257
7259
|
2
|
|
7258
7260
|
/*return*/
|
|
7259
7261
|
]);
|
|
@@ -7895,14 +7897,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7895
7897
|
onTransferInGame: T,
|
|
7896
7898
|
onCashRegisterLimit: N,
|
|
7897
7899
|
onLineLogin: L
|
|
7898
|
-
} = y.current,
|
|
7900
|
+
} = y.current, K = Q(P, "type", ""), J = {
|
|
7899
7901
|
memberInfoUid: Q(P, "member_info_uid", null),
|
|
7900
7902
|
data: Q(P, "data", null),
|
|
7901
7903
|
memo: Q(P, "memo", null),
|
|
7902
7904
|
amount: Q(P, "amount", null),
|
|
7903
7905
|
limitAmount: Q(P, "limit_amount", null)
|
|
7904
|
-
}, $ = Number(J.memberInfoUid) === f,
|
|
7905
|
-
switch (
|
|
7906
|
+
}, $ = Number(J.memberInfoUid) === f, q = J.data, te = J.amount, le = J.limitAmount, be = C.get("mac") || pi.get("machine_mac_address") || "", Ce = Q(P, "data.line_id", null), pe = Q(P, "data.line_name", null), ye = Q(P, "member_info_uid", null);
|
|
7907
|
+
switch (K) {
|
|
7906
7908
|
case We.DEPOSIT:
|
|
7907
7909
|
$ && (M(), G?.(J));
|
|
7908
7910
|
break;
|
|
@@ -7912,7 +7914,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7912
7914
|
case We.ERROR:
|
|
7913
7915
|
if ($) {
|
|
7914
7916
|
const ce = Q(P, "open_game_modal", 0) === 1;
|
|
7915
|
-
w(
|
|
7917
|
+
w(q, {
|
|
7916
7918
|
notificationType: ce ? "gamingNotice" : void 0
|
|
7917
7919
|
}), O?.(J);
|
|
7918
7920
|
}
|
|
@@ -7923,7 +7925,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7923
7925
|
}), W?.(J));
|
|
7924
7926
|
break;
|
|
7925
7927
|
case We.MAINTAIN_NOTICE:
|
|
7926
|
-
w(
|
|
7928
|
+
w(q, {
|
|
7927
7929
|
notificationType: "maintainNotice"
|
|
7928
7930
|
}), z?.(J);
|
|
7929
7931
|
break;
|
|
@@ -7942,7 +7944,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7942
7944
|
}, 5e3));
|
|
7943
7945
|
return;
|
|
7944
7946
|
}
|
|
7945
|
-
w(
|
|
7947
|
+
w(q), h?.(J), setTimeout(() => {
|
|
7946
7948
|
window.location.reload();
|
|
7947
7949
|
}, 5e4);
|
|
7948
7950
|
}
|
|
@@ -7978,7 +7980,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7978
7980
|
}
|
|
7979
7981
|
break;
|
|
7980
7982
|
case We.CASH_REGISTER_LIMIT:
|
|
7981
|
-
w(
|
|
7983
|
+
w(q, {
|
|
7982
7984
|
notificationType: "cashRegisterLimit",
|
|
7983
7985
|
amount: te,
|
|
7984
7986
|
limitAmount: le
|
|
@@ -7990,7 +7992,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7990
7992
|
}), W?.(J));
|
|
7991
7993
|
break;
|
|
7992
7994
|
case We.GAME_MAINTAIN:
|
|
7993
|
-
w(
|
|
7995
|
+
w(q, {
|
|
7994
7996
|
notificationType: "gameMaintain"
|
|
7995
7997
|
});
|
|
7996
7998
|
break;
|
|
@@ -8004,7 +8006,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8004
8006
|
$ && (i.invalidateQueries({ queryKey: ["getEventWalletList"] }), i.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
|
|
8005
8007
|
return;
|
|
8006
8008
|
default:
|
|
8007
|
-
console.warn("Unknown socket type:",
|
|
8009
|
+
console.warn("Unknown socket type:", K);
|
|
8008
8010
|
break;
|
|
8009
8011
|
}
|
|
8010
8012
|
}, [
|
|
@@ -8108,7 +8110,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8108
8110
|
select: (l) => {
|
|
8109
8111
|
try {
|
|
8110
8112
|
const { data: t } = l;
|
|
8111
|
-
return
|
|
8113
|
+
return Se(t, (o) => {
|
|
8112
8114
|
const { events_attributes: s } = o, u = Ve(
|
|
8113
8115
|
s,
|
|
8114
8116
|
(v) => v.attribute_currency === U
|
|
@@ -8187,7 +8189,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8187
8189
|
rewardType: u?.reward_type,
|
|
8188
8190
|
//獎勵類型
|
|
8189
8191
|
rewardDetail: u?.rewards || {},
|
|
8190
|
-
|
|
8192
|
+
originEventAttribute: Se(s, (v) => ({
|
|
8193
|
+
isActive: v.attribute_is_active === 1,
|
|
8194
|
+
currencyCode: v.attribute_currency,
|
|
8195
|
+
value: v.attribute_value,
|
|
8196
|
+
eventUid: v.event_uid,
|
|
8197
|
+
rewardType: v.reward_type,
|
|
8198
|
+
rewardDetail: v.rewards || {}
|
|
8199
|
+
}))
|
|
8191
8200
|
}, C = {
|
|
8192
8201
|
baseValue: m?.base_value || 0,
|
|
8193
8202
|
//基礎數值
|
|
@@ -8431,7 +8440,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8431
8440
|
return g && !a ? g : await r();
|
|
8432
8441
|
},
|
|
8433
8442
|
select: (g) => {
|
|
8434
|
-
const U = ea(g) ? g : g.Marquees, d = ea(g) ? g : g.MarqueesInsideGameBox, l =
|
|
8443
|
+
const U = ea(g) ? g : g.Marquees, d = ea(g) ? g : g.MarqueesInsideGameBox, l = Se(U, (i) => i[p] || i?.en_US), t = Se(d, (i) => i[p] || i?.en_US);
|
|
8435
8444
|
return {
|
|
8436
8445
|
marquee: l,
|
|
8437
8446
|
gameMarquee: t
|
|
@@ -8446,7 +8455,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8446
8455
|
enabled: window.profit_ranking_status === 1,
|
|
8447
8456
|
select: (a) => {
|
|
8448
8457
|
const { data: r } = a;
|
|
8449
|
-
return
|
|
8458
|
+
return Se(r, (g) => {
|
|
8450
8459
|
const {
|
|
8451
8460
|
game_uid: U,
|
|
8452
8461
|
game_code: d,
|
|
@@ -8790,14 +8799,14 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8790
8799
|
if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8791
8800
|
if (a ? (N.current = e - a, L.current = a) : (N.current = e, L.current = n), !W.current) {
|
|
8792
8801
|
if (y || E) return;
|
|
8793
|
-
G.current && (pe.current(null,
|
|
8802
|
+
G.current && (pe.current(null, Ee), T.current && T.current.active()), je();
|
|
8794
8803
|
}
|
|
8795
8804
|
}, [e, n, a, y, E]);
|
|
8796
|
-
let
|
|
8805
|
+
let K = ae(f);
|
|
8797
8806
|
ue(() => {
|
|
8798
|
-
|
|
8807
|
+
K.current = f;
|
|
8799
8808
|
}, [f]);
|
|
8800
|
-
let J = ae(U), $ = ae(r),
|
|
8809
|
+
let J = ae(U), $ = ae(r), q = ae([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), te = ae(E);
|
|
8801
8810
|
ue(() => {
|
|
8802
8811
|
te.current = E, !W.current && (E ? Je() : y || je());
|
|
8803
8812
|
}, [E]);
|
|
@@ -8826,7 +8835,7 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8826
8835
|
ce.current = s;
|
|
8827
8836
|
}, [s]);
|
|
8828
8837
|
let _e = Ba(() => {
|
|
8829
|
-
let V = (
|
|
8838
|
+
let V = (Ne, na) => ye.current(Ne, na);
|
|
8830
8839
|
return u > 0 ? ys(V, u) : m > 0 ? mi(V, m) : V;
|
|
8831
8840
|
}, [m, u]), we = ae();
|
|
8832
8841
|
ue(() => {
|
|
@@ -8836,19 +8845,19 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8836
8845
|
}, [b, v]);
|
|
8837
8846
|
let de = () => {
|
|
8838
8847
|
h.current !== null && (Xe.clearTimeout(h.current), h.current = null);
|
|
8839
|
-
}, xe = (V,
|
|
8840
|
-
de(), h.current = Xe.setTimeout(ze, V || N.current),
|
|
8848
|
+
}, xe = (V, Ne = !0) => {
|
|
8849
|
+
de(), h.current = Xe.setTimeout(ze, V || N.current), Ne && (D.current = ke());
|
|
8841
8850
|
}, aa = (V) => {
|
|
8842
|
-
!B.current && !G.current && (be.current(V,
|
|
8851
|
+
!B.current && !G.current && (be.current(V, Ee), le.current({ type: "active", prompted: !0 }, Ee)), R.current = 0, w.current = ke(), B.current = !0, xe(L.current, !1);
|
|
8843
8852
|
}, Fe = () => {
|
|
8844
|
-
de(), G.current || (Ce.current(null,
|
|
8853
|
+
de(), G.current || (Ce.current(null, Ee), le.current({ type: "idle" }, Ee)), G.current = !0, k.current = ke(), K.current ? Ae() : B.current && (w.current = 0, B.current = !1);
|
|
8845
8854
|
}, he = (V) => {
|
|
8846
|
-
de(), (G.current || B.current) && (pe.current(V,
|
|
8855
|
+
de(), (G.current || B.current) && (pe.current(V, Ee), le.current({ type: "active", prompted: !1 }, Ee)), B.current = !1, w.current = 0, G.current = !1, F.current += ke() - k.current, P.current += ke() - k.current, De(), xe();
|
|
8847
8856
|
}, ze = (V) => {
|
|
8848
8857
|
if (!G.current) {
|
|
8849
8858
|
_e.cancel && _e.cancel();
|
|
8850
|
-
let
|
|
8851
|
-
if (!(N.current + L.current <
|
|
8859
|
+
let Ne = ke() - D.current;
|
|
8860
|
+
if (!(N.current + L.current < Ne) && L.current > 0 && !B.current) {
|
|
8852
8861
|
T.current ? T.current.prompt() : aa(V);
|
|
8853
8862
|
return;
|
|
8854
8863
|
}
|
|
@@ -8857,13 +8866,13 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8857
8866
|
}
|
|
8858
8867
|
T.current ? T.current.active() : he(V);
|
|
8859
8868
|
}, ta = (V) => {
|
|
8860
|
-
if (!c && !D.current && (D.current = ke(), pe.current(null,
|
|
8869
|
+
if (!c && !D.current && (D.current = ke(), pe.current(null, Ee)), _e(V, Ee), B.current) return;
|
|
8861
8870
|
if (de(), !G.current && J.current.includes(V.type)) {
|
|
8862
8871
|
ze(V);
|
|
8863
8872
|
return;
|
|
8864
8873
|
}
|
|
8865
|
-
let
|
|
8866
|
-
if (G.current && !f || !G.current &&
|
|
8874
|
+
let Ne = ke() - D.current;
|
|
8875
|
+
if (G.current && !f || !G.current && Ne >= N.current) {
|
|
8867
8876
|
ze(V);
|
|
8868
8877
|
return;
|
|
8869
8878
|
}
|
|
@@ -8871,19 +8880,19 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8871
8880
|
}, ia = ae(ta);
|
|
8872
8881
|
ue(() => {
|
|
8873
8882
|
let V = z.current;
|
|
8874
|
-
V && Ae(), _ > 0 ? ia.current = mi(ta, _) : ia.current = ta, V &&
|
|
8883
|
+
V && Ae(), _ > 0 ? ia.current = mi(ta, _) : ia.current = ta, V && De();
|
|
8875
8884
|
}, [_, m, u, ye, b, v]);
|
|
8876
|
-
let
|
|
8877
|
-
pa && $.current && (z.current || (
|
|
8885
|
+
let De = () => {
|
|
8886
|
+
pa && $.current && (z.current || (q.current.forEach((V) => {
|
|
8878
8887
|
$.current.addEventListener(V, ia.current, { capture: !0, passive: !0 });
|
|
8879
8888
|
}), z.current = !0));
|
|
8880
8889
|
}, Ae = (V = !1) => {
|
|
8881
|
-
pa && $.current && (z.current || V) && (
|
|
8882
|
-
$.current.removeEventListener(
|
|
8890
|
+
pa && $.current && (z.current || V) && (q.current.forEach((Ne) => {
|
|
8891
|
+
$.current.removeEventListener(Ne, ia.current, { capture: !0 });
|
|
8883
8892
|
}), z.current = !1);
|
|
8884
|
-
}, je = H((V) => te.current ? !1 : (de(),
|
|
8893
|
+
}, je = H((V) => te.current ? !1 : (de(), De(), G.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, T.current && !V && T.current.start(), xe(), !0), [h, G, te, N, T]), oa = H((V) => te.current ? !1 : (de(), De(), A.current = ke(), F.current += ke() - k.current, P.current += ke() - k.current, F.current = 0, G.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, T.current && !V && T.current.reset(), y || xe(), !0), [h, G, N, y, te, T]), ga = H((V) => te.current ? !1 : (de(), De(), (G.current || B.current) && he(), G.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, A.current = ke(), T.current && !V && T.current.activate(), xe(), !0), [h, G, B, te, N, T]), Je = H((V = !1) => te.current || O.current ? !1 : (R.current = ya(), O.current = !0, Ae(), de(), T.current && !V && T.current.pause(), !0), [h, te, T]), Ye = H((V = !1) => te.current || !O.current ? !1 : (O.current = !1, B.current || De(), G.current || xe(R.current), w.current && (w.current = ke()), T.current && !V && T.current.resume(), !0), [h, N, te, R, T]), Va = H((V, Ne) => (T.current ? (Ne && ce.current(V, Ee), T.current.message(V)) : Ne && ce.current(V, Ee), !0), [s]), Ea = H(() => G.current, [G]), Na = H(() => B.current, [B]), Ja = H(() => T.current ? T.current.isLeader : null, [T]), Za = H(() => T.current ? T.current.isLastActive : null, [T]), da = H(() => T.current ? T.current.token : null, [T]), ya = H(() => {
|
|
8885
8894
|
if (O.current) return R.current;
|
|
8886
|
-
let V = R.current ? R.current : L.current + N.current,
|
|
8895
|
+
let V = R.current ? R.current : L.current + N.current, Ne = D.current ? ke() - D.current : 0, na = Math.floor(V - Ne);
|
|
8887
8896
|
return na < 0 ? 0 : Math.abs(na);
|
|
8888
8897
|
}, [N, L, B, R, D]), qe = H(() => Math.round(ke() - A.current), [A]), ca = H(() => Math.round(ke() - M.current), [M]), fa = H(() => k.current ? new Date(k.current) : null, [k]), La = H(() => D.current ? new Date(D.current) : null, [D]), Ga = H(() => G.current ? Math.round(ke() - k.current + F.current) : Math.round(F.current), [k, F]), Ua = H(() => G.current ? Math.round(ke() - k.current + P.current) : Math.round(P.current), [k, P]), Ma = H(() => {
|
|
8889
8898
|
let V = Math.round(qe() - Ga());
|
|
@@ -8909,20 +8918,20 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8909
8918
|
}, onActive: () => {
|
|
8910
8919
|
he();
|
|
8911
8920
|
}, onMessage: (V) => {
|
|
8912
|
-
ce.current(V,
|
|
8921
|
+
ce.current(V, Ee);
|
|
8913
8922
|
}, start: je, reset: oa, activate: ga, pause: Je, resume: Ye }) : T.current = null;
|
|
8914
8923
|
}, [b, C, S, be, Ce, pe, ce, je, oa, Je, Ye]), ue(() => {
|
|
8915
|
-
W.current || (de(), Ae(!0)), !(y || E) && (c ? je() :
|
|
8924
|
+
W.current || (de(), Ae(!0)), !(y || E) && (c ? je() : De());
|
|
8916
8925
|
}, [y, c, E, W]), ue(() => {
|
|
8917
8926
|
if (!W.current) {
|
|
8918
8927
|
let V = [...(/* @__PURE__ */ new Set([...p, ...U])).values()];
|
|
8919
|
-
if (Ae(),
|
|
8920
|
-
c ? je() :
|
|
8928
|
+
if (Ae(), q.current = V, $.current = r, J.current = U, y || E) return;
|
|
8929
|
+
c ? je() : De();
|
|
8921
8930
|
}
|
|
8922
8931
|
}, [r, JSON.stringify(p), JSON.stringify(U), W, E, y, c]), ue(() => {
|
|
8923
8932
|
W.current && (W.current = !1);
|
|
8924
8933
|
}, [W]);
|
|
8925
|
-
let
|
|
8934
|
+
let Ee = { message: Va, start: je, reset: oa, activate: ga, pause: Je, resume: Ye, isIdle: Ea, isPrompted: Na, isLeader: Ja, isLastActiveTab: Za, getTabId: da, getRemainingTime: ya, getElapsedTime: qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: Ua, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
|
|
8926
8935
|
d = V, le.current = V;
|
|
8927
8936
|
}, setOnPrompt: (V) => {
|
|
8928
8937
|
l = V, be.current = V;
|
|
@@ -8935,7 +8944,7 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8935
8944
|
}, setOnMessage: (V) => {
|
|
8936
8945
|
s = V, ce.current = V;
|
|
8937
8946
|
} };
|
|
8938
|
-
return
|
|
8947
|
+
return Ee;
|
|
8939
8948
|
}
|
|
8940
8949
|
var bs = jt(null);
|
|
8941
8950
|
bs.Consumer;
|
|
@@ -8952,7 +8961,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
8952
8961
|
queryFn: async () => await n(),
|
|
8953
8962
|
select: (U) => {
|
|
8954
8963
|
const { data: d } = U;
|
|
8955
|
-
return
|
|
8964
|
+
return Se(d, (t) => {
|
|
8956
8965
|
const { internal_notifications_language: i } = t;
|
|
8957
8966
|
return {
|
|
8958
8967
|
...t,
|
|
@@ -9100,7 +9109,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9100
9109
|
return r({ uid: g, params: U });
|
|
9101
9110
|
},
|
|
9102
9111
|
select: (g) => {
|
|
9103
|
-
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l =
|
|
9112
|
+
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l = Se(d, (t) => {
|
|
9104
9113
|
const i = Ve(t.news_language, {
|
|
9105
9114
|
language: p
|
|
9106
9115
|
}) || t.news_language[0];
|
|
@@ -9187,11 +9196,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9187
9196
|
[e]
|
|
9188
9197
|
), U = H(
|
|
9189
9198
|
async ({ paramsData: c } = {}) => {
|
|
9190
|
-
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v =
|
|
9199
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Le().format("HH:mm:ss"), S = Le().subtract(24, "hour").format("HH:mm:ss");
|
|
9191
9200
|
return await e.get("/report/deposit", {
|
|
9192
9201
|
params: {
|
|
9193
|
-
str_date: `${
|
|
9194
|
-
end_date: `${
|
|
9202
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} ${v}`,
|
|
9203
|
+
end_date: `${Le(f).format("YYYY-MM-DD")} ${S}`,
|
|
9195
9204
|
limit: b,
|
|
9196
9205
|
page: C
|
|
9197
9206
|
}
|
|
@@ -9200,11 +9209,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9200
9209
|
[e]
|
|
9201
9210
|
), d = H(
|
|
9202
9211
|
async ({ paramsData: c }) => {
|
|
9203
|
-
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v =
|
|
9212
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Le().format("HH:mm:ss"), S = Le().subtract(24, "hour").format("HH:mm:ss");
|
|
9204
9213
|
return await e.get("report/eventsreward", {
|
|
9205
9214
|
params: {
|
|
9206
|
-
str_date: `${
|
|
9207
|
-
end_date: `${
|
|
9215
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} ${v}`,
|
|
9216
|
+
end_date: `${Le(f).format("YYYY-MM-DD")} ${S}`,
|
|
9208
9217
|
limit: b,
|
|
9209
9218
|
page: C
|
|
9210
9219
|
}
|
|
@@ -9216,8 +9225,8 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9216
9225
|
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9217
9226
|
return await e.get("/report/withdraw", {
|
|
9218
9227
|
params: {
|
|
9219
|
-
str_date: `${
|
|
9220
|
-
end_date: `${
|
|
9228
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9229
|
+
end_date: `${Le(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9221
9230
|
limit: b,
|
|
9222
9231
|
page: C
|
|
9223
9232
|
}
|
|
@@ -9229,8 +9238,8 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9229
9238
|
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9230
9239
|
return await e.get("/report/other", {
|
|
9231
9240
|
params: {
|
|
9232
|
-
str_date: `${
|
|
9233
|
-
end_date: `${
|
|
9241
|
+
str_date: `${Le(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9242
|
+
end_date: `${Le(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9234
9243
|
limit: b,
|
|
9235
9244
|
page: C
|
|
9236
9245
|
}
|
|
@@ -9354,9 +9363,9 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9354
9363
|
queryKey: ["depositV2", e],
|
|
9355
9364
|
queryFn: () => a({ paramsData: e }),
|
|
9356
9365
|
select: (r) => {
|
|
9357
|
-
const { third_party: p, bank: g, vip: U } = r, d =
|
|
9366
|
+
const { third_party: p, bank: g, vip: U } = r, d = Se(p, (l) => ({
|
|
9358
9367
|
...l,
|
|
9359
|
-
providerList:
|
|
9368
|
+
providerList: Se(l.providers, (t) => ({
|
|
9360
9369
|
...t,
|
|
9361
9370
|
providerUid: t.uid,
|
|
9362
9371
|
providerImageUrl: `${Ke}/paymentIcon/${Ei(t.provider_name)}.png`,
|
|
@@ -9508,7 +9517,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9508
9517
|
eventTransaction: m,
|
|
9509
9518
|
withdrawTransaction: _
|
|
9510
9519
|
};
|
|
9511
|
-
}, ur = "3.
|
|
9520
|
+
}, ur = "3.8.0", Rs = ur, Ia = typeof Buffer == "function", Pn = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, wn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ps = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ya = Array.prototype.slice.call(Ps), mt = ((e) => {
|
|
9512
9521
|
let n = {};
|
|
9513
9522
|
return e.forEach((a, r) => n[a] = r), n;
|
|
9514
9523
|
})(Ya), ws = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Pe = String.fromCharCode.bind(String), Fn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), pr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), gr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), dr = (e) => {
|
|
@@ -9703,7 +9712,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9703
9712
|
},
|
|
9704
9713
|
select: (r) => {
|
|
9705
9714
|
try {
|
|
9706
|
-
const p =
|
|
9715
|
+
const p = Se(Q(r, "data.data", []), (g) => {
|
|
9707
9716
|
const {
|
|
9708
9717
|
wagering_restricted_amount: U,
|
|
9709
9718
|
claimed_amount: d
|
|
@@ -9841,7 +9850,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9841
9850
|
last_page: Q(d, "last_page", 1)
|
|
9842
9851
|
};
|
|
9843
9852
|
return {
|
|
9844
|
-
list:
|
|
9853
|
+
list: Se(Q(d, "data", []), (i) => {
|
|
9845
9854
|
const o = Ve(i.treasure_copywriting, {
|
|
9846
9855
|
language: p
|
|
9847
9856
|
});
|
|
@@ -9875,7 +9884,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9875
9884
|
queryKey: ["vipInfo"],
|
|
9876
9885
|
queryFn: async () => r(),
|
|
9877
9886
|
select: (p) => {
|
|
9878
|
-
const { data: g } = p, U = Q(g, "data", []), d =
|
|
9887
|
+
const { data: g } = p, U = Q(g, "data", []), d = Se(U, (t) => ({
|
|
9879
9888
|
currentWager: t.wagering || t.value,
|
|
9880
9889
|
currentStatus: t.status,
|
|
9881
9890
|
currentOverflow: t.promotion_overflow,
|
|
@@ -9888,7 +9897,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9888
9897
|
currentType: g.type,
|
|
9889
9898
|
currentOverflow: g.promotion_overflow,
|
|
9890
9899
|
nextLevel: g.promotion_level,
|
|
9891
|
-
typeList:
|
|
9900
|
+
typeList: Se(d, (t) => t.type),
|
|
9892
9901
|
currentWagerKeyBy: l
|
|
9893
9902
|
};
|
|
9894
9903
|
},
|
|
@@ -9904,14 +9913,14 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9904
9913
|
},
|
|
9905
9914
|
select: (p) => {
|
|
9906
9915
|
const g = ea(p) ? p : p.data;
|
|
9907
|
-
return
|
|
9916
|
+
return Se(g, (d) => {
|
|
9908
9917
|
const {
|
|
9909
9918
|
vip_criteria: l,
|
|
9910
9919
|
vip_payment_tags: t,
|
|
9911
9920
|
vip_withdrawal_rate: i,
|
|
9912
9921
|
rebate_range: o,
|
|
9913
9922
|
vip_game_rebate: s
|
|
9914
|
-
} = d, u = Ve(l, { currency_code: a }) || {}, m = Ve(t, { currency_code: a }) || {}, _ = i, c =
|
|
9923
|
+
} = d, u = Ve(l, { currency_code: a }) || {}, m = Ve(t, { currency_code: a }) || {}, _ = i, c = Se(o, (b) => ({
|
|
9915
9924
|
...b,
|
|
9916
9925
|
rebateRange: JSON.parse(b.rebate_range)
|
|
9917
9926
|
})), y = Q(s, "[0]", {}), f = {
|
|
@@ -10103,7 +10112,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10103
10112
|
tempMaintenanceEndTime: o,
|
|
10104
10113
|
platformImageUrl: s
|
|
10105
10114
|
};
|
|
10106
|
-
}, Xs = (e = {}) => !Yt(e) ||
|
|
10115
|
+
}, Xs = (e = {}) => !Yt(e) || Ge(e) ? [] : Xt(e), Bn = (e = []) => !ea(e) || Ge(e) ? [] : Se(e, "platform"), em = (e = []) => !ea(e) || Ge(e) ? [] : Se(e, "gameTypeName"), am = (e = []) => !ea(e) || Ge(e) ? [] : Se(e, "game_subtype"), tm = (e = {}) => !Yt(e) || Ge(e) ? [] : Xt(e), im = (e = [], n = []) => !ea(e) || Ge(e) ? {} : !ea(n) || Ge(n) ? {} : e.reduce((a, r) => {
|
|
10107
10116
|
const p = n.map((g) => g.game_subtype);
|
|
10108
10117
|
return p.forEach((g) => {
|
|
10109
10118
|
a[g] = a[g] || [];
|
|
@@ -10114,7 +10123,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10114
10123
|
gameList: a = {},
|
|
10115
10124
|
allGameTypes: r = [],
|
|
10116
10125
|
allPlatforms: p = []
|
|
10117
|
-
}) => !ea(e) || !ea(n) ? {} :
|
|
10126
|
+
}) => !ea(e) || !ea(n) ? {} : Ge(a) ? {} : e.reduce((g, U) => {
|
|
10118
10127
|
const d = nl({
|
|
10119
10128
|
gameTypeName: U,
|
|
10120
10129
|
platforms: n,
|
|
@@ -10122,7 +10131,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10122
10131
|
allGameTypes: r,
|
|
10123
10132
|
allPlatforms: p
|
|
10124
10133
|
});
|
|
10125
|
-
return
|
|
10134
|
+
return Ge(d) || (g[U] = d), g;
|
|
10126
10135
|
}, {}), Au = ({
|
|
10127
10136
|
types: e = [],
|
|
10128
10137
|
platforms: n = [],
|
|
@@ -10138,13 +10147,13 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10138
10147
|
gamesOfType: l,
|
|
10139
10148
|
allPlatforms: r
|
|
10140
10149
|
});
|
|
10141
|
-
return
|
|
10150
|
+
return Ge(s) ? i : { ...i, [o]: s };
|
|
10142
10151
|
}, {});
|
|
10143
|
-
return
|
|
10144
|
-
}, {}), rm = (e = {}) => !Yt(e) ||
|
|
10152
|
+
return Ge(t) || (g[U] = t), g;
|
|
10153
|
+
}, {}), rm = (e = {}) => !Yt(e) || Ge(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([p, g]) => {
|
|
10145
10154
|
a[p] ? a[p] = [...a[p], ...g] : a[p] = g;
|
|
10146
10155
|
}), a), {}), lm = (e = {}) => {
|
|
10147
|
-
if (!Yt(e) ||
|
|
10156
|
+
if (!Yt(e) || Ge(e)) return {};
|
|
10148
10157
|
const n = {};
|
|
10149
10158
|
for (const [a, r] of Object.entries(e)) {
|
|
10150
10159
|
n[a] = {};
|
|
@@ -10173,7 +10182,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10173
10182
|
gameList: e,
|
|
10174
10183
|
allGameTypes: a,
|
|
10175
10184
|
allPlatforms: n
|
|
10176
|
-
}), f =
|
|
10185
|
+
}), f = Se(n, (M) => {
|
|
10177
10186
|
const A = `${Ke}/${$n}/${M.platformEnum}.png`;
|
|
10178
10187
|
return {
|
|
10179
10188
|
...M,
|
|
@@ -10222,7 +10231,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10222
10231
|
favorite: c
|
|
10223
10232
|
}
|
|
10224
10233
|
};
|
|
10225
|
-
}, Ou = (e = []) => !ea(e) ||
|
|
10234
|
+
}, Ou = (e = []) => !ea(e) || Ge(e) ? [] : Xt(e, (n) => Ge(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
|
|
10226
10235
|
...n,
|
|
10227
10236
|
...a,
|
|
10228
10237
|
platform: a.SubPlatformEnum,
|
|
@@ -37844,15 +37853,7 @@ const vm = {
|
|
|
37844
37853
|
return ue(() => {
|
|
37845
37854
|
if (U.current) return;
|
|
37846
37855
|
const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), t = d.get("bind_id");
|
|
37847
|
-
|
|
37848
|
-
switch (U.current = !0, l) {
|
|
37849
|
-
case "line":
|
|
37850
|
-
n({ bindType: l, bindId: t });
|
|
37851
|
-
break;
|
|
37852
|
-
default:
|
|
37853
|
-
console.warn(`Unsupported bind type: ${l}`);
|
|
37854
|
-
break;
|
|
37855
|
-
}
|
|
37856
|
+
l && t && (U.current = !0, l === "line" ? n({ bindType: l, bindId: t }) : console.warn(`Unsupported bind type: ${l}`));
|
|
37856
37857
|
}, [n]), null;
|
|
37857
37858
|
};
|
|
37858
37859
|
export {
|