@obb871001/api-integration-sdk 1.0.97 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.js +369 -367
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import ke, { createContext as
|
|
2
|
-
import { useQuery as oe, QueryClient as
|
|
3
|
-
import
|
|
4
|
-
import { find as Ye, isEmpty as O, isObject as He, flatMap as qe, isArray as ee, map as we, get as Re, replace as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
1
|
+
import ke, { createContext as Za, useContext as Va, useCallback as X, useMemo as Qe, useEffect as he, useRef as ya } from "react";
|
|
2
|
+
import { useQuery as oe, QueryClient as Si, QueryClientProvider as Ni, useQueries as Ia, useMutation as Aa } from "@tanstack/react-query";
|
|
3
|
+
import Di from "axios";
|
|
4
|
+
import { find as Ye, isEmpty as O, isObject as He, flatMap as qe, isArray as ee, map as we, get as Re, replace as ba } from "lodash";
|
|
5
|
+
import Ei from "react-dom";
|
|
6
|
+
function Li(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
9
|
var Pe = { exports: {} }, be = {};
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
|
|
14
|
-
var e = ke,
|
|
10
|
+
var Ta;
|
|
11
|
+
function Gi() {
|
|
12
|
+
if (Ta) return be;
|
|
13
|
+
Ta = 1;
|
|
14
|
+
var e = ke, n = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
15
15
|
function f(_, r, u) {
|
|
16
|
-
var
|
|
16
|
+
var m, i = {}, d = null, l = null;
|
|
17
17
|
u !== void 0 && (d = "" + u), r.key !== void 0 && (d = "" + r.key), r.ref !== void 0 && (l = r.ref);
|
|
18
|
-
for (
|
|
19
|
-
if (_ && _.defaultProps) for (
|
|
20
|
-
return { $$typeof:
|
|
18
|
+
for (m in r) s.call(r, m) && !p.hasOwnProperty(m) && (i[m] = r[m]);
|
|
19
|
+
if (_ && _.defaultProps) for (m in r = _.defaultProps, r) i[m] === void 0 && (i[m] = r[m]);
|
|
20
|
+
return { $$typeof: n, type: _, key: d, ref: l, props: i, _owner: o.current };
|
|
21
21
|
}
|
|
22
22
|
return be.Fragment = c, be.jsx = f, be.jsxs = f, be;
|
|
23
23
|
}
|
|
24
24
|
var Te = {};
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return
|
|
28
|
-
var e = ke,
|
|
25
|
+
var Ca;
|
|
26
|
+
function Mi() {
|
|
27
|
+
return Ca || (Ca = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
28
|
+
var e = ke, n = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), t = Symbol.iterator, y = "@@iterator";
|
|
29
29
|
function b(a) {
|
|
30
30
|
if (a === null || typeof a != "object")
|
|
31
31
|
return null;
|
|
@@ -53,7 +53,7 @@ function Li() {
|
|
|
53
53
|
var D = !1, h = !1, E = !1, M = !1, _e = !1, fe;
|
|
54
54
|
fe = Symbol.for("react.module.reference");
|
|
55
55
|
function Fe(a) {
|
|
56
|
-
return !!(typeof a == "string" || typeof a == "function" || a === s || a === p || _e || a === o || a === u || a ===
|
|
56
|
+
return !!(typeof a == "string" || typeof a == "function" || a === s || a === p || _e || a === o || a === u || a === m || M || a === l || D || h || E || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === i || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === r || // This needs to include all possible module reference object
|
|
57
57
|
// types supported by any Flight configuration anywhere since
|
|
58
58
|
// we don't know which Flight build this will end up being used
|
|
59
59
|
// with.
|
|
@@ -87,7 +87,7 @@ function Li() {
|
|
|
87
87
|
return "StrictMode";
|
|
88
88
|
case u:
|
|
89
89
|
return "Suspense";
|
|
90
|
-
case
|
|
90
|
+
case m:
|
|
91
91
|
return "SuspenseList";
|
|
92
92
|
}
|
|
93
93
|
if (typeof a == "object")
|
|
@@ -192,8 +192,8 @@ function Li() {
|
|
|
192
192
|
}
|
|
193
193
|
var le = !1, Le;
|
|
194
194
|
{
|
|
195
|
-
var
|
|
196
|
-
Le = new
|
|
195
|
+
var ei = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
|
+
Le = new ei();
|
|
197
197
|
}
|
|
198
198
|
function la(a, U) {
|
|
199
199
|
if (!a || le)
|
|
@@ -266,10 +266,10 @@ function Li() {
|
|
|
266
266
|
var de = a ? a.displayName || a.name : "", te = de ? pe(de) : "";
|
|
267
267
|
return typeof a == "function" && Le.set(a, te), te;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ai(a, U, C) {
|
|
270
270
|
return la(a, !1);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function ii(a) {
|
|
273
273
|
var U = a.prototype;
|
|
274
274
|
return !!(U && U.isReactComponent);
|
|
275
275
|
}
|
|
@@ -277,19 +277,19 @@ function Li() {
|
|
|
277
277
|
if (a == null)
|
|
278
278
|
return "";
|
|
279
279
|
if (typeof a == "function")
|
|
280
|
-
return la(a,
|
|
280
|
+
return la(a, ii(a));
|
|
281
281
|
if (typeof a == "string")
|
|
282
282
|
return pe(a);
|
|
283
283
|
switch (a) {
|
|
284
284
|
case u:
|
|
285
285
|
return pe("Suspense");
|
|
286
|
-
case
|
|
286
|
+
case m:
|
|
287
287
|
return pe("SuspenseList");
|
|
288
288
|
}
|
|
289
289
|
if (typeof a == "object")
|
|
290
290
|
switch (a.$$typeof) {
|
|
291
291
|
case r:
|
|
292
|
-
return
|
|
292
|
+
return ai(a.render);
|
|
293
293
|
case i:
|
|
294
294
|
return Ge(a.type, U, C);
|
|
295
295
|
case d: {
|
|
@@ -310,7 +310,7 @@ function Li() {
|
|
|
310
310
|
} else
|
|
311
311
|
na.setExtraStackFrame(null);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function li(a, U, C, v, L) {
|
|
314
314
|
{
|
|
315
315
|
var G = Function.call.bind(ye);
|
|
316
316
|
for (var N in a)
|
|
@@ -329,17 +329,17 @@ function Li() {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var ti = Array.isArray;
|
|
333
333
|
function We(a) {
|
|
334
|
-
return
|
|
334
|
+
return ti(a);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function ni(a) {
|
|
337
337
|
{
|
|
338
338
|
var U = typeof Symbol == "function" && Symbol.toStringTag, C = U && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
339
339
|
return C;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function mi(a) {
|
|
343
343
|
try {
|
|
344
344
|
return ma(a), !1;
|
|
345
345
|
} catch {
|
|
@@ -350,16 +350,16 @@ function Li() {
|
|
|
350
350
|
return "" + a;
|
|
351
351
|
}
|
|
352
352
|
function ra(a) {
|
|
353
|
-
if (
|
|
354
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
353
|
+
if (mi(a))
|
|
354
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ni(a)), ma(a);
|
|
355
355
|
}
|
|
356
|
-
var oa = g.ReactCurrentOwner,
|
|
356
|
+
var oa = g.ReactCurrentOwner, ri = {
|
|
357
357
|
key: !0,
|
|
358
358
|
ref: !0,
|
|
359
359
|
__self: !0,
|
|
360
360
|
__source: !0
|
|
361
361
|
}, sa, ua;
|
|
362
|
-
function
|
|
362
|
+
function oi(a) {
|
|
363
363
|
if (ye.call(a, "ref")) {
|
|
364
364
|
var U = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
365
365
|
if (U && U.isReactWarning)
|
|
@@ -367,7 +367,7 @@ function Li() {
|
|
|
367
367
|
}
|
|
368
368
|
return a.ref !== void 0;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function si(a) {
|
|
371
371
|
if (ye.call(a, "key")) {
|
|
372
372
|
var U = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
373
373
|
if (U && U.isReactWarning)
|
|
@@ -375,10 +375,10 @@ function Li() {
|
|
|
375
375
|
}
|
|
376
376
|
return a.key !== void 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ui(a, U) {
|
|
379
379
|
typeof a.ref == "string" && oa.current;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function pi(a, U) {
|
|
382
382
|
{
|
|
383
383
|
var C = function() {
|
|
384
384
|
sa || (sa = !0, T("%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)", U));
|
|
@@ -389,7 +389,7 @@ function Li() {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function gi(a, U) {
|
|
393
393
|
{
|
|
394
394
|
var C = function() {
|
|
395
395
|
ua || (ua = !0, T("%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)", U));
|
|
@@ -400,10 +400,10 @@ function Li() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var di = function(a, U, C, v, L, G, N) {
|
|
404
404
|
var k = {
|
|
405
405
|
// This tag allows us to uniquely identify this as a React Element
|
|
406
|
-
$$typeof:
|
|
406
|
+
$$typeof: n,
|
|
407
407
|
// Built-in properties that belong on the element
|
|
408
408
|
type: a,
|
|
409
409
|
key: U,
|
|
@@ -429,12 +429,12 @@ function Li() {
|
|
|
429
429
|
value: L
|
|
430
430
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function ci(a, U, C, v, L) {
|
|
433
433
|
{
|
|
434
434
|
var G, N = {}, k = null, F = null;
|
|
435
|
-
C !== void 0 && (ra(C), k = "" + C),
|
|
435
|
+
C !== void 0 && (ra(C), k = "" + C), si(U) && (ra(U.key), k = "" + U.key), oi(U) && (F = U.ref, ui(U, L));
|
|
436
436
|
for (G in U)
|
|
437
|
-
ye.call(U, G) && !
|
|
437
|
+
ye.call(U, G) && !ri.hasOwnProperty(G) && (N[G] = U[G]);
|
|
438
438
|
if (a && a.defaultProps) {
|
|
439
439
|
var R = a.defaultProps;
|
|
440
440
|
for (G in R)
|
|
@@ -442,9 +442,9 @@ function Li() {
|
|
|
442
442
|
}
|
|
443
443
|
if (k || F) {
|
|
444
444
|
var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
445
|
-
k &&
|
|
445
|
+
k && pi(N, P), F && gi(N, P);
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return di(a, k, F, L, v, oa.current, N);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
var Je = g.ReactCurrentOwner, pa = g.ReactDebugCurrentFrame;
|
|
@@ -458,7 +458,7 @@ function Li() {
|
|
|
458
458
|
var ze;
|
|
459
459
|
ze = !1;
|
|
460
460
|
function Ze(a) {
|
|
461
|
-
return typeof a == "object" && a !== null && a.$$typeof ===
|
|
461
|
+
return typeof a == "object" && a !== null && a.$$typeof === n;
|
|
462
462
|
}
|
|
463
463
|
function ga() {
|
|
464
464
|
{
|
|
@@ -472,11 +472,11 @@ Check the render method of \`` + a + "`.";
|
|
|
472
472
|
return "";
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function _i(a) {
|
|
476
476
|
return "";
|
|
477
477
|
}
|
|
478
478
|
var da = {};
|
|
479
|
-
function
|
|
479
|
+
function fi(a) {
|
|
480
480
|
{
|
|
481
481
|
var U = ga();
|
|
482
482
|
if (!U) {
|
|
@@ -493,7 +493,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
493
493
|
if (!a._store || a._store.validated || a.key != null)
|
|
494
494
|
return;
|
|
495
495
|
a._store.validated = !0;
|
|
496
|
-
var C =
|
|
496
|
+
var C = fi(U);
|
|
497
497
|
if (da[C])
|
|
498
498
|
return;
|
|
499
499
|
da[C] = !0;
|
|
@@ -520,7 +520,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ui(a) {
|
|
524
524
|
{
|
|
525
525
|
var U = a.type;
|
|
526
526
|
if (U == null || typeof U == "string")
|
|
@@ -536,7 +536,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
536
536
|
return;
|
|
537
537
|
if (C) {
|
|
538
538
|
var v = H(U);
|
|
539
|
-
|
|
539
|
+
li(C, a.props, "prop", v, a);
|
|
540
540
|
} else if (U.PropTypes !== void 0 && !ze) {
|
|
541
541
|
ze = !0;
|
|
542
542
|
var L = H(U);
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
545
545
|
typeof U.getDefaultProps == "function" && !U.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function yi(a) {
|
|
549
549
|
{
|
|
550
550
|
for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
|
|
551
551
|
var v = U[C];
|
|
@@ -564,12 +564,12 @@ Check the top-level render call using <` + C + ">.");
|
|
|
564
564
|
if (!N) {
|
|
565
565
|
var k = "";
|
|
566
566
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
567
|
-
var F =
|
|
567
|
+
var F = _i();
|
|
568
568
|
F ? k += F : k += ga();
|
|
569
569
|
var R;
|
|
570
|
-
a === null ? R = "null" : We(a) ? R = "array" : a !== void 0 && a.$$typeof ===
|
|
570
|
+
a === null ? R = "null" : We(a) ? R = "array" : a !== void 0 && a.$$typeof === n ? (R = "<" + (H(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, k);
|
|
571
571
|
}
|
|
572
|
-
var P =
|
|
572
|
+
var P = ci(a, U, C, L, G);
|
|
573
573
|
if (P == null)
|
|
574
574
|
return P;
|
|
575
575
|
if (N) {
|
|
@@ -586,59 +586,59 @@ Check the top-level render call using <` + C + ">.");
|
|
|
586
586
|
_a(z, a);
|
|
587
587
|
}
|
|
588
588
|
if (ye.call(U, "key")) {
|
|
589
|
-
var te = H(a), W = Object.keys(U).filter(function(
|
|
590
|
-
return
|
|
589
|
+
var te = H(a), W = Object.keys(U).filter(function(ki) {
|
|
590
|
+
return ki !== "key";
|
|
591
591
|
}), Ve = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
592
|
if (!fa[te + Ve]) {
|
|
593
|
-
var
|
|
593
|
+
var hi = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
|
|
594
594
|
T(`A props object containing a "key" prop is being spread into JSX:
|
|
595
595
|
let props = %s;
|
|
596
596
|
<%s {...props} />
|
|
597
597
|
React keys must be passed directly to JSX without using spread:
|
|
598
598
|
let props = %s;
|
|
599
|
-
<%s key={someKey} {...props} />`, Ve, te,
|
|
599
|
+
<%s key={someKey} {...props} />`, Ve, te, hi, te), fa[te + Ve] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
return a === s ?
|
|
602
|
+
return a === s ? yi(P) : Ui(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function bi(a, U, C) {
|
|
606
606
|
return Ua(a, U, C, !0);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Ti(a, U, C) {
|
|
609
609
|
return Ua(a, U, C, !1);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
Te.Fragment = s, Te.jsx =
|
|
611
|
+
var Ci = Ti, vi = bi;
|
|
612
|
+
Te.Fragment = s, Te.jsx = Ci, Te.jsxs = vi;
|
|
613
613
|
})()), Te;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
return
|
|
615
|
+
var va;
|
|
616
|
+
function Ri() {
|
|
617
|
+
return va || (va = 1, process.env.NODE_ENV === "production" ? Pe.exports = Gi() : Pe.exports = Mi()), Pe.exports;
|
|
618
618
|
}
|
|
619
|
-
var Oe =
|
|
620
|
-
const
|
|
621
|
-
const e =
|
|
619
|
+
var Oe = Ri();
|
|
620
|
+
const Ba = Za(null), se = () => {
|
|
621
|
+
const e = Va(Ba);
|
|
622
622
|
if (!e)
|
|
623
623
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
624
624
|
return e;
|
|
625
625
|
};
|
|
626
|
-
function
|
|
626
|
+
function Pi({
|
|
627
627
|
baseURL: e,
|
|
628
|
-
getToken:
|
|
628
|
+
getToken: n,
|
|
629
629
|
timeoutMs: c = 15e3,
|
|
630
630
|
lng: s = "tw",
|
|
631
631
|
store: o,
|
|
632
632
|
onError: p
|
|
633
633
|
} = {}) {
|
|
634
|
-
const f =
|
|
634
|
+
const f = Di.create({
|
|
635
635
|
baseURL: e,
|
|
636
636
|
timeout: c,
|
|
637
637
|
headers: { "Content-Type": "application/json" }
|
|
638
638
|
});
|
|
639
639
|
return f.interceptors.request.use(async (_) => {
|
|
640
|
-
if (_.headers = _.headers || {},
|
|
641
|
-
const u = await
|
|
640
|
+
if (_.headers = _.headers || {}, n) {
|
|
641
|
+
const u = await n();
|
|
642
642
|
u && (_.headers.Authorization = `Bearer ${u}`);
|
|
643
643
|
}
|
|
644
644
|
const r = o?.getState()?.isWalletCurrency || o?.getState()?.currency?.currentCurrency || "TWD";
|
|
@@ -648,15 +648,15 @@ function Mi({
|
|
|
648
648
|
(_) => p ? p(_, { instance: f }) : Promise.reject(_)
|
|
649
649
|
), f;
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
const e =
|
|
651
|
+
const Ka = Za(null), _l = () => {
|
|
652
|
+
const e = Va(Ka);
|
|
653
653
|
if (!e)
|
|
654
654
|
throw new Error(
|
|
655
655
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
656
656
|
);
|
|
657
657
|
return e;
|
|
658
658
|
}, fl = () => {
|
|
659
|
-
const e = (s, o) => !s && !o,
|
|
659
|
+
const e = (s, o) => !s && !o, n = (s) => s.startsWith("pc.");
|
|
660
660
|
return {
|
|
661
661
|
executeLogout: ({
|
|
662
662
|
isCallBackInvalid: s = !1,
|
|
@@ -666,59 +666,59 @@ const Ia = Wa(null), _l = () => {
|
|
|
666
666
|
onCleanup: _,
|
|
667
667
|
onRemoveToken: r,
|
|
668
668
|
onRedirect: u,
|
|
669
|
-
onGoogleLogout:
|
|
669
|
+
onGoogleLogout: m
|
|
670
670
|
}) => {
|
|
671
|
-
const i =
|
|
672
|
-
e(s, i) && f?.(), _?.(), r?.(), p && u?.("/"),
|
|
671
|
+
const i = n(o);
|
|
672
|
+
e(s, i) && f?.(), _?.(), r?.(), p && u?.("/"), m?.();
|
|
673
673
|
},
|
|
674
674
|
shouldShowErrorNotice: e,
|
|
675
|
-
isMachineDomain:
|
|
675
|
+
isMachineDomain: n
|
|
676
676
|
};
|
|
677
|
-
},
|
|
677
|
+
}, ja = (e = [], n) => Ye(e, { gameTypeName: n })?.gameTypeUid, Qa = (e = [], n) => Ye(e, { platform: n })?.platformUid, Ya = (e = [], n) => Ye(e, { SubPlatformEnum: n }), qa = (e = [], n, c) => O(e) ? [] : e.filter((s) => c ? String(s?.SubPlatformEnumUid) === String(c?.SubPlatformEnumUid) : String(s.platformUid) === String(n)), xi = (e = []) => O(e) ? {} : e.reduce((n, c) => {
|
|
678
678
|
const s = c?.game_subtype || "UNKNOWN";
|
|
679
|
-
return
|
|
680
|
-
}, {}),
|
|
679
|
+
return n[s] || (n[s] = []), n[s].push(c), n;
|
|
680
|
+
}, {}), Oi = ({
|
|
681
681
|
gameTypeName: e,
|
|
682
|
-
platforms:
|
|
682
|
+
platforms: n,
|
|
683
683
|
gameList: c,
|
|
684
684
|
allGameTypes: s,
|
|
685
685
|
allPlatforms: o
|
|
686
686
|
}) => {
|
|
687
|
-
const p =
|
|
688
|
-
return p ?
|
|
689
|
-
const r =
|
|
690
|
-
|
|
687
|
+
const p = ja(s, e);
|
|
688
|
+
return p ? n.reduce((f, _) => {
|
|
689
|
+
const r = Qa(o, _), u = Ya(o, _), m = c[p] || [], i = qa(
|
|
690
|
+
m,
|
|
691
691
|
r,
|
|
692
692
|
u
|
|
693
693
|
);
|
|
694
694
|
return O(i) || (f[_] = i), f;
|
|
695
695
|
}, {}) : {};
|
|
696
|
-
},
|
|
696
|
+
}, Hi = ({
|
|
697
697
|
platformName: e,
|
|
698
|
-
gamesOfType:
|
|
698
|
+
gamesOfType: n = [],
|
|
699
699
|
allPlatforms: c = []
|
|
700
700
|
}) => {
|
|
701
|
-
const s =
|
|
702
|
-
|
|
701
|
+
const s = Qa(c, e), o = Ya(c, e), p = qa(
|
|
702
|
+
n,
|
|
703
703
|
s,
|
|
704
704
|
o
|
|
705
705
|
);
|
|
706
|
-
return
|
|
707
|
-
},
|
|
708
|
-
const o =
|
|
706
|
+
return xi(p);
|
|
707
|
+
}, wi = (e = {}) => !He(e) || O(e) ? [] : qe(e), ha = (e = []) => !ee(e) || O(e) ? [] : we(e, "platform"), Fi = (e = []) => !ee(e) || O(e) ? [] : we(e, "gameTypeName"), Wi = (e = []) => !ee(e) || O(e) ? [] : we(e, "game_subtype"), Ji = (e = {}) => !He(e) || O(e) ? [] : qe(e), zi = (e = [], n = []) => !ee(e) || O(e) ? {} : !ee(n) || O(n) ? {} : e.reduce((c, s) => {
|
|
708
|
+
const o = n.map((p) => p.game_subtype);
|
|
709
709
|
return o.forEach((p) => {
|
|
710
710
|
c[p] = c[p] || [];
|
|
711
711
|
}), o.includes(s.game_subtype) && c[s.game_subtype].push(s), c;
|
|
712
|
-
}, {}),
|
|
712
|
+
}, {}), Zi = ({
|
|
713
713
|
gameTypes: e = [],
|
|
714
|
-
platforms:
|
|
714
|
+
platforms: n = [],
|
|
715
715
|
gameList: c = {},
|
|
716
716
|
allGameTypes: s = [],
|
|
717
717
|
allPlatforms: o = []
|
|
718
|
-
}) => !ee(e) || !ee(
|
|
719
|
-
const _ =
|
|
718
|
+
}) => !ee(e) || !ee(n) ? {} : O(c) ? {} : e.reduce((p, f) => {
|
|
719
|
+
const _ = Oi({
|
|
720
720
|
gameTypeName: f,
|
|
721
|
-
platforms:
|
|
721
|
+
platforms: n,
|
|
722
722
|
gameList: c,
|
|
723
723
|
allGameTypes: s,
|
|
724
724
|
allPlatforms: o
|
|
@@ -726,38 +726,38 @@ const Ia = Wa(null), _l = () => {
|
|
|
726
726
|
return O(_) || (p[f] = _), p;
|
|
727
727
|
}, {}), Ul = ({
|
|
728
728
|
types: e = [],
|
|
729
|
-
platforms:
|
|
729
|
+
platforms: n = [],
|
|
730
730
|
allGameType: c = [],
|
|
731
731
|
allGamePlatform: s = [],
|
|
732
732
|
allGameList: o = {}
|
|
733
|
-
} = {}) => !Array.isArray(e) || !Array.isArray(
|
|
734
|
-
const _ =
|
|
733
|
+
} = {}) => !Array.isArray(e) || !Array.isArray(n) ? {} : e.reduce((p, f) => {
|
|
734
|
+
const _ = ja(c, f);
|
|
735
735
|
if (!_) return p;
|
|
736
|
-
const r = o[_] || [], u =
|
|
737
|
-
const d =
|
|
736
|
+
const r = o[_] || [], u = n.reduce((m, i) => {
|
|
737
|
+
const d = Hi({
|
|
738
738
|
platformName: i,
|
|
739
739
|
gamesOfType: r,
|
|
740
740
|
allPlatforms: s
|
|
741
741
|
});
|
|
742
|
-
return O(d) ?
|
|
742
|
+
return O(d) ? m : { ...m, [i]: d };
|
|
743
743
|
}, {});
|
|
744
744
|
return O(u) || (p[f] = u), p;
|
|
745
|
-
}, {}),
|
|
745
|
+
}, {}), Vi = (e = {}) => !He(e) || O(e) ? {} : Object.values(e).reduce((c, s) => (Object.entries(s).forEach(([o, p]) => {
|
|
746
746
|
c[o] ? c[o] = [...c[o], ...p] : c[o] = p;
|
|
747
|
-
}), c), {}),
|
|
747
|
+
}), c), {}), Ii = (e = {}) => {
|
|
748
748
|
if (!He(e) || O(e)) return {};
|
|
749
|
-
const
|
|
749
|
+
const n = {};
|
|
750
750
|
for (const [c, s] of Object.entries(e)) {
|
|
751
|
-
|
|
751
|
+
n[c] = {};
|
|
752
752
|
for (const o of s) {
|
|
753
753
|
const p = o.game_subtype;
|
|
754
|
-
|
|
754
|
+
n[c][p] || (n[c][p] = []), n[c][p].push(o);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
return
|
|
758
|
-
},
|
|
757
|
+
return n;
|
|
758
|
+
}, Ai = ({
|
|
759
759
|
allGameList: e = {},
|
|
760
|
-
allGamePlatform:
|
|
760
|
+
allGamePlatform: n = [],
|
|
761
761
|
allGameType: c = [],
|
|
762
762
|
allGame_subtype: s = [],
|
|
763
763
|
allNewGameList: o = [],
|
|
@@ -766,19 +766,20 @@ const Ia = Wa(null), _l = () => {
|
|
|
766
766
|
userFavoriteGame: _ = {},
|
|
767
767
|
exclusiveBrandGames: r = [],
|
|
768
768
|
highlightGames: u = [],
|
|
769
|
-
originPlatform:
|
|
769
|
+
originPlatform: m = []
|
|
770
770
|
}) => {
|
|
771
|
-
const i =
|
|
771
|
+
const i = wi(e), d = ha(n), l = Fi(c), t = Wi(s), y = ha(m), b = Ji(_), g = Zi({
|
|
772
772
|
gameTypes: l,
|
|
773
773
|
platforms: d,
|
|
774
774
|
gameList: e,
|
|
775
775
|
allGameTypes: c,
|
|
776
|
-
allPlatforms:
|
|
777
|
-
}), T =
|
|
776
|
+
allPlatforms: n
|
|
777
|
+
}), T = zi(i, s), S = Vi(g), D = Ii(S);
|
|
778
778
|
return {
|
|
779
779
|
platform: {
|
|
780
780
|
all: d,
|
|
781
|
-
origin: y
|
|
781
|
+
origin: y,
|
|
782
|
+
originPlatform: n
|
|
782
783
|
},
|
|
783
784
|
type: {
|
|
784
785
|
main: l,
|
|
@@ -804,12 +805,12 @@ const Ia = Wa(null), _l = () => {
|
|
|
804
805
|
favorite: b
|
|
805
806
|
}
|
|
806
807
|
};
|
|
807
|
-
}, yl = (e = []) => !ee(e) || O(e) ? [] : qe(e, (
|
|
808
|
-
...
|
|
808
|
+
}, yl = (e = []) => !ee(e) || O(e) ? [] : qe(e, (n) => O(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((c) => ({
|
|
809
|
+
...n,
|
|
809
810
|
...c,
|
|
810
811
|
platform: c.SubPlatformEnum,
|
|
811
812
|
platformEnum: c.SubPlatformEnum
|
|
812
|
-
}))),
|
|
813
|
+
}))), Bi = (e) => {
|
|
813
814
|
switch (e) {
|
|
814
815
|
case "tw":
|
|
815
816
|
return "zh_TW";
|
|
@@ -829,11 +830,11 @@ const Ia = Wa(null), _l = () => {
|
|
|
829
830
|
return e;
|
|
830
831
|
}
|
|
831
832
|
}, ce = () => {
|
|
832
|
-
const { client: e } = se(),
|
|
833
|
+
const { client: e } = se(), n = X(
|
|
833
834
|
async (r) => {
|
|
834
|
-
const { mac_address: u = "", app_version:
|
|
835
|
+
const { mac_address: u = "", app_version: m = "", anydesk_id: i = "" } = r, { data: d } = await e.post("/cash-register/login", {
|
|
835
836
|
mac_address: u,
|
|
836
|
-
app_version:
|
|
837
|
+
app_version: m,
|
|
837
838
|
anydesk_id: i
|
|
838
839
|
});
|
|
839
840
|
return d;
|
|
@@ -841,17 +842,17 @@ const Ia = Wa(null), _l = () => {
|
|
|
841
842
|
[e]
|
|
842
843
|
), c = X(async () => e.get("/member/getMemberInfo"), [e]), s = X(async () => await e.get("/member/getGameList"), [e]), o = X(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = X(async () => await e.get("member/getFavoriteGame"), [e]), f = X(
|
|
843
844
|
async (r) => {
|
|
844
|
-
const { account: u, password:
|
|
845
|
+
const { account: u, password: m, trans_code: i } = r;
|
|
845
846
|
return await e.post("/login", {
|
|
846
847
|
memId: u,
|
|
847
|
-
passwd:
|
|
848
|
+
passwd: m,
|
|
848
849
|
trans_code: i
|
|
849
850
|
});
|
|
850
851
|
},
|
|
851
852
|
[e]
|
|
852
853
|
), _ = X(async () => await e.post("/logout"), [e]);
|
|
853
854
|
return {
|
|
854
|
-
machineLoginApi:
|
|
855
|
+
machineLoginApi: n,
|
|
855
856
|
userInfoApi: c,
|
|
856
857
|
userGameListApi: s,
|
|
857
858
|
userFavoriteGameApi: p,
|
|
@@ -859,7 +860,7 @@ const Ia = Wa(null), _l = () => {
|
|
|
859
860
|
userLoginApi: f,
|
|
860
861
|
userLogoutApi: _
|
|
861
862
|
};
|
|
862
|
-
},
|
|
863
|
+
}, Ki = {
|
|
863
864
|
platform: { all: [], origin: [] },
|
|
864
865
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
865
866
|
gameList: {
|
|
@@ -877,18 +878,18 @@ const Ia = Wa(null), _l = () => {
|
|
|
877
878
|
byPlatformAndCategory: {}
|
|
878
879
|
},
|
|
879
880
|
user: { favorite: [] }
|
|
880
|
-
},
|
|
881
|
-
const { getToken:
|
|
881
|
+
}, ji = ({ enabled: e = !0 } = {}) => {
|
|
882
|
+
const { getToken: n } = se(), { userFavoriteGameApi: c, userGameListApi: s } = ce(), { data: o, isLoading: p, error: f, refetch: _ } = oe({
|
|
882
883
|
queryKey: ["gamesInfo"],
|
|
883
884
|
queryFn: async () => {
|
|
884
885
|
let r = {}, u = {};
|
|
885
886
|
try {
|
|
886
|
-
await
|
|
887
|
-
} catch (
|
|
888
|
-
console.warn("Failed to fetch favorite games:",
|
|
887
|
+
await n?.() && (u = await s(), r = await c());
|
|
888
|
+
} catch (m) {
|
|
889
|
+
console.warn("Failed to fetch favorite games:", m);
|
|
889
890
|
}
|
|
890
|
-
return
|
|
891
|
-
allGameList: window.gameTypeGroup || {},
|
|
891
|
+
return Ai({
|
|
892
|
+
allGameList: u.gameTypeGroup || window.gameTypeGroup || {},
|
|
892
893
|
allGamePlatform: u.platforms || window.platforms || [],
|
|
893
894
|
allGameType: u.gameType || window.gameType || [],
|
|
894
895
|
allGame_subtype: u.gameSubType || window.gameSubType || [],
|
|
@@ -910,12 +911,12 @@ const Ia = Wa(null), _l = () => {
|
|
|
910
911
|
refetchOnWindowFocus: !1
|
|
911
912
|
});
|
|
912
913
|
return {
|
|
913
|
-
gamesInfo: o ||
|
|
914
|
+
gamesInfo: o || Ki,
|
|
914
915
|
isLoading: p,
|
|
915
916
|
error: f,
|
|
916
917
|
refetch: _
|
|
917
918
|
};
|
|
918
|
-
},
|
|
919
|
+
}, Qi = (e = !1) => {
|
|
919
920
|
if (!e && window.gameTypeGroup) {
|
|
920
921
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
921
922
|
return;
|
|
@@ -27442,26 +27443,26 @@ const Ia = Wa(null), _l = () => {
|
|
|
27442
27443
|
is_invalid_bet: 0
|
|
27443
27444
|
}
|
|
27444
27445
|
});
|
|
27445
|
-
},
|
|
27446
|
+
}, Yi = ({
|
|
27446
27447
|
children: e,
|
|
27447
|
-
autoFetch:
|
|
27448
|
+
autoFetch: n = !1,
|
|
27448
27449
|
mockData: c = !1
|
|
27449
27450
|
}) => {
|
|
27450
27451
|
he(() => {
|
|
27451
|
-
c &&
|
|
27452
|
+
c && Qi(!0);
|
|
27452
27453
|
}, [c]);
|
|
27453
|
-
const s =
|
|
27454
|
-
return /* @__PURE__ */ Oe.jsx(
|
|
27454
|
+
const s = ji({ enabled: n });
|
|
27455
|
+
return /* @__PURE__ */ Oe.jsx(Ka.Provider, { value: s, children: e });
|
|
27455
27456
|
};
|
|
27456
27457
|
function bl({
|
|
27457
27458
|
children: e,
|
|
27458
|
-
autoFetchGamesInfo:
|
|
27459
|
+
autoFetchGamesInfo: n = !1,
|
|
27459
27460
|
useMockData: c = !1,
|
|
27460
27461
|
queryClient: s,
|
|
27461
27462
|
...o
|
|
27462
27463
|
}) {
|
|
27463
|
-
const p = Qe(() =>
|
|
27464
|
-
() => new
|
|
27464
|
+
const p = Qe(() => Pi(o), [o]), f = Qe(
|
|
27465
|
+
() => new Si({
|
|
27465
27466
|
defaultOptions: {
|
|
27466
27467
|
queries: {
|
|
27467
27468
|
refetchOnWindowFocus: !1,
|
|
@@ -27471,11 +27472,11 @@ function bl({
|
|
|
27471
27472
|
}),
|
|
27472
27473
|
[]
|
|
27473
27474
|
), _ = s || f;
|
|
27474
|
-
return /* @__PURE__ */ Oe.jsx(
|
|
27475
|
+
return /* @__PURE__ */ Oe.jsx(Ni, { client: _, children: /* @__PURE__ */ Oe.jsx(Ba.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(Yi, { autoFetch: n, mockData: c, children: e }) }) });
|
|
27475
27476
|
}
|
|
27476
|
-
const Tl = ({ otherQueryKey: e = [], options:
|
|
27477
|
-
const { userCurrencyExchangeApi: c } = ce(), { getToken: s } = se(), { enabled: o, ...p } =
|
|
27478
|
-
return
|
|
27477
|
+
const Tl = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
27478
|
+
const { userCurrencyExchangeApi: c } = ce(), { getToken: s } = se(), { enabled: o, ...p } = n, f = !!s && (o ? o.every((_) => _) : !0);
|
|
27479
|
+
return Ia({
|
|
27479
27480
|
queries: [
|
|
27480
27481
|
{
|
|
27481
27482
|
queryKey: ["userCurrencyExchange", ...e],
|
|
@@ -27489,13 +27490,13 @@ const Tl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
|
|
|
27489
27490
|
});
|
|
27490
27491
|
}, Cl = ({
|
|
27491
27492
|
refetchInterval: e = 5e4,
|
|
27492
|
-
trigger:
|
|
27493
|
+
trigger: n = [],
|
|
27493
27494
|
enabled: c = !0
|
|
27494
27495
|
} = {}) => {
|
|
27495
|
-
const { getToken: s } = se(), { userInfoApi: o } = ce(), p =
|
|
27496
|
+
const { getToken: s } = se(), { userInfoApi: o } = ce(), p = Ia({
|
|
27496
27497
|
queries: [
|
|
27497
27498
|
{
|
|
27498
|
-
queryKey: ["getMemberInfo", ...
|
|
27499
|
+
queryKey: ["getMemberInfo", ...n],
|
|
27499
27500
|
queryFn: async () => await o(),
|
|
27500
27501
|
refetchInterval: e,
|
|
27501
27502
|
enabled: !!s && c
|
|
@@ -27505,13 +27506,13 @@ const Tl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
|
|
|
27505
27506
|
return { data: f, isFetching: _, error: r };
|
|
27506
27507
|
}, vl = ({ enabled: e = !0 } = {}) => {
|
|
27507
27508
|
const {
|
|
27508
|
-
userInfoApi:
|
|
27509
|
+
userInfoApi: n,
|
|
27509
27510
|
userFavoriteGameApi: c,
|
|
27510
27511
|
userGameListApi: s,
|
|
27511
27512
|
userCurrencyExchangeApi: o
|
|
27512
27513
|
} = ce(), p = oe({
|
|
27513
27514
|
queryKey: ["getMemInfo"],
|
|
27514
|
-
queryFn: async () =>
|
|
27515
|
+
queryFn: async () => n(),
|
|
27515
27516
|
enabled: e
|
|
27516
27517
|
}), f = oe({
|
|
27517
27518
|
queryKey: ["getFavoriteGame"],
|
|
@@ -27533,11 +27534,11 @@ const Tl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
|
|
|
27533
27534
|
r
|
|
27534
27535
|
];
|
|
27535
27536
|
};
|
|
27536
|
-
var Ie = {}, J = {}, Ae = {},
|
|
27537
|
+
var Ie = {}, J = {}, Ae = {}, ka;
|
|
27537
27538
|
function A() {
|
|
27538
|
-
return
|
|
27539
|
+
return ka || (ka = 1, (function(e) {
|
|
27539
27540
|
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;
|
|
27540
|
-
var
|
|
27541
|
+
var n = 1, c = 1e3 * n;
|
|
27541
27542
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
27542
27543
|
withCredentials: !1,
|
|
27543
27544
|
events: e.EMPTY_EVENT_HANDLERS
|
|
@@ -27560,25 +27561,25 @@ function A() {
|
|
|
27560
27561
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && o();
|
|
27561
27562
|
})(Ae)), Ae;
|
|
27562
27563
|
}
|
|
27563
|
-
var Ce = {}, Be = {},
|
|
27564
|
+
var Ce = {}, Be = {}, Sa;
|
|
27564
27565
|
function Xe() {
|
|
27565
|
-
return
|
|
27566
|
+
return Sa || (Sa = 1, (function(e) {
|
|
27566
27567
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
27567
|
-
var
|
|
27568
|
+
var n = function(c) {
|
|
27568
27569
|
if (c && e.sharedWebSockets.hasOwnProperty(c))
|
|
27569
27570
|
delete e.sharedWebSockets[c];
|
|
27570
27571
|
else
|
|
27571
27572
|
for (var s in e.sharedWebSockets)
|
|
27572
27573
|
e.sharedWebSockets.hasOwnProperty(s) && delete e.sharedWebSockets[s];
|
|
27573
27574
|
};
|
|
27574
|
-
e.resetWebSockets =
|
|
27575
|
+
e.resetWebSockets = n;
|
|
27575
27576
|
})(Be)), Be;
|
|
27576
27577
|
}
|
|
27577
|
-
var ne = {}, Q = {},
|
|
27578
|
+
var ne = {}, Q = {}, Na;
|
|
27578
27579
|
function $e() {
|
|
27579
|
-
if (
|
|
27580
|
-
|
|
27581
|
-
var e = A(),
|
|
27580
|
+
if (Na) return Q;
|
|
27581
|
+
Na = 1, Object.defineProperty(Q, "__esModule", { value: !0 }), Q.setUpSocketIOPing = Q.appendQueryParams = Q.parseSocketIOUrl = void 0;
|
|
27582
|
+
var e = A(), n = function(o) {
|
|
27582
27583
|
if (o) {
|
|
27583
27584
|
var p = /^https|wss/.test(o), f = o.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), r = p ? "wss" : "ws";
|
|
27584
27585
|
return "".concat(r, "://").concat(_).concat(e.SOCKET_IO_PATH);
|
|
@@ -27588,11 +27589,11 @@ function $e() {
|
|
|
27588
27589
|
}
|
|
27589
27590
|
return o;
|
|
27590
27591
|
};
|
|
27591
|
-
Q.parseSocketIOUrl =
|
|
27592
|
+
Q.parseSocketIOUrl = n;
|
|
27592
27593
|
var c = function(o, p) {
|
|
27593
27594
|
p === void 0 && (p = {});
|
|
27594
|
-
var f = /\?([\w]+=[\w]+)/, _ = f.test(o), r = "".concat(Object.entries(p).reduce(function(u,
|
|
27595
|
-
var i =
|
|
27595
|
+
var f = /\?([\w]+=[\w]+)/, _ = f.test(o), r = "".concat(Object.entries(p).reduce(function(u, m) {
|
|
27596
|
+
var i = m[0], d = m[1];
|
|
27596
27597
|
return u + "".concat(i, "=").concat(d, "&");
|
|
27597
27598
|
}, "").slice(0, -1));
|
|
27598
27599
|
return "".concat(o).concat(_ ? "&" : "?").concat(r);
|
|
@@ -27607,20 +27608,20 @@ function $e() {
|
|
|
27607
27608
|
};
|
|
27608
27609
|
return Q.setUpSocketIOPing = s, Q;
|
|
27609
27610
|
}
|
|
27610
|
-
var xe = {},
|
|
27611
|
-
function
|
|
27612
|
-
if (
|
|
27613
|
-
|
|
27611
|
+
var xe = {}, Da;
|
|
27612
|
+
function Xa() {
|
|
27613
|
+
if (Da) return xe;
|
|
27614
|
+
Da = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.heartbeat = c;
|
|
27614
27615
|
var e = A();
|
|
27615
|
-
function
|
|
27616
|
+
function n(s) {
|
|
27616
27617
|
return Array.isArray(s) ? s.reduce(function(o, p) {
|
|
27617
27618
|
return o.current > p.current ? o : p;
|
|
27618
27619
|
}).current : s.current;
|
|
27619
27620
|
}
|
|
27620
27621
|
function c(s, o, p) {
|
|
27621
|
-
var f = p || {}, _ = f.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, u = f.timeout,
|
|
27622
|
-
var b = Date.now(), g =
|
|
27623
|
-
if (g +
|
|
27622
|
+
var f = p || {}, _ = f.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, u = f.timeout, m = u === void 0 ? e.DEFAULT_HEARTBEAT.timeout : u, i = f.message, d = i === void 0 ? e.DEFAULT_HEARTBEAT.message : i, l = Math.max(100, r / 10), t = Date.now(), y = setInterval(function() {
|
|
27623
|
+
var b = Date.now(), g = n(o);
|
|
27624
|
+
if (g + m <= b)
|
|
27624
27625
|
console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - g, "ms ago, last ping sent ").concat(b - t, "ms ago")), s.close();
|
|
27625
27626
|
else if (g + r <= b && t + r <= b)
|
|
27626
27627
|
try {
|
|
@@ -27636,84 +27637,84 @@ function Qa() {
|
|
|
27636
27637
|
}
|
|
27637
27638
|
return xe;
|
|
27638
27639
|
}
|
|
27639
|
-
var ve = {}, Ke = {},
|
|
27640
|
+
var ve = {}, Ke = {}, Ea;
|
|
27640
27641
|
function ea() {
|
|
27641
|
-
return
|
|
27642
|
+
return Ea || (Ea = 1, (function(e) {
|
|
27642
27643
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
27643
|
-
var
|
|
27644
|
-
return (0, e.hasSubscribers)(r) ? Array.from(
|
|
27644
|
+
var n = {}, c = [], s = function(r) {
|
|
27645
|
+
return (0, e.hasSubscribers)(r) ? Array.from(n[r]) : c;
|
|
27645
27646
|
};
|
|
27646
27647
|
e.getSubscribers = s;
|
|
27647
27648
|
var o = function(r) {
|
|
27648
27649
|
var u;
|
|
27649
|
-
return ((u =
|
|
27650
|
+
return ((u = n[r]) === null || u === void 0 ? void 0 : u.size) > 0;
|
|
27650
27651
|
};
|
|
27651
27652
|
e.hasSubscribers = o;
|
|
27652
27653
|
var p = function(r, u) {
|
|
27653
|
-
|
|
27654
|
+
n[r] = n[r] || /* @__PURE__ */ new Set(), n[r].add(u);
|
|
27654
27655
|
};
|
|
27655
27656
|
e.addSubscriber = p;
|
|
27656
27657
|
var f = function(r, u) {
|
|
27657
|
-
|
|
27658
|
+
n[r].delete(u);
|
|
27658
27659
|
};
|
|
27659
27660
|
e.removeSubscriber = f;
|
|
27660
27661
|
var _ = function(r) {
|
|
27661
|
-
if (r &&
|
|
27662
|
-
delete
|
|
27662
|
+
if (r && n.hasOwnProperty(r))
|
|
27663
|
+
delete n[r];
|
|
27663
27664
|
else
|
|
27664
|
-
for (var u in
|
|
27665
|
-
|
|
27665
|
+
for (var u in n)
|
|
27666
|
+
n.hasOwnProperty(u) && delete n[u];
|
|
27666
27667
|
};
|
|
27667
27668
|
e.resetSubscribers = _;
|
|
27668
27669
|
})(Ke)), Ke;
|
|
27669
27670
|
}
|
|
27670
|
-
var
|
|
27671
|
+
var La;
|
|
27671
27672
|
function aa() {
|
|
27672
|
-
if (
|
|
27673
|
-
|
|
27674
|
-
var e = Xe(),
|
|
27673
|
+
if (La) return ve;
|
|
27674
|
+
La = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.assertIsWebSocket = c, ve.resetGlobalState = s;
|
|
27675
|
+
var e = Xe(), n = ea();
|
|
27675
27676
|
function c(o, p) {
|
|
27676
27677
|
if (!p && !(o instanceof WebSocket))
|
|
27677
27678
|
throw new Error("");
|
|
27678
27679
|
}
|
|
27679
27680
|
function s(o) {
|
|
27680
|
-
(0,
|
|
27681
|
+
(0, n.resetSubscribers)(o), (0, e.resetWebSockets)(o);
|
|
27681
27682
|
}
|
|
27682
27683
|
return ve;
|
|
27683
27684
|
}
|
|
27684
|
-
var
|
|
27685
|
-
function
|
|
27686
|
-
if (
|
|
27687
|
-
|
|
27685
|
+
var Ga;
|
|
27686
|
+
function qi() {
|
|
27687
|
+
if (Ga) return ne;
|
|
27688
|
+
Ga = 1;
|
|
27688
27689
|
var e = ne && ne.__assign || function() {
|
|
27689
|
-
return e = Object.assign || function(
|
|
27690
|
+
return e = Object.assign || function(m) {
|
|
27690
27691
|
for (var i, d = 1, l = arguments.length; d < l; d++) {
|
|
27691
27692
|
i = arguments[d];
|
|
27692
|
-
for (var t in i) Object.prototype.hasOwnProperty.call(i, t) && (
|
|
27693
|
+
for (var t in i) Object.prototype.hasOwnProperty.call(i, t) && (m[t] = i[t]);
|
|
27693
27694
|
}
|
|
27694
|
-
return
|
|
27695
|
+
return m;
|
|
27695
27696
|
}, e.apply(this, arguments);
|
|
27696
27697
|
};
|
|
27697
27698
|
Object.defineProperty(ne, "__esModule", { value: !0 }), ne.attachListeners = void 0;
|
|
27698
|
-
var
|
|
27699
|
-
|
|
27699
|
+
var n = $e(), c = Xa(), s = A(), o = aa(), p = function(m, i, d, l) {
|
|
27700
|
+
m.onmessage = function(t) {
|
|
27700
27701
|
var y;
|
|
27701
27702
|
i.current.onMessage && i.current.onMessage(t), typeof l?.current == "number" && (l.current = Date.now()), !(typeof i.current.filter == "function" && i.current.filter(t) !== !0) && (i.current.heartbeat && typeof i.current.heartbeat != "boolean" && ((y = i.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === t.data || d(t));
|
|
27702
27703
|
};
|
|
27703
|
-
}, f = function(
|
|
27704
|
-
|
|
27705
|
-
if (i.current.onOpen && i.current.onOpen(y), l.current = 0, d(s.ReadyState.OPEN), i.current.heartbeat &&
|
|
27704
|
+
}, f = function(m, i, d, l, t) {
|
|
27705
|
+
m.onopen = function(y) {
|
|
27706
|
+
if (i.current.onOpen && i.current.onOpen(y), l.current = 0, d(s.ReadyState.OPEN), i.current.heartbeat && m instanceof WebSocket) {
|
|
27706
27707
|
var b = typeof i.current.heartbeat == "boolean" ? void 0 : i.current.heartbeat;
|
|
27707
|
-
t.current = Date.now(), (0, c.heartbeat)(
|
|
27708
|
+
t.current = Date.now(), (0, c.heartbeat)(m, t, b);
|
|
27708
27709
|
}
|
|
27709
27710
|
};
|
|
27710
|
-
}, _ = function(
|
|
27711
|
-
if (s.isEventSourceSupported &&
|
|
27711
|
+
}, _ = function(m, i, d, l, t) {
|
|
27712
|
+
if (s.isEventSourceSupported && m instanceof EventSource)
|
|
27712
27713
|
return function() {
|
|
27713
27714
|
};
|
|
27714
|
-
(0, o.assertIsWebSocket)(
|
|
27715
|
+
(0, o.assertIsWebSocket)(m, i.current.skipAssert);
|
|
27715
27716
|
var y;
|
|
27716
|
-
return
|
|
27717
|
+
return m.onclose = function(b) {
|
|
27717
27718
|
var g;
|
|
27718
27719
|
if (i.current.onClose && i.current.onClose(b), d(s.ReadyState.CLOSED), i.current.shouldReconnect && i.current.shouldReconnect(b)) {
|
|
27719
27720
|
var T = (g = i.current.reconnectAttempts) !== null && g !== void 0 ? g : s.DEFAULT_RECONNECT_LIMIT;
|
|
@@ -27728,11 +27729,11 @@ function Qi() {
|
|
|
27728
27729
|
}, function() {
|
|
27729
27730
|
return y && window.clearTimeout(y);
|
|
27730
27731
|
};
|
|
27731
|
-
}, r = function(
|
|
27732
|
+
}, r = function(m, i, d, l, t) {
|
|
27732
27733
|
var y;
|
|
27733
|
-
return
|
|
27734
|
+
return m.onerror = function(b) {
|
|
27734
27735
|
var g;
|
|
27735
|
-
if (i.current.onError && i.current.onError(b), s.isEventSourceSupported &&
|
|
27736
|
+
if (i.current.onError && i.current.onError(b), s.isEventSourceSupported && m instanceof EventSource && (i.current.onClose && i.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })), d(s.ReadyState.CLOSED), m.close()), i.current.retryOnError)
|
|
27736
27737
|
if (t.current < ((g = i.current.reconnectAttempts) !== null && g !== void 0 ? g : s.DEFAULT_RECONNECT_LIMIT)) {
|
|
27737
27738
|
var T = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(t.current) : i.current.reconnectInterval;
|
|
27738
27739
|
y = window.setTimeout(function() {
|
|
@@ -27743,18 +27744,18 @@ function Qi() {
|
|
|
27743
27744
|
}, function() {
|
|
27744
27745
|
return y && window.clearTimeout(y);
|
|
27745
27746
|
};
|
|
27746
|
-
}, u = function(
|
|
27747
|
+
}, u = function(m, i, d, l, t, y, b) {
|
|
27747
27748
|
var g = i.setLastMessage, T = i.setReadyState, S, D, h;
|
|
27748
|
-
return d.current.fromSocketIO && (S = (0,
|
|
27749
|
-
T(s.ReadyState.CLOSING), D(), h(),
|
|
27749
|
+
return d.current.fromSocketIO && (S = (0, n.setUpSocketIOPing)(b)), p(m, d, g, y), f(m, d, T, t, y), D = _(m, d, T, l, t), h = r(m, d, T, l, t), function() {
|
|
27750
|
+
T(s.ReadyState.CLOSING), D(), h(), m.close(), S && clearInterval(S);
|
|
27750
27751
|
};
|
|
27751
27752
|
};
|
|
27752
27753
|
return ne.attachListeners = u, ne;
|
|
27753
27754
|
}
|
|
27754
|
-
var me = {},
|
|
27755
|
-
function
|
|
27756
|
-
if (
|
|
27757
|
-
|
|
27755
|
+
var me = {}, Ma;
|
|
27756
|
+
function Xi() {
|
|
27757
|
+
if (Ma) return me;
|
|
27758
|
+
Ma = 1;
|
|
27758
27759
|
var e = me && me.__assign || function() {
|
|
27759
27760
|
return e = Object.assign || function(i) {
|
|
27760
27761
|
for (var d, l = 1, t = arguments.length; l < t; l++) {
|
|
@@ -27765,7 +27766,7 @@ function Yi() {
|
|
|
27765
27766
|
}, e.apply(this, arguments);
|
|
27766
27767
|
};
|
|
27767
27768
|
Object.defineProperty(me, "__esModule", { value: !0 }), me.attachSharedListeners = void 0;
|
|
27768
|
-
var
|
|
27769
|
+
var n = Xe(), c = A(), s = ea(), o = $e(), p = Xa(), f = function(i, d, l) {
|
|
27769
27770
|
i.onmessage = function(t) {
|
|
27770
27771
|
(0, s.getSubscribers)(d).forEach(function(y) {
|
|
27771
27772
|
var b;
|
|
@@ -27785,7 +27786,7 @@ function Yi() {
|
|
|
27785
27786
|
i instanceof WebSocket && (i.onclose = function(l) {
|
|
27786
27787
|
(0, s.getSubscribers)(d).forEach(function(t) {
|
|
27787
27788
|
t.optionsRef.current.onClose && t.optionsRef.current.onClose(l), t.setReadyState(c.ReadyState.CLOSED);
|
|
27788
|
-
}), delete
|
|
27789
|
+
}), delete n.sharedWebSockets[d], (0, s.getSubscribers)(d).forEach(function(t) {
|
|
27789
27790
|
var y;
|
|
27790
27791
|
if (t.optionsRef.current.shouldReconnect && t.optionsRef.current.shouldReconnect(l)) {
|
|
27791
27792
|
var b = (y = t.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : c.DEFAULT_RECONNECT_LIMIT;
|
|
@@ -27805,67 +27806,67 @@ function Yi() {
|
|
|
27805
27806
|
t.optionsRef.current.onError && t.optionsRef.current.onError(l), c.isEventSourceSupported && i instanceof EventSource && (t.optionsRef.current.onClose && t.optionsRef.current.onClose(e(e({}, l), { code: 1006, reason: "An error occurred with the EventSource: ".concat(l), wasClean: !1 })), t.setReadyState(c.ReadyState.CLOSED));
|
|
27806
27807
|
}), c.isEventSourceSupported && i instanceof EventSource && i.close();
|
|
27807
27808
|
};
|
|
27808
|
-
},
|
|
27809
|
+
}, m = function(i, d, l, t) {
|
|
27809
27810
|
var y;
|
|
27810
27811
|
return l.current.fromSocketIO && (y = (0, o.setUpSocketIOPing)(t)), f(i, d, l.current.heartbeat), r(i, d), _(i, d, l.current.heartbeat), u(i, d), function() {
|
|
27811
27812
|
y && clearInterval(y);
|
|
27812
27813
|
};
|
|
27813
27814
|
};
|
|
27814
|
-
return me.attachSharedListeners =
|
|
27815
|
+
return me.attachSharedListeners = m, me;
|
|
27815
27816
|
}
|
|
27816
|
-
var
|
|
27817
|
-
function
|
|
27818
|
-
if (
|
|
27819
|
-
|
|
27820
|
-
var e = Xe(),
|
|
27817
|
+
var Ra;
|
|
27818
|
+
function $i() {
|
|
27819
|
+
if (Ra) return Ce;
|
|
27820
|
+
Ra = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.createOrJoinSocket = void 0;
|
|
27821
|
+
var e = Xe(), n = A(), c = qi(), s = Xi(), o = ea(), p = function(_, r, u, m, i) {
|
|
27821
27822
|
return function() {
|
|
27822
27823
|
if ((0, o.removeSubscriber)(_, r), !(0, o.hasSubscribers)(_)) {
|
|
27823
27824
|
try {
|
|
27824
27825
|
var d = e.sharedWebSockets[_];
|
|
27825
27826
|
d instanceof WebSocket && (d.onclose = function(l) {
|
|
27826
|
-
u.current.onClose && u.current.onClose(l), n
|
|
27827
|
+
u.current.onClose && u.current.onClose(l), m(n.ReadyState.CLOSED);
|
|
27827
27828
|
}), d.close();
|
|
27828
27829
|
} catch {
|
|
27829
27830
|
}
|
|
27830
27831
|
i && i(), delete e.sharedWebSockets[_];
|
|
27831
27832
|
}
|
|
27832
27833
|
};
|
|
27833
|
-
}, f = function(_, r, u,
|
|
27834
|
-
if (!
|
|
27835
|
-
throw
|
|
27836
|
-
if (
|
|
27834
|
+
}, f = function(_, r, u, m, i, d, l, t, y) {
|
|
27835
|
+
if (!n.isEventSourceSupported && m.current.eventSourceOptions)
|
|
27836
|
+
throw n.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
27837
|
+
if (m.current.share) {
|
|
27837
27838
|
var b = null;
|
|
27838
|
-
e.sharedWebSockets[r] === void 0 ? (e.sharedWebSockets[r] =
|
|
27839
|
+
e.sharedWebSockets[r] === void 0 ? (e.sharedWebSockets[r] = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), _.current = e.sharedWebSockets[r], u(n.ReadyState.CONNECTING), b = (0, s.attachSharedListeners)(e.sharedWebSockets[r], r, m, y)) : (_.current = e.sharedWebSockets[r], u(e.sharedWebSockets[r].readyState));
|
|
27839
27840
|
var g = {
|
|
27840
27841
|
setLastMessage: i,
|
|
27841
27842
|
setReadyState: u,
|
|
27842
|
-
optionsRef:
|
|
27843
|
+
optionsRef: m,
|
|
27843
27844
|
reconnectCount: l,
|
|
27844
27845
|
lastMessageTime: t,
|
|
27845
27846
|
reconnect: d
|
|
27846
27847
|
};
|
|
27847
|
-
return (0, o.addSubscriber)(r, g), p(r, g,
|
|
27848
|
+
return (0, o.addSubscriber)(r, g), p(r, g, m, u, b);
|
|
27848
27849
|
} else {
|
|
27849
|
-
if (_.current =
|
|
27850
|
+
if (_.current = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), u(n.ReadyState.CONNECTING), !_.current)
|
|
27850
27851
|
throw new Error("WebSocket failed to be created");
|
|
27851
27852
|
return (0, c.attachListeners)(_.current, {
|
|
27852
27853
|
setLastMessage: i,
|
|
27853
27854
|
setReadyState: u
|
|
27854
|
-
},
|
|
27855
|
+
}, m, d.current, l, t, y);
|
|
27855
27856
|
}
|
|
27856
27857
|
};
|
|
27857
27858
|
return Ce.createOrJoinSocket = f, Ce;
|
|
27858
27859
|
}
|
|
27859
|
-
var Y = {},
|
|
27860
|
-
function
|
|
27861
|
-
return
|
|
27862
|
-
var
|
|
27860
|
+
var Y = {}, Pa;
|
|
27861
|
+
function el() {
|
|
27862
|
+
return Pa || (Pa = 1, (function(e) {
|
|
27863
|
+
var n = Y && Y.__awaiter || function(r, u, m, i) {
|
|
27863
27864
|
function d(l) {
|
|
27864
|
-
return l instanceof
|
|
27865
|
+
return l instanceof m ? l : new m(function(t) {
|
|
27865
27866
|
t(l);
|
|
27866
27867
|
});
|
|
27867
27868
|
}
|
|
27868
|
-
return new (
|
|
27869
|
+
return new (m || (m = Promise))(function(l, t) {
|
|
27869
27870
|
function y(T) {
|
|
27870
27871
|
try {
|
|
27871
27872
|
g(i.next(T));
|
|
@@ -27886,7 +27887,7 @@ function Xi() {
|
|
|
27886
27887
|
g((i = i.apply(r, u || [])).next());
|
|
27887
27888
|
});
|
|
27888
27889
|
}, c = Y && Y.__generator || function(r, u) {
|
|
27889
|
-
var
|
|
27890
|
+
var m = { label: 0, sent: function() {
|
|
27890
27891
|
if (l[0] & 1) throw l[1];
|
|
27891
27892
|
return l[1];
|
|
27892
27893
|
}, trys: [], ops: [] }, i, d, l, t = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
@@ -27900,7 +27901,7 @@ function Xi() {
|
|
|
27900
27901
|
}
|
|
27901
27902
|
function b(g) {
|
|
27902
27903
|
if (i) throw new TypeError("Generator is already executing.");
|
|
27903
|
-
for (; t && (t = 0, g[0] && (
|
|
27904
|
+
for (; t && (t = 0, g[0] && (m = 0)), m; ) try {
|
|
27904
27905
|
if (i = 1, d && (l = g[0] & 2 ? d.return : g[0] ? d.throw || ((l = d.return) && l.call(d), 0) : d.next) && !(l = l.call(d, g[1])).done) return l;
|
|
27905
27906
|
switch (d = 0, l && (g = [g[0] & 2, l.value]), g[0]) {
|
|
27906
27907
|
case 0:
|
|
@@ -27908,34 +27909,34 @@ function Xi() {
|
|
|
27908
27909
|
l = g;
|
|
27909
27910
|
break;
|
|
27910
27911
|
case 4:
|
|
27911
|
-
return
|
|
27912
|
+
return m.label++, { value: g[1], done: !1 };
|
|
27912
27913
|
case 5:
|
|
27913
|
-
|
|
27914
|
+
m.label++, d = g[1], g = [0];
|
|
27914
27915
|
continue;
|
|
27915
27916
|
case 7:
|
|
27916
|
-
g =
|
|
27917
|
+
g = m.ops.pop(), m.trys.pop();
|
|
27917
27918
|
continue;
|
|
27918
27919
|
default:
|
|
27919
|
-
if (l =
|
|
27920
|
-
|
|
27920
|
+
if (l = m.trys, !(l = l.length > 0 && l[l.length - 1]) && (g[0] === 6 || g[0] === 2)) {
|
|
27921
|
+
m = 0;
|
|
27921
27922
|
continue;
|
|
27922
27923
|
}
|
|
27923
27924
|
if (g[0] === 3 && (!l || g[1] > l[0] && g[1] < l[3])) {
|
|
27924
|
-
|
|
27925
|
+
m.label = g[1];
|
|
27925
27926
|
break;
|
|
27926
27927
|
}
|
|
27927
|
-
if (g[0] === 6 &&
|
|
27928
|
-
|
|
27928
|
+
if (g[0] === 6 && m.label < l[1]) {
|
|
27929
|
+
m.label = l[1], l = g;
|
|
27929
27930
|
break;
|
|
27930
27931
|
}
|
|
27931
|
-
if (l &&
|
|
27932
|
-
|
|
27932
|
+
if (l && m.label < l[2]) {
|
|
27933
|
+
m.label = l[2], m.ops.push(g);
|
|
27933
27934
|
break;
|
|
27934
27935
|
}
|
|
27935
|
-
l[2] &&
|
|
27936
|
+
l[2] && m.ops.pop(), m.trys.pop();
|
|
27936
27937
|
continue;
|
|
27937
27938
|
}
|
|
27938
|
-
g = u.call(r,
|
|
27939
|
+
g = u.call(r, m);
|
|
27939
27940
|
} catch (T) {
|
|
27940
27941
|
g = [6, T], d = 0;
|
|
27941
27942
|
} finally {
|
|
@@ -27944,8 +27945,8 @@ function Xi() {
|
|
|
27944
27945
|
if (g[0] & 5) throw g[1];
|
|
27945
27946
|
return { value: g[0] ? g[1] : void 0, done: !0 };
|
|
27946
27947
|
}
|
|
27947
|
-
}, s = Y && Y.__spreadArray || function(r, u,
|
|
27948
|
-
if (
|
|
27948
|
+
}, s = Y && Y.__spreadArray || function(r, u, m) {
|
|
27949
|
+
if (m || arguments.length === 2) for (var i = 0, d = u.length, l; i < d; i++)
|
|
27949
27950
|
(l || !(i in u)) && (l || (l = Array.prototype.slice.call(u, 0, i)), l[i] = u[i]);
|
|
27950
27951
|
return r.concat(l || Array.prototype.slice.call(u));
|
|
27951
27952
|
};
|
|
@@ -27955,9 +27956,9 @@ function Xi() {
|
|
|
27955
27956
|
return window.setTimeout(u, r);
|
|
27956
27957
|
});
|
|
27957
27958
|
}, _ = function(r, u) {
|
|
27958
|
-
for (var
|
|
27959
|
-
|
|
27960
|
-
return
|
|
27959
|
+
for (var m = [], i = 2; i < arguments.length; i++)
|
|
27960
|
+
m[i - 2] = arguments[i];
|
|
27961
|
+
return n(void 0, s([r, u], m, !0), void 0, function(d, l, t) {
|
|
27961
27962
|
var y, b, g, T, S, D, h, E;
|
|
27962
27963
|
return t === void 0 && (t = 0), c(this, function(M) {
|
|
27963
27964
|
switch (M.label) {
|
|
@@ -27993,11 +27994,11 @@ function Xi() {
|
|
|
27993
27994
|
e.getUrl = _;
|
|
27994
27995
|
})(Y)), Y;
|
|
27995
27996
|
}
|
|
27996
|
-
var je = {},
|
|
27997
|
-
function
|
|
27998
|
-
return
|
|
27997
|
+
var je = {}, xa;
|
|
27998
|
+
function al() {
|
|
27999
|
+
return xa || (xa = 1, (function(e) {
|
|
27999
28000
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
28000
|
-
var
|
|
28001
|
+
var n = function(c, s) {
|
|
28001
28002
|
return new Proxy(c, {
|
|
28002
28003
|
get: function(o, p) {
|
|
28003
28004
|
var f = o[p];
|
|
@@ -28009,13 +28010,13 @@ function $i() {
|
|
|
28009
28010
|
}
|
|
28010
28011
|
});
|
|
28011
28012
|
};
|
|
28012
|
-
e.websocketWrapper =
|
|
28013
|
+
e.websocketWrapper = n, e.default = e.websocketWrapper;
|
|
28013
28014
|
})(je)), je;
|
|
28014
28015
|
}
|
|
28015
|
-
var
|
|
28016
|
+
var Oa;
|
|
28016
28017
|
function ia() {
|
|
28017
|
-
if (
|
|
28018
|
-
|
|
28018
|
+
if (Oa) return J;
|
|
28019
|
+
Oa = 1;
|
|
28019
28020
|
var e = J && J.__assign || function() {
|
|
28020
28021
|
return e = Object.assign || function(d) {
|
|
28021
28022
|
for (var l, t = 1, y = arguments.length; t < y; t++) {
|
|
@@ -28024,7 +28025,7 @@ function ia() {
|
|
|
28024
28025
|
}
|
|
28025
28026
|
return d;
|
|
28026
28027
|
}, e.apply(this, arguments);
|
|
28027
|
-
},
|
|
28028
|
+
}, n = J && J.__awaiter || function(d, l, t, y) {
|
|
28028
28029
|
function b(g) {
|
|
28029
28030
|
return g instanceof t ? g : new t(function(T) {
|
|
28030
28031
|
T(g);
|
|
@@ -28113,7 +28114,7 @@ function ia() {
|
|
|
28113
28114
|
return d && d.__esModule ? d : { default: d };
|
|
28114
28115
|
};
|
|
28115
28116
|
Object.defineProperty(J, "__esModule", { value: !0 }), J.useWebSocket = void 0;
|
|
28116
|
-
var o = ke, p =
|
|
28117
|
+
var o = ke, p = Ei, f = A(), _ = $i(), r = el(), u = s(al()), m = aa(), i = function(d, l, t) {
|
|
28117
28118
|
l === void 0 && (l = f.DEFAULT_OPTIONS), t === void 0 && (t = !0);
|
|
28118
28119
|
var y = (0, o.useState)(null), b = y[0], g = y[1], T = (0, o.useState)({}), S = T[0], D = T[1], h = (0, o.useMemo)(function() {
|
|
28119
28120
|
if (!l.disableJson && b)
|
|
@@ -28132,16 +28133,16 @@ function ia() {
|
|
|
28132
28133
|
console.warn("Unable to send a message from an eventSource");
|
|
28133
28134
|
return;
|
|
28134
28135
|
}
|
|
28135
|
-
((K = M.current) === null || K === void 0 ? void 0 : K.readyState) === f.ReadyState.OPEN ? ((0,
|
|
28136
|
+
((K = M.current) === null || K === void 0 ? void 0 : K.readyState) === f.ReadyState.OPEN ? ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), M.current.send(x)) : w && Se.current.push(x);
|
|
28136
28137
|
}, []), Ne = (0, o.useCallback)(function(x, w) {
|
|
28137
28138
|
w === void 0 && (w = !0), B(JSON.stringify(x), w);
|
|
28138
28139
|
}, [B]), De = (0, o.useCallback)(function() {
|
|
28139
|
-
return H.current.share !== !0 || f.isEventSourceSupported && M.current instanceof EventSource ? M.current : (V.current === null && M.current && ((0,
|
|
28140
|
+
return H.current.share !== !0 || f.isEventSourceSupported && M.current instanceof EventSource ? M.current : (V.current === null && M.current && ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), V.current = (0, u.default)(M.current, _e)), V.current);
|
|
28140
28141
|
}, []);
|
|
28141
28142
|
return (0, o.useEffect)(function() {
|
|
28142
28143
|
if (d !== null && t === !0) {
|
|
28143
28144
|
var x, w = !1, K = !0, Ue = function() {
|
|
28144
|
-
return
|
|
28145
|
+
return n(void 0, void 0, void 0, function() {
|
|
28145
28146
|
var ie, $, Ee;
|
|
28146
28147
|
return c(this, function(ue) {
|
|
28147
28148
|
switch (ue.label) {
|
|
@@ -28198,13 +28199,13 @@ function ia() {
|
|
|
28198
28199
|
};
|
|
28199
28200
|
return J.useWebSocket = i, J;
|
|
28200
28201
|
}
|
|
28201
|
-
var re = {},
|
|
28202
|
-
function
|
|
28203
|
-
if (
|
|
28204
|
-
|
|
28202
|
+
var re = {}, Ha;
|
|
28203
|
+
function il() {
|
|
28204
|
+
if (Ha) return re;
|
|
28205
|
+
Ha = 1;
|
|
28205
28206
|
var e = re && re.__assign || function() {
|
|
28206
28207
|
return e = Object.assign || function(_) {
|
|
28207
|
-
for (var r, u = 1,
|
|
28208
|
+
for (var r, u = 1, m = arguments.length; u < m; u++) {
|
|
28208
28209
|
r = arguments[u];
|
|
28209
28210
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (_[i] = r[i]);
|
|
28210
28211
|
}
|
|
@@ -28212,7 +28213,7 @@ function el() {
|
|
|
28212
28213
|
}, e.apply(this, arguments);
|
|
28213
28214
|
};
|
|
28214
28215
|
Object.defineProperty(re, "__esModule", { value: !0 }), re.useSocketIO = void 0;
|
|
28215
|
-
var
|
|
28216
|
+
var n = ke, c = ia(), s = A(), o = {
|
|
28216
28217
|
type: "empty",
|
|
28217
28218
|
payload: null
|
|
28218
28219
|
}, p = function(_) {
|
|
@@ -28228,9 +28229,9 @@ function el() {
|
|
|
28228
28229
|
};
|
|
28229
28230
|
}, f = function(_, r, u) {
|
|
28230
28231
|
r === void 0 && (r = s.DEFAULT_OPTIONS), u === void 0 && (u = !0);
|
|
28231
|
-
var
|
|
28232
|
+
var m = (0, n.useMemo)(function() {
|
|
28232
28233
|
return e(e({}, r), { fromSocketIO: !0 });
|
|
28233
|
-
}, []), i = (0, c.useWebSocket)(_,
|
|
28234
|
+
}, []), i = (0, c.useWebSocket)(_, m, u), d = i.sendMessage, l = i.sendJsonMessage, t = i.lastMessage, y = i.readyState, b = i.getWebSocket, g = (0, n.useMemo)(function() {
|
|
28234
28235
|
return p(t);
|
|
28235
28236
|
}, [t]);
|
|
28236
28237
|
return {
|
|
@@ -28244,35 +28245,35 @@ function el() {
|
|
|
28244
28245
|
};
|
|
28245
28246
|
return re.useSocketIO = f, re;
|
|
28246
28247
|
}
|
|
28247
|
-
var q = {},
|
|
28248
|
-
function
|
|
28249
|
-
if (
|
|
28250
|
-
|
|
28248
|
+
var q = {}, wa;
|
|
28249
|
+
function ll() {
|
|
28250
|
+
if (wa) return q;
|
|
28251
|
+
wa = 1;
|
|
28251
28252
|
var e = q && q.__assign || function() {
|
|
28252
28253
|
return e = Object.assign || function(f) {
|
|
28253
28254
|
for (var _, r = 1, u = arguments.length; r < u; r++) {
|
|
28254
28255
|
_ = arguments[r];
|
|
28255
|
-
for (var
|
|
28256
|
+
for (var m in _) Object.prototype.hasOwnProperty.call(_, m) && (f[m] = _[m]);
|
|
28256
28257
|
}
|
|
28257
28258
|
return f;
|
|
28258
28259
|
}, e.apply(this, arguments);
|
|
28259
|
-
},
|
|
28260
|
+
}, n = q && q.__rest || function(f, _) {
|
|
28260
28261
|
var r = {};
|
|
28261
28262
|
for (var u in f) Object.prototype.hasOwnProperty.call(f, u) && _.indexOf(u) < 0 && (r[u] = f[u]);
|
|
28262
28263
|
if (f != null && typeof Object.getOwnPropertySymbols == "function")
|
|
28263
|
-
for (var
|
|
28264
|
-
_.indexOf(u[
|
|
28264
|
+
for (var m = 0, u = Object.getOwnPropertySymbols(f); m < u.length; m++)
|
|
28265
|
+
_.indexOf(u[m]) < 0 && Object.prototype.propertyIsEnumerable.call(f, u[m]) && (r[u[m]] = f[u[m]]);
|
|
28265
28266
|
return r;
|
|
28266
28267
|
};
|
|
28267
28268
|
Object.defineProperty(q, "__esModule", { value: !0 }), q.useEventSource = void 0;
|
|
28268
28269
|
var c = ke, s = ia(), o = A(), p = function(f, _, r) {
|
|
28269
28270
|
_ === void 0 && (_ = o.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
28270
|
-
var u = _.withCredentials,
|
|
28271
|
+
var u = _.withCredentials, m = _.events, i = n(_, ["withCredentials", "events"]);
|
|
28271
28272
|
r === void 0 && (r = !0);
|
|
28272
28273
|
var d = e(e({}, i), { eventSourceOptions: {
|
|
28273
28274
|
withCredentials: u
|
|
28274
28275
|
} }), l = (0, c.useRef)(o.EMPTY_EVENT_HANDLERS);
|
|
28275
|
-
|
|
28276
|
+
m && (l.current = m);
|
|
28276
28277
|
var t = (0, s.useWebSocket)(f, d, r), y = t.lastMessage, b = t.readyState, g = t.getWebSocket;
|
|
28277
28278
|
return (0, c.useEffect)(function() {
|
|
28278
28279
|
y?.type && Object.entries(l.current).forEach(function(T) {
|
|
@@ -28287,15 +28288,15 @@ function al() {
|
|
|
28287
28288
|
};
|
|
28288
28289
|
return q.useEventSource = p, q;
|
|
28289
28290
|
}
|
|
28290
|
-
var
|
|
28291
|
-
function
|
|
28292
|
-
return
|
|
28291
|
+
var Fa;
|
|
28292
|
+
function tl() {
|
|
28293
|
+
return Fa || (Fa = 1, (function(e) {
|
|
28293
28294
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
28294
|
-
var
|
|
28295
|
+
var n = ia();
|
|
28295
28296
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
28296
|
-
return
|
|
28297
|
+
return n.useWebSocket;
|
|
28297
28298
|
} });
|
|
28298
|
-
var c =
|
|
28299
|
+
var c = il();
|
|
28299
28300
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
28300
28301
|
return c.useSocketIO;
|
|
28301
28302
|
} });
|
|
@@ -28303,7 +28304,7 @@ function il() {
|
|
|
28303
28304
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
28304
28305
|
return s.ReadyState;
|
|
28305
28306
|
} });
|
|
28306
|
-
var o =
|
|
28307
|
+
var o = ll();
|
|
28307
28308
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
28308
28309
|
return o.useEventSource;
|
|
28309
28310
|
} });
|
|
@@ -28313,8 +28314,8 @@ function il() {
|
|
|
28313
28314
|
} });
|
|
28314
28315
|
})(Ie)), Ie;
|
|
28315
28316
|
}
|
|
28316
|
-
var
|
|
28317
|
-
const
|
|
28317
|
+
var nl = tl();
|
|
28318
|
+
const ml = /* @__PURE__ */ Li(nl), I = {
|
|
28318
28319
|
DEPOSIT: "deposit",
|
|
28319
28320
|
TRANS_CODE: "transCode",
|
|
28320
28321
|
ERROR: "error",
|
|
@@ -28325,12 +28326,12 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28325
28326
|
TRANSFER_IN_GAME: "transfer_in_game",
|
|
28326
28327
|
CHECK_REQUEST: "CHECK_RREQUEST",
|
|
28327
28328
|
CASH_REGISTER_LIMIT: "cash_register_limit"
|
|
28328
|
-
},
|
|
28329
|
+
}, rl = 3e4, hl = ({
|
|
28329
28330
|
socketUrl: e,
|
|
28330
|
-
socketHandlers:
|
|
28331
|
+
socketHandlers: n = {},
|
|
28331
28332
|
options: c = {}
|
|
28332
28333
|
}) => {
|
|
28333
|
-
const s = ya(!1), o = ya(
|
|
28334
|
+
const s = ya(!1), o = ya(n), {
|
|
28334
28335
|
sendMessage: p,
|
|
28335
28336
|
// 發送普通訊息
|
|
28336
28337
|
sendJsonMessage: f,
|
|
@@ -28341,7 +28342,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28341
28342
|
readyState: r
|
|
28342
28343
|
// WebSocket 連線狀態
|
|
28343
28344
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
28344
|
-
} =
|
|
28345
|
+
} = ml(e, {
|
|
28345
28346
|
queryParams: { key: "wsky" },
|
|
28346
28347
|
onOpen: () => console.log("連線成功"),
|
|
28347
28348
|
shouldReconnect: () => s.current === !1,
|
|
@@ -28356,17 +28357,17 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28356
28357
|
}
|
|
28357
28358
|
}, [_?.data]);
|
|
28358
28359
|
return he(() => {
|
|
28359
|
-
const
|
|
28360
|
+
const m = setInterval(
|
|
28360
28361
|
() => p("ping"),
|
|
28361
|
-
|
|
28362
|
+
rl
|
|
28362
28363
|
);
|
|
28363
|
-
return () => clearInterval(
|
|
28364
|
+
return () => clearInterval(m);
|
|
28364
28365
|
}, [p]), he(() => {
|
|
28365
|
-
o.current =
|
|
28366
|
-
}, [
|
|
28366
|
+
o.current = n;
|
|
28367
|
+
}, [n]), he(() => {
|
|
28367
28368
|
if (!u) return;
|
|
28368
28369
|
const {
|
|
28369
|
-
onDeposit:
|
|
28370
|
+
onDeposit: m,
|
|
28370
28371
|
onTransCode: i,
|
|
28371
28372
|
onError: d,
|
|
28372
28373
|
onUpdateMember: l,
|
|
@@ -28382,7 +28383,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28382
28383
|
};
|
|
28383
28384
|
switch (S) {
|
|
28384
28385
|
case I.DEPOSIT:
|
|
28385
|
-
|
|
28386
|
+
m?.(D);
|
|
28386
28387
|
break;
|
|
28387
28388
|
case I.TRANS_CODE:
|
|
28388
28389
|
i?.(D);
|
|
@@ -28419,40 +28420,40 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28419
28420
|
readyState: r
|
|
28420
28421
|
// WebSocket 連線狀態
|
|
28421
28422
|
};
|
|
28422
|
-
},
|
|
28423
|
-
const { client: e } = se(),
|
|
28423
|
+
}, $a = () => {
|
|
28424
|
+
const { client: e } = se(), n = X(async () => {
|
|
28424
28425
|
const { data: s } = await e.get("/carousels");
|
|
28425
28426
|
return s;
|
|
28426
28427
|
}, [e]), c = X(async () => await e.get("/marquees"), [e]);
|
|
28427
|
-
return { commonCarouselApi:
|
|
28428
|
+
return { commonCarouselApi: n, commonMarqueeApi: c };
|
|
28428
28429
|
}, kl = () => {
|
|
28429
|
-
const { commonCarouselApi: e } =
|
|
28430
|
+
const { commonCarouselApi: e } = $a();
|
|
28430
28431
|
return oe({
|
|
28431
28432
|
queryKey: ["getCarouselList"],
|
|
28432
28433
|
queryFn: async () => await e()
|
|
28433
28434
|
});
|
|
28434
28435
|
}, Sl = () => {
|
|
28435
|
-
const { lng: e } = se(), { commonMarqueeApi:
|
|
28436
|
+
const { lng: e } = se(), { commonMarqueeApi: n } = $a(), c = Bi(e);
|
|
28436
28437
|
return oe({
|
|
28437
28438
|
queryKey: ["getMarqueeList"],
|
|
28438
|
-
queryFn: async () =>
|
|
28439
|
+
queryFn: async () => n(),
|
|
28439
28440
|
select: (s) => {
|
|
28440
28441
|
const o = s.Marquees;
|
|
28441
28442
|
return we(o, (f) => f[c] || f["en-US"]);
|
|
28442
28443
|
}
|
|
28443
28444
|
});
|
|
28444
|
-
},
|
|
28445
|
-
const { userLoginApi:
|
|
28446
|
-
return
|
|
28445
|
+
}, ol = ({ options: e } = {}) => {
|
|
28446
|
+
const { userLoginApi: n } = ce();
|
|
28447
|
+
return Aa({
|
|
28447
28448
|
mutationKey: ["userLogin"],
|
|
28448
|
-
mutationFn: async (c) =>
|
|
28449
|
+
mutationFn: async (c) => n(c),
|
|
28449
28450
|
...e
|
|
28450
28451
|
});
|
|
28451
|
-
},
|
|
28452
|
-
const { userLogoutApi:
|
|
28453
|
-
return
|
|
28452
|
+
}, sl = ({ options: e } = {}) => {
|
|
28453
|
+
const { userLogoutApi: n } = ce();
|
|
28454
|
+
return Aa({
|
|
28454
28455
|
mutationKey: ["userLogout"],
|
|
28455
|
-
mutationFn: async () =>
|
|
28456
|
+
mutationFn: async () => n(),
|
|
28456
28457
|
...e
|
|
28457
28458
|
});
|
|
28458
28459
|
}, Nl = ({
|
|
@@ -28461,9 +28462,9 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28461
28462
|
logout: {}
|
|
28462
28463
|
}
|
|
28463
28464
|
} = {}) => {
|
|
28464
|
-
const
|
|
28465
|
-
return { login:
|
|
28466
|
-
},
|
|
28465
|
+
const n = ol({ options: e.login }), c = sl({ options: e.logout });
|
|
28466
|
+
return { login: n, logout: c };
|
|
28467
|
+
}, Wa = (e) => {
|
|
28467
28468
|
switch (e) {
|
|
28468
28469
|
case "tw":
|
|
28469
28470
|
return "Tw";
|
|
@@ -28482,8 +28483,8 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28482
28483
|
default:
|
|
28483
28484
|
return "En";
|
|
28484
28485
|
}
|
|
28485
|
-
},
|
|
28486
|
-
const { lng:
|
|
28486
|
+
}, Ja = "https://d3jx2uvukujuvn.cloudfront.net", za = "game-icon-ds88", Dl = ({ gameData: e = {} } = {}) => {
|
|
28487
|
+
const { lng: n } = se(), c = Wa(n), {
|
|
28487
28488
|
gameCode: s,
|
|
28488
28489
|
// 遊戲代碼
|
|
28489
28490
|
gameUid: o,
|
|
@@ -28499,7 +28500,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28499
28500
|
// 進入大廳模式
|
|
28500
28501
|
game_platform: u,
|
|
28501
28502
|
// 遊戲平台
|
|
28502
|
-
game_subtype:
|
|
28503
|
+
game_subtype: m,
|
|
28503
28504
|
// 遊戲子類型
|
|
28504
28505
|
game_type: i,
|
|
28505
28506
|
// 遊戲類型
|
|
@@ -28521,7 +28522,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28521
28522
|
// 越南名稱
|
|
28522
28523
|
gameNameTw: D
|
|
28523
28524
|
// 繁體中文名稱
|
|
28524
|
-
} = e, h = e?.[`gameName${
|
|
28525
|
+
} = e, h = e?.[`gameName${Wa(c)}`], E = `${Ja}/${za}/en/${u}/${ba(s, / /g, "_")}.webp`, M = `${Ja}/${za}/en/${u}/${ba(s, / /g, "_")}.gif`;
|
|
28525
28526
|
return {
|
|
28526
28527
|
gameCode: s,
|
|
28527
28528
|
gameUid: o,
|
|
@@ -28530,7 +28531,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28530
28531
|
supportCurrency: _,
|
|
28531
28532
|
enterLobbyMode: r,
|
|
28532
28533
|
gamePlatform: u,
|
|
28533
|
-
gameSubType:
|
|
28534
|
+
gameSubType: m,
|
|
28534
28535
|
gameType: i,
|
|
28535
28536
|
gameTags: d,
|
|
28536
28537
|
isUnderMaintenance: l,
|
|
@@ -28542,46 +28543,47 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28542
28543
|
gameNameVi: S,
|
|
28543
28544
|
gameNameTw: D,
|
|
28544
28545
|
gameName: h,
|
|
28545
|
-
gameImageUrl: E
|
|
28546
|
+
gameImageUrl: E,
|
|
28547
|
+
gameImageUrlAnimated: M
|
|
28546
28548
|
};
|
|
28547
28549
|
};
|
|
28548
28550
|
export {
|
|
28549
|
-
|
|
28551
|
+
Ba as ApiCtx,
|
|
28550
28552
|
bl as ApiProvider,
|
|
28551
|
-
|
|
28552
|
-
|
|
28553
|
+
Ka as GamesInfoCtx,
|
|
28554
|
+
Zi as buildMultiTypes,
|
|
28553
28555
|
Ul as buildMultiTypesWithSubTypes,
|
|
28554
|
-
|
|
28555
|
-
|
|
28556
|
-
|
|
28557
|
-
|
|
28556
|
+
Hi as buildSinglePlatformWithSubTypes,
|
|
28557
|
+
Oi as buildSingleType,
|
|
28558
|
+
zi as categorizeGames,
|
|
28559
|
+
Bi as convertLanguageCode,
|
|
28558
28560
|
fl as createLogoutHandler,
|
|
28559
|
-
|
|
28560
|
-
|
|
28561
|
-
|
|
28562
|
-
|
|
28563
|
-
|
|
28564
|
-
|
|
28565
|
-
|
|
28566
|
-
|
|
28567
|
-
|
|
28568
|
-
|
|
28569
|
-
|
|
28570
|
-
|
|
28571
|
-
|
|
28572
|
-
|
|
28561
|
+
Wi as extractGameSubTypeNames,
|
|
28562
|
+
Fi as extractGameTypeNames,
|
|
28563
|
+
ha as extractPlatformNames,
|
|
28564
|
+
qa as filterGamesByPlatform,
|
|
28565
|
+
ja as findGameTypeUid,
|
|
28566
|
+
Qa as findPlatformUid,
|
|
28567
|
+
Ya as findSubPlatform,
|
|
28568
|
+
wi as flattenAllGames,
|
|
28569
|
+
Ji as flattenFavoriteGames,
|
|
28570
|
+
Vi as groupGamesByPlatform,
|
|
28571
|
+
Ii as groupGamesByPlatformAndSubType,
|
|
28572
|
+
xi as groupGamesBySubType,
|
|
28573
|
+
Qi as initMockWindowData,
|
|
28574
|
+
Ai as processGameInfo,
|
|
28573
28575
|
yl as processPlatformData,
|
|
28574
28576
|
se as useApiContext,
|
|
28575
28577
|
Tl as useBalanceGetter,
|
|
28576
28578
|
hl as useClientWebSocket,
|
|
28577
28579
|
Dl as useGameConfig,
|
|
28578
28580
|
_l as useGameInfoContext,
|
|
28579
|
-
|
|
28581
|
+
ji as useGamesInfo,
|
|
28580
28582
|
kl as useGetCarouseList,
|
|
28581
28583
|
Sl as useGetMarquee,
|
|
28582
28584
|
Cl as useGetMemberInfo,
|
|
28583
28585
|
vl as useInitializeWithToken,
|
|
28584
|
-
|
|
28585
|
-
|
|
28586
|
+
ol as useLogin,
|
|
28587
|
+
sl as useLogout,
|
|
28586
28588
|
Nl as useUser
|
|
28587
28589
|
};
|