@obb871001/api-integration-sdk 1.0.296 → 1.0.299
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 +6 -6
- package/dist/index.js +962 -902
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import de, { createContext as zi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as ee, useEffect as
|
|
2
|
-
import { useQueries as Hn, useQuery as
|
|
1
|
+
import de, { createContext as zi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as ee, useEffect as ge } from "react";
|
|
2
|
+
import { useQueries as Hn, useQuery as j, useQueryClient as pt, useMutation as re, QueryClient as Ol, QueryClientProvider as Bl } from "@tanstack/react-query";
|
|
3
3
|
import Hl from "axios";
|
|
4
|
-
import { get as
|
|
4
|
+
import { get as le, find as qe, isEmpty as Ee, entries as Wn, map as Oe, isArray as la, toLower as Tt, omit as Wl, replace as kt, includes as zl, isObject as Ii, flatMap as Vi, values as Il, keys as xt } from "lodash";
|
|
5
5
|
import Vl from "react-dom";
|
|
6
6
|
var Qi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function gt(e) {
|
|
@@ -37,12 +37,12 @@ function Jl() {
|
|
|
37
37
|
if (St) return Va;
|
|
38
38
|
St = 1;
|
|
39
39
|
var e = de, l = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
|
-
function b(
|
|
40
|
+
function b(c, r, a) {
|
|
41
41
|
var t, o = {}, s = null, u = null;
|
|
42
42
|
a !== void 0 && (s = "" + a), r.key !== void 0 && (s = "" + r.key), r.ref !== void 0 && (u = r.ref);
|
|
43
43
|
for (t in r) n.call(r, t) && !g.hasOwnProperty(t) && (o[t] = r[t]);
|
|
44
|
-
if (
|
|
45
|
-
return { $$typeof: l, type:
|
|
44
|
+
if (c && c.defaultProps) for (t in r = c.defaultProps, r) o[t] === void 0 && (o[t] = r[t]);
|
|
45
|
+
return { $$typeof: l, type: c, key: s, ref: u, props: o, _owner: p.current };
|
|
46
46
|
}
|
|
47
47
|
return Va.Fragment = i, Va.jsx = b, Va.jsxs = b, Va;
|
|
48
48
|
}
|
|
@@ -50,8 +50,8 @@ var Za = {};
|
|
|
50
50
|
var Dt;
|
|
51
51
|
function Kl() {
|
|
52
52
|
return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = de, l = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"),
|
|
54
|
-
function
|
|
53
|
+
var e = de, l = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), c = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), s = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), m = Symbol.iterator, d = "@@iterator";
|
|
54
|
+
function f(h) {
|
|
55
55
|
if (h === null || typeof h != "object")
|
|
56
56
|
return null;
|
|
57
57
|
var z = m && h[m] || h[d];
|
|
@@ -67,18 +67,18 @@ function Kl() {
|
|
|
67
67
|
}
|
|
68
68
|
function U(h, z, Z) {
|
|
69
69
|
{
|
|
70
|
-
var $ = y.ReactDebugCurrentFrame,
|
|
71
|
-
|
|
72
|
-
var
|
|
70
|
+
var $ = y.ReactDebugCurrentFrame, me = $.getStackAddendum();
|
|
71
|
+
me !== "" && (z += "%s", Z = Z.concat([me]));
|
|
72
|
+
var pe = Z.map(function(ne) {
|
|
73
73
|
return String(ne);
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
pe.unshift("Warning: " + z), Function.prototype.apply.call(console[h], console, pe);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
var C = !1, v = !1, x = !1, D = !1, G = !1, H;
|
|
79
79
|
H = Symbol.for("react.module.reference");
|
|
80
80
|
function k(h) {
|
|
81
|
-
return !!(typeof h == "string" || typeof h == "function" || h === n || h === g || G || h === p || h === a || h === t || D || h === u || C || v || x || typeof h == "object" && h !== null && (h.$$typeof === s || h.$$typeof === o || h.$$typeof === b || h.$$typeof ===
|
|
81
|
+
return !!(typeof h == "string" || typeof h == "function" || h === n || h === g || G || h === p || h === a || h === t || D || h === u || C || v || x || typeof h == "object" && h !== null && (h.$$typeof === s || h.$$typeof === o || h.$$typeof === b || h.$$typeof === c || h.$$typeof === r || // 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.
|
|
@@ -88,8 +88,8 @@ function Kl() {
|
|
|
88
88
|
var $ = h.displayName;
|
|
89
89
|
if ($)
|
|
90
90
|
return $;
|
|
91
|
-
var
|
|
92
|
-
return
|
|
91
|
+
var me = z.displayName || z.name || "";
|
|
92
|
+
return me !== "" ? Z + "(" + me + ")" : Z;
|
|
93
93
|
}
|
|
94
94
|
function F(h) {
|
|
95
95
|
return h.displayName || "Context";
|
|
@@ -117,7 +117,7 @@ function Kl() {
|
|
|
117
117
|
}
|
|
118
118
|
if (typeof h == "object")
|
|
119
119
|
switch (h.$$typeof) {
|
|
120
|
-
case
|
|
120
|
+
case c:
|
|
121
121
|
var z = h;
|
|
122
122
|
return F(z) + ".Consumer";
|
|
123
123
|
case b:
|
|
@@ -129,9 +129,9 @@ function Kl() {
|
|
|
129
129
|
var $ = h.displayName || null;
|
|
130
130
|
return $ !== null ? $ : O(h.type) || "Memo";
|
|
131
131
|
case s: {
|
|
132
|
-
var
|
|
132
|
+
var me = h, pe = me._payload, ne = me._init;
|
|
133
133
|
try {
|
|
134
|
-
return O(ne(
|
|
134
|
+
return O(ne(pe));
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -207,8 +207,8 @@ function Kl() {
|
|
|
207
207
|
if (Q === void 0)
|
|
208
208
|
try {
|
|
209
209
|
throw Error();
|
|
210
|
-
} catch (
|
|
211
|
-
var $ =
|
|
210
|
+
} catch (me) {
|
|
211
|
+
var $ = me.stack.trim().match(/\n( *(at )?)/);
|
|
212
212
|
Q = $ && $[1] || "";
|
|
213
213
|
}
|
|
214
214
|
return `
|
|
@@ -230,10 +230,10 @@ function Kl() {
|
|
|
230
230
|
}
|
|
231
231
|
var $;
|
|
232
232
|
ae = !0;
|
|
233
|
-
var
|
|
233
|
+
var me = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var pe;
|
|
236
|
+
pe = q.current, q.current = null, R();
|
|
237
237
|
try {
|
|
238
238
|
if (z) {
|
|
239
239
|
var ne = function() {
|
|
@@ -246,29 +246,29 @@ function Kl() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(ne, []);
|
|
249
|
-
} catch (
|
|
250
|
-
$ =
|
|
249
|
+
} catch (We) {
|
|
250
|
+
$ = We;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(h, [], ne);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
ne.call();
|
|
256
|
-
} catch (
|
|
257
|
-
$ =
|
|
256
|
+
} catch (We) {
|
|
257
|
+
$ = We;
|
|
258
258
|
}
|
|
259
259
|
h.call(ne.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
263
263
|
throw Error();
|
|
264
|
-
} catch (
|
|
265
|
-
$ =
|
|
264
|
+
} catch (We) {
|
|
265
|
+
$ = We;
|
|
266
266
|
}
|
|
267
267
|
h();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var X =
|
|
269
|
+
} catch (We) {
|
|
270
|
+
if (We && $ && typeof We.stack == "string") {
|
|
271
|
+
for (var X = We.stack.split(`
|
|
272
272
|
`), Ae = $.stack.split(`
|
|
273
273
|
`), be = X.length - 1, he = Ae.length - 1; be >= 1 && he >= 0 && X[be] !== Ae[he]; )
|
|
274
274
|
he--;
|
|
@@ -286,12 +286,12 @@ function Kl() {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
ae = !1, q.current =
|
|
289
|
+
ae = !1, q.current = pe, K(), Error.prepareStackTrace = me;
|
|
290
290
|
}
|
|
291
291
|
var Pa = h ? h.displayName || h.name : "", Ca = Pa ? J(Pa) : "";
|
|
292
292
|
return typeof h == "function" && te.set(h, Ca), Ca;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function se(h, z, Z) {
|
|
295
295
|
return ye(h, !1);
|
|
296
296
|
}
|
|
297
297
|
function ce(h) {
|
|
@@ -314,13 +314,13 @@ function Kl() {
|
|
|
314
314
|
if (typeof h == "object")
|
|
315
315
|
switch (h.$$typeof) {
|
|
316
316
|
case r:
|
|
317
|
-
return
|
|
317
|
+
return se(h.render);
|
|
318
318
|
case o:
|
|
319
319
|
return ke(h.type, z, Z);
|
|
320
320
|
case s: {
|
|
321
|
-
var $ = h,
|
|
321
|
+
var $ = h, me = $._payload, pe = $._init;
|
|
322
322
|
try {
|
|
323
|
-
return ke(
|
|
323
|
+
return ke(pe(me), z, Z);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -335,11 +335,11 @@ function Kl() {
|
|
|
335
335
|
} else
|
|
336
336
|
Ce.setExtraStackFrame(null);
|
|
337
337
|
}
|
|
338
|
-
function ea(h, z, Z, $,
|
|
338
|
+
function ea(h, z, Z, $, me) {
|
|
339
339
|
{
|
|
340
|
-
var
|
|
340
|
+
var pe = Function.call.bind(Ue);
|
|
341
341
|
for (var ne in h)
|
|
342
|
-
if (
|
|
342
|
+
if (pe(h, ne)) {
|
|
343
343
|
var X = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof h[ne] != "function") {
|
|
@@ -350,7 +350,7 @@ function Kl() {
|
|
|
350
350
|
} catch (be) {
|
|
351
351
|
X = be;
|
|
352
352
|
}
|
|
353
|
-
X && !(X instanceof Error) && (Ge(
|
|
353
|
+
X && !(X instanceof Error) && (Ge(me), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", Z, ne, typeof X), Ge(null)), X instanceof Error && !(X.message in Ie) && (Ie[X.message] = !0, Ge(me), _("Failed %s type: %s", Z, X.message), Ge(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -358,7 +358,7 @@ function Kl() {
|
|
|
358
358
|
function ve(h) {
|
|
359
359
|
return Me(h);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function He(h) {
|
|
362
362
|
{
|
|
363
363
|
var z = typeof Symbol == "function" && Symbol.toStringTag, Z = z && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
364
364
|
return Z;
|
|
@@ -376,9 +376,9 @@ function Kl() {
|
|
|
376
376
|
}
|
|
377
377
|
function xe(h) {
|
|
378
378
|
if (aa(h))
|
|
379
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
379
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(h)), ia(h);
|
|
380
380
|
}
|
|
381
|
-
var Re = y.ReactCurrentOwner,
|
|
381
|
+
var Re = y.ReactCurrentOwner, Qe = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
@@ -392,7 +392,7 @@ function Kl() {
|
|
|
392
392
|
}
|
|
393
393
|
return h.ref !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function je(h) {
|
|
396
396
|
if (Ue.call(h, "key")) {
|
|
397
397
|
var z = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
398
398
|
if (z && z.isReactWarning)
|
|
@@ -425,7 +425,7 @@ function Kl() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var za = function(h, z, Z, $,
|
|
428
|
+
var za = function(h, z, Z, $, me, pe, ne) {
|
|
429
429
|
var X = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: l,
|
|
@@ -435,7 +435,7 @@ function Kl() {
|
|
|
435
435
|
ref: Z,
|
|
436
436
|
props: ne,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
|
-
_owner:
|
|
438
|
+
_owner: pe
|
|
439
439
|
};
|
|
440
440
|
return X._store = {}, Object.defineProperty(X._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
@@ -451,25 +451,25 @@ function Kl() {
|
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
453
453
|
writable: !1,
|
|
454
|
-
value:
|
|
454
|
+
value: me
|
|
455
455
|
}), Object.freeze && (Object.freeze(X.props), Object.freeze(X)), X;
|
|
456
456
|
};
|
|
457
|
-
function Ia(h, z, Z, $,
|
|
457
|
+
function Ia(h, z, Z, $, me) {
|
|
458
458
|
{
|
|
459
|
-
var
|
|
460
|
-
Z !== void 0 && (xe(Z), X = "" + Z),
|
|
461
|
-
for (
|
|
462
|
-
Ue.call(z,
|
|
459
|
+
var pe, ne = {}, X = null, Ae = null;
|
|
460
|
+
Z !== void 0 && (xe(Z), X = "" + Z), je(z) && (xe(z.key), X = "" + z.key), Ve(z) && (Ae = z.ref, Wa(z, me));
|
|
461
|
+
for (pe in z)
|
|
462
|
+
Ue.call(z, pe) && !Qe.hasOwnProperty(pe) && (ne[pe] = z[pe]);
|
|
463
463
|
if (h && h.defaultProps) {
|
|
464
464
|
var be = h.defaultProps;
|
|
465
|
-
for (
|
|
466
|
-
ne[
|
|
465
|
+
for (pe in be)
|
|
466
|
+
ne[pe] === void 0 && (ne[pe] = be[pe]);
|
|
467
467
|
}
|
|
468
468
|
if (X || Ae) {
|
|
469
469
|
var he = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
470
470
|
X && Ea(ne, he), Ae && Na(ne, he);
|
|
471
471
|
}
|
|
472
|
-
return za(h, X, Ae,
|
|
472
|
+
return za(h, X, Ae, me, $, Re.current, ne);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var da = y.ReactCurrentOwner, Ua = y.ReactDebugCurrentFrame;
|
|
@@ -538,9 +538,9 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
538
538
|
else if (fa(h))
|
|
539
539
|
h._store && (h._store.validated = !0);
|
|
540
540
|
else if (h) {
|
|
541
|
-
var
|
|
542
|
-
if (typeof
|
|
543
|
-
for (var
|
|
541
|
+
var me = f(h);
|
|
542
|
+
if (typeof me == "function" && me !== h.entries)
|
|
543
|
+
for (var pe = me.call(h), ne; !(ne = pe.next()).done; )
|
|
544
544
|
fa(ne.value) && Ra(ne.value, z);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
@@ -564,8 +564,8 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
564
564
|
ea(Z, h.props, "prop", $, h);
|
|
565
565
|
} else if (z.PropTypes !== void 0 && !ca) {
|
|
566
566
|
ca = !0;
|
|
567
|
-
var
|
|
568
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
567
|
+
var me = O(z);
|
|
568
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", me || "Unknown");
|
|
569
569
|
}
|
|
570
570
|
typeof z.getDefaultProps == "function" && !z.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var ta = {};
|
|
586
|
-
function Pe(h, z, Z, $,
|
|
586
|
+
function Pe(h, z, Z, $, me, pe) {
|
|
587
587
|
{
|
|
588
588
|
var ne = k(h);
|
|
589
589
|
if (!ne) {
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
594
594
|
var be;
|
|
595
595
|
h === null ? be = "null" : ve(h) ? be = "array" : h !== void 0 && h.$$typeof === l ? (be = "<" + (O(h.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : be = typeof h, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, X);
|
|
596
596
|
}
|
|
597
|
-
var he = Ia(h, z, Z,
|
|
597
|
+
var he = Ia(h, z, Z, me, pe);
|
|
598
598
|
if (he == null)
|
|
599
599
|
return he;
|
|
600
600
|
if (ne) {
|
|
@@ -611,11 +611,11 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
611
611
|
Se(Ke, h);
|
|
612
612
|
}
|
|
613
613
|
if (Ue.call(z, "key")) {
|
|
614
|
-
var Ca = O(h),
|
|
614
|
+
var Ca = O(h), We = Object.keys(z).filter(function(Al) {
|
|
615
615
|
return Al !== "key";
|
|
616
|
-
}), $i =
|
|
616
|
+
}), $i = We.length > 0 ? "{key: someKey, " + We.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ta[Ca + $i]) {
|
|
618
|
-
var Fl =
|
|
618
|
+
var Fl = We.length > 0 ? "{" + We.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
_(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
@@ -642,7 +642,7 @@ function ql() {
|
|
|
642
642
|
return Et || (Et = 1, process.env.NODE_ENV === "production" ? Xa.exports = Jl() : Xa.exports = Kl()), Xa.exports;
|
|
643
643
|
}
|
|
644
644
|
var Fe = ql();
|
|
645
|
-
const zn = zi(null),
|
|
645
|
+
const zn = zi(null), oe = () => {
|
|
646
646
|
const e = ut(zn);
|
|
647
647
|
if (!e)
|
|
648
648
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
@@ -668,7 +668,7 @@ const zn = zi(null), se = () => {
|
|
|
668
668
|
if (!e)
|
|
669
669
|
throw new Error("useStatus must be used within a StatusProvider");
|
|
670
670
|
return e;
|
|
671
|
-
},
|
|
671
|
+
}, $e = (e) => {
|
|
672
672
|
switch (e) {
|
|
673
673
|
case "tw":
|
|
674
674
|
return "zh_TW";
|
|
@@ -687,7 +687,7 @@ const zn = zi(null), se = () => {
|
|
|
687
687
|
default:
|
|
688
688
|
return e;
|
|
689
689
|
}
|
|
690
|
-
},
|
|
690
|
+
}, Xe = "https://d1h3qe8voog6w4.cloudfront.net", Nt = "https://d3jx2uvukujuvn.cloudfront.net", Zn = (e) => `${Xe}/reward_icon/${e}.avif`, Jn = () => `${Xe}/reward_icon/background_deposit.avif`, Kn = "ds88platformIcon", Qa = {
|
|
691
691
|
zh_TW: "系統提示",
|
|
692
692
|
zh_CN: "系统提示",
|
|
693
693
|
en_US: "System Prompt",
|
|
@@ -704,7 +704,7 @@ function Lt({
|
|
|
704
704
|
store: p,
|
|
705
705
|
onError: g,
|
|
706
706
|
formData: b = !1,
|
|
707
|
-
currency:
|
|
707
|
+
currency: c,
|
|
708
708
|
toasterOpen: r = !1
|
|
709
709
|
} = {}) {
|
|
710
710
|
const a = Hl.create({
|
|
@@ -719,18 +719,18 @@ function Lt({
|
|
|
719
719
|
const s = await l();
|
|
720
720
|
s && (t.headers.Authorization = `Bearer ${s}`);
|
|
721
721
|
}
|
|
722
|
-
const o = p?.getState()?.isWalletCurrency ||
|
|
722
|
+
const o = p?.getState()?.isWalletCurrency || c || "TWD";
|
|
723
723
|
return t.headers.Currency = o, t.headers["currency-code"] = o, t.headers.lang = n, t;
|
|
724
724
|
}), a.interceptors.response.use(
|
|
725
725
|
(t) => t.data,
|
|
726
726
|
(t) => {
|
|
727
|
-
const o =
|
|
727
|
+
const o = le(
|
|
728
728
|
t,
|
|
729
729
|
"response.data.message",
|
|
730
730
|
"發生錯誤,請稍後再試。"
|
|
731
731
|
);
|
|
732
732
|
if (r) {
|
|
733
|
-
const s =
|
|
733
|
+
const s = $e(n);
|
|
734
734
|
p?.dispatch({
|
|
735
735
|
type: "ui/showToast",
|
|
736
736
|
payload: {
|
|
@@ -760,13 +760,13 @@ const qn = zi(null), bm = () => {
|
|
|
760
760
|
hostname: p = "",
|
|
761
761
|
shouldRedirect: g,
|
|
762
762
|
onShowError: b,
|
|
763
|
-
onCleanup:
|
|
763
|
+
onCleanup: c,
|
|
764
764
|
onRemoveToken: r,
|
|
765
765
|
onRedirect: a,
|
|
766
766
|
onGoogleLogout: t
|
|
767
767
|
}) => {
|
|
768
768
|
const o = l(p);
|
|
769
|
-
e(n, o) && b?.(),
|
|
769
|
+
e(n, o) && b?.(), c?.(), r?.(), g && a?.("/"), t?.();
|
|
770
770
|
},
|
|
771
771
|
shouldShowErrorNotice: e,
|
|
772
772
|
isMachineDomain: l
|
|
@@ -778,7 +778,7 @@ const qn = zi(null), bm = () => {
|
|
|
778
778
|
minimumFractionDigits: 2,
|
|
779
779
|
maximumFractionDigits: 2
|
|
780
780
|
}).format(l);
|
|
781
|
-
}, $n = (e = [], l) =>
|
|
781
|
+
}, $n = (e = [], l) => qe(e, { gameTypeName: l })?.gameTypeUid, Qn = (e = [], l) => qe(e, { platform: l })?.platformUid, jn = (e = [], l) => qe(e, { SubPlatformEnum: l }), Yn = (e = [], l, i) => Ee(e) ? [] : e.filter((n) => i ? String(n?.SubPlatformEnumUid) === String(i?.SubPlatformEnumUid) : String(n.platformUid) === String(l)), Ql = (e = []) => Ee(e) ? {} : e.reduce((l, i) => {
|
|
782
782
|
const n = i?.game_subtype || "UNKNOWN";
|
|
783
783
|
return l[n] || (l[n] = []), l[n].push(i), l;
|
|
784
784
|
}, {}), jl = ({
|
|
@@ -789,13 +789,13 @@ const qn = zi(null), bm = () => {
|
|
|
789
789
|
allPlatforms: p
|
|
790
790
|
}) => {
|
|
791
791
|
const g = $n(n, e);
|
|
792
|
-
return g ? l.reduce((b,
|
|
793
|
-
const r = Qn(p,
|
|
792
|
+
return g ? l.reduce((b, c) => {
|
|
793
|
+
const r = Qn(p, c), a = jn(p, c), t = i[g] || [], o = Yn(
|
|
794
794
|
t,
|
|
795
795
|
r,
|
|
796
796
|
a
|
|
797
797
|
);
|
|
798
|
-
return Ee(o) || (b[
|
|
798
|
+
return Ee(o) || (b[c] = o), b;
|
|
799
799
|
}, {}) : {};
|
|
800
800
|
}, Yl = ({
|
|
801
801
|
platformName: e,
|
|
@@ -815,7 +815,7 @@ function er() {
|
|
|
815
815
|
(function(i, n) {
|
|
816
816
|
e.exports = n();
|
|
817
817
|
})(Xl, (function() {
|
|
818
|
-
var i = 1e3, n = 6e4, p = 36e5, g = "millisecond", b = "second",
|
|
818
|
+
var i = 1e3, n = 6e4, p = 36e5, g = "millisecond", b = "second", c = "minute", r = "hour", a = "day", t = "week", o = "month", s = "quarter", u = "year", m = "date", d = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
|
|
819
819
|
var S = ["th", "st", "nd", "rd"], E = P % 100;
|
|
820
820
|
return "[" + P + (S[(E - 20) % 10] || S[E] || S[0]) + "]";
|
|
821
821
|
} }, U = function(P, S, E) {
|
|
@@ -831,7 +831,7 @@ function er() {
|
|
|
831
831
|
}, a: function(P) {
|
|
832
832
|
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
|
833
833
|
}, p: function(P) {
|
|
834
|
-
return { M: o, y: u, w: t, d: a, D: m, h: r, m:
|
|
834
|
+
return { M: o, y: u, w: t, d: a, D: m, h: r, m: c, s: b, ms: g, Q: s }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
|
835
835
|
}, u: function(P) {
|
|
836
836
|
return P === void 0;
|
|
837
837
|
} }, v = "en", x = {};
|
|
@@ -871,7 +871,7 @@ function er() {
|
|
|
871
871
|
if (T.u(w)) return /* @__PURE__ */ new Date();
|
|
872
872
|
if (w instanceof Date) return new Date(w);
|
|
873
873
|
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
874
|
-
var W = w.match(
|
|
874
|
+
var W = w.match(f);
|
|
875
875
|
if (W) {
|
|
876
876
|
var L = W[2] - 1 || 0, N = (W[7] || "0").substring(0, 3);
|
|
877
877
|
return B ? new Date(Date.UTC(W[1], L, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, N)) : new Date(W[1], L, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, N);
|
|
@@ -919,7 +919,7 @@ function er() {
|
|
|
919
919
|
return N(q + "Hours", 0);
|
|
920
920
|
case r:
|
|
921
921
|
return N(q + "Minutes", 1);
|
|
922
|
-
case
|
|
922
|
+
case c:
|
|
923
923
|
return N(q + "Seconds", 2);
|
|
924
924
|
case b:
|
|
925
925
|
return N(q + "Milliseconds", 3);
|
|
@@ -929,7 +929,7 @@ function er() {
|
|
|
929
929
|
}, S.endOf = function(E) {
|
|
930
930
|
return this.startOf(E, !1);
|
|
931
931
|
}, S.$set = function(E, M) {
|
|
932
|
-
var w, B = T.p(E), W = "set" + (this.$u ? "UTC" : ""), L = (w = {}, w[a] = W + "Date", w[m] = W + "Date", w[o] = W + "Month", w[u] = W + "FullYear", w[r] = W + "Hours", w[
|
|
932
|
+
var w, B = T.p(E), W = "set" + (this.$u ? "UTC" : ""), L = (w = {}, w[a] = W + "Date", w[m] = W + "Date", w[o] = W + "Month", w[u] = W + "FullYear", w[r] = W + "Hours", w[c] = W + "Minutes", w[b] = W + "Seconds", w[g] = W + "Milliseconds", w)[B], N = B === a ? this.$D + (M - this.$W) : M;
|
|
933
933
|
if (B === o || B === u) {
|
|
934
934
|
var A = this.clone().set(m, 1);
|
|
935
935
|
A.$d[L](N), A.init(), this.$d = A.set(m, Math.min(this.$D, A.daysInMonth())).$d;
|
|
@@ -950,20 +950,20 @@ function er() {
|
|
|
950
950
|
if (W === u) return this.set(u, this.$y + E);
|
|
951
951
|
if (W === a) return L(1);
|
|
952
952
|
if (W === t) return L(7);
|
|
953
|
-
var N = (w = {}, w[
|
|
953
|
+
var N = (w = {}, w[c] = n, w[r] = p, w[b] = i, w)[W] || 1, A = this.$d.getTime() + E * N;
|
|
954
954
|
return T.w(A, this);
|
|
955
955
|
}, S.subtract = function(E, M) {
|
|
956
956
|
return this.add(-1 * E, M);
|
|
957
957
|
}, S.format = function(E) {
|
|
958
958
|
var M = this, w = this.$locale();
|
|
959
959
|
if (!this.isValid()) return w.invalidDate || d;
|
|
960
|
-
var B = E || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), L = this.$H, N = this.$m, A = this.$M, R = w.weekdays, K = w.months, q = w.meridiem, Q = function(te, _e, ye,
|
|
961
|
-
return te && (te[_e] || te(M, B)) || ye[_e].slice(0,
|
|
960
|
+
var B = E || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), L = this.$H, N = this.$m, A = this.$M, R = w.weekdays, K = w.months, q = w.meridiem, Q = function(te, _e, ye, se) {
|
|
961
|
+
return te && (te[_e] || te(M, B)) || ye[_e].slice(0, se);
|
|
962
962
|
}, J = function(te) {
|
|
963
963
|
return T.s(L % 12 || 12, te, "0");
|
|
964
964
|
}, ae = q || function(te, _e, ye) {
|
|
965
|
-
var
|
|
966
|
-
return ye ?
|
|
965
|
+
var se = te < 12 ? "AM" : "PM";
|
|
966
|
+
return ye ? se.toLowerCase() : se;
|
|
967
967
|
};
|
|
968
968
|
return B.replace(y, (function(te, _e) {
|
|
969
969
|
return _e || (function(ye) {
|
|
@@ -1045,7 +1045,7 @@ function er() {
|
|
|
1045
1045
|
case r:
|
|
1046
1046
|
B = R / p;
|
|
1047
1047
|
break;
|
|
1048
|
-
case
|
|
1048
|
+
case c:
|
|
1049
1049
|
B = R / n;
|
|
1050
1050
|
break;
|
|
1051
1051
|
case b:
|
|
@@ -1075,7 +1075,7 @@ function er() {
|
|
|
1075
1075
|
return this.$d.toUTCString();
|
|
1076
1076
|
}, P;
|
|
1077
1077
|
})(), O = F.prototype;
|
|
1078
|
-
return k.prototype = O, [["$ms", g], ["$s", b], ["$m",
|
|
1078
|
+
return k.prototype = O, [["$ms", g], ["$s", b], ["$m", c], ["$H", r], ["$W", a], ["$M", o], ["$y", u], ["$D", m]].forEach((function(P) {
|
|
1079
1079
|
O[P[1]] = function(S) {
|
|
1080
1080
|
return this.$g(S, P[0], P[1]);
|
|
1081
1081
|
};
|
|
@@ -1125,7 +1125,7 @@ function ie() {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
1127
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
1128
|
-
},
|
|
1128
|
+
}, c = Object.create || /* @__PURE__ */ (function() {
|
|
1129
1129
|
function _() {
|
|
1130
1130
|
}
|
|
1131
1131
|
return function(U) {
|
|
@@ -1153,7 +1153,7 @@ function ie() {
|
|
|
1153
1153
|
* });
|
|
1154
1154
|
*/
|
|
1155
1155
|
extend: function(_) {
|
|
1156
|
-
var U =
|
|
1156
|
+
var U = c(this);
|
|
1157
1157
|
return _ && U.mixIn(_), (!U.hasOwnProperty("init") || this.init === U.init) && (U.init = function() {
|
|
1158
1158
|
U.$super.init.apply(this, arguments);
|
|
1159
1159
|
}), U.init.prototype = U, U.$super = this, U;
|
|
@@ -1429,7 +1429,7 @@ function ie() {
|
|
|
1429
1429
|
parse: function(_) {
|
|
1430
1430
|
return m.parse(unescape(encodeURIComponent(_)));
|
|
1431
1431
|
}
|
|
1432
|
-
},
|
|
1432
|
+
}, f = a.BufferedBlockAlgorithm = t.extend({
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1435
1435
|
*
|
|
@@ -1493,7 +1493,7 @@ function ie() {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
_minBufferSize: 0
|
|
1495
1495
|
});
|
|
1496
|
-
a.Hasher =
|
|
1496
|
+
a.Hasher = f.extend({
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Configuration options.
|
|
1499
1499
|
*/
|
|
@@ -1518,7 +1518,7 @@ function ie() {
|
|
|
1518
1518
|
* hasher.reset();
|
|
1519
1519
|
*/
|
|
1520
1520
|
reset: function() {
|
|
1521
|
-
|
|
1521
|
+
f.reset.call(this), this._doReset();
|
|
1522
1522
|
},
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Updates this hasher with a message.
|
|
@@ -1606,7 +1606,7 @@ function Zi() {
|
|
|
1606
1606
|
e.exports = n(ie());
|
|
1607
1607
|
})(or, function(i) {
|
|
1608
1608
|
return (function(n) {
|
|
1609
|
-
var p = i, g = p.lib, b = g.Base,
|
|
1609
|
+
var p = i, g = p.lib, b = g.Base, c = g.WordArray, r = p.x64 = {};
|
|
1610
1610
|
r.Word = b.extend({
|
|
1611
1611
|
/**
|
|
1612
1612
|
* Initializes a newly created 64-bit word.
|
|
@@ -1808,7 +1808,7 @@ function Zi() {
|
|
|
1808
1808
|
var u = a[s];
|
|
1809
1809
|
o.push(u.high), o.push(u.low);
|
|
1810
1810
|
}
|
|
1811
|
-
return
|
|
1811
|
+
return c.create(o, this.sigBytes);
|
|
1812
1812
|
},
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Creates a copy of this word array.
|
|
@@ -1837,7 +1837,7 @@ function mr() {
|
|
|
1837
1837
|
})(sr, function(i) {
|
|
1838
1838
|
return (function() {
|
|
1839
1839
|
if (typeof ArrayBuffer == "function") {
|
|
1840
|
-
var n = i, p = n.lib, g = p.WordArray, b = g.init,
|
|
1840
|
+
var n = i, p = n.lib, g = p.WordArray, b = g.init, c = g.init = function(r) {
|
|
1841
1841
|
if (r instanceof ArrayBuffer && (r = new Uint8Array(r)), (r instanceof Int8Array || typeof Uint8ClampedArray < "u" && r instanceof Uint8ClampedArray || r instanceof Int16Array || r instanceof Uint16Array || r instanceof Int32Array || r instanceof Uint32Array || r instanceof Float32Array || r instanceof Float64Array) && (r = new Uint8Array(r.buffer, r.byteOffset, r.byteLength)), r instanceof Uint8Array) {
|
|
1842
1842
|
for (var a = r.byteLength, t = [], o = 0; o < a; o++)
|
|
1843
1843
|
t[o >>> 2] |= r[o] << 24 - o % 4 * 8;
|
|
@@ -1845,7 +1845,7 @@ function mr() {
|
|
|
1845
1845
|
} else
|
|
1846
1846
|
b.apply(this, arguments);
|
|
1847
1847
|
};
|
|
1848
|
-
|
|
1848
|
+
c.prototype = g;
|
|
1849
1849
|
}
|
|
1850
1850
|
})(), i.lib.WordArray;
|
|
1851
1851
|
});
|
|
@@ -1914,7 +1914,7 @@ function pr() {
|
|
|
1914
1914
|
*/
|
|
1915
1915
|
stringify: function(r) {
|
|
1916
1916
|
for (var a = r.words, t = r.sigBytes, o = [], s = 0; s < t; s += 2) {
|
|
1917
|
-
var u =
|
|
1917
|
+
var u = c(a[s >>> 2] >>> 16 - s % 4 * 8 & 65535);
|
|
1918
1918
|
o.push(String.fromCharCode(u));
|
|
1919
1919
|
}
|
|
1920
1920
|
return o.join("");
|
|
@@ -1934,11 +1934,11 @@ function pr() {
|
|
|
1934
1934
|
*/
|
|
1935
1935
|
parse: function(r) {
|
|
1936
1936
|
for (var a = r.length, t = [], o = 0; o < a; o++)
|
|
1937
|
-
t[o >>> 1] |=
|
|
1937
|
+
t[o >>> 1] |= c(r.charCodeAt(o) << 16 - o % 2 * 16);
|
|
1938
1938
|
return g.create(t, a * 2);
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
|
-
function
|
|
1941
|
+
function c(r) {
|
|
1942
1942
|
return r << 8 & 4278255360 | r >>> 8 & 16711935;
|
|
1943
1943
|
}
|
|
1944
1944
|
})(), i.enc.Utf16;
|
|
@@ -1971,7 +1971,7 @@ function Sa() {
|
|
|
1971
1971
|
var a = r.words, t = r.sigBytes, o = this._map;
|
|
1972
1972
|
r.clamp();
|
|
1973
1973
|
for (var s = [], u = 0; u < t; u += 3)
|
|
1974
|
-
for (var m = a[u >>> 2] >>> 24 - u % 4 * 8 & 255, d = a[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255,
|
|
1974
|
+
for (var m = a[u >>> 2] >>> 24 - u % 4 * 8 & 255, d = a[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, f = a[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, y = m << 16 | d << 8 | f, _ = 0; _ < 4 && u + _ * 0.75 < t; _++)
|
|
1975
1975
|
s.push(o.charAt(y >>> 6 * (3 - _) & 63));
|
|
1976
1976
|
var U = o.charAt(64);
|
|
1977
1977
|
if (U)
|
|
@@ -2004,15 +2004,15 @@ function Sa() {
|
|
|
2004
2004
|
var m = r.indexOf(u);
|
|
2005
2005
|
m !== -1 && (a = m);
|
|
2006
2006
|
}
|
|
2007
|
-
return
|
|
2007
|
+
return c(r, a, o);
|
|
2008
2008
|
},
|
|
2009
2009
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
2010
2010
|
};
|
|
2011
|
-
function
|
|
2011
|
+
function c(r, a, t) {
|
|
2012
2012
|
for (var o = [], s = 0, u = 0; u < a; u++)
|
|
2013
2013
|
if (u % 4) {
|
|
2014
|
-
var m = t[r.charCodeAt(u - 1)] << u % 4 * 2, d = t[r.charCodeAt(u)] >>> 6 - u % 4 * 2,
|
|
2015
|
-
o[s >>> 2] |=
|
|
2014
|
+
var m = t[r.charCodeAt(u - 1)] << u % 4 * 2, d = t[r.charCodeAt(u)] >>> 6 - u % 4 * 2, f = m | d;
|
|
2015
|
+
o[s >>> 2] |= f << 24 - s % 4 * 8, s++;
|
|
2016
2016
|
}
|
|
2017
2017
|
return g.create(o, s);
|
|
2018
2018
|
}
|
|
@@ -2049,7 +2049,7 @@ function cr() {
|
|
|
2049
2049
|
var t = r.words, o = r.sigBytes, s = a ? this._safe_map : this._map;
|
|
2050
2050
|
r.clamp();
|
|
2051
2051
|
for (var u = [], m = 0; m < o; m += 3)
|
|
2052
|
-
for (var d = t[m >>> 2] >>> 24 - m % 4 * 8 & 255,
|
|
2052
|
+
for (var d = t[m >>> 2] >>> 24 - m % 4 * 8 & 255, f = t[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, y = t[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, _ = d << 16 | f << 8 | y, U = 0; U < 4 && m + U * 0.75 < o; U++)
|
|
2053
2053
|
u.push(s.charAt(_ >>> 6 * (3 - U) & 63));
|
|
2054
2054
|
var C = s.charAt(64);
|
|
2055
2055
|
if (C)
|
|
@@ -2085,16 +2085,16 @@ function cr() {
|
|
|
2085
2085
|
var d = r.indexOf(m);
|
|
2086
2086
|
d !== -1 && (t = d);
|
|
2087
2087
|
}
|
|
2088
|
-
return
|
|
2088
|
+
return c(r, t, s);
|
|
2089
2089
|
},
|
|
2090
2090
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
2091
2091
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
2092
2092
|
};
|
|
2093
|
-
function
|
|
2093
|
+
function c(r, a, t) {
|
|
2094
2094
|
for (var o = [], s = 0, u = 0; u < a; u++)
|
|
2095
2095
|
if (u % 4) {
|
|
2096
|
-
var m = t[r.charCodeAt(u - 1)] << u % 4 * 2, d = t[r.charCodeAt(u)] >>> 6 - u % 4 * 2,
|
|
2097
|
-
o[s >>> 2] |=
|
|
2096
|
+
var m = t[r.charCodeAt(u - 1)] << u % 4 * 2, d = t[r.charCodeAt(u)] >>> 6 - u % 4 * 2, f = m | d;
|
|
2097
|
+
o[s >>> 2] |= f << 24 - s % 4 * 8, s++;
|
|
2098
2098
|
}
|
|
2099
2099
|
return g.create(o, s);
|
|
2100
2100
|
}
|
|
@@ -2109,12 +2109,12 @@ function Da() {
|
|
|
2109
2109
|
e.exports = n(ie());
|
|
2110
2110
|
})(fr, function(i) {
|
|
2111
2111
|
return (function(n) {
|
|
2112
|
-
var p = i, g = p.lib, b = g.WordArray,
|
|
2112
|
+
var p = i, g = p.lib, b = g.WordArray, c = g.Hasher, r = p.algo, a = [];
|
|
2113
2113
|
(function() {
|
|
2114
2114
|
for (var d = 0; d < 64; d++)
|
|
2115
2115
|
a[d] = n.abs(n.sin(d + 1)) * 4294967296 | 0;
|
|
2116
2116
|
})();
|
|
2117
|
-
var t = r.MD5 =
|
|
2117
|
+
var t = r.MD5 = c.extend({
|
|
2118
2118
|
_doReset: function() {
|
|
2119
2119
|
this._hash = new b.init([
|
|
2120
2120
|
1732584193,
|
|
@@ -2123,19 +2123,19 @@ function Da() {
|
|
|
2123
2123
|
271733878
|
|
2124
2124
|
]);
|
|
2125
2125
|
},
|
|
2126
|
-
_doProcessBlock: function(d,
|
|
2126
|
+
_doProcessBlock: function(d, f) {
|
|
2127
2127
|
for (var y = 0; y < 16; y++) {
|
|
2128
|
-
var _ =
|
|
2128
|
+
var _ = f + y, U = d[_];
|
|
2129
2129
|
d[_] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2130
2130
|
}
|
|
2131
|
-
var C = this._hash.words, v = d[
|
|
2131
|
+
var C = this._hash.words, v = d[f + 0], x = d[f + 1], D = d[f + 2], G = d[f + 3], H = d[f + 4], k = d[f + 5], T = d[f + 6], F = d[f + 7], O = d[f + 8], P = d[f + 9], S = d[f + 10], E = d[f + 11], M = d[f + 12], w = d[f + 13], B = d[f + 14], W = d[f + 15], L = C[0], N = C[1], A = C[2], R = C[3];
|
|
2132
2132
|
L = o(L, N, A, R, v, 7, a[0]), R = o(R, L, N, A, x, 12, a[1]), A = o(A, R, L, N, D, 17, a[2]), N = o(N, A, R, L, G, 22, a[3]), L = o(L, N, A, R, H, 7, a[4]), R = o(R, L, N, A, k, 12, a[5]), A = o(A, R, L, N, T, 17, a[6]), N = o(N, A, R, L, F, 22, a[7]), L = o(L, N, A, R, O, 7, a[8]), R = o(R, L, N, A, P, 12, a[9]), A = o(A, R, L, N, S, 17, a[10]), N = o(N, A, R, L, E, 22, a[11]), L = o(L, N, A, R, M, 7, a[12]), R = o(R, L, N, A, w, 12, a[13]), A = o(A, R, L, N, B, 17, a[14]), N = o(N, A, R, L, W, 22, a[15]), L = s(L, N, A, R, x, 5, a[16]), R = s(R, L, N, A, T, 9, a[17]), A = s(A, R, L, N, E, 14, a[18]), N = s(N, A, R, L, v, 20, a[19]), L = s(L, N, A, R, k, 5, a[20]), R = s(R, L, N, A, S, 9, a[21]), A = s(A, R, L, N, W, 14, a[22]), N = s(N, A, R, L, H, 20, a[23]), L = s(L, N, A, R, P, 5, a[24]), R = s(R, L, N, A, B, 9, a[25]), A = s(A, R, L, N, G, 14, a[26]), N = s(N, A, R, L, O, 20, a[27]), L = s(L, N, A, R, w, 5, a[28]), R = s(R, L, N, A, D, 9, a[29]), A = s(A, R, L, N, F, 14, a[30]), N = s(N, A, R, L, M, 20, a[31]), L = u(L, N, A, R, k, 4, a[32]), R = u(R, L, N, A, O, 11, a[33]), A = u(A, R, L, N, E, 16, a[34]), N = u(N, A, R, L, B, 23, a[35]), L = u(L, N, A, R, x, 4, a[36]), R = u(R, L, N, A, H, 11, a[37]), A = u(A, R, L, N, F, 16, a[38]), N = u(N, A, R, L, S, 23, a[39]), L = u(L, N, A, R, w, 4, a[40]), R = u(R, L, N, A, v, 11, a[41]), A = u(A, R, L, N, G, 16, a[42]), N = u(N, A, R, L, T, 23, a[43]), L = u(L, N, A, R, P, 4, a[44]), R = u(R, L, N, A, M, 11, a[45]), A = u(A, R, L, N, W, 16, a[46]), N = u(N, A, R, L, D, 23, a[47]), L = m(L, N, A, R, v, 6, a[48]), R = m(R, L, N, A, F, 10, a[49]), A = m(A, R, L, N, B, 15, a[50]), N = m(N, A, R, L, k, 21, a[51]), L = m(L, N, A, R, M, 6, a[52]), R = m(R, L, N, A, G, 10, a[53]), A = m(A, R, L, N, S, 15, a[54]), N = m(N, A, R, L, x, 21, a[55]), L = m(L, N, A, R, O, 6, a[56]), R = m(R, L, N, A, W, 10, a[57]), A = m(A, R, L, N, T, 15, a[58]), N = m(N, A, R, L, w, 21, a[59]), L = m(L, N, A, R, H, 6, a[60]), R = m(R, L, N, A, E, 10, a[61]), A = m(A, R, L, N, D, 15, a[62]), N = m(N, A, R, L, P, 21, a[63]), C[0] = C[0] + L | 0, C[1] = C[1] + N | 0, C[2] = C[2] + A | 0, C[3] = C[3] + R | 0;
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
|
-
var d = this._data,
|
|
2136
|
-
|
|
2135
|
+
var d = this._data, f = d.words, y = this._nDataBytes * 8, _ = d.sigBytes * 8;
|
|
2136
|
+
f[_ >>> 5] |= 128 << 24 - _ % 32;
|
|
2137
2137
|
var U = n.floor(y / 4294967296), C = y;
|
|
2138
|
-
|
|
2138
|
+
f[(_ + 64 >>> 9 << 4) + 15] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, f[(_ + 64 >>> 9 << 4) + 14] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, d.sigBytes = (f.length + 1) * 4, this._process();
|
|
2139
2139
|
for (var v = this._hash, x = v.words, D = 0; D < 4; D++) {
|
|
2140
2140
|
var G = x[D];
|
|
2141
2141
|
x[D] = (G << 8 | G >>> 24) & 16711935 | (G << 24 | G >>> 8) & 4278255360;
|
|
@@ -2143,27 +2143,27 @@ function Da() {
|
|
|
2143
2143
|
return v;
|
|
2144
2144
|
},
|
|
2145
2145
|
clone: function() {
|
|
2146
|
-
var d =
|
|
2146
|
+
var d = c.clone.call(this);
|
|
2147
2147
|
return d._hash = this._hash.clone(), d;
|
|
2148
2148
|
}
|
|
2149
2149
|
});
|
|
2150
|
-
function o(d,
|
|
2151
|
-
var x = d + (
|
|
2152
|
-
return (x << C | x >>> 32 - C) +
|
|
2150
|
+
function o(d, f, y, _, U, C, v) {
|
|
2151
|
+
var x = d + (f & y | ~f & _) + U + v;
|
|
2152
|
+
return (x << C | x >>> 32 - C) + f;
|
|
2153
2153
|
}
|
|
2154
|
-
function s(d,
|
|
2155
|
-
var x = d + (
|
|
2156
|
-
return (x << C | x >>> 32 - C) +
|
|
2154
|
+
function s(d, f, y, _, U, C, v) {
|
|
2155
|
+
var x = d + (f & _ | y & ~_) + U + v;
|
|
2156
|
+
return (x << C | x >>> 32 - C) + f;
|
|
2157
2157
|
}
|
|
2158
|
-
function u(d,
|
|
2159
|
-
var x = d + (
|
|
2160
|
-
return (x << C | x >>> 32 - C) +
|
|
2158
|
+
function u(d, f, y, _, U, C, v) {
|
|
2159
|
+
var x = d + (f ^ y ^ _) + U + v;
|
|
2160
|
+
return (x << C | x >>> 32 - C) + f;
|
|
2161
2161
|
}
|
|
2162
|
-
function m(d,
|
|
2163
|
-
var x = d + (y ^ (
|
|
2164
|
-
return (x << C | x >>> 32 - C) +
|
|
2162
|
+
function m(d, f, y, _, U, C, v) {
|
|
2163
|
+
var x = d + (y ^ (f | ~_)) + U + v;
|
|
2164
|
+
return (x << C | x >>> 32 - C) + f;
|
|
2165
2165
|
}
|
|
2166
|
-
p.MD5 =
|
|
2166
|
+
p.MD5 = c._createHelper(t), p.HmacMD5 = c._createHmacHelper(t);
|
|
2167
2167
|
})(Math), i.MD5;
|
|
2168
2168
|
});
|
|
2169
2169
|
})(pi)), pi.exports;
|
|
@@ -2175,7 +2175,7 @@ function Xn() {
|
|
|
2175
2175
|
e.exports = n(ie());
|
|
2176
2176
|
})(_r, function(i) {
|
|
2177
2177
|
return (function() {
|
|
2178
|
-
var n = i, p = n.lib, g = p.WordArray, b = p.Hasher,
|
|
2178
|
+
var n = i, p = n.lib, g = p.WordArray, b = p.Hasher, c = n.algo, r = [], a = c.SHA1 = b.extend({
|
|
2179
2179
|
_doReset: function() {
|
|
2180
2180
|
this._hash = new g.init([
|
|
2181
2181
|
1732584193,
|
|
@@ -2186,7 +2186,7 @@ function Xn() {
|
|
|
2186
2186
|
]);
|
|
2187
2187
|
},
|
|
2188
2188
|
_doProcessBlock: function(t, o) {
|
|
2189
|
-
for (var s = this._hash.words, u = s[0], m = s[1], d = s[2],
|
|
2189
|
+
for (var s = this._hash.words, u = s[0], m = s[1], d = s[2], f = s[3], y = s[4], _ = 0; _ < 80; _++) {
|
|
2190
2190
|
if (_ < 16)
|
|
2191
2191
|
r[_] = t[o + _] | 0;
|
|
2192
2192
|
else {
|
|
@@ -2194,9 +2194,9 @@ function Xn() {
|
|
|
2194
2194
|
r[_] = U << 1 | U >>> 31;
|
|
2195
2195
|
}
|
|
2196
2196
|
var C = (u << 5 | u >>> 27) + y + r[_];
|
|
2197
|
-
_ < 20 ? C += (m & d | ~m &
|
|
2197
|
+
_ < 20 ? C += (m & d | ~m & f) + 1518500249 : _ < 40 ? C += (m ^ d ^ f) + 1859775393 : _ < 60 ? C += (m & d | m & f | d & f) - 1894007588 : C += (m ^ d ^ f) - 899497514, y = f, f = d, d = m << 30 | m >>> 2, m = u, u = C;
|
|
2198
2198
|
}
|
|
2199
|
-
s[0] = s[0] + u | 0, s[1] = s[1] + m | 0, s[2] = s[2] + d | 0, s[3] = s[3] +
|
|
2199
|
+
s[0] = s[0] + u | 0, s[1] = s[1] + m | 0, s[2] = s[2] + d | 0, s[3] = s[3] + f | 0, s[4] = s[4] + y | 0;
|
|
2200
2200
|
},
|
|
2201
2201
|
_doFinalize: function() {
|
|
2202
2202
|
var t = this._data, o = t.words, s = this._nDataBytes * 8, u = t.sigBytes * 8;
|
|
@@ -2219,7 +2219,7 @@ function dt() {
|
|
|
2219
2219
|
e.exports = n(ie());
|
|
2220
2220
|
})(yr, function(i) {
|
|
2221
2221
|
return (function(n) {
|
|
2222
|
-
var p = i, g = p.lib, b = g.WordArray,
|
|
2222
|
+
var p = i, g = p.lib, b = g.WordArray, c = g.Hasher, r = p.algo, a = [], t = [];
|
|
2223
2223
|
(function() {
|
|
2224
2224
|
function u(y) {
|
|
2225
2225
|
for (var _ = n.sqrt(y), U = 2; U <= _; U++)
|
|
@@ -2230,36 +2230,36 @@ function dt() {
|
|
|
2230
2230
|
function m(y) {
|
|
2231
2231
|
return (y - (y | 0)) * 4294967296 | 0;
|
|
2232
2232
|
}
|
|
2233
|
-
for (var d = 2,
|
|
2234
|
-
u(d) && (
|
|
2233
|
+
for (var d = 2, f = 0; f < 64; )
|
|
2234
|
+
u(d) && (f < 8 && (a[f] = m(n.pow(d, 1 / 2))), t[f] = m(n.pow(d, 1 / 3)), f++), d++;
|
|
2235
2235
|
})();
|
|
2236
|
-
var o = [], s = r.SHA256 =
|
|
2236
|
+
var o = [], s = r.SHA256 = c.extend({
|
|
2237
2237
|
_doReset: function() {
|
|
2238
2238
|
this._hash = new b.init(a.slice(0));
|
|
2239
2239
|
},
|
|
2240
2240
|
_doProcessBlock: function(u, m) {
|
|
2241
|
-
for (var d = this._hash.words,
|
|
2241
|
+
for (var d = this._hash.words, f = d[0], y = d[1], _ = d[2], U = d[3], C = d[4], v = d[5], x = d[6], D = d[7], G = 0; G < 64; G++) {
|
|
2242
2242
|
if (G < 16)
|
|
2243
2243
|
o[G] = u[m + G] | 0;
|
|
2244
2244
|
else {
|
|
2245
2245
|
var H = o[G - 15], k = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, T = o[G - 2], F = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
|
|
2246
2246
|
o[G] = k + o[G - 7] + F + o[G - 16];
|
|
2247
2247
|
}
|
|
2248
|
-
var O = C & v ^ ~C & x, P =
|
|
2249
|
-
D = x, x = v, v = C, C = U + M | 0, U = _, _ = y, y =
|
|
2248
|
+
var O = C & v ^ ~C & x, P = f & y ^ f & _ ^ y & _, S = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), E = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), M = D + E + O + t[G] + o[G], w = S + P;
|
|
2249
|
+
D = x, x = v, v = C, C = U + M | 0, U = _, _ = y, y = f, f = M + w | 0;
|
|
2250
2250
|
}
|
|
2251
|
-
d[0] = d[0] +
|
|
2251
|
+
d[0] = d[0] + f | 0, d[1] = d[1] + y | 0, d[2] = d[2] + _ | 0, d[3] = d[3] + U | 0, d[4] = d[4] + C | 0, d[5] = d[5] + v | 0, d[6] = d[6] + x | 0, d[7] = d[7] + D | 0;
|
|
2252
2252
|
},
|
|
2253
2253
|
_doFinalize: function() {
|
|
2254
|
-
var u = this._data, m = u.words, d = this._nDataBytes * 8,
|
|
2255
|
-
return m[
|
|
2254
|
+
var u = this._data, m = u.words, d = this._nDataBytes * 8, f = u.sigBytes * 8;
|
|
2255
|
+
return m[f >>> 5] |= 128 << 24 - f % 32, m[(f + 64 >>> 9 << 4) + 14] = n.floor(d / 4294967296), m[(f + 64 >>> 9 << 4) + 15] = d, u.sigBytes = m.length * 4, this._process(), this._hash;
|
|
2256
2256
|
},
|
|
2257
2257
|
clone: function() {
|
|
2258
|
-
var u =
|
|
2258
|
+
var u = c.clone.call(this);
|
|
2259
2259
|
return u._hash = this._hash.clone(), u;
|
|
2260
2260
|
}
|
|
2261
2261
|
});
|
|
2262
|
-
p.SHA256 =
|
|
2262
|
+
p.SHA256 = c._createHelper(s), p.HmacSHA256 = c._createHmacHelper(s);
|
|
2263
2263
|
})(Math), i.SHA256;
|
|
2264
2264
|
});
|
|
2265
2265
|
})(di)), di.exports;
|
|
@@ -2271,7 +2271,7 @@ function br() {
|
|
|
2271
2271
|
e.exports = n(ie(), dt());
|
|
2272
2272
|
})(Ur, function(i) {
|
|
2273
2273
|
return (function() {
|
|
2274
|
-
var n = i, p = n.lib, g = p.WordArray, b = n.algo,
|
|
2274
|
+
var n = i, p = n.lib, g = p.WordArray, b = n.algo, c = b.SHA256, r = b.SHA224 = c.extend({
|
|
2275
2275
|
_doReset: function() {
|
|
2276
2276
|
this._hash = new g.init([
|
|
2277
2277
|
3238371032,
|
|
@@ -2285,11 +2285,11 @@ function br() {
|
|
|
2285
2285
|
]);
|
|
2286
2286
|
},
|
|
2287
2287
|
_doFinalize: function() {
|
|
2288
|
-
var a =
|
|
2288
|
+
var a = c._doFinalize.call(this);
|
|
2289
2289
|
return a.sigBytes -= 4, a;
|
|
2290
2290
|
}
|
|
2291
2291
|
});
|
|
2292
|
-
n.SHA224 =
|
|
2292
|
+
n.SHA224 = c._createHelper(r), n.HmacSHA224 = c._createHmacHelper(r);
|
|
2293
2293
|
})(), i.SHA224;
|
|
2294
2294
|
});
|
|
2295
2295
|
})(ci)), ci.exports;
|
|
@@ -2301,9 +2301,9 @@ function el() {
|
|
|
2301
2301
|
e.exports = n(ie(), Zi());
|
|
2302
2302
|
})(Cr, function(i) {
|
|
2303
2303
|
return (function() {
|
|
2304
|
-
var n = i, p = n.lib, g = p.Hasher, b = n.x64,
|
|
2304
|
+
var n = i, p = n.lib, g = p.Hasher, b = n.x64, c = b.Word, r = b.WordArray, a = n.algo;
|
|
2305
2305
|
function t() {
|
|
2306
|
-
return
|
|
2306
|
+
return c.create.apply(c, arguments);
|
|
2307
2307
|
}
|
|
2308
2308
|
var o = [
|
|
2309
2309
|
t(1116352408, 3609767458),
|
|
@@ -2394,33 +2394,33 @@ function el() {
|
|
|
2394
2394
|
var u = a.SHA512 = g.extend({
|
|
2395
2395
|
_doReset: function() {
|
|
2396
2396
|
this._hash = new r.init([
|
|
2397
|
-
new
|
|
2398
|
-
new
|
|
2399
|
-
new
|
|
2400
|
-
new
|
|
2401
|
-
new
|
|
2402
|
-
new
|
|
2403
|
-
new
|
|
2404
|
-
new
|
|
2397
|
+
new c.init(1779033703, 4089235720),
|
|
2398
|
+
new c.init(3144134277, 2227873595),
|
|
2399
|
+
new c.init(1013904242, 4271175723),
|
|
2400
|
+
new c.init(2773480762, 1595750129),
|
|
2401
|
+
new c.init(1359893119, 2917565137),
|
|
2402
|
+
new c.init(2600822924, 725511199),
|
|
2403
|
+
new c.init(528734635, 4215389547),
|
|
2404
|
+
new c.init(1541459225, 327033209)
|
|
2405
2405
|
]);
|
|
2406
2406
|
},
|
|
2407
2407
|
_doProcessBlock: function(m, d) {
|
|
2408
|
-
for (var
|
|
2409
|
-
var ve,
|
|
2408
|
+
for (var f = this._hash.words, y = f[0], _ = f[1], U = f[2], C = f[3], v = f[4], x = f[5], D = f[6], G = f[7], H = y.high, k = y.low, T = _.high, F = _.low, O = U.high, P = U.low, S = C.high, E = C.low, M = v.high, w = v.low, B = x.high, W = x.low, L = D.high, N = D.low, A = G.high, R = G.low, K = H, q = k, Q = T, J = F, ae = O, te = P, _e = S, ye = E, se = M, ce = w, ke = B, Ue = W, Ie = L, Ce = N, Ge = A, ea = R, Me = 0; Me < 80; Me++) {
|
|
2409
|
+
var ve, He, aa = s[Me];
|
|
2410
2410
|
if (Me < 16)
|
|
2411
|
-
|
|
2411
|
+
He = aa.high = m[d + Me * 2] | 0, ve = aa.low = m[d + Me * 2 + 1] | 0;
|
|
2412
2412
|
else {
|
|
2413
|
-
var ia = s[Me - 15], xe = ia.high, Re = ia.low,
|
|
2414
|
-
ve = oa + Ia,
|
|
2413
|
+
var ia = s[Me - 15], xe = ia.high, Re = ia.low, Qe = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = s[Me - 2], Ve = ga.high, je = ga.low, Wa = (Ve >>> 19 | je << 13) ^ (Ve << 3 | je >>> 29) ^ Ve >>> 6, Ea = (je >>> 19 | Ve << 13) ^ (je << 3 | Ve >>> 29) ^ (je >>> 6 | Ve << 26), Na = s[Me - 7], za = Na.high, Ia = Na.low, da = s[Me - 16], Ua = da.high, Je = da.low;
|
|
2414
|
+
ve = oa + Ia, He = Qe + za + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Ea, He = He + Wa + (ve >>> 0 < Ea >>> 0 ? 1 : 0), ve = ve + Je, He = He + Ua + (ve >>> 0 < Je >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
|
|
2415
2415
|
}
|
|
2416
|
-
var ca =
|
|
2417
|
-
Ge = Ie, ea = Ce, Ie = ke, Ce = Ue, ke =
|
|
2416
|
+
var ca = se & ke ^ ~se & Ie, fa = ce & Ue ^ ~ce & Ce, La = K & Q ^ K & ae ^ Q & ae, Ga = q & J ^ q & te ^ J & te, ba = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ma = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Ra = (se >>> 14 | ce << 18) ^ (se >>> 18 | ce << 14) ^ (se << 23 | ce >>> 9), Se = (ce >>> 14 | se << 18) ^ (ce >>> 18 | se << 14) ^ (ce << 23 | se >>> 9), V = o[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Ra + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), Ya = Ma + Ga, qi = ba + La + (Ya >>> 0 < Ma >>> 0 ? 1 : 0);
|
|
2417
|
+
Ge = Ie, ea = Ce, Ie = ke, Ce = Ue, ke = se, Ue = ce, ce = ye + Pe | 0, se = _e + na + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, _e = ae, ye = te, ae = Q, te = J, Q = K, J = q, q = Pe + Ya | 0, K = na + qi + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
|
|
2418
2418
|
}
|
|
2419
|
-
k = y.low = k + q, y.high = H + K + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + J, _.high = T + Q + (F >>> 0 < J >>> 0 ? 1 : 0), P = U.low = P + te, U.high = O + ae + (P >>> 0 < te >>> 0 ? 1 : 0), E = C.low = E + ye, C.high = S + _e + (E >>> 0 < ye >>> 0 ? 1 : 0), w = v.low = w + ce, v.high = M +
|
|
2419
|
+
k = y.low = k + q, y.high = H + K + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + J, _.high = T + Q + (F >>> 0 < J >>> 0 ? 1 : 0), P = U.low = P + te, U.high = O + ae + (P >>> 0 < te >>> 0 ? 1 : 0), E = C.low = E + ye, C.high = S + _e + (E >>> 0 < ye >>> 0 ? 1 : 0), w = v.low = w + ce, v.high = M + se + (w >>> 0 < ce >>> 0 ? 1 : 0), W = x.low = W + Ue, x.high = B + ke + (W >>> 0 < Ue >>> 0 ? 1 : 0), N = D.low = N + Ce, D.high = L + Ie + (N >>> 0 < Ce >>> 0 ? 1 : 0), R = G.low = R + ea, G.high = A + Ge + (R >>> 0 < ea >>> 0 ? 1 : 0);
|
|
2420
2420
|
},
|
|
2421
2421
|
_doFinalize: function() {
|
|
2422
|
-
var m = this._data, d = m.words,
|
|
2423
|
-
d[y >>> 5] |= 128 << 24 - y % 32, d[(y + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
2422
|
+
var m = this._data, d = m.words, f = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
2423
|
+
d[y >>> 5] |= 128 << 24 - y % 32, d[(y + 128 >>> 10 << 5) + 30] = Math.floor(f / 4294967296), d[(y + 128 >>> 10 << 5) + 31] = f, m.sigBytes = d.length * 4, this._process();
|
|
2424
2424
|
var _ = this._hash.toX32();
|
|
2425
2425
|
return _;
|
|
2426
2426
|
},
|
|
@@ -2442,7 +2442,7 @@ function hr() {
|
|
|
2442
2442
|
e.exports = n(ie(), Zi(), el());
|
|
2443
2443
|
})(vr, function(i) {
|
|
2444
2444
|
return (function() {
|
|
2445
|
-
var n = i, p = n.x64, g = p.Word, b = p.WordArray,
|
|
2445
|
+
var n = i, p = n.x64, g = p.Word, b = p.WordArray, c = n.algo, r = c.SHA512, a = c.SHA384 = r.extend({
|
|
2446
2446
|
_doReset: function() {
|
|
2447
2447
|
this._hash = new b.init([
|
|
2448
2448
|
new g.init(3418070365, 3238371032),
|
|
@@ -2472,16 +2472,16 @@ function kr() {
|
|
|
2472
2472
|
e.exports = n(ie(), Zi());
|
|
2473
2473
|
})(Tr, function(i) {
|
|
2474
2474
|
return (function(n) {
|
|
2475
|
-
var p = i, g = p.lib, b = g.WordArray,
|
|
2475
|
+
var p = i, g = p.lib, b = g.WordArray, c = g.Hasher, r = p.x64, a = r.Word, t = p.algo, o = [], s = [], u = [];
|
|
2476
2476
|
(function() {
|
|
2477
|
-
for (var
|
|
2478
|
-
o[
|
|
2479
|
-
var U = y % 5, C = (2 *
|
|
2480
|
-
|
|
2477
|
+
for (var f = 1, y = 0, _ = 0; _ < 24; _++) {
|
|
2478
|
+
o[f + 5 * y] = (_ + 1) * (_ + 2) / 2 % 64;
|
|
2479
|
+
var U = y % 5, C = (2 * f + 3 * y) % 5;
|
|
2480
|
+
f = U, y = C;
|
|
2481
2481
|
}
|
|
2482
|
-
for (var
|
|
2482
|
+
for (var f = 0; f < 5; f++)
|
|
2483
2483
|
for (var y = 0; y < 5; y++)
|
|
2484
|
-
s[
|
|
2484
|
+
s[f + 5 * y] = y + (2 * f + 3 * y) % 5 * 5;
|
|
2485
2485
|
for (var v = 1, x = 0; x < 24; x++) {
|
|
2486
2486
|
for (var D = 0, G = 0, H = 0; H < 7; H++) {
|
|
2487
2487
|
if (v & 1) {
|
|
@@ -2495,10 +2495,10 @@ function kr() {
|
|
|
2495
2495
|
})();
|
|
2496
2496
|
var m = [];
|
|
2497
2497
|
(function() {
|
|
2498
|
-
for (var
|
|
2499
|
-
m[
|
|
2498
|
+
for (var f = 0; f < 25; f++)
|
|
2499
|
+
m[f] = a.create();
|
|
2500
2500
|
})();
|
|
2501
|
-
var d = t.SHA3 =
|
|
2501
|
+
var d = t.SHA3 = c.extend({
|
|
2502
2502
|
/**
|
|
2503
2503
|
* Configuration options.
|
|
2504
2504
|
*
|
|
@@ -2507,17 +2507,17 @@ function kr() {
|
|
|
2507
2507
|
* Only values permitted are: 224, 256, 384, 512.
|
|
2508
2508
|
* Default: 512
|
|
2509
2509
|
*/
|
|
2510
|
-
cfg:
|
|
2510
|
+
cfg: c.cfg.extend({
|
|
2511
2511
|
outputLength: 512
|
|
2512
2512
|
}),
|
|
2513
2513
|
_doReset: function() {
|
|
2514
|
-
for (var
|
|
2515
|
-
|
|
2514
|
+
for (var f = this._state = [], y = 0; y < 25; y++)
|
|
2515
|
+
f[y] = new a.init();
|
|
2516
2516
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2517
2517
|
},
|
|
2518
|
-
_doProcessBlock: function(
|
|
2518
|
+
_doProcessBlock: function(f, y) {
|
|
2519
2519
|
for (var _ = this._state, U = this.blockSize / 2, C = 0; C < U; C++) {
|
|
2520
|
-
var v =
|
|
2520
|
+
var v = f[y + 2 * C], x = f[y + 2 * C + 1];
|
|
2521
2521
|
v = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
2522
2522
|
var D = _[C];
|
|
2523
2523
|
D.high ^= x, D.low ^= v;
|
|
@@ -2554,10 +2554,10 @@ function kr() {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
},
|
|
2556
2556
|
_doFinalize: function() {
|
|
2557
|
-
var
|
|
2557
|
+
var f = this._data, y = f.words;
|
|
2558
2558
|
this._nDataBytes * 8;
|
|
2559
|
-
var _ =
|
|
2560
|
-
y[_ >>> 5] |= 1 << 24 - _ % 32, y[(n.ceil((_ + 1) / U) * U >>> 5) - 1] |= 128,
|
|
2559
|
+
var _ = f.sigBytes * 8, U = this.blockSize * 32;
|
|
2560
|
+
y[_ >>> 5] |= 1 << 24 - _ % 32, y[(n.ceil((_ + 1) / U) * U >>> 5) - 1] |= 128, f.sigBytes = y.length * 4, this._process();
|
|
2561
2561
|
for (var C = this._state, v = this.cfg.outputLength / 8, x = v / 8, D = [], G = 0; G < x; G++) {
|
|
2562
2562
|
var H = C[G], k = H.high, T = H.low;
|
|
2563
2563
|
k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, T = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, D.push(T), D.push(k);
|
|
@@ -2565,12 +2565,12 @@ function kr() {
|
|
|
2565
2565
|
return new b.init(D, v);
|
|
2566
2566
|
},
|
|
2567
2567
|
clone: function() {
|
|
2568
|
-
for (var
|
|
2568
|
+
for (var f = c.clone.call(this), y = f._state = this._state.slice(0), _ = 0; _ < 25; _++)
|
|
2569
2569
|
y[_] = y[_].clone();
|
|
2570
|
-
return
|
|
2570
|
+
return f;
|
|
2571
2571
|
}
|
|
2572
2572
|
});
|
|
2573
|
-
p.SHA3 =
|
|
2573
|
+
p.SHA3 = c._createHelper(d), p.HmacSHA3 = c._createHmacHelper(d);
|
|
2574
2574
|
})(Math), i.SHA3;
|
|
2575
2575
|
});
|
|
2576
2576
|
})(yi)), yi.exports;
|
|
@@ -2582,7 +2582,7 @@ function Sr() {
|
|
|
2582
2582
|
e.exports = n(ie());
|
|
2583
2583
|
})(xr, function(i) {
|
|
2584
2584
|
return (function(n) {
|
|
2585
|
-
var p = i, g = p.lib, b = g.WordArray,
|
|
2585
|
+
var p = i, g = p.lib, b = g.WordArray, c = g.Hasher, r = p.algo, a = b.create([
|
|
2586
2586
|
0,
|
|
2587
2587
|
1,
|
|
2588
2588
|
2,
|
|
@@ -2906,7 +2906,7 @@ function Sr() {
|
|
|
2906
2906
|
13,
|
|
2907
2907
|
11,
|
|
2908
2908
|
11
|
|
2909
|
-
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), d = r.RIPEMD160 =
|
|
2909
|
+
]), u = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), d = r.RIPEMD160 = c.extend({
|
|
2910
2910
|
_doReset: function() {
|
|
2911
2911
|
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2912
2912
|
},
|
|
@@ -2918,7 +2918,7 @@ function Sr() {
|
|
|
2918
2918
|
var T = this._hash.words, F = u.words, O = m.words, P = a.words, S = t.words, E = o.words, M = s.words, w, B, W, L, N, A, R, K, q, Q;
|
|
2919
2919
|
A = w = T[0], R = B = T[1], K = W = T[2], q = L = T[3], Q = N = T[4];
|
|
2920
2920
|
for (var J, G = 0; G < 80; G += 1)
|
|
2921
|
-
J = w + x[D + P[G]] | 0, G < 16 ? J +=
|
|
2921
|
+
J = w + x[D + P[G]] | 0, G < 16 ? J += f(B, W, L) + F[0] : G < 32 ? J += y(B, W, L) + F[1] : G < 48 ? J += _(B, W, L) + F[2] : G < 64 ? J += U(B, W, L) + F[3] : J += C(B, W, L) + F[4], J = J | 0, J = v(J, E[G]), J = J + N | 0, w = N, N = L, L = v(W, 10), W = B, B = J, J = A + x[D + S[G]] | 0, G < 16 ? J += C(R, K, q) + O[0] : G < 32 ? J += U(R, K, q) + O[1] : G < 48 ? J += _(R, K, q) + O[2] : G < 64 ? J += y(R, K, q) + O[3] : J += f(R, K, q) + O[4], J = J | 0, J = v(J, M[G]), J = J + Q | 0, A = Q, Q = q, q = v(K, 10), K = R, R = J;
|
|
2922
2922
|
J = T[1] + W + q | 0, T[1] = T[2] + L + Q | 0, T[2] = T[3] + N + A | 0, T[3] = T[4] + w + R | 0, T[4] = T[0] + B + K | 0, T[0] = J;
|
|
2923
2923
|
},
|
|
2924
2924
|
_doFinalize: function() {
|
|
@@ -2931,11 +2931,11 @@ function Sr() {
|
|
|
2931
2931
|
return k;
|
|
2932
2932
|
},
|
|
2933
2933
|
clone: function() {
|
|
2934
|
-
var x =
|
|
2934
|
+
var x = c.clone.call(this);
|
|
2935
2935
|
return x._hash = this._hash.clone(), x;
|
|
2936
2936
|
}
|
|
2937
2937
|
});
|
|
2938
|
-
function
|
|
2938
|
+
function f(x, D, G) {
|
|
2939
2939
|
return x ^ D ^ G;
|
|
2940
2940
|
}
|
|
2941
2941
|
function y(x, D, G) {
|
|
@@ -2953,7 +2953,7 @@ function Sr() {
|
|
|
2953
2953
|
function v(x, D) {
|
|
2954
2954
|
return x << D | x >>> 32 - D;
|
|
2955
2955
|
}
|
|
2956
|
-
p.RIPEMD160 =
|
|
2956
|
+
p.RIPEMD160 = c._createHelper(d), p.HmacRIPEMD160 = c._createHmacHelper(d);
|
|
2957
2957
|
})(), i.RIPEMD160;
|
|
2958
2958
|
});
|
|
2959
2959
|
})(Ui)), Ui.exports;
|
|
@@ -2965,7 +2965,7 @@ function ct() {
|
|
|
2965
2965
|
e.exports = n(ie());
|
|
2966
2966
|
})(Dr, function(i) {
|
|
2967
2967
|
(function() {
|
|
2968
|
-
var n = i, p = n.lib, g = p.Base, b = n.enc,
|
|
2968
|
+
var n = i, p = n.lib, g = p.Base, b = n.enc, c = b.Utf8, r = n.algo;
|
|
2969
2969
|
r.HMAC = g.extend({
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Initializes a newly created HMAC.
|
|
@@ -2978,11 +2978,11 @@ function ct() {
|
|
|
2978
2978
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2979
2979
|
*/
|
|
2980
2980
|
init: function(a, t) {
|
|
2981
|
-
a = this._hasher = new a.init(), typeof t == "string" && (t =
|
|
2981
|
+
a = this._hasher = new a.init(), typeof t == "string" && (t = c.parse(t));
|
|
2982
2982
|
var o = a.blockSize, s = o * 4;
|
|
2983
2983
|
t.sigBytes > s && (t = a.finalize(t)), t.clamp();
|
|
2984
|
-
for (var u = this._oKey = t.clone(), m = this._iKey = t.clone(), d = u.words,
|
|
2985
|
-
d[y] ^= 1549556828,
|
|
2984
|
+
for (var u = this._oKey = t.clone(), m = this._iKey = t.clone(), d = u.words, f = m.words, y = 0; y < o; y++)
|
|
2985
|
+
d[y] ^= 1549556828, f[y] ^= 909522486;
|
|
2986
2986
|
u.sigBytes = m.sigBytes = s, this.reset();
|
|
2987
2987
|
},
|
|
2988
2988
|
/**
|
|
@@ -3043,7 +3043,7 @@ function Nr() {
|
|
|
3043
3043
|
e.exports = n(ie(), dt(), ct());
|
|
3044
3044
|
})(Er, function(i) {
|
|
3045
3045
|
return (function() {
|
|
3046
|
-
var n = i, p = n.lib, g = p.Base, b = p.WordArray,
|
|
3046
|
+
var n = i, p = n.lib, g = p.Base, b = p.WordArray, c = n.algo, r = c.SHA256, a = c.HMAC, t = c.PBKDF2 = g.extend({
|
|
3047
3047
|
/**
|
|
3048
3048
|
* Configuration options.
|
|
3049
3049
|
*
|
|
@@ -3083,8 +3083,8 @@ function Nr() {
|
|
|
3083
3083
|
* var key = kdf.compute(password, salt);
|
|
3084
3084
|
*/
|
|
3085
3085
|
compute: function(o, s) {
|
|
3086
|
-
for (var u = this.cfg, m = a.create(u.hasher, o), d = b.create(),
|
|
3087
|
-
var v = m.update(s).finalize(
|
|
3086
|
+
for (var u = this.cfg, m = a.create(u.hasher, o), d = b.create(), f = b.create([1]), y = d.words, _ = f.words, U = u.keySize, C = u.iterations; y.length < U; ) {
|
|
3087
|
+
var v = m.update(s).finalize(f);
|
|
3088
3088
|
m.reset();
|
|
3089
3089
|
for (var x = v.words, D = x.length, G = v, H = 1; H < C; H++) {
|
|
3090
3090
|
G = m.finalize(G), m.reset();
|
|
@@ -3110,7 +3110,7 @@ function ya() {
|
|
|
3110
3110
|
e.exports = n(ie(), Xn(), ct());
|
|
3111
3111
|
})(Lr, function(i) {
|
|
3112
3112
|
return (function() {
|
|
3113
|
-
var n = i, p = n.lib, g = p.Base, b = p.WordArray,
|
|
3113
|
+
var n = i, p = n.lib, g = p.Base, b = p.WordArray, c = n.algo, r = c.MD5, a = c.EvpKDF = g.extend({
|
|
3114
3114
|
/**
|
|
3115
3115
|
* Configuration options.
|
|
3116
3116
|
*
|
|
@@ -3150,7 +3150,7 @@ function ya() {
|
|
|
3150
3150
|
* var key = kdf.compute(password, salt);
|
|
3151
3151
|
*/
|
|
3152
3152
|
compute: function(t, o) {
|
|
3153
|
-
for (var s, u = this.cfg, m = u.hasher.create(), d = b.create(),
|
|
3153
|
+
for (var s, u = this.cfg, m = u.hasher.create(), d = b.create(), f = d.words, y = u.keySize, _ = u.iterations; f.length < y; ) {
|
|
3154
3154
|
s && m.update(s), s = m.update(t).finalize(o), m.reset();
|
|
3155
3155
|
for (var U = 1; U < _; U++)
|
|
3156
3156
|
s = m.finalize(s), m.reset();
|
|
@@ -3173,7 +3173,7 @@ function Ne() {
|
|
|
3173
3173
|
e.exports = n(ie(), ya());
|
|
3174
3174
|
})(Gr, function(i) {
|
|
3175
3175
|
i.lib.Cipher || (function(n) {
|
|
3176
|
-
var p = i, g = p.lib, b = g.Base,
|
|
3176
|
+
var p = i, g = p.lib, b = g.Base, c = g.WordArray, r = g.BufferedBlockAlgorithm, a = p.enc;
|
|
3177
3177
|
a.Utf8;
|
|
3178
3178
|
var t = a.Base64, o = p.algo, s = o.EvpKDF, u = g.Cipher = r.extend({
|
|
3179
3179
|
/**
|
|
@@ -3358,7 +3358,7 @@ function Ne() {
|
|
|
3358
3358
|
init: function(k, T) {
|
|
3359
3359
|
this._cipher = k, this._iv = T;
|
|
3360
3360
|
}
|
|
3361
|
-
}),
|
|
3361
|
+
}), f = m.CBC = (function() {
|
|
3362
3362
|
var k = d.extend();
|
|
3363
3363
|
k.Encryptor = k.extend({
|
|
3364
3364
|
/**
|
|
@@ -3414,7 +3414,7 @@ function Ne() {
|
|
|
3414
3414
|
pad: function(k, T) {
|
|
3415
3415
|
for (var F = T * 4, O = F - k.sigBytes % F, P = O << 24 | O << 16 | O << 8 | O, S = [], E = 0; E < O; E += 4)
|
|
3416
3416
|
S.push(P);
|
|
3417
|
-
var M =
|
|
3417
|
+
var M = c.create(S, O);
|
|
3418
3418
|
k.concat(M);
|
|
3419
3419
|
},
|
|
3420
3420
|
/**
|
|
@@ -3441,7 +3441,7 @@ function Ne() {
|
|
|
3441
3441
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3442
3442
|
*/
|
|
3443
3443
|
cfg: u.cfg.extend({
|
|
3444
|
-
mode:
|
|
3444
|
+
mode: f,
|
|
3445
3445
|
padding: _
|
|
3446
3446
|
}),
|
|
3447
3447
|
reset: function() {
|
|
@@ -3516,7 +3516,7 @@ function Ne() {
|
|
|
3516
3516
|
*/
|
|
3517
3517
|
stringify: function(k) {
|
|
3518
3518
|
var T, F = k.ciphertext, O = k.salt;
|
|
3519
|
-
return O ? T =
|
|
3519
|
+
return O ? T = c.create([1398893684, 1701076831]).concat(O).concat(F) : T = F, T.toString(t);
|
|
3520
3520
|
},
|
|
3521
3521
|
/**
|
|
3522
3522
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3533,7 +3533,7 @@ function Ne() {
|
|
|
3533
3533
|
*/
|
|
3534
3534
|
parse: function(k) {
|
|
3535
3535
|
var T, F = t.parse(k), O = F.words;
|
|
3536
|
-
return O[0] == 1398893684 && O[1] == 1701076831 && (T =
|
|
3536
|
+
return O[0] == 1398893684 && O[1] == 1701076831 && (T = c.create(O.slice(2, 4)), O.splice(0, 4), F.sigBytes -= 16), U.create({ ciphertext: F, salt: T });
|
|
3537
3537
|
}
|
|
3538
3538
|
}, x = g.SerializableCipher = b.extend({
|
|
3539
3539
|
/**
|
|
@@ -3635,11 +3635,11 @@ function Ne() {
|
|
|
3635
3635
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3636
3636
|
*/
|
|
3637
3637
|
execute: function(k, T, F, O, P) {
|
|
3638
|
-
if (O || (O =
|
|
3638
|
+
if (O || (O = c.random(64 / 8)), P)
|
|
3639
3639
|
var S = s.create({ keySize: T + F, hasher: P }).compute(k, O);
|
|
3640
3640
|
else
|
|
3641
3641
|
var S = s.create({ keySize: T + F }).compute(k, O);
|
|
3642
|
-
var E =
|
|
3642
|
+
var E = c.create(S.words.slice(T), F * 4);
|
|
3643
3643
|
return S.sigBytes = T * 4, U.create({ key: S, iv: E, salt: O });
|
|
3644
3644
|
}
|
|
3645
3645
|
}, H = g.PasswordBasedCipher = x.extend({
|
|
@@ -3714,19 +3714,19 @@ function Rr() {
|
|
|
3714
3714
|
var n = i.lib.BlockCipherMode.extend();
|
|
3715
3715
|
n.Encryptor = n.extend({
|
|
3716
3716
|
processBlock: function(g, b) {
|
|
3717
|
-
var
|
|
3718
|
-
p.call(this, g, b, r,
|
|
3717
|
+
var c = this._cipher, r = c.blockSize;
|
|
3718
|
+
p.call(this, g, b, r, c), this._prevBlock = g.slice(b, b + r);
|
|
3719
3719
|
}
|
|
3720
3720
|
}), n.Decryptor = n.extend({
|
|
3721
3721
|
processBlock: function(g, b) {
|
|
3722
|
-
var
|
|
3723
|
-
p.call(this, g, b, r,
|
|
3722
|
+
var c = this._cipher, r = c.blockSize, a = g.slice(b, b + r);
|
|
3723
|
+
p.call(this, g, b, r, c), this._prevBlock = a;
|
|
3724
3724
|
}
|
|
3725
3725
|
});
|
|
3726
|
-
function p(g, b,
|
|
3726
|
+
function p(g, b, c, r) {
|
|
3727
3727
|
var a, t = this._iv;
|
|
3728
3728
|
t ? (a = t.slice(0), this._iv = void 0) : a = this._prevBlock, r.encryptBlock(a, 0);
|
|
3729
|
-
for (var o = 0; o <
|
|
3729
|
+
for (var o = 0; o < c; o++)
|
|
3730
3730
|
g[b + o] ^= a[o];
|
|
3731
3731
|
}
|
|
3732
3732
|
return n;
|
|
@@ -3743,10 +3743,10 @@ function wr() {
|
|
|
3743
3743
|
return i.mode.CTR = (function() {
|
|
3744
3744
|
var n = i.lib.BlockCipherMode.extend(), p = n.Encryptor = n.extend({
|
|
3745
3745
|
processBlock: function(g, b) {
|
|
3746
|
-
var
|
|
3746
|
+
var c = this._cipher, r = c.blockSize, a = this._iv, t = this._counter;
|
|
3747
3747
|
a && (t = this._counter = a.slice(0), this._iv = void 0);
|
|
3748
3748
|
var o = t.slice(0);
|
|
3749
|
-
|
|
3749
|
+
c.encryptBlock(o, 0), t[r - 1] = t[r - 1] + 1 | 0;
|
|
3750
3750
|
for (var s = 0; s < r; s++)
|
|
3751
3751
|
g[b + s] ^= o[s];
|
|
3752
3752
|
}
|
|
@@ -3764,25 +3764,25 @@ function Ar() {
|
|
|
3764
3764
|
})(Fr, function(i) {
|
|
3765
3765
|
return i.mode.CTRGladman = (function() {
|
|
3766
3766
|
var n = i.lib.BlockCipherMode.extend();
|
|
3767
|
-
function p(
|
|
3768
|
-
if ((
|
|
3769
|
-
var r =
|
|
3770
|
-
r === 255 ? (r = 0, a === 255 ? (a = 0, t === 255 ? t = 0 : ++t) : ++a) : ++r,
|
|
3767
|
+
function p(c) {
|
|
3768
|
+
if ((c >> 24 & 255) === 255) {
|
|
3769
|
+
var r = c >> 16 & 255, a = c >> 8 & 255, t = c & 255;
|
|
3770
|
+
r === 255 ? (r = 0, a === 255 ? (a = 0, t === 255 ? t = 0 : ++t) : ++a) : ++r, c = 0, c += r << 16, c += a << 8, c += t;
|
|
3771
3771
|
} else
|
|
3772
|
-
|
|
3773
|
-
return
|
|
3772
|
+
c += 1 << 24;
|
|
3773
|
+
return c;
|
|
3774
3774
|
}
|
|
3775
|
-
function g(
|
|
3776
|
-
return (
|
|
3775
|
+
function g(c) {
|
|
3776
|
+
return (c[0] = p(c[0])) === 0 && (c[1] = p(c[1])), c;
|
|
3777
3777
|
}
|
|
3778
3778
|
var b = n.Encryptor = n.extend({
|
|
3779
|
-
processBlock: function(
|
|
3779
|
+
processBlock: function(c, r) {
|
|
3780
3780
|
var a = this._cipher, t = a.blockSize, o = this._iv, s = this._counter;
|
|
3781
3781
|
o && (s = this._counter = o.slice(0), this._iv = void 0), g(s);
|
|
3782
3782
|
var u = s.slice(0);
|
|
3783
3783
|
a.encryptBlock(u, 0);
|
|
3784
3784
|
for (var m = 0; m < t; m++)
|
|
3785
|
-
|
|
3785
|
+
c[r + m] ^= u[m];
|
|
3786
3786
|
}
|
|
3787
3787
|
});
|
|
3788
3788
|
return n.Decryptor = b, n;
|
|
@@ -3799,8 +3799,8 @@ function Br() {
|
|
|
3799
3799
|
return i.mode.OFB = (function() {
|
|
3800
3800
|
var n = i.lib.BlockCipherMode.extend(), p = n.Encryptor = n.extend({
|
|
3801
3801
|
processBlock: function(g, b) {
|
|
3802
|
-
var
|
|
3803
|
-
a && (t = this._keystream = a.slice(0), this._iv = void 0),
|
|
3802
|
+
var c = this._cipher, r = c.blockSize, a = this._iv, t = this._keystream;
|
|
3803
|
+
a && (t = this._keystream = a.slice(0), this._iv = void 0), c.encryptBlock(t, 0);
|
|
3804
3804
|
for (var o = 0; o < r; o++)
|
|
3805
3805
|
g[b + o] ^= t[o];
|
|
3806
3806
|
}
|
|
@@ -3839,8 +3839,8 @@ function Ir() {
|
|
|
3839
3839
|
})(zr, function(i) {
|
|
3840
3840
|
return i.pad.AnsiX923 = {
|
|
3841
3841
|
pad: function(n, p) {
|
|
3842
|
-
var g = n.sigBytes, b = p * 4,
|
|
3843
|
-
n.clamp(), n.words[r >>> 2] |=
|
|
3842
|
+
var g = n.sigBytes, b = p * 4, c = b - g % b, r = g + c - 1;
|
|
3843
|
+
n.clamp(), n.words[r >>> 2] |= c << 24 - r % 4 * 8, n.sigBytes += c;
|
|
3844
3844
|
},
|
|
3845
3845
|
unpad: function(n) {
|
|
3846
3846
|
var p = n.words[n.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3930,7 +3930,7 @@ function Xr() {
|
|
|
3930
3930
|
e.exports = n(ie(), Ne());
|
|
3931
3931
|
})(Yr, function(i) {
|
|
3932
3932
|
return (function(n) {
|
|
3933
|
-
var p = i, g = p.lib, b = g.CipherParams,
|
|
3933
|
+
var p = i, g = p.lib, b = g.CipherParams, c = p.enc, r = c.Hex, a = p.format;
|
|
3934
3934
|
a.Hex = {
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3977,17 +3977,17 @@ function ao() {
|
|
|
3977
3977
|
e.exports = n(ie(), Sa(), Da(), ya(), Ne());
|
|
3978
3978
|
})(eo, function(i) {
|
|
3979
3979
|
return (function() {
|
|
3980
|
-
var n = i, p = n.lib, g = p.BlockCipher, b = n.algo,
|
|
3980
|
+
var n = i, p = n.lib, g = p.BlockCipher, b = n.algo, c = [], r = [], a = [], t = [], o = [], s = [], u = [], m = [], d = [], f = [];
|
|
3981
3981
|
(function() {
|
|
3982
3982
|
for (var U = [], C = 0; C < 256; C++)
|
|
3983
3983
|
C < 128 ? U[C] = C << 1 : U[C] = C << 1 ^ 283;
|
|
3984
3984
|
for (var v = 0, x = 0, C = 0; C < 256; C++) {
|
|
3985
3985
|
var D = x ^ x << 1 ^ x << 2 ^ x << 3 ^ x << 4;
|
|
3986
|
-
D = D >>> 8 ^ D & 255 ^ 99,
|
|
3986
|
+
D = D >>> 8 ^ D & 255 ^ 99, c[v] = D, r[D] = v;
|
|
3987
3987
|
var G = U[v], H = U[G], k = U[H], T = U[D] * 257 ^ D * 16843008;
|
|
3988
3988
|
a[v] = T << 24 | T >>> 8, t[v] = T << 16 | T >>> 16, o[v] = T << 8 | T >>> 24, s[v] = T;
|
|
3989
3989
|
var T = k * 16843009 ^ H * 65537 ^ G * 257 ^ v * 16843008;
|
|
3990
|
-
u[D] = T << 24 | T >>> 8, m[D] = T << 16 | T >>> 16, d[D] = T << 8 | T >>> 24,
|
|
3990
|
+
u[D] = T << 24 | T >>> 8, m[D] = T << 16 | T >>> 16, d[D] = T << 8 | T >>> 24, f[D] = T, v ? (v = G ^ U[U[U[k ^ G]]], x ^= U[U[x]]) : v = x = 1;
|
|
3991
3991
|
}
|
|
3992
3992
|
})();
|
|
3993
3993
|
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = b.AES = g.extend({
|
|
@@ -3995,23 +3995,23 @@ function ao() {
|
|
|
3995
3995
|
var U;
|
|
3996
3996
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3997
3997
|
for (var C = this._keyPriorReset = this._key, v = C.words, x = C.sigBytes / 4, D = this._nRounds = x + 6, G = (D + 1) * 4, H = this._keySchedule = [], k = 0; k < G; k++)
|
|
3998
|
-
k < x ? H[k] = v[k] : (U = H[k - 1], k % x ? x > 6 && k % x == 4 && (U =
|
|
3998
|
+
k < x ? H[k] = v[k] : (U = H[k - 1], k % x ? x > 6 && k % x == 4 && (U = c[U >>> 24] << 24 | c[U >>> 16 & 255] << 16 | c[U >>> 8 & 255] << 8 | c[U & 255]) : (U = U << 8 | U >>> 24, U = c[U >>> 24] << 24 | c[U >>> 16 & 255] << 16 | c[U >>> 8 & 255] << 8 | c[U & 255], U ^= y[k / x | 0] << 24), H[k] = H[k - x] ^ U);
|
|
3999
3999
|
for (var T = this._invKeySchedule = [], F = 0; F < G; F++) {
|
|
4000
4000
|
var k = G - F;
|
|
4001
4001
|
if (F % 4)
|
|
4002
4002
|
var U = H[k];
|
|
4003
4003
|
else
|
|
4004
4004
|
var U = H[k - 4];
|
|
4005
|
-
F < 4 || k <= 4 ? T[F] = U : T[F] = u[
|
|
4005
|
+
F < 4 || k <= 4 ? T[F] = U : T[F] = u[c[U >>> 24]] ^ m[c[U >>> 16 & 255]] ^ d[c[U >>> 8 & 255]] ^ f[c[U & 255]];
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
4008
|
},
|
|
4009
4009
|
encryptBlock: function(U, C) {
|
|
4010
|
-
this._doCryptBlock(U, C, this._keySchedule, a, t, o, s,
|
|
4010
|
+
this._doCryptBlock(U, C, this._keySchedule, a, t, o, s, c);
|
|
4011
4011
|
},
|
|
4012
4012
|
decryptBlock: function(U, C) {
|
|
4013
4013
|
var v = U[C + 1];
|
|
4014
|
-
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, u, m, d,
|
|
4014
|
+
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, u, m, d, f, r);
|
|
4015
4015
|
var v = U[C + 1];
|
|
4016
4016
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
4017
4017
|
},
|
|
@@ -4037,7 +4037,7 @@ function to() {
|
|
|
4037
4037
|
e.exports = n(ie(), Sa(), Da(), ya(), Ne());
|
|
4038
4038
|
})(io, function(i) {
|
|
4039
4039
|
return (function() {
|
|
4040
|
-
var n = i, p = n.lib, g = p.WordArray, b = p.BlockCipher,
|
|
4040
|
+
var n = i, p = n.lib, g = p.WordArray, b = p.BlockCipher, c = n.algo, r = [
|
|
4041
4041
|
57,
|
|
4042
4042
|
49,
|
|
4043
4043
|
41,
|
|
@@ -4681,7 +4681,7 @@ function to() {
|
|
|
4681
4681
|
8064,
|
|
4682
4682
|
504,
|
|
4683
4683
|
2147483679
|
|
4684
|
-
], u =
|
|
4684
|
+
], u = c.DES = b.extend({
|
|
4685
4685
|
_doReset: function() {
|
|
4686
4686
|
for (var y = this._key, _ = y.words, U = [], C = 0; C < 56; C++) {
|
|
4687
4687
|
var v = r[C] - 1;
|
|
@@ -4727,7 +4727,7 @@ function to() {
|
|
|
4727
4727
|
this._lBlock ^= U, this._rBlock ^= U << y;
|
|
4728
4728
|
}
|
|
4729
4729
|
n.DES = b._createHelper(u);
|
|
4730
|
-
var
|
|
4730
|
+
var f = c.TripleDES = b.extend({
|
|
4731
4731
|
_doReset: function() {
|
|
4732
4732
|
var y = this._key, _ = y.words;
|
|
4733
4733
|
if (_.length !== 2 && _.length !== 4 && _.length < 6)
|
|
@@ -4745,7 +4745,7 @@ function to() {
|
|
|
4745
4745
|
ivSize: 64 / 32,
|
|
4746
4746
|
blockSize: 64 / 32
|
|
4747
4747
|
});
|
|
4748
|
-
n.TripleDES = b._createHelper(
|
|
4748
|
+
n.TripleDES = b._createHelper(f);
|
|
4749
4749
|
})(), i.TripleDES;
|
|
4750
4750
|
});
|
|
4751
4751
|
})(wi)), wi.exports;
|
|
@@ -4757,12 +4757,12 @@ function lo() {
|
|
|
4757
4757
|
e.exports = n(ie(), Sa(), Da(), ya(), Ne());
|
|
4758
4758
|
})(no, function(i) {
|
|
4759
4759
|
return (function() {
|
|
4760
|
-
var n = i, p = n.lib, g = p.StreamCipher, b = n.algo,
|
|
4760
|
+
var n = i, p = n.lib, g = p.StreamCipher, b = n.algo, c = b.RC4 = g.extend({
|
|
4761
4761
|
_doReset: function() {
|
|
4762
4762
|
for (var t = this._key, o = t.words, s = t.sigBytes, u = this._S = [], m = 0; m < 256; m++)
|
|
4763
4763
|
u[m] = m;
|
|
4764
4764
|
for (var m = 0, d = 0; m < 256; m++) {
|
|
4765
|
-
var
|
|
4765
|
+
var f = m % s, y = o[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4766
4766
|
d = (d + u[m] + y) % 256;
|
|
4767
4767
|
var _ = u[m];
|
|
4768
4768
|
u[m] = u[d], u[d] = _;
|
|
@@ -4783,18 +4783,18 @@ function lo() {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
return this._i = o, this._j = s, u;
|
|
4785
4785
|
}
|
|
4786
|
-
n.RC4 = g._createHelper(
|
|
4787
|
-
var a = b.RC4Drop =
|
|
4786
|
+
n.RC4 = g._createHelper(c);
|
|
4787
|
+
var a = b.RC4Drop = c.extend({
|
|
4788
4788
|
/**
|
|
4789
4789
|
* Configuration options.
|
|
4790
4790
|
*
|
|
4791
4791
|
* @property {number} drop The number of keystream words to drop. Default 192
|
|
4792
4792
|
*/
|
|
4793
|
-
cfg:
|
|
4793
|
+
cfg: c.cfg.extend({
|
|
4794
4794
|
drop: 192
|
|
4795
4795
|
}),
|
|
4796
4796
|
_doReset: function() {
|
|
4797
|
-
|
|
4797
|
+
c._doReset.call(this);
|
|
4798
4798
|
for (var t = this.cfg.drop; t > 0; t--)
|
|
4799
4799
|
r.call(this);
|
|
4800
4800
|
}
|
|
@@ -4811,7 +4811,7 @@ function oo() {
|
|
|
4811
4811
|
e.exports = n(ie(), Sa(), Da(), ya(), Ne());
|
|
4812
4812
|
})(ro, function(i) {
|
|
4813
4813
|
return (function() {
|
|
4814
|
-
var n = i, p = n.lib, g = p.StreamCipher, b = n.algo,
|
|
4814
|
+
var n = i, p = n.lib, g = p.StreamCipher, b = n.algo, c = [], r = [], a = [], t = b.Rabbit = g.extend({
|
|
4815
4815
|
_doReset: function() {
|
|
4816
4816
|
for (var s = this._key.words, u = this.cfg.iv, m = 0; m < 4; m++)
|
|
4817
4817
|
s[m] = (s[m] << 8 | s[m] >>> 24) & 16711935 | (s[m] << 24 | s[m] >>> 8) & 4278255360;
|
|
@@ -4824,7 +4824,7 @@ function oo() {
|
|
|
4824
4824
|
s[1] << 16 | s[0] >>> 16,
|
|
4825
4825
|
s[3],
|
|
4826
4826
|
s[2] << 16 | s[1] >>> 16
|
|
4827
|
-
],
|
|
4827
|
+
], f = this._C = [
|
|
4828
4828
|
s[2] << 16 | s[2] >>> 16,
|
|
4829
4829
|
s[0] & 4294901760 | s[1] & 65535,
|
|
4830
4830
|
s[3] << 16 | s[3] >>> 16,
|
|
@@ -4838,19 +4838,19 @@ function oo() {
|
|
|
4838
4838
|
for (var m = 0; m < 4; m++)
|
|
4839
4839
|
o.call(this);
|
|
4840
4840
|
for (var m = 0; m < 8; m++)
|
|
4841
|
-
|
|
4841
|
+
f[m] ^= d[m + 4 & 7];
|
|
4842
4842
|
if (u) {
|
|
4843
4843
|
var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, D = v << 16 | C & 65535;
|
|
4844
|
-
|
|
4844
|
+
f[0] ^= C, f[1] ^= x, f[2] ^= v, f[3] ^= D, f[4] ^= C, f[5] ^= x, f[6] ^= v, f[7] ^= D;
|
|
4845
4845
|
for (var m = 0; m < 4; m++)
|
|
4846
4846
|
o.call(this);
|
|
4847
4847
|
}
|
|
4848
4848
|
},
|
|
4849
4849
|
_doProcessBlock: function(s, u) {
|
|
4850
4850
|
var m = this._X;
|
|
4851
|
-
o.call(this),
|
|
4851
|
+
o.call(this), c[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, c[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, c[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, c[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
|
|
4852
4852
|
for (var d = 0; d < 4; d++)
|
|
4853
|
-
|
|
4853
|
+
c[d] = (c[d] << 8 | c[d] >>> 24) & 16711935 | (c[d] << 24 | c[d] >>> 8) & 4278255360, s[u + d] ^= c[d];
|
|
4854
4854
|
},
|
|
4855
4855
|
blockSize: 128 / 32,
|
|
4856
4856
|
ivSize: 64 / 32
|
|
@@ -4860,7 +4860,7 @@ function oo() {
|
|
|
4860
4860
|
r[m] = u[m];
|
|
4861
4861
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < r[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < r[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < r[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < r[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < r[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < r[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < r[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < r[7] >>> 0 ? 1 : 0;
|
|
4862
4862
|
for (var m = 0; m < 8; m++) {
|
|
4863
|
-
var d = s[m] + u[m],
|
|
4863
|
+
var d = s[m] + u[m], f = d & 65535, y = d >>> 16, _ = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((d & 4294901760) * d | 0) + ((d & 65535) * d | 0);
|
|
4864
4864
|
a[m] = _ ^ U;
|
|
4865
4865
|
}
|
|
4866
4866
|
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;
|
|
@@ -4877,7 +4877,7 @@ function mo() {
|
|
|
4877
4877
|
e.exports = n(ie(), Sa(), Da(), ya(), Ne());
|
|
4878
4878
|
})(so, function(i) {
|
|
4879
4879
|
return (function() {
|
|
4880
|
-
var n = i, p = n.lib, g = p.StreamCipher, b = n.algo,
|
|
4880
|
+
var n = i, p = n.lib, g = p.StreamCipher, b = n.algo, c = [], r = [], a = [], t = b.RabbitLegacy = g.extend({
|
|
4881
4881
|
_doReset: function() {
|
|
4882
4882
|
var s = this._key.words, u = this.cfg.iv, m = this._X = [
|
|
4883
4883
|
s[0],
|
|
@@ -4899,22 +4899,22 @@ function mo() {
|
|
|
4899
4899
|
s[3] & 4294901760 | s[0] & 65535
|
|
4900
4900
|
];
|
|
4901
4901
|
this._b = 0;
|
|
4902
|
-
for (var
|
|
4902
|
+
for (var f = 0; f < 4; f++)
|
|
4903
4903
|
o.call(this);
|
|
4904
|
-
for (var
|
|
4905
|
-
d[
|
|
4904
|
+
for (var f = 0; f < 8; f++)
|
|
4905
|
+
d[f] ^= m[f + 4 & 7];
|
|
4906
4906
|
if (u) {
|
|
4907
4907
|
var y = u.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, D = v << 16 | C & 65535;
|
|
4908
4908
|
d[0] ^= C, d[1] ^= x, d[2] ^= v, d[3] ^= D, d[4] ^= C, d[5] ^= x, d[6] ^= v, d[7] ^= D;
|
|
4909
|
-
for (var
|
|
4909
|
+
for (var f = 0; f < 4; f++)
|
|
4910
4910
|
o.call(this);
|
|
4911
4911
|
}
|
|
4912
4912
|
},
|
|
4913
4913
|
_doProcessBlock: function(s, u) {
|
|
4914
4914
|
var m = this._X;
|
|
4915
|
-
o.call(this),
|
|
4915
|
+
o.call(this), c[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, c[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, c[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, c[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
|
|
4916
4916
|
for (var d = 0; d < 4; d++)
|
|
4917
|
-
|
|
4917
|
+
c[d] = (c[d] << 8 | c[d] >>> 24) & 16711935 | (c[d] << 24 | c[d] >>> 8) & 4278255360, s[u + d] ^= c[d];
|
|
4918
4918
|
},
|
|
4919
4919
|
blockSize: 128 / 32,
|
|
4920
4920
|
ivSize: 64 / 32
|
|
@@ -4924,7 +4924,7 @@ function mo() {
|
|
|
4924
4924
|
r[m] = u[m];
|
|
4925
4925
|
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < r[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < r[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < r[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < r[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < r[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < r[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < r[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < r[7] >>> 0 ? 1 : 0;
|
|
4926
4926
|
for (var m = 0; m < 8; m++) {
|
|
4927
|
-
var d = s[m] + u[m],
|
|
4927
|
+
var d = s[m] + u[m], f = d & 65535, y = d >>> 16, _ = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((d & 4294901760) * d | 0) + ((d & 65535) * d | 0);
|
|
4928
4928
|
a[m] = _ ^ U;
|
|
4929
4929
|
}
|
|
4930
4930
|
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;
|
|
@@ -4942,7 +4942,7 @@ function po() {
|
|
|
4942
4942
|
})(uo, function(i) {
|
|
4943
4943
|
return (function() {
|
|
4944
4944
|
var n = i, p = n.lib, g = p.BlockCipher, b = n.algo;
|
|
4945
|
-
const
|
|
4945
|
+
const c = 16, r = [
|
|
4946
4946
|
608135816,
|
|
4947
4947
|
2242054355,
|
|
4948
4948
|
320440878,
|
|
@@ -5999,53 +5999,53 @@ function po() {
|
|
|
5999
5999
|
pbox: [],
|
|
6000
6000
|
sbox: []
|
|
6001
6001
|
};
|
|
6002
|
-
function o(
|
|
6003
|
-
let _ = y >> 24 & 255, U = y >> 16 & 255, C = y >> 8 & 255, v = y & 255, x =
|
|
6004
|
-
return x = x ^
|
|
6002
|
+
function o(f, y) {
|
|
6003
|
+
let _ = y >> 24 & 255, U = y >> 16 & 255, C = y >> 8 & 255, v = y & 255, x = f.sbox[0][_] + f.sbox[1][U];
|
|
6004
|
+
return x = x ^ f.sbox[2][C], x = x + f.sbox[3][v], x;
|
|
6005
6005
|
}
|
|
6006
|
-
function s(
|
|
6006
|
+
function s(f, y, _) {
|
|
6007
6007
|
let U = y, C = _, v;
|
|
6008
|
-
for (let x = 0; x <
|
|
6009
|
-
U = U ^
|
|
6010
|
-
return v = U, U = C, C = v, C = C ^
|
|
6008
|
+
for (let x = 0; x < c; ++x)
|
|
6009
|
+
U = U ^ f.pbox[x], C = o(f, U) ^ C, v = U, U = C, C = v;
|
|
6010
|
+
return v = U, U = C, C = v, C = C ^ f.pbox[c], U = U ^ f.pbox[c + 1], { left: U, right: C };
|
|
6011
6011
|
}
|
|
6012
|
-
function u(
|
|
6012
|
+
function u(f, y, _) {
|
|
6013
6013
|
let U = y, C = _, v;
|
|
6014
|
-
for (let x =
|
|
6015
|
-
U = U ^
|
|
6016
|
-
return v = U, U = C, C = v, C = C ^
|
|
6014
|
+
for (let x = c + 1; x > 1; --x)
|
|
6015
|
+
U = U ^ f.pbox[x], C = o(f, U) ^ C, v = U, U = C, C = v;
|
|
6016
|
+
return v = U, U = C, C = v, C = C ^ f.pbox[1], U = U ^ f.pbox[0], { left: U, right: C };
|
|
6017
6017
|
}
|
|
6018
|
-
function m(
|
|
6018
|
+
function m(f, y, _) {
|
|
6019
6019
|
for (let D = 0; D < 4; D++) {
|
|
6020
|
-
|
|
6020
|
+
f.sbox[D] = [];
|
|
6021
6021
|
for (let G = 0; G < 256; G++)
|
|
6022
|
-
|
|
6022
|
+
f.sbox[D][G] = a[D][G];
|
|
6023
6023
|
}
|
|
6024
6024
|
let U = 0;
|
|
6025
|
-
for (let D = 0; D <
|
|
6026
|
-
|
|
6025
|
+
for (let D = 0; D < c + 2; D++)
|
|
6026
|
+
f.pbox[D] = r[D] ^ y[U], U++, U >= _ && (U = 0);
|
|
6027
6027
|
let C = 0, v = 0, x = 0;
|
|
6028
|
-
for (let D = 0; D <
|
|
6029
|
-
x = s(
|
|
6028
|
+
for (let D = 0; D < c + 2; D += 2)
|
|
6029
|
+
x = s(f, C, v), C = x.left, v = x.right, f.pbox[D] = C, f.pbox[D + 1] = v;
|
|
6030
6030
|
for (let D = 0; D < 4; D++)
|
|
6031
6031
|
for (let G = 0; G < 256; G += 2)
|
|
6032
|
-
x = s(
|
|
6032
|
+
x = s(f, C, v), C = x.left, v = x.right, f.sbox[D][G] = C, f.sbox[D][G + 1] = v;
|
|
6033
6033
|
return !0;
|
|
6034
6034
|
}
|
|
6035
6035
|
var d = b.Blowfish = g.extend({
|
|
6036
6036
|
_doReset: function() {
|
|
6037
6037
|
if (this._keyPriorReset !== this._key) {
|
|
6038
|
-
var
|
|
6038
|
+
var f = this._keyPriorReset = this._key, y = f.words, _ = f.sigBytes / 4;
|
|
6039
6039
|
m(t, y, _);
|
|
6040
6040
|
}
|
|
6041
6041
|
},
|
|
6042
|
-
encryptBlock: function(
|
|
6043
|
-
var _ = s(t,
|
|
6044
|
-
|
|
6042
|
+
encryptBlock: function(f, y) {
|
|
6043
|
+
var _ = s(t, f[y], f[y + 1]);
|
|
6044
|
+
f[y] = _.left, f[y + 1] = _.right;
|
|
6045
6045
|
},
|
|
6046
|
-
decryptBlock: function(
|
|
6047
|
-
var _ = u(t,
|
|
6048
|
-
|
|
6046
|
+
decryptBlock: function(f, y) {
|
|
6047
|
+
var _ = u(t, f[y], f[y + 1]);
|
|
6048
|
+
f[y] = _.left, f[y + 1] = _.right;
|
|
6049
6049
|
},
|
|
6050
6050
|
blockSize: 64 / 32,
|
|
6051
6051
|
keySize: 128 / 32,
|
|
@@ -6077,8 +6077,8 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6077
6077
|
padding: va.pad.Pkcs7
|
|
6078
6078
|
}), g = i.toString(va.enc.Base64), b = va.enc.Base64.stringify(p.ciphertext);
|
|
6079
6079
|
return g + ":" + b;
|
|
6080
|
-
},
|
|
6081
|
-
const { client: e, formDataClient: l } =
|
|
6080
|
+
}, ue = () => {
|
|
6081
|
+
const { client: e, formDataClient: l } = oe(), i = I(
|
|
6082
6082
|
async (S) => {
|
|
6083
6083
|
const { mac_address: E = "", app_version: M = "", anydesk_id: w = "" } = S, { data: B } = await e.post("/cash-register/login", {
|
|
6084
6084
|
mac_address: E,
|
|
@@ -6088,7 +6088,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6088
6088
|
return B;
|
|
6089
6089
|
},
|
|
6090
6090
|
[e]
|
|
6091
|
-
), n = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = I(async () => await e.get("member/getFavoriteGame"), [e]),
|
|
6091
|
+
), n = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = I(async () => await e.get("member/getFavoriteGame"), [e]), c = I(
|
|
6092
6092
|
async (S) => {
|
|
6093
6093
|
const { account: E, password: M, trans_code: w } = S;
|
|
6094
6094
|
return await e.post("/login", {
|
|
@@ -6168,7 +6168,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6168
6168
|
});
|
|
6169
6169
|
},
|
|
6170
6170
|
[e]
|
|
6171
|
-
),
|
|
6171
|
+
), f = I(
|
|
6172
6172
|
async ({ paramsData: S }) => {
|
|
6173
6173
|
const { start_time: E, end_time: M, limit: w = 25 } = S || {};
|
|
6174
6174
|
return await e.get("/report/totalprofit", {
|
|
@@ -6313,7 +6313,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6313
6313
|
userGameListApi: p,
|
|
6314
6314
|
userFavoriteGameApi: b,
|
|
6315
6315
|
userCurrencyExchangeApi: g,
|
|
6316
|
-
userLoginApi:
|
|
6316
|
+
userLoginApi: c,
|
|
6317
6317
|
userLogoutApi: r,
|
|
6318
6318
|
addOrRemoveFavoriteGameApi: a,
|
|
6319
6319
|
rankingGameApi: t,
|
|
@@ -6322,7 +6322,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6322
6322
|
resetUserPasswordApi: u,
|
|
6323
6323
|
setUserTransactionPasswordApi: m,
|
|
6324
6324
|
resetUserTransactionPasswordApi: d,
|
|
6325
|
-
userRebateApi:
|
|
6325
|
+
userRebateApi: f,
|
|
6326
6326
|
userBindBankApi: C,
|
|
6327
6327
|
transferInGameApi: y,
|
|
6328
6328
|
checkUserWagerApi: _,
|
|
@@ -6339,13 +6339,13 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6339
6339
|
mobileRegisterApi: F
|
|
6340
6340
|
};
|
|
6341
6341
|
}, hm = ({ otherQueryKey: e = [], options: l = {} } = {}) => {
|
|
6342
|
-
const { userCurrencyExchangeApi: i } =
|
|
6342
|
+
const { userCurrencyExchangeApi: i } = ue(), { getToken: n } = oe(), { enabled: p, ...g } = l, c = !!n?.() && (p ? p.every((r) => r) : !0);
|
|
6343
6343
|
return Hn({
|
|
6344
6344
|
queries: [
|
|
6345
6345
|
{
|
|
6346
6346
|
queryKey: ["userCurrencyExchange", ...e],
|
|
6347
6347
|
queryFn: () => i(),
|
|
6348
|
-
enabled:
|
|
6348
|
+
enabled: c,
|
|
6349
6349
|
// ← 使用合併後的條件
|
|
6350
6350
|
...g
|
|
6351
6351
|
// ← 不包含 enabled
|
|
@@ -6357,7 +6357,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6357
6357
|
trigger: l = [],
|
|
6358
6358
|
enabled: i = !0
|
|
6359
6359
|
} = {}) => {
|
|
6360
|
-
const { getToken: n } =
|
|
6360
|
+
const { getToken: n } = oe(), p = n?.(), { userInfoApi: g } = ue();
|
|
6361
6361
|
return Hn({
|
|
6362
6362
|
queries: [
|
|
6363
6363
|
{
|
|
@@ -6374,34 +6374,34 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6374
6374
|
userFavoriteGameApi: i,
|
|
6375
6375
|
userGameListApi: n,
|
|
6376
6376
|
userCurrencyExchangeApi: p
|
|
6377
|
-
} =
|
|
6377
|
+
} = ue(), g = j({
|
|
6378
6378
|
queryKey: ["getMemInfo"],
|
|
6379
6379
|
queryFn: async () => l(),
|
|
6380
6380
|
enabled: e
|
|
6381
|
-
}), b =
|
|
6381
|
+
}), b = j({
|
|
6382
6382
|
queryKey: ["getFavoriteGame"],
|
|
6383
6383
|
queryFn: async () => i(),
|
|
6384
6384
|
enabled: e && g.isSuccess
|
|
6385
|
-
}),
|
|
6385
|
+
}), c = j({
|
|
6386
6386
|
queryKey: ["getUserGameList"],
|
|
6387
6387
|
queryFn: async () => n(),
|
|
6388
6388
|
enabled: e && g.isSuccess && b.isSuccess
|
|
6389
|
-
}), r =
|
|
6389
|
+
}), r = j({
|
|
6390
6390
|
queryKey: ["getUserCurrencyExchange"],
|
|
6391
6391
|
queryFn: async () => p(),
|
|
6392
|
-
enabled: e && g.isSuccess && b.isSuccess &&
|
|
6392
|
+
enabled: e && g.isSuccess && b.isSuccess && c.isSuccess
|
|
6393
6393
|
});
|
|
6394
6394
|
return [
|
|
6395
6395
|
g,
|
|
6396
6396
|
b,
|
|
6397
|
-
|
|
6397
|
+
c,
|
|
6398
6398
|
r
|
|
6399
6399
|
];
|
|
6400
6400
|
}, ft = () => {
|
|
6401
|
-
const { client: e, lng: l } =
|
|
6401
|
+
const { client: e, lng: l } = oe(), i = $e(l || "tw"), n = I(
|
|
6402
6402
|
async (b) => {
|
|
6403
6403
|
const {
|
|
6404
|
-
gameUid:
|
|
6404
|
+
gameUid: c = "",
|
|
6405
6405
|
// 遊戲唯一標識
|
|
6406
6406
|
gameCode: r = "",
|
|
6407
6407
|
// 遊戲代碼
|
|
@@ -6413,7 +6413,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6413
6413
|
// 目前使用的幣別
|
|
6414
6414
|
} = b;
|
|
6415
6415
|
return await e.post("/game/go", {
|
|
6416
|
-
gameUid:
|
|
6416
|
+
gameUid: c,
|
|
6417
6417
|
gameCode: r,
|
|
6418
6418
|
lang: i,
|
|
6419
6419
|
is_mobile: a,
|
|
@@ -6426,13 +6426,13 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6426
6426
|
), p = I(
|
|
6427
6427
|
async (b) => {
|
|
6428
6428
|
const {
|
|
6429
|
-
startDate:
|
|
6429
|
+
startDate: c = we().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6430
6430
|
endDate: r = we().format("YYYY-MM-DD 11:59:59"),
|
|
6431
6431
|
platform: a = "",
|
|
6432
6432
|
limit: t = 25
|
|
6433
6433
|
} = b, { data: o } = await e.get("/report/netprofit", {
|
|
6434
6434
|
params: {
|
|
6435
|
-
str_date:
|
|
6435
|
+
str_date: c,
|
|
6436
6436
|
end_Date: r,
|
|
6437
6437
|
platform: a,
|
|
6438
6438
|
limit: t
|
|
@@ -6444,14 +6444,14 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6444
6444
|
), g = I(
|
|
6445
6445
|
async (b) => {
|
|
6446
6446
|
const {
|
|
6447
|
-
startDate:
|
|
6447
|
+
startDate: c = we().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6448
6448
|
endDate: r = we().format("YYYY-MM-DD 11:59:59"),
|
|
6449
6449
|
platform: a,
|
|
6450
6450
|
limit: t = 25,
|
|
6451
6451
|
page: o = 1
|
|
6452
6452
|
} = b, { data: s } = await e.get("/report/betlog", {
|
|
6453
6453
|
params: {
|
|
6454
|
-
str_date:
|
|
6454
|
+
str_date: c,
|
|
6455
6455
|
end_Date: r,
|
|
6456
6456
|
platform: a,
|
|
6457
6457
|
limit: t,
|
|
@@ -6465,7 +6465,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6465
6465
|
return { playGameApi: n, betRecordApi: p, betRecordDetailApi: g };
|
|
6466
6466
|
}, fo = ({ options: e, formData: l } = {}) => {
|
|
6467
6467
|
const { betRecordApi: i } = ft();
|
|
6468
|
-
return
|
|
6468
|
+
return j({
|
|
6469
6469
|
queryKey: ["getBetRecord"],
|
|
6470
6470
|
queryFn: async () => await i(l),
|
|
6471
6471
|
select: (n) => Wn(n).map(([g, b]) => ({
|
|
@@ -6476,7 +6476,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6476
6476
|
});
|
|
6477
6477
|
}, _o = ({ options: e, formData: l } = {}) => {
|
|
6478
6478
|
const { betRecordDetailApi: i } = ft();
|
|
6479
|
-
return
|
|
6479
|
+
return j({
|
|
6480
6480
|
queryKey: ["getBetRecordDetail"],
|
|
6481
6481
|
queryFn: async () => await i(l),
|
|
6482
6482
|
...e
|
|
@@ -6518,16 +6518,16 @@ function nt(e, l) {
|
|
|
6518
6518
|
function i(p, g, b) {
|
|
6519
6519
|
if (!(typeof document > "u")) {
|
|
6520
6520
|
b = ei({}, l, b), typeof b.expires == "number" && (b.expires = new Date(Date.now() + b.expires * 864e5)), b.expires && (b.expires = b.expires.toUTCString()), p = encodeURIComponent(p).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
6521
|
-
var
|
|
6521
|
+
var c = "";
|
|
6522
6522
|
for (var r in b)
|
|
6523
|
-
b[r] && (
|
|
6524
|
-
return document.cookie = p + "=" + e.write(g, p) +
|
|
6523
|
+
b[r] && (c += "; " + r, b[r] !== !0 && (c += "=" + b[r].split(";")[0]));
|
|
6524
|
+
return document.cookie = p + "=" + e.write(g, p) + c;
|
|
6525
6525
|
}
|
|
6526
6526
|
}
|
|
6527
6527
|
function n(p) {
|
|
6528
6528
|
if (!(typeof document > "u" || arguments.length && !p)) {
|
|
6529
|
-
for (var g = document.cookie ? document.cookie.split("; ") : [], b = {},
|
|
6530
|
-
var r = g[
|
|
6529
|
+
for (var g = document.cookie ? document.cookie.split("; ") : [], b = {}, c = 0; c < g.length; c++) {
|
|
6530
|
+
var r = g[c].split("="), a = r.slice(1).join("=");
|
|
6531
6531
|
try {
|
|
6532
6532
|
var t = decodeURIComponent(r[0]);
|
|
6533
6533
|
if (b[t] = e.read(a, t), p === t)
|
|
@@ -6611,8 +6611,8 @@ function yt() {
|
|
|
6611
6611
|
yn = 1, Object.defineProperty(sa, "__esModule", { value: !0 }), sa.setUpSocketIOPing = sa.appendQueryParams = sa.parseSocketIOUrl = void 0;
|
|
6612
6612
|
var e = ra(), l = function(p) {
|
|
6613
6613
|
if (p) {
|
|
6614
|
-
var g = /^https|wss/.test(p), b = p.replace(/^(https?|wss?)(:\/\/)?/, ""),
|
|
6615
|
-
return "".concat(r, "://").concat(
|
|
6614
|
+
var g = /^https|wss/.test(p), b = p.replace(/^(https?|wss?)(:\/\/)?/, ""), c = b.replace(/\/$/, ""), r = g ? "wss" : "ws";
|
|
6615
|
+
return "".concat(r, "://").concat(c).concat(e.SOCKET_IO_PATH);
|
|
6616
6616
|
} else if (p === "") {
|
|
6617
6617
|
var g = /^https/.test(window.location.protocol), r = g ? "wss" : "ws", a = window.location.port ? ":".concat(window.location.port) : "";
|
|
6618
6618
|
return "".concat(r, "://").concat(window.location.hostname).concat(a).concat(e.SOCKET_IO_PATH);
|
|
@@ -6622,11 +6622,11 @@ function yt() {
|
|
|
6622
6622
|
sa.parseSocketIOUrl = l;
|
|
6623
6623
|
var i = function(p, g) {
|
|
6624
6624
|
g === void 0 && (g = {});
|
|
6625
|
-
var b = /\?([\w]+=[\w]+)/,
|
|
6625
|
+
var b = /\?([\w]+=[\w]+)/, c = b.test(p), r = "".concat(Object.entries(g).reduce(function(a, t) {
|
|
6626
6626
|
var o = t[0], s = t[1];
|
|
6627
6627
|
return a + "".concat(o, "=").concat(s, "&");
|
|
6628
6628
|
}, "").slice(0, -1));
|
|
6629
|
-
return "".concat(p).concat(
|
|
6629
|
+
return "".concat(p).concat(c ? "&" : "?").concat(r);
|
|
6630
6630
|
};
|
|
6631
6631
|
sa.appendQueryParams = i;
|
|
6632
6632
|
var n = function(p, g) {
|
|
@@ -6649,13 +6649,13 @@ function il() {
|
|
|
6649
6649
|
}).current : n.current;
|
|
6650
6650
|
}
|
|
6651
6651
|
function i(n, p, g) {
|
|
6652
|
-
var b = g || {},
|
|
6653
|
-
var
|
|
6654
|
-
if (y + t <=
|
|
6655
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(
|
|
6656
|
-
else if (y + r <=
|
|
6652
|
+
var b = g || {}, c = b.interval, r = c === void 0 ? e.DEFAULT_HEARTBEAT.interval : c, a = b.timeout, t = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message, s = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, u = Math.max(100, r / 10), m = Date.now(), d = setInterval(function() {
|
|
6653
|
+
var f = Date.now(), y = l(p);
|
|
6654
|
+
if (y + t <= f)
|
|
6655
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(f - y, "ms ago, last ping sent ").concat(f - m, "ms ago")), n.close();
|
|
6656
|
+
else if (y + r <= f && m + r <= f)
|
|
6657
6657
|
try {
|
|
6658
|
-
typeof s == "function" ? n.send(s()) : n.send(s), m =
|
|
6658
|
+
typeof s == "function" ? n.send(s()) : n.send(s), m = f;
|
|
6659
6659
|
} catch (_) {
|
|
6660
6660
|
console.error("Heartbeat failed, closing connection", _ instanceof Error ? _.message : _), n.close();
|
|
6661
6661
|
}
|
|
@@ -6688,14 +6688,14 @@ function Ut() {
|
|
|
6688
6688
|
l[r].delete(a);
|
|
6689
6689
|
};
|
|
6690
6690
|
e.removeSubscriber = b;
|
|
6691
|
-
var
|
|
6691
|
+
var c = function(r) {
|
|
6692
6692
|
if (r && l.hasOwnProperty(r))
|
|
6693
6693
|
delete l[r];
|
|
6694
6694
|
else
|
|
6695
6695
|
for (var a in l)
|
|
6696
6696
|
l.hasOwnProperty(a) && delete l[a];
|
|
6697
6697
|
};
|
|
6698
|
-
e.resetSubscribers =
|
|
6698
|
+
e.resetSubscribers = c;
|
|
6699
6699
|
})(et)), et;
|
|
6700
6700
|
}
|
|
6701
6701
|
var Cn;
|
|
@@ -6734,19 +6734,19 @@ function Uo() {
|
|
|
6734
6734
|
}, b = function(t, o, s, u, m) {
|
|
6735
6735
|
t.onopen = function(d) {
|
|
6736
6736
|
if (o.current.onOpen && o.current.onOpen(d), u.current = 0, s(n.ReadyState.OPEN), o.current.heartbeat && t instanceof WebSocket) {
|
|
6737
|
-
var
|
|
6738
|
-
m.current = Date.now(), (0, i.heartbeat)(t, m,
|
|
6737
|
+
var f = typeof o.current.heartbeat == "boolean" ? void 0 : o.current.heartbeat;
|
|
6738
|
+
m.current = Date.now(), (0, i.heartbeat)(t, m, f);
|
|
6739
6739
|
}
|
|
6740
6740
|
};
|
|
6741
|
-
},
|
|
6741
|
+
}, c = function(t, o, s, u, m) {
|
|
6742
6742
|
if (n.isEventSourceSupported && t instanceof EventSource)
|
|
6743
6743
|
return function() {
|
|
6744
6744
|
};
|
|
6745
6745
|
(0, p.assertIsWebSocket)(t, o.current.skipAssert);
|
|
6746
6746
|
var d;
|
|
6747
|
-
return t.onclose = function(
|
|
6747
|
+
return t.onclose = function(f) {
|
|
6748
6748
|
var y;
|
|
6749
|
-
if (o.current.onClose && o.current.onClose(
|
|
6749
|
+
if (o.current.onClose && o.current.onClose(f), s(n.ReadyState.CLOSED), o.current.shouldReconnect && o.current.shouldReconnect(f)) {
|
|
6750
6750
|
var _ = (y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : n.DEFAULT_RECONNECT_LIMIT;
|
|
6751
6751
|
if (m.current < _) {
|
|
6752
6752
|
var U = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
@@ -6761,9 +6761,9 @@ function Uo() {
|
|
|
6761
6761
|
};
|
|
6762
6762
|
}, r = function(t, o, s, u, m) {
|
|
6763
6763
|
var d;
|
|
6764
|
-
return t.onerror = function(
|
|
6764
|
+
return t.onerror = function(f) {
|
|
6765
6765
|
var y;
|
|
6766
|
-
if (o.current.onError && o.current.onError(
|
|
6766
|
+
if (o.current.onError && o.current.onError(f), n.isEventSourceSupported && t instanceof EventSource && (o.current.onClose && o.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })), s(n.ReadyState.CLOSED), t.close()), o.current.retryOnError)
|
|
6767
6767
|
if (m.current < ((y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : n.DEFAULT_RECONNECT_LIMIT)) {
|
|
6768
6768
|
var _ = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6769
6769
|
d = window.setTimeout(function() {
|
|
@@ -6774,9 +6774,9 @@ function Uo() {
|
|
|
6774
6774
|
}, function() {
|
|
6775
6775
|
return d && window.clearTimeout(d);
|
|
6776
6776
|
};
|
|
6777
|
-
}, a = function(t, o, s, u, m, d,
|
|
6777
|
+
}, a = function(t, o, s, u, m, d, f) {
|
|
6778
6778
|
var y = o.setLastMessage, _ = o.setReadyState, U, C, v;
|
|
6779
|
-
return s.current.fromSocketIO && (U = (0, l.setUpSocketIOPing)(
|
|
6779
|
+
return s.current.fromSocketIO && (U = (0, l.setUpSocketIOPing)(f)), g(t, s, y, d), b(t, s, _, m, d), C = c(t, s, _, u, m), v = r(t, s, _, u, m), function() {
|
|
6780
6780
|
_(n.ReadyState.CLOSING), C(), v(), t.close(), U && clearInterval(U);
|
|
6781
6781
|
};
|
|
6782
6782
|
};
|
|
@@ -6799,17 +6799,17 @@ function bo() {
|
|
|
6799
6799
|
var l = _t(), i = ra(), n = Ut(), p = yt(), g = il(), b = function(o, s, u) {
|
|
6800
6800
|
o.onmessage = function(m) {
|
|
6801
6801
|
(0, n.getSubscribers)(s).forEach(function(d) {
|
|
6802
|
-
var
|
|
6803
|
-
d.optionsRef.current.onMessage && d.optionsRef.current.onMessage(m), typeof ((
|
|
6802
|
+
var f;
|
|
6803
|
+
d.optionsRef.current.onMessage && d.optionsRef.current.onMessage(m), typeof ((f = d?.lastMessageTime) === null || f === void 0 ? void 0 : f.current) == "number" && (d.lastMessageTime.current = Date.now()), !(typeof d.optionsRef.current.filter == "function" && d.optionsRef.current.filter(m) !== !0) && (u && typeof u != "boolean" && u?.returnMessage === m.data || d.setLastMessage(m));
|
|
6804
6804
|
});
|
|
6805
6805
|
};
|
|
6806
|
-
},
|
|
6806
|
+
}, c = function(o, s, u) {
|
|
6807
6807
|
o.onopen = function(m) {
|
|
6808
6808
|
var d = (0, n.getSubscribers)(s);
|
|
6809
|
-
d.forEach(function(
|
|
6810
|
-
|
|
6811
|
-
}), u && o instanceof WebSocket && (0, g.heartbeat)(o, d.map(function(
|
|
6812
|
-
return
|
|
6809
|
+
d.forEach(function(f) {
|
|
6810
|
+
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(m), f.setReadyState(i.ReadyState.OPEN), u && o instanceof WebSocket && (f.lastMessageTime.current = Date.now());
|
|
6811
|
+
}), u && o instanceof WebSocket && (0, g.heartbeat)(o, d.map(function(f) {
|
|
6812
|
+
return f.lastMessageTime;
|
|
6813
6813
|
}), typeof u == "boolean" ? void 0 : u);
|
|
6814
6814
|
};
|
|
6815
6815
|
}, r = function(o, s) {
|
|
@@ -6819,14 +6819,14 @@ function bo() {
|
|
|
6819
6819
|
}), delete l.sharedWebSockets[s], (0, n.getSubscribers)(s).forEach(function(m) {
|
|
6820
6820
|
var d;
|
|
6821
6821
|
if (m.optionsRef.current.shouldReconnect && m.optionsRef.current.shouldReconnect(u)) {
|
|
6822
|
-
var
|
|
6823
|
-
if (m.reconnectCount.current <
|
|
6822
|
+
var f = (d = m.optionsRef.current.reconnectAttempts) !== null && d !== void 0 ? d : i.DEFAULT_RECONNECT_LIMIT;
|
|
6823
|
+
if (m.reconnectCount.current < f) {
|
|
6824
6824
|
var y = typeof m.optionsRef.current.reconnectInterval == "function" ? m.optionsRef.current.reconnectInterval(m.reconnectCount.current) : m.optionsRef.current.reconnectInterval;
|
|
6825
6825
|
setTimeout(function() {
|
|
6826
6826
|
m.reconnectCount.current++, m.reconnect.current();
|
|
6827
6827
|
}, y ?? i.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6828
6828
|
} else
|
|
6829
|
-
m.optionsRef.current.onReconnectStop && m.optionsRef.current.onReconnectStop(m.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(
|
|
6829
|
+
m.optionsRef.current.onReconnectStop && m.optionsRef.current.onReconnectStop(m.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f, " exceeded"));
|
|
6830
6830
|
}
|
|
6831
6831
|
});
|
|
6832
6832
|
});
|
|
@@ -6838,7 +6838,7 @@ function bo() {
|
|
|
6838
6838
|
};
|
|
6839
6839
|
}, t = function(o, s, u, m) {
|
|
6840
6840
|
var d;
|
|
6841
|
-
return u.current.fromSocketIO && (d = (0, p.setUpSocketIOPing)(m)), b(o, s, u.current.heartbeat), r(o, s),
|
|
6841
|
+
return u.current.fromSocketIO && (d = (0, p.setUpSocketIOPing)(m)), b(o, s, u.current.heartbeat), r(o, s), c(o, s, u.current.heartbeat), a(o, s), function() {
|
|
6842
6842
|
d && clearInterval(d);
|
|
6843
6843
|
};
|
|
6844
6844
|
};
|
|
@@ -6848,25 +6848,25 @@ var Tn;
|
|
|
6848
6848
|
function Co() {
|
|
6849
6849
|
if (Tn) return Ka;
|
|
6850
6850
|
Tn = 1, Object.defineProperty(Ka, "__esModule", { value: !0 }), Ka.createOrJoinSocket = void 0;
|
|
6851
|
-
var e = _t(), l = ra(), i = Uo(), n = bo(), p = Ut(), g = function(
|
|
6851
|
+
var e = _t(), l = ra(), i = Uo(), n = bo(), p = Ut(), g = function(c, r, a, t, o) {
|
|
6852
6852
|
return function() {
|
|
6853
|
-
if ((0, p.removeSubscriber)(
|
|
6853
|
+
if ((0, p.removeSubscriber)(c, r), !(0, p.hasSubscribers)(c)) {
|
|
6854
6854
|
try {
|
|
6855
|
-
var s = e.sharedWebSockets[
|
|
6855
|
+
var s = e.sharedWebSockets[c];
|
|
6856
6856
|
s instanceof WebSocket && (s.onclose = function(u) {
|
|
6857
6857
|
a.current.onClose && a.current.onClose(u), t(l.ReadyState.CLOSED);
|
|
6858
6858
|
}), s.close();
|
|
6859
6859
|
} catch {
|
|
6860
6860
|
}
|
|
6861
|
-
o && o(), delete e.sharedWebSockets[
|
|
6861
|
+
o && o(), delete e.sharedWebSockets[c];
|
|
6862
6862
|
}
|
|
6863
6863
|
};
|
|
6864
|
-
}, b = function(
|
|
6864
|
+
}, b = function(c, r, a, t, o, s, u, m, d) {
|
|
6865
6865
|
if (!l.isEventSourceSupported && t.current.eventSourceOptions)
|
|
6866
6866
|
throw l.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6867
6867
|
if (t.current.share) {
|
|
6868
|
-
var
|
|
6869
|
-
e.sharedWebSockets[r] === void 0 ? (e.sharedWebSockets[r] = t.current.eventSourceOptions ? new EventSource(r, t.current.eventSourceOptions) : new WebSocket(r, t.current.protocols),
|
|
6868
|
+
var f = null;
|
|
6869
|
+
e.sharedWebSockets[r] === void 0 ? (e.sharedWebSockets[r] = t.current.eventSourceOptions ? new EventSource(r, t.current.eventSourceOptions) : new WebSocket(r, t.current.protocols), c.current = e.sharedWebSockets[r], a(l.ReadyState.CONNECTING), f = (0, n.attachSharedListeners)(e.sharedWebSockets[r], r, t, d)) : (c.current = e.sharedWebSockets[r], a(e.sharedWebSockets[r].readyState));
|
|
6870
6870
|
var y = {
|
|
6871
6871
|
setLastMessage: o,
|
|
6872
6872
|
setReadyState: a,
|
|
@@ -6875,11 +6875,11 @@ function Co() {
|
|
|
6875
6875
|
lastMessageTime: m,
|
|
6876
6876
|
reconnect: s
|
|
6877
6877
|
};
|
|
6878
|
-
return (0, p.addSubscriber)(r, y), g(r, y, t, a,
|
|
6878
|
+
return (0, p.addSubscriber)(r, y), g(r, y, t, a, f);
|
|
6879
6879
|
} else {
|
|
6880
|
-
if (
|
|
6880
|
+
if (c.current = t.current.eventSourceOptions ? new EventSource(r, t.current.eventSourceOptions) : new WebSocket(r, t.current.protocols), a(l.ReadyState.CONNECTING), !c.current)
|
|
6881
6881
|
throw new Error("WebSocket failed to be created");
|
|
6882
|
-
return (0, i.attachListeners)(
|
|
6882
|
+
return (0, i.attachListeners)(c.current, {
|
|
6883
6883
|
setLastMessage: o,
|
|
6884
6884
|
setReadyState: a
|
|
6885
6885
|
}, t, s.current, u, m, d);
|
|
@@ -6904,7 +6904,7 @@ function vo() {
|
|
|
6904
6904
|
m(U);
|
|
6905
6905
|
}
|
|
6906
6906
|
}
|
|
6907
|
-
function
|
|
6907
|
+
function f(_) {
|
|
6908
6908
|
try {
|
|
6909
6909
|
y(o.throw(_));
|
|
6910
6910
|
} catch (U) {
|
|
@@ -6912,7 +6912,7 @@ function vo() {
|
|
|
6912
6912
|
}
|
|
6913
6913
|
}
|
|
6914
6914
|
function y(_) {
|
|
6915
|
-
_.done ? u(_.value) : s(_.value).then(d,
|
|
6915
|
+
_.done ? u(_.value) : s(_.value).then(d, f);
|
|
6916
6916
|
}
|
|
6917
6917
|
y((o = o.apply(r, a || [])).next());
|
|
6918
6918
|
});
|
|
@@ -6926,10 +6926,10 @@ function vo() {
|
|
|
6926
6926
|
}), m;
|
|
6927
6927
|
function d(y) {
|
|
6928
6928
|
return function(_) {
|
|
6929
|
-
return
|
|
6929
|
+
return f([y, _]);
|
|
6930
6930
|
};
|
|
6931
6931
|
}
|
|
6932
|
-
function
|
|
6932
|
+
function f(y) {
|
|
6933
6933
|
if (o) throw new TypeError("Generator is already executing.");
|
|
6934
6934
|
for (; m && (m = 0, y[0] && (t = 0)), t; ) try {
|
|
6935
6935
|
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;
|
|
@@ -6985,11 +6985,11 @@ function vo() {
|
|
|
6985
6985
|
return new Promise(function(a) {
|
|
6986
6986
|
return window.setTimeout(a, r);
|
|
6987
6987
|
});
|
|
6988
|
-
},
|
|
6988
|
+
}, c = function(r, a) {
|
|
6989
6989
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
6990
6990
|
t[o - 2] = arguments[o];
|
|
6991
6991
|
return l(void 0, n([r, a], t, !0), void 0, function(s, u, m) {
|
|
6992
|
-
var d,
|
|
6992
|
+
var d, f, y, _, U, C, v, x;
|
|
6993
6993
|
return m === void 0 && (m = 0), i(this, function(D) {
|
|
6994
6994
|
switch (D.label) {
|
|
6995
6995
|
case 0:
|
|
@@ -7000,7 +7000,7 @@ function vo() {
|
|
|
7000
7000
|
case 2:
|
|
7001
7001
|
return d = D.sent(), [3, 9];
|
|
7002
7002
|
case 3:
|
|
7003
|
-
return D.sent(), u.current.retryOnError ? (
|
|
7003
|
+
return D.sent(), u.current.retryOnError ? (f = (C = u.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < f ? (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];
|
|
7004
7004
|
case 4:
|
|
7005
7005
|
return D.sent(), [2, (0, e.getUrl)(s, u, m + 1)];
|
|
7006
7006
|
case 5:
|
|
@@ -7021,7 +7021,7 @@ function vo() {
|
|
|
7021
7021
|
});
|
|
7022
7022
|
});
|
|
7023
7023
|
};
|
|
7024
|
-
e.getUrl =
|
|
7024
|
+
e.getUrl = c;
|
|
7025
7025
|
})(ma)), ma;
|
|
7026
7026
|
}
|
|
7027
7027
|
var at = {}, xn;
|
|
@@ -7051,12 +7051,12 @@ function Ct() {
|
|
|
7051
7051
|
return e = Object.assign || function(s) {
|
|
7052
7052
|
for (var u, m = 1, d = arguments.length; m < d; m++) {
|
|
7053
7053
|
u = arguments[m];
|
|
7054
|
-
for (var
|
|
7054
|
+
for (var f in u) Object.prototype.hasOwnProperty.call(u, f) && (s[f] = u[f]);
|
|
7055
7055
|
}
|
|
7056
7056
|
return s;
|
|
7057
7057
|
}, e.apply(this, arguments);
|
|
7058
7058
|
}, l = Ze && Ze.__awaiter || function(s, u, m, d) {
|
|
7059
|
-
function
|
|
7059
|
+
function f(y) {
|
|
7060
7060
|
return y instanceof m ? y : new m(function(_) {
|
|
7061
7061
|
_(y);
|
|
7062
7062
|
});
|
|
@@ -7077,7 +7077,7 @@ function Ct() {
|
|
|
7077
7077
|
}
|
|
7078
7078
|
}
|
|
7079
7079
|
function v(x) {
|
|
7080
|
-
x.done ? y(x.value) :
|
|
7080
|
+
x.done ? y(x.value) : f(x.value).then(U, C);
|
|
7081
7081
|
}
|
|
7082
7082
|
v((d = d.apply(s, u || [])).next());
|
|
7083
7083
|
});
|
|
@@ -7085,7 +7085,7 @@ function Ct() {
|
|
|
7085
7085
|
var m = { label: 0, sent: function() {
|
|
7086
7086
|
if (y[0] & 1) throw y[1];
|
|
7087
7087
|
return y[1];
|
|
7088
|
-
}, trys: [], ops: [] }, d,
|
|
7088
|
+
}, trys: [], ops: [] }, d, f, y, _ = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
7089
7089
|
return _.next = U(0), _.throw = U(1), _.return = U(2), typeof Symbol == "function" && (_[Symbol.iterator] = function() {
|
|
7090
7090
|
return this;
|
|
7091
7091
|
}), _;
|
|
@@ -7097,8 +7097,8 @@ function Ct() {
|
|
|
7097
7097
|
function C(v) {
|
|
7098
7098
|
if (d) throw new TypeError("Generator is already executing.");
|
|
7099
7099
|
for (; _ && (_ = 0, v[0] && (m = 0)), m; ) try {
|
|
7100
|
-
if (d = 1,
|
|
7101
|
-
switch (
|
|
7100
|
+
if (d = 1, f && (y = v[0] & 2 ? f.return : v[0] ? f.throw || ((y = f.return) && y.call(f), 0) : f.next) && !(y = y.call(f, v[1])).done) return y;
|
|
7101
|
+
switch (f = 0, y && (v = [v[0] & 2, y.value]), v[0]) {
|
|
7102
7102
|
case 0:
|
|
7103
7103
|
case 1:
|
|
7104
7104
|
y = v;
|
|
@@ -7106,7 +7106,7 @@ function Ct() {
|
|
|
7106
7106
|
case 4:
|
|
7107
7107
|
return m.label++, { value: v[1], done: !1 };
|
|
7108
7108
|
case 5:
|
|
7109
|
-
m.label++,
|
|
7109
|
+
m.label++, f = v[1], v = [0];
|
|
7110
7110
|
continue;
|
|
7111
7111
|
case 7:
|
|
7112
7112
|
v = m.ops.pop(), m.trys.pop();
|
|
@@ -7133,7 +7133,7 @@ function Ct() {
|
|
|
7133
7133
|
}
|
|
7134
7134
|
v = u.call(s, m);
|
|
7135
7135
|
} catch (x) {
|
|
7136
|
-
v = [6, x],
|
|
7136
|
+
v = [6, x], f = 0;
|
|
7137
7137
|
} finally {
|
|
7138
7138
|
d = y = 0;
|
|
7139
7139
|
}
|
|
@@ -7144,17 +7144,17 @@ function Ct() {
|
|
|
7144
7144
|
return s && s.__esModule ? s : { default: s };
|
|
7145
7145
|
};
|
|
7146
7146
|
Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.useWebSocket = void 0;
|
|
7147
|
-
var p = de, g = Vl, b = ra(),
|
|
7147
|
+
var p = de, g = Vl, b = ra(), c = Co(), r = vo(), a = n(ho()), t = bt(), o = function(s, u, m) {
|
|
7148
7148
|
u === void 0 && (u = b.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7149
|
-
var d = (0, p.useState)(null),
|
|
7150
|
-
if (!u.disableJson &&
|
|
7149
|
+
var d = (0, p.useState)(null), f = d[0], y = d[1], _ = (0, p.useState)({}), U = _[0], C = _[1], v = (0, p.useMemo)(function() {
|
|
7150
|
+
if (!u.disableJson && f)
|
|
7151
7151
|
try {
|
|
7152
|
-
return JSON.parse(
|
|
7152
|
+
return JSON.parse(f.data);
|
|
7153
7153
|
} catch {
|
|
7154
7154
|
return b.UNPARSABLE_JSON_OBJECT;
|
|
7155
7155
|
}
|
|
7156
7156
|
return null;
|
|
7157
|
-
}, [
|
|
7157
|
+
}, [f, u.disableJson]), x = (0, p.useRef)(null), D = (0, p.useRef)(null), G = (0, p.useRef)(function() {
|
|
7158
7158
|
}), H = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), T = (0, p.useRef)([]), F = (0, p.useRef)(null), O = (0, p.useRef)(u);
|
|
7159
7159
|
O.current = u;
|
|
7160
7160
|
var P = x.current && U[x.current] !== void 0 ? U[x.current] : s !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, S = u.queryParams ? JSON.stringify(u.queryParams) : null, E = (0, p.useCallback)(function(B, W) {
|
|
@@ -7197,7 +7197,7 @@ function Ct() {
|
|
|
7197
7197
|
return e(e({}, J), x.current && (ae = {}, ae[x.current] = Q, ae));
|
|
7198
7198
|
});
|
|
7199
7199
|
});
|
|
7200
|
-
}, L && (B = (0,
|
|
7200
|
+
}, L && (B = (0, c.createOrJoinSocket)(D, x.current, K, O, R, G, H, k, E)), [
|
|
7201
7201
|
2
|
|
7202
7202
|
/*return*/
|
|
7203
7203
|
]);
|
|
@@ -7221,7 +7221,7 @@ function Ct() {
|
|
|
7221
7221
|
}, [P]), {
|
|
7222
7222
|
sendMessage: E,
|
|
7223
7223
|
sendJsonMessage: M,
|
|
7224
|
-
lastMessage:
|
|
7224
|
+
lastMessage: f,
|
|
7225
7225
|
lastJsonMessage: v,
|
|
7226
7226
|
readyState: P,
|
|
7227
7227
|
getWebSocket: w
|
|
@@ -7234,22 +7234,22 @@ function To() {
|
|
|
7234
7234
|
if (Dn) return ka;
|
|
7235
7235
|
Dn = 1;
|
|
7236
7236
|
var e = ka && ka.__assign || function() {
|
|
7237
|
-
return e = Object.assign || function(
|
|
7237
|
+
return e = Object.assign || function(c) {
|
|
7238
7238
|
for (var r, a = 1, t = arguments.length; a < t; a++) {
|
|
7239
7239
|
r = arguments[a];
|
|
7240
|
-
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (
|
|
7240
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (c[o] = r[o]);
|
|
7241
7241
|
}
|
|
7242
|
-
return
|
|
7242
|
+
return c;
|
|
7243
7243
|
}, e.apply(this, arguments);
|
|
7244
7244
|
};
|
|
7245
7245
|
Object.defineProperty(ka, "__esModule", { value: !0 }), ka.useSocketIO = void 0;
|
|
7246
7246
|
var l = de, i = Ct(), n = ra(), p = {
|
|
7247
7247
|
type: "empty",
|
|
7248
7248
|
payload: null
|
|
7249
|
-
}, g = function(
|
|
7250
|
-
if (!
|
|
7249
|
+
}, g = function(c) {
|
|
7250
|
+
if (!c || !c.data)
|
|
7251
7251
|
return p;
|
|
7252
|
-
var r =
|
|
7252
|
+
var r = c.data.match(/\[.*]/);
|
|
7253
7253
|
if (!r)
|
|
7254
7254
|
return p;
|
|
7255
7255
|
var a = JSON.parse(r);
|
|
@@ -7257,11 +7257,11 @@ function To() {
|
|
|
7257
7257
|
type: a[0],
|
|
7258
7258
|
payload: a[1]
|
|
7259
7259
|
};
|
|
7260
|
-
}, b = function(
|
|
7260
|
+
}, b = function(c, r, a) {
|
|
7261
7261
|
r === void 0 && (r = n.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
7262
7262
|
var t = (0, l.useMemo)(function() {
|
|
7263
7263
|
return e(e({}, r), { fromSocketIO: !0 });
|
|
7264
|
-
}, []), o = (0, i.useWebSocket)(
|
|
7264
|
+
}, []), o = (0, i.useWebSocket)(c, t, a), s = o.sendMessage, u = o.sendJsonMessage, m = o.lastMessage, d = o.readyState, f = o.getWebSocket, y = (0, l.useMemo)(function() {
|
|
7265
7265
|
return g(m);
|
|
7266
7266
|
}, [m]);
|
|
7267
7267
|
return {
|
|
@@ -7270,7 +7270,7 @@ function To() {
|
|
|
7270
7270
|
lastMessage: y,
|
|
7271
7271
|
lastJsonMessage: y,
|
|
7272
7272
|
readyState: d,
|
|
7273
|
-
getWebSocket:
|
|
7273
|
+
getWebSocket: f
|
|
7274
7274
|
};
|
|
7275
7275
|
};
|
|
7276
7276
|
return ka.useSocketIO = b, ka;
|
|
@@ -7281,30 +7281,30 @@ function ko() {
|
|
|
7281
7281
|
En = 1;
|
|
7282
7282
|
var e = ua && ua.__assign || function() {
|
|
7283
7283
|
return e = Object.assign || function(b) {
|
|
7284
|
-
for (var
|
|
7285
|
-
|
|
7286
|
-
for (var t in
|
|
7284
|
+
for (var c, r = 1, a = arguments.length; r < a; r++) {
|
|
7285
|
+
c = arguments[r];
|
|
7286
|
+
for (var t in c) Object.prototype.hasOwnProperty.call(c, t) && (b[t] = c[t]);
|
|
7287
7287
|
}
|
|
7288
7288
|
return b;
|
|
7289
7289
|
}, e.apply(this, arguments);
|
|
7290
|
-
}, l = ua && ua.__rest || function(b,
|
|
7290
|
+
}, l = ua && ua.__rest || function(b, c) {
|
|
7291
7291
|
var r = {};
|
|
7292
|
-
for (var a in b) Object.prototype.hasOwnProperty.call(b, a) &&
|
|
7292
|
+
for (var a in b) Object.prototype.hasOwnProperty.call(b, a) && c.indexOf(a) < 0 && (r[a] = b[a]);
|
|
7293
7293
|
if (b != null && typeof Object.getOwnPropertySymbols == "function")
|
|
7294
7294
|
for (var t = 0, a = Object.getOwnPropertySymbols(b); t < a.length; t++)
|
|
7295
|
-
|
|
7295
|
+
c.indexOf(a[t]) < 0 && Object.prototype.propertyIsEnumerable.call(b, a[t]) && (r[a[t]] = b[a[t]]);
|
|
7296
7296
|
return r;
|
|
7297
7297
|
};
|
|
7298
7298
|
Object.defineProperty(ua, "__esModule", { value: !0 }), ua.useEventSource = void 0;
|
|
7299
|
-
var i = de, n = Ct(), p = ra(), g = function(b,
|
|
7300
|
-
|
|
7301
|
-
var a =
|
|
7299
|
+
var i = de, n = Ct(), p = ra(), g = function(b, c, r) {
|
|
7300
|
+
c === void 0 && (c = p.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7301
|
+
var a = c.withCredentials, t = c.events, o = l(c, ["withCredentials", "events"]);
|
|
7302
7302
|
r === void 0 && (r = !0);
|
|
7303
7303
|
var s = e(e({}, o), { eventSourceOptions: {
|
|
7304
7304
|
withCredentials: a
|
|
7305
7305
|
} }), u = (0, i.useRef)(p.EMPTY_EVENT_HANDLERS);
|
|
7306
7306
|
t && (u.current = t);
|
|
7307
|
-
var m = (0, n.useWebSocket)(b, s, r), d = m.lastMessage,
|
|
7307
|
+
var m = (0, n.useWebSocket)(b, s, r), d = m.lastMessage, f = m.readyState, y = m.getWebSocket;
|
|
7308
7308
|
return (0, i.useEffect)(function() {
|
|
7309
7309
|
d?.type && Object.entries(u.current).forEach(function(_) {
|
|
7310
7310
|
var U = _[0], C = _[1];
|
|
@@ -7312,7 +7312,7 @@ function ko() {
|
|
|
7312
7312
|
});
|
|
7313
7313
|
}, [d]), {
|
|
7314
7314
|
lastEvent: d,
|
|
7315
|
-
readyState:
|
|
7315
|
+
readyState: f,
|
|
7316
7316
|
getEventSource: y
|
|
7317
7317
|
};
|
|
7318
7318
|
};
|
|
@@ -7352,13 +7352,13 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7352
7352
|
isInGameBox: n = !1,
|
|
7353
7353
|
currentGamePlatform: p = ""
|
|
7354
7354
|
}) => {
|
|
7355
|
-
const { store: g, lng: b } =
|
|
7355
|
+
const { store: g, lng: b } = oe(), { isReady: c, setAsReady: r, isPending: a, setAsPending: t } = Vn(), o = $e(b), { mutateAsync: s } = Bo();
|
|
7356
7356
|
return !e || !l || !i ? { handleTransferInGame: () => {
|
|
7357
7357
|
} } : { handleTransferInGame: async () => {
|
|
7358
7358
|
console.log("執行遊戲內轉帳"), n && await s({
|
|
7359
7359
|
platform: p
|
|
7360
7360
|
}).then((m) => {
|
|
7361
|
-
const { code: d, request_id:
|
|
7361
|
+
const { code: d, request_id: f } = m;
|
|
7362
7362
|
switch (d) {
|
|
7363
7363
|
case 200:
|
|
7364
7364
|
r(), g.dispatch({
|
|
@@ -7371,10 +7371,10 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7371
7371
|
});
|
|
7372
7372
|
return;
|
|
7373
7373
|
case 101:
|
|
7374
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7374
|
+
localStorage.setItem("transfer_in_game_request_id", f), t();
|
|
7375
7375
|
return;
|
|
7376
7376
|
case 102:
|
|
7377
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7377
|
+
localStorage.setItem("transfer_in_game_request_id", f), t(), g.dispatch({
|
|
7378
7378
|
type: "ui/openNotificationModal",
|
|
7379
7379
|
payload: {
|
|
7380
7380
|
title: Qa[o] || "System Prompt",
|
|
@@ -7392,87 +7392,87 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7392
7392
|
});
|
|
7393
7393
|
} };
|
|
7394
7394
|
}, No = ({ options: e } = {}) => {
|
|
7395
|
-
const { userLoginApi: l } =
|
|
7396
|
-
return
|
|
7395
|
+
const { userLoginApi: l } = ue();
|
|
7396
|
+
return re({
|
|
7397
7397
|
mutationKey: ["userLogin"],
|
|
7398
7398
|
mutationFn: async (i) => l(i),
|
|
7399
7399
|
...e
|
|
7400
7400
|
});
|
|
7401
7401
|
}, Lo = ({ options: e } = {}) => {
|
|
7402
|
-
const { userLogoutApi: l } =
|
|
7403
|
-
return
|
|
7402
|
+
const { userLogoutApi: l } = ue();
|
|
7403
|
+
return re({
|
|
7404
7404
|
mutationKey: ["userLogout"],
|
|
7405
7405
|
mutationFn: async () => l(),
|
|
7406
7406
|
...e
|
|
7407
7407
|
});
|
|
7408
7408
|
}, Go = ({ options: e } = {}) => {
|
|
7409
|
-
const { userSignUpApi: l } =
|
|
7410
|
-
return
|
|
7409
|
+
const { userSignUpApi: l } = ue();
|
|
7410
|
+
return re({
|
|
7411
7411
|
mutationKey: ["userSignUp"],
|
|
7412
7412
|
mutationFn: async (i) => l(i),
|
|
7413
7413
|
...e
|
|
7414
7414
|
});
|
|
7415
7415
|
}, Mo = ({ options: e } = {}) => {
|
|
7416
|
-
const { addOrRemoveFavoriteGameApi: l } =
|
|
7417
|
-
return
|
|
7416
|
+
const { addOrRemoveFavoriteGameApi: l } = ue();
|
|
7417
|
+
return re({
|
|
7418
7418
|
mutationKey: ["toggleFavoriteGame"],
|
|
7419
7419
|
mutationFn: async (i) => l(i),
|
|
7420
7420
|
...e
|
|
7421
7421
|
});
|
|
7422
7422
|
}, Ro = ({ options: e } = {}) => {
|
|
7423
|
-
const { updateUserInfoApi: l } =
|
|
7424
|
-
return
|
|
7423
|
+
const { updateUserInfoApi: l } = ue();
|
|
7424
|
+
return re({
|
|
7425
7425
|
mutationKey: ["updateUserInfo"],
|
|
7426
7426
|
mutationFn: async (i) => l(i),
|
|
7427
7427
|
...e
|
|
7428
7428
|
});
|
|
7429
7429
|
}, Po = ({ options: e } = {}) => {
|
|
7430
|
-
const { resetUserPasswordApi: l } =
|
|
7431
|
-
return
|
|
7430
|
+
const { resetUserPasswordApi: l } = ue();
|
|
7431
|
+
return re({
|
|
7432
7432
|
mutationKey: ["resetUserPassword"],
|
|
7433
7433
|
mutationFn: async (i) => l(i),
|
|
7434
7434
|
...e
|
|
7435
7435
|
});
|
|
7436
7436
|
}, wo = ({ options: e } = {}) => {
|
|
7437
|
-
const { setUserTransactionPasswordApi: l } =
|
|
7438
|
-
return
|
|
7437
|
+
const { setUserTransactionPasswordApi: l } = ue();
|
|
7438
|
+
return re({
|
|
7439
7439
|
mutationKey: ["setUserTransactionPassword"],
|
|
7440
7440
|
mutationFn: async (i) => l(i),
|
|
7441
7441
|
...e
|
|
7442
7442
|
});
|
|
7443
7443
|
}, Fo = ({ options: e } = {}) => {
|
|
7444
|
-
const { resetUserTransactionPasswordApi: l } =
|
|
7445
|
-
return
|
|
7444
|
+
const { resetUserTransactionPasswordApi: l } = ue();
|
|
7445
|
+
return re({
|
|
7446
7446
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7447
7447
|
mutationFn: async (i) => l(i),
|
|
7448
7448
|
...e
|
|
7449
7449
|
});
|
|
7450
7450
|
}, Ao = ({ paramsData: e, options: l } = {}) => {
|
|
7451
|
-
const { userRebateApi: i } =
|
|
7452
|
-
return n?.(),
|
|
7451
|
+
const { userRebateApi: i } = ue(), { getToken: n } = oe();
|
|
7452
|
+
return n?.(), j({
|
|
7453
7453
|
queryKey: ["userRebate", e],
|
|
7454
7454
|
queryFn: async () => i({ paramsData: e }),
|
|
7455
7455
|
enabled: !1,
|
|
7456
7456
|
...l
|
|
7457
7457
|
});
|
|
7458
7458
|
}, Oo = ({ options: e } = {}) => {
|
|
7459
|
-
const { userBindBankApi: l } =
|
|
7460
|
-
return
|
|
7459
|
+
const { userBindBankApi: l } = ue();
|
|
7460
|
+
return re({
|
|
7461
7461
|
mutationKey: ["userBindBank"],
|
|
7462
7462
|
mutationFn: async (i) => l({ formData: i }),
|
|
7463
7463
|
...e
|
|
7464
7464
|
});
|
|
7465
7465
|
}, Bo = ({ options: e } = {}) => {
|
|
7466
|
-
const { transferInGameApi: l } =
|
|
7467
|
-
return
|
|
7466
|
+
const { transferInGameApi: l } = ue();
|
|
7467
|
+
return re({
|
|
7468
7468
|
mutationKey: ["transferInGame"],
|
|
7469
7469
|
mutationFn: async (i) => l(i),
|
|
7470
7470
|
retry: !1,
|
|
7471
7471
|
...e
|
|
7472
7472
|
});
|
|
7473
7473
|
}, Sm = ({ options: e } = {}) => {
|
|
7474
|
-
const { currency: l } =
|
|
7475
|
-
return
|
|
7474
|
+
const { currency: l } = oe(), { pointTransferApi: i } = ue();
|
|
7475
|
+
return re({
|
|
7476
7476
|
mutationKey: ["pointTransfer"],
|
|
7477
7477
|
mutationFn: async (n) => i({
|
|
7478
7478
|
...n,
|
|
@@ -7481,21 +7481,21 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7481
7481
|
...e
|
|
7482
7482
|
});
|
|
7483
7483
|
}, Dm = ({ options: e } = {}) => {
|
|
7484
|
-
const { currency: l } =
|
|
7485
|
-
return
|
|
7484
|
+
const { currency: l } = oe(), { checkUserWagerApi: i } = ue();
|
|
7485
|
+
return j({
|
|
7486
7486
|
queryKey: ["checkUserWager"],
|
|
7487
7487
|
queryFn: async () => i(),
|
|
7488
7488
|
select: (n) => {
|
|
7489
7489
|
const { data: p } = n;
|
|
7490
|
-
return
|
|
7490
|
+
return qe(p?.base, {
|
|
7491
7491
|
currency: l
|
|
7492
7492
|
}) || {};
|
|
7493
7493
|
},
|
|
7494
7494
|
...e
|
|
7495
7495
|
});
|
|
7496
7496
|
}, Em = ({ options: e } = {}) => {
|
|
7497
|
-
const l = pt(), { abandonPointsApi: i } =
|
|
7498
|
-
return
|
|
7497
|
+
const l = pt(), { abandonPointsApi: i } = ue();
|
|
7498
|
+
return re({
|
|
7499
7499
|
mutationKey: ["abandonPoint"],
|
|
7500
7500
|
mutationFn: async (n) => i({
|
|
7501
7501
|
...n
|
|
@@ -7506,69 +7506,83 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7506
7506
|
...e
|
|
7507
7507
|
});
|
|
7508
7508
|
}, tl = ({ options: e } = {}) => {
|
|
7509
|
-
const { lineLoginApi: l } =
|
|
7510
|
-
return
|
|
7509
|
+
const { lineLoginApi: l } = ue();
|
|
7510
|
+
return re({
|
|
7511
7511
|
mutationKey: ["lineLogin"],
|
|
7512
7512
|
mutationFn: async (i) => l(i),
|
|
7513
7513
|
...e
|
|
7514
7514
|
});
|
|
7515
7515
|
}, Ho = ({ options: e } = {}) => {
|
|
7516
|
-
const { lineLogin2Api: l } =
|
|
7517
|
-
return
|
|
7516
|
+
const { lineLogin2Api: l } = ue();
|
|
7517
|
+
return re({
|
|
7518
7518
|
mutationKey: ["lineLogin"],
|
|
7519
7519
|
mutationFn: async (i) => l(i),
|
|
7520
7520
|
...e
|
|
7521
7521
|
});
|
|
7522
7522
|
}, Wo = ({ options: e, formData: l } = {}) => {
|
|
7523
|
-
const { getMachineLoginCodeApi: i } =
|
|
7524
|
-
return
|
|
7523
|
+
const { getMachineLoginCodeApi: i } = ue();
|
|
7524
|
+
return j({
|
|
7525
7525
|
queryKey: ["getMachineLoginCode"],
|
|
7526
7526
|
queryFn: async () => i(l),
|
|
7527
7527
|
...e
|
|
7528
7528
|
});
|
|
7529
7529
|
}, Nm = ({ options: e } = {}) => {
|
|
7530
|
-
const { currency: l } =
|
|
7531
|
-
return
|
|
7530
|
+
const { currency: l } = oe(), { memberTransferApi: i } = ue();
|
|
7531
|
+
return re({
|
|
7532
7532
|
mutationKey: ["memberTransfer"],
|
|
7533
7533
|
mutationFn: async (n) => i({ ...n, currency: l }),
|
|
7534
7534
|
...e
|
|
7535
7535
|
});
|
|
7536
7536
|
}, Lm = ({ options: e } = {}) => {
|
|
7537
|
-
const { mobileLoginApi: l } =
|
|
7538
|
-
return
|
|
7537
|
+
const { mobileLoginApi: l } = ue();
|
|
7538
|
+
return re({
|
|
7539
7539
|
mutationKey: ["mobileLogin"],
|
|
7540
7540
|
mutationFn: async (i) => l(i),
|
|
7541
7541
|
...e
|
|
7542
7542
|
});
|
|
7543
7543
|
}, Gm = ({ options: e } = {}) => {
|
|
7544
|
-
const { mobileLoginApiV2: l } =
|
|
7545
|
-
return
|
|
7544
|
+
const { mobileLoginApiV2: l } = ue();
|
|
7545
|
+
return re({
|
|
7546
7546
|
mutationKey: ["mobileLoginV2"],
|
|
7547
7547
|
mutationFn: async (i) => l(i),
|
|
7548
7548
|
...e
|
|
7549
7549
|
});
|
|
7550
7550
|
}, Mm = ({ options: e } = {}) => {
|
|
7551
|
-
const { mobileRegisterApi: l } =
|
|
7552
|
-
return
|
|
7551
|
+
const { mobileRegisterApi: l } = ue();
|
|
7552
|
+
return re({
|
|
7553
7553
|
mutationKey: ["mobileRegister"],
|
|
7554
7554
|
mutationFn: async (i) => l(i),
|
|
7555
7555
|
...e
|
|
7556
7556
|
});
|
|
7557
7557
|
}, zo = ({ options: e } = {}) => {
|
|
7558
|
-
const { bindAccountApi: l } =
|
|
7559
|
-
return
|
|
7558
|
+
const { bindAccountApi: l } = ue();
|
|
7559
|
+
return re({
|
|
7560
7560
|
mutationKey: ["bindAccount"],
|
|
7561
7561
|
mutationFn: async (i) => l(i),
|
|
7562
7562
|
...e
|
|
7563
7563
|
});
|
|
7564
7564
|
}, Rm = ({ options: e } = {}) => {
|
|
7565
|
-
const { sendMobileVerifyCodeApi: l } =
|
|
7566
|
-
return
|
|
7565
|
+
const { sendMobileVerifyCodeApi: l } = ue();
|
|
7566
|
+
return re({
|
|
7567
7567
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7568
7568
|
mutationFn: async (i) => l(i),
|
|
7569
7569
|
...e
|
|
7570
7570
|
});
|
|
7571
|
-
}, Pm = ({
|
|
7571
|
+
}, Pm = ({ options: e, paramsData: l } = {}) => {
|
|
7572
|
+
const { verifyPhoneBarApi: i } = ue();
|
|
7573
|
+
return j({
|
|
7574
|
+
queryKey: ["verifyPhoneBar", l],
|
|
7575
|
+
queryFn: async () => i(l),
|
|
7576
|
+
...e
|
|
7577
|
+
});
|
|
7578
|
+
}, wm = ({ options: e, paramsData: l } = {}) => {
|
|
7579
|
+
const { verifyDonationCodeApi: i } = ue();
|
|
7580
|
+
return j({
|
|
7581
|
+
queryKey: ["verifyDonationCode", l],
|
|
7582
|
+
queryFn: async () => i(l),
|
|
7583
|
+
...e
|
|
7584
|
+
});
|
|
7585
|
+
}, Fm = ({
|
|
7572
7586
|
options: e = {
|
|
7573
7587
|
login: {},
|
|
7574
7588
|
logout: {},
|
|
@@ -7586,7 +7600,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7586
7600
|
options: e.toggleFavoriteGame
|
|
7587
7601
|
}), b = Po({
|
|
7588
7602
|
options: e.resetUserPassword
|
|
7589
|
-
}),
|
|
7603
|
+
}), c = wo({
|
|
7590
7604
|
options: e.setUserTransactionPassword
|
|
7591
7605
|
}), r = Fo({
|
|
7592
7606
|
options: e.resetUserTransactionPassword
|
|
@@ -7598,12 +7612,12 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7598
7612
|
updateUserInfo: p,
|
|
7599
7613
|
toggleFavoriteGame: g,
|
|
7600
7614
|
resetUserPassword: b,
|
|
7601
|
-
setUserTransactionPassword:
|
|
7615
|
+
setUserTransactionPassword: c,
|
|
7602
7616
|
resetUserTransactionPassword: r,
|
|
7603
7617
|
userRebate: a,
|
|
7604
7618
|
userBindCard: t
|
|
7605
7619
|
};
|
|
7606
|
-
},
|
|
7620
|
+
}, ze = {
|
|
7607
7621
|
DEPOSIT: "deposit",
|
|
7608
7622
|
TRANS_CODE: "transCode",
|
|
7609
7623
|
ERROR: "error",
|
|
@@ -7617,7 +7631,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7617
7631
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7618
7632
|
GAME_MAINTAIN: "game_maintain",
|
|
7619
7633
|
LINE_LOGIN: "line_login"
|
|
7620
|
-
}, Io = 3e4,
|
|
7634
|
+
}, Io = 3e4, Am = ({
|
|
7621
7635
|
socketUrl: e,
|
|
7622
7636
|
socketHandlers: l = {},
|
|
7623
7637
|
options: i = {},
|
|
@@ -7631,23 +7645,23 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7631
7645
|
enableNotification: g = !1,
|
|
7632
7646
|
disabledLineAutoRegister: b = !1
|
|
7633
7647
|
}) => {
|
|
7634
|
-
const { store:
|
|
7635
|
-
|
|
7636
|
-
const _ = new URLSearchParams(window.location.search), U =
|
|
7648
|
+
const { store: c, lng: r } = oe(), a = pt(), { isReady: t, setAsReady: o, isPending: s, setAsPending: u } = Vn(), m = $e(r), d = ee(!1), f = ee(l), y = le(n, "uid", null);
|
|
7649
|
+
le(n, "testFunction", 0);
|
|
7650
|
+
const _ = new URLSearchParams(window.location.search), U = le(
|
|
7637
7651
|
p,
|
|
7638
7652
|
"enableTransferInGaming",
|
|
7639
7653
|
!1
|
|
7640
7654
|
), { mutateAsync: C } = tl({
|
|
7641
7655
|
options: {
|
|
7642
7656
|
onSuccess: (P) => {
|
|
7643
|
-
|
|
7657
|
+
f.current.onLineLogin?.(P);
|
|
7644
7658
|
},
|
|
7645
7659
|
retry: !1
|
|
7646
7660
|
}
|
|
7647
7661
|
}), { mutateAsync: v } = Ho({
|
|
7648
7662
|
options: {
|
|
7649
7663
|
onSuccess: (P) => {
|
|
7650
|
-
|
|
7664
|
+
f.current.onLineLogin?.(P);
|
|
7651
7665
|
},
|
|
7652
7666
|
onError: (P, S) => {
|
|
7653
7667
|
b || C(S);
|
|
@@ -7656,9 +7670,9 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7656
7670
|
}), { handleTransferInGame: x } = Eo({
|
|
7657
7671
|
enable: U,
|
|
7658
7672
|
isTestFunction: !0,
|
|
7659
|
-
isTransferMode:
|
|
7660
|
-
isInGameBox:
|
|
7661
|
-
currentGamePlatform:
|
|
7673
|
+
isTransferMode: le(p, "isTransferMode", !1),
|
|
7674
|
+
isInGameBox: le(p, "isInGameBox", !1),
|
|
7675
|
+
currentGamePlatform: le(p, "currentGamePlatform", "")
|
|
7662
7676
|
}), {
|
|
7663
7677
|
sendMessage: D,
|
|
7664
7678
|
// 發送普通訊息
|
|
@@ -7684,7 +7698,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7684
7698
|
return null;
|
|
7685
7699
|
}
|
|
7686
7700
|
}, [H]);
|
|
7687
|
-
|
|
7701
|
+
ge(() => {
|
|
7688
7702
|
const P = setInterval(
|
|
7689
7703
|
() => D("ping"),
|
|
7690
7704
|
Io
|
|
@@ -7693,7 +7707,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7693
7707
|
}, [D]);
|
|
7694
7708
|
const F = I(
|
|
7695
7709
|
(P, S) => {
|
|
7696
|
-
g &&
|
|
7710
|
+
g && c.dispatch({
|
|
7697
7711
|
type: "ui/openNotificationModal",
|
|
7698
7712
|
payload: {
|
|
7699
7713
|
title: Qa[m] || "System Prompt",
|
|
@@ -7703,13 +7717,13 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7703
7717
|
}
|
|
7704
7718
|
});
|
|
7705
7719
|
},
|
|
7706
|
-
[g,
|
|
7720
|
+
[g, c, m]
|
|
7707
7721
|
);
|
|
7708
|
-
|
|
7709
|
-
|
|
7722
|
+
ge(() => {
|
|
7723
|
+
f.current = l;
|
|
7710
7724
|
}, [l]);
|
|
7711
7725
|
const O = ee(null);
|
|
7712
|
-
return
|
|
7726
|
+
return ge(() => {
|
|
7713
7727
|
if (!T || O.current === T)
|
|
7714
7728
|
return;
|
|
7715
7729
|
O.current = T;
|
|
@@ -7723,50 +7737,50 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7723
7737
|
onTransferInGame: W,
|
|
7724
7738
|
onCashRegisterLimit: L,
|
|
7725
7739
|
onLineLogin: N
|
|
7726
|
-
} =
|
|
7727
|
-
memberInfoUid:
|
|
7728
|
-
data:
|
|
7729
|
-
memo:
|
|
7730
|
-
amount:
|
|
7731
|
-
limitAmount:
|
|
7732
|
-
}, K = Number(R.memberInfoUid) === y, q = R.data, Q = R.amount, J = R.limitAmount, ae = _.get("mac") || lt.get("machine_mac_address") || "", te =
|
|
7740
|
+
} = f.current, A = le(T, "type", ""), R = {
|
|
7741
|
+
memberInfoUid: le(T, "member_info_uid", null),
|
|
7742
|
+
data: le(T, "data", null),
|
|
7743
|
+
memo: le(T, "memo", null),
|
|
7744
|
+
amount: le(T, "amount", null),
|
|
7745
|
+
limitAmount: le(T, "limit_amount", null)
|
|
7746
|
+
}, K = Number(R.memberInfoUid) === y, q = R.data, Q = R.amount, J = R.limitAmount, ae = _.get("mac") || lt.get("machine_mac_address") || "", te = le(T, "data.line_id", null), _e = le(T, "data.line_name", null), ye = le(T, "member_info_uid", null);
|
|
7733
7747
|
switch (A) {
|
|
7734
|
-
case
|
|
7748
|
+
case ze.DEPOSIT:
|
|
7735
7749
|
K && (x(), P?.(R));
|
|
7736
7750
|
break;
|
|
7737
|
-
case
|
|
7751
|
+
case ze.TRANS_CODE:
|
|
7738
7752
|
S?.(R);
|
|
7739
7753
|
break;
|
|
7740
|
-
case
|
|
7754
|
+
case ze.ERROR:
|
|
7741
7755
|
if (K) {
|
|
7742
|
-
const
|
|
7756
|
+
const se = le(T, "open_game_modal", 0) === 1;
|
|
7743
7757
|
F(q, {
|
|
7744
|
-
notificationType:
|
|
7758
|
+
notificationType: se ? "gamingNotice" : void 0
|
|
7745
7759
|
}), E?.(R);
|
|
7746
7760
|
}
|
|
7747
7761
|
break;
|
|
7748
|
-
case
|
|
7762
|
+
case ze.UPDATE_MEMBER:
|
|
7749
7763
|
y && (a.invalidateQueries({
|
|
7750
7764
|
queryKey: ["getMemberInfo"]
|
|
7751
7765
|
}), M?.(R));
|
|
7752
7766
|
break;
|
|
7753
|
-
case
|
|
7767
|
+
case ze.MAINTAIN_NOTICE:
|
|
7754
7768
|
F(q, {
|
|
7755
7769
|
notificationType: "maintainNotice"
|
|
7756
7770
|
}), w?.(R);
|
|
7757
7771
|
break;
|
|
7758
|
-
case
|
|
7772
|
+
case ze.MAINTAIN_NOTICE_MEMBER:
|
|
7759
7773
|
K && (F(q), B?.(R), setTimeout(() => {
|
|
7760
7774
|
window.location.reload();
|
|
7761
7775
|
}, 5e4));
|
|
7762
7776
|
break;
|
|
7763
|
-
case
|
|
7777
|
+
case ze.RELOAD:
|
|
7764
7778
|
window.location.reload();
|
|
7765
7779
|
break;
|
|
7766
|
-
case
|
|
7767
|
-
case
|
|
7780
|
+
case ze.TRANSFER_IN_GAME:
|
|
7781
|
+
case ze.CHECK_REQUEST:
|
|
7768
7782
|
if (K && U) {
|
|
7769
|
-
const { request_id:
|
|
7783
|
+
const { request_id: se, amount: ce, platform: ke, status: Ue } = le(
|
|
7770
7784
|
R,
|
|
7771
7785
|
"data",
|
|
7772
7786
|
{}
|
|
@@ -7774,14 +7788,14 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7774
7788
|
"transfer_in_game_request_id"
|
|
7775
7789
|
);
|
|
7776
7790
|
if (s) {
|
|
7777
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7791
|
+
localStorage.setItem("transfer_in_game_request_id", se);
|
|
7778
7792
|
return;
|
|
7779
|
-
} else if (Ie && Ie ===
|
|
7793
|
+
} else if (Ie && Ie === se) {
|
|
7780
7794
|
if (Ue === "rollback") {
|
|
7781
7795
|
x();
|
|
7782
7796
|
return;
|
|
7783
7797
|
}
|
|
7784
|
-
localStorage.removeItem("transfer_in_game_request_id"), o(),
|
|
7798
|
+
localStorage.removeItem("transfer_in_game_request_id"), o(), c.dispatch({
|
|
7785
7799
|
type: "ui/openNotificationModal",
|
|
7786
7800
|
payload: {
|
|
7787
7801
|
title: Qa[m] || "System Prompt",
|
|
@@ -7793,24 +7807,24 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7793
7807
|
W?.(R);
|
|
7794
7808
|
}
|
|
7795
7809
|
break;
|
|
7796
|
-
case
|
|
7810
|
+
case ze.CASH_REGISTER_LIMIT:
|
|
7797
7811
|
F(q, {
|
|
7798
7812
|
notificationType: "cashRegisterLimit",
|
|
7799
7813
|
amount: Q,
|
|
7800
7814
|
limitAmount: J
|
|
7801
7815
|
}), L?.(R);
|
|
7802
7816
|
break;
|
|
7803
|
-
case
|
|
7817
|
+
case ze.UPDATE_ONLY_ONE_MEMBER:
|
|
7804
7818
|
K && (a.invalidateQueries({
|
|
7805
7819
|
queryKey: ["getMemberInfo"]
|
|
7806
7820
|
}), M?.(R));
|
|
7807
7821
|
break;
|
|
7808
|
-
case
|
|
7822
|
+
case ze.GAME_MAINTAIN:
|
|
7809
7823
|
F(q, {
|
|
7810
7824
|
notificationType: "gameMaintain"
|
|
7811
7825
|
});
|
|
7812
7826
|
break;
|
|
7813
|
-
case
|
|
7827
|
+
case ze.LINE_LOGIN:
|
|
7814
7828
|
ye === ae && v({
|
|
7815
7829
|
line_id: te,
|
|
7816
7830
|
line_name: _e
|
|
@@ -7823,7 +7837,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7823
7837
|
}, [
|
|
7824
7838
|
T,
|
|
7825
7839
|
y,
|
|
7826
|
-
|
|
7840
|
+
c,
|
|
7827
7841
|
a,
|
|
7828
7842
|
m,
|
|
7829
7843
|
F,
|
|
@@ -7831,13 +7845,13 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7831
7845
|
x,
|
|
7832
7846
|
U,
|
|
7833
7847
|
o
|
|
7834
|
-
]),
|
|
7848
|
+
]), ge(() => () => d.current = !0, []), ge(() => {
|
|
7835
7849
|
if (U) {
|
|
7836
7850
|
const P = localStorage.getItem(
|
|
7837
7851
|
"transfer_in_game_request_id"
|
|
7838
7852
|
);
|
|
7839
7853
|
P && y && s && G({
|
|
7840
|
-
type:
|
|
7854
|
+
type: ze.CHECK_REQUEST,
|
|
7841
7855
|
request_id: P,
|
|
7842
7856
|
member_info_uid: y
|
|
7843
7857
|
});
|
|
@@ -7849,7 +7863,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7849
7863
|
// WebSocket 連線狀態
|
|
7850
7864
|
};
|
|
7851
7865
|
}, Ji = () => {
|
|
7852
|
-
const { client: e } =
|
|
7866
|
+
const { client: e } = oe(), l = I(
|
|
7853
7867
|
async ({ paramsData: g } = {}) => {
|
|
7854
7868
|
const { uid: b } = g || {};
|
|
7855
7869
|
return await e.get(`/event/list${b ? `/${b}` : ""}`);
|
|
@@ -7870,10 +7884,10 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7870
7884
|
[e]
|
|
7871
7885
|
), p = I(
|
|
7872
7886
|
async (g = {}) => {
|
|
7873
|
-
const { currency: b, event_uid:
|
|
7887
|
+
const { currency: b, event_uid: c } = g || {};
|
|
7874
7888
|
return await e.post("/event/checkMemberEventsStatus", {
|
|
7875
7889
|
currency: b,
|
|
7876
|
-
event_uid:
|
|
7890
|
+
event_uid: c
|
|
7877
7891
|
});
|
|
7878
7892
|
},
|
|
7879
7893
|
[e]
|
|
@@ -7885,24 +7899,24 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7885
7899
|
redeemEventRewardApi: n
|
|
7886
7900
|
};
|
|
7887
7901
|
}, Vo = ({ paramsData: e, options: l } = {}) => {
|
|
7888
|
-
const { store: i, lng: n, data2URL: p } =
|
|
7889
|
-
return
|
|
7902
|
+
const { store: i, lng: n, data2URL: p } = oe(), { eventListApi: g } = Ji(), b = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD", c = $e(n);
|
|
7903
|
+
return j({
|
|
7890
7904
|
queryKey: ["eventList", e],
|
|
7891
7905
|
queryFn: () => g({ paramsData: e }),
|
|
7892
7906
|
select: (r) => {
|
|
7893
7907
|
const { data: a } = r;
|
|
7894
|
-
return
|
|
7895
|
-
const { events_attributes: s } = o, u =
|
|
7908
|
+
return Oe(a, (o) => {
|
|
7909
|
+
const { events_attributes: s } = o, u = qe(
|
|
7896
7910
|
s,
|
|
7897
7911
|
(v) => v.attribute_currency === b
|
|
7898
|
-
) || s[0], m =
|
|
7912
|
+
) || s[0], m = le(u, "rewards", {}), d = le(o, "carousels.[0]", {}), f = qe(d.carousels_lang, (v) => v.lang === c) || d?.carousels_lang?.[0], y = {
|
|
7899
7913
|
...d,
|
|
7900
7914
|
currentLngCarousel: {
|
|
7901
|
-
...
|
|
7902
|
-
carouselCurrentLanguagePCImageUrl: `${p}/carousels/${
|
|
7903
|
-
carouselCurrentLanguageMBImageUrl: `${p}/carousels/${
|
|
7904
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
7905
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
7915
|
+
...f,
|
|
7916
|
+
carouselCurrentLanguagePCImageUrl: `${p}/carousels/${f?.image_pc}`,
|
|
7917
|
+
carouselCurrentLanguageMBImageUrl: `${p}/carousels/${f?.image_mobile}`,
|
|
7918
|
+
carouselCurrentLanguageS3PCImageUrl: `${Xe}/carousels/${f?.image_pc}`,
|
|
7919
|
+
carouselCurrentLanguageS3MBImageUrl: `${Xe}/carousels/${f?.image_mobile}`
|
|
7906
7920
|
}
|
|
7907
7921
|
}, _ = {
|
|
7908
7922
|
eventUid: o.uid,
|
|
@@ -7997,29 +8011,29 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7997
8011
|
},
|
|
7998
8012
|
...l
|
|
7999
8013
|
});
|
|
8000
|
-
},
|
|
8014
|
+
}, Om = ({ options: e } = {}) => {
|
|
8001
8015
|
const { redeemEventRewardApi: l } = Ji();
|
|
8002
|
-
return
|
|
8016
|
+
return re({
|
|
8003
8017
|
mutationKey: ["redeemEventReward"],
|
|
8004
8018
|
mutationFn: async (i) => l(i),
|
|
8005
8019
|
...e
|
|
8006
8020
|
});
|
|
8007
8021
|
}, Zo = ({ options: e, formData: l } = {}) => {
|
|
8008
8022
|
const { checkCurrentEventProgessApi: i } = Ji();
|
|
8009
|
-
return
|
|
8023
|
+
return j({
|
|
8010
8024
|
queryKey: ["checkEventProgress"],
|
|
8011
8025
|
queryFn: async () => i(l),
|
|
8012
8026
|
...e
|
|
8013
8027
|
});
|
|
8014
8028
|
}, Jo = ({ options: e, formData: l } = {}) => {
|
|
8015
8029
|
const { checkEventStatusApi: i } = Ji();
|
|
8016
|
-
return
|
|
8030
|
+
return j({
|
|
8017
8031
|
queryKey: ["checkEventStatus"],
|
|
8018
8032
|
queryFn: async () => i(l),
|
|
8019
8033
|
select: (n) => n.data.event_status,
|
|
8020
8034
|
...e
|
|
8021
8035
|
});
|
|
8022
|
-
},
|
|
8036
|
+
}, Bm = ({
|
|
8023
8037
|
options: e = {
|
|
8024
8038
|
eventList: {},
|
|
8025
8039
|
checkEventProgress: {},
|
|
@@ -8037,43 +8051,65 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
8037
8051
|
checkEventStatusQuery: n
|
|
8038
8052
|
};
|
|
8039
8053
|
}, Ki = () => {
|
|
8040
|
-
const { client: e } =
|
|
8041
|
-
const { data:
|
|
8042
|
-
return
|
|
8054
|
+
const { client: e } = oe(), l = I(async () => {
|
|
8055
|
+
const { data: c } = await e.get("/carousels");
|
|
8056
|
+
return c;
|
|
8043
8057
|
}, [e]), i = I(async () => await e.get("/marquees"), [e]), n = I(async () => await e.get("/notification"), [e]), p = I(
|
|
8044
|
-
async (
|
|
8058
|
+
async (c) => await e.put(`/notification/${c}/read`),
|
|
8059
|
+
[e]
|
|
8060
|
+
), g = I(
|
|
8061
|
+
async (c) => {
|
|
8062
|
+
const { phonecode: r } = c || {};
|
|
8063
|
+
return await e.get("/verifyPhoneBarcode", {
|
|
8064
|
+
params: {
|
|
8065
|
+
phonecode: r
|
|
8066
|
+
}
|
|
8067
|
+
});
|
|
8068
|
+
},
|
|
8069
|
+
[e]
|
|
8070
|
+
), b = I(
|
|
8071
|
+
async (c) => {
|
|
8072
|
+
const { lovecode: r } = c || {};
|
|
8073
|
+
return await e.get("/verifyLoveCode", {
|
|
8074
|
+
params: {
|
|
8075
|
+
lovecode: r
|
|
8076
|
+
}
|
|
8077
|
+
});
|
|
8078
|
+
},
|
|
8045
8079
|
[e]
|
|
8046
8080
|
);
|
|
8047
8081
|
return {
|
|
8048
8082
|
commonCarouselApi: l,
|
|
8049
8083
|
commonMarqueeApi: i,
|
|
8050
8084
|
commonInboxApi: n,
|
|
8051
|
-
commonReadInboxApi: p
|
|
8085
|
+
commonReadInboxApi: p,
|
|
8086
|
+
verifyPhoneBarApi: g,
|
|
8087
|
+
verifyDonationCodeApi: b
|
|
8052
8088
|
};
|
|
8053
|
-
},
|
|
8054
|
-
const { lng: e, data2URL: l } =
|
|
8055
|
-
return
|
|
8089
|
+
}, Hm = () => {
|
|
8090
|
+
const { lng: e, data2URL: l } = oe(), { commonCarouselApi: i } = Ki(), n = $e(e);
|
|
8091
|
+
return j({
|
|
8056
8092
|
queryKey: ["getCarouselList"],
|
|
8057
8093
|
queryFn: async () => {
|
|
8058
8094
|
const p = window.carousels_list;
|
|
8059
8095
|
return p || await i();
|
|
8060
8096
|
},
|
|
8061
8097
|
select: (p) => p.map((b) => {
|
|
8062
|
-
const { carousels_lang:
|
|
8098
|
+
const { carousels_lang: c } = b, r = c?.find((a) => a.lang === n) || c[0];
|
|
8063
8099
|
return {
|
|
8064
8100
|
...b,
|
|
8065
8101
|
carouselCurrentLanguageData: r,
|
|
8066
8102
|
carouselCurrentLanguagePCImageUrl: `${l}/carousels/${r.image_pc}`,
|
|
8067
8103
|
carouselCurrentLanguageMBImageUrl: `${l}/carousels/${r.image_mobile}`,
|
|
8068
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8069
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8104
|
+
carouselCurrentLanguageS3PCImageUrl: `${Xe}/carousels/${r.image_pc}`,
|
|
8105
|
+
carouselCurrentLanguageS3MBImageUrl: `${Xe}/carousels/${r.image_mobile}`,
|
|
8070
8106
|
carouselCurrentLanguageLink: r.url_link
|
|
8071
8107
|
};
|
|
8072
8108
|
})
|
|
8073
8109
|
});
|
|
8074
|
-
},
|
|
8075
|
-
const { lng: e } =
|
|
8076
|
-
return
|
|
8110
|
+
}, Wm = () => {
|
|
8111
|
+
const { lng: e } = oe(), { commonMarqueeApi: l } = Ki(), i = $e(e);
|
|
8112
|
+
return j({
|
|
8077
8113
|
queryKey: ["getMarqueeList"],
|
|
8078
8114
|
queryFn: async () => {
|
|
8079
8115
|
const n = window.marquees;
|
|
@@ -8081,21 +8117,21 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
8081
8117
|
},
|
|
8082
8118
|
select: (n) => {
|
|
8083
8119
|
const p = la(n) ? n : n.Marquees;
|
|
8084
|
-
return
|
|
8120
|
+
return Oe(p, (b) => b[i] || b["en-US"]);
|
|
8085
8121
|
}
|
|
8086
8122
|
});
|
|
8087
|
-
},
|
|
8088
|
-
const { rankingGameApi: l } =
|
|
8089
|
-
return
|
|
8123
|
+
}, zm = ({ options: e } = {}) => {
|
|
8124
|
+
const { rankingGameApi: l } = ue();
|
|
8125
|
+
return j({
|
|
8090
8126
|
queryKey: ["rankingGame"],
|
|
8091
8127
|
queryFn: async () => l(),
|
|
8092
8128
|
enabled: window.profit_ranking_status === 1,
|
|
8093
8129
|
select: (i) => {
|
|
8094
8130
|
const { data: n } = i;
|
|
8095
|
-
return
|
|
8131
|
+
return Oe(n, (g) => {
|
|
8096
8132
|
const {
|
|
8097
8133
|
game_uid: b,
|
|
8098
|
-
game_code:
|
|
8134
|
+
game_code: c,
|
|
8099
8135
|
game_name_en: r,
|
|
8100
8136
|
game_platform_uid: a,
|
|
8101
8137
|
memId: t,
|
|
@@ -8106,7 +8142,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
8106
8142
|
return {
|
|
8107
8143
|
gameUid: b,
|
|
8108
8144
|
//遊戲UID
|
|
8109
|
-
gameCode:
|
|
8145
|
+
gameCode: c,
|
|
8110
8146
|
//遊戲代碼
|
|
8111
8147
|
gameNameEn: r,
|
|
8112
8148
|
//遊戲名稱(英文)
|
|
@@ -8142,12 +8178,12 @@ var Ko = Object.create, nl = Object.defineProperty, qo = Object.getOwnPropertyDe
|
|
|
8142
8178
|
return function(m, d) {
|
|
8143
8179
|
return u.set(m, d), d;
|
|
8144
8180
|
};
|
|
8145
|
-
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912,
|
|
8181
|
+
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, c = b * 2, r = function(u, m) {
|
|
8146
8182
|
return function(d) {
|
|
8147
|
-
var
|
|
8183
|
+
var f = m.get(d), y = f === void 0 ? d.size : f < c ? f + 1 : 0;
|
|
8148
8184
|
if (!d.has(y)) return u(d, y);
|
|
8149
8185
|
if (d.size < b) {
|
|
8150
|
-
for (; d.has(y); ) y = Math.floor(Math.random() *
|
|
8186
|
+
for (; d.has(y); ) y = Math.floor(Math.random() * c);
|
|
8151
8187
|
return u(d, y);
|
|
8152
8188
|
}
|
|
8153
8189
|
if (d.size > g) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
@@ -8159,9 +8195,9 @@ var Ko = Object.create, nl = Object.defineProperty, qo = Object.getOwnPropertyDe
|
|
|
8159
8195
|
});
|
|
8160
8196
|
});
|
|
8161
8197
|
es(as());
|
|
8162
|
-
var pa = (typeof window > "u" ? "undefined" : typeof window) == "object",
|
|
8198
|
+
var pa = (typeof window > "u" ? "undefined" : typeof window) == "object", Ye = { setTimeout: pa ? setTimeout.bind(window) : setTimeout, clearTimeout: pa ? clearTimeout.bind(window) : clearTimeout, setInterval: pa ? setInterval.bind(window) : setInterval, clearInterval: pa ? clearInterval.bind(window) : clearInterval };
|
|
8163
8199
|
function is(e) {
|
|
8164
|
-
|
|
8200
|
+
Ye.setTimeout = e.setTimeout, Ye.clearTimeout = e.clearTimeout, Ye.setInterval = e.setInterval, Ye.clearInterval = e.clearInterval;
|
|
8165
8201
|
}
|
|
8166
8202
|
var wa = {}, ts = class {
|
|
8167
8203
|
name;
|
|
@@ -8178,7 +8214,7 @@ var wa = {}, ts = class {
|
|
|
8178
8214
|
postMessage(e) {
|
|
8179
8215
|
if (this.closed) throw new Error("InvalidStateError");
|
|
8180
8216
|
let l = JSON.stringify(e), i = `${this.name}:${String(Date.now())}${String(Math.random())}`;
|
|
8181
|
-
window.localStorage.setItem(i, l),
|
|
8217
|
+
window.localStorage.setItem(i, l), Ye.setTimeout(() => {
|
|
8182
8218
|
window.localStorage.removeItem(i);
|
|
8183
8219
|
}, 500), wa[this.name].forEach((n) => {
|
|
8184
8220
|
n !== this && n.mc.port2.postMessage(JSON.parse(l));
|
|
@@ -8213,7 +8249,7 @@ var wa = {}, ts = class {
|
|
|
8213
8249
|
}
|
|
8214
8250
|
}, ns = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : ts;
|
|
8215
8251
|
function ls(e = 0) {
|
|
8216
|
-
return new Promise((l) =>
|
|
8252
|
+
return new Promise((l) => Ye.setTimeout(l, e));
|
|
8217
8253
|
}
|
|
8218
8254
|
function ll() {
|
|
8219
8255
|
return Math.random().toString(36).substring(2);
|
|
@@ -8255,13 +8291,13 @@ var rs = class {
|
|
|
8255
8291
|
if (e) return;
|
|
8256
8292
|
e = !0;
|
|
8257
8293
|
try {
|
|
8258
|
-
|
|
8294
|
+
Ye.clearInterval(l);
|
|
8259
8295
|
} catch {
|
|
8260
8296
|
}
|
|
8261
8297
|
let g = this.intervals.indexOf(l);
|
|
8262
8298
|
g >= 0 && this.intervals.splice(g, 1), this.channel.removeEventListener("message", p), i();
|
|
8263
8299
|
};
|
|
8264
|
-
l =
|
|
8300
|
+
l = Ye.setInterval(() => {
|
|
8265
8301
|
this.apply().then(() => {
|
|
8266
8302
|
this.isLeader && n();
|
|
8267
8303
|
});
|
|
@@ -8293,7 +8329,7 @@ var rs = class {
|
|
|
8293
8329
|
if (!this.isDead) {
|
|
8294
8330
|
this.isDead = !0, this.isLeader = !1, this.sendAction(2);
|
|
8295
8331
|
try {
|
|
8296
|
-
this.listeners.forEach((e) => this.channel.removeEventListener("message", e)), this.intervals.forEach((e) =>
|
|
8332
|
+
this.listeners.forEach((e) => this.channel.removeEventListener("message", e)), this.intervals.forEach((e) => Ye.clearInterval(e));
|
|
8297
8333
|
} catch {
|
|
8298
8334
|
}
|
|
8299
8335
|
}
|
|
@@ -8420,15 +8456,15 @@ function it(e, l) {
|
|
|
8420
8456
|
};
|
|
8421
8457
|
}
|
|
8422
8458
|
var Te = () => Date.now(), Fa = 2147483647;
|
|
8423
|
-
function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle: i = 0, element: n = ss, events: p = ms, timers: g = void 0, immediateEvents: b = [], onPresenceChange:
|
|
8459
|
+
function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle: i = 0, element: n = ss, events: p = ms, timers: g = void 0, immediateEvents: b = [], onPresenceChange: c = () => {
|
|
8424
8460
|
}, onPrompt: r = () => {
|
|
8425
8461
|
}, onIdle: a = () => {
|
|
8426
8462
|
}, onActive: t = () => {
|
|
8427
8463
|
}, onAction: o = () => {
|
|
8428
8464
|
}, onMessage: s = () => {
|
|
8429
|
-
}, debounce: u = 0, throttle: m = 0, eventsThrottle: d = 200, startOnMount:
|
|
8465
|
+
}, debounce: u = 0, throttle: m = 0, eventsThrottle: d = 200, startOnMount: f = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: D = !1 } = {}) {
|
|
8430
8466
|
let G = ee(Te()), H = ee(Te()), k = ee(null), T = ee(null), F = ee(0), O = ee(0), P = ee(0), S = ee(0), E = ee(!1), M = ee(!1), w = ee(!1), B = ee(!0), W = ee(!1), L = ee(null), N = ee(null), A = ee(e), R = ee(0);
|
|
8431
|
-
|
|
8467
|
+
ge(() => {
|
|
8432
8468
|
if (l && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), i && l) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
8433
8469
|
if (e >= Fa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Fa}.`);
|
|
8434
8470
|
if (l >= Fa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Fa}.`);
|
|
@@ -8436,61 +8472,61 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8436
8472
|
if (i >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8437
8473
|
if (i ? (A.current = e - i, R.current = i) : (A.current = e, R.current = l), !B.current) {
|
|
8438
8474
|
if (y || D) return;
|
|
8439
|
-
E.current && (
|
|
8475
|
+
E.current && (se.current(null, Se), N.current && N.current.active()), Qe();
|
|
8440
8476
|
}
|
|
8441
8477
|
}, [e, l, i, y, D]);
|
|
8442
8478
|
let K = ee(_);
|
|
8443
|
-
|
|
8479
|
+
ge(() => {
|
|
8444
8480
|
K.current = _;
|
|
8445
8481
|
}, [_]);
|
|
8446
8482
|
let q = ee(b), Q = ee(n), J = ee([...(/* @__PURE__ */ new Set([...p, ...b])).values()]), ae = ee(D);
|
|
8447
|
-
|
|
8448
|
-
ae.current = D, !B.current && (D ? Ve() : y ||
|
|
8483
|
+
ge(() => {
|
|
8484
|
+
ae.current = D, !B.current && (D ? Ve() : y || Qe());
|
|
8449
8485
|
}, [D]);
|
|
8450
|
-
let te = ee(
|
|
8451
|
-
|
|
8452
|
-
te.current =
|
|
8453
|
-
}, [
|
|
8486
|
+
let te = ee(c);
|
|
8487
|
+
ge(() => {
|
|
8488
|
+
te.current = c;
|
|
8489
|
+
}, [c]);
|
|
8454
8490
|
let _e = ee(r);
|
|
8455
|
-
|
|
8491
|
+
ge(() => {
|
|
8456
8492
|
_e.current = r;
|
|
8457
8493
|
}, [r]);
|
|
8458
8494
|
let ye = ee(a);
|
|
8459
|
-
|
|
8495
|
+
ge(() => {
|
|
8460
8496
|
ye.current = a;
|
|
8461
8497
|
}, [a]);
|
|
8462
|
-
let
|
|
8463
|
-
|
|
8464
|
-
|
|
8498
|
+
let se = ee(t);
|
|
8499
|
+
ge(() => {
|
|
8500
|
+
se.current = t;
|
|
8465
8501
|
}, [t]);
|
|
8466
8502
|
let ce = ee(o);
|
|
8467
|
-
|
|
8503
|
+
ge(() => {
|
|
8468
8504
|
ce.current = o;
|
|
8469
8505
|
}, [o]);
|
|
8470
8506
|
let ke = ee(s);
|
|
8471
|
-
|
|
8507
|
+
ge(() => {
|
|
8472
8508
|
ke.current = s;
|
|
8473
8509
|
}, [s]);
|
|
8474
8510
|
let Ue = Oa(() => {
|
|
8475
8511
|
let V = (De, ta) => ce.current(De, ta);
|
|
8476
8512
|
return u > 0 ? us(V, u) : m > 0 ? it(V, m) : V;
|
|
8477
8513
|
}, [m, u]), Ie = ee();
|
|
8478
|
-
|
|
8514
|
+
ge(() => {
|
|
8479
8515
|
U && v && (Ie.current = it(() => {
|
|
8480
8516
|
N.current.active();
|
|
8481
8517
|
}, v));
|
|
8482
8518
|
}, [U, v]);
|
|
8483
8519
|
let Ce = () => {
|
|
8484
|
-
L.current !== null && (
|
|
8520
|
+
L.current !== null && (Ye.clearTimeout(L.current), L.current = null);
|
|
8485
8521
|
}, Ge = (V, De = !0) => {
|
|
8486
|
-
Ce(), L.current =
|
|
8522
|
+
Ce(), L.current = Ye.setTimeout(He, V || A.current), De && (T.current = Te());
|
|
8487
8523
|
}, ea = (V) => {
|
|
8488
8524
|
!M.current && !E.current && (_e.current(V, Se), te.current({ type: "active", prompted: !0 }, Se)), S.current = 0, P.current = Te(), M.current = !0, Ge(R.current, !1);
|
|
8489
8525
|
}, Me = () => {
|
|
8490
8526
|
Ce(), E.current || (ye.current(null, Se), te.current({ type: "idle" }, Se)), E.current = !0, k.current = Te(), K.current ? Re() : M.current && (P.current = 0, M.current = !1);
|
|
8491
8527
|
}, ve = (V) => {
|
|
8492
|
-
Ce(), (E.current || M.current) && (
|
|
8493
|
-
},
|
|
8528
|
+
Ce(), (E.current || M.current) && (se.current(V, Se), te.current({ type: "active", prompted: !1 }, Se)), M.current = !1, P.current = 0, E.current = !1, F.current += Te() - k.current, O.current += Te() - k.current, xe(), Ge();
|
|
8529
|
+
}, He = (V) => {
|
|
8494
8530
|
if (!E.current) {
|
|
8495
8531
|
Ue.cancel && Ue.cancel();
|
|
8496
8532
|
let De = Te() - T.current;
|
|
@@ -8503,19 +8539,19 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8503
8539
|
}
|
|
8504
8540
|
N.current ? N.current.active() : ve(V);
|
|
8505
8541
|
}, aa = (V) => {
|
|
8506
|
-
if (!
|
|
8542
|
+
if (!f && !T.current && (T.current = Te(), se.current(null, Se)), Ue(V, Se), M.current) return;
|
|
8507
8543
|
if (Ce(), !E.current && q.current.includes(V.type)) {
|
|
8508
|
-
|
|
8544
|
+
He(V);
|
|
8509
8545
|
return;
|
|
8510
8546
|
}
|
|
8511
8547
|
let De = Te() - T.current;
|
|
8512
8548
|
if (E.current && !_ || !E.current && De >= A.current) {
|
|
8513
|
-
|
|
8549
|
+
He(V);
|
|
8514
8550
|
return;
|
|
8515
8551
|
}
|
|
8516
8552
|
w.current = !1, S.current = 0, P.current = 0, Ge(), U && v && Ie.current();
|
|
8517
8553
|
}, ia = ee(aa);
|
|
8518
|
-
|
|
8554
|
+
ge(() => {
|
|
8519
8555
|
let V = W.current;
|
|
8520
8556
|
V && Re(), d > 0 ? ia.current = it(aa, d) : ia.current = aa, V && xe();
|
|
8521
8557
|
}, [d, m, u, ce, U, v]);
|
|
@@ -8527,7 +8563,7 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8527
8563
|
pa && Q.current && (W.current || V) && (J.current.forEach((De) => {
|
|
8528
8564
|
Q.current.removeEventListener(De, ia.current, { capture: !0 });
|
|
8529
8565
|
}), W.current = !1);
|
|
8530
|
-
},
|
|
8566
|
+
}, Qe = I((V) => ae.current ? !1 : (Ce(), xe(), E.current = !1, M.current = !1, w.current = !1, S.current = 0, P.current = 0, N.current && !V && N.current.start(), Ge(), !0), [L, E, ae, A, N]), oa = I((V) => ae.current ? !1 : (Ce(), xe(), H.current = Te(), F.current += Te() - k.current, O.current += Te() - k.current, F.current = 0, E.current = !1, M.current = !1, w.current = !1, S.current = 0, P.current = 0, N.current && !V && N.current.reset(), y || Ge(), !0), [L, E, A, y, ae, N]), ga = I((V) => ae.current ? !1 : (Ce(), xe(), (E.current || M.current) && ve(), E.current = !1, M.current = !1, w.current = !1, S.current = 0, P.current = 0, H.current = Te(), N.current && !V && N.current.activate(), Ge(), !0), [L, E, M, ae, A, N]), Ve = I((V = !1) => ae.current || w.current ? !1 : (S.current = Ua(), w.current = !0, Re(), Ce(), N.current && !V && N.current.pause(), !0), [L, ae, N]), je = I((V = !1) => ae.current || !w.current ? !1 : (w.current = !1, M.current || xe(), E.current || Ge(S.current), P.current && (P.current = Te()), N.current && !V && N.current.resume(), !0), [L, A, ae, S, N]), Wa = I((V, De) => (N.current ? (De && ke.current(V, Se), N.current.message(V)) : De && ke.current(V, Se), !0), [s]), Ea = I(() => E.current, [E]), Na = I(() => M.current, [M]), za = I(() => N.current ? N.current.isLeader : null, [N]), Ia = I(() => N.current ? N.current.isLastActive : null, [N]), da = I(() => N.current ? N.current.token : null, [N]), Ua = I(() => {
|
|
8531
8567
|
if (w.current) return S.current;
|
|
8532
8568
|
let V = S.current ? S.current : R.current + A.current, De = T.current ? Te() - T.current : 0, ta = Math.floor(V - De);
|
|
8533
8569
|
return ta < 0 ? 0 : Math.abs(ta);
|
|
@@ -8538,7 +8574,7 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8538
8574
|
let V = Math.round(ca() - ba());
|
|
8539
8575
|
return V >= 0 ? V : 0;
|
|
8540
8576
|
}, [k, F]);
|
|
8541
|
-
|
|
8577
|
+
ge(() => {
|
|
8542
8578
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8543
8579
|
g && is(g);
|
|
8544
8580
|
let V = () => {
|
|
@@ -8547,7 +8583,7 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8547
8583
|
return pa && window.addEventListener("beforeunload", V), () => {
|
|
8548
8584
|
pa && window.removeEventListener("beforeunload", V), N.current && N.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
8549
8585
|
};
|
|
8550
|
-
}, []),
|
|
8586
|
+
}, []), ge(() => {
|
|
8551
8587
|
N.current && N.current.close(), U ? N.current = new os({ channelName: C, leaderElection: x, onPrompt: () => {
|
|
8552
8588
|
ea();
|
|
8553
8589
|
}, onIdle: () => {
|
|
@@ -8556,26 +8592,26 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8556
8592
|
ve();
|
|
8557
8593
|
}, onMessage: (V) => {
|
|
8558
8594
|
ke.current(V, Se);
|
|
8559
|
-
}, start:
|
|
8560
|
-
}, [U, C, x, _e, ye,
|
|
8561
|
-
B.current || (Ce(), Re(!0)), !(y || D) && (
|
|
8562
|
-
}, [y,
|
|
8595
|
+
}, start: Qe, reset: oa, activate: ga, pause: Ve, resume: je }) : N.current = null;
|
|
8596
|
+
}, [U, C, x, _e, ye, se, ke, Qe, oa, Ve, je]), ge(() => {
|
|
8597
|
+
B.current || (Ce(), Re(!0)), !(y || D) && (f ? Qe() : xe());
|
|
8598
|
+
}, [y, f, D, B]), ge(() => {
|
|
8563
8599
|
if (!B.current) {
|
|
8564
8600
|
let V = [...(/* @__PURE__ */ new Set([...p, ...b])).values()];
|
|
8565
8601
|
if (Re(), J.current = V, Q.current = n, q.current = b, y || D) return;
|
|
8566
|
-
|
|
8602
|
+
f ? Qe() : xe();
|
|
8567
8603
|
}
|
|
8568
|
-
}, [n, JSON.stringify(p), JSON.stringify(b), B, D, y,
|
|
8604
|
+
}, [n, JSON.stringify(p), JSON.stringify(b), B, D, y, f]), ge(() => {
|
|
8569
8605
|
B.current && (B.current = !1);
|
|
8570
8606
|
}, [B]);
|
|
8571
|
-
let Se = { message: Wa, start:
|
|
8572
|
-
|
|
8607
|
+
let Se = { message: Wa, start: Qe, reset: oa, activate: ga, pause: Ve, resume: je, isIdle: Ea, isPrompted: Na, isLeader: za, isLastActiveTab: Ia, getTabId: da, getRemainingTime: Ua, getElapsedTime: Je, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: ba, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
|
|
8608
|
+
c = V, te.current = V;
|
|
8573
8609
|
}, setOnPrompt: (V) => {
|
|
8574
8610
|
r = V, _e.current = V;
|
|
8575
8611
|
}, setOnIdle: (V) => {
|
|
8576
8612
|
a = V, ye.current = V;
|
|
8577
8613
|
}, setOnActive: (V) => {
|
|
8578
|
-
t = V,
|
|
8614
|
+
t = V, se.current = V;
|
|
8579
8615
|
}, setOnAction: (V) => {
|
|
8580
8616
|
o = V, ce.current = V;
|
|
8581
8617
|
}, setOnMessage: (V) => {
|
|
@@ -8585,24 +8621,24 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: l = 0, promptBeforeIdle
|
|
|
8585
8621
|
}
|
|
8586
8622
|
var gs = zi(null);
|
|
8587
8623
|
gs.Consumer;
|
|
8588
|
-
const
|
|
8624
|
+
const Im = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
8589
8625
|
onIdle: e,
|
|
8590
8626
|
onActive: l,
|
|
8591
8627
|
onAction: i,
|
|
8592
8628
|
timeout: n,
|
|
8593
8629
|
throttle: 500
|
|
8594
8630
|
}), ds = ({ options: e } = {}) => {
|
|
8595
|
-
const { commonInboxApi: l } = Ki(), { getToken: i, lng: n } =
|
|
8596
|
-
return
|
|
8631
|
+
const { commonInboxApi: l } = Ki(), { getToken: i, lng: n } = oe(), p = i?.(), g = $e(n);
|
|
8632
|
+
return j({
|
|
8597
8633
|
queryKey: ["inboxList"],
|
|
8598
8634
|
queryFn: async () => await l(),
|
|
8599
8635
|
select: (b) => {
|
|
8600
|
-
const { data:
|
|
8601
|
-
return
|
|
8636
|
+
const { data: c } = b;
|
|
8637
|
+
return Oe(c, (a) => {
|
|
8602
8638
|
const { internal_notifications_language: t } = a;
|
|
8603
8639
|
return {
|
|
8604
8640
|
...a,
|
|
8605
|
-
notificationLng:
|
|
8641
|
+
notificationLng: qe(
|
|
8606
8642
|
t,
|
|
8607
8643
|
(o) => o.language === g
|
|
8608
8644
|
) || t[0]
|
|
@@ -8614,12 +8650,12 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8614
8650
|
});
|
|
8615
8651
|
}, cs = ({ options: e } = {}) => {
|
|
8616
8652
|
const { commonReadInboxApi: l } = Ki();
|
|
8617
|
-
return
|
|
8653
|
+
return re({
|
|
8618
8654
|
mutationKey: ["readInbox"],
|
|
8619
8655
|
mutationFn: async (i) => await l(i),
|
|
8620
8656
|
...e
|
|
8621
8657
|
});
|
|
8622
|
-
},
|
|
8658
|
+
}, Vm = ({
|
|
8623
8659
|
options: e = {
|
|
8624
8660
|
inboxList: {},
|
|
8625
8661
|
readInbox: {}
|
|
@@ -8631,7 +8667,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8631
8667
|
readInboxMutation: i
|
|
8632
8668
|
};
|
|
8633
8669
|
}, rl = () => {
|
|
8634
|
-
const { client: e } =
|
|
8670
|
+
const { client: e } = oe();
|
|
8635
8671
|
return {
|
|
8636
8672
|
newsListApi: I(
|
|
8637
8673
|
async ({ uid: i, params: n } = {}) => await e.get(`/news${i ? `/${i}` : ""}`, {
|
|
@@ -8686,17 +8722,17 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8686
8722
|
value: "other",
|
|
8687
8723
|
...e.other
|
|
8688
8724
|
}
|
|
8689
|
-
],
|
|
8690
|
-
const { lng: i } =
|
|
8691
|
-
return
|
|
8725
|
+
], Zm = ({ options: e, formData: l } = {}) => {
|
|
8726
|
+
const { lng: i } = oe(), { newsListApi: n } = rl(), p = $e(i);
|
|
8727
|
+
return j({
|
|
8692
8728
|
queryKey: ["newsList"],
|
|
8693
8729
|
queryFn: () => {
|
|
8694
8730
|
const { uid: g, params: b } = l || {};
|
|
8695
8731
|
return n({ uid: g, params: b });
|
|
8696
8732
|
},
|
|
8697
8733
|
select: (g) => {
|
|
8698
|
-
const { data: b } = g,
|
|
8699
|
-
const t =
|
|
8734
|
+
const { data: b } = g, c = b.data?.filter((a) => a.is_active === 1), r = Oe(c, (a) => {
|
|
8735
|
+
const t = qe(a.news_language, {
|
|
8700
8736
|
language: p
|
|
8701
8737
|
}) || a.news_language[0];
|
|
8702
8738
|
return {
|
|
@@ -8712,16 +8748,16 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8712
8748
|
},
|
|
8713
8749
|
...e
|
|
8714
8750
|
});
|
|
8715
|
-
},
|
|
8716
|
-
const { lng: i } =
|
|
8717
|
-
return
|
|
8751
|
+
}, Jm = ({ options: e, formData: l } = {}) => {
|
|
8752
|
+
const { lng: i } = oe(), { newsListApi: n } = rl(), p = $e(i);
|
|
8753
|
+
return j({
|
|
8718
8754
|
queryKey: ["newsList"],
|
|
8719
8755
|
queryFn: () => {
|
|
8720
8756
|
const { uid: g, params: b } = l || {};
|
|
8721
8757
|
return n({ uid: g, params: b });
|
|
8722
8758
|
},
|
|
8723
8759
|
select: (g) => {
|
|
8724
|
-
const b =
|
|
8760
|
+
const b = qe(g.data.news_language, {
|
|
8725
8761
|
language: p
|
|
8726
8762
|
}) || g.data.news_language[0];
|
|
8727
8763
|
return {
|
|
@@ -8731,20 +8767,20 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8731
8767
|
},
|
|
8732
8768
|
...e
|
|
8733
8769
|
});
|
|
8734
|
-
},
|
|
8735
|
-
const { client: e } =
|
|
8770
|
+
}, Be = () => {
|
|
8771
|
+
const { client: e } = oe(), l = I(async () => await e.get("/payment/list"), [e]), i = I(
|
|
8736
8772
|
async ({ paramsData: u }) => await e.get("/thirdPartyPayment/list", {
|
|
8737
8773
|
params: { ...u }
|
|
8738
8774
|
}),
|
|
8739
8775
|
[e]
|
|
8740
8776
|
), n = I(
|
|
8741
8777
|
async (u) => {
|
|
8742
|
-
const { deposit_amount: m, method_id: d, currency_code:
|
|
8778
|
+
const { deposit_amount: m, method_id: d, currency_code: f, provider_uid: y } = u;
|
|
8743
8779
|
return await e.post("/thirdPartyPayment/deposit", {
|
|
8744
8780
|
deposit: {
|
|
8745
8781
|
deposit_amount: m,
|
|
8746
8782
|
method_id: d,
|
|
8747
|
-
currency_code:
|
|
8783
|
+
currency_code: f,
|
|
8748
8784
|
provider_uid: y
|
|
8749
8785
|
}
|
|
8750
8786
|
});
|
|
@@ -8752,11 +8788,11 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8752
8788
|
[e]
|
|
8753
8789
|
), p = I(
|
|
8754
8790
|
async (u) => {
|
|
8755
|
-
const { bank_uid: m, amount: d, bank_number_last5:
|
|
8791
|
+
const { bank_uid: m, amount: d, bank_number_last5: f, postscript: y } = u;
|
|
8756
8792
|
return await e.post("/vip/deposit", {
|
|
8757
8793
|
bank_uid: m,
|
|
8758
8794
|
amount: d,
|
|
8759
|
-
bank_number_last5:
|
|
8795
|
+
bank_number_last5: f,
|
|
8760
8796
|
postscript: y
|
|
8761
8797
|
});
|
|
8762
8798
|
},
|
|
@@ -8766,14 +8802,14 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8766
8802
|
const {
|
|
8767
8803
|
withdrawal_amount: m,
|
|
8768
8804
|
bank_account_number: d,
|
|
8769
|
-
currency_code:
|
|
8805
|
+
currency_code: f,
|
|
8770
8806
|
withdrawal_code: y
|
|
8771
8807
|
} = u;
|
|
8772
8808
|
return await e.post("/thirdPartyPayment/withdraw", {
|
|
8773
8809
|
withdraw: {
|
|
8774
8810
|
withdrawal_amount: m,
|
|
8775
8811
|
bank_account_number: d,
|
|
8776
|
-
currency_code:
|
|
8812
|
+
currency_code: f,
|
|
8777
8813
|
withdrawal_code: al.MD5(y).toString(),
|
|
8778
8814
|
payment_type: "ThirdParty"
|
|
8779
8815
|
}
|
|
@@ -8782,25 +8818,25 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8782
8818
|
[e]
|
|
8783
8819
|
), b = I(
|
|
8784
8820
|
async ({ paramsData: u } = {}) => {
|
|
8785
|
-
const { str_date: m, end_date: d, limit:
|
|
8821
|
+
const { str_date: m, end_date: d, limit: f = 25, current_page: y } = u || {}, _ = we().format("HH:mm:ss"), U = we().subtract(24, "hour").format("HH:mm:ss");
|
|
8786
8822
|
return await e.get("/report/deposit", {
|
|
8787
8823
|
params: {
|
|
8788
8824
|
str_date: `${we(m).format("YYYY-MM-DD")} ${_}`,
|
|
8789
8825
|
end_date: `${we(d).format("YYYY-MM-DD")} ${U}`,
|
|
8790
|
-
limit:
|
|
8826
|
+
limit: f,
|
|
8791
8827
|
page: y
|
|
8792
8828
|
}
|
|
8793
8829
|
});
|
|
8794
8830
|
},
|
|
8795
8831
|
[e]
|
|
8796
|
-
),
|
|
8832
|
+
), c = I(
|
|
8797
8833
|
async ({ paramsData: u }) => {
|
|
8798
|
-
const { str_date: m, end_date: d, limit:
|
|
8834
|
+
const { str_date: m, end_date: d, limit: f = 25, current_page: y } = u || {}, _ = we().format("HH:mm:ss"), U = we().subtract(24, "hour").format("HH:mm:ss");
|
|
8799
8835
|
return await e.get("report/eventsreward", {
|
|
8800
8836
|
params: {
|
|
8801
8837
|
str_date: `${we(m).format("YYYY-MM-DD")} ${_}`,
|
|
8802
8838
|
end_date: `${we(d).format("YYYY-MM-DD")} ${U}`,
|
|
8803
|
-
limit:
|
|
8839
|
+
limit: f,
|
|
8804
8840
|
page: y
|
|
8805
8841
|
}
|
|
8806
8842
|
});
|
|
@@ -8808,12 +8844,12 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8808
8844
|
[e]
|
|
8809
8845
|
), r = I(
|
|
8810
8846
|
async ({ paramsData: u } = {}) => {
|
|
8811
|
-
const { str_date: m, end_date: d, limit:
|
|
8847
|
+
const { str_date: m, end_date: d, limit: f = 25, current_page: y } = u || {};
|
|
8812
8848
|
return await e.get("/report/withdraw", {
|
|
8813
8849
|
params: {
|
|
8814
8850
|
str_date: `${we(m).format("YYYY-MM-DD")} 12:00:00`,
|
|
8815
8851
|
end_date: `${we(d).format("YYYY-MM-DD")} 11:59:59`,
|
|
8816
|
-
limit:
|
|
8852
|
+
limit: f,
|
|
8817
8853
|
page: y
|
|
8818
8854
|
}
|
|
8819
8855
|
});
|
|
@@ -8836,8 +8872,8 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8836
8872
|
[e]
|
|
8837
8873
|
), o = I(
|
|
8838
8874
|
async (u) => {
|
|
8839
|
-
const { type: m, code: d, uid:
|
|
8840
|
-
return await e.put(`/member/invoice/${
|
|
8875
|
+
const { type: m, code: d, uid: f } = u;
|
|
8876
|
+
return await e.put(`/member/invoice/${f}`, {
|
|
8841
8877
|
type: m,
|
|
8842
8878
|
code: d
|
|
8843
8879
|
});
|
|
@@ -8847,7 +8883,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8847
8883
|
async (u, m) => {
|
|
8848
8884
|
const {
|
|
8849
8885
|
str_date: d,
|
|
8850
|
-
end_date:
|
|
8886
|
+
end_date: f,
|
|
8851
8887
|
limit: y = 25,
|
|
8852
8888
|
page: _ = 1,
|
|
8853
8889
|
wallet_log_uid: U,
|
|
@@ -8856,7 +8892,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8856
8892
|
return await e.get(`/walletlog/${m}`, {
|
|
8857
8893
|
params: {
|
|
8858
8894
|
s_date: d,
|
|
8859
|
-
e_date:
|
|
8895
|
+
e_date: f,
|
|
8860
8896
|
wallet_log_uid: U,
|
|
8861
8897
|
transhash: C,
|
|
8862
8898
|
limit: y,
|
|
@@ -8873,7 +8909,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8873
8909
|
bankDepositApi: p,
|
|
8874
8910
|
withdrawApi: g,
|
|
8875
8911
|
depositTransactionApi: b,
|
|
8876
|
-
eventTransactionApi:
|
|
8912
|
+
eventTransactionApi: c,
|
|
8877
8913
|
withdrawTransactionApi: r,
|
|
8878
8914
|
redeemCodeDepositApi: a,
|
|
8879
8915
|
invoiceApi: t,
|
|
@@ -8881,129 +8917,129 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
8881
8917
|
transactionRecordApi: s
|
|
8882
8918
|
};
|
|
8883
8919
|
}, _s = ({ options: e } = {}) => {
|
|
8884
|
-
const { depositApiV1: l } =
|
|
8885
|
-
return
|
|
8920
|
+
const { depositApiV1: l } = Be();
|
|
8921
|
+
return j({
|
|
8886
8922
|
queryKey: ["depositV1"],
|
|
8887
8923
|
queryFn: l,
|
|
8888
8924
|
...e
|
|
8889
8925
|
});
|
|
8890
8926
|
}, ys = ({ paramsData: e, options: l } = {}) => {
|
|
8891
|
-
const { depositApiV2: i } =
|
|
8892
|
-
return
|
|
8927
|
+
const { depositApiV2: i } = Be();
|
|
8928
|
+
return j({
|
|
8893
8929
|
queryKey: ["depositV2", e],
|
|
8894
8930
|
queryFn: () => i({ paramsData: e }),
|
|
8895
8931
|
select: (n) => {
|
|
8896
|
-
const { third_party: p, bank: g, vip: b } = n,
|
|
8932
|
+
const { third_party: p, bank: g, vip: b } = n, c = Oe(p, (r) => ({
|
|
8897
8933
|
...r,
|
|
8898
|
-
providerList:
|
|
8934
|
+
providerList: Oe(r.providers, (a) => ({
|
|
8899
8935
|
...a,
|
|
8900
8936
|
providerUid: a.uid,
|
|
8901
|
-
providerImageUrl: `${
|
|
8937
|
+
providerImageUrl: `${Xe}/paymentIcon/${Tt(a.provider_name)}.png`,
|
|
8902
8938
|
providerMax: a.max,
|
|
8903
8939
|
providerMin: a.min
|
|
8904
8940
|
})),
|
|
8905
|
-
methodImageUrl: `${
|
|
8941
|
+
methodImageUrl: `${Xe}/paymentIcon/${Tt(r.method_name)}pay.png`
|
|
8906
8942
|
}));
|
|
8907
8943
|
return {
|
|
8908
8944
|
bank: g,
|
|
8909
8945
|
vip: b,
|
|
8910
|
-
thirdParty:
|
|
8946
|
+
thirdParty: c
|
|
8911
8947
|
};
|
|
8912
8948
|
},
|
|
8913
8949
|
...l
|
|
8914
8950
|
});
|
|
8915
8951
|
}, Us = ({ options: e } = {}) => {
|
|
8916
|
-
const { depositApi: l } =
|
|
8917
|
-
return
|
|
8952
|
+
const { depositApi: l } = Be();
|
|
8953
|
+
return re({
|
|
8918
8954
|
mutationKey: ["depositAction"],
|
|
8919
8955
|
mutationFn: async (i) => l(i),
|
|
8920
8956
|
...e
|
|
8921
8957
|
});
|
|
8922
8958
|
}, bs = ({ options: e } = {}) => {
|
|
8923
|
-
const { withdrawApi: l } =
|
|
8924
|
-
return
|
|
8959
|
+
const { withdrawApi: l } = Be();
|
|
8960
|
+
return re({
|
|
8925
8961
|
mutationKey: ["withdrawAction"],
|
|
8926
8962
|
mutationFn: async (i) => l(i),
|
|
8927
8963
|
...e
|
|
8928
8964
|
});
|
|
8929
8965
|
}, Cs = ({ paramsData: e, options: l } = {}) => {
|
|
8930
|
-
const { depositTransactionApi: i } =
|
|
8931
|
-
return
|
|
8966
|
+
const { depositTransactionApi: i } = Be();
|
|
8967
|
+
return j({
|
|
8932
8968
|
queryKey: ["depositTransaction", e],
|
|
8933
8969
|
queryFn: () => i({ paramsData: e }),
|
|
8934
8970
|
...l
|
|
8935
8971
|
});
|
|
8936
8972
|
}, vs = ({ paramsData: e, options: l } = {}) => {
|
|
8937
|
-
const { eventTransactionApi: i } =
|
|
8938
|
-
return
|
|
8973
|
+
const { eventTransactionApi: i } = Be();
|
|
8974
|
+
return j({
|
|
8939
8975
|
queryKey: ["eventTransaction", e],
|
|
8940
8976
|
queryFn: () => i({ paramsData: e }),
|
|
8941
8977
|
...l
|
|
8942
8978
|
});
|
|
8943
8979
|
}, hs = ({ options: e } = {}) => {
|
|
8944
|
-
const { bankDepositApi: l } =
|
|
8945
|
-
return
|
|
8980
|
+
const { bankDepositApi: l } = Be();
|
|
8981
|
+
return re({
|
|
8946
8982
|
mutationKey: ["bankDeposit"],
|
|
8947
8983
|
mutationFn: async (i) => l(i),
|
|
8948
8984
|
...e
|
|
8949
8985
|
});
|
|
8950
8986
|
}, Ts = ({ paramsData: e, options: l } = {}) => {
|
|
8951
|
-
const { withdrawTransactionApi: i } =
|
|
8952
|
-
return
|
|
8987
|
+
const { withdrawTransactionApi: i } = Be();
|
|
8988
|
+
return j({
|
|
8953
8989
|
queryKey: ["withdrawTransaction", e],
|
|
8954
8990
|
queryFn: () => i({ paramsData: e }),
|
|
8955
8991
|
...l
|
|
8956
8992
|
});
|
|
8957
|
-
},
|
|
8958
|
-
const { redeemCodeDepositApi: l } =
|
|
8959
|
-
return
|
|
8993
|
+
}, Km = ({ options: e } = {}) => {
|
|
8994
|
+
const { redeemCodeDepositApi: l } = Be();
|
|
8995
|
+
return re({
|
|
8960
8996
|
mutationKey: ["redeemCodeDeposit"],
|
|
8961
8997
|
mutationFn: async (i) => l(i),
|
|
8962
8998
|
...e
|
|
8963
8999
|
});
|
|
8964
|
-
},
|
|
8965
|
-
const { invoiceApi: l } =
|
|
8966
|
-
return
|
|
9000
|
+
}, qm = ({ options: e } = {}) => {
|
|
9001
|
+
const { invoiceApi: l } = Be();
|
|
9002
|
+
return re({
|
|
8967
9003
|
mutationKey: ["invoiceAction"],
|
|
8968
9004
|
mutationFn: async (i) => l(i),
|
|
8969
9005
|
...e
|
|
8970
9006
|
});
|
|
8971
|
-
},
|
|
8972
|
-
const { updateInvoiceApi: l } =
|
|
8973
|
-
return
|
|
9007
|
+
}, $m = ({ options: e } = {}) => {
|
|
9008
|
+
const { updateInvoiceApi: l } = Be();
|
|
9009
|
+
return re({
|
|
8974
9010
|
mutationKey: ["updateInvoiceAction"],
|
|
8975
9011
|
mutationFn: async (i) => l(i),
|
|
8976
9012
|
...e
|
|
8977
9013
|
});
|
|
8978
|
-
},
|
|
8979
|
-
const { transactionRecordApi: i } =
|
|
8980
|
-
return
|
|
9014
|
+
}, Qm = ({ options: e, paramsData: l } = {}) => {
|
|
9015
|
+
const { transactionRecordApi: i } = Be();
|
|
9016
|
+
return j({
|
|
8981
9017
|
queryKey: ["transactionRecord", "deposit"],
|
|
8982
9018
|
queryFn: () => i(l, "deposit"),
|
|
8983
9019
|
...e
|
|
8984
9020
|
});
|
|
8985
|
-
},
|
|
8986
|
-
const { transactionRecordApi: i } =
|
|
8987
|
-
return
|
|
9021
|
+
}, jm = ({ options: e, paramsData: l } = {}) => {
|
|
9022
|
+
const { transactionRecordApi: i } = Be();
|
|
9023
|
+
return j({
|
|
8988
9024
|
queryKey: ["transactionRecord", "withdraw"],
|
|
8989
9025
|
queryFn: () => i(l, "withdraw"),
|
|
8990
9026
|
...e
|
|
8991
9027
|
});
|
|
8992
|
-
},
|
|
8993
|
-
const { transactionRecordApi: i } =
|
|
8994
|
-
return
|
|
9028
|
+
}, Ym = ({ options: e, paramsData: l } = {}) => {
|
|
9029
|
+
const { transactionRecordApi: i } = Be();
|
|
9030
|
+
return j({
|
|
8995
9031
|
queryKey: ["transactionRecord", "event"],
|
|
8996
9032
|
queryFn: () => i(l, "event"),
|
|
8997
9033
|
...e
|
|
8998
9034
|
});
|
|
8999
|
-
},
|
|
9000
|
-
const { transactionRecordApi: i } =
|
|
9001
|
-
return
|
|
9035
|
+
}, Xm = ({ options: e, paramsData: l } = {}) => {
|
|
9036
|
+
const { transactionRecordApi: i } = Be();
|
|
9037
|
+
return j({
|
|
9002
9038
|
queryKey: ["transactionRecord", "rebate"],
|
|
9003
9039
|
queryFn: () => i(l, "rebate"),
|
|
9004
9040
|
...e
|
|
9005
9041
|
});
|
|
9006
|
-
},
|
|
9042
|
+
}, eu = ({
|
|
9007
9043
|
depositV1: e = {},
|
|
9008
9044
|
depositV2: l = {},
|
|
9009
9045
|
depositTransaction: i = {},
|
|
@@ -9011,10 +9047,10 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9011
9047
|
withdrawAction: p = {},
|
|
9012
9048
|
bankDeposit: g = {},
|
|
9013
9049
|
eventTransaction: b = {},
|
|
9014
|
-
withdrawTransaction:
|
|
9050
|
+
withdrawTransaction: c = {}
|
|
9015
9051
|
} = {}) => {
|
|
9016
9052
|
const r = _s(e), a = ys(l), t = Cs(i), o = Us(n), s = bs(p), u = hs(g), m = vs(b), d = Ts(
|
|
9017
|
-
|
|
9053
|
+
c
|
|
9018
9054
|
);
|
|
9019
9055
|
return {
|
|
9020
9056
|
depositV1: r,
|
|
@@ -9032,8 +9068,8 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9032
9068
|
})($a), Ss = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Mn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), sl = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (l) => l == "+" ? "-" : "_"), ml = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), ul = (e) => {
|
|
9033
9069
|
let l, i, n, p, g = "";
|
|
9034
9070
|
const b = e.length % 3;
|
|
9035
|
-
for (let
|
|
9036
|
-
if ((i = e.charCodeAt(
|
|
9071
|
+
for (let c = 0; c < e.length; ) {
|
|
9072
|
+
if ((i = e.charCodeAt(c++)) > 255 || (n = e.charCodeAt(c++)) > 255 || (p = e.charCodeAt(c++)) > 255)
|
|
9037
9073
|
throw new TypeError("invalid character found");
|
|
9038
9074
|
l = i << 16 | n << 8 | p, g += $a[l >> 18 & 63] + $a[l >> 12 & 63] + $a[l >> 6 & 63] + $a[l & 63];
|
|
9039
9075
|
}
|
|
@@ -9124,17 +9160,17 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9124
9160
|
extendString: Ul,
|
|
9125
9161
|
extendUint8Array: bl,
|
|
9126
9162
|
extendBuiltins: Rs
|
|
9127
|
-
},
|
|
9163
|
+
}, au = (e, l) => {
|
|
9128
9164
|
const { playGameApi: i } = ft();
|
|
9129
|
-
return
|
|
9165
|
+
return j({
|
|
9130
9166
|
queryKey: ["playGame"],
|
|
9131
9167
|
queryFn: async () => {
|
|
9132
|
-
const { gameUid: n, gameCode: p, isMobile: g, gameCurrency: b, currentCurrency:
|
|
9168
|
+
const { gameUid: n, gameCode: p, isMobile: g, gameCurrency: b, currentCurrency: c } = e || {}, r = await i({
|
|
9133
9169
|
gameUid: n,
|
|
9134
9170
|
gameCode: p,
|
|
9135
9171
|
isMobile: g,
|
|
9136
9172
|
gameCurrency: b,
|
|
9137
|
-
currentCurrency:
|
|
9173
|
+
currentCurrency: c
|
|
9138
9174
|
}), {
|
|
9139
9175
|
game_currency: a,
|
|
9140
9176
|
lang: t,
|
|
@@ -9159,14 +9195,14 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9159
9195
|
...l
|
|
9160
9196
|
});
|
|
9161
9197
|
}, Cl = () => {
|
|
9162
|
-
const { client: e } =
|
|
9198
|
+
const { client: e } = oe(), l = I(async () => await e.get("/rebate"), [e]), i = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
9163
9199
|
return {
|
|
9164
9200
|
currentRebateApi: l,
|
|
9165
9201
|
receiveRebateApi: i
|
|
9166
9202
|
};
|
|
9167
9203
|
}, ws = ({ options: e } = {}) => {
|
|
9168
9204
|
const { currentRebateApi: l } = Cl();
|
|
9169
|
-
return
|
|
9205
|
+
return j({
|
|
9170
9206
|
queryKey: ["currentRebate"],
|
|
9171
9207
|
queryFn: () => l(),
|
|
9172
9208
|
select: (i) => Wl(i, ["code", "status"]),
|
|
@@ -9174,12 +9210,12 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9174
9210
|
});
|
|
9175
9211
|
}, Fs = ({ options: e } = {}) => {
|
|
9176
9212
|
const { receiveRebateApi: l } = Cl();
|
|
9177
|
-
return
|
|
9213
|
+
return re({
|
|
9178
9214
|
mutationKey: ["receiveRebate"],
|
|
9179
9215
|
mutationFn: async () => l(),
|
|
9180
9216
|
...e
|
|
9181
9217
|
});
|
|
9182
|
-
},
|
|
9218
|
+
}, iu = ({
|
|
9183
9219
|
options: e = {
|
|
9184
9220
|
currentRebate: {},
|
|
9185
9221
|
receiveRebate: {}
|
|
@@ -9191,9 +9227,9 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9191
9227
|
receiveRebate: i
|
|
9192
9228
|
};
|
|
9193
9229
|
}, ja = () => {
|
|
9194
|
-
const { client: e } =
|
|
9195
|
-
async ({ uid: b, params:
|
|
9196
|
-
params:
|
|
9230
|
+
const { client: e } = oe(), l = I(
|
|
9231
|
+
async ({ uid: b, params: c } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
|
|
9232
|
+
params: c
|
|
9197
9233
|
}),
|
|
9198
9234
|
[e]
|
|
9199
9235
|
), i = I(async () => await e.get("/memberRewards/member/unused"), [e]), n = I(async () => await e.get("/memberRewards/member/expired"), [e]), p = I(
|
|
@@ -9211,24 +9247,24 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9211
9247
|
};
|
|
9212
9248
|
}, As = ({ options: e } = {}) => {
|
|
9213
9249
|
const { rewardListApi: l } = ja();
|
|
9214
|
-
return
|
|
9250
|
+
return j({
|
|
9215
9251
|
queryKey: ["rewardsList"],
|
|
9216
9252
|
queryFn: (i) => {
|
|
9217
9253
|
const { uid: n, params: p } = i || {};
|
|
9218
9254
|
return l({ uid: n, params: p });
|
|
9219
9255
|
},
|
|
9220
9256
|
select: (i) => {
|
|
9221
|
-
const n =
|
|
9257
|
+
const n = Oe(i.data.data, (p) => {
|
|
9222
9258
|
const {
|
|
9223
9259
|
wagering_restricted_amount: g,
|
|
9224
9260
|
claimed_amount: b
|
|
9225
|
-
} = p,
|
|
9261
|
+
} = p, c = le(p, "rewards", {}), {
|
|
9226
9262
|
expiration_days: r,
|
|
9227
9263
|
name: a,
|
|
9228
9264
|
position: t,
|
|
9229
9265
|
type: o,
|
|
9230
9266
|
uid: s
|
|
9231
|
-
} =
|
|
9267
|
+
} = c;
|
|
9232
9268
|
return {
|
|
9233
9269
|
...p,
|
|
9234
9270
|
rewardExpirationDays: r,
|
|
@@ -9251,33 +9287,33 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9251
9287
|
});
|
|
9252
9288
|
}, Os = ({ options: e } = {}) => {
|
|
9253
9289
|
const { redeemRewardApi: l } = ja();
|
|
9254
|
-
return
|
|
9290
|
+
return re({
|
|
9255
9291
|
mutationKey: ["redeemReward"],
|
|
9256
9292
|
mutationFn: async (i) => await l(i),
|
|
9257
9293
|
...e
|
|
9258
9294
|
});
|
|
9259
9295
|
}, Bs = ({ options: e } = {}) => {
|
|
9260
9296
|
const { unUsedRewardListApi: l } = ja();
|
|
9261
|
-
return
|
|
9297
|
+
return j({
|
|
9262
9298
|
queryKey: ["unUsedRewardsList"],
|
|
9263
9299
|
queryFn: l,
|
|
9264
9300
|
...e
|
|
9265
9301
|
});
|
|
9266
9302
|
}, Hs = ({ options: e } = {}) => {
|
|
9267
9303
|
const { expiredRewardListApi: l } = ja();
|
|
9268
|
-
return
|
|
9304
|
+
return j({
|
|
9269
9305
|
queryKey: ["expiredRewardsList"],
|
|
9270
9306
|
queryFn: l,
|
|
9271
9307
|
...e
|
|
9272
9308
|
});
|
|
9273
9309
|
}, Ws = ({ options: e } = {}) => {
|
|
9274
9310
|
const { historyRewardApi: l } = ja();
|
|
9275
|
-
return
|
|
9311
|
+
return j({
|
|
9276
9312
|
queryKey: ["historyRewardsList"],
|
|
9277
9313
|
queryFn: l,
|
|
9278
9314
|
...e
|
|
9279
9315
|
});
|
|
9280
|
-
},
|
|
9316
|
+
}, tu = ({
|
|
9281
9317
|
options: e = {
|
|
9282
9318
|
rewardsList: {},
|
|
9283
9319
|
redeemReward: {},
|
|
@@ -9303,62 +9339,84 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9303
9339
|
historyRewardsListQuery: g
|
|
9304
9340
|
};
|
|
9305
9341
|
}, vl = () => {
|
|
9306
|
-
const { client: e
|
|
9307
|
-
async (
|
|
9342
|
+
const { client: e } = oe(), l = I(
|
|
9343
|
+
async (n = {}) => {
|
|
9308
9344
|
const {
|
|
9309
|
-
startTime:
|
|
9310
|
-
endTime:
|
|
9311
|
-
isActive:
|
|
9312
|
-
showUnavailable:
|
|
9313
|
-
orderBy:
|
|
9345
|
+
startTime: p = "2025-12-30 00:00:00",
|
|
9346
|
+
endTime: g = "2026-12-31 23:59:59",
|
|
9347
|
+
isActive: b = 1,
|
|
9348
|
+
showUnavailable: c = 1,
|
|
9349
|
+
orderBy: r = "total_prize_money",
|
|
9314
9350
|
//total_prize_money,updated_at,created_at
|
|
9315
|
-
|
|
9351
|
+
page: a = 1
|
|
9352
|
+
} = n;
|
|
9316
9353
|
return await e.get("/treasure", {
|
|
9317
9354
|
params: {
|
|
9318
|
-
start_time:
|
|
9319
|
-
end_time:
|
|
9320
|
-
is_active:
|
|
9321
|
-
show_unavailable:
|
|
9322
|
-
order_by:
|
|
9355
|
+
start_time: p,
|
|
9356
|
+
end_time: g,
|
|
9357
|
+
is_active: b,
|
|
9358
|
+
show_unavailable: c,
|
|
9359
|
+
order_by: r,
|
|
9360
|
+
page: a
|
|
9323
9361
|
}
|
|
9324
9362
|
});
|
|
9325
9363
|
},
|
|
9326
9364
|
[e]
|
|
9327
|
-
),
|
|
9328
|
-
async (
|
|
9329
|
-
const { treasure_uid:
|
|
9330
|
-
return await e.post(`/treasure/redeem/${
|
|
9365
|
+
), i = I(
|
|
9366
|
+
async (n) => {
|
|
9367
|
+
const { treasure_uid: p = "" } = n;
|
|
9368
|
+
return await e.post(`/treasure/redeem/${p}`);
|
|
9331
9369
|
},
|
|
9332
9370
|
[e]
|
|
9333
9371
|
);
|
|
9334
9372
|
return {
|
|
9335
|
-
treasureListApi:
|
|
9336
|
-
redeemTreasureApi:
|
|
9373
|
+
treasureListApi: l,
|
|
9374
|
+
redeemTreasureApi: i
|
|
9337
9375
|
};
|
|
9338
|
-
},
|
|
9339
|
-
const {
|
|
9340
|
-
return
|
|
9376
|
+
}, nu = ({ paramsData: e, options: l } = {}) => {
|
|
9377
|
+
const { client: i, lng: n } = oe(), p = $e(n || "tw"), { treasureListApi: g } = vl();
|
|
9378
|
+
return j({
|
|
9341
9379
|
queryKey: ["treasureList", e],
|
|
9342
|
-
queryFn: () =>
|
|
9343
|
-
select: (
|
|
9380
|
+
queryFn: () => g(e),
|
|
9381
|
+
select: (b) => {
|
|
9382
|
+
const c = le(b, "data", {}), r = {
|
|
9383
|
+
current_page: le(c, "current_page", 1),
|
|
9384
|
+
per_page: le(c, "per_page", 10),
|
|
9385
|
+
total: le(c, "total", 1),
|
|
9386
|
+
last_page: le(c, "last_page", 1)
|
|
9387
|
+
};
|
|
9388
|
+
return {
|
|
9389
|
+
list: Oe(le(c, "data", []), (t) => {
|
|
9390
|
+
const o = qe(t.treasure_copywriting, {
|
|
9391
|
+
language: p
|
|
9392
|
+
});
|
|
9393
|
+
return {
|
|
9394
|
+
...t,
|
|
9395
|
+
currentLngCopyWriting: o
|
|
9396
|
+
};
|
|
9397
|
+
}),
|
|
9398
|
+
pagination: r,
|
|
9399
|
+
res: c
|
|
9400
|
+
};
|
|
9401
|
+
},
|
|
9344
9402
|
...l
|
|
9345
9403
|
});
|
|
9346
|
-
},
|
|
9404
|
+
}, lu = ({ options: e } = {}) => {
|
|
9347
9405
|
const { redeemTreasureApi: l } = vl();
|
|
9348
|
-
return
|
|
9406
|
+
return re({
|
|
9349
9407
|
mutationKey: ["redeemTreasure"],
|
|
9350
9408
|
mutationFn: async (i) => l(i),
|
|
9351
9409
|
...e
|
|
9352
9410
|
});
|
|
9353
9411
|
}, hl = () => {
|
|
9354
|
-
const { client: e } =
|
|
9412
|
+
const { client: e } = oe(), l = I(async () => await e.get("/vip/list"), [e]), i = I(async () => await e.get("/vip/check"), [e]);
|
|
9355
9413
|
return {
|
|
9356
9414
|
vipListApi: l,
|
|
9357
9415
|
vipInfoApi: i
|
|
9358
9416
|
};
|
|
9359
|
-
},
|
|
9360
|
-
const { store: l } =
|
|
9361
|
-
return
|
|
9417
|
+
}, ru = ({ options: e } = {}) => {
|
|
9418
|
+
const { store: l } = oe(), i = l?.getState()?.isMemberInfo || l?.getState()?.member?.member || {}, { vipInfoApi: n } = hl();
|
|
9419
|
+
return j({
|
|
9362
9420
|
queryKey: ["vipInfo"],
|
|
9363
9421
|
queryFn: async () => n(),
|
|
9364
9422
|
select: (p) => {
|
|
@@ -9372,8 +9430,8 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9372
9430
|
...e
|
|
9373
9431
|
});
|
|
9374
9432
|
}, zs = ({ options: e } = {}) => {
|
|
9375
|
-
const { store: l } =
|
|
9376
|
-
return
|
|
9433
|
+
const { store: l } = oe(), i = l?.getState()?.isWalletCurrency || l?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: n } = hl();
|
|
9434
|
+
return j({
|
|
9377
9435
|
queryKey: ["vipList"],
|
|
9378
9436
|
queryFn: async () => {
|
|
9379
9437
|
const p = window.vip_list;
|
|
@@ -9381,34 +9439,34 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9381
9439
|
},
|
|
9382
9440
|
select: (p) => {
|
|
9383
9441
|
const g = la(p) ? p : p.data;
|
|
9384
|
-
return
|
|
9442
|
+
return Oe(g, (c) => {
|
|
9385
9443
|
const {
|
|
9386
9444
|
vip_criteria: r,
|
|
9387
9445
|
vip_payment_tags: a,
|
|
9388
9446
|
vip_withdrawal_rate: t,
|
|
9389
9447
|
rebate_range: o,
|
|
9390
9448
|
vip_game_rebate: s
|
|
9391
|
-
} =
|
|
9449
|
+
} = c, u = qe(r, { currency_code: i }) || {}, m = qe(a, { currency_code: i }) || {}, d = t, f = Oe(o, (U) => ({
|
|
9392
9450
|
...U,
|
|
9393
9451
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9394
|
-
})), y =
|
|
9452
|
+
})), y = le(s, "[0]", {}), _ = {
|
|
9395
9453
|
...y,
|
|
9396
9454
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9397
9455
|
};
|
|
9398
9456
|
return {
|
|
9399
|
-
...
|
|
9400
|
-
vipImageUrl: `${
|
|
9457
|
+
...c,
|
|
9458
|
+
vipImageUrl: `${Xe}/vip/vip${c.level}_l.avif`,
|
|
9401
9459
|
vipRule: u,
|
|
9402
9460
|
vipWithdraw: m,
|
|
9403
9461
|
vipWithdrawFeeRate: d,
|
|
9404
|
-
vipRebateRange:
|
|
9462
|
+
vipRebateRange: f,
|
|
9405
9463
|
processedVipGameRebate: _
|
|
9406
9464
|
};
|
|
9407
9465
|
});
|
|
9408
9466
|
},
|
|
9409
9467
|
...e
|
|
9410
9468
|
});
|
|
9411
|
-
},
|
|
9469
|
+
}, ou = ({ options: e } = {
|
|
9412
9470
|
vipList: {}
|
|
9413
9471
|
}) => ({
|
|
9414
9472
|
vipList: zs({ options: e.vipList })
|
|
@@ -9431,8 +9489,8 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9431
9489
|
default:
|
|
9432
9490
|
return "En";
|
|
9433
9491
|
}
|
|
9434
|
-
}, Fn = "game-icon-ds88",
|
|
9435
|
-
const { lng: l } =
|
|
9492
|
+
}, Fn = "game-icon-ds88", su = ({ gameData: e = {} } = {}) => {
|
|
9493
|
+
const { lng: l } = oe(), i = wn(l), {
|
|
9436
9494
|
gameCode: n,
|
|
9437
9495
|
// 遊戲代碼
|
|
9438
9496
|
gameUid: p,
|
|
@@ -9442,7 +9500,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9442
9500
|
platformUid: b,
|
|
9443
9501
|
// 平台唯一標識符
|
|
9444
9502
|
// platform_enum: platformEnum, // 平台枚舉
|
|
9445
|
-
currencyCode:
|
|
9503
|
+
currencyCode: c,
|
|
9446
9504
|
// 支援貨幣
|
|
9447
9505
|
enterLobbyMode: r,
|
|
9448
9506
|
// 進入大廳模式
|
|
@@ -9460,7 +9518,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9460
9518
|
// 是否支援直向
|
|
9461
9519
|
support_horizontal: d,
|
|
9462
9520
|
// 是否支援橫向
|
|
9463
|
-
userClickCount:
|
|
9521
|
+
userClickCount: f,
|
|
9464
9522
|
// 用戶點擊次數
|
|
9465
9523
|
gameNameEn: y,
|
|
9466
9524
|
// 英文名稱
|
|
@@ -9476,7 +9534,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9476
9534
|
gameUid: p,
|
|
9477
9535
|
gameTypeUid: g,
|
|
9478
9536
|
providerUid: b,
|
|
9479
|
-
supportCurrency:
|
|
9537
|
+
supportCurrency: c,
|
|
9480
9538
|
enterLobbyMode: r,
|
|
9481
9539
|
gamePlatform: a,
|
|
9482
9540
|
gameSubType: t,
|
|
@@ -9485,7 +9543,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9485
9543
|
isUnderMaintenance: u,
|
|
9486
9544
|
supportVertical: m,
|
|
9487
9545
|
supportHorizontal: d,
|
|
9488
|
-
userClickCount:
|
|
9546
|
+
userClickCount: f,
|
|
9489
9547
|
gameNameEn: y,
|
|
9490
9548
|
gameNameZh: _,
|
|
9491
9549
|
gameNameVi: U,
|
|
@@ -9505,7 +9563,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9505
9563
|
"HACK",
|
|
9506
9564
|
"NAGA",
|
|
9507
9565
|
"RSG"
|
|
9508
|
-
], e) && l ? `${e}_dark` : e,
|
|
9566
|
+
], e) && l ? `${e}_dark` : e, mu = ({ platformData: e, darkMode: l } = {}) => {
|
|
9509
9567
|
const {
|
|
9510
9568
|
SubPlatformEnum: i,
|
|
9511
9569
|
// 子平台枚舉
|
|
@@ -9517,7 +9575,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9517
9575
|
// 維護開始時間
|
|
9518
9576
|
maintenanceEndTime: b,
|
|
9519
9577
|
// 維護結束時間
|
|
9520
|
-
platform:
|
|
9578
|
+
platform: c,
|
|
9521
9579
|
// 平台代碼
|
|
9522
9580
|
platformUid: r,
|
|
9523
9581
|
// 平台唯一標識符
|
|
@@ -9527,21 +9585,21 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9527
9585
|
// 臨時維護開始時間
|
|
9528
9586
|
temp_maintenance_end_time: o
|
|
9529
9587
|
// 臨時維護結束時間
|
|
9530
|
-
} = e || {}, s = `${
|
|
9588
|
+
} = e || {}, s = `${Xe}/${Kn}/${Is(n, l)}.png`;
|
|
9531
9589
|
return {
|
|
9532
9590
|
subPlatformEnum: i,
|
|
9533
9591
|
platformEnum: n,
|
|
9534
9592
|
isUnderMaintenance: p,
|
|
9535
9593
|
maintenanceStartTime: g,
|
|
9536
9594
|
maintenanceEndTime: b,
|
|
9537
|
-
platform:
|
|
9595
|
+
platform: c,
|
|
9538
9596
|
platformUid: r,
|
|
9539
9597
|
platformMode: a,
|
|
9540
9598
|
tempMaintenanceStartTime: t,
|
|
9541
9599
|
tempMaintenanceEndTime: o,
|
|
9542
9600
|
platformImageUrl: s
|
|
9543
9601
|
};
|
|
9544
|
-
}, Vs = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), An = (e = []) => !la(e) || Ee(e) ? [] :
|
|
9602
|
+
}, Vs = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), An = (e = []) => !la(e) || Ee(e) ? [] : Oe(e, "platform"), Zs = (e = []) => !la(e) || Ee(e) ? [] : Oe(e, "gameTypeName"), Js = (e = []) => !la(e) || Ee(e) ? [] : Oe(e, "game_subtype"), Ks = (e = {}) => !Ii(e) || Ee(e) ? [] : Vi(e), qs = (e = [], l = []) => !la(e) || Ee(e) ? {} : !la(l) || Ee(l) ? {} : e.reduce((i, n) => {
|
|
9545
9603
|
const p = l.map((g) => g.game_subtype);
|
|
9546
9604
|
return p.forEach((g) => {
|
|
9547
9605
|
i[g] = i[g] || [];
|
|
@@ -9553,24 +9611,24 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9553
9611
|
allGameTypes: n = [],
|
|
9554
9612
|
allPlatforms: p = []
|
|
9555
9613
|
}) => !la(e) || !la(l) ? {} : Ee(i) ? {} : e.reduce((g, b) => {
|
|
9556
|
-
const
|
|
9614
|
+
const c = jl({
|
|
9557
9615
|
gameTypeName: b,
|
|
9558
9616
|
platforms: l,
|
|
9559
9617
|
gameList: i,
|
|
9560
9618
|
allGameTypes: n,
|
|
9561
9619
|
allPlatforms: p
|
|
9562
9620
|
});
|
|
9563
|
-
return Ee(
|
|
9564
|
-
}, {}),
|
|
9621
|
+
return Ee(c) || (g[b] = c), g;
|
|
9622
|
+
}, {}), uu = ({
|
|
9565
9623
|
types: e = [],
|
|
9566
9624
|
platforms: l = [],
|
|
9567
9625
|
allGameType: i = [],
|
|
9568
9626
|
allGamePlatform: n = [],
|
|
9569
9627
|
allGameList: p = {}
|
|
9570
9628
|
} = {}) => !Array.isArray(e) || !Array.isArray(l) ? {} : e.reduce((g, b) => {
|
|
9571
|
-
const
|
|
9572
|
-
if (!
|
|
9573
|
-
const r = p[
|
|
9629
|
+
const c = $n(i, b);
|
|
9630
|
+
if (!c) return g;
|
|
9631
|
+
const r = p[c] || [], a = l.reduce((t, o) => {
|
|
9574
9632
|
const s = Yl({
|
|
9575
9633
|
platformName: o,
|
|
9576
9634
|
gamesOfType: r,
|
|
@@ -9600,19 +9658,19 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9600
9658
|
allNewGameList: p = [],
|
|
9601
9659
|
allTopGameList: g = [],
|
|
9602
9660
|
randomlySelectedGames: b = [],
|
|
9603
|
-
userFavoriteGame:
|
|
9661
|
+
userFavoriteGame: c = {},
|
|
9604
9662
|
exclusiveBrandGames: r = [],
|
|
9605
9663
|
highlightGames: a = [],
|
|
9606
9664
|
originPlatform: t = []
|
|
9607
9665
|
}) => {
|
|
9608
|
-
const o = Vs(e), s = An(l), u = Zs(i), m = Js(n), d = An(t),
|
|
9666
|
+
const o = Vs(e), s = An(l), u = Zs(i), m = Js(n), d = An(t), f = Ks(c), y = $s({
|
|
9609
9667
|
gameTypes: u,
|
|
9610
9668
|
platforms: s,
|
|
9611
9669
|
gameList: e,
|
|
9612
9670
|
allGameTypes: i,
|
|
9613
9671
|
allPlatforms: l
|
|
9614
|
-
}), _ =
|
|
9615
|
-
const H = `${
|
|
9672
|
+
}), _ = Oe(l, (G) => {
|
|
9673
|
+
const H = `${Xe}/${Kn}/${G.platformEnum}.png`;
|
|
9616
9674
|
return {
|
|
9617
9675
|
...G,
|
|
9618
9676
|
platformImageUrl: H
|
|
@@ -9644,23 +9702,23 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9644
9702
|
all: o,
|
|
9645
9703
|
new: p,
|
|
9646
9704
|
top: g,
|
|
9647
|
-
favorite:
|
|
9705
|
+
favorite: f,
|
|
9648
9706
|
highlight: a,
|
|
9649
9707
|
exclusiveBrand: r,
|
|
9650
9708
|
randomlySelected: b
|
|
9651
9709
|
},
|
|
9652
9710
|
categorized: {
|
|
9653
|
-
bySubType: { ...U, MyFavorite:
|
|
9711
|
+
bySubType: { ...U, MyFavorite: f },
|
|
9654
9712
|
byPlatform: C,
|
|
9655
9713
|
byPlatformAndCategory: v,
|
|
9656
9714
|
byGameTypeAndPlatform: y,
|
|
9657
9715
|
byGameType: x
|
|
9658
9716
|
},
|
|
9659
9717
|
user: {
|
|
9660
|
-
favorite:
|
|
9718
|
+
favorite: f
|
|
9661
9719
|
}
|
|
9662
9720
|
};
|
|
9663
|
-
},
|
|
9721
|
+
}, pu = (e = []) => !la(e) || Ee(e) ? [] : Vi(e, (l) => Ee(l.SubPlatformEnum) ? l : l.SubPlatformEnum.map((i) => ({
|
|
9664
9722
|
...l,
|
|
9665
9723
|
...i,
|
|
9666
9724
|
platform: i.SubPlatformEnum,
|
|
@@ -9686,7 +9744,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9686
9744
|
},
|
|
9687
9745
|
user: { favorite: [] }
|
|
9688
9746
|
}, em = ({ enabled: e = !0 } = {}) => {
|
|
9689
|
-
const { getToken: l } =
|
|
9747
|
+
const { getToken: l } = oe(), { userFavoriteGameApi: i, userGameListApi: n } = ue(), { data: p, isLoading: g, error: b, refetch: c } = j({
|
|
9690
9748
|
queryKey: ["gamesInfo"],
|
|
9691
9749
|
queryFn: async () => {
|
|
9692
9750
|
let r = {}, a = {};
|
|
@@ -9721,7 +9779,7 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
9721
9779
|
gamesInfo: p || Xs,
|
|
9722
9780
|
isLoading: g,
|
|
9723
9781
|
error: b,
|
|
9724
|
-
refetch:
|
|
9782
|
+
refetch: c
|
|
9725
9783
|
};
|
|
9726
9784
|
}, am = (e = !1) => {
|
|
9727
9785
|
if (!e && window.gameTypeGroup) {
|
|
@@ -36255,13 +36313,13 @@ const Wm = ({ onIdle: e, onActive: l, onAction: i, timeout: n = 6e5 }) => ps({
|
|
|
36255
36313
|
autoFetch: l = !1,
|
|
36256
36314
|
mockData: i = !1
|
|
36257
36315
|
}) => {
|
|
36258
|
-
|
|
36316
|
+
ge(() => {
|
|
36259
36317
|
i && am(!0);
|
|
36260
36318
|
}, [i]);
|
|
36261
36319
|
const n = em({ enabled: l });
|
|
36262
36320
|
return /* @__PURE__ */ Fe.jsx(qn.Provider, { value: n, children: e });
|
|
36263
36321
|
};
|
|
36264
|
-
function
|
|
36322
|
+
function gu({
|
|
36265
36323
|
children: e,
|
|
36266
36324
|
autoFetchGamesInfo: l = !1,
|
|
36267
36325
|
useMockData: i = !1,
|
|
@@ -36271,7 +36329,7 @@ function uu({
|
|
|
36271
36329
|
const g = Oa(() => Lt(p), [p]), b = Oa(
|
|
36272
36330
|
() => Lt({ ...p, formData: !0 }),
|
|
36273
36331
|
[p]
|
|
36274
|
-
),
|
|
36332
|
+
), c = Oa(
|
|
36275
36333
|
() => new Ol({
|
|
36276
36334
|
defaultOptions: {
|
|
36277
36335
|
queries: {
|
|
@@ -36281,7 +36339,7 @@ function uu({
|
|
|
36281
36339
|
}
|
|
36282
36340
|
}),
|
|
36283
36341
|
[]
|
|
36284
|
-
), r = n ||
|
|
36342
|
+
), r = n || c;
|
|
36285
36343
|
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(zn.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx($l, { children: /* @__PURE__ */ Fe.jsx(
|
|
36286
36344
|
im,
|
|
36287
36345
|
{
|
|
@@ -36291,9 +36349,9 @@ function uu({
|
|
|
36291
36349
|
}
|
|
36292
36350
|
) }) }) });
|
|
36293
36351
|
}
|
|
36294
|
-
const
|
|
36352
|
+
const du = ({ onFunction: e = () => {
|
|
36295
36353
|
}, buttonProps: l = {} } = {}) => {
|
|
36296
|
-
const { lineConfig: i } =
|
|
36354
|
+
const { lineConfig: i } = oe(), n = ee(!1), p = le(i, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), c = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), t = g.get("invite_code"), { mutate: o, isPending: s } = tl({
|
|
36297
36355
|
options: {
|
|
36298
36356
|
onSuccess: (m) => {
|
|
36299
36357
|
e(m);
|
|
@@ -36301,16 +36359,16 @@ const pu = ({ onFunction: e = () => {
|
|
|
36301
36359
|
retry: !1
|
|
36302
36360
|
}
|
|
36303
36361
|
});
|
|
36304
|
-
|
|
36362
|
+
ge(() => {
|
|
36305
36363
|
n.current || b === "true" && r && a && (o({
|
|
36306
|
-
trans_code:
|
|
36364
|
+
trans_code: c,
|
|
36307
36365
|
line_id: r,
|
|
36308
36366
|
invite_code: t,
|
|
36309
36367
|
line_name: a
|
|
36310
36368
|
}), n.current = !0);
|
|
36311
36369
|
}, [
|
|
36312
36370
|
b,
|
|
36313
|
-
|
|
36371
|
+
c,
|
|
36314
36372
|
r,
|
|
36315
36373
|
t,
|
|
36316
36374
|
a,
|
|
@@ -36349,14 +36407,14 @@ var tm = Object.defineProperty, Wi = Object.getOwnPropertySymbols, Tl = Object.p
|
|
|
36349
36407
|
};
|
|
36350
36408
|
var xa;
|
|
36351
36409
|
((e) => {
|
|
36352
|
-
const l = class
|
|
36410
|
+
const l = class Y {
|
|
36353
36411
|
/*-- Constructor (low level) and fields --*/
|
|
36354
36412
|
// Creates a new QR Code with the given version number,
|
|
36355
36413
|
// error correction level, data codeword bytes, and mask number.
|
|
36356
36414
|
// This is a low-level API that most users should not use directly.
|
|
36357
36415
|
// A mid-level API is the encodeSegments() function.
|
|
36358
36416
|
constructor(r, a, t, o) {
|
|
36359
|
-
if (this.version = r, this.errorCorrectionLevel = a, this.modules = [], this.isFunction = [], r <
|
|
36417
|
+
if (this.version = r, this.errorCorrectionLevel = a, this.modules = [], this.isFunction = [], r < Y.MIN_VERSION || r > Y.MAX_VERSION)
|
|
36360
36418
|
throw new RangeError("Version value out of range");
|
|
36361
36419
|
if (o < -1 || o > 7)
|
|
36362
36420
|
throw new RangeError("Mask value out of range");
|
|
@@ -36372,8 +36430,8 @@ var xa;
|
|
|
36372
36430
|
let m = 1e9;
|
|
36373
36431
|
for (let d = 0; d < 8; d++) {
|
|
36374
36432
|
this.applyMask(d), this.drawFormatBits(d);
|
|
36375
|
-
const
|
|
36376
|
-
|
|
36433
|
+
const f = this.getPenaltyScore();
|
|
36434
|
+
f < m && (o = d, m = f), this.applyMask(d);
|
|
36377
36435
|
}
|
|
36378
36436
|
}
|
|
36379
36437
|
p(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
|
|
@@ -36386,7 +36444,7 @@ var xa;
|
|
|
36386
36444
|
// ecl argument if it can be done without increasing the version.
|
|
36387
36445
|
static encodeText(r, a) {
|
|
36388
36446
|
const t = e.QrSegment.makeSegments(r);
|
|
36389
|
-
return
|
|
36447
|
+
return Y.encodeSegments(t, a);
|
|
36390
36448
|
}
|
|
36391
36449
|
// Returns a QR Code representing the given binary data at the given error correction level.
|
|
36392
36450
|
// This function always encodes using the binary segment mode, not any text mode. The maximum number of
|
|
@@ -36394,7 +36452,7 @@ var xa;
|
|
|
36394
36452
|
// The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
|
|
36395
36453
|
static encodeBinary(r, a) {
|
|
36396
36454
|
const t = e.QrSegment.makeBytes(r);
|
|
36397
|
-
return
|
|
36455
|
+
return Y.encodeSegments([t], a);
|
|
36398
36456
|
}
|
|
36399
36457
|
/*-- Static factory functions (mid level) --*/
|
|
36400
36458
|
// Returns a QR Code representing the given segments with the given encoding parameters.
|
|
@@ -36407,11 +36465,11 @@ var xa;
|
|
|
36407
36465
|
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
36408
36466
|
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
36409
36467
|
static encodeSegments(r, a, t = 1, o = 40, s = -1, u = !0) {
|
|
36410
|
-
if (!(
|
|
36468
|
+
if (!(Y.MIN_VERSION <= t && t <= o && o <= Y.MAX_VERSION) || s < -1 || s > 7)
|
|
36411
36469
|
throw new RangeError("Invalid value");
|
|
36412
36470
|
let m, d;
|
|
36413
36471
|
for (m = t; ; m++) {
|
|
36414
|
-
const U =
|
|
36472
|
+
const U = Y.getNumDataCodewords(m, a) * 8, C = b.getTotalBits(r, m);
|
|
36415
36473
|
if (C <= U) {
|
|
36416
36474
|
d = C;
|
|
36417
36475
|
break;
|
|
@@ -36419,23 +36477,23 @@ var xa;
|
|
|
36419
36477
|
if (m >= o)
|
|
36420
36478
|
throw new RangeError("Data too long");
|
|
36421
36479
|
}
|
|
36422
|
-
for (const U of [
|
|
36423
|
-
u && d <=
|
|
36424
|
-
let
|
|
36480
|
+
for (const U of [Y.Ecc.MEDIUM, Y.Ecc.QUARTILE, Y.Ecc.HIGH])
|
|
36481
|
+
u && d <= Y.getNumDataCodewords(m, U) * 8 && (a = U);
|
|
36482
|
+
let f = [];
|
|
36425
36483
|
for (const U of r) {
|
|
36426
|
-
i(U.mode.modeBits, 4,
|
|
36484
|
+
i(U.mode.modeBits, 4, f), i(U.numChars, U.mode.numCharCountBits(m), f);
|
|
36427
36485
|
for (const C of U.getData())
|
|
36428
|
-
|
|
36486
|
+
f.push(C);
|
|
36429
36487
|
}
|
|
36430
|
-
p(
|
|
36431
|
-
const y =
|
|
36432
|
-
p(
|
|
36433
|
-
for (let U = 236;
|
|
36434
|
-
i(U, 8,
|
|
36488
|
+
p(f.length == d);
|
|
36489
|
+
const y = Y.getNumDataCodewords(m, a) * 8;
|
|
36490
|
+
p(f.length <= y), i(0, Math.min(4, y - f.length), f), i(0, (8 - f.length % 8) % 8, f), p(f.length % 8 == 0);
|
|
36491
|
+
for (let U = 236; f.length < y; U ^= 253)
|
|
36492
|
+
i(U, 8, f);
|
|
36435
36493
|
let _ = [];
|
|
36436
|
-
for (; _.length * 8 <
|
|
36494
|
+
for (; _.length * 8 < f.length; )
|
|
36437
36495
|
_.push(0);
|
|
36438
|
-
return
|
|
36496
|
+
return f.forEach((U, C) => _[C >>> 3] |= U << 7 - (C & 7)), new Y(m, a, _, s);
|
|
36439
36497
|
}
|
|
36440
36498
|
/*-- Accessor methods --*/
|
|
36441
36499
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -36521,20 +36579,20 @@ var xa;
|
|
|
36521
36579
|
// codewords appended to it, based on this object's version and error correction level.
|
|
36522
36580
|
addEccAndInterleave(r) {
|
|
36523
36581
|
const a = this.version, t = this.errorCorrectionLevel;
|
|
36524
|
-
if (r.length !=
|
|
36582
|
+
if (r.length != Y.getNumDataCodewords(a, t))
|
|
36525
36583
|
throw new RangeError("Invalid argument");
|
|
36526
|
-
const o =
|
|
36527
|
-
let
|
|
36528
|
-
const y =
|
|
36584
|
+
const o = Y.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][a], s = Y.ECC_CODEWORDS_PER_BLOCK[t.ordinal][a], u = Math.floor(Y.getNumRawDataModules(a) / 8), m = o - u % o, d = Math.floor(u / o);
|
|
36585
|
+
let f = [];
|
|
36586
|
+
const y = Y.reedSolomonComputeDivisor(s);
|
|
36529
36587
|
for (let U = 0, C = 0; U < o; U++) {
|
|
36530
36588
|
let v = r.slice(C, C + d - s + (U < m ? 0 : 1));
|
|
36531
36589
|
C += v.length;
|
|
36532
|
-
const x =
|
|
36533
|
-
U < m && v.push(0),
|
|
36590
|
+
const x = Y.reedSolomonComputeRemainder(v, y);
|
|
36591
|
+
U < m && v.push(0), f.push(v.concat(x));
|
|
36534
36592
|
}
|
|
36535
36593
|
let _ = [];
|
|
36536
|
-
for (let U = 0; U <
|
|
36537
|
-
|
|
36594
|
+
for (let U = 0; U < f[0].length; U++)
|
|
36595
|
+
f.forEach((C, v) => {
|
|
36538
36596
|
(U != d - s || v >= m) && _.push(C[U]);
|
|
36539
36597
|
});
|
|
36540
36598
|
return p(_.length == u), _;
|
|
@@ -36542,7 +36600,7 @@ var xa;
|
|
|
36542
36600
|
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
36543
36601
|
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
36544
36602
|
drawCodewords(r) {
|
|
36545
|
-
if (r.length != Math.floor(
|
|
36603
|
+
if (r.length != Math.floor(Y.getNumRawDataModules(this.version) / 8))
|
|
36546
36604
|
throw new RangeError("Invalid argument");
|
|
36547
36605
|
let a = 0;
|
|
36548
36606
|
for (let t = this.size - 1; t >= 1; t -= 2) {
|
|
@@ -36603,26 +36661,26 @@ var xa;
|
|
|
36603
36661
|
let r = 0;
|
|
36604
36662
|
for (let s = 0; s < this.size; s++) {
|
|
36605
36663
|
let u = !1, m = 0, d = [0, 0, 0, 0, 0, 0, 0];
|
|
36606
|
-
for (let
|
|
36607
|
-
this.modules[s][
|
|
36608
|
-
r += this.finderPenaltyTerminateAndCount(u, m, d) *
|
|
36664
|
+
for (let f = 0; f < this.size; f++)
|
|
36665
|
+
this.modules[s][f] == u ? (m++, m == 5 ? r += Y.PENALTY_N1 : m > 5 && r++) : (this.finderPenaltyAddHistory(m, d), u || (r += this.finderPenaltyCountPatterns(d) * Y.PENALTY_N3), u = this.modules[s][f], m = 1);
|
|
36666
|
+
r += this.finderPenaltyTerminateAndCount(u, m, d) * Y.PENALTY_N3;
|
|
36609
36667
|
}
|
|
36610
36668
|
for (let s = 0; s < this.size; s++) {
|
|
36611
36669
|
let u = !1, m = 0, d = [0, 0, 0, 0, 0, 0, 0];
|
|
36612
|
-
for (let
|
|
36613
|
-
this.modules[
|
|
36614
|
-
r += this.finderPenaltyTerminateAndCount(u, m, d) *
|
|
36670
|
+
for (let f = 0; f < this.size; f++)
|
|
36671
|
+
this.modules[f][s] == u ? (m++, m == 5 ? r += Y.PENALTY_N1 : m > 5 && r++) : (this.finderPenaltyAddHistory(m, d), u || (r += this.finderPenaltyCountPatterns(d) * Y.PENALTY_N3), u = this.modules[f][s], m = 1);
|
|
36672
|
+
r += this.finderPenaltyTerminateAndCount(u, m, d) * Y.PENALTY_N3;
|
|
36615
36673
|
}
|
|
36616
36674
|
for (let s = 0; s < this.size - 1; s++)
|
|
36617
36675
|
for (let u = 0; u < this.size - 1; u++) {
|
|
36618
36676
|
const m = this.modules[s][u];
|
|
36619
|
-
m == this.modules[s][u + 1] && m == this.modules[s + 1][u] && m == this.modules[s + 1][u + 1] && (r +=
|
|
36677
|
+
m == this.modules[s][u + 1] && m == this.modules[s + 1][u] && m == this.modules[s + 1][u + 1] && (r += Y.PENALTY_N2);
|
|
36620
36678
|
}
|
|
36621
36679
|
let a = 0;
|
|
36622
36680
|
for (const s of this.modules)
|
|
36623
36681
|
a = s.reduce((u, m) => u + (m ? 1 : 0), a);
|
|
36624
36682
|
const t = this.size * this.size, o = Math.ceil(Math.abs(a * 20 - t * 10) / t) - 1;
|
|
36625
|
-
return p(0 <= o && o <= 9), r += o *
|
|
36683
|
+
return p(0 <= o && o <= 9), r += o * Y.PENALTY_N4, p(0 <= r && r <= 2568888), r;
|
|
36626
36684
|
}
|
|
36627
36685
|
/*-- Private helper functions --*/
|
|
36628
36686
|
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
@@ -36643,7 +36701,7 @@ var xa;
|
|
|
36643
36701
|
// all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
|
|
36644
36702
|
// The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
|
|
36645
36703
|
static getNumRawDataModules(r) {
|
|
36646
|
-
if (r <
|
|
36704
|
+
if (r < Y.MIN_VERSION || r > Y.MAX_VERSION)
|
|
36647
36705
|
throw new RangeError("Version number out of range");
|
|
36648
36706
|
let a = (16 * r + 128) * r + 64;
|
|
36649
36707
|
if (r >= 2) {
|
|
@@ -36656,7 +36714,7 @@ var xa;
|
|
|
36656
36714
|
// QR Code of the given version number and error correction level, with remainder bits discarded.
|
|
36657
36715
|
// This stateless pure function could be implemented as a (40*4)-cell lookup table.
|
|
36658
36716
|
static getNumDataCodewords(r, a) {
|
|
36659
|
-
return Math.floor(
|
|
36717
|
+
return Math.floor(Y.getNumRawDataModules(r) / 8) - Y.ECC_CODEWORDS_PER_BLOCK[a.ordinal][r] * Y.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][r];
|
|
36660
36718
|
}
|
|
36661
36719
|
// Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
|
|
36662
36720
|
// implemented as a lookup table over all possible parameter values, instead of as an algorithm.
|
|
@@ -36670,8 +36728,8 @@ var xa;
|
|
|
36670
36728
|
let t = 1;
|
|
36671
36729
|
for (let o = 0; o < r; o++) {
|
|
36672
36730
|
for (let s = 0; s < a.length; s++)
|
|
36673
|
-
a[s] =
|
|
36674
|
-
t =
|
|
36731
|
+
a[s] = Y.reedSolomonMultiply(a[s], t), s + 1 < a.length && (a[s] ^= a[s + 1]);
|
|
36732
|
+
t = Y.reedSolomonMultiply(t, 2);
|
|
36675
36733
|
}
|
|
36676
36734
|
return a;
|
|
36677
36735
|
}
|
|
@@ -36680,7 +36738,7 @@ var xa;
|
|
|
36680
36738
|
let t = a.map((o) => 0);
|
|
36681
36739
|
for (const o of r) {
|
|
36682
36740
|
const s = o ^ t.shift();
|
|
36683
|
-
t.push(0), a.forEach((u, m) => t[m] ^=
|
|
36741
|
+
t.push(0), a.forEach((u, m) => t[m] ^= Y.reedSolomonMultiply(u, s));
|
|
36684
36742
|
}
|
|
36685
36743
|
return t;
|
|
36686
36744
|
}
|
|
@@ -36734,17 +36792,17 @@ var xa;
|
|
|
36734
36792
|
[-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]
|
|
36735
36793
|
// High
|
|
36736
36794
|
], e.QrCode = l;
|
|
36737
|
-
function i(
|
|
36738
|
-
if (r < 0 || r > 31 ||
|
|
36795
|
+
function i(c, r, a) {
|
|
36796
|
+
if (r < 0 || r > 31 || c >>> r)
|
|
36739
36797
|
throw new RangeError("Value out of range");
|
|
36740
36798
|
for (let t = r - 1; t >= 0; t--)
|
|
36741
|
-
a.push(
|
|
36799
|
+
a.push(c >>> t & 1);
|
|
36742
36800
|
}
|
|
36743
|
-
function n(
|
|
36744
|
-
return (
|
|
36801
|
+
function n(c, r) {
|
|
36802
|
+
return (c >>> r & 1) != 0;
|
|
36745
36803
|
}
|
|
36746
|
-
function p(
|
|
36747
|
-
if (!
|
|
36804
|
+
function p(c) {
|
|
36805
|
+
if (!c)
|
|
36748
36806
|
throw new Error("Assertion error");
|
|
36749
36807
|
}
|
|
36750
36808
|
const g = class fe {
|
|
@@ -36893,22 +36951,22 @@ function Gl(e, l = 0) {
|
|
|
36893
36951
|
const i = [];
|
|
36894
36952
|
return e.forEach(function(n, p) {
|
|
36895
36953
|
let g = null;
|
|
36896
|
-
n.forEach(function(b,
|
|
36954
|
+
n.forEach(function(b, c) {
|
|
36897
36955
|
if (!b && g !== null) {
|
|
36898
36956
|
i.push(
|
|
36899
|
-
`M${g + l} ${p + l}h${
|
|
36957
|
+
`M${g + l} ${p + l}h${c - g}v1H${g + l}z`
|
|
36900
36958
|
), g = null;
|
|
36901
36959
|
return;
|
|
36902
36960
|
}
|
|
36903
|
-
if (
|
|
36961
|
+
if (c === n.length - 1) {
|
|
36904
36962
|
if (!b)
|
|
36905
36963
|
return;
|
|
36906
|
-
g === null ? i.push(`M${
|
|
36907
|
-
`M${g + l},${p + l} h${
|
|
36964
|
+
g === null ? i.push(`M${c + l},${p + l} h1v1H${c + l}z`) : i.push(
|
|
36965
|
+
`M${g + l},${p + l} h${c + 1 - g}v1H${g + l}z`
|
|
36908
36966
|
);
|
|
36909
36967
|
return;
|
|
36910
36968
|
}
|
|
36911
|
-
b && g === null && (g =
|
|
36969
|
+
b && g === null && (g = c);
|
|
36912
36970
|
});
|
|
36913
36971
|
}), i.join("");
|
|
36914
36972
|
}
|
|
@@ -36918,14 +36976,14 @@ function Ml(e, l) {
|
|
|
36918
36976
|
function sm(e, l, i, n) {
|
|
36919
36977
|
if (n == null)
|
|
36920
36978
|
return null;
|
|
36921
|
-
const p = e.length + i * 2, g = Math.floor(l * om), b = p / l,
|
|
36979
|
+
const p = e.length + i * 2, g = Math.floor(l * om), b = p / l, c = (n.width || g) * b, r = (n.height || g) * b, a = n.x == null ? e.length / 2 - c / 2 : n.x * b, t = n.y == null ? e.length / 2 - r / 2 : n.y * b, o = n.opacity == null ? 1 : n.opacity;
|
|
36922
36980
|
let s = null;
|
|
36923
36981
|
if (n.excavate) {
|
|
36924
|
-
let m = Math.floor(a), d = Math.floor(t),
|
|
36925
|
-
s = { x: m, y: d, w:
|
|
36982
|
+
let m = Math.floor(a), d = Math.floor(t), f = Math.ceil(c + a - m), y = Math.ceil(r + t - d);
|
|
36983
|
+
s = { x: m, y: d, w: f, h: y };
|
|
36926
36984
|
}
|
|
36927
36985
|
const u = n.crossOrigin;
|
|
36928
|
-
return { x: a, y: t, h: r, w:
|
|
36986
|
+
return { x: a, y: t, h: r, w: c, excavation: s, opacity: o, crossOrigin: u };
|
|
36929
36987
|
}
|
|
36930
36988
|
function mm(e, l) {
|
|
36931
36989
|
return l != null ? Math.max(Math.floor(l), 0) : e ? lm : rm;
|
|
@@ -36938,22 +36996,22 @@ function Rl({
|
|
|
36938
36996
|
marginSize: p,
|
|
36939
36997
|
imageSettings: g,
|
|
36940
36998
|
size: b,
|
|
36941
|
-
boostLevel:
|
|
36999
|
+
boostLevel: c
|
|
36942
37000
|
}) {
|
|
36943
37001
|
let r = de.useMemo(() => {
|
|
36944
|
-
const m = (Array.isArray(e) ? e : [e]).reduce((d,
|
|
37002
|
+
const m = (Array.isArray(e) ? e : [e]).reduce((d, f) => (d.push(...Aa.QrSegment.makeSegments(f)), d), []);
|
|
36945
37003
|
return Aa.QrCode.encodeSegments(
|
|
36946
37004
|
m,
|
|
36947
37005
|
nm[l],
|
|
36948
37006
|
i,
|
|
36949
37007
|
void 0,
|
|
36950
37008
|
void 0,
|
|
36951
|
-
|
|
37009
|
+
c
|
|
36952
37010
|
);
|
|
36953
|
-
}, [e, l, i,
|
|
37011
|
+
}, [e, l, i, c]);
|
|
36954
37012
|
const { cells: a, margin: t, numCells: o, calculatedImageSettings: s } = de.useMemo(() => {
|
|
36955
37013
|
let u = r.getModules();
|
|
36956
|
-
const m = mm(n, p), d = u.length + m * 2,
|
|
37014
|
+
const m = mm(n, p), d = u.length + m * 2, f = sm(
|
|
36957
37015
|
u,
|
|
36958
37016
|
b,
|
|
36959
37017
|
m,
|
|
@@ -36963,7 +37021,7 @@ function Rl({
|
|
|
36963
37021
|
cells: u,
|
|
36964
37022
|
margin: m,
|
|
36965
37023
|
numCells: d,
|
|
36966
|
-
calculatedImageSettings:
|
|
37024
|
+
calculatedImageSettings: f
|
|
36967
37025
|
};
|
|
36968
37026
|
}, [r, b, g, n, p]);
|
|
36969
37027
|
return {
|
|
@@ -36987,7 +37045,7 @@ var um = (function() {
|
|
|
36987
37045
|
value: p,
|
|
36988
37046
|
size: g = xl,
|
|
36989
37047
|
level: b = Sl,
|
|
36990
|
-
bgColor:
|
|
37048
|
+
bgColor: c = Dl,
|
|
36991
37049
|
fgColor: r = El,
|
|
36992
37050
|
includeMargin: a = Nl,
|
|
36993
37051
|
minVersion: t = Ll,
|
|
@@ -37005,7 +37063,7 @@ var um = (function() {
|
|
|
37005
37063
|
"boostLevel",
|
|
37006
37064
|
"marginSize",
|
|
37007
37065
|
"imageSettings"
|
|
37008
|
-
]), { style:
|
|
37066
|
+
]), { style: f } = d, y = mt(d, ["style"]), _ = u?.src, U = de.useRef(null), C = de.useRef(null), v = de.useCallback(
|
|
37009
37067
|
(P) => {
|
|
37010
37068
|
U.current = P, typeof i == "function" ? i(P) : i && (i.current = P);
|
|
37011
37069
|
},
|
|
@@ -37034,7 +37092,7 @@ var um = (function() {
|
|
|
37034
37092
|
const B = window.devicePixelRatio || 1;
|
|
37035
37093
|
P.height = P.width = g * B;
|
|
37036
37094
|
const W = g / k * B;
|
|
37037
|
-
S.scale(W, W), S.fillStyle =
|
|
37095
|
+
S.scale(W, W), S.fillStyle = c, S.fillRect(0, 0, k, k), S.fillStyle = r, um ? S.fill(new Path2D(Gl(E, G))) : H.forEach(function(L, N) {
|
|
37038
37096
|
L.forEach(function(A, R) {
|
|
37039
37097
|
A && S.fillRect(R + G, N + G, 1, 1);
|
|
37040
37098
|
});
|
|
@@ -37049,7 +37107,7 @@ var um = (function() {
|
|
|
37049
37107
|
}), de.useEffect(() => {
|
|
37050
37108
|
D(!1);
|
|
37051
37109
|
}, [_]);
|
|
37052
|
-
const F = st({ height: g, width: g },
|
|
37110
|
+
const F = st({ height: g, width: g }, f);
|
|
37053
37111
|
let O = null;
|
|
37054
37112
|
return _ != null && (O = /* @__PURE__ */ de.createElement(
|
|
37055
37113
|
"img",
|
|
@@ -37082,7 +37140,7 @@ var Pl = de.forwardRef(
|
|
|
37082
37140
|
value: p,
|
|
37083
37141
|
size: g = xl,
|
|
37084
37142
|
level: b = Sl,
|
|
37085
|
-
bgColor:
|
|
37143
|
+
bgColor: c = Dl,
|
|
37086
37144
|
fgColor: r = El,
|
|
37087
37145
|
includeMargin: a = Nl,
|
|
37088
37146
|
minVersion: t = Ll,
|
|
@@ -37102,7 +37160,7 @@ var Pl = de.forwardRef(
|
|
|
37102
37160
|
"title",
|
|
37103
37161
|
"marginSize",
|
|
37104
37162
|
"imageSettings"
|
|
37105
|
-
]), { margin:
|
|
37163
|
+
]), { margin: f, cells: y, numCells: _, calculatedImageSettings: U } = Rl({
|
|
37106
37164
|
value: p,
|
|
37107
37165
|
level: b,
|
|
37108
37166
|
minVersion: t,
|
|
@@ -37122,14 +37180,14 @@ var Pl = de.forwardRef(
|
|
|
37122
37180
|
href: m.src,
|
|
37123
37181
|
height: U.h,
|
|
37124
37182
|
width: U.w,
|
|
37125
|
-
x: U.x +
|
|
37126
|
-
y: U.y +
|
|
37183
|
+
x: U.x + f,
|
|
37184
|
+
y: U.y + f,
|
|
37127
37185
|
preserveAspectRatio: "none",
|
|
37128
37186
|
opacity: U.opacity,
|
|
37129
37187
|
crossOrigin: U.crossOrigin
|
|
37130
37188
|
}
|
|
37131
37189
|
));
|
|
37132
|
-
const x = Gl(C,
|
|
37190
|
+
const x = Gl(C, f);
|
|
37133
37191
|
return /* @__PURE__ */ de.createElement(
|
|
37134
37192
|
"svg",
|
|
37135
37193
|
st({
|
|
@@ -37143,7 +37201,7 @@ var Pl = de.forwardRef(
|
|
|
37143
37201
|
/* @__PURE__ */ de.createElement(
|
|
37144
37202
|
"path",
|
|
37145
37203
|
{
|
|
37146
|
-
fill:
|
|
37204
|
+
fill: c,
|
|
37147
37205
|
d: `M0,0 h${_}v${_}H0z`,
|
|
37148
37206
|
shapeRendering: "crispEdges"
|
|
37149
37207
|
}
|
|
@@ -37198,19 +37256,19 @@ const gm = {
|
|
|
37198
37256
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37199
37257
|
expired: "Kode QR telah kedaluwarsa"
|
|
37200
37258
|
}
|
|
37201
|
-
},
|
|
37202
|
-
const { lng: n, getToken: p, lineConfig: g } =
|
|
37259
|
+
}, _u = ({ forcedShow: e = !1, isVisible: l, setIsVisible: i } = {}) => {
|
|
37260
|
+
const { lng: n, getToken: p, lineConfig: g } = oe(), [b, c] = tt(300), [r, a] = tt(!1), t = ee(null), o = le(g, "liffId", ""), s = $e(n), u = p?.(), d = new URLSearchParams(window.location.search).get("mac") || lt.get("machine_mac_address") || "", { data: f, isFetching: y } = Wo({
|
|
37203
37261
|
formData: {
|
|
37204
37262
|
mac_address: d
|
|
37205
37263
|
},
|
|
37206
37264
|
options: {
|
|
37207
37265
|
enabled: e ? !0 : !!d && !u
|
|
37208
37266
|
}
|
|
37209
|
-
}), _ =
|
|
37210
|
-
|
|
37267
|
+
}), _ = le(f, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37268
|
+
ge(() => {
|
|
37211
37269
|
d && lt.set("machine_mac_address", d, { expires: 365 });
|
|
37212
|
-
}, [d]),
|
|
37213
|
-
|
|
37270
|
+
}, [d]), ge(() => (_ && (c(300), a(!1), t.current && clearInterval(t.current), t.current = setInterval(() => {
|
|
37271
|
+
c((v) => v <= 1 ? (clearInterval(t.current), a(!0), 0) : v - 1);
|
|
37214
37272
|
}, 1e3)), () => {
|
|
37215
37273
|
t.current && clearInterval(t.current);
|
|
37216
37274
|
}), [_]);
|
|
@@ -37263,7 +37321,7 @@ const gm = {
|
|
|
37263
37321
|
)
|
|
37264
37322
|
] })
|
|
37265
37323
|
] });
|
|
37266
|
-
},
|
|
37324
|
+
}, yu = () => {
|
|
37267
37325
|
const e = pt(), {
|
|
37268
37326
|
mutate: l,
|
|
37269
37327
|
isPending: i,
|
|
@@ -37279,9 +37337,9 @@ const gm = {
|
|
|
37279
37337
|
}
|
|
37280
37338
|
}
|
|
37281
37339
|
}), b = ee(!1);
|
|
37282
|
-
return
|
|
37340
|
+
return ge(() => {
|
|
37283
37341
|
if (b.current) return;
|
|
37284
|
-
const
|
|
37342
|
+
const c = new URLSearchParams(window.location.search), r = c.get("bind_type"), a = c.get("bind_id");
|
|
37285
37343
|
if (r && a)
|
|
37286
37344
|
switch (b.current = !0, r) {
|
|
37287
37345
|
case "line":
|
|
@@ -37295,20 +37353,20 @@ const gm = {
|
|
|
37295
37353
|
};
|
|
37296
37354
|
export {
|
|
37297
37355
|
zn as ApiCtx,
|
|
37298
|
-
|
|
37299
|
-
|
|
37356
|
+
gu as ApiProvider,
|
|
37357
|
+
yu as Bind,
|
|
37300
37358
|
qn as GamesInfoCtx,
|
|
37301
|
-
|
|
37302
|
-
|
|
37359
|
+
du as LineLogin,
|
|
37360
|
+
_u as LineQrCode,
|
|
37303
37361
|
Ja as STATUS_TYPES,
|
|
37304
37362
|
In as StatusContext,
|
|
37305
37363
|
$l as StatusProvider,
|
|
37306
37364
|
$s as buildMultiTypes,
|
|
37307
|
-
|
|
37365
|
+
uu as buildMultiTypesWithSubTypes,
|
|
37308
37366
|
Yl as buildSinglePlatformWithSubTypes,
|
|
37309
37367
|
jl as buildSingleType,
|
|
37310
37368
|
qs as categorizeGames,
|
|
37311
|
-
|
|
37369
|
+
$e as convertLanguageCode,
|
|
37312
37370
|
Cm as createLogoutHandler,
|
|
37313
37371
|
Js as extractGameSubTypeNames,
|
|
37314
37372
|
Zs as extractGameTypeNames,
|
|
@@ -37326,9 +37384,9 @@ export {
|
|
|
37326
37384
|
Is as handleDarkImage,
|
|
37327
37385
|
am as initMockWindowData,
|
|
37328
37386
|
Ys as processGameInfo,
|
|
37329
|
-
|
|
37387
|
+
pu as processPlatformData,
|
|
37330
37388
|
Em as useAbandonPoint,
|
|
37331
|
-
|
|
37389
|
+
oe as useApiContext,
|
|
37332
37390
|
hm as useBalanceGetter,
|
|
37333
37391
|
xm as useBet,
|
|
37334
37392
|
fo as useBetRecord,
|
|
@@ -37337,32 +37395,32 @@ export {
|
|
|
37337
37395
|
Zo as useCheckCurrentEventProgress,
|
|
37338
37396
|
Jo as useCheckEventStatus,
|
|
37339
37397
|
Dm as useCheckPlayerWager,
|
|
37340
|
-
|
|
37398
|
+
Am as useClientWebSocket,
|
|
37341
37399
|
ws as useCurrentRebate,
|
|
37342
37400
|
Us as useDepositAction,
|
|
37343
37401
|
Cs as useDepositTransaction,
|
|
37344
37402
|
_s as useDepositV1,
|
|
37345
37403
|
ys as useDepositV2,
|
|
37346
|
-
|
|
37347
|
-
|
|
37404
|
+
Qm as useDepositWalletLog,
|
|
37405
|
+
Bm as useEvent,
|
|
37348
37406
|
Vo as useEventList,
|
|
37349
37407
|
vs as useEventTransaction,
|
|
37350
|
-
|
|
37408
|
+
Ym as useEventWalletLog,
|
|
37351
37409
|
Hs as useExpiredRewardsList,
|
|
37352
|
-
|
|
37410
|
+
su as useGameConfig,
|
|
37353
37411
|
bm as useGameInfoContext,
|
|
37354
37412
|
em as useGamesInfo,
|
|
37355
|
-
|
|
37413
|
+
Hm as useGetCarouseList,
|
|
37356
37414
|
Wo as useGetMachineLoginCode,
|
|
37357
|
-
|
|
37415
|
+
Wm as useGetMarquee,
|
|
37358
37416
|
Tm as useGetMemberInfo,
|
|
37359
|
-
|
|
37417
|
+
zm as useGetRankingGame,
|
|
37360
37418
|
Ws as useHistoryRewardsList,
|
|
37361
|
-
|
|
37362
|
-
|
|
37419
|
+
Im as useIdleTimeout,
|
|
37420
|
+
Vm as useInbox,
|
|
37363
37421
|
ds as useInboxList,
|
|
37364
37422
|
km as useInitializeWithToken,
|
|
37365
|
-
|
|
37423
|
+
qm as useInvoiceAction,
|
|
37366
37424
|
tl as useLineLogin,
|
|
37367
37425
|
Ho as useLineLogin2,
|
|
37368
37426
|
No as useLogin,
|
|
@@ -37371,23 +37429,23 @@ export {
|
|
|
37371
37429
|
Lm as useMobileLogin,
|
|
37372
37430
|
Gm as useMobileLoginV2,
|
|
37373
37431
|
Mm as useMobileRegister,
|
|
37374
|
-
|
|
37375
|
-
|
|
37376
|
-
|
|
37377
|
-
|
|
37378
|
-
|
|
37432
|
+
Jm as useNewsDetail,
|
|
37433
|
+
Zm as useNewsList,
|
|
37434
|
+
eu as usePayment,
|
|
37435
|
+
mu as usePlatformConfig,
|
|
37436
|
+
au as usePlayGame,
|
|
37379
37437
|
Sm as usePointTransfer,
|
|
37380
37438
|
cs as useReadInbox,
|
|
37381
|
-
|
|
37382
|
-
|
|
37439
|
+
iu as useRebate,
|
|
37440
|
+
Xm as useRebateWalletLog,
|
|
37383
37441
|
Fs as useReceiveRebate,
|
|
37384
|
-
|
|
37385
|
-
|
|
37442
|
+
Km as useRedeemCodeDeposit,
|
|
37443
|
+
Om as useRedeemEventReward,
|
|
37386
37444
|
Os as useRedeemReward,
|
|
37387
|
-
|
|
37445
|
+
lu as useRedeemTreasure,
|
|
37388
37446
|
Po as useResetUserPassword,
|
|
37389
37447
|
Fo as useResetUserTransactionPassword,
|
|
37390
|
-
|
|
37448
|
+
tu as useRewards,
|
|
37391
37449
|
As as useRewardsList,
|
|
37392
37450
|
Rm as useSendMobileVerifyCode,
|
|
37393
37451
|
wo as useSetUserTransactionPassword,
|
|
@@ -37395,17 +37453,19 @@ export {
|
|
|
37395
37453
|
Vn as useStatus,
|
|
37396
37454
|
Mo as useToggleFavoriteGame,
|
|
37397
37455
|
Bo as useTransferInGame,
|
|
37398
|
-
|
|
37456
|
+
nu as useTreasureList,
|
|
37399
37457
|
Bs as useUnUsedRewardsList,
|
|
37400
|
-
|
|
37458
|
+
$m as useUpdateInvoiceAction,
|
|
37401
37459
|
Ro as useUpdateUserInfo,
|
|
37402
|
-
|
|
37460
|
+
Fm as useUser,
|
|
37403
37461
|
Oo as useUserBindCard,
|
|
37404
37462
|
Ao as useUserRebate,
|
|
37405
|
-
|
|
37406
|
-
|
|
37463
|
+
wm as useVerifyDonationCode,
|
|
37464
|
+
Pm as useVerifyPhoneBar,
|
|
37465
|
+
ou as useVip,
|
|
37466
|
+
ru as useVipInfo,
|
|
37407
37467
|
zs as useVipList,
|
|
37408
37468
|
bs as useWithdrawAction,
|
|
37409
37469
|
Ts as useWithdrawTransaction,
|
|
37410
|
-
|
|
37470
|
+
jm as useWithdrawWalletLog
|
|
37411
37471
|
};
|