@obb871001/api-integration-sdk 1.0.438 → 1.0.440
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 +1061 -1045
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ve, { createContext as ni, useContext as Ei, useState as
|
|
2
|
-
import { useQueries as sr, useQuery as Y, useQueryClient as ya, useMutation as
|
|
1
|
+
import ve, { createContext as ni, useContext as Ei, useState as je, useMemo as ka, useCallback as M, useRef as me, useEffect as fe } from "react";
|
|
2
|
+
import { useQueries as sr, useQuery as Y, useQueryClient as ya, useMutation as ee, useInfiniteQuery as sl, QueryClient as ml, QueryClientProvider as ul } from "@tanstack/react-query";
|
|
3
3
|
import pl from "axios";
|
|
4
|
-
import { get as j, replace as ot, isEmpty as Fe, find as Be, entries as mr, forEach as gl, omit as ur, map as
|
|
4
|
+
import { get as j, replace as ot, isEmpty as Fe, find as Be, entries as mr, forEach as gl, omit as ur, map as Ee, isArray as ta, toLower as Ii, keyBy as dl, includes as cl, isObject as ri, flatMap as li, values as fl, keys as zi } from "lodash";
|
|
5
5
|
import _l from "react-dom";
|
|
6
6
|
var ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function Di(e) {
|
|
@@ -54,25 +54,25 @@ function Ul() {
|
|
|
54
54
|
function y(x) {
|
|
55
55
|
if (x === null || typeof x != "object")
|
|
56
56
|
return null;
|
|
57
|
-
var
|
|
58
|
-
return typeof
|
|
57
|
+
var V = p && x[p] || x[f];
|
|
58
|
+
return typeof V == "function" ? V : null;
|
|
59
59
|
}
|
|
60
60
|
var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
61
|
function c(x) {
|
|
62
62
|
{
|
|
63
|
-
for (var
|
|
63
|
+
for (var V = arguments.length, $ = new Array(V > 1 ? V - 1 : 0), ne = 1; ne < V; ne++)
|
|
64
64
|
$[ne - 1] = arguments[ne];
|
|
65
65
|
U("error", x, $);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function U(x,
|
|
68
|
+
function U(x, V, $) {
|
|
69
69
|
{
|
|
70
70
|
var ne = _.ReactDebugCurrentFrame, _e = ne.getStackAddendum();
|
|
71
|
-
_e !== "" && (
|
|
72
|
-
var
|
|
73
|
-
return String(
|
|
71
|
+
_e !== "" && (V += "%s", $ = $.concat([_e]));
|
|
72
|
+
var Ue = $.map(function(ce) {
|
|
73
|
+
return String(ce);
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
Ue.unshift("Warning: " + V), Function.prototype.apply.call(console[x], console, Ue);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
var C = !1, v = !1, T = !1, h = !1, D = !1, H;
|
|
@@ -84,17 +84,17 @@ function Ul() {
|
|
|
84
84
|
// with.
|
|
85
85
|
x.$$typeof === H || x.getModuleId !== void 0));
|
|
86
86
|
}
|
|
87
|
-
function S(x,
|
|
87
|
+
function S(x, V, $) {
|
|
88
88
|
var ne = x.displayName;
|
|
89
89
|
if (ne)
|
|
90
90
|
return ne;
|
|
91
|
-
var _e =
|
|
91
|
+
var _e = V.displayName || V.name || "";
|
|
92
92
|
return _e !== "" ? $ + "(" + _e + ")" : $;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function F(x) {
|
|
95
95
|
return x.displayName || "Context";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function A(x) {
|
|
98
98
|
if (x == null)
|
|
99
99
|
return null;
|
|
100
100
|
if (typeof x.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof x == "function")
|
|
@@ -118,20 +118,20 @@ function Ul() {
|
|
|
118
118
|
if (typeof x == "object")
|
|
119
119
|
switch (x.$$typeof) {
|
|
120
120
|
case d:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var V = x;
|
|
122
|
+
return F(V) + ".Consumer";
|
|
123
123
|
case b:
|
|
124
124
|
var $ = x;
|
|
125
|
-
return
|
|
125
|
+
return F($._context) + ".Provider";
|
|
126
126
|
case l:
|
|
127
127
|
return S(x, x.render, "ForwardRef");
|
|
128
128
|
case o:
|
|
129
129
|
var ne = x.displayName || null;
|
|
130
|
-
return ne !== null ? ne :
|
|
130
|
+
return ne !== null ? ne : A(x.type) || "Memo";
|
|
131
131
|
case m: {
|
|
132
|
-
var _e = x,
|
|
132
|
+
var _e = x, Ue = _e._payload, ce = _e._init;
|
|
133
133
|
try {
|
|
134
|
-
return
|
|
134
|
+
return A(ce(Ue));
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -139,18 +139,18 @@ function Ul() {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var R = Object.assign, L = 0, G, I, W,
|
|
143
|
-
function F() {
|
|
144
|
-
}
|
|
145
|
-
F.__reactDisabledLog = !0;
|
|
142
|
+
var R = Object.assign, L = 0, G, I, W, z, B, N, E;
|
|
146
143
|
function w() {
|
|
144
|
+
}
|
|
145
|
+
w.__reactDisabledLog = !0;
|
|
146
|
+
function P() {
|
|
147
147
|
{
|
|
148
148
|
if (L === 0) {
|
|
149
|
-
G = console.log, I = console.info, W = console.warn,
|
|
149
|
+
G = console.log, I = console.info, W = console.warn, z = console.error, B = console.group, N = console.groupCollapsed, E = console.groupEnd;
|
|
150
150
|
var x = {
|
|
151
151
|
configurable: !0,
|
|
152
152
|
enumerable: !0,
|
|
153
|
-
value:
|
|
153
|
+
value: w,
|
|
154
154
|
writable: !0
|
|
155
155
|
};
|
|
156
156
|
Object.defineProperties(console, {
|
|
@@ -166,7 +166,7 @@ function Ul() {
|
|
|
166
166
|
L++;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function ae() {
|
|
170
170
|
{
|
|
171
171
|
if (L--, L === 0) {
|
|
172
172
|
var x = {
|
|
@@ -185,10 +185,10 @@ function Ul() {
|
|
|
185
185
|
value: W
|
|
186
186
|
}),
|
|
187
187
|
error: R({}, x, {
|
|
188
|
-
value:
|
|
188
|
+
value: z
|
|
189
189
|
}),
|
|
190
190
|
group: R({}, x, {
|
|
191
|
-
value:
|
|
191
|
+
value: B
|
|
192
192
|
}),
|
|
193
193
|
groupCollapsed: R({}, x, {
|
|
194
194
|
value: N
|
|
@@ -201,8 +201,8 @@ function Ul() {
|
|
|
201
201
|
L < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
204
|
+
var te = _.ReactCurrentDispatcher, le;
|
|
205
|
+
function O(x, V, $) {
|
|
206
206
|
{
|
|
207
207
|
if (le === void 0)
|
|
208
208
|
try {
|
|
@@ -215,13 +215,13 @@ function Ul() {
|
|
|
215
215
|
` + le + x;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var J = !1, Z;
|
|
219
219
|
{
|
|
220
220
|
var Q = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
221
|
Z = new Q();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
if (!x ||
|
|
223
|
+
function X(x, V) {
|
|
224
|
+
if (!x || J)
|
|
225
225
|
return "";
|
|
226
226
|
{
|
|
227
227
|
var $ = Z.get(x);
|
|
@@ -229,34 +229,34 @@ function Ul() {
|
|
|
229
229
|
return $;
|
|
230
230
|
}
|
|
231
231
|
var ne;
|
|
232
|
-
|
|
232
|
+
J = !0;
|
|
233
233
|
var _e = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var Ue;
|
|
236
|
+
Ue = te.current, te.current = null, P();
|
|
237
237
|
try {
|
|
238
|
-
if (
|
|
239
|
-
var
|
|
238
|
+
if (V) {
|
|
239
|
+
var ce = function() {
|
|
240
240
|
throw Error();
|
|
241
241
|
};
|
|
242
|
-
if (Object.defineProperty(
|
|
242
|
+
if (Object.defineProperty(ce.prototype, "props", {
|
|
243
243
|
set: function() {
|
|
244
244
|
throw Error();
|
|
245
245
|
}
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
|
-
Reflect.construct(
|
|
248
|
+
Reflect.construct(ce, []);
|
|
249
249
|
} catch (Ze) {
|
|
250
250
|
ne = Ze;
|
|
251
251
|
}
|
|
252
|
-
Reflect.construct(x, [],
|
|
252
|
+
Reflect.construct(x, [], ce);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
|
-
|
|
255
|
+
ce.call();
|
|
256
256
|
} catch (Ze) {
|
|
257
257
|
ne = Ze;
|
|
258
258
|
}
|
|
259
|
-
x.call(
|
|
259
|
+
x.call(ce.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
@@ -268,145 +268,145 @@ function Ul() {
|
|
|
268
268
|
}
|
|
269
269
|
} catch (Ze) {
|
|
270
270
|
if (Ze && ne && typeof Ze.stack == "string") {
|
|
271
|
-
for (var
|
|
272
|
-
`),
|
|
273
|
-
`),
|
|
271
|
+
for (var ge = Ze.stack.split(`
|
|
272
|
+
`), Ve = ne.stack.split(`
|
|
273
|
+
`), Se = ge.length - 1, De = Ve.length - 1; Se >= 1 && De >= 0 && ge[Se] !== Ve[De]; )
|
|
274
274
|
De--;
|
|
275
|
-
for (;
|
|
276
|
-
if (
|
|
277
|
-
if (
|
|
275
|
+
for (; Se >= 1 && De >= 0; Se--, De--)
|
|
276
|
+
if (ge[Se] !== Ve[De]) {
|
|
277
|
+
if (Se !== 1 || De !== 1)
|
|
278
278
|
do
|
|
279
|
-
if (
|
|
279
|
+
if (Se--, De--, De < 0 || ge[Se] !== Ve[De]) {
|
|
280
280
|
var aa = `
|
|
281
|
-
` +
|
|
281
|
+
` + ge[Se].replace(" at new ", " at ");
|
|
282
282
|
return x.displayName && aa.includes("<anonymous>") && (aa = aa.replace("<anonymous>", x.displayName)), typeof x == "function" && Z.set(x, aa), aa;
|
|
283
283
|
}
|
|
284
|
-
while (
|
|
284
|
+
while (Se >= 1 && De >= 0);
|
|
285
285
|
break;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
|
|
289
|
+
J = !1, te.current = Ue, ae(), Error.prepareStackTrace = _e;
|
|
290
290
|
}
|
|
291
|
-
var Ia = x ? x.displayName || x.name : "", Da = Ia ?
|
|
291
|
+
var Ia = x ? x.displayName || x.name : "", Da = Ia ? O(Ia) : "";
|
|
292
292
|
return typeof x == "function" && Z.set(x, Da), Da;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
294
|
+
function q(x, V, $) {
|
|
295
|
+
return X(x, !1);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
var
|
|
299
|
-
return !!(
|
|
297
|
+
function pe(x) {
|
|
298
|
+
var V = x.prototype;
|
|
299
|
+
return !!(V && V.isReactComponent);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Ce(x, V, $) {
|
|
302
302
|
if (x == null)
|
|
303
303
|
return "";
|
|
304
304
|
if (typeof x == "function")
|
|
305
|
-
return
|
|
305
|
+
return X(x, pe(x));
|
|
306
306
|
if (typeof x == "string")
|
|
307
|
-
return
|
|
307
|
+
return O(x);
|
|
308
308
|
switch (x) {
|
|
309
309
|
case i:
|
|
310
|
-
return
|
|
310
|
+
return O("Suspense");
|
|
311
311
|
case r:
|
|
312
|
-
return
|
|
312
|
+
return O("SuspenseList");
|
|
313
313
|
}
|
|
314
314
|
if (typeof x == "object")
|
|
315
315
|
switch (x.$$typeof) {
|
|
316
316
|
case l:
|
|
317
|
-
return
|
|
317
|
+
return q(x.render);
|
|
318
318
|
case o:
|
|
319
|
-
return
|
|
319
|
+
return Ce(x.type, V, $);
|
|
320
320
|
case m: {
|
|
321
|
-
var ne = x, _e = ne._payload,
|
|
321
|
+
var ne = x, _e = ne._payload, Ue = ne._init;
|
|
322
322
|
try {
|
|
323
|
-
return
|
|
323
|
+
return Ce(Ue(_e), V, $);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var be = Object.prototype.hasOwnProperty,
|
|
330
|
+
var be = Object.prototype.hasOwnProperty, Ye = {}, he = _.ReactDebugCurrentFrame;
|
|
331
331
|
function Ge(x) {
|
|
332
332
|
if (x) {
|
|
333
|
-
var
|
|
334
|
-
|
|
333
|
+
var V = x._owner, $ = Ce(x.type, x._source, V ? V.type : null);
|
|
334
|
+
he.setExtraStackFrame($);
|
|
335
335
|
} else
|
|
336
|
-
|
|
336
|
+
he.setExtraStackFrame(null);
|
|
337
337
|
}
|
|
338
|
-
function Xe(x,
|
|
338
|
+
function Xe(x, V, $, ne, _e) {
|
|
339
339
|
{
|
|
340
|
-
var
|
|
341
|
-
for (var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
340
|
+
var Ue = Function.call.bind(be);
|
|
341
|
+
for (var ce in x)
|
|
342
|
+
if (Ue(x, ce)) {
|
|
343
|
+
var ge = void 0;
|
|
344
344
|
try {
|
|
345
|
-
if (typeof x[
|
|
346
|
-
var
|
|
347
|
-
throw
|
|
345
|
+
if (typeof x[ce] != "function") {
|
|
346
|
+
var Ve = Error((ne || "React class") + ": " + $ + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw Ve.name = "Invariant Violation", Ve;
|
|
348
348
|
}
|
|
349
|
-
|
|
350
|
-
} catch (
|
|
351
|
-
|
|
349
|
+
ge = x[ce](V, ce, ne, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
|
+
} catch (Se) {
|
|
351
|
+
ge = Se;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
ge && !(ge instanceof Error) && (Ge(_e), c("%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).", ne || "React class", $, ce, typeof ge), Ge(null)), ge instanceof Error && !(ge.message in Ye) && (Ye[ge.message] = !0, Ge(_e), c("Failed %s type: %s", $, ge.message), Ge(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
var
|
|
358
|
-
function
|
|
359
|
-
return
|
|
357
|
+
var Me = Array.isArray;
|
|
358
|
+
function oe(x) {
|
|
359
|
+
return Me(x);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function ke(x) {
|
|
362
362
|
{
|
|
363
|
-
var
|
|
363
|
+
var V = typeof Symbol == "function" && Symbol.toStringTag, $ = V && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
364
364
|
return $;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function He(x) {
|
|
368
368
|
try {
|
|
369
|
-
return
|
|
369
|
+
return ze(x), !1;
|
|
370
370
|
} catch {
|
|
371
371
|
return !0;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function ze(x) {
|
|
375
375
|
return "" + x;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
379
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
377
|
+
function xe(x) {
|
|
378
|
+
if (He(x))
|
|
379
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ke(x)), ze(x);
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var We = _.ReactCurrentOwner, ia = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
385
385
|
__source: !0
|
|
386
386
|
}, ua, ba;
|
|
387
|
-
function
|
|
387
|
+
function Ke(x) {
|
|
388
388
|
if (be.call(x, "ref")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var V = Object.getOwnPropertyDescriptor(x, "ref").get;
|
|
390
|
+
if (V && V.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return x.ref !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function na(x) {
|
|
396
396
|
if (be.call(x, "key")) {
|
|
397
|
-
var
|
|
398
|
-
if (
|
|
397
|
+
var V = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
398
|
+
if (V && V.isReactWarning)
|
|
399
399
|
return !1;
|
|
400
400
|
}
|
|
401
401
|
return x.key !== void 0;
|
|
402
402
|
}
|
|
403
|
-
function Ya(x,
|
|
404
|
-
typeof x.ref == "string" &&
|
|
403
|
+
function Ya(x, V) {
|
|
404
|
+
typeof x.ref == "string" && We.current;
|
|
405
405
|
}
|
|
406
|
-
function Fa(x,
|
|
406
|
+
function Fa(x, V) {
|
|
407
407
|
{
|
|
408
408
|
var $ = function() {
|
|
409
|
-
ua || (ua = !0, c("%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)",
|
|
409
|
+
ua || (ua = !0, c("%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)", V));
|
|
410
410
|
};
|
|
411
411
|
$.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
412
412
|
get: $,
|
|
@@ -414,10 +414,10 @@ function Ul() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function Aa(x,
|
|
417
|
+
function Aa(x, V) {
|
|
418
418
|
{
|
|
419
419
|
var $ = function() {
|
|
420
|
-
ba || (ba = !0, c("%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)",
|
|
420
|
+
ba || (ba = !0, c("%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)", V));
|
|
421
421
|
};
|
|
422
422
|
$.isReactWarning = !0, Object.defineProperty(x, "ref", {
|
|
423
423
|
get: $,
|
|
@@ -425,57 +425,57 @@ function Ul() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Xa = function(x,
|
|
429
|
-
var
|
|
428
|
+
var Xa = function(x, V, $, ne, _e, Ue, ce) {
|
|
429
|
+
var ge = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: t,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: x,
|
|
434
|
-
key:
|
|
434
|
+
key: V,
|
|
435
435
|
ref: $,
|
|
436
|
-
props:
|
|
436
|
+
props: ce,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
|
-
_owner:
|
|
438
|
+
_owner: Ue
|
|
439
439
|
};
|
|
440
|
-
return
|
|
440
|
+
return ge._store = {}, Object.defineProperty(ge._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !0,
|
|
444
444
|
value: !1
|
|
445
|
-
}), Object.defineProperty(
|
|
445
|
+
}), Object.defineProperty(ge, "_self", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
449
|
value: ne
|
|
450
|
-
}), Object.defineProperty(
|
|
450
|
+
}), Object.defineProperty(ge, "_source", {
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
453
453
|
writable: !1,
|
|
454
454
|
value: _e
|
|
455
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
}), Object.freeze && (Object.freeze(ge.props), Object.freeze(ge)), ge;
|
|
456
456
|
};
|
|
457
|
-
function et(x,
|
|
457
|
+
function et(x, V, $, ne, _e) {
|
|
458
458
|
{
|
|
459
|
-
var
|
|
460
|
-
$ !== void 0 && (
|
|
461
|
-
for (
|
|
462
|
-
be.call(
|
|
459
|
+
var Ue, ce = {}, ge = null, Ve = null;
|
|
460
|
+
$ !== void 0 && (xe($), ge = "" + $), na(V) && (xe(V.key), ge = "" + V.key), Ke(V) && (Ve = V.ref, Ya(V, _e));
|
|
461
|
+
for (Ue in V)
|
|
462
|
+
be.call(V, Ue) && !ia.hasOwnProperty(Ue) && (ce[Ue] = V[Ue]);
|
|
463
463
|
if (x && x.defaultProps) {
|
|
464
|
-
var
|
|
465
|
-
for (
|
|
466
|
-
|
|
464
|
+
var Se = x.defaultProps;
|
|
465
|
+
for (Ue in Se)
|
|
466
|
+
ce[Ue] === void 0 && (ce[Ue] = Se[Ue]);
|
|
467
467
|
}
|
|
468
|
-
if (
|
|
468
|
+
if (ge || Ve) {
|
|
469
469
|
var De = typeof x == "function" ? x.displayName || x.name || "Unknown" : x;
|
|
470
|
-
|
|
470
|
+
ge && Fa(ce, De), Ve && Aa(ce, De);
|
|
471
471
|
}
|
|
472
|
-
return Xa(x,
|
|
472
|
+
return Xa(x, ge, Ve, _e, ne, We.current, ce);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var Ua = _.ReactCurrentOwner, Sa = _.ReactDebugCurrentFrame;
|
|
476
476
|
function ea(x) {
|
|
477
477
|
if (x) {
|
|
478
|
-
var
|
|
478
|
+
var V = x._owner, $ = Ce(x.type, x._source, V ? V.type : null);
|
|
479
479
|
Sa.setExtraStackFrame($);
|
|
480
480
|
} else
|
|
481
481
|
Sa.setExtraStackFrame(null);
|
|
@@ -488,7 +488,7 @@ function Ul() {
|
|
|
488
488
|
function Oa() {
|
|
489
489
|
{
|
|
490
490
|
if (Ua.current) {
|
|
491
|
-
var x =
|
|
491
|
+
var x = A(Ua.current.type);
|
|
492
492
|
if (x)
|
|
493
493
|
return `
|
|
494
494
|
|
|
@@ -503,77 +503,77 @@ Check the render method of \`` + x + "`.";
|
|
|
503
503
|
var Ea = {};
|
|
504
504
|
function Ha(x) {
|
|
505
505
|
{
|
|
506
|
-
var
|
|
507
|
-
if (!
|
|
506
|
+
var V = Oa();
|
|
507
|
+
if (!V) {
|
|
508
508
|
var $ = typeof x == "string" ? x : x.displayName || x.name;
|
|
509
|
-
$ && (
|
|
509
|
+
$ && (V = `
|
|
510
510
|
|
|
511
511
|
Check the top-level render call using <` + $ + ">.");
|
|
512
512
|
}
|
|
513
|
-
return
|
|
513
|
+
return V;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function Wa(x,
|
|
516
|
+
function Wa(x, V) {
|
|
517
517
|
{
|
|
518
518
|
if (!x._store || x._store.validated || x.key != null)
|
|
519
519
|
return;
|
|
520
520
|
x._store.validated = !0;
|
|
521
|
-
var $ = Ha(
|
|
521
|
+
var $ = Ha(V);
|
|
522
522
|
if (Ea[$])
|
|
523
523
|
return;
|
|
524
524
|
Ea[$] = !0;
|
|
525
525
|
var ne = "";
|
|
526
|
-
x && x._owner && x._owner !== Ua.current && (ne = " It was passed a child from " +
|
|
526
|
+
x && x._owner && x._owner !== Ua.current && (ne = " It was passed a child from " + A(x._owner.type) + "."), ea(x), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, ne), ea(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function Re(x,
|
|
529
|
+
function Re(x, V) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof x != "object")
|
|
532
532
|
return;
|
|
533
|
-
if (
|
|
533
|
+
if (oe(x))
|
|
534
534
|
for (var $ = 0; $ < x.length; $++) {
|
|
535
535
|
var ne = x[$];
|
|
536
|
-
va(ne) && Wa(ne,
|
|
536
|
+
va(ne) && Wa(ne, V);
|
|
537
537
|
}
|
|
538
538
|
else if (va(x))
|
|
539
539
|
x._store && (x._store.validated = !0);
|
|
540
540
|
else if (x) {
|
|
541
541
|
var _e = y(x);
|
|
542
542
|
if (typeof _e == "function" && _e !== x.entries)
|
|
543
|
-
for (var
|
|
544
|
-
va(
|
|
543
|
+
for (var Ue = _e.call(x), ce; !(ce = Ue.next()).done; )
|
|
544
|
+
va(ce.value) && Wa(ce.value, V);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function K(x) {
|
|
549
549
|
{
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
550
|
+
var V = x.type;
|
|
551
|
+
if (V == null || typeof V == "string")
|
|
552
552
|
return;
|
|
553
553
|
var $;
|
|
554
|
-
if (typeof
|
|
555
|
-
$ =
|
|
556
|
-
else if (typeof
|
|
554
|
+
if (typeof V == "function")
|
|
555
|
+
$ = V.propTypes;
|
|
556
|
+
else if (typeof V == "object" && (V.$$typeof === l || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
|
-
|
|
559
|
-
$ =
|
|
558
|
+
V.$$typeof === o))
|
|
559
|
+
$ = V.propTypes;
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
562
|
if ($) {
|
|
563
|
-
var ne =
|
|
563
|
+
var ne = A(V);
|
|
564
564
|
Xe($, x.props, "prop", ne, x);
|
|
565
|
-
} else if (
|
|
565
|
+
} else if (V.PropTypes !== void 0 && !Ca) {
|
|
566
566
|
Ca = !0;
|
|
567
|
-
var _e =
|
|
567
|
+
var _e = A(V);
|
|
568
568
|
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _e || "Unknown");
|
|
569
569
|
}
|
|
570
|
-
typeof
|
|
570
|
+
typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function Pe(x) {
|
|
574
574
|
{
|
|
575
|
-
for (var
|
|
576
|
-
var ne =
|
|
575
|
+
for (var V = Object.keys(x.props), $ = 0; $ < V.length; $++) {
|
|
576
|
+
var ne = V[$];
|
|
577
577
|
if (ne !== "children" && ne !== "key") {
|
|
578
578
|
ea(x), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), ea(null);
|
|
579
579
|
break;
|
|
@@ -583,25 +583,25 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var la = {};
|
|
586
|
-
function
|
|
587
|
-
{
|
|
588
|
-
var
|
|
589
|
-
if (!
|
|
590
|
-
var
|
|
591
|
-
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (
|
|
592
|
-
var
|
|
593
|
-
|
|
594
|
-
var
|
|
595
|
-
x === null ?
|
|
586
|
+
function Ie(x, V, $, ne, _e, Ue) {
|
|
587
|
+
{
|
|
588
|
+
var ce = k(x);
|
|
589
|
+
if (!ce) {
|
|
590
|
+
var ge = "";
|
|
591
|
+
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (ge += " 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 Ve = Ba();
|
|
593
|
+
Ve ? ge += Ve : ge += Oa();
|
|
594
|
+
var Se;
|
|
595
|
+
x === null ? Se = "null" : oe(x) ? Se = "array" : x !== void 0 && x.$$typeof === t ? (Se = "<" + (A(x.type) || "Unknown") + " />", ge = " Did you accidentally export a JSX literal instead of a component?") : Se = typeof x, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Se, ge);
|
|
596
596
|
}
|
|
597
|
-
var De = et(x,
|
|
597
|
+
var De = et(x, V, $, _e, Ue);
|
|
598
598
|
if (De == null)
|
|
599
599
|
return De;
|
|
600
|
-
if (
|
|
601
|
-
var aa =
|
|
600
|
+
if (ce) {
|
|
601
|
+
var aa = V.children;
|
|
602
602
|
if (aa !== void 0)
|
|
603
603
|
if (ne)
|
|
604
|
-
if (
|
|
604
|
+
if (oe(aa)) {
|
|
605
605
|
for (var Ia = 0; Ia < aa.length; Ia++)
|
|
606
606
|
Re(aa[Ia], x);
|
|
607
607
|
Object.freeze && Object.freeze(aa);
|
|
@@ -610,8 +610,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
610
610
|
else
|
|
611
611
|
Re(aa, x);
|
|
612
612
|
}
|
|
613
|
-
if (be.call(
|
|
614
|
-
var Da =
|
|
613
|
+
if (be.call(V, "key")) {
|
|
614
|
+
var Da = A(x), Ze = Object.keys(V).filter(function(ol) {
|
|
615
615
|
return ol !== "key";
|
|
616
616
|
}), mi = Ze.length > 0 ? "{key: someKey, " + Ze.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!la[Da + mi]) {
|
|
@@ -624,14 +624,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
624
624
|
<%s key={someKey} {...props} />`, mi, Da, ll, Da), la[Da + mi] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
return x === n ? Pe(De) :
|
|
627
|
+
return x === n ? Pe(De) : K(De), De;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function oa(x,
|
|
631
|
-
return
|
|
630
|
+
function oa(x, V, $) {
|
|
631
|
+
return Ie(x, V, $, !0);
|
|
632
632
|
}
|
|
633
|
-
function dt(x,
|
|
634
|
-
return
|
|
633
|
+
function dt(x, V, $) {
|
|
634
|
+
return Ie(x, V, $, !1);
|
|
635
635
|
}
|
|
636
636
|
var si = dt, rl = oa;
|
|
637
637
|
tt.Fragment = n, tt.jsx = si, tt.jsxs = rl;
|
|
@@ -641,7 +641,7 @@ var Zi;
|
|
|
641
641
|
function Cl() {
|
|
642
642
|
return Zi || (Zi = 1, process.env.NODE_ENV === "production" ? ct.exports = bl() : ct.exports = Ul()), ct.exports;
|
|
643
643
|
}
|
|
644
|
-
var
|
|
644
|
+
var ie = Cl();
|
|
645
645
|
const pr = ni(null), re = () => {
|
|
646
646
|
const e = Ei(pr);
|
|
647
647
|
if (!e)
|
|
@@ -651,7 +651,7 @@ const pr = ni(null), re = () => {
|
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
653
|
}, gr = ni(null), vl = ({ children: e }) => {
|
|
654
|
-
const [t, a] =
|
|
654
|
+
const [t, a] = je(it.READY), n = ka(() => {
|
|
655
655
|
const s = t === it.READY, u = t === it.PENDING;
|
|
656
656
|
return {
|
|
657
657
|
status: t,
|
|
@@ -662,13 +662,13 @@ const pr = ni(null), re = () => {
|
|
|
662
662
|
setAsPending: () => a(it.PENDING)
|
|
663
663
|
};
|
|
664
664
|
}, [t]);
|
|
665
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ ie.jsx(gr.Provider, { value: n, children: e });
|
|
666
666
|
}, dr = () => {
|
|
667
667
|
const e = Ei(gr);
|
|
668
668
|
if (!e)
|
|
669
669
|
throw new Error("useStatus must be used within a StatusProvider");
|
|
670
670
|
return e;
|
|
671
|
-
},
|
|
671
|
+
}, Je = (e) => {
|
|
672
672
|
switch (e) {
|
|
673
673
|
case "tw":
|
|
674
674
|
return "zh_TW";
|
|
@@ -687,7 +687,7 @@ const pr = ni(null), re = () => {
|
|
|
687
687
|
default:
|
|
688
688
|
return e;
|
|
689
689
|
}
|
|
690
|
-
},
|
|
690
|
+
}, Qe = "https://d1h3qe8voog6w4.cloudfront.net", st = "https://d3jx2uvukujuvn.cloudfront.net", cr = (e) => `${Qe}/reward_icon/${e}.avif`, fr = () => `${Qe}/reward_icon/background_deposit.avif`, _r = "ds88platformIcon", Ka = {
|
|
691
691
|
zh_TW: "系統提示",
|
|
692
692
|
zh_CN: "系统提示",
|
|
693
693
|
en_US: "System Prompt",
|
|
@@ -738,7 +738,7 @@ function Ki({
|
|
|
738
738
|
"發生錯誤,請稍後再試。"
|
|
739
739
|
);
|
|
740
740
|
if (l) {
|
|
741
|
-
const m =
|
|
741
|
+
const m = Je(n);
|
|
742
742
|
s?.dispatch({
|
|
743
743
|
type: "ui/showToast",
|
|
744
744
|
payload: {
|
|
@@ -900,7 +900,7 @@ const Pl = {}, wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
900
900
|
default: Pl
|
|
901
901
|
}, Symbol.toStringTag, { value: "Module" })), Fl = /* @__PURE__ */ yl(wl);
|
|
902
902
|
var Al = Ct.exports, qi;
|
|
903
|
-
function
|
|
903
|
+
function de() {
|
|
904
904
|
return qi || (qi = 1, (function(e, t) {
|
|
905
905
|
(function(a, n) {
|
|
906
906
|
e.exports = n();
|
|
@@ -1273,8 +1273,8 @@ function pe() {
|
|
|
1273
1273
|
c ? H = n.ceil(H) : H = n.max((H | 0) - this._minBufferSize, 0);
|
|
1274
1274
|
var k = H * h, S = n.min(k * 4, T);
|
|
1275
1275
|
if (k) {
|
|
1276
|
-
for (var
|
|
1277
|
-
this._doProcessBlock(v,
|
|
1276
|
+
for (var F = 0; F < k; F += h)
|
|
1277
|
+
this._doProcessBlock(v, F);
|
|
1278
1278
|
U = v.splice(0, k), C.sigBytes -= S;
|
|
1279
1279
|
}
|
|
1280
1280
|
return new o.init(U, S);
|
|
@@ -1404,7 +1404,7 @@ var vt = { exports: {} }, Ol = vt.exports, $i;
|
|
|
1404
1404
|
function oi() {
|
|
1405
1405
|
return $i || ($i = 1, (function(e, t) {
|
|
1406
1406
|
(function(a, n) {
|
|
1407
|
-
e.exports = n(
|
|
1407
|
+
e.exports = n(de());
|
|
1408
1408
|
})(Ol, function(a) {
|
|
1409
1409
|
return (function(n) {
|
|
1410
1410
|
var s = a, u = s.lib, b = u.Base, d = u.WordArray, l = s.x64 = {};
|
|
@@ -1634,7 +1634,7 @@ var ht = { exports: {} }, Bl = ht.exports, ji;
|
|
|
1634
1634
|
function Hl() {
|
|
1635
1635
|
return ji || (ji = 1, (function(e, t) {
|
|
1636
1636
|
(function(a, n) {
|
|
1637
|
-
e.exports = n(
|
|
1637
|
+
e.exports = n(de());
|
|
1638
1638
|
})(Bl, function(a) {
|
|
1639
1639
|
return (function() {
|
|
1640
1640
|
if (typeof ArrayBuffer == "function") {
|
|
@@ -1656,7 +1656,7 @@ var Tt = { exports: {} }, Wl = Tt.exports, Qi;
|
|
|
1656
1656
|
function Il() {
|
|
1657
1657
|
return Qi || (Qi = 1, (function(e, t) {
|
|
1658
1658
|
(function(a, n) {
|
|
1659
|
-
e.exports = n(
|
|
1659
|
+
e.exports = n(de());
|
|
1660
1660
|
})(Wl, function(a) {
|
|
1661
1661
|
return (function() {
|
|
1662
1662
|
var n = a, s = n.lib, u = s.WordArray, b = n.enc;
|
|
@@ -1750,7 +1750,7 @@ var kt = { exports: {} }, zl = kt.exports, Yi;
|
|
|
1750
1750
|
function Ra() {
|
|
1751
1751
|
return Yi || (Yi = 1, (function(e, t) {
|
|
1752
1752
|
(function(a, n) {
|
|
1753
|
-
e.exports = n(
|
|
1753
|
+
e.exports = n(de());
|
|
1754
1754
|
})(zl, function(a) {
|
|
1755
1755
|
return (function() {
|
|
1756
1756
|
var n = a, s = n.lib, u = s.WordArray, b = n.enc;
|
|
@@ -1825,7 +1825,7 @@ var xt = { exports: {} }, Vl = xt.exports, Xi;
|
|
|
1825
1825
|
function Jl() {
|
|
1826
1826
|
return Xi || (Xi = 1, (function(e, t) {
|
|
1827
1827
|
(function(a, n) {
|
|
1828
|
-
e.exports = n(
|
|
1828
|
+
e.exports = n(de());
|
|
1829
1829
|
})(Vl, function(a) {
|
|
1830
1830
|
return (function() {
|
|
1831
1831
|
var n = a, s = n.lib, u = s.WordArray, b = n.enc;
|
|
@@ -1907,7 +1907,7 @@ var St = { exports: {} }, Zl = St.exports, en;
|
|
|
1907
1907
|
function Pa() {
|
|
1908
1908
|
return en || (en = 1, (function(e, t) {
|
|
1909
1909
|
(function(a, n) {
|
|
1910
|
-
e.exports = n(
|
|
1910
|
+
e.exports = n(de());
|
|
1911
1911
|
})(Zl, function(a) {
|
|
1912
1912
|
return (function(n) {
|
|
1913
1913
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.algo, i = [];
|
|
@@ -1929,8 +1929,8 @@ function Pa() {
|
|
|
1929
1929
|
var c = y + _, U = f[c];
|
|
1930
1930
|
f[c] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
1931
1931
|
}
|
|
1932
|
-
var C = this._hash.words, v = f[y + 0], T = f[y + 1], h = f[y + 2], D = f[y + 3], H = f[y + 4], k = f[y + 5], S = f[y + 6],
|
|
1933
|
-
N = o(N, E,
|
|
1932
|
+
var C = this._hash.words, v = f[y + 0], T = f[y + 1], h = f[y + 2], D = f[y + 3], H = f[y + 4], k = f[y + 5], S = f[y + 6], F = f[y + 7], A = f[y + 8], R = f[y + 9], L = f[y + 10], G = f[y + 11], I = f[y + 12], W = f[y + 13], z = f[y + 14], B = f[y + 15], N = C[0], E = C[1], w = C[2], P = C[3];
|
|
1933
|
+
N = o(N, E, w, P, v, 7, i[0]), P = o(P, N, E, w, T, 12, i[1]), w = o(w, P, N, E, h, 17, i[2]), E = o(E, w, P, N, D, 22, i[3]), N = o(N, E, w, P, H, 7, i[4]), P = o(P, N, E, w, k, 12, i[5]), w = o(w, P, N, E, S, 17, i[6]), E = o(E, w, P, N, F, 22, i[7]), N = o(N, E, w, P, A, 7, i[8]), P = o(P, N, E, w, R, 12, i[9]), w = o(w, P, N, E, L, 17, i[10]), E = o(E, w, P, N, G, 22, i[11]), N = o(N, E, w, P, I, 7, i[12]), P = o(P, N, E, w, W, 12, i[13]), w = o(w, P, N, E, z, 17, i[14]), E = o(E, w, P, N, B, 22, i[15]), N = m(N, E, w, P, T, 5, i[16]), P = m(P, N, E, w, S, 9, i[17]), w = m(w, P, N, E, G, 14, i[18]), E = m(E, w, P, N, v, 20, i[19]), N = m(N, E, w, P, k, 5, i[20]), P = m(P, N, E, w, L, 9, i[21]), w = m(w, P, N, E, B, 14, i[22]), E = m(E, w, P, N, H, 20, i[23]), N = m(N, E, w, P, R, 5, i[24]), P = m(P, N, E, w, z, 9, i[25]), w = m(w, P, N, E, D, 14, i[26]), E = m(E, w, P, N, A, 20, i[27]), N = m(N, E, w, P, W, 5, i[28]), P = m(P, N, E, w, h, 9, i[29]), w = m(w, P, N, E, F, 14, i[30]), E = m(E, w, P, N, I, 20, i[31]), N = g(N, E, w, P, k, 4, i[32]), P = g(P, N, E, w, A, 11, i[33]), w = g(w, P, N, E, G, 16, i[34]), E = g(E, w, P, N, z, 23, i[35]), N = g(N, E, w, P, T, 4, i[36]), P = g(P, N, E, w, H, 11, i[37]), w = g(w, P, N, E, F, 16, i[38]), E = g(E, w, P, N, L, 23, i[39]), N = g(N, E, w, P, W, 4, i[40]), P = g(P, N, E, w, v, 11, i[41]), w = g(w, P, N, E, D, 16, i[42]), E = g(E, w, P, N, S, 23, i[43]), N = g(N, E, w, P, R, 4, i[44]), P = g(P, N, E, w, I, 11, i[45]), w = g(w, P, N, E, B, 16, i[46]), E = g(E, w, P, N, h, 23, i[47]), N = p(N, E, w, P, v, 6, i[48]), P = p(P, N, E, w, F, 10, i[49]), w = p(w, P, N, E, z, 15, i[50]), E = p(E, w, P, N, k, 21, i[51]), N = p(N, E, w, P, I, 6, i[52]), P = p(P, N, E, w, D, 10, i[53]), w = p(w, P, N, E, L, 15, i[54]), E = p(E, w, P, N, T, 21, i[55]), N = p(N, E, w, P, A, 6, i[56]), P = p(P, N, E, w, B, 10, i[57]), w = p(w, P, N, E, S, 15, i[58]), E = p(E, w, P, N, W, 21, i[59]), N = p(N, E, w, P, H, 6, i[60]), P = p(P, N, E, w, G, 10, i[61]), w = p(w, P, N, E, h, 15, i[62]), E = p(E, w, P, N, R, 21, i[63]), C[0] = C[0] + N | 0, C[1] = C[1] + E | 0, C[2] = C[2] + w | 0, C[3] = C[3] + P | 0;
|
|
1934
1934
|
},
|
|
1935
1935
|
_doFinalize: function() {
|
|
1936
1936
|
var f = this._data, y = f.words, _ = this._nDataBytes * 8, c = f.sigBytes * 8;
|
|
@@ -1973,7 +1973,7 @@ var Et = { exports: {} }, Kl = Et.exports, an;
|
|
|
1973
1973
|
function hr() {
|
|
1974
1974
|
return an || (an = 1, (function(e, t) {
|
|
1975
1975
|
(function(a, n) {
|
|
1976
|
-
e.exports = n(
|
|
1976
|
+
e.exports = n(de());
|
|
1977
1977
|
})(Kl, function(a) {
|
|
1978
1978
|
return (function() {
|
|
1979
1979
|
var n = a, s = n.lib, u = s.WordArray, b = s.Hasher, d = n.algo, l = [], i = d.SHA1 = b.extend({
|
|
@@ -2017,7 +2017,7 @@ var Dt = { exports: {} }, ql = Dt.exports, tn;
|
|
|
2017
2017
|
function Ni() {
|
|
2018
2018
|
return tn || (tn = 1, (function(e, t) {
|
|
2019
2019
|
(function(a, n) {
|
|
2020
|
-
e.exports = n(
|
|
2020
|
+
e.exports = n(de());
|
|
2021
2021
|
})(ql, function(a) {
|
|
2022
2022
|
return (function(n) {
|
|
2023
2023
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.algo, i = [], r = [];
|
|
@@ -2043,10 +2043,10 @@ function Ni() {
|
|
|
2043
2043
|
if (D < 16)
|
|
2044
2044
|
o[D] = g[p + D] | 0;
|
|
2045
2045
|
else {
|
|
2046
|
-
var H = o[D - 15], k = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, S = o[D - 2],
|
|
2047
|
-
o[D] = k + o[D - 7] +
|
|
2046
|
+
var H = o[D - 15], k = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, S = o[D - 2], F = (S << 15 | S >>> 17) ^ (S << 13 | S >>> 19) ^ S >>> 10;
|
|
2047
|
+
o[D] = k + o[D - 7] + F + o[D - 16];
|
|
2048
2048
|
}
|
|
2049
|
-
var
|
|
2049
|
+
var A = C & v ^ ~C & T, R = y & _ ^ y & c ^ _ & c, L = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), G = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), I = h + G + A + r[D] + o[D], W = L + R;
|
|
2050
2050
|
h = T, T = v, v = C, C = U + I | 0, U = c, c = _, _ = y, y = I + W | 0;
|
|
2051
2051
|
}
|
|
2052
2052
|
f[0] = f[0] + y | 0, f[1] = f[1] + _ | 0, f[2] = f[2] + c | 0, f[3] = f[3] + U | 0, f[4] = f[4] + C | 0, f[5] = f[5] + v | 0, f[6] = f[6] + T | 0, f[7] = f[7] + h | 0;
|
|
@@ -2069,7 +2069,7 @@ var Nt = { exports: {} }, $l = Nt.exports, nn;
|
|
|
2069
2069
|
function jl() {
|
|
2070
2070
|
return nn || (nn = 1, (function(e, t) {
|
|
2071
2071
|
(function(a, n, s) {
|
|
2072
|
-
e.exports = n(
|
|
2072
|
+
e.exports = n(de(), Ni());
|
|
2073
2073
|
})($l, function(a) {
|
|
2074
2074
|
return (function() {
|
|
2075
2075
|
var n = a, s = n.lib, u = s.WordArray, b = n.algo, d = b.SHA256, l = b.SHA224 = d.extend({
|
|
@@ -2099,7 +2099,7 @@ var Lt = { exports: {} }, Ql = Lt.exports, rn;
|
|
|
2099
2099
|
function Tr() {
|
|
2100
2100
|
return rn || (rn = 1, (function(e, t) {
|
|
2101
2101
|
(function(a, n, s) {
|
|
2102
|
-
e.exports = n(
|
|
2102
|
+
e.exports = n(de(), oi());
|
|
2103
2103
|
})(Ql, function(a) {
|
|
2104
2104
|
return (function() {
|
|
2105
2105
|
var n = a, s = n.lib, u = s.Hasher, b = n.x64, d = b.Word, l = b.WordArray, i = n.algo;
|
|
@@ -2206,18 +2206,18 @@ function Tr() {
|
|
|
2206
2206
|
]);
|
|
2207
2207
|
},
|
|
2208
2208
|
_doProcessBlock: function(p, f) {
|
|
2209
|
-
for (var y = this._hash.words, _ = y[0], c = y[1], U = y[2], C = y[3], v = y[4], T = y[5], h = y[6], D = y[7], H = _.high, k = _.low, S = c.high,
|
|
2210
|
-
var
|
|
2211
|
-
if (
|
|
2212
|
-
|
|
2209
|
+
for (var y = this._hash.words, _ = y[0], c = y[1], U = y[2], C = y[3], v = y[4], T = y[5], h = y[6], D = y[7], H = _.high, k = _.low, S = c.high, F = c.low, A = U.high, R = U.low, L = C.high, G = C.low, I = v.high, W = v.low, z = T.high, B = T.low, N = h.high, E = h.low, w = D.high, P = D.low, ae = H, te = k, le = S, O = F, J = A, Z = R, Q = L, X = G, q = I, pe = W, Ce = z, be = B, Ye = N, he = E, Ge = w, Xe = P, Me = 0; Me < 80; Me++) {
|
|
2210
|
+
var oe, ke, He = m[Me];
|
|
2211
|
+
if (Me < 16)
|
|
2212
|
+
ke = He.high = p[f + Me * 2] | 0, oe = He.low = p[f + Me * 2 + 1] | 0;
|
|
2213
2213
|
else {
|
|
2214
|
-
var
|
|
2215
|
-
|
|
2214
|
+
var ze = m[Me - 15], xe = ze.high, We = ze.low, ia = (xe >>> 1 | We << 31) ^ (xe >>> 8 | We << 24) ^ xe >>> 7, ua = (We >>> 1 | xe << 31) ^ (We >>> 8 | xe << 24) ^ (We >>> 7 | xe << 25), ba = m[Me - 2], Ke = ba.high, na = ba.low, Ya = (Ke >>> 19 | na << 13) ^ (Ke << 3 | na >>> 29) ^ Ke >>> 6, Fa = (na >>> 19 | Ke << 13) ^ (na << 3 | Ke >>> 29) ^ (na >>> 6 | Ke << 26), Aa = m[Me - 7], Xa = Aa.high, et = Aa.low, Ua = m[Me - 16], Sa = Ua.high, ea = Ua.low;
|
|
2215
|
+
oe = ua + et, ke = ia + Xa + (oe >>> 0 < ua >>> 0 ? 1 : 0), oe = oe + Fa, ke = ke + Ya + (oe >>> 0 < Fa >>> 0 ? 1 : 0), oe = oe + ea, ke = ke + Sa + (oe >>> 0 < ea >>> 0 ? 1 : 0), He.high = ke, He.low = oe;
|
|
2216
2216
|
}
|
|
2217
|
-
var Ca =
|
|
2218
|
-
Ge =
|
|
2217
|
+
var Ca = q & Ce ^ ~q & Ye, va = pe & be ^ ~pe & he, Oa = ae & le ^ ae & J ^ le & J, Ba = te & O ^ te & Z ^ O & Z, Ea = (ae >>> 28 | te << 4) ^ (ae << 30 | te >>> 2) ^ (ae << 25 | te >>> 7), Ha = (te >>> 28 | ae << 4) ^ (te << 30 | ae >>> 2) ^ (te << 25 | ae >>> 7), Wa = (q >>> 14 | pe << 18) ^ (q >>> 18 | pe << 14) ^ (q << 23 | pe >>> 9), Re = (pe >>> 14 | q << 18) ^ (pe >>> 18 | q << 14) ^ (pe << 23 | q >>> 9), K = o[Me], Pe = K.high, la = K.low, Ie = Xe + Re, oa = Ge + Wa + (Ie >>> 0 < Xe >>> 0 ? 1 : 0), Ie = Ie + va, oa = oa + Ca + (Ie >>> 0 < va >>> 0 ? 1 : 0), Ie = Ie + la, oa = oa + Pe + (Ie >>> 0 < la >>> 0 ? 1 : 0), Ie = Ie + oe, oa = oa + ke + (Ie >>> 0 < oe >>> 0 ? 1 : 0), dt = Ha + Ba, si = Ea + Oa + (dt >>> 0 < Ha >>> 0 ? 1 : 0);
|
|
2218
|
+
Ge = Ye, Xe = he, Ye = Ce, he = be, Ce = q, be = pe, pe = X + Ie | 0, q = Q + oa + (pe >>> 0 < X >>> 0 ? 1 : 0) | 0, Q = J, X = Z, J = le, Z = O, le = ae, O = te, te = Ie + dt | 0, ae = oa + si + (te >>> 0 < Ie >>> 0 ? 1 : 0) | 0;
|
|
2219
2219
|
}
|
|
2220
|
-
k = _.low = k +
|
|
2220
|
+
k = _.low = k + te, _.high = H + ae + (k >>> 0 < te >>> 0 ? 1 : 0), F = c.low = F + O, c.high = S + le + (F >>> 0 < O >>> 0 ? 1 : 0), R = U.low = R + Z, U.high = A + J + (R >>> 0 < Z >>> 0 ? 1 : 0), G = C.low = G + X, C.high = L + Q + (G >>> 0 < X >>> 0 ? 1 : 0), W = v.low = W + pe, v.high = I + q + (W >>> 0 < pe >>> 0 ? 1 : 0), B = T.low = B + be, T.high = z + Ce + (B >>> 0 < be >>> 0 ? 1 : 0), E = h.low = E + he, h.high = N + Ye + (E >>> 0 < he >>> 0 ? 1 : 0), P = D.low = P + Xe, D.high = w + Ge + (P >>> 0 < Xe >>> 0 ? 1 : 0);
|
|
2221
2221
|
},
|
|
2222
2222
|
_doFinalize: function() {
|
|
2223
2223
|
var p = this._data, f = p.words, y = this._nDataBytes * 8, _ = p.sigBytes * 8;
|
|
@@ -2240,7 +2240,7 @@ var Gt = { exports: {} }, Yl = Gt.exports, ln;
|
|
|
2240
2240
|
function Xl() {
|
|
2241
2241
|
return ln || (ln = 1, (function(e, t) {
|
|
2242
2242
|
(function(a, n, s) {
|
|
2243
|
-
e.exports = n(
|
|
2243
|
+
e.exports = n(de(), oi(), Tr());
|
|
2244
2244
|
})(Yl, function(a) {
|
|
2245
2245
|
return (function() {
|
|
2246
2246
|
var n = a, s = n.x64, u = s.Word, b = s.WordArray, d = n.algo, l = d.SHA512, i = d.SHA384 = l.extend({
|
|
@@ -2270,7 +2270,7 @@ var Mt = { exports: {} }, eo = Mt.exports, on;
|
|
|
2270
2270
|
function ao() {
|
|
2271
2271
|
return on || (on = 1, (function(e, t) {
|
|
2272
2272
|
(function(a, n, s) {
|
|
2273
|
-
e.exports = n(
|
|
2273
|
+
e.exports = n(de(), oi());
|
|
2274
2274
|
})(eo, function(a) {
|
|
2275
2275
|
return (function(n) {
|
|
2276
2276
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.x64, i = l.Word, r = s.algo, o = [], m = [], g = [];
|
|
@@ -2325,33 +2325,33 @@ function ao() {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
for (var D = 0; D < 24; D++) {
|
|
2327
2327
|
for (var H = 0; H < 5; H++) {
|
|
2328
|
-
for (var k = 0, S = 0,
|
|
2329
|
-
var h = c[H + 5 *
|
|
2328
|
+
for (var k = 0, S = 0, F = 0; F < 5; F++) {
|
|
2329
|
+
var h = c[H + 5 * F];
|
|
2330
2330
|
k ^= h.high, S ^= h.low;
|
|
2331
2331
|
}
|
|
2332
|
-
var
|
|
2333
|
-
|
|
2332
|
+
var A = p[H];
|
|
2333
|
+
A.high = k, A.low = S;
|
|
2334
2334
|
}
|
|
2335
2335
|
for (var H = 0; H < 5; H++)
|
|
2336
|
-
for (var R = p[(H + 4) % 5], L = p[(H + 1) % 5], G = L.high, I = L.low, k = R.high ^ (G << 1 | I >>> 31), S = R.low ^ (I << 1 | G >>> 31),
|
|
2337
|
-
var h = c[H + 5 *
|
|
2336
|
+
for (var R = p[(H + 4) % 5], L = p[(H + 1) % 5], G = L.high, I = L.low, k = R.high ^ (G << 1 | I >>> 31), S = R.low ^ (I << 1 | G >>> 31), F = 0; F < 5; F++) {
|
|
2337
|
+
var h = c[H + 5 * F];
|
|
2338
2338
|
h.high ^= k, h.low ^= S;
|
|
2339
2339
|
}
|
|
2340
2340
|
for (var W = 1; W < 25; W++) {
|
|
2341
|
-
var k, S, h = c[W],
|
|
2342
|
-
N < 32 ? (k =
|
|
2341
|
+
var k, S, h = c[W], z = h.high, B = h.low, N = o[W];
|
|
2342
|
+
N < 32 ? (k = z << N | B >>> 32 - N, S = B << N | z >>> 32 - N) : (k = B << N - 32 | z >>> 64 - N, S = z << N - 32 | B >>> 64 - N);
|
|
2343
2343
|
var E = p[m[W]];
|
|
2344
2344
|
E.high = k, E.low = S;
|
|
2345
2345
|
}
|
|
2346
|
-
var
|
|
2347
|
-
|
|
2346
|
+
var w = p[0], P = c[0];
|
|
2347
|
+
w.high = P.high, w.low = P.low;
|
|
2348
2348
|
for (var H = 0; H < 5; H++)
|
|
2349
|
-
for (var
|
|
2350
|
-
var W = H + 5 *
|
|
2351
|
-
h.high =
|
|
2349
|
+
for (var F = 0; F < 5; F++) {
|
|
2350
|
+
var W = H + 5 * F, h = c[W], ae = p[W], te = p[(H + 1) % 5 + 5 * F], le = p[(H + 2) % 5 + 5 * F];
|
|
2351
|
+
h.high = ae.high ^ ~te.high & le.high, h.low = ae.low ^ ~te.low & le.low;
|
|
2352
2352
|
}
|
|
2353
|
-
var h = c[0],
|
|
2354
|
-
h.high ^=
|
|
2353
|
+
var h = c[0], O = g[D];
|
|
2354
|
+
h.high ^= O.high, h.low ^= O.low;
|
|
2355
2355
|
}
|
|
2356
2356
|
},
|
|
2357
2357
|
_doFinalize: function() {
|
|
@@ -2380,7 +2380,7 @@ var Rt = { exports: {} }, to = Rt.exports, sn;
|
|
|
2380
2380
|
function io() {
|
|
2381
2381
|
return sn || (sn = 1, (function(e, t) {
|
|
2382
2382
|
(function(a, n) {
|
|
2383
|
-
e.exports = n(
|
|
2383
|
+
e.exports = n(de());
|
|
2384
2384
|
})(to, function(a) {
|
|
2385
2385
|
return (function(n) {
|
|
2386
2386
|
var s = a, u = s.lib, b = u.WordArray, d = u.Hasher, l = s.algo, i = b.create([
|
|
@@ -2716,18 +2716,18 @@ function io() {
|
|
|
2716
2716
|
var H = h + D, k = T[H];
|
|
2717
2717
|
T[H] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2718
2718
|
}
|
|
2719
|
-
var S = this._hash.words,
|
|
2720
|
-
|
|
2721
|
-
for (var
|
|
2722
|
-
|
|
2723
|
-
|
|
2719
|
+
var S = this._hash.words, F = g.words, A = p.words, R = i.words, L = r.words, G = o.words, I = m.words, W, z, B, N, E, w, P, ae, te, le;
|
|
2720
|
+
w = W = S[0], P = z = S[1], ae = B = S[2], te = N = S[3], le = E = S[4];
|
|
2721
|
+
for (var O, D = 0; D < 80; D += 1)
|
|
2722
|
+
O = W + T[h + R[D]] | 0, D < 16 ? O += y(z, B, N) + F[0] : D < 32 ? O += _(z, B, N) + F[1] : D < 48 ? O += c(z, B, N) + F[2] : D < 64 ? O += U(z, B, N) + F[3] : O += C(z, B, N) + F[4], O = O | 0, O = v(O, G[D]), O = O + E | 0, W = E, E = N, N = v(B, 10), B = z, z = O, O = w + T[h + L[D]] | 0, D < 16 ? O += C(P, ae, te) + A[0] : D < 32 ? O += U(P, ae, te) + A[1] : D < 48 ? O += c(P, ae, te) + A[2] : D < 64 ? O += _(P, ae, te) + A[3] : O += y(P, ae, te) + A[4], O = O | 0, O = v(O, I[D]), O = O + le | 0, w = le, le = te, te = v(ae, 10), ae = P, P = O;
|
|
2723
|
+
O = S[1] + B + te | 0, S[1] = S[2] + N + le | 0, S[2] = S[3] + E + w | 0, S[3] = S[4] + W + P | 0, S[4] = S[0] + z + ae | 0, S[0] = O;
|
|
2724
2724
|
},
|
|
2725
2725
|
_doFinalize: function() {
|
|
2726
2726
|
var T = this._data, h = T.words, D = this._nDataBytes * 8, H = T.sigBytes * 8;
|
|
2727
2727
|
h[H >>> 5] |= 128 << 24 - H % 32, h[(H + 64 >>> 9 << 4) + 14] = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360, T.sigBytes = (h.length + 1) * 4, this._process();
|
|
2728
|
-
for (var k = this._hash, S = k.words,
|
|
2729
|
-
var
|
|
2730
|
-
S[
|
|
2728
|
+
for (var k = this._hash, S = k.words, F = 0; F < 5; F++) {
|
|
2729
|
+
var A = S[F];
|
|
2730
|
+
S[F] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
|
|
2731
2731
|
}
|
|
2732
2732
|
return k;
|
|
2733
2733
|
},
|
|
@@ -2763,7 +2763,7 @@ var Pt = { exports: {} }, no = Pt.exports, mn;
|
|
|
2763
2763
|
function Li() {
|
|
2764
2764
|
return mn || (mn = 1, (function(e, t) {
|
|
2765
2765
|
(function(a, n) {
|
|
2766
|
-
e.exports = n(
|
|
2766
|
+
e.exports = n(de());
|
|
2767
2767
|
})(no, function(a) {
|
|
2768
2768
|
(function() {
|
|
2769
2769
|
var n = a, s = n.lib, u = s.Base, b = n.enc, d = b.Utf8, l = n.algo;
|
|
@@ -2841,7 +2841,7 @@ var wt = { exports: {} }, ro = wt.exports, un;
|
|
|
2841
2841
|
function lo() {
|
|
2842
2842
|
return un || (un = 1, (function(e, t) {
|
|
2843
2843
|
(function(a, n, s) {
|
|
2844
|
-
e.exports = n(
|
|
2844
|
+
e.exports = n(de(), Ni(), Li());
|
|
2845
2845
|
})(ro, function(a) {
|
|
2846
2846
|
return (function() {
|
|
2847
2847
|
var n = a, s = n.lib, u = s.Base, b = s.WordArray, d = n.algo, l = d.SHA256, i = d.HMAC, r = d.PBKDF2 = u.extend({
|
|
@@ -2908,7 +2908,7 @@ var Ft = { exports: {} }, oo = Ft.exports, pn;
|
|
|
2908
2908
|
function xa() {
|
|
2909
2909
|
return pn || (pn = 1, (function(e, t) {
|
|
2910
2910
|
(function(a, n, s) {
|
|
2911
|
-
e.exports = n(
|
|
2911
|
+
e.exports = n(de(), hr(), Li());
|
|
2912
2912
|
})(oo, function(a) {
|
|
2913
2913
|
return (function() {
|
|
2914
2914
|
var n = a, s = n.lib, u = s.Base, b = s.WordArray, d = n.algo, l = d.MD5, i = d.EvpKDF = u.extend({
|
|
@@ -2971,7 +2971,7 @@ var At = { exports: {} }, so = At.exports, gn;
|
|
|
2971
2971
|
function Ae() {
|
|
2972
2972
|
return gn || (gn = 1, (function(e, t) {
|
|
2973
2973
|
(function(a, n, s) {
|
|
2974
|
-
e.exports = n(
|
|
2974
|
+
e.exports = n(de(), xa());
|
|
2975
2975
|
})(so, function(a) {
|
|
2976
2976
|
a.lib.Cipher || (function(n) {
|
|
2977
2977
|
var s = a, u = s.lib, b = u.Base, d = u.WordArray, l = u.BufferedBlockAlgorithm, i = s.enc;
|
|
@@ -3028,8 +3028,8 @@ function Ae() {
|
|
|
3028
3028
|
*
|
|
3029
3029
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
3030
3030
|
*/
|
|
3031
|
-
init: function(k, S,
|
|
3032
|
-
this.cfg = this.cfg.extend(
|
|
3031
|
+
init: function(k, S, F) {
|
|
3032
|
+
this.cfg = this.cfg.extend(F), this._xformMode = k, this._key = S, this.reset();
|
|
3033
3033
|
},
|
|
3034
3034
|
/**
|
|
3035
3035
|
* Resets this cipher to its initial state.
|
|
@@ -3098,11 +3098,11 @@ function Ae() {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
return function(S) {
|
|
3100
3100
|
return {
|
|
3101
|
-
encrypt: function(
|
|
3102
|
-
return k(
|
|
3101
|
+
encrypt: function(F, A, R) {
|
|
3102
|
+
return k(A).encrypt(S, F, A, R);
|
|
3103
3103
|
},
|
|
3104
|
-
decrypt: function(
|
|
3105
|
-
return k(
|
|
3104
|
+
decrypt: function(F, A, R) {
|
|
3105
|
+
return k(A).decrypt(S, F, A, R);
|
|
3106
3106
|
}
|
|
3107
3107
|
};
|
|
3108
3108
|
};
|
|
@@ -3172,9 +3172,9 @@ function Ae() {
|
|
|
3172
3172
|
*
|
|
3173
3173
|
* mode.processBlock(data.words, offset);
|
|
3174
3174
|
*/
|
|
3175
|
-
processBlock: function(
|
|
3175
|
+
processBlock: function(F, A) {
|
|
3176
3176
|
var R = this._cipher, L = R.blockSize;
|
|
3177
|
-
S.call(this,
|
|
3177
|
+
S.call(this, F, A, L), R.encryptBlock(F, A), this._prevBlock = F.slice(A, A + L);
|
|
3178
3178
|
}
|
|
3179
3179
|
}), k.Decryptor = k.extend({
|
|
3180
3180
|
/**
|
|
@@ -3187,16 +3187,16 @@ function Ae() {
|
|
|
3187
3187
|
*
|
|
3188
3188
|
* mode.processBlock(data.words, offset);
|
|
3189
3189
|
*/
|
|
3190
|
-
processBlock: function(
|
|
3191
|
-
var R = this._cipher, L = R.blockSize, G =
|
|
3192
|
-
R.decryptBlock(
|
|
3190
|
+
processBlock: function(F, A) {
|
|
3191
|
+
var R = this._cipher, L = R.blockSize, G = F.slice(A, A + L);
|
|
3192
|
+
R.decryptBlock(F, A), S.call(this, F, A, L), this._prevBlock = G;
|
|
3193
3193
|
}
|
|
3194
3194
|
});
|
|
3195
|
-
function S(
|
|
3195
|
+
function S(F, A, R) {
|
|
3196
3196
|
var L, G = this._iv;
|
|
3197
3197
|
G ? (L = G, this._iv = n) : L = this._prevBlock;
|
|
3198
3198
|
for (var I = 0; I < R; I++)
|
|
3199
|
-
A
|
|
3199
|
+
F[A + I] ^= L[I];
|
|
3200
3200
|
}
|
|
3201
3201
|
return k;
|
|
3202
3202
|
})(), _ = s.pad = {}, c = _.Pkcs7 = {
|
|
@@ -3213,9 +3213,9 @@ function Ae() {
|
|
|
3213
3213
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3214
3214
|
*/
|
|
3215
3215
|
pad: function(k, S) {
|
|
3216
|
-
for (var
|
|
3216
|
+
for (var F = S * 4, A = F - k.sigBytes % F, R = A << 24 | A << 16 | A << 8 | A, L = [], G = 0; G < A; G += 4)
|
|
3217
3217
|
L.push(R);
|
|
3218
|
-
var I = d.create(L,
|
|
3218
|
+
var I = d.create(L, A);
|
|
3219
3219
|
k.concat(I);
|
|
3220
3220
|
},
|
|
3221
3221
|
/**
|
|
@@ -3248,8 +3248,8 @@ function Ae() {
|
|
|
3248
3248
|
reset: function() {
|
|
3249
3249
|
var k;
|
|
3250
3250
|
g.reset.call(this);
|
|
3251
|
-
var S = this.cfg,
|
|
3252
|
-
this._xformMode == this._ENC_XFORM_MODE ? k =
|
|
3251
|
+
var S = this.cfg, F = S.iv, A = S.mode;
|
|
3252
|
+
this._xformMode == this._ENC_XFORM_MODE ? k = A.createEncryptor : (k = A.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, F && F.words) : (this._mode = k.call(A, this, F && F.words), this._mode.__creator = k);
|
|
3253
3253
|
},
|
|
3254
3254
|
_doProcessBlock: function(k, S) {
|
|
3255
3255
|
this._mode.processBlock(k, S);
|
|
@@ -3316,8 +3316,8 @@ function Ae() {
|
|
|
3316
3316
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3317
3317
|
*/
|
|
3318
3318
|
stringify: function(k) {
|
|
3319
|
-
var S,
|
|
3320
|
-
return
|
|
3319
|
+
var S, F = k.ciphertext, A = k.salt;
|
|
3320
|
+
return A ? S = d.create([1398893684, 1701076831]).concat(A).concat(F) : S = F, S.toString(r);
|
|
3321
3321
|
},
|
|
3322
3322
|
/**
|
|
3323
3323
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3333,8 +3333,8 @@ function Ae() {
|
|
|
3333
3333
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3334
3334
|
*/
|
|
3335
3335
|
parse: function(k) {
|
|
3336
|
-
var S,
|
|
3337
|
-
return
|
|
3336
|
+
var S, F = r.parse(k), A = F.words;
|
|
3337
|
+
return A[0] == 1398893684 && A[1] == 1701076831 && (S = d.create(A.slice(2, 4)), A.splice(0, 4), F.sigBytes -= 16), U.create({ ciphertext: F, salt: S });
|
|
3338
3338
|
}
|
|
3339
3339
|
}, T = u.SerializableCipher = b.extend({
|
|
3340
3340
|
/**
|
|
@@ -3363,18 +3363,18 @@ function Ae() {
|
|
|
3363
3363
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3364
3364
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3365
3365
|
*/
|
|
3366
|
-
encrypt: function(k, S,
|
|
3367
|
-
|
|
3368
|
-
var R = k.createEncryptor(
|
|
3366
|
+
encrypt: function(k, S, F, A) {
|
|
3367
|
+
A = this.cfg.extend(A);
|
|
3368
|
+
var R = k.createEncryptor(F, A), L = R.finalize(S), G = R.cfg;
|
|
3369
3369
|
return U.create({
|
|
3370
3370
|
ciphertext: L,
|
|
3371
|
-
key:
|
|
3371
|
+
key: F,
|
|
3372
3372
|
iv: G.iv,
|
|
3373
3373
|
algorithm: k,
|
|
3374
3374
|
mode: G.mode,
|
|
3375
3375
|
padding: G.padding,
|
|
3376
3376
|
blockSize: k.blockSize,
|
|
3377
|
-
formatter:
|
|
3377
|
+
formatter: A.format
|
|
3378
3378
|
});
|
|
3379
3379
|
},
|
|
3380
3380
|
/**
|
|
@@ -3394,9 +3394,9 @@ function Ae() {
|
|
|
3394
3394
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3395
3395
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3396
3396
|
*/
|
|
3397
|
-
decrypt: function(k, S,
|
|
3398
|
-
|
|
3399
|
-
var R = k.createDecryptor(
|
|
3397
|
+
decrypt: function(k, S, F, A) {
|
|
3398
|
+
A = this.cfg.extend(A), S = this._parse(S, A.format);
|
|
3399
|
+
var R = k.createDecryptor(F, A).finalize(S.ciphertext);
|
|
3400
3400
|
return R;
|
|
3401
3401
|
},
|
|
3402
3402
|
/**
|
|
@@ -3435,13 +3435,13 @@ function Ae() {
|
|
|
3435
3435
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3436
3436
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3437
3437
|
*/
|
|
3438
|
-
execute: function(k, S,
|
|
3439
|
-
if (
|
|
3440
|
-
var L = m.create({ keySize: S +
|
|
3438
|
+
execute: function(k, S, F, A, R) {
|
|
3439
|
+
if (A || (A = d.random(64 / 8)), R)
|
|
3440
|
+
var L = m.create({ keySize: S + F, hasher: R }).compute(k, A);
|
|
3441
3441
|
else
|
|
3442
|
-
var L = m.create({ keySize: S +
|
|
3443
|
-
var G = d.create(L.words.slice(S),
|
|
3444
|
-
return L.sigBytes = S * 4, U.create({ key: L, iv: G, salt:
|
|
3442
|
+
var L = m.create({ keySize: S + F }).compute(k, A);
|
|
3443
|
+
var G = d.create(L.words.slice(S), F * 4);
|
|
3444
|
+
return L.sigBytes = S * 4, U.create({ key: L, iv: G, salt: A });
|
|
3445
3445
|
}
|
|
3446
3446
|
}, H = u.PasswordBasedCipher = T.extend({
|
|
3447
3447
|
/**
|
|
@@ -3469,11 +3469,11 @@ function Ae() {
|
|
|
3469
3469
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3470
3470
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3471
3471
|
*/
|
|
3472
|
-
encrypt: function(k, S,
|
|
3473
|
-
|
|
3474
|
-
var R =
|
|
3475
|
-
|
|
3476
|
-
var L = T.encrypt.call(this, k, S, R.key,
|
|
3472
|
+
encrypt: function(k, S, F, A) {
|
|
3473
|
+
A = this.cfg.extend(A);
|
|
3474
|
+
var R = A.kdf.execute(F, k.keySize, k.ivSize, A.salt, A.hasher);
|
|
3475
|
+
A.iv = R.iv;
|
|
3476
|
+
var L = T.encrypt.call(this, k, S, R.key, A);
|
|
3477
3477
|
return L.mixIn(R), L;
|
|
3478
3478
|
},
|
|
3479
3479
|
/**
|
|
@@ -3493,11 +3493,11 @@ function Ae() {
|
|
|
3493
3493
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3494
3494
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3495
3495
|
*/
|
|
3496
|
-
decrypt: function(k, S,
|
|
3497
|
-
|
|
3498
|
-
var R =
|
|
3499
|
-
|
|
3500
|
-
var L = T.decrypt.call(this, k, S, R.key,
|
|
3496
|
+
decrypt: function(k, S, F, A) {
|
|
3497
|
+
A = this.cfg.extend(A), S = this._parse(S, A.format);
|
|
3498
|
+
var R = A.kdf.execute(F, k.keySize, k.ivSize, S.salt, A.hasher);
|
|
3499
|
+
A.iv = R.iv;
|
|
3500
|
+
var L = T.decrypt.call(this, k, S, R.key, A);
|
|
3501
3501
|
return L;
|
|
3502
3502
|
}
|
|
3503
3503
|
});
|
|
@@ -3509,7 +3509,7 @@ var Ot = { exports: {} }, mo = Ot.exports, dn;
|
|
|
3509
3509
|
function uo() {
|
|
3510
3510
|
return dn || (dn = 1, (function(e, t) {
|
|
3511
3511
|
(function(a, n, s) {
|
|
3512
|
-
e.exports = n(
|
|
3512
|
+
e.exports = n(de(), Ae());
|
|
3513
3513
|
})(mo, function(a) {
|
|
3514
3514
|
return a.mode.CFB = (function() {
|
|
3515
3515
|
var n = a.lib.BlockCipherMode.extend();
|
|
@@ -3539,7 +3539,7 @@ var Bt = { exports: {} }, po = Bt.exports, cn;
|
|
|
3539
3539
|
function go() {
|
|
3540
3540
|
return cn || (cn = 1, (function(e, t) {
|
|
3541
3541
|
(function(a, n, s) {
|
|
3542
|
-
e.exports = n(
|
|
3542
|
+
e.exports = n(de(), Ae());
|
|
3543
3543
|
})(po, function(a) {
|
|
3544
3544
|
return a.mode.CTR = (function() {
|
|
3545
3545
|
var n = a.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
|
|
@@ -3561,7 +3561,7 @@ var Ht = { exports: {} }, co = Ht.exports, fn;
|
|
|
3561
3561
|
function fo() {
|
|
3562
3562
|
return fn || (fn = 1, (function(e, t) {
|
|
3563
3563
|
(function(a, n, s) {
|
|
3564
|
-
e.exports = n(
|
|
3564
|
+
e.exports = n(de(), Ae());
|
|
3565
3565
|
})(co, function(a) {
|
|
3566
3566
|
return a.mode.CTRGladman = (function() {
|
|
3567
3567
|
var n = a.lib.BlockCipherMode.extend();
|
|
@@ -3595,7 +3595,7 @@ var Wt = { exports: {} }, _o = Wt.exports, _n;
|
|
|
3595
3595
|
function yo() {
|
|
3596
3596
|
return _n || (_n = 1, (function(e, t) {
|
|
3597
3597
|
(function(a, n, s) {
|
|
3598
|
-
e.exports = n(
|
|
3598
|
+
e.exports = n(de(), Ae());
|
|
3599
3599
|
})(_o, function(a) {
|
|
3600
3600
|
return a.mode.OFB = (function() {
|
|
3601
3601
|
var n = a.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
|
|
@@ -3615,7 +3615,7 @@ var It = { exports: {} }, bo = It.exports, yn;
|
|
|
3615
3615
|
function Uo() {
|
|
3616
3616
|
return yn || (yn = 1, (function(e, t) {
|
|
3617
3617
|
(function(a, n, s) {
|
|
3618
|
-
e.exports = n(
|
|
3618
|
+
e.exports = n(de(), Ae());
|
|
3619
3619
|
})(bo, function(a) {
|
|
3620
3620
|
return a.mode.ECB = (function() {
|
|
3621
3621
|
var n = a.lib.BlockCipherMode.extend();
|
|
@@ -3636,7 +3636,7 @@ var zt = { exports: {} }, Co = zt.exports, bn;
|
|
|
3636
3636
|
function vo() {
|
|
3637
3637
|
return bn || (bn = 1, (function(e, t) {
|
|
3638
3638
|
(function(a, n, s) {
|
|
3639
|
-
e.exports = n(
|
|
3639
|
+
e.exports = n(de(), Ae());
|
|
3640
3640
|
})(Co, function(a) {
|
|
3641
3641
|
return a.pad.AnsiX923 = {
|
|
3642
3642
|
pad: function(n, s) {
|
|
@@ -3655,7 +3655,7 @@ var Vt = { exports: {} }, ho = Vt.exports, Un;
|
|
|
3655
3655
|
function To() {
|
|
3656
3656
|
return Un || (Un = 1, (function(e, t) {
|
|
3657
3657
|
(function(a, n, s) {
|
|
3658
|
-
e.exports = n(
|
|
3658
|
+
e.exports = n(de(), Ae());
|
|
3659
3659
|
})(ho, function(a) {
|
|
3660
3660
|
return a.pad.Iso10126 = {
|
|
3661
3661
|
pad: function(n, s) {
|
|
@@ -3674,7 +3674,7 @@ var Jt = { exports: {} }, ko = Jt.exports, Cn;
|
|
|
3674
3674
|
function xo() {
|
|
3675
3675
|
return Cn || (Cn = 1, (function(e, t) {
|
|
3676
3676
|
(function(a, n, s) {
|
|
3677
|
-
e.exports = n(
|
|
3677
|
+
e.exports = n(de(), Ae());
|
|
3678
3678
|
})(ko, function(a) {
|
|
3679
3679
|
return a.pad.Iso97971 = {
|
|
3680
3680
|
pad: function(n, s) {
|
|
@@ -3691,7 +3691,7 @@ var Zt = { exports: {} }, So = Zt.exports, vn;
|
|
|
3691
3691
|
function Eo() {
|
|
3692
3692
|
return vn || (vn = 1, (function(e, t) {
|
|
3693
3693
|
(function(a, n, s) {
|
|
3694
|
-
e.exports = n(
|
|
3694
|
+
e.exports = n(de(), Ae());
|
|
3695
3695
|
})(So, function(a) {
|
|
3696
3696
|
return a.pad.ZeroPadding = {
|
|
3697
3697
|
pad: function(n, s) {
|
|
@@ -3713,7 +3713,7 @@ var Kt = { exports: {} }, Do = Kt.exports, hn;
|
|
|
3713
3713
|
function No() {
|
|
3714
3714
|
return hn || (hn = 1, (function(e, t) {
|
|
3715
3715
|
(function(a, n, s) {
|
|
3716
|
-
e.exports = n(
|
|
3716
|
+
e.exports = n(de(), Ae());
|
|
3717
3717
|
})(Do, function(a) {
|
|
3718
3718
|
return a.pad.NoPadding = {
|
|
3719
3719
|
pad: function() {
|
|
@@ -3728,7 +3728,7 @@ var qt = { exports: {} }, Lo = qt.exports, Tn;
|
|
|
3728
3728
|
function Go() {
|
|
3729
3729
|
return Tn || (Tn = 1, (function(e, t) {
|
|
3730
3730
|
(function(a, n, s) {
|
|
3731
|
-
e.exports = n(
|
|
3731
|
+
e.exports = n(de(), Ae());
|
|
3732
3732
|
})(Lo, function(a) {
|
|
3733
3733
|
return (function(n) {
|
|
3734
3734
|
var s = a, u = s.lib, b = u.CipherParams, d = s.enc, l = d.Hex, i = s.format;
|
|
@@ -3775,7 +3775,7 @@ var $t = { exports: {} }, Mo = $t.exports, kn;
|
|
|
3775
3775
|
function Ro() {
|
|
3776
3776
|
return kn || (kn = 1, (function(e, t) {
|
|
3777
3777
|
(function(a, n, s) {
|
|
3778
|
-
e.exports = n(
|
|
3778
|
+
e.exports = n(de(), Ra(), Pa(), xa(), Ae());
|
|
3779
3779
|
})(Mo, function(a) {
|
|
3780
3780
|
return (function() {
|
|
3781
3781
|
var n = a, s = n.lib, u = s.BlockCipher, b = n.algo, d = [], l = [], i = [], r = [], o = [], m = [], g = [], p = [], f = [], y = [];
|
|
@@ -3797,13 +3797,13 @@ function Ro() {
|
|
|
3797
3797
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3798
3798
|
for (var C = this._keyPriorReset = this._key, v = C.words, T = C.sigBytes / 4, h = this._nRounds = T + 6, D = (h + 1) * 4, H = this._keySchedule = [], k = 0; k < D; k++)
|
|
3799
3799
|
k < T ? H[k] = v[k] : (U = H[k - 1], k % T ? T > 6 && k % T == 4 && (U = d[U >>> 24] << 24 | d[U >>> 16 & 255] << 16 | d[U >>> 8 & 255] << 8 | d[U & 255]) : (U = U << 8 | U >>> 24, U = d[U >>> 24] << 24 | d[U >>> 16 & 255] << 16 | d[U >>> 8 & 255] << 8 | d[U & 255], U ^= _[k / T | 0] << 24), H[k] = H[k - T] ^ U);
|
|
3800
|
-
for (var S = this._invKeySchedule = [],
|
|
3801
|
-
var k = D -
|
|
3802
|
-
if (
|
|
3800
|
+
for (var S = this._invKeySchedule = [], F = 0; F < D; F++) {
|
|
3801
|
+
var k = D - F;
|
|
3802
|
+
if (F % 4)
|
|
3803
3803
|
var U = H[k];
|
|
3804
3804
|
else
|
|
3805
3805
|
var U = H[k - 4];
|
|
3806
|
-
|
|
3806
|
+
F < 4 || k <= 4 ? S[F] = U : S[F] = g[d[U >>> 24]] ^ p[d[U >>> 16 & 255]] ^ f[d[U >>> 8 & 255]] ^ y[d[U & 255]];
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
3809
|
},
|
|
@@ -3817,12 +3817,12 @@ function Ro() {
|
|
|
3817
3817
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
3818
3818
|
},
|
|
3819
3819
|
_doCryptBlock: function(U, C, v, T, h, D, H, k) {
|
|
3820
|
-
for (var S = this._nRounds,
|
|
3821
|
-
var W = T[
|
|
3822
|
-
|
|
3820
|
+
for (var S = this._nRounds, F = U[C] ^ v[0], A = U[C + 1] ^ v[1], R = U[C + 2] ^ v[2], L = U[C + 3] ^ v[3], G = 4, I = 1; I < S; I++) {
|
|
3821
|
+
var W = T[F >>> 24] ^ h[A >>> 16 & 255] ^ D[R >>> 8 & 255] ^ H[L & 255] ^ v[G++], z = T[A >>> 24] ^ h[R >>> 16 & 255] ^ D[L >>> 8 & 255] ^ H[F & 255] ^ v[G++], B = T[R >>> 24] ^ h[L >>> 16 & 255] ^ D[F >>> 8 & 255] ^ H[A & 255] ^ v[G++], N = T[L >>> 24] ^ h[F >>> 16 & 255] ^ D[A >>> 8 & 255] ^ H[R & 255] ^ v[G++];
|
|
3822
|
+
F = W, A = z, R = B, L = N;
|
|
3823
3823
|
}
|
|
3824
|
-
var W = (k[
|
|
3825
|
-
U[C] = W, U[C + 1] =
|
|
3824
|
+
var W = (k[F >>> 24] << 24 | k[A >>> 16 & 255] << 16 | k[R >>> 8 & 255] << 8 | k[L & 255]) ^ v[G++], z = (k[A >>> 24] << 24 | k[R >>> 16 & 255] << 16 | k[L >>> 8 & 255] << 8 | k[F & 255]) ^ v[G++], B = (k[R >>> 24] << 24 | k[L >>> 16 & 255] << 16 | k[F >>> 8 & 255] << 8 | k[A & 255]) ^ v[G++], N = (k[L >>> 24] << 24 | k[F >>> 16 & 255] << 16 | k[A >>> 8 & 255] << 8 | k[R & 255]) ^ v[G++];
|
|
3825
|
+
U[C] = W, U[C + 1] = z, U[C + 2] = B, U[C + 3] = N;
|
|
3826
3826
|
},
|
|
3827
3827
|
keySize: 256 / 32
|
|
3828
3828
|
});
|
|
@@ -3835,7 +3835,7 @@ var jt = { exports: {} }, Po = jt.exports, xn;
|
|
|
3835
3835
|
function wo() {
|
|
3836
3836
|
return xn || (xn = 1, (function(e, t) {
|
|
3837
3837
|
(function(a, n, s) {
|
|
3838
|
-
e.exports = n(
|
|
3838
|
+
e.exports = n(de(), Ra(), Pa(), xa(), Ae());
|
|
3839
3839
|
})(Po, function(a) {
|
|
3840
3840
|
return (function() {
|
|
3841
3841
|
var n = a, s = n.lib, u = s.WordArray, b = s.BlockCipher, d = n.algo, l = [
|
|
@@ -4555,7 +4555,7 @@ var Qt = { exports: {} }, Fo = Qt.exports, Sn;
|
|
|
4555
4555
|
function Ao() {
|
|
4556
4556
|
return Sn || (Sn = 1, (function(e, t) {
|
|
4557
4557
|
(function(a, n, s) {
|
|
4558
|
-
e.exports = n(
|
|
4558
|
+
e.exports = n(de(), Ra(), Pa(), xa(), Ae());
|
|
4559
4559
|
})(Fo, function(a) {
|
|
4560
4560
|
return (function() {
|
|
4561
4561
|
var n = a, s = n.lib, u = s.StreamCipher, b = n.algo, d = b.RC4 = u.extend({
|
|
@@ -4609,7 +4609,7 @@ var Yt = { exports: {} }, Oo = Yt.exports, En;
|
|
|
4609
4609
|
function Bo() {
|
|
4610
4610
|
return En || (En = 1, (function(e, t) {
|
|
4611
4611
|
(function(a, n, s) {
|
|
4612
|
-
e.exports = n(
|
|
4612
|
+
e.exports = n(de(), Ra(), Pa(), xa(), Ae());
|
|
4613
4613
|
})(Oo, function(a) {
|
|
4614
4614
|
return (function() {
|
|
4615
4615
|
var n = a, s = n.lib, u = s.StreamCipher, b = n.algo, d = [], l = [], i = [], r = b.Rabbit = u.extend({
|
|
@@ -4675,7 +4675,7 @@ var Xt = { exports: {} }, Ho = Xt.exports, Dn;
|
|
|
4675
4675
|
function Wo() {
|
|
4676
4676
|
return Dn || (Dn = 1, (function(e, t) {
|
|
4677
4677
|
(function(a, n, s) {
|
|
4678
|
-
e.exports = n(
|
|
4678
|
+
e.exports = n(de(), Ra(), Pa(), xa(), Ae());
|
|
4679
4679
|
})(Ho, function(a) {
|
|
4680
4680
|
return (function() {
|
|
4681
4681
|
var n = a, s = n.lib, u = s.StreamCipher, b = n.algo, d = [], l = [], i = [], r = b.RabbitLegacy = u.extend({
|
|
@@ -4739,7 +4739,7 @@ var ei = { exports: {} }, Io = ei.exports, Nn;
|
|
|
4739
4739
|
function zo() {
|
|
4740
4740
|
return Nn || (Nn = 1, (function(e, t) {
|
|
4741
4741
|
(function(a, n, s) {
|
|
4742
|
-
e.exports = n(
|
|
4742
|
+
e.exports = n(de(), Ra(), Pa(), xa(), Ae());
|
|
4743
4743
|
})(Io, function(a) {
|
|
4744
4744
|
return (function() {
|
|
4745
4745
|
var n = a, s = n.lib, u = s.BlockCipher, b = n.algo;
|
|
@@ -5861,7 +5861,7 @@ var Vo = Ut.exports, Ln;
|
|
|
5861
5861
|
function Jo() {
|
|
5862
5862
|
return Ln || (Ln = 1, (function(e, t) {
|
|
5863
5863
|
(function(a, n, s) {
|
|
5864
|
-
e.exports = n(
|
|
5864
|
+
e.exports = n(de(), oi(), Hl(), Il(), Ra(), Jl(), Pa(), hr(), Ni(), jl(), Tr(), Xl(), ao(), io(), Li(), lo(), xa(), Ae(), uo(), go(), fo(), yo(), Uo(), vo(), To(), xo(), Eo(), No(), Go(), Ro(), wo(), Ao(), Bo(), Wo(), zo());
|
|
5865
5865
|
})(Vo, function(a) {
|
|
5866
5866
|
return a;
|
|
5867
5867
|
});
|
|
@@ -5886,8 +5886,8 @@ function Ko() {
|
|
|
5886
5886
|
return (L <= 0 ? "+" : "-") + U(I, 2, "0") + ":" + U(W, 2, "0");
|
|
5887
5887
|
}, m: function R(L, G) {
|
|
5888
5888
|
if (L.date() < G.date()) return -R(G, L);
|
|
5889
|
-
var I = 12 * (G.year() - L.year()) + (G.month() - L.month()), W = L.clone().add(I, o),
|
|
5890
|
-
return +(-(I + (G - W) / (
|
|
5889
|
+
var I = 12 * (G.year() - L.year()) + (G.month() - L.month()), W = L.clone().add(I, o), z = G - W < 0, B = L.clone().add(I + (z ? -1 : 1), o);
|
|
5890
|
+
return +(-(I + (G - W) / (z ? W - B : B - W)) || 0);
|
|
5891
5891
|
}, a: function(R) {
|
|
5892
5892
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
5893
5893
|
}, p: function(R) {
|
|
@@ -5897,15 +5897,15 @@ function Ko() {
|
|
|
5897
5897
|
} }, v = "en", T = {};
|
|
5898
5898
|
T[v] = c;
|
|
5899
5899
|
var h = "$isDayjsObject", D = function(R) {
|
|
5900
|
-
return R instanceof
|
|
5900
|
+
return R instanceof F || !(!R || !R[h]);
|
|
5901
5901
|
}, H = function R(L, G, I) {
|
|
5902
5902
|
var W;
|
|
5903
5903
|
if (!L) return v;
|
|
5904
5904
|
if (typeof L == "string") {
|
|
5905
|
-
var
|
|
5906
|
-
T[
|
|
5907
|
-
var
|
|
5908
|
-
if (!W &&
|
|
5905
|
+
var z = L.toLowerCase();
|
|
5906
|
+
T[z] && (W = z), G && (T[z] = G, W = z);
|
|
5907
|
+
var B = L.split("-");
|
|
5908
|
+
if (!W && B.length > 1) return R(B[0]);
|
|
5909
5909
|
} else {
|
|
5910
5910
|
var N = L.name;
|
|
5911
5911
|
T[N] = L, W = N;
|
|
@@ -5914,27 +5914,27 @@ function Ko() {
|
|
|
5914
5914
|
}, k = function(R, L) {
|
|
5915
5915
|
if (D(R)) return R.clone();
|
|
5916
5916
|
var G = typeof L == "object" ? L : {};
|
|
5917
|
-
return G.date = R, G.args = arguments, new
|
|
5917
|
+
return G.date = R, G.args = arguments, new F(G);
|
|
5918
5918
|
}, S = C;
|
|
5919
5919
|
S.l = H, S.i = D, S.w = function(R, L) {
|
|
5920
5920
|
return k(R, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
|
|
5921
5921
|
};
|
|
5922
|
-
var
|
|
5922
|
+
var F = (function() {
|
|
5923
5923
|
function R(G) {
|
|
5924
5924
|
this.$L = H(G.locale, null, !0), this.parse(G), this.$x = this.$x || G.x || {}, this[h] = !0;
|
|
5925
5925
|
}
|
|
5926
5926
|
var L = R.prototype;
|
|
5927
5927
|
return L.parse = function(G) {
|
|
5928
5928
|
this.$d = (function(I) {
|
|
5929
|
-
var W = I.date,
|
|
5929
|
+
var W = I.date, z = I.utc;
|
|
5930
5930
|
if (W === null) return /* @__PURE__ */ new Date(NaN);
|
|
5931
5931
|
if (S.u(W)) return /* @__PURE__ */ new Date();
|
|
5932
5932
|
if (W instanceof Date) return new Date(W);
|
|
5933
5933
|
if (typeof W == "string" && !/Z$/i.test(W)) {
|
|
5934
|
-
var
|
|
5935
|
-
if (
|
|
5936
|
-
var N =
|
|
5937
|
-
return
|
|
5934
|
+
var B = W.match(y);
|
|
5935
|
+
if (B) {
|
|
5936
|
+
var N = B[2] - 1 || 0, E = (B[7] || "0").substring(0, 3);
|
|
5937
|
+
return z ? new Date(Date.UTC(B[1], N, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, E)) : new Date(B[1], N, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, E);
|
|
5938
5938
|
}
|
|
5939
5939
|
}
|
|
5940
5940
|
return new Date(W);
|
|
@@ -5960,39 +5960,39 @@ function Ko() {
|
|
|
5960
5960
|
}, L.valueOf = function() {
|
|
5961
5961
|
return this.$d.getTime();
|
|
5962
5962
|
}, L.startOf = function(G, I) {
|
|
5963
|
-
var W = this,
|
|
5964
|
-
var Q = S.w(W.$u ? Date.UTC(W.$y, Z,
|
|
5965
|
-
return
|
|
5966
|
-
}, E = function(
|
|
5967
|
-
return S.w(W.toDate()[
|
|
5968
|
-
},
|
|
5969
|
-
switch (
|
|
5963
|
+
var W = this, z = !!S.u(I) || I, B = S.p(G), N = function(J, Z) {
|
|
5964
|
+
var Q = S.w(W.$u ? Date.UTC(W.$y, Z, J) : new Date(W.$y, Z, J), W);
|
|
5965
|
+
return z ? Q : Q.endOf(i);
|
|
5966
|
+
}, E = function(J, Z) {
|
|
5967
|
+
return S.w(W.toDate()[J].apply(W.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), W);
|
|
5968
|
+
}, w = this.$W, P = this.$M, ae = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
|
5969
|
+
switch (B) {
|
|
5970
5970
|
case g:
|
|
5971
|
-
return
|
|
5971
|
+
return z ? N(1, 0) : N(31, 11);
|
|
5972
5972
|
case o:
|
|
5973
|
-
return
|
|
5973
|
+
return z ? N(1, P) : N(0, P + 1);
|
|
5974
5974
|
case r:
|
|
5975
|
-
var le = this.$locale().weekStart || 0,
|
|
5976
|
-
return N(
|
|
5975
|
+
var le = this.$locale().weekStart || 0, O = (w < le ? w + 7 : w) - le;
|
|
5976
|
+
return N(z ? ae - O : ae + (6 - O), P);
|
|
5977
5977
|
case i:
|
|
5978
5978
|
case p:
|
|
5979
|
-
return E(
|
|
5979
|
+
return E(te + "Hours", 0);
|
|
5980
5980
|
case l:
|
|
5981
|
-
return E(
|
|
5981
|
+
return E(te + "Minutes", 1);
|
|
5982
5982
|
case d:
|
|
5983
|
-
return E(
|
|
5983
|
+
return E(te + "Seconds", 2);
|
|
5984
5984
|
case b:
|
|
5985
|
-
return E(
|
|
5985
|
+
return E(te + "Milliseconds", 3);
|
|
5986
5986
|
default:
|
|
5987
5987
|
return this.clone();
|
|
5988
5988
|
}
|
|
5989
5989
|
}, L.endOf = function(G) {
|
|
5990
5990
|
return this.startOf(G, !1);
|
|
5991
5991
|
}, L.$set = function(G, I) {
|
|
5992
|
-
var W,
|
|
5993
|
-
if (
|
|
5994
|
-
var
|
|
5995
|
-
|
|
5992
|
+
var W, z = S.p(G), B = "set" + (this.$u ? "UTC" : ""), N = (W = {}, W[i] = B + "Date", W[p] = B + "Date", W[o] = B + "Month", W[g] = B + "FullYear", W[l] = B + "Hours", W[d] = B + "Minutes", W[b] = B + "Seconds", W[u] = B + "Milliseconds", W)[z], E = z === i ? this.$D + (I - this.$W) : I;
|
|
5993
|
+
if (z === o || z === g) {
|
|
5994
|
+
var w = this.clone().set(p, 1);
|
|
5995
|
+
w.$d[N](E), w.init(), this.$d = w.set(p, Math.min(this.$D, w.daysInMonth())).$d;
|
|
5996
5996
|
} else N && this.$d[N](E);
|
|
5997
5997
|
return this.init(), this;
|
|
5998
5998
|
}, L.set = function(G, I) {
|
|
@@ -6000,46 +6000,46 @@ function Ko() {
|
|
|
6000
6000
|
}, L.get = function(G) {
|
|
6001
6001
|
return this[S.p(G)]();
|
|
6002
6002
|
}, L.add = function(G, I) {
|
|
6003
|
-
var W,
|
|
6003
|
+
var W, z = this;
|
|
6004
6004
|
G = Number(G);
|
|
6005
|
-
var
|
|
6006
|
-
var
|
|
6007
|
-
return S.w(
|
|
6005
|
+
var B = S.p(I), N = function(P) {
|
|
6006
|
+
var ae = k(z);
|
|
6007
|
+
return S.w(ae.date(ae.date() + Math.round(P * G)), z);
|
|
6008
6008
|
};
|
|
6009
|
-
if (
|
|
6010
|
-
if (
|
|
6011
|
-
if (
|
|
6012
|
-
if (
|
|
6013
|
-
var E = (W = {}, W[d] = n, W[l] = s, W[b] = a, W)[
|
|
6014
|
-
return S.w(
|
|
6009
|
+
if (B === o) return this.set(o, this.$M + G);
|
|
6010
|
+
if (B === g) return this.set(g, this.$y + G);
|
|
6011
|
+
if (B === i) return N(1);
|
|
6012
|
+
if (B === r) return N(7);
|
|
6013
|
+
var E = (W = {}, W[d] = n, W[l] = s, W[b] = a, W)[B] || 1, w = this.$d.getTime() + G * E;
|
|
6014
|
+
return S.w(w, this);
|
|
6015
6015
|
}, L.subtract = function(G, I) {
|
|
6016
6016
|
return this.add(-1 * G, I);
|
|
6017
6017
|
}, L.format = function(G) {
|
|
6018
6018
|
var I = this, W = this.$locale();
|
|
6019
6019
|
if (!this.isValid()) return W.invalidDate || f;
|
|
6020
|
-
var
|
|
6021
|
-
return Z && (Z[Q] || Z(I,
|
|
6022
|
-
},
|
|
6020
|
+
var z = G || "YYYY-MM-DDTHH:mm:ssZ", B = S.z(this), N = this.$H, E = this.$m, w = this.$M, P = W.weekdays, ae = W.months, te = W.meridiem, le = function(Z, Q, X, q) {
|
|
6021
|
+
return Z && (Z[Q] || Z(I, z)) || X[Q].slice(0, q);
|
|
6022
|
+
}, O = function(Z) {
|
|
6023
6023
|
return S.s(N % 12 || 12, Z, "0");
|
|
6024
|
-
},
|
|
6025
|
-
var
|
|
6026
|
-
return
|
|
6024
|
+
}, J = te || function(Z, Q, X) {
|
|
6025
|
+
var q = Z < 12 ? "AM" : "PM";
|
|
6026
|
+
return X ? q.toLowerCase() : q;
|
|
6027
6027
|
};
|
|
6028
|
-
return
|
|
6029
|
-
return Q || (function(
|
|
6030
|
-
switch (
|
|
6028
|
+
return z.replace(_, (function(Z, Q) {
|
|
6029
|
+
return Q || (function(X) {
|
|
6030
|
+
switch (X) {
|
|
6031
6031
|
case "YY":
|
|
6032
6032
|
return String(I.$y).slice(-2);
|
|
6033
6033
|
case "YYYY":
|
|
6034
6034
|
return S.s(I.$y, 4, "0");
|
|
6035
6035
|
case "M":
|
|
6036
|
-
return
|
|
6036
|
+
return w + 1;
|
|
6037
6037
|
case "MM":
|
|
6038
|
-
return S.s(
|
|
6038
|
+
return S.s(w + 1, 2, "0");
|
|
6039
6039
|
case "MMM":
|
|
6040
|
-
return le(W.monthsShort,
|
|
6040
|
+
return le(W.monthsShort, w, ae, 3);
|
|
6041
6041
|
case "MMMM":
|
|
6042
|
-
return le(
|
|
6042
|
+
return le(ae, w);
|
|
6043
6043
|
case "D":
|
|
6044
6044
|
return I.$D;
|
|
6045
6045
|
case "DD":
|
|
@@ -6047,23 +6047,23 @@ function Ko() {
|
|
|
6047
6047
|
case "d":
|
|
6048
6048
|
return String(I.$W);
|
|
6049
6049
|
case "dd":
|
|
6050
|
-
return le(W.weekdaysMin, I.$W,
|
|
6050
|
+
return le(W.weekdaysMin, I.$W, P, 2);
|
|
6051
6051
|
case "ddd":
|
|
6052
|
-
return le(W.weekdaysShort, I.$W,
|
|
6052
|
+
return le(W.weekdaysShort, I.$W, P, 3);
|
|
6053
6053
|
case "dddd":
|
|
6054
|
-
return
|
|
6054
|
+
return P[I.$W];
|
|
6055
6055
|
case "H":
|
|
6056
6056
|
return String(N);
|
|
6057
6057
|
case "HH":
|
|
6058
6058
|
return S.s(N, 2, "0");
|
|
6059
6059
|
case "h":
|
|
6060
|
-
return
|
|
6060
|
+
return O(1);
|
|
6061
6061
|
case "hh":
|
|
6062
|
-
return
|
|
6062
|
+
return O(2);
|
|
6063
6063
|
case "a":
|
|
6064
|
-
return
|
|
6064
|
+
return J(N, E, !0);
|
|
6065
6065
|
case "A":
|
|
6066
|
-
return
|
|
6066
|
+
return J(N, E, !1);
|
|
6067
6067
|
case "m":
|
|
6068
6068
|
return String(E);
|
|
6069
6069
|
case "mm":
|
|
@@ -6075,54 +6075,54 @@ function Ko() {
|
|
|
6075
6075
|
case "SSS":
|
|
6076
6076
|
return S.s(I.$ms, 3, "0");
|
|
6077
6077
|
case "Z":
|
|
6078
|
-
return
|
|
6078
|
+
return B;
|
|
6079
6079
|
}
|
|
6080
6080
|
return null;
|
|
6081
|
-
})(Z) ||
|
|
6081
|
+
})(Z) || B.replace(":", "");
|
|
6082
6082
|
}));
|
|
6083
6083
|
}, L.utcOffset = function() {
|
|
6084
6084
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6085
6085
|
}, L.diff = function(G, I, W) {
|
|
6086
|
-
var
|
|
6087
|
-
return S.m(
|
|
6086
|
+
var z, B = this, N = S.p(I), E = k(G), w = (E.utcOffset() - this.utcOffset()) * n, P = this - E, ae = function() {
|
|
6087
|
+
return S.m(B, E);
|
|
6088
6088
|
};
|
|
6089
6089
|
switch (N) {
|
|
6090
6090
|
case g:
|
|
6091
|
-
|
|
6091
|
+
z = ae() / 12;
|
|
6092
6092
|
break;
|
|
6093
6093
|
case o:
|
|
6094
|
-
|
|
6094
|
+
z = ae();
|
|
6095
6095
|
break;
|
|
6096
6096
|
case m:
|
|
6097
|
-
|
|
6097
|
+
z = ae() / 3;
|
|
6098
6098
|
break;
|
|
6099
6099
|
case r:
|
|
6100
|
-
|
|
6100
|
+
z = (P - w) / 6048e5;
|
|
6101
6101
|
break;
|
|
6102
6102
|
case i:
|
|
6103
|
-
|
|
6103
|
+
z = (P - w) / 864e5;
|
|
6104
6104
|
break;
|
|
6105
6105
|
case l:
|
|
6106
|
-
|
|
6106
|
+
z = P / s;
|
|
6107
6107
|
break;
|
|
6108
6108
|
case d:
|
|
6109
|
-
|
|
6109
|
+
z = P / n;
|
|
6110
6110
|
break;
|
|
6111
6111
|
case b:
|
|
6112
|
-
|
|
6112
|
+
z = P / a;
|
|
6113
6113
|
break;
|
|
6114
6114
|
default:
|
|
6115
|
-
|
|
6115
|
+
z = P;
|
|
6116
6116
|
}
|
|
6117
|
-
return W ?
|
|
6117
|
+
return W ? z : S.a(z);
|
|
6118
6118
|
}, L.daysInMonth = function() {
|
|
6119
6119
|
return this.endOf(o).$D;
|
|
6120
6120
|
}, L.$locale = function() {
|
|
6121
6121
|
return T[this.$L];
|
|
6122
6122
|
}, L.locale = function(G, I) {
|
|
6123
6123
|
if (!G) return this.$L;
|
|
6124
|
-
var W = this.clone(),
|
|
6125
|
-
return
|
|
6124
|
+
var W = this.clone(), z = H(G, I, !0);
|
|
6125
|
+
return z && (W.$L = z), W;
|
|
6126
6126
|
}, L.clone = function() {
|
|
6127
6127
|
return S.w(this.$d, this);
|
|
6128
6128
|
}, L.toDate = function() {
|
|
@@ -6134,13 +6134,13 @@ function Ko() {
|
|
|
6134
6134
|
}, L.toString = function() {
|
|
6135
6135
|
return this.$d.toUTCString();
|
|
6136
6136
|
}, R;
|
|
6137
|
-
})(),
|
|
6138
|
-
return k.prototype =
|
|
6139
|
-
|
|
6137
|
+
})(), A = F.prototype;
|
|
6138
|
+
return k.prototype = A, [["$ms", u], ["$s", b], ["$m", d], ["$H", l], ["$W", i], ["$M", o], ["$y", g], ["$D", p]].forEach((function(R) {
|
|
6139
|
+
A[R[1]] = function(L) {
|
|
6140
6140
|
return this.$g(L, R[0], R[1]);
|
|
6141
6141
|
};
|
|
6142
6142
|
})), k.extend = function(R, L) {
|
|
6143
|
-
return R.$i || (R(L,
|
|
6143
|
+
return R.$i || (R(L, F, k), R.$i = !0), k;
|
|
6144
6144
|
}, k.locale = H, k.isDayjs = D, k.unix = function(R) {
|
|
6145
6145
|
return k(1e3 * R);
|
|
6146
6146
|
}, k.en = T[v], k.Ls = T, k.p = {}, k;
|
|
@@ -6159,7 +6159,7 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6159
6159
|
padding: ha.pad.Pkcs7
|
|
6160
6160
|
}), u = a.toString(ha.enc.Base64), b = ha.enc.Base64.stringify(s.ciphertext);
|
|
6161
6161
|
return u + ":" + b;
|
|
6162
|
-
}, $o = (e) => e === "aes" ? Ja : (t) => Ta.MD5(t).toString(),
|
|
6162
|
+
}, $o = (e) => e === "aes" ? Ja : (t) => Ta.MD5(t).toString(), se = () => {
|
|
6163
6163
|
const {
|
|
6164
6164
|
client: e,
|
|
6165
6165
|
formDataClient: t,
|
|
@@ -6169,98 +6169,98 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6169
6169
|
*/
|
|
6170
6170
|
resetPasswordEncrypt: a
|
|
6171
6171
|
} = re(), n = M(
|
|
6172
|
-
async (
|
|
6173
|
-
const { mac_address:
|
|
6172
|
+
async (O) => {
|
|
6173
|
+
const { mac_address: J = "", app_version: Z = "", anydesk_id: Q = "" } = O;
|
|
6174
6174
|
return await e.post("/cash-register/login", {
|
|
6175
|
-
mac_address:
|
|
6175
|
+
mac_address: J,
|
|
6176
6176
|
app_version: Z,
|
|
6177
6177
|
anydesk_id: Q
|
|
6178
6178
|
});
|
|
6179
6179
|
},
|
|
6180
6180
|
[e]
|
|
6181
6181
|
), s = M(async () => e.get("/member/getMemberInfo"), [e]), u = M(async () => await e.get("/member/getGameList"), [e]), b = M(async () => await e.get("/member/getNowCurrencyExchange"), [e]), d = M(async () => await e.get("member/getFavoriteGame"), [e]), l = M(
|
|
6182
|
-
async (
|
|
6183
|
-
const { account:
|
|
6182
|
+
async (O) => {
|
|
6183
|
+
const { account: J, password: Z, trans_code: Q, two_fa_value: X } = O;
|
|
6184
6184
|
return await e.post("/login", {
|
|
6185
|
-
memId:
|
|
6185
|
+
memId: J,
|
|
6186
6186
|
passwd: Z,
|
|
6187
6187
|
trans_code: Q,
|
|
6188
|
-
two_fa_value:
|
|
6188
|
+
two_fa_value: X
|
|
6189
6189
|
});
|
|
6190
6190
|
},
|
|
6191
6191
|
[e]
|
|
6192
6192
|
), i = M(async () => await e.post("/logout"), [e]), r = M(
|
|
6193
|
-
async (
|
|
6194
|
-
const { gameUid:
|
|
6195
|
-
return await e.put(`/member/toggleFavoriteGame/${
|
|
6193
|
+
async (O) => {
|
|
6194
|
+
const { gameUid: J = "", status: Z = 0 } = O;
|
|
6195
|
+
return await e.put(`/member/toggleFavoriteGame/${J}`, {
|
|
6196
6196
|
status: Z
|
|
6197
6197
|
});
|
|
6198
6198
|
},
|
|
6199
6199
|
[e]
|
|
6200
6200
|
), o = M(async () => await e.get("/profit/ranking"), [e]), m = M(
|
|
6201
6201
|
async ({
|
|
6202
|
-
memberId:
|
|
6203
|
-
password:
|
|
6202
|
+
memberId: O,
|
|
6203
|
+
password: J,
|
|
6204
6204
|
unlimitCode: Z,
|
|
6205
6205
|
email: Q,
|
|
6206
|
-
inviteCode:
|
|
6207
|
-
currencyCode:
|
|
6208
|
-
validCode:
|
|
6209
|
-
nickName:
|
|
6206
|
+
inviteCode: X,
|
|
6207
|
+
currencyCode: q,
|
|
6208
|
+
validCode: pe,
|
|
6209
|
+
nickName: Ce
|
|
6210
6210
|
}) => {
|
|
6211
6211
|
const be = {
|
|
6212
|
-
memId:
|
|
6213
|
-
passwd: Ta.MD5(
|
|
6212
|
+
memId: O,
|
|
6213
|
+
passwd: Ta.MD5(J).toString(),
|
|
6214
6214
|
email: Q,
|
|
6215
|
-
currency_code:
|
|
6216
|
-
code:
|
|
6217
|
-
nick_name:
|
|
6215
|
+
currency_code: q,
|
|
6216
|
+
code: pe,
|
|
6217
|
+
nick_name: Ce
|
|
6218
6218
|
};
|
|
6219
|
-
return Q && (be.email = Q), Z && (be.unlimit_code = Z),
|
|
6219
|
+
return Q && (be.email = Q), Z && (be.unlimit_code = Z), X && (be.invite = X), e.post("/siginUp", be);
|
|
6220
6220
|
},
|
|
6221
6221
|
[e]
|
|
6222
6222
|
), g = M(
|
|
6223
|
-
async (
|
|
6224
|
-
const { name:
|
|
6223
|
+
async (O) => {
|
|
6224
|
+
const { name: J, birthday: Z, email: Q, mobile: X } = O;
|
|
6225
6225
|
return await e.post("/editMembetInfo", {
|
|
6226
|
-
name:
|
|
6226
|
+
name: J,
|
|
6227
6227
|
// 暱稱
|
|
6228
6228
|
birthday: Z,
|
|
6229
6229
|
// 生日 (格式:YYYY-MM-DD)
|
|
6230
6230
|
email: Q,
|
|
6231
6231
|
// 電子郵件
|
|
6232
|
-
mobile:
|
|
6232
|
+
mobile: X
|
|
6233
6233
|
// 手機號碼
|
|
6234
6234
|
});
|
|
6235
6235
|
},
|
|
6236
6236
|
[e]
|
|
6237
6237
|
), p = M(
|
|
6238
|
-
async (
|
|
6239
|
-
const { name:
|
|
6238
|
+
async (O) => {
|
|
6239
|
+
const { name: J, birthday: Z, email: Q, mobile: X } = O;
|
|
6240
6240
|
return await e.post("/editMemberInfo", {
|
|
6241
|
-
name:
|
|
6241
|
+
name: J,
|
|
6242
6242
|
// 暱稱
|
|
6243
6243
|
birthday: Z,
|
|
6244
6244
|
// 生日 (格式:YYYY-MM-DD)
|
|
6245
6245
|
email: Q,
|
|
6246
6246
|
// 電子郵件
|
|
6247
|
-
mobile:
|
|
6247
|
+
mobile: X
|
|
6248
6248
|
// 手機號碼
|
|
6249
6249
|
});
|
|
6250
6250
|
},
|
|
6251
6251
|
[e]
|
|
6252
6252
|
), f = M(
|
|
6253
|
-
async (
|
|
6254
|
-
const { oldPwd:
|
|
6253
|
+
async (O) => {
|
|
6254
|
+
const { oldPwd: J, newPwd: Z, encrypt: Q } = O, X = $o(Q || a || "md5");
|
|
6255
6255
|
return await e.post("/passwordReset", {
|
|
6256
|
-
old_pwd:
|
|
6257
|
-
new_pwd:
|
|
6256
|
+
old_pwd: X(J),
|
|
6257
|
+
new_pwd: X(Z)
|
|
6258
6258
|
});
|
|
6259
6259
|
},
|
|
6260
6260
|
[e, a]
|
|
6261
6261
|
), y = M(
|
|
6262
|
-
async (
|
|
6263
|
-
const { newPwd:
|
|
6262
|
+
async (O) => {
|
|
6263
|
+
const { newPwd: J } = O, Z = Ta.MD5(J).toString();
|
|
6264
6264
|
return await e.post("/member/initset", {
|
|
6265
6265
|
password: Z,
|
|
6266
6266
|
password_confirmation: Z
|
|
@@ -6268,38 +6268,38 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6268
6268
|
},
|
|
6269
6269
|
[e]
|
|
6270
6270
|
), _ = M(
|
|
6271
|
-
async (
|
|
6272
|
-
const { newPwd:
|
|
6271
|
+
async (O) => {
|
|
6272
|
+
const { newPwd: J, confirmNewPwd: Z } = O;
|
|
6273
6273
|
return await e.post("/setWithdrawPassword", {
|
|
6274
|
-
newPassword: Ja(
|
|
6274
|
+
newPassword: Ja(J),
|
|
6275
6275
|
confirmPassword: Ja(Z)
|
|
6276
6276
|
});
|
|
6277
6277
|
},
|
|
6278
6278
|
[e]
|
|
6279
6279
|
), c = M(
|
|
6280
|
-
async (
|
|
6281
|
-
const { oldPwd:
|
|
6280
|
+
async (O) => {
|
|
6281
|
+
const { oldPwd: J, newPwd: Z } = O;
|
|
6282
6282
|
return await e.post("/withdrawPasswordReset", {
|
|
6283
|
-
old_pwd: Ja(
|
|
6283
|
+
old_pwd: Ja(J),
|
|
6284
6284
|
new_pwd: Ja(Z)
|
|
6285
6285
|
});
|
|
6286
6286
|
},
|
|
6287
6287
|
[e]
|
|
6288
6288
|
), U = M(
|
|
6289
|
-
async (
|
|
6290
|
-
const { mobile:
|
|
6289
|
+
async (O) => {
|
|
6290
|
+
const { mobile: J, verification_code: Z } = O;
|
|
6291
6291
|
return await e.post("/withdrawPasswordRenew", {
|
|
6292
|
-
mobile:
|
|
6292
|
+
mobile: J,
|
|
6293
6293
|
verification_code: Z
|
|
6294
6294
|
});
|
|
6295
6295
|
},
|
|
6296
6296
|
[e]
|
|
6297
6297
|
), C = M(
|
|
6298
|
-
async ({ paramsData:
|
|
6299
|
-
const { start_time:
|
|
6298
|
+
async ({ paramsData: O }) => {
|
|
6299
|
+
const { start_time: J, end_time: Z, limit: Q = 25 } = O || {};
|
|
6300
6300
|
return await e.get("/report/totalprofit", {
|
|
6301
6301
|
params: {
|
|
6302
|
-
str_date: `${we(
|
|
6302
|
+
str_date: `${we(J).format("YYYY-MM-DD")} 12:00:00`,
|
|
6303
6303
|
end_date: `${we(Z).format("YYYY-MM-DD")} 11:59:59`,
|
|
6304
6304
|
limit: Q
|
|
6305
6305
|
}
|
|
@@ -6307,187 +6307,187 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6307
6307
|
},
|
|
6308
6308
|
[e]
|
|
6309
6309
|
), v = M(
|
|
6310
|
-
async (
|
|
6311
|
-
const { platform:
|
|
6310
|
+
async (O) => {
|
|
6311
|
+
const { platform: J } = O;
|
|
6312
6312
|
return await e.post("/member/all-in-la", {
|
|
6313
|
-
platform:
|
|
6313
|
+
platform: J
|
|
6314
6314
|
});
|
|
6315
6315
|
},
|
|
6316
6316
|
[e]
|
|
6317
6317
|
), T = M(async () => await e.get("/member/checkRestrictedWagering"), [e]), h = M(
|
|
6318
|
-
async (
|
|
6319
|
-
const { memId:
|
|
6318
|
+
async (O) => {
|
|
6319
|
+
const { memId: J, point: Z, currency: Q, password: X } = O;
|
|
6320
6320
|
return await e.post("/pointsTransaction", {
|
|
6321
|
-
to_memId:
|
|
6321
|
+
to_memId: J,
|
|
6322
6322
|
point: Z,
|
|
6323
6323
|
currency: Q,
|
|
6324
|
-
password: Ja(
|
|
6324
|
+
password: Ja(X)
|
|
6325
6325
|
});
|
|
6326
6326
|
},
|
|
6327
6327
|
[e]
|
|
6328
6328
|
), D = M(
|
|
6329
|
-
async ({ formData:
|
|
6329
|
+
async ({ formData: O }) => {
|
|
6330
6330
|
const {
|
|
6331
|
-
bank_name:
|
|
6331
|
+
bank_name: J,
|
|
6332
6332
|
bank_account_name: Z,
|
|
6333
6333
|
bank_branch_name: Q,
|
|
6334
|
-
bank_account:
|
|
6335
|
-
bank_card_number:
|
|
6336
|
-
id_card:
|
|
6337
|
-
id_pic:
|
|
6338
|
-
} =
|
|
6339
|
-
return await t.post("/bindBankAccount",
|
|
6334
|
+
bank_account: X,
|
|
6335
|
+
bank_card_number: q,
|
|
6336
|
+
id_card: pe,
|
|
6337
|
+
id_pic: Ce
|
|
6338
|
+
} = O;
|
|
6339
|
+
return await t.post("/bindBankAccount", O);
|
|
6340
6340
|
},
|
|
6341
6341
|
[t]
|
|
6342
6342
|
), H = M(
|
|
6343
|
-
async (
|
|
6344
|
-
const { point_transfer:
|
|
6343
|
+
async (O) => {
|
|
6344
|
+
const { point_transfer: J } = O;
|
|
6345
6345
|
return await e.post("/cash-register/clear", {
|
|
6346
|
-
point_transfer:
|
|
6346
|
+
point_transfer: J
|
|
6347
6347
|
});
|
|
6348
6348
|
},
|
|
6349
6349
|
[e]
|
|
6350
6350
|
), k = M(
|
|
6351
|
-
async (
|
|
6352
|
-
const { trans_code:
|
|
6351
|
+
async (O) => {
|
|
6352
|
+
const { trans_code: J, line_id: Z, invite: Q, line_name: X } = O;
|
|
6353
6353
|
return await e.post("/goLine", {
|
|
6354
|
-
trans_code:
|
|
6354
|
+
trans_code: J,
|
|
6355
6355
|
line_id: Z,
|
|
6356
6356
|
invite: Q,
|
|
6357
|
-
line_name:
|
|
6357
|
+
line_name: X
|
|
6358
6358
|
});
|
|
6359
6359
|
},
|
|
6360
6360
|
[e]
|
|
6361
6361
|
), S = M(
|
|
6362
|
-
async (
|
|
6363
|
-
const { trans_code:
|
|
6362
|
+
async (O) => {
|
|
6363
|
+
const { trans_code: J, line_id: Z, line_name: Q } = O;
|
|
6364
6364
|
return await e.post("/login/line", {
|
|
6365
|
-
trans_code:
|
|
6365
|
+
trans_code: J,
|
|
6366
6366
|
line_id: Z,
|
|
6367
6367
|
line_name: Q
|
|
6368
6368
|
});
|
|
6369
6369
|
},
|
|
6370
6370
|
[e]
|
|
6371
|
-
),
|
|
6372
|
-
async (
|
|
6373
|
-
const { mac_address:
|
|
6374
|
-
return await e.get(`/machine-login-code/${
|
|
6371
|
+
), F = M(
|
|
6372
|
+
async (O) => {
|
|
6373
|
+
const { mac_address: J } = O;
|
|
6374
|
+
return await e.get(`/machine-login-code/${J}`);
|
|
6375
6375
|
},
|
|
6376
6376
|
[e]
|
|
6377
|
-
),
|
|
6378
|
-
async (
|
|
6379
|
-
const { member_info_uid:
|
|
6380
|
-
return await e.post(`/member/transfer/${
|
|
6377
|
+
), A = M(
|
|
6378
|
+
async (O) => {
|
|
6379
|
+
const { member_info_uid: J, point: Z, currency: Q, withdraw_password: X } = O;
|
|
6380
|
+
return await e.post(`/member/transfer/${J}`, {
|
|
6381
6381
|
point: Z,
|
|
6382
6382
|
currency: Q,
|
|
6383
|
-
withdraw_password:
|
|
6383
|
+
withdraw_password: X
|
|
6384
6384
|
});
|
|
6385
6385
|
},
|
|
6386
6386
|
[e]
|
|
6387
6387
|
), R = M(
|
|
6388
|
-
async (
|
|
6389
|
-
const { member_info_uid:
|
|
6390
|
-
return await e.get(`/member/transfer/${
|
|
6388
|
+
async (O) => {
|
|
6389
|
+
const { member_info_uid: J, point: Z, currency: Q, withdraw_password: X } = O;
|
|
6390
|
+
return await e.get(`/member/transfer/${J}`, {
|
|
6391
6391
|
params: {
|
|
6392
6392
|
point: Z,
|
|
6393
6393
|
currency: Q,
|
|
6394
|
-
withdraw_password:
|
|
6394
|
+
withdraw_password: X
|
|
6395
6395
|
}
|
|
6396
6396
|
});
|
|
6397
6397
|
},
|
|
6398
6398
|
[e]
|
|
6399
6399
|
), L = M(
|
|
6400
|
-
async (
|
|
6401
|
-
const { mobile:
|
|
6400
|
+
async (O) => {
|
|
6401
|
+
const { mobile: J, verifyCode: Z } = O;
|
|
6402
6402
|
return await e.post("/sms/verifyValidationCode", {
|
|
6403
|
-
mobile:
|
|
6403
|
+
mobile: J,
|
|
6404
6404
|
inputCode: Z
|
|
6405
6405
|
});
|
|
6406
6406
|
},
|
|
6407
6407
|
[e]
|
|
6408
6408
|
), G = M(
|
|
6409
|
-
async (
|
|
6410
|
-
const { mobile:
|
|
6409
|
+
async (O) => {
|
|
6410
|
+
const { mobile: J, verifyCode: Z, snCode: Q, invoiceType: X, invoiceCode: q } = O;
|
|
6411
6411
|
return await e.post("/goMobile", {
|
|
6412
|
-
mobile:
|
|
6412
|
+
mobile: J,
|
|
6413
6413
|
verification_code: Z,
|
|
6414
6414
|
sn_code: Q,
|
|
6415
|
-
invoice_type:
|
|
6416
|
-
invoice_code:
|
|
6415
|
+
invoice_type: X,
|
|
6416
|
+
invoice_code: q
|
|
6417
6417
|
});
|
|
6418
6418
|
},
|
|
6419
6419
|
[e]
|
|
6420
6420
|
), I = M(
|
|
6421
|
-
async (
|
|
6422
|
-
const { mobile:
|
|
6421
|
+
async (O) => {
|
|
6422
|
+
const { mobile: J, password: Z, verifyCode: Q, invite: X, invoiceType: q, invoiceCode: pe } = O;
|
|
6423
6423
|
return await e.post("/goMobileByInvite", {
|
|
6424
|
-
mobile:
|
|
6424
|
+
mobile: J,
|
|
6425
6425
|
passwd: Ta.MD5(Z).toString(),
|
|
6426
6426
|
verification_code: Q,
|
|
6427
|
-
invite:
|
|
6428
|
-
invoice_type:
|
|
6429
|
-
invoice_code:
|
|
6427
|
+
invite: X,
|
|
6428
|
+
invoice_type: q,
|
|
6429
|
+
invoice_code: pe
|
|
6430
6430
|
});
|
|
6431
6431
|
},
|
|
6432
6432
|
[e]
|
|
6433
6433
|
), W = M(
|
|
6434
|
-
async (
|
|
6435
|
-
const { mobile:
|
|
6434
|
+
async (O) => {
|
|
6435
|
+
const { mobile: J, verifyCode: Z, password: Q } = O;
|
|
6436
6436
|
return await e.post("/forgot-password", {
|
|
6437
|
-
mobile:
|
|
6437
|
+
mobile: J,
|
|
6438
6438
|
verification_code: Z,
|
|
6439
6439
|
passwd: Ta.MD5(Q).toString()
|
|
6440
6440
|
});
|
|
6441
6441
|
},
|
|
6442
6442
|
[e]
|
|
6443
|
-
),
|
|
6444
|
-
async (
|
|
6445
|
-
const { mobile:
|
|
6443
|
+
), z = M(
|
|
6444
|
+
async (O) => {
|
|
6445
|
+
const { mobile: J, password: Z, invite: Q, invoiceType: X, invoiceCode: q } = O;
|
|
6446
6446
|
return await e.post("/goMobileByPassword", {
|
|
6447
|
-
mobile:
|
|
6447
|
+
mobile: J,
|
|
6448
6448
|
password: Ta.MD5(Z).toString(),
|
|
6449
6449
|
invite: Q,
|
|
6450
|
-
invoice_type:
|
|
6451
|
-
invoice_code:
|
|
6450
|
+
invoice_type: X,
|
|
6451
|
+
invoice_code: q
|
|
6452
6452
|
});
|
|
6453
6453
|
},
|
|
6454
6454
|
[e]
|
|
6455
|
-
),
|
|
6456
|
-
async (
|
|
6455
|
+
), B = M(
|
|
6456
|
+
async (O) => await e.get(`/checkMobile/${O}`),
|
|
6457
6457
|
[e]
|
|
6458
6458
|
), N = M(
|
|
6459
|
-
async (
|
|
6460
|
-
const { mobile:
|
|
6459
|
+
async (O) => {
|
|
6460
|
+
const { mobile: J, invite: Z } = O;
|
|
6461
6461
|
return await e.get("/sms/getValidCode", {
|
|
6462
6462
|
params: {
|
|
6463
|
-
mobile:
|
|
6463
|
+
mobile: J,
|
|
6464
6464
|
invite: Z
|
|
6465
6465
|
}
|
|
6466
6466
|
});
|
|
6467
6467
|
},
|
|
6468
6468
|
[e]
|
|
6469
6469
|
), E = M(
|
|
6470
|
-
async (
|
|
6471
|
-
const { bindType:
|
|
6470
|
+
async (O) => {
|
|
6471
|
+
const { bindType: J, bindId: Z } = O;
|
|
6472
6472
|
return await e.post("/member/bindThirdPartyAccount", {
|
|
6473
|
-
bind_type:
|
|
6473
|
+
bind_type: J,
|
|
6474
6474
|
bind_id: Z
|
|
6475
6475
|
});
|
|
6476
6476
|
},
|
|
6477
6477
|
[e]
|
|
6478
|
-
),
|
|
6479
|
-
async (
|
|
6478
|
+
), w = M(async () => await e.get("/jackpot", {}), [e]), P = M(
|
|
6479
|
+
async (O) => await e.get("/total-bet-ranking"),
|
|
6480
6480
|
[e]
|
|
6481
|
-
),
|
|
6482
|
-
async (
|
|
6483
|
-
const { avatarId:
|
|
6481
|
+
), ae = M(async () => await e.get("/member/avatar/list"), [e]), te = M(
|
|
6482
|
+
async (O) => {
|
|
6483
|
+
const { avatarId: J } = O;
|
|
6484
6484
|
return await e.post("/member/avatar/change", {
|
|
6485
|
-
avatar_file_name:
|
|
6485
|
+
avatar_file_name: J
|
|
6486
6486
|
});
|
|
6487
6487
|
},
|
|
6488
6488
|
[e]
|
|
6489
6489
|
), le = M(
|
|
6490
|
-
async ({ formData:
|
|
6490
|
+
async ({ formData: O }) => await e.post("/cash-register/createMachine", O),
|
|
6491
6491
|
[e]
|
|
6492
6492
|
);
|
|
6493
6493
|
return {
|
|
@@ -6517,8 +6517,8 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6517
6517
|
abandonPointsApi: H,
|
|
6518
6518
|
lineLoginApi: k,
|
|
6519
6519
|
lineLogin2Api: S,
|
|
6520
|
-
getMachineLoginCodeApi:
|
|
6521
|
-
memberTransferApi:
|
|
6520
|
+
getMachineLoginCodeApi: F,
|
|
6521
|
+
memberTransferApi: A,
|
|
6522
6522
|
checkMemberTransferApi: R,
|
|
6523
6523
|
mobileLoginApi: L,
|
|
6524
6524
|
sendMobileVerifyCodeApi: N,
|
|
@@ -6526,16 +6526,16 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6526
6526
|
bindAccountApi: E,
|
|
6527
6527
|
mobileRegisterApi: I,
|
|
6528
6528
|
forgotPasswordApi: W,
|
|
6529
|
-
mobilePasswordApi:
|
|
6530
|
-
checkMobileApi:
|
|
6529
|
+
mobilePasswordApi: z,
|
|
6530
|
+
checkMobileApi: B,
|
|
6531
6531
|
verifyResetActionApi: U,
|
|
6532
|
-
getJackpotApi:
|
|
6533
|
-
getBetRankingApi:
|
|
6534
|
-
getUserAvatarListApi:
|
|
6535
|
-
updateUserAvatarApi:
|
|
6532
|
+
getJackpotApi: w,
|
|
6533
|
+
getBetRankingApi: P,
|
|
6534
|
+
getUserAvatarListApi: ae,
|
|
6535
|
+
updateUserAvatarApi: te
|
|
6536
6536
|
};
|
|
6537
6537
|
}, Tu = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
6538
|
-
const { userCurrencyExchangeApi: a } =
|
|
6538
|
+
const { userCurrencyExchangeApi: a } = se(), { getToken: n } = re(), { enabled: s, ...u } = t, d = !!n?.() && (s ? s.every((l) => l) : !0);
|
|
6539
6539
|
return sr({
|
|
6540
6540
|
queries: [
|
|
6541
6541
|
{
|
|
@@ -6553,7 +6553,7 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6553
6553
|
trigger: t = [],
|
|
6554
6554
|
enabled: a = !0
|
|
6555
6555
|
} = {}) => {
|
|
6556
|
-
const { getToken: n } = re(), s = n?.(), { userInfoApi: u } =
|
|
6556
|
+
const { getToken: n } = re(), s = n?.(), { userInfoApi: u } = se();
|
|
6557
6557
|
return sr({
|
|
6558
6558
|
queries: [
|
|
6559
6559
|
{
|
|
@@ -6570,7 +6570,7 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6570
6570
|
userFavoriteGameApi: a,
|
|
6571
6571
|
userGameListApi: n,
|
|
6572
6572
|
userCurrencyExchangeApi: s
|
|
6573
|
-
} =
|
|
6573
|
+
} = se(), u = Y({
|
|
6574
6574
|
queryKey: ["getMemInfo"],
|
|
6575
6575
|
queryFn: async () => t(),
|
|
6576
6576
|
enabled: e
|
|
@@ -6594,7 +6594,7 @@ const we = /* @__PURE__ */ Di(qo), Ja = (e) => {
|
|
|
6594
6594
|
l
|
|
6595
6595
|
];
|
|
6596
6596
|
}, Gi = () => {
|
|
6597
|
-
const { client: e, lng: t } = re(), a =
|
|
6597
|
+
const { client: e, lng: t } = re(), a = Je(t || "tw"), n = M(
|
|
6598
6598
|
async (b) => {
|
|
6599
6599
|
const {
|
|
6600
6600
|
gameUid: d = "",
|
|
@@ -6760,7 +6760,7 @@ function Ui(e, t) {
|
|
|
6760
6760
|
}
|
|
6761
6761
|
);
|
|
6762
6762
|
}
|
|
6763
|
-
var Ci = Ui(Yo, { path: "/" }), gi = {},
|
|
6763
|
+
var Ci = Ui(Yo, { path: "/" }), gi = {}, qe = {}, di = {}, Mn;
|
|
6764
6764
|
function sa() {
|
|
6765
6765
|
return Mn || (Mn = 1, (function(e) {
|
|
6766
6766
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
|
@@ -7241,9 +7241,9 @@ function is() {
|
|
|
7241
7241
|
}
|
|
7242
7242
|
var zn;
|
|
7243
7243
|
function Fi() {
|
|
7244
|
-
if (zn) return
|
|
7244
|
+
if (zn) return qe;
|
|
7245
7245
|
zn = 1;
|
|
7246
|
-
var e =
|
|
7246
|
+
var e = qe && qe.__assign || function() {
|
|
7247
7247
|
return e = Object.assign || function(m) {
|
|
7248
7248
|
for (var g, p = 1, f = arguments.length; p < f; p++) {
|
|
7249
7249
|
g = arguments[p];
|
|
@@ -7251,7 +7251,7 @@ function Fi() {
|
|
|
7251
7251
|
}
|
|
7252
7252
|
return m;
|
|
7253
7253
|
}, e.apply(this, arguments);
|
|
7254
|
-
}, t =
|
|
7254
|
+
}, t = qe && qe.__awaiter || function(m, g, p, f) {
|
|
7255
7255
|
function y(_) {
|
|
7256
7256
|
return _ instanceof p ? _ : new p(function(c) {
|
|
7257
7257
|
c(_);
|
|
@@ -7277,7 +7277,7 @@ function Fi() {
|
|
|
7277
7277
|
}
|
|
7278
7278
|
v((f = f.apply(m, g || [])).next());
|
|
7279
7279
|
});
|
|
7280
|
-
}, a =
|
|
7280
|
+
}, a = qe && qe.__generator || function(m, g) {
|
|
7281
7281
|
var p = { label: 0, sent: function() {
|
|
7282
7282
|
if (_[0] & 1) throw _[1];
|
|
7283
7283
|
return _[1];
|
|
@@ -7336,10 +7336,10 @@ function Fi() {
|
|
|
7336
7336
|
if (v[0] & 5) throw v[1];
|
|
7337
7337
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
7338
7338
|
}
|
|
7339
|
-
}, n =
|
|
7339
|
+
}, n = qe && qe.__importDefault || function(m) {
|
|
7340
7340
|
return m && m.__esModule ? m : { default: m };
|
|
7341
7341
|
};
|
|
7342
|
-
Object.defineProperty(
|
|
7342
|
+
Object.defineProperty(qe, "__esModule", { value: !0 }), qe.useWebSocket = void 0;
|
|
7343
7343
|
var s = ve, u = _l, b = sa(), d = as(), l = ts(), i = n(is()), r = wi(), o = function(m, g, p) {
|
|
7344
7344
|
g === void 0 && (g = b.DEFAULT_OPTIONS), p === void 0 && (p = !0);
|
|
7345
7345
|
var f = (0, s.useState)(null), y = f[0], _ = f[1], c = (0, s.useState)({}), U = c[0], C = c[1], v = (0, s.useMemo)(function() {
|
|
@@ -7351,49 +7351,49 @@ function Fi() {
|
|
|
7351
7351
|
}
|
|
7352
7352
|
return null;
|
|
7353
7353
|
}, [y, g.disableJson]), T = (0, s.useRef)(null), h = (0, s.useRef)(null), D = (0, s.useRef)(function() {
|
|
7354
|
-
}), H = (0, s.useRef)(0), k = (0, s.useRef)(Date.now()), S = (0, s.useRef)([]),
|
|
7355
|
-
|
|
7356
|
-
var R = T.current && U[T.current] !== void 0 ? U[T.current] : m !== null && p === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, L = g.queryParams ? JSON.stringify(g.queryParams) : null, G = (0, s.useCallback)(function(
|
|
7354
|
+
}), H = (0, s.useRef)(0), k = (0, s.useRef)(Date.now()), S = (0, s.useRef)([]), F = (0, s.useRef)(null), A = (0, s.useRef)(g);
|
|
7355
|
+
A.current = g;
|
|
7356
|
+
var R = T.current && U[T.current] !== void 0 ? U[T.current] : m !== null && p === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, L = g.queryParams ? JSON.stringify(g.queryParams) : null, G = (0, s.useCallback)(function(z, B) {
|
|
7357
7357
|
var N;
|
|
7358
|
-
if (
|
|
7358
|
+
if (B === void 0 && (B = !0), b.isEventSourceSupported && h.current instanceof EventSource) {
|
|
7359
7359
|
console.warn("Unable to send a message from an eventSource");
|
|
7360
7360
|
return;
|
|
7361
7361
|
}
|
|
7362
|
-
((N = h.current) === null || N === void 0 ? void 0 : N.readyState) === b.ReadyState.OPEN ? ((0, r.assertIsWebSocket)(h.current,
|
|
7363
|
-
}, []), I = (0, s.useCallback)(function(
|
|
7364
|
-
|
|
7362
|
+
((N = h.current) === null || N === void 0 ? void 0 : N.readyState) === b.ReadyState.OPEN ? ((0, r.assertIsWebSocket)(h.current, A.current.skipAssert), h.current.send(z)) : B && S.current.push(z);
|
|
7363
|
+
}, []), I = (0, s.useCallback)(function(z, B) {
|
|
7364
|
+
B === void 0 && (B = !0), G(JSON.stringify(z), B);
|
|
7365
7365
|
}, [G]), W = (0, s.useCallback)(function() {
|
|
7366
|
-
return
|
|
7366
|
+
return A.current.share !== !0 || b.isEventSourceSupported && h.current instanceof EventSource ? h.current : (F.current === null && h.current && ((0, r.assertIsWebSocket)(h.current, A.current.skipAssert), F.current = (0, i.default)(h.current, D)), F.current);
|
|
7367
7367
|
}, []);
|
|
7368
7368
|
return (0, s.useEffect)(function() {
|
|
7369
7369
|
if (m !== null && p === !0) {
|
|
7370
|
-
var
|
|
7370
|
+
var z, B = !1, N = !0, E = function() {
|
|
7371
7371
|
return t(void 0, void 0, void 0, function() {
|
|
7372
|
-
var
|
|
7373
|
-
return a(this, function(
|
|
7374
|
-
switch (
|
|
7372
|
+
var w, P, ae;
|
|
7373
|
+
return a(this, function(te) {
|
|
7374
|
+
switch (te.label) {
|
|
7375
7375
|
case 0:
|
|
7376
|
-
return
|
|
7376
|
+
return w = T, [4, (0, l.getUrl)(m, A)];
|
|
7377
7377
|
case 1:
|
|
7378
|
-
return
|
|
7378
|
+
return w.current = te.sent(), T.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), T.current = "ABORTED", (0, u.flushSync)(function() {
|
|
7379
7379
|
return C(function(le) {
|
|
7380
7380
|
return e(e({}, le), { ABORTED: b.ReadyState.CLOSED });
|
|
7381
7381
|
});
|
|
7382
7382
|
}), [
|
|
7383
7383
|
2
|
|
7384
7384
|
/*return*/
|
|
7385
|
-
]) : (
|
|
7386
|
-
|
|
7385
|
+
]) : (P = function(le) {
|
|
7386
|
+
B || (0, u.flushSync)(function() {
|
|
7387
7387
|
return _(le);
|
|
7388
7388
|
});
|
|
7389
|
-
},
|
|
7390
|
-
|
|
7391
|
-
return C(function(
|
|
7392
|
-
var
|
|
7393
|
-
return e(e({},
|
|
7389
|
+
}, ae = function(le) {
|
|
7390
|
+
B || (0, u.flushSync)(function() {
|
|
7391
|
+
return C(function(O) {
|
|
7392
|
+
var J;
|
|
7393
|
+
return e(e({}, O), T.current && (J = {}, J[T.current] = le, J));
|
|
7394
7394
|
});
|
|
7395
7395
|
});
|
|
7396
|
-
}, N && (
|
|
7396
|
+
}, N && (z = (0, d.createOrJoinSocket)(h, T.current, ae, A, P, D, H, k, G)), [
|
|
7397
7397
|
2
|
|
7398
7398
|
/*return*/
|
|
7399
7399
|
]);
|
|
@@ -7402,17 +7402,17 @@ function Fi() {
|
|
|
7402
7402
|
});
|
|
7403
7403
|
};
|
|
7404
7404
|
return D.current = function() {
|
|
7405
|
-
|
|
7405
|
+
B || (F.current && (F.current = null), z?.(), E());
|
|
7406
7406
|
}, E(), function() {
|
|
7407
|
-
|
|
7407
|
+
B = !0, N = !1, F.current && (F.current = null), z?.(), _(null);
|
|
7408
7408
|
};
|
|
7409
|
-
} else (m === null || p === !1) && (H.current = 0, C(function(
|
|
7410
|
-
var
|
|
7411
|
-
return e(e({},
|
|
7409
|
+
} else (m === null || p === !1) && (H.current = 0, C(function(w) {
|
|
7410
|
+
var P;
|
|
7411
|
+
return e(e({}, w), T.current && (P = {}, P[T.current] = b.ReadyState.CLOSED, P));
|
|
7412
7412
|
}));
|
|
7413
7413
|
}, [m, p, L, G]), (0, s.useEffect)(function() {
|
|
7414
|
-
R === b.ReadyState.OPEN && S.current.splice(0).forEach(function(
|
|
7415
|
-
G(
|
|
7414
|
+
R === b.ReadyState.OPEN && S.current.splice(0).forEach(function(z) {
|
|
7415
|
+
G(z);
|
|
7416
7416
|
});
|
|
7417
7417
|
}, [R]), {
|
|
7418
7418
|
sendMessage: G,
|
|
@@ -7423,7 +7423,7 @@ function Fi() {
|
|
|
7423
7423
|
getWebSocket: W
|
|
7424
7424
|
};
|
|
7425
7425
|
};
|
|
7426
|
-
return
|
|
7426
|
+
return qe.useWebSocket = o, qe;
|
|
7427
7427
|
}
|
|
7428
7428
|
var Ga = {}, Vn;
|
|
7429
7429
|
function ns() {
|
|
@@ -7548,7 +7548,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7548
7548
|
isInGameBox: n = !1,
|
|
7549
7549
|
currentGamePlatform: s = ""
|
|
7550
7550
|
}) => {
|
|
7551
|
-
const { store: u, lng: b } = re(), { isReady: d, setAsReady: l, isPending: i, setAsPending: r } = dr(), o =
|
|
7551
|
+
const { store: u, lng: b } = re(), { isReady: d, setAsReady: l, isPending: i, setAsPending: r } = dr(), o = Je(b), { mutateAsync: m } = xs();
|
|
7552
7552
|
return !e || !t || !a ? { handleTransferInGame: () => {
|
|
7553
7553
|
} } : { handleTransferInGame: async () => {
|
|
7554
7554
|
n && await m({
|
|
@@ -7617,7 +7617,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7617
7617
|
});
|
|
7618
7618
|
}, gs = ({ options: e } = {}) => {
|
|
7619
7619
|
const { withdrawMonthCardApi: t } = xr(), a = ya();
|
|
7620
|
-
return
|
|
7620
|
+
return ee({
|
|
7621
7621
|
mutationKey: ["withdrawMonthCard"],
|
|
7622
7622
|
mutationFn: t,
|
|
7623
7623
|
onSuccess: (n, s, u) => {
|
|
@@ -7681,77 +7681,77 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7681
7681
|
announcementApi: a
|
|
7682
7682
|
};
|
|
7683
7683
|
}, ds = ({ options: e } = {}) => {
|
|
7684
|
-
const { userLoginApi: t } =
|
|
7685
|
-
return
|
|
7684
|
+
const { userLoginApi: t } = se();
|
|
7685
|
+
return ee({
|
|
7686
7686
|
mutationKey: ["userLogin"],
|
|
7687
7687
|
mutationFn: async (a) => t(a),
|
|
7688
7688
|
...e
|
|
7689
7689
|
});
|
|
7690
7690
|
}, cs = ({ options: e } = {}) => {
|
|
7691
|
-
const { userLogoutApi: t } =
|
|
7692
|
-
return
|
|
7691
|
+
const { userLogoutApi: t } = se();
|
|
7692
|
+
return ee({
|
|
7693
7693
|
mutationKey: ["userLogout"],
|
|
7694
7694
|
mutationFn: async () => t(),
|
|
7695
7695
|
...e
|
|
7696
7696
|
});
|
|
7697
7697
|
}, fs = ({ options: e } = {}) => {
|
|
7698
|
-
const { userSignUpApi: t } =
|
|
7699
|
-
return
|
|
7698
|
+
const { userSignUpApi: t } = se();
|
|
7699
|
+
return ee({
|
|
7700
7700
|
mutationKey: ["userSignUp"],
|
|
7701
7701
|
mutationFn: async (a) => t(a),
|
|
7702
7702
|
...e
|
|
7703
7703
|
});
|
|
7704
7704
|
}, _s = ({ options: e } = {}) => {
|
|
7705
|
-
const { addOrRemoveFavoriteGameApi: t } =
|
|
7706
|
-
return
|
|
7705
|
+
const { addOrRemoveFavoriteGameApi: t } = se();
|
|
7706
|
+
return ee({
|
|
7707
7707
|
mutationKey: ["toggleFavoriteGame"],
|
|
7708
7708
|
mutationFn: async (a) => t(a),
|
|
7709
7709
|
...e
|
|
7710
7710
|
});
|
|
7711
7711
|
}, ys = ({ options: e } = {}) => {
|
|
7712
|
-
const { updateUserInfoApi: t } =
|
|
7713
|
-
return
|
|
7712
|
+
const { updateUserInfoApi: t } = se();
|
|
7713
|
+
return ee({
|
|
7714
7714
|
mutationKey: ["updateUserInfo"],
|
|
7715
7715
|
mutationFn: async (a) => t(a),
|
|
7716
7716
|
...e
|
|
7717
7717
|
});
|
|
7718
7718
|
}, bs = ({ options: e } = {}) => {
|
|
7719
|
-
const { updateMemberInfoApi: t } =
|
|
7720
|
-
return
|
|
7719
|
+
const { updateMemberInfoApi: t } = se();
|
|
7720
|
+
return ee({
|
|
7721
7721
|
mutationKey: ["updateMemberInfo"],
|
|
7722
7722
|
mutationFn: async (a) => t(a),
|
|
7723
7723
|
...e
|
|
7724
7724
|
});
|
|
7725
7725
|
}, Us = ({ options: e } = {}) => {
|
|
7726
|
-
const { resetUserPasswordApi: t } =
|
|
7727
|
-
return
|
|
7726
|
+
const { resetUserPasswordApi: t } = se();
|
|
7727
|
+
return ee({
|
|
7728
7728
|
mutationKey: ["resetUserPassword"],
|
|
7729
7729
|
mutationFn: async (a) => t(a),
|
|
7730
7730
|
...e
|
|
7731
7731
|
});
|
|
7732
7732
|
}, Cs = ({ options: e } = {}) => {
|
|
7733
|
-
const { memberInitSetApi: t } =
|
|
7734
|
-
return
|
|
7733
|
+
const { memberInitSetApi: t } = se();
|
|
7734
|
+
return ee({
|
|
7735
7735
|
mutationKey: ["memberInitSet"],
|
|
7736
7736
|
mutationFn: async (a) => t(a),
|
|
7737
7737
|
...e
|
|
7738
7738
|
});
|
|
7739
7739
|
}, vs = ({ options: e } = {}) => {
|
|
7740
|
-
const { setUserTransactionPasswordApi: t } =
|
|
7741
|
-
return
|
|
7740
|
+
const { setUserTransactionPasswordApi: t } = se();
|
|
7741
|
+
return ee({
|
|
7742
7742
|
mutationKey: ["setUserTransactionPassword"],
|
|
7743
7743
|
mutationFn: async (a) => t(a),
|
|
7744
7744
|
...e
|
|
7745
7745
|
});
|
|
7746
7746
|
}, hs = ({ options: e } = {}) => {
|
|
7747
|
-
const { resetUserTransactionPasswordApi: t } =
|
|
7748
|
-
return
|
|
7747
|
+
const { resetUserTransactionPasswordApi: t } = se();
|
|
7748
|
+
return ee({
|
|
7749
7749
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7750
7750
|
mutationFn: async (a) => t(a),
|
|
7751
7751
|
...e
|
|
7752
7752
|
});
|
|
7753
7753
|
}, Ts = ({ paramsData: e, options: t } = {}) => {
|
|
7754
|
-
const { userRebateApi: a } =
|
|
7754
|
+
const { userRebateApi: a } = se(), { getToken: n } = re();
|
|
7755
7755
|
return n?.(), Y({
|
|
7756
7756
|
queryKey: ["userRebate", e],
|
|
7757
7757
|
queryFn: async () => a({ paramsData: e }),
|
|
@@ -7759,23 +7759,23 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7759
7759
|
...t
|
|
7760
7760
|
});
|
|
7761
7761
|
}, ks = ({ options: e } = {}) => {
|
|
7762
|
-
const { userBindBankApi: t } =
|
|
7763
|
-
return
|
|
7762
|
+
const { userBindBankApi: t } = se();
|
|
7763
|
+
return ee({
|
|
7764
7764
|
mutationKey: ["userBindBank"],
|
|
7765
7765
|
mutationFn: async (a) => t({ formData: a }),
|
|
7766
7766
|
...e
|
|
7767
7767
|
});
|
|
7768
7768
|
}, xs = ({ options: e } = {}) => {
|
|
7769
|
-
const { transferInGameApi: t } =
|
|
7770
|
-
return
|
|
7769
|
+
const { transferInGameApi: t } = se();
|
|
7770
|
+
return ee({
|
|
7771
7771
|
mutationKey: ["transferInGame"],
|
|
7772
7772
|
mutationFn: async (a) => t(a),
|
|
7773
7773
|
retry: !1,
|
|
7774
7774
|
...e
|
|
7775
7775
|
});
|
|
7776
7776
|
}, Du = ({ options: e } = {}) => {
|
|
7777
|
-
const { currency: t } = re(), { pointTransferApi: a } =
|
|
7778
|
-
return
|
|
7777
|
+
const { currency: t } = re(), { pointTransferApi: a } = se();
|
|
7778
|
+
return ee({
|
|
7779
7779
|
mutationKey: ["pointTransfer"],
|
|
7780
7780
|
mutationFn: async (n) => a({
|
|
7781
7781
|
...n,
|
|
@@ -7784,7 +7784,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7784
7784
|
...e
|
|
7785
7785
|
});
|
|
7786
7786
|
}, Nu = ({ options: e } = {}) => {
|
|
7787
|
-
const { currency: t } = re(), { checkUserWagerApi: a } =
|
|
7787
|
+
const { currency: t } = re(), { checkUserWagerApi: a } = se();
|
|
7788
7788
|
return Y({
|
|
7789
7789
|
queryKey: ["checkUserWager"],
|
|
7790
7790
|
queryFn: async () => a(),
|
|
@@ -7797,8 +7797,8 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7797
7797
|
...e
|
|
7798
7798
|
});
|
|
7799
7799
|
}, Lu = ({ options: e } = {}) => {
|
|
7800
|
-
const t = ya(), { abandonPointsApi: a } =
|
|
7801
|
-
return
|
|
7800
|
+
const t = ya(), { abandonPointsApi: a } = se();
|
|
7801
|
+
return ee({
|
|
7802
7802
|
mutationKey: ["abandonPoint"],
|
|
7803
7803
|
mutationFn: async (n) => a({
|
|
7804
7804
|
...n
|
|
@@ -7809,99 +7809,99 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7809
7809
|
...e
|
|
7810
7810
|
});
|
|
7811
7811
|
}, Sr = ({ options: e } = {}) => {
|
|
7812
|
-
const { lineLoginApi: t } =
|
|
7813
|
-
return
|
|
7812
|
+
const { lineLoginApi: t } = se();
|
|
7813
|
+
return ee({
|
|
7814
7814
|
mutationKey: ["lineLogin"],
|
|
7815
7815
|
mutationFn: async (a) => t(a),
|
|
7816
7816
|
...e
|
|
7817
7817
|
});
|
|
7818
7818
|
}, Ss = ({ options: e } = {}) => {
|
|
7819
|
-
const { lineLogin2Api: t } =
|
|
7820
|
-
return
|
|
7819
|
+
const { lineLogin2Api: t } = se();
|
|
7820
|
+
return ee({
|
|
7821
7821
|
mutationKey: ["lineLogin"],
|
|
7822
7822
|
mutationFn: async (a) => t(a),
|
|
7823
7823
|
...e
|
|
7824
7824
|
});
|
|
7825
7825
|
}, Gu = ({ options: e } = {}) => {
|
|
7826
|
-
const { machineLoginApi: t } =
|
|
7827
|
-
return
|
|
7826
|
+
const { machineLoginApi: t } = se();
|
|
7827
|
+
return ee({
|
|
7828
7828
|
mutationKey: ["machineLogin"],
|
|
7829
7829
|
mutationFn: async (a) => t(a),
|
|
7830
7830
|
...e
|
|
7831
7831
|
});
|
|
7832
7832
|
}, Es = ({ options: e, formData: t } = {}) => {
|
|
7833
|
-
const { getMachineLoginCodeApi: a } =
|
|
7833
|
+
const { getMachineLoginCodeApi: a } = se();
|
|
7834
7834
|
return Y({
|
|
7835
7835
|
queryKey: ["getMachineLoginCode"],
|
|
7836
7836
|
queryFn: async () => a(t),
|
|
7837
7837
|
...e
|
|
7838
7838
|
});
|
|
7839
7839
|
}, Mu = ({ options: e } = {}) => {
|
|
7840
|
-
const { currency: t } = re(), { memberTransferApi: a } =
|
|
7841
|
-
return
|
|
7840
|
+
const { currency: t } = re(), { memberTransferApi: a } = se();
|
|
7841
|
+
return ee({
|
|
7842
7842
|
mutationKey: ["memberTransfer"],
|
|
7843
7843
|
mutationFn: async (n) => a({ ...n, currency: t }),
|
|
7844
7844
|
...e
|
|
7845
7845
|
});
|
|
7846
7846
|
}, Ru = ({ options: e } = {}) => {
|
|
7847
|
-
const { currency: t } = re(), { checkMemberTransferApi: a } =
|
|
7848
|
-
return
|
|
7847
|
+
const { currency: t } = re(), { checkMemberTransferApi: a } = se();
|
|
7848
|
+
return ee({
|
|
7849
7849
|
mutationKey: ["checkMemberTransfer"],
|
|
7850
7850
|
mutationFn: async (n) => a({ ...n, currency: t }),
|
|
7851
7851
|
...e
|
|
7852
7852
|
});
|
|
7853
7853
|
}, Pu = ({ options: e } = {}) => {
|
|
7854
|
-
const { mobileLoginApi: t } =
|
|
7855
|
-
return
|
|
7854
|
+
const { mobileLoginApi: t } = se();
|
|
7855
|
+
return ee({
|
|
7856
7856
|
mutationKey: ["mobileLogin"],
|
|
7857
7857
|
mutationFn: async (a) => t(a),
|
|
7858
7858
|
...e
|
|
7859
7859
|
});
|
|
7860
7860
|
}, wu = ({ options: e } = {}) => {
|
|
7861
|
-
const { mobileLoginApiV2: t } =
|
|
7862
|
-
return
|
|
7861
|
+
const { mobileLoginApiV2: t } = se();
|
|
7862
|
+
return ee({
|
|
7863
7863
|
mutationKey: ["mobileLoginV2"],
|
|
7864
7864
|
mutationFn: async (a) => t(a),
|
|
7865
7865
|
...e
|
|
7866
7866
|
});
|
|
7867
7867
|
}, Fu = ({ options: e } = {}) => {
|
|
7868
|
-
const { mobileRegisterApi: t } =
|
|
7869
|
-
return
|
|
7868
|
+
const { mobileRegisterApi: t } = se();
|
|
7869
|
+
return ee({
|
|
7870
7870
|
mutationKey: ["mobileRegister"],
|
|
7871
7871
|
mutationFn: async (a) => t(a),
|
|
7872
7872
|
...e
|
|
7873
7873
|
});
|
|
7874
7874
|
}, Au = ({ options: e } = {}) => {
|
|
7875
|
-
const { mobilePasswordApi: t } =
|
|
7876
|
-
return
|
|
7875
|
+
const { mobilePasswordApi: t } = se();
|
|
7876
|
+
return ee({
|
|
7877
7877
|
mutationKey: ["mobileByPassword"],
|
|
7878
7878
|
mutationFn: async (a) => t(a),
|
|
7879
7879
|
...e
|
|
7880
7880
|
});
|
|
7881
7881
|
}, Ou = ({ options: e } = {}) => {
|
|
7882
|
-
const { forgotPasswordApi: t } =
|
|
7883
|
-
return
|
|
7882
|
+
const { forgotPasswordApi: t } = se();
|
|
7883
|
+
return ee({
|
|
7884
7884
|
mutationKey: ["forgotPassword"],
|
|
7885
7885
|
mutationFn: async (a) => t(a),
|
|
7886
7886
|
...e
|
|
7887
7887
|
});
|
|
7888
7888
|
}, Bu = ({ options: e } = {}) => {
|
|
7889
|
-
const { checkMobileApi: t } =
|
|
7890
|
-
return
|
|
7889
|
+
const { checkMobileApi: t } = se();
|
|
7890
|
+
return ee({
|
|
7891
7891
|
mutationKey: ["checkMobile"],
|
|
7892
7892
|
mutationFn: async (a) => t(a),
|
|
7893
7893
|
...e
|
|
7894
7894
|
});
|
|
7895
7895
|
}, Ds = ({ options: e } = {}) => {
|
|
7896
|
-
const { bindAccountApi: t } =
|
|
7897
|
-
return
|
|
7896
|
+
const { bindAccountApi: t } = se();
|
|
7897
|
+
return ee({
|
|
7898
7898
|
mutationKey: ["bindAccount"],
|
|
7899
7899
|
mutationFn: async (a) => t(a),
|
|
7900
7900
|
...e
|
|
7901
7901
|
});
|
|
7902
7902
|
}, Hu = ({ options: e } = {}) => {
|
|
7903
|
-
const { sendMobileVerifyCodeApi: t } =
|
|
7904
|
-
return
|
|
7903
|
+
const { sendMobileVerifyCodeApi: t } = se();
|
|
7904
|
+
return ee({
|
|
7905
7905
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7906
7906
|
mutationFn: async (a) => t(a),
|
|
7907
7907
|
...e
|
|
@@ -7921,21 +7921,21 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7921
7921
|
...e
|
|
7922
7922
|
});
|
|
7923
7923
|
}, zu = ({ options: e } = {}) => {
|
|
7924
|
-
const { createMachineApi: t } =
|
|
7925
|
-
return
|
|
7924
|
+
const { createMachineApi: t } = se();
|
|
7925
|
+
return ee({
|
|
7926
7926
|
mutationKey: ["createMachine"],
|
|
7927
7927
|
mutationFn: async (a) => t({ formData: a }),
|
|
7928
7928
|
...e
|
|
7929
7929
|
});
|
|
7930
7930
|
}, Vu = ({ options: e } = {}) => {
|
|
7931
|
-
const { verifyResetActionApi: t } =
|
|
7932
|
-
return
|
|
7931
|
+
const { verifyResetActionApi: t } = se();
|
|
7932
|
+
return ee({
|
|
7933
7933
|
mutationKey: ["verifyResetAction"],
|
|
7934
7934
|
mutationFn: async (a) => t(a),
|
|
7935
7935
|
...e
|
|
7936
7936
|
});
|
|
7937
7937
|
}, Ju = ({ options: e, bonusData: t } = {}) => {
|
|
7938
|
-
const { getJackpotApi: a } =
|
|
7938
|
+
const { getJackpotApi: a } = se();
|
|
7939
7939
|
return Y({
|
|
7940
7940
|
queryKey: ["getJackpotData"],
|
|
7941
7941
|
queryFn: async () => a(),
|
|
@@ -7954,14 +7954,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7954
7954
|
...e
|
|
7955
7955
|
});
|
|
7956
7956
|
}, Zu = ({ options: e } = {}) => {
|
|
7957
|
-
const { getBetRankingApi: t } =
|
|
7957
|
+
const { getBetRankingApi: t } = se();
|
|
7958
7958
|
return Y({
|
|
7959
7959
|
queryKey: ["getBetRankingData"],
|
|
7960
7960
|
queryFn: async () => t(),
|
|
7961
7961
|
...e
|
|
7962
7962
|
});
|
|
7963
7963
|
}, Ku = ({ options: e } = {}) => {
|
|
7964
|
-
const { getUserAvatarListApi: t } =
|
|
7964
|
+
const { getUserAvatarListApi: t } = se();
|
|
7965
7965
|
return Y({
|
|
7966
7966
|
queryKey: ["getAvatarList"],
|
|
7967
7967
|
queryFn: async () => t(),
|
|
@@ -7971,8 +7971,8 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
7971
7971
|
...e
|
|
7972
7972
|
});
|
|
7973
7973
|
}, qu = ({ options: e } = {}) => {
|
|
7974
|
-
const { updateUserAvatarApi: t } =
|
|
7975
|
-
return
|
|
7974
|
+
const { updateUserAvatarApi: t } = se();
|
|
7975
|
+
return ee({
|
|
7976
7976
|
mutationKey: ["updateAvatar"],
|
|
7977
7977
|
mutationFn: async (a) => t(a),
|
|
7978
7978
|
...e
|
|
@@ -8041,7 +8041,9 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8041
8041
|
REMOTE_ON: "remote_on"
|
|
8042
8042
|
}, qn = (e) => {
|
|
8043
8043
|
typeof window < "u" && window.chrome?.webview && window.chrome.webview.postMessage(JSON.stringify({ action: e }));
|
|
8044
|
-
}, $n = (e, t) => Array.isArray(e) &&
|
|
8044
|
+
}, $n = (e, t) => Array.isArray(e) && t != null && String(t) !== "" && e.some(
|
|
8045
|
+
(a) => String(a).toLowerCase() === String(t).toLowerCase()
|
|
8046
|
+
), Ns = 3e4, Ls = ({
|
|
8045
8047
|
maintainList: e,
|
|
8046
8048
|
isInGameBox: t,
|
|
8047
8049
|
currentGamePlatform: a
|
|
@@ -8070,40 +8072,40 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8070
8072
|
disabledLineAutoRegister: b = !1,
|
|
8071
8073
|
navigate: d = null
|
|
8072
8074
|
}) => {
|
|
8073
|
-
const { store: l, lng: i } = re(), r = ya(), { isReady: o, setAsReady: m, isPending: g, setAsPending: p } = dr(), f =
|
|
8075
|
+
const { store: l, lng: i } = re(), r = ya(), { isReady: o, setAsReady: m, isPending: g, setAsPending: p } = dr(), f = Je(i), y = me(!1), _ = me(t), c = j(n, "uid", null), U = j(n, "cagent_uid", null);
|
|
8074
8076
|
j(n, "testFunction", 0);
|
|
8075
|
-
const C = new URLSearchParams(window.location.search),
|
|
8077
|
+
const C = j(n, "machine_number", null), v = new URLSearchParams(window.location.search), T = j(
|
|
8076
8078
|
s,
|
|
8077
8079
|
"enableTransferInGaming",
|
|
8078
8080
|
!1
|
|
8079
|
-
), { mutateAsync:
|
|
8081
|
+
), { mutateAsync: h } = Sr({
|
|
8080
8082
|
options: {
|
|
8081
|
-
onSuccess: (
|
|
8082
|
-
_.current.onLineLogin?.(
|
|
8083
|
+
onSuccess: (B) => {
|
|
8084
|
+
_.current.onLineLogin?.(B);
|
|
8083
8085
|
},
|
|
8084
8086
|
retry: !1
|
|
8085
8087
|
}
|
|
8086
|
-
}), { mutateAsync:
|
|
8088
|
+
}), { mutateAsync: D } = Ss({
|
|
8087
8089
|
options: {
|
|
8088
|
-
onSuccess: (
|
|
8089
|
-
_.current.onLineLogin?.(
|
|
8090
|
+
onSuccess: (B) => {
|
|
8091
|
+
_.current.onLineLogin?.(B);
|
|
8090
8092
|
},
|
|
8091
|
-
onError: (
|
|
8092
|
-
b ||
|
|
8093
|
+
onError: (B, N) => {
|
|
8094
|
+
b || h(N);
|
|
8093
8095
|
}
|
|
8094
8096
|
}
|
|
8095
|
-
}), { handleTransferInGame:
|
|
8096
|
-
enable:
|
|
8097
|
+
}), { handleTransferInGame: H } = ms({
|
|
8098
|
+
enable: T,
|
|
8097
8099
|
isTestFunction: !0,
|
|
8098
8100
|
isTransferMode: j(s, "isTransferMode", !1),
|
|
8099
8101
|
isInGameBox: j(s, "isInGameBox", !1),
|
|
8100
8102
|
currentGamePlatform: j(s, "currentGamePlatform", "")
|
|
8101
8103
|
}), {
|
|
8102
|
-
sendMessage:
|
|
8104
|
+
sendMessage: k,
|
|
8103
8105
|
// 發送普通訊息
|
|
8104
|
-
sendJsonMessage:
|
|
8106
|
+
sendJsonMessage: S,
|
|
8105
8107
|
// 發送 JSON 訊息
|
|
8106
|
-
lastMessage:
|
|
8108
|
+
lastMessage: F,
|
|
8107
8109
|
// 最後接收到的訊息
|
|
8108
8110
|
// lastJsonMessage, // 最後接收到的 JSON 訊息
|
|
8109
8111
|
readyState: A
|
|
@@ -8115,98 +8117,98 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8115
8117
|
reconnectAttempts: 9999,
|
|
8116
8118
|
reconnectInterval: 1e3,
|
|
8117
8119
|
...a
|
|
8118
|
-
}),
|
|
8120
|
+
}), R = ka(() => {
|
|
8119
8121
|
try {
|
|
8120
|
-
return JSON.parse(
|
|
8122
|
+
return JSON.parse(F?.data);
|
|
8121
8123
|
} catch {
|
|
8122
8124
|
return null;
|
|
8123
8125
|
}
|
|
8124
|
-
}, [
|
|
8125
|
-
|
|
8126
|
-
const
|
|
8127
|
-
() =>
|
|
8126
|
+
}, [F]);
|
|
8127
|
+
fe(() => {
|
|
8128
|
+
const B = setInterval(
|
|
8129
|
+
() => k("ping"),
|
|
8128
8130
|
Ns
|
|
8129
8131
|
);
|
|
8130
|
-
return () => clearInterval(
|
|
8131
|
-
}, [
|
|
8132
|
-
const
|
|
8133
|
-
(
|
|
8132
|
+
return () => clearInterval(B);
|
|
8133
|
+
}, [k]);
|
|
8134
|
+
const L = M(
|
|
8135
|
+
(B, N) => {
|
|
8134
8136
|
u && l.dispatch({
|
|
8135
8137
|
type: "ui/openNotificationModal",
|
|
8136
8138
|
payload: {
|
|
8137
8139
|
title: Ka[f] || "System Prompt",
|
|
8138
|
-
content:
|
|
8140
|
+
content: B,
|
|
8139
8141
|
type: "warning",
|
|
8140
|
-
props:
|
|
8142
|
+
props: N
|
|
8141
8143
|
}
|
|
8142
8144
|
});
|
|
8143
8145
|
},
|
|
8144
8146
|
[u, l, f]
|
|
8145
8147
|
);
|
|
8146
|
-
|
|
8148
|
+
fe(() => {
|
|
8147
8149
|
_.current = t;
|
|
8148
8150
|
}, [t]);
|
|
8149
|
-
const
|
|
8151
|
+
const G = me(null), I = (B) => {
|
|
8150
8152
|
const {
|
|
8151
|
-
onDeposit:
|
|
8152
|
-
onTransCode:
|
|
8153
|
-
onError:
|
|
8154
|
-
onUpdateMember:
|
|
8155
|
-
onMaintainNotice:
|
|
8156
|
-
onMaintainNoticeMember:
|
|
8157
|
-
onTransferInGame:
|
|
8158
|
-
onCashRegisterLimit:
|
|
8159
|
-
onLineLogin:
|
|
8160
|
-
onMonthlyCardIssuePoint:
|
|
8161
|
-
onEventClaimable:
|
|
8162
|
-
} = _.current,
|
|
8163
|
-
memberInfoUid: j(
|
|
8164
|
-
data: j(
|
|
8165
|
-
memo: j(
|
|
8166
|
-
amount: j(
|
|
8167
|
-
limitAmount: j(
|
|
8168
|
-
},
|
|
8169
|
-
switch (
|
|
8153
|
+
onDeposit: N,
|
|
8154
|
+
onTransCode: E,
|
|
8155
|
+
onError: w,
|
|
8156
|
+
onUpdateMember: P,
|
|
8157
|
+
onMaintainNotice: ae,
|
|
8158
|
+
onMaintainNoticeMember: te,
|
|
8159
|
+
onTransferInGame: le,
|
|
8160
|
+
onCashRegisterLimit: O,
|
|
8161
|
+
onLineLogin: J,
|
|
8162
|
+
onMonthlyCardIssuePoint: Z,
|
|
8163
|
+
onEventClaimable: Q
|
|
8164
|
+
} = _.current, X = j(B, "type", ""), q = {
|
|
8165
|
+
memberInfoUid: j(B, "member_info_uid", null),
|
|
8166
|
+
data: j(B, "data", null),
|
|
8167
|
+
memo: j(B, "memo", null),
|
|
8168
|
+
amount: j(B, "amount", null),
|
|
8169
|
+
limitAmount: j(B, "limit_amount", null)
|
|
8170
|
+
}, pe = Number(q.memberInfoUid) === c, Ce = q.data, be = q.amount, Ye = q.limitAmount, he = v.get("mac") || Ci.get("machine_mac_address") || "", Ge = j(B, "data.line_id", null), Xe = j(B, "data.line_name", null), Me = j(B, "member_info_uid", null);
|
|
8171
|
+
switch (X) {
|
|
8170
8172
|
case ye.DEPOSIT:
|
|
8171
|
-
|
|
8173
|
+
pe && (H(), N?.(q));
|
|
8172
8174
|
break;
|
|
8173
8175
|
case ye.TRANS_CODE:
|
|
8174
|
-
|
|
8176
|
+
E?.(q);
|
|
8175
8177
|
break;
|
|
8176
8178
|
case ye.ERROR:
|
|
8177
|
-
if (
|
|
8178
|
-
const
|
|
8179
|
-
|
|
8180
|
-
notificationType:
|
|
8181
|
-
}),
|
|
8179
|
+
if (pe) {
|
|
8180
|
+
const oe = j(B, "open_game_modal", 0) === 1;
|
|
8181
|
+
L(Ce, {
|
|
8182
|
+
notificationType: oe ? "gamingNotice" : void 0
|
|
8183
|
+
}), w?.(q);
|
|
8182
8184
|
}
|
|
8183
8185
|
break;
|
|
8184
8186
|
case ye.UPDATE_MEMBER:
|
|
8185
8187
|
c && (r.invalidateQueries({
|
|
8186
8188
|
queryKey: ["getMemberInfo"]
|
|
8187
|
-
}),
|
|
8189
|
+
}), P?.(q));
|
|
8188
8190
|
break;
|
|
8189
8191
|
case ye.MAINTAIN_NOTICE:
|
|
8190
|
-
|
|
8192
|
+
L(Ce, {
|
|
8191
8193
|
notificationType: "maintainNotice"
|
|
8192
|
-
}),
|
|
8194
|
+
}), ae?.(q);
|
|
8193
8195
|
break;
|
|
8194
8196
|
case ye.MAINTAIN_NOTICE_MEMBER: {
|
|
8195
|
-
const
|
|
8196
|
-
if (
|
|
8197
|
-
String(U) === String(
|
|
8197
|
+
const oe = q.data?.cagent_uid ?? null;
|
|
8198
|
+
if (oe != null) {
|
|
8199
|
+
String(U) === String(oe) && (L(q.data?.msg, { rawMessage: !0 }), te?.(q), setTimeout(() => {
|
|
8198
8200
|
d?.("/");
|
|
8199
8201
|
}, 5e3));
|
|
8200
8202
|
return;
|
|
8201
|
-
} else if (
|
|
8202
|
-
const
|
|
8203
|
-
if (
|
|
8204
|
-
Array.isArray(
|
|
8203
|
+
} else if (pe) {
|
|
8204
|
+
const ke = l.getState()?.game?.currentGameData?.gameUid ?? null, He = q.data?.game_id;
|
|
8205
|
+
if (He != null) {
|
|
8206
|
+
Array.isArray(He) && He.some((ze) => String(ze) === String(ke)) && (L(q.data?.msg, { rawMessage: !0 }), te?.(q), setTimeout(() => {
|
|
8205
8207
|
d?.("/");
|
|
8206
8208
|
}, 5e3));
|
|
8207
8209
|
return;
|
|
8208
8210
|
}
|
|
8209
|
-
|
|
8211
|
+
L(Ce), te?.(q), setTimeout(() => {
|
|
8210
8212
|
window.location.reload();
|
|
8211
8213
|
}, 5e4);
|
|
8212
8214
|
}
|
|
@@ -8217,66 +8219,66 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8217
8219
|
break;
|
|
8218
8220
|
case ye.TRANSFER_IN_GAME:
|
|
8219
8221
|
case ye.CHECK_REQUEST:
|
|
8220
|
-
if (
|
|
8221
|
-
const { request_id:
|
|
8222
|
+
if (pe && T) {
|
|
8223
|
+
const { request_id: oe, amount: ke, platform: He, status: ze } = j(q, "data", {}) || {}, xe = localStorage.getItem(
|
|
8222
8224
|
"transfer_in_game_request_id"
|
|
8223
8225
|
);
|
|
8224
|
-
if (
|
|
8225
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
8226
|
+
if (ze === "pending") {
|
|
8227
|
+
localStorage.setItem("transfer_in_game_request_id", oe);
|
|
8226
8228
|
return;
|
|
8227
|
-
} else if (
|
|
8228
|
-
if (
|
|
8229
|
-
|
|
8229
|
+
} else if (xe && xe === oe) {
|
|
8230
|
+
if (ze === "rollback") {
|
|
8231
|
+
H();
|
|
8230
8232
|
return;
|
|
8231
8233
|
}
|
|
8232
8234
|
localStorage.removeItem("transfer_in_game_request_id"), l.dispatch({
|
|
8233
8235
|
type: "ui/showToast",
|
|
8234
8236
|
payload: {
|
|
8235
8237
|
title: Ka[f] || "System Prompt",
|
|
8236
|
-
description: `您於${
|
|
8238
|
+
description: `您於${He}存入的${ke}元已經處理完成了,請確認遊戲餘額`,
|
|
8237
8239
|
status: "success"
|
|
8238
8240
|
}
|
|
8239
8241
|
}), m();
|
|
8240
8242
|
}
|
|
8241
|
-
|
|
8243
|
+
le?.(q);
|
|
8242
8244
|
}
|
|
8243
8245
|
break;
|
|
8244
8246
|
case ye.CASH_REGISTER_LIMIT:
|
|
8245
|
-
|
|
8247
|
+
L(Ce, {
|
|
8246
8248
|
notificationType: "cashRegisterLimit",
|
|
8247
|
-
amount:
|
|
8248
|
-
limitAmount:
|
|
8249
|
-
}),
|
|
8249
|
+
amount: be,
|
|
8250
|
+
limitAmount: Ye
|
|
8251
|
+
}), O?.(q);
|
|
8250
8252
|
break;
|
|
8251
8253
|
case ye.UPDATE_ONLY_ONE_MEMBER:
|
|
8252
|
-
|
|
8254
|
+
pe && (r.invalidateQueries({
|
|
8253
8255
|
queryKey: ["getMemberInfo"]
|
|
8254
|
-
}),
|
|
8256
|
+
}), P?.(q));
|
|
8255
8257
|
break;
|
|
8256
8258
|
case ye.GAME_MAINTAIN: {
|
|
8257
|
-
const
|
|
8258
|
-
maintainList:
|
|
8259
|
+
const oe = q.data, { show: ke } = Ls({
|
|
8260
|
+
maintainList: oe,
|
|
8259
8261
|
// 直接用當前路由判斷是否在 gamebox(不依賴 transferInGamingConfig,
|
|
8260
8262
|
// 因為不是每隻遊戲都會帶入該設定)
|
|
8261
8263
|
isInGameBox: window.location.pathname.includes("gamebox"),
|
|
8262
8264
|
currentGamePlatform: l.getState()?.game?.currentGameData?.gamePlatform ?? null
|
|
8263
8265
|
});
|
|
8264
|
-
|
|
8266
|
+
ke && L(Ce, {
|
|
8265
8267
|
notificationType: "gameMaintain"
|
|
8266
8268
|
});
|
|
8267
8269
|
break;
|
|
8268
8270
|
}
|
|
8269
8271
|
case ye.LINE_LOGIN:
|
|
8270
|
-
|
|
8271
|
-
line_id:
|
|
8272
|
-
line_name:
|
|
8272
|
+
Me === he && h({
|
|
8273
|
+
line_id: Ge,
|
|
8274
|
+
line_name: Xe
|
|
8273
8275
|
});
|
|
8274
8276
|
break;
|
|
8275
8277
|
case ye.UPDATE_EVENT_WALLET:
|
|
8276
|
-
|
|
8278
|
+
pe && (r.invalidateQueries({ queryKey: ["getEventWalletList"] }), r.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
|
|
8277
8279
|
return;
|
|
8278
8280
|
case ye.MONTHLY_CARD_ISSUE_POINT:
|
|
8279
|
-
|
|
8281
|
+
pe && (r.invalidateQueries({ queryKey: Ai }), Z?.(q));
|
|
8280
8282
|
return;
|
|
8281
8283
|
/**
|
|
8282
8284
|
* event_claimable:活動可領取推播
|
|
@@ -8286,50 +8288,64 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8286
8288
|
* 註:與其他 event/member 推播一致,僅對「當前會員」生效(isForMember)。
|
|
8287
8289
|
*/
|
|
8288
8290
|
case ye.EVENT_CLAIMABLE:
|
|
8289
|
-
if (
|
|
8291
|
+
if (pe) {
|
|
8290
8292
|
r.invalidateQueries({ queryKey: ["checkEventStatus"] });
|
|
8291
|
-
const
|
|
8292
|
-
(Array.isArray(
|
|
8293
|
+
const oe = q.data?.event_uid;
|
|
8294
|
+
(Array.isArray(oe) ? oe.length > 0 : oe != null) && Q?.(q);
|
|
8293
8295
|
}
|
|
8294
8296
|
return;
|
|
8295
8297
|
/**
|
|
8296
8298
|
* remote_off:遠端關鎖。
|
|
8297
|
-
* 訊息格式:{ type:'remote_off', member_info_uid:["
|
|
8298
|
-
* 本機
|
|
8299
|
+
* 訊息格式:{ type:'remote_off', member_info_uid:["機台編號",...], data:null }
|
|
8300
|
+
* 本機 machine_number 在名單內 → 通知外殼 closethismic(打開黑屏)。
|
|
8299
8301
|
*/
|
|
8300
|
-
case ye.REMOTE_OFF:
|
|
8301
|
-
$n(
|
|
8302
|
+
case ye.REMOTE_OFF: {
|
|
8303
|
+
const oe = $n(q.memberInfoUid, C);
|
|
8304
|
+
console.log("[WS remote_off]", {
|
|
8305
|
+
machine_number: C,
|
|
8306
|
+
targets: q.memberInfoUid,
|
|
8307
|
+
matched: oe,
|
|
8308
|
+
sent: oe ? "closethismic" : null
|
|
8309
|
+
}), oe && qn("closethismic");
|
|
8302
8310
|
return;
|
|
8311
|
+
}
|
|
8303
8312
|
/**
|
|
8304
8313
|
* remote_on:遠端解鎖。
|
|
8305
|
-
* 本機
|
|
8314
|
+
* 本機 machine_number 在名單內 → 通知外殼 openthismic(關閉黑屏)。
|
|
8306
8315
|
*/
|
|
8307
|
-
case ye.REMOTE_ON:
|
|
8308
|
-
$n(
|
|
8316
|
+
case ye.REMOTE_ON: {
|
|
8317
|
+
const oe = $n(q.memberInfoUid, C);
|
|
8318
|
+
console.log("[WS remote_on]", {
|
|
8319
|
+
machine_number: C,
|
|
8320
|
+
targets: q.memberInfoUid,
|
|
8321
|
+
matched: oe,
|
|
8322
|
+
sent: oe ? "openthismic" : null
|
|
8323
|
+
}), oe && qn("openthismic");
|
|
8309
8324
|
return;
|
|
8325
|
+
}
|
|
8310
8326
|
default:
|
|
8311
|
-
console.warn("Unknown socket type:",
|
|
8327
|
+
console.warn("Unknown socket type:", X);
|
|
8312
8328
|
break;
|
|
8313
8329
|
}
|
|
8314
8330
|
};
|
|
8315
|
-
|
|
8316
|
-
!
|
|
8317
|
-
}, [
|
|
8331
|
+
fe(() => {
|
|
8332
|
+
!R || G.current === R || (G.current = R, I(R));
|
|
8333
|
+
}, [R]), fe(() => () => y.current = !0, []), fe(() => {
|
|
8318
8334
|
localStorage.getItem(
|
|
8319
8335
|
"transfer_in_game_request_id"
|
|
8320
8336
|
) && p();
|
|
8321
|
-
}, [p]),
|
|
8322
|
-
if (
|
|
8323
|
-
const
|
|
8337
|
+
}, [p]), fe(() => {
|
|
8338
|
+
if (T) {
|
|
8339
|
+
const B = localStorage.getItem(
|
|
8324
8340
|
"transfer_in_game_request_id"
|
|
8325
8341
|
);
|
|
8326
|
-
|
|
8342
|
+
B && c && g && S({
|
|
8327
8343
|
type: ye.CHECK_REQUEST,
|
|
8328
|
-
request_id:
|
|
8344
|
+
request_id: B,
|
|
8329
8345
|
member_info_uid: c
|
|
8330
8346
|
});
|
|
8331
8347
|
}
|
|
8332
|
-
}, [c, g,
|
|
8348
|
+
}, [c, g, S, T]), fe(() => {
|
|
8333
8349
|
g ? l.dispatch({
|
|
8334
8350
|
type: "ui/showToast",
|
|
8335
8351
|
payload: {
|
|
@@ -8346,17 +8362,17 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8346
8362
|
}
|
|
8347
8363
|
});
|
|
8348
8364
|
}, [g, o, l, f]);
|
|
8349
|
-
const
|
|
8350
|
-
|
|
8351
|
-
const
|
|
8352
|
-
|
|
8365
|
+
const W = me(null);
|
|
8366
|
+
W.current = I;
|
|
8367
|
+
const z = M((B) => {
|
|
8368
|
+
W.current?.(B);
|
|
8353
8369
|
}, []);
|
|
8354
8370
|
return {
|
|
8355
|
-
sendMessage:
|
|
8356
|
-
sendJsonMessage:
|
|
8371
|
+
sendMessage: k,
|
|
8372
|
+
sendJsonMessage: S,
|
|
8357
8373
|
readyState: A,
|
|
8358
8374
|
// WebSocket 連線狀態
|
|
8359
|
-
simulateSocketMessage:
|
|
8375
|
+
simulateSocketMessage: z
|
|
8360
8376
|
// 測試用:模擬收到某型別的 WS 訊息
|
|
8361
8377
|
};
|
|
8362
8378
|
}, Gs = () => {
|
|
@@ -8441,14 +8457,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8441
8457
|
memberEventSettleApi: b
|
|
8442
8458
|
};
|
|
8443
8459
|
}, Rs = ({ paramsData: e, options: t } = {}) => {
|
|
8444
|
-
const { store: a, lng: n, data2URL: s } = re(), { eventListApi: u } = $a(), b = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d =
|
|
8460
|
+
const { store: a, lng: n, data2URL: s } = re(), { eventListApi: u } = $a(), b = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = Je(n);
|
|
8445
8461
|
return Y({
|
|
8446
8462
|
queryKey: ["eventList", e],
|
|
8447
8463
|
queryFn: () => u({ paramsData: e }),
|
|
8448
8464
|
select: (l) => {
|
|
8449
8465
|
try {
|
|
8450
8466
|
const { data: i } = l;
|
|
8451
|
-
return
|
|
8467
|
+
return Ee(i, (o) => {
|
|
8452
8468
|
const { events_attributes: m } = o, g = Be(
|
|
8453
8469
|
m,
|
|
8454
8470
|
(v) => v.attribute_currency === b
|
|
@@ -8462,8 +8478,8 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8462
8478
|
...y,
|
|
8463
8479
|
carouselCurrentLanguagePCImageUrl: `${s}/carousels/${y?.image_pc}`,
|
|
8464
8480
|
carouselCurrentLanguageMBImageUrl: `${s}/carousels/${y?.image_mobile}`,
|
|
8465
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8466
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8481
|
+
carouselCurrentLanguageS3PCImageUrl: `${Qe}/carousels/${y?.image_pc}`,
|
|
8482
|
+
carouselCurrentLanguageS3MBImageUrl: `${Qe}/carousels/${y?.image_mobile}`
|
|
8467
8483
|
}
|
|
8468
8484
|
}, c = {
|
|
8469
8485
|
eventUid: o.uid,
|
|
@@ -8527,7 +8543,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8527
8543
|
rewardType: g?.reward_type,
|
|
8528
8544
|
//獎勵類型
|
|
8529
8545
|
rewardDetail: g?.rewards || {},
|
|
8530
|
-
originEventAttribute:
|
|
8546
|
+
originEventAttribute: Ee(m, (v) => ({
|
|
8531
8547
|
isActive: v.attribute_is_active === 1,
|
|
8532
8548
|
currencyCode: v.attribute_currency,
|
|
8533
8549
|
value: v.attribute_value,
|
|
@@ -8580,7 +8596,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8580
8596
|
});
|
|
8581
8597
|
}, Yu = ({ options: e } = {}) => {
|
|
8582
8598
|
const { redeemEventRewardApi: t } = $a();
|
|
8583
|
-
return
|
|
8599
|
+
return ee({
|
|
8584
8600
|
mutationKey: ["redeemEventReward"],
|
|
8585
8601
|
mutationFn: async (a) => t(a),
|
|
8586
8602
|
...e
|
|
@@ -8602,14 +8618,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8602
8618
|
});
|
|
8603
8619
|
}, Xu = ({ options: e } = {}) => {
|
|
8604
8620
|
const { settleEventApi: t } = $a();
|
|
8605
|
-
return
|
|
8621
|
+
return ee({
|
|
8606
8622
|
mutationKey: ["settleEvent"],
|
|
8607
8623
|
mutationFn: async (a) => t(a),
|
|
8608
8624
|
...e
|
|
8609
8625
|
});
|
|
8610
8626
|
}, e0 = ({ options: e } = {}) => {
|
|
8611
8627
|
const { memberEventSettleApi: t } = $a();
|
|
8612
|
-
return
|
|
8628
|
+
return ee({
|
|
8613
8629
|
mutationKey: ["memberEventSettle"],
|
|
8614
8630
|
mutationFn: async (a) => t(a),
|
|
8615
8631
|
...e
|
|
@@ -8707,7 +8723,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8707
8723
|
});
|
|
8708
8724
|
}, i0 = () => {
|
|
8709
8725
|
const e = ya(), { enabledEventWalletApi: t } = pt();
|
|
8710
|
-
return
|
|
8726
|
+
return ee({
|
|
8711
8727
|
mutationKey: ["enabledEventWallet"],
|
|
8712
8728
|
mutationFn: async ({ eventUids: a }) => await t({ eventUids: a }),
|
|
8713
8729
|
onSuccess: () => {
|
|
@@ -8732,7 +8748,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8732
8748
|
});
|
|
8733
8749
|
}, r0 = () => {
|
|
8734
8750
|
const e = ya(), { settleEventWalletApi: t } = pt();
|
|
8735
|
-
return
|
|
8751
|
+
return ee({
|
|
8736
8752
|
mutationKey: ["settleEventWallet"],
|
|
8737
8753
|
mutationFn: async ({ groupUid: a }) => await t({ groupUid: a }),
|
|
8738
8754
|
onSuccess: () => {
|
|
@@ -8741,7 +8757,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8741
8757
|
});
|
|
8742
8758
|
}, l0 = () => {
|
|
8743
8759
|
const e = ya(), { abandonEventWalletApi: t } = pt();
|
|
8744
|
-
return
|
|
8760
|
+
return ee({
|
|
8745
8761
|
mutationKey: ["abandonEventWallet"],
|
|
8746
8762
|
mutationFn: async ({ groupUid: a }) => await t({ groupUid: a }),
|
|
8747
8763
|
onSuccess: () => {
|
|
@@ -8749,13 +8765,13 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8749
8765
|
}
|
|
8750
8766
|
});
|
|
8751
8767
|
}, o0 = ({ options: e } = {}) => {
|
|
8752
|
-
const { lng: t } = re(), { announcementApi: a } = wa(), n =
|
|
8768
|
+
const { lng: t } = re(), { announcementApi: a } = wa(), n = Je(t);
|
|
8753
8769
|
return Y({
|
|
8754
8770
|
queryKey: ["getAnnouncement"],
|
|
8755
8771
|
queryFn: async () => await a(),
|
|
8756
8772
|
select: (s) => {
|
|
8757
8773
|
const u = ta(s) ? s : s?.data ?? [];
|
|
8758
|
-
return
|
|
8774
|
+
return Ee(u, (b) => {
|
|
8759
8775
|
const d = Be(b?.news_language, { language: n }) || Be(b?.news_language, { language: "en_US" }) || b?.news_language?.[0];
|
|
8760
8776
|
return {
|
|
8761
8777
|
...b,
|
|
@@ -8766,7 +8782,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8766
8782
|
...e
|
|
8767
8783
|
});
|
|
8768
8784
|
}, s0 = ({ skipPreload: e = !1 } = {}) => {
|
|
8769
|
-
const { lng: t, data2URL: a } = re(), { commonCarouselApi: n } = wa(), s =
|
|
8785
|
+
const { lng: t, data2URL: a } = re(), { commonCarouselApi: n } = wa(), s = Je(t);
|
|
8770
8786
|
return Y({
|
|
8771
8787
|
queryKey: ["getCarouselList", e],
|
|
8772
8788
|
queryFn: async () => {
|
|
@@ -8780,21 +8796,21 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8780
8796
|
carouselCurrentLanguageData: i,
|
|
8781
8797
|
carouselCurrentLanguagePCImageUrl: `${a}/carousels/${i?.image_pc}`,
|
|
8782
8798
|
carouselCurrentLanguageMBImageUrl: `${a}/carousels/${i?.image_mobile}`,
|
|
8783
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8784
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8799
|
+
carouselCurrentLanguageS3PCImageUrl: `${Qe}/carousels/${i?.image_pc}`,
|
|
8800
|
+
carouselCurrentLanguageS3MBImageUrl: `${Qe}/carousels/${i?.image_mobile}`,
|
|
8785
8801
|
carouselCurrentLanguageLink: i?.url_link,
|
|
8786
8802
|
currentLngCarousel: {
|
|
8787
8803
|
...i,
|
|
8788
8804
|
carouselCurrentLanguagePCImageUrl: `${a}/carousels/${i?.image_pc}`,
|
|
8789
8805
|
carouselCurrentLanguageMBImageUrl: `${a}/carousels/${i?.image_mobile}`,
|
|
8790
|
-
carouselCurrentLanguageS3PCImageUrl: `${
|
|
8791
|
-
carouselCurrentLanguageS3MBImageUrl: `${
|
|
8806
|
+
carouselCurrentLanguageS3PCImageUrl: `${Qe}/carousels/${i?.image_pc}`,
|
|
8807
|
+
carouselCurrentLanguageS3MBImageUrl: `${Qe}/carousels/${i?.image_mobile}`
|
|
8792
8808
|
}
|
|
8793
8809
|
};
|
|
8794
8810
|
})
|
|
8795
8811
|
});
|
|
8796
8812
|
}, m0 = () => {
|
|
8797
|
-
const { lng: e, getToken: t } = re(), a = t?.(), { commonMarqueeApi: n } = wa(), s =
|
|
8813
|
+
const { lng: e, getToken: t } = re(), a = t?.(), { commonMarqueeApi: n } = wa(), s = Je(e);
|
|
8798
8814
|
return Y({
|
|
8799
8815
|
queryKey: ["getMarqueeList", a],
|
|
8800
8816
|
queryFn: async () => {
|
|
@@ -8802,7 +8818,7 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8802
8818
|
return u && !a ? u : await n();
|
|
8803
8819
|
},
|
|
8804
8820
|
select: (u) => {
|
|
8805
|
-
const b = ta(u) ? u : u.Marquees, d = ta(u) ? u : u.MarqueesInsideGameBox, l =
|
|
8821
|
+
const b = ta(u) ? u : u.Marquees, d = ta(u) ? u : u.MarqueesInsideGameBox, l = Ee(b, (r) => r[s] || r?.en_US), i = Ee(d, (r) => r[s] || r?.en_US);
|
|
8806
8822
|
return {
|
|
8807
8823
|
marquee: l,
|
|
8808
8824
|
gameMarquee: i
|
|
@@ -8810,14 +8826,14 @@ const ss = /* @__PURE__ */ Di(os), ms = ({
|
|
|
8810
8826
|
}
|
|
8811
8827
|
});
|
|
8812
8828
|
}, u0 = ({ options: e } = {}) => {
|
|
8813
|
-
const { rankingGameApi: t } =
|
|
8829
|
+
const { rankingGameApi: t } = se();
|
|
8814
8830
|
return Y({
|
|
8815
8831
|
queryKey: ["rankingGame"],
|
|
8816
8832
|
queryFn: async () => t(),
|
|
8817
8833
|
enabled: window.profit_ranking_status === 1,
|
|
8818
8834
|
select: (a) => {
|
|
8819
8835
|
const { data: n } = a;
|
|
8820
|
-
return
|
|
8836
|
+
return Ee(n, (u) => {
|
|
8821
8837
|
const {
|
|
8822
8838
|
game_uid: b,
|
|
8823
8839
|
game_code: d,
|
|
@@ -9152,159 +9168,159 @@ function em({ timeout: e = 1e3 * 60 * 20, promptTimeout: t = 0, promptBeforeIdle
|
|
|
9152
9168
|
}, onAction: o = () => {
|
|
9153
9169
|
}, onMessage: m = () => {
|
|
9154
9170
|
}, debounce: g = 0, throttle: p = 0, eventsThrottle: f = 200, startOnMount: y = !0, startManually: _ = !1, stopOnIdle: c = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: T = !1, disabled: h = !1 } = {}) {
|
|
9155
|
-
let D =
|
|
9156
|
-
|
|
9171
|
+
let D = me(Ne()), H = me(Ne()), k = me(null), S = me(null), F = me(0), A = me(0), R = me(0), L = me(0), G = me(!1), I = me(!1), W = me(!1), z = me(!0), B = me(!1), N = me(null), E = me(null), w = me(e), P = me(0);
|
|
9172
|
+
fe(() => {
|
|
9157
9173
|
if (t && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && t) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
9158
9174
|
if (e >= Va) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Va}.`);
|
|
9159
9175
|
if (t >= Va) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Va}.`);
|
|
9160
9176
|
if (a >= Va) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Va}.`);
|
|
9161
9177
|
if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
9162
|
-
if (a ? (
|
|
9178
|
+
if (a ? (w.current = e - a, P.current = a) : (w.current = e, P.current = t), !z.current) {
|
|
9163
9179
|
if (_ || h) return;
|
|
9164
|
-
G.current && (
|
|
9180
|
+
G.current && (q.current(null, Re), E.current && E.current.active()), ia();
|
|
9165
9181
|
}
|
|
9166
9182
|
}, [e, t, a, _, h]);
|
|
9167
|
-
let
|
|
9168
|
-
|
|
9169
|
-
|
|
9183
|
+
let ae = me(c);
|
|
9184
|
+
fe(() => {
|
|
9185
|
+
ae.current = c;
|
|
9170
9186
|
}, [c]);
|
|
9171
|
-
let
|
|
9172
|
-
|
|
9173
|
-
|
|
9187
|
+
let te = me(b), le = me(n), O = me([...(/* @__PURE__ */ new Set([...s, ...b])).values()]), J = me(h);
|
|
9188
|
+
fe(() => {
|
|
9189
|
+
J.current = h, !z.current && (h ? Ke() : _ || ia());
|
|
9174
9190
|
}, [h]);
|
|
9175
|
-
let Z =
|
|
9176
|
-
|
|
9191
|
+
let Z = me(d);
|
|
9192
|
+
fe(() => {
|
|
9177
9193
|
Z.current = d;
|
|
9178
9194
|
}, [d]);
|
|
9179
|
-
let Q =
|
|
9180
|
-
|
|
9195
|
+
let Q = me(l);
|
|
9196
|
+
fe(() => {
|
|
9181
9197
|
Q.current = l;
|
|
9182
9198
|
}, [l]);
|
|
9183
|
-
let
|
|
9184
|
-
|
|
9185
|
-
|
|
9199
|
+
let X = me(i);
|
|
9200
|
+
fe(() => {
|
|
9201
|
+
X.current = i;
|
|
9186
9202
|
}, [i]);
|
|
9187
|
-
let
|
|
9188
|
-
|
|
9189
|
-
|
|
9203
|
+
let q = me(r);
|
|
9204
|
+
fe(() => {
|
|
9205
|
+
q.current = r;
|
|
9190
9206
|
}, [r]);
|
|
9191
|
-
let
|
|
9192
|
-
|
|
9193
|
-
|
|
9207
|
+
let pe = me(o);
|
|
9208
|
+
fe(() => {
|
|
9209
|
+
pe.current = o;
|
|
9194
9210
|
}, [o]);
|
|
9195
|
-
let
|
|
9196
|
-
|
|
9197
|
-
|
|
9211
|
+
let Ce = me(m);
|
|
9212
|
+
fe(() => {
|
|
9213
|
+
Ce.current = m;
|
|
9198
9214
|
}, [m]);
|
|
9199
9215
|
let be = ka(() => {
|
|
9200
|
-
let
|
|
9201
|
-
return g > 0 ? Xs(
|
|
9202
|
-
}, [p, g]),
|
|
9203
|
-
|
|
9204
|
-
U && v && (
|
|
9216
|
+
let K = (Pe, la) => pe.current(Pe, la);
|
|
9217
|
+
return g > 0 ? Xs(K, g) : p > 0 ? yi(K, p) : K;
|
|
9218
|
+
}, [p, g]), Ye = me();
|
|
9219
|
+
fe(() => {
|
|
9220
|
+
U && v && (Ye.current = yi(() => {
|
|
9205
9221
|
E.current.active();
|
|
9206
9222
|
}, v));
|
|
9207
9223
|
}, [U, v]);
|
|
9208
|
-
let
|
|
9224
|
+
let he = () => {
|
|
9209
9225
|
N.current !== null && (ra.clearTimeout(N.current), N.current = null);
|
|
9210
|
-
}, Ge = (
|
|
9211
|
-
|
|
9212
|
-
}, Xe = (
|
|
9213
|
-
!I.current && !G.current && (Q.current(
|
|
9214
|
-
},
|
|
9215
|
-
|
|
9216
|
-
},
|
|
9217
|
-
|
|
9218
|
-
},
|
|
9226
|
+
}, Ge = (K, Pe = !0) => {
|
|
9227
|
+
he(), N.current = ra.setTimeout(ke, K || w.current), Pe && (S.current = Ne());
|
|
9228
|
+
}, Xe = (K) => {
|
|
9229
|
+
!I.current && !G.current && (Q.current(K, Re), Z.current({ type: "active", prompted: !0 }, Re)), L.current = 0, R.current = Ne(), I.current = !0, Ge(P.current, !1);
|
|
9230
|
+
}, Me = () => {
|
|
9231
|
+
he(), G.current || (X.current(null, Re), Z.current({ type: "idle" }, Re)), G.current = !0, k.current = Ne(), ae.current ? We() : I.current && (R.current = 0, I.current = !1);
|
|
9232
|
+
}, oe = (K) => {
|
|
9233
|
+
he(), (G.current || I.current) && (q.current(K, Re), Z.current({ type: "active", prompted: !1 }, Re)), I.current = !1, R.current = 0, G.current = !1, F.current += Ne() - k.current, A.current += Ne() - k.current, xe(), Ge();
|
|
9234
|
+
}, ke = (K) => {
|
|
9219
9235
|
if (!G.current) {
|
|
9220
9236
|
be.cancel && be.cancel();
|
|
9221
9237
|
let Pe = Ne() - S.current;
|
|
9222
|
-
if (!(
|
|
9223
|
-
E.current ? E.current.prompt() : Xe(
|
|
9238
|
+
if (!(w.current + P.current < Pe) && P.current > 0 && !I.current) {
|
|
9239
|
+
E.current ? E.current.prompt() : Xe(K);
|
|
9224
9240
|
return;
|
|
9225
9241
|
}
|
|
9226
|
-
E.current ? E.current.idle() :
|
|
9242
|
+
E.current ? E.current.idle() : Me();
|
|
9227
9243
|
return;
|
|
9228
9244
|
}
|
|
9229
|
-
E.current ? E.current.active() :
|
|
9230
|
-
},
|
|
9231
|
-
if (!y && !S.current && (S.current = Ne(),
|
|
9232
|
-
if (
|
|
9233
|
-
|
|
9245
|
+
E.current ? E.current.active() : oe(K);
|
|
9246
|
+
}, He = (K) => {
|
|
9247
|
+
if (!y && !S.current && (S.current = Ne(), q.current(null, Re)), be(K, Re), I.current) return;
|
|
9248
|
+
if (he(), !G.current && te.current.includes(K.type)) {
|
|
9249
|
+
ke(K);
|
|
9234
9250
|
return;
|
|
9235
9251
|
}
|
|
9236
9252
|
let Pe = Ne() - S.current;
|
|
9237
|
-
if (G.current && !c || !G.current && Pe >=
|
|
9238
|
-
|
|
9253
|
+
if (G.current && !c || !G.current && Pe >= w.current) {
|
|
9254
|
+
ke(K);
|
|
9239
9255
|
return;
|
|
9240
9256
|
}
|
|
9241
|
-
W.current = !1, L.current = 0, R.current = 0, Ge(), U && v &&
|
|
9242
|
-
},
|
|
9243
|
-
|
|
9244
|
-
let
|
|
9245
|
-
|
|
9246
|
-
}, [f, p, g,
|
|
9247
|
-
let
|
|
9248
|
-
_a && le.current && (
|
|
9249
|
-
le.current.addEventListener(
|
|
9250
|
-
}),
|
|
9251
|
-
},
|
|
9252
|
-
_a && le.current && (
|
|
9253
|
-
le.current.removeEventListener(Pe,
|
|
9254
|
-
}),
|
|
9255
|
-
}, ia = M((
|
|
9257
|
+
W.current = !1, L.current = 0, R.current = 0, Ge(), U && v && Ye.current();
|
|
9258
|
+
}, ze = me(He);
|
|
9259
|
+
fe(() => {
|
|
9260
|
+
let K = B.current;
|
|
9261
|
+
K && We(), f > 0 ? ze.current = yi(He, f) : ze.current = He, K && xe();
|
|
9262
|
+
}, [f, p, g, pe, U, v]);
|
|
9263
|
+
let xe = () => {
|
|
9264
|
+
_a && le.current && (B.current || (O.current.forEach((K) => {
|
|
9265
|
+
le.current.addEventListener(K, ze.current, { capture: !0, passive: !0 });
|
|
9266
|
+
}), B.current = !0));
|
|
9267
|
+
}, We = (K = !1) => {
|
|
9268
|
+
_a && le.current && (B.current || K) && (O.current.forEach((Pe) => {
|
|
9269
|
+
le.current.removeEventListener(Pe, ze.current, { capture: !0 });
|
|
9270
|
+
}), B.current = !1);
|
|
9271
|
+
}, ia = M((K) => J.current ? !1 : (he(), xe(), G.current = !1, I.current = !1, W.current = !1, L.current = 0, R.current = 0, E.current && !K && E.current.start(), Ge(), !0), [N, G, J, w, E]), ua = M((K) => J.current ? !1 : (he(), xe(), H.current = Ne(), F.current += Ne() - k.current, A.current += Ne() - k.current, F.current = 0, G.current = !1, I.current = !1, W.current = !1, L.current = 0, R.current = 0, E.current && !K && E.current.reset(), _ || Ge(), !0), [N, G, w, _, J, E]), ba = M((K) => J.current ? !1 : (he(), xe(), (G.current || I.current) && oe(), G.current = !1, I.current = !1, W.current = !1, L.current = 0, R.current = 0, H.current = Ne(), E.current && !K && E.current.activate(), Ge(), !0), [N, G, I, J, w, E]), Ke = M((K = !1) => J.current || W.current ? !1 : (L.current = Sa(), W.current = !0, We(), he(), E.current && !K && E.current.pause(), !0), [N, J, E]), na = M((K = !1) => J.current || !W.current ? !1 : (W.current = !1, I.current || xe(), G.current || Ge(L.current), R.current && (R.current = Ne()), E.current && !K && E.current.resume(), !0), [N, w, J, L, E]), Ya = M((K, Pe) => (E.current ? (Pe && Ce.current(K, Re), E.current.message(K)) : Pe && Ce.current(K, Re), !0), [m]), Fa = M(() => G.current, [G]), Aa = M(() => I.current, [I]), Xa = M(() => E.current ? E.current.isLeader : null, [E]), et = M(() => E.current ? E.current.isLastActive : null, [E]), Ua = M(() => E.current ? E.current.token : null, [E]), Sa = M(() => {
|
|
9256
9272
|
if (W.current) return L.current;
|
|
9257
|
-
let
|
|
9273
|
+
let K = L.current ? L.current : P.current + w.current, Pe = S.current ? Ne() - S.current : 0, la = Math.floor(K - Pe);
|
|
9258
9274
|
return la < 0 ? 0 : Math.abs(la);
|
|
9259
|
-
}, [
|
|
9260
|
-
let
|
|
9261
|
-
return
|
|
9262
|
-
}, [k,
|
|
9263
|
-
let
|
|
9264
|
-
return
|
|
9265
|
-
}, [k,
|
|
9266
|
-
|
|
9275
|
+
}, [w, P, I, L, S]), ea = M(() => Math.round(Ne() - H.current), [H]), Ca = M(() => Math.round(Ne() - D.current), [D]), va = M(() => k.current ? new Date(k.current) : null, [k]), Oa = M(() => S.current ? new Date(S.current) : null, [S]), Ba = M(() => G.current ? Math.round(Ne() - k.current + F.current) : Math.round(F.current), [k, F]), Ea = M(() => G.current ? Math.round(Ne() - k.current + A.current) : Math.round(A.current), [k, A]), Ha = M(() => {
|
|
9276
|
+
let K = Math.round(ea() - Ba());
|
|
9277
|
+
return K >= 0 ? K : 0;
|
|
9278
|
+
}, [k, F]), Wa = M(() => {
|
|
9279
|
+
let K = Math.round(Ca() - Ea());
|
|
9280
|
+
return K >= 0 ? K : 0;
|
|
9281
|
+
}, [k, F]);
|
|
9282
|
+
fe(() => {
|
|
9267
9283
|
if (g > 0 && p > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
9268
9284
|
u && Js(u);
|
|
9269
|
-
let
|
|
9270
|
-
E.current && E.current.close(), be.cancel && be.cancel(),
|
|
9285
|
+
let K = () => {
|
|
9286
|
+
E.current && E.current.close(), be.cancel && be.cancel(), he(), We(!0);
|
|
9271
9287
|
};
|
|
9272
|
-
return _a && window.addEventListener("beforeunload",
|
|
9273
|
-
_a && window.removeEventListener("beforeunload",
|
|
9288
|
+
return _a && window.addEventListener("beforeunload", K), () => {
|
|
9289
|
+
_a && window.removeEventListener("beforeunload", K), E.current && E.current.close(), be.cancel && be.cancel(), he(), We(!0);
|
|
9274
9290
|
};
|
|
9275
|
-
}, []),
|
|
9291
|
+
}, []), fe(() => {
|
|
9276
9292
|
E.current && E.current.close(), U ? E.current = new js({ channelName: C, leaderElection: T, onPrompt: () => {
|
|
9277
9293
|
Xe();
|
|
9278
9294
|
}, onIdle: () => {
|
|
9279
|
-
|
|
9295
|
+
Me();
|
|
9280
9296
|
}, onActive: () => {
|
|
9281
|
-
|
|
9282
|
-
}, onMessage: (
|
|
9283
|
-
|
|
9284
|
-
}, start: ia, reset: ua, activate: ba, pause:
|
|
9285
|
-
}, [U, C, T, Q,
|
|
9286
|
-
|
|
9287
|
-
}, [_, y, h,
|
|
9288
|
-
if (!
|
|
9289
|
-
let
|
|
9290
|
-
if (
|
|
9291
|
-
y ? ia() :
|
|
9297
|
+
oe();
|
|
9298
|
+
}, onMessage: (K) => {
|
|
9299
|
+
Ce.current(K, Re);
|
|
9300
|
+
}, start: ia, reset: ua, activate: ba, pause: Ke, resume: na }) : E.current = null;
|
|
9301
|
+
}, [U, C, T, Q, X, q, Ce, ia, ua, Ke, na]), fe(() => {
|
|
9302
|
+
z.current || (he(), We(!0)), !(_ || h) && (y ? ia() : xe());
|
|
9303
|
+
}, [_, y, h, z]), fe(() => {
|
|
9304
|
+
if (!z.current) {
|
|
9305
|
+
let K = [...(/* @__PURE__ */ new Set([...s, ...b])).values()];
|
|
9306
|
+
if (We(), O.current = K, le.current = n, te.current = b, _ || h) return;
|
|
9307
|
+
y ? ia() : xe();
|
|
9292
9308
|
}
|
|
9293
|
-
}, [n, JSON.stringify(s), JSON.stringify(b),
|
|
9294
|
-
|
|
9295
|
-
}, [
|
|
9296
|
-
let Re = { message: Ya, start: ia, reset: ua, activate: ba, pause:
|
|
9297
|
-
d =
|
|
9298
|
-
}, setOnPrompt: (
|
|
9299
|
-
l =
|
|
9300
|
-
}, setOnIdle: (
|
|
9301
|
-
i =
|
|
9302
|
-
}, setOnActive: (
|
|
9303
|
-
r =
|
|
9304
|
-
}, setOnAction: (
|
|
9305
|
-
o =
|
|
9306
|
-
}, setOnMessage: (
|
|
9307
|
-
m =
|
|
9309
|
+
}, [n, JSON.stringify(s), JSON.stringify(b), z, h, _, y]), fe(() => {
|
|
9310
|
+
z.current && (z.current = !1);
|
|
9311
|
+
}, [z]);
|
|
9312
|
+
let Re = { message: Ya, start: ia, reset: ua, activate: ba, pause: Ke, resume: na, isIdle: Fa, isPrompted: Aa, isLeader: Xa, isLastActiveTab: et, getTabId: Ua, getRemainingTime: Sa, getElapsedTime: ea, getTotalElapsedTime: Ca, getLastIdleTime: va, getLastActiveTime: Oa, getIdleTime: Ba, getTotalIdleTime: Ea, getActiveTime: Ha, getTotalActiveTime: Wa, setOnPresenceChange: (K) => {
|
|
9313
|
+
d = K, Z.current = K;
|
|
9314
|
+
}, setOnPrompt: (K) => {
|
|
9315
|
+
l = K, Q.current = K;
|
|
9316
|
+
}, setOnIdle: (K) => {
|
|
9317
|
+
i = K, X.current = K;
|
|
9318
|
+
}, setOnActive: (K) => {
|
|
9319
|
+
r = K, q.current = K;
|
|
9320
|
+
}, setOnAction: (K) => {
|
|
9321
|
+
o = K, pe.current = K;
|
|
9322
|
+
}, setOnMessage: (K) => {
|
|
9323
|
+
m = K, Ce.current = K;
|
|
9308
9324
|
} };
|
|
9309
9325
|
return Re;
|
|
9310
9326
|
}
|
|
@@ -9317,13 +9333,13 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9317
9333
|
timeout: n,
|
|
9318
9334
|
throttle: 500
|
|
9319
9335
|
}), tm = ({ options: e } = {}) => {
|
|
9320
|
-
const { commonInboxApi: t } = wa(), { getToken: a, lng: n } = re(), s = a?.(), u =
|
|
9336
|
+
const { commonInboxApi: t } = wa(), { getToken: a, lng: n } = re(), s = a?.(), u = Je(n);
|
|
9321
9337
|
return Y({
|
|
9322
9338
|
queryKey: ["inboxList"],
|
|
9323
9339
|
queryFn: async () => await t(),
|
|
9324
9340
|
select: (b) => {
|
|
9325
9341
|
const { data: d } = b;
|
|
9326
|
-
return
|
|
9342
|
+
return Ee(d, (i) => {
|
|
9327
9343
|
const { internal_notifications_language: r } = i;
|
|
9328
9344
|
return {
|
|
9329
9345
|
...i,
|
|
@@ -9339,7 +9355,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9339
9355
|
});
|
|
9340
9356
|
}, im = ({ options: e } = {}) => {
|
|
9341
9357
|
const { commonReadInboxApi: t } = wa();
|
|
9342
|
-
return
|
|
9358
|
+
return ee({
|
|
9343
9359
|
mutationKey: ["readInbox"],
|
|
9344
9360
|
mutationFn: async (a) => await t(a),
|
|
9345
9361
|
...e
|
|
@@ -9412,7 +9428,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9412
9428
|
...e.other
|
|
9413
9429
|
}
|
|
9414
9430
|
], d0 = ({ options: e, formData: t } = {}) => {
|
|
9415
|
-
const { lng: a } = re(), { newsListApi: n } = Nr(), s =
|
|
9431
|
+
const { lng: a } = re(), { newsListApi: n } = Nr(), s = Je(a);
|
|
9416
9432
|
return Y({
|
|
9417
9433
|
queryKey: ["newsList"],
|
|
9418
9434
|
queryFn: () => {
|
|
@@ -9420,7 +9436,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9420
9436
|
return n({ uid: u, params: b });
|
|
9421
9437
|
},
|
|
9422
9438
|
select: (u) => {
|
|
9423
|
-
const { data: b } = u, d = b.data?.filter((i) => i.is_active === 1), l =
|
|
9439
|
+
const { data: b } = u, d = b.data?.filter((i) => i.is_active === 1), l = Ee(d, (i) => {
|
|
9424
9440
|
const r = Be(i.news_language, {
|
|
9425
9441
|
language: s
|
|
9426
9442
|
}) || i.news_language[0];
|
|
@@ -9438,7 +9454,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9438
9454
|
...e
|
|
9439
9455
|
});
|
|
9440
9456
|
}, c0 = ({ options: e, formData: t } = {}) => {
|
|
9441
|
-
const { lng: a } = re(), { newsListApi: n } = Nr(), s =
|
|
9457
|
+
const { lng: a } = re(), { newsListApi: n } = Nr(), s = Je(a);
|
|
9442
9458
|
return Y({
|
|
9443
9459
|
queryKey: ["newsList"],
|
|
9444
9460
|
queryFn: () => {
|
|
@@ -9694,16 +9710,16 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9694
9710
|
queryKey: ["depositV2", e],
|
|
9695
9711
|
queryFn: () => a({ paramsData: e }),
|
|
9696
9712
|
select: (n) => {
|
|
9697
|
-
const { third_party: s, bank: u, vip: b } = n, d =
|
|
9713
|
+
const { third_party: s, bank: u, vip: b } = n, d = Ee(s, (l) => ({
|
|
9698
9714
|
...l,
|
|
9699
|
-
providerList:
|
|
9715
|
+
providerList: Ee(l.providers, (i) => ({
|
|
9700
9716
|
...i,
|
|
9701
9717
|
providerUid: i.uid,
|
|
9702
|
-
providerImageUrl: `${
|
|
9718
|
+
providerImageUrl: `${Qe}/paymentIcon/${Ii(i.provider_name)}.png`,
|
|
9703
9719
|
providerMax: i.max,
|
|
9704
9720
|
providerMin: i.min
|
|
9705
9721
|
})),
|
|
9706
|
-
methodImageUrl: `${
|
|
9722
|
+
methodImageUrl: `${Qe}/paymentIcon/${Ii(l.method_name)}pay.png`
|
|
9707
9723
|
}));
|
|
9708
9724
|
return {
|
|
9709
9725
|
bank: u,
|
|
@@ -9715,14 +9731,14 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9715
9731
|
});
|
|
9716
9732
|
}, om = ({ options: e } = {}) => {
|
|
9717
9733
|
const { depositApi: t } = Le();
|
|
9718
|
-
return
|
|
9734
|
+
return ee({
|
|
9719
9735
|
mutationKey: ["depositAction"],
|
|
9720
9736
|
mutationFn: async (a) => t(a),
|
|
9721
9737
|
...e
|
|
9722
9738
|
});
|
|
9723
9739
|
}, sm = ({ options: e } = {}) => {
|
|
9724
9740
|
const { withdrawApi: t } = Le();
|
|
9725
|
-
return
|
|
9741
|
+
return ee({
|
|
9726
9742
|
mutationKey: ["withdrawAction"],
|
|
9727
9743
|
mutationFn: async (a) => t(a),
|
|
9728
9744
|
...e
|
|
@@ -9743,14 +9759,14 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9743
9759
|
});
|
|
9744
9760
|
}, pm = ({ options: e } = {}) => {
|
|
9745
9761
|
const { bankDepositApi: t } = Le();
|
|
9746
|
-
return
|
|
9762
|
+
return ee({
|
|
9747
9763
|
mutationKey: ["bankDeposit"],
|
|
9748
9764
|
mutationFn: async (a) => t(a),
|
|
9749
9765
|
...e
|
|
9750
9766
|
});
|
|
9751
9767
|
}, gm = ({ options: e } = {}) => {
|
|
9752
9768
|
const { companyPaymentDepositApi: t } = Le();
|
|
9753
|
-
return
|
|
9769
|
+
return ee({
|
|
9754
9770
|
mutationKey: ["companyPaymentDeposit"],
|
|
9755
9771
|
mutationFn: async (a) => t(a),
|
|
9756
9772
|
...e
|
|
@@ -9764,21 +9780,21 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
9764
9780
|
});
|
|
9765
9781
|
}, f0 = ({ options: e } = {}) => {
|
|
9766
9782
|
const { redeemCodeDepositApi: t } = Le();
|
|
9767
|
-
return
|
|
9783
|
+
return ee({
|
|
9768
9784
|
mutationKey: ["redeemCodeDeposit"],
|
|
9769
9785
|
mutationFn: async (a) => t(a),
|
|
9770
9786
|
...e
|
|
9771
9787
|
});
|
|
9772
9788
|
}, _0 = ({ options: e } = {}) => {
|
|
9773
9789
|
const { invoiceApi: t } = Le();
|
|
9774
|
-
return
|
|
9790
|
+
return ee({
|
|
9775
9791
|
mutationKey: ["invoiceAction"],
|
|
9776
9792
|
mutationFn: async (a) => t(a),
|
|
9777
9793
|
...e
|
|
9778
9794
|
});
|
|
9779
9795
|
}, y0 = ({ options: e } = {}) => {
|
|
9780
9796
|
const { updateInvoiceApi: t } = Le();
|
|
9781
|
-
return
|
|
9797
|
+
return ee({
|
|
9782
9798
|
mutationKey: ["updateInvoiceAction"],
|
|
9783
9799
|
mutationFn: async (a) => t(a),
|
|
9784
9800
|
...e
|
|
@@ -10009,7 +10025,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
10009
10025
|
});
|
|
10010
10026
|
}, Sm = ({ options: e } = {}) => {
|
|
10011
10027
|
const { receiveRebateApi: t } = zr();
|
|
10012
|
-
return
|
|
10028
|
+
return ee({
|
|
10013
10029
|
mutationKey: ["receiveRebate"],
|
|
10014
10030
|
mutationFn: async () => t(),
|
|
10015
10031
|
...e
|
|
@@ -10054,7 +10070,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
10054
10070
|
},
|
|
10055
10071
|
select: (n) => {
|
|
10056
10072
|
try {
|
|
10057
|
-
const s =
|
|
10073
|
+
const s = Ee(j(n, "data.data", []), (u) => {
|
|
10058
10074
|
const {
|
|
10059
10075
|
wagering_restricted_amount: b,
|
|
10060
10076
|
claimed_amount: d
|
|
@@ -10093,7 +10109,7 @@ const p0 = ({ onIdle: e, onActive: t, onAction: a, timeout: n = 6e5 }) => em({
|
|
|
10093
10109
|
});
|
|
10094
10110
|
}, Dm = ({ options: e } = {}) => {
|
|
10095
10111
|
const { redeemRewardApi: t } = gt();
|
|
10096
|
-
return
|
|
10112
|
+
return ee({
|
|
10097
10113
|
mutationKey: ["redeemReward"],
|
|
10098
10114
|
mutationFn: async (a) => await t(a),
|
|
10099
10115
|
...e
|
|
@@ -10311,11 +10327,11 @@ const Vr = [], Rm = () => [
|
|
|
10311
10327
|
roulettesDrawLogApi: n
|
|
10312
10328
|
};
|
|
10313
10329
|
}, N0 = ({ options: e } = {}) => {
|
|
10314
|
-
const { lng: t } = re(), a =
|
|
10330
|
+
const { lng: t } = re(), a = Je(t || "tw"), { roulettesListApi: n } = Wi();
|
|
10315
10331
|
return Y({
|
|
10316
10332
|
queryKey: ["roulettesList"],
|
|
10317
10333
|
queryFn: () => n(),
|
|
10318
|
-
select: (s) => ({ list:
|
|
10334
|
+
select: (s) => ({ list: Ee(j(s, "list", []), (b) => {
|
|
10319
10335
|
const d = Be(
|
|
10320
10336
|
j(b, "roulettes_copywriting", []),
|
|
10321
10337
|
{ language: a }
|
|
@@ -10329,7 +10345,7 @@ const Vr = [], Rm = () => [
|
|
|
10329
10345
|
});
|
|
10330
10346
|
}, L0 = ({ options: e } = {}) => {
|
|
10331
10347
|
const { redeemRoulettesApi: t } = Wi();
|
|
10332
|
-
return
|
|
10348
|
+
return ee({
|
|
10333
10349
|
mutationKey: ["redeemRoulettes"],
|
|
10334
10350
|
mutationFn: async (a) => t(a),
|
|
10335
10351
|
...e
|
|
@@ -10524,7 +10540,7 @@ const Vr = [], Rm = () => [
|
|
|
10524
10540
|
});
|
|
10525
10541
|
}, H0 = ({ options: e } = {}) => {
|
|
10526
10542
|
const { createStoreOrderApi: t } = ma(), a = ya(), { onSuccess: n, ...s } = e || {};
|
|
10527
|
-
return
|
|
10543
|
+
return ee({
|
|
10528
10544
|
mutationKey: ["market", "createStoreOrder"],
|
|
10529
10545
|
mutationFn: async (u) => t(u),
|
|
10530
10546
|
onSuccess: (u, b, d) => {
|
|
@@ -10536,7 +10552,7 @@ const Vr = [], Rm = () => [
|
|
|
10536
10552
|
});
|
|
10537
10553
|
}, W0 = ({ options: e } = {}) => {
|
|
10538
10554
|
const { updateStoreOrderApi: t } = ma(), a = ya(), { onSuccess: n, ...s } = e || {};
|
|
10539
|
-
return
|
|
10555
|
+
return ee({
|
|
10540
10556
|
mutationKey: ["market", "updateStoreOrder"],
|
|
10541
10557
|
mutationFn: async (u) => t(u),
|
|
10542
10558
|
onSuccess: (u, b, d) => {
|
|
@@ -10582,7 +10598,7 @@ const Vr = [], Rm = () => [
|
|
|
10582
10598
|
redeemTreasureApi: a
|
|
10583
10599
|
};
|
|
10584
10600
|
}, I0 = ({ paramsData: e, options: t } = {}) => {
|
|
10585
|
-
const { client: a, lng: n } = re(), s =
|
|
10601
|
+
const { client: a, lng: n } = re(), s = Je(n || "tw"), { treasureListApi: u } = Jr();
|
|
10586
10602
|
return Y({
|
|
10587
10603
|
queryKey: ["treasureList", e],
|
|
10588
10604
|
queryFn: () => u(e),
|
|
@@ -10594,7 +10610,7 @@ const Vr = [], Rm = () => [
|
|
|
10594
10610
|
last_page: j(d, "last_page", 1)
|
|
10595
10611
|
};
|
|
10596
10612
|
return {
|
|
10597
|
-
list:
|
|
10613
|
+
list: Ee(j(d, "data", []), (r) => {
|
|
10598
10614
|
const o = Be(r.treasure_copywriting, {
|
|
10599
10615
|
language: s
|
|
10600
10616
|
});
|
|
@@ -10611,7 +10627,7 @@ const Vr = [], Rm = () => [
|
|
|
10611
10627
|
});
|
|
10612
10628
|
}, z0 = ({ options: e } = {}) => {
|
|
10613
10629
|
const { redeemTreasureApi: t } = Jr();
|
|
10614
|
-
return
|
|
10630
|
+
return ee({
|
|
10615
10631
|
mutationKey: ["redeemTreasure"],
|
|
10616
10632
|
mutationFn: async (a) => t(a),
|
|
10617
10633
|
...e
|
|
@@ -10628,7 +10644,7 @@ const Vr = [], Rm = () => [
|
|
|
10628
10644
|
queryKey: ["vipInfo"],
|
|
10629
10645
|
queryFn: async () => n(),
|
|
10630
10646
|
select: (s) => {
|
|
10631
|
-
const { data: u } = s, b = j(u, "data", []), d =
|
|
10647
|
+
const { data: u } = s, b = j(u, "data", []), d = Ee(b, (i) => ({
|
|
10632
10648
|
currentWager: i.wagering || i.value,
|
|
10633
10649
|
currentStatus: i.status,
|
|
10634
10650
|
currentOverflow: i.promotion_overflow,
|
|
@@ -10641,7 +10657,7 @@ const Vr = [], Rm = () => [
|
|
|
10641
10657
|
currentType: u.type,
|
|
10642
10658
|
currentOverflow: u.promotion_overflow,
|
|
10643
10659
|
nextLevel: u.promotion_level,
|
|
10644
|
-
typeList:
|
|
10660
|
+
typeList: Ee(d, (i) => i.type),
|
|
10645
10661
|
currentWagerKeyBy: l
|
|
10646
10662
|
};
|
|
10647
10663
|
},
|
|
@@ -10657,14 +10673,14 @@ const Vr = [], Rm = () => [
|
|
|
10657
10673
|
},
|
|
10658
10674
|
select: (s) => {
|
|
10659
10675
|
const u = ta(s) ? s : s.data;
|
|
10660
|
-
return
|
|
10676
|
+
return Ee(u, (d) => {
|
|
10661
10677
|
const {
|
|
10662
10678
|
vip_criteria: l,
|
|
10663
10679
|
vip_payment_tags: i,
|
|
10664
10680
|
vip_withdrawal_rate: r,
|
|
10665
10681
|
rebate_range: o,
|
|
10666
10682
|
vip_game_rebate: m
|
|
10667
|
-
} = d, g = Be(l, { currency_code: a }) || {}, p = Be(i, { currency_code: a }) || {}, f = r, y =
|
|
10683
|
+
} = d, g = Be(l, { currency_code: a }) || {}, p = Be(i, { currency_code: a }) || {}, f = r, y = Ee(o, (U) => ({
|
|
10668
10684
|
...U,
|
|
10669
10685
|
rebateRange: JSON.parse(U.rebate_range)
|
|
10670
10686
|
})), _ = j(m, "[0]", {}), c = {
|
|
@@ -10673,7 +10689,7 @@ const Vr = [], Rm = () => [
|
|
|
10673
10689
|
};
|
|
10674
10690
|
return {
|
|
10675
10691
|
...d,
|
|
10676
|
-
vipImageUrl: `${
|
|
10692
|
+
vipImageUrl: `${Qe}/vip/vip${d.level}_l.avif`,
|
|
10677
10693
|
vipRule: g,
|
|
10678
10694
|
vipWithdraw: p,
|
|
10679
10695
|
vipWithdrawFeeRate: f,
|
|
@@ -10689,13 +10705,13 @@ const Vr = [], Rm = () => [
|
|
|
10689
10705
|
}) => ({
|
|
10690
10706
|
vipList: Bm({ options: e.vipList })
|
|
10691
10707
|
}), Z0 = ({ onMessage: e } = {}) => {
|
|
10692
|
-
const [t, a] =
|
|
10708
|
+
const [t, a] = je(!1), [n, s] = je([]), u = me(e);
|
|
10693
10709
|
u.current = e;
|
|
10694
10710
|
const b = M((_) => {
|
|
10695
10711
|
const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("zh-TW");
|
|
10696
10712
|
s((U) => [...U, { time: c, message: _ }]);
|
|
10697
10713
|
}, []);
|
|
10698
|
-
|
|
10714
|
+
fe(() => {
|
|
10699
10715
|
if (window.chrome && window.chrome.webview) {
|
|
10700
10716
|
a(!0), b("WebView2 環境已就緒");
|
|
10701
10717
|
const _ = (c) => {
|
|
@@ -10815,7 +10831,7 @@ const Vr = [], Rm = () => [
|
|
|
10815
10831
|
// 越南名稱
|
|
10816
10832
|
gameNameTw: h
|
|
10817
10833
|
// 繁體中文名稱
|
|
10818
|
-
} = e, D = e?.[`gameName${a}`], H = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.webp`, k = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.gif`, S = `${st}/${bt}/en/${i}/${ot(n, / /g, "_")}.webp`,
|
|
10834
|
+
} = e, D = e?.[`gameName${a}`], H = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.webp`, k = `${st}/${bt}/${t}/${i}/${ot(n, / /g, "_")}.gif`, S = `${st}/${bt}/en/${i}/${ot(n, / /g, "_")}.webp`, F = `${st}/${bt}/en/${i}/${ot(n, / /g, "_")}.gif`, A = M(
|
|
10819
10835
|
({ long: R = !1, preferAnimated: L = !1 } = {}) => Dl({
|
|
10820
10836
|
lng: t,
|
|
10821
10837
|
gamePlatform: i,
|
|
@@ -10848,8 +10864,8 @@ const Vr = [], Rm = () => [
|
|
|
10848
10864
|
gameImageUrl: H,
|
|
10849
10865
|
gameImageUrlAnimated: k,
|
|
10850
10866
|
fallbackGameImageUrl: S,
|
|
10851
|
-
fallbackGameImageUrlAnimated:
|
|
10852
|
-
gameImageSources:
|
|
10867
|
+
fallbackGameImageUrlAnimated: F,
|
|
10868
|
+
gameImageSources: A,
|
|
10853
10869
|
popularityRanking: y,
|
|
10854
10870
|
isInvalidBet: _,
|
|
10855
10871
|
haveJackpot: c
|
|
@@ -10887,7 +10903,7 @@ const Vr = [], Rm = () => [
|
|
|
10887
10903
|
// 臨時維護開始時間
|
|
10888
10904
|
temp_maintenance_end_time: o
|
|
10889
10905
|
// 臨時維護結束時間
|
|
10890
|
-
} = e || {}, m = `${
|
|
10906
|
+
} = e || {}, m = `${Qe}/${_r}/${Hm(n, t)}.png`;
|
|
10891
10907
|
return {
|
|
10892
10908
|
subPlatformEnum: a,
|
|
10893
10909
|
platformEnum: n,
|
|
@@ -10901,7 +10917,7 @@ const Vr = [], Rm = () => [
|
|
|
10901
10917
|
tempMaintenanceEndTime: o,
|
|
10902
10918
|
platformImageUrl: m
|
|
10903
10919
|
};
|
|
10904
|
-
}, Wm = (e = {}) => !ri(e) || Fe(e) ? [] : li(e), ar = (e = []) => !ta(e) || Fe(e) ? [] :
|
|
10920
|
+
}, Wm = (e = {}) => !ri(e) || Fe(e) ? [] : li(e), ar = (e = []) => !ta(e) || Fe(e) ? [] : Ee(e, "platform"), Im = (e = []) => !ta(e) || Fe(e) ? [] : Ee(e, "gameTypeName"), zm = (e = []) => !ta(e) || Fe(e) ? [] : Ee(e, "game_subtype"), Vm = (e = {}) => !ri(e) || Fe(e) ? [] : li(e), Jm = (e = [], t = []) => !ta(e) || Fe(e) ? {} : !ta(t) || Fe(t) ? {} : e.reduce((a, n) => {
|
|
10905
10921
|
const s = t.map((u) => u.game_subtype);
|
|
10906
10922
|
return s.forEach((u) => {
|
|
10907
10923
|
a[u] = a[u] || [];
|
|
@@ -10971,8 +10987,8 @@ const Vr = [], Rm = () => [
|
|
|
10971
10987
|
gameList: e,
|
|
10972
10988
|
allGameTypes: a,
|
|
10973
10989
|
allPlatforms: t
|
|
10974
|
-
}), c =
|
|
10975
|
-
const H = `${
|
|
10990
|
+
}), c = Ee(t, (D) => {
|
|
10991
|
+
const H = `${Qe}/${_r}/${D.platformEnum}.png`;
|
|
10976
10992
|
return {
|
|
10977
10993
|
...D,
|
|
10978
10994
|
platformImageUrl: H
|
|
@@ -11046,7 +11062,7 @@ const Vr = [], Rm = () => [
|
|
|
11046
11062
|
},
|
|
11047
11063
|
user: { favorite: [] }
|
|
11048
11064
|
}, Qm = ({ enabled: e = !0 } = {}) => {
|
|
11049
|
-
const { getToken: t } = re(), { userFavoriteGameApi: a, userGameListApi: n } =
|
|
11065
|
+
const { getToken: t } = re(), { userFavoriteGameApi: a, userGameListApi: n } = se(), { data: s, isLoading: u, error: b, refetch: d } = Y({
|
|
11050
11066
|
queryKey: ["gamesInfo"],
|
|
11051
11067
|
queryFn: async () => {
|
|
11052
11068
|
let l = {}, i = {};
|
|
@@ -37615,11 +37631,11 @@ const Vr = [], Rm = () => [
|
|
|
37615
37631
|
autoFetch: t = !1,
|
|
37616
37632
|
mockData: a = !1
|
|
37617
37633
|
}) => {
|
|
37618
|
-
|
|
37634
|
+
fe(() => {
|
|
37619
37635
|
a && Ym(!0);
|
|
37620
37636
|
}, [a]);
|
|
37621
37637
|
const n = Qm({ enabled: t });
|
|
37622
|
-
return /* @__PURE__ */
|
|
37638
|
+
return /* @__PURE__ */ ie.jsx(yr.Provider, { value: n, children: e });
|
|
37623
37639
|
};
|
|
37624
37640
|
function Q0({
|
|
37625
37641
|
children: e,
|
|
@@ -37629,7 +37645,7 @@ function Q0({
|
|
|
37629
37645
|
standaloneViewportFix: s = !0,
|
|
37630
37646
|
...u
|
|
37631
37647
|
}) {
|
|
37632
|
-
|
|
37648
|
+
fe(() => {
|
|
37633
37649
|
if (s)
|
|
37634
37650
|
return Sl();
|
|
37635
37651
|
}, [s]);
|
|
@@ -37647,7 +37663,7 @@ function Q0({
|
|
|
37647
37663
|
}),
|
|
37648
37664
|
[]
|
|
37649
37665
|
), i = n || l;
|
|
37650
|
-
return /* @__PURE__ */
|
|
37666
|
+
return /* @__PURE__ */ ie.jsx(ul, { client: i, children: /* @__PURE__ */ ie.jsx(pr.Provider, { value: { client: b, formDataClient: d, ...u }, children: /* @__PURE__ */ ie.jsx(vl, { children: /* @__PURE__ */ ie.jsx(
|
|
37651
37667
|
Xm,
|
|
37652
37668
|
{
|
|
37653
37669
|
autoFetch: t,
|
|
@@ -37671,8 +37687,8 @@ const Y0 = () => {
|
|
|
37671
37687
|
});
|
|
37672
37688
|
}
|
|
37673
37689
|
}
|
|
37674
|
-
}), b =
|
|
37675
|
-
return
|
|
37690
|
+
}), b = me(!1);
|
|
37691
|
+
return fe(() => {
|
|
37676
37692
|
if (b.current) return;
|
|
37677
37693
|
const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), i = d.get("bind_id");
|
|
37678
37694
|
l && i && (b.current = !0, l === "line" ? t({ bindType: l, bindId: i }) : console.warn(`Unsupported bind type: ${l}`));
|
|
@@ -37684,7 +37700,7 @@ const Y0 = () => {
|
|
|
37684
37700
|
enabled: n = au,
|
|
37685
37701
|
backendMessages: s = null
|
|
37686
37702
|
}) => {
|
|
37687
|
-
const [u, b] =
|
|
37703
|
+
const [u, b] = je(!1), [d, l] = je(!1), [i, r] = je(""), [o, m] = je(""), [g, p] = je("toast"), { store: f } = re() || {}, y = ka(
|
|
37688
37704
|
() => s ? Object.keys(s) : [],
|
|
37689
37705
|
[s]
|
|
37690
37706
|
), _ = ka(() => {
|
|
@@ -37718,7 +37734,7 @@ const Y0 = () => {
|
|
|
37718
37734
|
});
|
|
37719
37735
|
}, U = t ?? null, C = (h, D) => {
|
|
37720
37736
|
console.log("[ws-dev]", h, D), e(D);
|
|
37721
|
-
}, v = (h, D, H = "#444") => /* @__PURE__ */
|
|
37737
|
+
}, v = (h, D, H = "#444") => /* @__PURE__ */ ie.jsx(
|
|
37722
37738
|
"button",
|
|
37723
37739
|
{
|
|
37724
37740
|
type: "button",
|
|
@@ -37740,7 +37756,7 @@ const Y0 = () => {
|
|
|
37740
37756
|
children: h
|
|
37741
37757
|
}
|
|
37742
37758
|
), T = typeof window < "u" && window.location.pathname.includes("gamebox");
|
|
37743
|
-
return /* @__PURE__ */
|
|
37759
|
+
return /* @__PURE__ */ ie.jsxs(
|
|
37744
37760
|
"div",
|
|
37745
37761
|
{
|
|
37746
37762
|
style: {
|
|
@@ -37750,7 +37766,7 @@ const Y0 = () => {
|
|
|
37750
37766
|
zIndex: 9999999
|
|
37751
37767
|
},
|
|
37752
37768
|
children: [
|
|
37753
|
-
/* @__PURE__ */
|
|
37769
|
+
/* @__PURE__ */ ie.jsx(
|
|
37754
37770
|
"button",
|
|
37755
37771
|
{
|
|
37756
37772
|
type: "button",
|
|
@@ -37768,7 +37784,7 @@ const Y0 = () => {
|
|
|
37768
37784
|
children: u ? "▼ WS 測試面板" : "▶ WS 測試面板"
|
|
37769
37785
|
}
|
|
37770
37786
|
),
|
|
37771
|
-
u && /* @__PURE__ */
|
|
37787
|
+
u && /* @__PURE__ */ ie.jsxs(
|
|
37772
37788
|
"div",
|
|
37773
37789
|
{
|
|
37774
37790
|
style: {
|
|
@@ -37782,7 +37798,7 @@ const Y0 = () => {
|
|
|
37782
37798
|
borderRadius: "8px"
|
|
37783
37799
|
},
|
|
37784
37800
|
children: [
|
|
37785
|
-
/* @__PURE__ */
|
|
37801
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { fontSize: "10px", color: "#aaa", marginBottom: "6px" }, children: [
|
|
37786
37802
|
"uid:",
|
|
37787
37803
|
String(U ?? "無"),
|
|
37788
37804
|
" / platform:",
|
|
@@ -37860,7 +37876,7 @@ const Y0 = () => {
|
|
|
37860
37876
|
},
|
|
37861
37877
|
"#c62828"
|
|
37862
37878
|
),
|
|
37863
|
-
y.length > 0 && /* @__PURE__ */
|
|
37879
|
+
y.length > 0 && /* @__PURE__ */ ie.jsxs(
|
|
37864
37880
|
"div",
|
|
37865
37881
|
{
|
|
37866
37882
|
style: {
|
|
@@ -37869,7 +37885,7 @@ const Y0 = () => {
|
|
|
37869
37885
|
borderTop: "1px solid rgba(211,181,82,0.3)"
|
|
37870
37886
|
},
|
|
37871
37887
|
children: [
|
|
37872
|
-
/* @__PURE__ */
|
|
37888
|
+
/* @__PURE__ */ ie.jsxs(
|
|
37873
37889
|
"button",
|
|
37874
37890
|
{
|
|
37875
37891
|
type: "button",
|
|
@@ -37895,11 +37911,11 @@ const Y0 = () => {
|
|
|
37895
37911
|
]
|
|
37896
37912
|
}
|
|
37897
37913
|
),
|
|
37898
|
-
d && /* @__PURE__ */
|
|
37899
|
-
/* @__PURE__ */
|
|
37914
|
+
d && /* @__PURE__ */ ie.jsxs("div", { style: { marginTop: "6px" }, children: [
|
|
37915
|
+
/* @__PURE__ */ ie.jsx("div", { style: { display: "flex", gap: "4px", marginBottom: "5px" }, children: [
|
|
37900
37916
|
["toast", "Toast(攔截器)"],
|
|
37901
37917
|
["socket", "Socket(彈窗)"]
|
|
37902
|
-
].map(([h, D]) => /* @__PURE__ */
|
|
37918
|
+
].map(([h, D]) => /* @__PURE__ */ ie.jsx(
|
|
37903
37919
|
"button",
|
|
37904
37920
|
{
|
|
37905
37921
|
type: "button",
|
|
@@ -37919,7 +37935,7 @@ const Y0 = () => {
|
|
|
37919
37935
|
},
|
|
37920
37936
|
h
|
|
37921
37937
|
)) }),
|
|
37922
|
-
g === "socket" && U === null && /* @__PURE__ */
|
|
37938
|
+
g === "socket" && U === null && /* @__PURE__ */ ie.jsx(
|
|
37923
37939
|
"div",
|
|
37924
37940
|
{
|
|
37925
37941
|
style: {
|
|
@@ -37931,8 +37947,8 @@ const Y0 = () => {
|
|
|
37931
37947
|
children: "⚠ 未登入(uid 為空):socket 推播會因 isForMember 不成立而被 忽略,點了不會有反應。請先登入,或改用 Toast 測。"
|
|
37932
37948
|
}
|
|
37933
37949
|
),
|
|
37934
|
-
/* @__PURE__ */
|
|
37935
|
-
/* @__PURE__ */
|
|
37950
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { display: "flex", gap: "4px", marginBottom: "5px" }, children: [
|
|
37951
|
+
/* @__PURE__ */ ie.jsx(
|
|
37936
37952
|
"input",
|
|
37937
37953
|
{
|
|
37938
37954
|
value: o,
|
|
@@ -37950,7 +37966,7 @@ const Y0 = () => {
|
|
|
37950
37966
|
}
|
|
37951
37967
|
}
|
|
37952
37968
|
),
|
|
37953
|
-
/* @__PURE__ */
|
|
37969
|
+
/* @__PURE__ */ ie.jsx(
|
|
37954
37970
|
"button",
|
|
37955
37971
|
{
|
|
37956
37972
|
type: "button",
|
|
@@ -37969,7 +37985,7 @@ const Y0 = () => {
|
|
|
37969
37985
|
}
|
|
37970
37986
|
)
|
|
37971
37987
|
] }),
|
|
37972
|
-
/* @__PURE__ */
|
|
37988
|
+
/* @__PURE__ */ ie.jsx(
|
|
37973
37989
|
"input",
|
|
37974
37990
|
{
|
|
37975
37991
|
value: i,
|
|
@@ -37988,9 +38004,9 @@ const Y0 = () => {
|
|
|
37988
38004
|
}
|
|
37989
38005
|
}
|
|
37990
38006
|
),
|
|
37991
|
-
/* @__PURE__ */
|
|
37992
|
-
_.length === 0 && /* @__PURE__ */
|
|
37993
|
-
_.map((h) => /* @__PURE__ */
|
|
38007
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { maxHeight: "32vh", overflowY: "auto" }, children: [
|
|
38008
|
+
_.length === 0 && /* @__PURE__ */ ie.jsx("div", { style: { fontSize: "10px", color: "#777", padding: "4px" }, children: "沒有符合的訊息" }),
|
|
38009
|
+
_.map((h) => /* @__PURE__ */ ie.jsxs(
|
|
37994
38010
|
"button",
|
|
37995
38011
|
{
|
|
37996
38012
|
type: "button",
|
|
@@ -38011,9 +38027,9 @@ const Y0 = () => {
|
|
|
38011
38027
|
lineHeight: 1.35
|
|
38012
38028
|
},
|
|
38013
38029
|
children: [
|
|
38014
|
-
/* @__PURE__ */
|
|
38015
|
-
/* @__PURE__ */
|
|
38016
|
-
/* @__PURE__ */
|
|
38030
|
+
/* @__PURE__ */ ie.jsx("span", { style: { color: "#d3b552" }, children: s[h] }),
|
|
38031
|
+
/* @__PURE__ */ ie.jsx("br", {}),
|
|
38032
|
+
/* @__PURE__ */ ie.jsx("span", { style: { opacity: 0.5, wordBreak: "break-all" }, children: h })
|
|
38017
38033
|
]
|
|
38018
38034
|
},
|
|
38019
38035
|
h
|
|
@@ -38023,7 +38039,7 @@ const Y0 = () => {
|
|
|
38023
38039
|
]
|
|
38024
38040
|
}
|
|
38025
38041
|
),
|
|
38026
|
-
/* @__PURE__ */
|
|
38042
|
+
/* @__PURE__ */ ie.jsx("div", { style: { fontSize: "9px", color: "#666", marginTop: "4px" }, children: "僅測試環境顯示;正式站請勿傳 enabled" })
|
|
38027
38043
|
]
|
|
38028
38044
|
}
|
|
38029
38045
|
)
|
|
@@ -38032,7 +38048,7 @@ const Y0 = () => {
|
|
|
38032
38048
|
);
|
|
38033
38049
|
}, ep = ({ onFunction: e = () => {
|
|
38034
38050
|
}, buttonProps: t = {} } = {}) => {
|
|
38035
|
-
const { lineConfig: a } = re(), n =
|
|
38051
|
+
const { lineConfig: a } = re(), n = me(!1), s = j(a, "liffId", ""), u = new URLSearchParams(window.location.search), b = u.get("line_login"), d = u.get("trans_code"), l = u.get("line_id"), i = u.get("line_name"), r = u.get("invite_code"), { mutate: o, isPending: m } = Sr({
|
|
38036
38052
|
options: {
|
|
38037
38053
|
onSuccess: (p) => {
|
|
38038
38054
|
e(p);
|
|
@@ -38040,7 +38056,7 @@ const Y0 = () => {
|
|
|
38040
38056
|
retry: !1
|
|
38041
38057
|
}
|
|
38042
38058
|
});
|
|
38043
|
-
|
|
38059
|
+
fe(() => {
|
|
38044
38060
|
n.current || b === "true" && l && i && (o({
|
|
38045
38061
|
trans_code: d,
|
|
38046
38062
|
line_id: l,
|
|
@@ -38059,7 +38075,7 @@ const Y0 = () => {
|
|
|
38059
38075
|
const g = () => {
|
|
38060
38076
|
window.location.href = `https://liff.line.me/${s}`;
|
|
38061
38077
|
};
|
|
38062
|
-
return s ? /* @__PURE__ */
|
|
38078
|
+
return s ? /* @__PURE__ */ ie.jsx(
|
|
38063
38079
|
"button",
|
|
38064
38080
|
{
|
|
38065
38081
|
className: "line-login-btn",
|
|
@@ -38088,14 +38104,14 @@ var tu = Object.defineProperty, ii = Object.getOwnPropertySymbols, Kr = Object.p
|
|
|
38088
38104
|
};
|
|
38089
38105
|
var Ma;
|
|
38090
38106
|
((e) => {
|
|
38091
|
-
const t = class
|
|
38107
|
+
const t = class ue {
|
|
38092
38108
|
/*-- Constructor (low level) and fields --*/
|
|
38093
38109
|
// Creates a new QR Code with the given version number,
|
|
38094
38110
|
// error correction level, data codeword bytes, and mask number.
|
|
38095
38111
|
// This is a low-level API that most users should not use directly.
|
|
38096
38112
|
// A mid-level API is the encodeSegments() function.
|
|
38097
38113
|
constructor(l, i, r, o) {
|
|
38098
|
-
if (this.version = l, this.errorCorrectionLevel = i, this.modules = [], this.isFunction = [], l <
|
|
38114
|
+
if (this.version = l, this.errorCorrectionLevel = i, this.modules = [], this.isFunction = [], l < ue.MIN_VERSION || l > ue.MAX_VERSION)
|
|
38099
38115
|
throw new RangeError("Version value out of range");
|
|
38100
38116
|
if (o < -1 || o > 7)
|
|
38101
38117
|
throw new RangeError("Mask value out of range");
|
|
@@ -38125,7 +38141,7 @@ var Ma;
|
|
|
38125
38141
|
// ecl argument if it can be done without increasing the version.
|
|
38126
38142
|
static encodeText(l, i) {
|
|
38127
38143
|
const r = e.QrSegment.makeSegments(l);
|
|
38128
|
-
return
|
|
38144
|
+
return ue.encodeSegments(r, i);
|
|
38129
38145
|
}
|
|
38130
38146
|
// Returns a QR Code representing the given binary data at the given error correction level.
|
|
38131
38147
|
// This function always encodes using the binary segment mode, not any text mode. The maximum number of
|
|
@@ -38133,7 +38149,7 @@ var Ma;
|
|
|
38133
38149
|
// The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
|
|
38134
38150
|
static encodeBinary(l, i) {
|
|
38135
38151
|
const r = e.QrSegment.makeBytes(l);
|
|
38136
|
-
return
|
|
38152
|
+
return ue.encodeSegments([r], i);
|
|
38137
38153
|
}
|
|
38138
38154
|
/*-- Static factory functions (mid level) --*/
|
|
38139
38155
|
// Returns a QR Code representing the given segments with the given encoding parameters.
|
|
@@ -38146,11 +38162,11 @@ var Ma;
|
|
|
38146
38162
|
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
38147
38163
|
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
38148
38164
|
static encodeSegments(l, i, r = 1, o = 40, m = -1, g = !0) {
|
|
38149
|
-
if (!(
|
|
38165
|
+
if (!(ue.MIN_VERSION <= r && r <= o && o <= ue.MAX_VERSION) || m < -1 || m > 7)
|
|
38150
38166
|
throw new RangeError("Invalid value");
|
|
38151
38167
|
let p, f;
|
|
38152
38168
|
for (p = r; ; p++) {
|
|
38153
|
-
const U =
|
|
38169
|
+
const U = ue.getNumDataCodewords(p, i) * 8, C = b.getTotalBits(l, p);
|
|
38154
38170
|
if (C <= U) {
|
|
38155
38171
|
f = C;
|
|
38156
38172
|
break;
|
|
@@ -38158,8 +38174,8 @@ var Ma;
|
|
|
38158
38174
|
if (p >= o)
|
|
38159
38175
|
throw new RangeError("Data too long");
|
|
38160
38176
|
}
|
|
38161
|
-
for (const U of [
|
|
38162
|
-
g && f <=
|
|
38177
|
+
for (const U of [ue.Ecc.MEDIUM, ue.Ecc.QUARTILE, ue.Ecc.HIGH])
|
|
38178
|
+
g && f <= ue.getNumDataCodewords(p, U) * 8 && (i = U);
|
|
38163
38179
|
let y = [];
|
|
38164
38180
|
for (const U of l) {
|
|
38165
38181
|
a(U.mode.modeBits, 4, y), a(U.numChars, U.mode.numCharCountBits(p), y);
|
|
@@ -38167,14 +38183,14 @@ var Ma;
|
|
|
38167
38183
|
y.push(C);
|
|
38168
38184
|
}
|
|
38169
38185
|
s(y.length == f);
|
|
38170
|
-
const _ =
|
|
38186
|
+
const _ = ue.getNumDataCodewords(p, i) * 8;
|
|
38171
38187
|
s(y.length <= _), a(0, Math.min(4, _ - y.length), y), a(0, (8 - y.length % 8) % 8, y), s(y.length % 8 == 0);
|
|
38172
38188
|
for (let U = 236; y.length < _; U ^= 253)
|
|
38173
38189
|
a(U, 8, y);
|
|
38174
38190
|
let c = [];
|
|
38175
38191
|
for (; c.length * 8 < y.length; )
|
|
38176
38192
|
c.push(0);
|
|
38177
|
-
return y.forEach((U, C) => c[C >>> 3] |= U << 7 - (C & 7)), new
|
|
38193
|
+
return y.forEach((U, C) => c[C >>> 3] |= U << 7 - (C & 7)), new ue(p, i, c, m);
|
|
38178
38194
|
}
|
|
38179
38195
|
/*-- Accessor methods --*/
|
|
38180
38196
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -38260,15 +38276,15 @@ var Ma;
|
|
|
38260
38276
|
// codewords appended to it, based on this object's version and error correction level.
|
|
38261
38277
|
addEccAndInterleave(l) {
|
|
38262
38278
|
const i = this.version, r = this.errorCorrectionLevel;
|
|
38263
|
-
if (l.length !=
|
|
38279
|
+
if (l.length != ue.getNumDataCodewords(i, r))
|
|
38264
38280
|
throw new RangeError("Invalid argument");
|
|
38265
|
-
const o =
|
|
38281
|
+
const o = ue.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][i], m = ue.ECC_CODEWORDS_PER_BLOCK[r.ordinal][i], g = Math.floor(ue.getNumRawDataModules(i) / 8), p = o - g % o, f = Math.floor(g / o);
|
|
38266
38282
|
let y = [];
|
|
38267
|
-
const _ =
|
|
38283
|
+
const _ = ue.reedSolomonComputeDivisor(m);
|
|
38268
38284
|
for (let U = 0, C = 0; U < o; U++) {
|
|
38269
38285
|
let v = l.slice(C, C + f - m + (U < p ? 0 : 1));
|
|
38270
38286
|
C += v.length;
|
|
38271
|
-
const T =
|
|
38287
|
+
const T = ue.reedSolomonComputeRemainder(v, _);
|
|
38272
38288
|
U < p && v.push(0), y.push(v.concat(T));
|
|
38273
38289
|
}
|
|
38274
38290
|
let c = [];
|
|
@@ -38281,7 +38297,7 @@ var Ma;
|
|
|
38281
38297
|
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
38282
38298
|
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
38283
38299
|
drawCodewords(l) {
|
|
38284
|
-
if (l.length != Math.floor(
|
|
38300
|
+
if (l.length != Math.floor(ue.getNumRawDataModules(this.version) / 8))
|
|
38285
38301
|
throw new RangeError("Invalid argument");
|
|
38286
38302
|
let i = 0;
|
|
38287
38303
|
for (let r = this.size - 1; r >= 1; r -= 2) {
|
|
@@ -38343,25 +38359,25 @@ var Ma;
|
|
|
38343
38359
|
for (let m = 0; m < this.size; m++) {
|
|
38344
38360
|
let g = !1, p = 0, f = [0, 0, 0, 0, 0, 0, 0];
|
|
38345
38361
|
for (let y = 0; y < this.size; y++)
|
|
38346
|
-
this.modules[m][y] == g ? (p++, p == 5 ? l +=
|
|
38347
|
-
l += this.finderPenaltyTerminateAndCount(g, p, f) *
|
|
38362
|
+
this.modules[m][y] == g ? (p++, p == 5 ? l += ue.PENALTY_N1 : p > 5 && l++) : (this.finderPenaltyAddHistory(p, f), g || (l += this.finderPenaltyCountPatterns(f) * ue.PENALTY_N3), g = this.modules[m][y], p = 1);
|
|
38363
|
+
l += this.finderPenaltyTerminateAndCount(g, p, f) * ue.PENALTY_N3;
|
|
38348
38364
|
}
|
|
38349
38365
|
for (let m = 0; m < this.size; m++) {
|
|
38350
38366
|
let g = !1, p = 0, f = [0, 0, 0, 0, 0, 0, 0];
|
|
38351
38367
|
for (let y = 0; y < this.size; y++)
|
|
38352
|
-
this.modules[y][m] == g ? (p++, p == 5 ? l +=
|
|
38353
|
-
l += this.finderPenaltyTerminateAndCount(g, p, f) *
|
|
38368
|
+
this.modules[y][m] == g ? (p++, p == 5 ? l += ue.PENALTY_N1 : p > 5 && l++) : (this.finderPenaltyAddHistory(p, f), g || (l += this.finderPenaltyCountPatterns(f) * ue.PENALTY_N3), g = this.modules[y][m], p = 1);
|
|
38369
|
+
l += this.finderPenaltyTerminateAndCount(g, p, f) * ue.PENALTY_N3;
|
|
38354
38370
|
}
|
|
38355
38371
|
for (let m = 0; m < this.size - 1; m++)
|
|
38356
38372
|
for (let g = 0; g < this.size - 1; g++) {
|
|
38357
38373
|
const p = this.modules[m][g];
|
|
38358
|
-
p == this.modules[m][g + 1] && p == this.modules[m + 1][g] && p == this.modules[m + 1][g + 1] && (l +=
|
|
38374
|
+
p == this.modules[m][g + 1] && p == this.modules[m + 1][g] && p == this.modules[m + 1][g + 1] && (l += ue.PENALTY_N2);
|
|
38359
38375
|
}
|
|
38360
38376
|
let i = 0;
|
|
38361
38377
|
for (const m of this.modules)
|
|
38362
38378
|
i = m.reduce((g, p) => g + (p ? 1 : 0), i);
|
|
38363
38379
|
const r = this.size * this.size, o = Math.ceil(Math.abs(i * 20 - r * 10) / r) - 1;
|
|
38364
|
-
return s(0 <= o && o <= 9), l += o *
|
|
38380
|
+
return s(0 <= o && o <= 9), l += o * ue.PENALTY_N4, s(0 <= l && l <= 2568888), l;
|
|
38365
38381
|
}
|
|
38366
38382
|
/*-- Private helper functions --*/
|
|
38367
38383
|
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
@@ -38382,7 +38398,7 @@ var Ma;
|
|
|
38382
38398
|
// all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
|
|
38383
38399
|
// The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
|
|
38384
38400
|
static getNumRawDataModules(l) {
|
|
38385
|
-
if (l <
|
|
38401
|
+
if (l < ue.MIN_VERSION || l > ue.MAX_VERSION)
|
|
38386
38402
|
throw new RangeError("Version number out of range");
|
|
38387
38403
|
let i = (16 * l + 128) * l + 64;
|
|
38388
38404
|
if (l >= 2) {
|
|
@@ -38395,7 +38411,7 @@ var Ma;
|
|
|
38395
38411
|
// QR Code of the given version number and error correction level, with remainder bits discarded.
|
|
38396
38412
|
// This stateless pure function could be implemented as a (40*4)-cell lookup table.
|
|
38397
38413
|
static getNumDataCodewords(l, i) {
|
|
38398
|
-
return Math.floor(
|
|
38414
|
+
return Math.floor(ue.getNumRawDataModules(l) / 8) - ue.ECC_CODEWORDS_PER_BLOCK[i.ordinal][l] * ue.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][l];
|
|
38399
38415
|
}
|
|
38400
38416
|
// Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
|
|
38401
38417
|
// implemented as a lookup table over all possible parameter values, instead of as an algorithm.
|
|
@@ -38409,8 +38425,8 @@ var Ma;
|
|
|
38409
38425
|
let r = 1;
|
|
38410
38426
|
for (let o = 0; o < l; o++) {
|
|
38411
38427
|
for (let m = 0; m < i.length; m++)
|
|
38412
|
-
i[m] =
|
|
38413
|
-
r =
|
|
38428
|
+
i[m] = ue.reedSolomonMultiply(i[m], r), m + 1 < i.length && (i[m] ^= i[m + 1]);
|
|
38429
|
+
r = ue.reedSolomonMultiply(r, 2);
|
|
38414
38430
|
}
|
|
38415
38431
|
return i;
|
|
38416
38432
|
}
|
|
@@ -38419,7 +38435,7 @@ var Ma;
|
|
|
38419
38435
|
let r = i.map((o) => 0);
|
|
38420
38436
|
for (const o of l) {
|
|
38421
38437
|
const m = o ^ r.shift();
|
|
38422
|
-
r.push(0), i.forEach((g, p) => r[p] ^=
|
|
38438
|
+
r.push(0), i.forEach((g, p) => r[p] ^= ue.reedSolomonMultiply(g, m));
|
|
38423
38439
|
}
|
|
38424
38440
|
return r;
|
|
38425
38441
|
}
|
|
@@ -38486,7 +38502,7 @@ var Ma;
|
|
|
38486
38502
|
if (!d)
|
|
38487
38503
|
throw new Error("Assertion error");
|
|
38488
38504
|
}
|
|
38489
|
-
const u = class
|
|
38505
|
+
const u = class Te {
|
|
38490
38506
|
/*-- Constructor (low level) and fields --*/
|
|
38491
38507
|
// Creates a new QR Code segment with the given attributes and data.
|
|
38492
38508
|
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
@@ -38504,36 +38520,36 @@ var Ma;
|
|
|
38504
38520
|
let i = [];
|
|
38505
38521
|
for (const r of l)
|
|
38506
38522
|
a(r, 8, i);
|
|
38507
|
-
return new
|
|
38523
|
+
return new Te(Te.Mode.BYTE, l.length, i);
|
|
38508
38524
|
}
|
|
38509
38525
|
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
38510
38526
|
static makeNumeric(l) {
|
|
38511
|
-
if (!
|
|
38527
|
+
if (!Te.isNumeric(l))
|
|
38512
38528
|
throw new RangeError("String contains non-numeric characters");
|
|
38513
38529
|
let i = [];
|
|
38514
38530
|
for (let r = 0; r < l.length; ) {
|
|
38515
38531
|
const o = Math.min(l.length - r, 3);
|
|
38516
38532
|
a(parseInt(l.substring(r, r + o), 10), o * 3 + 1, i), r += o;
|
|
38517
38533
|
}
|
|
38518
|
-
return new
|
|
38534
|
+
return new Te(Te.Mode.NUMERIC, l.length, i);
|
|
38519
38535
|
}
|
|
38520
38536
|
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
38521
38537
|
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
38522
38538
|
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
38523
38539
|
static makeAlphanumeric(l) {
|
|
38524
|
-
if (!
|
|
38540
|
+
if (!Te.isAlphanumeric(l))
|
|
38525
38541
|
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
38526
38542
|
let i = [], r;
|
|
38527
38543
|
for (r = 0; r + 2 <= l.length; r += 2) {
|
|
38528
|
-
let o =
|
|
38529
|
-
o +=
|
|
38544
|
+
let o = Te.ALPHANUMERIC_CHARSET.indexOf(l.charAt(r)) * 45;
|
|
38545
|
+
o += Te.ALPHANUMERIC_CHARSET.indexOf(l.charAt(r + 1)), a(o, 11, i);
|
|
38530
38546
|
}
|
|
38531
|
-
return r < l.length && a(
|
|
38547
|
+
return r < l.length && a(Te.ALPHANUMERIC_CHARSET.indexOf(l.charAt(r)), 6, i), new Te(Te.Mode.ALPHANUMERIC, l.length, i);
|
|
38532
38548
|
}
|
|
38533
38549
|
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
38534
38550
|
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
38535
38551
|
static makeSegments(l) {
|
|
38536
|
-
return l == "" ? [] :
|
|
38552
|
+
return l == "" ? [] : Te.isNumeric(l) ? [Te.makeNumeric(l)] : Te.isAlphanumeric(l) ? [Te.makeAlphanumeric(l)] : [Te.makeBytes(Te.toUtf8ByteArray(l))];
|
|
38537
38553
|
}
|
|
38538
38554
|
// Returns a segment representing an Extended Channel Interpretation
|
|
38539
38555
|
// (ECI) designator with the given assignment value.
|
|
@@ -38549,18 +38565,18 @@ var Ma;
|
|
|
38549
38565
|
a(6, 3, i), a(l, 21, i);
|
|
38550
38566
|
else
|
|
38551
38567
|
throw new RangeError("ECI assignment value out of range");
|
|
38552
|
-
return new
|
|
38568
|
+
return new Te(Te.Mode.ECI, 0, i);
|
|
38553
38569
|
}
|
|
38554
38570
|
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
38555
38571
|
// A string is encodable iff each character is in the range 0 to 9.
|
|
38556
38572
|
static isNumeric(l) {
|
|
38557
|
-
return
|
|
38573
|
+
return Te.NUMERIC_REGEX.test(l);
|
|
38558
38574
|
}
|
|
38559
38575
|
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
38560
38576
|
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
38561
38577
|
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
38562
38578
|
static isAlphanumeric(l) {
|
|
38563
|
-
return
|
|
38579
|
+
return Te.ALPHANUMERIC_REGEX.test(l);
|
|
38564
38580
|
}
|
|
38565
38581
|
/*-- Methods --*/
|
|
38566
38582
|
// Returns a new copy of the data bits of this segment.
|
|
@@ -38770,12 +38786,12 @@ var mu = (function() {
|
|
|
38770
38786
|
H,
|
|
38771
38787
|
S.excavation
|
|
38772
38788
|
));
|
|
38773
|
-
const
|
|
38774
|
-
R.height = R.width = u *
|
|
38775
|
-
const
|
|
38776
|
-
L.scale(
|
|
38777
|
-
N.forEach(function(
|
|
38778
|
-
|
|
38789
|
+
const z = window.devicePixelRatio || 1;
|
|
38790
|
+
R.height = R.width = u * z;
|
|
38791
|
+
const B = u / k * z;
|
|
38792
|
+
L.scale(B, B), L.fillStyle = d, L.fillRect(0, 0, k, k), L.fillStyle = l, mu ? L.fill(new Path2D(al(G, D))) : H.forEach(function(N, E) {
|
|
38793
|
+
N.forEach(function(w, P) {
|
|
38794
|
+
w && L.fillRect(P + D, E + D, 1, 1);
|
|
38779
38795
|
});
|
|
38780
38796
|
}), S && (L.globalAlpha = S.opacity), W && L.drawImage(
|
|
38781
38797
|
I,
|
|
@@ -38788,9 +38804,9 @@ var mu = (function() {
|
|
|
38788
38804
|
}), ve.useEffect(() => {
|
|
38789
38805
|
h(!1);
|
|
38790
38806
|
}, [c]);
|
|
38791
|
-
const
|
|
38792
|
-
let
|
|
38793
|
-
return c != null && (
|
|
38807
|
+
const F = xi({ height: u, width: u }, y);
|
|
38808
|
+
let A = null;
|
|
38809
|
+
return c != null && (A = /* @__PURE__ */ ve.createElement(
|
|
38794
38810
|
"img",
|
|
38795
38811
|
{
|
|
38796
38812
|
src: c,
|
|
@@ -38805,13 +38821,13 @@ var mu = (function() {
|
|
|
38805
38821
|
)), /* @__PURE__ */ ve.createElement(ve.Fragment, null, /* @__PURE__ */ ve.createElement(
|
|
38806
38822
|
"canvas",
|
|
38807
38823
|
xi({
|
|
38808
|
-
style:
|
|
38824
|
+
style: F,
|
|
38809
38825
|
height: u,
|
|
38810
38826
|
width: u,
|
|
38811
38827
|
ref: v,
|
|
38812
38828
|
role: "img"
|
|
38813
38829
|
}, _)
|
|
38814
|
-
),
|
|
38830
|
+
), A);
|
|
38815
38831
|
}
|
|
38816
38832
|
);
|
|
38817
38833
|
uu.displayName = "QRCodeCanvas";
|
|
@@ -38938,7 +38954,7 @@ const pu = {
|
|
|
38938
38954
|
expired: "Kode QR telah kedaluwarsa"
|
|
38939
38955
|
}
|
|
38940
38956
|
}, ip = ({ forcedShow: e = !1, isVisible: t, setIsVisible: a } = {}) => {
|
|
38941
|
-
const { lng: n, getToken: s, lineConfig: u } = re(), [b, d] =
|
|
38957
|
+
const { lng: n, getToken: s, lineConfig: u } = re(), [b, d] = je(300), [l, i] = je(!1), r = me(null), o = j(u, "liffId", ""), m = Je(n), g = s?.(), f = new URLSearchParams(window.location.search).get("mac") || Ci.get("machine_mac_address") || "", { data: y, isFetching: _ } = Es({
|
|
38942
38958
|
formData: {
|
|
38943
38959
|
mac_address: f
|
|
38944
38960
|
},
|
|
@@ -38946,9 +38962,9 @@ const pu = {
|
|
|
38946
38962
|
enabled: e ? !0 : !!f && !g
|
|
38947
38963
|
}
|
|
38948
38964
|
}), c = j(y, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
38949
|
-
|
|
38965
|
+
fe(() => {
|
|
38950
38966
|
f && Ci.set("machine_mac_address", f, { expires: 365 });
|
|
38951
|
-
}, [f]),
|
|
38967
|
+
}, [f]), fe(() => (c && (d(300), i(!1), r.current && clearInterval(r.current), r.current = setInterval(() => {
|
|
38952
38968
|
d((v) => v <= 1 ? (clearInterval(r.current), i(!0), 0) : v - 1);
|
|
38953
38969
|
}, 1e3)), () => {
|
|
38954
38970
|
r.current && clearInterval(r.current);
|
|
@@ -38959,8 +38975,8 @@ const pu = {
|
|
|
38959
38975
|
};
|
|
38960
38976
|
if (!e && (!f || g)) return null;
|
|
38961
38977
|
const C = nr[m] || nr.en_US;
|
|
38962
|
-
return t && /* @__PURE__ */
|
|
38963
|
-
/* @__PURE__ */
|
|
38978
|
+
return t && /* @__PURE__ */ ie.jsxs("div", { style: pu, children: [
|
|
38979
|
+
/* @__PURE__ */ ie.jsx(
|
|
38964
38980
|
"div",
|
|
38965
38981
|
{
|
|
38966
38982
|
style: gu,
|
|
@@ -38970,9 +38986,9 @@ const pu = {
|
|
|
38970
38986
|
children: "✕"
|
|
38971
38987
|
}
|
|
38972
38988
|
),
|
|
38973
|
-
l ? /* @__PURE__ */
|
|
38974
|
-
/* @__PURE__ */
|
|
38975
|
-
/* @__PURE__ */
|
|
38989
|
+
l ? /* @__PURE__ */ ie.jsx("p", { style: { fontWeight: "bold" }, children: C.expired }) : /* @__PURE__ */ ie.jsxs(ie.Fragment, { children: [
|
|
38990
|
+
/* @__PURE__ */ ie.jsx("p", { style: { fontWeight: "bold", fontSize: "3em" }, children: C.title }),
|
|
38991
|
+
/* @__PURE__ */ ie.jsx(
|
|
38976
38992
|
"div",
|
|
38977
38993
|
{
|
|
38978
38994
|
style: {
|
|
@@ -38986,10 +39002,10 @@ const pu = {
|
|
|
38986
39002
|
boxSizing: "border-box",
|
|
38987
39003
|
color: "black"
|
|
38988
39004
|
},
|
|
38989
|
-
children: _ ? "Loading..." : /* @__PURE__ */
|
|
39005
|
+
children: _ ? "Loading..." : /* @__PURE__ */ ie.jsx(nl, { width: "100%", height: "100%", value: c })
|
|
38990
39006
|
}
|
|
38991
39007
|
),
|
|
38992
|
-
!_ && /* @__PURE__ */
|
|
39008
|
+
!_ && /* @__PURE__ */ ie.jsx(
|
|
38993
39009
|
"p",
|
|
38994
39010
|
{
|
|
38995
39011
|
style: {
|
|
@@ -39459,7 +39475,7 @@ const pu = {
|
|
|
39459
39475
|
]
|
|
39460
39476
|
}
|
|
39461
39477
|
}
|
|
39462
|
-
}, du = (e) => lr[e] || lr.zh_TW, or = ["privacy", "terms"],
|
|
39478
|
+
}, du = (e) => lr[e] || lr.zh_TW, or = ["privacy", "terms"], $e = {
|
|
39463
39479
|
overlay: "rgba(0, 0, 0, 0.72)",
|
|
39464
39480
|
cardBg: "#1b1b22",
|
|
39465
39481
|
border: "#2c2c36",
|
|
@@ -39481,8 +39497,8 @@ const pu = {
|
|
|
39481
39497
|
overlayStyle: d = {},
|
|
39482
39498
|
contentStyle: l = {}
|
|
39483
39499
|
}) => {
|
|
39484
|
-
const i = re(), r = u ?? i?.lng, o =
|
|
39485
|
-
if (e !== _ && (c(e), e && y(p)),
|
|
39500
|
+
const i = re(), r = u ?? i?.lng, o = Je(r), m = du(o), g = { siteName: a, siteUrl: n }, p = or.includes(s) ? s : "privacy", [f, y] = je(p), [_, c] = je(e);
|
|
39501
|
+
if (e !== _ && (c(e), e && y(p)), fe(() => {
|
|
39486
39502
|
if (!e) return;
|
|
39487
39503
|
const v = (h) => {
|
|
39488
39504
|
h.key === "Escape" && t?.(!1);
|
|
@@ -39494,7 +39510,7 @@ const pu = {
|
|
|
39494
39510
|
};
|
|
39495
39511
|
}, [e, t]), !e) return null;
|
|
39496
39512
|
const U = m[f], C = () => t?.(!1);
|
|
39497
|
-
return /* @__PURE__ */
|
|
39513
|
+
return /* @__PURE__ */ ie.jsx(
|
|
39498
39514
|
"div",
|
|
39499
39515
|
{
|
|
39500
39516
|
role: "dialog",
|
|
@@ -39508,13 +39524,13 @@ const pu = {
|
|
|
39508
39524
|
display: "flex",
|
|
39509
39525
|
alignItems: "center",
|
|
39510
39526
|
justifyContent: "center",
|
|
39511
|
-
background:
|
|
39527
|
+
background: $e.overlay,
|
|
39512
39528
|
backdropFilter: "blur(2px)",
|
|
39513
39529
|
padding: 16,
|
|
39514
39530
|
boxSizing: "border-box",
|
|
39515
39531
|
...d
|
|
39516
39532
|
},
|
|
39517
|
-
children: /* @__PURE__ */
|
|
39533
|
+
children: /* @__PURE__ */ ie.jsxs(
|
|
39518
39534
|
"div",
|
|
39519
39535
|
{
|
|
39520
39536
|
onClick: (v) => v.stopPropagation(),
|
|
@@ -39524,36 +39540,36 @@ const pu = {
|
|
|
39524
39540
|
maxHeight: "85vh",
|
|
39525
39541
|
display: "flex",
|
|
39526
39542
|
flexDirection: "column",
|
|
39527
|
-
background:
|
|
39528
|
-
color:
|
|
39543
|
+
background: $e.cardBg,
|
|
39544
|
+
color: $e.body,
|
|
39529
39545
|
borderRadius: 12,
|
|
39530
|
-
border: `1px solid ${
|
|
39546
|
+
border: `1px solid ${$e.border}`,
|
|
39531
39547
|
overflow: "hidden",
|
|
39532
39548
|
boxShadow: "0 16px 48px rgba(0, 0, 0, 0.6)",
|
|
39533
39549
|
...l
|
|
39534
39550
|
},
|
|
39535
39551
|
children: [
|
|
39536
|
-
/* @__PURE__ */
|
|
39552
|
+
/* @__PURE__ */ ie.jsxs(
|
|
39537
39553
|
"div",
|
|
39538
39554
|
{
|
|
39539
39555
|
style: {
|
|
39540
39556
|
display: "flex",
|
|
39541
39557
|
alignItems: "stretch",
|
|
39542
|
-
borderBottom: `1px solid ${
|
|
39558
|
+
borderBottom: `1px solid ${$e.border}`,
|
|
39543
39559
|
flexShrink: 0
|
|
39544
39560
|
},
|
|
39545
39561
|
children: [
|
|
39546
39562
|
or.map((v) => {
|
|
39547
39563
|
const T = f === v ? {
|
|
39548
|
-
color:
|
|
39564
|
+
color: $e.tabActive,
|
|
39549
39565
|
fontWeight: 700,
|
|
39550
|
-
borderBottom: `2px solid ${
|
|
39566
|
+
borderBottom: `2px solid ${$e.accent}`
|
|
39551
39567
|
} : {
|
|
39552
|
-
color:
|
|
39568
|
+
color: $e.tabInactive,
|
|
39553
39569
|
fontWeight: 500,
|
|
39554
39570
|
borderBottom: "2px solid transparent"
|
|
39555
39571
|
};
|
|
39556
|
-
return /* @__PURE__ */
|
|
39572
|
+
return /* @__PURE__ */ ie.jsx(
|
|
39557
39573
|
"button",
|
|
39558
39574
|
{
|
|
39559
39575
|
type: "button",
|
|
@@ -39572,7 +39588,7 @@ const pu = {
|
|
|
39572
39588
|
v
|
|
39573
39589
|
);
|
|
39574
39590
|
}),
|
|
39575
|
-
/* @__PURE__ */
|
|
39591
|
+
/* @__PURE__ */ ie.jsx(
|
|
39576
39592
|
"button",
|
|
39577
39593
|
{
|
|
39578
39594
|
type: "button",
|
|
@@ -39584,7 +39600,7 @@ const pu = {
|
|
|
39584
39600
|
border: "none",
|
|
39585
39601
|
cursor: "pointer",
|
|
39586
39602
|
fontSize: 20,
|
|
39587
|
-
color:
|
|
39603
|
+
color: $e.muted
|
|
39588
39604
|
},
|
|
39589
39605
|
children: "✕"
|
|
39590
39606
|
}
|
|
@@ -39592,34 +39608,34 @@ const pu = {
|
|
|
39592
39608
|
]
|
|
39593
39609
|
}
|
|
39594
39610
|
),
|
|
39595
|
-
/* @__PURE__ */
|
|
39596
|
-
/* @__PURE__ */
|
|
39597
|
-
U?.updatedAt && /* @__PURE__ */
|
|
39611
|
+
/* @__PURE__ */ ie.jsxs("div", { style: { padding: 20, overflowY: "auto" }, children: [
|
|
39612
|
+
/* @__PURE__ */ ie.jsx("h2", { style: { margin: "0 0 4px", fontSize: 20, color: $e.title }, children: bi(U?.title, g) }),
|
|
39613
|
+
U?.updatedAt && /* @__PURE__ */ ie.jsxs("p", { style: { margin: "0 0 16px", fontSize: 12, color: $e.muted }, children: [
|
|
39598
39614
|
m.updatedLabel,
|
|
39599
39615
|
":",
|
|
39600
39616
|
U.updatedAt
|
|
39601
39617
|
] }),
|
|
39602
|
-
U?.sections?.map((v, T) => /* @__PURE__ */
|
|
39603
|
-
v.heading ? /* @__PURE__ */
|
|
39618
|
+
U?.sections?.map((v, T) => /* @__PURE__ */ ie.jsxs("div", { style: { marginBottom: 16 }, children: [
|
|
39619
|
+
v.heading ? /* @__PURE__ */ ie.jsx(
|
|
39604
39620
|
"h3",
|
|
39605
39621
|
{
|
|
39606
39622
|
style: {
|
|
39607
39623
|
margin: "0 0 6px",
|
|
39608
39624
|
fontSize: 15,
|
|
39609
39625
|
fontWeight: 700,
|
|
39610
|
-
color:
|
|
39626
|
+
color: $e.heading
|
|
39611
39627
|
},
|
|
39612
39628
|
children: bi(v.heading, g)
|
|
39613
39629
|
}
|
|
39614
39630
|
) : null,
|
|
39615
|
-
v.body.map((h, D) => /* @__PURE__ */
|
|
39631
|
+
v.body.map((h, D) => /* @__PURE__ */ ie.jsx(
|
|
39616
39632
|
"p",
|
|
39617
39633
|
{
|
|
39618
39634
|
style: {
|
|
39619
39635
|
margin: "0 0 8px",
|
|
39620
39636
|
fontSize: 13,
|
|
39621
39637
|
lineHeight: 1.8,
|
|
39622
|
-
color:
|
|
39638
|
+
color: $e.body
|
|
39623
39639
|
},
|
|
39624
39640
|
children: bi(h, g)
|
|
39625
39641
|
},
|
|
@@ -39633,7 +39649,7 @@ const pu = {
|
|
|
39633
39649
|
}
|
|
39634
39650
|
);
|
|
39635
39651
|
}, rp = (e = !1) => {
|
|
39636
|
-
const [t, a] =
|
|
39652
|
+
const [t, a] = je(e), n = M(() => a(!0), []), s = M(() => a(!1), []), u = M(() => a((d) => !d), []), b = M((d) => a(!!d), []);
|
|
39637
39653
|
return { open: t, setOpen: a, onOpen: n, onClose: s, onToggle: u, onOpenChange: b };
|
|
39638
39654
|
};
|
|
39639
39655
|
export {
|
|
@@ -39656,7 +39672,7 @@ export {
|
|
|
39656
39672
|
Ml as buildSinglePlatformWithSubTypes,
|
|
39657
39673
|
Gl as buildSingleType,
|
|
39658
39674
|
Jm as categorizeGames,
|
|
39659
|
-
|
|
39675
|
+
Je as convertLanguageCode,
|
|
39660
39676
|
Nl as convertLanguageGameCode,
|
|
39661
39677
|
nt as correctViewportDrift,
|
|
39662
39678
|
vu as createLogoutHandler,
|