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