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