@obb871001/api-integration-sdk 1.0.215 → 1.0.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.js +605 -620
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import va, { createContext as fn, useContext as Un, useCallback as I, useRef as et, useMemo as wa, useEffect as ba } from "react";
|
|
2
|
-
import { useQueries as yn, useQuery as ee, useQueryClient as
|
|
3
|
-
import
|
|
4
|
-
import { get as De, find as Ae, isEmpty as me, entries as bn, map as ve, isArray as Le, toLower as at, omit as
|
|
5
|
-
import
|
|
2
|
+
import { useQueries as yn, useQuery as ee, useQueryClient as Yn, useMutation as fe, QueryClient as Xn, QueryClientProvider as el } from "@tanstack/react-query";
|
|
3
|
+
import al from "axios";
|
|
4
|
+
import { get as De, find as Ae, isEmpty as me, entries as bn, map as ve, isArray as Le, toLower as at, omit as il, replace as it, includes as tl, isObject as Ti, flatMap as hi, values as nl, keys as tt } from "lodash";
|
|
5
|
+
import ll from "react-dom";
|
|
6
6
|
var Pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function zi(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function rl(e) {
|
|
11
11
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
12
|
-
var
|
|
13
|
-
if (typeof
|
|
12
|
+
var s = e.default;
|
|
13
|
+
if (typeof s == "function") {
|
|
14
14
|
var n = function i() {
|
|
15
15
|
var p = !1;
|
|
16
16
|
try {
|
|
17
17
|
p = this instanceof i;
|
|
18
18
|
} catch {
|
|
19
19
|
}
|
|
20
|
-
return p ? Reflect.construct(
|
|
20
|
+
return p ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
|
|
21
21
|
};
|
|
22
|
-
n.prototype =
|
|
22
|
+
n.prototype = s.prototype;
|
|
23
23
|
} else n = {};
|
|
24
24
|
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(i) {
|
|
25
25
|
var p = Object.getOwnPropertyDescriptor(e, i);
|
|
@@ -33,24 +33,24 @@ function ol(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var Ra = { exports: {} }, _a = {};
|
|
35
35
|
var nt;
|
|
36
|
-
function
|
|
36
|
+
function ol() {
|
|
37
37
|
if (nt) return _a;
|
|
38
38
|
nt = 1;
|
|
39
|
-
var e = va,
|
|
39
|
+
var e = va, s = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function C(c, g, a) {
|
|
41
41
|
var t, m = {}, l = null, r = null;
|
|
42
42
|
a !== void 0 && (l = "" + a), g.key !== void 0 && (l = "" + g.key), g.ref !== void 0 && (r = g.ref);
|
|
43
43
|
for (t in g) i.call(g, t) && !d.hasOwnProperty(t) && (m[t] = g[t]);
|
|
44
44
|
if (c && c.defaultProps) for (t in g = c.defaultProps, g) m[t] === void 0 && (m[t] = g[t]);
|
|
45
|
-
return { $$typeof:
|
|
45
|
+
return { $$typeof: s, type: c, key: l, ref: r, props: m, _owner: p.current };
|
|
46
46
|
}
|
|
47
47
|
return _a.Fragment = n, _a.jsx = C, _a.jsxs = C, _a;
|
|
48
48
|
}
|
|
49
49
|
var fa = {};
|
|
50
50
|
var lt;
|
|
51
|
-
function
|
|
51
|
+
function ml() {
|
|
52
52
|
return lt || (lt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = va,
|
|
53
|
+
var e = va, s = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), o = Symbol.iterator, f = "@@iterator";
|
|
54
54
|
function _(T) {
|
|
55
55
|
if (T === null || typeof T != "object")
|
|
56
56
|
return null;
|
|
@@ -58,7 +58,7 @@ function sl() {
|
|
|
58
58
|
return typeof B == "function" ? B : null;
|
|
59
59
|
}
|
|
60
60
|
var U = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
|
-
function
|
|
61
|
+
function u(T) {
|
|
62
62
|
{
|
|
63
63
|
for (var B = arguments.length, V = new Array(B > 1 ? B - 1 : 0), J = 1; J < B; J++)
|
|
64
64
|
V[J - 1] = arguments[J];
|
|
@@ -97,7 +97,7 @@ function sl() {
|
|
|
97
97
|
function N(T) {
|
|
98
98
|
if (T == null)
|
|
99
99
|
return null;
|
|
100
|
-
if (typeof T.tag == "number" &&
|
|
100
|
+
if (typeof T.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof T == "function")
|
|
101
101
|
return T.displayName || T.name || null;
|
|
102
102
|
if (typeof T == "string")
|
|
103
103
|
return T;
|
|
@@ -198,7 +198,7 @@ function sl() {
|
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
G < 0 &&
|
|
201
|
+
G < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
var q = U.ReactCurrentDispatcher, Y;
|
|
@@ -350,12 +350,12 @@ function sl() {
|
|
|
350
350
|
} catch (le) {
|
|
351
351
|
j = le;
|
|
352
352
|
}
|
|
353
|
-
j && !(j instanceof Error) && (We(X),
|
|
353
|
+
j && !(j instanceof Error) && (We(X), u("%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).", J || "React class", V, Q, typeof j), We(null)), j instanceof Error && !(j.message in Ke) && (Ke[j.message] = !0, We(X), u("Failed %s type: %s", V, j.message), We(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
var Te = Array.isArray;
|
|
358
|
-
function
|
|
358
|
+
function pe(T) {
|
|
359
359
|
return Te(T);
|
|
360
360
|
}
|
|
361
361
|
function Ee(T) {
|
|
@@ -376,7 +376,7 @@ function sl() {
|
|
|
376
376
|
}
|
|
377
377
|
function Re(T) {
|
|
378
378
|
if (na(T))
|
|
379
|
-
return
|
|
379
|
+
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ee(T)), ua(T);
|
|
380
380
|
}
|
|
381
381
|
var ze = U.ReactCurrentOwner, Si = {
|
|
382
382
|
key: !0,
|
|
@@ -406,7 +406,7 @@ function sl() {
|
|
|
406
406
|
function ha(T, B) {
|
|
407
407
|
{
|
|
408
408
|
var V = function() {
|
|
409
|
-
pa || (pa = !0,
|
|
409
|
+
pa || (pa = !0, u("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", B));
|
|
410
410
|
};
|
|
411
411
|
V.isReactWarning = !0, Object.defineProperty(T, "key", {
|
|
412
412
|
get: V,
|
|
@@ -417,7 +417,7 @@ function sl() {
|
|
|
417
417
|
function ka(T, B) {
|
|
418
418
|
{
|
|
419
419
|
var V = function() {
|
|
420
|
-
ga || (ga = !0,
|
|
420
|
+
ga || (ga = !0, u("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", B));
|
|
421
421
|
};
|
|
422
422
|
V.isReactWarning = !0, Object.defineProperty(T, "ref", {
|
|
423
423
|
get: V,
|
|
@@ -428,7 +428,7 @@ function sl() {
|
|
|
428
428
|
var Ei = function(T, B, V, J, X, ae, Q) {
|
|
429
429
|
var j = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
|
-
$$typeof:
|
|
431
|
+
$$typeof: s,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: T,
|
|
434
434
|
key: B,
|
|
@@ -483,7 +483,7 @@ function sl() {
|
|
|
483
483
|
var da;
|
|
484
484
|
da = !1;
|
|
485
485
|
function ra(T) {
|
|
486
|
-
return typeof T == "object" && T !== null && T.$$typeof ===
|
|
486
|
+
return typeof T == "object" && T !== null && T.$$typeof === s;
|
|
487
487
|
}
|
|
488
488
|
function Sa() {
|
|
489
489
|
{
|
|
@@ -523,14 +523,14 @@ Check the top-level render call using <` + V + ">.");
|
|
|
523
523
|
return;
|
|
524
524
|
Da[V] = !0;
|
|
525
525
|
var J = "";
|
|
526
|
-
T && T._owner && T._owner !== la.current && (J = " It was passed a child from " + N(T._owner.type) + "."), Pe(T),
|
|
526
|
+
T && T._owner && T._owner !== la.current && (J = " It was passed a child from " + N(T._owner.type) + "."), Pe(T), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, J), Pe(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function La(T, B) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof T != "object")
|
|
532
532
|
return;
|
|
533
|
-
if (
|
|
533
|
+
if (pe(T))
|
|
534
534
|
for (var V = 0; V < T.length; V++) {
|
|
535
535
|
var J = T[V];
|
|
536
536
|
ra(J) && Na(J, B);
|
|
@@ -565,9 +565,9 @@ Check the top-level render call using <` + V + ">.");
|
|
|
565
565
|
} else if (B.PropTypes !== void 0 && !da) {
|
|
566
566
|
da = !0;
|
|
567
567
|
var X = N(B);
|
|
568
|
-
|
|
568
|
+
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", X || "Unknown");
|
|
569
569
|
}
|
|
570
|
-
typeof B.getDefaultProps == "function" && !B.getDefaultProps.isReactClassApproved &&
|
|
570
|
+
typeof B.getDefaultProps == "function" && !B.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function Gi(T) {
|
|
@@ -575,15 +575,15 @@ Check the top-level render call using <` + V + ">.");
|
|
|
575
575
|
for (var B = Object.keys(T.props), V = 0; V < B.length; V++) {
|
|
576
576
|
var J = B[V];
|
|
577
577
|
if (J !== "children" && J !== "key") {
|
|
578
|
-
Pe(T),
|
|
578
|
+
Pe(T), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", J), Pe(null);
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
T.ref !== null && (Pe(T),
|
|
582
|
+
T.ref !== null && (Pe(T), u("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var ca = {};
|
|
586
|
-
function
|
|
586
|
+
function ge(T, B, V, J, X, ae) {
|
|
587
587
|
{
|
|
588
588
|
var Q = k(T);
|
|
589
589
|
if (!Q) {
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
592
592
|
var _e = Li();
|
|
593
593
|
_e ? j += _e : j += Sa();
|
|
594
594
|
var le;
|
|
595
|
-
T === null ? le = "null" :
|
|
595
|
+
T === null ? le = "null" : pe(T) ? le = "array" : T !== void 0 && T.$$typeof === s ? (le = "<" + (N(T.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : le = typeof T, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, j);
|
|
596
596
|
}
|
|
597
597
|
var re = Ni(T, B, V, X, ae);
|
|
598
598
|
if (re == null)
|
|
@@ -601,47 +601,47 @@ Check the top-level render call using <` + V + ">.");
|
|
|
601
601
|
var ke = B.children;
|
|
602
602
|
if (ke !== void 0)
|
|
603
603
|
if (J)
|
|
604
|
-
if (
|
|
604
|
+
if (pe(ke)) {
|
|
605
605
|
for (var oa = 0; oa < ke.length; oa++)
|
|
606
606
|
La(ke[oa], T);
|
|
607
607
|
Object.freeze && Object.freeze(ke);
|
|
608
608
|
} else
|
|
609
|
-
|
|
609
|
+
u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
610
610
|
else
|
|
611
611
|
La(ke, T);
|
|
612
612
|
}
|
|
613
613
|
if (Se.call(B, "key")) {
|
|
614
|
-
var $e = N(T), Ce = Object.keys(B).filter(function(
|
|
615
|
-
return
|
|
614
|
+
var $e = N(T), Ce = Object.keys(B).filter(function(Qn) {
|
|
615
|
+
return Qn !== "key";
|
|
616
616
|
}), Ri = Ce.length > 0 ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ca[$e + Ri]) {
|
|
618
|
-
var
|
|
619
|
-
|
|
618
|
+
var $n = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
|
|
619
|
+
u(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
622
622
|
React keys must be passed directly to JSX without using spread:
|
|
623
623
|
let props = %s;
|
|
624
|
-
<%s key={someKey} {...props} />`, Ri, $e,
|
|
624
|
+
<%s key={someKey} {...props} />`, Ri, $e, $n, $e), ca[$e + Ri] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
return T === i ? Gi(re) : Ga(re), re;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function Ne(T, B, V) {
|
|
631
|
-
return
|
|
631
|
+
return ge(T, B, V, !0);
|
|
632
632
|
}
|
|
633
633
|
function Ma(T, B, V) {
|
|
634
|
-
return
|
|
634
|
+
return ge(T, B, V, !1);
|
|
635
635
|
}
|
|
636
|
-
var Mi = Ma,
|
|
637
|
-
fa.Fragment = i, fa.jsx = Mi, fa.jsxs =
|
|
636
|
+
var Mi = Ma, jn = Ne;
|
|
637
|
+
fa.Fragment = i, fa.jsx = Mi, fa.jsxs = jn;
|
|
638
638
|
})()), fa;
|
|
639
639
|
}
|
|
640
640
|
var rt;
|
|
641
|
-
function
|
|
642
|
-
return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports =
|
|
641
|
+
function sl() {
|
|
642
|
+
return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports = ol() : Ra.exports = ml()), Ra.exports;
|
|
643
643
|
}
|
|
644
|
-
var Oa =
|
|
644
|
+
var Oa = sl();
|
|
645
645
|
const Cn = fn(null), te = () => {
|
|
646
646
|
const e = Un(Cn);
|
|
647
647
|
if (!e)
|
|
@@ -666,7 +666,7 @@ const Cn = fn(null), te = () => {
|
|
|
666
666
|
default:
|
|
667
667
|
return e;
|
|
668
668
|
}
|
|
669
|
-
}, Be = "https://d1h3qe8voog6w4.cloudfront.net", ot = "https://d3jx2uvukujuvn.cloudfront.net", vn = (e) => `${Be}/reward_icon/${e}.avif`, Tn = () => `${Be}/reward_icon/background_deposit.avif`, hn = "ds88platformIcon",
|
|
669
|
+
}, Be = "https://d1h3qe8voog6w4.cloudfront.net", ot = "https://d3jx2uvukujuvn.cloudfront.net", vn = (e) => `${Be}/reward_icon/${e}.avif`, Tn = () => `${Be}/reward_icon/background_deposit.avif`, hn = "ds88platformIcon", ul = {
|
|
670
670
|
zh_TW: "系統提示",
|
|
671
671
|
zh_CN: "系统提示",
|
|
672
672
|
en_US: "System Prompt",
|
|
@@ -677,7 +677,7 @@ const Cn = fn(null), te = () => {
|
|
|
677
677
|
};
|
|
678
678
|
function mt({
|
|
679
679
|
baseURL: e,
|
|
680
|
-
getToken:
|
|
680
|
+
getToken: s,
|
|
681
681
|
timeoutMs: n = 15e3,
|
|
682
682
|
lng: i = "tw",
|
|
683
683
|
store: p,
|
|
@@ -686,7 +686,7 @@ function mt({
|
|
|
686
686
|
currency: c,
|
|
687
687
|
toasterOpen: g = !1
|
|
688
688
|
} = {}) {
|
|
689
|
-
const a =
|
|
689
|
+
const a = al.create({
|
|
690
690
|
baseURL: e,
|
|
691
691
|
timeout: n,
|
|
692
692
|
headers: {
|
|
@@ -694,8 +694,8 @@ function mt({
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
return a.interceptors.request.use(async (t) => {
|
|
697
|
-
if (t.headers = t.headers || {},
|
|
698
|
-
const l = await
|
|
697
|
+
if (t.headers = t.headers || {}, s) {
|
|
698
|
+
const l = await s();
|
|
699
699
|
l && (t.headers.Authorization = `Bearer ${l}`);
|
|
700
700
|
}
|
|
701
701
|
const m = p?.getState()?.isWalletCurrency || c || "TWD";
|
|
@@ -713,7 +713,7 @@ function mt({
|
|
|
713
713
|
p?.dispatch({
|
|
714
714
|
type: "ui/showToast",
|
|
715
715
|
payload: {
|
|
716
|
-
title:
|
|
716
|
+
title: ul[l] || "System Prompt",
|
|
717
717
|
description: m,
|
|
718
718
|
status: "error",
|
|
719
719
|
duration: 3e3
|
|
@@ -724,15 +724,15 @@ function mt({
|
|
|
724
724
|
}
|
|
725
725
|
), a;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
728
|
-
const e = Un(
|
|
727
|
+
const kn = fn(null), Qo = () => {
|
|
728
|
+
const e = Un(kn);
|
|
729
729
|
if (!e)
|
|
730
730
|
throw new Error(
|
|
731
731
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
732
732
|
);
|
|
733
733
|
return e;
|
|
734
734
|
}, Yo = () => {
|
|
735
|
-
const e = (i, p) => !i && !p,
|
|
735
|
+
const e = (i, p) => !i && !p, s = (i) => i.startsWith("pc.");
|
|
736
736
|
return {
|
|
737
737
|
executeLogout: ({
|
|
738
738
|
isCallBackInvalid: i = !1,
|
|
@@ -744,32 +744,32 @@ const xn = fn(null), Qo = () => {
|
|
|
744
744
|
onRedirect: a,
|
|
745
745
|
onGoogleLogout: t
|
|
746
746
|
}) => {
|
|
747
|
-
const m =
|
|
747
|
+
const m = s(p);
|
|
748
748
|
e(i, m) && C?.(), c?.(), g?.(), d && a?.("/"), t?.();
|
|
749
749
|
},
|
|
750
750
|
shouldShowErrorNotice: e,
|
|
751
|
-
isMachineDomain:
|
|
751
|
+
isMachineDomain: s
|
|
752
752
|
};
|
|
753
753
|
}, Xo = (e) => {
|
|
754
|
-
let
|
|
755
|
-
return isNaN(
|
|
754
|
+
let s = Number(e);
|
|
755
|
+
return isNaN(s) ? e : new Intl.NumberFormat("en-US", {
|
|
756
756
|
style: "decimal",
|
|
757
757
|
minimumFractionDigits: 2,
|
|
758
758
|
maximumFractionDigits: 2
|
|
759
|
-
}).format(
|
|
760
|
-
},
|
|
759
|
+
}).format(s);
|
|
760
|
+
}, xn = (e = [], s) => Ae(e, { gameTypeName: s })?.gameTypeUid, Sn = (e = [], s) => Ae(e, { platform: s })?.platformUid, Dn = (e = [], s) => Ae(e, { SubPlatformEnum: s }), En = (e = [], s, n) => me(e) ? [] : e.filter((i) => n ? String(i?.SubPlatformEnumUid) === String(n?.SubPlatformEnumUid) : String(i.platformUid) === String(s)), pl = (e = []) => me(e) ? {} : e.reduce((s, n) => {
|
|
761
761
|
const i = n?.game_subtype || "UNKNOWN";
|
|
762
|
-
return
|
|
762
|
+
return s[i] || (s[i] = []), s[i].push(n), s;
|
|
763
763
|
}, {}), gl = ({
|
|
764
764
|
gameTypeName: e,
|
|
765
|
-
platforms:
|
|
765
|
+
platforms: s,
|
|
766
766
|
gameList: n,
|
|
767
767
|
allGameTypes: i,
|
|
768
768
|
allPlatforms: p
|
|
769
769
|
}) => {
|
|
770
|
-
const d =
|
|
771
|
-
return d ?
|
|
772
|
-
const g =
|
|
770
|
+
const d = xn(i, e);
|
|
771
|
+
return d ? s.reduce((C, c) => {
|
|
772
|
+
const g = Sn(p, c), a = Dn(p, c), t = n[d] || [], m = En(
|
|
773
773
|
t,
|
|
774
774
|
g,
|
|
775
775
|
a
|
|
@@ -778,11 +778,11 @@ const xn = fn(null), Qo = () => {
|
|
|
778
778
|
}, {}) : {};
|
|
779
779
|
}, dl = ({
|
|
780
780
|
platformName: e,
|
|
781
|
-
gamesOfType:
|
|
781
|
+
gamesOfType: s = [],
|
|
782
782
|
allPlatforms: n = []
|
|
783
783
|
}) => {
|
|
784
|
-
const i =
|
|
785
|
-
|
|
784
|
+
const i = Sn(n, e), p = Dn(n, e), d = En(
|
|
785
|
+
s,
|
|
786
786
|
i,
|
|
787
787
|
p
|
|
788
788
|
);
|
|
@@ -790,11 +790,11 @@ const xn = fn(null), Qo = () => {
|
|
|
790
790
|
};
|
|
791
791
|
var Aa = { exports: {} }, cl = Aa.exports, st;
|
|
792
792
|
function _l() {
|
|
793
|
-
return st || (st = 1, (function(e,
|
|
793
|
+
return st || (st = 1, (function(e, s) {
|
|
794
794
|
(function(n, i) {
|
|
795
795
|
e.exports = i();
|
|
796
796
|
})(cl, (function() {
|
|
797
|
-
var n = 1e3, i = 6e4, p = 36e5, d = "millisecond", C = "second", c = "minute", g = "hour", a = "day", t = "week", m = "month", l = "quarter", r = "year", o = "date", f = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
797
|
+
var n = 1e3, i = 6e4, p = 36e5, d = "millisecond", C = "second", c = "minute", g = "hour", a = "day", t = "week", m = "month", l = "quarter", r = "year", o = "date", f = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
798
798
|
var G = ["th", "st", "nd", "rd"], M = w % 100;
|
|
799
799
|
return "[" + w + (G[(M - 20) % 10] || G[M] || G[0]) + "]";
|
|
800
800
|
} }, y = function(w, G, M) {
|
|
@@ -814,7 +814,7 @@ function _l() {
|
|
|
814
814
|
}, u: function(w) {
|
|
815
815
|
return w === void 0;
|
|
816
816
|
} }, v = "en", h = {};
|
|
817
|
-
h[v] =
|
|
817
|
+
h[v] = u;
|
|
818
818
|
var S = "$isDayjsObject", D = function(w) {
|
|
819
819
|
return w instanceof L || !(!w || !w[S]);
|
|
820
820
|
}, O = function w(G, M, W) {
|
|
@@ -1067,7 +1067,7 @@ function _l() {
|
|
|
1067
1067
|
})(Aa)), Aa.exports;
|
|
1068
1068
|
}
|
|
1069
1069
|
var fl = _l();
|
|
1070
|
-
const
|
|
1070
|
+
const de = /* @__PURE__ */ zi(fl);
|
|
1071
1071
|
var Ba = { exports: {} };
|
|
1072
1072
|
function Ul(e) {
|
|
1073
1073
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -1076,10 +1076,10 @@ var Ha = { exports: {} };
|
|
|
1076
1076
|
const yl = {}, bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1077
1077
|
__proto__: null,
|
|
1078
1078
|
default: yl
|
|
1079
|
-
}, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */
|
|
1079
|
+
}, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ rl(bl);
|
|
1080
1080
|
var vl = Ha.exports, ut;
|
|
1081
1081
|
function $() {
|
|
1082
|
-
return ut || (ut = 1, (function(e,
|
|
1082
|
+
return ut || (ut = 1, (function(e, s) {
|
|
1083
1083
|
(function(n, i) {
|
|
1084
1084
|
e.exports = i();
|
|
1085
1085
|
})(vl, function() {
|
|
@@ -1105,11 +1105,11 @@ function $() {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
1107
1107
|
}, c = Object.create || /* @__PURE__ */ (function() {
|
|
1108
|
-
function
|
|
1108
|
+
function u() {
|
|
1109
1109
|
}
|
|
1110
1110
|
return function(y) {
|
|
1111
1111
|
var b;
|
|
1112
|
-
return
|
|
1112
|
+
return u.prototype = y, b = new u(), u.prototype = null, b;
|
|
1113
1113
|
};
|
|
1114
1114
|
})(), g = {}, a = g.lib = {}, t = a.Base = /* @__PURE__ */ (function() {
|
|
1115
1115
|
return {
|
|
@@ -1131,9 +1131,9 @@ function $() {
|
|
|
1131
1131
|
* }
|
|
1132
1132
|
* });
|
|
1133
1133
|
*/
|
|
1134
|
-
extend: function(
|
|
1134
|
+
extend: function(u) {
|
|
1135
1135
|
var y = c(this);
|
|
1136
|
-
return
|
|
1136
|
+
return u && y.mixIn(u), (!y.hasOwnProperty("init") || this.init === y.init) && (y.init = function() {
|
|
1137
1137
|
y.$super.init.apply(this, arguments);
|
|
1138
1138
|
}), y.init.prototype = y, y.$super = this, y;
|
|
1139
1139
|
},
|
|
@@ -1150,8 +1150,8 @@ function $() {
|
|
|
1150
1150
|
* var instance = MyType.create();
|
|
1151
1151
|
*/
|
|
1152
1152
|
create: function() {
|
|
1153
|
-
var
|
|
1154
|
-
return
|
|
1153
|
+
var u = this.extend();
|
|
1154
|
+
return u.init.apply(u, arguments), u;
|
|
1155
1155
|
},
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Initializes a newly created object.
|
|
@@ -1178,10 +1178,10 @@ function $() {
|
|
|
1178
1178
|
* field: 'value'
|
|
1179
1179
|
* });
|
|
1180
1180
|
*/
|
|
1181
|
-
mixIn: function(
|
|
1182
|
-
for (var y in
|
|
1183
|
-
|
|
1184
|
-
|
|
1181
|
+
mixIn: function(u) {
|
|
1182
|
+
for (var y in u)
|
|
1183
|
+
u.hasOwnProperty(y) && (this[y] = u[y]);
|
|
1184
|
+
u.hasOwnProperty("toString") && (this.toString = u.toString);
|
|
1185
1185
|
},
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Creates a copy of this object.
|
|
@@ -1209,8 +1209,8 @@ function $() {
|
|
|
1209
1209
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
1210
1210
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
1211
1211
|
*/
|
|
1212
|
-
init: function(
|
|
1213
|
-
|
|
1212
|
+
init: function(u, y) {
|
|
1213
|
+
u = this.words = u || [], y != p ? this.sigBytes = y : this.sigBytes = u.length * 4;
|
|
1214
1214
|
},
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Converts this word array to a string.
|
|
@@ -1225,8 +1225,8 @@ function $() {
|
|
|
1225
1225
|
* var string = wordArray.toString();
|
|
1226
1226
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
1227
1227
|
*/
|
|
1228
|
-
toString: function(
|
|
1229
|
-
return (
|
|
1228
|
+
toString: function(u) {
|
|
1229
|
+
return (u || r).stringify(this);
|
|
1230
1230
|
},
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Concatenates a word array to this word array.
|
|
@@ -1239,8 +1239,8 @@ function $() {
|
|
|
1239
1239
|
*
|
|
1240
1240
|
* wordArray1.concat(wordArray2);
|
|
1241
1241
|
*/
|
|
1242
|
-
concat: function(
|
|
1243
|
-
var y = this.words, b =
|
|
1242
|
+
concat: function(u) {
|
|
1243
|
+
var y = this.words, b = u.words, v = this.sigBytes, h = u.sigBytes;
|
|
1244
1244
|
if (this.clamp(), v % 4)
|
|
1245
1245
|
for (var S = 0; S < h; S++) {
|
|
1246
1246
|
var D = b[S >>> 2] >>> 24 - S % 4 * 8 & 255;
|
|
@@ -1259,8 +1259,8 @@ function $() {
|
|
|
1259
1259
|
* wordArray.clamp();
|
|
1260
1260
|
*/
|
|
1261
1261
|
clamp: function() {
|
|
1262
|
-
var
|
|
1263
|
-
|
|
1262
|
+
var u = this.words, y = this.sigBytes;
|
|
1263
|
+
u[y >>> 2] &= 4294967295 << 32 - y % 4 * 8, u.length = i.ceil(y / 4);
|
|
1264
1264
|
},
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Creates a copy of this word array.
|
|
@@ -1272,8 +1272,8 @@ function $() {
|
|
|
1272
1272
|
* var clone = wordArray.clone();
|
|
1273
1273
|
*/
|
|
1274
1274
|
clone: function() {
|
|
1275
|
-
var
|
|
1276
|
-
return
|
|
1275
|
+
var u = t.clone.call(this);
|
|
1276
|
+
return u.words = this.words.slice(0), u;
|
|
1277
1277
|
},
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Creates a word array filled with random bytes.
|
|
@@ -1288,10 +1288,10 @@ function $() {
|
|
|
1288
1288
|
*
|
|
1289
1289
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
1290
1290
|
*/
|
|
1291
|
-
random: function(
|
|
1292
|
-
for (var y = [], b = 0; b <
|
|
1291
|
+
random: function(u) {
|
|
1292
|
+
for (var y = [], b = 0; b < u; b += 4)
|
|
1293
1293
|
y.push(C());
|
|
1294
|
-
return new m.init(y,
|
|
1294
|
+
return new m.init(y, u);
|
|
1295
1295
|
}
|
|
1296
1296
|
}), l = g.enc = {}, r = l.Hex = {
|
|
1297
1297
|
/**
|
|
@@ -1307,8 +1307,8 @@ function $() {
|
|
|
1307
1307
|
*
|
|
1308
1308
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
1309
1309
|
*/
|
|
1310
|
-
stringify: function(
|
|
1311
|
-
for (var y =
|
|
1310
|
+
stringify: function(u) {
|
|
1311
|
+
for (var y = u.words, b = u.sigBytes, v = [], h = 0; h < b; h++) {
|
|
1312
1312
|
var S = y[h >>> 2] >>> 24 - h % 4 * 8 & 255;
|
|
1313
1313
|
v.push((S >>> 4).toString(16)), v.push((S & 15).toString(16));
|
|
1314
1314
|
}
|
|
@@ -1327,9 +1327,9 @@ function $() {
|
|
|
1327
1327
|
*
|
|
1328
1328
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
1329
1329
|
*/
|
|
1330
|
-
parse: function(
|
|
1331
|
-
for (var y =
|
|
1332
|
-
b[v >>> 3] |= parseInt(
|
|
1330
|
+
parse: function(u) {
|
|
1331
|
+
for (var y = u.length, b = [], v = 0; v < y; v += 2)
|
|
1332
|
+
b[v >>> 3] |= parseInt(u.substr(v, 2), 16) << 24 - v % 8 * 4;
|
|
1333
1333
|
return new m.init(b, y / 2);
|
|
1334
1334
|
}
|
|
1335
1335
|
}, o = l.Latin1 = {
|
|
@@ -1346,8 +1346,8 @@ function $() {
|
|
|
1346
1346
|
*
|
|
1347
1347
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
1348
1348
|
*/
|
|
1349
|
-
stringify: function(
|
|
1350
|
-
for (var y =
|
|
1349
|
+
stringify: function(u) {
|
|
1350
|
+
for (var y = u.words, b = u.sigBytes, v = [], h = 0; h < b; h++) {
|
|
1351
1351
|
var S = y[h >>> 2] >>> 24 - h % 4 * 8 & 255;
|
|
1352
1352
|
v.push(String.fromCharCode(S));
|
|
1353
1353
|
}
|
|
@@ -1366,9 +1366,9 @@ function $() {
|
|
|
1366
1366
|
*
|
|
1367
1367
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
1368
1368
|
*/
|
|
1369
|
-
parse: function(
|
|
1370
|
-
for (var y =
|
|
1371
|
-
b[v >>> 2] |= (
|
|
1369
|
+
parse: function(u) {
|
|
1370
|
+
for (var y = u.length, b = [], v = 0; v < y; v++)
|
|
1371
|
+
b[v >>> 2] |= (u.charCodeAt(v) & 255) << 24 - v % 4 * 8;
|
|
1372
1372
|
return new m.init(b, y);
|
|
1373
1373
|
}
|
|
1374
1374
|
}, f = l.Utf8 = {
|
|
@@ -1385,9 +1385,9 @@ function $() {
|
|
|
1385
1385
|
*
|
|
1386
1386
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
1387
1387
|
*/
|
|
1388
|
-
stringify: function(
|
|
1388
|
+
stringify: function(u) {
|
|
1389
1389
|
try {
|
|
1390
|
-
return decodeURIComponent(escape(o.stringify(
|
|
1390
|
+
return decodeURIComponent(escape(o.stringify(u)));
|
|
1391
1391
|
} catch {
|
|
1392
1392
|
throw new Error("Malformed UTF-8 data");
|
|
1393
1393
|
}
|
|
@@ -1405,8 +1405,8 @@ function $() {
|
|
|
1405
1405
|
*
|
|
1406
1406
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
1407
1407
|
*/
|
|
1408
|
-
parse: function(
|
|
1409
|
-
return o.parse(unescape(encodeURIComponent(
|
|
1408
|
+
parse: function(u) {
|
|
1409
|
+
return o.parse(unescape(encodeURIComponent(u)));
|
|
1410
1410
|
}
|
|
1411
1411
|
}, _ = a.BufferedBlockAlgorithm = t.extend({
|
|
1412
1412
|
/**
|
|
@@ -1429,8 +1429,8 @@ function $() {
|
|
|
1429
1429
|
* bufferedBlockAlgorithm._append('data');
|
|
1430
1430
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
1431
1431
|
*/
|
|
1432
|
-
_append: function(
|
|
1433
|
-
typeof
|
|
1432
|
+
_append: function(u) {
|
|
1433
|
+
typeof u == "string" && (u = f.parse(u)), this._data.concat(u), this._nDataBytes += u.sigBytes;
|
|
1434
1434
|
},
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Processes available data blocks.
|
|
@@ -1446,9 +1446,9 @@ function $() {
|
|
|
1446
1446
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
1447
1447
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1448
1448
|
*/
|
|
1449
|
-
_process: function(
|
|
1449
|
+
_process: function(u) {
|
|
1450
1450
|
var y, b = this._data, v = b.words, h = b.sigBytes, S = this.blockSize, D = S * 4, O = h / D;
|
|
1451
|
-
|
|
1451
|
+
u ? O = i.ceil(O) : O = i.max((O | 0) - this._minBufferSize, 0);
|
|
1452
1452
|
var k = O * S, x = i.min(k * 4, h);
|
|
1453
1453
|
if (k) {
|
|
1454
1454
|
for (var L = 0; L < k; L += S)
|
|
@@ -1467,8 +1467,8 @@ function $() {
|
|
|
1467
1467
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
1468
1468
|
*/
|
|
1469
1469
|
clone: function() {
|
|
1470
|
-
var
|
|
1471
|
-
return
|
|
1470
|
+
var u = t.clone.call(this);
|
|
1471
|
+
return u._data = this._data.clone(), u;
|
|
1472
1472
|
},
|
|
1473
1473
|
_minBufferSize: 0
|
|
1474
1474
|
});
|
|
@@ -1486,8 +1486,8 @@ function $() {
|
|
|
1486
1486
|
*
|
|
1487
1487
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
1488
1488
|
*/
|
|
1489
|
-
init: function(
|
|
1490
|
-
this.cfg = this.cfg.extend(
|
|
1489
|
+
init: function(u) {
|
|
1490
|
+
this.cfg = this.cfg.extend(u), this.reset();
|
|
1491
1491
|
},
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Resets this hasher to its initial state.
|
|
@@ -1511,8 +1511,8 @@ function $() {
|
|
|
1511
1511
|
* hasher.update('message');
|
|
1512
1512
|
* hasher.update(wordArray);
|
|
1513
1513
|
*/
|
|
1514
|
-
update: function(
|
|
1515
|
-
return this._append(
|
|
1514
|
+
update: function(u) {
|
|
1515
|
+
return this._append(u), this._process(), this;
|
|
1516
1516
|
},
|
|
1517
1517
|
/**
|
|
1518
1518
|
* Finalizes the hash computation.
|
|
@@ -1528,8 +1528,8 @@ function $() {
|
|
|
1528
1528
|
* var hash = hasher.finalize('message');
|
|
1529
1529
|
* var hash = hasher.finalize(wordArray);
|
|
1530
1530
|
*/
|
|
1531
|
-
finalize: function(
|
|
1532
|
-
|
|
1531
|
+
finalize: function(u) {
|
|
1532
|
+
u && this._append(u);
|
|
1533
1533
|
var y = this._doFinalize();
|
|
1534
1534
|
return y;
|
|
1535
1535
|
},
|
|
@@ -1547,9 +1547,9 @@ function $() {
|
|
|
1547
1547
|
*
|
|
1548
1548
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1549
1549
|
*/
|
|
1550
|
-
_createHelper: function(
|
|
1550
|
+
_createHelper: function(u) {
|
|
1551
1551
|
return function(y, b) {
|
|
1552
|
-
return new
|
|
1552
|
+
return new u.init(b).finalize(y);
|
|
1553
1553
|
};
|
|
1554
1554
|
},
|
|
1555
1555
|
/**
|
|
@@ -1565,9 +1565,9 @@ function $() {
|
|
|
1565
1565
|
*
|
|
1566
1566
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1567
1567
|
*/
|
|
1568
|
-
_createHmacHelper: function(
|
|
1568
|
+
_createHmacHelper: function(u) {
|
|
1569
1569
|
return function(y, b) {
|
|
1570
|
-
return new U.HMAC.init(
|
|
1570
|
+
return new U.HMAC.init(u, b).finalize(y);
|
|
1571
1571
|
};
|
|
1572
1572
|
}
|
|
1573
1573
|
});
|
|
@@ -1580,7 +1580,7 @@ function $() {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
var Wa = { exports: {} }, Tl = Wa.exports, pt;
|
|
1582
1582
|
function ki() {
|
|
1583
|
-
return pt || (pt = 1, (function(e,
|
|
1583
|
+
return pt || (pt = 1, (function(e, s) {
|
|
1584
1584
|
(function(n, i) {
|
|
1585
1585
|
e.exports = i($());
|
|
1586
1586
|
})(Tl, function(n) {
|
|
@@ -1810,7 +1810,7 @@ function ki() {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
var za = { exports: {} }, hl = za.exports, gt;
|
|
1812
1812
|
function kl() {
|
|
1813
|
-
return gt || (gt = 1, (function(e,
|
|
1813
|
+
return gt || (gt = 1, (function(e, s) {
|
|
1814
1814
|
(function(n, i) {
|
|
1815
1815
|
e.exports = i($());
|
|
1816
1816
|
})(hl, function(n) {
|
|
@@ -1832,7 +1832,7 @@ function kl() {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
var Va = { exports: {} }, xl = Va.exports, dt;
|
|
1834
1834
|
function Sl() {
|
|
1835
|
-
return dt || (dt = 1, (function(e,
|
|
1835
|
+
return dt || (dt = 1, (function(e, s) {
|
|
1836
1836
|
(function(n, i) {
|
|
1837
1837
|
e.exports = i($());
|
|
1838
1838
|
})(xl, function(n) {
|
|
@@ -1926,7 +1926,7 @@ function Sl() {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
var Za = { exports: {} }, Dl = Za.exports, ct;
|
|
1928
1928
|
function ia() {
|
|
1929
|
-
return ct || (ct = 1, (function(e,
|
|
1929
|
+
return ct || (ct = 1, (function(e, s) {
|
|
1930
1930
|
(function(n, i) {
|
|
1931
1931
|
e.exports = i($());
|
|
1932
1932
|
})(Dl, function(n) {
|
|
@@ -1950,8 +1950,8 @@ function ia() {
|
|
|
1950
1950
|
var a = g.words, t = g.sigBytes, m = this._map;
|
|
1951
1951
|
g.clamp();
|
|
1952
1952
|
for (var l = [], r = 0; r < t; r += 3)
|
|
1953
|
-
for (var o = a[r >>> 2] >>> 24 - r % 4 * 8 & 255, f = a[r + 1 >>> 2] >>> 24 - (r + 1) % 4 * 8 & 255, _ = a[r + 2 >>> 2] >>> 24 - (r + 2) % 4 * 8 & 255, U = o << 16 | f << 8 | _,
|
|
1954
|
-
l.push(m.charAt(U >>> 6 * (3 -
|
|
1953
|
+
for (var o = a[r >>> 2] >>> 24 - r % 4 * 8 & 255, f = a[r + 1 >>> 2] >>> 24 - (r + 1) % 4 * 8 & 255, _ = a[r + 2 >>> 2] >>> 24 - (r + 2) % 4 * 8 & 255, U = o << 16 | f << 8 | _, u = 0; u < 4 && r + u * 0.75 < t; u++)
|
|
1954
|
+
l.push(m.charAt(U >>> 6 * (3 - u) & 63));
|
|
1955
1955
|
var y = m.charAt(64);
|
|
1956
1956
|
if (y)
|
|
1957
1957
|
for (; l.length % 4; )
|
|
@@ -2001,7 +2001,7 @@ function ia() {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
var Ja = { exports: {} }, El = Ja.exports, _t;
|
|
2003
2003
|
function Nl() {
|
|
2004
|
-
return _t || (_t = 1, (function(e,
|
|
2004
|
+
return _t || (_t = 1, (function(e, s) {
|
|
2005
2005
|
(function(n, i) {
|
|
2006
2006
|
e.exports = i($());
|
|
2007
2007
|
})(El, function(n) {
|
|
@@ -2028,8 +2028,8 @@ function Nl() {
|
|
|
2028
2028
|
var t = g.words, m = g.sigBytes, l = a ? this._safe_map : this._map;
|
|
2029
2029
|
g.clamp();
|
|
2030
2030
|
for (var r = [], o = 0; o < m; o += 3)
|
|
2031
|
-
for (var f = t[o >>> 2] >>> 24 - o % 4 * 8 & 255, _ = t[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255, U = t[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255,
|
|
2032
|
-
r.push(l.charAt(
|
|
2031
|
+
for (var f = t[o >>> 2] >>> 24 - o % 4 * 8 & 255, _ = t[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255, U = t[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, u = f << 16 | _ << 8 | U, y = 0; y < 4 && o + y * 0.75 < m; y++)
|
|
2032
|
+
r.push(l.charAt(u >>> 6 * (3 - y) & 63));
|
|
2033
2033
|
var b = l.charAt(64);
|
|
2034
2034
|
if (b)
|
|
2035
2035
|
for (; r.length % 4; )
|
|
@@ -2083,7 +2083,7 @@ function Nl() {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
var Ia = { exports: {} }, Ll = Ia.exports, ft;
|
|
2085
2085
|
function ta() {
|
|
2086
|
-
return ft || (ft = 1, (function(e,
|
|
2086
|
+
return ft || (ft = 1, (function(e, s) {
|
|
2087
2087
|
(function(n, i) {
|
|
2088
2088
|
e.exports = i($());
|
|
2089
2089
|
})(Ll, function(n) {
|
|
@@ -2104,17 +2104,17 @@ function ta() {
|
|
|
2104
2104
|
},
|
|
2105
2105
|
_doProcessBlock: function(f, _) {
|
|
2106
2106
|
for (var U = 0; U < 16; U++) {
|
|
2107
|
-
var
|
|
2108
|
-
f[
|
|
2107
|
+
var u = _ + U, y = f[u];
|
|
2108
|
+
f[u] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
|
|
2109
2109
|
}
|
|
2110
2110
|
var b = this._hash.words, v = f[_ + 0], h = f[_ + 1], S = f[_ + 2], D = f[_ + 3], O = f[_ + 4], k = f[_ + 5], x = f[_ + 6], L = f[_ + 7], N = f[_ + 8], w = f[_ + 9], G = f[_ + 10], M = f[_ + 11], W = f[_ + 12], A = f[_ + 13], H = f[_ + 14], z = f[_ + 15], E = b[0], P = b[1], F = b[2], R = b[3];
|
|
2111
2111
|
E = m(E, P, F, R, v, 7, a[0]), R = m(R, E, P, F, h, 12, a[1]), F = m(F, R, E, P, S, 17, a[2]), P = m(P, F, R, E, D, 22, a[3]), E = m(E, P, F, R, O, 7, a[4]), R = m(R, E, P, F, k, 12, a[5]), F = m(F, R, E, P, x, 17, a[6]), P = m(P, F, R, E, L, 22, a[7]), E = m(E, P, F, R, N, 7, a[8]), R = m(R, E, P, F, w, 12, a[9]), F = m(F, R, E, P, G, 17, a[10]), P = m(P, F, R, E, M, 22, a[11]), E = m(E, P, F, R, W, 7, a[12]), R = m(R, E, P, F, A, 12, a[13]), F = m(F, R, E, P, H, 17, a[14]), P = m(P, F, R, E, z, 22, a[15]), E = l(E, P, F, R, h, 5, a[16]), R = l(R, E, P, F, x, 9, a[17]), F = l(F, R, E, P, M, 14, a[18]), P = l(P, F, R, E, v, 20, a[19]), E = l(E, P, F, R, k, 5, a[20]), R = l(R, E, P, F, G, 9, a[21]), F = l(F, R, E, P, z, 14, a[22]), P = l(P, F, R, E, O, 20, a[23]), E = l(E, P, F, R, w, 5, a[24]), R = l(R, E, P, F, H, 9, a[25]), F = l(F, R, E, P, D, 14, a[26]), P = l(P, F, R, E, N, 20, a[27]), E = l(E, P, F, R, A, 5, a[28]), R = l(R, E, P, F, S, 9, a[29]), F = l(F, R, E, P, L, 14, a[30]), P = l(P, F, R, E, W, 20, a[31]), E = r(E, P, F, R, k, 4, a[32]), R = r(R, E, P, F, N, 11, a[33]), F = r(F, R, E, P, M, 16, a[34]), P = r(P, F, R, E, H, 23, a[35]), E = r(E, P, F, R, h, 4, a[36]), R = r(R, E, P, F, O, 11, a[37]), F = r(F, R, E, P, L, 16, a[38]), P = r(P, F, R, E, G, 23, a[39]), E = r(E, P, F, R, A, 4, a[40]), R = r(R, E, P, F, v, 11, a[41]), F = r(F, R, E, P, D, 16, a[42]), P = r(P, F, R, E, x, 23, a[43]), E = r(E, P, F, R, w, 4, a[44]), R = r(R, E, P, F, W, 11, a[45]), F = r(F, R, E, P, z, 16, a[46]), P = r(P, F, R, E, S, 23, a[47]), E = o(E, P, F, R, v, 6, a[48]), R = o(R, E, P, F, L, 10, a[49]), F = o(F, R, E, P, H, 15, a[50]), P = o(P, F, R, E, k, 21, a[51]), E = o(E, P, F, R, W, 6, a[52]), R = o(R, E, P, F, D, 10, a[53]), F = o(F, R, E, P, G, 15, a[54]), P = o(P, F, R, E, h, 21, a[55]), E = o(E, P, F, R, N, 6, a[56]), R = o(R, E, P, F, z, 10, a[57]), F = o(F, R, E, P, x, 15, a[58]), P = o(P, F, R, E, A, 21, a[59]), E = o(E, P, F, R, O, 6, a[60]), R = o(R, E, P, F, M, 10, a[61]), F = o(F, R, E, P, S, 15, a[62]), P = o(P, F, R, E, w, 21, a[63]), b[0] = b[0] + E | 0, b[1] = b[1] + P | 0, b[2] = b[2] + F | 0, b[3] = b[3] + R | 0;
|
|
2112
2112
|
},
|
|
2113
2113
|
_doFinalize: function() {
|
|
2114
|
-
var f = this._data, _ = f.words, U = this._nDataBytes * 8,
|
|
2115
|
-
_[
|
|
2114
|
+
var f = this._data, _ = f.words, U = this._nDataBytes * 8, u = f.sigBytes * 8;
|
|
2115
|
+
_[u >>> 5] |= 128 << 24 - u % 32;
|
|
2116
2116
|
var y = i.floor(U / 4294967296), b = U;
|
|
2117
|
-
_[(
|
|
2117
|
+
_[(u + 64 >>> 9 << 4) + 15] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, _[(u + 64 >>> 9 << 4) + 14] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, f.sigBytes = (_.length + 1) * 4, this._process();
|
|
2118
2118
|
for (var v = this._hash, h = v.words, S = 0; S < 4; S++) {
|
|
2119
2119
|
var D = h[S];
|
|
2120
2120
|
h[S] = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
@@ -2126,20 +2126,20 @@ function ta() {
|
|
|
2126
2126
|
return f._hash = this._hash.clone(), f;
|
|
2127
2127
|
}
|
|
2128
2128
|
});
|
|
2129
|
-
function m(f, _, U,
|
|
2130
|
-
var h = f + (_ & U | ~_ &
|
|
2129
|
+
function m(f, _, U, u, y, b, v) {
|
|
2130
|
+
var h = f + (_ & U | ~_ & u) + y + v;
|
|
2131
2131
|
return (h << b | h >>> 32 - b) + _;
|
|
2132
2132
|
}
|
|
2133
|
-
function l(f, _, U,
|
|
2134
|
-
var h = f + (_ &
|
|
2133
|
+
function l(f, _, U, u, y, b, v) {
|
|
2134
|
+
var h = f + (_ & u | U & ~u) + y + v;
|
|
2135
2135
|
return (h << b | h >>> 32 - b) + _;
|
|
2136
2136
|
}
|
|
2137
|
-
function r(f, _, U,
|
|
2138
|
-
var h = f + (_ ^ U ^
|
|
2137
|
+
function r(f, _, U, u, y, b, v) {
|
|
2138
|
+
var h = f + (_ ^ U ^ u) + y + v;
|
|
2139
2139
|
return (h << b | h >>> 32 - b) + _;
|
|
2140
2140
|
}
|
|
2141
|
-
function o(f, _, U,
|
|
2142
|
-
var h = f + (U ^ (_ | ~
|
|
2141
|
+
function o(f, _, U, u, y, b, v) {
|
|
2142
|
+
var h = f + (U ^ (_ | ~u)) + y + v;
|
|
2143
2143
|
return (h << b | h >>> 32 - b) + _;
|
|
2144
2144
|
}
|
|
2145
2145
|
p.MD5 = c._createHelper(t), p.HmacMD5 = c._createHmacHelper(t);
|
|
@@ -2148,8 +2148,8 @@ function ta() {
|
|
|
2148
2148
|
})(Ia)), Ia.exports;
|
|
2149
2149
|
}
|
|
2150
2150
|
var Ka = { exports: {} }, Gl = Ka.exports, Ut;
|
|
2151
|
-
function
|
|
2152
|
-
return Ut || (Ut = 1, (function(e,
|
|
2151
|
+
function Nn() {
|
|
2152
|
+
return Ut || (Ut = 1, (function(e, s) {
|
|
2153
2153
|
(function(n, i) {
|
|
2154
2154
|
e.exports = i($());
|
|
2155
2155
|
})(Gl, function(n) {
|
|
@@ -2165,15 +2165,15 @@ function Ln() {
|
|
|
2165
2165
|
]);
|
|
2166
2166
|
},
|
|
2167
2167
|
_doProcessBlock: function(t, m) {
|
|
2168
|
-
for (var l = this._hash.words, r = l[0], o = l[1], f = l[2], _ = l[3], U = l[4],
|
|
2169
|
-
if (
|
|
2170
|
-
g[
|
|
2168
|
+
for (var l = this._hash.words, r = l[0], o = l[1], f = l[2], _ = l[3], U = l[4], u = 0; u < 80; u++) {
|
|
2169
|
+
if (u < 16)
|
|
2170
|
+
g[u] = t[m + u] | 0;
|
|
2171
2171
|
else {
|
|
2172
|
-
var y = g[
|
|
2173
|
-
g[
|
|
2172
|
+
var y = g[u - 3] ^ g[u - 8] ^ g[u - 14] ^ g[u - 16];
|
|
2173
|
+
g[u] = y << 1 | y >>> 31;
|
|
2174
2174
|
}
|
|
2175
|
-
var b = (r << 5 | r >>> 27) + U + g[
|
|
2176
|
-
|
|
2175
|
+
var b = (r << 5 | r >>> 27) + U + g[u];
|
|
2176
|
+
u < 20 ? b += (o & f | ~o & _) + 1518500249 : u < 40 ? b += (o ^ f ^ _) + 1859775393 : u < 60 ? b += (o & f | o & _ | f & _) - 1894007588 : b += (o ^ f ^ _) - 899497514, U = _, _ = f, f = o << 30 | o >>> 2, o = r, r = b;
|
|
2177
2177
|
}
|
|
2178
2178
|
l[0] = l[0] + r | 0, l[1] = l[1] + o | 0, l[2] = l[2] + f | 0, l[3] = l[3] + _ | 0, l[4] = l[4] + U | 0;
|
|
2179
2179
|
},
|
|
@@ -2193,7 +2193,7 @@ function Ln() {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
var qa = { exports: {} }, Ml = qa.exports, yt;
|
|
2195
2195
|
function Vi() {
|
|
2196
|
-
return yt || (yt = 1, (function(e,
|
|
2196
|
+
return yt || (yt = 1, (function(e, s) {
|
|
2197
2197
|
(function(n, i) {
|
|
2198
2198
|
e.exports = i($());
|
|
2199
2199
|
})(Ml, function(n) {
|
|
@@ -2201,7 +2201,7 @@ function Vi() {
|
|
|
2201
2201
|
var p = n, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = [], t = [];
|
|
2202
2202
|
(function() {
|
|
2203
2203
|
function r(U) {
|
|
2204
|
-
for (var
|
|
2204
|
+
for (var u = i.sqrt(U), y = 2; y <= u; y++)
|
|
2205
2205
|
if (!(U % y))
|
|
2206
2206
|
return !1;
|
|
2207
2207
|
return !0;
|
|
@@ -2217,17 +2217,17 @@ function Vi() {
|
|
|
2217
2217
|
this._hash = new C.init(a.slice(0));
|
|
2218
2218
|
},
|
|
2219
2219
|
_doProcessBlock: function(r, o) {
|
|
2220
|
-
for (var f = this._hash.words, _ = f[0], U = f[1],
|
|
2220
|
+
for (var f = this._hash.words, _ = f[0], U = f[1], u = f[2], y = f[3], b = f[4], v = f[5], h = f[6], S = f[7], D = 0; D < 64; D++) {
|
|
2221
2221
|
if (D < 16)
|
|
2222
2222
|
m[D] = r[o + D] | 0;
|
|
2223
2223
|
else {
|
|
2224
2224
|
var O = m[D - 15], k = (O << 25 | O >>> 7) ^ (O << 14 | O >>> 18) ^ O >>> 3, x = m[D - 2], L = (x << 15 | x >>> 17) ^ (x << 13 | x >>> 19) ^ x >>> 10;
|
|
2225
2225
|
m[D] = k + m[D - 7] + L + m[D - 16];
|
|
2226
2226
|
}
|
|
2227
|
-
var N = b & v ^ ~b & h, w = _ & U ^ _ &
|
|
2228
|
-
S = h, h = v, v = b, b = y + W | 0, y =
|
|
2227
|
+
var N = b & v ^ ~b & h, w = _ & U ^ _ & u ^ U & u, G = (_ << 30 | _ >>> 2) ^ (_ << 19 | _ >>> 13) ^ (_ << 10 | _ >>> 22), M = (b << 26 | b >>> 6) ^ (b << 21 | b >>> 11) ^ (b << 7 | b >>> 25), W = S + M + N + t[D] + m[D], A = G + w;
|
|
2228
|
+
S = h, h = v, v = b, b = y + W | 0, y = u, u = U, U = _, _ = W + A | 0;
|
|
2229
2229
|
}
|
|
2230
|
-
f[0] = f[0] + _ | 0, f[1] = f[1] + U | 0, f[2] = f[2] +
|
|
2230
|
+
f[0] = f[0] + _ | 0, f[1] = f[1] + U | 0, f[2] = f[2] + u | 0, f[3] = f[3] + y | 0, f[4] = f[4] + b | 0, f[5] = f[5] + v | 0, f[6] = f[6] + h | 0, f[7] = f[7] + S | 0;
|
|
2231
2231
|
},
|
|
2232
2232
|
_doFinalize: function() {
|
|
2233
2233
|
var r = this._data, o = r.words, f = this._nDataBytes * 8, _ = r.sigBytes * 8;
|
|
@@ -2245,7 +2245,7 @@ function Vi() {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
var ja = { exports: {} }, Rl = ja.exports, bt;
|
|
2247
2247
|
function Pl() {
|
|
2248
|
-
return bt || (bt = 1, (function(e,
|
|
2248
|
+
return bt || (bt = 1, (function(e, s) {
|
|
2249
2249
|
(function(n, i, p) {
|
|
2250
2250
|
e.exports = i($(), Vi());
|
|
2251
2251
|
})(Rl, function(n) {
|
|
@@ -2274,8 +2274,8 @@ function Pl() {
|
|
|
2274
2274
|
})(ja)), ja.exports;
|
|
2275
2275
|
}
|
|
2276
2276
|
var $a = { exports: {} }, Fl = $a.exports, Ct;
|
|
2277
|
-
function
|
|
2278
|
-
return Ct || (Ct = 1, (function(e,
|
|
2277
|
+
function Ln() {
|
|
2278
|
+
return Ct || (Ct = 1, (function(e, s) {
|
|
2279
2279
|
(function(n, i, p) {
|
|
2280
2280
|
e.exports = i($(), ki());
|
|
2281
2281
|
})(Fl, function(n) {
|
|
@@ -2384,24 +2384,24 @@ function Gn() {
|
|
|
2384
2384
|
]);
|
|
2385
2385
|
},
|
|
2386
2386
|
_doProcessBlock: function(o, f) {
|
|
2387
|
-
for (var _ = this._hash.words, U = _[0],
|
|
2388
|
-
var
|
|
2387
|
+
for (var _ = this._hash.words, U = _[0], u = _[1], y = _[2], b = _[3], v = _[4], h = _[5], S = _[6], D = _[7], O = U.high, k = U.low, x = u.high, L = u.low, N = y.high, w = y.low, G = b.high, M = b.low, W = v.high, A = v.low, H = h.high, z = h.low, E = S.high, P = S.low, F = D.high, R = D.low, K = O, q = k, Y = x, Z = L, ne = N, ie = w, ye = G, be = M, oe = W, ce = A, Me = H, Se = z, Ke = E, He = P, We = F, qe = R, Te = 0; Te < 80; Te++) {
|
|
2388
|
+
var pe, Ee, na = l[Te];
|
|
2389
2389
|
if (Te < 16)
|
|
2390
|
-
Ee = na.high = o[f + Te * 2] | 0,
|
|
2390
|
+
Ee = na.high = o[f + Te * 2] | 0, pe = na.low = o[f + Te * 2 + 1] | 0;
|
|
2391
2391
|
else {
|
|
2392
2392
|
var ua = l[Te - 15], Re = ua.high, ze = ua.low, Si = (Re >>> 1 | ze << 31) ^ (Re >>> 8 | ze << 24) ^ Re >>> 7, pa = (ze >>> 1 | Re << 31) ^ (ze >>> 8 | Re << 24) ^ (ze >>> 7 | Re << 25), ga = l[Te - 2], Ve = ga.high, je = ga.low, Di = (Ve >>> 19 | je << 13) ^ (Ve << 3 | je >>> 29) ^ Ve >>> 6, ha = (je >>> 19 | Ve << 13) ^ (je << 3 | Ve >>> 29) ^ (je >>> 6 | Ve << 26), ka = l[Te - 7], Ei = ka.high, Ni = ka.low, la = l[Te - 16], xa = la.high, Pe = la.low;
|
|
2393
|
-
|
|
2393
|
+
pe = pa + Ni, Ee = Si + Ei + (pe >>> 0 < pa >>> 0 ? 1 : 0), pe = pe + ha, Ee = Ee + Di + (pe >>> 0 < ha >>> 0 ? 1 : 0), pe = pe + Pe, Ee = Ee + xa + (pe >>> 0 < Pe >>> 0 ? 1 : 0), na.high = Ee, na.low = pe;
|
|
2394
2394
|
}
|
|
2395
|
-
var da = oe & Me ^ ~oe & Ke, ra = ce & Se ^ ~ce & He, Sa = K & Y ^ K & ne ^ Y & ne, Li = q & Z ^ q & ie ^ Z & ie, Da = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ea = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Na = (oe >>> 14 | ce << 18) ^ (oe >>> 18 | ce << 14) ^ (oe << 23 | ce >>> 9), La = (ce >>> 14 | oe << 18) ^ (ce >>> 18 | oe << 14) ^ (ce << 23 | oe >>> 9), Ga = m[Te], Gi = Ga.high, ca = Ga.low,
|
|
2396
|
-
We = Ke, qe = He, Ke = Me, He = Se, Me = oe, Se = ce, ce = be +
|
|
2395
|
+
var da = oe & Me ^ ~oe & Ke, ra = ce & Se ^ ~ce & He, Sa = K & Y ^ K & ne ^ Y & ne, Li = q & Z ^ q & ie ^ Z & ie, Da = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ea = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Na = (oe >>> 14 | ce << 18) ^ (oe >>> 18 | ce << 14) ^ (oe << 23 | ce >>> 9), La = (ce >>> 14 | oe << 18) ^ (ce >>> 18 | oe << 14) ^ (ce << 23 | oe >>> 9), Ga = m[Te], Gi = Ga.high, ca = Ga.low, ge = qe + La, Ne = We + Na + (ge >>> 0 < qe >>> 0 ? 1 : 0), ge = ge + ra, Ne = Ne + da + (ge >>> 0 < ra >>> 0 ? 1 : 0), ge = ge + ca, Ne = Ne + Gi + (ge >>> 0 < ca >>> 0 ? 1 : 0), ge = ge + pe, Ne = Ne + Ee + (ge >>> 0 < pe >>> 0 ? 1 : 0), Ma = Ea + Li, Mi = Da + Sa + (Ma >>> 0 < Ea >>> 0 ? 1 : 0);
|
|
2396
|
+
We = Ke, qe = He, Ke = Me, He = Se, Me = oe, Se = ce, ce = be + ge | 0, oe = ye + Ne + (ce >>> 0 < be >>> 0 ? 1 : 0) | 0, ye = ne, be = ie, ne = Y, ie = Z, Y = K, Z = q, q = ge + Ma | 0, K = Ne + Mi + (q >>> 0 < ge >>> 0 ? 1 : 0) | 0;
|
|
2397
2397
|
}
|
|
2398
|
-
k = U.low = k + q, U.high = O + K + (k >>> 0 < q >>> 0 ? 1 : 0), L =
|
|
2398
|
+
k = U.low = k + q, U.high = O + K + (k >>> 0 < q >>> 0 ? 1 : 0), L = u.low = L + Z, u.high = x + Y + (L >>> 0 < Z >>> 0 ? 1 : 0), w = y.low = w + ie, y.high = N + ne + (w >>> 0 < ie >>> 0 ? 1 : 0), M = b.low = M + be, b.high = G + ye + (M >>> 0 < be >>> 0 ? 1 : 0), A = v.low = A + ce, v.high = W + oe + (A >>> 0 < ce >>> 0 ? 1 : 0), z = h.low = z + Se, h.high = H + Me + (z >>> 0 < Se >>> 0 ? 1 : 0), P = S.low = P + He, S.high = E + Ke + (P >>> 0 < He >>> 0 ? 1 : 0), R = D.low = R + qe, D.high = F + We + (R >>> 0 < qe >>> 0 ? 1 : 0);
|
|
2399
2399
|
},
|
|
2400
2400
|
_doFinalize: function() {
|
|
2401
2401
|
var o = this._data, f = o.words, _ = this._nDataBytes * 8, U = o.sigBytes * 8;
|
|
2402
2402
|
f[U >>> 5] |= 128 << 24 - U % 32, f[(U + 128 >>> 10 << 5) + 30] = Math.floor(_ / 4294967296), f[(U + 128 >>> 10 << 5) + 31] = _, o.sigBytes = f.length * 4, this._process();
|
|
2403
|
-
var
|
|
2404
|
-
return
|
|
2403
|
+
var u = this._hash.toX32();
|
|
2404
|
+
return u;
|
|
2405
2405
|
},
|
|
2406
2406
|
clone: function() {
|
|
2407
2407
|
var o = d.clone.call(this);
|
|
@@ -2416,9 +2416,9 @@ function Gn() {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
var Qa = { exports: {} }, wl = Qa.exports, vt;
|
|
2418
2418
|
function Ol() {
|
|
2419
|
-
return vt || (vt = 1, (function(e,
|
|
2419
|
+
return vt || (vt = 1, (function(e, s) {
|
|
2420
2420
|
(function(n, i, p) {
|
|
2421
|
-
e.exports = i($(), ki(),
|
|
2421
|
+
e.exports = i($(), ki(), Ln());
|
|
2422
2422
|
})(wl, function(n) {
|
|
2423
2423
|
return (function() {
|
|
2424
2424
|
var i = n, p = i.x64, d = p.Word, C = p.WordArray, c = i.algo, g = c.SHA512, a = c.SHA384 = g.extend({
|
|
@@ -2446,15 +2446,15 @@ function Ol() {
|
|
|
2446
2446
|
}
|
|
2447
2447
|
var Ya = { exports: {} }, Al = Ya.exports, Tt;
|
|
2448
2448
|
function Bl() {
|
|
2449
|
-
return Tt || (Tt = 1, (function(e,
|
|
2449
|
+
return Tt || (Tt = 1, (function(e, s) {
|
|
2450
2450
|
(function(n, i, p) {
|
|
2451
2451
|
e.exports = i($(), ki());
|
|
2452
2452
|
})(Al, function(n) {
|
|
2453
2453
|
return (function(i) {
|
|
2454
2454
|
var p = n, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.x64, a = g.Word, t = p.algo, m = [], l = [], r = [];
|
|
2455
2455
|
(function() {
|
|
2456
|
-
for (var _ = 1, U = 0,
|
|
2457
|
-
m[_ + 5 * U] = (
|
|
2456
|
+
for (var _ = 1, U = 0, u = 0; u < 24; u++) {
|
|
2457
|
+
m[_ + 5 * U] = (u + 1) * (u + 2) / 2 % 64;
|
|
2458
2458
|
var y = U % 5, b = (2 * _ + 3 * U) % 5;
|
|
2459
2459
|
_ = y, U = b;
|
|
2460
2460
|
}
|
|
@@ -2495,16 +2495,16 @@ function Bl() {
|
|
|
2495
2495
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2496
2496
|
},
|
|
2497
2497
|
_doProcessBlock: function(_, U) {
|
|
2498
|
-
for (var
|
|
2498
|
+
for (var u = this._state, y = this.blockSize / 2, b = 0; b < y; b++) {
|
|
2499
2499
|
var v = _[U + 2 * b], h = _[U + 2 * b + 1];
|
|
2500
2500
|
v = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, h = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360;
|
|
2501
|
-
var S =
|
|
2501
|
+
var S = u[b];
|
|
2502
2502
|
S.high ^= h, S.low ^= v;
|
|
2503
2503
|
}
|
|
2504
2504
|
for (var D = 0; D < 24; D++) {
|
|
2505
2505
|
for (var O = 0; O < 5; O++) {
|
|
2506
2506
|
for (var k = 0, x = 0, L = 0; L < 5; L++) {
|
|
2507
|
-
var S =
|
|
2507
|
+
var S = u[O + 5 * L];
|
|
2508
2508
|
k ^= S.high, x ^= S.low;
|
|
2509
2509
|
}
|
|
2510
2510
|
var N = o[O];
|
|
@@ -2512,31 +2512,31 @@ function Bl() {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
for (var O = 0; O < 5; O++)
|
|
2514
2514
|
for (var w = o[(O + 4) % 5], G = o[(O + 1) % 5], M = G.high, W = G.low, k = w.high ^ (M << 1 | W >>> 31), x = w.low ^ (W << 1 | M >>> 31), L = 0; L < 5; L++) {
|
|
2515
|
-
var S =
|
|
2515
|
+
var S = u[O + 5 * L];
|
|
2516
2516
|
S.high ^= k, S.low ^= x;
|
|
2517
2517
|
}
|
|
2518
2518
|
for (var A = 1; A < 25; A++) {
|
|
2519
|
-
var k, x, S =
|
|
2519
|
+
var k, x, S = u[A], H = S.high, z = S.low, E = m[A];
|
|
2520
2520
|
E < 32 ? (k = H << E | z >>> 32 - E, x = z << E | H >>> 32 - E) : (k = z << E - 32 | H >>> 64 - E, x = H << E - 32 | z >>> 64 - E);
|
|
2521
2521
|
var P = o[l[A]];
|
|
2522
2522
|
P.high = k, P.low = x;
|
|
2523
2523
|
}
|
|
2524
|
-
var F = o[0], R =
|
|
2524
|
+
var F = o[0], R = u[0];
|
|
2525
2525
|
F.high = R.high, F.low = R.low;
|
|
2526
2526
|
for (var O = 0; O < 5; O++)
|
|
2527
2527
|
for (var L = 0; L < 5; L++) {
|
|
2528
|
-
var A = O + 5 * L, S =
|
|
2528
|
+
var A = O + 5 * L, S = u[A], K = o[A], q = o[(O + 1) % 5 + 5 * L], Y = o[(O + 2) % 5 + 5 * L];
|
|
2529
2529
|
S.high = K.high ^ ~q.high & Y.high, S.low = K.low ^ ~q.low & Y.low;
|
|
2530
2530
|
}
|
|
2531
|
-
var S =
|
|
2531
|
+
var S = u[0], Z = r[D];
|
|
2532
2532
|
S.high ^= Z.high, S.low ^= Z.low;
|
|
2533
2533
|
}
|
|
2534
2534
|
},
|
|
2535
2535
|
_doFinalize: function() {
|
|
2536
2536
|
var _ = this._data, U = _.words;
|
|
2537
2537
|
this._nDataBytes * 8;
|
|
2538
|
-
var
|
|
2539
|
-
U[
|
|
2538
|
+
var u = _.sigBytes * 8, y = this.blockSize * 32;
|
|
2539
|
+
U[u >>> 5] |= 1 << 24 - u % 32, U[(i.ceil((u + 1) / y) * y >>> 5) - 1] |= 128, _.sigBytes = U.length * 4, this._process();
|
|
2540
2540
|
for (var b = this._state, v = this.cfg.outputLength / 8, h = v / 8, S = [], D = 0; D < h; D++) {
|
|
2541
2541
|
var O = b[D], k = O.high, x = O.low;
|
|
2542
2542
|
k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, x = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, S.push(x), S.push(k);
|
|
@@ -2544,8 +2544,8 @@ function Bl() {
|
|
|
2544
2544
|
return new C.init(S, v);
|
|
2545
2545
|
},
|
|
2546
2546
|
clone: function() {
|
|
2547
|
-
for (var _ = c.clone.call(this), U = _._state = this._state.slice(0),
|
|
2548
|
-
U[
|
|
2547
|
+
for (var _ = c.clone.call(this), U = _._state = this._state.slice(0), u = 0; u < 25; u++)
|
|
2548
|
+
U[u] = U[u].clone();
|
|
2549
2549
|
return _;
|
|
2550
2550
|
}
|
|
2551
2551
|
});
|
|
@@ -2556,7 +2556,7 @@ function Bl() {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
var Xa = { exports: {} }, Hl = Xa.exports, ht;
|
|
2558
2558
|
function Wl() {
|
|
2559
|
-
return ht || (ht = 1, (function(e,
|
|
2559
|
+
return ht || (ht = 1, (function(e, s) {
|
|
2560
2560
|
(function(n, i) {
|
|
2561
2561
|
e.exports = i($());
|
|
2562
2562
|
})(Hl, function(n) {
|
|
@@ -2897,7 +2897,7 @@ function Wl() {
|
|
|
2897
2897
|
var x = this._hash.words, L = r.words, N = o.words, w = a.words, G = t.words, M = m.words, W = l.words, A, H, z, E, P, F, R, K, q, Y;
|
|
2898
2898
|
F = A = x[0], R = H = x[1], K = z = x[2], q = E = x[3], Y = P = x[4];
|
|
2899
2899
|
for (var Z, D = 0; D < 80; D += 1)
|
|
2900
|
-
Z = A + h[S + w[D]] | 0, D < 16 ? Z += _(H, z, E) + L[0] : D < 32 ? Z += U(H, z, E) + L[1] : D < 48 ? Z +=
|
|
2900
|
+
Z = A + h[S + w[D]] | 0, D < 16 ? Z += _(H, z, E) + L[0] : D < 32 ? Z += U(H, z, E) + L[1] : D < 48 ? Z += u(H, z, E) + L[2] : D < 64 ? Z += y(H, z, E) + L[3] : Z += b(H, z, E) + L[4], Z = Z | 0, Z = v(Z, M[D]), Z = Z + P | 0, A = P, P = E, E = v(z, 10), z = H, H = Z, Z = F + h[S + G[D]] | 0, D < 16 ? Z += b(R, K, q) + N[0] : D < 32 ? Z += y(R, K, q) + N[1] : D < 48 ? Z += u(R, K, q) + N[2] : D < 64 ? Z += U(R, K, q) + N[3] : Z += _(R, K, q) + N[4], Z = Z | 0, Z = v(Z, W[D]), Z = Z + Y | 0, F = Y, Y = q, q = v(K, 10), K = R, R = Z;
|
|
2901
2901
|
Z = x[1] + z + q | 0, x[1] = x[2] + E + Y | 0, x[2] = x[3] + P + F | 0, x[3] = x[4] + A + R | 0, x[4] = x[0] + H + K | 0, x[0] = Z;
|
|
2902
2902
|
},
|
|
2903
2903
|
_doFinalize: function() {
|
|
@@ -2920,7 +2920,7 @@ function Wl() {
|
|
|
2920
2920
|
function U(h, S, D) {
|
|
2921
2921
|
return h & S | ~h & D;
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function u(h, S, D) {
|
|
2924
2924
|
return (h | ~S) ^ D;
|
|
2925
2925
|
}
|
|
2926
2926
|
function y(h, S, D) {
|
|
@@ -2939,7 +2939,7 @@ function Wl() {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
var ei = { exports: {} }, zl = ei.exports, kt;
|
|
2941
2941
|
function Zi() {
|
|
2942
|
-
return kt || (kt = 1, (function(e,
|
|
2942
|
+
return kt || (kt = 1, (function(e, s) {
|
|
2943
2943
|
(function(n, i) {
|
|
2944
2944
|
e.exports = i($());
|
|
2945
2945
|
})(zl, function(n) {
|
|
@@ -3017,7 +3017,7 @@ function Zi() {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
var ai = { exports: {} }, Vl = ai.exports, xt;
|
|
3019
3019
|
function Zl() {
|
|
3020
|
-
return xt || (xt = 1, (function(e,
|
|
3020
|
+
return xt || (xt = 1, (function(e, s) {
|
|
3021
3021
|
(function(n, i, p) {
|
|
3022
3022
|
e.exports = i($(), Vi(), Zi());
|
|
3023
3023
|
})(Vl, function(n) {
|
|
@@ -3062,7 +3062,7 @@ function Zl() {
|
|
|
3062
3062
|
* var key = kdf.compute(password, salt);
|
|
3063
3063
|
*/
|
|
3064
3064
|
compute: function(m, l) {
|
|
3065
|
-
for (var r = this.cfg, o = a.create(r.hasher, m), f = C.create(), _ = C.create([1]), U = f.words,
|
|
3065
|
+
for (var r = this.cfg, o = a.create(r.hasher, m), f = C.create(), _ = C.create([1]), U = f.words, u = _.words, y = r.keySize, b = r.iterations; U.length < y; ) {
|
|
3066
3066
|
var v = o.update(l).finalize(_);
|
|
3067
3067
|
o.reset();
|
|
3068
3068
|
for (var h = v.words, S = h.length, D = v, O = 1; O < b; O++) {
|
|
@@ -3070,7 +3070,7 @@ function Zl() {
|
|
|
3070
3070
|
for (var k = D.words, x = 0; x < S; x++)
|
|
3071
3071
|
h[x] ^= k[x];
|
|
3072
3072
|
}
|
|
3073
|
-
f.concat(v),
|
|
3073
|
+
f.concat(v), u[0]++;
|
|
3074
3074
|
}
|
|
3075
3075
|
return f.sigBytes = y * 4, f;
|
|
3076
3076
|
}
|
|
@@ -3084,9 +3084,9 @@ function Zl() {
|
|
|
3084
3084
|
}
|
|
3085
3085
|
var ii = { exports: {} }, Jl = ii.exports, St;
|
|
3086
3086
|
function Je() {
|
|
3087
|
-
return St || (St = 1, (function(e,
|
|
3087
|
+
return St || (St = 1, (function(e, s) {
|
|
3088
3088
|
(function(n, i, p) {
|
|
3089
|
-
e.exports = i($(),
|
|
3089
|
+
e.exports = i($(), Nn(), Zi());
|
|
3090
3090
|
})(Jl, function(n) {
|
|
3091
3091
|
return (function() {
|
|
3092
3092
|
var i = n, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.MD5, a = c.EvpKDF = d.extend({
|
|
@@ -3129,9 +3129,9 @@ function Je() {
|
|
|
3129
3129
|
* var key = kdf.compute(password, salt);
|
|
3130
3130
|
*/
|
|
3131
3131
|
compute: function(t, m) {
|
|
3132
|
-
for (var l, r = this.cfg, o = r.hasher.create(), f = C.create(), _ = f.words, U = r.keySize,
|
|
3132
|
+
for (var l, r = this.cfg, o = r.hasher.create(), f = C.create(), _ = f.words, U = r.keySize, u = r.iterations; _.length < U; ) {
|
|
3133
3133
|
l && o.update(l), l = o.update(t).finalize(m), o.reset();
|
|
3134
|
-
for (var y = 1; y <
|
|
3134
|
+
for (var y = 1; y < u; y++)
|
|
3135
3135
|
l = o.finalize(l), o.reset();
|
|
3136
3136
|
f.concat(l);
|
|
3137
3137
|
}
|
|
@@ -3147,7 +3147,7 @@ function Je() {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
var ti = { exports: {} }, Il = ti.exports, Dt;
|
|
3149
3149
|
function se() {
|
|
3150
|
-
return Dt || (Dt = 1, (function(e,
|
|
3150
|
+
return Dt || (Dt = 1, (function(e, s) {
|
|
3151
3151
|
(function(n, i, p) {
|
|
3152
3152
|
e.exports = i($(), Je());
|
|
3153
3153
|
})(Il, function(n) {
|
|
@@ -3377,7 +3377,7 @@ function se() {
|
|
|
3377
3377
|
L[N + W] ^= G[W];
|
|
3378
3378
|
}
|
|
3379
3379
|
return k;
|
|
3380
|
-
})(), U = p.pad = {},
|
|
3380
|
+
})(), U = p.pad = {}, u = U.Pkcs7 = {
|
|
3381
3381
|
/**
|
|
3382
3382
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3383
3383
|
*
|
|
@@ -3421,7 +3421,7 @@ function se() {
|
|
|
3421
3421
|
*/
|
|
3422
3422
|
cfg: r.cfg.extend({
|
|
3423
3423
|
mode: _,
|
|
3424
|
-
padding:
|
|
3424
|
+
padding: u
|
|
3425
3425
|
}),
|
|
3426
3426
|
reset: function() {
|
|
3427
3427
|
var k;
|
|
@@ -3685,7 +3685,7 @@ function se() {
|
|
|
3685
3685
|
}
|
|
3686
3686
|
var ni = { exports: {} }, Kl = ni.exports, Et;
|
|
3687
3687
|
function ql() {
|
|
3688
|
-
return Et || (Et = 1, (function(e,
|
|
3688
|
+
return Et || (Et = 1, (function(e, s) {
|
|
3689
3689
|
(function(n, i, p) {
|
|
3690
3690
|
e.exports = i($(), se());
|
|
3691
3691
|
})(Kl, function(n) {
|
|
@@ -3715,7 +3715,7 @@ function ql() {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
var li = { exports: {} }, jl = li.exports, Nt;
|
|
3717
3717
|
function $l() {
|
|
3718
|
-
return Nt || (Nt = 1, (function(e,
|
|
3718
|
+
return Nt || (Nt = 1, (function(e, s) {
|
|
3719
3719
|
(function(n, i, p) {
|
|
3720
3720
|
e.exports = i($(), se());
|
|
3721
3721
|
})(jl, function(n) {
|
|
@@ -3737,7 +3737,7 @@ function $l() {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
var ri = { exports: {} }, Ql = ri.exports, Lt;
|
|
3739
3739
|
function Yl() {
|
|
3740
|
-
return Lt || (Lt = 1, (function(e,
|
|
3740
|
+
return Lt || (Lt = 1, (function(e, s) {
|
|
3741
3741
|
(function(n, i, p) {
|
|
3742
3742
|
e.exports = i($(), se());
|
|
3743
3743
|
})(Ql, function(n) {
|
|
@@ -3771,7 +3771,7 @@ function Yl() {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
var oi = { exports: {} }, Xl = oi.exports, Gt;
|
|
3773
3773
|
function er() {
|
|
3774
|
-
return Gt || (Gt = 1, (function(e,
|
|
3774
|
+
return Gt || (Gt = 1, (function(e, s) {
|
|
3775
3775
|
(function(n, i, p) {
|
|
3776
3776
|
e.exports = i($(), se());
|
|
3777
3777
|
})(Xl, function(n) {
|
|
@@ -3791,7 +3791,7 @@ function er() {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
var mi = { exports: {} }, ar = mi.exports, Mt;
|
|
3793
3793
|
function ir() {
|
|
3794
|
-
return Mt || (Mt = 1, (function(e,
|
|
3794
|
+
return Mt || (Mt = 1, (function(e, s) {
|
|
3795
3795
|
(function(n, i, p) {
|
|
3796
3796
|
e.exports = i($(), se());
|
|
3797
3797
|
})(ar, function(n) {
|
|
@@ -3812,7 +3812,7 @@ function ir() {
|
|
|
3812
3812
|
}
|
|
3813
3813
|
var si = { exports: {} }, tr = si.exports, Rt;
|
|
3814
3814
|
function nr() {
|
|
3815
|
-
return Rt || (Rt = 1, (function(e,
|
|
3815
|
+
return Rt || (Rt = 1, (function(e, s) {
|
|
3816
3816
|
(function(n, i, p) {
|
|
3817
3817
|
e.exports = i($(), se());
|
|
3818
3818
|
})(tr, function(n) {
|
|
@@ -3831,7 +3831,7 @@ function nr() {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
var ui = { exports: {} }, lr = ui.exports, Pt;
|
|
3833
3833
|
function rr() {
|
|
3834
|
-
return Pt || (Pt = 1, (function(e,
|
|
3834
|
+
return Pt || (Pt = 1, (function(e, s) {
|
|
3835
3835
|
(function(n, i, p) {
|
|
3836
3836
|
e.exports = i($(), se());
|
|
3837
3837
|
})(lr, function(n) {
|
|
@@ -3850,7 +3850,7 @@ function rr() {
|
|
|
3850
3850
|
}
|
|
3851
3851
|
var pi = { exports: {} }, or = pi.exports, Ft;
|
|
3852
3852
|
function mr() {
|
|
3853
|
-
return Ft || (Ft = 1, (function(e,
|
|
3853
|
+
return Ft || (Ft = 1, (function(e, s) {
|
|
3854
3854
|
(function(n, i, p) {
|
|
3855
3855
|
e.exports = i($(), se());
|
|
3856
3856
|
})(or, function(n) {
|
|
@@ -3867,7 +3867,7 @@ function mr() {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
var gi = { exports: {} }, sr = gi.exports, wt;
|
|
3869
3869
|
function ur() {
|
|
3870
|
-
return wt || (wt = 1, (function(e,
|
|
3870
|
+
return wt || (wt = 1, (function(e, s) {
|
|
3871
3871
|
(function(n, i, p) {
|
|
3872
3872
|
e.exports = i($(), se());
|
|
3873
3873
|
})(sr, function(n) {
|
|
@@ -3889,7 +3889,7 @@ function ur() {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
var di = { exports: {} }, pr = di.exports, Ot;
|
|
3891
3891
|
function gr() {
|
|
3892
|
-
return Ot || (Ot = 1, (function(e,
|
|
3892
|
+
return Ot || (Ot = 1, (function(e, s) {
|
|
3893
3893
|
(function(n, i, p) {
|
|
3894
3894
|
e.exports = i($(), se());
|
|
3895
3895
|
})(pr, function(n) {
|
|
@@ -3904,7 +3904,7 @@ function gr() {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
var ci = { exports: {} }, dr = ci.exports, At;
|
|
3906
3906
|
function cr() {
|
|
3907
|
-
return At || (At = 1, (function(e,
|
|
3907
|
+
return At || (At = 1, (function(e, s) {
|
|
3908
3908
|
(function(n, i, p) {
|
|
3909
3909
|
e.exports = i($(), se());
|
|
3910
3910
|
})(dr, function(n) {
|
|
@@ -3951,7 +3951,7 @@ function cr() {
|
|
|
3951
3951
|
}
|
|
3952
3952
|
var _i = { exports: {} }, _r = _i.exports, Bt;
|
|
3953
3953
|
function fr() {
|
|
3954
|
-
return Bt || (Bt = 1, (function(e,
|
|
3954
|
+
return Bt || (Bt = 1, (function(e, s) {
|
|
3955
3955
|
(function(n, i, p) {
|
|
3956
3956
|
e.exports = i($(), ia(), ta(), Je(), se());
|
|
3957
3957
|
})(_r, function(n) {
|
|
@@ -3969,7 +3969,7 @@ function fr() {
|
|
|
3969
3969
|
r[S] = x << 24 | x >>> 8, o[S] = x << 16 | x >>> 16, f[S] = x << 8 | x >>> 24, _[S] = x, v ? (v = D ^ y[y[y[k ^ D]]], h ^= y[y[h]]) : v = h = 1;
|
|
3970
3970
|
}
|
|
3971
3971
|
})();
|
|
3972
|
-
var U = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
3972
|
+
var U = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], u = C.AES = d.extend({
|
|
3973
3973
|
_doReset: function() {
|
|
3974
3974
|
var y;
|
|
3975
3975
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -4004,14 +4004,14 @@ function fr() {
|
|
|
4004
4004
|
},
|
|
4005
4005
|
keySize: 256 / 32
|
|
4006
4006
|
});
|
|
4007
|
-
i.AES = d._createHelper(
|
|
4007
|
+
i.AES = d._createHelper(u);
|
|
4008
4008
|
})(), n.AES;
|
|
4009
4009
|
});
|
|
4010
4010
|
})(_i)), _i.exports;
|
|
4011
4011
|
}
|
|
4012
4012
|
var fi = { exports: {} }, Ur = fi.exports, Ht;
|
|
4013
4013
|
function yr() {
|
|
4014
|
-
return Ht || (Ht = 1, (function(e,
|
|
4014
|
+
return Ht || (Ht = 1, (function(e, s) {
|
|
4015
4015
|
(function(n, i, p) {
|
|
4016
4016
|
e.exports = i($(), ia(), ta(), Je(), se());
|
|
4017
4017
|
})(Ur, function(n) {
|
|
@@ -4662,9 +4662,9 @@ function yr() {
|
|
|
4662
4662
|
2147483679
|
|
4663
4663
|
], r = c.DES = C.extend({
|
|
4664
4664
|
_doReset: function() {
|
|
4665
|
-
for (var U = this._key,
|
|
4665
|
+
for (var U = this._key, u = U.words, y = [], b = 0; b < 56; b++) {
|
|
4666
4666
|
var v = g[b] - 1;
|
|
4667
|
-
y[b] =
|
|
4667
|
+
y[b] = u[v >>> 5] >>> 31 - v % 32 & 1;
|
|
4668
4668
|
}
|
|
4669
4669
|
for (var h = this._subKeys = [], S = 0; S < 16; S++) {
|
|
4670
4670
|
for (var D = h[S] = [], O = t[S], b = 0; b < 24; b++)
|
|
@@ -4677,48 +4677,48 @@ function yr() {
|
|
|
4677
4677
|
for (var k = this._invSubKeys = [], b = 0; b < 16; b++)
|
|
4678
4678
|
k[b] = h[15 - b];
|
|
4679
4679
|
},
|
|
4680
|
-
encryptBlock: function(U,
|
|
4681
|
-
this._doCryptBlock(U,
|
|
4680
|
+
encryptBlock: function(U, u) {
|
|
4681
|
+
this._doCryptBlock(U, u, this._subKeys);
|
|
4682
4682
|
},
|
|
4683
|
-
decryptBlock: function(U,
|
|
4684
|
-
this._doCryptBlock(U,
|
|
4683
|
+
decryptBlock: function(U, u) {
|
|
4684
|
+
this._doCryptBlock(U, u, this._invSubKeys);
|
|
4685
4685
|
},
|
|
4686
|
-
_doCryptBlock: function(U,
|
|
4687
|
-
this._lBlock = U[
|
|
4686
|
+
_doCryptBlock: function(U, u, y) {
|
|
4687
|
+
this._lBlock = U[u], this._rBlock = U[u + 1], o.call(this, 4, 252645135), o.call(this, 16, 65535), f.call(this, 2, 858993459), f.call(this, 8, 16711935), o.call(this, 1, 1431655765);
|
|
4688
4688
|
for (var b = 0; b < 16; b++) {
|
|
4689
4689
|
for (var v = y[b], h = this._lBlock, S = this._rBlock, D = 0, O = 0; O < 8; O++)
|
|
4690
4690
|
D |= m[O][((S ^ v[O]) & l[O]) >>> 0];
|
|
4691
4691
|
this._lBlock = S, this._rBlock = h ^ D;
|
|
4692
4692
|
}
|
|
4693
4693
|
var k = this._lBlock;
|
|
4694
|
-
this._lBlock = this._rBlock, this._rBlock = k, o.call(this, 1, 1431655765), f.call(this, 8, 16711935), f.call(this, 2, 858993459), o.call(this, 16, 65535), o.call(this, 4, 252645135), U[
|
|
4694
|
+
this._lBlock = this._rBlock, this._rBlock = k, o.call(this, 1, 1431655765), f.call(this, 8, 16711935), f.call(this, 2, 858993459), o.call(this, 16, 65535), o.call(this, 4, 252645135), U[u] = this._lBlock, U[u + 1] = this._rBlock;
|
|
4695
4695
|
},
|
|
4696
4696
|
keySize: 64 / 32,
|
|
4697
4697
|
ivSize: 64 / 32,
|
|
4698
4698
|
blockSize: 64 / 32
|
|
4699
4699
|
});
|
|
4700
|
-
function o(U,
|
|
4701
|
-
var y = (this._lBlock >>> U ^ this._rBlock) &
|
|
4700
|
+
function o(U, u) {
|
|
4701
|
+
var y = (this._lBlock >>> U ^ this._rBlock) & u;
|
|
4702
4702
|
this._rBlock ^= y, this._lBlock ^= y << U;
|
|
4703
4703
|
}
|
|
4704
|
-
function f(U,
|
|
4705
|
-
var y = (this._rBlock >>> U ^ this._lBlock) &
|
|
4704
|
+
function f(U, u) {
|
|
4705
|
+
var y = (this._rBlock >>> U ^ this._lBlock) & u;
|
|
4706
4706
|
this._lBlock ^= y, this._rBlock ^= y << U;
|
|
4707
4707
|
}
|
|
4708
4708
|
i.DES = C._createHelper(r);
|
|
4709
4709
|
var _ = c.TripleDES = C.extend({
|
|
4710
4710
|
_doReset: function() {
|
|
4711
|
-
var U = this._key,
|
|
4712
|
-
if (
|
|
4711
|
+
var U = this._key, u = U.words;
|
|
4712
|
+
if (u.length !== 2 && u.length !== 4 && u.length < 6)
|
|
4713
4713
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4714
|
-
var y =
|
|
4714
|
+
var y = u.slice(0, 2), b = u.length < 4 ? u.slice(0, 2) : u.slice(2, 4), v = u.length < 6 ? u.slice(0, 2) : u.slice(4, 6);
|
|
4715
4715
|
this._des1 = r.createEncryptor(d.create(y)), this._des2 = r.createEncryptor(d.create(b)), this._des3 = r.createEncryptor(d.create(v));
|
|
4716
4716
|
},
|
|
4717
|
-
encryptBlock: function(U,
|
|
4718
|
-
this._des1.encryptBlock(U,
|
|
4717
|
+
encryptBlock: function(U, u) {
|
|
4718
|
+
this._des1.encryptBlock(U, u), this._des2.decryptBlock(U, u), this._des3.encryptBlock(U, u);
|
|
4719
4719
|
},
|
|
4720
|
-
decryptBlock: function(U,
|
|
4721
|
-
this._des3.decryptBlock(U,
|
|
4720
|
+
decryptBlock: function(U, u) {
|
|
4721
|
+
this._des3.decryptBlock(U, u), this._des2.encryptBlock(U, u), this._des1.decryptBlock(U, u);
|
|
4722
4722
|
},
|
|
4723
4723
|
keySize: 192 / 32,
|
|
4724
4724
|
ivSize: 64 / 32,
|
|
@@ -4731,7 +4731,7 @@ function yr() {
|
|
|
4731
4731
|
}
|
|
4732
4732
|
var Ui = { exports: {} }, br = Ui.exports, Wt;
|
|
4733
4733
|
function Cr() {
|
|
4734
|
-
return Wt || (Wt = 1, (function(e,
|
|
4734
|
+
return Wt || (Wt = 1, (function(e, s) {
|
|
4735
4735
|
(function(n, i, p) {
|
|
4736
4736
|
e.exports = i($(), ia(), ta(), Je(), se());
|
|
4737
4737
|
})(br, function(n) {
|
|
@@ -4743,8 +4743,8 @@ function Cr() {
|
|
|
4743
4743
|
for (var o = 0, f = 0; o < 256; o++) {
|
|
4744
4744
|
var _ = o % l, U = m[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
|
|
4745
4745
|
f = (f + r[o] + U) % 256;
|
|
4746
|
-
var
|
|
4747
|
-
r[o] = r[f], r[f] =
|
|
4746
|
+
var u = r[o];
|
|
4747
|
+
r[o] = r[f], r[f] = u;
|
|
4748
4748
|
}
|
|
4749
4749
|
this._i = this._j = 0;
|
|
4750
4750
|
},
|
|
@@ -4785,7 +4785,7 @@ function Cr() {
|
|
|
4785
4785
|
}
|
|
4786
4786
|
var yi = { exports: {} }, vr = yi.exports, zt;
|
|
4787
4787
|
function Tr() {
|
|
4788
|
-
return zt || (zt = 1, (function(e,
|
|
4788
|
+
return zt || (zt = 1, (function(e, s) {
|
|
4789
4789
|
(function(n, i, p) {
|
|
4790
4790
|
e.exports = i($(), ia(), ta(), Je(), se());
|
|
4791
4791
|
})(vr, function(n) {
|
|
@@ -4819,7 +4819,7 @@ function Tr() {
|
|
|
4819
4819
|
for (var o = 0; o < 8; o++)
|
|
4820
4820
|
_[o] ^= f[o + 4 & 7];
|
|
4821
4821
|
if (r) {
|
|
4822
|
-
var U = r.words,
|
|
4822
|
+
var U = r.words, u = U[0], y = U[1], b = (u << 8 | u >>> 24) & 16711935 | (u << 24 | u >>> 8) & 4278255360, v = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, h = b >>> 16 | v & 4294901760, S = v << 16 | b & 65535;
|
|
4823
4823
|
_[0] ^= b, _[1] ^= h, _[2] ^= v, _[3] ^= S, _[4] ^= b, _[5] ^= h, _[6] ^= v, _[7] ^= S;
|
|
4824
4824
|
for (var o = 0; o < 4; o++)
|
|
4825
4825
|
m.call(this);
|
|
@@ -4839,8 +4839,8 @@ function Tr() {
|
|
|
4839
4839
|
g[o] = r[o];
|
|
4840
4840
|
r[0] = r[0] + 1295307597 + this._b | 0, r[1] = r[1] + 3545052371 + (r[0] >>> 0 < g[0] >>> 0 ? 1 : 0) | 0, r[2] = r[2] + 886263092 + (r[1] >>> 0 < g[1] >>> 0 ? 1 : 0) | 0, r[3] = r[3] + 1295307597 + (r[2] >>> 0 < g[2] >>> 0 ? 1 : 0) | 0, r[4] = r[4] + 3545052371 + (r[3] >>> 0 < g[3] >>> 0 ? 1 : 0) | 0, r[5] = r[5] + 886263092 + (r[4] >>> 0 < g[4] >>> 0 ? 1 : 0) | 0, r[6] = r[6] + 1295307597 + (r[5] >>> 0 < g[5] >>> 0 ? 1 : 0) | 0, r[7] = r[7] + 3545052371 + (r[6] >>> 0 < g[6] >>> 0 ? 1 : 0) | 0, this._b = r[7] >>> 0 < g[7] >>> 0 ? 1 : 0;
|
|
4841
4841
|
for (var o = 0; o < 8; o++) {
|
|
4842
|
-
var f = l[o] + r[o], _ = f & 65535, U = f >>> 16,
|
|
4843
|
-
a[o] =
|
|
4842
|
+
var f = l[o] + r[o], _ = f & 65535, U = f >>> 16, u = ((_ * _ >>> 17) + _ * U >>> 15) + U * U, y = ((f & 4294901760) * f | 0) + ((f & 65535) * f | 0);
|
|
4843
|
+
a[o] = u ^ y;
|
|
4844
4844
|
}
|
|
4845
4845
|
l[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, l[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, l[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, l[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, l[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, l[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, l[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, l[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4846
4846
|
}
|
|
@@ -4851,7 +4851,7 @@ function Tr() {
|
|
|
4851
4851
|
}
|
|
4852
4852
|
var bi = { exports: {} }, hr = bi.exports, Vt;
|
|
4853
4853
|
function kr() {
|
|
4854
|
-
return Vt || (Vt = 1, (function(e,
|
|
4854
|
+
return Vt || (Vt = 1, (function(e, s) {
|
|
4855
4855
|
(function(n, i, p) {
|
|
4856
4856
|
e.exports = i($(), ia(), ta(), Je(), se());
|
|
4857
4857
|
})(hr, function(n) {
|
|
@@ -4883,7 +4883,7 @@ function kr() {
|
|
|
4883
4883
|
for (var _ = 0; _ < 8; _++)
|
|
4884
4884
|
f[_] ^= o[_ + 4 & 7];
|
|
4885
4885
|
if (r) {
|
|
4886
|
-
var U = r.words,
|
|
4886
|
+
var U = r.words, u = U[0], y = U[1], b = (u << 8 | u >>> 24) & 16711935 | (u << 24 | u >>> 8) & 4278255360, v = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, h = b >>> 16 | v & 4294901760, S = v << 16 | b & 65535;
|
|
4887
4887
|
f[0] ^= b, f[1] ^= h, f[2] ^= v, f[3] ^= S, f[4] ^= b, f[5] ^= h, f[6] ^= v, f[7] ^= S;
|
|
4888
4888
|
for (var _ = 0; _ < 4; _++)
|
|
4889
4889
|
m.call(this);
|
|
@@ -4903,8 +4903,8 @@ function kr() {
|
|
|
4903
4903
|
g[o] = r[o];
|
|
4904
4904
|
r[0] = r[0] + 1295307597 + this._b | 0, r[1] = r[1] + 3545052371 + (r[0] >>> 0 < g[0] >>> 0 ? 1 : 0) | 0, r[2] = r[2] + 886263092 + (r[1] >>> 0 < g[1] >>> 0 ? 1 : 0) | 0, r[3] = r[3] + 1295307597 + (r[2] >>> 0 < g[2] >>> 0 ? 1 : 0) | 0, r[4] = r[4] + 3545052371 + (r[3] >>> 0 < g[3] >>> 0 ? 1 : 0) | 0, r[5] = r[5] + 886263092 + (r[4] >>> 0 < g[4] >>> 0 ? 1 : 0) | 0, r[6] = r[6] + 1295307597 + (r[5] >>> 0 < g[5] >>> 0 ? 1 : 0) | 0, r[7] = r[7] + 3545052371 + (r[6] >>> 0 < g[6] >>> 0 ? 1 : 0) | 0, this._b = r[7] >>> 0 < g[7] >>> 0 ? 1 : 0;
|
|
4905
4905
|
for (var o = 0; o < 8; o++) {
|
|
4906
|
-
var f = l[o] + r[o], _ = f & 65535, U = f >>> 16,
|
|
4907
|
-
a[o] =
|
|
4906
|
+
var f = l[o] + r[o], _ = f & 65535, U = f >>> 16, u = ((_ * _ >>> 17) + _ * U >>> 15) + U * U, y = ((f & 4294901760) * f | 0) + ((f & 65535) * f | 0);
|
|
4907
|
+
a[o] = u ^ y;
|
|
4908
4908
|
}
|
|
4909
4909
|
l[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, l[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, l[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, l[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, l[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, l[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, l[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, l[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4910
4910
|
}
|
|
@@ -4915,7 +4915,7 @@ function kr() {
|
|
|
4915
4915
|
}
|
|
4916
4916
|
var Ci = { exports: {} }, xr = Ci.exports, Zt;
|
|
4917
4917
|
function Sr() {
|
|
4918
|
-
return Zt || (Zt = 1, (function(e,
|
|
4918
|
+
return Zt || (Zt = 1, (function(e, s) {
|
|
4919
4919
|
(function(n, i, p) {
|
|
4920
4920
|
e.exports = i($(), ia(), ta(), Je(), se());
|
|
4921
4921
|
})(xr, function(n) {
|
|
@@ -5979,22 +5979,22 @@ function Sr() {
|
|
|
5979
5979
|
sbox: []
|
|
5980
5980
|
};
|
|
5981
5981
|
function m(_, U) {
|
|
5982
|
-
let
|
|
5982
|
+
let u = U >> 24 & 255, y = U >> 16 & 255, b = U >> 8 & 255, v = U & 255, h = _.sbox[0][u] + _.sbox[1][y];
|
|
5983
5983
|
return h = h ^ _.sbox[2][b], h = h + _.sbox[3][v], h;
|
|
5984
5984
|
}
|
|
5985
|
-
function l(_, U,
|
|
5986
|
-
let y = U, b =
|
|
5985
|
+
function l(_, U, u) {
|
|
5986
|
+
let y = U, b = u, v;
|
|
5987
5987
|
for (let h = 0; h < c; ++h)
|
|
5988
5988
|
y = y ^ _.pbox[h], b = m(_, y) ^ b, v = y, y = b, b = v;
|
|
5989
5989
|
return v = y, y = b, b = v, b = b ^ _.pbox[c], y = y ^ _.pbox[c + 1], { left: y, right: b };
|
|
5990
5990
|
}
|
|
5991
|
-
function r(_, U,
|
|
5992
|
-
let y = U, b =
|
|
5991
|
+
function r(_, U, u) {
|
|
5992
|
+
let y = U, b = u, v;
|
|
5993
5993
|
for (let h = c + 1; h > 1; --h)
|
|
5994
5994
|
y = y ^ _.pbox[h], b = m(_, y) ^ b, v = y, y = b, b = v;
|
|
5995
5995
|
return v = y, y = b, b = v, b = b ^ _.pbox[1], y = y ^ _.pbox[0], { left: y, right: b };
|
|
5996
5996
|
}
|
|
5997
|
-
function o(_, U,
|
|
5997
|
+
function o(_, U, u) {
|
|
5998
5998
|
for (let S = 0; S < 4; S++) {
|
|
5999
5999
|
_.sbox[S] = [];
|
|
6000
6000
|
for (let D = 0; D < 256; D++)
|
|
@@ -6002,7 +6002,7 @@ function Sr() {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
let y = 0;
|
|
6004
6004
|
for (let S = 0; S < c + 2; S++)
|
|
6005
|
-
_.pbox[S] = g[S] ^ U[y], y++, y >=
|
|
6005
|
+
_.pbox[S] = g[S] ^ U[y], y++, y >= u && (y = 0);
|
|
6006
6006
|
let b = 0, v = 0, h = 0;
|
|
6007
6007
|
for (let S = 0; S < c + 2; S += 2)
|
|
6008
6008
|
h = l(_, b, v), b = h.left, v = h.right, _.pbox[S] = b, _.pbox[S + 1] = v;
|
|
@@ -6014,17 +6014,17 @@ function Sr() {
|
|
|
6014
6014
|
var f = C.Blowfish = d.extend({
|
|
6015
6015
|
_doReset: function() {
|
|
6016
6016
|
if (this._keyPriorReset !== this._key) {
|
|
6017
|
-
var _ = this._keyPriorReset = this._key, U = _.words,
|
|
6018
|
-
o(t, U,
|
|
6017
|
+
var _ = this._keyPriorReset = this._key, U = _.words, u = _.sigBytes / 4;
|
|
6018
|
+
o(t, U, u);
|
|
6019
6019
|
}
|
|
6020
6020
|
},
|
|
6021
6021
|
encryptBlock: function(_, U) {
|
|
6022
|
-
var
|
|
6023
|
-
_[U] =
|
|
6022
|
+
var u = l(t, _[U], _[U + 1]);
|
|
6023
|
+
_[U] = u.left, _[U + 1] = u.right;
|
|
6024
6024
|
},
|
|
6025
6025
|
decryptBlock: function(_, U) {
|
|
6026
|
-
var
|
|
6027
|
-
_[U] =
|
|
6026
|
+
var u = r(t, _[U], _[U + 1]);
|
|
6027
|
+
_[U] = u.left, _[U + 1] = u.right;
|
|
6028
6028
|
},
|
|
6029
6029
|
blockSize: 64 / 32,
|
|
6030
6030
|
keySize: 128 / 32,
|
|
@@ -6037,17 +6037,17 @@ function Sr() {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
var Dr = Ba.exports, Jt;
|
|
6039
6039
|
function Er() {
|
|
6040
|
-
return Jt || (Jt = 1, (function(e,
|
|
6040
|
+
return Jt || (Jt = 1, (function(e, s) {
|
|
6041
6041
|
(function(n, i, p) {
|
|
6042
|
-
e.exports = i($(), ki(), kl(), Sl(), ia(), Nl(), ta(),
|
|
6042
|
+
e.exports = i($(), ki(), kl(), Sl(), ia(), Nl(), ta(), Nn(), Vi(), Pl(), Ln(), Ol(), Bl(), Wl(), Zi(), Zl(), Je(), se(), ql(), $l(), Yl(), er(), ir(), nr(), rr(), mr(), ur(), gr(), cr(), fr(), yr(), Cr(), Tr(), kr(), Sr());
|
|
6043
6043
|
})(Dr, function(n) {
|
|
6044
6044
|
return n;
|
|
6045
6045
|
});
|
|
6046
6046
|
})(Ba)), Ba.exports;
|
|
6047
6047
|
}
|
|
6048
|
-
var
|
|
6049
|
-
const Qe = /* @__PURE__ */ zi(
|
|
6050
|
-
const
|
|
6048
|
+
var Gn = Er();
|
|
6049
|
+
const Qe = /* @__PURE__ */ zi(Gn), Ye = (e) => {
|
|
6050
|
+
const s = "mySecretPassphrase", n = Qe.lib.WordArray.random(16), i = Qe.PBKDF2(s, n, {
|
|
6051
6051
|
keySize: 128 / 32,
|
|
6052
6052
|
iterations: 1e3
|
|
6053
6053
|
}), p = Qe.AES.encrypt(e, i, {
|
|
@@ -6057,9 +6057,9 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6057
6057
|
}), d = n.toString(Qe.enc.Base64), C = Qe.enc.Base64.stringify(p.ciphertext);
|
|
6058
6058
|
return d + ":" + C;
|
|
6059
6059
|
}, Ue = () => {
|
|
6060
|
-
const { client: e, formDataClient:
|
|
6061
|
-
async (
|
|
6062
|
-
const { mac_address: y = "", app_version: b = "", anydesk_id: v = "" } =
|
|
6060
|
+
const { client: e, formDataClient: s } = te(), n = I(
|
|
6061
|
+
async (u) => {
|
|
6062
|
+
const { mac_address: y = "", app_version: b = "", anydesk_id: v = "" } = u, { data: h } = await e.post("/cash-register/login", {
|
|
6063
6063
|
mac_address: y,
|
|
6064
6064
|
app_version: b,
|
|
6065
6065
|
anydesk_id: v
|
|
@@ -6068,8 +6068,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6068
6068
|
},
|
|
6069
6069
|
[e]
|
|
6070
6070
|
), i = I(async () => e.get("/member/getMemberInfo"), [e]), p = I(async () => await e.get("/member/getGameList"), [e]), d = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), C = I(async () => await e.get("member/getFavoriteGame"), [e]), c = I(
|
|
6071
|
-
async (
|
|
6072
|
-
const { account: y, password: b, trans_code: v } =
|
|
6071
|
+
async (u) => {
|
|
6072
|
+
const { account: y, password: b, trans_code: v } = u;
|
|
6073
6073
|
return await e.post("/login", {
|
|
6074
6074
|
memId: y,
|
|
6075
6075
|
passwd: b,
|
|
@@ -6078,8 +6078,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6078
6078
|
},
|
|
6079
6079
|
[e]
|
|
6080
6080
|
), g = I(async () => await e.post("/logout"), [e]), a = I(
|
|
6081
|
-
async (
|
|
6082
|
-
const { gameUid: y = "", status: b = 0 } =
|
|
6081
|
+
async (u) => {
|
|
6082
|
+
const { gameUid: y = "", status: b = 0 } = u;
|
|
6083
6083
|
return await e.put(`/member/toggleFavoriteGame/${y}`, {
|
|
6084
6084
|
status: b
|
|
6085
6085
|
});
|
|
@@ -6087,7 +6087,7 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6087
6087
|
[e]
|
|
6088
6088
|
), t = I(async () => await e.get("/profit/ranking"), [e]), m = I(
|
|
6089
6089
|
async ({
|
|
6090
|
-
memberId:
|
|
6090
|
+
memberId: u,
|
|
6091
6091
|
password: y,
|
|
6092
6092
|
unlimitCode: b,
|
|
6093
6093
|
email: v,
|
|
@@ -6096,7 +6096,7 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6096
6096
|
validCode: D
|
|
6097
6097
|
}) => {
|
|
6098
6098
|
const O = {
|
|
6099
|
-
memId:
|
|
6099
|
+
memId: u,
|
|
6100
6100
|
passwd: Ye(y),
|
|
6101
6101
|
email: v,
|
|
6102
6102
|
currency_code: S,
|
|
@@ -6106,8 +6106,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6106
6106
|
},
|
|
6107
6107
|
[e]
|
|
6108
6108
|
), l = I(
|
|
6109
|
-
async (
|
|
6110
|
-
const { name: y, birthday: b, email: v, mobile: h } =
|
|
6109
|
+
async (u) => {
|
|
6110
|
+
const { name: y, birthday: b, email: v, mobile: h } = u;
|
|
6111
6111
|
return await e.post("/editMembetInfo", {
|
|
6112
6112
|
name: y,
|
|
6113
6113
|
// 暱稱
|
|
@@ -6121,8 +6121,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6121
6121
|
},
|
|
6122
6122
|
[e]
|
|
6123
6123
|
), r = I(
|
|
6124
|
-
async (
|
|
6125
|
-
const { oldPwd: y, newPwd: b } =
|
|
6124
|
+
async (u) => {
|
|
6125
|
+
const { oldPwd: y, newPwd: b } = u;
|
|
6126
6126
|
return await e.post("/passwordReset", {
|
|
6127
6127
|
old_pwd: Ye(y),
|
|
6128
6128
|
new_pwd: Ye(b)
|
|
@@ -6130,8 +6130,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6130
6130
|
},
|
|
6131
6131
|
[e]
|
|
6132
6132
|
), o = I(
|
|
6133
|
-
async (
|
|
6134
|
-
const { newPwd: y, confirmNewPwd: b } =
|
|
6133
|
+
async (u) => {
|
|
6134
|
+
const { newPwd: y, confirmNewPwd: b } = u;
|
|
6135
6135
|
return await e.post("/setWithdrawPassword", {
|
|
6136
6136
|
newPassword: Ye(y),
|
|
6137
6137
|
confirmPassword: Ye(b)
|
|
@@ -6139,8 +6139,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6139
6139
|
},
|
|
6140
6140
|
[e]
|
|
6141
6141
|
), f = I(
|
|
6142
|
-
async (
|
|
6143
|
-
const { oldPwd: y, newPwd: b } =
|
|
6142
|
+
async (u) => {
|
|
6143
|
+
const { oldPwd: y, newPwd: b } = u;
|
|
6144
6144
|
return await e.post("/withdrawPasswordReset", {
|
|
6145
6145
|
old_pwd: Ye(y),
|
|
6146
6146
|
new_pwd: Ye(b)
|
|
@@ -6148,19 +6148,19 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6148
6148
|
},
|
|
6149
6149
|
[e]
|
|
6150
6150
|
), _ = I(
|
|
6151
|
-
async ({ paramsData:
|
|
6152
|
-
const { start_time: y, end_time: b, limit: v = 25 } =
|
|
6151
|
+
async ({ paramsData: u }) => {
|
|
6152
|
+
const { start_time: y, end_time: b, limit: v = 25 } = u || {};
|
|
6153
6153
|
return await e.get("/report/totalprofit", {
|
|
6154
6154
|
params: {
|
|
6155
|
-
start_time: `${
|
|
6156
|
-
end_time: `${
|
|
6155
|
+
start_time: `${de(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
6156
|
+
end_time: `${de(b).format("YYYY-MM-DD")} 11:59:59`,
|
|
6157
6157
|
limit: v
|
|
6158
6158
|
}
|
|
6159
6159
|
});
|
|
6160
6160
|
},
|
|
6161
6161
|
[e]
|
|
6162
6162
|
), U = I(
|
|
6163
|
-
async ({ formData:
|
|
6163
|
+
async ({ formData: u }) => {
|
|
6164
6164
|
const {
|
|
6165
6165
|
bank_name: y,
|
|
6166
6166
|
bank_account_name: b,
|
|
@@ -6169,10 +6169,10 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6169
6169
|
bank_card_number: S,
|
|
6170
6170
|
id_card: D,
|
|
6171
6171
|
id_pic: O
|
|
6172
|
-
} =
|
|
6173
|
-
return await
|
|
6172
|
+
} = u;
|
|
6173
|
+
return await s.post("/bindBankAccount", u);
|
|
6174
6174
|
},
|
|
6175
|
-
[
|
|
6175
|
+
[s]
|
|
6176
6176
|
);
|
|
6177
6177
|
return {
|
|
6178
6178
|
machineLoginApi: n,
|
|
@@ -6192,8 +6192,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6192
6192
|
userRebateApi: _,
|
|
6193
6193
|
userBindBankApi: U
|
|
6194
6194
|
};
|
|
6195
|
-
}, em = ({ otherQueryKey: e = [], options:
|
|
6196
|
-
const { userCurrencyExchangeApi: n } = Ue(), { getToken: i } = te(), { enabled: p, ...d } =
|
|
6195
|
+
}, em = ({ otherQueryKey: e = [], options: s = {} } = {}) => {
|
|
6196
|
+
const { userCurrencyExchangeApi: n } = Ue(), { getToken: i } = te(), { enabled: p, ...d } = s, c = !!i?.() && (p ? p.every((g) => g) : !0);
|
|
6197
6197
|
return yn({
|
|
6198
6198
|
queries: [
|
|
6199
6199
|
{
|
|
@@ -6208,14 +6208,14 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6208
6208
|
});
|
|
6209
6209
|
}, am = ({
|
|
6210
6210
|
refetchInterval: e = 5e4,
|
|
6211
|
-
trigger:
|
|
6211
|
+
trigger: s = [],
|
|
6212
6212
|
enabled: n = !0
|
|
6213
6213
|
} = {}) => {
|
|
6214
6214
|
const { getToken: i } = te(), p = i?.(), { userInfoApi: d } = Ue();
|
|
6215
6215
|
return yn({
|
|
6216
6216
|
queries: [
|
|
6217
6217
|
{
|
|
6218
|
-
queryKey: ["getMemberInfo", ...
|
|
6218
|
+
queryKey: ["getMemberInfo", ...s],
|
|
6219
6219
|
queryFn: async () => await d(),
|
|
6220
6220
|
refetchInterval: e,
|
|
6221
6221
|
enabled: !!p && n
|
|
@@ -6224,13 +6224,13 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6224
6224
|
});
|
|
6225
6225
|
}, im = ({ enabled: e = !0 } = {}) => {
|
|
6226
6226
|
const {
|
|
6227
|
-
userInfoApi:
|
|
6227
|
+
userInfoApi: s,
|
|
6228
6228
|
userFavoriteGameApi: n,
|
|
6229
6229
|
userGameListApi: i,
|
|
6230
6230
|
userCurrencyExchangeApi: p
|
|
6231
6231
|
} = Ue(), d = ee({
|
|
6232
6232
|
queryKey: ["getMemInfo"],
|
|
6233
|
-
queryFn: async () =>
|
|
6233
|
+
queryFn: async () => s(),
|
|
6234
6234
|
enabled: e
|
|
6235
6235
|
}), C = ee({
|
|
6236
6236
|
queryKey: ["getFavoriteGame"],
|
|
@@ -6252,7 +6252,7 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6252
6252
|
g
|
|
6253
6253
|
];
|
|
6254
6254
|
}, Ji = () => {
|
|
6255
|
-
const { client: e, lng:
|
|
6255
|
+
const { client: e, lng: s } = te(), n = Ze(s || "tw"), i = I(
|
|
6256
6256
|
async (C) => {
|
|
6257
6257
|
const {
|
|
6258
6258
|
gameUid: c = "",
|
|
@@ -6280,8 +6280,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6280
6280
|
), p = I(
|
|
6281
6281
|
async (C) => {
|
|
6282
6282
|
const {
|
|
6283
|
-
startDate: c =
|
|
6284
|
-
endDate: g =
|
|
6283
|
+
startDate: c = de().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6284
|
+
endDate: g = de().format("YYYY-MM-DD 11:59:59"),
|
|
6285
6285
|
platform: a = "",
|
|
6286
6286
|
limit: t = 25
|
|
6287
6287
|
} = C, { data: m } = await e.get("/report/netprofit", {
|
|
@@ -6298,8 +6298,8 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6298
6298
|
), d = I(
|
|
6299
6299
|
async (C) => {
|
|
6300
6300
|
const {
|
|
6301
|
-
startDate: c =
|
|
6302
|
-
endDate: g =
|
|
6301
|
+
startDate: c = de().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6302
|
+
endDate: g = de().format("YYYY-MM-DD 11:59:59"),
|
|
6303
6303
|
platform: a,
|
|
6304
6304
|
limit: t = 25,
|
|
6305
6305
|
page: m = 1
|
|
@@ -6317,22 +6317,22 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6317
6317
|
[e]
|
|
6318
6318
|
);
|
|
6319
6319
|
return { playGameApi: i, betRecordApi: p, betRecordDetailApi: d };
|
|
6320
|
-
}, Nr = ({ options: e, formData:
|
|
6320
|
+
}, Nr = ({ options: e, formData: s } = {}) => {
|
|
6321
6321
|
const { betRecordApi: n } = Ji();
|
|
6322
6322
|
return ee({
|
|
6323
6323
|
queryKey: ["getBetRecord"],
|
|
6324
|
-
queryFn: async () => await n(
|
|
6324
|
+
queryFn: async () => await n(s),
|
|
6325
6325
|
select: (i) => bn(i).map(([d, C]) => ({
|
|
6326
6326
|
...C,
|
|
6327
6327
|
platform: d
|
|
6328
6328
|
})),
|
|
6329
6329
|
...e
|
|
6330
6330
|
});
|
|
6331
|
-
}, Lr = ({ options: e, formData:
|
|
6331
|
+
}, Lr = ({ options: e, formData: s } = {}) => {
|
|
6332
6332
|
const { betRecordDetailApi: n } = Ji();
|
|
6333
6333
|
return ee({
|
|
6334
6334
|
queryKey: ["getBetRecordDetail"],
|
|
6335
|
-
queryFn: async () => await n(
|
|
6335
|
+
queryFn: async () => await n(s),
|
|
6336
6336
|
...e
|
|
6337
6337
|
});
|
|
6338
6338
|
}, tm = ({
|
|
@@ -6341,11 +6341,11 @@ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
|
6341
6341
|
betRecordDetail: {}
|
|
6342
6342
|
}
|
|
6343
6343
|
}) => {
|
|
6344
|
-
const
|
|
6344
|
+
const s = Nr({ options: e.betRecord }), n = Lr({
|
|
6345
6345
|
options: e.betRecordDetail
|
|
6346
6346
|
});
|
|
6347
6347
|
return {
|
|
6348
|
-
betRecord:
|
|
6348
|
+
betRecord: s,
|
|
6349
6349
|
betRecordDetail: n
|
|
6350
6350
|
};
|
|
6351
6351
|
};
|
|
@@ -6353,7 +6353,7 @@ var Fi = {}, he = {}, wi = {}, It;
|
|
|
6353
6353
|
function Ge() {
|
|
6354
6354
|
return It || (It = 1, (function(e) {
|
|
6355
6355
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
|
6356
|
-
var
|
|
6356
|
+
var s = 1, n = 1e3 * s;
|
|
6357
6357
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
6358
6358
|
withCredentials: !1,
|
|
6359
6359
|
events: e.EMPTY_EVENT_HANDLERS
|
|
@@ -6380,21 +6380,21 @@ var Ua = {}, Oi = {}, Kt;
|
|
|
6380
6380
|
function Ii() {
|
|
6381
6381
|
return Kt || (Kt = 1, (function(e) {
|
|
6382
6382
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
6383
|
-
var
|
|
6383
|
+
var s = function(n) {
|
|
6384
6384
|
if (n && e.sharedWebSockets.hasOwnProperty(n))
|
|
6385
6385
|
delete e.sharedWebSockets[n];
|
|
6386
6386
|
else
|
|
6387
6387
|
for (var i in e.sharedWebSockets)
|
|
6388
6388
|
e.sharedWebSockets.hasOwnProperty(i) && delete e.sharedWebSockets[i];
|
|
6389
6389
|
};
|
|
6390
|
-
e.resetWebSockets =
|
|
6390
|
+
e.resetWebSockets = s;
|
|
6391
6391
|
})(Oi)), Oi;
|
|
6392
6392
|
}
|
|
6393
6393
|
var Xe = {}, Fe = {}, qt;
|
|
6394
6394
|
function Ki() {
|
|
6395
6395
|
if (qt) return Fe;
|
|
6396
6396
|
qt = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.setUpSocketIOPing = Fe.appendQueryParams = Fe.parseSocketIOUrl = void 0;
|
|
6397
|
-
var e = Ge(),
|
|
6397
|
+
var e = Ge(), s = function(p) {
|
|
6398
6398
|
if (p) {
|
|
6399
6399
|
var d = /^https|wss/.test(p), C = p.replace(/^(https?|wss?)(:\/\/)?/, ""), c = C.replace(/\/$/, ""), g = d ? "wss" : "ws";
|
|
6400
6400
|
return "".concat(g, "://").concat(c).concat(e.SOCKET_IO_PATH);
|
|
@@ -6404,7 +6404,7 @@ function Ki() {
|
|
|
6404
6404
|
}
|
|
6405
6405
|
return p;
|
|
6406
6406
|
};
|
|
6407
|
-
Fe.parseSocketIOUrl =
|
|
6407
|
+
Fe.parseSocketIOUrl = s;
|
|
6408
6408
|
var n = function(p, d) {
|
|
6409
6409
|
d === void 0 && (d = {});
|
|
6410
6410
|
var C = /\?([\w]+=[\w]+)/, c = C.test(p), g = "".concat(Object.entries(d).reduce(function(a, t) {
|
|
@@ -6424,25 +6424,25 @@ function Ki() {
|
|
|
6424
6424
|
return Fe.setUpSocketIOPing = i, Fe;
|
|
6425
6425
|
}
|
|
6426
6426
|
var Pa = {}, jt;
|
|
6427
|
-
function
|
|
6427
|
+
function Mn() {
|
|
6428
6428
|
if (jt) return Pa;
|
|
6429
6429
|
jt = 1, Object.defineProperty(Pa, "__esModule", { value: !0 }), Pa.heartbeat = n;
|
|
6430
6430
|
var e = Ge();
|
|
6431
|
-
function
|
|
6431
|
+
function s(i) {
|
|
6432
6432
|
return Array.isArray(i) ? i.reduce(function(p, d) {
|
|
6433
6433
|
return p.current > d.current ? p : d;
|
|
6434
6434
|
}).current : i.current;
|
|
6435
6435
|
}
|
|
6436
6436
|
function n(i, p, d) {
|
|
6437
6437
|
var C = d || {}, c = C.interval, g = c === void 0 ? e.DEFAULT_HEARTBEAT.interval : c, a = C.timeout, t = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, m = C.message, l = m === void 0 ? e.DEFAULT_HEARTBEAT.message : m, r = Math.max(100, g / 10), o = Date.now(), f = setInterval(function() {
|
|
6438
|
-
var _ = Date.now(), U =
|
|
6438
|
+
var _ = Date.now(), U = s(p);
|
|
6439
6439
|
if (U + t <= _)
|
|
6440
6440
|
console.warn("Heartbeat timed out, closing connection, last message received ".concat(_ - U, "ms ago, last ping sent ").concat(_ - o, "ms ago")), i.close();
|
|
6441
6441
|
else if (U + g <= _ && o + g <= _)
|
|
6442
6442
|
try {
|
|
6443
6443
|
typeof l == "function" ? i.send(l()) : i.send(l), o = _;
|
|
6444
|
-
} catch (
|
|
6445
|
-
console.error("Heartbeat failed, closing connection",
|
|
6444
|
+
} catch (u) {
|
|
6445
|
+
console.error("Heartbeat failed, closing connection", u instanceof Error ? u.message : u), i.close();
|
|
6446
6446
|
}
|
|
6447
6447
|
}, r);
|
|
6448
6448
|
return i.addEventListener("close", function() {
|
|
@@ -6456,29 +6456,29 @@ var ya = {}, Ai = {}, $t;
|
|
|
6456
6456
|
function qi() {
|
|
6457
6457
|
return $t || ($t = 1, (function(e) {
|
|
6458
6458
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
6459
|
-
var
|
|
6460
|
-
return (0, e.hasSubscribers)(g) ? Array.from(
|
|
6459
|
+
var s = {}, n = [], i = function(g) {
|
|
6460
|
+
return (0, e.hasSubscribers)(g) ? Array.from(s[g]) : n;
|
|
6461
6461
|
};
|
|
6462
6462
|
e.getSubscribers = i;
|
|
6463
6463
|
var p = function(g) {
|
|
6464
6464
|
var a;
|
|
6465
|
-
return ((a =
|
|
6465
|
+
return ((a = s[g]) === null || a === void 0 ? void 0 : a.size) > 0;
|
|
6466
6466
|
};
|
|
6467
6467
|
e.hasSubscribers = p;
|
|
6468
6468
|
var d = function(g, a) {
|
|
6469
|
-
|
|
6469
|
+
s[g] = s[g] || /* @__PURE__ */ new Set(), s[g].add(a);
|
|
6470
6470
|
};
|
|
6471
6471
|
e.addSubscriber = d;
|
|
6472
6472
|
var C = function(g, a) {
|
|
6473
|
-
|
|
6473
|
+
s[g].delete(a);
|
|
6474
6474
|
};
|
|
6475
6475
|
e.removeSubscriber = C;
|
|
6476
6476
|
var c = function(g) {
|
|
6477
|
-
if (g &&
|
|
6478
|
-
delete
|
|
6477
|
+
if (g && s.hasOwnProperty(g))
|
|
6478
|
+
delete s[g];
|
|
6479
6479
|
else
|
|
6480
|
-
for (var a in
|
|
6481
|
-
|
|
6480
|
+
for (var a in s)
|
|
6481
|
+
s.hasOwnProperty(a) && delete s[a];
|
|
6482
6482
|
};
|
|
6483
6483
|
e.resetSubscribers = c;
|
|
6484
6484
|
})(Ai)), Ai;
|
|
@@ -6487,13 +6487,13 @@ var Qt;
|
|
|
6487
6487
|
function ji() {
|
|
6488
6488
|
if (Qt) return ya;
|
|
6489
6489
|
Qt = 1, Object.defineProperty(ya, "__esModule", { value: !0 }), ya.assertIsWebSocket = n, ya.resetGlobalState = i;
|
|
6490
|
-
var e = Ii(),
|
|
6490
|
+
var e = Ii(), s = qi();
|
|
6491
6491
|
function n(p, d) {
|
|
6492
6492
|
if (!d && !(p instanceof WebSocket))
|
|
6493
6493
|
throw new Error("");
|
|
6494
6494
|
}
|
|
6495
6495
|
function i(p) {
|
|
6496
|
-
(0,
|
|
6496
|
+
(0, s.resetSubscribers)(p), (0, e.resetWebSockets)(p);
|
|
6497
6497
|
}
|
|
6498
6498
|
return ya;
|
|
6499
6499
|
}
|
|
@@ -6511,7 +6511,7 @@ function Gr() {
|
|
|
6511
6511
|
}, e.apply(this, arguments);
|
|
6512
6512
|
};
|
|
6513
6513
|
Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.attachListeners = void 0;
|
|
6514
|
-
var
|
|
6514
|
+
var s = Ki(), n = Mn(), i = Ge(), p = ji(), d = function(t, m, l, r) {
|
|
6515
6515
|
t.onmessage = function(o) {
|
|
6516
6516
|
var f;
|
|
6517
6517
|
m.current.onMessage && m.current.onMessage(o), typeof r?.current == "number" && (r.current = Date.now()), !(typeof m.current.filter == "function" && m.current.filter(o) !== !0) && (m.current.heartbeat && typeof m.current.heartbeat != "boolean" && ((f = m.current.heartbeat) === null || f === void 0 ? void 0 : f.returnMessage) === o.data || l(o));
|
|
@@ -6532,14 +6532,14 @@ function Gr() {
|
|
|
6532
6532
|
return t.onclose = function(_) {
|
|
6533
6533
|
var U;
|
|
6534
6534
|
if (m.current.onClose && m.current.onClose(_), l(i.ReadyState.CLOSED), m.current.shouldReconnect && m.current.shouldReconnect(_)) {
|
|
6535
|
-
var
|
|
6536
|
-
if (o.current <
|
|
6535
|
+
var u = (U = m.current.reconnectAttempts) !== null && U !== void 0 ? U : i.DEFAULT_RECONNECT_LIMIT;
|
|
6536
|
+
if (o.current < u) {
|
|
6537
6537
|
var y = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(o.current) : m.current.reconnectInterval;
|
|
6538
6538
|
f = window.setTimeout(function() {
|
|
6539
6539
|
o.current++, r();
|
|
6540
6540
|
}, y ?? i.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6541
6541
|
} else
|
|
6542
|
-
m.current.onReconnectStop && m.current.onReconnectStop(
|
|
6542
|
+
m.current.onReconnectStop && m.current.onReconnectStop(u), console.warn("Max reconnect attempts of ".concat(u, " exceeded"));
|
|
6543
6543
|
}
|
|
6544
6544
|
}, function() {
|
|
6545
6545
|
return f && window.clearTimeout(f);
|
|
@@ -6550,19 +6550,19 @@ function Gr() {
|
|
|
6550
6550
|
var U;
|
|
6551
6551
|
if (m.current.onError && m.current.onError(_), i.isEventSourceSupported && t instanceof EventSource && (m.current.onClose && m.current.onClose(e(e({}, _), { code: 1006, reason: "An error occurred with the EventSource: ".concat(_), wasClean: !1 })), l(i.ReadyState.CLOSED), t.close()), m.current.retryOnError)
|
|
6552
6552
|
if (o.current < ((U = m.current.reconnectAttempts) !== null && U !== void 0 ? U : i.DEFAULT_RECONNECT_LIMIT)) {
|
|
6553
|
-
var
|
|
6553
|
+
var u = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(o.current) : m.current.reconnectInterval;
|
|
6554
6554
|
f = window.setTimeout(function() {
|
|
6555
6555
|
o.current++, r();
|
|
6556
|
-
},
|
|
6556
|
+
}, u ?? i.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6557
6557
|
} else
|
|
6558
6558
|
m.current.onReconnectStop && m.current.onReconnectStop(m.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(m.current.reconnectAttempts, " exceeded"));
|
|
6559
6559
|
}, function() {
|
|
6560
6560
|
return f && window.clearTimeout(f);
|
|
6561
6561
|
};
|
|
6562
6562
|
}, a = function(t, m, l, r, o, f, _) {
|
|
6563
|
-
var U = m.setLastMessage,
|
|
6564
|
-
return l.current.fromSocketIO && (y = (0,
|
|
6565
|
-
|
|
6563
|
+
var U = m.setLastMessage, u = m.setReadyState, y, b, v;
|
|
6564
|
+
return l.current.fromSocketIO && (y = (0, s.setUpSocketIOPing)(_)), d(t, l, U, f), C(t, l, u, o, f), b = c(t, l, u, r, o), v = g(t, l, u, r, o), function() {
|
|
6565
|
+
u(i.ReadyState.CLOSING), b(), v(), t.close(), y && clearInterval(y);
|
|
6566
6566
|
};
|
|
6567
6567
|
};
|
|
6568
6568
|
return Xe.attachListeners = a, Xe;
|
|
@@ -6581,7 +6581,7 @@ function Mr() {
|
|
|
6581
6581
|
}, e.apply(this, arguments);
|
|
6582
6582
|
};
|
|
6583
6583
|
Object.defineProperty(ea, "__esModule", { value: !0 }), ea.attachSharedListeners = void 0;
|
|
6584
|
-
var
|
|
6584
|
+
var s = Ii(), n = Ge(), i = qi(), p = Ki(), d = Mn(), C = function(m, l, r) {
|
|
6585
6585
|
m.onmessage = function(o) {
|
|
6586
6586
|
(0, i.getSubscribers)(l).forEach(function(f) {
|
|
6587
6587
|
var _;
|
|
@@ -6601,7 +6601,7 @@ function Mr() {
|
|
|
6601
6601
|
m instanceof WebSocket && (m.onclose = function(r) {
|
|
6602
6602
|
(0, i.getSubscribers)(l).forEach(function(o) {
|
|
6603
6603
|
o.optionsRef.current.onClose && o.optionsRef.current.onClose(r), o.setReadyState(n.ReadyState.CLOSED);
|
|
6604
|
-
}), delete
|
|
6604
|
+
}), delete s.sharedWebSockets[l], (0, i.getSubscribers)(l).forEach(function(o) {
|
|
6605
6605
|
var f;
|
|
6606
6606
|
if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(r)) {
|
|
6607
6607
|
var _ = (f = o.optionsRef.current.reconnectAttempts) !== null && f !== void 0 ? f : n.DEFAULT_RECONNECT_LIMIT;
|
|
@@ -6633,13 +6633,13 @@ var en;
|
|
|
6633
6633
|
function Rr() {
|
|
6634
6634
|
if (en) return Ua;
|
|
6635
6635
|
en = 1, Object.defineProperty(Ua, "__esModule", { value: !0 }), Ua.createOrJoinSocket = void 0;
|
|
6636
|
-
var e = Ii(),
|
|
6636
|
+
var e = Ii(), s = Ge(), n = Gr(), i = Mr(), p = qi(), d = function(c, g, a, t, m) {
|
|
6637
6637
|
return function() {
|
|
6638
6638
|
if ((0, p.removeSubscriber)(c, g), !(0, p.hasSubscribers)(c)) {
|
|
6639
6639
|
try {
|
|
6640
6640
|
var l = e.sharedWebSockets[c];
|
|
6641
6641
|
l instanceof WebSocket && (l.onclose = function(r) {
|
|
6642
|
-
a.current.onClose && a.current.onClose(r), t(
|
|
6642
|
+
a.current.onClose && a.current.onClose(r), t(s.ReadyState.CLOSED);
|
|
6643
6643
|
}), l.close();
|
|
6644
6644
|
} catch {
|
|
6645
6645
|
}
|
|
@@ -6647,11 +6647,11 @@ function Rr() {
|
|
|
6647
6647
|
}
|
|
6648
6648
|
};
|
|
6649
6649
|
}, C = function(c, g, a, t, m, l, r, o, f) {
|
|
6650
|
-
if (!
|
|
6651
|
-
throw
|
|
6650
|
+
if (!s.isEventSourceSupported && t.current.eventSourceOptions)
|
|
6651
|
+
throw s.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6652
6652
|
if (t.current.share) {
|
|
6653
6653
|
var _ = null;
|
|
6654
|
-
e.sharedWebSockets[g] === void 0 ? (e.sharedWebSockets[g] = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), c.current = e.sharedWebSockets[g], a(
|
|
6654
|
+
e.sharedWebSockets[g] === void 0 ? (e.sharedWebSockets[g] = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), c.current = e.sharedWebSockets[g], a(s.ReadyState.CONNECTING), _ = (0, i.attachSharedListeners)(e.sharedWebSockets[g], g, t, f)) : (c.current = e.sharedWebSockets[g], a(e.sharedWebSockets[g].readyState));
|
|
6655
6655
|
var U = {
|
|
6656
6656
|
setLastMessage: m,
|
|
6657
6657
|
setReadyState: a,
|
|
@@ -6662,7 +6662,7 @@ function Rr() {
|
|
|
6662
6662
|
};
|
|
6663
6663
|
return (0, p.addSubscriber)(g, U), d(g, U, t, a, _);
|
|
6664
6664
|
} else {
|
|
6665
|
-
if (c.current = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), a(
|
|
6665
|
+
if (c.current = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), a(s.ReadyState.CONNECTING), !c.current)
|
|
6666
6666
|
throw new Error("WebSocket failed to be created");
|
|
6667
6667
|
return (0, n.attachListeners)(c.current, {
|
|
6668
6668
|
setLastMessage: m,
|
|
@@ -6675,29 +6675,29 @@ function Rr() {
|
|
|
6675
6675
|
var we = {}, an;
|
|
6676
6676
|
function Pr() {
|
|
6677
6677
|
return an || (an = 1, (function(e) {
|
|
6678
|
-
var
|
|
6678
|
+
var s = we && we.__awaiter || function(g, a, t, m) {
|
|
6679
6679
|
function l(r) {
|
|
6680
6680
|
return r instanceof t ? r : new t(function(o) {
|
|
6681
6681
|
o(r);
|
|
6682
6682
|
});
|
|
6683
6683
|
}
|
|
6684
6684
|
return new (t || (t = Promise))(function(r, o) {
|
|
6685
|
-
function f(
|
|
6685
|
+
function f(u) {
|
|
6686
6686
|
try {
|
|
6687
|
-
U(m.next(
|
|
6687
|
+
U(m.next(u));
|
|
6688
6688
|
} catch (y) {
|
|
6689
6689
|
o(y);
|
|
6690
6690
|
}
|
|
6691
6691
|
}
|
|
6692
|
-
function _(
|
|
6692
|
+
function _(u) {
|
|
6693
6693
|
try {
|
|
6694
|
-
U(m.throw(
|
|
6694
|
+
U(m.throw(u));
|
|
6695
6695
|
} catch (y) {
|
|
6696
6696
|
o(y);
|
|
6697
6697
|
}
|
|
6698
6698
|
}
|
|
6699
|
-
function U(
|
|
6700
|
-
|
|
6699
|
+
function U(u) {
|
|
6700
|
+
u.done ? r(u.value) : l(u.value).then(f, _);
|
|
6701
6701
|
}
|
|
6702
6702
|
U((m = m.apply(g, a || [])).next());
|
|
6703
6703
|
});
|
|
@@ -6710,8 +6710,8 @@ function Pr() {
|
|
|
6710
6710
|
return this;
|
|
6711
6711
|
}), o;
|
|
6712
6712
|
function f(U) {
|
|
6713
|
-
return function(
|
|
6714
|
-
return _([U,
|
|
6713
|
+
return function(u) {
|
|
6714
|
+
return _([U, u]);
|
|
6715
6715
|
};
|
|
6716
6716
|
}
|
|
6717
6717
|
function _(U) {
|
|
@@ -6752,8 +6752,8 @@ function Pr() {
|
|
|
6752
6752
|
continue;
|
|
6753
6753
|
}
|
|
6754
6754
|
U = a.call(g, t);
|
|
6755
|
-
} catch (
|
|
6756
|
-
U = [6,
|
|
6755
|
+
} catch (u) {
|
|
6756
|
+
U = [6, u], l = 0;
|
|
6757
6757
|
} finally {
|
|
6758
6758
|
m = r = 0;
|
|
6759
6759
|
}
|
|
@@ -6773,8 +6773,8 @@ function Pr() {
|
|
|
6773
6773
|
}, c = function(g, a) {
|
|
6774
6774
|
for (var t = [], m = 2; m < arguments.length; m++)
|
|
6775
6775
|
t[m - 2] = arguments[m];
|
|
6776
|
-
return
|
|
6777
|
-
var f, _, U,
|
|
6776
|
+
return s(void 0, i([g, a], t, !0), void 0, function(l, r, o) {
|
|
6777
|
+
var f, _, U, u, y, b, v, h;
|
|
6778
6778
|
return o === void 0 && (o = 0), n(this, function(S) {
|
|
6779
6779
|
switch (S.label) {
|
|
6780
6780
|
case 0:
|
|
@@ -6801,7 +6801,7 @@ function Pr() {
|
|
|
6801
6801
|
case 10:
|
|
6802
6802
|
f = l, S.label = 11;
|
|
6803
6803
|
case 11:
|
|
6804
|
-
return
|
|
6804
|
+
return u = r.current.fromSocketIO ? (0, p.parseSocketIOUrl)(f) : f, y = r.current.queryParams ? (0, p.appendQueryParams)(u, r.current.queryParams) : u, [2, y];
|
|
6805
6805
|
}
|
|
6806
6806
|
});
|
|
6807
6807
|
});
|
|
@@ -6813,7 +6813,7 @@ var Bi = {}, tn;
|
|
|
6813
6813
|
function Fr() {
|
|
6814
6814
|
return tn || (tn = 1, (function(e) {
|
|
6815
6815
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
6816
|
-
var
|
|
6816
|
+
var s = function(n, i) {
|
|
6817
6817
|
return new Proxy(n, {
|
|
6818
6818
|
get: function(p, d) {
|
|
6819
6819
|
var C = p[d];
|
|
@@ -6825,7 +6825,7 @@ function Fr() {
|
|
|
6825
6825
|
}
|
|
6826
6826
|
});
|
|
6827
6827
|
};
|
|
6828
|
-
e.websocketWrapper =
|
|
6828
|
+
e.websocketWrapper = s, e.default = e.websocketWrapper;
|
|
6829
6829
|
})(Bi)), Bi;
|
|
6830
6830
|
}
|
|
6831
6831
|
var nn;
|
|
@@ -6840,25 +6840,25 @@ function $i() {
|
|
|
6840
6840
|
}
|
|
6841
6841
|
return l;
|
|
6842
6842
|
}, e.apply(this, arguments);
|
|
6843
|
-
},
|
|
6843
|
+
}, s = he && he.__awaiter || function(l, r, o, f) {
|
|
6844
6844
|
function _(U) {
|
|
6845
|
-
return U instanceof o ? U : new o(function(
|
|
6846
|
-
|
|
6845
|
+
return U instanceof o ? U : new o(function(u) {
|
|
6846
|
+
u(U);
|
|
6847
6847
|
});
|
|
6848
6848
|
}
|
|
6849
|
-
return new (o || (o = Promise))(function(U,
|
|
6849
|
+
return new (o || (o = Promise))(function(U, u) {
|
|
6850
6850
|
function y(h) {
|
|
6851
6851
|
try {
|
|
6852
6852
|
v(f.next(h));
|
|
6853
6853
|
} catch (S) {
|
|
6854
|
-
|
|
6854
|
+
u(S);
|
|
6855
6855
|
}
|
|
6856
6856
|
}
|
|
6857
6857
|
function b(h) {
|
|
6858
6858
|
try {
|
|
6859
6859
|
v(f.throw(h));
|
|
6860
6860
|
} catch (S) {
|
|
6861
|
-
|
|
6861
|
+
u(S);
|
|
6862
6862
|
}
|
|
6863
6863
|
}
|
|
6864
6864
|
function v(h) {
|
|
@@ -6870,10 +6870,10 @@ function $i() {
|
|
|
6870
6870
|
var o = { label: 0, sent: function() {
|
|
6871
6871
|
if (U[0] & 1) throw U[1];
|
|
6872
6872
|
return U[1];
|
|
6873
|
-
}, trys: [], ops: [] }, f, _, U,
|
|
6874
|
-
return
|
|
6873
|
+
}, trys: [], ops: [] }, f, _, U, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
6874
|
+
return u.next = y(0), u.throw = y(1), u.return = y(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
6875
6875
|
return this;
|
|
6876
|
-
}),
|
|
6876
|
+
}), u;
|
|
6877
6877
|
function y(v) {
|
|
6878
6878
|
return function(h) {
|
|
6879
6879
|
return b([v, h]);
|
|
@@ -6881,7 +6881,7 @@ function $i() {
|
|
|
6881
6881
|
}
|
|
6882
6882
|
function b(v) {
|
|
6883
6883
|
if (f) throw new TypeError("Generator is already executing.");
|
|
6884
|
-
for (;
|
|
6884
|
+
for (; u && (u = 0, v[0] && (o = 0)), o; ) try {
|
|
6885
6885
|
if (f = 1, _ && (U = v[0] & 2 ? _.return : v[0] ? _.throw || ((U = _.return) && U.call(_), 0) : _.next) && !(U = U.call(_, v[1])).done) return U;
|
|
6886
6886
|
switch (_ = 0, U && (v = [v[0] & 2, U.value]), v[0]) {
|
|
6887
6887
|
case 0:
|
|
@@ -6929,9 +6929,9 @@ function $i() {
|
|
|
6929
6929
|
return l && l.__esModule ? l : { default: l };
|
|
6930
6930
|
};
|
|
6931
6931
|
Object.defineProperty(he, "__esModule", { value: !0 }), he.useWebSocket = void 0;
|
|
6932
|
-
var p = va, d =
|
|
6932
|
+
var p = va, d = ll, C = Ge(), c = Rr(), g = Pr(), a = i(Fr()), t = ji(), m = function(l, r, o) {
|
|
6933
6933
|
r === void 0 && (r = C.DEFAULT_OPTIONS), o === void 0 && (o = !0);
|
|
6934
|
-
var f = (0, p.useState)(null), _ = f[0], U = f[1],
|
|
6934
|
+
var f = (0, p.useState)(null), _ = f[0], U = f[1], u = (0, p.useState)({}), y = u[0], b = u[1], v = (0, p.useMemo)(function() {
|
|
6935
6935
|
if (!r.disableJson && _)
|
|
6936
6936
|
try {
|
|
6937
6937
|
return JSON.parse(_.data);
|
|
@@ -6957,7 +6957,7 @@ function $i() {
|
|
|
6957
6957
|
return (0, p.useEffect)(function() {
|
|
6958
6958
|
if (l !== null && o === !0) {
|
|
6959
6959
|
var H, z = !1, E = !0, P = function() {
|
|
6960
|
-
return
|
|
6960
|
+
return s(void 0, void 0, void 0, function() {
|
|
6961
6961
|
var F, R, K;
|
|
6962
6962
|
return n(this, function(q) {
|
|
6963
6963
|
switch (q.label) {
|
|
@@ -7028,7 +7028,7 @@ function wr() {
|
|
|
7028
7028
|
}, e.apply(this, arguments);
|
|
7029
7029
|
};
|
|
7030
7030
|
Object.defineProperty(aa, "__esModule", { value: !0 }), aa.useSocketIO = void 0;
|
|
7031
|
-
var
|
|
7031
|
+
var s = va, n = $i(), i = Ge(), p = {
|
|
7032
7032
|
type: "empty",
|
|
7033
7033
|
payload: null
|
|
7034
7034
|
}, d = function(c) {
|
|
@@ -7044,9 +7044,9 @@ function wr() {
|
|
|
7044
7044
|
};
|
|
7045
7045
|
}, C = function(c, g, a) {
|
|
7046
7046
|
g === void 0 && (g = i.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
7047
|
-
var t = (0,
|
|
7047
|
+
var t = (0, s.useMemo)(function() {
|
|
7048
7048
|
return e(e({}, g), { fromSocketIO: !0 });
|
|
7049
|
-
}, []), m = (0, n.useWebSocket)(c, t, a), l = m.sendMessage, r = m.sendJsonMessage, o = m.lastMessage, f = m.readyState, _ = m.getWebSocket, U = (0,
|
|
7049
|
+
}, []), m = (0, n.useWebSocket)(c, t, a), l = m.sendMessage, r = m.sendJsonMessage, o = m.lastMessage, f = m.readyState, _ = m.getWebSocket, U = (0, s.useMemo)(function() {
|
|
7050
7050
|
return d(o);
|
|
7051
7051
|
}, [o]);
|
|
7052
7052
|
return {
|
|
@@ -7072,7 +7072,7 @@ function Or() {
|
|
|
7072
7072
|
}
|
|
7073
7073
|
return C;
|
|
7074
7074
|
}, e.apply(this, arguments);
|
|
7075
|
-
},
|
|
7075
|
+
}, s = Oe && Oe.__rest || function(C, c) {
|
|
7076
7076
|
var g = {};
|
|
7077
7077
|
for (var a in C) Object.prototype.hasOwnProperty.call(C, a) && c.indexOf(a) < 0 && (g[a] = C[a]);
|
|
7078
7078
|
if (C != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -7083,7 +7083,7 @@ function Or() {
|
|
|
7083
7083
|
Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.useEventSource = void 0;
|
|
7084
7084
|
var n = va, i = $i(), p = Ge(), d = function(C, c, g) {
|
|
7085
7085
|
c === void 0 && (c = p.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7086
|
-
var a = c.withCredentials, t = c.events, m =
|
|
7086
|
+
var a = c.withCredentials, t = c.events, m = s(c, ["withCredentials", "events"]);
|
|
7087
7087
|
g === void 0 && (g = !0);
|
|
7088
7088
|
var l = e(e({}, m), { eventSourceOptions: {
|
|
7089
7089
|
withCredentials: a
|
|
@@ -7091,8 +7091,8 @@ function Or() {
|
|
|
7091
7091
|
t && (r.current = t);
|
|
7092
7092
|
var o = (0, i.useWebSocket)(C, l, g), f = o.lastMessage, _ = o.readyState, U = o.getWebSocket;
|
|
7093
7093
|
return (0, n.useEffect)(function() {
|
|
7094
|
-
f?.type && Object.entries(r.current).forEach(function(
|
|
7095
|
-
var y =
|
|
7094
|
+
f?.type && Object.entries(r.current).forEach(function(u) {
|
|
7095
|
+
var y = u[0], b = u[1];
|
|
7096
7096
|
y === f.type && b(f);
|
|
7097
7097
|
});
|
|
7098
7098
|
}, [f]), {
|
|
@@ -7107,9 +7107,9 @@ var on;
|
|
|
7107
7107
|
function Ar() {
|
|
7108
7108
|
return on || (on = 1, (function(e) {
|
|
7109
7109
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
7110
|
-
var
|
|
7110
|
+
var s = $i();
|
|
7111
7111
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
7112
|
-
return
|
|
7112
|
+
return s.useWebSocket;
|
|
7113
7113
|
} });
|
|
7114
7114
|
var n = wr();
|
|
7115
7115
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
@@ -7145,11 +7145,11 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7145
7145
|
GAME_MAINTAIN: "game_maintain"
|
|
7146
7146
|
}, Wr = 3e4, nm = ({
|
|
7147
7147
|
socketUrl: e,
|
|
7148
|
-
socketHandlers:
|
|
7148
|
+
socketHandlers: s = {},
|
|
7149
7149
|
options: n = {},
|
|
7150
7150
|
memberInfo: i = {}
|
|
7151
7151
|
}) => {
|
|
7152
|
-
const { store: p, openNotification: d, lng: C } = te(), c =
|
|
7152
|
+
const { store: p, openNotification: d, lng: C } = te(), c = Yn(), g = Ze(C), a = et(!1), t = et(s), m = De(i, "uid", null), {
|
|
7153
7153
|
sendMessage: l,
|
|
7154
7154
|
// 發送普通訊息
|
|
7155
7155
|
sendJsonMessage: r,
|
|
@@ -7169,41 +7169,26 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7169
7169
|
...n
|
|
7170
7170
|
}), _ = wa(() => {
|
|
7171
7171
|
try {
|
|
7172
|
-
return
|
|
7173
|
-
...JSON.parse(o?.data),
|
|
7174
|
-
currentTime: ue().unix()
|
|
7175
|
-
};
|
|
7172
|
+
return JSON.parse(o?.data);
|
|
7176
7173
|
} catch {
|
|
7177
7174
|
return null;
|
|
7178
7175
|
}
|
|
7179
|
-
}, [o
|
|
7176
|
+
}, [o]);
|
|
7180
7177
|
ba(() => {
|
|
7181
|
-
const
|
|
7178
|
+
const u = setInterval(
|
|
7182
7179
|
() => l("ping"),
|
|
7183
7180
|
Wr
|
|
7184
7181
|
);
|
|
7185
|
-
return () => clearInterval(
|
|
7182
|
+
return () => clearInterval(u);
|
|
7186
7183
|
}, [l]);
|
|
7187
|
-
const U = I(
|
|
7188
|
-
|
|
7189
|
-
d && (console.log("Trigger Open Notification"), p.dispatch({
|
|
7190
|
-
type: "ui/openNotificationModal",
|
|
7191
|
-
payload: {
|
|
7192
|
-
title: kn[g] || "System Prompt",
|
|
7193
|
-
content: s,
|
|
7194
|
-
type: "warning",
|
|
7195
|
-
props: y
|
|
7196
|
-
}
|
|
7197
|
-
})), console.log("Trigger No Open Notification");
|
|
7198
|
-
},
|
|
7199
|
-
[d, p, g]
|
|
7200
|
-
);
|
|
7184
|
+
const U = I(() => {
|
|
7185
|
+
}, [d, p, g]);
|
|
7201
7186
|
return ba(() => {
|
|
7202
|
-
t.current =
|
|
7203
|
-
}, [
|
|
7187
|
+
t.current = s;
|
|
7188
|
+
}, [s]), ba(() => {
|
|
7204
7189
|
if (!_) return;
|
|
7205
7190
|
const {
|
|
7206
|
-
onDeposit:
|
|
7191
|
+
onDeposit: u,
|
|
7207
7192
|
onTransCode: y,
|
|
7208
7193
|
onError: b,
|
|
7209
7194
|
onUpdateMember: v,
|
|
@@ -7220,7 +7205,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7220
7205
|
}, L = Number(x.memberInfoUid) === m, N = x.data, w = x.amount, G = x.limitAmount;
|
|
7221
7206
|
switch (k) {
|
|
7222
7207
|
case xe.DEPOSIT:
|
|
7223
|
-
L &&
|
|
7208
|
+
L && u?.(x);
|
|
7224
7209
|
break;
|
|
7225
7210
|
case xe.TRANS_CODE:
|
|
7226
7211
|
y?.(x);
|
|
@@ -7290,7 +7275,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7290
7275
|
// WebSocket 連線狀態
|
|
7291
7276
|
};
|
|
7292
7277
|
}, Qi = () => {
|
|
7293
|
-
const { client: e } = te(),
|
|
7278
|
+
const { client: e } = te(), s = I(
|
|
7294
7279
|
async ({ paramsData: p } = {}) => {
|
|
7295
7280
|
const { uid: d } = p || {};
|
|
7296
7281
|
return await e.get(`/event/list${d ? `/${d}` : ""}`);
|
|
@@ -7311,8 +7296,8 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7311
7296
|
},
|
|
7312
7297
|
[e]
|
|
7313
7298
|
);
|
|
7314
|
-
return { eventListApi:
|
|
7315
|
-
}, zr = ({ paramsData: e, options:
|
|
7299
|
+
return { eventListApi: s, checkCurrentEventProgessApi: n, checkEventStatusApi: i };
|
|
7300
|
+
}, zr = ({ paramsData: e, options: s } = {}) => {
|
|
7316
7301
|
const { eventListApi: n, store: i } = Qi(), p = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD";
|
|
7317
7302
|
return ee({
|
|
7318
7303
|
queryKey: ["eventList", e],
|
|
@@ -7328,7 +7313,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7328
7313
|
attribute_subtype: f,
|
|
7329
7314
|
attribute_value: _,
|
|
7330
7315
|
attribute_value_basis: U,
|
|
7331
|
-
attribute_single_amount_target:
|
|
7316
|
+
attribute_single_amount_target: u,
|
|
7332
7317
|
attribute_rewards_type: y,
|
|
7333
7318
|
attribute_rewards_value: b,
|
|
7334
7319
|
attribute_rewards_position: v,
|
|
@@ -7353,7 +7338,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7353
7338
|
eventSubType: f,
|
|
7354
7339
|
eventValue: _,
|
|
7355
7340
|
eventValueBasis: U,
|
|
7356
|
-
eventSingleAmountTarget:
|
|
7341
|
+
eventSingleAmountTarget: u,
|
|
7357
7342
|
eventRewardsType: y,
|
|
7358
7343
|
eventRewardsValue: b,
|
|
7359
7344
|
eventRewardsPosition: v,
|
|
@@ -7373,20 +7358,20 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7373
7358
|
};
|
|
7374
7359
|
});
|
|
7375
7360
|
},
|
|
7376
|
-
...
|
|
7361
|
+
...s
|
|
7377
7362
|
});
|
|
7378
|
-
}, Vr = ({ options: e, formData:
|
|
7363
|
+
}, Vr = ({ options: e, formData: s } = {}) => {
|
|
7379
7364
|
const { checkCurrentEventProgessApi: n } = Qi();
|
|
7380
7365
|
return ee({
|
|
7381
7366
|
queryKey: ["checkEventProgress"],
|
|
7382
|
-
queryFn: async () => n(
|
|
7367
|
+
queryFn: async () => n(s),
|
|
7383
7368
|
...e
|
|
7384
7369
|
});
|
|
7385
|
-
}, Zr = ({ options: e, formData:
|
|
7370
|
+
}, Zr = ({ options: e, formData: s } = {}) => {
|
|
7386
7371
|
const { checkEventStatusApi: n } = Qi();
|
|
7387
7372
|
return ee({
|
|
7388
7373
|
queryKey: ["checkEventStatus"],
|
|
7389
|
-
queryFn: async () => n(
|
|
7374
|
+
queryFn: async () => n(s),
|
|
7390
7375
|
select: (i) => i.data.event_status,
|
|
7391
7376
|
...e
|
|
7392
7377
|
});
|
|
@@ -7397,18 +7382,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7397
7382
|
checkEventStatus: {}
|
|
7398
7383
|
}
|
|
7399
7384
|
} = {}) => {
|
|
7400
|
-
const
|
|
7385
|
+
const s = zr({ options: e.eventList }), n = Vr({
|
|
7401
7386
|
options: e.checkEventProgress
|
|
7402
7387
|
}), i = Zr({
|
|
7403
7388
|
options: e.checkEventStatus
|
|
7404
7389
|
});
|
|
7405
7390
|
return {
|
|
7406
|
-
eventListQuery:
|
|
7391
|
+
eventListQuery: s,
|
|
7407
7392
|
checkEventProgressQuery: n,
|
|
7408
7393
|
checkEventStatusQuery: i
|
|
7409
7394
|
};
|
|
7410
7395
|
}, xi = () => {
|
|
7411
|
-
const { client: e } = te(),
|
|
7396
|
+
const { client: e } = te(), s = I(async () => {
|
|
7412
7397
|
const { data: d } = await e.get("/carousels");
|
|
7413
7398
|
return d;
|
|
7414
7399
|
}, [e]), n = I(async () => await e.get("/marquees"), [e]), i = I(async () => await e.get("/notification"), [e]), p = I(
|
|
@@ -7416,13 +7401,13 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7416
7401
|
[e]
|
|
7417
7402
|
);
|
|
7418
7403
|
return {
|
|
7419
|
-
commonCarouselApi:
|
|
7404
|
+
commonCarouselApi: s,
|
|
7420
7405
|
commonMarqueeApi: n,
|
|
7421
7406
|
commonInboxApi: i,
|
|
7422
7407
|
commonReadInboxApi: p
|
|
7423
7408
|
};
|
|
7424
7409
|
}, rm = () => {
|
|
7425
|
-
const { lng: e, data2URL:
|
|
7410
|
+
const { lng: e, data2URL: s } = te(), { commonCarouselApi: n } = xi(), i = Ze(e);
|
|
7426
7411
|
return ee({
|
|
7427
7412
|
queryKey: ["getCarouselList"],
|
|
7428
7413
|
queryFn: async () => {
|
|
@@ -7434,8 +7419,8 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7434
7419
|
return {
|
|
7435
7420
|
...C,
|
|
7436
7421
|
carouselCurrentLanguageData: g,
|
|
7437
|
-
carouselCurrentLanguagePCImageUrl: `${
|
|
7438
|
-
carouselCurrentLanguageMBImageUrl: `${
|
|
7422
|
+
carouselCurrentLanguagePCImageUrl: `${s}/carousels/${g.image_pc}`,
|
|
7423
|
+
carouselCurrentLanguageMBImageUrl: `${s}/carousels/${g.image_mobile}`,
|
|
7439
7424
|
carouselCurrentLanguageS3PCImageUrl: `${Be}/carousels/${g.image_pc}`,
|
|
7440
7425
|
carouselCurrentLanguageS3MBImageUrl: `${Be}/carousels/${g.image_mobile}`,
|
|
7441
7426
|
carouselCurrentLanguageLink: g.url_link
|
|
@@ -7443,12 +7428,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7443
7428
|
})
|
|
7444
7429
|
});
|
|
7445
7430
|
}, om = () => {
|
|
7446
|
-
const { lng: e } = te(), { commonMarqueeApi:
|
|
7431
|
+
const { lng: e } = te(), { commonMarqueeApi: s } = xi(), n = Ze(e);
|
|
7447
7432
|
return ee({
|
|
7448
7433
|
queryKey: ["getMarqueeList"],
|
|
7449
7434
|
queryFn: async () => {
|
|
7450
7435
|
const i = window.marquees;
|
|
7451
|
-
return i || await
|
|
7436
|
+
return i || await s();
|
|
7452
7437
|
},
|
|
7453
7438
|
select: (i) => {
|
|
7454
7439
|
const p = Le(i) ? i : i.Marquees;
|
|
@@ -7456,10 +7441,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7456
7441
|
}
|
|
7457
7442
|
});
|
|
7458
7443
|
}, mm = ({ options: e } = {}) => {
|
|
7459
|
-
const { rankingGameApi:
|
|
7444
|
+
const { rankingGameApi: s } = Ue();
|
|
7460
7445
|
return ee({
|
|
7461
7446
|
queryKey: ["rankingGame"],
|
|
7462
|
-
queryFn: async () =>
|
|
7447
|
+
queryFn: async () => s(),
|
|
7463
7448
|
enabled: window.profit_ranking_status === 1,
|
|
7464
7449
|
select: (n) => {
|
|
7465
7450
|
const { data: i } = n;
|
|
@@ -7497,10 +7482,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7497
7482
|
...e
|
|
7498
7483
|
});
|
|
7499
7484
|
}, Jr = ({ options: e } = {}) => {
|
|
7500
|
-
const { commonInboxApi:
|
|
7485
|
+
const { commonInboxApi: s } = xi(), { getToken: n, lng: i } = te(), p = n?.(), d = Ze(i);
|
|
7501
7486
|
return ee({
|
|
7502
7487
|
queryKey: ["inboxList"],
|
|
7503
|
-
queryFn: async () => await
|
|
7488
|
+
queryFn: async () => await s(),
|
|
7504
7489
|
select: (C) => {
|
|
7505
7490
|
const { data: c } = C;
|
|
7506
7491
|
return ve(c, (a) => {
|
|
@@ -7518,10 +7503,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7518
7503
|
...e
|
|
7519
7504
|
});
|
|
7520
7505
|
}, Ir = ({ options: e } = {}) => {
|
|
7521
|
-
const { commonReadInboxApi:
|
|
7506
|
+
const { commonReadInboxApi: s } = xi();
|
|
7522
7507
|
return fe({
|
|
7523
7508
|
mutationKey: ["readInbox"],
|
|
7524
|
-
mutationFn: async (n) => await
|
|
7509
|
+
mutationFn: async (n) => await s(n),
|
|
7525
7510
|
...e
|
|
7526
7511
|
});
|
|
7527
7512
|
}, sm = ({
|
|
@@ -7530,12 +7515,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7530
7515
|
readInbox: {}
|
|
7531
7516
|
}
|
|
7532
7517
|
} = {}) => {
|
|
7533
|
-
const
|
|
7518
|
+
const s = Jr({ options: e.inboxList }), n = Ir({ options: e.readInbox });
|
|
7534
7519
|
return {
|
|
7535
|
-
inboxListQuery:
|
|
7520
|
+
inboxListQuery: s,
|
|
7536
7521
|
readInboxMutation: n
|
|
7537
7522
|
};
|
|
7538
|
-
},
|
|
7523
|
+
}, Rn = () => {
|
|
7539
7524
|
const { client: e } = te();
|
|
7540
7525
|
return {
|
|
7541
7526
|
newsListApi: I(
|
|
@@ -7591,12 +7576,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7591
7576
|
value: "other",
|
|
7592
7577
|
...e.other
|
|
7593
7578
|
}
|
|
7594
|
-
], um = ({ options: e, formData:
|
|
7595
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7579
|
+
], um = ({ options: e, formData: s } = {}) => {
|
|
7580
|
+
const { lng: n } = te(), { newsListApi: i } = Rn(), p = Ze(n);
|
|
7596
7581
|
return ee({
|
|
7597
7582
|
queryKey: ["newsList"],
|
|
7598
7583
|
queryFn: () => {
|
|
7599
|
-
const { uid: d, params: C } =
|
|
7584
|
+
const { uid: d, params: C } = s || {};
|
|
7600
7585
|
return i({ uid: d, params: C });
|
|
7601
7586
|
},
|
|
7602
7587
|
select: (d) => {
|
|
@@ -7617,12 +7602,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7617
7602
|
},
|
|
7618
7603
|
...e
|
|
7619
7604
|
});
|
|
7620
|
-
}, pm = ({ options: e, formData:
|
|
7621
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7605
|
+
}, pm = ({ options: e, formData: s } = {}) => {
|
|
7606
|
+
const { lng: n } = te(), { newsListApi: i } = Rn(), p = Ze(n);
|
|
7622
7607
|
return ee({
|
|
7623
7608
|
queryKey: ["newsList"],
|
|
7624
7609
|
queryFn: () => {
|
|
7625
|
-
const { uid: d, params: C } =
|
|
7610
|
+
const { uid: d, params: C } = s || {};
|
|
7626
7611
|
return i({ uid: d, params: C });
|
|
7627
7612
|
},
|
|
7628
7613
|
select: (d) => {
|
|
@@ -7637,7 +7622,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7637
7622
|
...e
|
|
7638
7623
|
});
|
|
7639
7624
|
}, Ie = () => {
|
|
7640
|
-
const { client: e } = te(),
|
|
7625
|
+
const { client: e } = te(), s = I(async () => await e.get("/payment/list"), [e]), n = I(
|
|
7641
7626
|
async ({ paramsData: a }) => await e.get("/thirdPartyPayment/list", {
|
|
7642
7627
|
params: { ...a }
|
|
7643
7628
|
}),
|
|
@@ -7679,7 +7664,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7679
7664
|
withdrawal_amount: t,
|
|
7680
7665
|
bank_account_number: m,
|
|
7681
7666
|
currency_code: l,
|
|
7682
|
-
withdrawal_code:
|
|
7667
|
+
withdrawal_code: Gn.MD5(r).toString(),
|
|
7683
7668
|
payment_type: "ThirdParty"
|
|
7684
7669
|
}
|
|
7685
7670
|
});
|
|
@@ -7687,11 +7672,11 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7687
7672
|
[e]
|
|
7688
7673
|
), C = I(
|
|
7689
7674
|
async ({ paramsData: a } = {}) => {
|
|
7690
|
-
const { str_date: t, end_date: m, limit: l = 25, current_page: r } = a || {}, o =
|
|
7675
|
+
const { str_date: t, end_date: m, limit: l = 25, current_page: r } = a || {}, o = de().format("HH:mm:ss"), f = de().subtract(24, "hour").format("HH:mm:ss");
|
|
7691
7676
|
return await e.get("/report/deposit", {
|
|
7692
7677
|
params: {
|
|
7693
|
-
str_date: `${
|
|
7694
|
-
end_date: `${
|
|
7678
|
+
str_date: `${de(t).format("YYYY-MM-DD")} ${o}`,
|
|
7679
|
+
end_date: `${de(m).format("YYYY-MM-DD")} ${f}`,
|
|
7695
7680
|
limit: l,
|
|
7696
7681
|
page: r
|
|
7697
7682
|
}
|
|
@@ -7700,11 +7685,11 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7700
7685
|
[e]
|
|
7701
7686
|
), c = I(
|
|
7702
7687
|
async ({ paramsData: a }) => {
|
|
7703
|
-
const { str_date: t, end_date: m, limit: l = 25, current_page: r } = a || {}, o =
|
|
7688
|
+
const { str_date: t, end_date: m, limit: l = 25, current_page: r } = a || {}, o = de().format("HH:mm:ss"), f = de().subtract(24, "hour").format("HH:mm:ss");
|
|
7704
7689
|
return await e.get("report/eventsreward", {
|
|
7705
7690
|
params: {
|
|
7706
|
-
str_date: `${
|
|
7707
|
-
end_date: `${
|
|
7691
|
+
str_date: `${de(t).format("YYYY-MM-DD")} ${o}`,
|
|
7692
|
+
end_date: `${de(m).format("YYYY-MM-DD")} ${f}`,
|
|
7708
7693
|
limit: l,
|
|
7709
7694
|
page: r
|
|
7710
7695
|
}
|
|
@@ -7716,8 +7701,8 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7716
7701
|
const { str_date: t, end_date: m, limit: l = 25, current_page: r } = a || {};
|
|
7717
7702
|
return await e.get("/report/withdraw", {
|
|
7718
7703
|
params: {
|
|
7719
|
-
str_date: `${
|
|
7720
|
-
end_date: `${
|
|
7704
|
+
str_date: `${de(t).format("YYYY-MM-DD")} 12:00:00`,
|
|
7705
|
+
end_date: `${de(m).format("YYYY-MM-DD")} 11:59:59`,
|
|
7721
7706
|
limit: l,
|
|
7722
7707
|
page: r
|
|
7723
7708
|
}
|
|
@@ -7726,7 +7711,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7726
7711
|
[e]
|
|
7727
7712
|
);
|
|
7728
7713
|
return {
|
|
7729
|
-
depositApiV1:
|
|
7714
|
+
depositApiV1: s,
|
|
7730
7715
|
depositApiV2: n,
|
|
7731
7716
|
depositApi: i,
|
|
7732
7717
|
bankDepositApi: p,
|
|
@@ -7736,13 +7721,13 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7736
7721
|
withdrawTransactionApi: g
|
|
7737
7722
|
};
|
|
7738
7723
|
}, qr = ({ options: e } = {}) => {
|
|
7739
|
-
const { depositApiV1:
|
|
7724
|
+
const { depositApiV1: s } = Ie();
|
|
7740
7725
|
return ee({
|
|
7741
7726
|
queryKey: ["depositV1"],
|
|
7742
|
-
queryFn:
|
|
7727
|
+
queryFn: s,
|
|
7743
7728
|
...e
|
|
7744
7729
|
});
|
|
7745
|
-
}, jr = ({ paramsData: e, options:
|
|
7730
|
+
}, jr = ({ paramsData: e, options: s } = {}) => {
|
|
7746
7731
|
const { depositApiV2: n } = Ie();
|
|
7747
7732
|
return ee({
|
|
7748
7733
|
queryKey: ["depositV2", e],
|
|
@@ -7765,53 +7750,53 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7765
7750
|
thirdParty: c
|
|
7766
7751
|
};
|
|
7767
7752
|
},
|
|
7768
|
-
...
|
|
7753
|
+
...s
|
|
7769
7754
|
});
|
|
7770
7755
|
}, $r = ({ options: e } = {}) => {
|
|
7771
|
-
const { depositApi:
|
|
7756
|
+
const { depositApi: s } = Ie();
|
|
7772
7757
|
return fe({
|
|
7773
7758
|
mutationKey: ["depositAction"],
|
|
7774
|
-
mutationFn: async (n) =>
|
|
7759
|
+
mutationFn: async (n) => s(n),
|
|
7775
7760
|
...e
|
|
7776
7761
|
});
|
|
7777
7762
|
}, Qr = ({ options: e } = {}) => {
|
|
7778
|
-
const { withdrawApi:
|
|
7763
|
+
const { withdrawApi: s } = Ie();
|
|
7779
7764
|
return fe({
|
|
7780
7765
|
mutationKey: ["withdrawAction"],
|
|
7781
|
-
mutationFn: async (n) =>
|
|
7766
|
+
mutationFn: async (n) => s(n),
|
|
7782
7767
|
...e
|
|
7783
7768
|
});
|
|
7784
|
-
}, Yr = ({ paramsData: e, options:
|
|
7769
|
+
}, Yr = ({ paramsData: e, options: s } = {}) => {
|
|
7785
7770
|
const { depositTransactionApi: n } = Ie();
|
|
7786
7771
|
return ee({
|
|
7787
7772
|
queryKey: ["depositTransaction", e],
|
|
7788
7773
|
queryFn: () => n({ paramsData: e }),
|
|
7789
|
-
...
|
|
7774
|
+
...s
|
|
7790
7775
|
});
|
|
7791
|
-
}, Xr = ({ paramsData: e, options:
|
|
7776
|
+
}, Xr = ({ paramsData: e, options: s } = {}) => {
|
|
7792
7777
|
const { eventTransactionApi: n } = Ie();
|
|
7793
7778
|
return ee({
|
|
7794
7779
|
queryKey: ["eventTransaction", e],
|
|
7795
7780
|
queryFn: () => n({ paramsData: e }),
|
|
7796
|
-
...
|
|
7781
|
+
...s
|
|
7797
7782
|
});
|
|
7798
7783
|
}, eo = ({ options: e } = {}) => {
|
|
7799
|
-
const { bankDepositApi:
|
|
7784
|
+
const { bankDepositApi: s } = Ie();
|
|
7800
7785
|
return fe({
|
|
7801
7786
|
mutationKey: ["bankDeposit"],
|
|
7802
|
-
mutationFn: async (n) =>
|
|
7787
|
+
mutationFn: async (n) => s(n),
|
|
7803
7788
|
...e
|
|
7804
7789
|
});
|
|
7805
|
-
}, ao = ({ paramsData: e, options:
|
|
7790
|
+
}, ao = ({ paramsData: e, options: s } = {}) => {
|
|
7806
7791
|
const { withdrawTransactionApi: n } = Ie();
|
|
7807
7792
|
return ee({
|
|
7808
7793
|
queryKey: ["withdrawTransaction", e],
|
|
7809
7794
|
queryFn: () => n({ paramsData: e }),
|
|
7810
|
-
...
|
|
7795
|
+
...s
|
|
7811
7796
|
});
|
|
7812
7797
|
}, gm = ({
|
|
7813
7798
|
depositV1: e = {},
|
|
7814
|
-
depositV2:
|
|
7799
|
+
depositV2: s = {},
|
|
7815
7800
|
depositTransaction: n = {},
|
|
7816
7801
|
depositAction: i = {},
|
|
7817
7802
|
withdrawAction: p = {},
|
|
@@ -7819,7 +7804,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7819
7804
|
eventTransaction: C = {},
|
|
7820
7805
|
withdrawTransaction: c = {}
|
|
7821
7806
|
} = {}) => {
|
|
7822
|
-
const g = qr(e), a = jr(
|
|
7807
|
+
const g = qr(e), a = jr(s), t = Yr(n), m = $r(i), l = Qr(p), r = eo(d), o = Xr(C), f = ao(
|
|
7823
7808
|
c
|
|
7824
7809
|
);
|
|
7825
7810
|
return {
|
|
@@ -7832,105 +7817,105 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7832
7817
|
eventTransaction: o,
|
|
7833
7818
|
withdrawTransaction: f
|
|
7834
7819
|
};
|
|
7835
|
-
},
|
|
7836
|
-
let
|
|
7837
|
-
return e.forEach((n, i) =>
|
|
7838
|
-
})(Ca), no = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,
|
|
7839
|
-
let
|
|
7820
|
+
}, Pn = "3.7.8", io = Pn, sa = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, to = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(to), Fa = ((e) => {
|
|
7821
|
+
let s = {};
|
|
7822
|
+
return e.forEach((n, i) => s[n] = i), s;
|
|
7823
|
+
})(Ca), no = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Fn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), wn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), On = (e) => {
|
|
7824
|
+
let s, n, i, p, d = "";
|
|
7840
7825
|
const C = e.length % 3;
|
|
7841
7826
|
for (let c = 0; c < e.length; ) {
|
|
7842
7827
|
if ((n = e.charCodeAt(c++)) > 255 || (i = e.charCodeAt(c++)) > 255 || (p = e.charCodeAt(c++)) > 255)
|
|
7843
7828
|
throw new TypeError("invalid character found");
|
|
7844
|
-
|
|
7829
|
+
s = n << 16 | i << 8 | p, d += Ca[s >> 18 & 63] + Ca[s >> 12 & 63] + Ca[s >> 6 & 63] + Ca[s & 63];
|
|
7845
7830
|
}
|
|
7846
7831
|
return C ? d.slice(0, C - 3) + "===".substring(C) : d;
|
|
7847
|
-
}, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") :
|
|
7832
|
+
}, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") : On, Hi = sa ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
7848
7833
|
let n = [];
|
|
7849
7834
|
for (let i = 0, p = e.length; i < p; i += 4096)
|
|
7850
|
-
n.push(
|
|
7835
|
+
n.push(ue.apply(null, e.subarray(i, i + 4096)));
|
|
7851
7836
|
return Yi(n.join(""));
|
|
7852
|
-
}, vi = (e,
|
|
7837
|
+
}, vi = (e, s = !1) => s ? Fn(Hi(e)) : Hi(e), lo = (e) => {
|
|
7853
7838
|
if (e.length < 2) {
|
|
7854
|
-
var
|
|
7855
|
-
return
|
|
7839
|
+
var s = e.charCodeAt(0);
|
|
7840
|
+
return s < 128 ? e : s < 2048 ? ue(192 | s >>> 6) + ue(128 | s & 63) : ue(224 | s >>> 12 & 15) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
|
|
7856
7841
|
} else {
|
|
7857
|
-
var
|
|
7858
|
-
return
|
|
7842
|
+
var s = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
7843
|
+
return ue(240 | s >>> 18 & 7) + ue(128 | s >>> 12 & 63) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
|
|
7859
7844
|
}
|
|
7860
|
-
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
|
|
7845
|
+
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, An = (e) => e.replace(ro, lo), pn = sa ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Yi(An(e)), ma = (e, s = !1) => s ? Fn(pn(e)) : pn(e), gn = (e) => ma(e, !0), oo = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, mo = (e) => {
|
|
7861
7846
|
switch (e.length) {
|
|
7862
7847
|
case 4:
|
|
7863
|
-
var
|
|
7864
|
-
return
|
|
7848
|
+
var s = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), n = s - 65536;
|
|
7849
|
+
return ue((n >>> 10) + 55296) + ue((n & 1023) + 56320);
|
|
7865
7850
|
case 3:
|
|
7866
|
-
return
|
|
7851
|
+
return ue((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
7867
7852
|
default:
|
|
7868
|
-
return
|
|
7853
|
+
return ue((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
7869
7854
|
}
|
|
7870
|
-
},
|
|
7855
|
+
}, Bn = (e) => e.replace(oo, mo), Hn = (e) => {
|
|
7871
7856
|
if (e = e.replace(/\s+/g, ""), !no.test(e))
|
|
7872
7857
|
throw new TypeError("malformed base64.");
|
|
7873
7858
|
e += "==".slice(2 - (e.length & 3));
|
|
7874
|
-
let
|
|
7859
|
+
let s, n, i, p = [];
|
|
7875
7860
|
for (let d = 0; d < e.length; )
|
|
7876
|
-
|
|
7861
|
+
s = Fa[e.charAt(d++)] << 18 | Fa[e.charAt(d++)] << 12 | (n = Fa[e.charAt(d++)]) << 6 | (i = Fa[e.charAt(d++)]), n === 64 ? p.push(ue(s >> 16 & 255)) : i === 64 ? p.push(ue(s >> 16 & 255, s >> 8 & 255)) : p.push(ue(s >> 16 & 255, s >> 8 & 255, s & 255));
|
|
7877
7862
|
return p.join("");
|
|
7878
|
-
}, Xi = typeof atob == "function" ? (e) => atob(
|
|
7863
|
+
}, Xi = typeof atob == "function" ? (e) => atob(wn(e)) : sa ? (e) => Buffer.from(e, "base64").toString("binary") : Hn, Wn = sa ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Xi(e).split("").map((s) => s.charCodeAt(0))), zn = (e) => Wn(Vn(e)), so = sa ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(Wn(e)) : (e) => Bn(Xi(e)), Vn = (e) => wn(e.replace(/[-_]/g, (s) => s == "-" ? "+" : "/")), Wi = (e) => so(Vn(e)), uo = (e) => {
|
|
7879
7864
|
if (typeof e != "string")
|
|
7880
7865
|
return !1;
|
|
7881
|
-
const
|
|
7882
|
-
return !/[^\s0-9a-zA-Z\+/]/.test(
|
|
7883
|
-
},
|
|
7866
|
+
const s = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
7867
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
7868
|
+
}, Zn = (e) => ({
|
|
7884
7869
|
value: e,
|
|
7885
7870
|
enumerable: !1,
|
|
7886
7871
|
writable: !0,
|
|
7887
7872
|
configurable: !0
|
|
7888
|
-
}),
|
|
7889
|
-
const e = (
|
|
7873
|
+
}), Jn = function() {
|
|
7874
|
+
const e = (s, n) => Object.defineProperty(String.prototype, s, Zn(n));
|
|
7890
7875
|
e("fromBase64", function() {
|
|
7891
7876
|
return Wi(this);
|
|
7892
|
-
}), e("toBase64", function(
|
|
7893
|
-
return ma(this,
|
|
7877
|
+
}), e("toBase64", function(s) {
|
|
7878
|
+
return ma(this, s);
|
|
7894
7879
|
}), e("toBase64URI", function() {
|
|
7895
7880
|
return ma(this, !0);
|
|
7896
7881
|
}), e("toBase64URL", function() {
|
|
7897
7882
|
return ma(this, !0);
|
|
7898
7883
|
}), e("toUint8Array", function() {
|
|
7899
|
-
return
|
|
7884
|
+
return zn(this);
|
|
7900
7885
|
});
|
|
7901
|
-
},
|
|
7902
|
-
const e = (
|
|
7903
|
-
e("toBase64", function(
|
|
7904
|
-
return vi(this,
|
|
7886
|
+
}, In = function() {
|
|
7887
|
+
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, Zn(n));
|
|
7888
|
+
e("toBase64", function(s) {
|
|
7889
|
+
return vi(this, s);
|
|
7905
7890
|
}), e("toBase64URI", function() {
|
|
7906
7891
|
return vi(this, !0);
|
|
7907
7892
|
}), e("toBase64URL", function() {
|
|
7908
7893
|
return vi(this, !0);
|
|
7909
7894
|
});
|
|
7910
7895
|
}, po = () => {
|
|
7911
|
-
|
|
7896
|
+
Jn(), In();
|
|
7912
7897
|
}, go = {
|
|
7913
|
-
version:
|
|
7898
|
+
version: Pn,
|
|
7914
7899
|
VERSION: io,
|
|
7915
7900
|
atob: Xi,
|
|
7916
|
-
atobPolyfill:
|
|
7901
|
+
atobPolyfill: Hn,
|
|
7917
7902
|
btoa: Yi,
|
|
7918
|
-
btoaPolyfill:
|
|
7903
|
+
btoaPolyfill: On,
|
|
7919
7904
|
fromBase64: Wi,
|
|
7920
7905
|
toBase64: ma,
|
|
7921
7906
|
encode: ma,
|
|
7922
7907
|
encodeURI: gn,
|
|
7923
7908
|
encodeURL: gn,
|
|
7924
|
-
utob:
|
|
7925
|
-
btou:
|
|
7909
|
+
utob: An,
|
|
7910
|
+
btou: Bn,
|
|
7926
7911
|
decode: Wi,
|
|
7927
7912
|
isValid: uo,
|
|
7928
7913
|
fromUint8Array: vi,
|
|
7929
|
-
toUint8Array:
|
|
7930
|
-
extendString:
|
|
7931
|
-
extendUint8Array:
|
|
7914
|
+
toUint8Array: zn,
|
|
7915
|
+
extendString: Jn,
|
|
7916
|
+
extendUint8Array: In,
|
|
7932
7917
|
extendBuiltins: po
|
|
7933
|
-
}, dm = (e,
|
|
7918
|
+
}, dm = (e, s) => {
|
|
7934
7919
|
const { playGameApi: n } = Ji();
|
|
7935
7920
|
return ee({
|
|
7936
7921
|
queryKey: ["playGame"],
|
|
@@ -7962,27 +7947,27 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7962
7947
|
};
|
|
7963
7948
|
},
|
|
7964
7949
|
enabled: !!e?.gameCode,
|
|
7965
|
-
...
|
|
7950
|
+
...s
|
|
7966
7951
|
});
|
|
7967
|
-
},
|
|
7968
|
-
const { client: e } = te(),
|
|
7952
|
+
}, Kn = () => {
|
|
7953
|
+
const { client: e } = te(), s = I(async () => await e.get("/rebate"), [e]), n = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
7969
7954
|
return {
|
|
7970
|
-
currentRebateApi:
|
|
7955
|
+
currentRebateApi: s,
|
|
7971
7956
|
receiveRebateApi: n
|
|
7972
7957
|
};
|
|
7973
7958
|
}, co = ({ options: e } = {}) => {
|
|
7974
|
-
const { currentRebateApi:
|
|
7959
|
+
const { currentRebateApi: s } = Kn();
|
|
7975
7960
|
return ee({
|
|
7976
7961
|
queryKey: ["currentRebate"],
|
|
7977
|
-
queryFn: () =>
|
|
7978
|
-
select: (n) =>
|
|
7962
|
+
queryFn: () => s(),
|
|
7963
|
+
select: (n) => il(n, ["code", "status"]),
|
|
7979
7964
|
...e
|
|
7980
7965
|
});
|
|
7981
7966
|
}, _o = ({ options: e } = {}) => {
|
|
7982
|
-
const { receiveRebateApi:
|
|
7967
|
+
const { receiveRebateApi: s } = Kn();
|
|
7983
7968
|
return fe({
|
|
7984
7969
|
mutationKey: ["receiveRebate"],
|
|
7985
|
-
mutationFn: async () =>
|
|
7970
|
+
mutationFn: async () => s(),
|
|
7986
7971
|
...e
|
|
7987
7972
|
});
|
|
7988
7973
|
}, cm = ({
|
|
@@ -7991,13 +7976,13 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7991
7976
|
receiveRebate: {}
|
|
7992
7977
|
}
|
|
7993
7978
|
} = {}) => {
|
|
7994
|
-
const
|
|
7979
|
+
const s = co({ options: e.currentRebate }), n = _o({ options: e.receiveRebate });
|
|
7995
7980
|
return {
|
|
7996
|
-
currentRebate:
|
|
7981
|
+
currentRebate: s,
|
|
7997
7982
|
receiveRebate: n
|
|
7998
7983
|
};
|
|
7999
7984
|
}, Ta = () => {
|
|
8000
|
-
const { client: e } = te(),
|
|
7985
|
+
const { client: e } = te(), s = I(
|
|
8001
7986
|
async ({ uid: C, params: c } = {}) => await e.get(`/memberRewards${C ? `/${C}` : ""}`, {
|
|
8002
7987
|
params: c
|
|
8003
7988
|
}),
|
|
@@ -8009,19 +7994,19 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8009
7994
|
[e]
|
|
8010
7995
|
), d = I(async () => await e.get("/memberRewards/member/history"), [e]);
|
|
8011
7996
|
return {
|
|
8012
|
-
rewardListApi:
|
|
7997
|
+
rewardListApi: s,
|
|
8013
7998
|
unUsedRewardListApi: n,
|
|
8014
7999
|
expiredRewardListApi: i,
|
|
8015
8000
|
redeemRewardApi: p,
|
|
8016
8001
|
historyRewardApi: d
|
|
8017
8002
|
};
|
|
8018
8003
|
}, fo = ({ options: e } = {}) => {
|
|
8019
|
-
const { rewardListApi:
|
|
8004
|
+
const { rewardListApi: s } = Ta();
|
|
8020
8005
|
return ee({
|
|
8021
8006
|
queryKey: ["rewardsList"],
|
|
8022
8007
|
queryFn: (n) => {
|
|
8023
8008
|
const { uid: i, params: p } = n || {};
|
|
8024
|
-
return
|
|
8009
|
+
return s({ uid: i, params: p });
|
|
8025
8010
|
},
|
|
8026
8011
|
select: (n) => {
|
|
8027
8012
|
const i = ve(n.data, (p) => {
|
|
@@ -8056,31 +8041,31 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8056
8041
|
...e
|
|
8057
8042
|
});
|
|
8058
8043
|
}, Uo = ({ options: e } = {}) => {
|
|
8059
|
-
const { redeemRewardApi:
|
|
8044
|
+
const { redeemRewardApi: s } = Ta();
|
|
8060
8045
|
return fe({
|
|
8061
8046
|
mutationKey: ["redeemReward"],
|
|
8062
|
-
mutationFn: async (n) => await
|
|
8047
|
+
mutationFn: async (n) => await s(n),
|
|
8063
8048
|
...e
|
|
8064
8049
|
});
|
|
8065
8050
|
}, yo = ({ options: e } = {}) => {
|
|
8066
|
-
const { unUsedRewardListApi:
|
|
8051
|
+
const { unUsedRewardListApi: s } = Ta();
|
|
8067
8052
|
return ee({
|
|
8068
8053
|
queryKey: ["unUsedRewardsList"],
|
|
8069
|
-
queryFn:
|
|
8054
|
+
queryFn: s,
|
|
8070
8055
|
...e
|
|
8071
8056
|
});
|
|
8072
8057
|
}, bo = ({ options: e } = {}) => {
|
|
8073
|
-
const { expiredRewardListApi:
|
|
8058
|
+
const { expiredRewardListApi: s } = Ta();
|
|
8074
8059
|
return ee({
|
|
8075
8060
|
queryKey: ["expiredRewardsList"],
|
|
8076
|
-
queryFn:
|
|
8061
|
+
queryFn: s,
|
|
8077
8062
|
...e
|
|
8078
8063
|
});
|
|
8079
8064
|
}, Co = ({ options: e } = {}) => {
|
|
8080
|
-
const { historyRewardApi:
|
|
8065
|
+
const { historyRewardApi: s } = Ta();
|
|
8081
8066
|
return ee({
|
|
8082
8067
|
queryKey: ["historyRewardsList"],
|
|
8083
|
-
queryFn:
|
|
8068
|
+
queryFn: s,
|
|
8084
8069
|
...e
|
|
8085
8070
|
});
|
|
8086
8071
|
}, _m = ({
|
|
@@ -8092,7 +8077,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8092
8077
|
historyRewardsList: {}
|
|
8093
8078
|
}
|
|
8094
8079
|
} = {}) => {
|
|
8095
|
-
const
|
|
8080
|
+
const s = fo({ options: e.rewardsList }), n = Uo({
|
|
8096
8081
|
options: e.redeemReward
|
|
8097
8082
|
}), i = yo({
|
|
8098
8083
|
options: e.unUsedRewardsList
|
|
@@ -8102,81 +8087,81 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8102
8087
|
options: e.historyRewardsList
|
|
8103
8088
|
});
|
|
8104
8089
|
return {
|
|
8105
|
-
rewardsListQuery:
|
|
8090
|
+
rewardsListQuery: s,
|
|
8106
8091
|
redeemRewardMutation: n,
|
|
8107
8092
|
unUsedRewardsListQuery: i,
|
|
8108
8093
|
expiredRewardsListQuery: p,
|
|
8109
8094
|
historyRewardsListQuery: d
|
|
8110
8095
|
};
|
|
8111
8096
|
}, vo = ({ options: e } = {}) => {
|
|
8112
|
-
const { userLoginApi:
|
|
8097
|
+
const { userLoginApi: s } = Ue();
|
|
8113
8098
|
return fe({
|
|
8114
8099
|
mutationKey: ["userLogin"],
|
|
8115
|
-
mutationFn: async (n) =>
|
|
8100
|
+
mutationFn: async (n) => s(n),
|
|
8116
8101
|
...e
|
|
8117
8102
|
});
|
|
8118
8103
|
}, To = ({ options: e } = {}) => {
|
|
8119
|
-
const { userLogoutApi:
|
|
8104
|
+
const { userLogoutApi: s } = Ue();
|
|
8120
8105
|
return fe({
|
|
8121
8106
|
mutationKey: ["userLogout"],
|
|
8122
|
-
mutationFn: async () =>
|
|
8107
|
+
mutationFn: async () => s(),
|
|
8123
8108
|
...e
|
|
8124
8109
|
});
|
|
8125
8110
|
}, ho = ({ options: e } = {}) => {
|
|
8126
|
-
const { userSignUpApi:
|
|
8111
|
+
const { userSignUpApi: s } = Ue();
|
|
8127
8112
|
return fe({
|
|
8128
8113
|
mutationKey: ["userSignUp"],
|
|
8129
|
-
mutationFn: async (n) =>
|
|
8114
|
+
mutationFn: async (n) => s(n),
|
|
8130
8115
|
...e
|
|
8131
8116
|
});
|
|
8132
8117
|
}, ko = ({ options: e } = {}) => {
|
|
8133
|
-
const { addOrRemoveFavoriteGameApi:
|
|
8118
|
+
const { addOrRemoveFavoriteGameApi: s } = Ue();
|
|
8134
8119
|
return fe({
|
|
8135
8120
|
mutationKey: ["toggleFavoriteGame"],
|
|
8136
|
-
mutationFn: async (n) =>
|
|
8121
|
+
mutationFn: async (n) => s(n),
|
|
8137
8122
|
...e
|
|
8138
8123
|
});
|
|
8139
8124
|
}, xo = ({ options: e } = {}) => {
|
|
8140
|
-
const { updateUserInfoApi:
|
|
8125
|
+
const { updateUserInfoApi: s } = Ue();
|
|
8141
8126
|
return fe({
|
|
8142
8127
|
mutationKey: ["updateUserInfo"],
|
|
8143
|
-
mutationFn: async (n) =>
|
|
8128
|
+
mutationFn: async (n) => s(n),
|
|
8144
8129
|
...e
|
|
8145
8130
|
});
|
|
8146
8131
|
}, So = ({ options: e } = {}) => {
|
|
8147
|
-
const { resetUserPasswordApi:
|
|
8132
|
+
const { resetUserPasswordApi: s } = Ue();
|
|
8148
8133
|
return fe({
|
|
8149
8134
|
mutationKey: ["resetUserPassword"],
|
|
8150
|
-
mutationFn: async (n) =>
|
|
8135
|
+
mutationFn: async (n) => s(n),
|
|
8151
8136
|
...e
|
|
8152
8137
|
});
|
|
8153
8138
|
}, Do = ({ options: e } = {}) => {
|
|
8154
|
-
const { setUserTransactionPasswordApi:
|
|
8139
|
+
const { setUserTransactionPasswordApi: s } = Ue();
|
|
8155
8140
|
return fe({
|
|
8156
8141
|
mutationKey: ["setUserTransactionPassword"],
|
|
8157
|
-
mutationFn: async (n) =>
|
|
8142
|
+
mutationFn: async (n) => s(n),
|
|
8158
8143
|
...e
|
|
8159
8144
|
});
|
|
8160
8145
|
}, Eo = ({ options: e } = {}) => {
|
|
8161
|
-
const { resetUserTransactionPasswordApi:
|
|
8146
|
+
const { resetUserTransactionPasswordApi: s } = Ue();
|
|
8162
8147
|
return fe({
|
|
8163
8148
|
mutationKey: ["resetUserTransactionPassword"],
|
|
8164
|
-
mutationFn: async (n) =>
|
|
8149
|
+
mutationFn: async (n) => s(n),
|
|
8165
8150
|
...e
|
|
8166
8151
|
});
|
|
8167
|
-
}, No = ({ paramsData: e, options:
|
|
8152
|
+
}, No = ({ paramsData: e, options: s } = {}) => {
|
|
8168
8153
|
const { userRebateApi: n } = Ue(), { getToken: i } = te();
|
|
8169
8154
|
return i?.(), ee({
|
|
8170
8155
|
queryKey: ["userRebate", e],
|
|
8171
8156
|
queryFn: async () => n({ paramsData: e }),
|
|
8172
8157
|
enabled: !1,
|
|
8173
|
-
...
|
|
8158
|
+
...s
|
|
8174
8159
|
});
|
|
8175
8160
|
}, Lo = ({ options: e } = {}) => {
|
|
8176
|
-
const { userBindBankApi:
|
|
8161
|
+
const { userBindBankApi: s } = Ue();
|
|
8177
8162
|
return fe({
|
|
8178
8163
|
mutationKey: ["userBindBank"],
|
|
8179
|
-
mutationFn: async (n) =>
|
|
8164
|
+
mutationFn: async (n) => s({ formData: n }),
|
|
8180
8165
|
...e
|
|
8181
8166
|
});
|
|
8182
8167
|
}, fm = ({
|
|
@@ -8193,7 +8178,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8193
8178
|
userBindCard: {}
|
|
8194
8179
|
}
|
|
8195
8180
|
} = {}) => {
|
|
8196
|
-
const
|
|
8181
|
+
const s = vo({ options: e.login }), n = To({ options: e.logout }), i = ho({ options: e.register }), p = xo({ options: e.updateUserInfo }), d = ko({
|
|
8197
8182
|
options: e.toggleFavoriteGame
|
|
8198
8183
|
}), C = So({
|
|
8199
8184
|
options: e.resetUserPassword
|
|
@@ -8203,7 +8188,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8203
8188
|
options: e.resetUserTransactionPassword
|
|
8204
8189
|
}), a = No({ options: e.userRebate }), t = Lo({ options: e.userBindCard });
|
|
8205
8190
|
return {
|
|
8206
|
-
login:
|
|
8191
|
+
login: s,
|
|
8207
8192
|
logout: n,
|
|
8208
8193
|
register: i,
|
|
8209
8194
|
updateUserInfo: p,
|
|
@@ -8214,14 +8199,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8214
8199
|
userRebate: a,
|
|
8215
8200
|
userBindCard: t
|
|
8216
8201
|
};
|
|
8217
|
-
},
|
|
8218
|
-
const { client: e } = te(),
|
|
8202
|
+
}, qn = () => {
|
|
8203
|
+
const { client: e } = te(), s = I(async () => await e.get("/vip/list"), [e]), n = I(async () => await e.get("/vip/check"), [e]);
|
|
8219
8204
|
return {
|
|
8220
|
-
vipListApi:
|
|
8205
|
+
vipListApi: s,
|
|
8221
8206
|
vipInfoApi: n
|
|
8222
8207
|
};
|
|
8223
8208
|
}, Um = ({ options: e } = {}) => {
|
|
8224
|
-
const { store:
|
|
8209
|
+
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = qn();
|
|
8225
8210
|
return ee({
|
|
8226
8211
|
queryKey: ["vipInfo"],
|
|
8227
8212
|
queryFn: async () => i(),
|
|
@@ -8236,7 +8221,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8236
8221
|
...e
|
|
8237
8222
|
});
|
|
8238
8223
|
}, Go = ({ options: e } = {}) => {
|
|
8239
|
-
const { store:
|
|
8224
|
+
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = qn();
|
|
8240
8225
|
return ee({
|
|
8241
8226
|
queryKey: ["vipList"],
|
|
8242
8227
|
queryFn: async () => {
|
|
@@ -8255,7 +8240,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8255
8240
|
} = c, r = Ae(g, { currency_code: n }) || {}, o = Ae(a, { currency_code: n }) || {}, f = t, _ = ve(m, (y) => ({
|
|
8256
8241
|
...y,
|
|
8257
8242
|
rebateRange: JSON.parse(y.rebate_range)
|
|
8258
|
-
})), U = De(l, "[0]", {}),
|
|
8243
|
+
})), U = De(l, "[0]", {}), u = {
|
|
8259
8244
|
...U,
|
|
8260
8245
|
platformRebate: JSON.parse(U.rebate || "{}")
|
|
8261
8246
|
};
|
|
@@ -8266,7 +8251,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8266
8251
|
vipWithdraw: o,
|
|
8267
8252
|
vipWithdrawFeeRate: f,
|
|
8268
8253
|
vipRebateRange: _,
|
|
8269
|
-
processedVipGameRebate:
|
|
8254
|
+
processedVipGameRebate: u
|
|
8270
8255
|
};
|
|
8271
8256
|
});
|
|
8272
8257
|
},
|
|
@@ -8296,7 +8281,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8296
8281
|
return "En";
|
|
8297
8282
|
}
|
|
8298
8283
|
}, cn = "game-icon-ds88", bm = ({ gameData: e = {} } = {}) => {
|
|
8299
|
-
const { lng:
|
|
8284
|
+
const { lng: s } = te(), n = dn(s), {
|
|
8300
8285
|
gameCode: i,
|
|
8301
8286
|
// 遊戲代碼
|
|
8302
8287
|
gameUid: p,
|
|
@@ -8328,7 +8313,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8328
8313
|
// 用戶點擊次數
|
|
8329
8314
|
gameNameEn: U,
|
|
8330
8315
|
// 英文名稱
|
|
8331
|
-
gameNameZh:
|
|
8316
|
+
gameNameZh: u,
|
|
8332
8317
|
// 中文名稱
|
|
8333
8318
|
gameNameVi: y,
|
|
8334
8319
|
// 越南名稱
|
|
@@ -8351,14 +8336,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8351
8336
|
supportHorizontal: f,
|
|
8352
8337
|
userClickCount: _,
|
|
8353
8338
|
gameNameEn: U,
|
|
8354
|
-
gameNameZh:
|
|
8339
|
+
gameNameZh: u,
|
|
8355
8340
|
gameNameVi: y,
|
|
8356
8341
|
gameNameTw: b,
|
|
8357
8342
|
gameName: v,
|
|
8358
8343
|
gameImageUrl: h,
|
|
8359
8344
|
gameImageUrlAnimated: S
|
|
8360
8345
|
};
|
|
8361
|
-
}, Mo = (e,
|
|
8346
|
+
}, Mo = (e, s = !1) => tl([
|
|
8362
8347
|
"EVO",
|
|
8363
8348
|
"IMSPRIBE",
|
|
8364
8349
|
"SABA",
|
|
@@ -8369,7 +8354,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8369
8354
|
"HACK",
|
|
8370
8355
|
"NAGA",
|
|
8371
8356
|
"RSG"
|
|
8372
|
-
], e) &&
|
|
8357
|
+
], e) && s ? `${e}_dark` : e, Cm = ({ platformData: e, darkMode: s } = {}) => {
|
|
8373
8358
|
const {
|
|
8374
8359
|
SubPlatformEnum: n,
|
|
8375
8360
|
// 子平台枚舉
|
|
@@ -8391,7 +8376,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8391
8376
|
// 臨時維護開始時間
|
|
8392
8377
|
temp_maintenance_end_time: m
|
|
8393
8378
|
// 臨時維護結束時間
|
|
8394
|
-
} = e || {}, l = `${Be}/${hn}/${Mo(i,
|
|
8379
|
+
} = e || {}, l = `${Be}/${hn}/${Mo(i, s)}.png`;
|
|
8395
8380
|
return {
|
|
8396
8381
|
subPlatformEnum: n,
|
|
8397
8382
|
platformEnum: i,
|
|
@@ -8405,21 +8390,21 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8405
8390
|
tempMaintenanceEndTime: m,
|
|
8406
8391
|
platformImageUrl: l
|
|
8407
8392
|
};
|
|
8408
|
-
}, Ro = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), _n = (e = []) => !Le(e) || me(e) ? [] : ve(e, "platform"), Po = (e = []) => !Le(e) || me(e) ? [] : ve(e, "gameTypeName"), Fo = (e = []) => !Le(e) || me(e) ? [] : ve(e, "game_subtype"), wo = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), Oo = (e = [],
|
|
8409
|
-
const p =
|
|
8393
|
+
}, Ro = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), _n = (e = []) => !Le(e) || me(e) ? [] : ve(e, "platform"), Po = (e = []) => !Le(e) || me(e) ? [] : ve(e, "gameTypeName"), Fo = (e = []) => !Le(e) || me(e) ? [] : ve(e, "game_subtype"), wo = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), Oo = (e = [], s = []) => !Le(e) || me(e) ? {} : !Le(s) || me(s) ? {} : e.reduce((n, i) => {
|
|
8394
|
+
const p = s.map((d) => d.game_subtype);
|
|
8410
8395
|
return p.forEach((d) => {
|
|
8411
8396
|
n[d] = n[d] || [];
|
|
8412
8397
|
}), p.includes(i.game_subtype) && n[i.game_subtype].push(i), n;
|
|
8413
8398
|
}, {}), Ao = ({
|
|
8414
8399
|
gameTypes: e = [],
|
|
8415
|
-
platforms:
|
|
8400
|
+
platforms: s = [],
|
|
8416
8401
|
gameList: n = {},
|
|
8417
8402
|
allGameTypes: i = [],
|
|
8418
8403
|
allPlatforms: p = []
|
|
8419
|
-
}) => !Le(e) || !Le(
|
|
8404
|
+
}) => !Le(e) || !Le(s) ? {} : me(n) ? {} : e.reduce((d, C) => {
|
|
8420
8405
|
const c = gl({
|
|
8421
8406
|
gameTypeName: C,
|
|
8422
|
-
platforms:
|
|
8407
|
+
platforms: s,
|
|
8423
8408
|
gameList: n,
|
|
8424
8409
|
allGameTypes: i,
|
|
8425
8410
|
allPlatforms: p
|
|
@@ -8427,14 +8412,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8427
8412
|
return me(c) || (d[C] = c), d;
|
|
8428
8413
|
}, {}), vm = ({
|
|
8429
8414
|
types: e = [],
|
|
8430
|
-
platforms:
|
|
8415
|
+
platforms: s = [],
|
|
8431
8416
|
allGameType: n = [],
|
|
8432
8417
|
allGamePlatform: i = [],
|
|
8433
8418
|
allGameList: p = {}
|
|
8434
|
-
} = {}) => !Array.isArray(e) || !Array.isArray(
|
|
8435
|
-
const c =
|
|
8419
|
+
} = {}) => !Array.isArray(e) || !Array.isArray(s) ? {} : e.reduce((d, C) => {
|
|
8420
|
+
const c = xn(n, C);
|
|
8436
8421
|
if (!c) return d;
|
|
8437
|
-
const g = p[c] || [], a =
|
|
8422
|
+
const g = p[c] || [], a = s.reduce((t, m) => {
|
|
8438
8423
|
const l = dl({
|
|
8439
8424
|
platformName: m,
|
|
8440
8425
|
gamesOfType: g,
|
|
@@ -8447,18 +8432,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8447
8432
|
n[p] ? n[p] = [...n[p], ...d] : n[p] = d;
|
|
8448
8433
|
}), n), {}), Ho = (e = {}) => {
|
|
8449
8434
|
if (!Ti(e) || me(e)) return {};
|
|
8450
|
-
const
|
|
8435
|
+
const s = {};
|
|
8451
8436
|
for (const [n, i] of Object.entries(e)) {
|
|
8452
|
-
|
|
8437
|
+
s[n] = {};
|
|
8453
8438
|
for (const p of i) {
|
|
8454
8439
|
const d = p.game_subtype;
|
|
8455
|
-
|
|
8440
|
+
s[n][d] || (s[n][d] = []), s[n][d].push(p);
|
|
8456
8441
|
}
|
|
8457
8442
|
}
|
|
8458
|
-
return
|
|
8443
|
+
return s;
|
|
8459
8444
|
}, Wo = ({
|
|
8460
8445
|
allGameList: e = {},
|
|
8461
|
-
allGamePlatform:
|
|
8446
|
+
allGamePlatform: s = [],
|
|
8462
8447
|
allGameType: n = [],
|
|
8463
8448
|
allGame_subtype: i = [],
|
|
8464
8449
|
allNewGameList: p = [],
|
|
@@ -8469,13 +8454,13 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8469
8454
|
highlightGames: a = [],
|
|
8470
8455
|
originPlatform: t = []
|
|
8471
8456
|
}) => {
|
|
8472
|
-
const m = Ro(e), l = _n(
|
|
8457
|
+
const m = Ro(e), l = _n(s), r = Po(n), o = Fo(i), f = _n(t), _ = wo(c), U = Ao({
|
|
8473
8458
|
gameTypes: r,
|
|
8474
8459
|
platforms: l,
|
|
8475
8460
|
gameList: e,
|
|
8476
8461
|
allGameTypes: n,
|
|
8477
|
-
allPlatforms:
|
|
8478
|
-
}),
|
|
8462
|
+
allPlatforms: s
|
|
8463
|
+
}), u = ve(s, (D) => {
|
|
8479
8464
|
const O = `${Be}/${hn}/${D.platformEnum}.png`;
|
|
8480
8465
|
return {
|
|
8481
8466
|
...D,
|
|
@@ -8483,7 +8468,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8483
8468
|
};
|
|
8484
8469
|
}), y = Oo(m, i), b = Bo(U), v = Ho(b), h = bn(U).reduce(
|
|
8485
8470
|
(D, [O, k]) => {
|
|
8486
|
-
const x = hi(
|
|
8471
|
+
const x = hi(nl(k));
|
|
8487
8472
|
return D[O] = x, D;
|
|
8488
8473
|
},
|
|
8489
8474
|
{}
|
|
@@ -8495,7 +8480,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8495
8480
|
platform: {
|
|
8496
8481
|
all: l,
|
|
8497
8482
|
origin: f,
|
|
8498
|
-
originPlatform:
|
|
8483
|
+
originPlatform: u,
|
|
8499
8484
|
byGameType: S
|
|
8500
8485
|
},
|
|
8501
8486
|
type: {
|
|
@@ -8524,8 +8509,8 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8524
8509
|
favorite: _
|
|
8525
8510
|
}
|
|
8526
8511
|
};
|
|
8527
|
-
}, Tm = (e = []) => !Le(e) || me(e) ? [] : hi(e, (
|
|
8528
|
-
...
|
|
8512
|
+
}, Tm = (e = []) => !Le(e) || me(e) ? [] : hi(e, (s) => me(s.SubPlatformEnum) ? s : s.SubPlatformEnum.map((n) => ({
|
|
8513
|
+
...s,
|
|
8529
8514
|
...n,
|
|
8530
8515
|
platform: n.SubPlatformEnum,
|
|
8531
8516
|
platformEnum: n.SubPlatformEnum
|
|
@@ -8550,12 +8535,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8550
8535
|
},
|
|
8551
8536
|
user: { favorite: [] }
|
|
8552
8537
|
}, Vo = ({ enabled: e = !0 } = {}) => {
|
|
8553
|
-
const { getToken:
|
|
8538
|
+
const { getToken: s } = te(), { userFavoriteGameApi: n, userGameListApi: i } = Ue(), { data: p, isLoading: d, error: C, refetch: c } = ee({
|
|
8554
8539
|
queryKey: ["gamesInfo"],
|
|
8555
8540
|
queryFn: async () => {
|
|
8556
8541
|
let g = {}, a = {};
|
|
8557
8542
|
try {
|
|
8558
|
-
await
|
|
8543
|
+
await s?.() && (a = await i(), g = await n());
|
|
8559
8544
|
} catch (t) {
|
|
8560
8545
|
console.warn("Failed to fetch favorite games:", t);
|
|
8561
8546
|
}
|
|
@@ -35116,18 +35101,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
35116
35101
|
});
|
|
35117
35102
|
}, Jo = ({
|
|
35118
35103
|
children: e,
|
|
35119
|
-
autoFetch:
|
|
35104
|
+
autoFetch: s = !1,
|
|
35120
35105
|
mockData: n = !1
|
|
35121
35106
|
}) => {
|
|
35122
35107
|
ba(() => {
|
|
35123
35108
|
n && Zo(!0);
|
|
35124
35109
|
}, [n]);
|
|
35125
|
-
const i = Vo({ enabled:
|
|
35126
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35110
|
+
const i = Vo({ enabled: s });
|
|
35111
|
+
return /* @__PURE__ */ Oa.jsx(kn.Provider, { value: i, children: e });
|
|
35127
35112
|
};
|
|
35128
35113
|
function hm({
|
|
35129
35114
|
children: e,
|
|
35130
|
-
autoFetchGamesInfo:
|
|
35115
|
+
autoFetchGamesInfo: s = !1,
|
|
35131
35116
|
useMockData: n = !1,
|
|
35132
35117
|
queryClient: i,
|
|
35133
35118
|
...p
|
|
@@ -35136,7 +35121,7 @@ function hm({
|
|
|
35136
35121
|
() => mt({ ...p, formData: !0 }),
|
|
35137
35122
|
[p]
|
|
35138
35123
|
), c = wa(
|
|
35139
|
-
() => new
|
|
35124
|
+
() => new Xn({
|
|
35140
35125
|
defaultOptions: {
|
|
35141
35126
|
queries: {
|
|
35142
35127
|
refetchOnWindowFocus: !1,
|
|
@@ -35146,12 +35131,12 @@ function hm({
|
|
|
35146
35131
|
}),
|
|
35147
35132
|
[]
|
|
35148
35133
|
), g = i || c;
|
|
35149
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35134
|
+
return /* @__PURE__ */ Oa.jsx(el, { client: g, children: /* @__PURE__ */ Oa.jsx(Cn.Provider, { value: { client: d, formDataClient: C, ...p }, children: /* @__PURE__ */ Oa.jsx(Jo, { autoFetch: s, mockData: n, children: e }) }) });
|
|
35150
35135
|
}
|
|
35151
35136
|
export {
|
|
35152
35137
|
Cn as ApiCtx,
|
|
35153
35138
|
hm as ApiProvider,
|
|
35154
|
-
|
|
35139
|
+
kn as GamesInfoCtx,
|
|
35155
35140
|
Ao as buildMultiTypes,
|
|
35156
35141
|
vm as buildMultiTypesWithSubTypes,
|
|
35157
35142
|
dl as buildSinglePlatformWithSubTypes,
|
|
@@ -35162,10 +35147,10 @@ export {
|
|
|
35162
35147
|
Fo as extractGameSubTypeNames,
|
|
35163
35148
|
Po as extractGameTypeNames,
|
|
35164
35149
|
_n as extractPlatformNames,
|
|
35165
|
-
|
|
35166
|
-
|
|
35167
|
-
|
|
35168
|
-
|
|
35150
|
+
En as filterGamesByPlatform,
|
|
35151
|
+
xn as findGameTypeUid,
|
|
35152
|
+
Sn as findPlatformUid,
|
|
35153
|
+
Dn as findSubPlatform,
|
|
35169
35154
|
Ro as flattenAllGames,
|
|
35170
35155
|
wo as flattenFavoriteGames,
|
|
35171
35156
|
Xo as formatNumber,
|