@obb871001/api-integration-sdk 1.0.104 → 1.0.105
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 +795 -744
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import ke, { createContext as
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import
|
|
4
|
-
import { find as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
1
|
+
import ke, { createContext as Za, useContext as Ia, useCallback as A, useMemo as Qe, useEffect as he, useRef as ba } from "react";
|
|
2
|
+
import { useQuery as se, QueryClient as Ni, QueryClientProvider as Di, useQueries as Aa, useMutation as Ye } from "@tanstack/react-query";
|
|
3
|
+
import Ei from "axios";
|
|
4
|
+
import { find as qe, isEmpty as O, isObject as He, flatMap as Xe, isArray as ee, map as we, get as Re, replace as Ta, includes as Li } from "lodash";
|
|
5
|
+
import Gi from "react-dom";
|
|
6
|
+
function Mi(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,
|
|
15
|
-
function f(_, r,
|
|
16
|
-
var m, i = {},
|
|
17
|
-
|
|
18
|
-
for (m in r)
|
|
10
|
+
var Ca;
|
|
11
|
+
function Ri() {
|
|
12
|
+
if (Ca) return be;
|
|
13
|
+
Ca = 1;
|
|
14
|
+
var e = ke, t = Symbol.for("react.element"), g = Symbol.for("react.fragment"), u = 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
|
+
function f(_, r, s) {
|
|
16
|
+
var m, i = {}, d = null, l = null;
|
|
17
|
+
s !== void 0 && (d = "" + s), r.key !== void 0 && (d = "" + r.key), r.ref !== void 0 && (l = r.ref);
|
|
18
|
+
for (m in r) u.call(r, m) && !p.hasOwnProperty(m) && (i[m] = r[m]);
|
|
19
19
|
if (_ && _.defaultProps) for (m in r = _.defaultProps, r) i[m] === void 0 && (i[m] = r[m]);
|
|
20
|
-
return { $$typeof:
|
|
20
|
+
return { $$typeof: t, type: _, key: d, ref: l, props: i, _owner: o.current };
|
|
21
21
|
}
|
|
22
|
-
return be.Fragment =
|
|
22
|
+
return be.Fragment = g, 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 va;
|
|
26
|
+
function Pi() {
|
|
27
|
+
return va || (va = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
28
|
+
var e = ke, t = Symbol.for("react.element"), g = Symbol.for("react.portal"), u = 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"), s = 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"), n = Symbol.iterator, y = "@@iterator";
|
|
29
29
|
function b(a) {
|
|
30
30
|
if (a === null || typeof a != "object")
|
|
31
31
|
return null;
|
|
32
|
-
var U =
|
|
32
|
+
var U = n && a[n] || a[y];
|
|
33
33
|
return typeof U == "function" ? U : null;
|
|
34
34
|
}
|
|
35
35
|
var c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -53,7 +53,7 @@ function Ri() {
|
|
|
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 ===
|
|
56
|
+
return !!(typeof a == "string" || typeof a == "function" || a === u || a === p || _e || a === o || a === s || 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.
|
|
@@ -77,15 +77,15 @@ function Ri() {
|
|
|
77
77
|
if (typeof a == "string")
|
|
78
78
|
return a;
|
|
79
79
|
switch (a) {
|
|
80
|
-
case
|
|
80
|
+
case u:
|
|
81
81
|
return "Fragment";
|
|
82
|
-
case
|
|
82
|
+
case g:
|
|
83
83
|
return "Portal";
|
|
84
84
|
case p:
|
|
85
85
|
return "Profiler";
|
|
86
|
-
case
|
|
86
|
+
case o:
|
|
87
87
|
return "StrictMode";
|
|
88
|
-
case
|
|
88
|
+
case s:
|
|
89
89
|
return "Suspense";
|
|
90
90
|
case m:
|
|
91
91
|
return "SuspenseList";
|
|
@@ -103,7 +103,7 @@ function Ri() {
|
|
|
103
103
|
case i:
|
|
104
104
|
var v = a.displayName || null;
|
|
105
105
|
return v !== null ? v : H(a.type) || "Memo";
|
|
106
|
-
case
|
|
106
|
+
case d: {
|
|
107
107
|
var L = a, G = L._payload, N = L._init;
|
|
108
108
|
try {
|
|
109
109
|
return H(N(G));
|
|
@@ -114,18 +114,18 @@ function Ri() {
|
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var V = Object.assign,
|
|
118
|
-
function
|
|
117
|
+
var V = Object.assign, ie = 0, K, Ne, De, x, w, j, Ue;
|
|
118
|
+
function le() {
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
le.__reactDisabledLog = !0;
|
|
121
121
|
function $() {
|
|
122
122
|
{
|
|
123
|
-
if (
|
|
124
|
-
|
|
123
|
+
if (ie === 0) {
|
|
124
|
+
K = console.log, Ne = console.info, De = console.warn, x = console.error, w = console.group, j = console.groupCollapsed, Ue = console.groupEnd;
|
|
125
125
|
var a = {
|
|
126
126
|
configurable: !0,
|
|
127
127
|
enumerable: !0,
|
|
128
|
-
value:
|
|
128
|
+
value: le,
|
|
129
129
|
writable: !0
|
|
130
130
|
};
|
|
131
131
|
Object.defineProperties(console, {
|
|
@@ -138,12 +138,12 @@ function Ri() {
|
|
|
138
138
|
groupEnd: a
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
ie++;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
function Ee() {
|
|
145
145
|
{
|
|
146
|
-
if (
|
|
146
|
+
if (ie--, ie === 0) {
|
|
147
147
|
var a = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -151,7 +151,7 @@ function Ri() {
|
|
|
151
151
|
};
|
|
152
152
|
Object.defineProperties(console, {
|
|
153
153
|
log: V({}, a, {
|
|
154
|
-
value:
|
|
154
|
+
value: K
|
|
155
155
|
}),
|
|
156
156
|
info: V({}, a, {
|
|
157
157
|
value: Ne
|
|
@@ -166,37 +166,37 @@ function Ri() {
|
|
|
166
166
|
value: w
|
|
167
167
|
}),
|
|
168
168
|
groupCollapsed: V({}, a, {
|
|
169
|
-
value:
|
|
169
|
+
value: j
|
|
170
170
|
}),
|
|
171
171
|
groupEnd: V({}, a, {
|
|
172
172
|
value: Ue
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
ie < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
var ue = c.ReactCurrentDispatcher,
|
|
179
|
+
var ue = c.ReactCurrentDispatcher, Q;
|
|
180
180
|
function pe(a, U, C) {
|
|
181
181
|
{
|
|
182
|
-
if (
|
|
182
|
+
if (Q === void 0)
|
|
183
183
|
try {
|
|
184
184
|
throw Error();
|
|
185
185
|
} catch (L) {
|
|
186
186
|
var v = L.stack.trim().match(/\n( *(at )?)/);
|
|
187
|
-
|
|
187
|
+
Q = v && v[1] || "";
|
|
188
188
|
}
|
|
189
189
|
return `
|
|
190
|
-
` +
|
|
190
|
+
` + Q + a;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var te = !1, Le;
|
|
194
194
|
{
|
|
195
|
-
var
|
|
196
|
-
Le = new
|
|
195
|
+
var ai = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
|
+
Le = new ai();
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
if (!a ||
|
|
198
|
+
function ta(a, U) {
|
|
199
|
+
if (!a || te)
|
|
200
200
|
return "";
|
|
201
201
|
{
|
|
202
202
|
var C = Le.get(a);
|
|
@@ -204,7 +204,7 @@ function Ri() {
|
|
|
204
204
|
return C;
|
|
205
205
|
}
|
|
206
206
|
var v;
|
|
207
|
-
|
|
207
|
+
te = !0;
|
|
208
208
|
var L = Error.prepareStackTrace;
|
|
209
209
|
Error.prepareStackTrace = void 0;
|
|
210
210
|
var G;
|
|
@@ -261,15 +261,15 @@ function Ri() {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
} finally {
|
|
264
|
-
|
|
264
|
+
te = !1, ue.current = G, Ee(), Error.prepareStackTrace = L;
|
|
265
265
|
}
|
|
266
|
-
var de = a ? a.displayName || a.name : "",
|
|
267
|
-
return typeof a == "function" && Le.set(a,
|
|
266
|
+
var de = a ? a.displayName || a.name : "", ne = de ? pe(de) : "";
|
|
267
|
+
return typeof a == "function" && Le.set(a, ne), ne;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
269
|
+
function ii(a, U, C) {
|
|
270
|
+
return ta(a, !1);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function li(a) {
|
|
273
273
|
var U = a.prototype;
|
|
274
274
|
return !!(U && U.isReactComponent);
|
|
275
275
|
}
|
|
@@ -277,11 +277,11 @@ function Ri() {
|
|
|
277
277
|
if (a == null)
|
|
278
278
|
return "";
|
|
279
279
|
if (typeof a == "function")
|
|
280
|
-
return
|
|
280
|
+
return ta(a, li(a));
|
|
281
281
|
if (typeof a == "string")
|
|
282
282
|
return pe(a);
|
|
283
283
|
switch (a) {
|
|
284
|
-
case
|
|
284
|
+
case s:
|
|
285
285
|
return pe("Suspense");
|
|
286
286
|
case m:
|
|
287
287
|
return pe("SuspenseList");
|
|
@@ -289,10 +289,10 @@ function Ri() {
|
|
|
289
289
|
if (typeof a == "object")
|
|
290
290
|
switch (a.$$typeof) {
|
|
291
291
|
case r:
|
|
292
|
-
return
|
|
292
|
+
return ii(a.render);
|
|
293
293
|
case i:
|
|
294
294
|
return Ge(a.type, U, C);
|
|
295
|
-
case
|
|
295
|
+
case d: {
|
|
296
296
|
var v = a, L = v._payload, G = v._init;
|
|
297
297
|
try {
|
|
298
298
|
return Ge(G(L), U, C);
|
|
@@ -302,15 +302,15 @@ function Ri() {
|
|
|
302
302
|
}
|
|
303
303
|
return "";
|
|
304
304
|
}
|
|
305
|
-
var ye = Object.prototype.hasOwnProperty,
|
|
305
|
+
var ye = Object.prototype.hasOwnProperty, na = {}, ma = c.ReactDebugCurrentFrame;
|
|
306
306
|
function Me(a) {
|
|
307
307
|
if (a) {
|
|
308
308
|
var U = a._owner, C = Ge(a.type, a._source, U ? U.type : null);
|
|
309
|
-
|
|
309
|
+
ma.setExtraStackFrame(C);
|
|
310
310
|
} else
|
|
311
|
-
|
|
311
|
+
ma.setExtraStackFrame(null);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function ti(a, U, C, v, L) {
|
|
314
314
|
{
|
|
315
315
|
var G = Function.call.bind(ye);
|
|
316
316
|
for (var N in a)
|
|
@@ -325,41 +325,41 @@ function Ri() {
|
|
|
325
325
|
} catch (R) {
|
|
326
326
|
k = R;
|
|
327
327
|
}
|
|
328
|
-
k && !(k instanceof Error) && (Me(L), T("%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).", v || "React class", C, N, typeof k), Me(null)), k instanceof Error && !(k.message in
|
|
328
|
+
k && !(k instanceof Error) && (Me(L), T("%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).", v || "React class", C, N, typeof k), Me(null)), k instanceof Error && !(k.message in na) && (na[k.message] = !0, Me(L), T("Failed %s type: %s", C, k.message), Me(null));
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var ni = Array.isArray;
|
|
333
333
|
function We(a) {
|
|
334
|
-
return
|
|
334
|
+
return ni(a);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function mi(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 ri(a) {
|
|
343
343
|
try {
|
|
344
|
-
return
|
|
344
|
+
return ra(a), !1;
|
|
345
345
|
} catch {
|
|
346
346
|
return !0;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function ra(a) {
|
|
350
350
|
return "" + a;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
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.",
|
|
352
|
+
function oa(a) {
|
|
353
|
+
if (ri(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.", mi(a)), ra(a);
|
|
355
355
|
}
|
|
356
|
-
var
|
|
356
|
+
var sa = c.ReactCurrentOwner, oi = {
|
|
357
357
|
key: !0,
|
|
358
358
|
ref: !0,
|
|
359
359
|
__self: !0,
|
|
360
360
|
__source: !0
|
|
361
|
-
},
|
|
362
|
-
function
|
|
361
|
+
}, ua, pa;
|
|
362
|
+
function si(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 Ri() {
|
|
|
367
367
|
}
|
|
368
368
|
return a.ref !== void 0;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ui(a) {
|
|
371
371
|
if (ye.call(a, "key")) {
|
|
372
372
|
var U = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
373
373
|
if (U && U.isReactWarning)
|
|
@@ -375,13 +375,13 @@ function Ri() {
|
|
|
375
375
|
}
|
|
376
376
|
return a.key !== void 0;
|
|
377
377
|
}
|
|
378
|
-
function ui(a, U) {
|
|
379
|
-
typeof a.ref == "string" && oa.current;
|
|
380
|
-
}
|
|
381
378
|
function pi(a, U) {
|
|
379
|
+
typeof a.ref == "string" && sa.current;
|
|
380
|
+
}
|
|
381
|
+
function gi(a, U) {
|
|
382
382
|
{
|
|
383
383
|
var C = function() {
|
|
384
|
-
|
|
384
|
+
ua || (ua = !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));
|
|
385
385
|
};
|
|
386
386
|
C.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
387
387
|
get: C,
|
|
@@ -389,10 +389,10 @@ function Ri() {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function di(a, U) {
|
|
393
393
|
{
|
|
394
394
|
var C = function() {
|
|
395
|
-
|
|
395
|
+
pa || (pa = !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));
|
|
396
396
|
};
|
|
397
397
|
C.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
398
398
|
get: C,
|
|
@@ -400,10 +400,10 @@ function Ri() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var ci = 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: t,
|
|
407
407
|
// Built-in properties that belong on the element
|
|
408
408
|
type: a,
|
|
409
409
|
key: U,
|
|
@@ -429,12 +429,12 @@ function Ri() {
|
|
|
429
429
|
value: L
|
|
430
430
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function _i(a, U, C, v, L) {
|
|
433
433
|
{
|
|
434
434
|
var G, N = {}, k = null, F = null;
|
|
435
|
-
C !== void 0 && (
|
|
435
|
+
C !== void 0 && (oa(C), k = "" + C), ui(U) && (oa(U.key), k = "" + U.key), si(U) && (F = U.ref, pi(U, L));
|
|
436
436
|
for (G in U)
|
|
437
|
-
ye.call(U, G) && !
|
|
437
|
+
ye.call(U, G) && !oi.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,25 +442,25 @@ function Ri() {
|
|
|
442
442
|
}
|
|
443
443
|
if (k || F) {
|
|
444
444
|
var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
445
|
-
k &&
|
|
445
|
+
k && gi(N, P), F && di(N, P);
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return ci(a, k, F, L, v, sa.current, N);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var Je = c.ReactCurrentOwner,
|
|
450
|
+
var Je = c.ReactCurrentOwner, ga = c.ReactDebugCurrentFrame;
|
|
451
451
|
function ge(a) {
|
|
452
452
|
if (a) {
|
|
453
453
|
var U = a._owner, C = Ge(a.type, a._source, U ? U.type : null);
|
|
454
|
-
|
|
454
|
+
ga.setExtraStackFrame(C);
|
|
455
455
|
} else
|
|
456
|
-
|
|
456
|
+
ga.setExtraStackFrame(null);
|
|
457
457
|
}
|
|
458
458
|
var ze;
|
|
459
459
|
ze = !1;
|
|
460
460
|
function Ve(a) {
|
|
461
|
-
return typeof a == "object" && a !== null && a.$$typeof ===
|
|
461
|
+
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function da() {
|
|
464
464
|
{
|
|
465
465
|
if (Je.current) {
|
|
466
466
|
var a = H(Je.current.type);
|
|
@@ -472,13 +472,13 @@ Check the render method of \`` + a + "`.";
|
|
|
472
472
|
return "";
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function fi(a) {
|
|
476
476
|
return "";
|
|
477
477
|
}
|
|
478
|
-
var
|
|
479
|
-
function
|
|
478
|
+
var ca = {};
|
|
479
|
+
function Ui(a) {
|
|
480
480
|
{
|
|
481
|
-
var U =
|
|
481
|
+
var U = da();
|
|
482
482
|
if (!U) {
|
|
483
483
|
var C = typeof a == "string" ? a : a.displayName || a.name;
|
|
484
484
|
C && (U = `
|
|
@@ -488,27 +488,27 @@ Check the top-level render call using <` + C + ">.");
|
|
|
488
488
|
return U;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function _a(a, U) {
|
|
492
492
|
{
|
|
493
493
|
if (!a._store || a._store.validated || a.key != null)
|
|
494
494
|
return;
|
|
495
495
|
a._store.validated = !0;
|
|
496
|
-
var C =
|
|
497
|
-
if (
|
|
496
|
+
var C = Ui(U);
|
|
497
|
+
if (ca[C])
|
|
498
498
|
return;
|
|
499
|
-
|
|
499
|
+
ca[C] = !0;
|
|
500
500
|
var v = "";
|
|
501
501
|
a && a._owner && a._owner !== Je.current && (v = " It was passed a child from " + H(a._owner.type) + "."), ge(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, v), ge(null);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function fa(a, U) {
|
|
505
505
|
{
|
|
506
506
|
if (typeof a != "object")
|
|
507
507
|
return;
|
|
508
508
|
if (We(a))
|
|
509
509
|
for (var C = 0; C < a.length; C++) {
|
|
510
510
|
var v = a[C];
|
|
511
|
-
Ve(v) &&
|
|
511
|
+
Ve(v) && _a(v, U);
|
|
512
512
|
}
|
|
513
513
|
else if (Ve(a))
|
|
514
514
|
a._store && (a._store.validated = !0);
|
|
@@ -516,11 +516,11 @@ Check the top-level render call using <` + C + ">.");
|
|
|
516
516
|
var L = b(a);
|
|
517
517
|
if (typeof L == "function" && L !== a.entries)
|
|
518
518
|
for (var G = L.call(a), N; !(N = G.next()).done; )
|
|
519
|
-
Ve(N.value) &&
|
|
519
|
+
Ve(N.value) && _a(N.value, U);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function yi(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
|
+
ti(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 bi(a) {
|
|
549
549
|
{
|
|
550
550
|
for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
|
|
551
551
|
var v = U[C];
|
|
@@ -557,19 +557,19 @@ Check the top-level render call using <` + C + ">.");
|
|
|
557
557
|
a.ref !== null && (ge(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
560
|
+
var Ua = {};
|
|
561
|
+
function ya(a, U, C, v, L, G) {
|
|
562
562
|
{
|
|
563
563
|
var N = Fe(a);
|
|
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 =
|
|
568
|
-
F ? k += F : k +=
|
|
567
|
+
var F = fi();
|
|
568
|
+
F ? k += F : k += da();
|
|
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 === t ? (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 = _i(a, U, C, L, G);
|
|
573
573
|
if (P == null)
|
|
574
574
|
return P;
|
|
575
575
|
if (N) {
|
|
@@ -578,221 +578,221 @@ Check the top-level render call using <` + C + ">.");
|
|
|
578
578
|
if (v)
|
|
579
579
|
if (We(z)) {
|
|
580
580
|
for (var de = 0; de < z.length; de++)
|
|
581
|
-
|
|
581
|
+
fa(z[de], a);
|
|
582
582
|
Object.freeze && Object.freeze(z);
|
|
583
583
|
} else
|
|
584
584
|
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
585
585
|
else
|
|
586
|
-
|
|
586
|
+
fa(z, a);
|
|
587
587
|
}
|
|
588
588
|
if (ye.call(U, "key")) {
|
|
589
|
-
var
|
|
590
|
-
return
|
|
589
|
+
var ne = H(a), W = Object.keys(U).filter(function(Si) {
|
|
590
|
+
return Si !== "key";
|
|
591
591
|
}), Ze = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
|
-
if (!
|
|
593
|
-
var
|
|
592
|
+
if (!Ua[ne + Ze]) {
|
|
593
|
+
var ki = 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} />`, Ze,
|
|
599
|
+
<%s key={someKey} {...props} />`, Ze, ne, ki, ne), Ua[ne + Ze] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
return a ===
|
|
602
|
+
return a === u ? bi(P) : yi(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function bi(a, U, C) {
|
|
606
|
-
return Ua(a, U, C, !0);
|
|
607
|
-
}
|
|
608
605
|
function Ti(a, U, C) {
|
|
609
|
-
return
|
|
606
|
+
return ya(a, U, C, !0);
|
|
607
|
+
}
|
|
608
|
+
function Ci(a, U, C) {
|
|
609
|
+
return ya(a, U, C, !1);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
Te.Fragment =
|
|
611
|
+
var vi = Ci, hi = Ti;
|
|
612
|
+
Te.Fragment = u, Te.jsx = vi, Te.jsxs = hi;
|
|
613
613
|
})()), Te;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
return
|
|
615
|
+
var ha;
|
|
616
|
+
function xi() {
|
|
617
|
+
return ha || (ha = 1, process.env.NODE_ENV === "production" ? Pe.exports = Ri() : Pe.exports = Pi()), Pe.exports;
|
|
618
618
|
}
|
|
619
|
-
var Oe =
|
|
620
|
-
const Ba =
|
|
621
|
-
const e =
|
|
619
|
+
var Oe = xi();
|
|
620
|
+
const Ba = Za(null), ae = () => {
|
|
621
|
+
const e = Ia(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 Oi({
|
|
627
627
|
baseURL: e,
|
|
628
|
-
getToken:
|
|
629
|
-
timeoutMs:
|
|
630
|
-
lng:
|
|
631
|
-
store:
|
|
628
|
+
getToken: t,
|
|
629
|
+
timeoutMs: g = 15e3,
|
|
630
|
+
lng: u = "tw",
|
|
631
|
+
store: o,
|
|
632
632
|
onError: p
|
|
633
633
|
} = {}) {
|
|
634
|
-
const f =
|
|
634
|
+
const f = Ei.create({
|
|
635
635
|
baseURL: e,
|
|
636
|
-
timeout:
|
|
636
|
+
timeout: g,
|
|
637
637
|
headers: { "Content-Type": "application/json" }
|
|
638
638
|
});
|
|
639
639
|
return f.interceptors.request.use(async (_) => {
|
|
640
|
-
if (_.headers = _.headers || {},
|
|
641
|
-
const
|
|
642
|
-
|
|
640
|
+
if (_.headers = _.headers || {}, t) {
|
|
641
|
+
const s = await t();
|
|
642
|
+
s && (_.headers.Authorization = `Bearer ${s}`);
|
|
643
643
|
}
|
|
644
|
-
const r =
|
|
645
|
-
return _.headers.Currency = r, _.headers["currency-code"] = r, _.headers.lang =
|
|
644
|
+
const r = o?.getState()?.isWalletCurrency || o?.getState()?.currency?.currentCurrency || "TWD";
|
|
645
|
+
return _.headers.Currency = r, _.headers["currency-code"] = r, _.headers.lang = u, _;
|
|
646
646
|
}), f.interceptors.response.use(
|
|
647
647
|
(_) => _.data,
|
|
648
648
|
(_) => p ? p(_, { instance: f }) : Promise.reject(_)
|
|
649
649
|
), f;
|
|
650
650
|
}
|
|
651
|
-
const Ka =
|
|
652
|
-
const e =
|
|
651
|
+
const Ka = Za(null), Tl = () => {
|
|
652
|
+
const e = Ia(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
|
-
},
|
|
659
|
-
const e = (
|
|
658
|
+
}, Cl = () => {
|
|
659
|
+
const e = (u, o) => !u && !o, t = (u) => u.startsWith("pc.");
|
|
660
660
|
return {
|
|
661
661
|
executeLogout: ({
|
|
662
|
-
isCallBackInvalid:
|
|
663
|
-
hostname:
|
|
662
|
+
isCallBackInvalid: u = !1,
|
|
663
|
+
hostname: o = "",
|
|
664
664
|
shouldRedirect: p,
|
|
665
665
|
onShowError: f,
|
|
666
666
|
onCleanup: _,
|
|
667
667
|
onRemoveToken: r,
|
|
668
|
-
onRedirect:
|
|
668
|
+
onRedirect: s,
|
|
669
669
|
onGoogleLogout: m
|
|
670
670
|
}) => {
|
|
671
|
-
const i =
|
|
672
|
-
e(
|
|
671
|
+
const i = t(o);
|
|
672
|
+
e(u, i) && f?.(), _?.(), r?.(), p && s?.("/"), m?.();
|
|
673
673
|
},
|
|
674
674
|
shouldShowErrorNotice: e,
|
|
675
|
-
isMachineDomain:
|
|
675
|
+
isMachineDomain: t
|
|
676
676
|
};
|
|
677
|
-
}, ja = (e = [],
|
|
678
|
-
const
|
|
679
|
-
return
|
|
680
|
-
}, {}),
|
|
677
|
+
}, ja = (e = [], t) => qe(e, { gameTypeName: t })?.gameTypeUid, Qa = (e = [], t) => qe(e, { platform: t })?.platformUid, Ya = (e = [], t) => qe(e, { SubPlatformEnum: t }), qa = (e = [], t, g) => O(e) ? [] : e.filter((u) => g ? String(u?.SubPlatformEnumUid) === String(g?.SubPlatformEnumUid) : String(u.platformUid) === String(t)), Hi = (e = []) => O(e) ? {} : e.reduce((t, g) => {
|
|
678
|
+
const u = g?.game_subtype || "UNKNOWN";
|
|
679
|
+
return t[u] || (t[u] = []), t[u].push(g), t;
|
|
680
|
+
}, {}), wi = ({
|
|
681
681
|
gameTypeName: e,
|
|
682
|
-
platforms:
|
|
683
|
-
gameList:
|
|
684
|
-
allGameTypes:
|
|
685
|
-
allPlatforms:
|
|
682
|
+
platforms: t,
|
|
683
|
+
gameList: g,
|
|
684
|
+
allGameTypes: u,
|
|
685
|
+
allPlatforms: o
|
|
686
686
|
}) => {
|
|
687
|
-
const p = ja(
|
|
688
|
-
return p ?
|
|
689
|
-
const r = Qa(
|
|
687
|
+
const p = ja(u, e);
|
|
688
|
+
return p ? t.reduce((f, _) => {
|
|
689
|
+
const r = Qa(o, _), s = Ya(o, _), m = g[p] || [], i = qa(
|
|
690
690
|
m,
|
|
691
691
|
r,
|
|
692
|
-
|
|
692
|
+
s
|
|
693
693
|
);
|
|
694
694
|
return O(i) || (f[_] = i), f;
|
|
695
695
|
}, {}) : {};
|
|
696
|
-
},
|
|
696
|
+
}, Fi = ({
|
|
697
697
|
platformName: e,
|
|
698
|
-
gamesOfType:
|
|
699
|
-
allPlatforms:
|
|
698
|
+
gamesOfType: t = [],
|
|
699
|
+
allPlatforms: g = []
|
|
700
700
|
}) => {
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
701
|
+
const u = Qa(g, e), o = Ya(g, e), p = qa(
|
|
702
|
+
t,
|
|
703
|
+
u,
|
|
704
|
+
o
|
|
705
705
|
);
|
|
706
|
-
return
|
|
707
|
-
},
|
|
708
|
-
const
|
|
709
|
-
return
|
|
710
|
-
|
|
711
|
-
}),
|
|
712
|
-
}, {}),
|
|
706
|
+
return Hi(p);
|
|
707
|
+
}, Wi = (e = {}) => !He(e) || O(e) ? [] : Xe(e), ka = (e = []) => !ee(e) || O(e) ? [] : we(e, "platform"), Ji = (e = []) => !ee(e) || O(e) ? [] : we(e, "gameTypeName"), zi = (e = []) => !ee(e) || O(e) ? [] : we(e, "game_subtype"), Vi = (e = {}) => !He(e) || O(e) ? [] : Xe(e), Zi = (e = [], t = []) => !ee(e) || O(e) ? {} : !ee(t) || O(t) ? {} : e.reduce((g, u) => {
|
|
708
|
+
const o = t.map((p) => p.game_subtype);
|
|
709
|
+
return o.forEach((p) => {
|
|
710
|
+
g[p] = g[p] || [];
|
|
711
|
+
}), o.includes(u.game_subtype) && g[u.game_subtype].push(u), g;
|
|
712
|
+
}, {}), Ii = ({
|
|
713
713
|
gameTypes: e = [],
|
|
714
|
-
platforms:
|
|
715
|
-
gameList:
|
|
716
|
-
allGameTypes:
|
|
717
|
-
allPlatforms:
|
|
718
|
-
}) => !ee(e) || !ee(
|
|
719
|
-
const _ =
|
|
714
|
+
platforms: t = [],
|
|
715
|
+
gameList: g = {},
|
|
716
|
+
allGameTypes: u = [],
|
|
717
|
+
allPlatforms: o = []
|
|
718
|
+
}) => !ee(e) || !ee(t) ? {} : O(g) ? {} : e.reduce((p, f) => {
|
|
719
|
+
const _ = wi({
|
|
720
720
|
gameTypeName: f,
|
|
721
|
-
platforms:
|
|
722
|
-
gameList:
|
|
723
|
-
allGameTypes:
|
|
724
|
-
allPlatforms:
|
|
721
|
+
platforms: t,
|
|
722
|
+
gameList: g,
|
|
723
|
+
allGameTypes: u,
|
|
724
|
+
allPlatforms: o
|
|
725
725
|
});
|
|
726
726
|
return O(_) || (p[f] = _), p;
|
|
727
|
-
}, {}),
|
|
727
|
+
}, {}), vl = ({
|
|
728
728
|
types: e = [],
|
|
729
|
-
platforms:
|
|
730
|
-
allGameType:
|
|
731
|
-
allGamePlatform:
|
|
732
|
-
allGameList:
|
|
733
|
-
} = {}) => !Array.isArray(e) || !Array.isArray(
|
|
734
|
-
const _ = ja(
|
|
729
|
+
platforms: t = [],
|
|
730
|
+
allGameType: g = [],
|
|
731
|
+
allGamePlatform: u = [],
|
|
732
|
+
allGameList: o = {}
|
|
733
|
+
} = {}) => !Array.isArray(e) || !Array.isArray(t) ? {} : e.reduce((p, f) => {
|
|
734
|
+
const _ = ja(g, f);
|
|
735
735
|
if (!_) return p;
|
|
736
|
-
const r =
|
|
737
|
-
const
|
|
736
|
+
const r = o[_] || [], s = t.reduce((m, i) => {
|
|
737
|
+
const d = Fi({
|
|
738
738
|
platformName: i,
|
|
739
739
|
gamesOfType: r,
|
|
740
|
-
allPlatforms:
|
|
740
|
+
allPlatforms: u
|
|
741
741
|
});
|
|
742
|
-
return O(
|
|
742
|
+
return O(d) ? m : { ...m, [i]: d };
|
|
743
743
|
}, {});
|
|
744
|
-
return O(
|
|
745
|
-
}, {}),
|
|
746
|
-
|
|
747
|
-
}),
|
|
744
|
+
return O(s) || (p[f] = s), p;
|
|
745
|
+
}, {}), Ai = (e = {}) => !He(e) || O(e) ? {} : Object.values(e).reduce((g, u) => (Object.entries(u).forEach(([o, p]) => {
|
|
746
|
+
g[o] ? g[o] = [...g[o], ...p] : g[o] = p;
|
|
747
|
+
}), g), {}), Bi = (e = {}) => {
|
|
748
748
|
if (!He(e) || O(e)) return {};
|
|
749
|
-
const
|
|
750
|
-
for (const [
|
|
751
|
-
|
|
752
|
-
for (const
|
|
753
|
-
const p =
|
|
754
|
-
|
|
749
|
+
const t = {};
|
|
750
|
+
for (const [g, u] of Object.entries(e)) {
|
|
751
|
+
t[g] = {};
|
|
752
|
+
for (const o of u) {
|
|
753
|
+
const p = o.game_subtype;
|
|
754
|
+
t[g][p] || (t[g][p] = []), t[g][p].push(o);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
return
|
|
758
|
-
},
|
|
757
|
+
return t;
|
|
758
|
+
}, Ki = ({
|
|
759
759
|
allGameList: e = {},
|
|
760
|
-
allGamePlatform:
|
|
761
|
-
allGameType:
|
|
762
|
-
allGame_subtype:
|
|
763
|
-
allNewGameList:
|
|
760
|
+
allGamePlatform: t = [],
|
|
761
|
+
allGameType: g = [],
|
|
762
|
+
allGame_subtype: u = [],
|
|
763
|
+
allNewGameList: o = [],
|
|
764
764
|
allTopGameList: p = [],
|
|
765
765
|
randomlySelectedGames: f = [],
|
|
766
766
|
userFavoriteGame: _ = {},
|
|
767
767
|
exclusiveBrandGames: r = [],
|
|
768
|
-
highlightGames:
|
|
768
|
+
highlightGames: s = [],
|
|
769
769
|
originPlatform: m = []
|
|
770
770
|
}) => {
|
|
771
|
-
const i =
|
|
771
|
+
const i = Wi(e), d = ka(t), l = Ji(g), n = zi(u), y = ka(m), b = Vi(_), c = Ii({
|
|
772
772
|
gameTypes: l,
|
|
773
|
-
platforms:
|
|
773
|
+
platforms: d,
|
|
774
774
|
gameList: e,
|
|
775
|
-
allGameTypes:
|
|
776
|
-
allPlatforms:
|
|
777
|
-
}), T =
|
|
775
|
+
allGameTypes: g,
|
|
776
|
+
allPlatforms: t
|
|
777
|
+
}), T = Zi(i, u), S = Ai(c), D = Bi(S);
|
|
778
778
|
return {
|
|
779
779
|
platform: {
|
|
780
|
-
all:
|
|
780
|
+
all: d,
|
|
781
781
|
origin: y,
|
|
782
|
-
originPlatform:
|
|
782
|
+
originPlatform: t
|
|
783
783
|
},
|
|
784
784
|
type: {
|
|
785
785
|
main: l,
|
|
786
|
-
sub:
|
|
787
|
-
originMain:
|
|
788
|
-
originSub:
|
|
786
|
+
sub: n,
|
|
787
|
+
originMain: g,
|
|
788
|
+
originSub: u
|
|
789
789
|
},
|
|
790
790
|
gameList: {
|
|
791
791
|
all: i,
|
|
792
|
-
new:
|
|
792
|
+
new: o,
|
|
793
793
|
top: p,
|
|
794
794
|
favorite: b,
|
|
795
|
-
highlight:
|
|
795
|
+
highlight: s,
|
|
796
796
|
exclusiveBrand: r,
|
|
797
797
|
randomlySelected: f
|
|
798
798
|
},
|
|
@@ -805,12 +805,12 @@ const Ka = Va(null), bl = () => {
|
|
|
805
805
|
favorite: b
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
},
|
|
809
|
-
...
|
|
810
|
-
...
|
|
811
|
-
platform:
|
|
812
|
-
platformEnum:
|
|
813
|
-
}))),
|
|
808
|
+
}, hl = (e = []) => !ee(e) || O(e) ? [] : Xe(e, (t) => O(t.SubPlatformEnum) ? t : t.SubPlatformEnum.map((g) => ({
|
|
809
|
+
...t,
|
|
810
|
+
...g,
|
|
811
|
+
platform: g.SubPlatformEnum,
|
|
812
|
+
platformEnum: g.SubPlatformEnum
|
|
813
|
+
}))), Xa = (e) => {
|
|
814
814
|
switch (e) {
|
|
815
815
|
case "tw":
|
|
816
816
|
return "zh_TW";
|
|
@@ -830,33 +830,33 @@ const Ka = Va(null), bl = () => {
|
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
832
832
|
}, ce = () => {
|
|
833
|
-
const { client: e } =
|
|
833
|
+
const { client: e } = ae(), t = A(
|
|
834
834
|
async (r) => {
|
|
835
|
-
const { mac_address:
|
|
836
|
-
mac_address:
|
|
835
|
+
const { mac_address: s = "", app_version: m = "", anydesk_id: i = "" } = r, { data: d } = await e.post("/cash-register/login", {
|
|
836
|
+
mac_address: s,
|
|
837
837
|
app_version: m,
|
|
838
838
|
anydesk_id: i
|
|
839
839
|
});
|
|
840
|
-
return
|
|
840
|
+
return d;
|
|
841
841
|
},
|
|
842
842
|
[e]
|
|
843
|
-
),
|
|
843
|
+
), g = A(async () => e.get("/member/getMemberInfo"), [e]), u = A(async () => await e.get("/member/getGameList"), [e]), o = A(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = A(async () => await e.get("member/getFavoriteGame"), [e]), f = A(
|
|
844
844
|
async (r) => {
|
|
845
|
-
const { account:
|
|
845
|
+
const { account: s, password: m, trans_code: i } = r;
|
|
846
846
|
return await e.post("/login", {
|
|
847
|
-
memId:
|
|
847
|
+
memId: s,
|
|
848
848
|
passwd: m,
|
|
849
849
|
trans_code: i
|
|
850
850
|
});
|
|
851
851
|
},
|
|
852
852
|
[e]
|
|
853
|
-
), _ =
|
|
853
|
+
), _ = A(async () => await e.post("/logout"), [e]);
|
|
854
854
|
return {
|
|
855
|
-
machineLoginApi:
|
|
856
|
-
userInfoApi:
|
|
857
|
-
userGameListApi:
|
|
855
|
+
machineLoginApi: t,
|
|
856
|
+
userInfoApi: g,
|
|
857
|
+
userGameListApi: u,
|
|
858
858
|
userFavoriteGameApi: p,
|
|
859
|
-
userCurrencyExchangeApi:
|
|
859
|
+
userCurrencyExchangeApi: o,
|
|
860
860
|
userLoginApi: f,
|
|
861
861
|
userLogoutApi: _
|
|
862
862
|
};
|
|
@@ -879,26 +879,26 @@ const Ka = Va(null), bl = () => {
|
|
|
879
879
|
},
|
|
880
880
|
user: { favorite: [] }
|
|
881
881
|
}, Qi = ({ enabled: e = !0 } = {}) => {
|
|
882
|
-
const { getToken:
|
|
882
|
+
const { getToken: t } = ae(), { userFavoriteGameApi: g, userGameListApi: u } = ce(), { data: o, isLoading: p, error: f, refetch: _ } = se({
|
|
883
883
|
queryKey: ["gamesInfo"],
|
|
884
884
|
queryFn: async () => {
|
|
885
|
-
let r = {},
|
|
885
|
+
let r = {}, s = {};
|
|
886
886
|
try {
|
|
887
|
-
await
|
|
887
|
+
await t?.() && (s = await u(), r = await g());
|
|
888
888
|
} catch (m) {
|
|
889
889
|
console.warn("Failed to fetch favorite games:", m);
|
|
890
890
|
}
|
|
891
|
-
return
|
|
892
|
-
allGameList:
|
|
893
|
-
allGamePlatform:
|
|
894
|
-
allGameType:
|
|
895
|
-
allGame_subtype:
|
|
896
|
-
allNewGameList:
|
|
897
|
-
allTopGameList:
|
|
891
|
+
return Ki({
|
|
892
|
+
allGameList: s.gameTypeGroup || window.gameTypeGroup || {},
|
|
893
|
+
allGamePlatform: s.platforms || window.platforms || [],
|
|
894
|
+
allGameType: s.gameType || window.gameType || [],
|
|
895
|
+
allGame_subtype: s.gameSubType || window.gameSubType || [],
|
|
896
|
+
allNewGameList: s.newGames || window.newGames || [],
|
|
897
|
+
allTopGameList: s.topGames || window.topGames || [],
|
|
898
898
|
userFavoriteGame: r || {},
|
|
899
|
-
randomlySelectedGames:
|
|
900
|
-
exclusiveBrandGames:
|
|
901
|
-
highlightGames:
|
|
899
|
+
randomlySelectedGames: s.randomlySelectedGames || window.randomlySelectedGames || [],
|
|
900
|
+
exclusiveBrandGames: s.exclusiveBrandGames || window.exclusiveBrandGames || [],
|
|
901
|
+
highlightGames: s.highlightGames || window.highlightGames || [],
|
|
902
902
|
originPlatform: window.originPlatform || []
|
|
903
903
|
});
|
|
904
904
|
},
|
|
@@ -911,7 +911,7 @@ const Ka = Va(null), bl = () => {
|
|
|
911
911
|
refetchOnWindowFocus: !1
|
|
912
912
|
});
|
|
913
913
|
return {
|
|
914
|
-
gamesInfo:
|
|
914
|
+
gamesInfo: o || ji,
|
|
915
915
|
isLoading: p,
|
|
916
916
|
error: f,
|
|
917
917
|
refetch: _
|
|
@@ -27445,24 +27445,24 @@ const Ka = Va(null), bl = () => {
|
|
|
27445
27445
|
});
|
|
27446
27446
|
}, qi = ({
|
|
27447
27447
|
children: e,
|
|
27448
|
-
autoFetch:
|
|
27449
|
-
mockData:
|
|
27448
|
+
autoFetch: t = !1,
|
|
27449
|
+
mockData: g = !1
|
|
27450
27450
|
}) => {
|
|
27451
27451
|
he(() => {
|
|
27452
|
-
|
|
27453
|
-
}, [
|
|
27454
|
-
const
|
|
27455
|
-
return /* @__PURE__ */ Oe.jsx(Ka.Provider, { value:
|
|
27452
|
+
g && Yi(!0);
|
|
27453
|
+
}, [g]);
|
|
27454
|
+
const u = Qi({ enabled: t });
|
|
27455
|
+
return /* @__PURE__ */ Oe.jsx(Ka.Provider, { value: u, children: e });
|
|
27456
27456
|
};
|
|
27457
|
-
function
|
|
27457
|
+
function kl({
|
|
27458
27458
|
children: e,
|
|
27459
|
-
autoFetchGamesInfo:
|
|
27460
|
-
useMockData:
|
|
27461
|
-
queryClient:
|
|
27462
|
-
...
|
|
27459
|
+
autoFetchGamesInfo: t = !1,
|
|
27460
|
+
useMockData: g = !1,
|
|
27461
|
+
queryClient: u,
|
|
27462
|
+
...o
|
|
27463
27463
|
}) {
|
|
27464
|
-
const p = Qe(() =>
|
|
27465
|
-
() => new
|
|
27464
|
+
const p = Qe(() => Oi(o), [o]), f = Qe(
|
|
27465
|
+
() => new Ni({
|
|
27466
27466
|
defaultOptions: {
|
|
27467
27467
|
queries: {
|
|
27468
27468
|
refetchOnWindowFocus: !1,
|
|
@@ -27471,16 +27471,16 @@ function hl({
|
|
|
27471
27471
|
}
|
|
27472
27472
|
}),
|
|
27473
27473
|
[]
|
|
27474
|
-
), _ =
|
|
27475
|
-
return /* @__PURE__ */ Oe.jsx(
|
|
27474
|
+
), _ = u || f;
|
|
27475
|
+
return /* @__PURE__ */ Oe.jsx(Di, { client: _, children: /* @__PURE__ */ Oe.jsx(Ba.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(qi, { autoFetch: t, mockData: g, children: e }) }) });
|
|
27476
27476
|
}
|
|
27477
|
-
const
|
|
27478
|
-
const { userCurrencyExchangeApi:
|
|
27479
|
-
return
|
|
27477
|
+
const Sl = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
27478
|
+
const { userCurrencyExchangeApi: g } = ce(), { getToken: u } = ae(), { enabled: o, ...p } = t, _ = !!u?.() && (o ? o.every((r) => r) : !0);
|
|
27479
|
+
return Aa({
|
|
27480
27480
|
queries: [
|
|
27481
27481
|
{
|
|
27482
27482
|
queryKey: ["userCurrencyExchange", ...e],
|
|
27483
|
-
queryFn: () =>
|
|
27483
|
+
queryFn: () => g(),
|
|
27484
27484
|
enabled: _,
|
|
27485
27485
|
// ← 使用合併後的條件
|
|
27486
27486
|
...p
|
|
@@ -27488,43 +27488,43 @@ const kl = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
|
27488
27488
|
}
|
|
27489
27489
|
]
|
|
27490
27490
|
});
|
|
27491
|
-
},
|
|
27491
|
+
}, Nl = ({
|
|
27492
27492
|
refetchInterval: e = 5e4,
|
|
27493
|
-
trigger:
|
|
27494
|
-
enabled:
|
|
27493
|
+
trigger: t = [],
|
|
27494
|
+
enabled: g = !0
|
|
27495
27495
|
} = {}) => {
|
|
27496
|
-
const { getToken:
|
|
27497
|
-
return
|
|
27496
|
+
const { getToken: u } = ae(), o = u?.(), { userInfoApi: p } = ce();
|
|
27497
|
+
return Aa({
|
|
27498
27498
|
queries: [
|
|
27499
27499
|
{
|
|
27500
|
-
queryKey: ["getMemberInfo", ...
|
|
27500
|
+
queryKey: ["getMemberInfo", ...t],
|
|
27501
27501
|
queryFn: async () => await p(),
|
|
27502
27502
|
refetchInterval: e,
|
|
27503
|
-
enabled: !!
|
|
27503
|
+
enabled: !!o && g
|
|
27504
27504
|
}
|
|
27505
27505
|
]
|
|
27506
27506
|
});
|
|
27507
|
-
},
|
|
27507
|
+
}, Dl = ({ enabled: e = !0 } = {}) => {
|
|
27508
27508
|
const {
|
|
27509
|
-
userInfoApi:
|
|
27510
|
-
userFavoriteGameApi:
|
|
27511
|
-
userGameListApi:
|
|
27512
|
-
userCurrencyExchangeApi:
|
|
27513
|
-
} = ce(), p =
|
|
27509
|
+
userInfoApi: t,
|
|
27510
|
+
userFavoriteGameApi: g,
|
|
27511
|
+
userGameListApi: u,
|
|
27512
|
+
userCurrencyExchangeApi: o
|
|
27513
|
+
} = ce(), p = se({
|
|
27514
27514
|
queryKey: ["getMemInfo"],
|
|
27515
|
-
queryFn: async () =>
|
|
27515
|
+
queryFn: async () => t(),
|
|
27516
27516
|
enabled: e
|
|
27517
|
-
}), f =
|
|
27517
|
+
}), f = se({
|
|
27518
27518
|
queryKey: ["getFavoriteGame"],
|
|
27519
|
-
queryFn: async () =>
|
|
27519
|
+
queryFn: async () => g(),
|
|
27520
27520
|
enabled: e && p.isSuccess
|
|
27521
|
-
}), _ =
|
|
27521
|
+
}), _ = se({
|
|
27522
27522
|
queryKey: ["getUserGameList"],
|
|
27523
|
-
queryFn: async () =>
|
|
27523
|
+
queryFn: async () => u(),
|
|
27524
27524
|
enabled: e && p.isSuccess && f.isSuccess
|
|
27525
|
-
}), r =
|
|
27525
|
+
}), r = se({
|
|
27526
27526
|
queryKey: ["getUserCurrencyExchange"],
|
|
27527
|
-
queryFn: async () =>
|
|
27527
|
+
queryFn: async () => o(),
|
|
27528
27528
|
enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
|
|
27529
27529
|
});
|
|
27530
27530
|
return [
|
|
@@ -27534,366 +27534,366 @@ const kl = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
|
27534
27534
|
r
|
|
27535
27535
|
];
|
|
27536
27536
|
};
|
|
27537
|
-
var Ie = {}, J = {}, Ae = {},
|
|
27538
|
-
function
|
|
27539
|
-
return
|
|
27537
|
+
var Ie = {}, J = {}, Ae = {}, Sa;
|
|
27538
|
+
function B() {
|
|
27539
|
+
return Sa || (Sa = 1, (function(e) {
|
|
27540
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;
|
|
27541
|
-
var
|
|
27541
|
+
var t = 1, g = 1e3 * t;
|
|
27542
27542
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
27543
27543
|
withCredentials: !1,
|
|
27544
27544
|
events: e.EMPTY_EVENT_HANDLERS
|
|
27545
|
-
}, e.SOCKET_IO_PING_INTERVAL = 25 *
|
|
27545
|
+
}, e.SOCKET_IO_PING_INTERVAL = 25 * g, e.SOCKET_IO_PATH = "/socket.io/?EIO=3&transport=websocket", e.SOCKET_IO_PING_CODE = "2", e.DEFAULT_RECONNECT_LIMIT = 20, e.DEFAULT_RECONNECT_INTERVAL_MS = 5e3, e.UNPARSABLE_JSON_OBJECT = {}, e.DEFAULT_HEARTBEAT = {
|
|
27546
27546
|
message: "ping",
|
|
27547
27547
|
timeout: 6e4,
|
|
27548
27548
|
interval: 25e3
|
|
27549
27549
|
};
|
|
27550
|
-
var
|
|
27550
|
+
var u;
|
|
27551
27551
|
(function(p) {
|
|
27552
27552
|
p[p.UNINSTANTIATED = -1] = "UNINSTANTIATED", p[p.CONNECTING = 0] = "CONNECTING", p[p.OPEN = 1] = "OPEN", p[p.CLOSING = 2] = "CLOSING", p[p.CLOSED = 3] = "CLOSED";
|
|
27553
|
-
})(
|
|
27554
|
-
var
|
|
27553
|
+
})(u || (e.ReadyState = u = {}));
|
|
27554
|
+
var o = function() {
|
|
27555
27555
|
try {
|
|
27556
27556
|
return "EventSource" in globalThis;
|
|
27557
27557
|
} catch {
|
|
27558
27558
|
return !1;
|
|
27559
27559
|
}
|
|
27560
27560
|
};
|
|
27561
|
-
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative &&
|
|
27561
|
+
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && o();
|
|
27562
27562
|
})(Ae)), Ae;
|
|
27563
27563
|
}
|
|
27564
|
-
var Ce = {}, Be = {},
|
|
27565
|
-
function
|
|
27566
|
-
return
|
|
27564
|
+
var Ce = {}, Be = {}, Na;
|
|
27565
|
+
function $e() {
|
|
27566
|
+
return Na || (Na = 1, (function(e) {
|
|
27567
27567
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
27568
|
-
var
|
|
27569
|
-
if (
|
|
27570
|
-
delete e.sharedWebSockets[
|
|
27568
|
+
var t = function(g) {
|
|
27569
|
+
if (g && e.sharedWebSockets.hasOwnProperty(g))
|
|
27570
|
+
delete e.sharedWebSockets[g];
|
|
27571
27571
|
else
|
|
27572
|
-
for (var
|
|
27573
|
-
e.sharedWebSockets.hasOwnProperty(
|
|
27572
|
+
for (var u in e.sharedWebSockets)
|
|
27573
|
+
e.sharedWebSockets.hasOwnProperty(u) && delete e.sharedWebSockets[u];
|
|
27574
27574
|
};
|
|
27575
|
-
e.resetWebSockets =
|
|
27575
|
+
e.resetWebSockets = t;
|
|
27576
27576
|
})(Be)), Be;
|
|
27577
27577
|
}
|
|
27578
|
-
var
|
|
27579
|
-
function
|
|
27580
|
-
if (
|
|
27581
|
-
|
|
27582
|
-
var e =
|
|
27583
|
-
if (
|
|
27584
|
-
var p = /^https|wss/.test(
|
|
27578
|
+
var me = {}, Y = {}, Da;
|
|
27579
|
+
function ea() {
|
|
27580
|
+
if (Da) return Y;
|
|
27581
|
+
Da = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.setUpSocketIOPing = Y.appendQueryParams = Y.parseSocketIOUrl = void 0;
|
|
27582
|
+
var e = B(), t = function(o) {
|
|
27583
|
+
if (o) {
|
|
27584
|
+
var p = /^https|wss/.test(o), f = o.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), r = p ? "wss" : "ws";
|
|
27585
27585
|
return "".concat(r, "://").concat(_).concat(e.SOCKET_IO_PATH);
|
|
27586
|
-
} else if (
|
|
27587
|
-
var p = /^https/.test(window.location.protocol), r = p ? "wss" : "ws",
|
|
27588
|
-
return "".concat(r, "://").concat(window.location.hostname).concat(
|
|
27586
|
+
} else if (o === "") {
|
|
27587
|
+
var p = /^https/.test(window.location.protocol), r = p ? "wss" : "ws", s = window.location.port ? ":".concat(window.location.port) : "";
|
|
27588
|
+
return "".concat(r, "://").concat(window.location.hostname).concat(s).concat(e.SOCKET_IO_PATH);
|
|
27589
27589
|
}
|
|
27590
|
-
return
|
|
27590
|
+
return o;
|
|
27591
27591
|
};
|
|
27592
|
-
|
|
27593
|
-
var
|
|
27592
|
+
Y.parseSocketIOUrl = t;
|
|
27593
|
+
var g = function(o, p) {
|
|
27594
27594
|
p === void 0 && (p = {});
|
|
27595
|
-
var f = /\?([\w]+=[\w]+)/, _ = f.test(
|
|
27596
|
-
var i = m[0],
|
|
27597
|
-
return
|
|
27595
|
+
var f = /\?([\w]+=[\w]+)/, _ = f.test(o), r = "".concat(Object.entries(p).reduce(function(s, m) {
|
|
27596
|
+
var i = m[0], d = m[1];
|
|
27597
|
+
return s + "".concat(i, "=").concat(d, "&");
|
|
27598
27598
|
}, "").slice(0, -1));
|
|
27599
|
-
return "".concat(
|
|
27599
|
+
return "".concat(o).concat(_ ? "&" : "?").concat(r);
|
|
27600
27600
|
};
|
|
27601
|
-
|
|
27602
|
-
var
|
|
27601
|
+
Y.appendQueryParams = g;
|
|
27602
|
+
var u = function(o, p) {
|
|
27603
27603
|
p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
|
|
27604
27604
|
var f = function() {
|
|
27605
|
-
return
|
|
27605
|
+
return o(e.SOCKET_IO_PING_CODE);
|
|
27606
27606
|
};
|
|
27607
27607
|
return window.setInterval(f, p);
|
|
27608
27608
|
};
|
|
27609
|
-
return
|
|
27609
|
+
return Y.setUpSocketIOPing = u, Y;
|
|
27610
27610
|
}
|
|
27611
|
-
var xe = {},
|
|
27612
|
-
function
|
|
27613
|
-
if (
|
|
27614
|
-
|
|
27615
|
-
var e =
|
|
27616
|
-
function
|
|
27617
|
-
return Array.isArray(
|
|
27618
|
-
return
|
|
27619
|
-
}).current :
|
|
27611
|
+
var xe = {}, Ea;
|
|
27612
|
+
function $a() {
|
|
27613
|
+
if (Ea) return xe;
|
|
27614
|
+
Ea = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.heartbeat = g;
|
|
27615
|
+
var e = B();
|
|
27616
|
+
function t(u) {
|
|
27617
|
+
return Array.isArray(u) ? u.reduce(function(o, p) {
|
|
27618
|
+
return o.current > p.current ? o : p;
|
|
27619
|
+
}).current : u.current;
|
|
27620
27620
|
}
|
|
27621
|
-
function
|
|
27622
|
-
var f = p || {}, _ = f.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _,
|
|
27623
|
-
var b = Date.now(), c =
|
|
27621
|
+
function g(u, o, p) {
|
|
27622
|
+
var f = p || {}, _ = f.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, s = f.timeout, m = s === void 0 ? e.DEFAULT_HEARTBEAT.timeout : s, i = f.message, d = i === void 0 ? e.DEFAULT_HEARTBEAT.message : i, l = Math.max(100, r / 10), n = Date.now(), y = setInterval(function() {
|
|
27623
|
+
var b = Date.now(), c = t(o);
|
|
27624
27624
|
if (c + m <= b)
|
|
27625
|
-
console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - c, "ms ago, last ping sent ").concat(b -
|
|
27626
|
-
else if (c + r <= b &&
|
|
27625
|
+
console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - c, "ms ago, last ping sent ").concat(b - n, "ms ago")), u.close();
|
|
27626
|
+
else if (c + r <= b && n + r <= b)
|
|
27627
27627
|
try {
|
|
27628
|
-
typeof
|
|
27628
|
+
typeof d == "function" ? u.send(d()) : u.send(d), n = b;
|
|
27629
27629
|
} catch (T) {
|
|
27630
|
-
console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T),
|
|
27630
|
+
console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), u.close();
|
|
27631
27631
|
}
|
|
27632
27632
|
}, l);
|
|
27633
|
-
return
|
|
27633
|
+
return u.addEventListener("close", function() {
|
|
27634
27634
|
clearInterval(y);
|
|
27635
27635
|
}), function() {
|
|
27636
27636
|
};
|
|
27637
27637
|
}
|
|
27638
27638
|
return xe;
|
|
27639
27639
|
}
|
|
27640
|
-
var ve = {}, Ke = {},
|
|
27641
|
-
function
|
|
27642
|
-
return
|
|
27640
|
+
var ve = {}, Ke = {}, La;
|
|
27641
|
+
function aa() {
|
|
27642
|
+
return La || (La = 1, (function(e) {
|
|
27643
27643
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
27644
|
-
var
|
|
27645
|
-
return (0, e.hasSubscribers)(r) ? Array.from(
|
|
27644
|
+
var t = {}, g = [], u = function(r) {
|
|
27645
|
+
return (0, e.hasSubscribers)(r) ? Array.from(t[r]) : g;
|
|
27646
27646
|
};
|
|
27647
|
-
e.getSubscribers =
|
|
27648
|
-
var
|
|
27649
|
-
var
|
|
27650
|
-
return ((
|
|
27647
|
+
e.getSubscribers = u;
|
|
27648
|
+
var o = function(r) {
|
|
27649
|
+
var s;
|
|
27650
|
+
return ((s = t[r]) === null || s === void 0 ? void 0 : s.size) > 0;
|
|
27651
27651
|
};
|
|
27652
|
-
e.hasSubscribers =
|
|
27653
|
-
var p = function(r,
|
|
27654
|
-
|
|
27652
|
+
e.hasSubscribers = o;
|
|
27653
|
+
var p = function(r, s) {
|
|
27654
|
+
t[r] = t[r] || /* @__PURE__ */ new Set(), t[r].add(s);
|
|
27655
27655
|
};
|
|
27656
27656
|
e.addSubscriber = p;
|
|
27657
|
-
var f = function(r,
|
|
27658
|
-
|
|
27657
|
+
var f = function(r, s) {
|
|
27658
|
+
t[r].delete(s);
|
|
27659
27659
|
};
|
|
27660
27660
|
e.removeSubscriber = f;
|
|
27661
27661
|
var _ = function(r) {
|
|
27662
|
-
if (r &&
|
|
27663
|
-
delete
|
|
27662
|
+
if (r && t.hasOwnProperty(r))
|
|
27663
|
+
delete t[r];
|
|
27664
27664
|
else
|
|
27665
|
-
for (var
|
|
27666
|
-
|
|
27665
|
+
for (var s in t)
|
|
27666
|
+
t.hasOwnProperty(s) && delete t[s];
|
|
27667
27667
|
};
|
|
27668
27668
|
e.resetSubscribers = _;
|
|
27669
27669
|
})(Ke)), Ke;
|
|
27670
27670
|
}
|
|
27671
|
-
var
|
|
27672
|
-
function
|
|
27673
|
-
if (
|
|
27674
|
-
|
|
27675
|
-
var e =
|
|
27676
|
-
function
|
|
27677
|
-
if (!p && !(
|
|
27671
|
+
var Ga;
|
|
27672
|
+
function ia() {
|
|
27673
|
+
if (Ga) return ve;
|
|
27674
|
+
Ga = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.assertIsWebSocket = g, ve.resetGlobalState = u;
|
|
27675
|
+
var e = $e(), t = aa();
|
|
27676
|
+
function g(o, p) {
|
|
27677
|
+
if (!p && !(o instanceof WebSocket))
|
|
27678
27678
|
throw new Error("");
|
|
27679
27679
|
}
|
|
27680
|
-
function o
|
|
27681
|
-
(0,
|
|
27680
|
+
function u(o) {
|
|
27681
|
+
(0, t.resetSubscribers)(o), (0, e.resetWebSockets)(o);
|
|
27682
27682
|
}
|
|
27683
27683
|
return ve;
|
|
27684
27684
|
}
|
|
27685
|
-
var
|
|
27685
|
+
var Ma;
|
|
27686
27686
|
function Xi() {
|
|
27687
|
-
if (
|
|
27688
|
-
|
|
27689
|
-
var e =
|
|
27687
|
+
if (Ma) return me;
|
|
27688
|
+
Ma = 1;
|
|
27689
|
+
var e = me && me.__assign || function() {
|
|
27690
27690
|
return e = Object.assign || function(m) {
|
|
27691
|
-
for (var i,
|
|
27692
|
-
i = arguments[
|
|
27693
|
-
for (var
|
|
27691
|
+
for (var i, d = 1, l = arguments.length; d < l; d++) {
|
|
27692
|
+
i = arguments[d];
|
|
27693
|
+
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (m[n] = i[n]);
|
|
27694
27694
|
}
|
|
27695
27695
|
return m;
|
|
27696
27696
|
}, e.apply(this, arguments);
|
|
27697
27697
|
};
|
|
27698
|
-
Object.defineProperty(
|
|
27699
|
-
var
|
|
27700
|
-
m.onmessage = function(
|
|
27698
|
+
Object.defineProperty(me, "__esModule", { value: !0 }), me.attachListeners = void 0;
|
|
27699
|
+
var t = ea(), g = $a(), u = B(), o = ia(), p = function(m, i, d, l) {
|
|
27700
|
+
m.onmessage = function(n) {
|
|
27701
27701
|
var y;
|
|
27702
|
-
i.current.onMessage && i.current.onMessage(
|
|
27702
|
+
i.current.onMessage && i.current.onMessage(n), typeof l?.current == "number" && (l.current = Date.now()), !(typeof i.current.filter == "function" && i.current.filter(n) !== !0) && (i.current.heartbeat && typeof i.current.heartbeat != "boolean" && ((y = i.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === n.data || d(n));
|
|
27703
27703
|
};
|
|
27704
|
-
}, f = function(m, i,
|
|
27704
|
+
}, f = function(m, i, d, l, n) {
|
|
27705
27705
|
m.onopen = function(y) {
|
|
27706
|
-
if (i.current.onOpen && i.current.onOpen(y), l.current = 0,
|
|
27706
|
+
if (i.current.onOpen && i.current.onOpen(y), l.current = 0, d(u.ReadyState.OPEN), i.current.heartbeat && m instanceof WebSocket) {
|
|
27707
27707
|
var b = typeof i.current.heartbeat == "boolean" ? void 0 : i.current.heartbeat;
|
|
27708
|
-
|
|
27708
|
+
n.current = Date.now(), (0, g.heartbeat)(m, n, b);
|
|
27709
27709
|
}
|
|
27710
27710
|
};
|
|
27711
|
-
}, _ = function(m, i,
|
|
27712
|
-
if (
|
|
27711
|
+
}, _ = function(m, i, d, l, n) {
|
|
27712
|
+
if (u.isEventSourceSupported && m instanceof EventSource)
|
|
27713
27713
|
return function() {
|
|
27714
27714
|
};
|
|
27715
|
-
(0,
|
|
27715
|
+
(0, o.assertIsWebSocket)(m, i.current.skipAssert);
|
|
27716
27716
|
var y;
|
|
27717
27717
|
return m.onclose = function(b) {
|
|
27718
27718
|
var c;
|
|
27719
|
-
if (i.current.onClose && i.current.onClose(b),
|
|
27720
|
-
var T = (c = i.current.reconnectAttempts) !== null && c !== void 0 ? c :
|
|
27721
|
-
if (
|
|
27722
|
-
var S = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(
|
|
27719
|
+
if (i.current.onClose && i.current.onClose(b), d(u.ReadyState.CLOSED), i.current.shouldReconnect && i.current.shouldReconnect(b)) {
|
|
27720
|
+
var T = (c = i.current.reconnectAttempts) !== null && c !== void 0 ? c : u.DEFAULT_RECONNECT_LIMIT;
|
|
27721
|
+
if (n.current < T) {
|
|
27722
|
+
var S = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(n.current) : i.current.reconnectInterval;
|
|
27723
27723
|
y = window.setTimeout(function() {
|
|
27724
|
-
|
|
27725
|
-
}, S ??
|
|
27724
|
+
n.current++, l();
|
|
27725
|
+
}, S ?? u.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
27726
27726
|
} else
|
|
27727
27727
|
i.current.onReconnectStop && i.current.onReconnectStop(T), console.warn("Max reconnect attempts of ".concat(T, " exceeded"));
|
|
27728
27728
|
}
|
|
27729
27729
|
}, function() {
|
|
27730
27730
|
return y && window.clearTimeout(y);
|
|
27731
27731
|
};
|
|
27732
|
-
}, r = function(m, i,
|
|
27732
|
+
}, r = function(m, i, d, l, n) {
|
|
27733
27733
|
var y;
|
|
27734
27734
|
return m.onerror = function(b) {
|
|
27735
27735
|
var c;
|
|
27736
|
-
if (i.current.onError && i.current.onError(b),
|
|
27737
|
-
if (
|
|
27738
|
-
var T = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(
|
|
27736
|
+
if (i.current.onError && i.current.onError(b), u.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(u.ReadyState.CLOSED), m.close()), i.current.retryOnError)
|
|
27737
|
+
if (n.current < ((c = i.current.reconnectAttempts) !== null && c !== void 0 ? c : u.DEFAULT_RECONNECT_LIMIT)) {
|
|
27738
|
+
var T = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(n.current) : i.current.reconnectInterval;
|
|
27739
27739
|
y = window.setTimeout(function() {
|
|
27740
|
-
|
|
27741
|
-
}, T ??
|
|
27740
|
+
n.current++, l();
|
|
27741
|
+
}, T ?? u.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
27742
27742
|
} else
|
|
27743
27743
|
i.current.onReconnectStop && i.current.onReconnectStop(i.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(i.current.reconnectAttempts, " exceeded"));
|
|
27744
27744
|
}, function() {
|
|
27745
27745
|
return y && window.clearTimeout(y);
|
|
27746
27746
|
};
|
|
27747
|
-
},
|
|
27747
|
+
}, s = function(m, i, d, l, n, y, b) {
|
|
27748
27748
|
var c = i.setLastMessage, T = i.setReadyState, S, D, h;
|
|
27749
|
-
return
|
|
27750
|
-
T(
|
|
27749
|
+
return d.current.fromSocketIO && (S = (0, t.setUpSocketIOPing)(b)), p(m, d, c, y), f(m, d, T, n, y), D = _(m, d, T, l, n), h = r(m, d, T, l, n), function() {
|
|
27750
|
+
T(u.ReadyState.CLOSING), D(), h(), m.close(), S && clearInterval(S);
|
|
27751
27751
|
};
|
|
27752
27752
|
};
|
|
27753
|
-
return
|
|
27753
|
+
return me.attachListeners = s, me;
|
|
27754
27754
|
}
|
|
27755
|
-
var
|
|
27755
|
+
var re = {}, Ra;
|
|
27756
27756
|
function $i() {
|
|
27757
|
-
if (
|
|
27758
|
-
|
|
27759
|
-
var e =
|
|
27757
|
+
if (Ra) return re;
|
|
27758
|
+
Ra = 1;
|
|
27759
|
+
var e = re && re.__assign || function() {
|
|
27760
27760
|
return e = Object.assign || function(i) {
|
|
27761
|
-
for (var
|
|
27762
|
-
|
|
27763
|
-
for (var y in
|
|
27761
|
+
for (var d, l = 1, n = arguments.length; l < n; l++) {
|
|
27762
|
+
d = arguments[l];
|
|
27763
|
+
for (var y in d) Object.prototype.hasOwnProperty.call(d, y) && (i[y] = d[y]);
|
|
27764
27764
|
}
|
|
27765
27765
|
return i;
|
|
27766
27766
|
}, e.apply(this, arguments);
|
|
27767
27767
|
};
|
|
27768
|
-
Object.defineProperty(
|
|
27769
|
-
var
|
|
27770
|
-
i.onmessage = function(
|
|
27771
|
-
(0,
|
|
27768
|
+
Object.defineProperty(re, "__esModule", { value: !0 }), re.attachSharedListeners = void 0;
|
|
27769
|
+
var t = $e(), g = B(), u = aa(), o = ea(), p = $a(), f = function(i, d, l) {
|
|
27770
|
+
i.onmessage = function(n) {
|
|
27771
|
+
(0, u.getSubscribers)(d).forEach(function(y) {
|
|
27772
27772
|
var b;
|
|
27773
|
-
y.optionsRef.current.onMessage && y.optionsRef.current.onMessage(
|
|
27773
|
+
y.optionsRef.current.onMessage && y.optionsRef.current.onMessage(n), typeof ((b = y?.lastMessageTime) === null || b === void 0 ? void 0 : b.current) == "number" && (y.lastMessageTime.current = Date.now()), !(typeof y.optionsRef.current.filter == "function" && y.optionsRef.current.filter(n) !== !0) && (l && typeof l != "boolean" && l?.returnMessage === n.data || y.setLastMessage(n));
|
|
27774
27774
|
});
|
|
27775
27775
|
};
|
|
27776
|
-
}, _ = function(i,
|
|
27777
|
-
i.onopen = function(
|
|
27778
|
-
var y = (0,
|
|
27776
|
+
}, _ = function(i, d, l) {
|
|
27777
|
+
i.onopen = function(n) {
|
|
27778
|
+
var y = (0, u.getSubscribers)(d);
|
|
27779
27779
|
y.forEach(function(b) {
|
|
27780
|
-
b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(
|
|
27780
|
+
b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(n), b.setReadyState(g.ReadyState.OPEN), l && i instanceof WebSocket && (b.lastMessageTime.current = Date.now());
|
|
27781
27781
|
}), l && i instanceof WebSocket && (0, p.heartbeat)(i, y.map(function(b) {
|
|
27782
27782
|
return b.lastMessageTime;
|
|
27783
27783
|
}), typeof l == "boolean" ? void 0 : l);
|
|
27784
27784
|
};
|
|
27785
|
-
}, r = function(i,
|
|
27785
|
+
}, r = function(i, d) {
|
|
27786
27786
|
i instanceof WebSocket && (i.onclose = function(l) {
|
|
27787
|
-
(0,
|
|
27788
|
-
|
|
27789
|
-
}), delete
|
|
27787
|
+
(0, u.getSubscribers)(d).forEach(function(n) {
|
|
27788
|
+
n.optionsRef.current.onClose && n.optionsRef.current.onClose(l), n.setReadyState(g.ReadyState.CLOSED);
|
|
27789
|
+
}), delete t.sharedWebSockets[d], (0, u.getSubscribers)(d).forEach(function(n) {
|
|
27790
27790
|
var y;
|
|
27791
|
-
if (
|
|
27792
|
-
var b = (y =
|
|
27793
|
-
if (
|
|
27794
|
-
var c = typeof
|
|
27791
|
+
if (n.optionsRef.current.shouldReconnect && n.optionsRef.current.shouldReconnect(l)) {
|
|
27792
|
+
var b = (y = n.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : g.DEFAULT_RECONNECT_LIMIT;
|
|
27793
|
+
if (n.reconnectCount.current < b) {
|
|
27794
|
+
var c = typeof n.optionsRef.current.reconnectInterval == "function" ? n.optionsRef.current.reconnectInterval(n.reconnectCount.current) : n.optionsRef.current.reconnectInterval;
|
|
27795
27795
|
setTimeout(function() {
|
|
27796
|
-
|
|
27797
|
-
}, c ??
|
|
27796
|
+
n.reconnectCount.current++, n.reconnect.current();
|
|
27797
|
+
}, c ?? g.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
27798
27798
|
} else
|
|
27799
|
-
|
|
27799
|
+
n.optionsRef.current.onReconnectStop && n.optionsRef.current.onReconnectStop(n.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(b, " exceeded"));
|
|
27800
27800
|
}
|
|
27801
27801
|
});
|
|
27802
27802
|
});
|
|
27803
|
-
},
|
|
27803
|
+
}, s = function(i, d) {
|
|
27804
27804
|
i.onerror = function(l) {
|
|
27805
|
-
(0,
|
|
27806
|
-
|
|
27807
|
-
}),
|
|
27805
|
+
(0, u.getSubscribers)(d).forEach(function(n) {
|
|
27806
|
+
n.optionsRef.current.onError && n.optionsRef.current.onError(l), g.isEventSourceSupported && i instanceof EventSource && (n.optionsRef.current.onClose && n.optionsRef.current.onClose(e(e({}, l), { code: 1006, reason: "An error occurred with the EventSource: ".concat(l), wasClean: !1 })), n.setReadyState(g.ReadyState.CLOSED));
|
|
27807
|
+
}), g.isEventSourceSupported && i instanceof EventSource && i.close();
|
|
27808
27808
|
};
|
|
27809
|
-
}, m = function(i,
|
|
27809
|
+
}, m = function(i, d, l, n) {
|
|
27810
27810
|
var y;
|
|
27811
|
-
return l.current.fromSocketIO && (y = (0,
|
|
27811
|
+
return l.current.fromSocketIO && (y = (0, o.setUpSocketIOPing)(n)), f(i, d, l.current.heartbeat), r(i, d), _(i, d, l.current.heartbeat), s(i, d), function() {
|
|
27812
27812
|
y && clearInterval(y);
|
|
27813
27813
|
};
|
|
27814
27814
|
};
|
|
27815
|
-
return
|
|
27815
|
+
return re.attachSharedListeners = m, re;
|
|
27816
27816
|
}
|
|
27817
|
-
var
|
|
27817
|
+
var Pa;
|
|
27818
27818
|
function el() {
|
|
27819
|
-
if (
|
|
27820
|
-
|
|
27821
|
-
var e =
|
|
27819
|
+
if (Pa) return Ce;
|
|
27820
|
+
Pa = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.createOrJoinSocket = void 0;
|
|
27821
|
+
var e = $e(), t = B(), g = Xi(), u = $i(), o = aa(), p = function(_, r, s, m, i) {
|
|
27822
27822
|
return function() {
|
|
27823
|
-
if ((0,
|
|
27823
|
+
if ((0, o.removeSubscriber)(_, r), !(0, o.hasSubscribers)(_)) {
|
|
27824
27824
|
try {
|
|
27825
|
-
var
|
|
27826
|
-
|
|
27827
|
-
|
|
27828
|
-
}),
|
|
27825
|
+
var d = e.sharedWebSockets[_];
|
|
27826
|
+
d instanceof WebSocket && (d.onclose = function(l) {
|
|
27827
|
+
s.current.onClose && s.current.onClose(l), m(t.ReadyState.CLOSED);
|
|
27828
|
+
}), d.close();
|
|
27829
27829
|
} catch {
|
|
27830
27830
|
}
|
|
27831
27831
|
i && i(), delete e.sharedWebSockets[_];
|
|
27832
27832
|
}
|
|
27833
27833
|
};
|
|
27834
|
-
}, f = function(_, r,
|
|
27835
|
-
if (!
|
|
27836
|
-
throw
|
|
27834
|
+
}, f = function(_, r, s, m, i, d, l, n, y) {
|
|
27835
|
+
if (!t.isEventSourceSupported && m.current.eventSourceOptions)
|
|
27836
|
+
throw t.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
27837
27837
|
if (m.current.share) {
|
|
27838
27838
|
var b = null;
|
|
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],
|
|
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], s(t.ReadyState.CONNECTING), b = (0, u.attachSharedListeners)(e.sharedWebSockets[r], r, m, y)) : (_.current = e.sharedWebSockets[r], s(e.sharedWebSockets[r].readyState));
|
|
27840
27840
|
var c = {
|
|
27841
27841
|
setLastMessage: i,
|
|
27842
|
-
setReadyState:
|
|
27842
|
+
setReadyState: s,
|
|
27843
27843
|
optionsRef: m,
|
|
27844
27844
|
reconnectCount: l,
|
|
27845
|
-
lastMessageTime:
|
|
27846
|
-
reconnect:
|
|
27845
|
+
lastMessageTime: n,
|
|
27846
|
+
reconnect: d
|
|
27847
27847
|
};
|
|
27848
|
-
return (0,
|
|
27848
|
+
return (0, o.addSubscriber)(r, c), p(r, c, m, s, b);
|
|
27849
27849
|
} else {
|
|
27850
|
-
if (_.current = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols),
|
|
27850
|
+
if (_.current = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), s(t.ReadyState.CONNECTING), !_.current)
|
|
27851
27851
|
throw new Error("WebSocket failed to be created");
|
|
27852
|
-
return (0,
|
|
27852
|
+
return (0, g.attachListeners)(_.current, {
|
|
27853
27853
|
setLastMessage: i,
|
|
27854
|
-
setReadyState:
|
|
27855
|
-
}, m,
|
|
27854
|
+
setReadyState: s
|
|
27855
|
+
}, m, d.current, l, n, y);
|
|
27856
27856
|
}
|
|
27857
27857
|
};
|
|
27858
27858
|
return Ce.createOrJoinSocket = f, Ce;
|
|
27859
27859
|
}
|
|
27860
|
-
var
|
|
27860
|
+
var q = {}, xa;
|
|
27861
27861
|
function al() {
|
|
27862
|
-
return
|
|
27863
|
-
var
|
|
27864
|
-
function
|
|
27865
|
-
return l instanceof m ? l : new m(function(
|
|
27866
|
-
|
|
27862
|
+
return xa || (xa = 1, (function(e) {
|
|
27863
|
+
var t = q && q.__awaiter || function(r, s, m, i) {
|
|
27864
|
+
function d(l) {
|
|
27865
|
+
return l instanceof m ? l : new m(function(n) {
|
|
27866
|
+
n(l);
|
|
27867
27867
|
});
|
|
27868
27868
|
}
|
|
27869
|
-
return new (m || (m = Promise))(function(l,
|
|
27869
|
+
return new (m || (m = Promise))(function(l, n) {
|
|
27870
27870
|
function y(T) {
|
|
27871
27871
|
try {
|
|
27872
27872
|
c(i.next(T));
|
|
27873
27873
|
} catch (S) {
|
|
27874
|
-
|
|
27874
|
+
n(S);
|
|
27875
27875
|
}
|
|
27876
27876
|
}
|
|
27877
27877
|
function b(T) {
|
|
27878
27878
|
try {
|
|
27879
27879
|
c(i.throw(T));
|
|
27880
27880
|
} catch (S) {
|
|
27881
|
-
|
|
27881
|
+
n(S);
|
|
27882
27882
|
}
|
|
27883
27883
|
}
|
|
27884
27884
|
function c(T) {
|
|
27885
|
-
T.done ? l(T.value) :
|
|
27885
|
+
T.done ? l(T.value) : d(T.value).then(y, b);
|
|
27886
27886
|
}
|
|
27887
|
-
c((i = i.apply(r,
|
|
27887
|
+
c((i = i.apply(r, s || [])).next());
|
|
27888
27888
|
});
|
|
27889
|
-
},
|
|
27889
|
+
}, g = q && q.__generator || function(r, s) {
|
|
27890
27890
|
var m = { label: 0, sent: function() {
|
|
27891
27891
|
if (l[0] & 1) throw l[1];
|
|
27892
27892
|
return l[1];
|
|
27893
|
-
}, trys: [], ops: [] }, i,
|
|
27894
|
-
return
|
|
27893
|
+
}, trys: [], ops: [] }, i, d, l, n = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
27894
|
+
return n.next = y(0), n.throw = y(1), n.return = y(2), typeof Symbol == "function" && (n[Symbol.iterator] = function() {
|
|
27895
27895
|
return this;
|
|
27896
|
-
}),
|
|
27896
|
+
}), n;
|
|
27897
27897
|
function y(c) {
|
|
27898
27898
|
return function(T) {
|
|
27899
27899
|
return b([c, T]);
|
|
@@ -27901,9 +27901,9 @@ function al() {
|
|
|
27901
27901
|
}
|
|
27902
27902
|
function b(c) {
|
|
27903
27903
|
if (i) throw new TypeError("Generator is already executing.");
|
|
27904
|
-
for (;
|
|
27905
|
-
if (i = 1,
|
|
27906
|
-
switch (
|
|
27904
|
+
for (; n && (n = 0, c[0] && (m = 0)), m; ) try {
|
|
27905
|
+
if (i = 1, d && (l = c[0] & 2 ? d.return : c[0] ? d.throw || ((l = d.return) && l.call(d), 0) : d.next) && !(l = l.call(d, c[1])).done) return l;
|
|
27906
|
+
switch (d = 0, l && (c = [c[0] & 2, l.value]), c[0]) {
|
|
27907
27907
|
case 0:
|
|
27908
27908
|
case 1:
|
|
27909
27909
|
l = c;
|
|
@@ -27911,7 +27911,7 @@ function al() {
|
|
|
27911
27911
|
case 4:
|
|
27912
27912
|
return m.label++, { value: c[1], done: !1 };
|
|
27913
27913
|
case 5:
|
|
27914
|
-
m.label++,
|
|
27914
|
+
m.label++, d = c[1], c = [0];
|
|
27915
27915
|
continue;
|
|
27916
27916
|
case 7:
|
|
27917
27917
|
c = m.ops.pop(), m.trys.pop();
|
|
@@ -27936,45 +27936,45 @@ function al() {
|
|
|
27936
27936
|
l[2] && m.ops.pop(), m.trys.pop();
|
|
27937
27937
|
continue;
|
|
27938
27938
|
}
|
|
27939
|
-
c =
|
|
27939
|
+
c = s.call(r, m);
|
|
27940
27940
|
} catch (T) {
|
|
27941
|
-
c = [6, T],
|
|
27941
|
+
c = [6, T], d = 0;
|
|
27942
27942
|
} finally {
|
|
27943
27943
|
i = l = 0;
|
|
27944
27944
|
}
|
|
27945
27945
|
if (c[0] & 5) throw c[1];
|
|
27946
27946
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
27947
27947
|
}
|
|
27948
|
-
},
|
|
27949
|
-
if (m || arguments.length === 2) for (var i = 0,
|
|
27950
|
-
(l || !(i in
|
|
27951
|
-
return r.concat(l || Array.prototype.slice.call(
|
|
27948
|
+
}, u = q && q.__spreadArray || function(r, s, m) {
|
|
27949
|
+
if (m || arguments.length === 2) for (var i = 0, d = s.length, l; i < d; i++)
|
|
27950
|
+
(l || !(i in s)) && (l || (l = Array.prototype.slice.call(s, 0, i)), l[i] = s[i]);
|
|
27951
|
+
return r.concat(l || Array.prototype.slice.call(s));
|
|
27952
27952
|
};
|
|
27953
27953
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
27954
|
-
var
|
|
27955
|
-
return new Promise(function(
|
|
27956
|
-
return window.setTimeout(
|
|
27954
|
+
var o = ea(), p = B(), f = function(r) {
|
|
27955
|
+
return new Promise(function(s) {
|
|
27956
|
+
return window.setTimeout(s, r);
|
|
27957
27957
|
});
|
|
27958
|
-
}, _ = function(r,
|
|
27958
|
+
}, _ = function(r, s) {
|
|
27959
27959
|
for (var m = [], i = 2; i < arguments.length; i++)
|
|
27960
27960
|
m[i - 2] = arguments[i];
|
|
27961
|
-
return
|
|
27961
|
+
return t(void 0, u([r, s], m, !0), void 0, function(d, l, n) {
|
|
27962
27962
|
var y, b, c, T, S, D, h, E;
|
|
27963
|
-
return
|
|
27963
|
+
return n === void 0 && (n = 0), g(this, function(M) {
|
|
27964
27964
|
switch (M.label) {
|
|
27965
27965
|
case 0:
|
|
27966
|
-
if (typeof
|
|
27966
|
+
if (typeof d != "function") return [3, 10];
|
|
27967
27967
|
M.label = 1;
|
|
27968
27968
|
case 1:
|
|
27969
|
-
return M.trys.push([1, 3, , 9]), [4,
|
|
27969
|
+
return M.trys.push([1, 3, , 9]), [4, d()];
|
|
27970
27970
|
case 2:
|
|
27971
27971
|
return y = M.sent(), [3, 9];
|
|
27972
27972
|
case 3:
|
|
27973
|
-
return M.sent(), l.current.retryOnError ? (b = (D = l.current.reconnectAttempts) !== null && D !== void 0 ? D : p.DEFAULT_RECONNECT_LIMIT,
|
|
27973
|
+
return M.sent(), l.current.retryOnError ? (b = (D = l.current.reconnectAttempts) !== null && D !== void 0 ? D : p.DEFAULT_RECONNECT_LIMIT, n < b ? (c = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(n) : l.current.reconnectInterval, [4, f(c ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
27974
27974
|
case 4:
|
|
27975
|
-
return M.sent(), [2, (0, e.getUrl)(
|
|
27975
|
+
return M.sent(), [2, (0, e.getUrl)(d, l, n + 1)];
|
|
27976
27976
|
case 5:
|
|
27977
|
-
return (E = (h = l.current).onReconnectStop) === null || E === void 0 || E.call(h,
|
|
27977
|
+
return (E = (h = l.current).onReconnectStop) === null || E === void 0 || E.call(h, n), [2, null];
|
|
27978
27978
|
case 6:
|
|
27979
27979
|
return [3, 8];
|
|
27980
27980
|
case 7:
|
|
@@ -27984,54 +27984,54 @@ function al() {
|
|
|
27984
27984
|
case 9:
|
|
27985
27985
|
return [3, 11];
|
|
27986
27986
|
case 10:
|
|
27987
|
-
y =
|
|
27987
|
+
y = d, M.label = 11;
|
|
27988
27988
|
case 11:
|
|
27989
|
-
return T = l.current.fromSocketIO ? (0,
|
|
27989
|
+
return T = l.current.fromSocketIO ? (0, o.parseSocketIOUrl)(y) : y, S = l.current.queryParams ? (0, o.appendQueryParams)(T, l.current.queryParams) : T, [2, S];
|
|
27990
27990
|
}
|
|
27991
27991
|
});
|
|
27992
27992
|
});
|
|
27993
27993
|
};
|
|
27994
27994
|
e.getUrl = _;
|
|
27995
|
-
})(
|
|
27995
|
+
})(q)), q;
|
|
27996
27996
|
}
|
|
27997
|
-
var je = {},
|
|
27997
|
+
var je = {}, Oa;
|
|
27998
27998
|
function il() {
|
|
27999
|
-
return
|
|
27999
|
+
return Oa || (Oa = 1, (function(e) {
|
|
28000
28000
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
28001
|
-
var
|
|
28002
|
-
return new Proxy(
|
|
28003
|
-
get: function(
|
|
28004
|
-
var f =
|
|
28005
|
-
return p === "reconnect" ?
|
|
28001
|
+
var t = function(g, u) {
|
|
28002
|
+
return new Proxy(g, {
|
|
28003
|
+
get: function(o, p) {
|
|
28004
|
+
var f = o[p];
|
|
28005
|
+
return p === "reconnect" ? u : typeof f == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
|
|
28006
28006
|
}) : f;
|
|
28007
28007
|
},
|
|
28008
|
-
set: function(
|
|
28009
|
-
return /^on/.test(p) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (
|
|
28008
|
+
set: function(o, p, f) {
|
|
28009
|
+
return /^on/.test(p) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (o[p] = f, !0);
|
|
28010
28010
|
}
|
|
28011
28011
|
});
|
|
28012
28012
|
};
|
|
28013
|
-
e.websocketWrapper =
|
|
28013
|
+
e.websocketWrapper = t, e.default = e.websocketWrapper;
|
|
28014
28014
|
})(je)), je;
|
|
28015
28015
|
}
|
|
28016
|
-
var
|
|
28017
|
-
function
|
|
28018
|
-
if (
|
|
28019
|
-
|
|
28016
|
+
var Ha;
|
|
28017
|
+
function la() {
|
|
28018
|
+
if (Ha) return J;
|
|
28019
|
+
Ha = 1;
|
|
28020
28020
|
var e = J && J.__assign || function() {
|
|
28021
|
-
return e = Object.assign || function(
|
|
28022
|
-
for (var l,
|
|
28023
|
-
l = arguments[
|
|
28024
|
-
for (var b in l) Object.prototype.hasOwnProperty.call(l, b) && (
|
|
28021
|
+
return e = Object.assign || function(d) {
|
|
28022
|
+
for (var l, n = 1, y = arguments.length; n < y; n++) {
|
|
28023
|
+
l = arguments[n];
|
|
28024
|
+
for (var b in l) Object.prototype.hasOwnProperty.call(l, b) && (d[b] = l[b]);
|
|
28025
28025
|
}
|
|
28026
|
-
return
|
|
28026
|
+
return d;
|
|
28027
28027
|
}, e.apply(this, arguments);
|
|
28028
|
-
},
|
|
28028
|
+
}, t = J && J.__awaiter || function(d, l, n, y) {
|
|
28029
28029
|
function b(c) {
|
|
28030
|
-
return c instanceof
|
|
28030
|
+
return c instanceof n ? c : new n(function(T) {
|
|
28031
28031
|
T(c);
|
|
28032
28032
|
});
|
|
28033
28033
|
}
|
|
28034
|
-
return new (
|
|
28034
|
+
return new (n || (n = Promise))(function(c, T) {
|
|
28035
28035
|
function S(E) {
|
|
28036
28036
|
try {
|
|
28037
28037
|
h(y.next(E));
|
|
@@ -28049,10 +28049,10 @@ function ia() {
|
|
|
28049
28049
|
function h(E) {
|
|
28050
28050
|
E.done ? c(E.value) : b(E.value).then(S, D);
|
|
28051
28051
|
}
|
|
28052
|
-
h((y = y.apply(
|
|
28052
|
+
h((y = y.apply(d, l || [])).next());
|
|
28053
28053
|
});
|
|
28054
|
-
},
|
|
28055
|
-
var
|
|
28054
|
+
}, g = J && J.__generator || function(d, l) {
|
|
28055
|
+
var n = { label: 0, sent: function() {
|
|
28056
28056
|
if (c[0] & 1) throw c[1];
|
|
28057
28057
|
return c[1];
|
|
28058
28058
|
}, trys: [], ops: [] }, y, b, c, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
@@ -28066,7 +28066,7 @@ function ia() {
|
|
|
28066
28066
|
}
|
|
28067
28067
|
function D(h) {
|
|
28068
28068
|
if (y) throw new TypeError("Generator is already executing.");
|
|
28069
|
-
for (; T && (T = 0, h[0] && (
|
|
28069
|
+
for (; T && (T = 0, h[0] && (n = 0)), n; ) try {
|
|
28070
28070
|
if (y = 1, b && (c = h[0] & 2 ? b.return : h[0] ? b.throw || ((c = b.return) && c.call(b), 0) : b.next) && !(c = c.call(b, h[1])).done) return c;
|
|
28071
28071
|
switch (b = 0, c && (h = [h[0] & 2, c.value]), h[0]) {
|
|
28072
28072
|
case 0:
|
|
@@ -28074,34 +28074,34 @@ function ia() {
|
|
|
28074
28074
|
c = h;
|
|
28075
28075
|
break;
|
|
28076
28076
|
case 4:
|
|
28077
|
-
return
|
|
28077
|
+
return n.label++, { value: h[1], done: !1 };
|
|
28078
28078
|
case 5:
|
|
28079
|
-
|
|
28079
|
+
n.label++, b = h[1], h = [0];
|
|
28080
28080
|
continue;
|
|
28081
28081
|
case 7:
|
|
28082
|
-
h =
|
|
28082
|
+
h = n.ops.pop(), n.trys.pop();
|
|
28083
28083
|
continue;
|
|
28084
28084
|
default:
|
|
28085
|
-
if (c =
|
|
28086
|
-
|
|
28085
|
+
if (c = n.trys, !(c = c.length > 0 && c[c.length - 1]) && (h[0] === 6 || h[0] === 2)) {
|
|
28086
|
+
n = 0;
|
|
28087
28087
|
continue;
|
|
28088
28088
|
}
|
|
28089
28089
|
if (h[0] === 3 && (!c || h[1] > c[0] && h[1] < c[3])) {
|
|
28090
|
-
|
|
28090
|
+
n.label = h[1];
|
|
28091
28091
|
break;
|
|
28092
28092
|
}
|
|
28093
|
-
if (h[0] === 6 &&
|
|
28094
|
-
|
|
28093
|
+
if (h[0] === 6 && n.label < c[1]) {
|
|
28094
|
+
n.label = c[1], c = h;
|
|
28095
28095
|
break;
|
|
28096
28096
|
}
|
|
28097
|
-
if (c &&
|
|
28098
|
-
|
|
28097
|
+
if (c && n.label < c[2]) {
|
|
28098
|
+
n.label = c[2], n.ops.push(h);
|
|
28099
28099
|
break;
|
|
28100
28100
|
}
|
|
28101
|
-
c[2] &&
|
|
28101
|
+
c[2] && n.ops.pop(), n.trys.pop();
|
|
28102
28102
|
continue;
|
|
28103
28103
|
}
|
|
28104
|
-
h = l.call(
|
|
28104
|
+
h = l.call(d, n);
|
|
28105
28105
|
} catch (E) {
|
|
28106
28106
|
h = [6, E], b = 0;
|
|
28107
28107
|
} finally {
|
|
@@ -28110,13 +28110,13 @@ function ia() {
|
|
|
28110
28110
|
if (h[0] & 5) throw h[1];
|
|
28111
28111
|
return { value: h[0] ? h[1] : void 0, done: !0 };
|
|
28112
28112
|
}
|
|
28113
|
-
},
|
|
28114
|
-
return
|
|
28113
|
+
}, u = J && J.__importDefault || function(d) {
|
|
28114
|
+
return d && d.__esModule ? d : { default: d };
|
|
28115
28115
|
};
|
|
28116
28116
|
Object.defineProperty(J, "__esModule", { value: !0 }), J.useWebSocket = void 0;
|
|
28117
|
-
var
|
|
28118
|
-
l === void 0 && (l = f.DEFAULT_OPTIONS),
|
|
28119
|
-
var y = (0,
|
|
28117
|
+
var o = ke, p = Gi, f = B(), _ = el(), r = al(), s = u(il()), m = ia(), i = function(d, l, n) {
|
|
28118
|
+
l === void 0 && (l = f.DEFAULT_OPTIONS), n === void 0 && (n = !0);
|
|
28119
|
+
var y = (0, o.useState)(null), b = y[0], c = y[1], T = (0, o.useState)({}), S = T[0], D = T[1], h = (0, o.useMemo)(function() {
|
|
28120
28120
|
if (!l.disableJson && b)
|
|
28121
28121
|
try {
|
|
28122
28122
|
return JSON.parse(b.data);
|
|
@@ -28124,50 +28124,50 @@ function ia() {
|
|
|
28124
28124
|
return f.UNPARSABLE_JSON_OBJECT;
|
|
28125
28125
|
}
|
|
28126
28126
|
return null;
|
|
28127
|
-
}, [b, l.disableJson]), E = (0,
|
|
28128
|
-
}), fe = (0,
|
|
28127
|
+
}, [b, l.disableJson]), E = (0, o.useRef)(null), M = (0, o.useRef)(null), _e = (0, o.useRef)(function() {
|
|
28128
|
+
}), fe = (0, o.useRef)(0), Fe = (0, o.useRef)(Date.now()), Se = (0, o.useRef)([]), Z = (0, o.useRef)(null), H = (0, o.useRef)(l);
|
|
28129
28129
|
H.current = l;
|
|
28130
|
-
var V = E.current && S[E.current] !== void 0 ? S[E.current] :
|
|
28131
|
-
var
|
|
28130
|
+
var V = E.current && S[E.current] !== void 0 ? S[E.current] : d !== null && n === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, ie = l.queryParams ? JSON.stringify(l.queryParams) : null, K = (0, o.useCallback)(function(x, w) {
|
|
28131
|
+
var j;
|
|
28132
28132
|
if (w === void 0 && (w = !0), f.isEventSourceSupported && M.current instanceof EventSource) {
|
|
28133
28133
|
console.warn("Unable to send a message from an eventSource");
|
|
28134
28134
|
return;
|
|
28135
28135
|
}
|
|
28136
|
-
((
|
|
28137
|
-
}, []), Ne = (0,
|
|
28138
|
-
w === void 0 && (w = !0),
|
|
28139
|
-
}, [
|
|
28140
|
-
return H.current.share !== !0 || f.isEventSourceSupported && M.current instanceof EventSource ? M.current : (Z.current === null && M.current && ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), Z.current = (0,
|
|
28136
|
+
((j = M.current) === null || j === void 0 ? void 0 : j.readyState) === f.ReadyState.OPEN ? ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), M.current.send(x)) : w && Se.current.push(x);
|
|
28137
|
+
}, []), Ne = (0, o.useCallback)(function(x, w) {
|
|
28138
|
+
w === void 0 && (w = !0), K(JSON.stringify(x), w);
|
|
28139
|
+
}, [K]), De = (0, o.useCallback)(function() {
|
|
28140
|
+
return H.current.share !== !0 || f.isEventSourceSupported && M.current instanceof EventSource ? M.current : (Z.current === null && M.current && ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), Z.current = (0, s.default)(M.current, _e)), Z.current);
|
|
28141
28141
|
}, []);
|
|
28142
|
-
return (0,
|
|
28143
|
-
if (
|
|
28144
|
-
var x, w = !1,
|
|
28145
|
-
return
|
|
28146
|
-
var
|
|
28147
|
-
return
|
|
28142
|
+
return (0, o.useEffect)(function() {
|
|
28143
|
+
if (d !== null && n === !0) {
|
|
28144
|
+
var x, w = !1, j = !0, Ue = function() {
|
|
28145
|
+
return t(void 0, void 0, void 0, function() {
|
|
28146
|
+
var le, $, Ee;
|
|
28147
|
+
return g(this, function(ue) {
|
|
28148
28148
|
switch (ue.label) {
|
|
28149
28149
|
case 0:
|
|
28150
|
-
return
|
|
28150
|
+
return le = E, [4, (0, r.getUrl)(d, H)];
|
|
28151
28151
|
case 1:
|
|
28152
|
-
return
|
|
28153
|
-
return D(function(
|
|
28154
|
-
return e(e({},
|
|
28152
|
+
return le.current = ue.sent(), E.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), E.current = "ABORTED", (0, p.flushSync)(function() {
|
|
28153
|
+
return D(function(Q) {
|
|
28154
|
+
return e(e({}, Q), { ABORTED: f.ReadyState.CLOSED });
|
|
28155
28155
|
});
|
|
28156
28156
|
}), [
|
|
28157
28157
|
2
|
|
28158
28158
|
/*return*/
|
|
28159
|
-
]) : ($ = function(
|
|
28159
|
+
]) : ($ = function(Q) {
|
|
28160
28160
|
w || (0, p.flushSync)(function() {
|
|
28161
|
-
return c(
|
|
28161
|
+
return c(Q);
|
|
28162
28162
|
});
|
|
28163
|
-
}, Ee = function(
|
|
28163
|
+
}, Ee = function(Q) {
|
|
28164
28164
|
w || (0, p.flushSync)(function() {
|
|
28165
28165
|
return D(function(pe) {
|
|
28166
|
-
var
|
|
28167
|
-
return e(e({}, pe), E.current && (
|
|
28166
|
+
var te;
|
|
28167
|
+
return e(e({}, pe), E.current && (te = {}, te[E.current] = Q, te));
|
|
28168
28168
|
});
|
|
28169
28169
|
});
|
|
28170
|
-
},
|
|
28170
|
+
}, j && (x = (0, _.createOrJoinSocket)(M, E.current, Ee, H, $, _e, fe, Fe, K)), [
|
|
28171
28171
|
2
|
|
28172
28172
|
/*return*/
|
|
28173
28173
|
]);
|
|
@@ -28178,18 +28178,18 @@ function ia() {
|
|
|
28178
28178
|
return _e.current = function() {
|
|
28179
28179
|
w || (Z.current && (Z.current = null), x?.(), Ue());
|
|
28180
28180
|
}, Ue(), function() {
|
|
28181
|
-
w = !0,
|
|
28181
|
+
w = !0, j = !1, Z.current && (Z.current = null), x?.(), c(null);
|
|
28182
28182
|
};
|
|
28183
|
-
} else (
|
|
28183
|
+
} else (d === null || n === !1) && (fe.current = 0, D(function(le) {
|
|
28184
28184
|
var $;
|
|
28185
|
-
return e(e({},
|
|
28185
|
+
return e(e({}, le), E.current && ($ = {}, $[E.current] = f.ReadyState.CLOSED, $));
|
|
28186
28186
|
}));
|
|
28187
|
-
}, [
|
|
28187
|
+
}, [d, n, ie, K]), (0, o.useEffect)(function() {
|
|
28188
28188
|
V === f.ReadyState.OPEN && Se.current.splice(0).forEach(function(x) {
|
|
28189
|
-
|
|
28189
|
+
K(x);
|
|
28190
28190
|
});
|
|
28191
28191
|
}, [V]), {
|
|
28192
|
-
sendMessage:
|
|
28192
|
+
sendMessage: K,
|
|
28193
28193
|
sendJsonMessage: Ne,
|
|
28194
28194
|
lastMessage: b,
|
|
28195
28195
|
lastJsonMessage: h,
|
|
@@ -28199,43 +28199,43 @@ function ia() {
|
|
|
28199
28199
|
};
|
|
28200
28200
|
return J.useWebSocket = i, J;
|
|
28201
28201
|
}
|
|
28202
|
-
var
|
|
28202
|
+
var oe = {}, wa;
|
|
28203
28203
|
function ll() {
|
|
28204
|
-
if (
|
|
28205
|
-
|
|
28206
|
-
var e =
|
|
28204
|
+
if (wa) return oe;
|
|
28205
|
+
wa = 1;
|
|
28206
|
+
var e = oe && oe.__assign || function() {
|
|
28207
28207
|
return e = Object.assign || function(_) {
|
|
28208
|
-
for (var r,
|
|
28209
|
-
r = arguments[
|
|
28208
|
+
for (var r, s = 1, m = arguments.length; s < m; s++) {
|
|
28209
|
+
r = arguments[s];
|
|
28210
28210
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (_[i] = r[i]);
|
|
28211
28211
|
}
|
|
28212
28212
|
return _;
|
|
28213
28213
|
}, e.apply(this, arguments);
|
|
28214
28214
|
};
|
|
28215
|
-
Object.defineProperty(
|
|
28216
|
-
var
|
|
28215
|
+
Object.defineProperty(oe, "__esModule", { value: !0 }), oe.useSocketIO = void 0;
|
|
28216
|
+
var t = ke, g = la(), u = B(), o = {
|
|
28217
28217
|
type: "empty",
|
|
28218
28218
|
payload: null
|
|
28219
28219
|
}, p = function(_) {
|
|
28220
28220
|
if (!_ || !_.data)
|
|
28221
|
-
return
|
|
28221
|
+
return o;
|
|
28222
28222
|
var r = _.data.match(/\[.*]/);
|
|
28223
28223
|
if (!r)
|
|
28224
|
-
return
|
|
28225
|
-
var
|
|
28226
|
-
return !Array.isArray(
|
|
28227
|
-
type:
|
|
28228
|
-
payload:
|
|
28224
|
+
return o;
|
|
28225
|
+
var s = JSON.parse(r);
|
|
28226
|
+
return !Array.isArray(s) || !s[1] ? o : {
|
|
28227
|
+
type: s[0],
|
|
28228
|
+
payload: s[1]
|
|
28229
28229
|
};
|
|
28230
|
-
}, f = function(_, r,
|
|
28231
|
-
r === void 0 && (r =
|
|
28232
|
-
var m = (0,
|
|
28230
|
+
}, f = function(_, r, s) {
|
|
28231
|
+
r === void 0 && (r = u.DEFAULT_OPTIONS), s === void 0 && (s = !0);
|
|
28232
|
+
var m = (0, t.useMemo)(function() {
|
|
28233
28233
|
return e(e({}, r), { fromSocketIO: !0 });
|
|
28234
|
-
}, []), i = (0,
|
|
28235
|
-
return p(
|
|
28236
|
-
}, [
|
|
28234
|
+
}, []), i = (0, g.useWebSocket)(_, m, s), d = i.sendMessage, l = i.sendJsonMessage, n = i.lastMessage, y = i.readyState, b = i.getWebSocket, c = (0, t.useMemo)(function() {
|
|
28235
|
+
return p(n);
|
|
28236
|
+
}, [n]);
|
|
28237
28237
|
return {
|
|
28238
|
-
sendMessage:
|
|
28238
|
+
sendMessage: d,
|
|
28239
28239
|
sendJsonMessage: l,
|
|
28240
28240
|
lastMessage: c,
|
|
28241
28241
|
lastJsonMessage: c,
|
|
@@ -28243,39 +28243,39 @@ function ll() {
|
|
|
28243
28243
|
getWebSocket: b
|
|
28244
28244
|
};
|
|
28245
28245
|
};
|
|
28246
|
-
return
|
|
28246
|
+
return oe.useSocketIO = f, oe;
|
|
28247
28247
|
}
|
|
28248
|
-
var
|
|
28248
|
+
var X = {}, Fa;
|
|
28249
28249
|
function tl() {
|
|
28250
|
-
if (
|
|
28251
|
-
|
|
28252
|
-
var e =
|
|
28250
|
+
if (Fa) return X;
|
|
28251
|
+
Fa = 1;
|
|
28252
|
+
var e = X && X.__assign || function() {
|
|
28253
28253
|
return e = Object.assign || function(f) {
|
|
28254
|
-
for (var _, r = 1,
|
|
28254
|
+
for (var _, r = 1, s = arguments.length; r < s; r++) {
|
|
28255
28255
|
_ = arguments[r];
|
|
28256
28256
|
for (var m in _) Object.prototype.hasOwnProperty.call(_, m) && (f[m] = _[m]);
|
|
28257
28257
|
}
|
|
28258
28258
|
return f;
|
|
28259
28259
|
}, e.apply(this, arguments);
|
|
28260
|
-
},
|
|
28260
|
+
}, t = X && X.__rest || function(f, _) {
|
|
28261
28261
|
var r = {};
|
|
28262
|
-
for (var
|
|
28262
|
+
for (var s in f) Object.prototype.hasOwnProperty.call(f, s) && _.indexOf(s) < 0 && (r[s] = f[s]);
|
|
28263
28263
|
if (f != null && typeof Object.getOwnPropertySymbols == "function")
|
|
28264
|
-
for (var m = 0,
|
|
28265
|
-
_.indexOf(
|
|
28264
|
+
for (var m = 0, s = Object.getOwnPropertySymbols(f); m < s.length; m++)
|
|
28265
|
+
_.indexOf(s[m]) < 0 && Object.prototype.propertyIsEnumerable.call(f, s[m]) && (r[s[m]] = f[s[m]]);
|
|
28266
28266
|
return r;
|
|
28267
28267
|
};
|
|
28268
|
-
Object.defineProperty(
|
|
28269
|
-
var
|
|
28270
|
-
_ === void 0 && (_ =
|
|
28271
|
-
var
|
|
28268
|
+
Object.defineProperty(X, "__esModule", { value: !0 }), X.useEventSource = void 0;
|
|
28269
|
+
var g = ke, u = la(), o = B(), p = function(f, _, r) {
|
|
28270
|
+
_ === void 0 && (_ = o.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
28271
|
+
var s = _.withCredentials, m = _.events, i = t(_, ["withCredentials", "events"]);
|
|
28272
28272
|
r === void 0 && (r = !0);
|
|
28273
|
-
var
|
|
28274
|
-
withCredentials:
|
|
28275
|
-
} }), l = (0,
|
|
28273
|
+
var d = e(e({}, i), { eventSourceOptions: {
|
|
28274
|
+
withCredentials: s
|
|
28275
|
+
} }), l = (0, g.useRef)(o.EMPTY_EVENT_HANDLERS);
|
|
28276
28276
|
m && (l.current = m);
|
|
28277
|
-
var
|
|
28278
|
-
return (0,
|
|
28277
|
+
var n = (0, u.useWebSocket)(f, d, r), y = n.lastMessage, b = n.readyState, c = n.getWebSocket;
|
|
28278
|
+
return (0, g.useEffect)(function() {
|
|
28279
28279
|
y?.type && Object.entries(l.current).forEach(function(T) {
|
|
28280
28280
|
var S = T[0], D = T[1];
|
|
28281
28281
|
S === y.type && D(y);
|
|
@@ -28286,36 +28286,36 @@ function tl() {
|
|
|
28286
28286
|
getEventSource: c
|
|
28287
28287
|
};
|
|
28288
28288
|
};
|
|
28289
|
-
return
|
|
28289
|
+
return X.useEventSource = p, X;
|
|
28290
28290
|
}
|
|
28291
|
-
var
|
|
28291
|
+
var Wa;
|
|
28292
28292
|
function nl() {
|
|
28293
|
-
return
|
|
28293
|
+
return Wa || (Wa = 1, (function(e) {
|
|
28294
28294
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
28295
|
-
var
|
|
28295
|
+
var t = la();
|
|
28296
28296
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
28297
|
-
return
|
|
28297
|
+
return t.useWebSocket;
|
|
28298
28298
|
} });
|
|
28299
|
-
var
|
|
28299
|
+
var g = ll();
|
|
28300
28300
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
28301
|
-
return
|
|
28301
|
+
return g.useSocketIO;
|
|
28302
28302
|
} });
|
|
28303
|
-
var
|
|
28303
|
+
var u = B();
|
|
28304
28304
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
28305
|
-
return
|
|
28305
|
+
return u.ReadyState;
|
|
28306
28306
|
} });
|
|
28307
|
-
var
|
|
28307
|
+
var o = tl();
|
|
28308
28308
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
28309
|
-
return
|
|
28309
|
+
return o.useEventSource;
|
|
28310
28310
|
} });
|
|
28311
|
-
var p =
|
|
28311
|
+
var p = ia();
|
|
28312
28312
|
Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
|
|
28313
28313
|
return p.resetGlobalState;
|
|
28314
28314
|
} });
|
|
28315
28315
|
})(Ie)), Ie;
|
|
28316
28316
|
}
|
|
28317
28317
|
var ml = nl();
|
|
28318
|
-
const rl = /* @__PURE__ */
|
|
28318
|
+
const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
28319
28319
|
DEPOSIT: "deposit",
|
|
28320
28320
|
TRANS_CODE: "transCode",
|
|
28321
28321
|
ERROR: "error",
|
|
@@ -28326,12 +28326,12 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28326
28326
|
TRANSFER_IN_GAME: "transfer_in_game",
|
|
28327
28327
|
CHECK_REQUEST: "CHECK_RREQUEST",
|
|
28328
28328
|
CASH_REGISTER_LIMIT: "cash_register_limit"
|
|
28329
|
-
}, ol = 3e4,
|
|
28329
|
+
}, ol = 3e4, El = ({
|
|
28330
28330
|
socketUrl: e,
|
|
28331
|
-
socketHandlers:
|
|
28332
|
-
options:
|
|
28331
|
+
socketHandlers: t = {},
|
|
28332
|
+
options: g = {}
|
|
28333
28333
|
}) => {
|
|
28334
|
-
const
|
|
28334
|
+
const u = ba(!1), o = ba(t), {
|
|
28335
28335
|
sendMessage: p,
|
|
28336
28336
|
// 發送普通訊息
|
|
28337
28337
|
sendJsonMessage: f,
|
|
@@ -28345,11 +28345,11 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28345
28345
|
} = rl(e, {
|
|
28346
28346
|
queryParams: { key: "wsky" },
|
|
28347
28347
|
onOpen: () => console.log("連線成功"),
|
|
28348
|
-
shouldReconnect: () =>
|
|
28348
|
+
shouldReconnect: () => u.current === !1,
|
|
28349
28349
|
reconnectAttempts: 9999,
|
|
28350
28350
|
reconnectInterval: 1e3,
|
|
28351
|
-
...
|
|
28352
|
-
}),
|
|
28351
|
+
...g
|
|
28352
|
+
}), s = Qe(() => {
|
|
28353
28353
|
try {
|
|
28354
28354
|
return JSON.parse(_?.data);
|
|
28355
28355
|
} catch {
|
|
@@ -28363,23 +28363,23 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28363
28363
|
);
|
|
28364
28364
|
return () => clearInterval(m);
|
|
28365
28365
|
}, [p]), he(() => {
|
|
28366
|
-
|
|
28367
|
-
}, [
|
|
28368
|
-
if (!
|
|
28366
|
+
o.current = t;
|
|
28367
|
+
}, [t]), he(() => {
|
|
28368
|
+
if (!s) return;
|
|
28369
28369
|
const {
|
|
28370
28370
|
onDeposit: m,
|
|
28371
28371
|
onTransCode: i,
|
|
28372
|
-
onError:
|
|
28372
|
+
onError: d,
|
|
28373
28373
|
onUpdateMember: l,
|
|
28374
|
-
onMaintainNotice:
|
|
28374
|
+
onMaintainNotice: n,
|
|
28375
28375
|
onMaintainNoticeMember: y,
|
|
28376
28376
|
onReload: b,
|
|
28377
28377
|
onTransferInGame: c,
|
|
28378
28378
|
onCashRegisterLimit: T
|
|
28379
|
-
} =
|
|
28380
|
-
memberInfoUid: Re(
|
|
28381
|
-
data: Re(
|
|
28382
|
-
memo: Re(
|
|
28379
|
+
} = o.current, S = Re(s, "type", ""), D = {
|
|
28380
|
+
memberInfoUid: Re(s, "member_info_uid", null),
|
|
28381
|
+
data: Re(s, "data", null),
|
|
28382
|
+
memo: Re(s, "memo", null)
|
|
28383
28383
|
};
|
|
28384
28384
|
switch (S) {
|
|
28385
28385
|
case I.DEPOSIT:
|
|
@@ -28389,13 +28389,13 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28389
28389
|
i?.(D);
|
|
28390
28390
|
break;
|
|
28391
28391
|
case I.ERROR:
|
|
28392
|
-
|
|
28392
|
+
d?.(D);
|
|
28393
28393
|
break;
|
|
28394
28394
|
case I.UPDATE_MEMBER:
|
|
28395
28395
|
l?.(D);
|
|
28396
28396
|
break;
|
|
28397
28397
|
case I.MAINTAIN_NOTICE:
|
|
28398
|
-
|
|
28398
|
+
n?.(D);
|
|
28399
28399
|
break;
|
|
28400
28400
|
case I.MAINTAIN_NOTICE_MEMBER:
|
|
28401
28401
|
y?.(D);
|
|
@@ -28414,57 +28414,107 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28414
28414
|
console.warn("Unknown socket type:", S);
|
|
28415
28415
|
break;
|
|
28416
28416
|
}
|
|
28417
|
-
}, [
|
|
28417
|
+
}, [s]), he(() => () => u.current = !0, []), {
|
|
28418
28418
|
sendMessage: p,
|
|
28419
28419
|
sendJsonMessage: f,
|
|
28420
28420
|
readyState: r
|
|
28421
28421
|
// WebSocket 連線狀態
|
|
28422
28422
|
};
|
|
28423
|
-
},
|
|
28424
|
-
const { client: e } =
|
|
28425
|
-
const { data:
|
|
28426
|
-
return
|
|
28427
|
-
}, [e]),
|
|
28428
|
-
return { commonCarouselApi:
|
|
28429
|
-
},
|
|
28430
|
-
const { commonCarouselApi: e } =
|
|
28431
|
-
return
|
|
28423
|
+
}, ei = () => {
|
|
28424
|
+
const { client: e } = ae(), t = A(async () => {
|
|
28425
|
+
const { data: u } = await e.get("/carousels");
|
|
28426
|
+
return u;
|
|
28427
|
+
}, [e]), g = A(async () => await e.get("/marquees"), [e]);
|
|
28428
|
+
return { commonCarouselApi: t, commonMarqueeApi: g };
|
|
28429
|
+
}, Ll = () => {
|
|
28430
|
+
const { commonCarouselApi: e } = ei();
|
|
28431
|
+
return se({
|
|
28432
28432
|
queryKey: ["getCarouselList"],
|
|
28433
28433
|
queryFn: async () => await e()
|
|
28434
28434
|
});
|
|
28435
|
-
},
|
|
28436
|
-
const { lng: e } =
|
|
28437
|
-
return
|
|
28435
|
+
}, Gl = () => {
|
|
28436
|
+
const { lng: e } = ae(), { commonMarqueeApi: t } = ei(), g = Xa(e);
|
|
28437
|
+
return se({
|
|
28438
28438
|
queryKey: ["getMarqueeList"],
|
|
28439
|
-
queryFn: async () =>
|
|
28440
|
-
select: (
|
|
28441
|
-
const
|
|
28442
|
-
return we(
|
|
28439
|
+
queryFn: async () => t(),
|
|
28440
|
+
select: (u) => {
|
|
28441
|
+
const o = u.Marquees;
|
|
28442
|
+
return we(o, (f) => f[g] || f["en-US"]);
|
|
28443
28443
|
}
|
|
28444
28444
|
});
|
|
28445
|
-
}, sl = (
|
|
28446
|
-
const {
|
|
28447
|
-
return
|
|
28445
|
+
}, sl = () => {
|
|
28446
|
+
const { client: e, lng: t } = ae(), g = Xa(t || "tw");
|
|
28447
|
+
return { playGameApi: A(
|
|
28448
|
+
async (o) => {
|
|
28449
|
+
const {
|
|
28450
|
+
gameUid: p = "",
|
|
28451
|
+
// 遊戲唯一標識
|
|
28452
|
+
gameCode: f = "",
|
|
28453
|
+
// 遊戲代碼
|
|
28454
|
+
isMobile: _ = !1,
|
|
28455
|
+
// 是否為行動裝置
|
|
28456
|
+
gameCurrency: r = "",
|
|
28457
|
+
// 遊戲幣別
|
|
28458
|
+
currentCurrency: s = ""
|
|
28459
|
+
// 目前使用的幣別
|
|
28460
|
+
} = o;
|
|
28461
|
+
return await e.post("/game/go", {
|
|
28462
|
+
gameUid: p,
|
|
28463
|
+
gameCode: f,
|
|
28464
|
+
lang: g,
|
|
28465
|
+
is_mobile: _,
|
|
28466
|
+
currency_code: r,
|
|
28467
|
+
gameCurrencyNow: s,
|
|
28468
|
+
walletCurrencyNow: s
|
|
28469
|
+
});
|
|
28470
|
+
},
|
|
28471
|
+
[e, g]
|
|
28472
|
+
) };
|
|
28473
|
+
}, Ml = (e, t) => {
|
|
28474
|
+
const { playGameApi: g } = sl(), { gameUid: u, gameCode: o, isMobile: p, gameCurrency: f, currentCurrency: _ } = e;
|
|
28475
|
+
return Ye({
|
|
28476
|
+
mutationKey: ["playGame"],
|
|
28477
|
+
mutationFn: async () => {
|
|
28478
|
+
const r = await g({
|
|
28479
|
+
gameUid: u,
|
|
28480
|
+
gameCode: o,
|
|
28481
|
+
isMobile: p,
|
|
28482
|
+
gameCurrency: f,
|
|
28483
|
+
currentCurrency: _
|
|
28484
|
+
}), { game_currency: s, lang: m, not_support_iframe: i, portrait: d, url: l } = r;
|
|
28485
|
+
return {
|
|
28486
|
+
gameCurrency: s,
|
|
28487
|
+
lang: m,
|
|
28488
|
+
supportIframe: !i,
|
|
28489
|
+
supportPortrait: d,
|
|
28490
|
+
gameUrl: l
|
|
28491
|
+
};
|
|
28492
|
+
},
|
|
28493
|
+
...t
|
|
28494
|
+
});
|
|
28495
|
+
}, ul = ({ options: e } = {}) => {
|
|
28496
|
+
const { userLoginApi: t } = ce();
|
|
28497
|
+
return Ye({
|
|
28448
28498
|
mutationKey: ["userLogin"],
|
|
28449
|
-
mutationFn: async (
|
|
28499
|
+
mutationFn: async (g) => t(g),
|
|
28450
28500
|
...e
|
|
28451
28501
|
});
|
|
28452
|
-
},
|
|
28453
|
-
const { userLogoutApi:
|
|
28454
|
-
return
|
|
28502
|
+
}, pl = ({ options: e } = {}) => {
|
|
28503
|
+
const { userLogoutApi: t } = ce();
|
|
28504
|
+
return Ye({
|
|
28455
28505
|
mutationKey: ["userLogout"],
|
|
28456
|
-
mutationFn: async () =>
|
|
28506
|
+
mutationFn: async () => t(),
|
|
28457
28507
|
...e
|
|
28458
28508
|
});
|
|
28459
|
-
},
|
|
28509
|
+
}, Rl = ({
|
|
28460
28510
|
options: e = {
|
|
28461
28511
|
login: {},
|
|
28462
28512
|
logout: {}
|
|
28463
28513
|
}
|
|
28464
28514
|
} = {}) => {
|
|
28465
|
-
const
|
|
28466
|
-
return { login:
|
|
28467
|
-
},
|
|
28515
|
+
const t = ul({ options: e.login }), g = pl({ options: e.logout });
|
|
28516
|
+
return { login: t, logout: g };
|
|
28517
|
+
}, Ja = (e) => {
|
|
28468
28518
|
switch (e) {
|
|
28469
28519
|
case "tw":
|
|
28470
28520
|
return "Tw";
|
|
@@ -28483,11 +28533,11 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28483
28533
|
default:
|
|
28484
28534
|
return "En";
|
|
28485
28535
|
}
|
|
28486
|
-
},
|
|
28487
|
-
const { lng:
|
|
28488
|
-
gameCode:
|
|
28536
|
+
}, gl = "https://d1h3qe8voog6w4.cloudfront.net", za = "https://d3jx2uvukujuvn.cloudfront.net", Va = "game-icon-ds88", Pl = ({ gameData: e = {} } = {}) => {
|
|
28537
|
+
const { lng: t } = ae(), g = Ja(t), {
|
|
28538
|
+
gameCode: u,
|
|
28489
28539
|
// 遊戲代碼
|
|
28490
|
-
gameUid:
|
|
28540
|
+
gameUid: o,
|
|
28491
28541
|
// 遊戲唯一標識符
|
|
28492
28542
|
gameTypeUid: p,
|
|
28493
28543
|
// 遊戲類型唯一標識符
|
|
@@ -28498,17 +28548,17 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28498
28548
|
// 支援貨幣
|
|
28499
28549
|
enterLobbyMode: r,
|
|
28500
28550
|
// 進入大廳模式
|
|
28501
|
-
game_platform:
|
|
28551
|
+
game_platform: s,
|
|
28502
28552
|
// 遊戲平台
|
|
28503
28553
|
game_subtype: m,
|
|
28504
28554
|
// 遊戲子類型
|
|
28505
28555
|
game_type: i,
|
|
28506
28556
|
// 遊戲類型
|
|
28507
|
-
game_tags:
|
|
28557
|
+
game_tags: d,
|
|
28508
28558
|
// 遊戲標籤
|
|
28509
28559
|
isUnderMaintenance: l,
|
|
28510
28560
|
// 是否維護中
|
|
28511
|
-
support_vertical:
|
|
28561
|
+
support_vertical: n,
|
|
28512
28562
|
// 是否支援直向
|
|
28513
28563
|
support_horizontal: y,
|
|
28514
28564
|
// 是否支援橫向
|
|
@@ -28522,20 +28572,20 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28522
28572
|
// 越南名稱
|
|
28523
28573
|
gameNameTw: D
|
|
28524
28574
|
// 繁體中文名稱
|
|
28525
|
-
} = e, h = e?.[`gameName${
|
|
28575
|
+
} = e, h = e?.[`gameName${Ja(g)}`], E = `${za}/${Va}/en/${s}/${Ta(u, / /g, "_")}.webp`, M = `${za}/${Va}/en/${s}/${Ta(u, / /g, "_")}.gif`;
|
|
28526
28576
|
return {
|
|
28527
|
-
gameCode:
|
|
28528
|
-
gameUid:
|
|
28577
|
+
gameCode: u,
|
|
28578
|
+
gameUid: o,
|
|
28529
28579
|
gameTypeUid: p,
|
|
28530
28580
|
providerUid: f,
|
|
28531
28581
|
supportCurrency: _,
|
|
28532
28582
|
enterLobbyMode: r,
|
|
28533
|
-
gamePlatform:
|
|
28583
|
+
gamePlatform: s,
|
|
28534
28584
|
gameSubType: m,
|
|
28535
28585
|
gameType: i,
|
|
28536
|
-
gameTags:
|
|
28586
|
+
gameTags: d,
|
|
28537
28587
|
isUnderMaintenance: l,
|
|
28538
|
-
supportVertical:
|
|
28588
|
+
supportVertical: n,
|
|
28539
28589
|
supportHorizontal: y,
|
|
28540
28590
|
userClickCount: b,
|
|
28541
28591
|
gameNameEn: c,
|
|
@@ -28546,7 +28596,7 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28546
28596
|
gameImageUrl: E,
|
|
28547
28597
|
gameImageUrlAnimated: M
|
|
28548
28598
|
};
|
|
28549
|
-
},
|
|
28599
|
+
}, dl = "ds88platformIcon", cl = (e, t = !1) => Li([
|
|
28550
28600
|
"EVO",
|
|
28551
28601
|
"IMSPRIBE",
|
|
28552
28602
|
"SABA",
|
|
@@ -28557,13 +28607,13 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28557
28607
|
"HACK",
|
|
28558
28608
|
"NAGA",
|
|
28559
28609
|
"RSG"
|
|
28560
|
-
], e) &&
|
|
28610
|
+
], e) && t ? `${e}_dark` : e, xl = ({ platformData: e, darkMode: t } = {}) => {
|
|
28561
28611
|
const {
|
|
28562
|
-
SubPlatformEnum:
|
|
28612
|
+
SubPlatformEnum: g,
|
|
28563
28613
|
// 子平台枚舉
|
|
28564
|
-
platformEnum:
|
|
28614
|
+
platformEnum: u,
|
|
28565
28615
|
// 平台枚舉
|
|
28566
|
-
isUnderMaintenance:
|
|
28616
|
+
isUnderMaintenance: o,
|
|
28567
28617
|
// 是否維護中
|
|
28568
28618
|
maintenanceStartTime: p,
|
|
28569
28619
|
// 維護開始時間
|
|
@@ -28573,65 +28623,66 @@ const rl = /* @__PURE__ */ Gi(ml), I = {
|
|
|
28573
28623
|
// 平台代碼
|
|
28574
28624
|
platformUid: r,
|
|
28575
28625
|
// 平台唯一標識符
|
|
28576
|
-
platformMode:
|
|
28626
|
+
platformMode: s,
|
|
28577
28627
|
// 平台模式
|
|
28578
28628
|
temp_maintenance_start_time: m,
|
|
28579
28629
|
// 臨時維護開始時間
|
|
28580
28630
|
temp_maintenance_end_time: i
|
|
28581
28631
|
// 臨時維護結束時間
|
|
28582
|
-
} = e || {},
|
|
28632
|
+
} = e || {}, d = `${gl}/${dl}/${cl(u, t)}.png`;
|
|
28583
28633
|
return {
|
|
28584
|
-
subPlatformEnum:
|
|
28585
|
-
platformEnum:
|
|
28586
|
-
isUnderMaintenance:
|
|
28634
|
+
subPlatformEnum: g,
|
|
28635
|
+
platformEnum: u,
|
|
28636
|
+
isUnderMaintenance: o,
|
|
28587
28637
|
maintenanceStartTime: p,
|
|
28588
28638
|
maintenanceEndTime: f,
|
|
28589
28639
|
platform: _,
|
|
28590
28640
|
platformUid: r,
|
|
28591
|
-
platformMode:
|
|
28641
|
+
platformMode: s,
|
|
28592
28642
|
tempMaintenanceStartTime: m,
|
|
28593
28643
|
tempMaintenanceEndTime: i,
|
|
28594
|
-
platformImageUrl:
|
|
28644
|
+
platformImageUrl: d
|
|
28595
28645
|
};
|
|
28596
28646
|
};
|
|
28597
28647
|
export {
|
|
28598
28648
|
Ba as ApiCtx,
|
|
28599
|
-
|
|
28649
|
+
kl as ApiProvider,
|
|
28600
28650
|
Ka as GamesInfoCtx,
|
|
28601
|
-
|
|
28602
|
-
|
|
28603
|
-
|
|
28604
|
-
|
|
28605
|
-
|
|
28606
|
-
|
|
28607
|
-
|
|
28608
|
-
|
|
28609
|
-
|
|
28610
|
-
|
|
28651
|
+
Ii as buildMultiTypes,
|
|
28652
|
+
vl as buildMultiTypesWithSubTypes,
|
|
28653
|
+
Fi as buildSinglePlatformWithSubTypes,
|
|
28654
|
+
wi as buildSingleType,
|
|
28655
|
+
Zi as categorizeGames,
|
|
28656
|
+
Xa as convertLanguageCode,
|
|
28657
|
+
Cl as createLogoutHandler,
|
|
28658
|
+
zi as extractGameSubTypeNames,
|
|
28659
|
+
Ji as extractGameTypeNames,
|
|
28660
|
+
ka as extractPlatformNames,
|
|
28611
28661
|
qa as filterGamesByPlatform,
|
|
28612
28662
|
ja as findGameTypeUid,
|
|
28613
28663
|
Qa as findPlatformUid,
|
|
28614
28664
|
Ya as findSubPlatform,
|
|
28615
|
-
|
|
28616
|
-
|
|
28617
|
-
|
|
28618
|
-
|
|
28619
|
-
|
|
28665
|
+
Wi as flattenAllGames,
|
|
28666
|
+
Vi as flattenFavoriteGames,
|
|
28667
|
+
Ai as groupGamesByPlatform,
|
|
28668
|
+
Bi as groupGamesByPlatformAndSubType,
|
|
28669
|
+
Hi as groupGamesBySubType,
|
|
28620
28670
|
Yi as initMockWindowData,
|
|
28621
|
-
|
|
28622
|
-
|
|
28623
|
-
|
|
28624
|
-
|
|
28625
|
-
|
|
28626
|
-
|
|
28627
|
-
|
|
28671
|
+
Ki as processGameInfo,
|
|
28672
|
+
hl as processPlatformData,
|
|
28673
|
+
ae as useApiContext,
|
|
28674
|
+
Sl as useBalanceGetter,
|
|
28675
|
+
El as useClientWebSocket,
|
|
28676
|
+
Pl as useGameConfig,
|
|
28677
|
+
Tl as useGameInfoContext,
|
|
28628
28678
|
Qi as useGamesInfo,
|
|
28629
|
-
|
|
28630
|
-
|
|
28631
|
-
|
|
28632
|
-
|
|
28633
|
-
|
|
28634
|
-
|
|
28635
|
-
|
|
28636
|
-
|
|
28679
|
+
Ll as useGetCarouseList,
|
|
28680
|
+
Gl as useGetMarquee,
|
|
28681
|
+
Nl as useGetMemberInfo,
|
|
28682
|
+
Dl as useInitializeWithToken,
|
|
28683
|
+
ul as useLogin,
|
|
28684
|
+
pl as useLogout,
|
|
28685
|
+
xl as usePlatformConfig,
|
|
28686
|
+
Ml as usePlayGame,
|
|
28687
|
+
Rl as useUser
|
|
28637
28688
|
};
|