@obb871001/api-integration-sdk 1.0.403 → 1.0.405
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -8
- package/dist/index.js +646 -629
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import fe, { createContext as jt, useContext as _i, useState as at, useMemo as Ha, useCallback as H, useRef as
|
|
1
|
+
import fe, { createContext as jt, useContext as _i, useState as at, useMemo as Ha, useCallback as H, useRef as ie, useEffect as ue } from "react";
|
|
2
2
|
import { useQueries as In, useQuery as Q, useQueryClient as xa, useMutation as ee, QueryClient as Wr, QueryClientProvider as zr } from "@tanstack/react-query";
|
|
3
3
|
import Ir from "axios";
|
|
4
|
-
import { get as j, isEmpty as
|
|
4
|
+
import { get as j, isEmpty as Re, find as We, entries as Vn, forEach as Vr, map as Se, isArray as Ye, toLower as Ni, omit as Jr, keyBy as Zr, replace as rt, includes as Kr, isObject as Yt, flatMap as Xt, values as qr, keys as Li } from "lodash";
|
|
5
5
|
import $r from "react-dom";
|
|
6
6
|
var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function yi(e) {
|
|
@@ -60,16 +60,16 @@ function Yr() {
|
|
|
60
60
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
61
|
function f(k) {
|
|
62
62
|
{
|
|
63
|
-
for (var I = arguments.length,
|
|
64
|
-
|
|
65
|
-
b("error", k,
|
|
63
|
+
for (var I = arguments.length, K = new Array(I > 1 ? I - 1 : 0), X = 1; X < I; X++)
|
|
64
|
+
K[X - 1] = arguments[X];
|
|
65
|
+
b("error", k, K);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function b(k, I,
|
|
68
|
+
function b(k, I, K) {
|
|
69
69
|
{
|
|
70
|
-
var
|
|
71
|
-
me !== "" && (I += "%s",
|
|
72
|
-
var de =
|
|
70
|
+
var X = y.ReactDebugCurrentFrame, me = X.getStackAddendum();
|
|
71
|
+
me !== "" && (I += "%s", K = K.concat([me]));
|
|
72
|
+
var de = K.map(function(oe) {
|
|
73
73
|
return String(oe);
|
|
74
74
|
});
|
|
75
75
|
de.unshift("Warning: " + I), Function.prototype.apply.call(console[k], console, de);
|
|
@@ -84,12 +84,12 @@ function Yr() {
|
|
|
84
84
|
// with.
|
|
85
85
|
k.$$typeof === A || k.getModuleId !== void 0));
|
|
86
86
|
}
|
|
87
|
-
function S(k, I,
|
|
88
|
-
var
|
|
89
|
-
if (
|
|
90
|
-
return
|
|
87
|
+
function S(k, I, K) {
|
|
88
|
+
var X = k.displayName;
|
|
89
|
+
if (X)
|
|
90
|
+
return X;
|
|
91
91
|
var me = I.displayName || I.name || "";
|
|
92
|
-
return me !== "" ?
|
|
92
|
+
return me !== "" ? K + "(" + me + ")" : K;
|
|
93
93
|
}
|
|
94
94
|
function F(k) {
|
|
95
95
|
return k.displayName || "Context";
|
|
@@ -121,13 +121,13 @@ function Yr() {
|
|
|
121
121
|
var I = k;
|
|
122
122
|
return F(I) + ".Consumer";
|
|
123
123
|
case U:
|
|
124
|
-
var
|
|
125
|
-
return F(
|
|
124
|
+
var K = k;
|
|
125
|
+
return F(K._context) + ".Provider";
|
|
126
126
|
case l:
|
|
127
127
|
return S(k, k.render, "ForwardRef");
|
|
128
128
|
case o:
|
|
129
|
-
var
|
|
130
|
-
return
|
|
129
|
+
var X = k.displayName || null;
|
|
130
|
+
return X !== null ? X : P(k.type) || "Memo";
|
|
131
131
|
case s: {
|
|
132
132
|
var me = k, de = me._payload, oe = me._init;
|
|
133
133
|
try {
|
|
@@ -166,7 +166,7 @@ function Yr() {
|
|
|
166
166
|
R++;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function J() {
|
|
170
170
|
{
|
|
171
171
|
if (R--, R === 0) {
|
|
172
172
|
var k = {
|
|
@@ -201,39 +201,39 @@ function Yr() {
|
|
|
201
201
|
R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
204
|
+
var q = y.ReactCurrentDispatcher, $;
|
|
205
|
+
function V(k, I, K) {
|
|
206
206
|
{
|
|
207
|
-
if (
|
|
207
|
+
if ($ === void 0)
|
|
208
208
|
try {
|
|
209
209
|
throw Error();
|
|
210
210
|
} catch (me) {
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var X = me.stack.trim().match(/\n( *(at )?)/);
|
|
212
|
+
$ = X && X[1] || "";
|
|
213
213
|
}
|
|
214
214
|
return `
|
|
215
|
-
` +
|
|
215
|
+
` + $ + k;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var Y = !1, ae;
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
|
|
220
|
+
var be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
|
+
ae = new be();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
if (!k ||
|
|
223
|
+
function Ce(k, I) {
|
|
224
|
+
if (!k || Y)
|
|
225
225
|
return "";
|
|
226
226
|
{
|
|
227
|
-
var
|
|
228
|
-
if (
|
|
229
|
-
return
|
|
227
|
+
var K = ae.get(k);
|
|
228
|
+
if (K !== void 0)
|
|
229
|
+
return K;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var X;
|
|
232
|
+
Y = !0;
|
|
233
233
|
var me = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
235
|
var de;
|
|
236
|
-
de =
|
|
236
|
+
de = q.current, q.current = null, N();
|
|
237
237
|
try {
|
|
238
238
|
if (I) {
|
|
239
239
|
var oe = function() {
|
|
@@ -246,122 +246,122 @@ function Yr() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(oe, []);
|
|
249
|
-
} catch (
|
|
250
|
-
|
|
249
|
+
} catch (Je) {
|
|
250
|
+
X = Je;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(k, [], oe);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
oe.call();
|
|
256
|
-
} catch (
|
|
257
|
-
|
|
256
|
+
} catch (Je) {
|
|
257
|
+
X = Je;
|
|
258
258
|
}
|
|
259
259
|
k.call(oe.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
263
263
|
throw Error();
|
|
264
|
-
} catch (
|
|
265
|
-
|
|
264
|
+
} catch (Je) {
|
|
265
|
+
X = Je;
|
|
266
266
|
}
|
|
267
267
|
k();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var
|
|
272
|
-
`),
|
|
273
|
-
`),
|
|
274
|
-
|
|
275
|
-
for (;
|
|
276
|
-
if (
|
|
277
|
-
if (
|
|
269
|
+
} catch (Je) {
|
|
270
|
+
if (Je && X && typeof Je.stack == "string") {
|
|
271
|
+
for (var ne = Je.stack.split(`
|
|
272
|
+
`), Ie = X.stack.split(`
|
|
273
|
+
`), he = ne.length - 1, ke = Ie.length - 1; he >= 1 && ke >= 0 && ne[he] !== Ie[ke]; )
|
|
274
|
+
ke--;
|
|
275
|
+
for (; he >= 1 && ke >= 0; he--, ke--)
|
|
276
|
+
if (ne[he] !== Ie[ke]) {
|
|
277
|
+
if (he !== 1 || ke !== 1)
|
|
278
278
|
do
|
|
279
|
-
if (
|
|
279
|
+
if (he--, ke--, ke < 0 || ne[he] !== Ie[ke]) {
|
|
280
280
|
var je = `
|
|
281
|
-
` +
|
|
282
|
-
return k.displayName && je.includes("<anonymous>") && (je = je.replace("<anonymous>", k.displayName)), typeof k == "function" &&
|
|
281
|
+
` + ne[he].replace(" at new ", " at ");
|
|
282
|
+
return k.displayName && je.includes("<anonymous>") && (je = je.replace("<anonymous>", k.displayName)), typeof k == "function" && ae.set(k, je), je;
|
|
283
283
|
}
|
|
284
|
-
while (
|
|
284
|
+
while (he >= 1 && ke >= 0);
|
|
285
285
|
break;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
|
|
289
|
+
Y = !1, q.current = de, J(), Error.prepareStackTrace = me;
|
|
290
290
|
}
|
|
291
|
-
var wa = k ? k.displayName || k.name : "", ba = wa ?
|
|
292
|
-
return typeof k == "function" &&
|
|
291
|
+
var wa = k ? k.displayName || k.name : "", ba = wa ? V(wa) : "";
|
|
292
|
+
return typeof k == "function" && ae.set(k, ba), ba;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
294
|
+
function pe(k, I, K) {
|
|
295
|
+
return Ce(k, !1);
|
|
296
296
|
}
|
|
297
297
|
function _e(k) {
|
|
298
298
|
var I = k.prototype;
|
|
299
299
|
return !!(I && I.isReactComponent);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Ee(k, I, K) {
|
|
302
302
|
if (k == null)
|
|
303
303
|
return "";
|
|
304
304
|
if (typeof k == "function")
|
|
305
|
-
return
|
|
305
|
+
return Ce(k, _e(k));
|
|
306
306
|
if (typeof k == "string")
|
|
307
|
-
return
|
|
307
|
+
return V(k);
|
|
308
308
|
switch (k) {
|
|
309
309
|
case t:
|
|
310
|
-
return
|
|
310
|
+
return V("Suspense");
|
|
311
311
|
case i:
|
|
312
|
-
return
|
|
312
|
+
return V("SuspenseList");
|
|
313
313
|
}
|
|
314
314
|
if (typeof k == "object")
|
|
315
315
|
switch (k.$$typeof) {
|
|
316
316
|
case l:
|
|
317
|
-
return
|
|
317
|
+
return pe(k.render);
|
|
318
318
|
case o:
|
|
319
|
-
return
|
|
319
|
+
return Ee(k.type, I, K);
|
|
320
320
|
case s: {
|
|
321
|
-
var
|
|
321
|
+
var X = k, me = X._payload, de = X._init;
|
|
322
322
|
try {
|
|
323
|
-
return
|
|
323
|
+
return Ee(de(me), I, K);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
330
|
+
var ve = Object.prototype.hasOwnProperty, ce = {}, ge = y.ReactDebugCurrentFrame;
|
|
331
|
+
function ye(k) {
|
|
332
332
|
if (k) {
|
|
333
|
-
var I = k._owner,
|
|
334
|
-
|
|
333
|
+
var I = k._owner, K = Ee(k.type, k._source, I ? I.type : null);
|
|
334
|
+
ge.setExtraStackFrame(K);
|
|
335
335
|
} else
|
|
336
|
-
|
|
336
|
+
ge.setExtraStackFrame(null);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function ze(k, I, K, X, me) {
|
|
339
339
|
{
|
|
340
|
-
var de = Function.call.bind(
|
|
340
|
+
var de = Function.call.bind(ve);
|
|
341
341
|
for (var oe in k)
|
|
342
342
|
if (de(k, oe)) {
|
|
343
|
-
var
|
|
343
|
+
var ne = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof k[oe] != "function") {
|
|
346
|
-
var
|
|
347
|
-
throw
|
|
346
|
+
var Ie = Error((X || "React class") + ": " + K + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof k[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw Ie.name = "Invariant Violation", Ie;
|
|
348
348
|
}
|
|
349
|
-
|
|
350
|
-
} catch (
|
|
351
|
-
|
|
349
|
+
ne = k[oe](I, oe, X, K, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
|
+
} catch (he) {
|
|
351
|
+
ne = he;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
ne && !(ne instanceof Error) && (ye(me), f("%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).", X || "React class", K, oe, typeof ne), ye(null)), ne instanceof Error && !(ne.message in ce) && (ce[ne.message] = !0, ye(me), f("Failed %s type: %s", K, ne.message), ye(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
var
|
|
358
|
-
function
|
|
359
|
-
return
|
|
357
|
+
var De = Array.isArray;
|
|
358
|
+
function Te(k) {
|
|
359
|
+
return De(k);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ve(k) {
|
|
362
362
|
{
|
|
363
|
-
var I = typeof Symbol == "function" && Symbol.toStringTag,
|
|
364
|
-
return
|
|
363
|
+
var I = typeof Symbol == "function" && Symbol.toStringTag, K = I && k[Symbol.toStringTag] || k.constructor.name || "Object";
|
|
364
|
+
return K;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
function ta(k) {
|
|
@@ -374,18 +374,18 @@ function Yr() {
|
|
|
374
374
|
function ia(k) {
|
|
375
375
|
return "" + k;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Ne(k) {
|
|
378
378
|
if (ta(k))
|
|
379
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
379
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(k)), ia(k);
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var Oe = y.ReactCurrentOwner, Xe = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
385
385
|
__source: !0
|
|
386
386
|
}, oa, ga;
|
|
387
387
|
function Ze(k) {
|
|
388
|
-
if (
|
|
388
|
+
if (ve.call(k, "ref")) {
|
|
389
389
|
var I = Object.getOwnPropertyDescriptor(k, "ref").get;
|
|
390
390
|
if (I && I.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -393,7 +393,7 @@ function Yr() {
|
|
|
393
393
|
return k.ref !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function ea(k) {
|
|
396
|
-
if (
|
|
396
|
+
if (ve.call(k, "key")) {
|
|
397
397
|
var I = Object.getOwnPropertyDescriptor(k, "key").get;
|
|
398
398
|
if (I && I.isReactWarning)
|
|
399
399
|
return !1;
|
|
@@ -401,82 +401,82 @@ function Yr() {
|
|
|
401
401
|
return k.key !== void 0;
|
|
402
402
|
}
|
|
403
403
|
function Ja(k, I) {
|
|
404
|
-
typeof k.ref == "string" &&
|
|
404
|
+
typeof k.ref == "string" && Oe.current;
|
|
405
405
|
}
|
|
406
406
|
function Na(k, I) {
|
|
407
407
|
{
|
|
408
|
-
var
|
|
408
|
+
var K = function() {
|
|
409
409
|
oa || (oa = !0, f("%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)", I));
|
|
410
410
|
};
|
|
411
|
-
|
|
412
|
-
get:
|
|
411
|
+
K.isReactWarning = !0, Object.defineProperty(k, "key", {
|
|
412
|
+
get: K,
|
|
413
413
|
configurable: !0
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
function La(k, I) {
|
|
418
418
|
{
|
|
419
|
-
var
|
|
419
|
+
var K = function() {
|
|
420
420
|
ga || (ga = !0, f("%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)", I));
|
|
421
421
|
};
|
|
422
|
-
|
|
423
|
-
get:
|
|
422
|
+
K.isReactWarning = !0, Object.defineProperty(k, "ref", {
|
|
423
|
+
get: K,
|
|
424
424
|
configurable: !0
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Za = function(k, I,
|
|
429
|
-
var
|
|
428
|
+
var Za = function(k, I, K, X, me, de, oe) {
|
|
429
|
+
var ne = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: n,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: k,
|
|
434
434
|
key: I,
|
|
435
|
-
ref:
|
|
435
|
+
ref: K,
|
|
436
436
|
props: oe,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
438
|
_owner: de
|
|
439
439
|
};
|
|
440
|
-
return
|
|
440
|
+
return ne._store = {}, Object.defineProperty(ne._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !0,
|
|
444
444
|
value: !1
|
|
445
|
-
}), Object.defineProperty(
|
|
445
|
+
}), Object.defineProperty(ne, "_self", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
450
|
-
}), Object.defineProperty(
|
|
449
|
+
value: X
|
|
450
|
+
}), Object.defineProperty(ne, "_source", {
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
453
453
|
writable: !1,
|
|
454
454
|
value: me
|
|
455
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
}), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
|
|
456
456
|
};
|
|
457
|
-
function Ka(k, I,
|
|
457
|
+
function Ka(k, I, K, X, me) {
|
|
458
458
|
{
|
|
459
|
-
var de, oe = {},
|
|
460
|
-
|
|
459
|
+
var de, oe = {}, ne = null, Ie = null;
|
|
460
|
+
K !== void 0 && (Ne(K), ne = "" + K), ea(I) && (Ne(I.key), ne = "" + I.key), Ze(I) && (Ie = I.ref, Ja(I, me));
|
|
461
461
|
for (de in I)
|
|
462
|
-
|
|
462
|
+
ve.call(I, de) && !Xe.hasOwnProperty(de) && (oe[de] = I[de]);
|
|
463
463
|
if (k && k.defaultProps) {
|
|
464
|
-
var
|
|
465
|
-
for (de in
|
|
466
|
-
oe[de] === void 0 && (oe[de] =
|
|
464
|
+
var he = k.defaultProps;
|
|
465
|
+
for (de in he)
|
|
466
|
+
oe[de] === void 0 && (oe[de] = he[de]);
|
|
467
467
|
}
|
|
468
|
-
if (
|
|
469
|
-
var
|
|
470
|
-
|
|
468
|
+
if (ne || Ie) {
|
|
469
|
+
var ke = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
470
|
+
ne && Na(oe, ke), Ie && La(oe, ke);
|
|
471
471
|
}
|
|
472
|
-
return Za(k,
|
|
472
|
+
return Za(k, ne, Ie, me, X, Oe.current, oe);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
|
|
476
476
|
function Qe(k) {
|
|
477
477
|
if (k) {
|
|
478
|
-
var I = k._owner,
|
|
479
|
-
ya.setExtraStackFrame(
|
|
478
|
+
var I = k._owner, K = Ee(k.type, k._source, I ? I.type : null);
|
|
479
|
+
ya.setExtraStackFrame(K);
|
|
480
480
|
} else
|
|
481
481
|
ya.setExtraStackFrame(null);
|
|
482
482
|
}
|
|
@@ -505,10 +505,10 @@ Check the render method of \`` + k + "`.";
|
|
|
505
505
|
{
|
|
506
506
|
var I = Ga();
|
|
507
507
|
if (!I) {
|
|
508
|
-
var
|
|
509
|
-
|
|
508
|
+
var K = typeof k == "string" ? k : k.displayName || k.name;
|
|
509
|
+
K && (I = `
|
|
510
510
|
|
|
511
|
-
Check the top-level render call using <` +
|
|
511
|
+
Check the top-level render call using <` + K + ">.");
|
|
512
512
|
}
|
|
513
513
|
return I;
|
|
514
514
|
}
|
|
@@ -518,22 +518,22 @@ Check the top-level render call using <` + q + ">.");
|
|
|
518
518
|
if (!k._store || k._store.validated || k.key != null)
|
|
519
519
|
return;
|
|
520
520
|
k._store.validated = !0;
|
|
521
|
-
var
|
|
522
|
-
if (Ua[
|
|
521
|
+
var K = Ra(I);
|
|
522
|
+
if (Ua[K])
|
|
523
523
|
return;
|
|
524
|
-
Ua[
|
|
525
|
-
var
|
|
526
|
-
k && k._owner && k._owner !== da.current && (
|
|
524
|
+
Ua[K] = !0;
|
|
525
|
+
var X = "";
|
|
526
|
+
k && k._owner && k._owner !== da.current && (X = " It was passed a child from " + P(k._owner.type) + "."), Qe(k), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, X), Qe(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Le(k, I) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof k != "object")
|
|
532
532
|
return;
|
|
533
|
-
if (
|
|
534
|
-
for (var
|
|
535
|
-
var
|
|
536
|
-
fa(
|
|
533
|
+
if (Te(k))
|
|
534
|
+
for (var K = 0; K < k.length; K++) {
|
|
535
|
+
var X = k[K];
|
|
536
|
+
fa(X) && Pa(X, I);
|
|
537
537
|
}
|
|
538
538
|
else if (fa(k))
|
|
539
539
|
k._store && (k._store.validated = !0);
|
|
@@ -545,23 +545,23 @@ Check the top-level render call using <` + q + ">.");
|
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Z(k) {
|
|
549
549
|
{
|
|
550
550
|
var I = k.type;
|
|
551
551
|
if (I == null || typeof I == "string")
|
|
552
552
|
return;
|
|
553
|
-
var
|
|
553
|
+
var K;
|
|
554
554
|
if (typeof I == "function")
|
|
555
|
-
|
|
555
|
+
K = I.propTypes;
|
|
556
556
|
else if (typeof I == "object" && (I.$$typeof === l || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
558
|
I.$$typeof === o))
|
|
559
|
-
|
|
559
|
+
K = I.propTypes;
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
|
-
if (
|
|
563
|
-
var
|
|
564
|
-
|
|
562
|
+
if (K) {
|
|
563
|
+
var X = P(I);
|
|
564
|
+
ze(K, k.props, "prop", X, k);
|
|
565
565
|
} else if (I.PropTypes !== void 0 && !ca) {
|
|
566
566
|
ca = !0;
|
|
567
567
|
var me = P(I);
|
|
@@ -570,12 +570,12 @@ Check the top-level render call using <` + q + ">.");
|
|
|
570
570
|
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Ge(k) {
|
|
574
574
|
{
|
|
575
|
-
for (var I = Object.keys(k.props),
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
Qe(k), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
575
|
+
for (var I = Object.keys(k.props), K = 0; K < I.length; K++) {
|
|
576
|
+
var X = I[K];
|
|
577
|
+
if (X !== "children" && X !== "key") {
|
|
578
|
+
Qe(k), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", X), Qe(null);
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
@@ -583,39 +583,39 @@ Check the top-level render call using <` + q + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var na = {};
|
|
586
|
-
function
|
|
586
|
+
function Be(k, I, K, X, me, de) {
|
|
587
587
|
{
|
|
588
588
|
var oe = T(k);
|
|
589
589
|
if (!oe) {
|
|
590
|
-
var
|
|
591
|
-
(k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (
|
|
592
|
-
var
|
|
593
|
-
|
|
594
|
-
var
|
|
595
|
-
k === null ?
|
|
590
|
+
var ne = "";
|
|
591
|
+
(k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
592
|
+
var Ie = Ma();
|
|
593
|
+
Ie ? ne += Ie : ne += Ga();
|
|
594
|
+
var he;
|
|
595
|
+
k === null ? he = "null" : Te(k) ? he = "array" : k !== void 0 && k.$$typeof === n ? (he = "<" + (P(k.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : he = typeof k, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, ne);
|
|
596
596
|
}
|
|
597
|
-
var
|
|
598
|
-
if (
|
|
599
|
-
return
|
|
597
|
+
var ke = Ka(k, I, K, me, de);
|
|
598
|
+
if (ke == null)
|
|
599
|
+
return ke;
|
|
600
600
|
if (oe) {
|
|
601
601
|
var je = I.children;
|
|
602
602
|
if (je !== void 0)
|
|
603
|
-
if (
|
|
604
|
-
if (
|
|
603
|
+
if (X)
|
|
604
|
+
if (Te(je)) {
|
|
605
605
|
for (var wa = 0; wa < je.length; wa++)
|
|
606
|
-
|
|
606
|
+
Le(je[wa], k);
|
|
607
607
|
Object.freeze && Object.freeze(je);
|
|
608
608
|
} else
|
|
609
609
|
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
610
610
|
else
|
|
611
|
-
|
|
611
|
+
Le(je, k);
|
|
612
612
|
}
|
|
613
|
-
if (
|
|
614
|
-
var ba = P(k),
|
|
613
|
+
if (ve.call(I, "key")) {
|
|
614
|
+
var ba = P(k), Je = Object.keys(I).filter(function(Hr) {
|
|
615
615
|
return Hr !== "key";
|
|
616
|
-
}), ti =
|
|
616
|
+
}), ti = Je.length > 0 ? "{key: someKey, " + Je.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!na[ba + ti]) {
|
|
618
|
-
var Br =
|
|
618
|
+
var Br = Je.length > 0 ? "{" + Je.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
f(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
@@ -624,14 +624,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
624
624
|
<%s key={someKey} {...props} />`, ti, ba, Br, ba), na[ba + ti] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
return k === r ?
|
|
627
|
+
return k === r ? Ge(ke) : Z(ke), ke;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function ra(k, I,
|
|
631
|
-
return
|
|
630
|
+
function ra(k, I, K) {
|
|
631
|
+
return Be(k, I, K, !0);
|
|
632
632
|
}
|
|
633
|
-
function nt(k, I,
|
|
634
|
-
return
|
|
633
|
+
function nt(k, I, K) {
|
|
634
|
+
return Be(k, I, K, !1);
|
|
635
635
|
}
|
|
636
636
|
var ai = nt, Or = ra;
|
|
637
637
|
$a.Fragment = r, $a.jsx = ai, $a.jsxs = Or;
|
|
@@ -805,7 +805,7 @@ const jn = jt(null), Lm = () => {
|
|
|
805
805
|
minimumFractionDigits: 2,
|
|
806
806
|
maximumFractionDigits: 2
|
|
807
807
|
}).format(n);
|
|
808
|
-
}, Yn = (e = [], n) => We(e, { gameTypeName: n })?.gameTypeUid, Xn = (e = [], n) => We(e, { platform: n })?.platformUid, er = (e = [], n) => We(e, { SubPlatformEnum: n }), ar = (e = [], n, a) =>
|
|
808
|
+
}, Yn = (e = [], n) => We(e, { gameTypeName: n })?.gameTypeUid, Xn = (e = [], n) => We(e, { platform: n })?.platformUid, er = (e = [], n) => We(e, { SubPlatformEnum: n }), ar = (e = [], n, a) => Re(e) ? [] : e.filter((r) => a ? String(r?.SubPlatformEnumUid) === String(a?.SubPlatformEnumUid) : String(r.platformUid) === String(n)), il = (e = []) => Re(e) ? {} : e.reduce((n, a) => {
|
|
809
809
|
const r = a?.game_subtype || "UNKNOWN";
|
|
810
810
|
return n[r] || (n[r] = []), n[r].push(a), n;
|
|
811
811
|
}, {}), nl = ({
|
|
@@ -822,7 +822,7 @@ const jn = jt(null), Lm = () => {
|
|
|
822
822
|
l,
|
|
823
823
|
t
|
|
824
824
|
);
|
|
825
|
-
return
|
|
825
|
+
return Re(o) || (U[d] = o), U;
|
|
826
826
|
}, {}) : {};
|
|
827
827
|
}, rl = ({
|
|
828
828
|
platformName: e,
|
|
@@ -927,29 +927,29 @@ function ol() {
|
|
|
927
927
|
}, R.valueOf = function() {
|
|
928
928
|
return this.$d.getTime();
|
|
929
929
|
}, R.startOf = function(L, B) {
|
|
930
|
-
var O = this, W = !!S.u(B) || B, z = S.p(L), G = function(
|
|
931
|
-
var
|
|
932
|
-
return W ?
|
|
933
|
-
}, h = function(
|
|
934
|
-
return S.w(O.toDate()[
|
|
935
|
-
}, E = this.$W, N = this.$M,
|
|
930
|
+
var O = this, W = !!S.u(B) || B, z = S.p(L), G = function(Y, ae) {
|
|
931
|
+
var be = S.w(O.$u ? Date.UTC(O.$y, ae, Y) : new Date(O.$y, ae, Y), O);
|
|
932
|
+
return W ? be : be.endOf(t);
|
|
933
|
+
}, h = function(Y, ae) {
|
|
934
|
+
return S.w(O.toDate()[Y].apply(O.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), O);
|
|
935
|
+
}, E = this.$W, N = this.$M, J = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
936
936
|
switch (z) {
|
|
937
937
|
case p:
|
|
938
938
|
return W ? G(1, 0) : G(31, 11);
|
|
939
939
|
case o:
|
|
940
940
|
return W ? G(1, N) : G(0, N + 1);
|
|
941
941
|
case i:
|
|
942
|
-
var
|
|
943
|
-
return G(W ?
|
|
942
|
+
var $ = this.$locale().weekStart || 0, V = (E < $ ? E + 7 : E) - $;
|
|
943
|
+
return G(W ? J - V : J + (6 - V), N);
|
|
944
944
|
case t:
|
|
945
945
|
case m:
|
|
946
|
-
return h(
|
|
946
|
+
return h(q + "Hours", 0);
|
|
947
947
|
case l:
|
|
948
|
-
return h(
|
|
948
|
+
return h(q + "Minutes", 1);
|
|
949
949
|
case d:
|
|
950
|
-
return h(
|
|
950
|
+
return h(q + "Seconds", 2);
|
|
951
951
|
case U:
|
|
952
|
-
return h(
|
|
952
|
+
return h(q + "Milliseconds", 3);
|
|
953
953
|
default:
|
|
954
954
|
return this.clone();
|
|
955
955
|
}
|
|
@@ -970,8 +970,8 @@ function ol() {
|
|
|
970
970
|
var O, W = this;
|
|
971
971
|
L = Number(L);
|
|
972
972
|
var z = S.p(B), G = function(N) {
|
|
973
|
-
var
|
|
974
|
-
return S.w(
|
|
973
|
+
var J = T(W);
|
|
974
|
+
return S.w(J.date(J.date() + Math.round(N * L)), W);
|
|
975
975
|
};
|
|
976
976
|
if (z === o) return this.set(o, this.$M + L);
|
|
977
977
|
if (z === p) return this.set(p, this.$y + L);
|
|
@@ -984,17 +984,17 @@ function ol() {
|
|
|
984
984
|
}, R.format = function(L) {
|
|
985
985
|
var B = this, O = this.$locale();
|
|
986
986
|
if (!this.isValid()) return O.invalidDate || _;
|
|
987
|
-
var W = L || "YYYY-MM-DDTHH:mm:ssZ", z = S.z(this), G = this.$H, h = this.$m, E = this.$M, N = O.weekdays,
|
|
988
|
-
return
|
|
989
|
-
},
|
|
990
|
-
return S.s(G % 12 || 12,
|
|
991
|
-
},
|
|
992
|
-
var
|
|
993
|
-
return
|
|
987
|
+
var W = L || "YYYY-MM-DDTHH:mm:ssZ", z = S.z(this), G = this.$H, h = this.$m, E = this.$M, N = O.weekdays, J = O.months, q = O.meridiem, $ = function(ae, be, Ce, pe) {
|
|
988
|
+
return ae && (ae[be] || ae(B, W)) || Ce[be].slice(0, pe);
|
|
989
|
+
}, V = function(ae) {
|
|
990
|
+
return S.s(G % 12 || 12, ae, "0");
|
|
991
|
+
}, Y = q || function(ae, be, Ce) {
|
|
992
|
+
var pe = ae < 12 ? "AM" : "PM";
|
|
993
|
+
return Ce ? pe.toLowerCase() : pe;
|
|
994
994
|
};
|
|
995
|
-
return W.replace(y, (function(
|
|
996
|
-
return
|
|
997
|
-
switch (
|
|
995
|
+
return W.replace(y, (function(ae, be) {
|
|
996
|
+
return be || (function(Ce) {
|
|
997
|
+
switch (Ce) {
|
|
998
998
|
case "YY":
|
|
999
999
|
return String(B.$y).slice(-2);
|
|
1000
1000
|
case "YYYY":
|
|
@@ -1004,9 +1004,9 @@ function ol() {
|
|
|
1004
1004
|
case "MM":
|
|
1005
1005
|
return S.s(E + 1, 2, "0");
|
|
1006
1006
|
case "MMM":
|
|
1007
|
-
return
|
|
1007
|
+
return $(O.monthsShort, E, J, 3);
|
|
1008
1008
|
case "MMMM":
|
|
1009
|
-
return
|
|
1009
|
+
return $(J, E);
|
|
1010
1010
|
case "D":
|
|
1011
1011
|
return B.$D;
|
|
1012
1012
|
case "DD":
|
|
@@ -1014,9 +1014,9 @@ function ol() {
|
|
|
1014
1014
|
case "d":
|
|
1015
1015
|
return String(B.$W);
|
|
1016
1016
|
case "dd":
|
|
1017
|
-
return
|
|
1017
|
+
return $(O.weekdaysMin, B.$W, N, 2);
|
|
1018
1018
|
case "ddd":
|
|
1019
|
-
return
|
|
1019
|
+
return $(O.weekdaysShort, B.$W, N, 3);
|
|
1020
1020
|
case "dddd":
|
|
1021
1021
|
return N[B.$W];
|
|
1022
1022
|
case "H":
|
|
@@ -1024,13 +1024,13 @@ function ol() {
|
|
|
1024
1024
|
case "HH":
|
|
1025
1025
|
return S.s(G, 2, "0");
|
|
1026
1026
|
case "h":
|
|
1027
|
-
return
|
|
1027
|
+
return V(1);
|
|
1028
1028
|
case "hh":
|
|
1029
|
-
return
|
|
1029
|
+
return V(2);
|
|
1030
1030
|
case "a":
|
|
1031
|
-
return
|
|
1031
|
+
return Y(G, h, !0);
|
|
1032
1032
|
case "A":
|
|
1033
|
-
return
|
|
1033
|
+
return Y(G, h, !1);
|
|
1034
1034
|
case "m":
|
|
1035
1035
|
return String(h);
|
|
1036
1036
|
case "mm":
|
|
@@ -1045,23 +1045,23 @@ function ol() {
|
|
|
1045
1045
|
return z;
|
|
1046
1046
|
}
|
|
1047
1047
|
return null;
|
|
1048
|
-
})(
|
|
1048
|
+
})(ae) || z.replace(":", "");
|
|
1049
1049
|
}));
|
|
1050
1050
|
}, R.utcOffset = function() {
|
|
1051
1051
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1052
1052
|
}, R.diff = function(L, B, O) {
|
|
1053
|
-
var W, z = this, G = S.p(B), h = T(L), E = (h.utcOffset() - this.utcOffset()) * r, N = this - h,
|
|
1053
|
+
var W, z = this, G = S.p(B), h = T(L), E = (h.utcOffset() - this.utcOffset()) * r, N = this - h, J = function() {
|
|
1054
1054
|
return S.m(z, h);
|
|
1055
1055
|
};
|
|
1056
1056
|
switch (G) {
|
|
1057
1057
|
case p:
|
|
1058
|
-
W =
|
|
1058
|
+
W = J() / 12;
|
|
1059
1059
|
break;
|
|
1060
1060
|
case o:
|
|
1061
|
-
W =
|
|
1061
|
+
W = J();
|
|
1062
1062
|
break;
|
|
1063
1063
|
case s:
|
|
1064
|
-
W =
|
|
1064
|
+
W = J() / 3;
|
|
1065
1065
|
break;
|
|
1066
1066
|
case i:
|
|
1067
1067
|
W = (N - E) / 6048e5;
|
|
@@ -1115,7 +1115,7 @@ function ol() {
|
|
|
1115
1115
|
})(gt)), gt.exports;
|
|
1116
1116
|
}
|
|
1117
1117
|
var sl = ol();
|
|
1118
|
-
const
|
|
1118
|
+
const Me = /* @__PURE__ */ yi(sl);
|
|
1119
1119
|
var dt = { exports: {} };
|
|
1120
1120
|
function ml(e) {
|
|
1121
1121
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -2432,18 +2432,18 @@ function ir() {
|
|
|
2432
2432
|
]);
|
|
2433
2433
|
},
|
|
2434
2434
|
_doProcessBlock: function(m, _) {
|
|
2435
|
-
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], x = c[5], D = c[6], M = c[7], A = y.high, T = y.low, S = f.high, F = f.low, P = b.high, w = b.low, R = C.high, L = C.low, B = v.high, O = v.low, W = x.high, z = x.low, G = D.high, h = D.low, E = M.high, N = M.low,
|
|
2436
|
-
var
|
|
2437
|
-
if (
|
|
2438
|
-
|
|
2435
|
+
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], x = c[5], D = c[6], M = c[7], A = y.high, T = y.low, S = f.high, F = f.low, P = b.high, w = b.low, R = C.high, L = C.low, B = v.high, O = v.low, W = x.high, z = x.low, G = D.high, h = D.low, E = M.high, N = M.low, J = A, q = T, $ = S, V = F, Y = P, ae = w, be = R, Ce = L, pe = B, _e = O, Ee = W, ve = z, ce = G, ge = h, ye = E, ze = N, De = 0; De < 80; De++) {
|
|
2436
|
+
var Te, Ve, ta = s[De];
|
|
2437
|
+
if (De < 16)
|
|
2438
|
+
Ve = ta.high = m[_ + De * 2] | 0, Te = ta.low = m[_ + De * 2 + 1] | 0;
|
|
2439
2439
|
else {
|
|
2440
|
-
var ia = s[
|
|
2441
|
-
|
|
2440
|
+
var ia = s[De - 15], Ne = ia.high, Oe = ia.low, Xe = (Ne >>> 1 | Oe << 31) ^ (Ne >>> 8 | Oe << 24) ^ Ne >>> 7, oa = (Oe >>> 1 | Ne << 31) ^ (Oe >>> 8 | Ne << 24) ^ (Oe >>> 7 | Ne << 25), ga = s[De - 2], Ze = ga.high, ea = ga.low, Ja = (Ze >>> 19 | ea << 13) ^ (Ze << 3 | ea >>> 29) ^ Ze >>> 6, Na = (ea >>> 19 | Ze << 13) ^ (ea << 3 | Ze >>> 29) ^ (ea >>> 6 | Ze << 26), La = s[De - 7], Za = La.high, Ka = La.low, da = s[De - 16], ya = da.high, Qe = da.low;
|
|
2441
|
+
Te = oa + Ka, Ve = Xe + Za + (Te >>> 0 < oa >>> 0 ? 1 : 0), Te = Te + Na, Ve = Ve + Ja + (Te >>> 0 < Na >>> 0 ? 1 : 0), Te = Te + Qe, Ve = Ve + ya + (Te >>> 0 < Qe >>> 0 ? 1 : 0), ta.high = Ve, ta.low = Te;
|
|
2442
2442
|
}
|
|
2443
|
-
var ca =
|
|
2444
|
-
|
|
2443
|
+
var ca = pe & Ee ^ ~pe & ce, fa = _e & ve ^ ~_e & ge, Ga = J & $ ^ J & Y ^ $ & Y, Ma = q & V ^ q & ae ^ V & ae, Ua = (J >>> 28 | q << 4) ^ (J << 30 | q >>> 2) ^ (J << 25 | q >>> 7), Ra = (q >>> 28 | J << 4) ^ (q << 30 | J >>> 2) ^ (q << 25 | J >>> 7), Pa = (pe >>> 14 | _e << 18) ^ (pe >>> 18 | _e << 14) ^ (pe << 23 | _e >>> 9), Le = (_e >>> 14 | pe << 18) ^ (_e >>> 18 | pe << 14) ^ (_e << 23 | pe >>> 9), Z = o[De], Ge = Z.high, na = Z.low, Be = ze + Le, ra = ye + Pa + (Be >>> 0 < ze >>> 0 ? 1 : 0), Be = Be + fa, ra = ra + ca + (Be >>> 0 < fa >>> 0 ? 1 : 0), Be = Be + na, ra = ra + Ge + (Be >>> 0 < na >>> 0 ? 1 : 0), Be = Be + Te, ra = ra + Ve + (Be >>> 0 < Te >>> 0 ? 1 : 0), nt = Ra + Ma, ai = Ua + Ga + (nt >>> 0 < Ra >>> 0 ? 1 : 0);
|
|
2444
|
+
ye = ce, ze = ge, ce = Ee, ge = ve, Ee = pe, ve = _e, _e = Ce + Be | 0, pe = be + ra + (_e >>> 0 < Ce >>> 0 ? 1 : 0) | 0, be = Y, Ce = ae, Y = $, ae = V, $ = J, V = q, q = Be + nt | 0, J = ra + ai + (q >>> 0 < Be >>> 0 ? 1 : 0) | 0;
|
|
2445
2445
|
}
|
|
2446
|
-
T = y.low = T +
|
|
2446
|
+
T = y.low = T + q, y.high = A + J + (T >>> 0 < q >>> 0 ? 1 : 0), F = f.low = F + V, f.high = S + $ + (F >>> 0 < V >>> 0 ? 1 : 0), w = b.low = w + ae, b.high = P + Y + (w >>> 0 < ae >>> 0 ? 1 : 0), L = C.low = L + Ce, C.high = R + be + (L >>> 0 < Ce >>> 0 ? 1 : 0), O = v.low = O + _e, v.high = B + pe + (O >>> 0 < _e >>> 0 ? 1 : 0), z = x.low = z + ve, x.high = W + Ee + (z >>> 0 < ve >>> 0 ? 1 : 0), h = D.low = h + ge, D.high = G + ce + (h >>> 0 < ge >>> 0 ? 1 : 0), N = M.low = N + ze, M.high = E + ye + (N >>> 0 < ze >>> 0 ? 1 : 0);
|
|
2447
2447
|
},
|
|
2448
2448
|
_doFinalize: function() {
|
|
2449
2449
|
var m = this._data, _ = m.words, c = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
@@ -2573,11 +2573,11 @@ function Gl() {
|
|
|
2573
2573
|
E.high = N.high, E.low = N.low;
|
|
2574
2574
|
for (var A = 0; A < 5; A++)
|
|
2575
2575
|
for (var F = 0; F < 5; F++) {
|
|
2576
|
-
var O = A + 5 * F, D = f[O],
|
|
2577
|
-
D.high =
|
|
2576
|
+
var O = A + 5 * F, D = f[O], J = m[O], q = m[(A + 1) % 5 + 5 * F], $ = m[(A + 2) % 5 + 5 * F];
|
|
2577
|
+
D.high = J.high ^ ~q.high & $.high, D.low = J.low ^ ~q.low & $.low;
|
|
2578
2578
|
}
|
|
2579
|
-
var D = f[0],
|
|
2580
|
-
D.high ^=
|
|
2579
|
+
var D = f[0], V = p[M];
|
|
2580
|
+
D.high ^= V.high, D.low ^= V.low;
|
|
2581
2581
|
}
|
|
2582
2582
|
},
|
|
2583
2583
|
_doFinalize: function() {
|
|
@@ -2942,11 +2942,11 @@ function Rl() {
|
|
|
2942
2942
|
var A = D + M, T = x[A];
|
|
2943
2943
|
x[A] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360;
|
|
2944
2944
|
}
|
|
2945
|
-
var S = this._hash.words, F = p.words, P = m.words, w = t.words, R = i.words, L = o.words, B = s.words, O, W, z, G, h, E, N,
|
|
2946
|
-
E = O = S[0], N = W = S[1],
|
|
2947
|
-
for (var
|
|
2948
|
-
|
|
2949
|
-
|
|
2945
|
+
var S = this._hash.words, F = p.words, P = m.words, w = t.words, R = i.words, L = o.words, B = s.words, O, W, z, G, h, E, N, J, q, $;
|
|
2946
|
+
E = O = S[0], N = W = S[1], J = z = S[2], q = G = S[3], $ = h = S[4];
|
|
2947
|
+
for (var V, M = 0; M < 80; M += 1)
|
|
2948
|
+
V = O + x[D + w[M]] | 0, M < 16 ? V += c(W, z, G) + F[0] : M < 32 ? V += y(W, z, G) + F[1] : M < 48 ? V += f(W, z, G) + F[2] : M < 64 ? V += b(W, z, G) + F[3] : V += C(W, z, G) + F[4], V = V | 0, V = v(V, L[M]), V = V + h | 0, O = h, h = G, G = v(z, 10), z = W, W = V, V = E + x[D + R[M]] | 0, M < 16 ? V += C(N, J, q) + P[0] : M < 32 ? V += b(N, J, q) + P[1] : M < 48 ? V += f(N, J, q) + P[2] : M < 64 ? V += y(N, J, q) + P[3] : V += c(N, J, q) + P[4], V = V | 0, V = v(V, B[M]), V = V + $ | 0, E = $, $ = q, q = v(J, 10), J = N, N = V;
|
|
2949
|
+
V = S[1] + z + q | 0, S[1] = S[2] + G + $ | 0, S[2] = S[3] + h + E | 0, S[3] = S[4] + O + N | 0, S[4] = S[0] + W + J | 0, S[0] = V;
|
|
2950
2950
|
},
|
|
2951
2951
|
_doFinalize: function() {
|
|
2952
2952
|
var x = this._data, D = x.words, M = this._nDataBytes * 8, A = x.sigBytes * 8;
|
|
@@ -3194,7 +3194,7 @@ function _a() {
|
|
|
3194
3194
|
})(Lt)), Lt.exports;
|
|
3195
3195
|
}
|
|
3196
3196
|
var Gt = { exports: {} }, Ol = Gt.exports, Xi;
|
|
3197
|
-
function
|
|
3197
|
+
function Pe() {
|
|
3198
3198
|
return Xi || (Xi = 1, (function(e, n) {
|
|
3199
3199
|
(function(a, r, u) {
|
|
3200
3200
|
e.exports = r(le(), _a());
|
|
@@ -3735,7 +3735,7 @@ var Mt = { exports: {} }, Bl = Mt.exports, en;
|
|
|
3735
3735
|
function Hl() {
|
|
3736
3736
|
return en || (en = 1, (function(e, n) {
|
|
3737
3737
|
(function(a, r, u) {
|
|
3738
|
-
e.exports = r(le(),
|
|
3738
|
+
e.exports = r(le(), Pe());
|
|
3739
3739
|
})(Bl, function(a) {
|
|
3740
3740
|
return a.mode.CFB = (function() {
|
|
3741
3741
|
var r = a.lib.BlockCipherMode.extend();
|
|
@@ -3765,7 +3765,7 @@ var Rt = { exports: {} }, Wl = Rt.exports, an;
|
|
|
3765
3765
|
function zl() {
|
|
3766
3766
|
return an || (an = 1, (function(e, n) {
|
|
3767
3767
|
(function(a, r, u) {
|
|
3768
|
-
e.exports = r(le(),
|
|
3768
|
+
e.exports = r(le(), Pe());
|
|
3769
3769
|
})(Wl, function(a) {
|
|
3770
3770
|
return a.mode.CTR = (function() {
|
|
3771
3771
|
var r = a.lib.BlockCipherMode.extend(), u = r.Encryptor = r.extend({
|
|
@@ -3787,7 +3787,7 @@ var Pt = { exports: {} }, Il = Pt.exports, tn;
|
|
|
3787
3787
|
function Vl() {
|
|
3788
3788
|
return tn || (tn = 1, (function(e, n) {
|
|
3789
3789
|
(function(a, r, u) {
|
|
3790
|
-
e.exports = r(le(),
|
|
3790
|
+
e.exports = r(le(), Pe());
|
|
3791
3791
|
})(Il, function(a) {
|
|
3792
3792
|
return a.mode.CTRGladman = (function() {
|
|
3793
3793
|
var r = a.lib.BlockCipherMode.extend();
|
|
@@ -3821,7 +3821,7 @@ var wt = { exports: {} }, Jl = wt.exports, nn;
|
|
|
3821
3821
|
function Zl() {
|
|
3822
3822
|
return nn || (nn = 1, (function(e, n) {
|
|
3823
3823
|
(function(a, r, u) {
|
|
3824
|
-
e.exports = r(le(),
|
|
3824
|
+
e.exports = r(le(), Pe());
|
|
3825
3825
|
})(Jl, function(a) {
|
|
3826
3826
|
return a.mode.OFB = (function() {
|
|
3827
3827
|
var r = a.lib.BlockCipherMode.extend(), u = r.Encryptor = r.extend({
|
|
@@ -3841,7 +3841,7 @@ var Ft = { exports: {} }, Kl = Ft.exports, rn;
|
|
|
3841
3841
|
function ql() {
|
|
3842
3842
|
return rn || (rn = 1, (function(e, n) {
|
|
3843
3843
|
(function(a, r, u) {
|
|
3844
|
-
e.exports = r(le(),
|
|
3844
|
+
e.exports = r(le(), Pe());
|
|
3845
3845
|
})(Kl, function(a) {
|
|
3846
3846
|
return a.mode.ECB = (function() {
|
|
3847
3847
|
var r = a.lib.BlockCipherMode.extend();
|
|
@@ -3862,7 +3862,7 @@ var At = { exports: {} }, $l = At.exports, ln;
|
|
|
3862
3862
|
function Ql() {
|
|
3863
3863
|
return ln || (ln = 1, (function(e, n) {
|
|
3864
3864
|
(function(a, r, u) {
|
|
3865
|
-
e.exports = r(le(),
|
|
3865
|
+
e.exports = r(le(), Pe());
|
|
3866
3866
|
})($l, function(a) {
|
|
3867
3867
|
return a.pad.AnsiX923 = {
|
|
3868
3868
|
pad: function(r, u) {
|
|
@@ -3881,7 +3881,7 @@ var Ot = { exports: {} }, jl = Ot.exports, on;
|
|
|
3881
3881
|
function Yl() {
|
|
3882
3882
|
return on || (on = 1, (function(e, n) {
|
|
3883
3883
|
(function(a, r, u) {
|
|
3884
|
-
e.exports = r(le(),
|
|
3884
|
+
e.exports = r(le(), Pe());
|
|
3885
3885
|
})(jl, function(a) {
|
|
3886
3886
|
return a.pad.Iso10126 = {
|
|
3887
3887
|
pad: function(r, u) {
|
|
@@ -3900,7 +3900,7 @@ var Bt = { exports: {} }, Xl = Bt.exports, sn;
|
|
|
3900
3900
|
function eo() {
|
|
3901
3901
|
return sn || (sn = 1, (function(e, n) {
|
|
3902
3902
|
(function(a, r, u) {
|
|
3903
|
-
e.exports = r(le(),
|
|
3903
|
+
e.exports = r(le(), Pe());
|
|
3904
3904
|
})(Xl, function(a) {
|
|
3905
3905
|
return a.pad.Iso97971 = {
|
|
3906
3906
|
pad: function(r, u) {
|
|
@@ -3917,7 +3917,7 @@ var Ht = { exports: {} }, ao = Ht.exports, mn;
|
|
|
3917
3917
|
function to() {
|
|
3918
3918
|
return mn || (mn = 1, (function(e, n) {
|
|
3919
3919
|
(function(a, r, u) {
|
|
3920
|
-
e.exports = r(le(),
|
|
3920
|
+
e.exports = r(le(), Pe());
|
|
3921
3921
|
})(ao, function(a) {
|
|
3922
3922
|
return a.pad.ZeroPadding = {
|
|
3923
3923
|
pad: function(r, u) {
|
|
@@ -3939,7 +3939,7 @@ var Wt = { exports: {} }, io = Wt.exports, un;
|
|
|
3939
3939
|
function no() {
|
|
3940
3940
|
return un || (un = 1, (function(e, n) {
|
|
3941
3941
|
(function(a, r, u) {
|
|
3942
|
-
e.exports = r(le(),
|
|
3942
|
+
e.exports = r(le(), Pe());
|
|
3943
3943
|
})(io, function(a) {
|
|
3944
3944
|
return a.pad.NoPadding = {
|
|
3945
3945
|
pad: function() {
|
|
@@ -3954,7 +3954,7 @@ var zt = { exports: {} }, ro = zt.exports, pn;
|
|
|
3954
3954
|
function lo() {
|
|
3955
3955
|
return pn || (pn = 1, (function(e, n) {
|
|
3956
3956
|
(function(a, r, u) {
|
|
3957
|
-
e.exports = r(le(),
|
|
3957
|
+
e.exports = r(le(), Pe());
|
|
3958
3958
|
})(ro, function(a) {
|
|
3959
3959
|
return (function(r) {
|
|
3960
3960
|
var u = a, g = u.lib, U = g.CipherParams, d = u.enc, l = d.Hex, t = u.format;
|
|
@@ -4001,7 +4001,7 @@ var It = { exports: {} }, oo = It.exports, gn;
|
|
|
4001
4001
|
function so() {
|
|
4002
4002
|
return gn || (gn = 1, (function(e, n) {
|
|
4003
4003
|
(function(a, r, u) {
|
|
4004
|
-
e.exports = r(le(), Sa(), Da(), _a(),
|
|
4004
|
+
e.exports = r(le(), Sa(), Da(), _a(), Pe());
|
|
4005
4005
|
})(oo, function(a) {
|
|
4006
4006
|
return (function() {
|
|
4007
4007
|
var r = a, u = r.lib, g = u.BlockCipher, U = r.algo, d = [], l = [], t = [], i = [], o = [], s = [], p = [], m = [], _ = [], c = [];
|
|
@@ -4061,7 +4061,7 @@ var Vt = { exports: {} }, mo = Vt.exports, dn;
|
|
|
4061
4061
|
function uo() {
|
|
4062
4062
|
return dn || (dn = 1, (function(e, n) {
|
|
4063
4063
|
(function(a, r, u) {
|
|
4064
|
-
e.exports = r(le(), Sa(), Da(), _a(),
|
|
4064
|
+
e.exports = r(le(), Sa(), Da(), _a(), Pe());
|
|
4065
4065
|
})(mo, function(a) {
|
|
4066
4066
|
return (function() {
|
|
4067
4067
|
var r = a, u = r.lib, g = u.WordArray, U = u.BlockCipher, d = r.algo, l = [
|
|
@@ -4781,7 +4781,7 @@ var Jt = { exports: {} }, po = Jt.exports, cn;
|
|
|
4781
4781
|
function go() {
|
|
4782
4782
|
return cn || (cn = 1, (function(e, n) {
|
|
4783
4783
|
(function(a, r, u) {
|
|
4784
|
-
e.exports = r(le(), Sa(), Da(), _a(),
|
|
4784
|
+
e.exports = r(le(), Sa(), Da(), _a(), Pe());
|
|
4785
4785
|
})(po, function(a) {
|
|
4786
4786
|
return (function() {
|
|
4787
4787
|
var r = a, u = r.lib, g = u.StreamCipher, U = r.algo, d = U.RC4 = g.extend({
|
|
@@ -4835,7 +4835,7 @@ var Zt = { exports: {} }, co = Zt.exports, fn;
|
|
|
4835
4835
|
function fo() {
|
|
4836
4836
|
return fn || (fn = 1, (function(e, n) {
|
|
4837
4837
|
(function(a, r, u) {
|
|
4838
|
-
e.exports = r(le(), Sa(), Da(), _a(),
|
|
4838
|
+
e.exports = r(le(), Sa(), Da(), _a(), Pe());
|
|
4839
4839
|
})(co, function(a) {
|
|
4840
4840
|
return (function() {
|
|
4841
4841
|
var r = a, u = r.lib, g = u.StreamCipher, U = r.algo, d = [], l = [], t = [], i = U.Rabbit = g.extend({
|
|
@@ -4901,7 +4901,7 @@ var Kt = { exports: {} }, _o = Kt.exports, _n;
|
|
|
4901
4901
|
function yo() {
|
|
4902
4902
|
return _n || (_n = 1, (function(e, n) {
|
|
4903
4903
|
(function(a, r, u) {
|
|
4904
|
-
e.exports = r(le(), Sa(), Da(), _a(),
|
|
4904
|
+
e.exports = r(le(), Sa(), Da(), _a(), Pe());
|
|
4905
4905
|
})(_o, function(a) {
|
|
4906
4906
|
return (function() {
|
|
4907
4907
|
var r = a, u = r.lib, g = u.StreamCipher, U = r.algo, d = [], l = [], t = [], i = U.RabbitLegacy = g.extend({
|
|
@@ -4965,7 +4965,7 @@ var qt = { exports: {} }, Uo = qt.exports, yn;
|
|
|
4965
4965
|
function bo() {
|
|
4966
4966
|
return yn || (yn = 1, (function(e, n) {
|
|
4967
4967
|
(function(a, r, u) {
|
|
4968
|
-
e.exports = r(le(), Sa(), Da(), _a(),
|
|
4968
|
+
e.exports = r(le(), Sa(), Da(), _a(), Pe());
|
|
4969
4969
|
})(Uo, function(a) {
|
|
4970
4970
|
return (function() {
|
|
4971
4971
|
var r = a, u = r.lib, g = u.BlockCipher, U = r.algo;
|
|
@@ -6087,7 +6087,7 @@ var Co = dt.exports, Un;
|
|
|
6087
6087
|
function vo() {
|
|
6088
6088
|
return Un || (Un = 1, (function(e, n) {
|
|
6089
6089
|
(function(a, r, u) {
|
|
6090
|
-
e.exports = r(le(), ei(), _l(), Ul(), Sa(), vl(), Da(), tr(), Ui(), Sl(), ir(), Nl(), Gl(), Rl(), bi(), Fl(), _a(),
|
|
6090
|
+
e.exports = r(le(), ei(), _l(), Ul(), Sa(), vl(), Da(), tr(), Ui(), Sl(), ir(), Nl(), Gl(), Rl(), bi(), Fl(), _a(), Pe(), Hl(), zl(), Vl(), Zl(), ql(), Ql(), Yl(), eo(), to(), no(), lo(), so(), uo(), go(), fo(), yo(), bo());
|
|
6091
6091
|
})(Co, function(a) {
|
|
6092
6092
|
return a;
|
|
6093
6093
|
});
|
|
@@ -6104,24 +6104,25 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6104
6104
|
padding: Ca.pad.Pkcs7
|
|
6105
6105
|
}), g = a.toString(Ca.enc.Base64), U = Ca.enc.Base64.stringify(u.ciphertext);
|
|
6106
6106
|
return g + ":" + U;
|
|
6107
|
-
},
|
|
6107
|
+
}, re = () => {
|
|
6108
6108
|
const { client: e, formDataClient: n } = se(), a = H(
|
|
6109
6109
|
async (h) => {
|
|
6110
|
-
const { mac_address: E = "", app_version: N = "", anydesk_id:
|
|
6110
|
+
const { mac_address: E = "", app_version: N = "", anydesk_id: J = "" } = h;
|
|
6111
6111
|
return await e.post("/cash-register/login", {
|
|
6112
6112
|
mac_address: E,
|
|
6113
6113
|
app_version: N,
|
|
6114
|
-
anydesk_id:
|
|
6114
|
+
anydesk_id: J
|
|
6115
6115
|
});
|
|
6116
6116
|
},
|
|
6117
6117
|
[e]
|
|
6118
6118
|
), r = H(async () => e.get("/member/getMemberInfo"), [e]), u = H(async () => await e.get("/member/getGameList"), [e]), g = H(async () => await e.get("/member/getNowCurrencyExchange"), [e]), U = H(async () => await e.get("member/getFavoriteGame"), [e]), d = H(
|
|
6119
6119
|
async (h) => {
|
|
6120
|
-
const { account: E, password: N, trans_code:
|
|
6120
|
+
const { account: E, password: N, trans_code: J, two_fa_value: q } = h;
|
|
6121
6121
|
return await e.post("/login", {
|
|
6122
6122
|
memId: E,
|
|
6123
6123
|
passwd: N,
|
|
6124
|
-
trans_code:
|
|
6124
|
+
trans_code: J,
|
|
6125
|
+
two_fa_value: q
|
|
6125
6126
|
});
|
|
6126
6127
|
},
|
|
6127
6128
|
[e]
|
|
@@ -6138,32 +6139,32 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6138
6139
|
memberId: h,
|
|
6139
6140
|
password: E,
|
|
6140
6141
|
unlimitCode: N,
|
|
6141
|
-
email:
|
|
6142
|
-
inviteCode:
|
|
6143
|
-
currencyCode:
|
|
6144
|
-
validCode:
|
|
6142
|
+
email: J,
|
|
6143
|
+
inviteCode: q,
|
|
6144
|
+
currencyCode: $,
|
|
6145
|
+
validCode: V
|
|
6145
6146
|
}) => {
|
|
6146
|
-
const
|
|
6147
|
+
const Y = {
|
|
6147
6148
|
memId: h,
|
|
6148
6149
|
passwd: Fa(E),
|
|
6149
|
-
email:
|
|
6150
|
-
currency_code:
|
|
6151
|
-
code:
|
|
6150
|
+
email: J,
|
|
6151
|
+
currency_code: $,
|
|
6152
|
+
code: V
|
|
6152
6153
|
};
|
|
6153
|
-
return N && (
|
|
6154
|
+
return N && (Y.unlimit_code = N), q && (Y.invite = q), e.post("/signUp", Y);
|
|
6154
6155
|
},
|
|
6155
6156
|
[e]
|
|
6156
6157
|
), s = H(
|
|
6157
6158
|
async (h) => {
|
|
6158
|
-
const { name: E, birthday: N, email:
|
|
6159
|
+
const { name: E, birthday: N, email: J, mobile: q } = h;
|
|
6159
6160
|
return await e.post("/editMembetInfo", {
|
|
6160
6161
|
name: E,
|
|
6161
6162
|
// 暱稱
|
|
6162
6163
|
birthday: N,
|
|
6163
6164
|
// 生日 (格式:YYYY-MM-DD)
|
|
6164
|
-
email:
|
|
6165
|
+
email: J,
|
|
6165
6166
|
// 電子郵件
|
|
6166
|
-
mobile:
|
|
6167
|
+
mobile: q
|
|
6167
6168
|
// 手機號碼
|
|
6168
6169
|
});
|
|
6169
6170
|
},
|
|
@@ -6215,12 +6216,12 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6215
6216
|
[e]
|
|
6216
6217
|
), f = H(
|
|
6217
6218
|
async ({ paramsData: h }) => {
|
|
6218
|
-
const { start_time: E, end_time: N, limit:
|
|
6219
|
+
const { start_time: E, end_time: N, limit: J = 25 } = h || {};
|
|
6219
6220
|
return await e.get("/report/totalprofit", {
|
|
6220
6221
|
params: {
|
|
6221
|
-
str_date: `${
|
|
6222
|
-
end_date: `${
|
|
6223
|
-
limit:
|
|
6222
|
+
str_date: `${Me(E).format("YYYY-MM-DD")} 12:00:00`,
|
|
6223
|
+
end_date: `${Me(N).format("YYYY-MM-DD")} 11:59:59`,
|
|
6224
|
+
limit: J
|
|
6224
6225
|
}
|
|
6225
6226
|
});
|
|
6226
6227
|
},
|
|
@@ -6235,12 +6236,12 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6235
6236
|
[e]
|
|
6236
6237
|
), C = H(async () => await e.get("/member/checkRestrictedWagering"), [e]), v = H(
|
|
6237
6238
|
async (h) => {
|
|
6238
|
-
const { memId: E, point: N, currency:
|
|
6239
|
+
const { memId: E, point: N, currency: J, password: q } = h;
|
|
6239
6240
|
return await e.post("/pointsTransaction", {
|
|
6240
6241
|
to_memId: E,
|
|
6241
6242
|
point: N,
|
|
6242
|
-
currency:
|
|
6243
|
-
password: Fa(
|
|
6243
|
+
currency: J,
|
|
6244
|
+
password: Fa(q)
|
|
6244
6245
|
});
|
|
6245
6246
|
},
|
|
6246
6247
|
[e]
|
|
@@ -6249,11 +6250,11 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6249
6250
|
const {
|
|
6250
6251
|
bank_name: E,
|
|
6251
6252
|
bank_account_name: N,
|
|
6252
|
-
bank_branch_name:
|
|
6253
|
-
bank_account:
|
|
6254
|
-
bank_card_number:
|
|
6255
|
-
id_card:
|
|
6256
|
-
id_pic:
|
|
6253
|
+
bank_branch_name: J,
|
|
6254
|
+
bank_account: q,
|
|
6255
|
+
bank_card_number: $,
|
|
6256
|
+
id_card: V,
|
|
6257
|
+
id_pic: Y
|
|
6257
6258
|
} = h;
|
|
6258
6259
|
return await n.post("/bindBankAccount", h);
|
|
6259
6260
|
},
|
|
@@ -6268,22 +6269,22 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6268
6269
|
[e]
|
|
6269
6270
|
), M = H(
|
|
6270
6271
|
async (h) => {
|
|
6271
|
-
const { trans_code: E, line_id: N, invite:
|
|
6272
|
+
const { trans_code: E, line_id: N, invite: J, line_name: q } = h;
|
|
6272
6273
|
return await e.post("/goLine", {
|
|
6273
6274
|
trans_code: E,
|
|
6274
6275
|
line_id: N,
|
|
6275
|
-
invite:
|
|
6276
|
-
line_name:
|
|
6276
|
+
invite: J,
|
|
6277
|
+
line_name: q
|
|
6277
6278
|
});
|
|
6278
6279
|
},
|
|
6279
6280
|
[e]
|
|
6280
6281
|
), A = H(
|
|
6281
6282
|
async (h) => {
|
|
6282
|
-
const { trans_code: E, line_id: N, line_name:
|
|
6283
|
+
const { trans_code: E, line_id: N, line_name: J } = h;
|
|
6283
6284
|
return await e.post("/login/line", {
|
|
6284
6285
|
trans_code: E,
|
|
6285
6286
|
line_id: N,
|
|
6286
|
-
line_name:
|
|
6287
|
+
line_name: J
|
|
6287
6288
|
});
|
|
6288
6289
|
},
|
|
6289
6290
|
[e]
|
|
@@ -6295,11 +6296,11 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6295
6296
|
[e]
|
|
6296
6297
|
), S = H(
|
|
6297
6298
|
async (h) => {
|
|
6298
|
-
const { member_info_uid: E, point: N, currency:
|
|
6299
|
+
const { member_info_uid: E, point: N, currency: J, withdraw_password: q } = h;
|
|
6299
6300
|
return await e.post(`/member/transfer/${E}`, {
|
|
6300
6301
|
point: N,
|
|
6301
|
-
currency:
|
|
6302
|
-
withdraw_password:
|
|
6302
|
+
currency: J,
|
|
6303
|
+
withdraw_password: q
|
|
6303
6304
|
});
|
|
6304
6305
|
},
|
|
6305
6306
|
[e]
|
|
@@ -6314,25 +6315,25 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6314
6315
|
[e]
|
|
6315
6316
|
), P = H(
|
|
6316
6317
|
async (h) => {
|
|
6317
|
-
const { mobile: E, verifyCode: N, snCode:
|
|
6318
|
+
const { mobile: E, verifyCode: N, snCode: J, invoiceType: q, invoiceCode: $ } = h;
|
|
6318
6319
|
return await e.post("/goMobile", {
|
|
6319
6320
|
mobile: E,
|
|
6320
6321
|
verification_code: N,
|
|
6321
|
-
sn_code:
|
|
6322
|
-
invoice_type:
|
|
6323
|
-
invoice_code:
|
|
6322
|
+
sn_code: J,
|
|
6323
|
+
invoice_type: q,
|
|
6324
|
+
invoice_code: $
|
|
6324
6325
|
});
|
|
6325
6326
|
},
|
|
6326
6327
|
[e]
|
|
6327
6328
|
), w = H(
|
|
6328
6329
|
async (h) => {
|
|
6329
|
-
const { mobile: E, verifyCode: N, invite:
|
|
6330
|
+
const { mobile: E, verifyCode: N, invite: J, invoiceType: q, invoiceCode: $ } = h;
|
|
6330
6331
|
return await e.post("/goMobileByInvite", {
|
|
6331
6332
|
mobile: E,
|
|
6332
6333
|
verification_code: N,
|
|
6333
|
-
invite:
|
|
6334
|
-
invoice_type:
|
|
6335
|
-
invoice_code:
|
|
6334
|
+
invite: J,
|
|
6335
|
+
invoice_type: q,
|
|
6336
|
+
invoice_code: $
|
|
6336
6337
|
});
|
|
6337
6338
|
},
|
|
6338
6339
|
[e]
|
|
@@ -6410,7 +6411,7 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6410
6411
|
updateUserAvatarApi: z
|
|
6411
6412
|
};
|
|
6412
6413
|
}, Rm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
6413
|
-
const { userCurrencyExchangeApi: a } =
|
|
6414
|
+
const { userCurrencyExchangeApi: a } = re(), { getToken: r } = se(), { enabled: u, ...g } = n, d = !!r?.() && (u ? u.every((l) => l) : !0);
|
|
6414
6415
|
return In({
|
|
6415
6416
|
queries: [
|
|
6416
6417
|
{
|
|
@@ -6428,7 +6429,7 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6428
6429
|
trigger: n = [],
|
|
6429
6430
|
enabled: a = !0
|
|
6430
6431
|
} = {}) => {
|
|
6431
|
-
const { getToken: r } = se(), u = r?.(), { userInfoApi: g } =
|
|
6432
|
+
const { getToken: r } = se(), u = r?.(), { userInfoApi: g } = re();
|
|
6432
6433
|
return In({
|
|
6433
6434
|
queries: [
|
|
6434
6435
|
{
|
|
@@ -6445,7 +6446,7 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6445
6446
|
userFavoriteGameApi: a,
|
|
6446
6447
|
userGameListApi: r,
|
|
6447
6448
|
userCurrencyExchangeApi: u
|
|
6448
|
-
} =
|
|
6449
|
+
} = re(), g = Q({
|
|
6449
6450
|
queryKey: ["getMemInfo"],
|
|
6450
6451
|
queryFn: async () => n(),
|
|
6451
6452
|
enabled: e
|
|
@@ -6497,8 +6498,8 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6497
6498
|
), u = H(
|
|
6498
6499
|
async (U) => {
|
|
6499
6500
|
const {
|
|
6500
|
-
startDate: d =
|
|
6501
|
-
endDate: l =
|
|
6501
|
+
startDate: d = Me().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6502
|
+
endDate: l = Me().format("YYYY-MM-DD 11:59:59"),
|
|
6502
6503
|
platform: t = "",
|
|
6503
6504
|
limit: i = 25
|
|
6504
6505
|
} = U, { data: o } = await e.get("/report/netprofit", {
|
|
@@ -6515,8 +6516,8 @@ const Ca = /* @__PURE__ */ yi(et), Fa = (e) => {
|
|
|
6515
6516
|
), g = H(
|
|
6516
6517
|
async (U) => {
|
|
6517
6518
|
const {
|
|
6518
|
-
startDate: d =
|
|
6519
|
-
endDate: l =
|
|
6519
|
+
startDate: d = Me().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6520
|
+
endDate: l = Me().format("YYYY-MM-DD 11:59:59"),
|
|
6520
6521
|
platform: t,
|
|
6521
6522
|
limit: i = 25,
|
|
6522
6523
|
page: o = 1
|
|
@@ -7244,31 +7245,31 @@ function xi() {
|
|
|
7244
7245
|
if (s !== null && m === !0) {
|
|
7245
7246
|
var W, z = !1, G = !0, h = function() {
|
|
7246
7247
|
return n(void 0, void 0, void 0, function() {
|
|
7247
|
-
var E, N,
|
|
7248
|
-
return a(this, function(
|
|
7249
|
-
switch (
|
|
7248
|
+
var E, N, J;
|
|
7249
|
+
return a(this, function(q) {
|
|
7250
|
+
switch (q.label) {
|
|
7250
7251
|
case 0:
|
|
7251
7252
|
return E = x, [4, (0, l.getUrl)(s, P)];
|
|
7252
7253
|
case 1:
|
|
7253
|
-
return E.current =
|
|
7254
|
-
return C(function(
|
|
7255
|
-
return e(e({},
|
|
7254
|
+
return E.current = q.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7255
|
+
return C(function($) {
|
|
7256
|
+
return e(e({}, $), { ABORTED: U.ReadyState.CLOSED });
|
|
7256
7257
|
});
|
|
7257
7258
|
}), [
|
|
7258
7259
|
2
|
|
7259
7260
|
/*return*/
|
|
7260
|
-
]) : (N = function(
|
|
7261
|
+
]) : (N = function($) {
|
|
7261
7262
|
z || (0, g.flushSync)(function() {
|
|
7262
|
-
return y(
|
|
7263
|
+
return y($);
|
|
7263
7264
|
});
|
|
7264
|
-
},
|
|
7265
|
+
}, J = function($) {
|
|
7265
7266
|
z || (0, g.flushSync)(function() {
|
|
7266
|
-
return C(function(
|
|
7267
|
-
var
|
|
7268
|
-
return e(e({},
|
|
7267
|
+
return C(function(V) {
|
|
7268
|
+
var Y;
|
|
7269
|
+
return e(e({}, V), x.current && (Y = {}, Y[x.current] = $, Y));
|
|
7269
7270
|
});
|
|
7270
7271
|
});
|
|
7271
|
-
}, G && (W = (0, d.createOrJoinSocket)(D, x.current,
|
|
7272
|
+
}, G && (W = (0, d.createOrJoinSocket)(D, x.current, J, P, N, M, A, T, L)), [
|
|
7272
7273
|
2
|
|
7273
7274
|
/*return*/
|
|
7274
7275
|
]);
|
|
@@ -7554,70 +7555,70 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7554
7555
|
announcementApi: a
|
|
7555
7556
|
};
|
|
7556
7557
|
}, Oo = ({ options: e } = {}) => {
|
|
7557
|
-
const { userLoginApi: n } =
|
|
7558
|
+
const { userLoginApi: n } = re();
|
|
7558
7559
|
return ee({
|
|
7559
7560
|
mutationKey: ["userLogin"],
|
|
7560
7561
|
mutationFn: async (a) => n(a),
|
|
7561
7562
|
...e
|
|
7562
7563
|
});
|
|
7563
7564
|
}, Bo = ({ options: e } = {}) => {
|
|
7564
|
-
const { userLogoutApi: n } =
|
|
7565
|
+
const { userLogoutApi: n } = re();
|
|
7565
7566
|
return ee({
|
|
7566
7567
|
mutationKey: ["userLogout"],
|
|
7567
7568
|
mutationFn: async () => n(),
|
|
7568
7569
|
...e
|
|
7569
7570
|
});
|
|
7570
7571
|
}, Ho = ({ options: e } = {}) => {
|
|
7571
|
-
const { userSignUpApi: n } =
|
|
7572
|
+
const { userSignUpApi: n } = re();
|
|
7572
7573
|
return ee({
|
|
7573
7574
|
mutationKey: ["userSignUp"],
|
|
7574
7575
|
mutationFn: async (a) => n(a),
|
|
7575
7576
|
...e
|
|
7576
7577
|
});
|
|
7577
7578
|
}, Wo = ({ options: e } = {}) => {
|
|
7578
|
-
const { addOrRemoveFavoriteGameApi: n } =
|
|
7579
|
+
const { addOrRemoveFavoriteGameApi: n } = re();
|
|
7579
7580
|
return ee({
|
|
7580
7581
|
mutationKey: ["toggleFavoriteGame"],
|
|
7581
7582
|
mutationFn: async (a) => n(a),
|
|
7582
7583
|
...e
|
|
7583
7584
|
});
|
|
7584
7585
|
}, zo = ({ options: e } = {}) => {
|
|
7585
|
-
const { updateUserInfoApi: n } =
|
|
7586
|
+
const { updateUserInfoApi: n } = re();
|
|
7586
7587
|
return ee({
|
|
7587
7588
|
mutationKey: ["updateUserInfo"],
|
|
7588
7589
|
mutationFn: async (a) => n(a),
|
|
7589
7590
|
...e
|
|
7590
7591
|
});
|
|
7591
7592
|
}, Io = ({ options: e } = {}) => {
|
|
7592
|
-
const { resetUserPasswordApi: n } =
|
|
7593
|
+
const { resetUserPasswordApi: n } = re();
|
|
7593
7594
|
return ee({
|
|
7594
7595
|
mutationKey: ["resetUserPassword"],
|
|
7595
7596
|
mutationFn: async (a) => n(a),
|
|
7596
7597
|
...e
|
|
7597
7598
|
});
|
|
7598
7599
|
}, Vo = ({ options: e } = {}) => {
|
|
7599
|
-
const { memberInitSetApi: n } =
|
|
7600
|
+
const { memberInitSetApi: n } = re();
|
|
7600
7601
|
return ee({
|
|
7601
7602
|
mutationKey: ["memberInitSet"],
|
|
7602
7603
|
mutationFn: async (a) => n(a),
|
|
7603
7604
|
...e
|
|
7604
7605
|
});
|
|
7605
7606
|
}, Jo = ({ options: e } = {}) => {
|
|
7606
|
-
const { setUserTransactionPasswordApi: n } =
|
|
7607
|
+
const { setUserTransactionPasswordApi: n } = re();
|
|
7607
7608
|
return ee({
|
|
7608
7609
|
mutationKey: ["setUserTransactionPassword"],
|
|
7609
7610
|
mutationFn: async (a) => n(a),
|
|
7610
7611
|
...e
|
|
7611
7612
|
});
|
|
7612
7613
|
}, Zo = ({ options: e } = {}) => {
|
|
7613
|
-
const { resetUserTransactionPasswordApi: n } =
|
|
7614
|
+
const { resetUserTransactionPasswordApi: n } = re();
|
|
7614
7615
|
return ee({
|
|
7615
7616
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7616
7617
|
mutationFn: async (a) => n(a),
|
|
7617
7618
|
...e
|
|
7618
7619
|
});
|
|
7619
7620
|
}, Ko = ({ paramsData: e, options: n } = {}) => {
|
|
7620
|
-
const { userRebateApi: a } =
|
|
7621
|
+
const { userRebateApi: a } = re(), { getToken: r } = se();
|
|
7621
7622
|
return r?.(), Q({
|
|
7622
7623
|
queryKey: ["userRebate", e],
|
|
7623
7624
|
queryFn: async () => a({ paramsData: e }),
|
|
@@ -7625,14 +7626,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7625
7626
|
...n
|
|
7626
7627
|
});
|
|
7627
7628
|
}, qo = ({ options: e } = {}) => {
|
|
7628
|
-
const { userBindBankApi: n } =
|
|
7629
|
+
const { userBindBankApi: n } = re();
|
|
7629
7630
|
return ee({
|
|
7630
7631
|
mutationKey: ["userBindBank"],
|
|
7631
7632
|
mutationFn: async (a) => n({ formData: a }),
|
|
7632
7633
|
...e
|
|
7633
7634
|
});
|
|
7634
7635
|
}, $o = ({ options: e } = {}) => {
|
|
7635
|
-
const { transferInGameApi: n } =
|
|
7636
|
+
const { transferInGameApi: n } = re();
|
|
7636
7637
|
return ee({
|
|
7637
7638
|
mutationKey: ["transferInGame"],
|
|
7638
7639
|
mutationFn: async (a) => n(a),
|
|
@@ -7640,7 +7641,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7640
7641
|
...e
|
|
7641
7642
|
});
|
|
7642
7643
|
}, Om = ({ options: e } = {}) => {
|
|
7643
|
-
const { currency: n } = se(), { pointTransferApi: a } =
|
|
7644
|
+
const { currency: n } = se(), { pointTransferApi: a } = re();
|
|
7644
7645
|
return ee({
|
|
7645
7646
|
mutationKey: ["pointTransfer"],
|
|
7646
7647
|
mutationFn: async (r) => a({
|
|
@@ -7650,7 +7651,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7650
7651
|
...e
|
|
7651
7652
|
});
|
|
7652
7653
|
}, Bm = ({ options: e } = {}) => {
|
|
7653
|
-
const { currency: n } = se(), { checkUserWagerApi: a } =
|
|
7654
|
+
const { currency: n } = se(), { checkUserWagerApi: a } = re();
|
|
7654
7655
|
return Q({
|
|
7655
7656
|
queryKey: ["checkUserWager"],
|
|
7656
7657
|
queryFn: async () => a(),
|
|
@@ -7663,7 +7664,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7663
7664
|
...e
|
|
7664
7665
|
});
|
|
7665
7666
|
}, Hm = ({ options: e } = {}) => {
|
|
7666
|
-
const n = xa(), { abandonPointsApi: a } =
|
|
7667
|
+
const n = xa(), { abandonPointsApi: a } = re();
|
|
7667
7668
|
return ee({
|
|
7668
7669
|
mutationKey: ["abandonPoint"],
|
|
7669
7670
|
mutationFn: async (r) => a({
|
|
@@ -7675,70 +7676,70 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7675
7676
|
...e
|
|
7676
7677
|
});
|
|
7677
7678
|
}, lr = ({ options: e } = {}) => {
|
|
7678
|
-
const { lineLoginApi: n } =
|
|
7679
|
+
const { lineLoginApi: n } = re();
|
|
7679
7680
|
return ee({
|
|
7680
7681
|
mutationKey: ["lineLogin"],
|
|
7681
7682
|
mutationFn: async (a) => n(a),
|
|
7682
7683
|
...e
|
|
7683
7684
|
});
|
|
7684
7685
|
}, Qo = ({ options: e } = {}) => {
|
|
7685
|
-
const { lineLogin2Api: n } =
|
|
7686
|
+
const { lineLogin2Api: n } = re();
|
|
7686
7687
|
return ee({
|
|
7687
7688
|
mutationKey: ["lineLogin"],
|
|
7688
7689
|
mutationFn: async (a) => n(a),
|
|
7689
7690
|
...e
|
|
7690
7691
|
});
|
|
7691
7692
|
}, Wm = ({ options: e } = {}) => {
|
|
7692
|
-
const { machineLoginApi: n } =
|
|
7693
|
+
const { machineLoginApi: n } = re();
|
|
7693
7694
|
return ee({
|
|
7694
7695
|
mutationKey: ["machineLogin"],
|
|
7695
7696
|
mutationFn: async (a) => n(a),
|
|
7696
7697
|
...e
|
|
7697
7698
|
});
|
|
7698
7699
|
}, jo = ({ options: e, formData: n } = {}) => {
|
|
7699
|
-
const { getMachineLoginCodeApi: a } =
|
|
7700
|
+
const { getMachineLoginCodeApi: a } = re();
|
|
7700
7701
|
return Q({
|
|
7701
7702
|
queryKey: ["getMachineLoginCode"],
|
|
7702
7703
|
queryFn: async () => a(n),
|
|
7703
7704
|
...e
|
|
7704
7705
|
});
|
|
7705
7706
|
}, zm = ({ options: e } = {}) => {
|
|
7706
|
-
const { currency: n } = se(), { memberTransferApi: a } =
|
|
7707
|
+
const { currency: n } = se(), { memberTransferApi: a } = re();
|
|
7707
7708
|
return ee({
|
|
7708
7709
|
mutationKey: ["memberTransfer"],
|
|
7709
7710
|
mutationFn: async (r) => a({ ...r, currency: n }),
|
|
7710
7711
|
...e
|
|
7711
7712
|
});
|
|
7712
7713
|
}, Im = ({ options: e } = {}) => {
|
|
7713
|
-
const { mobileLoginApi: n } =
|
|
7714
|
+
const { mobileLoginApi: n } = re();
|
|
7714
7715
|
return ee({
|
|
7715
7716
|
mutationKey: ["mobileLogin"],
|
|
7716
7717
|
mutationFn: async (a) => n(a),
|
|
7717
7718
|
...e
|
|
7718
7719
|
});
|
|
7719
7720
|
}, Vm = ({ options: e } = {}) => {
|
|
7720
|
-
const { mobileLoginApiV2: n } =
|
|
7721
|
+
const { mobileLoginApiV2: n } = re();
|
|
7721
7722
|
return ee({
|
|
7722
7723
|
mutationKey: ["mobileLoginV2"],
|
|
7723
7724
|
mutationFn: async (a) => n(a),
|
|
7724
7725
|
...e
|
|
7725
7726
|
});
|
|
7726
7727
|
}, Jm = ({ options: e } = {}) => {
|
|
7727
|
-
const { mobileRegisterApi: n } =
|
|
7728
|
+
const { mobileRegisterApi: n } = re();
|
|
7728
7729
|
return ee({
|
|
7729
7730
|
mutationKey: ["mobileRegister"],
|
|
7730
7731
|
mutationFn: async (a) => n(a),
|
|
7731
7732
|
...e
|
|
7732
7733
|
});
|
|
7733
7734
|
}, Yo = ({ options: e } = {}) => {
|
|
7734
|
-
const { bindAccountApi: n } =
|
|
7735
|
+
const { bindAccountApi: n } = re();
|
|
7735
7736
|
return ee({
|
|
7736
7737
|
mutationKey: ["bindAccount"],
|
|
7737
7738
|
mutationFn: async (a) => n(a),
|
|
7738
7739
|
...e
|
|
7739
7740
|
});
|
|
7740
7741
|
}, Zm = ({ options: e } = {}) => {
|
|
7741
|
-
const { sendMobileVerifyCodeApi: n } =
|
|
7742
|
+
const { sendMobileVerifyCodeApi: n } = re();
|
|
7742
7743
|
return ee({
|
|
7743
7744
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7744
7745
|
mutationFn: async (a) => n(a),
|
|
@@ -7759,21 +7760,21 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7759
7760
|
...e
|
|
7760
7761
|
});
|
|
7761
7762
|
}, $m = ({ options: e } = {}) => {
|
|
7762
|
-
const { createMachineApi: n } =
|
|
7763
|
+
const { createMachineApi: n } = re();
|
|
7763
7764
|
return ee({
|
|
7764
7765
|
mutationKey: ["createMachine"],
|
|
7765
7766
|
mutationFn: async (a) => n({ formData: a }),
|
|
7766
7767
|
...e
|
|
7767
7768
|
});
|
|
7768
7769
|
}, Qm = ({ options: e } = {}) => {
|
|
7769
|
-
const { verifyResetActionApi: n } =
|
|
7770
|
+
const { verifyResetActionApi: n } = re();
|
|
7770
7771
|
return ee({
|
|
7771
7772
|
mutationKey: ["verifyResetAction"],
|
|
7772
7773
|
mutationFn: async (a) => n(a),
|
|
7773
7774
|
...e
|
|
7774
7775
|
});
|
|
7775
7776
|
}, jm = ({ options: e, bonusData: n } = {}) => {
|
|
7776
|
-
const { getJackpotApi: a } =
|
|
7777
|
+
const { getJackpotApi: a } = re();
|
|
7777
7778
|
return Q({
|
|
7778
7779
|
queryKey: ["getJackpotData"],
|
|
7779
7780
|
queryFn: async () => a(),
|
|
@@ -7792,14 +7793,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7792
7793
|
...e
|
|
7793
7794
|
});
|
|
7794
7795
|
}, Ym = ({ options: e } = {}) => {
|
|
7795
|
-
const { getBetRankingApi: n } =
|
|
7796
|
+
const { getBetRankingApi: n } = re();
|
|
7796
7797
|
return Q({
|
|
7797
7798
|
queryKey: ["getBetRankingData"],
|
|
7798
7799
|
queryFn: async () => n(),
|
|
7799
7800
|
...e
|
|
7800
7801
|
});
|
|
7801
7802
|
}, Xm = ({ options: e } = {}) => {
|
|
7802
|
-
const { getUserAvatarListApi: n } =
|
|
7803
|
+
const { getUserAvatarListApi: n } = re();
|
|
7803
7804
|
return Q({
|
|
7804
7805
|
queryKey: ["getAvatarList"],
|
|
7805
7806
|
queryFn: async () => n(),
|
|
@@ -7809,7 +7810,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7809
7810
|
...e
|
|
7810
7811
|
});
|
|
7811
7812
|
}, eu = ({ options: e } = {}) => {
|
|
7812
|
-
const { updateUserAvatarApi: n } =
|
|
7813
|
+
const { updateUserAvatarApi: n } = re();
|
|
7813
7814
|
return ee({
|
|
7814
7815
|
mutationKey: ["updateAvatar"],
|
|
7815
7816
|
mutationFn: async (a) => n(a),
|
|
@@ -7853,7 +7854,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7853
7854
|
userRebate: i,
|
|
7854
7855
|
userBindCard: o
|
|
7855
7856
|
};
|
|
7856
|
-
},
|
|
7857
|
+
}, Fe = {
|
|
7857
7858
|
DEPOSIT: "deposit",
|
|
7858
7859
|
TRANS_CODE: "transCode",
|
|
7859
7860
|
ERROR: "error",
|
|
@@ -7868,7 +7869,8 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7868
7869
|
GAME_MAINTAIN: "game_maintain",
|
|
7869
7870
|
LINE_LOGIN: "line_login",
|
|
7870
7871
|
UPDATE_EVENT_WALLET: "update_event_wallet",
|
|
7871
|
-
MONTHLY_CARD_ISSUE_POINT: "monthly_card_issue_point"
|
|
7872
|
+
MONTHLY_CARD_ISSUE_POINT: "monthly_card_issue_point",
|
|
7873
|
+
EVENT_CLAIMABLE: "event_claimable"
|
|
7872
7874
|
}, Xo = 3e4, es = ({
|
|
7873
7875
|
maintainList: e,
|
|
7874
7876
|
isInGameBox: n,
|
|
@@ -7898,7 +7900,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7898
7900
|
disabledLineAutoRegister: U = !1,
|
|
7899
7901
|
navigate: d = null
|
|
7900
7902
|
}) => {
|
|
7901
|
-
const { store: l, lng: t } = se(), i = xa(), { isReady: o, setAsReady: s, isPending: p, setAsPending: m } = Kn(), _ = $e(t), c =
|
|
7903
|
+
const { store: l, lng: t } = se(), i = xa(), { isReady: o, setAsReady: s, isPending: p, setAsPending: m } = Kn(), _ = $e(t), c = ie(!1), y = ie(n), f = j(r, "uid", null), b = j(r, "cagent_uid", null);
|
|
7902
7904
|
j(r, "testFunction", 0);
|
|
7903
7905
|
const C = new URLSearchParams(window.location.search), v = j(
|
|
7904
7906
|
u,
|
|
@@ -7951,7 +7953,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7951
7953
|
return null;
|
|
7952
7954
|
}
|
|
7953
7955
|
}, [S]);
|
|
7954
|
-
|
|
7956
|
+
ue(() => {
|
|
7955
7957
|
const L = setInterval(
|
|
7956
7958
|
() => A("ping"),
|
|
7957
7959
|
Xo
|
|
@@ -7972,11 +7974,11 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7972
7974
|
},
|
|
7973
7975
|
[g, l, _]
|
|
7974
7976
|
);
|
|
7975
|
-
|
|
7977
|
+
ue(() => {
|
|
7976
7978
|
y.current = n;
|
|
7977
7979
|
}, [n]);
|
|
7978
|
-
const R =
|
|
7979
|
-
return
|
|
7980
|
+
const R = ie(null);
|
|
7981
|
+
return ue(() => {
|
|
7980
7982
|
if (!P || R.current === P)
|
|
7981
7983
|
return;
|
|
7982
7984
|
R.current = P;
|
|
@@ -7990,74 +7992,75 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7990
7992
|
onTransferInGame: h,
|
|
7991
7993
|
onCashRegisterLimit: E,
|
|
7992
7994
|
onLineLogin: N,
|
|
7993
|
-
onMonthlyCardIssuePoint:
|
|
7994
|
-
|
|
7995
|
+
onMonthlyCardIssuePoint: J,
|
|
7996
|
+
onEventClaimable: q
|
|
7997
|
+
} = y.current, $ = j(P, "type", ""), V = {
|
|
7995
7998
|
memberInfoUid: j(P, "member_info_uid", null),
|
|
7996
7999
|
data: j(P, "data", null),
|
|
7997
8000
|
memo: j(P, "memo", null),
|
|
7998
8001
|
amount: j(P, "amount", null),
|
|
7999
8002
|
limitAmount: j(P, "limit_amount", null)
|
|
8000
|
-
},
|
|
8003
|
+
}, Y = Number(V.memberInfoUid) === f, ae = V.data, be = V.amount, Ce = V.limitAmount, pe = C.get("mac") || pi.get("machine_mac_address") || "", _e = j(P, "data.line_id", null), Ee = j(P, "data.line_name", null), ve = j(P, "member_info_uid", null);
|
|
8001
8004
|
switch ($) {
|
|
8002
|
-
case
|
|
8003
|
-
|
|
8005
|
+
case Fe.DEPOSIT:
|
|
8006
|
+
Y && (M(), L?.(V));
|
|
8004
8007
|
break;
|
|
8005
|
-
case
|
|
8006
|
-
B?.(
|
|
8008
|
+
case Fe.TRANS_CODE:
|
|
8009
|
+
B?.(V);
|
|
8007
8010
|
break;
|
|
8008
|
-
case
|
|
8009
|
-
if (
|
|
8010
|
-
const
|
|
8011
|
-
w(
|
|
8012
|
-
notificationType:
|
|
8013
|
-
}), O?.(
|
|
8011
|
+
case Fe.ERROR:
|
|
8012
|
+
if (Y) {
|
|
8013
|
+
const ce = j(P, "open_game_modal", 0) === 1;
|
|
8014
|
+
w(ae, {
|
|
8015
|
+
notificationType: ce ? "gamingNotice" : void 0
|
|
8016
|
+
}), O?.(V);
|
|
8014
8017
|
}
|
|
8015
8018
|
break;
|
|
8016
|
-
case
|
|
8019
|
+
case Fe.UPDATE_MEMBER:
|
|
8017
8020
|
f && (i.invalidateQueries({
|
|
8018
8021
|
queryKey: ["getMemberInfo"]
|
|
8019
|
-
}), W?.(
|
|
8022
|
+
}), W?.(V));
|
|
8020
8023
|
break;
|
|
8021
|
-
case
|
|
8022
|
-
w(
|
|
8024
|
+
case Fe.MAINTAIN_NOTICE:
|
|
8025
|
+
w(ae, {
|
|
8023
8026
|
notificationType: "maintainNotice"
|
|
8024
|
-
}), z?.(
|
|
8027
|
+
}), z?.(V);
|
|
8025
8028
|
break;
|
|
8026
|
-
case
|
|
8027
|
-
const
|
|
8028
|
-
if (
|
|
8029
|
-
String(b) === String(
|
|
8029
|
+
case Fe.MAINTAIN_NOTICE_MEMBER: {
|
|
8030
|
+
const ce = V.data?.cagent_uid ?? null;
|
|
8031
|
+
if (ce != null) {
|
|
8032
|
+
String(b) === String(ce) && (w(V.data?.msg, { rawMessage: !0 }), G?.(V), setTimeout(() => {
|
|
8030
8033
|
d?.("/");
|
|
8031
8034
|
}, 5e3));
|
|
8032
8035
|
return;
|
|
8033
|
-
} else if (
|
|
8034
|
-
const
|
|
8035
|
-
if (
|
|
8036
|
-
Array.isArray(
|
|
8036
|
+
} else if (Y) {
|
|
8037
|
+
const ge = l.getState()?.game?.currentGameData?.gameUid ?? null, ye = V.data?.game_id;
|
|
8038
|
+
if (ye != null) {
|
|
8039
|
+
Array.isArray(ye) && ye.some((ze) => String(ze) === String(ge)) && (w(V.data?.msg, { rawMessage: !0 }), G?.(V), setTimeout(() => {
|
|
8037
8040
|
d?.("/");
|
|
8038
8041
|
}, 5e3));
|
|
8039
8042
|
return;
|
|
8040
8043
|
}
|
|
8041
|
-
w(
|
|
8044
|
+
w(ae), G?.(V), setTimeout(() => {
|
|
8042
8045
|
window.location.reload();
|
|
8043
8046
|
}, 5e4);
|
|
8044
8047
|
}
|
|
8045
8048
|
break;
|
|
8046
8049
|
}
|
|
8047
|
-
case
|
|
8050
|
+
case Fe.RELOAD:
|
|
8048
8051
|
window.location.reload();
|
|
8049
8052
|
break;
|
|
8050
|
-
case
|
|
8051
|
-
case
|
|
8052
|
-
if (
|
|
8053
|
-
const { request_id:
|
|
8053
|
+
case Fe.TRANSFER_IN_GAME:
|
|
8054
|
+
case Fe.CHECK_REQUEST:
|
|
8055
|
+
if (Y && v) {
|
|
8056
|
+
const { request_id: ce, amount: ge, platform: ye, status: ze } = j(V, "data", {}) || {}, De = localStorage.getItem(
|
|
8054
8057
|
"transfer_in_game_request_id"
|
|
8055
8058
|
);
|
|
8056
|
-
if (
|
|
8057
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
8059
|
+
if (ze === "pending") {
|
|
8060
|
+
localStorage.setItem("transfer_in_game_request_id", ce);
|
|
8058
8061
|
return;
|
|
8059
|
-
} else if (
|
|
8060
|
-
if (
|
|
8062
|
+
} else if (De && De === ce) {
|
|
8063
|
+
if (ze === "rollback") {
|
|
8061
8064
|
M();
|
|
8062
8065
|
return;
|
|
8063
8066
|
}
|
|
@@ -8065,50 +8068,64 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8065
8068
|
type: "ui/showToast",
|
|
8066
8069
|
payload: {
|
|
8067
8070
|
title: Wa[_] || "System Prompt",
|
|
8068
|
-
description: `您於${
|
|
8071
|
+
description: `您於${ye}存入的${ge}元已經處理完成了,請確認遊戲餘額`,
|
|
8069
8072
|
status: "success"
|
|
8070
8073
|
}
|
|
8071
8074
|
}), s();
|
|
8072
8075
|
}
|
|
8073
|
-
h?.(
|
|
8076
|
+
h?.(V);
|
|
8074
8077
|
}
|
|
8075
8078
|
break;
|
|
8076
|
-
case
|
|
8077
|
-
w(
|
|
8079
|
+
case Fe.CASH_REGISTER_LIMIT:
|
|
8080
|
+
w(ae, {
|
|
8078
8081
|
notificationType: "cashRegisterLimit",
|
|
8079
|
-
amount:
|
|
8080
|
-
limitAmount:
|
|
8081
|
-
}), E?.(
|
|
8082
|
+
amount: be,
|
|
8083
|
+
limitAmount: Ce
|
|
8084
|
+
}), E?.(V);
|
|
8082
8085
|
break;
|
|
8083
|
-
case
|
|
8084
|
-
|
|
8086
|
+
case Fe.UPDATE_ONLY_ONE_MEMBER:
|
|
8087
|
+
Y && (i.invalidateQueries({
|
|
8085
8088
|
queryKey: ["getMemberInfo"]
|
|
8086
|
-
}), W?.(
|
|
8089
|
+
}), W?.(V));
|
|
8087
8090
|
break;
|
|
8088
|
-
case
|
|
8089
|
-
const
|
|
8090
|
-
maintainList:
|
|
8091
|
+
case Fe.GAME_MAINTAIN: {
|
|
8092
|
+
const ce = V.data, { show: ge } = es({
|
|
8093
|
+
maintainList: ce,
|
|
8091
8094
|
// 直接用當前路由判斷是否在 gamebox(不依賴 transferInGamingConfig,
|
|
8092
8095
|
// 因為不是每隻遊戲都會帶入該設定)
|
|
8093
8096
|
isInGameBox: window.location.pathname.includes("gamebox"),
|
|
8094
8097
|
currentGamePlatform: l.getState()?.game?.currentGameData?.gamePlatform ?? null
|
|
8095
8098
|
});
|
|
8096
|
-
|
|
8099
|
+
ge && w(ae, {
|
|
8097
8100
|
notificationType: "gameMaintain"
|
|
8098
8101
|
});
|
|
8099
8102
|
break;
|
|
8100
8103
|
}
|
|
8101
|
-
case
|
|
8102
|
-
|
|
8103
|
-
line_id:
|
|
8104
|
-
line_name:
|
|
8104
|
+
case Fe.LINE_LOGIN:
|
|
8105
|
+
ve === pe && x({
|
|
8106
|
+
line_id: _e,
|
|
8107
|
+
line_name: Ee
|
|
8105
8108
|
});
|
|
8106
8109
|
break;
|
|
8107
|
-
case
|
|
8108
|
-
|
|
8110
|
+
case Fe.UPDATE_EVENT_WALLET:
|
|
8111
|
+
Y && (i.invalidateQueries({ queryKey: ["getEventWalletList"] }), i.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
|
|
8112
|
+
return;
|
|
8113
|
+
case Fe.MONTHLY_CARD_ISSUE_POINT:
|
|
8114
|
+
Y && (i.invalidateQueries({ queryKey: Si }), J?.(V));
|
|
8109
8115
|
return;
|
|
8110
|
-
|
|
8111
|
-
|
|
8116
|
+
/**
|
|
8117
|
+
* event_claimable:活動可領取推播
|
|
8118
|
+
* 訊息格式:{ type, member_info_uid, data: { event_uid: [3001, 3005] } }
|
|
8119
|
+
* - 不管有沒有 event_uid,都觸發 useCheckEventStatus(invalidate 讓它 refetch)
|
|
8120
|
+
* - 有 event_uid 時,另外執行外部傳入的客製化 function(帶入整包 payload)
|
|
8121
|
+
* 註:與其他 event/member 推播一致,僅對「當前會員」生效(isForMember)。
|
|
8122
|
+
*/
|
|
8123
|
+
case Fe.EVENT_CLAIMABLE:
|
|
8124
|
+
if (Y) {
|
|
8125
|
+
i.invalidateQueries({ queryKey: ["checkEventStatus"] });
|
|
8126
|
+
const ce = V.data?.event_uid;
|
|
8127
|
+
(Array.isArray(ce) ? ce.length > 0 : ce != null) && q?.(V);
|
|
8128
|
+
}
|
|
8112
8129
|
return;
|
|
8113
8130
|
default:
|
|
8114
8131
|
console.warn("Unknown socket type:", $);
|
|
@@ -8127,22 +8144,22 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8127
8144
|
s,
|
|
8128
8145
|
C,
|
|
8129
8146
|
x
|
|
8130
|
-
]),
|
|
8147
|
+
]), ue(() => () => c.current = !0, []), ue(() => {
|
|
8131
8148
|
localStorage.getItem(
|
|
8132
8149
|
"transfer_in_game_request_id"
|
|
8133
8150
|
) && m();
|
|
8134
|
-
}, [m]),
|
|
8151
|
+
}, [m]), ue(() => {
|
|
8135
8152
|
if (v) {
|
|
8136
8153
|
const L = localStorage.getItem(
|
|
8137
8154
|
"transfer_in_game_request_id"
|
|
8138
8155
|
);
|
|
8139
8156
|
L && f && p && T({
|
|
8140
|
-
type:
|
|
8157
|
+
type: Fe.CHECK_REQUEST,
|
|
8141
8158
|
request_id: L,
|
|
8142
8159
|
member_info_uid: f
|
|
8143
8160
|
});
|
|
8144
8161
|
}
|
|
8145
|
-
}, [f, p, T, v]),
|
|
8162
|
+
}, [f, p, T, v]), ue(() => {
|
|
8146
8163
|
p ? l.dispatch({
|
|
8147
8164
|
type: "ui/showToast",
|
|
8148
8165
|
payload: {
|
|
@@ -8219,7 +8236,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8219
8236
|
select: (l) => {
|
|
8220
8237
|
try {
|
|
8221
8238
|
const { data: t } = l;
|
|
8222
|
-
return
|
|
8239
|
+
return Se(t, (o) => {
|
|
8223
8240
|
const { events_attributes: s } = o, p = We(
|
|
8224
8241
|
s,
|
|
8225
8242
|
(v) => v.attribute_currency === U
|
|
@@ -8298,7 +8315,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8298
8315
|
rewardType: p?.reward_type,
|
|
8299
8316
|
//獎勵類型
|
|
8300
8317
|
rewardDetail: p?.rewards || {},
|
|
8301
|
-
originEventAttribute:
|
|
8318
|
+
originEventAttribute: Se(s, (v) => ({
|
|
8302
8319
|
isActive: v.attribute_is_active === 1,
|
|
8303
8320
|
currencyCode: v.attribute_currency,
|
|
8304
8321
|
value: v.attribute_value,
|
|
@@ -8526,7 +8543,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8526
8543
|
queryFn: async () => await a(),
|
|
8527
8544
|
select: (u) => {
|
|
8528
8545
|
const g = Ye(u) ? u : u?.data ?? [];
|
|
8529
|
-
return
|
|
8546
|
+
return Se(g, (U) => {
|
|
8530
8547
|
const d = We(U?.news_language, { language: r }) || We(U?.news_language, { language: "en_US" }) || U?.news_language?.[0];
|
|
8531
8548
|
return {
|
|
8532
8549
|
...U,
|
|
@@ -8573,7 +8590,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8573
8590
|
return g && !a ? g : await r();
|
|
8574
8591
|
},
|
|
8575
8592
|
select: (g) => {
|
|
8576
|
-
const U = Ye(g) ? g : g.Marquees, d = Ye(g) ? g : g.MarqueesInsideGameBox, l =
|
|
8593
|
+
const U = Ye(g) ? g : g.Marquees, d = Ye(g) ? g : g.MarqueesInsideGameBox, l = Se(U, (i) => i[u] || i?.en_US), t = Se(d, (i) => i[u] || i?.en_US);
|
|
8577
8594
|
return {
|
|
8578
8595
|
marquee: l,
|
|
8579
8596
|
gameMarquee: t
|
|
@@ -8581,14 +8598,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8581
8598
|
}
|
|
8582
8599
|
});
|
|
8583
8600
|
}, fu = ({ options: e } = {}) => {
|
|
8584
|
-
const { rankingGameApi: n } =
|
|
8601
|
+
const { rankingGameApi: n } = re();
|
|
8585
8602
|
return Q({
|
|
8586
8603
|
queryKey: ["rankingGame"],
|
|
8587
8604
|
queryFn: async () => n(),
|
|
8588
8605
|
enabled: window.profit_ranking_status === 1,
|
|
8589
8606
|
select: (a) => {
|
|
8590
8607
|
const { data: r } = a;
|
|
8591
|
-
return
|
|
8608
|
+
return Se(r, (g) => {
|
|
8592
8609
|
const {
|
|
8593
8610
|
game_uid: U,
|
|
8594
8611
|
game_code: d,
|
|
@@ -8915,7 +8932,7 @@ function mi(e, n) {
|
|
|
8915
8932
|
if (!(u - a < n)) return a = u, e(...r);
|
|
8916
8933
|
};
|
|
8917
8934
|
}
|
|
8918
|
-
var
|
|
8935
|
+
var xe = () => Date.now(), Oa = 2147483647;
|
|
8919
8936
|
function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: a = 0, element: r = bs, events: u = Cs, timers: g = void 0, immediateEvents: U = [], onPresenceChange: d = () => {
|
|
8920
8937
|
}, onPrompt: l = () => {
|
|
8921
8938
|
}, onIdle: t = () => {
|
|
@@ -8923,8 +8940,8 @@ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8923
8940
|
}, onAction: o = () => {
|
|
8924
8941
|
}, onMessage: s = () => {
|
|
8925
8942
|
}, debounce: p = 0, throttle: m = 0, eventsThrottle: _ = 200, startOnMount: c = !0, startManually: y = !1, stopOnIdle: f = !1, crossTab: b = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: D = !1 } = {}) {
|
|
8926
|
-
let M =
|
|
8927
|
-
|
|
8943
|
+
let M = ie(xe()), A = ie(xe()), T = ie(null), S = ie(null), F = ie(0), P = ie(0), w = ie(0), R = ie(0), L = ie(!1), B = ie(!1), O = ie(!1), W = ie(!0), z = ie(!1), G = ie(null), h = ie(null), E = ie(e), N = ie(0);
|
|
8944
|
+
ue(() => {
|
|
8928
8945
|
if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
8929
8946
|
if (e >= Oa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Oa}.`);
|
|
8930
8947
|
if (n >= Oa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Oa}.`);
|
|
@@ -8932,152 +8949,152 @@ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8932
8949
|
if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8933
8950
|
if (a ? (E.current = e - a, N.current = a) : (E.current = e, N.current = n), !W.current) {
|
|
8934
8951
|
if (y || D) return;
|
|
8935
|
-
L.current && (
|
|
8952
|
+
L.current && (pe.current(null, Le), h.current && h.current.active()), Xe();
|
|
8936
8953
|
}
|
|
8937
8954
|
}, [e, n, a, y, D]);
|
|
8938
|
-
let
|
|
8939
|
-
|
|
8940
|
-
|
|
8955
|
+
let J = ie(f);
|
|
8956
|
+
ue(() => {
|
|
8957
|
+
J.current = f;
|
|
8941
8958
|
}, [f]);
|
|
8942
|
-
let
|
|
8943
|
-
|
|
8944
|
-
|
|
8959
|
+
let q = ie(U), $ = ie(r), V = ie([...(/* @__PURE__ */ new Set([...u, ...U])).values()]), Y = ie(D);
|
|
8960
|
+
ue(() => {
|
|
8961
|
+
Y.current = D, !W.current && (D ? Ze() : y || Xe());
|
|
8945
8962
|
}, [D]);
|
|
8946
|
-
let
|
|
8947
|
-
|
|
8948
|
-
|
|
8963
|
+
let ae = ie(d);
|
|
8964
|
+
ue(() => {
|
|
8965
|
+
ae.current = d;
|
|
8949
8966
|
}, [d]);
|
|
8950
|
-
let
|
|
8951
|
-
|
|
8952
|
-
|
|
8967
|
+
let be = ie(l);
|
|
8968
|
+
ue(() => {
|
|
8969
|
+
be.current = l;
|
|
8953
8970
|
}, [l]);
|
|
8954
|
-
let
|
|
8955
|
-
|
|
8956
|
-
|
|
8971
|
+
let Ce = ie(t);
|
|
8972
|
+
ue(() => {
|
|
8973
|
+
Ce.current = t;
|
|
8957
8974
|
}, [t]);
|
|
8958
|
-
let
|
|
8959
|
-
|
|
8960
|
-
|
|
8975
|
+
let pe = ie(i);
|
|
8976
|
+
ue(() => {
|
|
8977
|
+
pe.current = i;
|
|
8961
8978
|
}, [i]);
|
|
8962
|
-
let _e =
|
|
8963
|
-
|
|
8979
|
+
let _e = ie(o);
|
|
8980
|
+
ue(() => {
|
|
8964
8981
|
_e.current = o;
|
|
8965
8982
|
}, [o]);
|
|
8966
|
-
let
|
|
8967
|
-
|
|
8968
|
-
|
|
8983
|
+
let Ee = ie(s);
|
|
8984
|
+
ue(() => {
|
|
8985
|
+
Ee.current = s;
|
|
8969
8986
|
}, [s]);
|
|
8970
|
-
let
|
|
8971
|
-
let
|
|
8972
|
-
return p > 0 ? vs(
|
|
8973
|
-
}, [m, p]),
|
|
8974
|
-
|
|
8975
|
-
b && v && (
|
|
8987
|
+
let ve = Ha(() => {
|
|
8988
|
+
let Z = (Ge, na) => _e.current(Ge, na);
|
|
8989
|
+
return p > 0 ? vs(Z, p) : m > 0 ? mi(Z, m) : Z;
|
|
8990
|
+
}, [m, p]), ce = ie();
|
|
8991
|
+
ue(() => {
|
|
8992
|
+
b && v && (ce.current = mi(() => {
|
|
8976
8993
|
h.current.active();
|
|
8977
8994
|
}, v));
|
|
8978
8995
|
}, [b, v]);
|
|
8979
|
-
let
|
|
8996
|
+
let ge = () => {
|
|
8980
8997
|
G.current !== null && (aa.clearTimeout(G.current), G.current = null);
|
|
8981
|
-
},
|
|
8982
|
-
|
|
8983
|
-
},
|
|
8984
|
-
!B.current && !L.current && (
|
|
8985
|
-
},
|
|
8986
|
-
|
|
8987
|
-
},
|
|
8988
|
-
|
|
8989
|
-
},
|
|
8998
|
+
}, ye = (Z, Ge = !0) => {
|
|
8999
|
+
ge(), G.current = aa.setTimeout(Ve, Z || E.current), Ge && (S.current = xe());
|
|
9000
|
+
}, ze = (Z) => {
|
|
9001
|
+
!B.current && !L.current && (be.current(Z, Le), ae.current({ type: "active", prompted: !0 }, Le)), R.current = 0, w.current = xe(), B.current = !0, ye(N.current, !1);
|
|
9002
|
+
}, De = () => {
|
|
9003
|
+
ge(), L.current || (Ce.current(null, Le), ae.current({ type: "idle" }, Le)), L.current = !0, T.current = xe(), J.current ? Oe() : B.current && (w.current = 0, B.current = !1);
|
|
9004
|
+
}, Te = (Z) => {
|
|
9005
|
+
ge(), (L.current || B.current) && (pe.current(Z, Le), ae.current({ type: "active", prompted: !1 }, Le)), B.current = !1, w.current = 0, L.current = !1, F.current += xe() - T.current, P.current += xe() - T.current, Ne(), ye();
|
|
9006
|
+
}, Ve = (Z) => {
|
|
8990
9007
|
if (!L.current) {
|
|
8991
|
-
|
|
8992
|
-
let
|
|
8993
|
-
if (!(E.current + N.current <
|
|
8994
|
-
h.current ? h.current.prompt() :
|
|
9008
|
+
ve.cancel && ve.cancel();
|
|
9009
|
+
let Ge = xe() - S.current;
|
|
9010
|
+
if (!(E.current + N.current < Ge) && N.current > 0 && !B.current) {
|
|
9011
|
+
h.current ? h.current.prompt() : ze(Z);
|
|
8995
9012
|
return;
|
|
8996
9013
|
}
|
|
8997
|
-
h.current ? h.current.idle() :
|
|
9014
|
+
h.current ? h.current.idle() : De();
|
|
8998
9015
|
return;
|
|
8999
9016
|
}
|
|
9000
|
-
h.current ? h.current.active() :
|
|
9001
|
-
}, ta = (
|
|
9002
|
-
if (!c && !S.current && (S.current =
|
|
9003
|
-
if (
|
|
9004
|
-
|
|
9017
|
+
h.current ? h.current.active() : Te(Z);
|
|
9018
|
+
}, ta = (Z) => {
|
|
9019
|
+
if (!c && !S.current && (S.current = xe(), pe.current(null, Le)), ve(Z, Le), B.current) return;
|
|
9020
|
+
if (ge(), !L.current && q.current.includes(Z.type)) {
|
|
9021
|
+
Ve(Z);
|
|
9005
9022
|
return;
|
|
9006
9023
|
}
|
|
9007
|
-
let
|
|
9008
|
-
if (L.current && !f || !L.current &&
|
|
9009
|
-
|
|
9024
|
+
let Ge = xe() - S.current;
|
|
9025
|
+
if (L.current && !f || !L.current && Ge >= E.current) {
|
|
9026
|
+
Ve(Z);
|
|
9010
9027
|
return;
|
|
9011
9028
|
}
|
|
9012
|
-
O.current = !1, R.current = 0, w.current = 0,
|
|
9013
|
-
}, ia =
|
|
9014
|
-
|
|
9015
|
-
let
|
|
9016
|
-
|
|
9029
|
+
O.current = !1, R.current = 0, w.current = 0, ye(), b && v && ce.current();
|
|
9030
|
+
}, ia = ie(ta);
|
|
9031
|
+
ue(() => {
|
|
9032
|
+
let Z = z.current;
|
|
9033
|
+
Z && Oe(), _ > 0 ? ia.current = mi(ta, _) : ia.current = ta, Z && Ne();
|
|
9017
9034
|
}, [_, m, p, _e, b, v]);
|
|
9018
|
-
let
|
|
9019
|
-
pa &&
|
|
9020
|
-
|
|
9035
|
+
let Ne = () => {
|
|
9036
|
+
pa && $.current && (z.current || (V.current.forEach((Z) => {
|
|
9037
|
+
$.current.addEventListener(Z, ia.current, { capture: !0, passive: !0 });
|
|
9021
9038
|
}), z.current = !0));
|
|
9022
|
-
},
|
|
9023
|
-
pa &&
|
|
9024
|
-
|
|
9039
|
+
}, Oe = (Z = !1) => {
|
|
9040
|
+
pa && $.current && (z.current || Z) && (V.current.forEach((Ge) => {
|
|
9041
|
+
$.current.removeEventListener(Ge, ia.current, { capture: !0 });
|
|
9025
9042
|
}), z.current = !1);
|
|
9026
|
-
}, Xe = H((
|
|
9043
|
+
}, Xe = H((Z) => Y.current ? !1 : (ge(), Ne(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !Z && h.current.start(), ye(), !0), [G, L, Y, E, h]), oa = H((Z) => Y.current ? !1 : (ge(), Ne(), A.current = xe(), F.current += xe() - T.current, P.current += xe() - T.current, F.current = 0, L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !Z && h.current.reset(), y || ye(), !0), [G, L, E, y, Y, h]), ga = H((Z) => Y.current ? !1 : (ge(), Ne(), (L.current || B.current) && Te(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, A.current = xe(), h.current && !Z && h.current.activate(), ye(), !0), [G, L, B, Y, E, h]), Ze = H((Z = !1) => Y.current || O.current ? !1 : (R.current = ya(), O.current = !0, Oe(), ge(), h.current && !Z && h.current.pause(), !0), [G, Y, h]), ea = H((Z = !1) => Y.current || !O.current ? !1 : (O.current = !1, B.current || Ne(), L.current || ye(R.current), w.current && (w.current = xe()), h.current && !Z && h.current.resume(), !0), [G, E, Y, R, h]), Ja = H((Z, Ge) => (h.current ? (Ge && Ee.current(Z, Le), h.current.message(Z)) : Ge && Ee.current(Z, Le), !0), [s]), Na = H(() => L.current, [L]), La = H(() => B.current, [B]), Za = H(() => h.current ? h.current.isLeader : null, [h]), Ka = H(() => h.current ? h.current.isLastActive : null, [h]), da = H(() => h.current ? h.current.token : null, [h]), ya = H(() => {
|
|
9027
9044
|
if (O.current) return R.current;
|
|
9028
|
-
let
|
|
9045
|
+
let Z = R.current ? R.current : N.current + E.current, Ge = S.current ? xe() - S.current : 0, na = Math.floor(Z - Ge);
|
|
9029
9046
|
return na < 0 ? 0 : Math.abs(na);
|
|
9030
|
-
}, [E, N, B, R, S]), Qe = H(() => Math.round(
|
|
9031
|
-
let
|
|
9032
|
-
return
|
|
9047
|
+
}, [E, N, B, R, S]), Qe = H(() => Math.round(xe() - A.current), [A]), ca = H(() => Math.round(xe() - M.current), [M]), fa = H(() => T.current ? new Date(T.current) : null, [T]), Ga = H(() => S.current ? new Date(S.current) : null, [S]), Ma = H(() => L.current ? Math.round(xe() - T.current + F.current) : Math.round(F.current), [T, F]), Ua = H(() => L.current ? Math.round(xe() - T.current + P.current) : Math.round(P.current), [T, P]), Ra = H(() => {
|
|
9048
|
+
let Z = Math.round(Qe() - Ma());
|
|
9049
|
+
return Z >= 0 ? Z : 0;
|
|
9033
9050
|
}, [T, F]), Pa = H(() => {
|
|
9034
|
-
let
|
|
9035
|
-
return
|
|
9051
|
+
let Z = Math.round(ca() - Ua());
|
|
9052
|
+
return Z >= 0 ? Z : 0;
|
|
9036
9053
|
}, [T, F]);
|
|
9037
|
-
|
|
9054
|
+
ue(() => {
|
|
9038
9055
|
if (p > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
9039
9056
|
g && ds(g);
|
|
9040
|
-
let
|
|
9041
|
-
h.current && h.current.close(),
|
|
9057
|
+
let Z = () => {
|
|
9058
|
+
h.current && h.current.close(), ve.cancel && ve.cancel(), ge(), Oe(!0);
|
|
9042
9059
|
};
|
|
9043
|
-
return pa && window.addEventListener("beforeunload",
|
|
9044
|
-
pa && window.removeEventListener("beforeunload",
|
|
9060
|
+
return pa && window.addEventListener("beforeunload", Z), () => {
|
|
9061
|
+
pa && window.removeEventListener("beforeunload", Z), h.current && h.current.close(), ve.cancel && ve.cancel(), ge(), Oe(!0);
|
|
9045
9062
|
};
|
|
9046
|
-
}, []),
|
|
9063
|
+
}, []), ue(() => {
|
|
9047
9064
|
h.current && h.current.close(), b ? h.current = new Us({ channelName: C, leaderElection: x, onPrompt: () => {
|
|
9048
|
-
|
|
9065
|
+
ze();
|
|
9049
9066
|
}, onIdle: () => {
|
|
9050
|
-
|
|
9067
|
+
De();
|
|
9051
9068
|
}, onActive: () => {
|
|
9052
|
-
|
|
9053
|
-
}, onMessage: (
|
|
9054
|
-
|
|
9069
|
+
Te();
|
|
9070
|
+
}, onMessage: (Z) => {
|
|
9071
|
+
Ee.current(Z, Le);
|
|
9055
9072
|
}, start: Xe, reset: oa, activate: ga, pause: Ze, resume: ea }) : h.current = null;
|
|
9056
|
-
}, [b, C, x,
|
|
9057
|
-
W.current || (
|
|
9058
|
-
}, [y, c, D, W]),
|
|
9073
|
+
}, [b, C, x, be, Ce, pe, Ee, Xe, oa, Ze, ea]), ue(() => {
|
|
9074
|
+
W.current || (ge(), Oe(!0)), !(y || D) && (c ? Xe() : Ne());
|
|
9075
|
+
}, [y, c, D, W]), ue(() => {
|
|
9059
9076
|
if (!W.current) {
|
|
9060
|
-
let
|
|
9061
|
-
if (
|
|
9062
|
-
c ? Xe() :
|
|
9077
|
+
let Z = [...(/* @__PURE__ */ new Set([...u, ...U])).values()];
|
|
9078
|
+
if (Oe(), V.current = Z, $.current = r, q.current = U, y || D) return;
|
|
9079
|
+
c ? Xe() : Ne();
|
|
9063
9080
|
}
|
|
9064
|
-
}, [r, JSON.stringify(u), JSON.stringify(U), W, D, y, c]),
|
|
9081
|
+
}, [r, JSON.stringify(u), JSON.stringify(U), W, D, y, c]), ue(() => {
|
|
9065
9082
|
W.current && (W.current = !1);
|
|
9066
9083
|
}, [W]);
|
|
9067
|
-
let
|
|
9068
|
-
d =
|
|
9069
|
-
}, setOnPrompt: (
|
|
9070
|
-
l =
|
|
9071
|
-
}, setOnIdle: (
|
|
9072
|
-
t =
|
|
9073
|
-
}, setOnActive: (
|
|
9074
|
-
i =
|
|
9075
|
-
}, setOnAction: (
|
|
9076
|
-
o =
|
|
9077
|
-
}, setOnMessage: (
|
|
9078
|
-
s =
|
|
9084
|
+
let Le = { message: Ja, start: Xe, reset: oa, activate: ga, pause: Ze, resume: ea, isIdle: Na, isPrompted: La, isLeader: Za, isLastActiveTab: Ka, getTabId: da, getRemainingTime: ya, getElapsedTime: Qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Ga, getIdleTime: Ma, getTotalIdleTime: Ua, getActiveTime: Ra, getTotalActiveTime: Pa, setOnPresenceChange: (Z) => {
|
|
9085
|
+
d = Z, ae.current = Z;
|
|
9086
|
+
}, setOnPrompt: (Z) => {
|
|
9087
|
+
l = Z, be.current = Z;
|
|
9088
|
+
}, setOnIdle: (Z) => {
|
|
9089
|
+
t = Z, Ce.current = Z;
|
|
9090
|
+
}, setOnActive: (Z) => {
|
|
9091
|
+
i = Z, pe.current = Z;
|
|
9092
|
+
}, setOnAction: (Z) => {
|
|
9093
|
+
o = Z, _e.current = Z;
|
|
9094
|
+
}, setOnMessage: (Z) => {
|
|
9095
|
+
s = Z, Ee.current = Z;
|
|
9079
9096
|
} };
|
|
9080
|
-
return
|
|
9097
|
+
return Le;
|
|
9081
9098
|
}
|
|
9082
9099
|
var Ts = jt(null);
|
|
9083
9100
|
Ts.Consumer;
|
|
@@ -9094,7 +9111,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9094
9111
|
queryFn: async () => await n(),
|
|
9095
9112
|
select: (U) => {
|
|
9096
9113
|
const { data: d } = U;
|
|
9097
|
-
return
|
|
9114
|
+
return Se(d, (t) => {
|
|
9098
9115
|
const { internal_notifications_language: i } = t;
|
|
9099
9116
|
return {
|
|
9100
9117
|
...t,
|
|
@@ -9191,7 +9208,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9191
9208
|
return r({ uid: g, params: U });
|
|
9192
9209
|
},
|
|
9193
9210
|
select: (g) => {
|
|
9194
|
-
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l =
|
|
9211
|
+
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l = Se(d, (t) => {
|
|
9195
9212
|
const i = We(t.news_language, {
|
|
9196
9213
|
language: u
|
|
9197
9214
|
}) || t.news_language[0];
|
|
@@ -9227,7 +9244,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9227
9244
|
},
|
|
9228
9245
|
...e
|
|
9229
9246
|
});
|
|
9230
|
-
},
|
|
9247
|
+
}, we = () => {
|
|
9231
9248
|
const { client: e } = se(), n = H(async () => await e.get("/payment/list"), [e]), a = H(
|
|
9232
9249
|
async ({ paramsData: c }) => await e.get("/thirdPartyPayment/list", {
|
|
9233
9250
|
params: { ...c }
|
|
@@ -9278,11 +9295,11 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9278
9295
|
[e]
|
|
9279
9296
|
), U = H(
|
|
9280
9297
|
async ({ paramsData: c } = {}) => {
|
|
9281
|
-
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v =
|
|
9298
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Me().format("HH:mm:ss"), x = Me().subtract(24, "hour").format("HH:mm:ss");
|
|
9282
9299
|
return await e.get("/report/deposit", {
|
|
9283
9300
|
params: {
|
|
9284
|
-
str_date: `${
|
|
9285
|
-
end_date: `${
|
|
9301
|
+
str_date: `${Me(y).format("YYYY-MM-DD")} ${v}`,
|
|
9302
|
+
end_date: `${Me(f).format("YYYY-MM-DD")} ${x}`,
|
|
9286
9303
|
limit: b,
|
|
9287
9304
|
page: C
|
|
9288
9305
|
}
|
|
@@ -9291,11 +9308,11 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9291
9308
|
[e]
|
|
9292
9309
|
), d = H(
|
|
9293
9310
|
async ({ paramsData: c }) => {
|
|
9294
|
-
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v =
|
|
9311
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Me().format("HH:mm:ss"), x = Me().subtract(24, "hour").format("HH:mm:ss");
|
|
9295
9312
|
return await e.get("report/eventsreward", {
|
|
9296
9313
|
params: {
|
|
9297
|
-
str_date: `${
|
|
9298
|
-
end_date: `${
|
|
9314
|
+
str_date: `${Me(y).format("YYYY-MM-DD")} ${v}`,
|
|
9315
|
+
end_date: `${Me(f).format("YYYY-MM-DD")} ${x}`,
|
|
9299
9316
|
limit: b,
|
|
9300
9317
|
page: C
|
|
9301
9318
|
}
|
|
@@ -9307,8 +9324,8 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9307
9324
|
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9308
9325
|
return await e.get("/report/withdraw", {
|
|
9309
9326
|
params: {
|
|
9310
|
-
str_date: `${
|
|
9311
|
-
end_date: `${
|
|
9327
|
+
str_date: `${Me(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9328
|
+
end_date: `${Me(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9312
9329
|
limit: b,
|
|
9313
9330
|
page: C
|
|
9314
9331
|
}
|
|
@@ -9320,8 +9337,8 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9320
9337
|
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9321
9338
|
return await e.get("/report/other", {
|
|
9322
9339
|
params: {
|
|
9323
|
-
str_date: `${
|
|
9324
|
-
end_date: `${
|
|
9340
|
+
str_date: `${Me(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9341
|
+
end_date: `${Me(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9325
9342
|
limit: b,
|
|
9326
9343
|
page: C
|
|
9327
9344
|
}
|
|
@@ -9433,21 +9450,21 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9433
9450
|
otherTransactionApi: t
|
|
9434
9451
|
};
|
|
9435
9452
|
}, Ds = ({ options: e } = {}) => {
|
|
9436
|
-
const { depositApiV1: n } =
|
|
9453
|
+
const { depositApiV1: n } = we();
|
|
9437
9454
|
return Q({
|
|
9438
9455
|
queryKey: ["depositV1"],
|
|
9439
9456
|
queryFn: n,
|
|
9440
9457
|
...e
|
|
9441
9458
|
});
|
|
9442
9459
|
}, Es = ({ paramsData: e, options: n } = {}) => {
|
|
9443
|
-
const { depositApiV2: a } =
|
|
9460
|
+
const { depositApiV2: a } = we();
|
|
9444
9461
|
return Q({
|
|
9445
9462
|
queryKey: ["depositV2", e],
|
|
9446
9463
|
queryFn: () => a({ paramsData: e }),
|
|
9447
9464
|
select: (r) => {
|
|
9448
|
-
const { third_party: u, bank: g, vip: U } = r, d =
|
|
9465
|
+
const { third_party: u, bank: g, vip: U } = r, d = Se(u, (l) => ({
|
|
9449
9466
|
...l,
|
|
9450
|
-
providerList:
|
|
9467
|
+
providerList: Se(l.providers, (t) => ({
|
|
9451
9468
|
...t,
|
|
9452
9469
|
providerUid: t.uid,
|
|
9453
9470
|
providerImageUrl: `${qe}/paymentIcon/${Ni(t.provider_name)}.png`,
|
|
@@ -9465,112 +9482,112 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9465
9482
|
...n
|
|
9466
9483
|
});
|
|
9467
9484
|
}, Ns = ({ options: e } = {}) => {
|
|
9468
|
-
const { depositApi: n } =
|
|
9485
|
+
const { depositApi: n } = we();
|
|
9469
9486
|
return ee({
|
|
9470
9487
|
mutationKey: ["depositAction"],
|
|
9471
9488
|
mutationFn: async (a) => n(a),
|
|
9472
9489
|
...e
|
|
9473
9490
|
});
|
|
9474
9491
|
}, Ls = ({ options: e } = {}) => {
|
|
9475
|
-
const { withdrawApi: n } =
|
|
9492
|
+
const { withdrawApi: n } = we();
|
|
9476
9493
|
return ee({
|
|
9477
9494
|
mutationKey: ["withdrawAction"],
|
|
9478
9495
|
mutationFn: async (a) => n(a),
|
|
9479
9496
|
...e
|
|
9480
9497
|
});
|
|
9481
9498
|
}, Gs = ({ paramsData: e, options: n } = {}) => {
|
|
9482
|
-
const { depositTransactionApi: a } =
|
|
9499
|
+
const { depositTransactionApi: a } = we();
|
|
9483
9500
|
return Q({
|
|
9484
9501
|
queryKey: ["depositTransaction", e],
|
|
9485
9502
|
queryFn: () => a({ paramsData: e }),
|
|
9486
9503
|
...n
|
|
9487
9504
|
});
|
|
9488
9505
|
}, Ms = ({ paramsData: e, options: n } = {}) => {
|
|
9489
|
-
const { eventTransactionApi: a } =
|
|
9506
|
+
const { eventTransactionApi: a } = we();
|
|
9490
9507
|
return Q({
|
|
9491
9508
|
queryKey: ["eventTransaction", e],
|
|
9492
9509
|
queryFn: () => a({ paramsData: e }),
|
|
9493
9510
|
...n
|
|
9494
9511
|
});
|
|
9495
9512
|
}, Rs = ({ options: e } = {}) => {
|
|
9496
|
-
const { bankDepositApi: n } =
|
|
9513
|
+
const { bankDepositApi: n } = we();
|
|
9497
9514
|
return ee({
|
|
9498
9515
|
mutationKey: ["bankDeposit"],
|
|
9499
9516
|
mutationFn: async (a) => n(a),
|
|
9500
9517
|
...e
|
|
9501
9518
|
});
|
|
9502
9519
|
}, Ps = ({ paramsData: e, options: n } = {}) => {
|
|
9503
|
-
const { withdrawTransactionApi: a } =
|
|
9520
|
+
const { withdrawTransactionApi: a } = we();
|
|
9504
9521
|
return Q({
|
|
9505
9522
|
queryKey: ["withdrawTransaction", e],
|
|
9506
9523
|
queryFn: () => a({ paramsData: e }),
|
|
9507
9524
|
...n
|
|
9508
9525
|
});
|
|
9509
9526
|
}, Cu = ({ options: e } = {}) => {
|
|
9510
|
-
const { redeemCodeDepositApi: n } =
|
|
9527
|
+
const { redeemCodeDepositApi: n } = we();
|
|
9511
9528
|
return ee({
|
|
9512
9529
|
mutationKey: ["redeemCodeDeposit"],
|
|
9513
9530
|
mutationFn: async (a) => n(a),
|
|
9514
9531
|
...e
|
|
9515
9532
|
});
|
|
9516
9533
|
}, vu = ({ options: e } = {}) => {
|
|
9517
|
-
const { invoiceApi: n } =
|
|
9534
|
+
const { invoiceApi: n } = we();
|
|
9518
9535
|
return ee({
|
|
9519
9536
|
mutationKey: ["invoiceAction"],
|
|
9520
9537
|
mutationFn: async (a) => n(a),
|
|
9521
9538
|
...e
|
|
9522
9539
|
});
|
|
9523
9540
|
}, hu = ({ options: e } = {}) => {
|
|
9524
|
-
const { updateInvoiceApi: n } =
|
|
9541
|
+
const { updateInvoiceApi: n } = we();
|
|
9525
9542
|
return ee({
|
|
9526
9543
|
mutationKey: ["updateInvoiceAction"],
|
|
9527
9544
|
mutationFn: async (a) => n(a),
|
|
9528
9545
|
...e
|
|
9529
9546
|
});
|
|
9530
9547
|
}, Tu = ({ options: e, paramsData: n } = {}) => {
|
|
9531
|
-
const { transactionRecordApi: a } =
|
|
9548
|
+
const { transactionRecordApi: a } = we();
|
|
9532
9549
|
return Q({
|
|
9533
9550
|
queryKey: ["transactionRecord", "deposit"],
|
|
9534
9551
|
queryFn: () => a(n, "deposit"),
|
|
9535
9552
|
...e
|
|
9536
9553
|
});
|
|
9537
9554
|
}, ku = ({ options: e, paramsData: n } = {}) => {
|
|
9538
|
-
const { transactionRecordApi: a } =
|
|
9555
|
+
const { transactionRecordApi: a } = we();
|
|
9539
9556
|
return Q({
|
|
9540
9557
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9541
9558
|
queryFn: () => a(n, "withdraw"),
|
|
9542
9559
|
...e
|
|
9543
9560
|
});
|
|
9544
9561
|
}, xu = ({ options: e, paramsData: n } = {}) => {
|
|
9545
|
-
const { transactionRecordApi: a } =
|
|
9562
|
+
const { transactionRecordApi: a } = we();
|
|
9546
9563
|
return Q({
|
|
9547
9564
|
queryKey: ["transactionRecord", "event"],
|
|
9548
9565
|
queryFn: () => a(n, "event"),
|
|
9549
9566
|
...e
|
|
9550
9567
|
});
|
|
9551
9568
|
}, Su = ({ options: e, paramsData: n } = {}) => {
|
|
9552
|
-
const { transactionRecordApi: a } =
|
|
9569
|
+
const { transactionRecordApi: a } = we();
|
|
9553
9570
|
return Q({
|
|
9554
9571
|
queryKey: ["transactionRecord", "rebate"],
|
|
9555
9572
|
queryFn: () => a(n, "rebate"),
|
|
9556
9573
|
...e
|
|
9557
9574
|
});
|
|
9558
9575
|
}, Du = ({ options: e, paramsData: n } = {}) => {
|
|
9559
|
-
const { treasureRecordApi: a } =
|
|
9576
|
+
const { treasureRecordApi: a } = we();
|
|
9560
9577
|
return Q({
|
|
9561
9578
|
queryKey: ["treasureRecord", n],
|
|
9562
9579
|
queryFn: () => a(n),
|
|
9563
9580
|
...e
|
|
9564
9581
|
});
|
|
9565
9582
|
}, Eu = ({ options: e, paramsData: n } = {}) => {
|
|
9566
|
-
const { snCashRecordApi: a } =
|
|
9583
|
+
const { snCashRecordApi: a } = we();
|
|
9567
9584
|
return Q({
|
|
9568
9585
|
queryKey: ["snCashRecord", n],
|
|
9569
9586
|
queryFn: () => a(n),
|
|
9570
9587
|
...e
|
|
9571
9588
|
});
|
|
9572
9589
|
}, Nu = ({ options: e, paramsData: n } = {}) => {
|
|
9573
|
-
const { otherTransactionApi: a } =
|
|
9590
|
+
const { otherTransactionApi: a } = we();
|
|
9574
9591
|
return Q({
|
|
9575
9592
|
queryKey: ["otherTransaction", n],
|
|
9576
9593
|
queryFn: () => a({ paramsData: n }),
|
|
@@ -9602,7 +9619,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9602
9619
|
}, ur = "3.8.0", ws = ur, Va = typeof Buffer == "function", wn = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, Fn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Fs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Xa = Array.prototype.slice.call(Fs), ut = ((e) => {
|
|
9603
9620
|
let n = {};
|
|
9604
9621
|
return e.forEach((a, r) => n[a] = r), n;
|
|
9605
|
-
})(Xa), As = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,
|
|
9622
|
+
})(Xa), As = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Ae = String.fromCharCode.bind(String), An = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), pr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), gr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), dr = (e) => {
|
|
9606
9623
|
let n, a, r, u, g = "";
|
|
9607
9624
|
const U = e.length % 3;
|
|
9608
9625
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9614,25 +9631,25 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9614
9631
|
}, Di = typeof btoa == "function" ? (e) => btoa(e) : Va ? (e) => Buffer.from(e, "binary").toString("base64") : dr, gi = Va ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
9615
9632
|
let a = [];
|
|
9616
9633
|
for (let r = 0, u = e.length; r < u; r += 4096)
|
|
9617
|
-
a.push(
|
|
9634
|
+
a.push(Ae.apply(null, e.subarray(r, r + 4096)));
|
|
9618
9635
|
return Di(a.join(""));
|
|
9619
9636
|
}, $t = (e, n = !1) => n ? pr(gi(e)) : gi(e), Os = (e) => {
|
|
9620
9637
|
if (e.length < 2) {
|
|
9621
9638
|
var n = e.charCodeAt(0);
|
|
9622
|
-
return n < 128 ? e : n < 2048 ?
|
|
9639
|
+
return n < 128 ? e : n < 2048 ? Ae(192 | n >>> 6) + Ae(128 | n & 63) : Ae(224 | n >>> 12 & 15) + Ae(128 | n >>> 6 & 63) + Ae(128 | n & 63);
|
|
9623
9640
|
} else {
|
|
9624
9641
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9625
|
-
return
|
|
9642
|
+
return Ae(240 | n >>> 18 & 7) + Ae(128 | n >>> 12 & 63) + Ae(128 | n >>> 6 & 63) + Ae(128 | n & 63);
|
|
9626
9643
|
}
|
|
9627
9644
|
}, Bs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (e) => e.replace(Bs, Os), On = Va ? (e) => Buffer.from(e, "utf8").toString("base64") : Fn ? (e) => gi(Fn.encode(e)) : (e) => Di(cr(e)), za = (e, n = !1) => n ? pr(On(e)) : On(e), Bn = (e) => za(e, !0), Hs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ws = (e) => {
|
|
9628
9645
|
switch (e.length) {
|
|
9629
9646
|
case 4:
|
|
9630
9647
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), a = n - 65536;
|
|
9631
|
-
return
|
|
9648
|
+
return Ae((a >>> 10) + 55296) + Ae((a & 1023) + 56320);
|
|
9632
9649
|
case 3:
|
|
9633
|
-
return
|
|
9650
|
+
return Ae((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
9634
9651
|
default:
|
|
9635
|
-
return
|
|
9652
|
+
return Ae((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9636
9653
|
}
|
|
9637
9654
|
}, fr = (e) => e.replace(Hs, Ws), _r = (e) => {
|
|
9638
9655
|
if (e = e.replace(/\s+/g, ""), !As.test(e))
|
|
@@ -9640,7 +9657,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9640
9657
|
e += "==".slice(2 - (e.length & 3));
|
|
9641
9658
|
let n, a, r, u = [];
|
|
9642
9659
|
for (let g = 0; g < e.length; )
|
|
9643
|
-
n = ut[e.charAt(g++)] << 18 | ut[e.charAt(g++)] << 12 | (a = ut[e.charAt(g++)]) << 6 | (r = ut[e.charAt(g++)]), a === 64 ? u.push(
|
|
9660
|
+
n = ut[e.charAt(g++)] << 18 | ut[e.charAt(g++)] << 12 | (a = ut[e.charAt(g++)]) << 6 | (r = ut[e.charAt(g++)]), a === 64 ? u.push(Ae(n >> 16 & 255)) : r === 64 ? u.push(Ae(n >> 16 & 255, n >> 8 & 255)) : u.push(Ae(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9644
9661
|
return u.join("");
|
|
9645
9662
|
}, Ei = typeof atob == "function" ? (e) => atob(gr(e)) : Va ? (e) => Buffer.from(e, "base64").toString("binary") : _r, yr = Va ? (e) => An(Buffer.from(e, "base64")) : (e) => An(Ei(e).split("").map((n) => n.charCodeAt(0))), Ur = (e) => yr(br(e)), zs = Va ? (e) => Buffer.from(e, "base64").toString("utf8") : wn ? (e) => wn.decode(yr(e)) : (e) => fr(Ei(e)), br = (e) => gr(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), di = (e) => zs(br(e)), Is = (e) => {
|
|
9646
9663
|
if (typeof e != "string")
|
|
@@ -9794,7 +9811,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9794
9811
|
},
|
|
9795
9812
|
select: (r) => {
|
|
9796
9813
|
try {
|
|
9797
|
-
const u =
|
|
9814
|
+
const u = Se(j(r, "data.data", []), (g) => {
|
|
9798
9815
|
const {
|
|
9799
9816
|
wagering_restricted_amount: U,
|
|
9800
9817
|
claimed_amount: d
|
|
@@ -9932,7 +9949,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9932
9949
|
last_page: j(d, "last_page", 1)
|
|
9933
9950
|
};
|
|
9934
9951
|
return {
|
|
9935
|
-
list:
|
|
9952
|
+
list: Se(j(d, "data", []), (i) => {
|
|
9936
9953
|
const o = We(i.treasure_copywriting, {
|
|
9937
9954
|
language: u
|
|
9938
9955
|
});
|
|
@@ -9966,7 +9983,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9966
9983
|
queryKey: ["vipInfo"],
|
|
9967
9984
|
queryFn: async () => r(),
|
|
9968
9985
|
select: (u) => {
|
|
9969
|
-
const { data: g } = u, U = j(g, "data", []), d =
|
|
9986
|
+
const { data: g } = u, U = j(g, "data", []), d = Se(U, (t) => ({
|
|
9970
9987
|
currentWager: t.wagering || t.value,
|
|
9971
9988
|
currentStatus: t.status,
|
|
9972
9989
|
currentOverflow: t.promotion_overflow,
|
|
@@ -9979,7 +9996,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9979
9996
|
currentType: g.type,
|
|
9980
9997
|
currentOverflow: g.promotion_overflow,
|
|
9981
9998
|
nextLevel: g.promotion_level,
|
|
9982
|
-
typeList:
|
|
9999
|
+
typeList: Se(d, (t) => t.type),
|
|
9983
10000
|
currentWagerKeyBy: l
|
|
9984
10001
|
};
|
|
9985
10002
|
},
|
|
@@ -9995,14 +10012,14 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
9995
10012
|
},
|
|
9996
10013
|
select: (u) => {
|
|
9997
10014
|
const g = Ye(u) ? u : u.data;
|
|
9998
|
-
return
|
|
10015
|
+
return Se(g, (d) => {
|
|
9999
10016
|
const {
|
|
10000
10017
|
vip_criteria: l,
|
|
10001
10018
|
vip_payment_tags: t,
|
|
10002
10019
|
vip_withdrawal_rate: i,
|
|
10003
10020
|
rebate_range: o,
|
|
10004
10021
|
vip_game_rebate: s
|
|
10005
|
-
} = d, p = We(l, { currency_code: a }) || {}, m = We(t, { currency_code: a }) || {}, _ = i, c =
|
|
10022
|
+
} = d, p = We(l, { currency_code: a }) || {}, m = We(t, { currency_code: a }) || {}, _ = i, c = Se(o, (b) => ({
|
|
10006
10023
|
...b,
|
|
10007
10024
|
rebateRange: JSON.parse(b.rebate_range)
|
|
10008
10025
|
})), y = j(s, "[0]", {}), f = {
|
|
@@ -10027,13 +10044,13 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10027
10044
|
}) => ({
|
|
10028
10045
|
vipList: Xs({ options: e.vipList })
|
|
10029
10046
|
}), Ou = ({ onMessage: e } = {}) => {
|
|
10030
|
-
const [n, a] = at(!1), [r, u] = at([]), g =
|
|
10047
|
+
const [n, a] = at(!1), [r, u] = at([]), g = ie(e);
|
|
10031
10048
|
g.current = e;
|
|
10032
10049
|
const U = H((o) => {
|
|
10033
10050
|
const s = (/* @__PURE__ */ new Date()).toLocaleTimeString("zh-TW");
|
|
10034
10051
|
u((p) => [...p, { time: s, message: o }]);
|
|
10035
10052
|
}, []);
|
|
10036
|
-
|
|
10053
|
+
ue(() => {
|
|
10037
10054
|
if (window.chrome && window.chrome.webview) {
|
|
10038
10055
|
a(!0), U("WebView2 環境已就緒");
|
|
10039
10056
|
const o = (s) => {
|
|
@@ -10194,7 +10211,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10194
10211
|
tempMaintenanceEndTime: o,
|
|
10195
10212
|
platformImageUrl: s
|
|
10196
10213
|
};
|
|
10197
|
-
}, am = (e = {}) => !Yt(e) ||
|
|
10214
|
+
}, am = (e = {}) => !Yt(e) || Re(e) ? [] : Xt(e), Hn = (e = []) => !Ye(e) || Re(e) ? [] : Se(e, "platform"), tm = (e = []) => !Ye(e) || Re(e) ? [] : Se(e, "gameTypeName"), im = (e = []) => !Ye(e) || Re(e) ? [] : Se(e, "game_subtype"), nm = (e = {}) => !Yt(e) || Re(e) ? [] : Xt(e), rm = (e = [], n = []) => !Ye(e) || Re(e) ? {} : !Ye(n) || Re(n) ? {} : e.reduce((a, r) => {
|
|
10198
10215
|
const u = n.map((g) => g.game_subtype);
|
|
10199
10216
|
return u.forEach((g) => {
|
|
10200
10217
|
a[g] = a[g] || [];
|
|
@@ -10205,7 +10222,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10205
10222
|
gameList: a = {},
|
|
10206
10223
|
allGameTypes: r = [],
|
|
10207
10224
|
allPlatforms: u = []
|
|
10208
|
-
}) => !Ye(e) || !Ye(n) ? {} :
|
|
10225
|
+
}) => !Ye(e) || !Ye(n) ? {} : Re(a) ? {} : e.reduce((g, U) => {
|
|
10209
10226
|
const d = nl({
|
|
10210
10227
|
gameTypeName: U,
|
|
10211
10228
|
platforms: n,
|
|
@@ -10213,7 +10230,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10213
10230
|
allGameTypes: r,
|
|
10214
10231
|
allPlatforms: u
|
|
10215
10232
|
});
|
|
10216
|
-
return
|
|
10233
|
+
return Re(d) || (g[U] = d), g;
|
|
10217
10234
|
}, {}), Wu = ({
|
|
10218
10235
|
types: e = [],
|
|
10219
10236
|
platforms: n = [],
|
|
@@ -10229,13 +10246,13 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10229
10246
|
gamesOfType: l,
|
|
10230
10247
|
allPlatforms: r
|
|
10231
10248
|
});
|
|
10232
|
-
return
|
|
10249
|
+
return Re(s) ? i : { ...i, [o]: s };
|
|
10233
10250
|
}, {});
|
|
10234
|
-
return
|
|
10235
|
-
}, {}), om = (e = {}) => !Yt(e) ||
|
|
10251
|
+
return Re(t) || (g[U] = t), g;
|
|
10252
|
+
}, {}), om = (e = {}) => !Yt(e) || Re(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([u, g]) => {
|
|
10236
10253
|
a[u] ? a[u] = [...a[u], ...g] : a[u] = g;
|
|
10237
10254
|
}), a), {}), sm = (e = {}) => {
|
|
10238
|
-
if (!Yt(e) ||
|
|
10255
|
+
if (!Yt(e) || Re(e)) return {};
|
|
10239
10256
|
const n = {};
|
|
10240
10257
|
for (const [a, r] of Object.entries(e)) {
|
|
10241
10258
|
n[a] = {};
|
|
@@ -10264,7 +10281,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10264
10281
|
gameList: e,
|
|
10265
10282
|
allGameTypes: a,
|
|
10266
10283
|
allPlatforms: n
|
|
10267
|
-
}), f =
|
|
10284
|
+
}), f = Se(n, (M) => {
|
|
10268
10285
|
const A = `${qe}/${Qn}/${M.platformEnum}.png`;
|
|
10269
10286
|
return {
|
|
10270
10287
|
...M,
|
|
@@ -10313,7 +10330,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10313
10330
|
favorite: c
|
|
10314
10331
|
}
|
|
10315
10332
|
};
|
|
10316
|
-
}, zu = (e = []) => !Ye(e) ||
|
|
10333
|
+
}, zu = (e = []) => !Ye(e) || Re(e) ? [] : Xt(e, (n) => Re(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
|
|
10317
10334
|
...n,
|
|
10318
10335
|
...a,
|
|
10319
10336
|
platform: a.SubPlatformEnum,
|
|
@@ -10339,7 +10356,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
10339
10356
|
},
|
|
10340
10357
|
user: { favorite: [] }
|
|
10341
10358
|
}, pm = ({ enabled: e = !0 } = {}) => {
|
|
10342
|
-
const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } =
|
|
10359
|
+
const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } = re(), { data: u, isLoading: g, error: U, refetch: d } = Q({
|
|
10343
10360
|
queryKey: ["gamesInfo"],
|
|
10344
10361
|
queryFn: async () => {
|
|
10345
10362
|
let l = {}, t = {};
|
|
@@ -36908,7 +36925,7 @@ const _u = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
|
|
|
36908
36925
|
autoFetch: n = !1,
|
|
36909
36926
|
mockData: a = !1
|
|
36910
36927
|
}) => {
|
|
36911
|
-
|
|
36928
|
+
ue(() => {
|
|
36912
36929
|
a && gm(!0);
|
|
36913
36930
|
}, [a]);
|
|
36914
36931
|
const r = pm({ enabled: n });
|
|
@@ -36946,7 +36963,7 @@ function Iu({
|
|
|
36946
36963
|
}
|
|
36947
36964
|
const Vu = ({ onFunction: e = () => {
|
|
36948
36965
|
}, buttonProps: n = {} } = {}) => {
|
|
36949
|
-
const { lineConfig: a } = se(), r =
|
|
36966
|
+
const { lineConfig: a } = se(), r = ie(!1), u = j(a, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), l = g.get("line_id"), t = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = lr({
|
|
36950
36967
|
options: {
|
|
36951
36968
|
onSuccess: (m) => {
|
|
36952
36969
|
e(m);
|
|
@@ -36954,7 +36971,7 @@ const Vu = ({ onFunction: e = () => {
|
|
|
36954
36971
|
retry: !1
|
|
36955
36972
|
}
|
|
36956
36973
|
});
|
|
36957
|
-
|
|
36974
|
+
ue(() => {
|
|
36958
36975
|
r.current || U === "true" && l && t && (o({
|
|
36959
36976
|
trans_code: d,
|
|
36960
36977
|
line_id: l,
|
|
@@ -37002,14 +37019,14 @@ var cm = Object.defineProperty, Qt = Object.getOwnPropertySymbols, Sr = Object.p
|
|
|
37002
37019
|
};
|
|
37003
37020
|
var ka;
|
|
37004
37021
|
((e) => {
|
|
37005
|
-
const n = class
|
|
37022
|
+
const n = class te {
|
|
37006
37023
|
/*-- Constructor (low level) and fields --*/
|
|
37007
37024
|
// Creates a new QR Code with the given version number,
|
|
37008
37025
|
// error correction level, data codeword bytes, and mask number.
|
|
37009
37026
|
// This is a low-level API that most users should not use directly.
|
|
37010
37027
|
// A mid-level API is the encodeSegments() function.
|
|
37011
37028
|
constructor(l, t, i, o) {
|
|
37012
|
-
if (this.version = l, this.errorCorrectionLevel = t, this.modules = [], this.isFunction = [], l <
|
|
37029
|
+
if (this.version = l, this.errorCorrectionLevel = t, this.modules = [], this.isFunction = [], l < te.MIN_VERSION || l > te.MAX_VERSION)
|
|
37013
37030
|
throw new RangeError("Version value out of range");
|
|
37014
37031
|
if (o < -1 || o > 7)
|
|
37015
37032
|
throw new RangeError("Mask value out of range");
|
|
@@ -37039,7 +37056,7 @@ var ka;
|
|
|
37039
37056
|
// ecl argument if it can be done without increasing the version.
|
|
37040
37057
|
static encodeText(l, t) {
|
|
37041
37058
|
const i = e.QrSegment.makeSegments(l);
|
|
37042
|
-
return
|
|
37059
|
+
return te.encodeSegments(i, t);
|
|
37043
37060
|
}
|
|
37044
37061
|
// Returns a QR Code representing the given binary data at the given error correction level.
|
|
37045
37062
|
// This function always encodes using the binary segment mode, not any text mode. The maximum number of
|
|
@@ -37047,7 +37064,7 @@ var ka;
|
|
|
37047
37064
|
// The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
|
|
37048
37065
|
static encodeBinary(l, t) {
|
|
37049
37066
|
const i = e.QrSegment.makeBytes(l);
|
|
37050
|
-
return
|
|
37067
|
+
return te.encodeSegments([i], t);
|
|
37051
37068
|
}
|
|
37052
37069
|
/*-- Static factory functions (mid level) --*/
|
|
37053
37070
|
// Returns a QR Code representing the given segments with the given encoding parameters.
|
|
@@ -37060,11 +37077,11 @@ var ka;
|
|
|
37060
37077
|
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
37061
37078
|
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
37062
37079
|
static encodeSegments(l, t, i = 1, o = 40, s = -1, p = !0) {
|
|
37063
|
-
if (!(
|
|
37080
|
+
if (!(te.MIN_VERSION <= i && i <= o && o <= te.MAX_VERSION) || s < -1 || s > 7)
|
|
37064
37081
|
throw new RangeError("Invalid value");
|
|
37065
37082
|
let m, _;
|
|
37066
37083
|
for (m = i; ; m++) {
|
|
37067
|
-
const b =
|
|
37084
|
+
const b = te.getNumDataCodewords(m, t) * 8, C = U.getTotalBits(l, m);
|
|
37068
37085
|
if (C <= b) {
|
|
37069
37086
|
_ = C;
|
|
37070
37087
|
break;
|
|
@@ -37072,8 +37089,8 @@ var ka;
|
|
|
37072
37089
|
if (m >= o)
|
|
37073
37090
|
throw new RangeError("Data too long");
|
|
37074
37091
|
}
|
|
37075
|
-
for (const b of [
|
|
37076
|
-
p && _ <=
|
|
37092
|
+
for (const b of [te.Ecc.MEDIUM, te.Ecc.QUARTILE, te.Ecc.HIGH])
|
|
37093
|
+
p && _ <= te.getNumDataCodewords(m, b) * 8 && (t = b);
|
|
37077
37094
|
let c = [];
|
|
37078
37095
|
for (const b of l) {
|
|
37079
37096
|
a(b.mode.modeBits, 4, c), a(b.numChars, b.mode.numCharCountBits(m), c);
|
|
@@ -37081,14 +37098,14 @@ var ka;
|
|
|
37081
37098
|
c.push(C);
|
|
37082
37099
|
}
|
|
37083
37100
|
u(c.length == _);
|
|
37084
|
-
const y =
|
|
37101
|
+
const y = te.getNumDataCodewords(m, t) * 8;
|
|
37085
37102
|
u(c.length <= y), a(0, Math.min(4, y - c.length), c), a(0, (8 - c.length % 8) % 8, c), u(c.length % 8 == 0);
|
|
37086
37103
|
for (let b = 236; c.length < y; b ^= 253)
|
|
37087
37104
|
a(b, 8, c);
|
|
37088
37105
|
let f = [];
|
|
37089
37106
|
for (; f.length * 8 < c.length; )
|
|
37090
37107
|
f.push(0);
|
|
37091
|
-
return c.forEach((b, C) => f[C >>> 3] |= b << 7 - (C & 7)), new
|
|
37108
|
+
return c.forEach((b, C) => f[C >>> 3] |= b << 7 - (C & 7)), new te(m, t, f, s);
|
|
37092
37109
|
}
|
|
37093
37110
|
/*-- Accessor methods --*/
|
|
37094
37111
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -37174,15 +37191,15 @@ var ka;
|
|
|
37174
37191
|
// codewords appended to it, based on this object's version and error correction level.
|
|
37175
37192
|
addEccAndInterleave(l) {
|
|
37176
37193
|
const t = this.version, i = this.errorCorrectionLevel;
|
|
37177
|
-
if (l.length !=
|
|
37194
|
+
if (l.length != te.getNumDataCodewords(t, i))
|
|
37178
37195
|
throw new RangeError("Invalid argument");
|
|
37179
|
-
const o =
|
|
37196
|
+
const o = te.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][t], s = te.ECC_CODEWORDS_PER_BLOCK[i.ordinal][t], p = Math.floor(te.getNumRawDataModules(t) / 8), m = o - p % o, _ = Math.floor(p / o);
|
|
37180
37197
|
let c = [];
|
|
37181
|
-
const y =
|
|
37198
|
+
const y = te.reedSolomonComputeDivisor(s);
|
|
37182
37199
|
for (let b = 0, C = 0; b < o; b++) {
|
|
37183
37200
|
let v = l.slice(C, C + _ - s + (b < m ? 0 : 1));
|
|
37184
37201
|
C += v.length;
|
|
37185
|
-
const x =
|
|
37202
|
+
const x = te.reedSolomonComputeRemainder(v, y);
|
|
37186
37203
|
b < m && v.push(0), c.push(v.concat(x));
|
|
37187
37204
|
}
|
|
37188
37205
|
let f = [];
|
|
@@ -37195,7 +37212,7 @@ var ka;
|
|
|
37195
37212
|
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
37196
37213
|
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
37197
37214
|
drawCodewords(l) {
|
|
37198
|
-
if (l.length != Math.floor(
|
|
37215
|
+
if (l.length != Math.floor(te.getNumRawDataModules(this.version) / 8))
|
|
37199
37216
|
throw new RangeError("Invalid argument");
|
|
37200
37217
|
let t = 0;
|
|
37201
37218
|
for (let i = this.size - 1; i >= 1; i -= 2) {
|
|
@@ -37257,25 +37274,25 @@ var ka;
|
|
|
37257
37274
|
for (let s = 0; s < this.size; s++) {
|
|
37258
37275
|
let p = !1, m = 0, _ = [0, 0, 0, 0, 0, 0, 0];
|
|
37259
37276
|
for (let c = 0; c < this.size; c++)
|
|
37260
|
-
this.modules[s][c] == p ? (m++, m == 5 ? l +=
|
|
37261
|
-
l += this.finderPenaltyTerminateAndCount(p, m, _) *
|
|
37277
|
+
this.modules[s][c] == p ? (m++, m == 5 ? l += te.PENALTY_N1 : m > 5 && l++) : (this.finderPenaltyAddHistory(m, _), p || (l += this.finderPenaltyCountPatterns(_) * te.PENALTY_N3), p = this.modules[s][c], m = 1);
|
|
37278
|
+
l += this.finderPenaltyTerminateAndCount(p, m, _) * te.PENALTY_N3;
|
|
37262
37279
|
}
|
|
37263
37280
|
for (let s = 0; s < this.size; s++) {
|
|
37264
37281
|
let p = !1, m = 0, _ = [0, 0, 0, 0, 0, 0, 0];
|
|
37265
37282
|
for (let c = 0; c < this.size; c++)
|
|
37266
|
-
this.modules[c][s] == p ? (m++, m == 5 ? l +=
|
|
37267
|
-
l += this.finderPenaltyTerminateAndCount(p, m, _) *
|
|
37283
|
+
this.modules[c][s] == p ? (m++, m == 5 ? l += te.PENALTY_N1 : m > 5 && l++) : (this.finderPenaltyAddHistory(m, _), p || (l += this.finderPenaltyCountPatterns(_) * te.PENALTY_N3), p = this.modules[c][s], m = 1);
|
|
37284
|
+
l += this.finderPenaltyTerminateAndCount(p, m, _) * te.PENALTY_N3;
|
|
37268
37285
|
}
|
|
37269
37286
|
for (let s = 0; s < this.size - 1; s++)
|
|
37270
37287
|
for (let p = 0; p < this.size - 1; p++) {
|
|
37271
37288
|
const m = this.modules[s][p];
|
|
37272
|
-
m == this.modules[s][p + 1] && m == this.modules[s + 1][p] && m == this.modules[s + 1][p + 1] && (l +=
|
|
37289
|
+
m == this.modules[s][p + 1] && m == this.modules[s + 1][p] && m == this.modules[s + 1][p + 1] && (l += te.PENALTY_N2);
|
|
37273
37290
|
}
|
|
37274
37291
|
let t = 0;
|
|
37275
37292
|
for (const s of this.modules)
|
|
37276
37293
|
t = s.reduce((p, m) => p + (m ? 1 : 0), t);
|
|
37277
37294
|
const i = this.size * this.size, o = Math.ceil(Math.abs(t * 20 - i * 10) / i) - 1;
|
|
37278
|
-
return u(0 <= o && o <= 9), l += o *
|
|
37295
|
+
return u(0 <= o && o <= 9), l += o * te.PENALTY_N4, u(0 <= l && l <= 2568888), l;
|
|
37279
37296
|
}
|
|
37280
37297
|
/*-- Private helper functions --*/
|
|
37281
37298
|
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
@@ -37296,7 +37313,7 @@ var ka;
|
|
|
37296
37313
|
// all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
|
|
37297
37314
|
// The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
|
|
37298
37315
|
static getNumRawDataModules(l) {
|
|
37299
|
-
if (l <
|
|
37316
|
+
if (l < te.MIN_VERSION || l > te.MAX_VERSION)
|
|
37300
37317
|
throw new RangeError("Version number out of range");
|
|
37301
37318
|
let t = (16 * l + 128) * l + 64;
|
|
37302
37319
|
if (l >= 2) {
|
|
@@ -37309,7 +37326,7 @@ var ka;
|
|
|
37309
37326
|
// QR Code of the given version number and error correction level, with remainder bits discarded.
|
|
37310
37327
|
// This stateless pure function could be implemented as a (40*4)-cell lookup table.
|
|
37311
37328
|
static getNumDataCodewords(l, t) {
|
|
37312
|
-
return Math.floor(
|
|
37329
|
+
return Math.floor(te.getNumRawDataModules(l) / 8) - te.ECC_CODEWORDS_PER_BLOCK[t.ordinal][l] * te.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][l];
|
|
37313
37330
|
}
|
|
37314
37331
|
// Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
|
|
37315
37332
|
// implemented as a lookup table over all possible parameter values, instead of as an algorithm.
|
|
@@ -37323,8 +37340,8 @@ var ka;
|
|
|
37323
37340
|
let i = 1;
|
|
37324
37341
|
for (let o = 0; o < l; o++) {
|
|
37325
37342
|
for (let s = 0; s < t.length; s++)
|
|
37326
|
-
t[s] =
|
|
37327
|
-
i =
|
|
37343
|
+
t[s] = te.reedSolomonMultiply(t[s], i), s + 1 < t.length && (t[s] ^= t[s + 1]);
|
|
37344
|
+
i = te.reedSolomonMultiply(i, 2);
|
|
37328
37345
|
}
|
|
37329
37346
|
return t;
|
|
37330
37347
|
}
|
|
@@ -37333,7 +37350,7 @@ var ka;
|
|
|
37333
37350
|
let i = t.map((o) => 0);
|
|
37334
37351
|
for (const o of l) {
|
|
37335
37352
|
const s = o ^ i.shift();
|
|
37336
|
-
i.push(0), t.forEach((p, m) => i[m] ^=
|
|
37353
|
+
i.push(0), t.forEach((p, m) => i[m] ^= te.reedSolomonMultiply(p, s));
|
|
37337
37354
|
}
|
|
37338
37355
|
return i;
|
|
37339
37356
|
}
|
|
@@ -37400,7 +37417,7 @@ var ka;
|
|
|
37400
37417
|
if (!d)
|
|
37401
37418
|
throw new Error("Assertion error");
|
|
37402
37419
|
}
|
|
37403
|
-
const g = class
|
|
37420
|
+
const g = class Ue {
|
|
37404
37421
|
/*-- Constructor (low level) and fields --*/
|
|
37405
37422
|
// Creates a new QR Code segment with the given attributes and data.
|
|
37406
37423
|
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
@@ -37418,36 +37435,36 @@ var ka;
|
|
|
37418
37435
|
let t = [];
|
|
37419
37436
|
for (const i of l)
|
|
37420
37437
|
a(i, 8, t);
|
|
37421
|
-
return new
|
|
37438
|
+
return new Ue(Ue.Mode.BYTE, l.length, t);
|
|
37422
37439
|
}
|
|
37423
37440
|
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
37424
37441
|
static makeNumeric(l) {
|
|
37425
|
-
if (!
|
|
37442
|
+
if (!Ue.isNumeric(l))
|
|
37426
37443
|
throw new RangeError("String contains non-numeric characters");
|
|
37427
37444
|
let t = [];
|
|
37428
37445
|
for (let i = 0; i < l.length; ) {
|
|
37429
37446
|
const o = Math.min(l.length - i, 3);
|
|
37430
37447
|
a(parseInt(l.substring(i, i + o), 10), o * 3 + 1, t), i += o;
|
|
37431
37448
|
}
|
|
37432
|
-
return new
|
|
37449
|
+
return new Ue(Ue.Mode.NUMERIC, l.length, t);
|
|
37433
37450
|
}
|
|
37434
37451
|
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
37435
37452
|
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
37436
37453
|
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
37437
37454
|
static makeAlphanumeric(l) {
|
|
37438
|
-
if (!
|
|
37455
|
+
if (!Ue.isAlphanumeric(l))
|
|
37439
37456
|
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
37440
37457
|
let t = [], i;
|
|
37441
37458
|
for (i = 0; i + 2 <= l.length; i += 2) {
|
|
37442
|
-
let o =
|
|
37443
|
-
o +=
|
|
37459
|
+
let o = Ue.ALPHANUMERIC_CHARSET.indexOf(l.charAt(i)) * 45;
|
|
37460
|
+
o += Ue.ALPHANUMERIC_CHARSET.indexOf(l.charAt(i + 1)), a(o, 11, t);
|
|
37444
37461
|
}
|
|
37445
|
-
return i < l.length && a(
|
|
37462
|
+
return i < l.length && a(Ue.ALPHANUMERIC_CHARSET.indexOf(l.charAt(i)), 6, t), new Ue(Ue.Mode.ALPHANUMERIC, l.length, t);
|
|
37446
37463
|
}
|
|
37447
37464
|
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
37448
37465
|
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
37449
37466
|
static makeSegments(l) {
|
|
37450
|
-
return l == "" ? [] :
|
|
37467
|
+
return l == "" ? [] : Ue.isNumeric(l) ? [Ue.makeNumeric(l)] : Ue.isAlphanumeric(l) ? [Ue.makeAlphanumeric(l)] : [Ue.makeBytes(Ue.toUtf8ByteArray(l))];
|
|
37451
37468
|
}
|
|
37452
37469
|
// Returns a segment representing an Extended Channel Interpretation
|
|
37453
37470
|
// (ECI) designator with the given assignment value.
|
|
@@ -37463,18 +37480,18 @@ var ka;
|
|
|
37463
37480
|
a(6, 3, t), a(l, 21, t);
|
|
37464
37481
|
else
|
|
37465
37482
|
throw new RangeError("ECI assignment value out of range");
|
|
37466
|
-
return new
|
|
37483
|
+
return new Ue(Ue.Mode.ECI, 0, t);
|
|
37467
37484
|
}
|
|
37468
37485
|
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
37469
37486
|
// A string is encodable iff each character is in the range 0 to 9.
|
|
37470
37487
|
static isNumeric(l) {
|
|
37471
|
-
return
|
|
37488
|
+
return Ue.NUMERIC_REGEX.test(l);
|
|
37472
37489
|
}
|
|
37473
37490
|
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
37474
37491
|
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
37475
37492
|
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
37476
37493
|
static isAlphanumeric(l) {
|
|
37477
|
-
return
|
|
37494
|
+
return Ue.ALPHANUMERIC_REGEX.test(l);
|
|
37478
37495
|
}
|
|
37479
37496
|
/*-- Methods --*/
|
|
37480
37497
|
// Returns a new copy of the data bits of this segment.
|
|
@@ -37852,7 +37869,7 @@ const Tm = {
|
|
|
37852
37869
|
expired: "Kode QR telah kedaluwarsa"
|
|
37853
37870
|
}
|
|
37854
37871
|
}, Ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: a } = {}) => {
|
|
37855
|
-
const { lng: r, getToken: u, lineConfig: g } = se(), [U, d] = at(300), [l, t] = at(!1), i =
|
|
37872
|
+
const { lng: r, getToken: u, lineConfig: g } = se(), [U, d] = at(300), [l, t] = at(!1), i = ie(null), o = j(g, "liffId", ""), s = $e(r), p = u?.(), _ = new URLSearchParams(window.location.search).get("mac") || pi.get("machine_mac_address") || "", { data: c, isFetching: y } = jo({
|
|
37856
37873
|
formData: {
|
|
37857
37874
|
mac_address: _
|
|
37858
37875
|
},
|
|
@@ -37860,9 +37877,9 @@ const Tm = {
|
|
|
37860
37877
|
enabled: e ? !0 : !!_ && !p
|
|
37861
37878
|
}
|
|
37862
37879
|
}), f = j(c, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37863
|
-
|
|
37880
|
+
ue(() => {
|
|
37864
37881
|
_ && pi.set("machine_mac_address", _, { expires: 365 });
|
|
37865
|
-
}, [_]),
|
|
37882
|
+
}, [_]), ue(() => (f && (d(300), t(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
|
|
37866
37883
|
d((v) => v <= 1 ? (clearInterval(i.current), t(!0), 0) : v - 1);
|
|
37867
37884
|
}, 1e3)), () => {
|
|
37868
37885
|
i.current && clearInterval(i.current);
|
|
@@ -37931,8 +37948,8 @@ const Tm = {
|
|
|
37931
37948
|
});
|
|
37932
37949
|
}
|
|
37933
37950
|
}
|
|
37934
|
-
}), U =
|
|
37935
|
-
return
|
|
37951
|
+
}), U = ie(!1);
|
|
37952
|
+
return ue(() => {
|
|
37936
37953
|
if (U.current) return;
|
|
37937
37954
|
const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), t = d.get("bind_id");
|
|
37938
37955
|
l && t && (U.current = !0, l === "line" ? n({ bindType: l, bindId: t }) : console.warn(`Unsupported bind type: ${l}`));
|
|
@@ -37946,7 +37963,7 @@ export {
|
|
|
37946
37963
|
Vu as LineLogin,
|
|
37947
37964
|
Ku as LineQrCode,
|
|
37948
37965
|
Si as MONTH_CARD_QUERY_KEY,
|
|
37949
|
-
|
|
37966
|
+
Fe as SOCKET_TYPE,
|
|
37950
37967
|
Qa as STATUS_TYPES,
|
|
37951
37968
|
Zn as StatusContext,
|
|
37952
37969
|
el as StatusProvider,
|