@obb871001/api-integration-sdk 1.0.364 → 1.0.366
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 +4 -4
- package/dist/index.js +998 -976
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import de, { createContext as Qt, useContext as _i, useState as mi, useMemo as Oa, useCallback as z, useRef as te, useEffect as pe } from "react";
|
|
2
|
-
import { useQueries as zn, useQuery as
|
|
2
|
+
import { useQueries as zn, useQuery as $, useQueryClient as Wa, useMutation as ee, QueryClient as Br, QueryClientProvider as Hr } from "@tanstack/react-query";
|
|
3
3
|
import Wr from "axios";
|
|
4
|
-
import { get as Y, find as Ie, isEmpty as
|
|
4
|
+
import { get as Y, find as Ie, isEmpty as Ne, entries as In, forEach as zr, map as Le, isArray as ea, toLower as Ei, omit as Ir, keyBy as Vr, replace as it, includes as Jr, isObject as jt, flatMap as Yt, values as Zr, keys as Ni } from "lodash";
|
|
5
5
|
import Kr from "react-dom";
|
|
6
6
|
var ti = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function yi(e) {
|
|
@@ -50,24 +50,24 @@ var qa = {};
|
|
|
50
50
|
var Gi;
|
|
51
51
|
function Qr() {
|
|
52
52
|
return Gi || (Gi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = 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,
|
|
54
|
-
function
|
|
53
|
+
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = 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";
|
|
54
|
+
function c(T) {
|
|
55
55
|
if (T === null || typeof T != "object")
|
|
56
56
|
return null;
|
|
57
|
-
var I = m && T[m] || T[
|
|
57
|
+
var I = m && T[m] || T[_];
|
|
58
58
|
return typeof I == "function" ? I : null;
|
|
59
59
|
}
|
|
60
60
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
|
-
function
|
|
61
|
+
function f(T) {
|
|
62
62
|
{
|
|
63
|
-
for (var I = arguments.length, J = new Array(I > 1 ? I - 1 : 0),
|
|
64
|
-
J[
|
|
63
|
+
for (var I = arguments.length, J = new Array(I > 1 ? I - 1 : 0), Q = 1; Q < I; Q++)
|
|
64
|
+
J[Q - 1] = arguments[Q];
|
|
65
65
|
U("error", T, J);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
function U(T, I, J) {
|
|
69
69
|
{
|
|
70
|
-
var
|
|
70
|
+
var Q = y.ReactDebugCurrentFrame, ue = Q.getStackAddendum();
|
|
71
71
|
ue !== "" && (I += "%s", J = J.concat([ue]));
|
|
72
72
|
var ge = J.map(function(le) {
|
|
73
73
|
return String(le);
|
|
@@ -75,19 +75,19 @@ function Qr() {
|
|
|
75
75
|
ge.unshift("Warning: " + I), Function.prototype.apply.call(console[T], console, ge);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var C = !1, v = !1,
|
|
78
|
+
var C = !1, v = !1, x = !1, E = !1, G = !1, O;
|
|
79
79
|
O = Symbol.for("react.module.reference");
|
|
80
80
|
function k(T) {
|
|
81
|
-
return !!(typeof T == "string" || typeof T == "function" || T === r || T === g || G || T === p || T === a || T === i || E || T === u || C || v ||
|
|
81
|
+
return !!(typeof T == "string" || typeof T == "function" || T === r || T === g || G || T === p || T === a || T === i || E || T === u || C || v || x || typeof T == "object" && T !== null && (T.$$typeof === s || T.$$typeof === o || T.$$typeof === b || T.$$typeof === d || T.$$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.
|
|
85
85
|
T.$$typeof === O || T.getModuleId !== void 0));
|
|
86
86
|
}
|
|
87
87
|
function h(T, I, J) {
|
|
88
|
-
var
|
|
89
|
-
if (
|
|
90
|
-
return
|
|
88
|
+
var Q = T.displayName;
|
|
89
|
+
if (Q)
|
|
90
|
+
return Q;
|
|
91
91
|
var ue = I.displayName || I.name || "";
|
|
92
92
|
return ue !== "" ? J + "(" + ue + ")" : J;
|
|
93
93
|
}
|
|
@@ -97,7 +97,7 @@ function Qr() {
|
|
|
97
97
|
function A(T) {
|
|
98
98
|
if (T == null)
|
|
99
99
|
return null;
|
|
100
|
-
if (typeof T.tag == "number" &&
|
|
100
|
+
if (typeof T.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof T == "function")
|
|
101
101
|
return T.displayName || T.name || null;
|
|
102
102
|
if (typeof T == "string")
|
|
103
103
|
return T;
|
|
@@ -126,8 +126,8 @@ function Qr() {
|
|
|
126
126
|
case l:
|
|
127
127
|
return h(T, T.render, "ForwardRef");
|
|
128
128
|
case o:
|
|
129
|
-
var
|
|
130
|
-
return
|
|
129
|
+
var Q = T.displayName || null;
|
|
130
|
+
return Q !== null ? Q : A(T.type) || "Memo";
|
|
131
131
|
case s: {
|
|
132
132
|
var ue = T, ge = ue._payload, le = ue._init;
|
|
133
133
|
try {
|
|
@@ -139,14 +139,14 @@ function Qr() {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var w = Object.assign, R = 0, P, H, B, W, M, D,
|
|
142
|
+
var w = Object.assign, R = 0, P, H, B, W, M, D, S;
|
|
143
143
|
function L() {
|
|
144
144
|
}
|
|
145
145
|
L.__reactDisabledLog = !0;
|
|
146
146
|
function N() {
|
|
147
147
|
{
|
|
148
148
|
if (R === 0) {
|
|
149
|
-
P = console.log, H = console.info, B = console.warn, W = console.error, M = console.group, D = console.groupCollapsed,
|
|
149
|
+
P = console.log, H = console.info, B = console.warn, W = console.error, M = console.group, D = console.groupCollapsed, S = console.groupEnd;
|
|
150
150
|
var T = {
|
|
151
151
|
configurable: !0,
|
|
152
152
|
enumerable: !0,
|
|
@@ -194,11 +194,11 @@ function Qr() {
|
|
|
194
194
|
value: D
|
|
195
195
|
}),
|
|
196
196
|
groupEnd: w({}, T, {
|
|
197
|
-
value:
|
|
197
|
+
value: S
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
R < 0 &&
|
|
201
|
+
R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
var q = y.ReactCurrentDispatcher, j;
|
|
@@ -208,8 +208,8 @@ function Qr() {
|
|
|
208
208
|
try {
|
|
209
209
|
throw Error();
|
|
210
210
|
} catch (ue) {
|
|
211
|
-
var
|
|
212
|
-
j =
|
|
211
|
+
var Q = ue.stack.trim().match(/\n( *(at )?)/);
|
|
212
|
+
j = Q && Q[1] || "";
|
|
213
213
|
}
|
|
214
214
|
return `
|
|
215
215
|
` + j + T;
|
|
@@ -228,7 +228,7 @@ function Qr() {
|
|
|
228
228
|
if (J !== void 0)
|
|
229
229
|
return J;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
231
|
+
var Q;
|
|
232
232
|
ie = !0;
|
|
233
233
|
var ue = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
@@ -247,14 +247,14 @@ function Qr() {
|
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(le, []);
|
|
249
249
|
} catch (ze) {
|
|
250
|
-
|
|
250
|
+
Q = ze;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(T, [], le);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
le.call();
|
|
256
256
|
} catch (ze) {
|
|
257
|
-
|
|
257
|
+
Q = ze;
|
|
258
258
|
}
|
|
259
259
|
T.call(le.prototype);
|
|
260
260
|
}
|
|
@@ -262,14 +262,14 @@ function Qr() {
|
|
|
262
262
|
try {
|
|
263
263
|
throw Error();
|
|
264
264
|
} catch (ze) {
|
|
265
|
-
|
|
265
|
+
Q = ze;
|
|
266
266
|
}
|
|
267
267
|
T();
|
|
268
268
|
}
|
|
269
269
|
} catch (ze) {
|
|
270
|
-
if (ze &&
|
|
270
|
+
if (ze && Q && typeof ze.stack == "string") {
|
|
271
271
|
for (var ae = ze.stack.split(`
|
|
272
|
-
`), Be =
|
|
272
|
+
`), Be = Q.stack.split(`
|
|
273
273
|
`), be = ae.length - 1, he = Be.length - 1; be >= 1 && he >= 0 && ae[be] !== Be[he]; )
|
|
274
274
|
he--;
|
|
275
275
|
for (; be >= 1 && he >= 0; be--, he--)
|
|
@@ -318,7 +318,7 @@ function Qr() {
|
|
|
318
318
|
case o:
|
|
319
319
|
return ke(T.type, I, J);
|
|
320
320
|
case s: {
|
|
321
|
-
var
|
|
321
|
+
var Q = T, ue = Q._payload, ge = Q._init;
|
|
322
322
|
try {
|
|
323
323
|
return ke(ge(ue), I, J);
|
|
324
324
|
} catch {
|
|
@@ -328,14 +328,14 @@ function Qr() {
|
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
330
|
var fe = Object.prototype.hasOwnProperty, Ve = {}, Ce = y.ReactDebugCurrentFrame;
|
|
331
|
-
function
|
|
331
|
+
function Pe(T) {
|
|
332
332
|
if (T) {
|
|
333
333
|
var I = T._owner, J = ke(T.type, T._source, I ? I.type : null);
|
|
334
334
|
Ce.setExtraStackFrame(J);
|
|
335
335
|
} else
|
|
336
336
|
Ce.setExtraStackFrame(null);
|
|
337
337
|
}
|
|
338
|
-
function aa(T, I, J,
|
|
338
|
+
function aa(T, I, J, Q, ue) {
|
|
339
339
|
{
|
|
340
340
|
var ge = Function.call.bind(fe);
|
|
341
341
|
for (var le in T)
|
|
@@ -343,20 +343,20 @@ function Qr() {
|
|
|
343
343
|
var ae = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof T[le] != "function") {
|
|
346
|
-
var Be = Error((
|
|
346
|
+
var Be = Error((Q || "React class") + ": " + J + " type `" + le + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof T[le] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
347
|
throw Be.name = "Invariant Violation", Be;
|
|
348
348
|
}
|
|
349
|
-
ae = T[le](I, le,
|
|
349
|
+
ae = T[le](I, le, Q, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
350
|
} catch (be) {
|
|
351
351
|
ae = be;
|
|
352
352
|
}
|
|
353
|
-
ae && !(ae instanceof Error) && (
|
|
353
|
+
ae && !(ae instanceof Error) && (Pe(ue), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", J, le, typeof ae), Pe(null)), ae instanceof Error && !(ae.message in Ve) && (Ve[ae.message] = !0, Pe(ue), f("Failed %s type: %s", J, ae.message), Pe(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
var
|
|
357
|
+
var we = Array.isArray;
|
|
358
358
|
function ve(T) {
|
|
359
|
-
return
|
|
359
|
+
return we(T);
|
|
360
360
|
}
|
|
361
361
|
function We(T) {
|
|
362
362
|
{
|
|
@@ -376,9 +376,9 @@ function Qr() {
|
|
|
376
376
|
}
|
|
377
377
|
function xe(T) {
|
|
378
378
|
if (ta(T))
|
|
379
|
-
return
|
|
379
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", We(T)), ia(T);
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var Fe = y.ReactCurrentOwner, je = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
@@ -401,12 +401,12 @@ function Qr() {
|
|
|
401
401
|
return T.key !== void 0;
|
|
402
402
|
}
|
|
403
403
|
function Va(T, I) {
|
|
404
|
-
typeof T.ref == "string" &&
|
|
404
|
+
typeof T.ref == "string" && Fe.current;
|
|
405
405
|
}
|
|
406
406
|
function Da(T, I) {
|
|
407
407
|
{
|
|
408
408
|
var J = function() {
|
|
409
|
-
oa || (oa = !0,
|
|
409
|
+
oa || (oa = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
410
410
|
};
|
|
411
411
|
J.isReactWarning = !0, Object.defineProperty(T, "key", {
|
|
412
412
|
get: J,
|
|
@@ -417,7 +417,7 @@ function Qr() {
|
|
|
417
417
|
function Ea(T, I) {
|
|
418
418
|
{
|
|
419
419
|
var J = function() {
|
|
420
|
-
ga || (ga = !0,
|
|
420
|
+
ga || (ga = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
421
421
|
};
|
|
422
422
|
J.isReactWarning = !0, Object.defineProperty(T, "ref", {
|
|
423
423
|
get: J,
|
|
@@ -425,7 +425,7 @@ function Qr() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Ja = function(T, I, J,
|
|
428
|
+
var Ja = function(T, I, J, Q, ue, ge, le) {
|
|
429
429
|
var ae = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: n,
|
|
@@ -446,7 +446,7 @@ function Qr() {
|
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
449
|
+
value: Q
|
|
450
450
|
}), Object.defineProperty(ae, "_source", {
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
@@ -454,7 +454,7 @@ function Qr() {
|
|
|
454
454
|
value: ue
|
|
455
455
|
}), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
|
|
456
456
|
};
|
|
457
|
-
function Za(T, I, J,
|
|
457
|
+
function Za(T, I, J, Q, ue) {
|
|
458
458
|
{
|
|
459
459
|
var ge, le = {}, ae = null, Be = null;
|
|
460
460
|
J !== void 0 && (xe(J), ae = "" + J), Ye(I) && (xe(I.key), ae = "" + I.key), Je(I) && (Be = I.ref, Va(I, ue));
|
|
@@ -469,7 +469,7 @@ function Qr() {
|
|
|
469
469
|
var he = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
|
|
470
470
|
ae && Da(le, he), Be && Ea(le, he);
|
|
471
471
|
}
|
|
472
|
-
return Ja(T, ae, Be, ue,
|
|
472
|
+
return Ja(T, ae, Be, ue, Q, Fe.current, le);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
|
|
@@ -522,8 +522,8 @@ Check the top-level render call using <` + J + ">.");
|
|
|
522
522
|
if (Ua[J])
|
|
523
523
|
return;
|
|
524
524
|
Ua[J] = !0;
|
|
525
|
-
var
|
|
526
|
-
T && T._owner && T._owner !== da.current && (
|
|
525
|
+
var Q = "";
|
|
526
|
+
T && T._owner && T._owner !== da.current && (Q = " It was passed a child from " + A(T._owner.type) + "."), qe(T), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', J, Q), qe(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function Se(T, I) {
|
|
@@ -532,13 +532,13 @@ Check the top-level render call using <` + J + ">.");
|
|
|
532
532
|
return;
|
|
533
533
|
if (ve(T))
|
|
534
534
|
for (var J = 0; J < T.length; J++) {
|
|
535
|
-
var
|
|
536
|
-
fa(
|
|
535
|
+
var Q = T[J];
|
|
536
|
+
fa(Q) && Ma(Q, I);
|
|
537
537
|
}
|
|
538
538
|
else if (fa(T))
|
|
539
539
|
T._store && (T._store.validated = !0);
|
|
540
540
|
else if (T) {
|
|
541
|
-
var ue =
|
|
541
|
+
var ue = c(T);
|
|
542
542
|
if (typeof ue == "function" && ue !== T.entries)
|
|
543
543
|
for (var ge = ue.call(T), le; !(le = ge.next()).done; )
|
|
544
544
|
fa(le.value) && Ma(le.value, I);
|
|
@@ -560,30 +560,30 @@ Check the top-level render call using <` + J + ">.");
|
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
562
|
if (J) {
|
|
563
|
-
var
|
|
564
|
-
aa(J, T.props, "prop",
|
|
563
|
+
var Q = A(I);
|
|
564
|
+
aa(J, T.props, "prop", Q, T);
|
|
565
565
|
} else if (I.PropTypes !== void 0 && !ca) {
|
|
566
566
|
ca = !0;
|
|
567
567
|
var ue = A(I);
|
|
568
|
-
|
|
568
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ue || "Unknown");
|
|
569
569
|
}
|
|
570
|
-
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved &&
|
|
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
573
|
function De(T) {
|
|
574
574
|
{
|
|
575
575
|
for (var I = Object.keys(T.props), J = 0; J < I.length; J++) {
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
qe(T),
|
|
576
|
+
var Q = I[J];
|
|
577
|
+
if (Q !== "children" && Q !== "key") {
|
|
578
|
+
qe(T), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), qe(null);
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
T.ref !== null && (qe(T),
|
|
582
|
+
T.ref !== null && (qe(T), f("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var na = {};
|
|
586
|
-
function
|
|
586
|
+
function Ae(T, I, J, Q, ue, ge) {
|
|
587
587
|
{
|
|
588
588
|
var le = k(T);
|
|
589
589
|
if (!le) {
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + J + ">.");
|
|
|
592
592
|
var Be = La();
|
|
593
593
|
Be ? ae += Be : ae += Na();
|
|
594
594
|
var be;
|
|
595
|
-
T === null ? be = "null" : ve(T) ? be = "array" : T !== void 0 && T.$$typeof === n ? (be = "<" + (A(T.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : be = typeof T,
|
|
595
|
+
T === null ? be = "null" : ve(T) ? be = "array" : T !== void 0 && T.$$typeof === n ? (be = "<" + (A(T.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : be = typeof T, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, ae);
|
|
596
596
|
}
|
|
597
597
|
var he = Za(T, I, J, ue, ge);
|
|
598
598
|
if (he == null)
|
|
@@ -600,13 +600,13 @@ Check the top-level render call using <` + J + ">.");
|
|
|
600
600
|
if (le) {
|
|
601
601
|
var $e = I.children;
|
|
602
602
|
if ($e !== void 0)
|
|
603
|
-
if (
|
|
603
|
+
if (Q)
|
|
604
604
|
if (ve($e)) {
|
|
605
605
|
for (var Ra = 0; Ra < $e.length; Ra++)
|
|
606
606
|
Se($e[Ra], T);
|
|
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
|
Se($e, T);
|
|
612
612
|
}
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + J + ">.");
|
|
|
616
616
|
}), ai = ze.length > 0 ? "{key: someKey, " + ze.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!na[ba + ai]) {
|
|
618
618
|
var Ar = ze.length > 0 ? "{" + ze.join(": ..., ") + ": ...}" : "{}";
|
|
619
|
-
|
|
619
|
+
f(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
622
622
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -628,10 +628,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function ra(T, I, J) {
|
|
631
|
-
return
|
|
631
|
+
return Ae(T, I, J, !0);
|
|
632
632
|
}
|
|
633
633
|
function tt(T, I, J) {
|
|
634
|
-
return
|
|
634
|
+
return Ae(T, I, J, !1);
|
|
635
635
|
}
|
|
636
636
|
var ei = tt, Fr = ra;
|
|
637
637
|
qa.Fragment = r, qa.jsx = ei, qa.jsxs = Fr;
|
|
@@ -786,7 +786,7 @@ const Qn = Qt(null), Tm = () => {
|
|
|
786
786
|
minimumFractionDigits: 2,
|
|
787
787
|
maximumFractionDigits: 2
|
|
788
788
|
}).format(n);
|
|
789
|
-
}, jn = (e = [], n) => Ie(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ie(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ie(e, { SubPlatformEnum: n }), er = (e = [], n, t) =>
|
|
789
|
+
}, jn = (e = [], n) => Ie(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ie(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ie(e, { SubPlatformEnum: n }), er = (e = [], n, t) => Ne(e) ? [] : e.filter((r) => t ? String(r?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(r.platformUid) === String(n)), el = (e = []) => Ne(e) ? {} : e.reduce((n, t) => {
|
|
790
790
|
const r = t?.game_subtype || "UNKNOWN";
|
|
791
791
|
return n[r] || (n[r] = []), n[r].push(t), n;
|
|
792
792
|
}, {}), al = ({
|
|
@@ -803,7 +803,7 @@ const Qn = Qt(null), Tm = () => {
|
|
|
803
803
|
l,
|
|
804
804
|
a
|
|
805
805
|
);
|
|
806
|
-
return
|
|
806
|
+
return Ne(o) || (b[d] = o), b;
|
|
807
807
|
}, {}) : {};
|
|
808
808
|
}, tl = ({
|
|
809
809
|
platformName: e,
|
|
@@ -823,7 +823,7 @@ function nl() {
|
|
|
823
823
|
(function(t, r) {
|
|
824
824
|
e.exports = r();
|
|
825
825
|
})(il, (function() {
|
|
826
|
-
var t = 1e3, r = 6e4, p = 36e5, g = "millisecond", b = "second", d = "minute", l = "hour", a = "day", i = "week", o = "month", s = "quarter", u = "year", m = "date",
|
|
826
|
+
var t = 1e3, r = 6e4, p = 36e5, g = "millisecond", b = "second", d = "minute", l = "hour", a = "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 = /\[([^\]]+)]|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, 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) {
|
|
827
827
|
var R = ["th", "st", "nd", "rd"], P = w % 100;
|
|
828
828
|
return "[" + w + (R[(P - 20) % 10] || R[P] || R[0]) + "]";
|
|
829
829
|
} }, U = function(w, R, P) {
|
|
@@ -842,8 +842,8 @@ function nl() {
|
|
|
842
842
|
return { M: o, y: u, w: i, d: a, D: m, h: l, m: d, s: b, ms: g, Q: s }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
843
843
|
}, u: function(w) {
|
|
844
844
|
return w === void 0;
|
|
845
|
-
} }, v = "en",
|
|
846
|
-
|
|
845
|
+
} }, v = "en", x = {};
|
|
846
|
+
x[v] = f;
|
|
847
847
|
var E = "$isDayjsObject", G = function(w) {
|
|
848
848
|
return w instanceof F || !(!w || !w[E]);
|
|
849
849
|
}, O = function w(R, P, H) {
|
|
@@ -851,12 +851,12 @@ function nl() {
|
|
|
851
851
|
if (!R) return v;
|
|
852
852
|
if (typeof R == "string") {
|
|
853
853
|
var W = R.toLowerCase();
|
|
854
|
-
|
|
854
|
+
x[W] && (B = W), P && (x[W] = P, B = W);
|
|
855
855
|
var M = R.split("-");
|
|
856
856
|
if (!B && M.length > 1) return w(M[0]);
|
|
857
857
|
} else {
|
|
858
858
|
var D = R.name;
|
|
859
|
-
|
|
859
|
+
x[D] = R, B = D;
|
|
860
860
|
}
|
|
861
861
|
return !H && B && (v = B), B || !H && v;
|
|
862
862
|
}, k = function(w, R) {
|
|
@@ -879,10 +879,10 @@ function nl() {
|
|
|
879
879
|
if (h.u(B)) return /* @__PURE__ */ new Date();
|
|
880
880
|
if (B instanceof Date) return new Date(B);
|
|
881
881
|
if (typeof B == "string" && !/Z$/i.test(B)) {
|
|
882
|
-
var M = B.match(
|
|
882
|
+
var M = B.match(c);
|
|
883
883
|
if (M) {
|
|
884
|
-
var D = M[2] - 1 || 0,
|
|
885
|
-
return W ? new Date(Date.UTC(M[1], D, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0,
|
|
884
|
+
var D = M[2] - 1 || 0, S = (M[7] || "0").substring(0, 3);
|
|
885
|
+
return W ? new Date(Date.UTC(M[1], D, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, S)) : new Date(M[1], D, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, S);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
return new Date(B);
|
|
@@ -893,7 +893,7 @@ function nl() {
|
|
|
893
893
|
}, R.$utils = function() {
|
|
894
894
|
return h;
|
|
895
895
|
}, R.isValid = function() {
|
|
896
|
-
return this.$d.toString() !==
|
|
896
|
+
return this.$d.toString() !== _;
|
|
897
897
|
}, R.isSame = function(P, H) {
|
|
898
898
|
var B = k(P);
|
|
899
899
|
return this.startOf(H) <= B && B <= this.endOf(H);
|
|
@@ -911,7 +911,7 @@ function nl() {
|
|
|
911
911
|
var B = this, W = !!h.u(H) || H, M = h.p(P), D = function(ie, re) {
|
|
912
912
|
var ye = h.w(B.$u ? Date.UTC(B.$y, re, ie) : new Date(B.$y, re, ie), B);
|
|
913
913
|
return W ? ye : ye.endOf(a);
|
|
914
|
-
},
|
|
914
|
+
}, S = function(ie, re) {
|
|
915
915
|
return h.w(B.toDate()[ie].apply(B.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), B);
|
|
916
916
|
}, L = this.$W, N = this.$M, Z = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
917
917
|
switch (M) {
|
|
@@ -924,24 +924,24 @@ function nl() {
|
|
|
924
924
|
return D(W ? Z - K : Z + (6 - K), N);
|
|
925
925
|
case a:
|
|
926
926
|
case m:
|
|
927
|
-
return
|
|
927
|
+
return S(q + "Hours", 0);
|
|
928
928
|
case l:
|
|
929
|
-
return
|
|
929
|
+
return S(q + "Minutes", 1);
|
|
930
930
|
case d:
|
|
931
|
-
return
|
|
931
|
+
return S(q + "Seconds", 2);
|
|
932
932
|
case b:
|
|
933
|
-
return
|
|
933
|
+
return S(q + "Milliseconds", 3);
|
|
934
934
|
default:
|
|
935
935
|
return this.clone();
|
|
936
936
|
}
|
|
937
937
|
}, R.endOf = function(P) {
|
|
938
938
|
return this.startOf(P, !1);
|
|
939
939
|
}, R.$set = function(P, H) {
|
|
940
|
-
var B, W = h.p(P), M = "set" + (this.$u ? "UTC" : ""), D = (B = {}, B[a] = M + "Date", B[m] = M + "Date", B[o] = M + "Month", B[u] = M + "FullYear", B[l] = M + "Hours", B[d] = M + "Minutes", B[b] = M + "Seconds", B[g] = M + "Milliseconds", B)[W],
|
|
940
|
+
var B, W = h.p(P), M = "set" + (this.$u ? "UTC" : ""), D = (B = {}, B[a] = M + "Date", B[m] = M + "Date", B[o] = M + "Month", B[u] = M + "FullYear", B[l] = M + "Hours", B[d] = M + "Minutes", B[b] = M + "Seconds", B[g] = M + "Milliseconds", B)[W], S = W === a ? this.$D + (H - this.$W) : H;
|
|
941
941
|
if (W === o || W === u) {
|
|
942
942
|
var L = this.clone().set(m, 1);
|
|
943
|
-
L.$d[D](
|
|
944
|
-
} else D && this.$d[D](
|
|
943
|
+
L.$d[D](S), L.init(), this.$d = L.set(m, Math.min(this.$D, L.daysInMonth())).$d;
|
|
944
|
+
} else D && this.$d[D](S);
|
|
945
945
|
return this.init(), this;
|
|
946
946
|
}, R.set = function(P, H) {
|
|
947
947
|
return this.clone().$set(P, H);
|
|
@@ -958,14 +958,14 @@ function nl() {
|
|
|
958
958
|
if (M === u) return this.set(u, this.$y + P);
|
|
959
959
|
if (M === a) return D(1);
|
|
960
960
|
if (M === i) return D(7);
|
|
961
|
-
var
|
|
961
|
+
var S = (B = {}, B[d] = r, B[l] = p, B[b] = t, B)[M] || 1, L = this.$d.getTime() + P * S;
|
|
962
962
|
return h.w(L, this);
|
|
963
963
|
}, R.subtract = function(P, H) {
|
|
964
964
|
return this.add(-1 * P, H);
|
|
965
965
|
}, R.format = function(P) {
|
|
966
966
|
var H = this, B = this.$locale();
|
|
967
|
-
if (!this.isValid()) return B.invalidDate ||
|
|
968
|
-
var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), D = this.$H,
|
|
967
|
+
if (!this.isValid()) return B.invalidDate || _;
|
|
968
|
+
var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), D = this.$H, S = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, j = function(re, ye, Ue, me) {
|
|
969
969
|
return re && (re[ye] || re(H, W)) || Ue[ye].slice(0, me);
|
|
970
970
|
}, K = function(re) {
|
|
971
971
|
return h.s(D % 12 || 12, re, "0");
|
|
@@ -1009,13 +1009,13 @@ function nl() {
|
|
|
1009
1009
|
case "hh":
|
|
1010
1010
|
return K(2);
|
|
1011
1011
|
case "a":
|
|
1012
|
-
return ie(D,
|
|
1012
|
+
return ie(D, S, !0);
|
|
1013
1013
|
case "A":
|
|
1014
|
-
return ie(D,
|
|
1014
|
+
return ie(D, S, !1);
|
|
1015
1015
|
case "m":
|
|
1016
|
-
return String(
|
|
1016
|
+
return String(S);
|
|
1017
1017
|
case "mm":
|
|
1018
|
-
return h.s(
|
|
1018
|
+
return h.s(S, 2, "0");
|
|
1019
1019
|
case "s":
|
|
1020
1020
|
return String(H.$s);
|
|
1021
1021
|
case "ss":
|
|
@@ -1031,8 +1031,8 @@ function nl() {
|
|
|
1031
1031
|
}, R.utcOffset = function() {
|
|
1032
1032
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1033
1033
|
}, R.diff = function(P, H, B) {
|
|
1034
|
-
var W, M = this, D = h.p(H),
|
|
1035
|
-
return h.m(M,
|
|
1034
|
+
var W, M = this, D = h.p(H), S = k(P), L = (S.utcOffset() - this.utcOffset()) * r, N = this - S, Z = function() {
|
|
1035
|
+
return h.m(M, S);
|
|
1036
1036
|
};
|
|
1037
1037
|
switch (D) {
|
|
1038
1038
|
case u:
|
|
@@ -1066,7 +1066,7 @@ function nl() {
|
|
|
1066
1066
|
}, R.daysInMonth = function() {
|
|
1067
1067
|
return this.endOf(o).$D;
|
|
1068
1068
|
}, R.$locale = function() {
|
|
1069
|
-
return
|
|
1069
|
+
return x[this.$L];
|
|
1070
1070
|
}, R.locale = function(P, H) {
|
|
1071
1071
|
if (!P) return this.$L;
|
|
1072
1072
|
var B = this.clone(), W = O(P, H, !0);
|
|
@@ -1091,12 +1091,12 @@ function nl() {
|
|
|
1091
1091
|
return w.$i || (w(R, F, k), w.$i = !0), k;
|
|
1092
1092
|
}, k.locale = O, k.isDayjs = G, k.unix = function(w) {
|
|
1093
1093
|
return k(1e3 * w);
|
|
1094
|
-
}, k.en =
|
|
1094
|
+
}, k.en = x[v], k.Ls = x, k.p = {}, k;
|
|
1095
1095
|
}));
|
|
1096
1096
|
})(ut)), ut.exports;
|
|
1097
1097
|
}
|
|
1098
1098
|
var rl = nl();
|
|
1099
|
-
const
|
|
1099
|
+
const Ee = /* @__PURE__ */ yi(rl);
|
|
1100
1100
|
var pt = { exports: {} };
|
|
1101
1101
|
function ll(e) {
|
|
1102
1102
|
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.');
|
|
@@ -1134,11 +1134,11 @@ function ne() {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
1136
1136
|
}, d = Object.create || /* @__PURE__ */ (function() {
|
|
1137
|
-
function
|
|
1137
|
+
function f() {
|
|
1138
1138
|
}
|
|
1139
1139
|
return function(U) {
|
|
1140
1140
|
var C;
|
|
1141
|
-
return
|
|
1141
|
+
return f.prototype = U, C = new f(), f.prototype = null, C;
|
|
1142
1142
|
};
|
|
1143
1143
|
})(), l = {}, a = l.lib = {}, i = a.Base = /* @__PURE__ */ (function() {
|
|
1144
1144
|
return {
|
|
@@ -1160,9 +1160,9 @@ function ne() {
|
|
|
1160
1160
|
* }
|
|
1161
1161
|
* });
|
|
1162
1162
|
*/
|
|
1163
|
-
extend: function(
|
|
1163
|
+
extend: function(f) {
|
|
1164
1164
|
var U = d(this);
|
|
1165
|
-
return
|
|
1165
|
+
return f && U.mixIn(f), (!U.hasOwnProperty("init") || this.init === U.init) && (U.init = function() {
|
|
1166
1166
|
U.$super.init.apply(this, arguments);
|
|
1167
1167
|
}), U.init.prototype = U, U.$super = this, U;
|
|
1168
1168
|
},
|
|
@@ -1179,8 +1179,8 @@ function ne() {
|
|
|
1179
1179
|
* var instance = MyType.create();
|
|
1180
1180
|
*/
|
|
1181
1181
|
create: function() {
|
|
1182
|
-
var
|
|
1183
|
-
return
|
|
1182
|
+
var f = this.extend();
|
|
1183
|
+
return f.init.apply(f, arguments), f;
|
|
1184
1184
|
},
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Initializes a newly created object.
|
|
@@ -1207,10 +1207,10 @@ function ne() {
|
|
|
1207
1207
|
* field: 'value'
|
|
1208
1208
|
* });
|
|
1209
1209
|
*/
|
|
1210
|
-
mixIn: function(
|
|
1211
|
-
for (var U in
|
|
1212
|
-
|
|
1213
|
-
|
|
1210
|
+
mixIn: function(f) {
|
|
1211
|
+
for (var U in f)
|
|
1212
|
+
f.hasOwnProperty(U) && (this[U] = f[U]);
|
|
1213
|
+
f.hasOwnProperty("toString") && (this.toString = f.toString);
|
|
1214
1214
|
},
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Creates a copy of this object.
|
|
@@ -1238,8 +1238,8 @@ function ne() {
|
|
|
1238
1238
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
1239
1239
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
1240
1240
|
*/
|
|
1241
|
-
init: function(
|
|
1242
|
-
|
|
1241
|
+
init: function(f, U) {
|
|
1242
|
+
f = this.words = f || [], U != p ? this.sigBytes = U : this.sigBytes = f.length * 4;
|
|
1243
1243
|
},
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Converts this word array to a string.
|
|
@@ -1254,8 +1254,8 @@ function ne() {
|
|
|
1254
1254
|
* var string = wordArray.toString();
|
|
1255
1255
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
1256
1256
|
*/
|
|
1257
|
-
toString: function(
|
|
1258
|
-
return (
|
|
1257
|
+
toString: function(f) {
|
|
1258
|
+
return (f || u).stringify(this);
|
|
1259
1259
|
},
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Concatenates a word array to this word array.
|
|
@@ -1268,17 +1268,17 @@ function ne() {
|
|
|
1268
1268
|
*
|
|
1269
1269
|
* wordArray1.concat(wordArray2);
|
|
1270
1270
|
*/
|
|
1271
|
-
concat: function(
|
|
1272
|
-
var U = this.words, C =
|
|
1271
|
+
concat: function(f) {
|
|
1272
|
+
var U = this.words, C = f.words, v = this.sigBytes, x = f.sigBytes;
|
|
1273
1273
|
if (this.clamp(), v % 4)
|
|
1274
|
-
for (var E = 0; E <
|
|
1274
|
+
for (var E = 0; E < x; E++) {
|
|
1275
1275
|
var G = C[E >>> 2] >>> 24 - E % 4 * 8 & 255;
|
|
1276
1276
|
U[v + E >>> 2] |= G << 24 - (v + E) % 4 * 8;
|
|
1277
1277
|
}
|
|
1278
1278
|
else
|
|
1279
|
-
for (var O = 0; O <
|
|
1279
|
+
for (var O = 0; O < x; O += 4)
|
|
1280
1280
|
U[v + O >>> 2] = C[O >>> 2];
|
|
1281
|
-
return this.sigBytes +=
|
|
1281
|
+
return this.sigBytes += x, this;
|
|
1282
1282
|
},
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Removes insignificant bits.
|
|
@@ -1288,8 +1288,8 @@ function ne() {
|
|
|
1288
1288
|
* wordArray.clamp();
|
|
1289
1289
|
*/
|
|
1290
1290
|
clamp: function() {
|
|
1291
|
-
var
|
|
1292
|
-
|
|
1291
|
+
var f = this.words, U = this.sigBytes;
|
|
1292
|
+
f[U >>> 2] &= 4294967295 << 32 - U % 4 * 8, f.length = r.ceil(U / 4);
|
|
1293
1293
|
},
|
|
1294
1294
|
/**
|
|
1295
1295
|
* Creates a copy of this word array.
|
|
@@ -1301,8 +1301,8 @@ function ne() {
|
|
|
1301
1301
|
* var clone = wordArray.clone();
|
|
1302
1302
|
*/
|
|
1303
1303
|
clone: function() {
|
|
1304
|
-
var
|
|
1305
|
-
return
|
|
1304
|
+
var f = i.clone.call(this);
|
|
1305
|
+
return f.words = this.words.slice(0), f;
|
|
1306
1306
|
},
|
|
1307
1307
|
/**
|
|
1308
1308
|
* Creates a word array filled with random bytes.
|
|
@@ -1317,10 +1317,10 @@ function ne() {
|
|
|
1317
1317
|
*
|
|
1318
1318
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
1319
1319
|
*/
|
|
1320
|
-
random: function(
|
|
1321
|
-
for (var U = [], C = 0; C <
|
|
1320
|
+
random: function(f) {
|
|
1321
|
+
for (var U = [], C = 0; C < f; C += 4)
|
|
1322
1322
|
U.push(b());
|
|
1323
|
-
return new o.init(U,
|
|
1323
|
+
return new o.init(U, f);
|
|
1324
1324
|
}
|
|
1325
1325
|
}), s = l.enc = {}, u = s.Hex = {
|
|
1326
1326
|
/**
|
|
@@ -1336,9 +1336,9 @@ function ne() {
|
|
|
1336
1336
|
*
|
|
1337
1337
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
1338
1338
|
*/
|
|
1339
|
-
stringify: function(
|
|
1340
|
-
for (var U =
|
|
1341
|
-
var E = U[
|
|
1339
|
+
stringify: function(f) {
|
|
1340
|
+
for (var U = f.words, C = f.sigBytes, v = [], x = 0; x < C; x++) {
|
|
1341
|
+
var E = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
1342
1342
|
v.push((E >>> 4).toString(16)), v.push((E & 15).toString(16));
|
|
1343
1343
|
}
|
|
1344
1344
|
return v.join("");
|
|
@@ -1356,9 +1356,9 @@ function ne() {
|
|
|
1356
1356
|
*
|
|
1357
1357
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
1358
1358
|
*/
|
|
1359
|
-
parse: function(
|
|
1360
|
-
for (var U =
|
|
1361
|
-
C[v >>> 3] |= parseInt(
|
|
1359
|
+
parse: function(f) {
|
|
1360
|
+
for (var U = f.length, C = [], v = 0; v < U; v += 2)
|
|
1361
|
+
C[v >>> 3] |= parseInt(f.substr(v, 2), 16) << 24 - v % 8 * 4;
|
|
1362
1362
|
return new o.init(C, U / 2);
|
|
1363
1363
|
}
|
|
1364
1364
|
}, m = s.Latin1 = {
|
|
@@ -1375,9 +1375,9 @@ function ne() {
|
|
|
1375
1375
|
*
|
|
1376
1376
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
1377
1377
|
*/
|
|
1378
|
-
stringify: function(
|
|
1379
|
-
for (var U =
|
|
1380
|
-
var E = U[
|
|
1378
|
+
stringify: function(f) {
|
|
1379
|
+
for (var U = f.words, C = f.sigBytes, v = [], x = 0; x < C; x++) {
|
|
1380
|
+
var E = U[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
1381
1381
|
v.push(String.fromCharCode(E));
|
|
1382
1382
|
}
|
|
1383
1383
|
return v.join("");
|
|
@@ -1395,12 +1395,12 @@ function ne() {
|
|
|
1395
1395
|
*
|
|
1396
1396
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
1397
1397
|
*/
|
|
1398
|
-
parse: function(
|
|
1399
|
-
for (var U =
|
|
1400
|
-
C[v >>> 2] |= (
|
|
1398
|
+
parse: function(f) {
|
|
1399
|
+
for (var U = f.length, C = [], v = 0; v < U; v++)
|
|
1400
|
+
C[v >>> 2] |= (f.charCodeAt(v) & 255) << 24 - v % 4 * 8;
|
|
1401
1401
|
return new o.init(C, U);
|
|
1402
1402
|
}
|
|
1403
|
-
},
|
|
1403
|
+
}, _ = s.Utf8 = {
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Converts a word array to a UTF-8 string.
|
|
1406
1406
|
*
|
|
@@ -1414,9 +1414,9 @@ function ne() {
|
|
|
1414
1414
|
*
|
|
1415
1415
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
1416
1416
|
*/
|
|
1417
|
-
stringify: function(
|
|
1417
|
+
stringify: function(f) {
|
|
1418
1418
|
try {
|
|
1419
|
-
return decodeURIComponent(escape(m.stringify(
|
|
1419
|
+
return decodeURIComponent(escape(m.stringify(f)));
|
|
1420
1420
|
} catch {
|
|
1421
1421
|
throw new Error("Malformed UTF-8 data");
|
|
1422
1422
|
}
|
|
@@ -1434,10 +1434,10 @@ function ne() {
|
|
|
1434
1434
|
*
|
|
1435
1435
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
1436
1436
|
*/
|
|
1437
|
-
parse: function(
|
|
1438
|
-
return m.parse(unescape(encodeURIComponent(
|
|
1437
|
+
parse: function(f) {
|
|
1438
|
+
return m.parse(unescape(encodeURIComponent(f)));
|
|
1439
1439
|
}
|
|
1440
|
-
},
|
|
1440
|
+
}, c = a.BufferedBlockAlgorithm = i.extend({
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1443
1443
|
*
|
|
@@ -1458,8 +1458,8 @@ function ne() {
|
|
|
1458
1458
|
* bufferedBlockAlgorithm._append('data');
|
|
1459
1459
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
1460
1460
|
*/
|
|
1461
|
-
_append: function(
|
|
1462
|
-
typeof
|
|
1461
|
+
_append: function(f) {
|
|
1462
|
+
typeof f == "string" && (f = _.parse(f)), this._data.concat(f), this._nDataBytes += f.sigBytes;
|
|
1463
1463
|
},
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Processes available data blocks.
|
|
@@ -1475,10 +1475,10 @@ function ne() {
|
|
|
1475
1475
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
1476
1476
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1477
1477
|
*/
|
|
1478
|
-
_process: function(
|
|
1479
|
-
var U, C = this._data, v = C.words,
|
|
1480
|
-
|
|
1481
|
-
var k = O * E, h = r.min(k * 4,
|
|
1478
|
+
_process: function(f) {
|
|
1479
|
+
var U, C = this._data, v = C.words, x = C.sigBytes, E = this.blockSize, G = E * 4, O = x / G;
|
|
1480
|
+
f ? O = r.ceil(O) : O = r.max((O | 0) - this._minBufferSize, 0);
|
|
1481
|
+
var k = O * E, h = r.min(k * 4, x);
|
|
1482
1482
|
if (k) {
|
|
1483
1483
|
for (var F = 0; F < k; F += E)
|
|
1484
1484
|
this._doProcessBlock(v, F);
|
|
@@ -1496,12 +1496,12 @@ function ne() {
|
|
|
1496
1496
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
1497
1497
|
*/
|
|
1498
1498
|
clone: function() {
|
|
1499
|
-
var
|
|
1500
|
-
return
|
|
1499
|
+
var f = i.clone.call(this);
|
|
1500
|
+
return f._data = this._data.clone(), f;
|
|
1501
1501
|
},
|
|
1502
1502
|
_minBufferSize: 0
|
|
1503
1503
|
});
|
|
1504
|
-
a.Hasher =
|
|
1504
|
+
a.Hasher = c.extend({
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Configuration options.
|
|
1507
1507
|
*/
|
|
@@ -1515,8 +1515,8 @@ function ne() {
|
|
|
1515
1515
|
*
|
|
1516
1516
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
1517
1517
|
*/
|
|
1518
|
-
init: function(
|
|
1519
|
-
this.cfg = this.cfg.extend(
|
|
1518
|
+
init: function(f) {
|
|
1519
|
+
this.cfg = this.cfg.extend(f), this.reset();
|
|
1520
1520
|
},
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Resets this hasher to its initial state.
|
|
@@ -1526,7 +1526,7 @@ function ne() {
|
|
|
1526
1526
|
* hasher.reset();
|
|
1527
1527
|
*/
|
|
1528
1528
|
reset: function() {
|
|
1529
|
-
|
|
1529
|
+
c.reset.call(this), this._doReset();
|
|
1530
1530
|
},
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Updates this hasher with a message.
|
|
@@ -1540,8 +1540,8 @@ function ne() {
|
|
|
1540
1540
|
* hasher.update('message');
|
|
1541
1541
|
* hasher.update(wordArray);
|
|
1542
1542
|
*/
|
|
1543
|
-
update: function(
|
|
1544
|
-
return this._append(
|
|
1543
|
+
update: function(f) {
|
|
1544
|
+
return this._append(f), this._process(), this;
|
|
1545
1545
|
},
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Finalizes the hash computation.
|
|
@@ -1557,8 +1557,8 @@ function ne() {
|
|
|
1557
1557
|
* var hash = hasher.finalize('message');
|
|
1558
1558
|
* var hash = hasher.finalize(wordArray);
|
|
1559
1559
|
*/
|
|
1560
|
-
finalize: function(
|
|
1561
|
-
|
|
1560
|
+
finalize: function(f) {
|
|
1561
|
+
f && this._append(f);
|
|
1562
1562
|
var U = this._doFinalize();
|
|
1563
1563
|
return U;
|
|
1564
1564
|
},
|
|
@@ -1576,9 +1576,9 @@ function ne() {
|
|
|
1576
1576
|
*
|
|
1577
1577
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1578
1578
|
*/
|
|
1579
|
-
_createHelper: function(
|
|
1579
|
+
_createHelper: function(f) {
|
|
1580
1580
|
return function(U, C) {
|
|
1581
|
-
return new
|
|
1581
|
+
return new f.init(C).finalize(U);
|
|
1582
1582
|
};
|
|
1583
1583
|
},
|
|
1584
1584
|
/**
|
|
@@ -1594,9 +1594,9 @@ function ne() {
|
|
|
1594
1594
|
*
|
|
1595
1595
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1596
1596
|
*/
|
|
1597
|
-
_createHmacHelper: function(
|
|
1597
|
+
_createHmacHelper: function(f) {
|
|
1598
1598
|
return function(U, C) {
|
|
1599
|
-
return new y.HMAC.init(
|
|
1599
|
+
return new y.HMAC.init(f, C).finalize(U);
|
|
1600
1600
|
};
|
|
1601
1601
|
}
|
|
1602
1602
|
});
|
|
@@ -1979,8 +1979,8 @@ function xa() {
|
|
|
1979
1979
|
var a = l.words, i = l.sigBytes, o = this._map;
|
|
1980
1980
|
l.clamp();
|
|
1981
1981
|
for (var s = [], u = 0; u < i; u += 3)
|
|
1982
|
-
for (var m = a[u >>> 2] >>> 24 - u % 4 * 8 & 255,
|
|
1983
|
-
s.push(o.charAt(y >>> 6 * (3 -
|
|
1982
|
+
for (var m = a[u >>> 2] >>> 24 - u % 4 * 8 & 255, _ = a[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, c = a[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, y = m << 16 | _ << 8 | c, f = 0; f < 4 && u + f * 0.75 < i; f++)
|
|
1983
|
+
s.push(o.charAt(y >>> 6 * (3 - f) & 63));
|
|
1984
1984
|
var U = o.charAt(64);
|
|
1985
1985
|
if (U)
|
|
1986
1986
|
for (; s.length % 4; )
|
|
@@ -2019,8 +2019,8 @@ function xa() {
|
|
|
2019
2019
|
function d(l, a, i) {
|
|
2020
2020
|
for (var o = [], s = 0, u = 0; u < a; u++)
|
|
2021
2021
|
if (u % 4) {
|
|
2022
|
-
var m = i[l.charCodeAt(u - 1)] << u % 4 * 2,
|
|
2023
|
-
o[s >>> 2] |=
|
|
2022
|
+
var m = i[l.charCodeAt(u - 1)] << u % 4 * 2, _ = i[l.charCodeAt(u)] >>> 6 - u % 4 * 2, c = m | _;
|
|
2023
|
+
o[s >>> 2] |= c << 24 - s % 4 * 8, s++;
|
|
2024
2024
|
}
|
|
2025
2025
|
return g.create(o, s);
|
|
2026
2026
|
}
|
|
@@ -2057,8 +2057,8 @@ function Ul() {
|
|
|
2057
2057
|
var i = l.words, o = l.sigBytes, s = a ? this._safe_map : this._map;
|
|
2058
2058
|
l.clamp();
|
|
2059
2059
|
for (var u = [], m = 0; m < o; m += 3)
|
|
2060
|
-
for (var
|
|
2061
|
-
u.push(s.charAt(
|
|
2060
|
+
for (var _ = i[m >>> 2] >>> 24 - m % 4 * 8 & 255, c = i[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, y = i[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, f = _ << 16 | c << 8 | y, U = 0; U < 4 && m + U * 0.75 < o; U++)
|
|
2061
|
+
u.push(s.charAt(f >>> 6 * (3 - U) & 63));
|
|
2062
2062
|
var C = s.charAt(64);
|
|
2063
2063
|
if (C)
|
|
2064
2064
|
for (; u.length % 4; )
|
|
@@ -2090,8 +2090,8 @@ function Ul() {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
var m = o.charAt(64);
|
|
2092
2092
|
if (m) {
|
|
2093
|
-
var
|
|
2094
|
-
|
|
2093
|
+
var _ = l.indexOf(m);
|
|
2094
|
+
_ !== -1 && (i = _);
|
|
2095
2095
|
}
|
|
2096
2096
|
return d(l, i, s);
|
|
2097
2097
|
},
|
|
@@ -2101,8 +2101,8 @@ function Ul() {
|
|
|
2101
2101
|
function d(l, a, i) {
|
|
2102
2102
|
for (var o = [], s = 0, u = 0; u < a; u++)
|
|
2103
2103
|
if (u % 4) {
|
|
2104
|
-
var m = i[l.charCodeAt(u - 1)] << u % 4 * 2,
|
|
2105
|
-
o[s >>> 2] |=
|
|
2104
|
+
var m = i[l.charCodeAt(u - 1)] << u % 4 * 2, _ = i[l.charCodeAt(u)] >>> 6 - u % 4 * 2, c = m | _;
|
|
2105
|
+
o[s >>> 2] |= c << 24 - s % 4 * 8, s++;
|
|
2106
2106
|
}
|
|
2107
2107
|
return g.create(o, s);
|
|
2108
2108
|
}
|
|
@@ -2119,8 +2119,8 @@ function Sa() {
|
|
|
2119
2119
|
return (function(r) {
|
|
2120
2120
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, l = p.algo, a = [];
|
|
2121
2121
|
(function() {
|
|
2122
|
-
for (var
|
|
2123
|
-
a[
|
|
2122
|
+
for (var _ = 0; _ < 64; _++)
|
|
2123
|
+
a[_] = r.abs(r.sin(_ + 1)) * 4294967296 | 0;
|
|
2124
2124
|
})();
|
|
2125
2125
|
var i = l.MD5 = d.extend({
|
|
2126
2126
|
_doReset: function() {
|
|
@@ -2131,45 +2131,45 @@ function Sa() {
|
|
|
2131
2131
|
271733878
|
|
2132
2132
|
]);
|
|
2133
2133
|
},
|
|
2134
|
-
_doProcessBlock: function(
|
|
2134
|
+
_doProcessBlock: function(_, c) {
|
|
2135
2135
|
for (var y = 0; y < 16; y++) {
|
|
2136
|
-
var
|
|
2137
|
-
|
|
2136
|
+
var f = c + y, U = _[f];
|
|
2137
|
+
_[f] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2138
2138
|
}
|
|
2139
|
-
var C = this._hash.words, v = c
|
|
2140
|
-
D = o(D,
|
|
2139
|
+
var C = this._hash.words, v = _[c + 0], x = _[c + 1], E = _[c + 2], G = _[c + 3], O = _[c + 4], k = _[c + 5], h = _[c + 6], F = _[c + 7], A = _[c + 8], w = _[c + 9], R = _[c + 10], P = _[c + 11], H = _[c + 12], B = _[c + 13], W = _[c + 14], M = _[c + 15], D = C[0], S = C[1], L = C[2], N = C[3];
|
|
2140
|
+
D = o(D, S, L, N, v, 7, a[0]), N = o(N, D, S, L, x, 12, a[1]), L = o(L, N, D, S, E, 17, a[2]), S = o(S, L, N, D, G, 22, a[3]), D = o(D, S, L, N, O, 7, a[4]), N = o(N, D, S, L, k, 12, a[5]), L = o(L, N, D, S, h, 17, a[6]), S = o(S, L, N, D, F, 22, a[7]), D = o(D, S, L, N, A, 7, a[8]), N = o(N, D, S, L, w, 12, a[9]), L = o(L, N, D, S, R, 17, a[10]), S = o(S, L, N, D, P, 22, a[11]), D = o(D, S, L, N, H, 7, a[12]), N = o(N, D, S, L, B, 12, a[13]), L = o(L, N, D, S, W, 17, a[14]), S = o(S, L, N, D, M, 22, a[15]), D = s(D, S, L, N, x, 5, a[16]), N = s(N, D, S, L, h, 9, a[17]), L = s(L, N, D, S, P, 14, a[18]), S = s(S, L, N, D, v, 20, a[19]), D = s(D, S, L, N, k, 5, a[20]), N = s(N, D, S, L, R, 9, a[21]), L = s(L, N, D, S, M, 14, a[22]), S = s(S, L, N, D, O, 20, a[23]), D = s(D, S, L, N, w, 5, a[24]), N = s(N, D, S, L, W, 9, a[25]), L = s(L, N, D, S, G, 14, a[26]), S = s(S, L, N, D, A, 20, a[27]), D = s(D, S, L, N, B, 5, a[28]), N = s(N, D, S, L, E, 9, a[29]), L = s(L, N, D, S, F, 14, a[30]), S = s(S, L, N, D, H, 20, a[31]), D = u(D, S, L, N, k, 4, a[32]), N = u(N, D, S, L, A, 11, a[33]), L = u(L, N, D, S, P, 16, a[34]), S = u(S, L, N, D, W, 23, a[35]), D = u(D, S, L, N, x, 4, a[36]), N = u(N, D, S, L, O, 11, a[37]), L = u(L, N, D, S, F, 16, a[38]), S = u(S, L, N, D, R, 23, a[39]), D = u(D, S, L, N, B, 4, a[40]), N = u(N, D, S, L, v, 11, a[41]), L = u(L, N, D, S, G, 16, a[42]), S = u(S, L, N, D, h, 23, a[43]), D = u(D, S, L, N, w, 4, a[44]), N = u(N, D, S, L, H, 11, a[45]), L = u(L, N, D, S, M, 16, a[46]), S = u(S, L, N, D, E, 23, a[47]), D = m(D, S, L, N, v, 6, a[48]), N = m(N, D, S, L, F, 10, a[49]), L = m(L, N, D, S, W, 15, a[50]), S = m(S, L, N, D, k, 21, a[51]), D = m(D, S, L, N, H, 6, a[52]), N = m(N, D, S, L, G, 10, a[53]), L = m(L, N, D, S, R, 15, a[54]), S = m(S, L, N, D, x, 21, a[55]), D = m(D, S, L, N, A, 6, a[56]), N = m(N, D, S, L, M, 10, a[57]), L = m(L, N, D, S, h, 15, a[58]), S = m(S, L, N, D, B, 21, a[59]), D = m(D, S, L, N, O, 6, a[60]), N = m(N, D, S, L, P, 10, a[61]), L = m(L, N, D, S, E, 15, a[62]), S = m(S, L, N, D, w, 21, a[63]), C[0] = C[0] + D | 0, C[1] = C[1] + S | 0, C[2] = C[2] + L | 0, C[3] = C[3] + N | 0;
|
|
2141
2141
|
},
|
|
2142
2142
|
_doFinalize: function() {
|
|
2143
|
-
var
|
|
2144
|
-
f
|
|
2143
|
+
var _ = this._data, c = _.words, y = this._nDataBytes * 8, f = _.sigBytes * 8;
|
|
2144
|
+
c[f >>> 5] |= 128 << 24 - f % 32;
|
|
2145
2145
|
var U = r.floor(y / 4294967296), C = y;
|
|
2146
|
-
|
|
2147
|
-
for (var v = this._hash,
|
|
2148
|
-
var G =
|
|
2149
|
-
|
|
2146
|
+
c[(f + 64 >>> 9 << 4) + 15] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, c[(f + 64 >>> 9 << 4) + 14] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, _.sigBytes = (c.length + 1) * 4, this._process();
|
|
2147
|
+
for (var v = this._hash, x = v.words, E = 0; E < 4; E++) {
|
|
2148
|
+
var G = x[E];
|
|
2149
|
+
x[E] = (G << 8 | G >>> 24) & 16711935 | (G << 24 | G >>> 8) & 4278255360;
|
|
2150
2150
|
}
|
|
2151
2151
|
return v;
|
|
2152
2152
|
},
|
|
2153
2153
|
clone: function() {
|
|
2154
|
-
var
|
|
2155
|
-
return
|
|
2154
|
+
var _ = d.clone.call(this);
|
|
2155
|
+
return _._hash = this._hash.clone(), _;
|
|
2156
2156
|
}
|
|
2157
2157
|
});
|
|
2158
|
-
function o(
|
|
2159
|
-
var
|
|
2160
|
-
return (
|
|
2158
|
+
function o(_, c, y, f, U, C, v) {
|
|
2159
|
+
var x = _ + (c & y | ~c & f) + U + v;
|
|
2160
|
+
return (x << C | x >>> 32 - C) + c;
|
|
2161
2161
|
}
|
|
2162
|
-
function s(
|
|
2163
|
-
var
|
|
2164
|
-
return (
|
|
2162
|
+
function s(_, c, y, f, U, C, v) {
|
|
2163
|
+
var x = _ + (c & f | y & ~f) + U + v;
|
|
2164
|
+
return (x << C | x >>> 32 - C) + c;
|
|
2165
2165
|
}
|
|
2166
|
-
function u(
|
|
2167
|
-
var
|
|
2168
|
-
return (
|
|
2166
|
+
function u(_, c, y, f, U, C, v) {
|
|
2167
|
+
var x = _ + (c ^ y ^ f) + U + v;
|
|
2168
|
+
return (x << C | x >>> 32 - C) + c;
|
|
2169
2169
|
}
|
|
2170
|
-
function m(
|
|
2171
|
-
var
|
|
2172
|
-
return (
|
|
2170
|
+
function m(_, c, y, f, U, C, v) {
|
|
2171
|
+
var x = _ + (y ^ (c | ~f)) + U + v;
|
|
2172
|
+
return (x << C | x >>> 32 - C) + c;
|
|
2173
2173
|
}
|
|
2174
2174
|
p.MD5 = d._createHelper(i), p.HmacMD5 = d._createHmacHelper(i);
|
|
2175
2175
|
})(Math), t.MD5;
|
|
@@ -2194,17 +2194,17 @@ function ar() {
|
|
|
2194
2194
|
]);
|
|
2195
2195
|
},
|
|
2196
2196
|
_doProcessBlock: function(i, o) {
|
|
2197
|
-
for (var s = this._hash.words, u = s[0], m = s[1],
|
|
2198
|
-
if (
|
|
2199
|
-
l[
|
|
2197
|
+
for (var s = this._hash.words, u = s[0], m = s[1], _ = s[2], c = s[3], y = s[4], f = 0; f < 80; f++) {
|
|
2198
|
+
if (f < 16)
|
|
2199
|
+
l[f] = i[o + f] | 0;
|
|
2200
2200
|
else {
|
|
2201
|
-
var U = l[
|
|
2202
|
-
l[
|
|
2201
|
+
var U = l[f - 3] ^ l[f - 8] ^ l[f - 14] ^ l[f - 16];
|
|
2202
|
+
l[f] = U << 1 | U >>> 31;
|
|
2203
2203
|
}
|
|
2204
|
-
var C = (u << 5 | u >>> 27) + y + l[
|
|
2205
|
-
|
|
2204
|
+
var C = (u << 5 | u >>> 27) + y + l[f];
|
|
2205
|
+
f < 20 ? C += (m & _ | ~m & c) + 1518500249 : f < 40 ? C += (m ^ _ ^ c) + 1859775393 : f < 60 ? C += (m & _ | m & c | _ & c) - 1894007588 : C += (m ^ _ ^ c) - 899497514, y = c, c = _, _ = m << 30 | m >>> 2, m = u, u = C;
|
|
2206
2206
|
}
|
|
2207
|
-
s[0] = s[0] + u | 0, s[1] = s[1] + m | 0, s[2] = s[2] +
|
|
2207
|
+
s[0] = s[0] + u | 0, s[1] = s[1] + m | 0, s[2] = s[2] + _ | 0, s[3] = s[3] + c | 0, s[4] = s[4] + y | 0;
|
|
2208
2208
|
},
|
|
2209
2209
|
_doFinalize: function() {
|
|
2210
2210
|
var i = this._data, o = i.words, s = this._nDataBytes * 8, u = i.sigBytes * 8;
|
|
@@ -2230,7 +2230,7 @@ function Ui() {
|
|
|
2230
2230
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, l = p.algo, a = [], i = [];
|
|
2231
2231
|
(function() {
|
|
2232
2232
|
function u(y) {
|
|
2233
|
-
for (var
|
|
2233
|
+
for (var f = r.sqrt(y), U = 2; U <= f; U++)
|
|
2234
2234
|
if (!(y % U))
|
|
2235
2235
|
return !1;
|
|
2236
2236
|
return !0;
|
|
@@ -2238,29 +2238,29 @@ function Ui() {
|
|
|
2238
2238
|
function m(y) {
|
|
2239
2239
|
return (y - (y | 0)) * 4294967296 | 0;
|
|
2240
2240
|
}
|
|
2241
|
-
for (var
|
|
2242
|
-
u(
|
|
2241
|
+
for (var _ = 2, c = 0; c < 64; )
|
|
2242
|
+
u(_) && (c < 8 && (a[c] = m(r.pow(_, 1 / 2))), i[c] = m(r.pow(_, 1 / 3)), c++), _++;
|
|
2243
2243
|
})();
|
|
2244
2244
|
var o = [], s = l.SHA256 = d.extend({
|
|
2245
2245
|
_doReset: function() {
|
|
2246
2246
|
this._hash = new b.init(a.slice(0));
|
|
2247
2247
|
},
|
|
2248
2248
|
_doProcessBlock: function(u, m) {
|
|
2249
|
-
for (var
|
|
2249
|
+
for (var _ = this._hash.words, c = _[0], y = _[1], f = _[2], U = _[3], C = _[4], v = _[5], x = _[6], E = _[7], G = 0; G < 64; G++) {
|
|
2250
2250
|
if (G < 16)
|
|
2251
2251
|
o[G] = u[m + G] | 0;
|
|
2252
2252
|
else {
|
|
2253
2253
|
var O = o[G - 15], k = (O << 25 | O >>> 7) ^ (O << 14 | O >>> 18) ^ O >>> 3, h = o[G - 2], F = (h << 15 | h >>> 17) ^ (h << 13 | h >>> 19) ^ h >>> 10;
|
|
2254
2254
|
o[G] = k + o[G - 7] + F + o[G - 16];
|
|
2255
2255
|
}
|
|
2256
|
-
var A = C & v ^ ~C &
|
|
2257
|
-
E =
|
|
2256
|
+
var A = C & v ^ ~C & x, w = c & y ^ c & f ^ y & f, R = (c << 30 | c >>> 2) ^ (c << 19 | c >>> 13) ^ (c << 10 | c >>> 22), P = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), H = E + P + A + i[G] + o[G], B = R + w;
|
|
2257
|
+
E = x, x = v, v = C, C = U + H | 0, U = f, f = y, y = c, c = H + B | 0;
|
|
2258
2258
|
}
|
|
2259
|
-
|
|
2259
|
+
_[0] = _[0] + c | 0, _[1] = _[1] + y | 0, _[2] = _[2] + f | 0, _[3] = _[3] + U | 0, _[4] = _[4] + C | 0, _[5] = _[5] + v | 0, _[6] = _[6] + x | 0, _[7] = _[7] + E | 0;
|
|
2260
2260
|
},
|
|
2261
2261
|
_doFinalize: function() {
|
|
2262
|
-
var u = this._data, m = u.words,
|
|
2263
|
-
return m[
|
|
2262
|
+
var u = this._data, m = u.words, _ = this._nDataBytes * 8, c = u.sigBytes * 8;
|
|
2263
|
+
return m[c >>> 5] |= 128 << 24 - c % 32, m[(c + 64 >>> 9 << 4) + 14] = r.floor(_ / 4294967296), m[(c + 64 >>> 9 << 4) + 15] = _, u.sigBytes = m.length * 4, this._process(), this._hash;
|
|
2264
2264
|
},
|
|
2265
2265
|
clone: function() {
|
|
2266
2266
|
var u = d.clone.call(this);
|
|
@@ -2412,25 +2412,25 @@ function tr() {
|
|
|
2412
2412
|
new d.init(1541459225, 327033209)
|
|
2413
2413
|
]);
|
|
2414
2414
|
},
|
|
2415
|
-
_doProcessBlock: function(m,
|
|
2416
|
-
for (var
|
|
2417
|
-
var ve, We, ta = s[
|
|
2418
|
-
if (
|
|
2419
|
-
We = ta.high = m[
|
|
2415
|
+
_doProcessBlock: function(m, _) {
|
|
2416
|
+
for (var c = this._hash.words, y = c[0], f = c[1], U = c[2], C = c[3], v = c[4], x = c[5], E = c[6], G = c[7], O = y.high, k = y.low, h = f.high, F = f.low, A = U.high, w = U.low, R = C.high, P = C.low, H = v.high, B = v.low, W = x.high, M = x.low, D = E.high, S = E.low, L = G.high, N = G.low, Z = O, q = k, j = h, K = F, ie = A, re = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ve = D, Ce = S, Pe = L, aa = N, we = 0; we < 80; we++) {
|
|
2417
|
+
var ve, We, ta = s[we];
|
|
2418
|
+
if (we < 16)
|
|
2419
|
+
We = ta.high = m[_ + we * 2] | 0, ve = ta.low = m[_ + we * 2 + 1] | 0;
|
|
2420
2420
|
else {
|
|
2421
|
-
var ia = s[
|
|
2421
|
+
var ia = s[we - 15], xe = ia.high, Fe = ia.low, je = (xe >>> 1 | Fe << 31) ^ (xe >>> 8 | Fe << 24) ^ xe >>> 7, oa = (Fe >>> 1 | xe << 31) ^ (Fe >>> 8 | xe << 24) ^ (Fe >>> 7 | xe << 25), ga = s[we - 2], Je = ga.high, Ye = ga.low, Va = (Je >>> 19 | Ye << 13) ^ (Je << 3 | Ye >>> 29) ^ Je >>> 6, Da = (Ye >>> 19 | Je << 13) ^ (Ye << 3 | Je >>> 29) ^ (Ye >>> 6 | Je << 26), Ea = s[we - 7], Ja = Ea.high, Za = Ea.low, da = s[we - 16], ya = da.high, qe = da.low;
|
|
2422
2422
|
ve = oa + Za, We = je + Ja + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, We = We + Va + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + qe, We = We + ya + (ve >>> 0 < qe >>> 0 ? 1 : 0), ta.high = We, ta.low = ve;
|
|
2423
2423
|
}
|
|
2424
|
-
var ca = me & ke ^ ~me & Ve, fa = ce & fe ^ ~ce & Ce, Na = Z & j ^ Z & ie ^ j & ie, La = q & K ^ q & re ^ K & re, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[
|
|
2425
|
-
|
|
2424
|
+
var ca = me & ke ^ ~me & Ve, fa = ce & fe ^ ~ce & Ce, Na = Z & j ^ Z & ie ^ j & ie, La = q & K ^ q & re ^ K & re, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[we], De = V.high, na = V.low, Ae = aa + Se, ra = Pe + Ma + (Ae >>> 0 < aa >>> 0 ? 1 : 0), Ae = Ae + fa, ra = ra + ca + (Ae >>> 0 < fa >>> 0 ? 1 : 0), Ae = Ae + na, ra = ra + De + (Ae >>> 0 < na >>> 0 ? 1 : 0), Ae = Ae + ve, ra = ra + We + (Ae >>> 0 < ve >>> 0 ? 1 : 0), tt = Ga + La, ei = Ua + Na + (tt >>> 0 < Ga >>> 0 ? 1 : 0);
|
|
2425
|
+
Pe = Ve, aa = Ce, Ve = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Ae | 0, me = ye + ra + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ie, Ue = re, ie = j, re = K, j = Z, K = q, q = Ae + tt | 0, Z = ra + ei + (q >>> 0 < Ae >>> 0 ? 1 : 0) | 0;
|
|
2426
2426
|
}
|
|
2427
|
-
k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F =
|
|
2427
|
+
k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = f.low = F + K, f.high = h + j + (F >>> 0 < K >>> 0 ? 1 : 0), w = U.low = w + re, U.high = A + ie + (w >>> 0 < re >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = x.low = M + fe, x.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), S = E.low = S + Ce, E.high = D + Ve + (S >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + aa, G.high = L + Pe + (N >>> 0 < aa >>> 0 ? 1 : 0);
|
|
2428
2428
|
},
|
|
2429
2429
|
_doFinalize: function() {
|
|
2430
|
-
var m = this._data,
|
|
2431
|
-
|
|
2432
|
-
var
|
|
2433
|
-
return
|
|
2430
|
+
var m = this._data, _ = m.words, c = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
2431
|
+
_[y >>> 5] |= 128 << 24 - y % 32, _[(y + 128 >>> 10 << 5) + 30] = Math.floor(c / 4294967296), _[(y + 128 >>> 10 << 5) + 31] = c, m.sigBytes = _.length * 4, this._process();
|
|
2432
|
+
var f = this._hash.toX32();
|
|
2433
|
+
return f;
|
|
2434
2434
|
},
|
|
2435
2435
|
clone: function() {
|
|
2436
2436
|
var m = g.clone.call(this);
|
|
@@ -2482,15 +2482,15 @@ function El() {
|
|
|
2482
2482
|
return (function(r) {
|
|
2483
2483
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, l = p.x64, a = l.Word, i = p.algo, o = [], s = [], u = [];
|
|
2484
2484
|
(function() {
|
|
2485
|
-
for (var
|
|
2486
|
-
o[
|
|
2487
|
-
var U = y % 5, C = (2 *
|
|
2488
|
-
|
|
2485
|
+
for (var c = 1, y = 0, f = 0; f < 24; f++) {
|
|
2486
|
+
o[c + 5 * y] = (f + 1) * (f + 2) / 2 % 64;
|
|
2487
|
+
var U = y % 5, C = (2 * c + 3 * y) % 5;
|
|
2488
|
+
c = U, y = C;
|
|
2489
2489
|
}
|
|
2490
|
-
for (var
|
|
2490
|
+
for (var c = 0; c < 5; c++)
|
|
2491
2491
|
for (var y = 0; y < 5; y++)
|
|
2492
|
-
s[
|
|
2493
|
-
for (var v = 1,
|
|
2492
|
+
s[c + 5 * y] = y + (2 * c + 3 * y) % 5 * 5;
|
|
2493
|
+
for (var v = 1, x = 0; x < 24; x++) {
|
|
2494
2494
|
for (var E = 0, G = 0, O = 0; O < 7; O++) {
|
|
2495
2495
|
if (v & 1) {
|
|
2496
2496
|
var k = (1 << O) - 1;
|
|
@@ -2498,15 +2498,15 @@ function El() {
|
|
|
2498
2498
|
}
|
|
2499
2499
|
v & 128 ? v = v << 1 ^ 113 : v <<= 1;
|
|
2500
2500
|
}
|
|
2501
|
-
u[
|
|
2501
|
+
u[x] = a.create(E, G);
|
|
2502
2502
|
}
|
|
2503
2503
|
})();
|
|
2504
2504
|
var m = [];
|
|
2505
2505
|
(function() {
|
|
2506
|
-
for (var
|
|
2507
|
-
m[
|
|
2506
|
+
for (var c = 0; c < 25; c++)
|
|
2507
|
+
m[c] = a.create();
|
|
2508
2508
|
})();
|
|
2509
|
-
var
|
|
2509
|
+
var _ = i.SHA3 = d.extend({
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Configuration options.
|
|
2512
2512
|
*
|
|
@@ -2519,21 +2519,21 @@ function El() {
|
|
|
2519
2519
|
outputLength: 512
|
|
2520
2520
|
}),
|
|
2521
2521
|
_doReset: function() {
|
|
2522
|
-
for (var
|
|
2523
|
-
|
|
2522
|
+
for (var c = this._state = [], y = 0; y < 25; y++)
|
|
2523
|
+
c[y] = new a.init();
|
|
2524
2524
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2525
2525
|
},
|
|
2526
|
-
_doProcessBlock: function(
|
|
2527
|
-
for (var
|
|
2528
|
-
var v =
|
|
2529
|
-
v = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360,
|
|
2530
|
-
var E =
|
|
2531
|
-
E.high ^=
|
|
2526
|
+
_doProcessBlock: function(c, y) {
|
|
2527
|
+
for (var f = this._state, U = this.blockSize / 2, C = 0; C < U; C++) {
|
|
2528
|
+
var v = c[y + 2 * C], x = c[y + 2 * C + 1];
|
|
2529
|
+
v = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
2530
|
+
var E = f[C];
|
|
2531
|
+
E.high ^= x, E.low ^= v;
|
|
2532
2532
|
}
|
|
2533
2533
|
for (var G = 0; G < 24; G++) {
|
|
2534
2534
|
for (var O = 0; O < 5; O++) {
|
|
2535
2535
|
for (var k = 0, h = 0, F = 0; F < 5; F++) {
|
|
2536
|
-
var E =
|
|
2536
|
+
var E = f[O + 5 * F];
|
|
2537
2537
|
k ^= E.high, h ^= E.low;
|
|
2538
2538
|
}
|
|
2539
2539
|
var A = m[O];
|
|
@@ -2541,44 +2541,44 @@ function El() {
|
|
|
2541
2541
|
}
|
|
2542
2542
|
for (var O = 0; O < 5; O++)
|
|
2543
2543
|
for (var w = m[(O + 4) % 5], R = m[(O + 1) % 5], P = R.high, H = R.low, k = w.high ^ (P << 1 | H >>> 31), h = w.low ^ (H << 1 | P >>> 31), F = 0; F < 5; F++) {
|
|
2544
|
-
var E =
|
|
2544
|
+
var E = f[O + 5 * F];
|
|
2545
2545
|
E.high ^= k, E.low ^= h;
|
|
2546
2546
|
}
|
|
2547
2547
|
for (var B = 1; B < 25; B++) {
|
|
2548
|
-
var k, h, E =
|
|
2548
|
+
var k, h, E = f[B], W = E.high, M = E.low, D = o[B];
|
|
2549
2549
|
D < 32 ? (k = W << D | M >>> 32 - D, h = M << D | W >>> 32 - D) : (k = M << D - 32 | W >>> 64 - D, h = W << D - 32 | M >>> 64 - D);
|
|
2550
|
-
var
|
|
2551
|
-
|
|
2550
|
+
var S = m[s[B]];
|
|
2551
|
+
S.high = k, S.low = h;
|
|
2552
2552
|
}
|
|
2553
|
-
var L = m[0], N =
|
|
2553
|
+
var L = m[0], N = f[0];
|
|
2554
2554
|
L.high = N.high, L.low = N.low;
|
|
2555
2555
|
for (var O = 0; O < 5; O++)
|
|
2556
2556
|
for (var F = 0; F < 5; F++) {
|
|
2557
|
-
var B = O + 5 * F, E =
|
|
2557
|
+
var B = O + 5 * F, E = f[B], Z = m[B], q = m[(O + 1) % 5 + 5 * F], j = m[(O + 2) % 5 + 5 * F];
|
|
2558
2558
|
E.high = Z.high ^ ~q.high & j.high, E.low = Z.low ^ ~q.low & j.low;
|
|
2559
2559
|
}
|
|
2560
|
-
var E =
|
|
2560
|
+
var E = f[0], K = u[G];
|
|
2561
2561
|
E.high ^= K.high, E.low ^= K.low;
|
|
2562
2562
|
}
|
|
2563
2563
|
},
|
|
2564
2564
|
_doFinalize: function() {
|
|
2565
|
-
var
|
|
2565
|
+
var c = this._data, y = c.words;
|
|
2566
2566
|
this._nDataBytes * 8;
|
|
2567
|
-
var
|
|
2568
|
-
y[
|
|
2569
|
-
for (var C = this._state, v = this.cfg.outputLength / 8,
|
|
2567
|
+
var f = c.sigBytes * 8, U = this.blockSize * 32;
|
|
2568
|
+
y[f >>> 5] |= 1 << 24 - f % 32, y[(r.ceil((f + 1) / U) * U >>> 5) - 1] |= 128, c.sigBytes = y.length * 4, this._process();
|
|
2569
|
+
for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, E = [], G = 0; G < x; G++) {
|
|
2570
2570
|
var O = C[G], k = O.high, h = O.low;
|
|
2571
2571
|
k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, h = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360, E.push(h), E.push(k);
|
|
2572
2572
|
}
|
|
2573
2573
|
return new b.init(E, v);
|
|
2574
2574
|
},
|
|
2575
2575
|
clone: function() {
|
|
2576
|
-
for (var
|
|
2577
|
-
y[
|
|
2578
|
-
return
|
|
2576
|
+
for (var c = d.clone.call(this), y = c._state = this._state.slice(0), f = 0; f < 25; f++)
|
|
2577
|
+
y[f] = y[f].clone();
|
|
2578
|
+
return c;
|
|
2579
2579
|
}
|
|
2580
2580
|
});
|
|
2581
|
-
p.SHA3 = d._createHelper(
|
|
2581
|
+
p.SHA3 = d._createHelper(_), p.HmacSHA3 = d._createHmacHelper(_);
|
|
2582
2582
|
})(Math), t.SHA3;
|
|
2583
2583
|
});
|
|
2584
2584
|
})(kt)), kt.exports;
|
|
@@ -2914,24 +2914,24 @@ function Ll() {
|
|
|
2914
2914
|
13,
|
|
2915
2915
|
11,
|
|
2916
2916
|
11
|
|
2917
|
-
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2917
|
+
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), _ = l.RIPEMD160 = d.extend({
|
|
2918
2918
|
_doReset: function() {
|
|
2919
2919
|
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2920
2920
|
},
|
|
2921
|
-
_doProcessBlock: function(
|
|
2921
|
+
_doProcessBlock: function(x, E) {
|
|
2922
2922
|
for (var G = 0; G < 16; G++) {
|
|
2923
|
-
var O = E + G, k =
|
|
2924
|
-
|
|
2923
|
+
var O = E + G, k = x[O];
|
|
2924
|
+
x[O] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2925
2925
|
}
|
|
2926
|
-
var h = this._hash.words, F = u.words, A = m.words, w = a.words, R = i.words, P = o.words, H = s.words, B, W, M, D,
|
|
2927
|
-
L = B = h[0], N = W = h[1], Z = M = h[2], q = D = h[3], j =
|
|
2926
|
+
var h = this._hash.words, F = u.words, A = m.words, w = a.words, R = i.words, P = o.words, H = s.words, B, W, M, D, S, L, N, Z, q, j;
|
|
2927
|
+
L = B = h[0], N = W = h[1], Z = M = h[2], q = D = h[3], j = S = h[4];
|
|
2928
2928
|
for (var K, G = 0; G < 80; G += 1)
|
|
2929
|
-
K = B +
|
|
2930
|
-
K = h[1] + M + q | 0, h[1] = h[2] + D + j | 0, h[2] = h[3] +
|
|
2929
|
+
K = B + x[E + w[G]] | 0, G < 16 ? K += c(W, M, D) + F[0] : G < 32 ? K += y(W, M, D) + F[1] : G < 48 ? K += f(W, M, D) + F[2] : G < 64 ? K += U(W, M, D) + F[3] : K += C(W, M, D) + F[4], K = K | 0, K = v(K, P[G]), K = K + S | 0, B = S, S = D, D = v(M, 10), M = W, W = K, K = L + x[E + R[G]] | 0, G < 16 ? K += C(N, Z, q) + A[0] : G < 32 ? K += U(N, Z, q) + A[1] : G < 48 ? K += f(N, Z, q) + A[2] : G < 64 ? K += y(N, Z, q) + A[3] : K += c(N, Z, q) + A[4], K = K | 0, K = v(K, H[G]), K = K + j | 0, L = j, j = q, q = v(Z, 10), Z = N, N = K;
|
|
2930
|
+
K = h[1] + M + q | 0, h[1] = h[2] + D + j | 0, h[2] = h[3] + S + L | 0, h[3] = h[4] + B + N | 0, h[4] = h[0] + W + Z | 0, h[0] = K;
|
|
2931
2931
|
},
|
|
2932
2932
|
_doFinalize: function() {
|
|
2933
|
-
var
|
|
2934
|
-
E[O >>> 5] |= 128 << 24 - O % 32, E[(O + 64 >>> 9 << 4) + 14] = (G << 8 | G >>> 24) & 16711935 | (G << 24 | G >>> 8) & 4278255360,
|
|
2933
|
+
var x = this._data, E = x.words, G = this._nDataBytes * 8, O = x.sigBytes * 8;
|
|
2934
|
+
E[O >>> 5] |= 128 << 24 - O % 32, E[(O + 64 >>> 9 << 4) + 14] = (G << 8 | G >>> 24) & 16711935 | (G << 24 | G >>> 8) & 4278255360, x.sigBytes = (E.length + 1) * 4, this._process();
|
|
2935
2935
|
for (var k = this._hash, h = k.words, F = 0; F < 5; F++) {
|
|
2936
2936
|
var A = h[F];
|
|
2937
2937
|
h[F] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
|
|
@@ -2939,29 +2939,29 @@ function Ll() {
|
|
|
2939
2939
|
return k;
|
|
2940
2940
|
},
|
|
2941
2941
|
clone: function() {
|
|
2942
|
-
var
|
|
2943
|
-
return
|
|
2942
|
+
var x = d.clone.call(this);
|
|
2943
|
+
return x._hash = this._hash.clone(), x;
|
|
2944
2944
|
}
|
|
2945
2945
|
});
|
|
2946
|
-
function
|
|
2947
|
-
return
|
|
2946
|
+
function c(x, E, G) {
|
|
2947
|
+
return x ^ E ^ G;
|
|
2948
2948
|
}
|
|
2949
|
-
function y(
|
|
2950
|
-
return
|
|
2949
|
+
function y(x, E, G) {
|
|
2950
|
+
return x & E | ~x & G;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2953
|
-
return (
|
|
2952
|
+
function f(x, E, G) {
|
|
2953
|
+
return (x | ~E) ^ G;
|
|
2954
2954
|
}
|
|
2955
|
-
function U(
|
|
2956
|
-
return
|
|
2955
|
+
function U(x, E, G) {
|
|
2956
|
+
return x & G | E & ~G;
|
|
2957
2957
|
}
|
|
2958
|
-
function C(
|
|
2959
|
-
return
|
|
2958
|
+
function C(x, E, G) {
|
|
2959
|
+
return x ^ (E | ~G);
|
|
2960
2960
|
}
|
|
2961
|
-
function v(
|
|
2962
|
-
return
|
|
2961
|
+
function v(x, E) {
|
|
2962
|
+
return x << E | x >>> 32 - E;
|
|
2963
2963
|
}
|
|
2964
|
-
p.RIPEMD160 = d._createHelper(
|
|
2964
|
+
p.RIPEMD160 = d._createHelper(_), p.HmacRIPEMD160 = d._createHmacHelper(_);
|
|
2965
2965
|
})(), t.RIPEMD160;
|
|
2966
2966
|
});
|
|
2967
2967
|
})(xt)), xt.exports;
|
|
@@ -2989,8 +2989,8 @@ function bi() {
|
|
|
2989
2989
|
a = this._hasher = new a.init(), typeof i == "string" && (i = d.parse(i));
|
|
2990
2990
|
var o = a.blockSize, s = o * 4;
|
|
2991
2991
|
i.sigBytes > s && (i = a.finalize(i)), i.clamp();
|
|
2992
|
-
for (var u = this._oKey = i.clone(), m = this._iKey = i.clone(),
|
|
2993
|
-
|
|
2992
|
+
for (var u = this._oKey = i.clone(), m = this._iKey = i.clone(), _ = u.words, c = m.words, y = 0; y < o; y++)
|
|
2993
|
+
_[y] ^= 1549556828, c[y] ^= 909522486;
|
|
2994
2994
|
u.sigBytes = m.sigBytes = s, this.reset();
|
|
2995
2995
|
},
|
|
2996
2996
|
/**
|
|
@@ -3091,17 +3091,17 @@ function Rl() {
|
|
|
3091
3091
|
* var key = kdf.compute(password, salt);
|
|
3092
3092
|
*/
|
|
3093
3093
|
compute: function(o, s) {
|
|
3094
|
-
for (var u = this.cfg, m = a.create(u.hasher, o),
|
|
3095
|
-
var v = m.update(s).finalize(
|
|
3094
|
+
for (var u = this.cfg, m = a.create(u.hasher, o), _ = b.create(), c = b.create([1]), y = _.words, f = c.words, U = u.keySize, C = u.iterations; y.length < U; ) {
|
|
3095
|
+
var v = m.update(s).finalize(c);
|
|
3096
3096
|
m.reset();
|
|
3097
|
-
for (var
|
|
3097
|
+
for (var x = v.words, E = x.length, G = v, O = 1; O < C; O++) {
|
|
3098
3098
|
G = m.finalize(G), m.reset();
|
|
3099
3099
|
for (var k = G.words, h = 0; h < E; h++)
|
|
3100
|
-
|
|
3100
|
+
x[h] ^= k[h];
|
|
3101
3101
|
}
|
|
3102
|
-
|
|
3102
|
+
_.concat(v), f[0]++;
|
|
3103
3103
|
}
|
|
3104
|
-
return
|
|
3104
|
+
return _.sigBytes = U * 4, _;
|
|
3105
3105
|
}
|
|
3106
3106
|
});
|
|
3107
3107
|
r.PBKDF2 = function(o, s, u) {
|
|
@@ -3158,13 +3158,13 @@ function _a() {
|
|
|
3158
3158
|
* var key = kdf.compute(password, salt);
|
|
3159
3159
|
*/
|
|
3160
3160
|
compute: function(i, o) {
|
|
3161
|
-
for (var s, u = this.cfg, m = u.hasher.create(),
|
|
3161
|
+
for (var s, u = this.cfg, m = u.hasher.create(), _ = b.create(), c = _.words, y = u.keySize, f = u.iterations; c.length < y; ) {
|
|
3162
3162
|
s && m.update(s), s = m.update(i).finalize(o), m.reset();
|
|
3163
|
-
for (var U = 1; U <
|
|
3163
|
+
for (var U = 1; U < f; U++)
|
|
3164
3164
|
s = m.finalize(s), m.reset();
|
|
3165
|
-
|
|
3165
|
+
_.concat(s);
|
|
3166
3166
|
}
|
|
3167
|
-
return
|
|
3167
|
+
return _.sigBytes = y * 4, _;
|
|
3168
3168
|
}
|
|
3169
3169
|
});
|
|
3170
3170
|
r.EvpKDF = function(i, o, s) {
|
|
@@ -3175,7 +3175,7 @@ function _a() {
|
|
|
3175
3175
|
})(Et)), Et.exports;
|
|
3176
3176
|
}
|
|
3177
3177
|
var Nt = { exports: {} }, wl = Nt.exports, Yi;
|
|
3178
|
-
function
|
|
3178
|
+
function Ge() {
|
|
3179
3179
|
return Yi || (Yi = 1, (function(e, n) {
|
|
3180
3180
|
(function(t, r, p) {
|
|
3181
3181
|
e.exports = r(ne(), _a());
|
|
@@ -3301,7 +3301,7 @@ function Le() {
|
|
|
3301
3301
|
*/
|
|
3302
3302
|
_createHelper: /* @__PURE__ */ (function() {
|
|
3303
3303
|
function k(h) {
|
|
3304
|
-
return typeof h == "string" ? O :
|
|
3304
|
+
return typeof h == "string" ? O : x;
|
|
3305
3305
|
}
|
|
3306
3306
|
return function(h) {
|
|
3307
3307
|
return {
|
|
@@ -3322,7 +3322,7 @@ function Le() {
|
|
|
3322
3322
|
},
|
|
3323
3323
|
blockSize: 1
|
|
3324
3324
|
});
|
|
3325
|
-
var m = p.mode = {},
|
|
3325
|
+
var m = p.mode = {}, _ = g.BlockCipherMode = b.extend({
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Creates this mode for encryption.
|
|
3328
3328
|
*
|
|
@@ -3366,8 +3366,8 @@ function Le() {
|
|
|
3366
3366
|
init: function(k, h) {
|
|
3367
3367
|
this._cipher = k, this._iv = h;
|
|
3368
3368
|
}
|
|
3369
|
-
}),
|
|
3370
|
-
var k =
|
|
3369
|
+
}), c = m.CBC = (function() {
|
|
3370
|
+
var k = _.extend();
|
|
3371
3371
|
k.Encryptor = k.extend({
|
|
3372
3372
|
/**
|
|
3373
3373
|
* Processes the data block at offset.
|
|
@@ -3406,7 +3406,7 @@ function Le() {
|
|
|
3406
3406
|
F[A + H] ^= R[H];
|
|
3407
3407
|
}
|
|
3408
3408
|
return k;
|
|
3409
|
-
})(), y = p.pad = {},
|
|
3409
|
+
})(), y = p.pad = {}, f = y.Pkcs7 = {
|
|
3410
3410
|
/**
|
|
3411
3411
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3412
3412
|
*
|
|
@@ -3449,8 +3449,8 @@ function Le() {
|
|
|
3449
3449
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3450
3450
|
*/
|
|
3451
3451
|
cfg: u.cfg.extend({
|
|
3452
|
-
mode:
|
|
3453
|
-
padding:
|
|
3452
|
+
mode: c,
|
|
3453
|
+
padding: f
|
|
3454
3454
|
}),
|
|
3455
3455
|
reset: function() {
|
|
3456
3456
|
var k;
|
|
@@ -3543,7 +3543,7 @@ function Le() {
|
|
|
3543
3543
|
var h, F = i.parse(k), A = F.words;
|
|
3544
3544
|
return A[0] == 1398893684 && A[1] == 1701076831 && (h = d.create(A.slice(2, 4)), A.splice(0, 4), F.sigBytes -= 16), U.create({ ciphertext: F, salt: h });
|
|
3545
3545
|
}
|
|
3546
|
-
},
|
|
3546
|
+
}, x = g.SerializableCipher = b.extend({
|
|
3547
3547
|
/**
|
|
3548
3548
|
* Configuration options.
|
|
3549
3549
|
*
|
|
@@ -3650,13 +3650,13 @@ function Le() {
|
|
|
3650
3650
|
var P = d.create(R.words.slice(h), F * 4);
|
|
3651
3651
|
return R.sigBytes = h * 4, U.create({ key: R, iv: P, salt: A });
|
|
3652
3652
|
}
|
|
3653
|
-
}, O = g.PasswordBasedCipher =
|
|
3653
|
+
}, O = g.PasswordBasedCipher = x.extend({
|
|
3654
3654
|
/**
|
|
3655
3655
|
* Configuration options.
|
|
3656
3656
|
*
|
|
3657
3657
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3658
3658
|
*/
|
|
3659
|
-
cfg:
|
|
3659
|
+
cfg: x.cfg.extend({
|
|
3660
3660
|
kdf: G
|
|
3661
3661
|
}),
|
|
3662
3662
|
/**
|
|
@@ -3680,7 +3680,7 @@ function Le() {
|
|
|
3680
3680
|
A = this.cfg.extend(A);
|
|
3681
3681
|
var w = A.kdf.execute(F, k.keySize, k.ivSize, A.salt, A.hasher);
|
|
3682
3682
|
A.iv = w.iv;
|
|
3683
|
-
var R =
|
|
3683
|
+
var R = x.encrypt.call(this, k, h, w.key, A);
|
|
3684
3684
|
return R.mixIn(w), R;
|
|
3685
3685
|
},
|
|
3686
3686
|
/**
|
|
@@ -3704,7 +3704,7 @@ function Le() {
|
|
|
3704
3704
|
A = this.cfg.extend(A), h = this._parse(h, A.format);
|
|
3705
3705
|
var w = A.kdf.execute(F, k.keySize, k.ivSize, h.salt, A.hasher);
|
|
3706
3706
|
A.iv = w.iv;
|
|
3707
|
-
var R =
|
|
3707
|
+
var R = x.decrypt.call(this, k, h, w.key, A);
|
|
3708
3708
|
return R;
|
|
3709
3709
|
}
|
|
3710
3710
|
});
|
|
@@ -3716,7 +3716,7 @@ var Lt = { exports: {} }, Fl = Lt.exports, Xi;
|
|
|
3716
3716
|
function Al() {
|
|
3717
3717
|
return Xi || (Xi = 1, (function(e, n) {
|
|
3718
3718
|
(function(t, r, p) {
|
|
3719
|
-
e.exports = r(ne(),
|
|
3719
|
+
e.exports = r(ne(), Ge());
|
|
3720
3720
|
})(Fl, function(t) {
|
|
3721
3721
|
return t.mode.CFB = (function() {
|
|
3722
3722
|
var r = t.lib.BlockCipherMode.extend();
|
|
@@ -3746,7 +3746,7 @@ var Gt = { exports: {} }, Ol = Gt.exports, en;
|
|
|
3746
3746
|
function Bl() {
|
|
3747
3747
|
return en || (en = 1, (function(e, n) {
|
|
3748
3748
|
(function(t, r, p) {
|
|
3749
|
-
e.exports = r(ne(),
|
|
3749
|
+
e.exports = r(ne(), Ge());
|
|
3750
3750
|
})(Ol, function(t) {
|
|
3751
3751
|
return t.mode.CTR = (function() {
|
|
3752
3752
|
var r = t.lib.BlockCipherMode.extend(), p = r.Encryptor = r.extend({
|
|
@@ -3768,7 +3768,7 @@ var Mt = { exports: {} }, Hl = Mt.exports, an;
|
|
|
3768
3768
|
function Wl() {
|
|
3769
3769
|
return an || (an = 1, (function(e, n) {
|
|
3770
3770
|
(function(t, r, p) {
|
|
3771
|
-
e.exports = r(ne(),
|
|
3771
|
+
e.exports = r(ne(), Ge());
|
|
3772
3772
|
})(Hl, function(t) {
|
|
3773
3773
|
return t.mode.CTRGladman = (function() {
|
|
3774
3774
|
var r = t.lib.BlockCipherMode.extend();
|
|
@@ -3802,7 +3802,7 @@ var Rt = { exports: {} }, zl = Rt.exports, tn;
|
|
|
3802
3802
|
function Il() {
|
|
3803
3803
|
return tn || (tn = 1, (function(e, n) {
|
|
3804
3804
|
(function(t, r, p) {
|
|
3805
|
-
e.exports = r(ne(),
|
|
3805
|
+
e.exports = r(ne(), Ge());
|
|
3806
3806
|
})(zl, function(t) {
|
|
3807
3807
|
return t.mode.OFB = (function() {
|
|
3808
3808
|
var r = t.lib.BlockCipherMode.extend(), p = r.Encryptor = r.extend({
|
|
@@ -3822,7 +3822,7 @@ var Pt = { exports: {} }, Vl = Pt.exports, nn;
|
|
|
3822
3822
|
function Jl() {
|
|
3823
3823
|
return nn || (nn = 1, (function(e, n) {
|
|
3824
3824
|
(function(t, r, p) {
|
|
3825
|
-
e.exports = r(ne(),
|
|
3825
|
+
e.exports = r(ne(), Ge());
|
|
3826
3826
|
})(Vl, function(t) {
|
|
3827
3827
|
return t.mode.ECB = (function() {
|
|
3828
3828
|
var r = t.lib.BlockCipherMode.extend();
|
|
@@ -3843,7 +3843,7 @@ var wt = { exports: {} }, Zl = wt.exports, rn;
|
|
|
3843
3843
|
function Kl() {
|
|
3844
3844
|
return rn || (rn = 1, (function(e, n) {
|
|
3845
3845
|
(function(t, r, p) {
|
|
3846
|
-
e.exports = r(ne(),
|
|
3846
|
+
e.exports = r(ne(), Ge());
|
|
3847
3847
|
})(Zl, function(t) {
|
|
3848
3848
|
return t.pad.AnsiX923 = {
|
|
3849
3849
|
pad: function(r, p) {
|
|
@@ -3862,7 +3862,7 @@ var Ft = { exports: {} }, ql = Ft.exports, ln;
|
|
|
3862
3862
|
function $l() {
|
|
3863
3863
|
return ln || (ln = 1, (function(e, n) {
|
|
3864
3864
|
(function(t, r, p) {
|
|
3865
|
-
e.exports = r(ne(),
|
|
3865
|
+
e.exports = r(ne(), Ge());
|
|
3866
3866
|
})(ql, function(t) {
|
|
3867
3867
|
return t.pad.Iso10126 = {
|
|
3868
3868
|
pad: function(r, p) {
|
|
@@ -3881,7 +3881,7 @@ var At = { exports: {} }, Ql = At.exports, on;
|
|
|
3881
3881
|
function jl() {
|
|
3882
3882
|
return on || (on = 1, (function(e, n) {
|
|
3883
3883
|
(function(t, r, p) {
|
|
3884
|
-
e.exports = r(ne(),
|
|
3884
|
+
e.exports = r(ne(), Ge());
|
|
3885
3885
|
})(Ql, function(t) {
|
|
3886
3886
|
return t.pad.Iso97971 = {
|
|
3887
3887
|
pad: function(r, p) {
|
|
@@ -3898,7 +3898,7 @@ var Ot = { exports: {} }, Yl = Ot.exports, sn;
|
|
|
3898
3898
|
function Xl() {
|
|
3899
3899
|
return sn || (sn = 1, (function(e, n) {
|
|
3900
3900
|
(function(t, r, p) {
|
|
3901
|
-
e.exports = r(ne(),
|
|
3901
|
+
e.exports = r(ne(), Ge());
|
|
3902
3902
|
})(Yl, function(t) {
|
|
3903
3903
|
return t.pad.ZeroPadding = {
|
|
3904
3904
|
pad: function(r, p) {
|
|
@@ -3920,7 +3920,7 @@ var Bt = { exports: {} }, eo = Bt.exports, mn;
|
|
|
3920
3920
|
function ao() {
|
|
3921
3921
|
return mn || (mn = 1, (function(e, n) {
|
|
3922
3922
|
(function(t, r, p) {
|
|
3923
|
-
e.exports = r(ne(),
|
|
3923
|
+
e.exports = r(ne(), Ge());
|
|
3924
3924
|
})(eo, function(t) {
|
|
3925
3925
|
return t.pad.NoPadding = {
|
|
3926
3926
|
pad: function() {
|
|
@@ -3935,7 +3935,7 @@ var Ht = { exports: {} }, to = Ht.exports, un;
|
|
|
3935
3935
|
function io() {
|
|
3936
3936
|
return un || (un = 1, (function(e, n) {
|
|
3937
3937
|
(function(t, r, p) {
|
|
3938
|
-
e.exports = r(ne(),
|
|
3938
|
+
e.exports = r(ne(), Ge());
|
|
3939
3939
|
})(to, function(t) {
|
|
3940
3940
|
return (function(r) {
|
|
3941
3941
|
var p = t, g = p.lib, b = g.CipherParams, d = p.enc, l = d.Hex, a = p.format;
|
|
@@ -3982,35 +3982,35 @@ var Wt = { exports: {} }, no = Wt.exports, pn;
|
|
|
3982
3982
|
function ro() {
|
|
3983
3983
|
return pn || (pn = 1, (function(e, n) {
|
|
3984
3984
|
(function(t, r, p) {
|
|
3985
|
-
e.exports = r(ne(), xa(), Sa(), _a(),
|
|
3985
|
+
e.exports = r(ne(), xa(), Sa(), _a(), Ge());
|
|
3986
3986
|
})(no, function(t) {
|
|
3987
3987
|
return (function() {
|
|
3988
|
-
var r = t, p = r.lib, g = p.BlockCipher, b = r.algo, d = [], l = [], a = [], i = [], o = [], s = [], u = [], m = [],
|
|
3988
|
+
var r = t, p = r.lib, g = p.BlockCipher, b = r.algo, d = [], l = [], a = [], i = [], o = [], s = [], u = [], m = [], _ = [], c = [];
|
|
3989
3989
|
(function() {
|
|
3990
3990
|
for (var U = [], C = 0; C < 256; C++)
|
|
3991
3991
|
C < 128 ? U[C] = C << 1 : U[C] = C << 1 ^ 283;
|
|
3992
|
-
for (var v = 0,
|
|
3993
|
-
var E =
|
|
3992
|
+
for (var v = 0, x = 0, C = 0; C < 256; C++) {
|
|
3993
|
+
var E = x ^ x << 1 ^ x << 2 ^ x << 3 ^ x << 4;
|
|
3994
3994
|
E = E >>> 8 ^ E & 255 ^ 99, d[v] = E, l[E] = v;
|
|
3995
3995
|
var G = U[v], O = U[G], k = U[O], h = U[E] * 257 ^ E * 16843008;
|
|
3996
3996
|
a[v] = h << 24 | h >>> 8, i[v] = h << 16 | h >>> 16, o[v] = h << 8 | h >>> 24, s[v] = h;
|
|
3997
3997
|
var h = k * 16843009 ^ O * 65537 ^ G * 257 ^ v * 16843008;
|
|
3998
|
-
u[E] = h << 24 | h >>> 8, m[E] = h << 16 | h >>> 16,
|
|
3998
|
+
u[E] = h << 24 | h >>> 8, m[E] = h << 16 | h >>> 16, _[E] = h << 8 | h >>> 24, c[E] = h, v ? (v = G ^ U[U[U[k ^ G]]], x ^= U[U[x]]) : v = x = 1;
|
|
3999
3999
|
}
|
|
4000
4000
|
})();
|
|
4001
|
-
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
4001
|
+
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], f = b.AES = g.extend({
|
|
4002
4002
|
_doReset: function() {
|
|
4003
4003
|
var U;
|
|
4004
4004
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
4005
|
-
for (var C = this._keyPriorReset = this._key, v = C.words,
|
|
4006
|
-
k <
|
|
4005
|
+
for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, E = this._nRounds = x + 6, G = (E + 1) * 4, O = this._keySchedule = [], k = 0; k < G; k++)
|
|
4006
|
+
k < x ? O[k] = v[k] : (U = O[k - 1], k % x ? x > 6 && k % x == 4 && (U = d[U >>> 24] << 24 | d[U >>> 16 & 255] << 16 | d[U >>> 8 & 255] << 8 | d[U & 255]) : (U = U << 8 | U >>> 24, U = d[U >>> 24] << 24 | d[U >>> 16 & 255] << 16 | d[U >>> 8 & 255] << 8 | d[U & 255], U ^= y[k / x | 0] << 24), O[k] = O[k - x] ^ U);
|
|
4007
4007
|
for (var h = this._invKeySchedule = [], F = 0; F < G; F++) {
|
|
4008
4008
|
var k = G - F;
|
|
4009
4009
|
if (F % 4)
|
|
4010
4010
|
var U = O[k];
|
|
4011
4011
|
else
|
|
4012
4012
|
var U = O[k - 4];
|
|
4013
|
-
F < 4 || k <= 4 ? h[F] = U : h[F] = u[d[U >>> 24]] ^ m[d[U >>> 16 & 255]] ^
|
|
4013
|
+
F < 4 || k <= 4 ? h[F] = U : h[F] = u[d[U >>> 24]] ^ m[d[U >>> 16 & 255]] ^ _[d[U >>> 8 & 255]] ^ c[d[U & 255]];
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
4016
|
},
|
|
@@ -4019,13 +4019,13 @@ function ro() {
|
|
|
4019
4019
|
},
|
|
4020
4020
|
decryptBlock: function(U, C) {
|
|
4021
4021
|
var v = U[C + 1];
|
|
4022
|
-
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, u, m,
|
|
4022
|
+
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, u, m, _, c, l);
|
|
4023
4023
|
var v = U[C + 1];
|
|
4024
4024
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
4025
4025
|
},
|
|
4026
|
-
_doCryptBlock: function(U, C, v,
|
|
4026
|
+
_doCryptBlock: function(U, C, v, x, E, G, O, k) {
|
|
4027
4027
|
for (var h = this._nRounds, F = U[C] ^ v[0], A = U[C + 1] ^ v[1], w = U[C + 2] ^ v[2], R = U[C + 3] ^ v[3], P = 4, H = 1; H < h; H++) {
|
|
4028
|
-
var B =
|
|
4028
|
+
var B = x[F >>> 24] ^ E[A >>> 16 & 255] ^ G[w >>> 8 & 255] ^ O[R & 255] ^ v[P++], W = x[A >>> 24] ^ E[w >>> 16 & 255] ^ G[R >>> 8 & 255] ^ O[F & 255] ^ v[P++], M = x[w >>> 24] ^ E[R >>> 16 & 255] ^ G[F >>> 8 & 255] ^ O[A & 255] ^ v[P++], D = x[R >>> 24] ^ E[F >>> 16 & 255] ^ G[A >>> 8 & 255] ^ O[w & 255] ^ v[P++];
|
|
4029
4029
|
F = B, A = W, w = M, R = D;
|
|
4030
4030
|
}
|
|
4031
4031
|
var B = (k[F >>> 24] << 24 | k[A >>> 16 & 255] << 16 | k[w >>> 8 & 255] << 8 | k[R & 255]) ^ v[P++], W = (k[A >>> 24] << 24 | k[w >>> 16 & 255] << 16 | k[R >>> 8 & 255] << 8 | k[F & 255]) ^ v[P++], M = (k[w >>> 24] << 24 | k[R >>> 16 & 255] << 16 | k[F >>> 8 & 255] << 8 | k[A & 255]) ^ v[P++], D = (k[R >>> 24] << 24 | k[F >>> 16 & 255] << 16 | k[A >>> 8 & 255] << 8 | k[w & 255]) ^ v[P++];
|
|
@@ -4033,7 +4033,7 @@ function ro() {
|
|
|
4033
4033
|
},
|
|
4034
4034
|
keySize: 256 / 32
|
|
4035
4035
|
});
|
|
4036
|
-
r.AES = g._createHelper(
|
|
4036
|
+
r.AES = g._createHelper(f);
|
|
4037
4037
|
})(), t.AES;
|
|
4038
4038
|
});
|
|
4039
4039
|
})(Wt)), Wt.exports;
|
|
@@ -4042,7 +4042,7 @@ var zt = { exports: {} }, lo = zt.exports, gn;
|
|
|
4042
4042
|
function oo() {
|
|
4043
4043
|
return gn || (gn = 1, (function(e, n) {
|
|
4044
4044
|
(function(t, r, p) {
|
|
4045
|
-
e.exports = r(ne(), xa(), Sa(), _a(),
|
|
4045
|
+
e.exports = r(ne(), xa(), Sa(), _a(), Ge());
|
|
4046
4046
|
})(lo, function(t) {
|
|
4047
4047
|
return (function() {
|
|
4048
4048
|
var r = t, p = r.lib, g = p.WordArray, b = p.BlockCipher, d = r.algo, l = [
|
|
@@ -4691,12 +4691,12 @@ function oo() {
|
|
|
4691
4691
|
2147483679
|
|
4692
4692
|
], u = d.DES = b.extend({
|
|
4693
4693
|
_doReset: function() {
|
|
4694
|
-
for (var y = this._key,
|
|
4694
|
+
for (var y = this._key, f = y.words, U = [], C = 0; C < 56; C++) {
|
|
4695
4695
|
var v = l[C] - 1;
|
|
4696
|
-
U[C] =
|
|
4696
|
+
U[C] = f[v >>> 5] >>> 31 - v % 32 & 1;
|
|
4697
4697
|
}
|
|
4698
|
-
for (var
|
|
4699
|
-
for (var G =
|
|
4698
|
+
for (var x = this._subKeys = [], E = 0; E < 16; E++) {
|
|
4699
|
+
for (var G = x[E] = [], O = i[E], C = 0; C < 24; C++)
|
|
4700
4700
|
G[C / 6 | 0] |= U[(a[C] - 1 + O) % 28] << 31 - C % 6, G[4 + (C / 6 | 0)] |= U[28 + (a[C + 24] - 1 + O) % 28] << 31 - C % 6;
|
|
4701
4701
|
G[0] = G[0] << 1 | G[0] >>> 31;
|
|
4702
4702
|
for (var C = 1; C < 7; C++)
|
|
@@ -4704,56 +4704,56 @@ function oo() {
|
|
|
4704
4704
|
G[7] = G[7] << 5 | G[7] >>> 27;
|
|
4705
4705
|
}
|
|
4706
4706
|
for (var k = this._invSubKeys = [], C = 0; C < 16; C++)
|
|
4707
|
-
k[C] =
|
|
4707
|
+
k[C] = x[15 - C];
|
|
4708
4708
|
},
|
|
4709
|
-
encryptBlock: function(y,
|
|
4710
|
-
this._doCryptBlock(y,
|
|
4709
|
+
encryptBlock: function(y, f) {
|
|
4710
|
+
this._doCryptBlock(y, f, this._subKeys);
|
|
4711
4711
|
},
|
|
4712
|
-
decryptBlock: function(y,
|
|
4713
|
-
this._doCryptBlock(y,
|
|
4712
|
+
decryptBlock: function(y, f) {
|
|
4713
|
+
this._doCryptBlock(y, f, this._invSubKeys);
|
|
4714
4714
|
},
|
|
4715
|
-
_doCryptBlock: function(y,
|
|
4716
|
-
this._lBlock = y[
|
|
4715
|
+
_doCryptBlock: function(y, f, U) {
|
|
4716
|
+
this._lBlock = y[f], this._rBlock = y[f + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), _.call(this, 2, 858993459), _.call(this, 8, 16711935), m.call(this, 1, 1431655765);
|
|
4717
4717
|
for (var C = 0; C < 16; C++) {
|
|
4718
|
-
for (var v = U[C],
|
|
4718
|
+
for (var v = U[C], x = this._lBlock, E = this._rBlock, G = 0, O = 0; O < 8; O++)
|
|
4719
4719
|
G |= o[O][((E ^ v[O]) & s[O]) >>> 0];
|
|
4720
|
-
this._lBlock = E, this._rBlock =
|
|
4720
|
+
this._lBlock = E, this._rBlock = x ^ G;
|
|
4721
4721
|
}
|
|
4722
4722
|
var k = this._lBlock;
|
|
4723
|
-
this._lBlock = this._rBlock, this._rBlock = k, m.call(this, 1, 1431655765),
|
|
4723
|
+
this._lBlock = this._rBlock, this._rBlock = k, m.call(this, 1, 1431655765), _.call(this, 8, 16711935), _.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), y[f] = this._lBlock, y[f + 1] = this._rBlock;
|
|
4724
4724
|
},
|
|
4725
4725
|
keySize: 64 / 32,
|
|
4726
4726
|
ivSize: 64 / 32,
|
|
4727
4727
|
blockSize: 64 / 32
|
|
4728
4728
|
});
|
|
4729
|
-
function m(y,
|
|
4730
|
-
var U = (this._lBlock >>> y ^ this._rBlock) &
|
|
4729
|
+
function m(y, f) {
|
|
4730
|
+
var U = (this._lBlock >>> y ^ this._rBlock) & f;
|
|
4731
4731
|
this._rBlock ^= U, this._lBlock ^= U << y;
|
|
4732
4732
|
}
|
|
4733
|
-
function
|
|
4734
|
-
var U = (this._rBlock >>> y ^ this._lBlock) &
|
|
4733
|
+
function _(y, f) {
|
|
4734
|
+
var U = (this._rBlock >>> y ^ this._lBlock) & f;
|
|
4735
4735
|
this._lBlock ^= U, this._rBlock ^= U << y;
|
|
4736
4736
|
}
|
|
4737
4737
|
r.DES = b._createHelper(u);
|
|
4738
|
-
var
|
|
4738
|
+
var c = d.TripleDES = b.extend({
|
|
4739
4739
|
_doReset: function() {
|
|
4740
|
-
var y = this._key,
|
|
4741
|
-
if (
|
|
4740
|
+
var y = this._key, f = y.words;
|
|
4741
|
+
if (f.length !== 2 && f.length !== 4 && f.length < 6)
|
|
4742
4742
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4743
|
-
var U =
|
|
4743
|
+
var U = f.slice(0, 2), C = f.length < 4 ? f.slice(0, 2) : f.slice(2, 4), v = f.length < 6 ? f.slice(0, 2) : f.slice(4, 6);
|
|
4744
4744
|
this._des1 = u.createEncryptor(g.create(U)), this._des2 = u.createEncryptor(g.create(C)), this._des3 = u.createEncryptor(g.create(v));
|
|
4745
4745
|
},
|
|
4746
|
-
encryptBlock: function(y,
|
|
4747
|
-
this._des1.encryptBlock(y,
|
|
4746
|
+
encryptBlock: function(y, f) {
|
|
4747
|
+
this._des1.encryptBlock(y, f), this._des2.decryptBlock(y, f), this._des3.encryptBlock(y, f);
|
|
4748
4748
|
},
|
|
4749
|
-
decryptBlock: function(y,
|
|
4750
|
-
this._des3.decryptBlock(y,
|
|
4749
|
+
decryptBlock: function(y, f) {
|
|
4750
|
+
this._des3.decryptBlock(y, f), this._des2.encryptBlock(y, f), this._des1.decryptBlock(y, f);
|
|
4751
4751
|
},
|
|
4752
4752
|
keySize: 192 / 32,
|
|
4753
4753
|
ivSize: 64 / 32,
|
|
4754
4754
|
blockSize: 64 / 32
|
|
4755
4755
|
});
|
|
4756
|
-
r.TripleDES = b._createHelper(
|
|
4756
|
+
r.TripleDES = b._createHelper(c);
|
|
4757
4757
|
})(), t.TripleDES;
|
|
4758
4758
|
});
|
|
4759
4759
|
})(zt)), zt.exports;
|
|
@@ -4762,18 +4762,18 @@ var It = { exports: {} }, so = It.exports, dn;
|
|
|
4762
4762
|
function mo() {
|
|
4763
4763
|
return dn || (dn = 1, (function(e, n) {
|
|
4764
4764
|
(function(t, r, p) {
|
|
4765
|
-
e.exports = r(ne(), xa(), Sa(), _a(),
|
|
4765
|
+
e.exports = r(ne(), xa(), Sa(), _a(), Ge());
|
|
4766
4766
|
})(so, function(t) {
|
|
4767
4767
|
return (function() {
|
|
4768
4768
|
var r = t, p = r.lib, g = p.StreamCipher, b = r.algo, d = b.RC4 = g.extend({
|
|
4769
4769
|
_doReset: function() {
|
|
4770
4770
|
for (var i = this._key, o = i.words, s = i.sigBytes, u = this._S = [], m = 0; m < 256; m++)
|
|
4771
4771
|
u[m] = m;
|
|
4772
|
-
for (var m = 0,
|
|
4773
|
-
var
|
|
4774
|
-
|
|
4775
|
-
var
|
|
4776
|
-
u[m] = u[
|
|
4772
|
+
for (var m = 0, _ = 0; m < 256; m++) {
|
|
4773
|
+
var c = m % s, y = o[c >>> 2] >>> 24 - c % 4 * 8 & 255;
|
|
4774
|
+
_ = (_ + u[m] + y) % 256;
|
|
4775
|
+
var f = u[m];
|
|
4776
|
+
u[m] = u[_], u[_] = f;
|
|
4777
4777
|
}
|
|
4778
4778
|
this._i = this._j = 0;
|
|
4779
4779
|
},
|
|
@@ -4786,8 +4786,8 @@ function mo() {
|
|
|
4786
4786
|
function l() {
|
|
4787
4787
|
for (var i = this._S, o = this._i, s = this._j, u = 0, m = 0; m < 4; m++) {
|
|
4788
4788
|
o = (o + 1) % 256, s = (s + i[o]) % 256;
|
|
4789
|
-
var
|
|
4790
|
-
i[o] = i[s], i[s] =
|
|
4789
|
+
var _ = i[o];
|
|
4790
|
+
i[o] = i[s], i[s] = _, u |= i[(i[o] + i[s]) % 256] << 24 - m * 8;
|
|
4791
4791
|
}
|
|
4792
4792
|
return this._i = o, this._j = s, u;
|
|
4793
4793
|
}
|
|
@@ -4816,14 +4816,14 @@ var Vt = { exports: {} }, uo = Vt.exports, cn;
|
|
|
4816
4816
|
function po() {
|
|
4817
4817
|
return cn || (cn = 1, (function(e, n) {
|
|
4818
4818
|
(function(t, r, p) {
|
|
4819
|
-
e.exports = r(ne(), xa(), Sa(), _a(),
|
|
4819
|
+
e.exports = r(ne(), xa(), Sa(), _a(), Ge());
|
|
4820
4820
|
})(uo, function(t) {
|
|
4821
4821
|
return (function() {
|
|
4822
4822
|
var r = t, p = r.lib, g = p.StreamCipher, b = r.algo, d = [], l = [], a = [], i = b.Rabbit = g.extend({
|
|
4823
4823
|
_doReset: function() {
|
|
4824
4824
|
for (var s = this._key.words, u = this.cfg.iv, m = 0; m < 4; m++)
|
|
4825
4825
|
s[m] = (s[m] << 8 | s[m] >>> 24) & 16711935 | (s[m] << 24 | s[m] >>> 8) & 4278255360;
|
|
4826
|
-
var
|
|
4826
|
+
var _ = this._X = [
|
|
4827
4827
|
s[0],
|
|
4828
4828
|
s[3] << 16 | s[2] >>> 16,
|
|
4829
4829
|
s[1],
|
|
@@ -4832,7 +4832,7 @@ function po() {
|
|
|
4832
4832
|
s[1] << 16 | s[0] >>> 16,
|
|
4833
4833
|
s[3],
|
|
4834
4834
|
s[2] << 16 | s[1] >>> 16
|
|
4835
|
-
],
|
|
4835
|
+
], c = this._C = [
|
|
4836
4836
|
s[2] << 16 | s[2] >>> 16,
|
|
4837
4837
|
s[0] & 4294901760 | s[1] & 65535,
|
|
4838
4838
|
s[3] << 16 | s[3] >>> 16,
|
|
@@ -4846,10 +4846,10 @@ function po() {
|
|
|
4846
4846
|
for (var m = 0; m < 4; m++)
|
|
4847
4847
|
o.call(this);
|
|
4848
4848
|
for (var m = 0; m < 8; m++)
|
|
4849
|
-
|
|
4849
|
+
c[m] ^= _[m + 4 & 7];
|
|
4850
4850
|
if (u) {
|
|
4851
|
-
var y = u.words,
|
|
4852
|
-
|
|
4851
|
+
var y = u.words, f = y[0], U = y[1], C = (f << 8 | f >>> 24) & 16711935 | (f << 24 | f >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, E = v << 16 | C & 65535;
|
|
4852
|
+
c[0] ^= C, c[1] ^= x, c[2] ^= v, c[3] ^= E, c[4] ^= C, c[5] ^= x, c[6] ^= v, c[7] ^= E;
|
|
4853
4853
|
for (var m = 0; m < 4; m++)
|
|
4854
4854
|
o.call(this);
|
|
4855
4855
|
}
|
|
@@ -4857,8 +4857,8 @@ function po() {
|
|
|
4857
4857
|
_doProcessBlock: function(s, u) {
|
|
4858
4858
|
var m = this._X;
|
|
4859
4859
|
o.call(this), d[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, d[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, d[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, d[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
|
|
4860
|
-
for (var
|
|
4861
|
-
d[
|
|
4860
|
+
for (var _ = 0; _ < 4; _++)
|
|
4861
|
+
d[_] = (d[_] << 8 | d[_] >>> 24) & 16711935 | (d[_] << 24 | d[_] >>> 8) & 4278255360, s[u + _] ^= d[_];
|
|
4862
4862
|
},
|
|
4863
4863
|
blockSize: 128 / 32,
|
|
4864
4864
|
ivSize: 64 / 32
|
|
@@ -4868,8 +4868,8 @@ function po() {
|
|
|
4868
4868
|
l[m] = u[m];
|
|
4869
4869
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < l[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < l[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < l[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < l[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < l[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < l[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < l[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < l[7] >>> 0 ? 1 : 0;
|
|
4870
4870
|
for (var m = 0; m < 8; m++) {
|
|
4871
|
-
var
|
|
4872
|
-
a[m] =
|
|
4871
|
+
var _ = s[m] + u[m], c = _ & 65535, y = _ >>> 16, f = ((c * c >>> 17) + c * y >>> 15) + y * y, U = ((_ & 4294901760) * _ | 0) + ((_ & 65535) * _ | 0);
|
|
4872
|
+
a[m] = f ^ U;
|
|
4873
4873
|
}
|
|
4874
4874
|
s[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, s[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, s[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, s[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, s[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, s[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, s[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, s[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4875
4875
|
}
|
|
@@ -4882,7 +4882,7 @@ var Jt = { exports: {} }, go = Jt.exports, fn;
|
|
|
4882
4882
|
function co() {
|
|
4883
4883
|
return fn || (fn = 1, (function(e, n) {
|
|
4884
4884
|
(function(t, r, p) {
|
|
4885
|
-
e.exports = r(ne(), xa(), Sa(), _a(),
|
|
4885
|
+
e.exports = r(ne(), xa(), Sa(), _a(), Ge());
|
|
4886
4886
|
})(go, function(t) {
|
|
4887
4887
|
return (function() {
|
|
4888
4888
|
var r = t, p = r.lib, g = p.StreamCipher, b = r.algo, d = [], l = [], a = [], i = b.RabbitLegacy = g.extend({
|
|
@@ -4896,7 +4896,7 @@ function co() {
|
|
|
4896
4896
|
s[1] << 16 | s[0] >>> 16,
|
|
4897
4897
|
s[3],
|
|
4898
4898
|
s[2] << 16 | s[1] >>> 16
|
|
4899
|
-
],
|
|
4899
|
+
], _ = this._C = [
|
|
4900
4900
|
s[2] << 16 | s[2] >>> 16,
|
|
4901
4901
|
s[0] & 4294901760 | s[1] & 65535,
|
|
4902
4902
|
s[3] << 16 | s[3] >>> 16,
|
|
@@ -4907,22 +4907,22 @@ function co() {
|
|
|
4907
4907
|
s[3] & 4294901760 | s[0] & 65535
|
|
4908
4908
|
];
|
|
4909
4909
|
this._b = 0;
|
|
4910
|
-
for (var
|
|
4910
|
+
for (var c = 0; c < 4; c++)
|
|
4911
4911
|
o.call(this);
|
|
4912
|
-
for (var
|
|
4913
|
-
c
|
|
4912
|
+
for (var c = 0; c < 8; c++)
|
|
4913
|
+
_[c] ^= m[c + 4 & 7];
|
|
4914
4914
|
if (u) {
|
|
4915
|
-
var y = u.words,
|
|
4916
|
-
|
|
4917
|
-
for (var
|
|
4915
|
+
var y = u.words, f = y[0], U = y[1], C = (f << 8 | f >>> 24) & 16711935 | (f << 24 | f >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, E = v << 16 | C & 65535;
|
|
4916
|
+
_[0] ^= C, _[1] ^= x, _[2] ^= v, _[3] ^= E, _[4] ^= C, _[5] ^= x, _[6] ^= v, _[7] ^= E;
|
|
4917
|
+
for (var c = 0; c < 4; c++)
|
|
4918
4918
|
o.call(this);
|
|
4919
4919
|
}
|
|
4920
4920
|
},
|
|
4921
4921
|
_doProcessBlock: function(s, u) {
|
|
4922
4922
|
var m = this._X;
|
|
4923
4923
|
o.call(this), d[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, d[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, d[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, d[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
|
|
4924
|
-
for (var
|
|
4925
|
-
d[
|
|
4924
|
+
for (var _ = 0; _ < 4; _++)
|
|
4925
|
+
d[_] = (d[_] << 8 | d[_] >>> 24) & 16711935 | (d[_] << 24 | d[_] >>> 8) & 4278255360, s[u + _] ^= d[_];
|
|
4926
4926
|
},
|
|
4927
4927
|
blockSize: 128 / 32,
|
|
4928
4928
|
ivSize: 64 / 32
|
|
@@ -4932,8 +4932,8 @@ function co() {
|
|
|
4932
4932
|
l[m] = u[m];
|
|
4933
4933
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < l[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < l[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < l[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < l[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < l[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < l[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < l[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < l[7] >>> 0 ? 1 : 0;
|
|
4934
4934
|
for (var m = 0; m < 8; m++) {
|
|
4935
|
-
var
|
|
4936
|
-
a[m] =
|
|
4935
|
+
var _ = s[m] + u[m], c = _ & 65535, y = _ >>> 16, f = ((c * c >>> 17) + c * y >>> 15) + y * y, U = ((_ & 4294901760) * _ | 0) + ((_ & 65535) * _ | 0);
|
|
4936
|
+
a[m] = f ^ U;
|
|
4937
4937
|
}
|
|
4938
4938
|
s[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, s[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, s[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, s[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, s[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, s[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, s[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, s[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4939
4939
|
}
|
|
@@ -4946,7 +4946,7 @@ var Zt = { exports: {} }, fo = Zt.exports, _n;
|
|
|
4946
4946
|
function _o() {
|
|
4947
4947
|
return _n || (_n = 1, (function(e, n) {
|
|
4948
4948
|
(function(t, r, p) {
|
|
4949
|
-
e.exports = r(ne(), xa(), Sa(), _a(),
|
|
4949
|
+
e.exports = r(ne(), xa(), Sa(), _a(), Ge());
|
|
4950
4950
|
})(fo, function(t) {
|
|
4951
4951
|
return (function() {
|
|
4952
4952
|
var r = t, p = r.lib, g = p.BlockCipher, b = r.algo;
|
|
@@ -6007,59 +6007,59 @@ function _o() {
|
|
|
6007
6007
|
pbox: [],
|
|
6008
6008
|
sbox: []
|
|
6009
6009
|
};
|
|
6010
|
-
function o(
|
|
6011
|
-
let
|
|
6012
|
-
return
|
|
6010
|
+
function o(c, y) {
|
|
6011
|
+
let f = y >> 24 & 255, U = y >> 16 & 255, C = y >> 8 & 255, v = y & 255, x = c.sbox[0][f] + c.sbox[1][U];
|
|
6012
|
+
return x = x ^ c.sbox[2][C], x = x + c.sbox[3][v], x;
|
|
6013
6013
|
}
|
|
6014
|
-
function s(
|
|
6015
|
-
let U = y, C =
|
|
6016
|
-
for (let
|
|
6017
|
-
U = U ^
|
|
6018
|
-
return v = U, U = C, C = v, C = C ^
|
|
6014
|
+
function s(c, y, f) {
|
|
6015
|
+
let U = y, C = f, v;
|
|
6016
|
+
for (let x = 0; x < d; ++x)
|
|
6017
|
+
U = U ^ c.pbox[x], C = o(c, U) ^ C, v = U, U = C, C = v;
|
|
6018
|
+
return v = U, U = C, C = v, C = C ^ c.pbox[d], U = U ^ c.pbox[d + 1], { left: U, right: C };
|
|
6019
6019
|
}
|
|
6020
|
-
function u(
|
|
6021
|
-
let U = y, C =
|
|
6022
|
-
for (let
|
|
6023
|
-
U = U ^
|
|
6024
|
-
return v = U, U = C, C = v, C = C ^
|
|
6020
|
+
function u(c, y, f) {
|
|
6021
|
+
let U = y, C = f, v;
|
|
6022
|
+
for (let x = d + 1; x > 1; --x)
|
|
6023
|
+
U = U ^ c.pbox[x], C = o(c, U) ^ C, v = U, U = C, C = v;
|
|
6024
|
+
return v = U, U = C, C = v, C = C ^ c.pbox[1], U = U ^ c.pbox[0], { left: U, right: C };
|
|
6025
6025
|
}
|
|
6026
|
-
function m(
|
|
6026
|
+
function m(c, y, f) {
|
|
6027
6027
|
for (let E = 0; E < 4; E++) {
|
|
6028
|
-
|
|
6028
|
+
c.sbox[E] = [];
|
|
6029
6029
|
for (let G = 0; G < 256; G++)
|
|
6030
|
-
|
|
6030
|
+
c.sbox[E][G] = a[E][G];
|
|
6031
6031
|
}
|
|
6032
6032
|
let U = 0;
|
|
6033
6033
|
for (let E = 0; E < d + 2; E++)
|
|
6034
|
-
|
|
6035
|
-
let C = 0, v = 0,
|
|
6034
|
+
c.pbox[E] = l[E] ^ y[U], U++, U >= f && (U = 0);
|
|
6035
|
+
let C = 0, v = 0, x = 0;
|
|
6036
6036
|
for (let E = 0; E < d + 2; E += 2)
|
|
6037
|
-
|
|
6037
|
+
x = s(c, C, v), C = x.left, v = x.right, c.pbox[E] = C, c.pbox[E + 1] = v;
|
|
6038
6038
|
for (let E = 0; E < 4; E++)
|
|
6039
6039
|
for (let G = 0; G < 256; G += 2)
|
|
6040
|
-
|
|
6040
|
+
x = s(c, C, v), C = x.left, v = x.right, c.sbox[E][G] = C, c.sbox[E][G + 1] = v;
|
|
6041
6041
|
return !0;
|
|
6042
6042
|
}
|
|
6043
|
-
var
|
|
6043
|
+
var _ = b.Blowfish = g.extend({
|
|
6044
6044
|
_doReset: function() {
|
|
6045
6045
|
if (this._keyPriorReset !== this._key) {
|
|
6046
|
-
var
|
|
6047
|
-
m(i, y,
|
|
6046
|
+
var c = this._keyPriorReset = this._key, y = c.words, f = c.sigBytes / 4;
|
|
6047
|
+
m(i, y, f);
|
|
6048
6048
|
}
|
|
6049
6049
|
},
|
|
6050
|
-
encryptBlock: function(
|
|
6051
|
-
var
|
|
6052
|
-
|
|
6050
|
+
encryptBlock: function(c, y) {
|
|
6051
|
+
var f = s(i, c[y], c[y + 1]);
|
|
6052
|
+
c[y] = f.left, c[y + 1] = f.right;
|
|
6053
6053
|
},
|
|
6054
|
-
decryptBlock: function(
|
|
6055
|
-
var
|
|
6056
|
-
|
|
6054
|
+
decryptBlock: function(c, y) {
|
|
6055
|
+
var f = u(i, c[y], c[y + 1]);
|
|
6056
|
+
c[y] = f.left, c[y + 1] = f.right;
|
|
6057
6057
|
},
|
|
6058
6058
|
blockSize: 64 / 32,
|
|
6059
6059
|
keySize: 128 / 32,
|
|
6060
6060
|
ivSize: 64 / 32
|
|
6061
6061
|
});
|
|
6062
|
-
r.Blowfish = g._createHelper(
|
|
6062
|
+
r.Blowfish = g._createHelper(_);
|
|
6063
6063
|
})(), t.Blowfish;
|
|
6064
6064
|
});
|
|
6065
6065
|
})(Zt)), Zt.exports;
|
|
@@ -6068,7 +6068,7 @@ var yo = pt.exports, yn;
|
|
|
6068
6068
|
function Uo() {
|
|
6069
6069
|
return yn || (yn = 1, (function(e, n) {
|
|
6070
6070
|
(function(t, r, p) {
|
|
6071
|
-
e.exports = r(ne(), Xt(), dl(), fl(), xa(), Ul(), Sa(), ar(), Ui(), Tl(), tr(), Sl(), El(), Ll(), bi(), Rl(), _a(),
|
|
6071
|
+
e.exports = r(ne(), Xt(), dl(), fl(), xa(), Ul(), Sa(), ar(), Ui(), Tl(), tr(), Sl(), El(), Ll(), bi(), Rl(), _a(), Ge(), Al(), Bl(), Wl(), Il(), Jl(), Kl(), $l(), jl(), Xl(), ao(), io(), ro(), oo(), mo(), po(), co(), _o());
|
|
6072
6072
|
})(yo, function(t) {
|
|
6073
6073
|
return t;
|
|
6074
6074
|
});
|
|
@@ -6088,9 +6088,9 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6088
6088
|
}, oe = () => {
|
|
6089
6089
|
const { client: e, formDataClient: n } = se(), t = z(
|
|
6090
6090
|
async (M) => {
|
|
6091
|
-
const { mac_address: D = "", app_version:
|
|
6091
|
+
const { mac_address: D = "", app_version: S = "", anydesk_id: L = "" } = M, { data: N } = await e.post("/cash-register/login", {
|
|
6092
6092
|
mac_address: D,
|
|
6093
|
-
app_version:
|
|
6093
|
+
app_version: S,
|
|
6094
6094
|
anydesk_id: L
|
|
6095
6095
|
});
|
|
6096
6096
|
return N;
|
|
@@ -6098,19 +6098,19 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6098
6098
|
[e]
|
|
6099
6099
|
), r = z(async () => e.get("/member/getMemberInfo"), [e]), p = z(async () => await e.get("/member/getGameList"), [e]), g = z(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = z(async () => await e.get("member/getFavoriteGame"), [e]), d = z(
|
|
6100
6100
|
async (M) => {
|
|
6101
|
-
const { account: D, password:
|
|
6101
|
+
const { account: D, password: S, trans_code: L } = M;
|
|
6102
6102
|
return await e.post("/login", {
|
|
6103
6103
|
memId: D,
|
|
6104
|
-
passwd:
|
|
6104
|
+
passwd: S,
|
|
6105
6105
|
trans_code: L
|
|
6106
6106
|
});
|
|
6107
6107
|
},
|
|
6108
6108
|
[e]
|
|
6109
6109
|
), l = z(async () => await e.post("/logout"), [e]), a = z(
|
|
6110
6110
|
async (M) => {
|
|
6111
|
-
const { gameUid: D = "", status:
|
|
6111
|
+
const { gameUid: D = "", status: S = 0 } = M;
|
|
6112
6112
|
return await e.put(`/member/toggleFavoriteGame/${D}`, {
|
|
6113
|
-
status:
|
|
6113
|
+
status: S
|
|
6114
6114
|
});
|
|
6115
6115
|
},
|
|
6116
6116
|
[e]
|
|
@@ -6118,7 +6118,7 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6118
6118
|
async ({
|
|
6119
6119
|
memberId: M,
|
|
6120
6120
|
password: D,
|
|
6121
|
-
unlimitCode:
|
|
6121
|
+
unlimitCode: S,
|
|
6122
6122
|
email: L,
|
|
6123
6123
|
inviteCode: N,
|
|
6124
6124
|
currencyCode: Z,
|
|
@@ -6131,16 +6131,16 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6131
6131
|
currency_code: Z,
|
|
6132
6132
|
code: q
|
|
6133
6133
|
};
|
|
6134
|
-
return
|
|
6134
|
+
return S && (j.unlimit_code = S), N && (j.invite = N), e.post("/signUp", j);
|
|
6135
6135
|
},
|
|
6136
6136
|
[e]
|
|
6137
6137
|
), s = z(
|
|
6138
6138
|
async (M) => {
|
|
6139
|
-
const { name: D, birthday:
|
|
6139
|
+
const { name: D, birthday: S, email: L, mobile: N } = M;
|
|
6140
6140
|
return await e.post("/editMembetInfo", {
|
|
6141
6141
|
name: D,
|
|
6142
6142
|
// 暱稱
|
|
6143
|
-
birthday:
|
|
6143
|
+
birthday: S,
|
|
6144
6144
|
// 生日 (格式:YYYY-MM-DD)
|
|
6145
6145
|
email: L,
|
|
6146
6146
|
// 電子郵件
|
|
@@ -6151,53 +6151,53 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6151
6151
|
[e]
|
|
6152
6152
|
), u = z(
|
|
6153
6153
|
async (M) => {
|
|
6154
|
-
const { oldPwd: D, newPwd:
|
|
6154
|
+
const { oldPwd: D, newPwd: S } = M;
|
|
6155
6155
|
return await e.post("/passwordReset", {
|
|
6156
6156
|
old_pwd: qt.MD5(D).toString(),
|
|
6157
|
-
new_pwd: qt.MD5(
|
|
6157
|
+
new_pwd: qt.MD5(S).toString()
|
|
6158
6158
|
});
|
|
6159
6159
|
},
|
|
6160
6160
|
[e]
|
|
6161
6161
|
), m = z(
|
|
6162
6162
|
async (M) => {
|
|
6163
|
-
const { newPwd: D, confirmNewPwd:
|
|
6163
|
+
const { newPwd: D, confirmNewPwd: S } = M;
|
|
6164
6164
|
return await e.post("/setWithdrawPassword", {
|
|
6165
6165
|
newPassword: Pa(D),
|
|
6166
|
-
confirmPassword: Pa(
|
|
6166
|
+
confirmPassword: Pa(S)
|
|
6167
6167
|
});
|
|
6168
6168
|
},
|
|
6169
6169
|
[e]
|
|
6170
|
-
),
|
|
6170
|
+
), _ = z(
|
|
6171
6171
|
async (M) => {
|
|
6172
|
-
const { oldPwd: D, newPwd:
|
|
6172
|
+
const { oldPwd: D, newPwd: S } = M;
|
|
6173
6173
|
return await e.post("/withdrawPasswordReset", {
|
|
6174
6174
|
old_pwd: Pa(D),
|
|
6175
|
-
new_pwd: Pa(
|
|
6175
|
+
new_pwd: Pa(S)
|
|
6176
6176
|
});
|
|
6177
6177
|
},
|
|
6178
6178
|
[e]
|
|
6179
|
-
),
|
|
6179
|
+
), c = z(
|
|
6180
6180
|
async (M) => {
|
|
6181
|
-
const { mobile: D, verification_code:
|
|
6181
|
+
const { mobile: D, verification_code: S } = M;
|
|
6182
6182
|
return await e.post("/withdrawPasswordRenew", {
|
|
6183
6183
|
mobile: D,
|
|
6184
|
-
verification_code:
|
|
6184
|
+
verification_code: S
|
|
6185
6185
|
});
|
|
6186
6186
|
},
|
|
6187
6187
|
[e]
|
|
6188
6188
|
), y = z(
|
|
6189
6189
|
async ({ paramsData: M }) => {
|
|
6190
|
-
const { start_time: D, end_time:
|
|
6190
|
+
const { start_time: D, end_time: S, limit: L = 25 } = M || {};
|
|
6191
6191
|
return await e.get("/report/totalprofit", {
|
|
6192
6192
|
params: {
|
|
6193
|
-
start_time: `${
|
|
6194
|
-
end_time: `${
|
|
6193
|
+
start_time: `${Ee(D).format("YYYY-MM-DD")} 12:00:00`,
|
|
6194
|
+
end_time: `${Ee(S).format("YYYY-MM-DD")} 11:59:59`,
|
|
6195
6195
|
limit: L
|
|
6196
6196
|
}
|
|
6197
6197
|
});
|
|
6198
6198
|
},
|
|
6199
6199
|
[e]
|
|
6200
|
-
),
|
|
6200
|
+
), f = z(
|
|
6201
6201
|
async (M) => {
|
|
6202
6202
|
const { platform: D } = M;
|
|
6203
6203
|
return await e.post("/member/all-in-la", {
|
|
@@ -6207,10 +6207,10 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6207
6207
|
[e]
|
|
6208
6208
|
), U = z(async () => await e.get("/member/checkRestrictedWagering"), [e]), C = z(
|
|
6209
6209
|
async (M) => {
|
|
6210
|
-
const { memId: D, point:
|
|
6210
|
+
const { memId: D, point: S, currency: L, password: N } = M;
|
|
6211
6211
|
return await e.post("/pointsTransaction", {
|
|
6212
6212
|
to_memId: D,
|
|
6213
|
-
point:
|
|
6213
|
+
point: S,
|
|
6214
6214
|
currency: L,
|
|
6215
6215
|
password: Pa(N)
|
|
6216
6216
|
});
|
|
@@ -6220,7 +6220,7 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6220
6220
|
async ({ formData: M }) => {
|
|
6221
6221
|
const {
|
|
6222
6222
|
bank_name: D,
|
|
6223
|
-
bank_account_name:
|
|
6223
|
+
bank_account_name: S,
|
|
6224
6224
|
bank_branch_name: L,
|
|
6225
6225
|
bank_account: N,
|
|
6226
6226
|
bank_card_number: Z,
|
|
@@ -6230,7 +6230,7 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6230
6230
|
return await n.post("/bindBankAccount", M);
|
|
6231
6231
|
},
|
|
6232
6232
|
[n]
|
|
6233
|
-
),
|
|
6233
|
+
), x = z(
|
|
6234
6234
|
async (M) => {
|
|
6235
6235
|
const { point_transfer: D } = M;
|
|
6236
6236
|
return await e.post("/cash-register/clear", {
|
|
@@ -6240,10 +6240,10 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6240
6240
|
[e]
|
|
6241
6241
|
), E = z(
|
|
6242
6242
|
async (M) => {
|
|
6243
|
-
const { trans_code: D, line_id:
|
|
6243
|
+
const { trans_code: D, line_id: S, invite: L, line_name: N } = M;
|
|
6244
6244
|
return await e.post("/goLine", {
|
|
6245
6245
|
trans_code: D,
|
|
6246
|
-
line_id:
|
|
6246
|
+
line_id: S,
|
|
6247
6247
|
invite: L,
|
|
6248
6248
|
line_name: N
|
|
6249
6249
|
});
|
|
@@ -6251,10 +6251,10 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6251
6251
|
[e]
|
|
6252
6252
|
), G = z(
|
|
6253
6253
|
async (M) => {
|
|
6254
|
-
const { trans_code: D, line_id:
|
|
6254
|
+
const { trans_code: D, line_id: S, line_name: L } = M;
|
|
6255
6255
|
return await e.post("/login/line", {
|
|
6256
6256
|
trans_code: D,
|
|
6257
|
-
line_id:
|
|
6257
|
+
line_id: S,
|
|
6258
6258
|
line_name: L
|
|
6259
6259
|
});
|
|
6260
6260
|
},
|
|
@@ -6267,9 +6267,9 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6267
6267
|
[e]
|
|
6268
6268
|
), k = z(
|
|
6269
6269
|
async (M) => {
|
|
6270
|
-
const { member_info_uid: D, point:
|
|
6270
|
+
const { member_info_uid: D, point: S, currency: L, withdraw_password: N } = M;
|
|
6271
6271
|
return await e.post(`/member/transfer/${D}`, {
|
|
6272
|
-
point:
|
|
6272
|
+
point: S,
|
|
6273
6273
|
currency: L,
|
|
6274
6274
|
withdraw_password: N
|
|
6275
6275
|
});
|
|
@@ -6277,29 +6277,29 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6277
6277
|
[e]
|
|
6278
6278
|
), h = z(
|
|
6279
6279
|
async (M) => {
|
|
6280
|
-
const { mobile: D, verifyCode:
|
|
6280
|
+
const { mobile: D, verifyCode: S } = M;
|
|
6281
6281
|
return await e.post("/sms/verifyValidationCode", {
|
|
6282
6282
|
mobile: D,
|
|
6283
|
-
inputCode:
|
|
6283
|
+
inputCode: S
|
|
6284
6284
|
});
|
|
6285
6285
|
},
|
|
6286
6286
|
[e]
|
|
6287
6287
|
), F = z(
|
|
6288
6288
|
async (M) => {
|
|
6289
|
-
const { mobile: D, verifyCode:
|
|
6289
|
+
const { mobile: D, verifyCode: S, snCode: L } = M;
|
|
6290
6290
|
return await e.post("/goMobile", {
|
|
6291
6291
|
mobile: D,
|
|
6292
|
-
verification_code:
|
|
6292
|
+
verification_code: S,
|
|
6293
6293
|
sn_code: L
|
|
6294
6294
|
});
|
|
6295
6295
|
},
|
|
6296
6296
|
[e]
|
|
6297
6297
|
), A = z(
|
|
6298
6298
|
async (M) => {
|
|
6299
|
-
const { mobile: D, verifyCode:
|
|
6299
|
+
const { mobile: D, verifyCode: S, invite: L } = M;
|
|
6300
6300
|
return await e.post("/goMobileByInvite", {
|
|
6301
6301
|
mobile: D,
|
|
6302
|
-
verification_code:
|
|
6302
|
+
verification_code: S,
|
|
6303
6303
|
invite: L
|
|
6304
6304
|
});
|
|
6305
6305
|
},
|
|
@@ -6316,10 +6316,10 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6316
6316
|
[e]
|
|
6317
6317
|
), R = z(
|
|
6318
6318
|
async (M) => {
|
|
6319
|
-
const { bindType: D, bindId:
|
|
6319
|
+
const { bindType: D, bindId: S } = M;
|
|
6320
6320
|
return await e.post("/member/bindThirdPartyAccount", {
|
|
6321
6321
|
bind_type: D,
|
|
6322
|
-
bind_id:
|
|
6322
|
+
bind_id: S
|
|
6323
6323
|
});
|
|
6324
6324
|
},
|
|
6325
6325
|
[e]
|
|
@@ -6349,13 +6349,13 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6349
6349
|
updateUserInfoApi: s,
|
|
6350
6350
|
resetUserPasswordApi: u,
|
|
6351
6351
|
setUserTransactionPasswordApi: m,
|
|
6352
|
-
resetUserTransactionPasswordApi:
|
|
6352
|
+
resetUserTransactionPasswordApi: _,
|
|
6353
6353
|
userRebateApi: y,
|
|
6354
6354
|
userBindBankApi: v,
|
|
6355
|
-
transferInGameApi:
|
|
6355
|
+
transferInGameApi: f,
|
|
6356
6356
|
checkUserWagerApi: U,
|
|
6357
6357
|
pointTransferApi: C,
|
|
6358
|
-
abandonPointsApi:
|
|
6358
|
+
abandonPointsApi: x,
|
|
6359
6359
|
lineLoginApi: E,
|
|
6360
6360
|
lineLogin2Api: G,
|
|
6361
6361
|
getMachineLoginCodeApi: O,
|
|
@@ -6365,7 +6365,7 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6365
6365
|
mobileLoginApiV2: F,
|
|
6366
6366
|
bindAccountApi: R,
|
|
6367
6367
|
mobileRegisterApi: A,
|
|
6368
|
-
verifyResetActionApi:
|
|
6368
|
+
verifyResetActionApi: c,
|
|
6369
6369
|
getJackpotApi: P,
|
|
6370
6370
|
getBetRankingApi: H,
|
|
6371
6371
|
getUserAvatarListApi: B,
|
|
@@ -6407,19 +6407,19 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6407
6407
|
userFavoriteGameApi: t,
|
|
6408
6408
|
userGameListApi: r,
|
|
6409
6409
|
userCurrencyExchangeApi: p
|
|
6410
|
-
} = oe(), g =
|
|
6410
|
+
} = oe(), g = $({
|
|
6411
6411
|
queryKey: ["getMemInfo"],
|
|
6412
6412
|
queryFn: async () => n(),
|
|
6413
6413
|
enabled: e
|
|
6414
|
-
}), b =
|
|
6414
|
+
}), b = $({
|
|
6415
6415
|
queryKey: ["getFavoriteGame"],
|
|
6416
6416
|
queryFn: async () => t(),
|
|
6417
6417
|
enabled: e && g.isSuccess
|
|
6418
|
-
}), d =
|
|
6418
|
+
}), d = $({
|
|
6419
6419
|
queryKey: ["getUserGameList"],
|
|
6420
6420
|
queryFn: async () => r(),
|
|
6421
6421
|
enabled: e && g.isSuccess && b.isSuccess
|
|
6422
|
-
}), l =
|
|
6422
|
+
}), l = $({
|
|
6423
6423
|
queryKey: ["getUserCurrencyExchange"],
|
|
6424
6424
|
queryFn: async () => p(),
|
|
6425
6425
|
enabled: e && g.isSuccess && b.isSuccess && d.isSuccess
|
|
@@ -6459,8 +6459,8 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6459
6459
|
), p = z(
|
|
6460
6460
|
async (b) => {
|
|
6461
6461
|
const {
|
|
6462
|
-
startDate: d =
|
|
6463
|
-
endDate: l =
|
|
6462
|
+
startDate: d = Ee().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6463
|
+
endDate: l = Ee().format("YYYY-MM-DD 11:59:59"),
|
|
6464
6464
|
platform: a = "",
|
|
6465
6465
|
limit: i = 25
|
|
6466
6466
|
} = b, { data: o } = await e.get("/report/netprofit", {
|
|
@@ -6477,8 +6477,8 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6477
6477
|
), g = z(
|
|
6478
6478
|
async (b) => {
|
|
6479
6479
|
const {
|
|
6480
|
-
startDate: d =
|
|
6481
|
-
endDate: l =
|
|
6480
|
+
startDate: d = Ee().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6481
|
+
endDate: l = Ee().format("YYYY-MM-DD 11:59:59"),
|
|
6482
6482
|
platform: a,
|
|
6483
6483
|
limit: i = 25,
|
|
6484
6484
|
page: o = 1
|
|
@@ -6498,7 +6498,7 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6498
6498
|
return { playGameApi: r, betRecordApi: p, betRecordDetailApi: g };
|
|
6499
6499
|
}, bo = ({ options: e, formData: n } = {}) => {
|
|
6500
6500
|
const { betRecordApi: t } = Ci();
|
|
6501
|
-
return
|
|
6501
|
+
return $({
|
|
6502
6502
|
queryKey: ["getBetRecord"],
|
|
6503
6503
|
queryFn: async () => await t(n),
|
|
6504
6504
|
select: (r) => In(r).map(([g, b]) => ({
|
|
@@ -6509,7 +6509,7 @@ const Ca = /* @__PURE__ */ yi(qt), Pa = (e) => {
|
|
|
6509
6509
|
});
|
|
6510
6510
|
}, Co = ({ options: e, formData: n } = {}) => {
|
|
6511
6511
|
const { betRecordDetailApi: t } = Ci();
|
|
6512
|
-
return
|
|
6512
|
+
return $({
|
|
6513
6513
|
queryKey: ["getBetRecordDetail"],
|
|
6514
6514
|
queryFn: async () => await t(n),
|
|
6515
6515
|
...e
|
|
@@ -6682,19 +6682,19 @@ function ir() {
|
|
|
6682
6682
|
}).current : r.current;
|
|
6683
6683
|
}
|
|
6684
6684
|
function t(r, p, g) {
|
|
6685
|
-
var b = g || {}, d = b.interval, l = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, a = b.timeout, i = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message, s = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, u = Math.max(100, l / 10), m = Date.now(),
|
|
6686
|
-
var
|
|
6687
|
-
if (y + i <=
|
|
6688
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(
|
|
6689
|
-
else if (y + l <=
|
|
6685
|
+
var b = g || {}, d = b.interval, l = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, a = b.timeout, i = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message, s = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, u = Math.max(100, l / 10), m = Date.now(), _ = setInterval(function() {
|
|
6686
|
+
var c = Date.now(), y = n(p);
|
|
6687
|
+
if (y + i <= c)
|
|
6688
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(c - y, "ms ago, last ping sent ").concat(c - m, "ms ago")), r.close();
|
|
6689
|
+
else if (y + l <= c && m + l <= c)
|
|
6690
6690
|
try {
|
|
6691
|
-
typeof s == "function" ? r.send(s()) : r.send(s), m =
|
|
6692
|
-
} catch (
|
|
6693
|
-
console.error("Heartbeat failed, closing connection",
|
|
6691
|
+
typeof s == "function" ? r.send(s()) : r.send(s), m = c;
|
|
6692
|
+
} catch (f) {
|
|
6693
|
+
console.error("Heartbeat failed, closing connection", f instanceof Error ? f.message : f), r.close();
|
|
6694
6694
|
}
|
|
6695
6695
|
}, u);
|
|
6696
6696
|
return r.addEventListener("close", function() {
|
|
6697
|
-
clearInterval(
|
|
6697
|
+
clearInterval(_);
|
|
6698
6698
|
}), function() {
|
|
6699
6699
|
};
|
|
6700
6700
|
}
|
|
@@ -6761,14 +6761,14 @@ function ho() {
|
|
|
6761
6761
|
Object.defineProperty(va, "__esModule", { value: !0 }), va.attachListeners = void 0;
|
|
6762
6762
|
var n = hi(), t = ir(), r = la(), p = ki(), g = function(i, o, s, u) {
|
|
6763
6763
|
i.onmessage = function(m) {
|
|
6764
|
-
var
|
|
6765
|
-
o.current.onMessage && o.current.onMessage(m), typeof u?.current == "number" && (u.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(m) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((
|
|
6764
|
+
var _;
|
|
6765
|
+
o.current.onMessage && o.current.onMessage(m), typeof u?.current == "number" && (u.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(m) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((_ = o.current.heartbeat) === null || _ === void 0 ? void 0 : _.returnMessage) === m.data || s(m));
|
|
6766
6766
|
};
|
|
6767
6767
|
}, b = function(i, o, s, u, m) {
|
|
6768
|
-
i.onopen = function(
|
|
6769
|
-
if (o.current.onOpen && o.current.onOpen(
|
|
6770
|
-
var
|
|
6771
|
-
m.current = Date.now(), (0, t.heartbeat)(i, m,
|
|
6768
|
+
i.onopen = function(_) {
|
|
6769
|
+
if (o.current.onOpen && o.current.onOpen(_), u.current = 0, s(r.ReadyState.OPEN), o.current.heartbeat && i instanceof WebSocket) {
|
|
6770
|
+
var c = typeof o.current.heartbeat == "boolean" ? void 0 : o.current.heartbeat;
|
|
6771
|
+
m.current = Date.now(), (0, t.heartbeat)(i, m, c);
|
|
6772
6772
|
}
|
|
6773
6773
|
};
|
|
6774
6774
|
}, d = function(i, o, s, u, m) {
|
|
@@ -6776,41 +6776,41 @@ function ho() {
|
|
|
6776
6776
|
return function() {
|
|
6777
6777
|
};
|
|
6778
6778
|
(0, p.assertIsWebSocket)(i, o.current.skipAssert);
|
|
6779
|
-
var
|
|
6780
|
-
return i.onclose = function(
|
|
6779
|
+
var _;
|
|
6780
|
+
return i.onclose = function(c) {
|
|
6781
6781
|
var y;
|
|
6782
|
-
if (o.current.onClose && o.current.onClose(
|
|
6783
|
-
var
|
|
6784
|
-
if (m.current <
|
|
6782
|
+
if (o.current.onClose && o.current.onClose(c), s(r.ReadyState.CLOSED), o.current.shouldReconnect && o.current.shouldReconnect(c)) {
|
|
6783
|
+
var f = (y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : r.DEFAULT_RECONNECT_LIMIT;
|
|
6784
|
+
if (m.current < f) {
|
|
6785
6785
|
var U = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6786
|
-
|
|
6786
|
+
_ = window.setTimeout(function() {
|
|
6787
6787
|
m.current++, u();
|
|
6788
6788
|
}, U ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6789
6789
|
} else
|
|
6790
|
-
o.current.onReconnectStop && o.current.onReconnectStop(
|
|
6790
|
+
o.current.onReconnectStop && o.current.onReconnectStop(f), console.warn("Max reconnect attempts of ".concat(f, " exceeded"));
|
|
6791
6791
|
}
|
|
6792
6792
|
}, function() {
|
|
6793
|
-
return
|
|
6793
|
+
return _ && window.clearTimeout(_);
|
|
6794
6794
|
};
|
|
6795
6795
|
}, l = function(i, o, s, u, m) {
|
|
6796
|
-
var
|
|
6797
|
-
return i.onerror = function(
|
|
6796
|
+
var _;
|
|
6797
|
+
return i.onerror = function(c) {
|
|
6798
6798
|
var y;
|
|
6799
|
-
if (o.current.onError && o.current.onError(
|
|
6799
|
+
if (o.current.onError && o.current.onError(c), r.isEventSourceSupported && i instanceof EventSource && (o.current.onClose && o.current.onClose(e(e({}, c), { code: 1006, reason: "An error occurred with the EventSource: ".concat(c), wasClean: !1 })), s(r.ReadyState.CLOSED), i.close()), o.current.retryOnError)
|
|
6800
6800
|
if (m.current < ((y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : r.DEFAULT_RECONNECT_LIMIT)) {
|
|
6801
|
-
var
|
|
6802
|
-
|
|
6801
|
+
var f = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6802
|
+
_ = window.setTimeout(function() {
|
|
6803
6803
|
m.current++, u();
|
|
6804
|
-
},
|
|
6804
|
+
}, f ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6805
6805
|
} else
|
|
6806
6806
|
o.current.onReconnectStop && o.current.onReconnectStop(o.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(o.current.reconnectAttempts, " exceeded"));
|
|
6807
6807
|
}, function() {
|
|
6808
|
-
return
|
|
6808
|
+
return _ && window.clearTimeout(_);
|
|
6809
6809
|
};
|
|
6810
|
-
}, a = function(i, o, s, u, m,
|
|
6811
|
-
var y = o.setLastMessage,
|
|
6812
|
-
return s.current.fromSocketIO && (U = (0, n.setUpSocketIOPing)(
|
|
6813
|
-
|
|
6810
|
+
}, a = function(i, o, s, u, m, _, c) {
|
|
6811
|
+
var y = o.setLastMessage, f = o.setReadyState, U, C, v;
|
|
6812
|
+
return s.current.fromSocketIO && (U = (0, n.setUpSocketIOPing)(c)), g(i, s, y, _), b(i, s, f, m, _), C = d(i, s, f, u, m), v = l(i, s, f, u, m), function() {
|
|
6813
|
+
f(r.ReadyState.CLOSING), C(), v(), i.close(), U && clearInterval(U);
|
|
6814
6814
|
};
|
|
6815
6815
|
};
|
|
6816
6816
|
return va.attachListeners = a, va;
|
|
@@ -6823,7 +6823,7 @@ function To() {
|
|
|
6823
6823
|
return e = Object.assign || function(o) {
|
|
6824
6824
|
for (var s, u = 1, m = arguments.length; u < m; u++) {
|
|
6825
6825
|
s = arguments[u];
|
|
6826
|
-
for (var
|
|
6826
|
+
for (var _ in s) Object.prototype.hasOwnProperty.call(s, _) && (o[_] = s[_]);
|
|
6827
6827
|
}
|
|
6828
6828
|
return o;
|
|
6829
6829
|
}, e.apply(this, arguments);
|
|
@@ -6831,18 +6831,18 @@ function To() {
|
|
|
6831
6831
|
Object.defineProperty(ha, "__esModule", { value: !0 }), ha.attachSharedListeners = void 0;
|
|
6832
6832
|
var n = vi(), t = la(), r = Ti(), p = hi(), g = ir(), b = function(o, s, u) {
|
|
6833
6833
|
o.onmessage = function(m) {
|
|
6834
|
-
(0, r.getSubscribers)(s).forEach(function(
|
|
6835
|
-
var
|
|
6836
|
-
|
|
6834
|
+
(0, r.getSubscribers)(s).forEach(function(_) {
|
|
6835
|
+
var c;
|
|
6836
|
+
_.optionsRef.current.onMessage && _.optionsRef.current.onMessage(m), typeof ((c = _?.lastMessageTime) === null || c === void 0 ? void 0 : c.current) == "number" && (_.lastMessageTime.current = Date.now()), !(typeof _.optionsRef.current.filter == "function" && _.optionsRef.current.filter(m) !== !0) && (u && typeof u != "boolean" && u?.returnMessage === m.data || _.setLastMessage(m));
|
|
6837
6837
|
});
|
|
6838
6838
|
};
|
|
6839
6839
|
}, d = function(o, s, u) {
|
|
6840
6840
|
o.onopen = function(m) {
|
|
6841
|
-
var
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
}), u && o instanceof WebSocket && (0, g.heartbeat)(o,
|
|
6845
|
-
return
|
|
6841
|
+
var _ = (0, r.getSubscribers)(s);
|
|
6842
|
+
_.forEach(function(c) {
|
|
6843
|
+
c.reconnectCount.current = 0, c.optionsRef.current.onOpen && c.optionsRef.current.onOpen(m), c.setReadyState(t.ReadyState.OPEN), u && o instanceof WebSocket && (c.lastMessageTime.current = Date.now());
|
|
6844
|
+
}), u && o instanceof WebSocket && (0, g.heartbeat)(o, _.map(function(c) {
|
|
6845
|
+
return c.lastMessageTime;
|
|
6846
6846
|
}), typeof u == "boolean" ? void 0 : u);
|
|
6847
6847
|
};
|
|
6848
6848
|
}, l = function(o, s) {
|
|
@@ -6850,16 +6850,16 @@ function To() {
|
|
|
6850
6850
|
(0, r.getSubscribers)(s).forEach(function(m) {
|
|
6851
6851
|
m.optionsRef.current.onClose && m.optionsRef.current.onClose(u), m.setReadyState(t.ReadyState.CLOSED);
|
|
6852
6852
|
}), delete n.sharedWebSockets[s], (0, r.getSubscribers)(s).forEach(function(m) {
|
|
6853
|
-
var
|
|
6853
|
+
var _;
|
|
6854
6854
|
if (m.optionsRef.current.shouldReconnect && m.optionsRef.current.shouldReconnect(u)) {
|
|
6855
|
-
var
|
|
6856
|
-
if (m.reconnectCount.current <
|
|
6855
|
+
var c = (_ = m.optionsRef.current.reconnectAttempts) !== null && _ !== void 0 ? _ : t.DEFAULT_RECONNECT_LIMIT;
|
|
6856
|
+
if (m.reconnectCount.current < c) {
|
|
6857
6857
|
var y = typeof m.optionsRef.current.reconnectInterval == "function" ? m.optionsRef.current.reconnectInterval(m.reconnectCount.current) : m.optionsRef.current.reconnectInterval;
|
|
6858
6858
|
setTimeout(function() {
|
|
6859
6859
|
m.reconnectCount.current++, m.reconnect.current();
|
|
6860
6860
|
}, y ?? t.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6861
6861
|
} else
|
|
6862
|
-
m.optionsRef.current.onReconnectStop && m.optionsRef.current.onReconnectStop(m.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(
|
|
6862
|
+
m.optionsRef.current.onReconnectStop && m.optionsRef.current.onReconnectStop(m.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(c, " exceeded"));
|
|
6863
6863
|
}
|
|
6864
6864
|
});
|
|
6865
6865
|
});
|
|
@@ -6870,9 +6870,9 @@ function To() {
|
|
|
6870
6870
|
}), t.isEventSourceSupported && o instanceof EventSource && o.close();
|
|
6871
6871
|
};
|
|
6872
6872
|
}, i = function(o, s, u, m) {
|
|
6873
|
-
var
|
|
6874
|
-
return u.current.fromSocketIO && (
|
|
6875
|
-
|
|
6873
|
+
var _;
|
|
6874
|
+
return u.current.fromSocketIO && (_ = (0, p.setUpSocketIOPing)(m)), b(o, s, u.current.heartbeat), l(o, s), d(o, s, u.current.heartbeat), a(o, s), function() {
|
|
6875
|
+
_ && clearInterval(_);
|
|
6876
6876
|
};
|
|
6877
6877
|
};
|
|
6878
6878
|
return ha.attachSharedListeners = i, ha;
|
|
@@ -6894,12 +6894,12 @@ function ko() {
|
|
|
6894
6894
|
o && o(), delete e.sharedWebSockets[d];
|
|
6895
6895
|
}
|
|
6896
6896
|
};
|
|
6897
|
-
}, b = function(d, l, a, i, o, s, u, m,
|
|
6897
|
+
}, b = function(d, l, a, i, o, s, u, m, _) {
|
|
6898
6898
|
if (!n.isEventSourceSupported && i.current.eventSourceOptions)
|
|
6899
6899
|
throw n.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6900
6900
|
if (i.current.share) {
|
|
6901
|
-
var
|
|
6902
|
-
e.sharedWebSockets[l] === void 0 ? (e.sharedWebSockets[l] = i.current.eventSourceOptions ? new EventSource(l, i.current.eventSourceOptions) : new WebSocket(l, i.current.protocols), d.current = e.sharedWebSockets[l], a(n.ReadyState.CONNECTING),
|
|
6901
|
+
var c = null;
|
|
6902
|
+
e.sharedWebSockets[l] === void 0 ? (e.sharedWebSockets[l] = i.current.eventSourceOptions ? new EventSource(l, i.current.eventSourceOptions) : new WebSocket(l, i.current.protocols), d.current = e.sharedWebSockets[l], a(n.ReadyState.CONNECTING), c = (0, r.attachSharedListeners)(e.sharedWebSockets[l], l, i, _)) : (d.current = e.sharedWebSockets[l], a(e.sharedWebSockets[l].readyState));
|
|
6903
6903
|
var y = {
|
|
6904
6904
|
setLastMessage: o,
|
|
6905
6905
|
setReadyState: a,
|
|
@@ -6908,14 +6908,14 @@ function ko() {
|
|
|
6908
6908
|
lastMessageTime: m,
|
|
6909
6909
|
reconnect: s
|
|
6910
6910
|
};
|
|
6911
|
-
return (0, p.addSubscriber)(l, y), g(l, y, i, a,
|
|
6911
|
+
return (0, p.addSubscriber)(l, y), g(l, y, i, a, c);
|
|
6912
6912
|
} else {
|
|
6913
6913
|
if (d.current = i.current.eventSourceOptions ? new EventSource(l, i.current.eventSourceOptions) : new WebSocket(l, i.current.protocols), a(n.ReadyState.CONNECTING), !d.current)
|
|
6914
6914
|
throw new Error("WebSocket failed to be created");
|
|
6915
6915
|
return (0, t.attachListeners)(d.current, {
|
|
6916
6916
|
setLastMessage: o,
|
|
6917
6917
|
setReadyState: a
|
|
6918
|
-
}, i, s.current, u, m,
|
|
6918
|
+
}, i, s.current, u, m, _);
|
|
6919
6919
|
}
|
|
6920
6920
|
};
|
|
6921
6921
|
return Qa.createOrJoinSocket = b, Qa;
|
|
@@ -6930,22 +6930,22 @@ function xo() {
|
|
|
6930
6930
|
});
|
|
6931
6931
|
}
|
|
6932
6932
|
return new (i || (i = Promise))(function(u, m) {
|
|
6933
|
-
function
|
|
6933
|
+
function _(f) {
|
|
6934
6934
|
try {
|
|
6935
|
-
y(o.next(
|
|
6935
|
+
y(o.next(f));
|
|
6936
6936
|
} catch (U) {
|
|
6937
6937
|
m(U);
|
|
6938
6938
|
}
|
|
6939
6939
|
}
|
|
6940
|
-
function f
|
|
6940
|
+
function c(f) {
|
|
6941
6941
|
try {
|
|
6942
|
-
y(o.throw(
|
|
6942
|
+
y(o.throw(f));
|
|
6943
6943
|
} catch (U) {
|
|
6944
6944
|
m(U);
|
|
6945
6945
|
}
|
|
6946
6946
|
}
|
|
6947
|
-
function y(
|
|
6948
|
-
|
|
6947
|
+
function y(f) {
|
|
6948
|
+
f.done ? u(f.value) : s(f.value).then(_, c);
|
|
6949
6949
|
}
|
|
6950
6950
|
y((o = o.apply(l, a || [])).next());
|
|
6951
6951
|
});
|
|
@@ -6954,15 +6954,15 @@ function xo() {
|
|
|
6954
6954
|
if (u[0] & 1) throw u[1];
|
|
6955
6955
|
return u[1];
|
|
6956
6956
|
}, trys: [], ops: [] }, o, s, u, m = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
6957
|
-
return m.next =
|
|
6957
|
+
return m.next = _(0), m.throw = _(1), m.return = _(2), typeof Symbol == "function" && (m[Symbol.iterator] = function() {
|
|
6958
6958
|
return this;
|
|
6959
6959
|
}), m;
|
|
6960
|
-
function
|
|
6961
|
-
return function(
|
|
6962
|
-
return
|
|
6960
|
+
function _(y) {
|
|
6961
|
+
return function(f) {
|
|
6962
|
+
return c([y, f]);
|
|
6963
6963
|
};
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function c(y) {
|
|
6966
6966
|
if (o) throw new TypeError("Generator is already executing.");
|
|
6967
6967
|
for (; m && (m = 0, y[0] && (i = 0)), i; ) try {
|
|
6968
6968
|
if (o = 1, s && (u = y[0] & 2 ? s.return : y[0] ? s.throw || ((u = s.return) && u.call(s), 0) : s.next) && !(u = u.call(s, y[1])).done) return u;
|
|
@@ -7000,8 +7000,8 @@ function xo() {
|
|
|
7000
7000
|
continue;
|
|
7001
7001
|
}
|
|
7002
7002
|
y = a.call(l, i);
|
|
7003
|
-
} catch (
|
|
7004
|
-
y = [6,
|
|
7003
|
+
} catch (f) {
|
|
7004
|
+
y = [6, f], s = 0;
|
|
7005
7005
|
} finally {
|
|
7006
7006
|
o = u = 0;
|
|
7007
7007
|
}
|
|
@@ -7022,7 +7022,7 @@ function xo() {
|
|
|
7022
7022
|
for (var i = [], o = 2; o < arguments.length; o++)
|
|
7023
7023
|
i[o - 2] = arguments[o];
|
|
7024
7024
|
return n(void 0, r([l, a], i, !0), void 0, function(s, u, m) {
|
|
7025
|
-
var
|
|
7025
|
+
var _, c, y, f, U, C, v, x;
|
|
7026
7026
|
return m === void 0 && (m = 0), t(this, function(E) {
|
|
7027
7027
|
switch (E.label) {
|
|
7028
7028
|
case 0:
|
|
@@ -7031,13 +7031,13 @@ function xo() {
|
|
|
7031
7031
|
case 1:
|
|
7032
7032
|
return E.trys.push([1, 3, , 9]), [4, s()];
|
|
7033
7033
|
case 2:
|
|
7034
|
-
return
|
|
7034
|
+
return _ = E.sent(), [3, 9];
|
|
7035
7035
|
case 3:
|
|
7036
|
-
return E.sent(), u.current.retryOnError ? (
|
|
7036
|
+
return E.sent(), u.current.retryOnError ? (c = (C = u.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < c ? (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];
|
|
7037
7037
|
case 4:
|
|
7038
7038
|
return E.sent(), [2, (0, e.getUrl)(s, u, m + 1)];
|
|
7039
7039
|
case 5:
|
|
7040
|
-
return (
|
|
7040
|
+
return (x = (v = u.current).onReconnectStop) === null || x === void 0 || x.call(v, m), [2, null];
|
|
7041
7041
|
case 6:
|
|
7042
7042
|
return [3, 8];
|
|
7043
7043
|
case 7:
|
|
@@ -7047,9 +7047,9 @@ function xo() {
|
|
|
7047
7047
|
case 9:
|
|
7048
7048
|
return [3, 11];
|
|
7049
7049
|
case 10:
|
|
7050
|
-
|
|
7050
|
+
_ = s, E.label = 11;
|
|
7051
7051
|
case 11:
|
|
7052
|
-
return
|
|
7052
|
+
return f = u.current.fromSocketIO ? (0, p.parseSocketIOUrl)(_) : _, U = u.current.queryParams ? (0, p.appendQueryParams)(f, u.current.queryParams) : f, [2, U];
|
|
7053
7053
|
}
|
|
7054
7054
|
});
|
|
7055
7055
|
});
|
|
@@ -7082,56 +7082,56 @@ function xi() {
|
|
|
7082
7082
|
Nn = 1;
|
|
7083
7083
|
var e = Ze && Ze.__assign || function() {
|
|
7084
7084
|
return e = Object.assign || function(s) {
|
|
7085
|
-
for (var u, m = 1,
|
|
7085
|
+
for (var u, m = 1, _ = arguments.length; m < _; m++) {
|
|
7086
7086
|
u = arguments[m];
|
|
7087
|
-
for (var
|
|
7087
|
+
for (var c in u) Object.prototype.hasOwnProperty.call(u, c) && (s[c] = u[c]);
|
|
7088
7088
|
}
|
|
7089
7089
|
return s;
|
|
7090
7090
|
}, e.apply(this, arguments);
|
|
7091
|
-
}, n = Ze && Ze.__awaiter || function(s, u, m,
|
|
7092
|
-
function
|
|
7093
|
-
return y instanceof m ? y : new m(function(
|
|
7094
|
-
|
|
7091
|
+
}, n = Ze && Ze.__awaiter || function(s, u, m, _) {
|
|
7092
|
+
function c(y) {
|
|
7093
|
+
return y instanceof m ? y : new m(function(f) {
|
|
7094
|
+
f(y);
|
|
7095
7095
|
});
|
|
7096
7096
|
}
|
|
7097
|
-
return new (m || (m = Promise))(function(y,
|
|
7098
|
-
function U(
|
|
7097
|
+
return new (m || (m = Promise))(function(y, f) {
|
|
7098
|
+
function U(x) {
|
|
7099
7099
|
try {
|
|
7100
|
-
v(
|
|
7100
|
+
v(_.next(x));
|
|
7101
7101
|
} catch (E) {
|
|
7102
|
-
|
|
7102
|
+
f(E);
|
|
7103
7103
|
}
|
|
7104
7104
|
}
|
|
7105
|
-
function C(
|
|
7105
|
+
function C(x) {
|
|
7106
7106
|
try {
|
|
7107
|
-
v(
|
|
7107
|
+
v(_.throw(x));
|
|
7108
7108
|
} catch (E) {
|
|
7109
|
-
|
|
7109
|
+
f(E);
|
|
7110
7110
|
}
|
|
7111
7111
|
}
|
|
7112
|
-
function v(
|
|
7113
|
-
|
|
7112
|
+
function v(x) {
|
|
7113
|
+
x.done ? y(x.value) : c(x.value).then(U, C);
|
|
7114
7114
|
}
|
|
7115
|
-
v((
|
|
7115
|
+
v((_ = _.apply(s, u || [])).next());
|
|
7116
7116
|
});
|
|
7117
7117
|
}, t = Ze && Ze.__generator || function(s, u) {
|
|
7118
7118
|
var m = { label: 0, sent: function() {
|
|
7119
7119
|
if (y[0] & 1) throw y[1];
|
|
7120
7120
|
return y[1];
|
|
7121
|
-
}, trys: [], ops: [] },
|
|
7122
|
-
return
|
|
7121
|
+
}, trys: [], ops: [] }, _, c, y, f = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
7122
|
+
return f.next = U(0), f.throw = U(1), f.return = U(2), typeof Symbol == "function" && (f[Symbol.iterator] = function() {
|
|
7123
7123
|
return this;
|
|
7124
|
-
}),
|
|
7124
|
+
}), f;
|
|
7125
7125
|
function U(v) {
|
|
7126
|
-
return function(
|
|
7127
|
-
return C([v,
|
|
7126
|
+
return function(x) {
|
|
7127
|
+
return C([v, x]);
|
|
7128
7128
|
};
|
|
7129
7129
|
}
|
|
7130
7130
|
function C(v) {
|
|
7131
|
-
if (
|
|
7132
|
-
for (;
|
|
7133
|
-
if (
|
|
7134
|
-
switch (
|
|
7131
|
+
if (_) throw new TypeError("Generator is already executing.");
|
|
7132
|
+
for (; f && (f = 0, v[0] && (m = 0)), m; ) try {
|
|
7133
|
+
if (_ = 1, c && (y = v[0] & 2 ? c.return : v[0] ? c.throw || ((y = c.return) && y.call(c), 0) : c.next) && !(y = y.call(c, v[1])).done) return y;
|
|
7134
|
+
switch (c = 0, y && (v = [v[0] & 2, y.value]), v[0]) {
|
|
7135
7135
|
case 0:
|
|
7136
7136
|
case 1:
|
|
7137
7137
|
y = v;
|
|
@@ -7139,7 +7139,7 @@ function xi() {
|
|
|
7139
7139
|
case 4:
|
|
7140
7140
|
return m.label++, { value: v[1], done: !1 };
|
|
7141
7141
|
case 5:
|
|
7142
|
-
m.label++,
|
|
7142
|
+
m.label++, c = v[1], v = [0];
|
|
7143
7143
|
continue;
|
|
7144
7144
|
case 7:
|
|
7145
7145
|
v = m.ops.pop(), m.trys.pop();
|
|
@@ -7165,10 +7165,10 @@ function xi() {
|
|
|
7165
7165
|
continue;
|
|
7166
7166
|
}
|
|
7167
7167
|
v = u.call(s, m);
|
|
7168
|
-
} catch (
|
|
7169
|
-
v = [6,
|
|
7168
|
+
} catch (x) {
|
|
7169
|
+
v = [6, x], c = 0;
|
|
7170
7170
|
} finally {
|
|
7171
|
-
|
|
7171
|
+
_ = y = 0;
|
|
7172
7172
|
}
|
|
7173
7173
|
if (v[0] & 5) throw v[1];
|
|
7174
7174
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
@@ -7179,18 +7179,18 @@ function xi() {
|
|
|
7179
7179
|
Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.useWebSocket = void 0;
|
|
7180
7180
|
var p = de, g = Kr, b = la(), d = ko(), l = xo(), a = r(So()), i = ki(), o = function(s, u, m) {
|
|
7181
7181
|
u === void 0 && (u = b.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7182
|
-
var
|
|
7183
|
-
if (!u.disableJson &&
|
|
7182
|
+
var _ = (0, p.useState)(null), c = _[0], y = _[1], f = (0, p.useState)({}), U = f[0], C = f[1], v = (0, p.useMemo)(function() {
|
|
7183
|
+
if (!u.disableJson && c)
|
|
7184
7184
|
try {
|
|
7185
|
-
return JSON.parse(
|
|
7185
|
+
return JSON.parse(c.data);
|
|
7186
7186
|
} catch {
|
|
7187
7187
|
return b.UNPARSABLE_JSON_OBJECT;
|
|
7188
7188
|
}
|
|
7189
7189
|
return null;
|
|
7190
|
-
}, [
|
|
7190
|
+
}, [c, u.disableJson]), x = (0, p.useRef)(null), E = (0, p.useRef)(null), G = (0, p.useRef)(function() {
|
|
7191
7191
|
}), O = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), h = (0, p.useRef)([]), F = (0, p.useRef)(null), A = (0, p.useRef)(u);
|
|
7192
7192
|
A.current = u;
|
|
7193
|
-
var w =
|
|
7193
|
+
var w = x.current && U[x.current] !== void 0 ? U[x.current] : s !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, R = u.queryParams ? JSON.stringify(u.queryParams) : null, P = (0, p.useCallback)(function(W, M) {
|
|
7194
7194
|
var D;
|
|
7195
7195
|
if (M === void 0 && (M = !0), b.isEventSourceSupported && E.current instanceof EventSource) {
|
|
7196
7196
|
console.warn("Unable to send a message from an eventSource");
|
|
@@ -7204,15 +7204,15 @@ function xi() {
|
|
|
7204
7204
|
}, []);
|
|
7205
7205
|
return (0, p.useEffect)(function() {
|
|
7206
7206
|
if (s !== null && m === !0) {
|
|
7207
|
-
var W, M = !1, D = !0,
|
|
7207
|
+
var W, M = !1, D = !0, S = function() {
|
|
7208
7208
|
return n(void 0, void 0, void 0, function() {
|
|
7209
7209
|
var L, N, Z;
|
|
7210
7210
|
return t(this, function(q) {
|
|
7211
7211
|
switch (q.label) {
|
|
7212
7212
|
case 0:
|
|
7213
|
-
return L =
|
|
7213
|
+
return L = x, [4, (0, l.getUrl)(s, A)];
|
|
7214
7214
|
case 1:
|
|
7215
|
-
return L.current = q.sent(),
|
|
7215
|
+
return L.current = q.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7216
7216
|
return C(function(j) {
|
|
7217
7217
|
return e(e({}, j), { ABORTED: b.ReadyState.CLOSED });
|
|
7218
7218
|
});
|
|
@@ -7227,10 +7227,10 @@ function xi() {
|
|
|
7227
7227
|
M || (0, g.flushSync)(function() {
|
|
7228
7228
|
return C(function(K) {
|
|
7229
7229
|
var ie;
|
|
7230
|
-
return e(e({}, K),
|
|
7230
|
+
return e(e({}, K), x.current && (ie = {}, ie[x.current] = j, ie));
|
|
7231
7231
|
});
|
|
7232
7232
|
});
|
|
7233
|
-
}, D && (W = (0, d.createOrJoinSocket)(E,
|
|
7233
|
+
}, D && (W = (0, d.createOrJoinSocket)(E, x.current, Z, A, N, G, O, k, P)), [
|
|
7234
7234
|
2
|
|
7235
7235
|
/*return*/
|
|
7236
7236
|
]);
|
|
@@ -7239,13 +7239,13 @@ function xi() {
|
|
|
7239
7239
|
});
|
|
7240
7240
|
};
|
|
7241
7241
|
return G.current = function() {
|
|
7242
|
-
M || (F.current && (F.current = null), W?.(),
|
|
7243
|
-
},
|
|
7242
|
+
M || (F.current && (F.current = null), W?.(), S());
|
|
7243
|
+
}, S(), function() {
|
|
7244
7244
|
M = !0, D = !1, F.current && (F.current = null), W?.(), y(null);
|
|
7245
7245
|
};
|
|
7246
7246
|
} else (s === null || m === !1) && (O.current = 0, C(function(L) {
|
|
7247
7247
|
var N;
|
|
7248
|
-
return e(e({}, L),
|
|
7248
|
+
return e(e({}, L), x.current && (N = {}, N[x.current] = b.ReadyState.CLOSED, N));
|
|
7249
7249
|
}));
|
|
7250
7250
|
}, [s, m, R, P]), (0, p.useEffect)(function() {
|
|
7251
7251
|
w === b.ReadyState.OPEN && h.current.splice(0).forEach(function(W) {
|
|
@@ -7254,7 +7254,7 @@ function xi() {
|
|
|
7254
7254
|
}, [w]), {
|
|
7255
7255
|
sendMessage: P,
|
|
7256
7256
|
sendJsonMessage: H,
|
|
7257
|
-
lastMessage:
|
|
7257
|
+
lastMessage: c,
|
|
7258
7258
|
lastJsonMessage: v,
|
|
7259
7259
|
readyState: w,
|
|
7260
7260
|
getWebSocket: B
|
|
@@ -7294,7 +7294,7 @@ function Do() {
|
|
|
7294
7294
|
l === void 0 && (l = r.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
7295
7295
|
var i = (0, n.useMemo)(function() {
|
|
7296
7296
|
return e(e({}, l), { fromSocketIO: !0 });
|
|
7297
|
-
}, []), o = (0, t.useWebSocket)(d, i, a), s = o.sendMessage, u = o.sendJsonMessage, m = o.lastMessage,
|
|
7297
|
+
}, []), o = (0, t.useWebSocket)(d, i, a), s = o.sendMessage, u = o.sendJsonMessage, m = o.lastMessage, _ = o.readyState, c = o.getWebSocket, y = (0, n.useMemo)(function() {
|
|
7298
7298
|
return g(m);
|
|
7299
7299
|
}, [m]);
|
|
7300
7300
|
return {
|
|
@@ -7302,8 +7302,8 @@ function Do() {
|
|
|
7302
7302
|
sendJsonMessage: u,
|
|
7303
7303
|
lastMessage: y,
|
|
7304
7304
|
lastJsonMessage: y,
|
|
7305
|
-
readyState:
|
|
7306
|
-
getWebSocket:
|
|
7305
|
+
readyState: _,
|
|
7306
|
+
getWebSocket: c
|
|
7307
7307
|
};
|
|
7308
7308
|
};
|
|
7309
7309
|
return Ta.useSocketIO = b, Ta;
|
|
@@ -7337,15 +7337,15 @@ function Eo() {
|
|
|
7337
7337
|
withCredentials: a
|
|
7338
7338
|
} }), u = (0, t.useRef)(p.EMPTY_EVENT_HANDLERS);
|
|
7339
7339
|
i && (u.current = i);
|
|
7340
|
-
var m = (0, r.useWebSocket)(b, s, l),
|
|
7340
|
+
var m = (0, r.useWebSocket)(b, s, l), _ = m.lastMessage, c = m.readyState, y = m.getWebSocket;
|
|
7341
7341
|
return (0, t.useEffect)(function() {
|
|
7342
|
-
|
|
7343
|
-
var U =
|
|
7344
|
-
U ===
|
|
7342
|
+
_?.type && Object.entries(u.current).forEach(function(f) {
|
|
7343
|
+
var U = f[0], C = f[1];
|
|
7344
|
+
U === _.type && C(_);
|
|
7345
7345
|
});
|
|
7346
|
-
}, [
|
|
7347
|
-
lastEvent:
|
|
7348
|
-
readyState:
|
|
7346
|
+
}, [_]), {
|
|
7347
|
+
lastEvent: _,
|
|
7348
|
+
readyState: c,
|
|
7349
7349
|
getEventSource: y
|
|
7350
7350
|
};
|
|
7351
7351
|
};
|
|
@@ -7391,8 +7391,8 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7391
7391
|
console.log("執行遊戲內轉帳"), r && await s({
|
|
7392
7392
|
platform: p
|
|
7393
7393
|
}).then((m) => {
|
|
7394
|
-
const { code:
|
|
7395
|
-
switch (
|
|
7394
|
+
const { code: _, request_id: c } = m;
|
|
7395
|
+
switch (_) {
|
|
7396
7396
|
case 200:
|
|
7397
7397
|
g.dispatch({
|
|
7398
7398
|
type: "ui/showToast",
|
|
@@ -7404,10 +7404,10 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7404
7404
|
}), l();
|
|
7405
7405
|
return;
|
|
7406
7406
|
case 101:
|
|
7407
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7407
|
+
localStorage.setItem("transfer_in_game_request_id", c), i();
|
|
7408
7408
|
return;
|
|
7409
7409
|
case 102:
|
|
7410
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7410
|
+
localStorage.setItem("transfer_in_game_request_id", c), i(), g.dispatch({
|
|
7411
7411
|
type: "ui/showToast",
|
|
7412
7412
|
payload: {
|
|
7413
7413
|
title: Ba[o] || "System Prompt",
|
|
@@ -7518,7 +7518,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7518
7518
|
});
|
|
7519
7519
|
}, Wo = ({ paramsData: e, options: n } = {}) => {
|
|
7520
7520
|
const { userRebateApi: t } = oe(), { getToken: r } = se();
|
|
7521
|
-
return r?.(),
|
|
7521
|
+
return r?.(), $({
|
|
7522
7522
|
queryKey: ["userRebate", e],
|
|
7523
7523
|
queryFn: async () => t({ paramsData: e }),
|
|
7524
7524
|
enabled: !1,
|
|
@@ -7551,7 +7551,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7551
7551
|
});
|
|
7552
7552
|
}, Gm = ({ options: e } = {}) => {
|
|
7553
7553
|
const { currency: n } = se(), { checkUserWagerApi: t } = oe();
|
|
7554
|
-
return
|
|
7554
|
+
return $({
|
|
7555
7555
|
queryKey: ["checkUserWager"],
|
|
7556
7556
|
queryFn: async () => t(),
|
|
7557
7557
|
select: (r) => {
|
|
@@ -7590,7 +7590,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7590
7590
|
});
|
|
7591
7591
|
}, Jo = ({ options: e, formData: n } = {}) => {
|
|
7592
7592
|
const { getMachineLoginCodeApi: t } = oe();
|
|
7593
|
-
return
|
|
7593
|
+
return $({
|
|
7594
7594
|
queryKey: ["getMachineLoginCode"],
|
|
7595
7595
|
queryFn: async () => t(n),
|
|
7596
7596
|
...e
|
|
@@ -7639,14 +7639,14 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7639
7639
|
});
|
|
7640
7640
|
}, Om = ({ options: e, paramsData: n } = {}) => {
|
|
7641
7641
|
const { verifyPhoneBarApi: t } = za();
|
|
7642
|
-
return
|
|
7642
|
+
return $({
|
|
7643
7643
|
queryKey: ["verifyPhoneBar", n],
|
|
7644
7644
|
queryFn: async () => t(n),
|
|
7645
7645
|
...e
|
|
7646
7646
|
});
|
|
7647
7647
|
}, Bm = ({ options: e, paramsData: n } = {}) => {
|
|
7648
7648
|
const { verifyDonationCodeApi: t } = za();
|
|
7649
|
-
return
|
|
7649
|
+
return $({
|
|
7650
7650
|
queryKey: ["verifyDonationCode", n],
|
|
7651
7651
|
queryFn: async () => t(n),
|
|
7652
7652
|
...e
|
|
@@ -7660,7 +7660,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7660
7660
|
});
|
|
7661
7661
|
}, Wm = ({ options: e, bonusData: n } = {}) => {
|
|
7662
7662
|
const { getJackpotApi: t } = oe();
|
|
7663
|
-
return
|
|
7663
|
+
return $({
|
|
7664
7664
|
queryKey: ["getJackpotData"],
|
|
7665
7665
|
queryFn: async () => t(),
|
|
7666
7666
|
select: (r) => {
|
|
@@ -7679,14 +7679,14 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7679
7679
|
});
|
|
7680
7680
|
}, zm = ({ options: e } = {}) => {
|
|
7681
7681
|
const { getBetRankingApi: n } = oe();
|
|
7682
|
-
return
|
|
7682
|
+
return $({
|
|
7683
7683
|
queryKey: ["getBetRankingData"],
|
|
7684
7684
|
queryFn: async () => n(),
|
|
7685
7685
|
...e
|
|
7686
7686
|
});
|
|
7687
7687
|
}, Im = ({ options: e } = {}) => {
|
|
7688
7688
|
const { getUserAvatarListApi: n } = oe();
|
|
7689
|
-
return
|
|
7689
|
+
return $({
|
|
7690
7690
|
queryKey: ["getAvatarList"],
|
|
7691
7691
|
queryFn: async () => n(),
|
|
7692
7692
|
// select: (data) => {
|
|
@@ -7765,29 +7765,29 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7765
7765
|
enableNotification: g = !1,
|
|
7766
7766
|
disabledLineAutoRegister: b = !1
|
|
7767
7767
|
}) => {
|
|
7768
|
-
const { store: d, lng: l } = se(), a = Wa(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Zn(), m = Qe(l),
|
|
7768
|
+
const { store: d, lng: l } = se(), a = Wa(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Zn(), m = Qe(l), _ = te(!1), c = te(n), y = Y(r, "uid", null);
|
|
7769
7769
|
Y(r, "testFunction", 0);
|
|
7770
|
-
const
|
|
7770
|
+
const f = new URLSearchParams(window.location.search), U = Y(
|
|
7771
7771
|
p,
|
|
7772
7772
|
"enableTransferInGaming",
|
|
7773
7773
|
!1
|
|
7774
7774
|
), { mutateAsync: C } = nr({
|
|
7775
7775
|
options: {
|
|
7776
7776
|
onSuccess: (w) => {
|
|
7777
|
-
|
|
7777
|
+
c.current.onLineLogin?.(w);
|
|
7778
7778
|
},
|
|
7779
7779
|
retry: !1
|
|
7780
7780
|
}
|
|
7781
7781
|
}), { mutateAsync: v } = Vo({
|
|
7782
7782
|
options: {
|
|
7783
7783
|
onSuccess: (w) => {
|
|
7784
|
-
|
|
7784
|
+
c.current.onLineLogin?.(w);
|
|
7785
7785
|
},
|
|
7786
7786
|
onError: (w, R) => {
|
|
7787
7787
|
b || C(R);
|
|
7788
7788
|
}
|
|
7789
7789
|
}
|
|
7790
|
-
}), { handleTransferInGame:
|
|
7790
|
+
}), { handleTransferInGame: x } = Mo({
|
|
7791
7791
|
enable: U,
|
|
7792
7792
|
isTestFunction: !0,
|
|
7793
7793
|
isTransferMode: Y(p, "isTransferMode", !1),
|
|
@@ -7807,7 +7807,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7807
7807
|
} = Go(e, {
|
|
7808
7808
|
queryParams: { key: "wsky" },
|
|
7809
7809
|
onOpen: () => console.log("連線成功"),
|
|
7810
|
-
shouldReconnect: () =>
|
|
7810
|
+
shouldReconnect: () => _.current === !1,
|
|
7811
7811
|
reconnectAttempts: 9999,
|
|
7812
7812
|
reconnectInterval: 1e3,
|
|
7813
7813
|
...t
|
|
@@ -7840,7 +7840,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7840
7840
|
[g, d, m]
|
|
7841
7841
|
);
|
|
7842
7842
|
pe(() => {
|
|
7843
|
-
|
|
7843
|
+
c.current = n;
|
|
7844
7844
|
}, [n]);
|
|
7845
7845
|
const A = te(null);
|
|
7846
7846
|
return pe(() => {
|
|
@@ -7856,17 +7856,17 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7856
7856
|
onMaintainNoticeMember: W,
|
|
7857
7857
|
onTransferInGame: M,
|
|
7858
7858
|
onCashRegisterLimit: D,
|
|
7859
|
-
onLineLogin:
|
|
7860
|
-
} =
|
|
7859
|
+
onLineLogin: S
|
|
7860
|
+
} = c.current, L = Y(h, "type", ""), N = {
|
|
7861
7861
|
memberInfoUid: Y(h, "member_info_uid", null),
|
|
7862
7862
|
data: Y(h, "data", null),
|
|
7863
7863
|
memo: Y(h, "memo", null),
|
|
7864
7864
|
amount: Y(h, "amount", null),
|
|
7865
7865
|
limitAmount: Y(h, "limit_amount", null)
|
|
7866
|
-
}, Z = Number(N.memberInfoUid) === y, q = N.data, j = N.amount, K = N.limitAmount, ie =
|
|
7866
|
+
}, Z = Number(N.memberInfoUid) === y, q = N.data, j = N.amount, K = N.limitAmount, ie = f.get("mac") || pi.get("machine_mac_address") || "", re = Y(h, "data.line_id", null), ye = Y(h, "data.line_name", null), Ue = Y(h, "member_info_uid", null);
|
|
7867
7867
|
switch (L) {
|
|
7868
7868
|
case He.DEPOSIT:
|
|
7869
|
-
Z && (
|
|
7869
|
+
Z && (x(), w?.(N));
|
|
7870
7870
|
break;
|
|
7871
7871
|
case He.TRANS_CODE:
|
|
7872
7872
|
R?.(N);
|
|
@@ -7908,7 +7908,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7908
7908
|
return;
|
|
7909
7909
|
} else if (Ve && Ve === me) {
|
|
7910
7910
|
if (fe === "rollback") {
|
|
7911
|
-
|
|
7911
|
+
x();
|
|
7912
7912
|
return;
|
|
7913
7913
|
}
|
|
7914
7914
|
localStorage.removeItem("transfer_in_game_request_id"), d.dispatch({
|
|
@@ -7961,12 +7961,12 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
7961
7961
|
m,
|
|
7962
7962
|
F,
|
|
7963
7963
|
s,
|
|
7964
|
-
|
|
7964
|
+
x,
|
|
7965
7965
|
U,
|
|
7966
7966
|
o,
|
|
7967
|
-
|
|
7967
|
+
f,
|
|
7968
7968
|
C
|
|
7969
|
-
]), pe(() => () =>
|
|
7969
|
+
]), pe(() => () => _.current = !0, []), pe(() => {
|
|
7970
7970
|
localStorage.getItem(
|
|
7971
7971
|
"transfer_in_game_request_id"
|
|
7972
7972
|
) && u();
|
|
@@ -8048,13 +8048,13 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8048
8048
|
};
|
|
8049
8049
|
}, qo = ({ paramsData: e, options: n } = {}) => {
|
|
8050
8050
|
const { store: t, lng: r, data2URL: p } = se(), { eventListApi: g } = Xa(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(r);
|
|
8051
|
-
return
|
|
8051
|
+
return $({
|
|
8052
8052
|
queryKey: ["eventList", e],
|
|
8053
8053
|
queryFn: () => g({ paramsData: e }),
|
|
8054
8054
|
select: (l) => {
|
|
8055
8055
|
try {
|
|
8056
8056
|
const { data: a } = l;
|
|
8057
|
-
return
|
|
8057
|
+
return Le(a, (o) => {
|
|
8058
8058
|
const { events_attributes: s } = o, u = Ie(
|
|
8059
8059
|
s,
|
|
8060
8060
|
(v) => v.attribute_currency === b
|
|
@@ -8062,16 +8062,16 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8062
8062
|
u,
|
|
8063
8063
|
"rewards",
|
|
8064
8064
|
{}
|
|
8065
|
-
),
|
|
8066
|
-
...
|
|
8065
|
+
), _ = Y(o, "carousels.[0]", {}), c = Ie(_.carousels_lang, (v) => v.lang === d) || _?.carousels_lang?.[0], y = {
|
|
8066
|
+
..._,
|
|
8067
8067
|
currentLngCarousel: {
|
|
8068
|
-
...
|
|
8069
|
-
carouselCurrentLanguagePCImageUrl: `${p}/carousels/${
|
|
8070
|
-
carouselCurrentLanguageMBImageUrl: `${p}/carousels/${
|
|
8071
|
-
carouselCurrentLanguageS3PCImageUrl: `${Ke}/carousels/${
|
|
8072
|
-
carouselCurrentLanguageS3MBImageUrl: `${Ke}/carousels/${
|
|
8068
|
+
...c,
|
|
8069
|
+
carouselCurrentLanguagePCImageUrl: `${p}/carousels/${c?.image_pc}`,
|
|
8070
|
+
carouselCurrentLanguageMBImageUrl: `${p}/carousels/${c?.image_mobile}`,
|
|
8071
|
+
carouselCurrentLanguageS3PCImageUrl: `${Ke}/carousels/${c?.image_pc}`,
|
|
8072
|
+
carouselCurrentLanguageS3MBImageUrl: `${Ke}/carousels/${c?.image_mobile}`
|
|
8073
8073
|
}
|
|
8074
|
-
},
|
|
8074
|
+
}, f = {
|
|
8075
8075
|
eventUid: o.uid,
|
|
8076
8076
|
enableCurrencyLimit: o.enable_currency_limit,
|
|
8077
8077
|
//是否啟用幣別限制
|
|
@@ -8163,7 +8163,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8163
8163
|
origin: m
|
|
8164
8164
|
};
|
|
8165
8165
|
return {
|
|
8166
|
-
eventBase:
|
|
8166
|
+
eventBase: f,
|
|
8167
8167
|
eventAttribute: U,
|
|
8168
8168
|
eventReward: C,
|
|
8169
8169
|
eventCarousel: { ...y },
|
|
@@ -8185,14 +8185,14 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8185
8185
|
});
|
|
8186
8186
|
}, $o = ({ options: e, formData: n } = {}) => {
|
|
8187
8187
|
const { checkCurrentEventProgessApi: t } = Xa();
|
|
8188
|
-
return
|
|
8188
|
+
return $({
|
|
8189
8189
|
queryKey: ["checkEventProgress"],
|
|
8190
8190
|
queryFn: async () => t(n),
|
|
8191
8191
|
...e
|
|
8192
8192
|
});
|
|
8193
8193
|
}, Qo = ({ options: e, formData: n } = {}) => {
|
|
8194
8194
|
const { checkEventStatusApi: t } = Xa();
|
|
8195
|
-
return
|
|
8195
|
+
return $({
|
|
8196
8196
|
queryKey: ["checkEventStatus"],
|
|
8197
8197
|
queryFn: async () => t(n),
|
|
8198
8198
|
select: (r) => r.data.event_status,
|
|
@@ -8257,7 +8257,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8257
8257
|
};
|
|
8258
8258
|
}, Qm = ({ gamePlatform: e, params: n } = {}) => {
|
|
8259
8259
|
const { eventWalletListApi: t } = et();
|
|
8260
|
-
return
|
|
8260
|
+
return $({
|
|
8261
8261
|
queryKey: ["getEventWalletList", e, n],
|
|
8262
8262
|
queryFn: async () => await t({
|
|
8263
8263
|
gamePlatform: e,
|
|
@@ -8272,10 +8272,10 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8272
8272
|
last_page_url: s,
|
|
8273
8273
|
next_page_url: u,
|
|
8274
8274
|
path: m,
|
|
8275
|
-
per_page:
|
|
8276
|
-
prev_page_url:
|
|
8275
|
+
per_page: _,
|
|
8276
|
+
prev_page_url: c,
|
|
8277
8277
|
to: y,
|
|
8278
|
-
total:
|
|
8278
|
+
total: f
|
|
8279
8279
|
} = p;
|
|
8280
8280
|
return {
|
|
8281
8281
|
list: d,
|
|
@@ -8288,10 +8288,10 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8288
8288
|
last_page_url: s,
|
|
8289
8289
|
next_page_url: u,
|
|
8290
8290
|
path: m,
|
|
8291
|
-
per_page:
|
|
8292
|
-
prev_page_url:
|
|
8291
|
+
per_page: _,
|
|
8292
|
+
prev_page_url: c,
|
|
8293
8293
|
to: y,
|
|
8294
|
-
total:
|
|
8294
|
+
total: f
|
|
8295
8295
|
}
|
|
8296
8296
|
};
|
|
8297
8297
|
}
|
|
@@ -8307,7 +8307,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8307
8307
|
});
|
|
8308
8308
|
}, Ym = ({ gamePlatform: e = "", options: n = {} } = {}) => {
|
|
8309
8309
|
const { evaluateEventWalletApi: t } = et();
|
|
8310
|
-
return
|
|
8310
|
+
return $({
|
|
8311
8311
|
queryKey: ["evaluateEventWallet", e],
|
|
8312
8312
|
queryFn: async () => await t({ gamePlatform: e }),
|
|
8313
8313
|
select: (r) => {
|
|
@@ -8341,7 +8341,7 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8341
8341
|
});
|
|
8342
8342
|
}, au = ({ skipPreload: e = !1 } = {}) => {
|
|
8343
8343
|
const { lng: n, data2URL: t } = se(), { commonCarouselApi: r } = za(), p = Qe(n);
|
|
8344
|
-
return
|
|
8344
|
+
return $({
|
|
8345
8345
|
queryKey: ["getCarouselList", e],
|
|
8346
8346
|
queryFn: async () => {
|
|
8347
8347
|
const g = window.carousels_list;
|
|
@@ -8369,14 +8369,14 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8369
8369
|
});
|
|
8370
8370
|
}, tu = () => {
|
|
8371
8371
|
const { lng: e, getToken: n } = se(), t = n?.(), { commonMarqueeApi: r } = za(), p = Qe(e);
|
|
8372
|
-
return
|
|
8372
|
+
return $({
|
|
8373
8373
|
queryKey: ["getMarqueeList", t],
|
|
8374
8374
|
queryFn: async () => {
|
|
8375
8375
|
const g = window.marquees;
|
|
8376
8376
|
return g && !t ? g : await r();
|
|
8377
8377
|
},
|
|
8378
8378
|
select: (g) => {
|
|
8379
|
-
const b = ea(g) ? g : g.Marquees, d = ea(g) ? g : g.MarqueesInsideGameBox, l =
|
|
8379
|
+
const b = ea(g) ? g : g.Marquees, d = ea(g) ? g : g.MarqueesInsideGameBox, l = Le(b, (i) => i[p] || i?.en_US), a = Le(d, (i) => i[p] || i?.en_US);
|
|
8380
8380
|
return {
|
|
8381
8381
|
marquee: l,
|
|
8382
8382
|
gameMarquee: a
|
|
@@ -8385,13 +8385,13 @@ const Go = /* @__PURE__ */ yi(Lo), Mo = ({
|
|
|
8385
8385
|
});
|
|
8386
8386
|
}, iu = ({ options: e } = {}) => {
|
|
8387
8387
|
const { rankingGameApi: n } = oe();
|
|
8388
|
-
return
|
|
8388
|
+
return $({
|
|
8389
8389
|
queryKey: ["rankingGame"],
|
|
8390
8390
|
queryFn: async () => n(),
|
|
8391
8391
|
enabled: window.profit_ranking_status === 1,
|
|
8392
8392
|
select: (t) => {
|
|
8393
8393
|
const { data: r } = t;
|
|
8394
|
-
return
|
|
8394
|
+
return Le(r, (g) => {
|
|
8395
8395
|
const {
|
|
8396
8396
|
game_uid: b,
|
|
8397
8397
|
game_code: d,
|
|
@@ -8434,24 +8434,24 @@ var jo = Object.create, rr = Object.defineProperty, Yo = Object.getOwnPropertyDe
|
|
|
8434
8434
|
})(e, function(t) {
|
|
8435
8435
|
var r = function(u) {
|
|
8436
8436
|
return function(m) {
|
|
8437
|
-
var
|
|
8438
|
-
return m.add(
|
|
8437
|
+
var _ = u(m);
|
|
8438
|
+
return m.add(_), _;
|
|
8439
8439
|
};
|
|
8440
8440
|
}, p = function(u) {
|
|
8441
|
-
return function(m,
|
|
8442
|
-
return u.set(m,
|
|
8441
|
+
return function(m, _) {
|
|
8442
|
+
return u.set(m, _), _;
|
|
8443
8443
|
};
|
|
8444
8444
|
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, d = b * 2, l = function(u, m) {
|
|
8445
|
-
return function(
|
|
8446
|
-
var
|
|
8447
|
-
if (!
|
|
8448
|
-
if (
|
|
8449
|
-
for (;
|
|
8450
|
-
return u(
|
|
8445
|
+
return function(_) {
|
|
8446
|
+
var c = m.get(_), y = c === void 0 ? _.size : c < d ? c + 1 : 0;
|
|
8447
|
+
if (!_.has(y)) return u(_, y);
|
|
8448
|
+
if (_.size < b) {
|
|
8449
|
+
for (; _.has(y); ) y = Math.floor(Math.random() * d);
|
|
8450
|
+
return u(_, y);
|
|
8451
8451
|
}
|
|
8452
|
-
if (
|
|
8453
|
-
for (;
|
|
8454
|
-
return u(
|
|
8452
|
+
if (_.size > g) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
8453
|
+
for (; _.has(y); ) y = Math.floor(Math.random() * g);
|
|
8454
|
+
return u(_, y);
|
|
8455
8455
|
};
|
|
8456
8456
|
}, a = /* @__PURE__ */ new WeakMap(), i = p(a), o = l(i, a), s = r(o);
|
|
8457
8457
|
t.addUniqueNumber = s, t.generateUniqueNumber = o;
|
|
@@ -8725,8 +8725,8 @@ function fs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8725
8725
|
}, onActive: i = () => {
|
|
8726
8726
|
}, onAction: o = () => {
|
|
8727
8727
|
}, onMessage: s = () => {
|
|
8728
|
-
}, debounce: u = 0, throttle: m = 0, eventsThrottle:
|
|
8729
|
-
let G = te(Te()), O = te(Te()), k = te(null), h = te(null), F = te(0), A = te(0), w = te(0), R = te(0), P = te(!1), H = te(!1), B = te(!1), W = te(!0), M = te(!1), D = te(null),
|
|
8728
|
+
}, debounce: u = 0, throttle: m = 0, eventsThrottle: _ = 200, startOnMount: c = !0, startManually: y = !1, stopOnIdle: f = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: E = !1 } = {}) {
|
|
8729
|
+
let G = te(Te()), O = te(Te()), k = te(null), h = te(null), F = te(0), A = te(0), w = te(0), R = te(0), P = te(!1), H = te(!1), B = te(!1), W = te(!0), M = te(!1), D = te(null), S = te(null), L = te(e), N = te(0);
|
|
8730
8730
|
pe(() => {
|
|
8731
8731
|
if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
8732
8732
|
if (e >= Fa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Fa}.`);
|
|
@@ -8735,13 +8735,13 @@ function fs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8735
8735
|
if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8736
8736
|
if (t ? (L.current = e - t, N.current = t) : (L.current = e, N.current = n), !W.current) {
|
|
8737
8737
|
if (y || E) return;
|
|
8738
|
-
P.current && (me.current(null, Se),
|
|
8738
|
+
P.current && (me.current(null, Se), S.current && S.current.active()), je();
|
|
8739
8739
|
}
|
|
8740
8740
|
}, [e, n, t, y, E]);
|
|
8741
|
-
let Z = te(
|
|
8741
|
+
let Z = te(f);
|
|
8742
8742
|
pe(() => {
|
|
8743
|
-
Z.current =
|
|
8744
|
-
}, [
|
|
8743
|
+
Z.current = f;
|
|
8744
|
+
}, [f]);
|
|
8745
8745
|
let q = te(b), j = te(r), K = te([...(/* @__PURE__ */ new Set([...p, ...b])).values()]), ie = te(E);
|
|
8746
8746
|
pe(() => {
|
|
8747
8747
|
ie.current = E, !W.current && (E ? Je() : y || je());
|
|
@@ -8776,57 +8776,57 @@ function fs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8776
8776
|
}, [m, u]), Ve = te();
|
|
8777
8777
|
pe(() => {
|
|
8778
8778
|
U && v && (Ve.current = si(() => {
|
|
8779
|
-
|
|
8779
|
+
S.current.active();
|
|
8780
8780
|
}, v));
|
|
8781
8781
|
}, [U, v]);
|
|
8782
8782
|
let Ce = () => {
|
|
8783
8783
|
D.current !== null && (Xe.clearTimeout(D.current), D.current = null);
|
|
8784
|
-
},
|
|
8784
|
+
}, Pe = (V, De = !0) => {
|
|
8785
8785
|
Ce(), D.current = Xe.setTimeout(We, V || L.current), De && (h.current = Te());
|
|
8786
8786
|
}, aa = (V) => {
|
|
8787
|
-
!H.current && !P.current && (ye.current(V, Se), re.current({ type: "active", prompted: !0 }, Se)), R.current = 0, w.current = Te(), H.current = !0,
|
|
8788
|
-
},
|
|
8789
|
-
Ce(), P.current || (Ue.current(null, Se), re.current({ type: "idle" }, Se)), P.current = !0, k.current = Te(), Z.current ?
|
|
8787
|
+
!H.current && !P.current && (ye.current(V, Se), re.current({ type: "active", prompted: !0 }, Se)), R.current = 0, w.current = Te(), H.current = !0, Pe(N.current, !1);
|
|
8788
|
+
}, we = () => {
|
|
8789
|
+
Ce(), P.current || (Ue.current(null, Se), re.current({ type: "idle" }, Se)), P.current = !0, k.current = Te(), Z.current ? Fe() : H.current && (w.current = 0, H.current = !1);
|
|
8790
8790
|
}, ve = (V) => {
|
|
8791
|
-
Ce(), (P.current || H.current) && (me.current(V, Se), re.current({ type: "active", prompted: !1 }, Se)), H.current = !1, w.current = 0, P.current = !1, F.current += Te() - k.current, A.current += Te() - k.current, xe(),
|
|
8791
|
+
Ce(), (P.current || H.current) && (me.current(V, Se), re.current({ type: "active", prompted: !1 }, Se)), H.current = !1, w.current = 0, P.current = !1, F.current += Te() - k.current, A.current += Te() - k.current, xe(), Pe();
|
|
8792
8792
|
}, We = (V) => {
|
|
8793
8793
|
if (!P.current) {
|
|
8794
8794
|
fe.cancel && fe.cancel();
|
|
8795
8795
|
let De = Te() - h.current;
|
|
8796
8796
|
if (!(L.current + N.current < De) && N.current > 0 && !H.current) {
|
|
8797
|
-
|
|
8797
|
+
S.current ? S.current.prompt() : aa(V);
|
|
8798
8798
|
return;
|
|
8799
8799
|
}
|
|
8800
|
-
|
|
8800
|
+
S.current ? S.current.idle() : we();
|
|
8801
8801
|
return;
|
|
8802
8802
|
}
|
|
8803
|
-
|
|
8803
|
+
S.current ? S.current.active() : ve(V);
|
|
8804
8804
|
}, ta = (V) => {
|
|
8805
|
-
if (!
|
|
8805
|
+
if (!c && !h.current && (h.current = Te(), me.current(null, Se)), fe(V, Se), H.current) return;
|
|
8806
8806
|
if (Ce(), !P.current && q.current.includes(V.type)) {
|
|
8807
8807
|
We(V);
|
|
8808
8808
|
return;
|
|
8809
8809
|
}
|
|
8810
8810
|
let De = Te() - h.current;
|
|
8811
|
-
if (P.current && !
|
|
8811
|
+
if (P.current && !f || !P.current && De >= L.current) {
|
|
8812
8812
|
We(V);
|
|
8813
8813
|
return;
|
|
8814
8814
|
}
|
|
8815
|
-
B.current = !1, R.current = 0, w.current = 0,
|
|
8815
|
+
B.current = !1, R.current = 0, w.current = 0, Pe(), U && v && Ve.current();
|
|
8816
8816
|
}, ia = te(ta);
|
|
8817
8817
|
pe(() => {
|
|
8818
8818
|
let V = M.current;
|
|
8819
|
-
V &&
|
|
8820
|
-
}, [
|
|
8819
|
+
V && Fe(), _ > 0 ? ia.current = si(ta, _) : ia.current = ta, V && xe();
|
|
8820
|
+
}, [_, m, u, ce, U, v]);
|
|
8821
8821
|
let xe = () => {
|
|
8822
8822
|
pa && j.current && (M.current || (K.current.forEach((V) => {
|
|
8823
8823
|
j.current.addEventListener(V, ia.current, { capture: !0, passive: !0 });
|
|
8824
8824
|
}), M.current = !0));
|
|
8825
|
-
},
|
|
8825
|
+
}, Fe = (V = !1) => {
|
|
8826
8826
|
pa && j.current && (M.current || V) && (K.current.forEach((De) => {
|
|
8827
8827
|
j.current.removeEventListener(De, ia.current, { capture: !0 });
|
|
8828
8828
|
}), M.current = !1);
|
|
8829
|
-
}, je = z((V) => ie.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0,
|
|
8829
|
+
}, je = z((V) => ie.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, S.current && !V && S.current.start(), Pe(), !0), [D, P, ie, L, S]), oa = z((V) => ie.current ? !1 : (Ce(), xe(), O.current = Te(), F.current += Te() - k.current, A.current += Te() - k.current, F.current = 0, P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, S.current && !V && S.current.reset(), y || Pe(), !0), [D, P, L, y, ie, S]), ga = z((V) => ie.current ? !1 : (Ce(), xe(), (P.current || H.current) && ve(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, O.current = Te(), S.current && !V && S.current.activate(), Pe(), !0), [D, P, H, ie, L, S]), Je = z((V = !1) => ie.current || B.current ? !1 : (R.current = ya(), B.current = !0, Fe(), Ce(), S.current && !V && S.current.pause(), !0), [D, ie, S]), Ye = z((V = !1) => ie.current || !B.current ? !1 : (B.current = !1, H.current || xe(), P.current || Pe(R.current), w.current && (w.current = Te()), S.current && !V && S.current.resume(), !0), [D, L, ie, R, S]), Va = z((V, De) => (S.current ? (De && ke.current(V, Se), S.current.message(V)) : De && ke.current(V, Se), !0), [s]), Da = z(() => P.current, [P]), Ea = z(() => H.current, [H]), Ja = z(() => S.current ? S.current.isLeader : null, [S]), Za = z(() => S.current ? S.current.isLastActive : null, [S]), da = z(() => S.current ? S.current.token : null, [S]), ya = z(() => {
|
|
8830
8830
|
if (B.current) return R.current;
|
|
8831
8831
|
let V = R.current ? R.current : N.current + L.current, De = h.current ? Te() - h.current : 0, na = Math.floor(V - De);
|
|
8832
8832
|
return na < 0 ? 0 : Math.abs(na);
|
|
@@ -8841,30 +8841,30 @@ function fs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8841
8841
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8842
8842
|
g && ls(g);
|
|
8843
8843
|
let V = () => {
|
|
8844
|
-
|
|
8844
|
+
S.current && S.current.close(), fe.cancel && fe.cancel(), Ce(), Fe(!0);
|
|
8845
8845
|
};
|
|
8846
8846
|
return pa && window.addEventListener("beforeunload", V), () => {
|
|
8847
|
-
pa && window.removeEventListener("beforeunload", V),
|
|
8847
|
+
pa && window.removeEventListener("beforeunload", V), S.current && S.current.close(), fe.cancel && fe.cancel(), Ce(), Fe(!0);
|
|
8848
8848
|
};
|
|
8849
8849
|
}, []), pe(() => {
|
|
8850
|
-
|
|
8850
|
+
S.current && S.current.close(), U ? S.current = new ps({ channelName: C, leaderElection: x, onPrompt: () => {
|
|
8851
8851
|
aa();
|
|
8852
8852
|
}, onIdle: () => {
|
|
8853
|
-
|
|
8853
|
+
we();
|
|
8854
8854
|
}, onActive: () => {
|
|
8855
8855
|
ve();
|
|
8856
8856
|
}, onMessage: (V) => {
|
|
8857
8857
|
ke.current(V, Se);
|
|
8858
|
-
}, start: je, reset: oa, activate: ga, pause: Je, resume: Ye }) :
|
|
8859
|
-
}, [U, C,
|
|
8860
|
-
W.current || (Ce(),
|
|
8861
|
-
}, [y,
|
|
8858
|
+
}, start: je, reset: oa, activate: ga, pause: Je, resume: Ye }) : S.current = null;
|
|
8859
|
+
}, [U, C, x, ye, Ue, me, ke, je, oa, Je, Ye]), pe(() => {
|
|
8860
|
+
W.current || (Ce(), Fe(!0)), !(y || E) && (c ? je() : xe());
|
|
8861
|
+
}, [y, c, E, W]), pe(() => {
|
|
8862
8862
|
if (!W.current) {
|
|
8863
8863
|
let V = [...(/* @__PURE__ */ new Set([...p, ...b])).values()];
|
|
8864
|
-
if (
|
|
8865
|
-
|
|
8864
|
+
if (Fe(), K.current = V, j.current = r, q.current = b, y || E) return;
|
|
8865
|
+
c ? je() : xe();
|
|
8866
8866
|
}
|
|
8867
|
-
}, [r, JSON.stringify(p), JSON.stringify(b), W, E, y,
|
|
8867
|
+
}, [r, JSON.stringify(p), JSON.stringify(b), W, E, y, c]), pe(() => {
|
|
8868
8868
|
W.current && (W.current = !1);
|
|
8869
8869
|
}, [W]);
|
|
8870
8870
|
let Se = { message: Va, start: je, reset: oa, activate: ga, pause: Je, resume: Ye, isIdle: Da, isPrompted: Ea, isLeader: Ja, isLastActiveTab: Za, getTabId: da, getRemainingTime: ya, getElapsedTime: qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Na, getIdleTime: La, getTotalIdleTime: Ua, getActiveTime: Ga, getTotalActiveTime: Ma, setOnPresenceChange: (V) => {
|
|
@@ -8892,12 +8892,12 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
8892
8892
|
throttle: 500
|
|
8893
8893
|
}), ys = ({ options: e } = {}) => {
|
|
8894
8894
|
const { commonInboxApi: n } = za(), { getToken: t, lng: r } = se(), p = t?.(), g = Qe(r);
|
|
8895
|
-
return
|
|
8895
|
+
return $({
|
|
8896
8896
|
queryKey: ["inboxList"],
|
|
8897
8897
|
queryFn: async () => await n(),
|
|
8898
8898
|
select: (b) => {
|
|
8899
8899
|
const { data: d } = b;
|
|
8900
|
-
return
|
|
8900
|
+
return Le(d, (a) => {
|
|
8901
8901
|
const { internal_notifications_language: i } = a;
|
|
8902
8902
|
return {
|
|
8903
8903
|
...a,
|
|
@@ -8987,14 +8987,14 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
8987
8987
|
}
|
|
8988
8988
|
], lu = ({ options: e, formData: n } = {}) => {
|
|
8989
8989
|
const { lng: t } = se(), { newsListApi: r } = or(), p = Qe(t);
|
|
8990
|
-
return
|
|
8990
|
+
return $({
|
|
8991
8991
|
queryKey: ["newsList"],
|
|
8992
8992
|
queryFn: () => {
|
|
8993
8993
|
const { uid: g, params: b } = n || {};
|
|
8994
8994
|
return r({ uid: g, params: b });
|
|
8995
8995
|
},
|
|
8996
8996
|
select: (g) => {
|
|
8997
|
-
const { data: b } = g, d = b.data?.filter((a) => a.is_active === 1), l =
|
|
8997
|
+
const { data: b } = g, d = b.data?.filter((a) => a.is_active === 1), l = Le(d, (a) => {
|
|
8998
8998
|
const i = Ie(a.news_language, {
|
|
8999
8999
|
language: p
|
|
9000
9000
|
}) || a.news_language[0];
|
|
@@ -9013,7 +9013,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9013
9013
|
});
|
|
9014
9014
|
}, ou = ({ options: e, formData: n } = {}) => {
|
|
9015
9015
|
const { lng: t } = se(), { newsListApi: r } = or(), p = Qe(t);
|
|
9016
|
-
return
|
|
9016
|
+
return $({
|
|
9017
9017
|
queryKey: ["newsList"],
|
|
9018
9018
|
queryFn: () => {
|
|
9019
9019
|
const { uid: g, params: b } = n || {};
|
|
@@ -9038,42 +9038,42 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9038
9038
|
[e]
|
|
9039
9039
|
), r = z(
|
|
9040
9040
|
async (c) => {
|
|
9041
|
-
const { deposit_amount:
|
|
9041
|
+
const { deposit_amount: y, method_id: f, currency_code: U, provider_uid: C } = c;
|
|
9042
9042
|
return await e.post("/thirdPartyPayment/deposit", {
|
|
9043
9043
|
deposit: {
|
|
9044
|
-
deposit_amount:
|
|
9045
|
-
method_id:
|
|
9046
|
-
currency_code:
|
|
9047
|
-
provider_uid:
|
|
9044
|
+
deposit_amount: y,
|
|
9045
|
+
method_id: f,
|
|
9046
|
+
currency_code: U,
|
|
9047
|
+
provider_uid: C
|
|
9048
9048
|
}
|
|
9049
9049
|
});
|
|
9050
9050
|
},
|
|
9051
9051
|
[e]
|
|
9052
9052
|
), p = z(
|
|
9053
9053
|
async (c) => {
|
|
9054
|
-
const { bank_uid:
|
|
9054
|
+
const { bank_uid: y, amount: f, bank_number_last5: U, postscript: C } = c;
|
|
9055
9055
|
return await e.post("/vip/deposit", {
|
|
9056
|
-
bank_uid:
|
|
9057
|
-
amount:
|
|
9058
|
-
bank_number_last5:
|
|
9059
|
-
postscript:
|
|
9056
|
+
bank_uid: y,
|
|
9057
|
+
amount: f,
|
|
9058
|
+
bank_number_last5: U,
|
|
9059
|
+
postscript: C
|
|
9060
9060
|
});
|
|
9061
9061
|
},
|
|
9062
9062
|
[e]
|
|
9063
9063
|
), g = z(
|
|
9064
9064
|
async (c) => {
|
|
9065
9065
|
const {
|
|
9066
|
-
withdrawal_amount:
|
|
9067
|
-
bank_account_number:
|
|
9068
|
-
currency_code:
|
|
9069
|
-
withdrawal_code:
|
|
9066
|
+
withdrawal_amount: y,
|
|
9067
|
+
bank_account_number: f,
|
|
9068
|
+
currency_code: U,
|
|
9069
|
+
withdrawal_code: C
|
|
9070
9070
|
} = c;
|
|
9071
9071
|
return await e.post("/thirdPartyPayment/withdraw", {
|
|
9072
9072
|
withdraw: {
|
|
9073
|
-
withdrawal_amount:
|
|
9074
|
-
bank_account_number:
|
|
9075
|
-
currency_code:
|
|
9076
|
-
withdrawal_code: qt.MD5(
|
|
9073
|
+
withdrawal_amount: y,
|
|
9074
|
+
bank_account_number: f,
|
|
9075
|
+
currency_code: U,
|
|
9076
|
+
withdrawal_code: qt.MD5(C).toString(),
|
|
9077
9077
|
payment_type: "ThirdParty"
|
|
9078
9078
|
}
|
|
9079
9079
|
});
|
|
@@ -9081,125 +9081,138 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9081
9081
|
[e]
|
|
9082
9082
|
), b = z(
|
|
9083
9083
|
async ({ paramsData: c } = {}) => {
|
|
9084
|
-
const { str_date:
|
|
9084
|
+
const { str_date: y, end_date: f, limit: U = 25, current_page: C } = c || {}, v = Ee().format("HH:mm:ss"), x = Ee().subtract(24, "hour").format("HH:mm:ss");
|
|
9085
9085
|
return await e.get("/report/deposit", {
|
|
9086
9086
|
params: {
|
|
9087
|
-
str_date: `${
|
|
9088
|
-
end_date: `${
|
|
9089
|
-
limit:
|
|
9090
|
-
page:
|
|
9087
|
+
str_date: `${Ee(y).format("YYYY-MM-DD")} ${v}`,
|
|
9088
|
+
end_date: `${Ee(f).format("YYYY-MM-DD")} ${x}`,
|
|
9089
|
+
limit: U,
|
|
9090
|
+
page: C
|
|
9091
9091
|
}
|
|
9092
9092
|
});
|
|
9093
9093
|
},
|
|
9094
9094
|
[e]
|
|
9095
9095
|
), d = z(
|
|
9096
9096
|
async ({ paramsData: c }) => {
|
|
9097
|
-
const { str_date:
|
|
9097
|
+
const { str_date: y, end_date: f, limit: U = 25, current_page: C } = c || {}, v = Ee().format("HH:mm:ss"), x = Ee().subtract(24, "hour").format("HH:mm:ss");
|
|
9098
9098
|
return await e.get("report/eventsreward", {
|
|
9099
9099
|
params: {
|
|
9100
|
-
str_date: `${
|
|
9101
|
-
end_date: `${
|
|
9102
|
-
limit:
|
|
9103
|
-
page:
|
|
9100
|
+
str_date: `${Ee(y).format("YYYY-MM-DD")} ${v}`,
|
|
9101
|
+
end_date: `${Ee(f).format("YYYY-MM-DD")} ${x}`,
|
|
9102
|
+
limit: U,
|
|
9103
|
+
page: C
|
|
9104
9104
|
}
|
|
9105
9105
|
});
|
|
9106
9106
|
},
|
|
9107
9107
|
[e]
|
|
9108
9108
|
), l = z(
|
|
9109
9109
|
async ({ paramsData: c } = {}) => {
|
|
9110
|
-
const { str_date:
|
|
9110
|
+
const { str_date: y, end_date: f, limit: U = 25, current_page: C } = c || {};
|
|
9111
9111
|
return await e.get("/report/withdraw", {
|
|
9112
9112
|
params: {
|
|
9113
|
-
str_date: `${
|
|
9114
|
-
end_date: `${
|
|
9115
|
-
limit:
|
|
9116
|
-
page:
|
|
9113
|
+
str_date: `${Ee(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9114
|
+
end_date: `${Ee(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9115
|
+
limit: U,
|
|
9116
|
+
page: C
|
|
9117
9117
|
}
|
|
9118
9118
|
});
|
|
9119
9119
|
},
|
|
9120
9120
|
[e]
|
|
9121
9121
|
), a = z(
|
|
9122
|
-
async (c) => {
|
|
9123
|
-
const {
|
|
9124
|
-
return await e.
|
|
9122
|
+
async ({ paramsData: c } = {}) => {
|
|
9123
|
+
const { str_date: y, end_date: f, limit: U = 25, current_page: C } = c || {};
|
|
9124
|
+
return await e.get("/report/other", {
|
|
9125
|
+
params: {
|
|
9126
|
+
str_date: `${Ee(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9127
|
+
end_date: `${Ee(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9128
|
+
limit: U,
|
|
9129
|
+
page: C
|
|
9130
|
+
}
|
|
9131
|
+
});
|
|
9125
9132
|
},
|
|
9126
9133
|
[e]
|
|
9127
9134
|
), i = z(
|
|
9128
9135
|
async (c) => {
|
|
9129
|
-
const {
|
|
9130
|
-
return await e.post(
|
|
9131
|
-
type: f,
|
|
9132
|
-
code: y
|
|
9133
|
-
});
|
|
9136
|
+
const { redeem_code: y } = c;
|
|
9137
|
+
return await e.post(`/sn/redeem/${y}`);
|
|
9134
9138
|
},
|
|
9135
9139
|
[e]
|
|
9136
9140
|
), o = z(
|
|
9137
9141
|
async (c) => {
|
|
9138
|
-
const { type:
|
|
9139
|
-
return await e.
|
|
9140
|
-
type:
|
|
9141
|
-
code:
|
|
9142
|
+
const { type: y, code: f } = c;
|
|
9143
|
+
return await e.post("/member/invoice", {
|
|
9144
|
+
type: y,
|
|
9145
|
+
code: f
|
|
9142
9146
|
});
|
|
9143
9147
|
},
|
|
9144
9148
|
[e]
|
|
9145
9149
|
), s = z(
|
|
9146
|
-
async (c
|
|
9150
|
+
async (c) => {
|
|
9151
|
+
const { type: y, code: f, uid: U } = c;
|
|
9152
|
+
return await e.put(`/member/invoice/${U}`, {
|
|
9153
|
+
type: y,
|
|
9154
|
+
code: f
|
|
9155
|
+
});
|
|
9156
|
+
},
|
|
9157
|
+
[e]
|
|
9158
|
+
), u = z(
|
|
9159
|
+
async (c, y) => {
|
|
9147
9160
|
const {
|
|
9148
|
-
str_date:
|
|
9149
|
-
end_date:
|
|
9150
|
-
limit:
|
|
9151
|
-
page:
|
|
9152
|
-
wallet_log_uid:
|
|
9153
|
-
transhash:
|
|
9161
|
+
str_date: f,
|
|
9162
|
+
end_date: U,
|
|
9163
|
+
limit: C = 25,
|
|
9164
|
+
page: v = 1,
|
|
9165
|
+
wallet_log_uid: x,
|
|
9166
|
+
transhash: E
|
|
9154
9167
|
} = c;
|
|
9155
|
-
return await e.get(`/walletlog/${
|
|
9168
|
+
return await e.get(`/walletlog/${y}`, {
|
|
9156
9169
|
params: {
|
|
9157
|
-
s_date:
|
|
9158
|
-
e_date:
|
|
9159
|
-
wallet_log_uid:
|
|
9160
|
-
transhash:
|
|
9161
|
-
limit:
|
|
9162
|
-
page:
|
|
9170
|
+
s_date: f,
|
|
9171
|
+
e_date: U,
|
|
9172
|
+
wallet_log_uid: x,
|
|
9173
|
+
transhash: E,
|
|
9174
|
+
limit: C,
|
|
9175
|
+
page: v
|
|
9163
9176
|
}
|
|
9164
9177
|
});
|
|
9165
9178
|
},
|
|
9166
9179
|
[e]
|
|
9167
|
-
),
|
|
9180
|
+
), m = z(
|
|
9168
9181
|
async (c) => {
|
|
9169
9182
|
const {
|
|
9170
|
-
str_date:
|
|
9171
|
-
end_date:
|
|
9172
|
-
limit:
|
|
9173
|
-
page:
|
|
9174
|
-
treasure_uid:
|
|
9183
|
+
str_date: y,
|
|
9184
|
+
end_date: f,
|
|
9185
|
+
limit: U = 25,
|
|
9186
|
+
page: C = 1,
|
|
9187
|
+
treasure_uid: v
|
|
9175
9188
|
} = c;
|
|
9176
9189
|
return await e.get("/treasure/drawLog", {
|
|
9177
9190
|
params: {
|
|
9178
|
-
str_date:
|
|
9179
|
-
end_date:
|
|
9180
|
-
limit:
|
|
9181
|
-
page:
|
|
9182
|
-
treasure_uid:
|
|
9191
|
+
str_date: y,
|
|
9192
|
+
end_date: f,
|
|
9193
|
+
limit: U,
|
|
9194
|
+
page: C,
|
|
9195
|
+
treasure_uid: v
|
|
9183
9196
|
}
|
|
9184
9197
|
});
|
|
9185
9198
|
},
|
|
9186
9199
|
[e]
|
|
9187
|
-
),
|
|
9200
|
+
), _ = z(
|
|
9188
9201
|
async (c) => {
|
|
9189
9202
|
const {
|
|
9190
|
-
str_date:
|
|
9191
|
-
end_date:
|
|
9192
|
-
limit:
|
|
9193
|
-
page:
|
|
9194
|
-
order_token:
|
|
9203
|
+
str_date: y,
|
|
9204
|
+
end_date: f,
|
|
9205
|
+
limit: U = 25,
|
|
9206
|
+
page: C = 1,
|
|
9207
|
+
order_token: v
|
|
9195
9208
|
} = c;
|
|
9196
9209
|
return await e.get("/report/cash-deposit-orders", {
|
|
9197
9210
|
params: {
|
|
9198
|
-
str_date:
|
|
9199
|
-
end_date:
|
|
9200
|
-
limit:
|
|
9201
|
-
page:
|
|
9202
|
-
order_token:
|
|
9211
|
+
str_date: y,
|
|
9212
|
+
end_date: f,
|
|
9213
|
+
limit: U,
|
|
9214
|
+
page: C,
|
|
9215
|
+
order_token: v
|
|
9203
9216
|
}
|
|
9204
9217
|
});
|
|
9205
9218
|
},
|
|
@@ -9214,29 +9227,30 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9214
9227
|
depositTransactionApi: b,
|
|
9215
9228
|
eventTransactionApi: d,
|
|
9216
9229
|
withdrawTransactionApi: l,
|
|
9217
|
-
redeemCodeDepositApi:
|
|
9218
|
-
invoiceApi:
|
|
9219
|
-
updateInvoiceApi:
|
|
9220
|
-
transactionRecordApi:
|
|
9221
|
-
treasureRecordApi:
|
|
9222
|
-
snCashRecordApi:
|
|
9230
|
+
redeemCodeDepositApi: i,
|
|
9231
|
+
invoiceApi: o,
|
|
9232
|
+
updateInvoiceApi: s,
|
|
9233
|
+
transactionRecordApi: u,
|
|
9234
|
+
treasureRecordApi: m,
|
|
9235
|
+
snCashRecordApi: _,
|
|
9236
|
+
otherTransactionApi: a
|
|
9223
9237
|
};
|
|
9224
9238
|
}, Cs = ({ options: e } = {}) => {
|
|
9225
9239
|
const { depositApiV1: n } = Me();
|
|
9226
|
-
return
|
|
9240
|
+
return $({
|
|
9227
9241
|
queryKey: ["depositV1"],
|
|
9228
9242
|
queryFn: n,
|
|
9229
9243
|
...e
|
|
9230
9244
|
});
|
|
9231
9245
|
}, vs = ({ paramsData: e, options: n } = {}) => {
|
|
9232
9246
|
const { depositApiV2: t } = Me();
|
|
9233
|
-
return
|
|
9247
|
+
return $({
|
|
9234
9248
|
queryKey: ["depositV2", e],
|
|
9235
9249
|
queryFn: () => t({ paramsData: e }),
|
|
9236
9250
|
select: (r) => {
|
|
9237
|
-
const { third_party: p, bank: g, vip: b } = r, d =
|
|
9251
|
+
const { third_party: p, bank: g, vip: b } = r, d = Le(p, (l) => ({
|
|
9238
9252
|
...l,
|
|
9239
|
-
providerList:
|
|
9253
|
+
providerList: Le(l.providers, (a) => ({
|
|
9240
9254
|
...a,
|
|
9241
9255
|
providerUid: a.uid,
|
|
9242
9256
|
providerImageUrl: `${Ke}/paymentIcon/${Ei(a.provider_name)}.png`,
|
|
@@ -9269,14 +9283,14 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9269
9283
|
});
|
|
9270
9284
|
}, ks = ({ paramsData: e, options: n } = {}) => {
|
|
9271
9285
|
const { depositTransactionApi: t } = Me();
|
|
9272
|
-
return
|
|
9286
|
+
return $({
|
|
9273
9287
|
queryKey: ["depositTransaction", e],
|
|
9274
9288
|
queryFn: () => t({ paramsData: e }),
|
|
9275
9289
|
...n
|
|
9276
9290
|
});
|
|
9277
9291
|
}, xs = ({ paramsData: e, options: n } = {}) => {
|
|
9278
9292
|
const { eventTransactionApi: t } = Me();
|
|
9279
|
-
return
|
|
9293
|
+
return $({
|
|
9280
9294
|
queryKey: ["eventTransaction", e],
|
|
9281
9295
|
queryFn: () => t({ paramsData: e }),
|
|
9282
9296
|
...n
|
|
@@ -9290,7 +9304,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9290
9304
|
});
|
|
9291
9305
|
}, Ds = ({ paramsData: e, options: n } = {}) => {
|
|
9292
9306
|
const { withdrawTransactionApi: t } = Me();
|
|
9293
|
-
return
|
|
9307
|
+
return $({
|
|
9294
9308
|
queryKey: ["withdrawTransaction", e],
|
|
9295
9309
|
queryFn: () => t({ paramsData: e }),
|
|
9296
9310
|
...n
|
|
@@ -9318,47 +9332,54 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9318
9332
|
});
|
|
9319
9333
|
}, pu = ({ options: e, paramsData: n } = {}) => {
|
|
9320
9334
|
const { transactionRecordApi: t } = Me();
|
|
9321
|
-
return
|
|
9335
|
+
return $({
|
|
9322
9336
|
queryKey: ["transactionRecord", "deposit"],
|
|
9323
9337
|
queryFn: () => t(n, "deposit"),
|
|
9324
9338
|
...e
|
|
9325
9339
|
});
|
|
9326
9340
|
}, gu = ({ options: e, paramsData: n } = {}) => {
|
|
9327
9341
|
const { transactionRecordApi: t } = Me();
|
|
9328
|
-
return
|
|
9342
|
+
return $({
|
|
9329
9343
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9330
9344
|
queryFn: () => t(n, "withdraw"),
|
|
9331
9345
|
...e
|
|
9332
9346
|
});
|
|
9333
9347
|
}, du = ({ options: e, paramsData: n } = {}) => {
|
|
9334
9348
|
const { transactionRecordApi: t } = Me();
|
|
9335
|
-
return
|
|
9349
|
+
return $({
|
|
9336
9350
|
queryKey: ["transactionRecord", "event"],
|
|
9337
9351
|
queryFn: () => t(n, "event"),
|
|
9338
9352
|
...e
|
|
9339
9353
|
});
|
|
9340
9354
|
}, cu = ({ options: e, paramsData: n } = {}) => {
|
|
9341
9355
|
const { transactionRecordApi: t } = Me();
|
|
9342
|
-
return
|
|
9356
|
+
return $({
|
|
9343
9357
|
queryKey: ["transactionRecord", "rebate"],
|
|
9344
9358
|
queryFn: () => t(n, "rebate"),
|
|
9345
9359
|
...e
|
|
9346
9360
|
});
|
|
9347
9361
|
}, fu = ({ options: e, paramsData: n } = {}) => {
|
|
9348
9362
|
const { treasureRecordApi: t } = Me();
|
|
9349
|
-
return
|
|
9363
|
+
return $({
|
|
9350
9364
|
queryKey: ["treasureRecord", n],
|
|
9351
9365
|
queryFn: () => t(n),
|
|
9352
9366
|
...e
|
|
9353
9367
|
});
|
|
9354
9368
|
}, _u = ({ options: e, paramsData: n } = {}) => {
|
|
9355
9369
|
const { snCashRecordApi: t } = Me();
|
|
9356
|
-
return
|
|
9370
|
+
return $({
|
|
9357
9371
|
queryKey: ["snCashRecord", n],
|
|
9358
9372
|
queryFn: () => t(n),
|
|
9359
9373
|
...e
|
|
9360
9374
|
});
|
|
9361
|
-
}, yu = ({
|
|
9375
|
+
}, yu = ({ options: e, paramsData: n } = {}) => {
|
|
9376
|
+
const { otherTransactionApi: t } = Me();
|
|
9377
|
+
return $({
|
|
9378
|
+
queryKey: ["otherTransaction", n],
|
|
9379
|
+
queryFn: () => t({ paramsData: n }),
|
|
9380
|
+
...e
|
|
9381
|
+
});
|
|
9382
|
+
}, Uu = ({
|
|
9362
9383
|
depositV1: e = {},
|
|
9363
9384
|
depositV2: n = {},
|
|
9364
9385
|
depositTransaction: t = {},
|
|
@@ -9368,7 +9389,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9368
9389
|
eventTransaction: b = {},
|
|
9369
9390
|
withdrawTransaction: d = {}
|
|
9370
9391
|
} = {}) => {
|
|
9371
|
-
const l = Cs(e), a = vs(n), i = ks(t), o = hs(r), s = Ts(p), u = Ss(g), m = xs(b),
|
|
9392
|
+
const l = Cs(e), a = vs(n), i = ks(t), o = hs(r), s = Ts(p), u = Ss(g), m = xs(b), _ = Ds(
|
|
9372
9393
|
d
|
|
9373
9394
|
);
|
|
9374
9395
|
return {
|
|
@@ -9379,12 +9400,12 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9379
9400
|
withdrawAction: s,
|
|
9380
9401
|
bankDepositAction: u,
|
|
9381
9402
|
eventTransaction: m,
|
|
9382
|
-
withdrawTransaction:
|
|
9403
|
+
withdrawTransaction: _
|
|
9383
9404
|
};
|
|
9384
9405
|
}, sr = "3.7.8", Es = sr, Ia = typeof Buffer == "function", Rn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Pn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ns = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ya = Array.prototype.slice.call(Ns), st = ((e) => {
|
|
9385
9406
|
let n = {};
|
|
9386
9407
|
return e.forEach((t, r) => n[t] = r), n;
|
|
9387
|
-
})(Ya), Ls = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,
|
|
9408
|
+
})(Ya), Ls = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Re = String.fromCharCode.bind(String), wn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), mr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), ur = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), pr = (e) => {
|
|
9388
9409
|
let n, t, r, p, g = "";
|
|
9389
9410
|
const b = e.length % 3;
|
|
9390
9411
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9396,25 +9417,25 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9396
9417
|
}, Si = typeof btoa == "function" ? (e) => btoa(e) : Ia ? (e) => Buffer.from(e, "binary").toString("base64") : pr, gi = Ia ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
9397
9418
|
let t = [];
|
|
9398
9419
|
for (let r = 0, p = e.length; r < p; r += 4096)
|
|
9399
|
-
t.push(
|
|
9420
|
+
t.push(Re.apply(null, e.subarray(r, r + 4096)));
|
|
9400
9421
|
return Si(t.join(""));
|
|
9401
9422
|
}, Kt = (e, n = !1) => n ? mr(gi(e)) : gi(e), Gs = (e) => {
|
|
9402
9423
|
if (e.length < 2) {
|
|
9403
9424
|
var n = e.charCodeAt(0);
|
|
9404
|
-
return n < 128 ? e : n < 2048 ?
|
|
9425
|
+
return n < 128 ? e : n < 2048 ? Re(192 | n >>> 6) + Re(128 | n & 63) : Re(224 | n >>> 12 & 15) + Re(128 | n >>> 6 & 63) + Re(128 | n & 63);
|
|
9405
9426
|
} else {
|
|
9406
9427
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9407
|
-
return
|
|
9428
|
+
return Re(240 | n >>> 18 & 7) + Re(128 | n >>> 12 & 63) + Re(128 | n >>> 6 & 63) + Re(128 | n & 63);
|
|
9408
9429
|
}
|
|
9409
9430
|
}, Ms = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, gr = (e) => e.replace(Ms, Gs), Fn = Ia ? (e) => Buffer.from(e, "utf8").toString("base64") : Pn ? (e) => gi(Pn.encode(e)) : (e) => Si(gr(e)), Ha = (e, n = !1) => n ? mr(Fn(e)) : Fn(e), An = (e) => Ha(e, !0), Rs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ps = (e) => {
|
|
9410
9431
|
switch (e.length) {
|
|
9411
9432
|
case 4:
|
|
9412
9433
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), t = n - 65536;
|
|
9413
|
-
return
|
|
9434
|
+
return Re((t >>> 10) + 55296) + Re((t & 1023) + 56320);
|
|
9414
9435
|
case 3:
|
|
9415
|
-
return
|
|
9436
|
+
return Re((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
9416
9437
|
default:
|
|
9417
|
-
return
|
|
9438
|
+
return Re((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9418
9439
|
}
|
|
9419
9440
|
}, dr = (e) => e.replace(Rs, Ps), cr = (e) => {
|
|
9420
9441
|
if (e = e.replace(/\s+/g, ""), !Ls.test(e))
|
|
@@ -9422,7 +9443,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9422
9443
|
e += "==".slice(2 - (e.length & 3));
|
|
9423
9444
|
let n, t, r, p = [];
|
|
9424
9445
|
for (let g = 0; g < e.length; )
|
|
9425
|
-
n = st[e.charAt(g++)] << 18 | st[e.charAt(g++)] << 12 | (t = st[e.charAt(g++)]) << 6 | (r = st[e.charAt(g++)]), t === 64 ? p.push(
|
|
9446
|
+
n = st[e.charAt(g++)] << 18 | st[e.charAt(g++)] << 12 | (t = st[e.charAt(g++)]) << 6 | (r = st[e.charAt(g++)]), t === 64 ? p.push(Re(n >> 16 & 255)) : r === 64 ? p.push(Re(n >> 16 & 255, n >> 8 & 255)) : p.push(Re(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9426
9447
|
return p.join("");
|
|
9427
9448
|
}, Di = typeof atob == "function" ? (e) => atob(ur(e)) : Ia ? (e) => Buffer.from(e, "base64").toString("binary") : cr, fr = Ia ? (e) => wn(Buffer.from(e, "base64")) : (e) => wn(Di(e).split("").map((n) => n.charCodeAt(0))), _r = (e) => fr(yr(e)), ws = Ia ? (e) => Buffer.from(e, "base64").toString("utf8") : Rn ? (e) => Rn.decode(fr(e)) : (e) => dr(Di(e)), yr = (e) => ur(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), di = (e) => ws(yr(e)), Fs = (e) => {
|
|
9428
9449
|
if (typeof e != "string")
|
|
@@ -9479,9 +9500,9 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9479
9500
|
extendString: br,
|
|
9480
9501
|
extendUint8Array: Cr,
|
|
9481
9502
|
extendBuiltins: As
|
|
9482
|
-
},
|
|
9503
|
+
}, bu = (e, n) => {
|
|
9483
9504
|
const { playGameApi: t } = Ci();
|
|
9484
|
-
return
|
|
9505
|
+
return $({
|
|
9485
9506
|
queryKey: ["playGame"],
|
|
9486
9507
|
queryFn: async () => {
|
|
9487
9508
|
const { gameUid: r, gameCode: p, isMobile: g, gameCurrency: b, currentCurrency: d } = e || {}, l = await t({
|
|
@@ -9497,7 +9518,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9497
9518
|
portrait: s,
|
|
9498
9519
|
url: u,
|
|
9499
9520
|
is_html_code: m,
|
|
9500
|
-
message:
|
|
9521
|
+
message: _
|
|
9501
9522
|
} = l;
|
|
9502
9523
|
return {
|
|
9503
9524
|
gameCurrency: a,
|
|
@@ -9507,7 +9528,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9507
9528
|
isHtmlCode: m,
|
|
9508
9529
|
gameUrl: u,
|
|
9509
9530
|
decodeGameUrl: Os.decode(u),
|
|
9510
|
-
message:
|
|
9531
|
+
message: _
|
|
9511
9532
|
};
|
|
9512
9533
|
},
|
|
9513
9534
|
enabled: !!e?.gameCode,
|
|
@@ -9521,7 +9542,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9521
9542
|
};
|
|
9522
9543
|
}, Bs = ({ options: e } = {}) => {
|
|
9523
9544
|
const { currentRebateApi: n } = vr();
|
|
9524
|
-
return
|
|
9545
|
+
return $({
|
|
9525
9546
|
queryKey: ["currentRebate"],
|
|
9526
9547
|
queryFn: () => n(),
|
|
9527
9548
|
select: (t) => Ir(t, ["code", "status"]),
|
|
@@ -9534,7 +9555,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9534
9555
|
mutationFn: async () => n(),
|
|
9535
9556
|
...e
|
|
9536
9557
|
});
|
|
9537
|
-
},
|
|
9558
|
+
}, Cu = ({
|
|
9538
9559
|
options: e = {
|
|
9539
9560
|
currentRebate: {},
|
|
9540
9561
|
receiveRebate: {}
|
|
@@ -9566,14 +9587,14 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9566
9587
|
};
|
|
9567
9588
|
}, Ws = ({ options: e, formData: n } = {}) => {
|
|
9568
9589
|
const { rewardListApi: t } = at();
|
|
9569
|
-
return
|
|
9590
|
+
return $({
|
|
9570
9591
|
queryKey: ["rewardsList"],
|
|
9571
9592
|
queryFn: () => {
|
|
9572
9593
|
const { uid: r, params: p } = n || {};
|
|
9573
9594
|
return t({ uid: r, params: p });
|
|
9574
9595
|
},
|
|
9575
9596
|
select: (r) => {
|
|
9576
|
-
const p =
|
|
9597
|
+
const p = Le(r.data.data, (g) => {
|
|
9577
9598
|
const {
|
|
9578
9599
|
wagering_restricted_amount: b,
|
|
9579
9600
|
claimed_amount: d
|
|
@@ -9613,26 +9634,26 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9613
9634
|
});
|
|
9614
9635
|
}, Is = ({ options: e } = {}) => {
|
|
9615
9636
|
const { unUsedRewardListApi: n } = at();
|
|
9616
|
-
return
|
|
9637
|
+
return $({
|
|
9617
9638
|
queryKey: ["unUsedRewardsList"],
|
|
9618
9639
|
queryFn: n,
|
|
9619
9640
|
...e
|
|
9620
9641
|
});
|
|
9621
9642
|
}, Vs = ({ options: e } = {}) => {
|
|
9622
9643
|
const { expiredRewardListApi: n } = at();
|
|
9623
|
-
return
|
|
9644
|
+
return $({
|
|
9624
9645
|
queryKey: ["expiredRewardsList"],
|
|
9625
9646
|
queryFn: n,
|
|
9626
9647
|
...e
|
|
9627
9648
|
});
|
|
9628
9649
|
}, Js = ({ options: e } = {}) => {
|
|
9629
9650
|
const { historyRewardApi: n } = at();
|
|
9630
|
-
return
|
|
9651
|
+
return $({
|
|
9631
9652
|
queryKey: ["historyRewardsList"],
|
|
9632
9653
|
queryFn: n,
|
|
9633
9654
|
...e
|
|
9634
9655
|
});
|
|
9635
|
-
},
|
|
9656
|
+
}, vu = ({
|
|
9636
9657
|
options: e = {
|
|
9637
9658
|
rewardsList: {},
|
|
9638
9659
|
redeemReward: {},
|
|
@@ -9692,9 +9713,9 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9692
9713
|
treasureListApi: n,
|
|
9693
9714
|
redeemTreasureApi: t
|
|
9694
9715
|
};
|
|
9695
|
-
},
|
|
9716
|
+
}, hu = ({ paramsData: e, options: n } = {}) => {
|
|
9696
9717
|
const { client: t, lng: r } = se(), p = Qe(r || "tw"), { treasureListApi: g } = hr();
|
|
9697
|
-
return
|
|
9718
|
+
return $({
|
|
9698
9719
|
queryKey: ["treasureList", e],
|
|
9699
9720
|
queryFn: () => g(e),
|
|
9700
9721
|
select: (b) => {
|
|
@@ -9705,7 +9726,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9705
9726
|
last_page: Y(d, "last_page", 1)
|
|
9706
9727
|
};
|
|
9707
9728
|
return {
|
|
9708
|
-
list:
|
|
9729
|
+
list: Le(Y(d, "data", []), (i) => {
|
|
9709
9730
|
const o = Ie(i.treasure_copywriting, {
|
|
9710
9731
|
language: p
|
|
9711
9732
|
});
|
|
@@ -9720,7 +9741,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9720
9741
|
},
|
|
9721
9742
|
...n
|
|
9722
9743
|
});
|
|
9723
|
-
},
|
|
9744
|
+
}, Tu = ({ options: e } = {}) => {
|
|
9724
9745
|
const { redeemTreasureApi: n } = hr();
|
|
9725
9746
|
return ee({
|
|
9726
9747
|
mutationKey: ["redeemTreasure"],
|
|
@@ -9733,13 +9754,13 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9733
9754
|
vipListApi: n,
|
|
9734
9755
|
vipInfoApi: t
|
|
9735
9756
|
};
|
|
9736
|
-
},
|
|
9757
|
+
}, ku = ({ options: e } = {}) => {
|
|
9737
9758
|
const { store: n } = se(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: r } = Tr();
|
|
9738
|
-
return
|
|
9759
|
+
return $({
|
|
9739
9760
|
queryKey: ["vipInfo"],
|
|
9740
9761
|
queryFn: async () => r(),
|
|
9741
9762
|
select: (p) => {
|
|
9742
|
-
const { data: g } = p, b = Y(g, "data", []), d =
|
|
9763
|
+
const { data: g } = p, b = Y(g, "data", []), d = Le(b, (a) => ({
|
|
9743
9764
|
currentWager: a.wagering || a.value,
|
|
9744
9765
|
currentStatus: a.status,
|
|
9745
9766
|
currentOverflow: a.promotion_overflow,
|
|
@@ -9752,7 +9773,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9752
9773
|
currentType: g.type,
|
|
9753
9774
|
currentOverflow: g.promotion_overflow,
|
|
9754
9775
|
nextLevel: g.promotion_level,
|
|
9755
|
-
typeList:
|
|
9776
|
+
typeList: Le(d, (a) => a.type),
|
|
9756
9777
|
currentWagerKeyBy: l
|
|
9757
9778
|
};
|
|
9758
9779
|
},
|
|
@@ -9760,7 +9781,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9760
9781
|
});
|
|
9761
9782
|
}, Zs = ({ options: e } = {}) => {
|
|
9762
9783
|
const { store: n } = se(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: r } = Tr();
|
|
9763
|
-
return
|
|
9784
|
+
return $({
|
|
9764
9785
|
queryKey: ["vipList"],
|
|
9765
9786
|
queryFn: async () => {
|
|
9766
9787
|
const p = window.vip_list;
|
|
@@ -9768,17 +9789,17 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9768
9789
|
},
|
|
9769
9790
|
select: (p) => {
|
|
9770
9791
|
const g = ea(p) ? p : p.data;
|
|
9771
|
-
return
|
|
9792
|
+
return Le(g, (d) => {
|
|
9772
9793
|
const {
|
|
9773
9794
|
vip_criteria: l,
|
|
9774
9795
|
vip_payment_tags: a,
|
|
9775
9796
|
vip_withdrawal_rate: i,
|
|
9776
9797
|
rebate_range: o,
|
|
9777
9798
|
vip_game_rebate: s
|
|
9778
|
-
} = d, u = Ie(l, { currency_code: t }) || {}, m = Ie(a, { currency_code: t }) || {},
|
|
9799
|
+
} = d, u = Ie(l, { currency_code: t }) || {}, m = Ie(a, { currency_code: t }) || {}, _ = i, c = Le(o, (U) => ({
|
|
9779
9800
|
...U,
|
|
9780
9801
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9781
|
-
})), y = Y(s, "[0]", {}),
|
|
9802
|
+
})), y = Y(s, "[0]", {}), f = {
|
|
9782
9803
|
...y,
|
|
9783
9804
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9784
9805
|
};
|
|
@@ -9787,15 +9808,15 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9787
9808
|
vipImageUrl: `${Ke}/vip/vip${d.level}_l.avif`,
|
|
9788
9809
|
vipRule: u,
|
|
9789
9810
|
vipWithdraw: m,
|
|
9790
|
-
vipWithdrawFeeRate:
|
|
9791
|
-
vipRebateRange:
|
|
9792
|
-
processedVipGameRebate:
|
|
9811
|
+
vipWithdrawFeeRate: _,
|
|
9812
|
+
vipRebateRange: c,
|
|
9813
|
+
processedVipGameRebate: f
|
|
9793
9814
|
};
|
|
9794
9815
|
});
|
|
9795
9816
|
},
|
|
9796
9817
|
...e
|
|
9797
9818
|
});
|
|
9798
|
-
},
|
|
9819
|
+
}, xu = ({ options: e } = {
|
|
9799
9820
|
vipList: {}
|
|
9800
9821
|
}) => ({
|
|
9801
9822
|
vipList: Zs({ options: e.vipList })
|
|
@@ -9818,7 +9839,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9818
9839
|
default:
|
|
9819
9840
|
return "En";
|
|
9820
9841
|
}
|
|
9821
|
-
}, mt = "game-icon-ds88",
|
|
9842
|
+
}, mt = "game-icon-ds88", Su = ({ gameData: e = {} } = {}) => {
|
|
9822
9843
|
const { lng: n } = se(), t = On(n), {
|
|
9823
9844
|
gameCode: r,
|
|
9824
9845
|
// 遊戲代碼
|
|
@@ -9845,12 +9866,12 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9845
9866
|
// 是否維護中
|
|
9846
9867
|
support_vertical: m,
|
|
9847
9868
|
// 是否支援直向
|
|
9848
|
-
support_horizontal:
|
|
9869
|
+
support_horizontal: _,
|
|
9849
9870
|
// 是否支援橫向
|
|
9850
|
-
popularityRanking:
|
|
9871
|
+
popularityRanking: c,
|
|
9851
9872
|
is_invalid_bet: y,
|
|
9852
9873
|
// 是否無效投注
|
|
9853
|
-
haveJackpot:
|
|
9874
|
+
haveJackpot: f,
|
|
9854
9875
|
// 是否有累積獎金
|
|
9855
9876
|
userClickCount: U,
|
|
9856
9877
|
// 用戶點擊次數
|
|
@@ -9858,7 +9879,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9858
9879
|
// 英文名稱
|
|
9859
9880
|
gameNameZh: v,
|
|
9860
9881
|
// 中文名稱
|
|
9861
|
-
gameNameVi:
|
|
9882
|
+
gameNameVi: x,
|
|
9862
9883
|
// 越南名稱
|
|
9863
9884
|
gameNameTw: E
|
|
9864
9885
|
// 繁體中文名稱
|
|
@@ -9876,20 +9897,20 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9876
9897
|
gameTags: s,
|
|
9877
9898
|
isUnderMaintenance: u,
|
|
9878
9899
|
supportVertical: m,
|
|
9879
|
-
supportHorizontal:
|
|
9900
|
+
supportHorizontal: _,
|
|
9880
9901
|
userClickCount: U,
|
|
9881
9902
|
gameNameEn: C,
|
|
9882
9903
|
gameNameZh: v,
|
|
9883
|
-
gameNameVi:
|
|
9904
|
+
gameNameVi: x,
|
|
9884
9905
|
gameNameTw: E,
|
|
9885
9906
|
gameName: G,
|
|
9886
9907
|
gameImageUrl: O,
|
|
9887
9908
|
gameImageUrlAnimated: k,
|
|
9888
9909
|
fallbackGameImageUrl: h,
|
|
9889
9910
|
fallbackGameImageUrlAnimated: F,
|
|
9890
|
-
popularityRanking:
|
|
9911
|
+
popularityRanking: c,
|
|
9891
9912
|
isInvalidBet: y,
|
|
9892
|
-
haveJackpot:
|
|
9913
|
+
haveJackpot: f
|
|
9893
9914
|
};
|
|
9894
9915
|
}, Ks = (e, n = !1) => Jr([
|
|
9895
9916
|
"EVO",
|
|
@@ -9902,7 +9923,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9902
9923
|
"HACK",
|
|
9903
9924
|
"NAGA",
|
|
9904
9925
|
"RSG"
|
|
9905
|
-
], e) && n ? `${e}_dark` : e,
|
|
9926
|
+
], e) && n ? `${e}_dark` : e, Du = ({ platformData: e, darkMode: n } = {}) => {
|
|
9906
9927
|
const {
|
|
9907
9928
|
SubPlatformEnum: t,
|
|
9908
9929
|
// 子平台枚舉
|
|
@@ -9938,7 +9959,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9938
9959
|
tempMaintenanceEndTime: o,
|
|
9939
9960
|
platformImageUrl: s
|
|
9940
9961
|
};
|
|
9941
|
-
}, qs = (e = {}) => !jt(e) ||
|
|
9962
|
+
}, qs = (e = {}) => !jt(e) || Ne(e) ? [] : Yt(e), Bn = (e = []) => !ea(e) || Ne(e) ? [] : Le(e, "platform"), $s = (e = []) => !ea(e) || Ne(e) ? [] : Le(e, "gameTypeName"), Qs = (e = []) => !ea(e) || Ne(e) ? [] : Le(e, "game_subtype"), js = (e = {}) => !jt(e) || Ne(e) ? [] : Yt(e), Ys = (e = [], n = []) => !ea(e) || Ne(e) ? {} : !ea(n) || Ne(n) ? {} : e.reduce((t, r) => {
|
|
9942
9963
|
const p = n.map((g) => g.game_subtype);
|
|
9943
9964
|
return p.forEach((g) => {
|
|
9944
9965
|
t[g] = t[g] || [];
|
|
@@ -9949,7 +9970,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9949
9970
|
gameList: t = {},
|
|
9950
9971
|
allGameTypes: r = [],
|
|
9951
9972
|
allPlatforms: p = []
|
|
9952
|
-
}) => !ea(e) || !ea(n) ? {} :
|
|
9973
|
+
}) => !ea(e) || !ea(n) ? {} : Ne(t) ? {} : e.reduce((g, b) => {
|
|
9953
9974
|
const d = al({
|
|
9954
9975
|
gameTypeName: b,
|
|
9955
9976
|
platforms: n,
|
|
@@ -9957,8 +9978,8 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9957
9978
|
allGameTypes: r,
|
|
9958
9979
|
allPlatforms: p
|
|
9959
9980
|
});
|
|
9960
|
-
return
|
|
9961
|
-
}, {}),
|
|
9981
|
+
return Ne(d) || (g[b] = d), g;
|
|
9982
|
+
}, {}), Eu = ({
|
|
9962
9983
|
types: e = [],
|
|
9963
9984
|
platforms: n = [],
|
|
9964
9985
|
allGameType: t = [],
|
|
@@ -9973,13 +9994,13 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
9973
9994
|
gamesOfType: l,
|
|
9974
9995
|
allPlatforms: r
|
|
9975
9996
|
});
|
|
9976
|
-
return
|
|
9997
|
+
return Ne(s) ? i : { ...i, [o]: s };
|
|
9977
9998
|
}, {});
|
|
9978
|
-
return
|
|
9979
|
-
}, {}), em = (e = {}) => !jt(e) ||
|
|
9999
|
+
return Ne(a) || (g[b] = a), g;
|
|
10000
|
+
}, {}), em = (e = {}) => !jt(e) || Ne(e) ? {} : Object.values(e).reduce((t, r) => (Object.entries(r).forEach(([p, g]) => {
|
|
9980
10001
|
t[p] ? t[p] = [...t[p], ...g] : t[p] = g;
|
|
9981
10002
|
}), t), {}), am = (e = {}) => {
|
|
9982
|
-
if (!jt(e) ||
|
|
10003
|
+
if (!jt(e) || Ne(e)) return {};
|
|
9983
10004
|
const n = {};
|
|
9984
10005
|
for (const [t, r] of Object.entries(e)) {
|
|
9985
10006
|
n[t] = {};
|
|
@@ -10002,19 +10023,19 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
10002
10023
|
highlightGames: a = [],
|
|
10003
10024
|
originPlatform: i = []
|
|
10004
10025
|
}) => {
|
|
10005
|
-
const o = qs(e), s = Bn(n), u = $s(t), m = Qs(r),
|
|
10026
|
+
const o = qs(e), s = Bn(n), u = $s(t), m = Qs(r), _ = Bn(i), c = js(d), y = Xs({
|
|
10006
10027
|
gameTypes: u,
|
|
10007
10028
|
platforms: s,
|
|
10008
10029
|
gameList: e,
|
|
10009
10030
|
allGameTypes: t,
|
|
10010
10031
|
allPlatforms: n
|
|
10011
|
-
}),
|
|
10032
|
+
}), f = Le(n, (G) => {
|
|
10012
10033
|
const O = `${Ke}/${$n}/${G.platformEnum}.png`;
|
|
10013
10034
|
return {
|
|
10014
10035
|
...G,
|
|
10015
10036
|
platformImageUrl: O
|
|
10016
10037
|
};
|
|
10017
|
-
}), U = Ys(o, r), C = em(y), v = am(C),
|
|
10038
|
+
}), U = Ys(o, r), C = em(y), v = am(C), x = In(y).reduce(
|
|
10018
10039
|
(G, [O, k]) => {
|
|
10019
10040
|
const h = Yt(Zr(k));
|
|
10020
10041
|
return G[O] = h, G;
|
|
@@ -10027,8 +10048,8 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
10027
10048
|
return {
|
|
10028
10049
|
platform: {
|
|
10029
10050
|
all: s,
|
|
10030
|
-
origin:
|
|
10031
|
-
originPlatform:
|
|
10051
|
+
origin: _,
|
|
10052
|
+
originPlatform: f,
|
|
10032
10053
|
byGameType: E
|
|
10033
10054
|
},
|
|
10034
10055
|
type: {
|
|
@@ -10041,23 +10062,23 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
10041
10062
|
all: o,
|
|
10042
10063
|
new: p,
|
|
10043
10064
|
top: g,
|
|
10044
|
-
favorite:
|
|
10065
|
+
favorite: c,
|
|
10045
10066
|
highlight: a,
|
|
10046
10067
|
exclusiveBrand: l,
|
|
10047
10068
|
randomlySelected: b
|
|
10048
10069
|
},
|
|
10049
10070
|
categorized: {
|
|
10050
|
-
bySubType: { ...U, MyFavorite:
|
|
10071
|
+
bySubType: { ...U, MyFavorite: c },
|
|
10051
10072
|
byPlatform: C,
|
|
10052
10073
|
byPlatformAndCategory: v,
|
|
10053
10074
|
byGameTypeAndPlatform: y,
|
|
10054
|
-
byGameType:
|
|
10075
|
+
byGameType: x
|
|
10055
10076
|
},
|
|
10056
10077
|
user: {
|
|
10057
|
-
favorite:
|
|
10078
|
+
favorite: c
|
|
10058
10079
|
}
|
|
10059
10080
|
};
|
|
10060
|
-
},
|
|
10081
|
+
}, Nu = (e = []) => !ea(e) || Ne(e) ? [] : Yt(e, (n) => Ne(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((t) => ({
|
|
10061
10082
|
...n,
|
|
10062
10083
|
...t,
|
|
10063
10084
|
platform: t.SubPlatformEnum,
|
|
@@ -10083,7 +10104,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
10083
10104
|
},
|
|
10084
10105
|
user: { favorite: [] }
|
|
10085
10106
|
}, nm = ({ enabled: e = !0 } = {}) => {
|
|
10086
|
-
const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: r } = oe(), { data: p, isLoading: g, error: b, refetch: d } =
|
|
10107
|
+
const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: r } = oe(), { data: p, isLoading: g, error: b, refetch: d } = $({
|
|
10087
10108
|
queryKey: ["gamesInfo"],
|
|
10088
10109
|
queryFn: async () => {
|
|
10089
10110
|
let l = {}, a = {};
|
|
@@ -36658,7 +36679,7 @@ const nu = ({ onIdle: e, onActive: n, onAction: t, timeout: r = 6e5 }) => fs({
|
|
|
36658
36679
|
const r = nm({ enabled: n });
|
|
36659
36680
|
return /* @__PURE__ */ Oe.jsx(Qn.Provider, { value: r, children: e });
|
|
36660
36681
|
};
|
|
36661
|
-
function
|
|
36682
|
+
function Lu({
|
|
36662
36683
|
children: e,
|
|
36663
36684
|
autoFetchGamesInfo: n = !1,
|
|
36664
36685
|
useMockData: t = !1,
|
|
@@ -36688,7 +36709,7 @@ function Nu({
|
|
|
36688
36709
|
}
|
|
36689
36710
|
) }) }) });
|
|
36690
36711
|
}
|
|
36691
|
-
const
|
|
36712
|
+
const Gu = ({ onFunction: e = () => {
|
|
36692
36713
|
}, buttonProps: n = {} } = {}) => {
|
|
36693
36714
|
const { lineConfig: t } = se(), r = te(!1), p = Y(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), l = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = nr({
|
|
36694
36715
|
options: {
|
|
@@ -36767,10 +36788,10 @@ var ka;
|
|
|
36767
36788
|
const u = this.addEccAndInterleave(i);
|
|
36768
36789
|
if (this.drawCodewords(u), o == -1) {
|
|
36769
36790
|
let m = 1e9;
|
|
36770
|
-
for (let
|
|
36771
|
-
this.applyMask(
|
|
36772
|
-
const
|
|
36773
|
-
|
|
36791
|
+
for (let _ = 0; _ < 8; _++) {
|
|
36792
|
+
this.applyMask(_), this.drawFormatBits(_);
|
|
36793
|
+
const c = this.getPenaltyScore();
|
|
36794
|
+
c < m && (o = _, m = c), this.applyMask(_);
|
|
36774
36795
|
}
|
|
36775
36796
|
}
|
|
36776
36797
|
p(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
|
|
@@ -36806,33 +36827,33 @@ var ka;
|
|
|
36806
36827
|
static encodeSegments(l, a, i = 1, o = 40, s = -1, u = !0) {
|
|
36807
36828
|
if (!(X.MIN_VERSION <= i && i <= o && o <= X.MAX_VERSION) || s < -1 || s > 7)
|
|
36808
36829
|
throw new RangeError("Invalid value");
|
|
36809
|
-
let m,
|
|
36830
|
+
let m, _;
|
|
36810
36831
|
for (m = i; ; m++) {
|
|
36811
36832
|
const U = X.getNumDataCodewords(m, a) * 8, C = b.getTotalBits(l, m);
|
|
36812
36833
|
if (C <= U) {
|
|
36813
|
-
|
|
36834
|
+
_ = C;
|
|
36814
36835
|
break;
|
|
36815
36836
|
}
|
|
36816
36837
|
if (m >= o)
|
|
36817
36838
|
throw new RangeError("Data too long");
|
|
36818
36839
|
}
|
|
36819
36840
|
for (const U of [X.Ecc.MEDIUM, X.Ecc.QUARTILE, X.Ecc.HIGH])
|
|
36820
|
-
u &&
|
|
36821
|
-
let
|
|
36841
|
+
u && _ <= X.getNumDataCodewords(m, U) * 8 && (a = U);
|
|
36842
|
+
let c = [];
|
|
36822
36843
|
for (const U of l) {
|
|
36823
|
-
t(U.mode.modeBits, 4,
|
|
36844
|
+
t(U.mode.modeBits, 4, c), t(U.numChars, U.mode.numCharCountBits(m), c);
|
|
36824
36845
|
for (const C of U.getData())
|
|
36825
|
-
|
|
36846
|
+
c.push(C);
|
|
36826
36847
|
}
|
|
36827
|
-
p(
|
|
36848
|
+
p(c.length == _);
|
|
36828
36849
|
const y = X.getNumDataCodewords(m, a) * 8;
|
|
36829
|
-
p(
|
|
36830
|
-
for (let U = 236;
|
|
36831
|
-
t(U, 8,
|
|
36832
|
-
let
|
|
36833
|
-
for (;
|
|
36834
|
-
|
|
36835
|
-
return
|
|
36850
|
+
p(c.length <= y), t(0, Math.min(4, y - c.length), c), t(0, (8 - c.length % 8) % 8, c), p(c.length % 8 == 0);
|
|
36851
|
+
for (let U = 236; c.length < y; U ^= 253)
|
|
36852
|
+
t(U, 8, c);
|
|
36853
|
+
let f = [];
|
|
36854
|
+
for (; f.length * 8 < c.length; )
|
|
36855
|
+
f.push(0);
|
|
36856
|
+
return c.forEach((U, C) => f[C >>> 3] |= U << 7 - (C & 7)), new X(m, a, f, s);
|
|
36836
36857
|
}
|
|
36837
36858
|
/*-- Accessor methods --*/
|
|
36838
36859
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -36920,21 +36941,21 @@ var ka;
|
|
|
36920
36941
|
const a = this.version, i = this.errorCorrectionLevel;
|
|
36921
36942
|
if (l.length != X.getNumDataCodewords(a, i))
|
|
36922
36943
|
throw new RangeError("Invalid argument");
|
|
36923
|
-
const o = X.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a], s = X.ECC_CODEWORDS_PER_BLOCK[i.ordinal][a], u = Math.floor(X.getNumRawDataModules(a) / 8), m = o - u % o,
|
|
36924
|
-
let
|
|
36944
|
+
const o = X.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a], s = X.ECC_CODEWORDS_PER_BLOCK[i.ordinal][a], u = Math.floor(X.getNumRawDataModules(a) / 8), m = o - u % o, _ = Math.floor(u / o);
|
|
36945
|
+
let c = [];
|
|
36925
36946
|
const y = X.reedSolomonComputeDivisor(s);
|
|
36926
36947
|
for (let U = 0, C = 0; U < o; U++) {
|
|
36927
|
-
let v = l.slice(C, C +
|
|
36948
|
+
let v = l.slice(C, C + _ - s + (U < m ? 0 : 1));
|
|
36928
36949
|
C += v.length;
|
|
36929
|
-
const
|
|
36930
|
-
U < m && v.push(0),
|
|
36950
|
+
const x = X.reedSolomonComputeRemainder(v, y);
|
|
36951
|
+
U < m && v.push(0), c.push(v.concat(x));
|
|
36931
36952
|
}
|
|
36932
|
-
let
|
|
36933
|
-
for (let U = 0; U <
|
|
36934
|
-
|
|
36935
|
-
(U !=
|
|
36953
|
+
let f = [];
|
|
36954
|
+
for (let U = 0; U < c[0].length; U++)
|
|
36955
|
+
c.forEach((C, v) => {
|
|
36956
|
+
(U != _ - s || v >= m) && f.push(C[U]);
|
|
36936
36957
|
});
|
|
36937
|
-
return p(
|
|
36958
|
+
return p(f.length == u), f;
|
|
36938
36959
|
}
|
|
36939
36960
|
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
36940
36961
|
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
@@ -36946,8 +36967,8 @@ var ka;
|
|
|
36946
36967
|
i == 6 && (i = 5);
|
|
36947
36968
|
for (let o = 0; o < this.size; o++)
|
|
36948
36969
|
for (let s = 0; s < 2; s++) {
|
|
36949
|
-
const u = i - s,
|
|
36950
|
-
!this.isFunction[
|
|
36970
|
+
const u = i - s, _ = (i + 1 & 2) == 0 ? this.size - 1 - o : o;
|
|
36971
|
+
!this.isFunction[_][u] && a < l.length * 8 && (this.modules[_][u] = r(l[a >>> 3], 7 - (a & 7)), a++);
|
|
36951
36972
|
}
|
|
36952
36973
|
}
|
|
36953
36974
|
p(a == l.length * 8);
|
|
@@ -36999,16 +37020,16 @@ var ka;
|
|
|
36999
37020
|
getPenaltyScore() {
|
|
37000
37021
|
let l = 0;
|
|
37001
37022
|
for (let s = 0; s < this.size; s++) {
|
|
37002
|
-
let u = !1, m = 0,
|
|
37003
|
-
for (let
|
|
37004
|
-
this.modules[s][
|
|
37005
|
-
l += this.finderPenaltyTerminateAndCount(u, m,
|
|
37023
|
+
let u = !1, m = 0, _ = [0, 0, 0, 0, 0, 0, 0];
|
|
37024
|
+
for (let c = 0; c < this.size; c++)
|
|
37025
|
+
this.modules[s][c] == u ? (m++, m == 5 ? l += X.PENALTY_N1 : m > 5 && l++) : (this.finderPenaltyAddHistory(m, _), u || (l += this.finderPenaltyCountPatterns(_) * X.PENALTY_N3), u = this.modules[s][c], m = 1);
|
|
37026
|
+
l += this.finderPenaltyTerminateAndCount(u, m, _) * X.PENALTY_N3;
|
|
37006
37027
|
}
|
|
37007
37028
|
for (let s = 0; s < this.size; s++) {
|
|
37008
|
-
let u = !1, m = 0,
|
|
37009
|
-
for (let
|
|
37010
|
-
this.modules[
|
|
37011
|
-
l += this.finderPenaltyTerminateAndCount(u, m,
|
|
37029
|
+
let u = !1, m = 0, _ = [0, 0, 0, 0, 0, 0, 0];
|
|
37030
|
+
for (let c = 0; c < this.size; c++)
|
|
37031
|
+
this.modules[c][s] == u ? (m++, m == 5 ? l += X.PENALTY_N1 : m > 5 && l++) : (this.finderPenaltyAddHistory(m, _), u || (l += this.finderPenaltyCountPatterns(_) * X.PENALTY_N3), u = this.modules[c][s], m = 1);
|
|
37032
|
+
l += this.finderPenaltyTerminateAndCount(u, m, _) * X.PENALTY_N3;
|
|
37012
37033
|
}
|
|
37013
37034
|
for (let s = 0; s < this.size - 1; s++)
|
|
37014
37035
|
for (let u = 0; u < this.size - 1; u++) {
|
|
@@ -37318,8 +37339,8 @@ function gm(e, n, t, r) {
|
|
|
37318
37339
|
const p = e.length + t * 2, g = Math.floor(n * pm), b = p / n, d = (r.width || g) * b, l = (r.height || g) * b, a = r.x == null ? e.length / 2 - d / 2 : r.x * b, i = r.y == null ? e.length / 2 - l / 2 : r.y * b, o = r.opacity == null ? 1 : r.opacity;
|
|
37319
37340
|
let s = null;
|
|
37320
37341
|
if (r.excavate) {
|
|
37321
|
-
let m = Math.floor(a),
|
|
37322
|
-
s = { x: m, y:
|
|
37342
|
+
let m = Math.floor(a), _ = Math.floor(i), c = Math.ceil(d + a - m), y = Math.ceil(l + i - _);
|
|
37343
|
+
s = { x: m, y: _, w: c, h: y };
|
|
37323
37344
|
}
|
|
37324
37345
|
const u = r.crossOrigin;
|
|
37325
37346
|
return { x: a, y: i, h: l, w: d, excavation: s, opacity: o, crossOrigin: u };
|
|
@@ -37338,7 +37359,7 @@ function Pr({
|
|
|
37338
37359
|
boostLevel: d
|
|
37339
37360
|
}) {
|
|
37340
37361
|
let l = de.useMemo(() => {
|
|
37341
|
-
const m = (Array.isArray(e) ? e : [e]).reduce((
|
|
37362
|
+
const m = (Array.isArray(e) ? e : [e]).reduce((_, c) => (_.push(...Aa.QrSegment.makeSegments(c)), _), []);
|
|
37342
37363
|
return Aa.QrCode.encodeSegments(
|
|
37343
37364
|
m,
|
|
37344
37365
|
sm[n],
|
|
@@ -37350,7 +37371,7 @@ function Pr({
|
|
|
37350
37371
|
}, [e, n, t, d]);
|
|
37351
37372
|
const { cells: a, margin: i, numCells: o, calculatedImageSettings: s } = de.useMemo(() => {
|
|
37352
37373
|
let u = l.getModules();
|
|
37353
|
-
const m = dm(r, p),
|
|
37374
|
+
const m = dm(r, p), _ = u.length + m * 2, c = gm(
|
|
37354
37375
|
u,
|
|
37355
37376
|
b,
|
|
37356
37377
|
m,
|
|
@@ -37359,8 +37380,8 @@ function Pr({
|
|
|
37359
37380
|
return {
|
|
37360
37381
|
cells: u,
|
|
37361
37382
|
margin: m,
|
|
37362
|
-
numCells:
|
|
37363
|
-
calculatedImageSettings:
|
|
37383
|
+
numCells: _,
|
|
37384
|
+
calculatedImageSettings: c
|
|
37364
37385
|
};
|
|
37365
37386
|
}, [l, b, g, r, p]);
|
|
37366
37387
|
return {
|
|
@@ -37391,7 +37412,7 @@ var cm = (function() {
|
|
|
37391
37412
|
boostLevel: o,
|
|
37392
37413
|
marginSize: s,
|
|
37393
37414
|
imageSettings: u
|
|
37394
|
-
} = r,
|
|
37415
|
+
} = r, _ = fi(r, [
|
|
37395
37416
|
"value",
|
|
37396
37417
|
"size",
|
|
37397
37418
|
"level",
|
|
@@ -37402,12 +37423,12 @@ var cm = (function() {
|
|
|
37402
37423
|
"boostLevel",
|
|
37403
37424
|
"marginSize",
|
|
37404
37425
|
"imageSettings"
|
|
37405
|
-
]), { style:
|
|
37426
|
+
]), { style: c } = _, y = fi(_, ["style"]), f = u?.src, U = de.useRef(null), C = de.useRef(null), v = de.useCallback(
|
|
37406
37427
|
(w) => {
|
|
37407
37428
|
U.current = w, typeof t == "function" ? t(w) : t && (t.current = w);
|
|
37408
37429
|
},
|
|
37409
37430
|
[t]
|
|
37410
|
-
), [
|
|
37431
|
+
), [x, E] = de.useState(!1), { margin: G, cells: O, numCells: k, calculatedImageSettings: h } = Pr({
|
|
37411
37432
|
value: p,
|
|
37412
37433
|
level: b,
|
|
37413
37434
|
minVersion: i,
|
|
@@ -37431,9 +37452,9 @@ var cm = (function() {
|
|
|
37431
37452
|
const W = window.devicePixelRatio || 1;
|
|
37432
37453
|
w.height = w.width = g * W;
|
|
37433
37454
|
const M = g / k * W;
|
|
37434
|
-
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = l, cm ? R.fill(new Path2D(Mr(P, G))) : O.forEach(function(D,
|
|
37455
|
+
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = l, cm ? R.fill(new Path2D(Mr(P, G))) : O.forEach(function(D, S) {
|
|
37435
37456
|
D.forEach(function(L, N) {
|
|
37436
|
-
L && R.fillRect(N + G,
|
|
37457
|
+
L && R.fillRect(N + G, S + G, 1, 1);
|
|
37437
37458
|
});
|
|
37438
37459
|
}), h && (R.globalAlpha = h.opacity), B && R.drawImage(
|
|
37439
37460
|
H,
|
|
@@ -37445,14 +37466,14 @@ var cm = (function() {
|
|
|
37445
37466
|
}
|
|
37446
37467
|
}), de.useEffect(() => {
|
|
37447
37468
|
E(!1);
|
|
37448
|
-
}, [
|
|
37449
|
-
const F = ci({ height: g, width: g },
|
|
37469
|
+
}, [f]);
|
|
37470
|
+
const F = ci({ height: g, width: g }, c);
|
|
37450
37471
|
let A = null;
|
|
37451
|
-
return
|
|
37472
|
+
return f != null && (A = /* @__PURE__ */ de.createElement(
|
|
37452
37473
|
"img",
|
|
37453
37474
|
{
|
|
37454
|
-
src:
|
|
37455
|
-
key:
|
|
37475
|
+
src: f,
|
|
37476
|
+
key: f,
|
|
37456
37477
|
style: { display: "none" },
|
|
37457
37478
|
onLoad: () => {
|
|
37458
37479
|
E(!0);
|
|
@@ -37487,7 +37508,7 @@ var wr = de.forwardRef(
|
|
|
37487
37508
|
title: s,
|
|
37488
37509
|
marginSize: u,
|
|
37489
37510
|
imageSettings: m
|
|
37490
|
-
} = r,
|
|
37511
|
+
} = r, _ = fi(r, [
|
|
37491
37512
|
"value",
|
|
37492
37513
|
"size",
|
|
37493
37514
|
"level",
|
|
@@ -37499,7 +37520,7 @@ var wr = de.forwardRef(
|
|
|
37499
37520
|
"title",
|
|
37500
37521
|
"marginSize",
|
|
37501
37522
|
"imageSettings"
|
|
37502
|
-
]), { margin:
|
|
37523
|
+
]), { margin: c, cells: y, numCells: f, calculatedImageSettings: U } = Pr({
|
|
37503
37524
|
value: p,
|
|
37504
37525
|
level: b,
|
|
37505
37526
|
minVersion: i,
|
|
@@ -37519,33 +37540,33 @@ var wr = de.forwardRef(
|
|
|
37519
37540
|
href: m.src,
|
|
37520
37541
|
height: U.h,
|
|
37521
37542
|
width: U.w,
|
|
37522
|
-
x: U.x +
|
|
37523
|
-
y: U.y +
|
|
37543
|
+
x: U.x + c,
|
|
37544
|
+
y: U.y + c,
|
|
37524
37545
|
preserveAspectRatio: "none",
|
|
37525
37546
|
opacity: U.opacity,
|
|
37526
37547
|
crossOrigin: U.crossOrigin
|
|
37527
37548
|
}
|
|
37528
37549
|
));
|
|
37529
|
-
const
|
|
37550
|
+
const x = Mr(C, c);
|
|
37530
37551
|
return /* @__PURE__ */ de.createElement(
|
|
37531
37552
|
"svg",
|
|
37532
37553
|
ci({
|
|
37533
37554
|
height: g,
|
|
37534
37555
|
width: g,
|
|
37535
|
-
viewBox: `0 0 ${
|
|
37556
|
+
viewBox: `0 0 ${f} ${f}`,
|
|
37536
37557
|
ref: t,
|
|
37537
37558
|
role: "img"
|
|
37538
|
-
},
|
|
37559
|
+
}, _),
|
|
37539
37560
|
!!s && /* @__PURE__ */ de.createElement("title", null, s),
|
|
37540
37561
|
/* @__PURE__ */ de.createElement(
|
|
37541
37562
|
"path",
|
|
37542
37563
|
{
|
|
37543
37564
|
fill: d,
|
|
37544
|
-
d: `M0,0 h${
|
|
37565
|
+
d: `M0,0 h${f}v${f}H0z`,
|
|
37545
37566
|
shapeRendering: "crispEdges"
|
|
37546
37567
|
}
|
|
37547
37568
|
),
|
|
37548
|
-
/* @__PURE__ */ de.createElement("path", { fill: l, d:
|
|
37569
|
+
/* @__PURE__ */ de.createElement("path", { fill: l, d: x, shapeRendering: "crispEdges" }),
|
|
37549
37570
|
v
|
|
37550
37571
|
);
|
|
37551
37572
|
}
|
|
@@ -37595,27 +37616,27 @@ const _m = {
|
|
|
37595
37616
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37596
37617
|
expired: "Kode QR telah kedaluwarsa"
|
|
37597
37618
|
}
|
|
37598
|
-
},
|
|
37599
|
-
const { lng: r, getToken: p, lineConfig: g } = se(), [b, d] = mi(300), [l, a] = mi(!1), i = te(null), o = Y(g, "liffId", ""), s = Qe(r), u = p?.(),
|
|
37619
|
+
}, Pu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
|
|
37620
|
+
const { lng: r, getToken: p, lineConfig: g } = se(), [b, d] = mi(300), [l, a] = mi(!1), i = te(null), o = Y(g, "liffId", ""), s = Qe(r), u = p?.(), _ = new URLSearchParams(window.location.search).get("mac") || pi.get("machine_mac_address") || "", { data: c, isFetching: y } = Jo({
|
|
37600
37621
|
formData: {
|
|
37601
|
-
mac_address:
|
|
37622
|
+
mac_address: _
|
|
37602
37623
|
},
|
|
37603
37624
|
options: {
|
|
37604
|
-
enabled: e ? !0 : !!
|
|
37625
|
+
enabled: e ? !0 : !!_ && !u
|
|
37605
37626
|
}
|
|
37606
|
-
}),
|
|
37627
|
+
}), f = Y(c, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37607
37628
|
pe(() => {
|
|
37608
|
-
|
|
37609
|
-
}, [
|
|
37629
|
+
_ && pi.set("machine_mac_address", _, { expires: 365 });
|
|
37630
|
+
}, [_]), pe(() => (f && (d(300), a(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
|
|
37610
37631
|
d((v) => v <= 1 ? (clearInterval(i.current), a(!0), 0) : v - 1);
|
|
37611
37632
|
}, 1e3)), () => {
|
|
37612
37633
|
i.current && clearInterval(i.current);
|
|
37613
|
-
}), [
|
|
37634
|
+
}), [f]);
|
|
37614
37635
|
const U = (v) => {
|
|
37615
|
-
const
|
|
37616
|
-
return `${
|
|
37636
|
+
const x = Math.floor(v / 60), E = v % 60;
|
|
37637
|
+
return `${x}:${E < 10 ? "0" : ""}${E}`;
|
|
37617
37638
|
};
|
|
37618
|
-
if (!e && (!
|
|
37639
|
+
if (!e && (!_ || u)) return null;
|
|
37619
37640
|
const C = Wn[s] || Wn.en_US;
|
|
37620
37641
|
return n && /* @__PURE__ */ Oe.jsxs("div", { style: _m, children: [
|
|
37621
37642
|
/* @__PURE__ */ Oe.jsx(
|
|
@@ -37644,7 +37665,7 @@ const _m = {
|
|
|
37644
37665
|
boxSizing: "border-box",
|
|
37645
37666
|
color: "black"
|
|
37646
37667
|
},
|
|
37647
|
-
children: y ? "Loading..." : /* @__PURE__ */ Oe.jsx(wr, { width: "100%", height: "100%", value:
|
|
37668
|
+
children: y ? "Loading..." : /* @__PURE__ */ Oe.jsx(wr, { width: "100%", height: "100%", value: f })
|
|
37648
37669
|
}
|
|
37649
37670
|
),
|
|
37650
37671
|
!y && /* @__PURE__ */ Oe.jsx(
|
|
@@ -37660,7 +37681,7 @@ const _m = {
|
|
|
37660
37681
|
)
|
|
37661
37682
|
] })
|
|
37662
37683
|
] });
|
|
37663
|
-
},
|
|
37684
|
+
}, wu = () => {
|
|
37664
37685
|
const e = Wa(), {
|
|
37665
37686
|
mutate: n,
|
|
37666
37687
|
isPending: t,
|
|
@@ -37692,16 +37713,16 @@ const _m = {
|
|
|
37692
37713
|
};
|
|
37693
37714
|
export {
|
|
37694
37715
|
Vn as ApiCtx,
|
|
37695
|
-
|
|
37696
|
-
|
|
37716
|
+
Lu as ApiProvider,
|
|
37717
|
+
wu as Bind,
|
|
37697
37718
|
Qn as GamesInfoCtx,
|
|
37698
|
-
|
|
37699
|
-
|
|
37719
|
+
Gu as LineLogin,
|
|
37720
|
+
Pu as LineQrCode,
|
|
37700
37721
|
$a as STATUS_TYPES,
|
|
37701
37722
|
Jn as StatusContext,
|
|
37702
37723
|
Yr as StatusProvider,
|
|
37703
37724
|
Xs as buildMultiTypes,
|
|
37704
|
-
|
|
37725
|
+
Eu as buildMultiTypesWithSubTypes,
|
|
37705
37726
|
tl as buildSinglePlatformWithSubTypes,
|
|
37706
37727
|
al as buildSingleType,
|
|
37707
37728
|
Ys as categorizeGames,
|
|
@@ -37723,7 +37744,7 @@ export {
|
|
|
37723
37744
|
Ks as handleDarkImage,
|
|
37724
37745
|
rm as initMockWindowData,
|
|
37725
37746
|
tm as processGameInfo,
|
|
37726
|
-
|
|
37747
|
+
Nu as processPlatformData,
|
|
37727
37748
|
eu as useAbandonEventWallet,
|
|
37728
37749
|
Mm as useAbandonPoint,
|
|
37729
37750
|
se as useApiContext,
|
|
@@ -37751,7 +37772,7 @@ export {
|
|
|
37751
37772
|
xs as useEventTransaction,
|
|
37752
37773
|
du as useEventWalletLog,
|
|
37753
37774
|
Vs as useExpiredRewardsList,
|
|
37754
|
-
|
|
37775
|
+
Su as useGameConfig,
|
|
37755
37776
|
Tm as useGameInfoContext,
|
|
37756
37777
|
nm as useGamesInfo,
|
|
37757
37778
|
au as useGetCarouseList,
|
|
@@ -37777,21 +37798,22 @@ export {
|
|
|
37777
37798
|
Fm as useMobileRegister,
|
|
37778
37799
|
ou as useNewsDetail,
|
|
37779
37800
|
lu as useNewsList,
|
|
37780
|
-
yu as
|
|
37781
|
-
|
|
37782
|
-
|
|
37801
|
+
yu as useOtherTransaction,
|
|
37802
|
+
Uu as usePayment,
|
|
37803
|
+
Du as usePlatformConfig,
|
|
37804
|
+
bu as usePlayGame,
|
|
37783
37805
|
Lm as usePointTransfer,
|
|
37784
37806
|
Us as useReadInbox,
|
|
37785
|
-
|
|
37807
|
+
Cu as useRebate,
|
|
37786
37808
|
cu as useRebateWalletLog,
|
|
37787
37809
|
Hs as useReceiveRebate,
|
|
37788
37810
|
su as useRedeemCodeDeposit,
|
|
37789
37811
|
Km as useRedeemEventReward,
|
|
37790
37812
|
zs as useRedeemReward,
|
|
37791
|
-
|
|
37813
|
+
Tu as useRedeemTreasure,
|
|
37792
37814
|
Oo as useResetUserPassword,
|
|
37793
37815
|
Ho as useResetUserTransactionPassword,
|
|
37794
|
-
|
|
37816
|
+
vu as useRewards,
|
|
37795
37817
|
Ws as useRewardsList,
|
|
37796
37818
|
Am as useSendMobileVerifyCode,
|
|
37797
37819
|
Bo as useSetUserTransactionPassword,
|
|
@@ -37802,7 +37824,7 @@ export {
|
|
|
37802
37824
|
Zn as useStatus,
|
|
37803
37825
|
Fo as useToggleFavoriteGame,
|
|
37804
37826
|
Io as useTransferInGame,
|
|
37805
|
-
|
|
37827
|
+
hu as useTreasureList,
|
|
37806
37828
|
fu as useTreasureWalletLog,
|
|
37807
37829
|
Is as useUnUsedRewardsList,
|
|
37808
37830
|
Vm as useUpdateAvatar,
|
|
@@ -37814,8 +37836,8 @@ export {
|
|
|
37814
37836
|
Bm as useVerifyDonationCode,
|
|
37815
37837
|
Om as useVerifyPhoneBar,
|
|
37816
37838
|
Hm as useVerifyResetAction,
|
|
37817
|
-
|
|
37818
|
-
|
|
37839
|
+
xu as useVip,
|
|
37840
|
+
ku as useVipInfo,
|
|
37819
37841
|
Zs as useVipList,
|
|
37820
37842
|
Ts as useWithdrawAction,
|
|
37821
37843
|
Ds as useWithdrawTransaction,
|