@markind-gg/come-come 1.0.23 → 1.0.27
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/main.js +528 -504
- package/dist/manifest.json +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4,7 +4,7 @@ var Nl = (t, e, l) => zD(t, typeof e != "symbol" ? e + "" : e, l);
|
|
|
4
4
|
function ND(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var lr = { exports: {} },
|
|
7
|
+
var lr = { exports: {} }, C = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react.production.js
|
|
@@ -14,7 +14,7 @@ var lr = { exports: {} }, w = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var tf = Symbol.for("react.transitional.element"), RD = Symbol.for("react.portal"),
|
|
17
|
+
var tf = Symbol.for("react.transitional.element"), RD = Symbol.for("react.portal"), wD = Symbol.for("react.fragment"), CD = Symbol.for("react.strict_mode"), UD = Symbol.for("react.profiler"), jD = Symbol.for("react.consumer"), LD = Symbol.for("react.context"), HD = Symbol.for("react.forward_ref"), GD = Symbol.for("react.suspense"), WD = Symbol.for("react.memo"), nr = Symbol.for("react.lazy"), YD = Symbol.for("react.activity"), yo = Symbol.iterator;
|
|
18
18
|
function BD(t) {
|
|
19
19
|
return t === null || typeof t != "object" ? null : (t = yo && t[yo] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
20
20
|
}
|
|
@@ -106,7 +106,7 @@ function QD(t) {
|
|
|
106
106
|
}
|
|
107
107
|
throw t;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Cl(t, e, l, n, a) {
|
|
110
110
|
var u = typeof t;
|
|
111
111
|
(u === "undefined" || u === "boolean") && (t = null);
|
|
112
112
|
var i = !1;
|
|
@@ -125,7 +125,7 @@ function wl(t, e, l, n, a) {
|
|
|
125
125
|
i = !0;
|
|
126
126
|
break;
|
|
127
127
|
case nr:
|
|
128
|
-
return i = t._init,
|
|
128
|
+
return i = t._init, Cl(
|
|
129
129
|
i(t._payload),
|
|
130
130
|
e,
|
|
131
131
|
l,
|
|
@@ -135,7 +135,7 @@ function wl(t, e, l, n, a) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
if (i)
|
|
138
|
-
return a = a(t), i = n === "" ? "." + si(t, 0) : n, Do(a) ? (l = "", i != null && (l = i.replace(mo, "$&/") + "/"),
|
|
138
|
+
return a = a(t), i = n === "" ? "." + si(t, 0) : n, Do(a) ? (l = "", i != null && (l = i.replace(mo, "$&/") + "/"), Cl(a, e, l, "", function(o) {
|
|
139
139
|
return o;
|
|
140
140
|
})) : a != null && (af(a) && (a = qD(
|
|
141
141
|
a,
|
|
@@ -148,7 +148,7 @@ function wl(t, e, l, n, a) {
|
|
|
148
148
|
var c = n === "" ? "." : n + ":";
|
|
149
149
|
if (Do(t))
|
|
150
150
|
for (var f = 0; f < t.length; f++)
|
|
151
|
-
n = t[f], u = c + si(n, f), i +=
|
|
151
|
+
n = t[f], u = c + si(n, f), i += Cl(
|
|
152
152
|
n,
|
|
153
153
|
e,
|
|
154
154
|
l,
|
|
@@ -157,7 +157,7 @@ function wl(t, e, l, n, a) {
|
|
|
157
157
|
);
|
|
158
158
|
else if (f = BD(t), typeof f == "function")
|
|
159
159
|
for (t = f.call(t), f = 0; !(n = t.next()).done; )
|
|
160
|
-
n = n.value, u = c + si(n, f++), i +=
|
|
160
|
+
n = n.value, u = c + si(n, f++), i += Cl(
|
|
161
161
|
n,
|
|
162
162
|
e,
|
|
163
163
|
l,
|
|
@@ -166,7 +166,7 @@ function wl(t, e, l, n, a) {
|
|
|
166
166
|
);
|
|
167
167
|
else if (u === "object") {
|
|
168
168
|
if (typeof t.then == "function")
|
|
169
|
-
return
|
|
169
|
+
return Cl(
|
|
170
170
|
QD(t),
|
|
171
171
|
e,
|
|
172
172
|
l,
|
|
@@ -182,7 +182,7 @@ function wl(t, e, l, n, a) {
|
|
|
182
182
|
function Na(t, e, l) {
|
|
183
183
|
if (t == null) return t;
|
|
184
184
|
var n = [], a = 0;
|
|
185
|
-
return
|
|
185
|
+
return Cl(t, n, "", "", function(u) {
|
|
186
186
|
return e.call(l, u, a++);
|
|
187
187
|
}), n;
|
|
188
188
|
}
|
|
@@ -245,30 +245,30 @@ var po = typeof reportError == "function" ? reportError : function(t) {
|
|
|
245
245
|
return t;
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
248
|
+
C.Activity = YD;
|
|
249
|
+
C.Children = VD;
|
|
250
|
+
C.Component = mn;
|
|
251
|
+
C.Fragment = wD;
|
|
252
|
+
C.Profiler = UD;
|
|
253
|
+
C.PureComponent = ef;
|
|
254
|
+
C.StrictMode = CD;
|
|
255
|
+
C.Suspense = GD;
|
|
256
|
+
C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = F;
|
|
257
|
+
C.__COMPILER_RUNTIME = {
|
|
258
258
|
__proto__: null,
|
|
259
259
|
c: function(t) {
|
|
260
260
|
return F.H.useMemoCache(t);
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
|
-
|
|
263
|
+
C.cache = function(t) {
|
|
264
264
|
return function() {
|
|
265
265
|
return t.apply(null, arguments);
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
C.cacheSignal = function() {
|
|
269
269
|
return null;
|
|
270
270
|
};
|
|
271
|
-
|
|
271
|
+
C.cloneElement = function(t, e, l) {
|
|
272
272
|
if (t == null)
|
|
273
273
|
throw Error(
|
|
274
274
|
"The argument must be a React element, but you passed " + t + "."
|
|
@@ -286,7 +286,7 @@ w.cloneElement = function(t, e, l) {
|
|
|
286
286
|
}
|
|
287
287
|
return nf(t.type, a, n);
|
|
288
288
|
};
|
|
289
|
-
|
|
289
|
+
C.createContext = function(t) {
|
|
290
290
|
return t = {
|
|
291
291
|
$$typeof: LD,
|
|
292
292
|
_currentValue: t,
|
|
@@ -299,7 +299,7 @@ w.createContext = function(t) {
|
|
|
299
299
|
_context: t
|
|
300
300
|
}, t;
|
|
301
301
|
};
|
|
302
|
-
|
|
302
|
+
C.createElement = function(t, e, l) {
|
|
303
303
|
var n, a = {}, u = null;
|
|
304
304
|
if (e != null)
|
|
305
305
|
for (n in e.key !== void 0 && (u = "" + e.key), e)
|
|
@@ -316,28 +316,28 @@ w.createElement = function(t, e, l) {
|
|
|
316
316
|
a[n] === void 0 && (a[n] = i[n]);
|
|
317
317
|
return nf(t, u, a);
|
|
318
318
|
};
|
|
319
|
-
|
|
319
|
+
C.createRef = function() {
|
|
320
320
|
return { current: null };
|
|
321
321
|
};
|
|
322
|
-
|
|
322
|
+
C.forwardRef = function(t) {
|
|
323
323
|
return { $$typeof: HD, render: t };
|
|
324
324
|
};
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
C.isValidElement = af;
|
|
326
|
+
C.lazy = function(t) {
|
|
327
327
|
return {
|
|
328
328
|
$$typeof: nr,
|
|
329
329
|
_payload: { _status: -1, _result: t },
|
|
330
330
|
_init: ZD
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
|
-
|
|
333
|
+
C.memo = function(t, e) {
|
|
334
334
|
return {
|
|
335
335
|
$$typeof: WD,
|
|
336
336
|
type: t,
|
|
337
337
|
compare: e === void 0 ? null : e
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
|
-
|
|
340
|
+
C.startTransition = function(t) {
|
|
341
341
|
var e = F.T, l = {};
|
|
342
342
|
F.T = l;
|
|
343
343
|
try {
|
|
@@ -349,71 +349,71 @@ w.startTransition = function(t) {
|
|
|
349
349
|
e !== null && l.types !== null && (e.types = l.types), F.T = e;
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
C.unstable_useCacheRefresh = function() {
|
|
353
353
|
return F.H.useCacheRefresh();
|
|
354
354
|
};
|
|
355
|
-
|
|
355
|
+
C.use = function(t) {
|
|
356
356
|
return F.H.use(t);
|
|
357
357
|
};
|
|
358
|
-
|
|
358
|
+
C.useActionState = function(t, e, l) {
|
|
359
359
|
return F.H.useActionState(t, e, l);
|
|
360
360
|
};
|
|
361
|
-
|
|
361
|
+
C.useCallback = function(t, e) {
|
|
362
362
|
return F.H.useCallback(t, e);
|
|
363
363
|
};
|
|
364
|
-
|
|
364
|
+
C.useContext = function(t) {
|
|
365
365
|
return F.H.useContext(t);
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
C.useDebugValue = function() {
|
|
368
368
|
};
|
|
369
|
-
|
|
369
|
+
C.useDeferredValue = function(t, e) {
|
|
370
370
|
return F.H.useDeferredValue(t, e);
|
|
371
371
|
};
|
|
372
|
-
|
|
372
|
+
C.useEffect = function(t, e) {
|
|
373
373
|
return F.H.useEffect(t, e);
|
|
374
374
|
};
|
|
375
|
-
|
|
375
|
+
C.useEffectEvent = function(t) {
|
|
376
376
|
return F.H.useEffectEvent(t);
|
|
377
377
|
};
|
|
378
|
-
|
|
378
|
+
C.useId = function() {
|
|
379
379
|
return F.H.useId();
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
C.useImperativeHandle = function(t, e, l) {
|
|
382
382
|
return F.H.useImperativeHandle(t, e, l);
|
|
383
383
|
};
|
|
384
|
-
|
|
384
|
+
C.useInsertionEffect = function(t, e) {
|
|
385
385
|
return F.H.useInsertionEffect(t, e);
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
C.useLayoutEffect = function(t, e) {
|
|
388
388
|
return F.H.useLayoutEffect(t, e);
|
|
389
389
|
};
|
|
390
|
-
|
|
390
|
+
C.useMemo = function(t, e) {
|
|
391
391
|
return F.H.useMemo(t, e);
|
|
392
392
|
};
|
|
393
|
-
|
|
393
|
+
C.useOptimistic = function(t, e) {
|
|
394
394
|
return F.H.useOptimistic(t, e);
|
|
395
395
|
};
|
|
396
|
-
|
|
396
|
+
C.useReducer = function(t, e, l) {
|
|
397
397
|
return F.H.useReducer(t, e, l);
|
|
398
398
|
};
|
|
399
|
-
|
|
399
|
+
C.useRef = function(t) {
|
|
400
400
|
return F.H.useRef(t);
|
|
401
401
|
};
|
|
402
|
-
|
|
402
|
+
C.useState = function(t) {
|
|
403
403
|
return F.H.useState(t);
|
|
404
404
|
};
|
|
405
|
-
|
|
405
|
+
C.useSyncExternalStore = function(t, e, l) {
|
|
406
406
|
return F.H.useSyncExternalStore(
|
|
407
407
|
t,
|
|
408
408
|
e,
|
|
409
409
|
l
|
|
410
410
|
);
|
|
411
411
|
};
|
|
412
|
-
|
|
412
|
+
C.useTransition = function() {
|
|
413
413
|
return F.H.useTransition();
|
|
414
414
|
};
|
|
415
|
-
|
|
416
|
-
lr.exports =
|
|
415
|
+
C.version = "19.2.5";
|
|
416
|
+
lr.exports = C;
|
|
417
417
|
var N = lr.exports;
|
|
418
418
|
const ln = /* @__PURE__ */ ND(N);
|
|
419
419
|
var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
@@ -427,13 +427,13 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
427
427
|
* LICENSE file in the root directory of this source tree.
|
|
428
428
|
*/
|
|
429
429
|
(function(t) {
|
|
430
|
-
function e(x,
|
|
430
|
+
function e(x, w) {
|
|
431
431
|
var j = x.length;
|
|
432
|
-
x.push(
|
|
432
|
+
x.push(w);
|
|
433
433
|
t: for (; 0 < j; ) {
|
|
434
434
|
var nt = j - 1 >>> 1, Dt = x[nt];
|
|
435
|
-
if (0 < a(Dt,
|
|
436
|
-
x[nt] =
|
|
435
|
+
if (0 < a(Dt, w))
|
|
436
|
+
x[nt] = w, x[j] = Dt, j = nt;
|
|
437
437
|
else break t;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
@@ -442,8 +442,8 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
442
442
|
}
|
|
443
443
|
function n(x) {
|
|
444
444
|
if (x.length === 0) return null;
|
|
445
|
-
var
|
|
446
|
-
if (j !==
|
|
445
|
+
var w = x[0], j = x.pop();
|
|
446
|
+
if (j !== w) {
|
|
447
447
|
x[0] = j;
|
|
448
448
|
t: for (var nt = 0, Dt = x.length, Ma = Dt >>> 1; nt < Ma; ) {
|
|
449
449
|
var Oa = 2 * (nt + 1) - 1, oi = x[Oa], il = Oa + 1, za = x[il];
|
|
@@ -454,11 +454,11 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
454
454
|
else break t;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
return
|
|
457
|
+
return w;
|
|
458
458
|
}
|
|
459
|
-
function a(x,
|
|
460
|
-
var j = x.sortIndex -
|
|
461
|
-
return j !== 0 ? j : x.id -
|
|
459
|
+
function a(x, w) {
|
|
460
|
+
var j = x.sortIndex - w.sortIndex;
|
|
461
|
+
return j !== 0 ? j : x.id - w.id;
|
|
462
462
|
}
|
|
463
463
|
if (t.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
|
|
464
464
|
var u = performance;
|
|
@@ -473,12 +473,12 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
473
473
|
}
|
|
474
474
|
var f = [], o = [], d = 1, p = null, s = 3, D = !1, g = !1, b = !1, _ = !1, y = typeof setTimeout == "function" ? setTimeout : null, r = typeof clearTimeout == "function" ? clearTimeout : null, m = typeof setImmediate < "u" ? setImmediate : null;
|
|
475
475
|
function h(x) {
|
|
476
|
-
for (var
|
|
477
|
-
if (
|
|
478
|
-
else if (
|
|
479
|
-
n(o),
|
|
476
|
+
for (var w = l(o); w !== null; ) {
|
|
477
|
+
if (w.callback === null) n(o);
|
|
478
|
+
else if (w.startTime <= x)
|
|
479
|
+
n(o), w.sortIndex = w.expirationTime, e(f, w);
|
|
480
480
|
else break;
|
|
481
|
-
|
|
481
|
+
w = l(o);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
function T(x) {
|
|
@@ -486,8 +486,8 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
486
486
|
if (l(f) !== null)
|
|
487
487
|
g = !0, z || (z = !0, H());
|
|
488
488
|
else {
|
|
489
|
-
var
|
|
490
|
-
|
|
489
|
+
var w = l(o);
|
|
490
|
+
w !== null && ue(T, w.startTime - x);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
var z = !1, E = -1, M = 5, O = -1;
|
|
@@ -498,7 +498,7 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
498
498
|
if (_ = !1, z) {
|
|
499
499
|
var x = t.unstable_now();
|
|
500
500
|
O = x;
|
|
501
|
-
var
|
|
501
|
+
var w = !0;
|
|
502
502
|
try {
|
|
503
503
|
t: {
|
|
504
504
|
g = !1, b && (b = !1, r(E), E = -1), D = !0;
|
|
@@ -513,30 +513,30 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
513
513
|
p.expirationTime <= x
|
|
514
514
|
);
|
|
515
515
|
if (x = t.unstable_now(), typeof Dt == "function") {
|
|
516
|
-
p.callback = Dt, h(x),
|
|
516
|
+
p.callback = Dt, h(x), w = !0;
|
|
517
517
|
break e;
|
|
518
518
|
}
|
|
519
519
|
p === l(f) && n(f), h(x);
|
|
520
520
|
} else n(f);
|
|
521
521
|
p = l(f);
|
|
522
522
|
}
|
|
523
|
-
if (p !== null)
|
|
523
|
+
if (p !== null) w = !0;
|
|
524
524
|
else {
|
|
525
525
|
var Ma = l(o);
|
|
526
526
|
Ma !== null && ue(
|
|
527
527
|
T,
|
|
528
528
|
Ma.startTime - x
|
|
529
|
-
),
|
|
529
|
+
), w = !1;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
break t;
|
|
533
533
|
} finally {
|
|
534
534
|
p = null, s = j, D = !1;
|
|
535
535
|
}
|
|
536
|
-
|
|
536
|
+
w = void 0;
|
|
537
537
|
}
|
|
538
538
|
} finally {
|
|
539
|
-
|
|
539
|
+
w ? H() : z = !1;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -554,10 +554,10 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
554
554
|
H = function() {
|
|
555
555
|
y(L, 0);
|
|
556
556
|
};
|
|
557
|
-
function ue(x,
|
|
557
|
+
function ue(x, w) {
|
|
558
558
|
E = y(function() {
|
|
559
559
|
x(t.unstable_now());
|
|
560
|
-
},
|
|
560
|
+
}, w);
|
|
561
561
|
}
|
|
562
562
|
t.unstable_IdlePriority = 5, t.unstable_ImmediatePriority = 1, t.unstable_LowPriority = 4, t.unstable_NormalPriority = 3, t.unstable_Profiling = null, t.unstable_UserBlockingPriority = 2, t.unstable_cancelCallback = function(x) {
|
|
563
563
|
x.callback = null;
|
|
@@ -572,13 +572,13 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
572
572
|
case 1:
|
|
573
573
|
case 2:
|
|
574
574
|
case 3:
|
|
575
|
-
var
|
|
575
|
+
var w = 3;
|
|
576
576
|
break;
|
|
577
577
|
default:
|
|
578
|
-
|
|
578
|
+
w = s;
|
|
579
579
|
}
|
|
580
580
|
var j = s;
|
|
581
|
-
s =
|
|
581
|
+
s = w;
|
|
582
582
|
try {
|
|
583
583
|
return x();
|
|
584
584
|
} finally {
|
|
@@ -586,7 +586,7 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
586
586
|
}
|
|
587
587
|
}, t.unstable_requestPaint = function() {
|
|
588
588
|
_ = !0;
|
|
589
|
-
}, t.unstable_runWithPriority = function(x,
|
|
589
|
+
}, t.unstable_runWithPriority = function(x, w) {
|
|
590
590
|
switch (x) {
|
|
591
591
|
case 1:
|
|
592
592
|
case 2:
|
|
@@ -600,11 +600,11 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
600
600
|
var j = s;
|
|
601
601
|
s = x;
|
|
602
602
|
try {
|
|
603
|
-
return
|
|
603
|
+
return w();
|
|
604
604
|
} finally {
|
|
605
605
|
s = j;
|
|
606
606
|
}
|
|
607
|
-
}, t.unstable_scheduleCallback = function(x,
|
|
607
|
+
}, t.unstable_scheduleCallback = function(x, w, j) {
|
|
608
608
|
var nt = t.unstable_now();
|
|
609
609
|
switch (typeof j == "object" && j !== null ? (j = j.delay, j = typeof j == "number" && 0 < j ? nt + j : nt) : j = nt, x) {
|
|
610
610
|
case 1:
|
|
@@ -624,17 +624,17 @@ var or = { exports: {} }, qu = {}, sr = { exports: {} }, rr = {};
|
|
|
624
624
|
}
|
|
625
625
|
return Dt = j + Dt, x = {
|
|
626
626
|
id: d++,
|
|
627
|
-
callback:
|
|
627
|
+
callback: w,
|
|
628
628
|
priorityLevel: x,
|
|
629
629
|
startTime: j,
|
|
630
630
|
expirationTime: Dt,
|
|
631
631
|
sortIndex: -1
|
|
632
632
|
}, j > nt ? (x.sortIndex = j, e(o, x), l(f) === null && x === l(o) && (b ? (r(E), E = -1) : b = !0, ue(T, j - nt))) : (x.sortIndex = Dt, e(f, x), g || D || (g = !0, z || (z = !0, H()))), x;
|
|
633
633
|
}, t.unstable_shouldYield = A, t.unstable_wrapCallback = function(x) {
|
|
634
|
-
var
|
|
634
|
+
var w = s;
|
|
635
635
|
return function() {
|
|
636
636
|
var j = s;
|
|
637
|
-
s =
|
|
637
|
+
s = w;
|
|
638
638
|
try {
|
|
639
639
|
return x.apply(this, arguments);
|
|
640
640
|
} finally {
|
|
@@ -923,7 +923,7 @@ function gr(t) {
|
|
|
923
923
|
}
|
|
924
924
|
return null;
|
|
925
925
|
}
|
|
926
|
-
var P = Object.assign, t0 = Symbol.for("react.element"), Ra = Symbol.for("react.transitional.element"), Rn = Symbol.for("react.portal"), Ll = Symbol.for("react.fragment"), Sr = Symbol.for("react.strict_mode"), tc = Symbol.for("react.profiler"), Er = Symbol.for("react.consumer"), ge = Symbol.for("react.context"), uf = Symbol.for("react.forward_ref"), ec = Symbol.for("react.suspense"), lc = Symbol.for("react.suspense_list"), cf = Symbol.for("react.memo"),
|
|
926
|
+
var P = Object.assign, t0 = Symbol.for("react.element"), Ra = Symbol.for("react.transitional.element"), Rn = Symbol.for("react.portal"), Ll = Symbol.for("react.fragment"), Sr = Symbol.for("react.strict_mode"), tc = Symbol.for("react.profiler"), Er = Symbol.for("react.consumer"), ge = Symbol.for("react.context"), uf = Symbol.for("react.forward_ref"), ec = Symbol.for("react.suspense"), lc = Symbol.for("react.suspense_list"), cf = Symbol.for("react.memo"), we = Symbol.for("react.lazy"), nc = Symbol.for("react.activity"), e0 = Symbol.for("react.memo_cache_sentinel"), vo = Symbol.iterator;
|
|
927
927
|
function Tn(t) {
|
|
928
928
|
return t === null || typeof t != "object" ? null : (t = vo && t[vo] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
929
929
|
}
|
|
@@ -960,7 +960,7 @@ function ac(t) {
|
|
|
960
960
|
return t = t.displayName, t || (t = e.displayName || e.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
961
961
|
case cf:
|
|
962
962
|
return e = t.displayName || null, e !== null ? e : ac(t.type) || "Memo";
|
|
963
|
-
case
|
|
963
|
+
case we:
|
|
964
964
|
e = t._payload, t = t._init;
|
|
965
965
|
try {
|
|
966
966
|
return ac(t(e));
|
|
@@ -969,7 +969,7 @@ function ac(t) {
|
|
|
969
969
|
}
|
|
970
970
|
return null;
|
|
971
971
|
}
|
|
972
|
-
var
|
|
972
|
+
var wn = Array.isArray, R = mr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = FD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, dl = {
|
|
973
973
|
pending: !1,
|
|
974
974
|
data: null,
|
|
975
975
|
method: null,
|
|
@@ -1173,7 +1173,7 @@ var Wt = Math.clz32 ? Math.clz32 : d0, s0 = Math.log, r0 = Math.LN2;
|
|
|
1173
1173
|
function d0(t) {
|
|
1174
1174
|
return t >>>= 0, t === 0 ? 32 : 31 - (s0(t) / r0 | 0) | 0;
|
|
1175
1175
|
}
|
|
1176
|
-
var
|
|
1176
|
+
var wa = 256, Ca = 262144, Ua = 4194304;
|
|
1177
1177
|
function ol(t) {
|
|
1178
1178
|
var e = t & 42;
|
|
1179
1179
|
if (e !== 0) return e;
|
|
@@ -1407,7 +1407,7 @@ function hn(t) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
return null;
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function Cn(t) {
|
|
1411
1411
|
var e = t.tag;
|
|
1412
1412
|
if (e === 5 || e === 26 || e === 27 || e === 6) return t.stateNode;
|
|
1413
1413
|
throw Error(S(33));
|
|
@@ -1495,7 +1495,7 @@ function Qt(t) {
|
|
|
1495
1495
|
return "";
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function wr(t) {
|
|
1499
1499
|
var e = t.type;
|
|
1500
1500
|
return (t = t.nodeName) && t.toLowerCase() === "input" && (e === "checkbox" || e === "radio");
|
|
1501
1501
|
}
|
|
@@ -1531,7 +1531,7 @@ function g0(t, e, l) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
function oc(t) {
|
|
1533
1533
|
if (!t._valueTracker) {
|
|
1534
|
-
var e =
|
|
1534
|
+
var e = wr(t) ? "checked" : "value";
|
|
1535
1535
|
t._valueTracker = g0(
|
|
1536
1536
|
t,
|
|
1537
1537
|
e,
|
|
@@ -1539,12 +1539,12 @@ function oc(t) {
|
|
|
1539
1539
|
);
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Cr(t) {
|
|
1543
1543
|
if (!t) return !1;
|
|
1544
1544
|
var e = t._valueTracker;
|
|
1545
1545
|
if (!e) return !0;
|
|
1546
1546
|
var l = e.getValue(), n = "";
|
|
1547
|
-
return t && (n =
|
|
1547
|
+
return t && (n = wr(t) ? t.checked ? "true" : "false" : t.value), t = n, t !== l ? (e.setValue(t), !0) : !1;
|
|
1548
1548
|
}
|
|
1549
1549
|
function yu(t) {
|
|
1550
1550
|
if (t = t || (typeof document < "u" ? document : void 0), typeof t > "u") return null;
|
|
@@ -1608,7 +1608,7 @@ function Lr(t, e, l, n) {
|
|
|
1608
1608
|
if (e == null) {
|
|
1609
1609
|
if (n != null) {
|
|
1610
1610
|
if (l != null) throw Error(S(92));
|
|
1611
|
-
if (
|
|
1611
|
+
if (wn(n)) {
|
|
1612
1612
|
if (1 < n.length) throw Error(S(93));
|
|
1613
1613
|
n = n[0];
|
|
1614
1614
|
}
|
|
@@ -1794,7 +1794,7 @@ function _o(t) {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
for (e = 0; e < l.length; e++)
|
|
1797
|
-
n = l[e], n.form === t.form &&
|
|
1797
|
+
n = l[e], n.form === t.form && Cr(n);
|
|
1798
1798
|
}
|
|
1799
1799
|
break t;
|
|
1800
1800
|
case "textarea":
|
|
@@ -1878,7 +1878,7 @@ function La() {
|
|
|
1878
1878
|
function Mo() {
|
|
1879
1879
|
return !1;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function wt(t) {
|
|
1882
1882
|
function e(l, n, a, u, i) {
|
|
1883
1883
|
this._reactName = l, this._targetInst = a, this.type = n, this.nativeEvent = u, this.target = i, this.currentTarget = null;
|
|
1884
1884
|
for (var c in t)
|
|
@@ -1909,7 +1909,7 @@ var Al = {
|
|
|
1909
1909
|
},
|
|
1910
1910
|
defaultPrevented: 0,
|
|
1911
1911
|
isTrusted: 0
|
|
1912
|
-
}, Zu =
|
|
1912
|
+
}, Zu = wt(Al), ga = P({}, Al, { view: 0, detail: 0 }), A0 = wt(ga), hi, vi, xn, Vu = P({}, ga, {
|
|
1913
1913
|
screenX: 0,
|
|
1914
1914
|
screenY: 0,
|
|
1915
1915
|
clientX: 0,
|
|
@@ -1932,15 +1932,15 @@ var Al = {
|
|
|
1932
1932
|
movementY: function(t) {
|
|
1933
1933
|
return "movementY" in t ? t.movementY : vi;
|
|
1934
1934
|
}
|
|
1935
|
-
}), Oo =
|
|
1935
|
+
}), Oo = wt(Vu), x0 = P({}, Vu, { dataTransfer: 0 }), _0 = wt(x0), M0 = P({}, ga, { relatedTarget: 0 }), gi = wt(M0), O0 = P({}, Al, {
|
|
1936
1936
|
animationName: 0,
|
|
1937
1937
|
elapsedTime: 0,
|
|
1938
1938
|
pseudoElement: 0
|
|
1939
|
-
}), z0 =
|
|
1939
|
+
}), z0 = wt(O0), N0 = P({}, Al, {
|
|
1940
1940
|
clipboardData: function(t) {
|
|
1941
1941
|
return "clipboardData" in t ? t.clipboardData : window.clipboardData;
|
|
1942
1942
|
}
|
|
1943
|
-
}), R0 =
|
|
1943
|
+
}), R0 = wt(N0), w0 = P({}, Al, { data: 0 }), zo = wt(w0), C0 = {
|
|
1944
1944
|
Esc: "Escape",
|
|
1945
1945
|
Spacebar: " ",
|
|
1946
1946
|
Left: "ArrowLeft",
|
|
@@ -2006,7 +2006,7 @@ function mf() {
|
|
|
2006
2006
|
var H0 = P({}, ga, {
|
|
2007
2007
|
key: function(t) {
|
|
2008
2008
|
if (t.key) {
|
|
2009
|
-
var e =
|
|
2009
|
+
var e = C0[t.key] || t.key;
|
|
2010
2010
|
if (e !== "Unidentified") return e;
|
|
2011
2011
|
}
|
|
2012
2012
|
return t.type === "keypress" ? (t = $a(t), t === 13 ? "Enter" : String.fromCharCode(t)) : t.type === "keydown" || t.type === "keyup" ? U0[t.keyCode] || "Unidentified" : "";
|
|
@@ -2029,7 +2029,7 @@ var H0 = P({}, ga, {
|
|
|
2029
2029
|
which: function(t) {
|
|
2030
2030
|
return t.type === "keypress" ? $a(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
|
|
2031
2031
|
}
|
|
2032
|
-
}), G0 =
|
|
2032
|
+
}), G0 = wt(H0), W0 = P({}, Vu, {
|
|
2033
2033
|
pointerId: 0,
|
|
2034
2034
|
width: 0,
|
|
2035
2035
|
height: 0,
|
|
@@ -2040,7 +2040,7 @@ var H0 = P({}, ga, {
|
|
|
2040
2040
|
twist: 0,
|
|
2041
2041
|
pointerType: 0,
|
|
2042
2042
|
isPrimary: 0
|
|
2043
|
-
}), No =
|
|
2043
|
+
}), No = wt(W0), Y0 = P({}, ga, {
|
|
2044
2044
|
touches: 0,
|
|
2045
2045
|
targetTouches: 0,
|
|
2046
2046
|
changedTouches: 0,
|
|
@@ -2049,11 +2049,11 @@ var H0 = P({}, ga, {
|
|
|
2049
2049
|
ctrlKey: 0,
|
|
2050
2050
|
shiftKey: 0,
|
|
2051
2051
|
getModifierState: mf
|
|
2052
|
-
}), B0 =
|
|
2052
|
+
}), B0 = wt(Y0), q0 = P({}, Al, {
|
|
2053
2053
|
propertyName: 0,
|
|
2054
2054
|
elapsedTime: 0,
|
|
2055
2055
|
pseudoElement: 0
|
|
2056
|
-
}), X0 =
|
|
2056
|
+
}), X0 = wt(q0), Q0 = P({}, Vu, {
|
|
2057
2057
|
deltaX: function(t) {
|
|
2058
2058
|
return "deltaX" in t ? t.deltaX : "wheelDeltaX" in t ? -t.wheelDeltaX : 0;
|
|
2059
2059
|
},
|
|
@@ -2062,12 +2062,12 @@ var H0 = P({}, ga, {
|
|
|
2062
2062
|
},
|
|
2063
2063
|
deltaZ: 0,
|
|
2064
2064
|
deltaMode: 0
|
|
2065
|
-
}), Z0 =
|
|
2065
|
+
}), Z0 = wt(Q0), V0 = P({}, Al, {
|
|
2066
2066
|
newState: 0,
|
|
2067
2067
|
oldState: 0
|
|
2068
|
-
}), K0 =
|
|
2068
|
+
}), K0 = wt(V0), J0 = [9, 13, 27, 32], pf = xe && "CompositionEvent" in window, Gn = null;
|
|
2069
2069
|
xe && "documentMode" in document && (Gn = document.documentMode);
|
|
2070
|
-
var I0 = xe && "TextEvent" in window && !Gn, Yr = xe && (!pf || Gn && 8 < Gn && 11 >= Gn), Ro = " ",
|
|
2070
|
+
var I0 = xe && "TextEvent" in window && !Gn, Yr = xe && (!pf || Gn && 8 < Gn && 11 >= Gn), Ro = " ", wo = !1;
|
|
2071
2071
|
function Br(t, e) {
|
|
2072
2072
|
switch (t) {
|
|
2073
2073
|
case "keyup":
|
|
@@ -2091,9 +2091,9 @@ function k0(t, e) {
|
|
|
2091
2091
|
case "compositionend":
|
|
2092
2092
|
return qr(e);
|
|
2093
2093
|
case "keypress":
|
|
2094
|
-
return e.which !== 32 ? null : (
|
|
2094
|
+
return e.which !== 32 ? null : (wo = !0, Ro);
|
|
2095
2095
|
case "textInput":
|
|
2096
|
-
return t = e.data, t === Ro &&
|
|
2096
|
+
return t = e.data, t === Ro && wo ? null : t;
|
|
2097
2097
|
default:
|
|
2098
2098
|
return null;
|
|
2099
2099
|
}
|
|
@@ -2134,7 +2134,7 @@ var F0 = {
|
|
|
2134
2134
|
url: !0,
|
|
2135
2135
|
week: !0
|
|
2136
2136
|
};
|
|
2137
|
-
function
|
|
2137
|
+
function Co(t) {
|
|
2138
2138
|
var e = t && t.nodeName && t.nodeName.toLowerCase();
|
|
2139
2139
|
return e === "input" ? !!F0[t.type] : e === "textarea";
|
|
2140
2140
|
}
|
|
@@ -2152,8 +2152,8 @@ function P0(t) {
|
|
|
2152
2152
|
Gy(t, 0);
|
|
2153
2153
|
}
|
|
2154
2154
|
function Ku(t) {
|
|
2155
|
-
var e =
|
|
2156
|
-
if (
|
|
2155
|
+
var e = Cn(t);
|
|
2156
|
+
if (Cr(e)) return t;
|
|
2157
2157
|
}
|
|
2158
2158
|
function Uo(t, e) {
|
|
2159
2159
|
if (t === "change") return e;
|
|
@@ -2430,7 +2430,7 @@ function Fa(t, e, l, n, a, u) {
|
|
|
2430
2430
|
case cf:
|
|
2431
2431
|
i = 14;
|
|
2432
2432
|
break t;
|
|
2433
|
-
case
|
|
2433
|
+
case we:
|
|
2434
2434
|
i = 16, n = null;
|
|
2435
2435
|
break t;
|
|
2436
2436
|
}
|
|
@@ -2920,7 +2920,7 @@ function fd(t) {
|
|
|
2920
2920
|
m.props.children,
|
|
2921
2921
|
h,
|
|
2922
2922
|
m.key
|
|
2923
|
-
) : r !== null && (r.elementType === T || typeof T == "object" && T !== null && T.$$typeof ===
|
|
2923
|
+
) : r !== null && (r.elementType === T || typeof T == "object" && T !== null && T.$$typeof === we && sl(T) === r.type) ? (r = a(r, m.props), _n(r, m), r.return = y, r) : (r = Fa(
|
|
2924
2924
|
m.type,
|
|
2925
2925
|
m.key,
|
|
2926
2926
|
m.props,
|
|
@@ -2964,10 +2964,10 @@ function fd(t) {
|
|
|
2964
2964
|
y.mode,
|
|
2965
2965
|
m
|
|
2966
2966
|
), r.return = y, r;
|
|
2967
|
-
case
|
|
2967
|
+
case we:
|
|
2968
2968
|
return r = sl(r), p(y, r, m);
|
|
2969
2969
|
}
|
|
2970
|
-
if (
|
|
2970
|
+
if (wn(r) || Tn(r))
|
|
2971
2971
|
return r = yl(
|
|
2972
2972
|
r,
|
|
2973
2973
|
y.mode,
|
|
@@ -2996,10 +2996,10 @@ function fd(t) {
|
|
|
2996
2996
|
return m.key === T ? f(y, r, m, h) : null;
|
|
2997
2997
|
case Rn:
|
|
2998
2998
|
return m.key === T ? o(y, r, m, h) : null;
|
|
2999
|
-
case
|
|
2999
|
+
case we:
|
|
3000
3000
|
return m = sl(m), s(y, r, m, h);
|
|
3001
3001
|
}
|
|
3002
|
-
if (
|
|
3002
|
+
if (wn(m) || Tn(m))
|
|
3003
3003
|
return T !== null ? null : d(y, r, m, h, null);
|
|
3004
3004
|
if (typeof m.then == "function")
|
|
3005
3005
|
return s(
|
|
@@ -3032,7 +3032,7 @@ function fd(t) {
|
|
|
3032
3032
|
return y = y.get(
|
|
3033
3033
|
h.key === null ? m : h.key
|
|
3034
3034
|
) || null, o(r, y, h, T);
|
|
3035
|
-
case
|
|
3035
|
+
case we:
|
|
3036
3036
|
return h = sl(h), D(
|
|
3037
3037
|
y,
|
|
3038
3038
|
r,
|
|
@@ -3041,7 +3041,7 @@ function fd(t) {
|
|
|
3041
3041
|
T
|
|
3042
3042
|
);
|
|
3043
3043
|
}
|
|
3044
|
-
if (
|
|
3044
|
+
if (wn(h) || Tn(h))
|
|
3045
3045
|
return y = y.get(m) || null, d(r, y, h, T, null);
|
|
3046
3046
|
if (typeof h.then == "function")
|
|
3047
3047
|
return D(
|
|
@@ -3149,7 +3149,7 @@ function fd(t) {
|
|
|
3149
3149
|
), h.return = y, y = h;
|
|
3150
3150
|
break t;
|
|
3151
3151
|
}
|
|
3152
|
-
} else if (r.elementType === T || typeof T == "object" && T !== null && T.$$typeof ===
|
|
3152
|
+
} else if (r.elementType === T || typeof T == "object" && T !== null && T.$$typeof === we && sl(T) === r.type) {
|
|
3153
3153
|
l(
|
|
3154
3154
|
y,
|
|
3155
3155
|
r.sibling
|
|
@@ -3196,7 +3196,7 @@ function fd(t) {
|
|
|
3196
3196
|
h = Ai(m, y.mode, h), h.return = y, y = h;
|
|
3197
3197
|
}
|
|
3198
3198
|
return i(y);
|
|
3199
|
-
case
|
|
3199
|
+
case we:
|
|
3200
3200
|
return m = sl(m), _(
|
|
3201
3201
|
y,
|
|
3202
3202
|
r,
|
|
@@ -3204,7 +3204,7 @@ function fd(t) {
|
|
|
3204
3204
|
h
|
|
3205
3205
|
);
|
|
3206
3206
|
}
|
|
3207
|
-
if (
|
|
3207
|
+
if (wn(m))
|
|
3208
3208
|
return g(
|
|
3209
3209
|
y,
|
|
3210
3210
|
r,
|
|
@@ -3256,7 +3256,7 @@ function fd(t) {
|
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
3258
|
}
|
|
3259
|
-
var gl = fd(!0), od = fd(!1),
|
|
3259
|
+
var gl = fd(!0), od = fd(!1), Ce = !1;
|
|
3260
3260
|
function _f(t) {
|
|
3261
3261
|
t.updateQueue = {
|
|
3262
3262
|
baseState: t.memoizedState,
|
|
@@ -3331,7 +3331,7 @@ function Xn() {
|
|
|
3331
3331
|
function Qn(t, e, l, n) {
|
|
3332
3332
|
Tc = !1;
|
|
3333
3333
|
var a = t.updateQueue;
|
|
3334
|
-
|
|
3334
|
+
Ce = !1;
|
|
3335
3335
|
var u = a.firstBaseUpdate, i = a.lastBaseUpdate, c = a.shared.pending;
|
|
3336
3336
|
if (c !== null) {
|
|
3337
3337
|
a.shared.pending = null;
|
|
@@ -3372,7 +3372,7 @@ function Qn(t, e, l, n) {
|
|
|
3372
3372
|
p = P({}, p, s);
|
|
3373
3373
|
break t;
|
|
3374
3374
|
case 2:
|
|
3375
|
-
|
|
3375
|
+
Ce = !0;
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
3378
|
s = c.callback, s !== null && (t.flags |= 64, D && (t.flags |= 8192), D = a.callbacks, D === null ? a.callbacks = [s] : D.push(s));
|
|
@@ -3501,7 +3501,7 @@ function Nf() {
|
|
|
3501
3501
|
function Rf(t, e, l) {
|
|
3502
3502
|
e.updateQueue = t.updateQueue, e.flags &= -2053, t.lanes &= ~l;
|
|
3503
3503
|
}
|
|
3504
|
-
function
|
|
3504
|
+
function wf(t) {
|
|
3505
3505
|
if (Eu) {
|
|
3506
3506
|
for (t = t.memoizedState; t !== null; ) {
|
|
3507
3507
|
var e = t.queue;
|
|
@@ -3556,7 +3556,7 @@ function Fu(t) {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
throw Error(S(438, String(t)));
|
|
3558
3558
|
}
|
|
3559
|
-
function
|
|
3559
|
+
function Cf(t) {
|
|
3560
3560
|
var e = null, l = U.updateQueue;
|
|
3561
3561
|
if (l !== null && (e = l.memoCache), e == null) {
|
|
3562
3562
|
var n = U.alternate;
|
|
@@ -3981,13 +3981,13 @@ function Rd(t, e, l) {
|
|
|
3981
3981
|
}
|
|
3982
3982
|
function Lf() {
|
|
3983
3983
|
}
|
|
3984
|
-
function
|
|
3984
|
+
function wd(t, e) {
|
|
3985
3985
|
var l = it();
|
|
3986
3986
|
e = e === void 0 ? null : e;
|
|
3987
3987
|
var n = l.memoizedState;
|
|
3988
3988
|
return e !== null && Of(e, n[1]) ? n[0] : (l.memoizedState = [t, e], t);
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function Cd(t, e) {
|
|
3991
3991
|
var l = it();
|
|
3992
3992
|
e = e === void 0 ? null : e;
|
|
3993
3993
|
var n = l.memoizedState;
|
|
@@ -4371,7 +4371,7 @@ var Xd = {
|
|
|
4371
4371
|
l
|
|
4372
4372
|
), l.dispatch = e, [t, e];
|
|
4373
4373
|
},
|
|
4374
|
-
useMemoCache:
|
|
4374
|
+
useMemoCache: Cf,
|
|
4375
4375
|
useCacheRefresh: function() {
|
|
4376
4376
|
return Tt().memoizedState = Em.bind(
|
|
4377
4377
|
null,
|
|
@@ -4389,13 +4389,13 @@ var Xd = {
|
|
|
4389
4389
|
}, Yf = {
|
|
4390
4390
|
readContext: Et,
|
|
4391
4391
|
use: Fu,
|
|
4392
|
-
useCallback:
|
|
4392
|
+
useCallback: wd,
|
|
4393
4393
|
useContext: Et,
|
|
4394
4394
|
useEffect: jf,
|
|
4395
4395
|
useImperativeHandle: Rd,
|
|
4396
4396
|
useInsertionEffect: Od,
|
|
4397
4397
|
useLayoutEffect: zd,
|
|
4398
|
-
useMemo:
|
|
4398
|
+
useMemo: Cd,
|
|
4399
4399
|
useReducer: tu,
|
|
4400
4400
|
useRef: _d,
|
|
4401
4401
|
useState: function() {
|
|
@@ -4427,20 +4427,20 @@ var Xd = {
|
|
|
4427
4427
|
var l = it();
|
|
4428
4428
|
return Ed(l, K, t, e);
|
|
4429
4429
|
},
|
|
4430
|
-
useMemoCache:
|
|
4430
|
+
useMemoCache: Cf,
|
|
4431
4431
|
useCacheRefresh: Wd
|
|
4432
4432
|
};
|
|
4433
4433
|
Yf.useEffectEvent = Md;
|
|
4434
4434
|
var Qd = {
|
|
4435
4435
|
readContext: Et,
|
|
4436
4436
|
use: Fu,
|
|
4437
|
-
useCallback:
|
|
4437
|
+
useCallback: wd,
|
|
4438
4438
|
useContext: Et,
|
|
4439
4439
|
useEffect: jf,
|
|
4440
4440
|
useImperativeHandle: Rd,
|
|
4441
4441
|
useInsertionEffect: Od,
|
|
4442
4442
|
useLayoutEffect: zd,
|
|
4443
|
-
useMemo:
|
|
4443
|
+
useMemo: Cd,
|
|
4444
4444
|
useReducer: Mi,
|
|
4445
4445
|
useRef: _d,
|
|
4446
4446
|
useState: function() {
|
|
@@ -4472,7 +4472,7 @@ var Qd = {
|
|
|
4472
4472
|
var l = it();
|
|
4473
4473
|
return K !== null ? Ed(l, K, t, e) : (l.baseState = t, [t, l.queue.dispatch]);
|
|
4474
4474
|
},
|
|
4475
|
-
useMemoCache:
|
|
4475
|
+
useMemoCache: Cf,
|
|
4476
4476
|
useCacheRefresh: Wd
|
|
4477
4477
|
};
|
|
4478
4478
|
Qd.useEffectEvent = Md;
|
|
@@ -4857,14 +4857,14 @@ function os(t, e, l, n, a) {
|
|
|
4857
4857
|
u,
|
|
4858
4858
|
n,
|
|
4859
4859
|
i
|
|
4860
|
-
),
|
|
4860
|
+
), Ce = !1;
|
|
4861
4861
|
var s = e.memoizedState;
|
|
4862
|
-
u.state = s, Qn(e, n, u, a), Xn(), o = e.memoizedState, c || s !== o ||
|
|
4862
|
+
u.state = s, Qn(e, n, u, a), Xn(), o = e.memoizedState, c || s !== o || Ce ? (typeof p == "function" && (Oi(
|
|
4863
4863
|
e,
|
|
4864
4864
|
l,
|
|
4865
4865
|
p,
|
|
4866
4866
|
n
|
|
4867
|
-
), o = e.memoizedState), (f =
|
|
4867
|
+
), o = e.memoizedState), (f = Ce || es(
|
|
4868
4868
|
e,
|
|
4869
4869
|
l,
|
|
4870
4870
|
f,
|
|
@@ -4879,14 +4879,14 @@ function os(t, e, l, n, a) {
|
|
|
4879
4879
|
u,
|
|
4880
4880
|
n,
|
|
4881
4881
|
f
|
|
4882
|
-
),
|
|
4882
|
+
), Ce = !1, s = e.memoizedState, u.state = s, Qn(e, n, u, a), Xn();
|
|
4883
4883
|
var D = e.memoizedState;
|
|
4884
|
-
i !== p || s !== D ||
|
|
4884
|
+
i !== p || s !== D || Ce || t !== null && t.dependencies !== null && hu(t.dependencies) ? (typeof c == "function" && (Oi(
|
|
4885
4885
|
e,
|
|
4886
4886
|
l,
|
|
4887
4887
|
c,
|
|
4888
4888
|
n
|
|
4889
|
-
), D = e.memoizedState), (d =
|
|
4889
|
+
), D = e.memoizedState), (d = Ce || es(
|
|
4890
4890
|
e,
|
|
4891
4891
|
l,
|
|
4892
4892
|
d,
|
|
@@ -4959,12 +4959,12 @@ function Fd(t, e, l) {
|
|
|
4959
4959
|
t,
|
|
4960
4960
|
i,
|
|
4961
4961
|
l
|
|
4962
|
-
), e.memoizedState = zi, Un(null, n)) : (je(e),
|
|
4962
|
+
), e.memoizedState = zi, Un(null, n)) : (je(e), wc(e, c));
|
|
4963
4963
|
}
|
|
4964
4964
|
var f = t.memoizedState;
|
|
4965
4965
|
if (f !== null && (c = f.dehydrated, c !== null)) {
|
|
4966
4966
|
if (u)
|
|
4967
|
-
e.flags & 256 ? (je(e), e.flags &= -257, e =
|
|
4967
|
+
e.flags & 256 ? (je(e), e.flags &= -257, e = wi(
|
|
4968
4968
|
t,
|
|
4969
4969
|
e,
|
|
4970
4970
|
l
|
|
@@ -4988,7 +4988,7 @@ function Fd(t, e, l) {
|
|
|
4988
4988
|
), e.memoizedState = zi, e = Un(null, n));
|
|
4989
4989
|
else if (je(e), Zc(c)) {
|
|
4990
4990
|
if (i = c.nextSibling && c.nextSibling.dataset, i) var o = i.dgst;
|
|
4991
|
-
i = o, n = Error(S(419)), n.stack = "", n.digest = i, na({ value: n, source: null, stack: null }), e =
|
|
4991
|
+
i = o, n = Error(S(419)), n.stack = "", n.digest = i, na({ value: n, source: null, stack: null }), e = wi(
|
|
4992
4992
|
t,
|
|
4993
4993
|
e,
|
|
4994
4994
|
l
|
|
@@ -4996,7 +4996,7 @@ function Fd(t, e, l) {
|
|
|
4996
4996
|
} else if (rt || vn(t, e, l, !1), i = (l & t.childLanes) !== 0, rt || i) {
|
|
4997
4997
|
if (i = J, i !== null && (n = Or(i, l), n !== 0 && n !== f.retryLane))
|
|
4998
4998
|
throw f.retryLane = n, _l(t, n), Nt(i, t, n), Bf;
|
|
4999
|
-
Qc(c) || Ou(), e =
|
|
4999
|
+
Qc(c) || Ou(), e = wi(
|
|
5000
5000
|
t,
|
|
5001
5001
|
e,
|
|
5002
5002
|
l
|
|
@@ -5004,7 +5004,7 @@ function Fd(t, e, l) {
|
|
|
5004
5004
|
} else
|
|
5005
5005
|
Qc(c) ? (e.flags |= 192, e.child = t.child, e = null) : (t = f.treeContext, $ = $t(
|
|
5006
5006
|
c.nextSibling
|
|
5007
|
-
), St = e, B = !0, Qe = null, It = !1, t !== null && ad(e, t), e =
|
|
5007
|
+
), St = e, B = !0, Qe = null, It = !1, t !== null && ad(e, t), e = wc(
|
|
5008
5008
|
e,
|
|
5009
5009
|
n.children
|
|
5010
5010
|
), e.flags |= 4096);
|
|
@@ -5033,7 +5033,7 @@ function Fd(t, e, l) {
|
|
|
5033
5033
|
children: n.children
|
|
5034
5034
|
}), l.return = e, l.sibling = null, t !== null && (i = e.deletions, i === null ? (e.deletions = [t], e.flags |= 16) : i.push(t)), e.child = l, e.memoizedState = null, l);
|
|
5035
5035
|
}
|
|
5036
|
-
function
|
|
5036
|
+
function wc(t, e) {
|
|
5037
5037
|
return e = Au(
|
|
5038
5038
|
{ mode: "visible", children: e },
|
|
5039
5039
|
t.mode
|
|
@@ -5042,8 +5042,8 @@ function Cc(t, e) {
|
|
|
5042
5042
|
function Au(t, e) {
|
|
5043
5043
|
return t = jt(22, t, null, e), t.lanes = 0, t;
|
|
5044
5044
|
}
|
|
5045
|
-
function
|
|
5046
|
-
return gl(e, t.child, null, l), t =
|
|
5045
|
+
function wi(t, e, l) {
|
|
5046
|
+
return gl(e, t.child, null, l), t = wc(
|
|
5047
5047
|
e,
|
|
5048
5048
|
e.pendingProps.children
|
|
5049
5049
|
), t.flags |= 2, e.memoizedState = null, t;
|
|
@@ -5053,7 +5053,7 @@ function rs(t, e, l) {
|
|
|
5053
5053
|
var n = t.alternate;
|
|
5054
5054
|
n !== null && (n.lanes |= e), gc(t.return, e, l);
|
|
5055
5055
|
}
|
|
5056
|
-
function
|
|
5056
|
+
function Ci(t, e, l, n, a, u) {
|
|
5057
5057
|
var i = t.memoizedState;
|
|
5058
5058
|
i === null ? t.memoizedState = {
|
|
5059
5059
|
isBackwards: e,
|
|
@@ -5091,7 +5091,7 @@ function Pd(t, e, l) {
|
|
|
5091
5091
|
case "forwards":
|
|
5092
5092
|
for (l = e.child, a = null; l !== null; )
|
|
5093
5093
|
t = l.alternate, t !== null && Su(t) === null && (a = l), l = l.sibling;
|
|
5094
|
-
l = a, l === null ? (a = e.child, e.child = null) : (a = l.sibling, l.sibling = null),
|
|
5094
|
+
l = a, l === null ? (a = e.child, e.child = null) : (a = l.sibling, l.sibling = null), Ci(
|
|
5095
5095
|
e,
|
|
5096
5096
|
!1,
|
|
5097
5097
|
a,
|
|
@@ -5109,7 +5109,7 @@ function Pd(t, e, l) {
|
|
|
5109
5109
|
}
|
|
5110
5110
|
t = a.sibling, a.sibling = l, l = a, a = t;
|
|
5111
5111
|
}
|
|
5112
|
-
|
|
5112
|
+
Ci(
|
|
5113
5113
|
e,
|
|
5114
5114
|
!0,
|
|
5115
5115
|
l,
|
|
@@ -5119,7 +5119,7 @@ function Pd(t, e, l) {
|
|
|
5119
5119
|
);
|
|
5120
5120
|
break;
|
|
5121
5121
|
case "together":
|
|
5122
|
-
|
|
5122
|
+
Ci(
|
|
5123
5123
|
e,
|
|
5124
5124
|
!1,
|
|
5125
5125
|
null,
|
|
@@ -5373,7 +5373,7 @@ function ty(t, e, l) {
|
|
|
5373
5373
|
null,
|
|
5374
5374
|
e.pendingProps,
|
|
5375
5375
|
null
|
|
5376
|
-
)) ? e.memoizedState = l : B || (l = e.type, t = e.pendingProps, n =
|
|
5376
|
+
)) ? e.memoizedState = l : B || (l = e.type, t = e.pendingProps, n = wu(
|
|
5377
5377
|
Xe.current
|
|
5378
5378
|
).createElement(l), n[gt] = e, n[Rt] = t, bt(n, l, t), pt(n), e.stateNode = n) : e.memoizedState = Rs(
|
|
5379
5379
|
e.type,
|
|
@@ -5606,7 +5606,7 @@ function _m(t, e, l) {
|
|
|
5606
5606
|
if (u = oe.current, Rl(e))
|
|
5607
5607
|
Bo(e);
|
|
5608
5608
|
else {
|
|
5609
|
-
var i =
|
|
5609
|
+
var i = wu(
|
|
5610
5610
|
Xe.current
|
|
5611
5611
|
);
|
|
5612
5612
|
switch (u) {
|
|
@@ -5705,7 +5705,7 @@ function _m(t, e, l) {
|
|
|
5705
5705
|
}
|
|
5706
5706
|
t[gt] = e, t = !!(t.nodeValue === l || n !== null && n.suppressHydrationWarning === !0 || Yy(t.nodeValue, l)), t || el(e, !0);
|
|
5707
5707
|
} else
|
|
5708
|
-
t =
|
|
5708
|
+
t = wu(t).createTextNode(
|
|
5709
5709
|
n
|
|
5710
5710
|
), t[gt] = e, e.stateNode = t;
|
|
5711
5711
|
}
|
|
@@ -6019,13 +6019,13 @@ function Li(t) {
|
|
|
6019
6019
|
if (!(t.flags & 2)) return t.stateNode;
|
|
6020
6020
|
}
|
|
6021
6021
|
}
|
|
6022
|
-
function
|
|
6022
|
+
function Cc(t, e, l) {
|
|
6023
6023
|
var n = t.tag;
|
|
6024
6024
|
if (n === 5 || n === 6)
|
|
6025
6025
|
t = t.stateNode, e ? (l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l).insertBefore(t, e) : (e = l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l, e.appendChild(t), l = l._reactRootContainer, l != null || e.onclick !== null || (e.onclick = Se));
|
|
6026
6026
|
else if (n !== 4 && (n === 27 && ul(t.type) && (l = t.stateNode, e = null), t = t.child, t !== null))
|
|
6027
|
-
for (
|
|
6028
|
-
|
|
6027
|
+
for (Cc(t, e, l), t = t.sibling; t !== null; )
|
|
6028
|
+
Cc(t, e, l), t = t.sibling;
|
|
6029
6029
|
}
|
|
6030
6030
|
function xu(t, e, l) {
|
|
6031
6031
|
var n = t.tag;
|
|
@@ -6460,7 +6460,7 @@ function dy(t, e) {
|
|
|
6460
6460
|
)), bt(u, n, l), u[gt] = t, pt(u), n = u;
|
|
6461
6461
|
break t;
|
|
6462
6462
|
case "link":
|
|
6463
|
-
var i =
|
|
6463
|
+
var i = Cs(
|
|
6464
6464
|
"link",
|
|
6465
6465
|
"href",
|
|
6466
6466
|
a
|
|
@@ -6475,7 +6475,7 @@ function dy(t, e) {
|
|
|
6475
6475
|
u = a.createElement(n), bt(u, n, l), a.head.appendChild(u);
|
|
6476
6476
|
break;
|
|
6477
6477
|
case "meta":
|
|
6478
|
-
if (i =
|
|
6478
|
+
if (i = Cs(
|
|
6479
6479
|
"meta",
|
|
6480
6480
|
"content",
|
|
6481
6481
|
a
|
|
@@ -6501,7 +6501,7 @@ function dy(t, e) {
|
|
|
6501
6501
|
t.stateNode
|
|
6502
6502
|
);
|
|
6503
6503
|
else
|
|
6504
|
-
t.stateNode =
|
|
6504
|
+
t.stateNode = ws(
|
|
6505
6505
|
a,
|
|
6506
6506
|
n,
|
|
6507
6507
|
t.memoizedProps
|
|
@@ -6511,7 +6511,7 @@ function dy(t, e) {
|
|
|
6511
6511
|
a,
|
|
6512
6512
|
t.type,
|
|
6513
6513
|
t.stateNode
|
|
6514
|
-
) :
|
|
6514
|
+
) : ws(
|
|
6515
6515
|
a,
|
|
6516
6516
|
n,
|
|
6517
6517
|
t.memoizedProps
|
|
@@ -6557,7 +6557,7 @@ function dy(t, e) {
|
|
|
6557
6557
|
}
|
|
6558
6558
|
break;
|
|
6559
6559
|
case 3:
|
|
6560
|
-
if (iu = null, a = le, le =
|
|
6560
|
+
if (iu = null, a = le, le = Cu(e.containerInfo), _t(e, t), le = a, Mt(t), n & 4 && l !== null && l.memoizedState.isDehydrated)
|
|
6561
6561
|
try {
|
|
6562
6562
|
Dn(e.containerInfo);
|
|
6563
6563
|
} catch (g) {
|
|
@@ -6566,7 +6566,7 @@ function dy(t, e) {
|
|
|
6566
6566
|
Hi && (Hi = !1, yy(t));
|
|
6567
6567
|
break;
|
|
6568
6568
|
case 4:
|
|
6569
|
-
n = le, le =
|
|
6569
|
+
n = le, le = Cu(
|
|
6570
6570
|
t.stateNode.containerInfo
|
|
6571
6571
|
), _t(e, t), Mt(t), le = n;
|
|
6572
6572
|
break;
|
|
@@ -6668,7 +6668,7 @@ function Mt(t) {
|
|
|
6668
6668
|
case 3:
|
|
6669
6669
|
case 4:
|
|
6670
6670
|
var f = l.stateNode.containerInfo, o = Li(t);
|
|
6671
|
-
|
|
6671
|
+
Cc(
|
|
6672
6672
|
t,
|
|
6673
6673
|
o,
|
|
6674
6674
|
f
|
|
@@ -7028,7 +7028,7 @@ function Kn(t, e) {
|
|
|
7028
7028
|
}
|
|
7029
7029
|
}
|
|
7030
7030
|
var jn = 8192;
|
|
7031
|
-
function
|
|
7031
|
+
function wl(t, e, l) {
|
|
7032
7032
|
if (t.subtreeFlags & jn)
|
|
7033
7033
|
for (t = t.child; t !== null; )
|
|
7034
7034
|
my(
|
|
@@ -7040,7 +7040,7 @@ function Cl(t, e, l) {
|
|
|
7040
7040
|
function my(t, e, l) {
|
|
7041
7041
|
switch (t.tag) {
|
|
7042
7042
|
case 26:
|
|
7043
|
-
|
|
7043
|
+
wl(
|
|
7044
7044
|
t,
|
|
7045
7045
|
e,
|
|
7046
7046
|
l
|
|
@@ -7052,7 +7052,7 @@ function my(t, e, l) {
|
|
|
7052
7052
|
);
|
|
7053
7053
|
break;
|
|
7054
7054
|
case 5:
|
|
7055
|
-
|
|
7055
|
+
wl(
|
|
7056
7056
|
t,
|
|
7057
7057
|
e,
|
|
7058
7058
|
l
|
|
@@ -7061,25 +7061,25 @@ function my(t, e, l) {
|
|
|
7061
7061
|
case 3:
|
|
7062
7062
|
case 4:
|
|
7063
7063
|
var n = le;
|
|
7064
|
-
le =
|
|
7064
|
+
le = Cu(t.stateNode.containerInfo), wl(
|
|
7065
7065
|
t,
|
|
7066
7066
|
e,
|
|
7067
7067
|
l
|
|
7068
7068
|
), le = n;
|
|
7069
7069
|
break;
|
|
7070
7070
|
case 22:
|
|
7071
|
-
t.memoizedState === null && (n = t.alternate, n !== null && n.memoizedState !== null ? (n = jn, jn = 16777216,
|
|
7071
|
+
t.memoizedState === null && (n = t.alternate, n !== null && n.memoizedState !== null ? (n = jn, jn = 16777216, wl(
|
|
7072
7072
|
t,
|
|
7073
7073
|
e,
|
|
7074
7074
|
l
|
|
7075
|
-
), jn = n) :
|
|
7075
|
+
), jn = n) : wl(
|
|
7076
7076
|
t,
|
|
7077
7077
|
e,
|
|
7078
7078
|
l
|
|
7079
7079
|
));
|
|
7080
7080
|
break;
|
|
7081
7081
|
default:
|
|
7082
|
-
|
|
7082
|
+
wl(
|
|
7083
7083
|
t,
|
|
7084
7084
|
e,
|
|
7085
7085
|
l
|
|
@@ -7206,15 +7206,15 @@ var Nm = {
|
|
|
7206
7206
|
cacheSignal: function() {
|
|
7207
7207
|
return Et(st).controller.signal;
|
|
7208
7208
|
}
|
|
7209
|
-
}, Rm = typeof WeakMap == "function" ? WeakMap : Map, q = 0, J = null, W = null, Y = 0, Q = 0,
|
|
7209
|
+
}, Rm = typeof WeakMap == "function" ? WeakMap : Map, q = 0, J = null, W = null, Y = 0, Q = 0, Ct = null, Ye = !1, Sn = !1, Zf = !1, ze = 0, lt = 0, nl = 0, pl = 0, Vf = 0, Lt = 0, sn = 0, Jn = null, zt = null, Uc = !1, ei = 0, gy = 0, _u = 1 / 0, Mu = null, Ke = null, dt = 0, Je = null, rn = null, Ae = 0, jc = 0, Lc = null, Sy = null, In = 0, Hc = null;
|
|
7210
7210
|
function Yt() {
|
|
7211
7211
|
return q & 2 && Y !== 0 ? Y & -Y : R.T !== null ? Jf() : zr();
|
|
7212
7212
|
}
|
|
7213
7213
|
function Ey() {
|
|
7214
7214
|
if (Lt === 0)
|
|
7215
7215
|
if (!(Y & 536870912) || B) {
|
|
7216
|
-
var t =
|
|
7217
|
-
|
|
7216
|
+
var t = Ca;
|
|
7217
|
+
Ca <<= 1, !(Ca & 3932160) && (Ca = 262144), Lt = t;
|
|
7218
7218
|
} else Lt = 536870912;
|
|
7219
7219
|
return t = qt.current, t !== null && (t.flags |= 32), Lt;
|
|
7220
7220
|
}
|
|
@@ -7239,7 +7239,7 @@ function by(t, e, l) {
|
|
|
7239
7239
|
Sn && !n && Be(t, e, 0, !1);
|
|
7240
7240
|
break;
|
|
7241
7241
|
} else {
|
|
7242
|
-
if (l = t.current.alternate, u && !
|
|
7242
|
+
if (l = t.current.alternate, u && !wm(l)) {
|
|
7243
7243
|
a = Gi(t, e, !1), u = !1;
|
|
7244
7244
|
continue;
|
|
7245
7245
|
}
|
|
@@ -7407,7 +7407,7 @@ function Ds(t, e, l, n, a, u, i, c, f, o, d, p, s, D) {
|
|
|
7407
7407
|
f
|
|
7408
7408
|
);
|
|
7409
7409
|
}
|
|
7410
|
-
function
|
|
7410
|
+
function wm(t) {
|
|
7411
7411
|
for (var e = t; ; ) {
|
|
7412
7412
|
var l = e.tag;
|
|
7413
7413
|
if ((l === 0 || l === 11 || l === 15) && e.flags & 16384 && (l = e.updateQueue, l !== null && (l = l.stores, l !== null)))
|
|
@@ -7449,7 +7449,7 @@ function Kf() {
|
|
|
7449
7449
|
if (Q === 0)
|
|
7450
7450
|
var t = W.return;
|
|
7451
7451
|
else
|
|
7452
|
-
t = W, Ee = Ml = null,
|
|
7452
|
+
t = W, Ee = Ml = null, wf(t), Pl = null, aa = 0, t = W;
|
|
7453
7453
|
for (; t !== null; )
|
|
7454
7454
|
ey(t.alternate, t), t = t.return;
|
|
7455
7455
|
W = null;
|
|
@@ -7457,7 +7457,7 @@ function Kf() {
|
|
|
7457
7457
|
}
|
|
7458
7458
|
function dn(t, e) {
|
|
7459
7459
|
var l = t.timeoutHandle;
|
|
7460
|
-
l !== -1 && (t.timeoutHandle = -1, Fm(l)), l = t.cancelPendingCommit, l !== null && (t.cancelPendingCommit = null, l()), Ae = 0, Kf(), J = t, W = l = be(t.current, null), Y = e, Q = 0,
|
|
7460
|
+
l !== -1 && (t.timeoutHandle = -1, Fm(l)), l = t.cancelPendingCommit, l !== null && (t.cancelPendingCommit = null, l()), Ae = 0, Kf(), J = t, W = l = be(t.current, null), Y = e, Q = 0, Ct = null, Ye = !1, Sn = pa(t, e), Zf = !1, sn = Lt = Vf = pl = nl = lt = 0, zt = Jn = null, Uc = !1, e & 8 && (e |= e & 32);
|
|
7461
7461
|
var n = t.entangledLanes;
|
|
7462
7462
|
if (n !== 0)
|
|
7463
7463
|
for (t = t.entanglements, n &= e; 0 < n; ) {
|
|
@@ -7467,7 +7467,7 @@ function dn(t, e) {
|
|
|
7467
7467
|
return ze = e, Ju(), l;
|
|
7468
7468
|
}
|
|
7469
7469
|
function Ty(t, e) {
|
|
7470
|
-
U = null, R.H = ia, e === gn || e === ku ? (e = Vo(), Q = 3) : e === xf ? (e = Vo(), Q = 4) : Q = e === Bf ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1,
|
|
7470
|
+
U = null, R.H = ia, e === gn || e === ku ? (e = Vo(), Q = 3) : e === xf ? (e = Vo(), Q = 4) : Q = e === Bf ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, Ct = e, W === null && (lt = 1, Tu(
|
|
7471
7471
|
t,
|
|
7472
7472
|
Jt(e, t.current)
|
|
7473
7473
|
));
|
|
@@ -7501,7 +7501,7 @@ function Gi(t, e, l) {
|
|
|
7501
7501
|
t: do
|
|
7502
7502
|
try {
|
|
7503
7503
|
if (Q !== 0 && W !== null) {
|
|
7504
|
-
var c = W, f =
|
|
7504
|
+
var c = W, f = Ct;
|
|
7505
7505
|
switch (Q) {
|
|
7506
7506
|
case 8:
|
|
7507
7507
|
Kf(), i = 6;
|
|
@@ -7512,16 +7512,16 @@ function Gi(t, e, l) {
|
|
|
7512
7512
|
case 6:
|
|
7513
7513
|
qt.current === null && (e = !0);
|
|
7514
7514
|
var o = Q;
|
|
7515
|
-
if (Q = 0,
|
|
7515
|
+
if (Q = 0, Ct = null, Kl(t, c, f, o), l && Sn) {
|
|
7516
7516
|
i = 0;
|
|
7517
7517
|
break t;
|
|
7518
7518
|
}
|
|
7519
7519
|
break;
|
|
7520
7520
|
default:
|
|
7521
|
-
o = Q, Q = 0,
|
|
7521
|
+
o = Q, Q = 0, Ct = null, Kl(t, c, f, o);
|
|
7522
7522
|
}
|
|
7523
7523
|
}
|
|
7524
|
-
|
|
7524
|
+
Cm(), i = lt;
|
|
7525
7525
|
break;
|
|
7526
7526
|
} catch (d) {
|
|
7527
7527
|
Ty(t, d);
|
|
@@ -7529,7 +7529,7 @@ function Gi(t, e, l) {
|
|
|
7529
7529
|
while (!0);
|
|
7530
7530
|
return e && t.shellSuspendCounter++, Ee = Ml = null, q = n, R.H = a, R.A = u, W === null && (J = null, Y = 0, Ju()), i;
|
|
7531
7531
|
}
|
|
7532
|
-
function
|
|
7532
|
+
function Cm() {
|
|
7533
7533
|
for (; W !== null; ) My(W);
|
|
7534
7534
|
}
|
|
7535
7535
|
function Um(t, e) {
|
|
@@ -7544,15 +7544,15 @@ function Um(t, e) {
|
|
|
7544
7544
|
try {
|
|
7545
7545
|
if (Q !== 0 && W !== null) {
|
|
7546
7546
|
e = W;
|
|
7547
|
-
var u =
|
|
7547
|
+
var u = Ct;
|
|
7548
7548
|
e: switch (Q) {
|
|
7549
7549
|
case 1:
|
|
7550
|
-
Q = 0,
|
|
7550
|
+
Q = 0, Ct = null, Kl(t, e, u, 1);
|
|
7551
7551
|
break;
|
|
7552
7552
|
case 2:
|
|
7553
7553
|
case 9:
|
|
7554
7554
|
if (Zo(u)) {
|
|
7555
|
-
Q = 0,
|
|
7555
|
+
Q = 0, Ct = null, ms(e);
|
|
7556
7556
|
break;
|
|
7557
7557
|
}
|
|
7558
7558
|
e = function() {
|
|
@@ -7566,7 +7566,7 @@ function Um(t, e) {
|
|
|
7566
7566
|
Q = 5;
|
|
7567
7567
|
break t;
|
|
7568
7568
|
case 7:
|
|
7569
|
-
Zo(u) ? (Q = 0,
|
|
7569
|
+
Zo(u) ? (Q = 0, Ct = null, ms(e)) : (Q = 0, Ct = null, Kl(t, e, u, 7));
|
|
7570
7570
|
break;
|
|
7571
7571
|
case 5:
|
|
7572
7572
|
var i = null;
|
|
@@ -7577,7 +7577,7 @@ function Um(t, e) {
|
|
|
7577
7577
|
case 27:
|
|
7578
7578
|
var c = W;
|
|
7579
7579
|
if (i ? Ky(i) : c.stateNode.complete) {
|
|
7580
|
-
Q = 0,
|
|
7580
|
+
Q = 0, Ct = null;
|
|
7581
7581
|
var f = c.sibling;
|
|
7582
7582
|
if (f !== null) W = f;
|
|
7583
7583
|
else {
|
|
@@ -7587,10 +7587,10 @@ function Um(t, e) {
|
|
|
7587
7587
|
break e;
|
|
7588
7588
|
}
|
|
7589
7589
|
}
|
|
7590
|
-
Q = 0,
|
|
7590
|
+
Q = 0, Ct = null, Kl(t, e, u, 5);
|
|
7591
7591
|
break;
|
|
7592
7592
|
case 6:
|
|
7593
|
-
Q = 0,
|
|
7593
|
+
Q = 0, Ct = null, Kl(t, e, u, 6);
|
|
7594
7594
|
break;
|
|
7595
7595
|
case 8:
|
|
7596
7596
|
Kf(), lt = 6;
|
|
@@ -7640,14 +7640,14 @@ function ms(t) {
|
|
|
7640
7640
|
);
|
|
7641
7641
|
break;
|
|
7642
7642
|
case 5:
|
|
7643
|
-
|
|
7643
|
+
wf(e);
|
|
7644
7644
|
default:
|
|
7645
7645
|
ey(l, e), e = W = ed(e, ze), e = ty(l, e, ze);
|
|
7646
7646
|
}
|
|
7647
7647
|
t.memoizedProps = t.pendingProps, e === null ? ni(t) : W = e;
|
|
7648
7648
|
}
|
|
7649
7649
|
function Kl(t, e, l, n) {
|
|
7650
|
-
Ee = Ml = null,
|
|
7650
|
+
Ee = Ml = null, wf(e), Pl = null, aa = 0;
|
|
7651
7651
|
var a = e.return;
|
|
7652
7652
|
try {
|
|
7653
7653
|
if (Tm(
|
|
@@ -7732,7 +7732,7 @@ function ps(t, e, l, n, a, u, i, c, f) {
|
|
|
7732
7732
|
c,
|
|
7733
7733
|
f
|
|
7734
7734
|
), t === J && (W = J = null, Y = 0), rn = e, Je = t, Ae = l, jc = u, Lc = a, Sy = n, e.subtreeFlags & 10256 || e.flags & 10256 ? (t.callbackNode = null, t.callbackPriority = 0, Wm(du, function() {
|
|
7735
|
-
return
|
|
7735
|
+
return Cy(), null;
|
|
7736
7736
|
})) : (t.callbackNode = null, t.callbackPriority = 0), n = (e.flags & 13878) !== 0, e.subtreeFlags & 13878 || n) {
|
|
7737
7737
|
n = R.T, R.T = null, a = X.p, X.p = 2, i = q, q |= 4;
|
|
7738
7738
|
try {
|
|
@@ -7829,7 +7829,7 @@ function Ry() {
|
|
|
7829
7829
|
if (dt === 4 || dt === 3) {
|
|
7830
7830
|
dt = 0, u0();
|
|
7831
7831
|
var t = Je, e = rn, l = Ae, n = Sy;
|
|
7832
|
-
e.subtreeFlags & 10256 || e.flags & 10256 ? dt = 5 : (dt = 0, rn = Je = null,
|
|
7832
|
+
e.subtreeFlags & 10256 || e.flags & 10256 ? dt = 5 : (dt = 0, rn = Je = null, wy(t, t.pendingLanes));
|
|
7833
7833
|
var a = t.pendingLanes;
|
|
7834
7834
|
if (a === 0 && (Ke = null), sf(l), e = e.stateNode, Gt && typeof Gt.onCommitFiberRoot == "function")
|
|
7835
7835
|
try {
|
|
@@ -7857,13 +7857,13 @@ function Ry() {
|
|
|
7857
7857
|
Ae & 3 && ai(), re(t), a = t.pendingLanes, l & 261930 && a & 42 ? t === Hc ? In++ : (In = 0, Hc = t) : In = 0, Ta(0);
|
|
7858
7858
|
}
|
|
7859
7859
|
}
|
|
7860
|
-
function
|
|
7860
|
+
function wy(t, e) {
|
|
7861
7861
|
(t.pooledCacheLanes &= e) === 0 && (e = t.pooledCache, e != null && (t.pooledCache = null, Sa(e)));
|
|
7862
7862
|
}
|
|
7863
7863
|
function ai() {
|
|
7864
|
-
return zy(), Ny(), Ry(),
|
|
7864
|
+
return zy(), Ny(), Ry(), Cy();
|
|
7865
7865
|
}
|
|
7866
|
-
function
|
|
7866
|
+
function Cy() {
|
|
7867
7867
|
if (dt !== 5) return !1;
|
|
7868
7868
|
var t = Je, e = jc;
|
|
7869
7869
|
jc = 0;
|
|
@@ -7885,7 +7885,7 @@ function wy() {
|
|
|
7885
7885
|
}
|
|
7886
7886
|
return !0;
|
|
7887
7887
|
} finally {
|
|
7888
|
-
X.p = a, R.T = n,
|
|
7888
|
+
X.p = a, R.T = n, wy(t, e);
|
|
7889
7889
|
}
|
|
7890
7890
|
}
|
|
7891
7891
|
function hs(t, e, l) {
|
|
@@ -8062,7 +8062,7 @@ function Bm() {
|
|
|
8062
8062
|
function Jf() {
|
|
8063
8063
|
if (qe === 0) {
|
|
8064
8064
|
var t = cn;
|
|
8065
|
-
t === 0 && (t =
|
|
8065
|
+
t === 0 && (t = wa, wa <<= 1, !(wa & 261888) && (wa = 256)), qe = t;
|
|
8066
8066
|
}
|
|
8067
8067
|
return qe;
|
|
8068
8068
|
}
|
|
@@ -8398,7 +8398,7 @@ function Qi(t, e, l, n, a) {
|
|
|
8398
8398
|
if (s = t === "mouseover" || t === "pointerover", D = t === "mouseout" || t === "pointerout", s && l !== dc && (g = l.relatedTarget || l.fromElement) && (Gl(g) || g[pn]))
|
|
8399
8399
|
break t;
|
|
8400
8400
|
if ((D || s) && (s = d.window === d ? d : (s = d.ownerDocument) ? s.defaultView || s.parentWindow : window, D ? (g = l.relatedTarget || l.toElement, D = o, g = g ? Gl(g) : null, g !== null && (_ = Da(g), b = g.tag, g !== _ || b !== 5 && b !== 27 && b !== 6) && (g = null)) : (D = null, g = o), D !== g)) {
|
|
8401
|
-
if (b = Oo, h = "onMouseLeave", y = "onMouseEnter", r = "mouse", (t === "pointerout" || t === "pointerover") && (b = No, h = "onPointerLeave", y = "onPointerEnter", r = "pointer"), _ = D == null ? s :
|
|
8401
|
+
if (b = Oo, h = "onMouseLeave", y = "onMouseEnter", r = "mouse", (t === "pointerout" || t === "pointerover") && (b = No, h = "onPointerLeave", y = "onPointerEnter", r = "pointer"), _ = D == null ? s : Cn(D), m = g == null ? s : Cn(g), s = new b(
|
|
8402
8402
|
h,
|
|
8403
8403
|
r + "leave",
|
|
8404
8404
|
D,
|
|
@@ -8447,9 +8447,9 @@ function Qi(t, e, l, n, a) {
|
|
|
8447
8447
|
}
|
|
8448
8448
|
}
|
|
8449
8449
|
t: {
|
|
8450
|
-
if (s = o ?
|
|
8450
|
+
if (s = o ? Cn(o) : window, D = s.nodeName && s.nodeName.toLowerCase(), D === "select" || D === "input" && s.type === "file")
|
|
8451
8451
|
var z = Uo;
|
|
8452
|
-
else if (
|
|
8452
|
+
else if (Co(s))
|
|
8453
8453
|
if (Qr)
|
|
8454
8454
|
z = nm;
|
|
8455
8455
|
else {
|
|
@@ -8469,9 +8469,9 @@ function Qi(t, e, l, n, a) {
|
|
|
8469
8469
|
}
|
|
8470
8470
|
E && E(t, s, o), t === "focusout" && o && s.type === "number" && o.memoizedProps.value != null && rc(s, "number", s.value);
|
|
8471
8471
|
}
|
|
8472
|
-
switch (E = o ?
|
|
8472
|
+
switch (E = o ? Cn(o) : window, t) {
|
|
8473
8473
|
case "focusin":
|
|
8474
|
-
(
|
|
8474
|
+
(Co(E) || E.contentEditable === "true") && (Bl = E, Dc = o, Yn = null);
|
|
8475
8475
|
break;
|
|
8476
8476
|
case "focusout":
|
|
8477
8477
|
Yn = Dc = Bl = null;
|
|
@@ -9351,7 +9351,7 @@ function km() {
|
|
|
9351
9351
|
return navigator.connection && (t = navigator.connection.downlink, typeof t == "number") ? t : 5;
|
|
9352
9352
|
}
|
|
9353
9353
|
var Yc = null, Bc = null;
|
|
9354
|
-
function
|
|
9354
|
+
function wu(t) {
|
|
9355
9355
|
return t.nodeType === 9 ? t : t.ownerDocument;
|
|
9356
9356
|
}
|
|
9357
9357
|
function As(t) {
|
|
@@ -9565,7 +9565,7 @@ function zs(t) {
|
|
|
9565
9565
|
return null;
|
|
9566
9566
|
}
|
|
9567
9567
|
function Qy(t, e, l) {
|
|
9568
|
-
switch (e =
|
|
9568
|
+
switch (e = wu(l), t) {
|
|
9569
9569
|
case "html":
|
|
9570
9570
|
if (t = e.documentElement, !t) throw Error(S(452));
|
|
9571
9571
|
return t;
|
|
@@ -9585,7 +9585,7 @@ function kn(t) {
|
|
|
9585
9585
|
rf(t);
|
|
9586
9586
|
}
|
|
9587
9587
|
var Pt = /* @__PURE__ */ new Map(), Ns = /* @__PURE__ */ new Set();
|
|
9588
|
-
function
|
|
9588
|
+
function Cu(t) {
|
|
9589
9589
|
return typeof t.getRootNode == "function" ? t.getRootNode() : t.nodeType === 9 ? t : t.ownerDocument;
|
|
9590
9590
|
}
|
|
9591
9591
|
var Ne = X.d;
|
|
@@ -9742,7 +9742,7 @@ function dp(t, e) {
|
|
|
9742
9742
|
}
|
|
9743
9743
|
}
|
|
9744
9744
|
function Rs(t, e, l, n) {
|
|
9745
|
-
var a = (a = Xe.current) ?
|
|
9745
|
+
var a = (a = Xe.current) ? Cu(a) : null;
|
|
9746
9746
|
if (!a) throw Error(S(446));
|
|
9747
9747
|
switch (t) {
|
|
9748
9748
|
case "meta":
|
|
@@ -9829,7 +9829,7 @@ function bn(t) {
|
|
|
9829
9829
|
function xa(t) {
|
|
9830
9830
|
return "script[async]" + t;
|
|
9831
9831
|
}
|
|
9832
|
-
function
|
|
9832
|
+
function ws(t, e, l) {
|
|
9833
9833
|
if (e.count++, e.instance === null)
|
|
9834
9834
|
switch (e.type) {
|
|
9835
9835
|
case "style":
|
|
@@ -9889,7 +9889,7 @@ function $f(t, e) {
|
|
|
9889
9889
|
t.crossOrigin == null && (t.crossOrigin = e.crossOrigin), t.referrerPolicy == null && (t.referrerPolicy = e.referrerPolicy), t.integrity == null && (t.integrity = e.integrity);
|
|
9890
9890
|
}
|
|
9891
9891
|
var iu = null;
|
|
9892
|
-
function
|
|
9892
|
+
function Cs(t, e, l) {
|
|
9893
9893
|
if (iu === null) {
|
|
9894
9894
|
var n = /* @__PURE__ */ new Map(), a = iu = /* @__PURE__ */ new Map();
|
|
9895
9895
|
a.set(l, n);
|
|
@@ -10677,36 +10677,56 @@ function Op(t, e) {
|
|
|
10677
10677
|
return u;
|
|
10678
10678
|
}
|
|
10679
10679
|
function zp(t) {
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10680
|
+
if (t && typeof t == "object") {
|
|
10681
|
+
const e = t;
|
|
10682
|
+
if ("type" in e) return String(e.type);
|
|
10683
|
+
if ("t" in e) return String(e.t);
|
|
10684
10684
|
}
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10685
|
+
return "unknown";
|
|
10686
|
+
}
|
|
10687
|
+
function Np(t, e) {
|
|
10688
|
+
const l = /* @__PURE__ */ new Set();
|
|
10689
|
+
return {
|
|
10690
|
+
shouldDrop(n, a) {
|
|
10691
|
+
var i;
|
|
10692
|
+
if (!((i = t.observers) != null && i.some((c) => c.id === a))) return !1;
|
|
10693
|
+
const u = zp(n);
|
|
10694
|
+
return l.has(u) || (l.add(u), t.log.warn("dropped observer message", { type: u, from: a })), !0;
|
|
10695
|
+
}
|
|
10696
|
+
};
|
|
10697
|
+
}
|
|
10698
|
+
function Rp(t, e) {
|
|
10699
|
+
const l = /* @__PURE__ */ new Set(), n = Np(t);
|
|
10700
|
+
let a, u = !1;
|
|
10701
|
+
function i(f) {
|
|
10702
|
+
return typeof f == "string" ? JSON.parse(f) : f instanceof ArrayBuffer || ArrayBuffer.isView(f) ? JSON.parse(new TextDecoder().decode(f)) : f;
|
|
10703
|
+
}
|
|
10704
|
+
function c() {
|
|
10705
|
+
if (u) return;
|
|
10706
|
+
u = !0;
|
|
10707
|
+
const f = t.gameComm.onMessage((o, d) => {
|
|
10708
|
+
let p;
|
|
10690
10709
|
try {
|
|
10691
|
-
|
|
10710
|
+
p = i(o);
|
|
10692
10711
|
} catch {
|
|
10693
10712
|
return;
|
|
10694
10713
|
}
|
|
10695
|
-
|
|
10714
|
+
if (!n.shouldDrop(p, d))
|
|
10715
|
+
for (const s of [...l]) s(p, d);
|
|
10696
10716
|
});
|
|
10697
|
-
|
|
10717
|
+
a = typeof f == "function" ? f : void 0;
|
|
10698
10718
|
}
|
|
10699
10719
|
return {
|
|
10700
|
-
send(
|
|
10701
|
-
t.gameComm.send(JSON.stringify(
|
|
10720
|
+
send(f, o) {
|
|
10721
|
+
t.gameComm.send(JSON.stringify(f), o);
|
|
10702
10722
|
},
|
|
10703
|
-
onMessage(
|
|
10704
|
-
return
|
|
10705
|
-
|
|
10723
|
+
onMessage(f) {
|
|
10724
|
+
return c(), l.add(f), () => {
|
|
10725
|
+
l.delete(f);
|
|
10706
10726
|
};
|
|
10707
10727
|
},
|
|
10708
10728
|
dispose() {
|
|
10709
|
-
|
|
10729
|
+
l.clear(), typeof a == "function" && a(), a = void 0, u = !1;
|
|
10710
10730
|
}
|
|
10711
10731
|
};
|
|
10712
10732
|
}
|
|
@@ -10715,7 +10735,7 @@ function lD(t, e = 0) {
|
|
|
10715
10735
|
caused by: ${lD(t.cause, e + 1)}` : "";
|
|
10716
10736
|
return l + n;
|
|
10717
10737
|
}
|
|
10718
|
-
function
|
|
10738
|
+
function wp(t) {
|
|
10719
10739
|
const e = (l) => (n, a) => {
|
|
10720
10740
|
const u = a != null && a.componentStack ? `
|
|
10721
10741
|
component stack:${a.componentStack}` : "";
|
|
@@ -10728,15 +10748,15 @@ component stack:${a.componentStack}` : "";
|
|
|
10728
10748
|
};
|
|
10729
10749
|
}
|
|
10730
10750
|
const qs = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap();
|
|
10731
|
-
function
|
|
10751
|
+
function Cp(t, e) {
|
|
10732
10752
|
const l = qs.get(t);
|
|
10733
10753
|
if (l)
|
|
10734
10754
|
return l;
|
|
10735
10755
|
const n = Op(e, t.locale);
|
|
10736
10756
|
return qs.set(t, n), t.onLocaleChange((a) => n.setLocale(a)), n;
|
|
10737
10757
|
}
|
|
10738
|
-
function
|
|
10739
|
-
const l =
|
|
10758
|
+
function Up(t, e) {
|
|
10759
|
+
const l = Cp(t, e), n = N.useCallback(
|
|
10740
10760
|
(i) => l.subscribe(() => {
|
|
10741
10761
|
Ki.set(l, (Ki.get(l) ?? 0) + 1), i();
|
|
10742
10762
|
}),
|
|
@@ -10757,7 +10777,7 @@ var nD = { exports: {} }, ii = {};
|
|
|
10757
10777
|
* This source code is licensed under the MIT license found in the
|
|
10758
10778
|
* LICENSE file in the root directory of this source tree.
|
|
10759
10779
|
*/
|
|
10760
|
-
var
|
|
10780
|
+
var jp = Symbol.for("react.transitional.element"), Lp = Symbol.for("react.fragment");
|
|
10761
10781
|
function aD(t, e, l) {
|
|
10762
10782
|
var n = null;
|
|
10763
10783
|
if (l !== void 0 && (n = "" + l), e.key !== void 0 && (n = "" + e.key), "key" in e) {
|
|
@@ -10766,19 +10786,19 @@ function aD(t, e, l) {
|
|
|
10766
10786
|
a !== "key" && (l[a] = e[a]);
|
|
10767
10787
|
} else l = e;
|
|
10768
10788
|
return e = l.ref, {
|
|
10769
|
-
$$typeof:
|
|
10789
|
+
$$typeof: jp,
|
|
10770
10790
|
type: t,
|
|
10771
10791
|
key: n,
|
|
10772
10792
|
ref: e !== void 0 ? e : null,
|
|
10773
10793
|
props: l
|
|
10774
10794
|
};
|
|
10775
10795
|
}
|
|
10776
|
-
ii.Fragment =
|
|
10796
|
+
ii.Fragment = Lp;
|
|
10777
10797
|
ii.jsx = aD;
|
|
10778
10798
|
ii.jsxs = aD;
|
|
10779
10799
|
nD.exports = ii;
|
|
10780
10800
|
var v = nD.exports;
|
|
10781
|
-
const
|
|
10801
|
+
const Hp = {
|
|
10782
10802
|
// ── Countdown / ending overlays ────────────────────────────────────────────
|
|
10783
10803
|
"cc.countdown.go": "GO!",
|
|
10784
10804
|
"cc.ending.goodGame": "Good Game!",
|
|
@@ -10813,7 +10833,7 @@ const jp = {
|
|
|
10813
10833
|
"cc.gameOver.table.members": "Members",
|
|
10814
10834
|
"cc.gameOver.table.status": "Status",
|
|
10815
10835
|
"cc.gameOver.playerWinner": "{0} Winner"
|
|
10816
|
-
},
|
|
10836
|
+
}, Gp = {
|
|
10817
10837
|
// ── Countdown / ending overlays ────────────────────────────────────────────
|
|
10818
10838
|
"cc.countdown.go": "¡YA!",
|
|
10819
10839
|
"cc.ending.goodGame": "¡Buena partida!",
|
|
@@ -10848,14 +10868,14 @@ const jp = {
|
|
|
10848
10868
|
"cc.gameOver.table.members": "Miembros",
|
|
10849
10869
|
"cc.gameOver.table.status": "Estado",
|
|
10850
10870
|
"cc.gameOver.playerWinner": "{0} Ganador"
|
|
10851
|
-
},
|
|
10871
|
+
}, Wp = {
|
|
10852
10872
|
W: "wall",
|
|
10853
10873
|
D: "dot",
|
|
10854
10874
|
E: "empty",
|
|
10855
10875
|
S: "spawn",
|
|
10856
10876
|
G: "empty"
|
|
10857
10877
|
}, Ji = (t, e) => t.repeat(e);
|
|
10858
|
-
function
|
|
10878
|
+
function Yp(t) {
|
|
10859
10879
|
const e = t, l = e.substring(0, e.length - 1).split("").reverse().join("");
|
|
10860
10880
|
return e + l;
|
|
10861
10881
|
}
|
|
@@ -10877,7 +10897,7 @@ function uD(t, e) {
|
|
|
10877
10897
|
function Ii(t, e, l) {
|
|
10878
10898
|
return t.substring(0, e) + l + t.substring(e + l.length);
|
|
10879
10899
|
}
|
|
10880
|
-
function
|
|
10900
|
+
function Bp(t, e = 1) {
|
|
10881
10901
|
const l = t[0].length, n = t.length, a = uD(l, n), u = Ji("W", $n).split(""), i = Math.floor($n / 2), c = Math.floor(e / 2);
|
|
10882
10902
|
for (let p = -c; p <= c; p++) u[i + p] = "E";
|
|
10883
10903
|
const f = "W" + Ji("S", lo) + "W", o = Ji("W", $n), d = [...t];
|
|
@@ -10886,16 +10906,16 @@ function Wp(t, e = 1) {
|
|
|
10886
10906
|
d[a.interiorTopRow + p] = Ii(d[a.interiorTopRow + p], a.startCol, f);
|
|
10887
10907
|
return d[a.bottomRow] = Ii(d[a.bottomRow], a.startCol, o), d;
|
|
10888
10908
|
}
|
|
10889
|
-
function
|
|
10890
|
-
return t.split("").map((e) =>
|
|
10909
|
+
function qp(t) {
|
|
10910
|
+
return t.split("").map((e) => Wp[e]);
|
|
10891
10911
|
}
|
|
10892
|
-
function
|
|
10893
|
-
const e = t.map(
|
|
10912
|
+
function Xp(t) {
|
|
10913
|
+
const e = t.map(qp);
|
|
10894
10914
|
let l = 0;
|
|
10895
10915
|
for (const n of e) for (const a of n) a === "dot" && l++;
|
|
10896
10916
|
return { tiles: e, dotCount: l };
|
|
10897
10917
|
}
|
|
10898
|
-
function
|
|
10918
|
+
function Qp(t, e) {
|
|
10899
10919
|
const l = uD(t, e), n = l.interiorLeftCol, a = l.interiorLeftCol + 1, u = l.interiorLeftCol + 2, i = l.interiorLeftCol + 3, c = l.interiorRightCol, f = l.interiorTopRow, o = l.interiorTopRow + 1, d = l.interiorBottomRow;
|
|
10900
10920
|
return {
|
|
10901
10921
|
spawns: {
|
|
@@ -10915,10 +10935,10 @@ function qp(t, e) {
|
|
|
10915
10935
|
};
|
|
10916
10936
|
}
|
|
10917
10937
|
function Ol(t, e, l, n = 1) {
|
|
10918
|
-
const a = e.map(
|
|
10938
|
+
const a = e.map(Yp), u = Bp(a, n), i = u[0].length, c = u.length, { tiles: f, dotCount: o } = Xp(u), d = Qp(i, c);
|
|
10919
10939
|
return { id: t, width: i, height: c, tiles: f, dotCount: o, pelletSpawns: l, ...d };
|
|
10920
10940
|
}
|
|
10921
|
-
const
|
|
10941
|
+
const Zp = [
|
|
10922
10942
|
"WGWWWWW",
|
|
10923
10943
|
// vertical gate at col 1 (mirrored on right)
|
|
10924
10944
|
"GEDDDDD",
|
|
@@ -10941,7 +10961,7 @@ const Xp = [
|
|
|
10941
10961
|
// horizontal gate
|
|
10942
10962
|
"WGWWWWW"
|
|
10943
10963
|
// vertical gate
|
|
10944
|
-
],
|
|
10964
|
+
], Vp = [
|
|
10945
10965
|
{
|
|
10946
10966
|
pelletId: "yellow_pellet",
|
|
10947
10967
|
initialDelay: 0,
|
|
@@ -10991,7 +11011,7 @@ const Xp = [
|
|
|
10991
11011
|
// positions: [{ x: 6, y: 10 }],
|
|
10992
11012
|
// positionOrder: 'random',
|
|
10993
11013
|
// }
|
|
10994
|
-
],
|
|
11014
|
+
], Kp = Ol(0, Zp, Vp, 3), Jp = [
|
|
10995
11015
|
"WGWWWWWW",
|
|
10996
11016
|
"GEDDDDDD",
|
|
10997
11017
|
"WDWDDDDD",
|
|
@@ -11011,7 +11031,7 @@ const Xp = [
|
|
|
11011
11031
|
"WDWDDDDD",
|
|
11012
11032
|
"GEDDDDDD",
|
|
11013
11033
|
"WGWWWWWW"
|
|
11014
|
-
],
|
|
11034
|
+
], Ip = [
|
|
11015
11035
|
{
|
|
11016
11036
|
pelletId: "green_pellet",
|
|
11017
11037
|
initialDelay: 0,
|
|
@@ -11019,7 +11039,7 @@ const Xp = [
|
|
|
11019
11039
|
positions: [{ x: 1, y: 1 }, { x: 13, y: 1 }, { x: 1, y: 17 }, { x: 13, y: 17 }],
|
|
11020
11040
|
positionOrder: "sequential"
|
|
11021
11041
|
}
|
|
11022
|
-
],
|
|
11042
|
+
], kp = Ol(1, Jp, Ip, 3), $p = [
|
|
11023
11043
|
"WWWGWWWW",
|
|
11024
11044
|
"WEDDDDDD",
|
|
11025
11045
|
"WDDDDDDD",
|
|
@@ -11044,7 +11064,7 @@ const Xp = [
|
|
|
11044
11064
|
"WDDDDDDD",
|
|
11045
11065
|
"WEDDDDDD",
|
|
11046
11066
|
"WWWGWWWW"
|
|
11047
|
-
],
|
|
11067
|
+
], Fp = [
|
|
11048
11068
|
{
|
|
11049
11069
|
pelletId: "blue_pellet",
|
|
11050
11070
|
initialDelay: 0,
|
|
@@ -11052,7 +11072,7 @@ const Xp = [
|
|
|
11052
11072
|
positions: [{ x: 1, y: 1 }, { x: 13, y: 1 }, { x: 1, y: 21 }, { x: 13, y: 21 }],
|
|
11053
11073
|
positionOrder: "sequential"
|
|
11054
11074
|
}
|
|
11055
|
-
],
|
|
11075
|
+
], Pp = Ol(2, $p, Fp), th = [
|
|
11056
11076
|
"WWWWGWWWW",
|
|
11057
11077
|
"WEDDDDDDD",
|
|
11058
11078
|
"WDDDDDDDD",
|
|
@@ -11084,7 +11104,7 @@ const Xp = [
|
|
|
11084
11104
|
"WDDDDDDDD",
|
|
11085
11105
|
"WEDDDDDDD",
|
|
11086
11106
|
"WWWGWWWWW"
|
|
11087
|
-
],
|
|
11107
|
+
], eh = [
|
|
11088
11108
|
{
|
|
11089
11109
|
pelletId: "red_pellet",
|
|
11090
11110
|
initialDelay: 0,
|
|
@@ -11092,7 +11112,7 @@ const Xp = [
|
|
|
11092
11112
|
positions: [{ x: 1, y: 1 }, { x: 15, y: 1 }, { x: 1, y: 27 }, { x: 15, y: 27 }],
|
|
11093
11113
|
positionOrder: "sequential"
|
|
11094
11114
|
}
|
|
11095
|
-
],
|
|
11115
|
+
], lh = Ol(3, th, eh), nh = [
|
|
11096
11116
|
"WGWWWWWWW",
|
|
11097
11117
|
"WEDDDDDDD",
|
|
11098
11118
|
"WDDDDDDDD",
|
|
@@ -11129,7 +11149,7 @@ const Xp = [
|
|
|
11129
11149
|
"WDDDDDDDD",
|
|
11130
11150
|
"WEDDDDDDD",
|
|
11131
11151
|
"WGWWWWWWW"
|
|
11132
|
-
],
|
|
11152
|
+
], ah = [
|
|
11133
11153
|
{
|
|
11134
11154
|
pelletId: "white_pellet",
|
|
11135
11155
|
initialDelay: 0,
|
|
@@ -11137,7 +11157,7 @@ const Xp = [
|
|
|
11137
11157
|
positions: [{ x: 1, y: 1 }, { x: 15, y: 1 }, { x: 1, y: 31 }, { x: 15, y: 31 }],
|
|
11138
11158
|
positionOrder: "sequential"
|
|
11139
11159
|
}
|
|
11140
|
-
],
|
|
11160
|
+
], uh = Ol(4, nh, ah), ih = [
|
|
11141
11161
|
"WGWWWWWWWW",
|
|
11142
11162
|
"WEDDDDDDDD",
|
|
11143
11163
|
"WDDDDDDDDD",
|
|
@@ -11177,7 +11197,7 @@ const Xp = [
|
|
|
11177
11197
|
"WDDDDDDDDD",
|
|
11178
11198
|
"WEDDDDDDDD",
|
|
11179
11199
|
"WGWWWWWWWW"
|
|
11180
|
-
],
|
|
11200
|
+
], ch = [
|
|
11181
11201
|
{
|
|
11182
11202
|
pelletId: "black_pellet",
|
|
11183
11203
|
initialDelay: 0,
|
|
@@ -11185,7 +11205,7 @@ const Xp = [
|
|
|
11185
11205
|
positions: [{ x: 1, y: 1 }, { x: 17, y: 1 }, { x: 1, y: 33 }, { x: 17, y: 33 }],
|
|
11186
11206
|
positionOrder: "sequential"
|
|
11187
11207
|
}
|
|
11188
|
-
],
|
|
11208
|
+
], fh = Ol(5, ih, ch), oh = [
|
|
11189
11209
|
"WGWWWWWWWG",
|
|
11190
11210
|
"GEDDDDDDDD",
|
|
11191
11211
|
"WDDDDDDDDD",
|
|
@@ -11227,7 +11247,7 @@ const Xp = [
|
|
|
11227
11247
|
"WDDDDDDDDD",
|
|
11228
11248
|
"GEDDDDDDDD",
|
|
11229
11249
|
"WGWWWWWWWG"
|
|
11230
|
-
],
|
|
11250
|
+
], sh = [
|
|
11231
11251
|
{
|
|
11232
11252
|
pelletId: "yellow_pellet",
|
|
11233
11253
|
initialDelay: 0,
|
|
@@ -11270,14 +11290,14 @@ const Xp = [
|
|
|
11270
11290
|
positions: [],
|
|
11271
11291
|
positionOrder: "random"
|
|
11272
11292
|
}
|
|
11273
|
-
],
|
|
11293
|
+
], rh = Ol(6, oh, sh), Gu = [Kp, kp, Pp, lh, uh, fh, rh];
|
|
11274
11294
|
function ne(t) {
|
|
11275
11295
|
const e = Gu.length - 1;
|
|
11276
11296
|
if (!Number.isInteger(t) || t < 0 || t > e)
|
|
11277
11297
|
throw new RangeError(`Maze index out of range: expected integer 0–${e}`);
|
|
11278
11298
|
return Gu[t];
|
|
11279
11299
|
}
|
|
11280
|
-
function
|
|
11300
|
+
function dh(t, e) {
|
|
11281
11301
|
if (e.length === 0) throw new Error("No candidates");
|
|
11282
11302
|
let l = e[0], n = t.get(l) ?? 1 / 0;
|
|
11283
11303
|
for (let a = 1; a < e.length; a++) {
|
|
@@ -11316,7 +11336,7 @@ function ci(t, e, l) {
|
|
|
11316
11336
|
const n = t.length, a = t[0].length;
|
|
11317
11337
|
return iD(e, l, a, n);
|
|
11318
11338
|
}
|
|
11319
|
-
function
|
|
11339
|
+
function yh(t, e) {
|
|
11320
11340
|
const l = [], n = ["UP", "DOWN", "LEFT", "RIGHT"];
|
|
11321
11341
|
for (const a of n)
|
|
11322
11342
|
cD(t, e, a) && l.push(a);
|
|
@@ -11325,7 +11345,7 @@ function rh(t, e) {
|
|
|
11325
11345
|
function Ic(t, e) {
|
|
11326
11346
|
return Math.abs(t.x - e.x) + Math.abs(t.y - e.y);
|
|
11327
11347
|
}
|
|
11328
|
-
function
|
|
11348
|
+
function Dh(t) {
|
|
11329
11349
|
switch (t) {
|
|
11330
11350
|
case "UP":
|
|
11331
11351
|
return "DOWN";
|
|
@@ -11339,11 +11359,11 @@ function dh(t) {
|
|
|
11339
11359
|
return null;
|
|
11340
11360
|
}
|
|
11341
11361
|
}
|
|
11342
|
-
function
|
|
11343
|
-
const l =
|
|
11362
|
+
function mh(t, e) {
|
|
11363
|
+
const l = Dh(e), n = l ? t.filter((a) => a !== l) : t;
|
|
11344
11364
|
return n.length > 0 ? n : t;
|
|
11345
11365
|
}
|
|
11346
|
-
function
|
|
11366
|
+
function ph(t, e, l, n) {
|
|
11347
11367
|
let a = e[0], u = 1 / 0;
|
|
11348
11368
|
for (const i of e) {
|
|
11349
11369
|
const c = ci(n, t, i), f = Ic(c, l);
|
|
@@ -11363,7 +11383,7 @@ function Wu(t, e) {
|
|
|
11363
11383
|
const l = oD(t.position, fD(e));
|
|
11364
11384
|
return (l == null ? void 0 : l.position) ?? null;
|
|
11365
11385
|
}
|
|
11366
|
-
function
|
|
11386
|
+
function hh(t, e, l) {
|
|
11367
11387
|
const n = fD(e), a = oD(t.position, n);
|
|
11368
11388
|
if (!a) return null;
|
|
11369
11389
|
let u = a.position;
|
|
@@ -11375,7 +11395,7 @@ function mh(t, e, l) {
|
|
|
11375
11395
|
const i = l.length, c = l[0].length;
|
|
11376
11396
|
return u.y < 0 || u.y >= i || u.x < 0 || u.x >= c ? Wu(t, e) : u;
|
|
11377
11397
|
}
|
|
11378
|
-
function
|
|
11398
|
+
function vh(t, e, l, n) {
|
|
11379
11399
|
if (n % 80 < 40) return Wu(t, e);
|
|
11380
11400
|
const a = l.length, u = l[0].length, i = t.id.charCodeAt(t.id.length - 1), c = String.fromCharCode(i);
|
|
11381
11401
|
return c === "0" || c === "a" ? { x: 0, y: 0 } : c === "1" || c === "b" ? { x: u - 1, y: 0 } : c === "2" || c === "c" ? { x: 0, y: a - 1 } : { x: u - 1, y: a - 1 };
|
|
@@ -11383,16 +11403,16 @@ function ph(t, e, l, n) {
|
|
|
11383
11403
|
function ao() {
|
|
11384
11404
|
return Math.floor(Math.random() * 11) + 5;
|
|
11385
11405
|
}
|
|
11386
|
-
function
|
|
11387
|
-
const a =
|
|
11406
|
+
function gh(t, e, l, n) {
|
|
11407
|
+
const a = yh(e, t.position);
|
|
11388
11408
|
if (a.length === 0) return t.direction;
|
|
11389
|
-
const u =
|
|
11409
|
+
const u = mh(a, t.direction);
|
|
11390
11410
|
return t.panicMode ? Qs(t, e, l, n, u, "chaser") : Qs(t, e, l, n, u, t.personality);
|
|
11391
11411
|
}
|
|
11392
|
-
function
|
|
11412
|
+
function Sh(t, e, l, n) {
|
|
11393
11413
|
if (!(t.speed === 1 || n % 2 === 0))
|
|
11394
11414
|
return { ...t, ticksSinceMove: t.ticksSinceMove + 1 };
|
|
11395
|
-
const u =
|
|
11415
|
+
const u = gh(t, e, l, n), i = ci(e, t.position, u);
|
|
11396
11416
|
return {
|
|
11397
11417
|
...t,
|
|
11398
11418
|
direction: u,
|
|
@@ -11401,32 +11421,32 @@ function vh(t, e, l, n) {
|
|
|
11401
11421
|
};
|
|
11402
11422
|
}
|
|
11403
11423
|
function Qs(t, e, l, n, a, u) {
|
|
11404
|
-
const i =
|
|
11405
|
-
return i ? u === "wanderer" ?
|
|
11424
|
+
const i = Eh(t, e, l, n, u);
|
|
11425
|
+
return i ? u === "wanderer" ? bh(a) : ph(t.position, a, i, e) : a[Math.floor(Math.random() * a.length)];
|
|
11406
11426
|
}
|
|
11407
|
-
function
|
|
11427
|
+
function Eh(t, e, l, n, a) {
|
|
11408
11428
|
switch (a) {
|
|
11409
11429
|
case "chaser":
|
|
11410
11430
|
return Wu(t, l);
|
|
11411
11431
|
case "ambusher":
|
|
11412
|
-
return
|
|
11432
|
+
return hh(t, l, e);
|
|
11413
11433
|
case "scatter":
|
|
11414
|
-
return
|
|
11434
|
+
return vh(t, l, e, n);
|
|
11415
11435
|
case "wanderer":
|
|
11416
11436
|
return Wu(t, l);
|
|
11417
11437
|
default:
|
|
11418
11438
|
return null;
|
|
11419
11439
|
}
|
|
11420
11440
|
}
|
|
11421
|
-
function
|
|
11441
|
+
function bh(t) {
|
|
11422
11442
|
return t[Math.floor(Math.random() * t.length)];
|
|
11423
11443
|
}
|
|
11424
|
-
const _a = 250, sD = 33,
|
|
11444
|
+
const _a = 250, sD = 33, Th = Math.round(1e3 / _a);
|
|
11425
11445
|
function bl(t) {
|
|
11426
11446
|
return Math.round(t * 1e3 / _a);
|
|
11427
11447
|
}
|
|
11428
|
-
const
|
|
11429
|
-
function
|
|
11448
|
+
const Ah = bl(2), Ft = bl(1);
|
|
11449
|
+
function xh(t, e) {
|
|
11430
11450
|
var a;
|
|
11431
11451
|
if (((a = t[e.y]) == null ? void 0 : a[e.x]) !== "dot")
|
|
11432
11452
|
return { tiles: t, collected: !1 };
|
|
@@ -11435,7 +11455,7 @@ function Th(t, e) {
|
|
|
11435
11455
|
const n = [...t];
|
|
11436
11456
|
return n[e.y] = l, { tiles: n, collected: !0 };
|
|
11437
11457
|
}
|
|
11438
|
-
function
|
|
11458
|
+
function _h(t, e, l) {
|
|
11439
11459
|
var u;
|
|
11440
11460
|
if (((u = t[e.y]) == null ? void 0 : u[e.x]) !== "pellet")
|
|
11441
11461
|
return { tiles: t, collected: !1 };
|
|
@@ -11444,10 +11464,10 @@ function Ah(t, e, l) {
|
|
|
11444
11464
|
const a = [...t];
|
|
11445
11465
|
return a[e.y] = n, { tiles: a, collected: !0 };
|
|
11446
11466
|
}
|
|
11447
|
-
function
|
|
11467
|
+
function Mh(t, e) {
|
|
11448
11468
|
return t === "wall" ? e : !0;
|
|
11449
11469
|
}
|
|
11450
|
-
function
|
|
11470
|
+
function Oh(t) {
|
|
11451
11471
|
const e = [];
|
|
11452
11472
|
for (let l = 0; l < t.length; l++) {
|
|
11453
11473
|
const n = t[l];
|
|
@@ -11456,14 +11476,14 @@ function _h(t) {
|
|
|
11456
11476
|
}
|
|
11457
11477
|
return e;
|
|
11458
11478
|
}
|
|
11459
|
-
function
|
|
11479
|
+
function zh(t) {
|
|
11460
11480
|
let e = 0;
|
|
11461
11481
|
for (const l of t)
|
|
11462
11482
|
for (const n of l)
|
|
11463
11483
|
n === "dot" && e++;
|
|
11464
11484
|
return e;
|
|
11465
11485
|
}
|
|
11466
|
-
function
|
|
11486
|
+
function Nh(t, e, l) {
|
|
11467
11487
|
const n = (c, f) => c < 0 || c >= t.length || f < 0 || f >= t[c].length ? !1 : t[c][f] !== "wall";
|
|
11468
11488
|
if (n(l, e))
|
|
11469
11489
|
return { x: e, y: l };
|
|
@@ -11483,14 +11503,14 @@ function Oh(t, e, l) {
|
|
|
11483
11503
|
}
|
|
11484
11504
|
return { x: e, y: l };
|
|
11485
11505
|
}
|
|
11486
|
-
function
|
|
11506
|
+
function Rh(t, e, l) {
|
|
11487
11507
|
if (t.status !== "playing") return t;
|
|
11488
11508
|
let { tiles: n, players: a, ghosts: u, timer: i, mode: c, panicTriggerSecond: f } = t;
|
|
11489
11509
|
const o = new Set(t.players.filter((y) => y.respawnCountdown !== null).map((y) => y.id));
|
|
11490
|
-
u = u.map((y) =>
|
|
11510
|
+
u = u.map((y) => Sh(y, n, a, e)), { players: a, ghosts: u } = Uh(a, u);
|
|
11491
11511
|
let d = t.pelletSpawns;
|
|
11492
|
-
({ tiles: n, pelletSpawns: d } =
|
|
11493
|
-
const p =
|
|
11512
|
+
({ tiles: n, pelletSpawns: d } = Ch({ ...t, tiles: n, pelletSpawns: d }, e)), a = wh(a, o), c === "coop" && e % Th === 0 && (i = Math.max(0, i - 1)), f !== null && i === f && (u = u.map((y) => ({ ...y, panicMode: !0, speed: 1.5 })));
|
|
11513
|
+
const p = zh(n);
|
|
11494
11514
|
let s = t.dotsEmptyAtTick;
|
|
11495
11515
|
p === 0 ? s === null && (s = t.gameTick) : s = null;
|
|
11496
11516
|
const D = s !== null && t.gameTick > s;
|
|
@@ -11509,14 +11529,14 @@ function zh(t, e, l) {
|
|
|
11509
11529
|
dotsEmptyAtTick: s
|
|
11510
11530
|
};
|
|
11511
11531
|
}
|
|
11512
|
-
function
|
|
11532
|
+
function wh(t, e) {
|
|
11513
11533
|
return t.map((l) => {
|
|
11514
11534
|
if (l.respawnCountdown === null || !e.has(l.id)) return l;
|
|
11515
11535
|
const n = l.respawnCountdown - 1;
|
|
11516
11536
|
return n <= 0 ? { ...l, respawnCountdown: null, deathPosition: null } : n <= Ft && n > 0 ? l.position.x === l.spawnPosition.x && l.position.y === l.spawnPosition.y ? { ...l, respawnCountdown: n } : { ...l, respawnCountdown: n, position: l.spawnPosition } : { ...l, respawnCountdown: n };
|
|
11517
11537
|
});
|
|
11518
11538
|
}
|
|
11519
|
-
function
|
|
11539
|
+
function Ch(t, e) {
|
|
11520
11540
|
let { tiles: l } = t;
|
|
11521
11541
|
const n = ne(t.mazeIndex), a = t.pelletSpawns.map((u, i) => {
|
|
11522
11542
|
if (u.spawnAtTick === null || e < u.spawnAtTick || u.activePosition !== null)
|
|
@@ -11528,7 +11548,7 @@ function Rh(t, e) {
|
|
|
11528
11548
|
const s = u.positionIndex % c.positions.length;
|
|
11529
11549
|
f = c.positions[s], c.positionOrder === "sequential" && (o = u.positionIndex + 1);
|
|
11530
11550
|
} else {
|
|
11531
|
-
const s =
|
|
11551
|
+
const s = Oh(l);
|
|
11532
11552
|
if (s.length === 0) return u;
|
|
11533
11553
|
f = s[Math.floor(Math.random() * s.length)];
|
|
11534
11554
|
}
|
|
@@ -11543,7 +11563,7 @@ function Rh(t, e) {
|
|
|
11543
11563
|
});
|
|
11544
11564
|
return { tiles: l, pelletSpawns: a };
|
|
11545
11565
|
}
|
|
11546
|
-
function
|
|
11566
|
+
function Uh(t, e) {
|
|
11547
11567
|
const l = t.map((c) => {
|
|
11548
11568
|
const f = c.activeEffects.map((d) => ({ ...d, timerTicks: d.timerTicks - 1 })).filter((d) => d.timerTicks > 0), o = Math.max(0, c.slowedTicks - 1);
|
|
11549
11569
|
return { ...c, activeEffects: f, slowedTicks: o };
|
|
@@ -11559,9 +11579,9 @@ function fi(t, e) {
|
|
|
11559
11579
|
const l = t.activeEffects;
|
|
11560
11580
|
return !l || l.length === 0 ? !1 : l.some((n) => n.skills.some((a) => a.type === e));
|
|
11561
11581
|
}
|
|
11562
|
-
const
|
|
11582
|
+
const jh = 2;
|
|
11563
11583
|
function rD(t) {
|
|
11564
|
-
if (
|
|
11584
|
+
if (Lh(t))
|
|
11565
11585
|
return 0.2;
|
|
11566
11586
|
const e = t.activeEffects;
|
|
11567
11587
|
if (!e || e.length === 0)
|
|
@@ -11570,12 +11590,12 @@ function rD(t) {
|
|
|
11570
11590
|
for (const n of e)
|
|
11571
11591
|
for (const a of n.skills)
|
|
11572
11592
|
a.type === "speed" && (l += a.plus);
|
|
11573
|
-
return Math.min(
|
|
11593
|
+
return Math.min(jh, Math.max(0.1, 1 + l));
|
|
11574
11594
|
}
|
|
11575
|
-
function
|
|
11595
|
+
function Lh(t) {
|
|
11576
11596
|
return (t.slowedTicks ?? 0) > 0;
|
|
11577
11597
|
}
|
|
11578
|
-
function
|
|
11598
|
+
function Hh(t) {
|
|
11579
11599
|
const e = t.activeEffects;
|
|
11580
11600
|
if (!e || e.length === 0) return 1;
|
|
11581
11601
|
let l = 1;
|
|
@@ -11607,7 +11627,7 @@ function Zs(t, e, l) {
|
|
|
11607
11627
|
pelletsCollectedAt: []
|
|
11608
11628
|
};
|
|
11609
11629
|
s && (n = "NONE");
|
|
11610
|
-
const D =
|
|
11630
|
+
const D = xh(l, u);
|
|
11611
11631
|
return D.collected && (l = D.tiles, i += 1, c += 1, f += 1, o = [{ x: u.x, y: u.y }]), ((g = l[u.y]) == null ? void 0 : g[u.x]) === "pellet" && (d = [u]), {
|
|
11612
11632
|
player: {
|
|
11613
11633
|
...t,
|
|
@@ -11643,7 +11663,7 @@ function Vs(t, e, l, n) {
|
|
|
11643
11663
|
c = e.y + 1, c >= a && (c = 0);
|
|
11644
11664
|
break;
|
|
11645
11665
|
}
|
|
11646
|
-
return
|
|
11666
|
+
return Mh(t[c][i], n);
|
|
11647
11667
|
}
|
|
11648
11668
|
function yD(t, e, l, n) {
|
|
11649
11669
|
if (n <= 0)
|
|
@@ -11660,49 +11680,49 @@ function yD(t, e, l, n) {
|
|
|
11660
11680
|
}
|
|
11661
11681
|
return a;
|
|
11662
11682
|
}
|
|
11663
|
-
const
|
|
11683
|
+
const Gh = {
|
|
11664
11684
|
id: "yellow_pellet",
|
|
11665
11685
|
color: "#FFD700",
|
|
11666
11686
|
glowColor: "rgba(255,255,0,1)",
|
|
11667
11687
|
size: 0.65,
|
|
11668
11688
|
durationSeconds: 12,
|
|
11669
11689
|
skills: [{ type: "invincibility" }, { type: "speed", plus: 0.3 }, { type: "sizeMultiplier", multiplier: 1.2 }]
|
|
11670
|
-
},
|
|
11690
|
+
}, Wh = {
|
|
11671
11691
|
id: "red_pellet",
|
|
11672
11692
|
color: "#FF3C28",
|
|
11673
11693
|
glowColor: "rgba(255,60,40,1)",
|
|
11674
11694
|
size: 0.7,
|
|
11675
11695
|
durationSeconds: 15,
|
|
11676
11696
|
skills: [{ type: "invincibility" }, { type: "speed", plus: 0.6 }, { type: "sizeMultiplier", multiplier: 0.6 }]
|
|
11677
|
-
},
|
|
11697
|
+
}, Yh = {
|
|
11678
11698
|
id: "blue_pellet",
|
|
11679
11699
|
color: "#4169E1",
|
|
11680
11700
|
glowColor: "rgba(65,105,225,0.8)",
|
|
11681
11701
|
size: 0.7,
|
|
11682
11702
|
durationSeconds: 15,
|
|
11683
11703
|
skills: [{ type: "speed", plus: 0.4 }]
|
|
11684
|
-
},
|
|
11704
|
+
}, Bh = {
|
|
11685
11705
|
id: "green_pellet",
|
|
11686
11706
|
color: "#39FF14",
|
|
11687
11707
|
glowColor: "rgba(57,255,20,0.8)",
|
|
11688
11708
|
size: 0.4,
|
|
11689
11709
|
durationSeconds: 15,
|
|
11690
11710
|
skills: [{ type: "speed", plus: 0.7 }, { type: "slowOthers", durationSeconds: 8 }]
|
|
11691
|
-
},
|
|
11711
|
+
}, qh = {
|
|
11692
11712
|
id: "white_pellet",
|
|
11693
11713
|
color: "#FFFFFF",
|
|
11694
11714
|
glowColor: "rgba(255,255,255,0.8)",
|
|
11695
11715
|
size: 0.7,
|
|
11696
11716
|
durationSeconds: 20,
|
|
11697
11717
|
skills: [{ type: "invincibility" }, { type: "speed", plus: 0.2 }, { type: "wallBreak" }, { type: "sizeMultiplier", multiplier: 1.2 }]
|
|
11698
|
-
},
|
|
11718
|
+
}, Xh = {
|
|
11699
11719
|
id: "black_pellet",
|
|
11700
11720
|
color: "#080808",
|
|
11701
11721
|
glowColor: "rgba(255,255,0,1)",
|
|
11702
11722
|
size: 0.9,
|
|
11703
11723
|
durationSeconds: 20,
|
|
11704
11724
|
skills: [{ type: "invincibility" }, { type: "speed", plus: 0.5 }, { type: "teleport" }]
|
|
11705
|
-
},
|
|
11725
|
+
}, Qh = {
|
|
11706
11726
|
id: "brown_pellet",
|
|
11707
11727
|
color: "#8B4513",
|
|
11708
11728
|
glowColor: "rgba(139,69,19,0.8)",
|
|
@@ -11710,15 +11730,15 @@ const Lh = {
|
|
|
11710
11730
|
durationSeconds: 10,
|
|
11711
11731
|
skills: [{ type: "speed", plus: -0.5 }, { type: "sizeMultiplier", multiplier: 0.8 }]
|
|
11712
11732
|
}, uo = Object.freeze([
|
|
11713
|
-
|
|
11714
|
-
Hh,
|
|
11733
|
+
Gh,
|
|
11715
11734
|
Wh,
|
|
11716
|
-
Yh,
|
|
11717
11735
|
Bh,
|
|
11718
|
-
|
|
11719
|
-
|
|
11736
|
+
qh,
|
|
11737
|
+
Xh,
|
|
11738
|
+
Yh,
|
|
11739
|
+
Qh
|
|
11720
11740
|
]);
|
|
11721
|
-
function
|
|
11741
|
+
function Zh(t, e) {
|
|
11722
11742
|
const l = t.pelletSpawns.findIndex(
|
|
11723
11743
|
(y) => {
|
|
11724
11744
|
var r, m;
|
|
@@ -11726,7 +11746,7 @@ function Xh(t, e) {
|
|
|
11726
11746
|
}
|
|
11727
11747
|
);
|
|
11728
11748
|
if (l === -1) return t;
|
|
11729
|
-
const n = t.pelletSpawns[l], u =
|
|
11749
|
+
const n = t.pelletSpawns[l], u = _h(t.tiles, e.position, n.originalTileType).tiles, c = ne(t.mazeIndex).pelletSpawns.find((y) => y.pelletId === e.pelletId);
|
|
11730
11750
|
let f = null;
|
|
11731
11751
|
c && c.respawnDelay !== null && (f = t.gameTick + dD(c.respawnDelay, Math.random()));
|
|
11732
11752
|
const o = { ...n, activePosition: null, spawnAtTick: f }, d = t.pelletSpawns.map((y, r) => r === l ? o : y), p = uo.find((y) => y.id === e.pelletId);
|
|
@@ -11743,7 +11763,7 @@ function Xh(t, e) {
|
|
|
11743
11763
|
} : D ? { ...y, vulnerable: !0 } : y), _ = D ? t.ghosts.map((y) => ({ ...y, vulnerable: !0 })) : t.ghosts;
|
|
11744
11764
|
return { ...t, tiles: u, pelletSpawns: d, players: b, ghosts: _ };
|
|
11745
11765
|
}
|
|
11746
|
-
function
|
|
11766
|
+
function Vh(t, e) {
|
|
11747
11767
|
const l = t.players.map((i) => {
|
|
11748
11768
|
if (i.id !== e.playerId) return i;
|
|
11749
11769
|
const c = i.activeEffects.filter((f) => f.instanceId !== e.instanceId);
|
|
@@ -11758,7 +11778,7 @@ function Qh(t, e) {
|
|
|
11758
11778
|
), u = t.ghosts.map((i) => ({ ...i, vulnerable: a }));
|
|
11759
11779
|
return { ...t, players: n, ghosts: u };
|
|
11760
11780
|
}
|
|
11761
|
-
function
|
|
11781
|
+
function Kh(t, e) {
|
|
11762
11782
|
var l;
|
|
11763
11783
|
switch (e.type) {
|
|
11764
11784
|
case "MOVE_SELF": {
|
|
@@ -11806,7 +11826,7 @@ function Zh(t, e) {
|
|
|
11806
11826
|
if (e.interactionType === "player_eaten") {
|
|
11807
11827
|
const u = t.mode === "ffa" || t.mode === "teamvs", i = t.players.map((c) => {
|
|
11808
11828
|
if (c.id === e.affectedId)
|
|
11809
|
-
return c.respawnCountdown !== null ? c : { ...c, respawnCountdown:
|
|
11829
|
+
return c.respawnCountdown !== null ? c : { ...c, respawnCountdown: Ah + Ft, deathPosition: { x: c.position.x, y: c.position.y } };
|
|
11810
11830
|
if (u && e.byId && c.id === e.byId) {
|
|
11811
11831
|
const f = e.scoreIncrease ?? 10;
|
|
11812
11832
|
return { ...c, playersEaten: c.playersEaten + 1, score: c.score + f, totalScore: c.totalScore + f };
|
|
@@ -11823,9 +11843,9 @@ function Zh(t, e) {
|
|
|
11823
11843
|
return { ...t, ghosts: n, players: a };
|
|
11824
11844
|
}
|
|
11825
11845
|
case "APPLY_PELLET_EATEN":
|
|
11826
|
-
return
|
|
11846
|
+
return Zh(t, e);
|
|
11827
11847
|
case "APPLY_PELLET_EXPIRED":
|
|
11828
|
-
return
|
|
11848
|
+
return Vh(t, e);
|
|
11829
11849
|
case "APPLY_PLAYER_SLOWED": {
|
|
11830
11850
|
const n = t.players.map(
|
|
11831
11851
|
(a) => a.id === e.targetPlayerId ? { ...a, slowedTicks: e.durationTicks } : a
|
|
@@ -11877,7 +11897,7 @@ function Zh(t, e) {
|
|
|
11877
11897
|
return null;
|
|
11878
11898
|
}
|
|
11879
11899
|
}
|
|
11880
|
-
function
|
|
11900
|
+
function Jh(t, e) {
|
|
11881
11901
|
switch (e.type) {
|
|
11882
11902
|
case "TELEPORT": {
|
|
11883
11903
|
const l = t.players.find((c) => c.id === e.playerId);
|
|
@@ -11903,7 +11923,7 @@ function da(t) {
|
|
|
11903
11923
|
originalTileType: "empty"
|
|
11904
11924
|
}));
|
|
11905
11925
|
}
|
|
11906
|
-
function
|
|
11926
|
+
function Ih(t) {
|
|
11907
11927
|
const e = t.level + 1, l = e - 1, n = Gu.length - 1, a = ne(Math.min(l, n)), u = t.players.length, i = a.spawns[u] ?? a.spawns[2], c = t.players.map((o, d) => {
|
|
11908
11928
|
const p = i[d] ?? o.spawnPosition;
|
|
11909
11929
|
return { ...o, position: p, spawnPosition: p };
|
|
@@ -11923,7 +11943,7 @@ function Kh(t) {
|
|
|
11923
11943
|
dotsEmptyAtTick: null
|
|
11924
11944
|
};
|
|
11925
11945
|
}
|
|
11926
|
-
function
|
|
11946
|
+
function kh(t) {
|
|
11927
11947
|
const e = (t.mazeIndex + 1) % Gu.length, l = ne(e), n = Math.max(2, Math.min(t.players.length, 4)), a = l.spawns[n] ?? l.spawns[2], u = t.players.map((c, f) => {
|
|
11928
11948
|
const o = a[f] ?? c.spawnPosition;
|
|
11929
11949
|
return {
|
|
@@ -11959,7 +11979,7 @@ function Jh(t) {
|
|
|
11959
11979
|
dotsEmptyAtTick: null
|
|
11960
11980
|
};
|
|
11961
11981
|
}
|
|
11962
|
-
function
|
|
11982
|
+
function $h(t, e) {
|
|
11963
11983
|
return {
|
|
11964
11984
|
status: "countdown",
|
|
11965
11985
|
mode: e.mode,
|
|
@@ -11982,9 +12002,9 @@ function Ih(t, e) {
|
|
|
11982
12002
|
};
|
|
11983
12003
|
}
|
|
11984
12004
|
function kc(t, e) {
|
|
11985
|
-
const l =
|
|
12005
|
+
const l = Kh(t, e);
|
|
11986
12006
|
if (l !== null) return l;
|
|
11987
|
-
const n =
|
|
12007
|
+
const n = Jh(t, e);
|
|
11988
12008
|
if (n !== null) return n;
|
|
11989
12009
|
switch (e.type) {
|
|
11990
12010
|
case "GAME_START":
|
|
@@ -12004,7 +12024,7 @@ function kc(t, e) {
|
|
|
12004
12024
|
case "APPLY_STATE":
|
|
12005
12025
|
return e.myId === t.hostId ? t : e.state;
|
|
12006
12026
|
case "TICK":
|
|
12007
|
-
return
|
|
12027
|
+
return Rh(t, e.tick, e.myId);
|
|
12008
12028
|
case "PLAYER_DISCONNECT":
|
|
12009
12029
|
return {
|
|
12010
12030
|
...t,
|
|
@@ -12043,7 +12063,7 @@ function kc(t, e) {
|
|
|
12043
12063
|
return { ...t, players: [...t.players, f] };
|
|
12044
12064
|
}
|
|
12045
12065
|
case "MIGRATION_START": {
|
|
12046
|
-
const a =
|
|
12066
|
+
const a = dh(e.pingMap, e.candidates);
|
|
12047
12067
|
return {
|
|
12048
12068
|
...t,
|
|
12049
12069
|
status: "migrating",
|
|
@@ -12068,9 +12088,9 @@ function kc(t, e) {
|
|
|
12068
12088
|
endingNext: null
|
|
12069
12089
|
};
|
|
12070
12090
|
case "LEVEL_ADVANCE":
|
|
12071
|
-
return { ...
|
|
12091
|
+
return { ...Ih(t), status: "countdown", countdownStartedAt: Date.now() };
|
|
12072
12092
|
case "NEXT_MAP":
|
|
12073
|
-
return { ...
|
|
12093
|
+
return { ...kh(t), status: "countdown", countdownStartedAt: Date.now() };
|
|
12074
12094
|
case "GAME_OVER":
|
|
12075
12095
|
return { ...t, status: "game_over" };
|
|
12076
12096
|
case "RESET": {
|
|
@@ -12121,7 +12141,7 @@ function DD() {
|
|
|
12121
12141
|
return (t === "x" ? e : e & 3 | 8).toString(16);
|
|
12122
12142
|
});
|
|
12123
12143
|
}
|
|
12124
|
-
function
|
|
12144
|
+
function Fh(t) {
|
|
12125
12145
|
const e = t.createGain(), l = t.createGain(), n = t.createGain();
|
|
12126
12146
|
return e.gain.value = 0, l.gain.value = 1, n.gain.value = 0.15, l.connect(e), n.connect(e), e.connect(t.destination), { master: e, local: l, remote: n };
|
|
12127
12147
|
}
|
|
@@ -12129,30 +12149,30 @@ function zl(t, e, l, n, a, u, i) {
|
|
|
12129
12149
|
const c = t.createGain();
|
|
12130
12150
|
return c.gain.setValueAtTime(0, i), c.gain.linearRampToValueAtTime(l, i + n), c.gain.setValueAtTime(l, i + n + a), c.gain.linearRampToValueAtTime(0, i + n + a + u), c.connect(e), c;
|
|
12131
12151
|
}
|
|
12132
|
-
function
|
|
12152
|
+
function Ph(t, e, l = t.currentTime, n = "low") {
|
|
12133
12153
|
const [u, i] = n === "high" ? [180, 520] : [520, 180], c = zl(t, e, 0.35, 8e-3, 0.04, 0.037, l), f = t.createOscillator();
|
|
12134
12154
|
f.type = "triangle", f.frequency.setValueAtTime(u, l), f.frequency.linearRampToValueAtTime(i, l + 0.085), f.connect(c), f.start(l), f.stop(l + 0.085 + 5e-3);
|
|
12135
12155
|
}
|
|
12136
|
-
function
|
|
12156
|
+
function tv(t, e, l = t.currentTime) {
|
|
12137
12157
|
const n = zl(t, e, 0.4, 2e-3, 0.14, 8e-3, l), a = l + 0.15;
|
|
12138
12158
|
for (const u of ["sine", "triangle"]) {
|
|
12139
12159
|
const i = t.createOscillator();
|
|
12140
12160
|
i.type = u, u === "triangle" && (i.detune.value = 7), i.frequency.setValueAtTime(200, l), i.frequency.linearRampToValueAtTime(900, l + 0.15), i.connect(n), i.start(l), i.stop(a);
|
|
12141
12161
|
}
|
|
12142
12162
|
}
|
|
12143
|
-
function
|
|
12163
|
+
function ev(t, e, l = t.currentTime) {
|
|
12144
12164
|
[523.25, 659.25, 783.99, 987.77, 1174.66].forEach((a, u) => {
|
|
12145
12165
|
const i = l + u * 0.05, c = zl(t, e, 0.5, 2e-3, 0.04, 8e-3, i), f = t.createOscillator();
|
|
12146
12166
|
f.type = "triangle", f.frequency.value = a, f.connect(c), f.start(i), f.stop(i + 0.05);
|
|
12147
12167
|
});
|
|
12148
12168
|
}
|
|
12149
|
-
function
|
|
12169
|
+
function lv(t, e, l = t.currentTime) {
|
|
12150
12170
|
[392, 523.25, 659.25].forEach((a, u) => {
|
|
12151
12171
|
const i = l + u * 0.06, c = zl(t, e, 0.5, 4e-3, 0.055, 0.02, i), f = t.createOscillator();
|
|
12152
12172
|
f.type = "triangle", f.frequency.value = a, f.connect(c), f.start(i), f.stop(i + 0.075);
|
|
12153
12173
|
});
|
|
12154
12174
|
}
|
|
12155
|
-
function
|
|
12175
|
+
function nv(t, e, l = t.currentTime) {
|
|
12156
12176
|
const n = zl(t, e, 0.5, 5e-3, 0.54, 0.055, l), a = t.createOscillator(), u = t.createGain();
|
|
12157
12177
|
a.type = "sine", a.frequency.value = 5, u.gain.value = 15;
|
|
12158
12178
|
const i = t.createOscillator();
|
|
@@ -12162,25 +12182,25 @@ function ya(t, e, l, n, a, u, i, c) {
|
|
|
12162
12182
|
const f = zl(t, e, n, a, u, i, c), o = t.createOscillator();
|
|
12163
12183
|
o.type = "sine", o.frequency.value = l, o.connect(f), o.start(c), o.stop(c + a + u + i + 1e-3);
|
|
12164
12184
|
}
|
|
12165
|
-
function
|
|
12185
|
+
function av(t, e, l = t.currentTime) {
|
|
12166
12186
|
ya(t, e, 600, 0.5, 5e-3, 0.07, 5e-3, l);
|
|
12167
12187
|
}
|
|
12168
|
-
function
|
|
12188
|
+
function uv(t, e, l = t.currentTime) {
|
|
12169
12189
|
ya(t, e, 1e3, 0.5, 2e-3, 0.148, 0.05, l);
|
|
12170
12190
|
}
|
|
12171
|
-
function
|
|
12191
|
+
function iv(t, e, l = t.currentTime) {
|
|
12172
12192
|
[523.25, 659.25, 783.99].forEach((a, u) => {
|
|
12173
12193
|
ya(t, e, a, 0.5, 5e-3, 0.09, 5e-3, l + u * 0.11);
|
|
12174
12194
|
});
|
|
12175
12195
|
}
|
|
12176
|
-
function
|
|
12196
|
+
function cv(t, e, l = t.currentTime) {
|
|
12177
12197
|
ya(t, e, 440, 0.3, 0.03, 0.2, 0.14, l), ya(t, e, 587.33, 0.3, 0.03, 0.24, 0.18, l + 0.17);
|
|
12178
12198
|
}
|
|
12179
|
-
function
|
|
12199
|
+
function fv(t, e, l = t.currentTime) {
|
|
12180
12200
|
const n = zl(t, e, 0.5, 5e-3, 0, 0.395, l), a = t.createOscillator();
|
|
12181
12201
|
a.type = "square", a.frequency.value = 110, a.connect(n), a.start(l), a.stop(l + 0.4 + 1e-3);
|
|
12182
12202
|
}
|
|
12183
|
-
class
|
|
12203
|
+
class ov {
|
|
12184
12204
|
constructor() {
|
|
12185
12205
|
Nl(this, "ctx", null);
|
|
12186
12206
|
Nl(this, "branches", null);
|
|
@@ -12194,7 +12214,7 @@ class cv {
|
|
|
12194
12214
|
(l = this.unsubAudio) == null || l.call(this), this.sdk = e, this.unsubAudio = e.audio.onChange(this.applyVolume.bind(this)), this.applyVolume();
|
|
12195
12215
|
}
|
|
12196
12216
|
unlock() {
|
|
12197
|
-
this.ctx === null && (this.ctx = new AudioContext(), this.branches =
|
|
12217
|
+
this.ctx === null && (this.ctx = new AudioContext(), this.branches = Fh(this.ctx), this.ctx.state === "suspended" && this.ctx.resume(), this.applyVolume());
|
|
12198
12218
|
}
|
|
12199
12219
|
applyVolume() {
|
|
12200
12220
|
!this.ctx || !this.sdk || !this.branches || (this.branches.master.gain.value = this.sdk.audio.getVolume());
|
|
@@ -12212,82 +12232,82 @@ class cv {
|
|
|
12212
12232
|
const l = this.dotToneHigh ? "high" : "low";
|
|
12213
12233
|
this.dotToneHigh = !this.dotToneHigh;
|
|
12214
12234
|
try {
|
|
12215
|
-
|
|
12235
|
+
Ph(this.ctx, this.dest(e), this.ctx.currentTime, l);
|
|
12216
12236
|
} catch {
|
|
12217
12237
|
}
|
|
12218
12238
|
}
|
|
12219
12239
|
playPowerPellet(e) {
|
|
12220
12240
|
if (this.ready())
|
|
12221
12241
|
try {
|
|
12222
|
-
|
|
12242
|
+
tv(this.ctx, this.dest(e), this.ctx.currentTime);
|
|
12223
12243
|
} catch {
|
|
12224
12244
|
}
|
|
12225
12245
|
}
|
|
12226
12246
|
playGhostEaten(e) {
|
|
12227
12247
|
if (this.ready())
|
|
12228
12248
|
try {
|
|
12229
|
-
|
|
12249
|
+
ev(this.ctx, this.dest(e), this.ctx.currentTime);
|
|
12230
12250
|
} catch {
|
|
12231
12251
|
}
|
|
12232
12252
|
}
|
|
12233
12253
|
playPlayerEaten(e) {
|
|
12234
12254
|
if (this.ready())
|
|
12235
12255
|
try {
|
|
12236
|
-
|
|
12256
|
+
lv(this.ctx, this.dest(e), this.ctx.currentTime);
|
|
12237
12257
|
} catch {
|
|
12238
12258
|
}
|
|
12239
12259
|
}
|
|
12240
12260
|
playDeath(e) {
|
|
12241
12261
|
if (this.ready())
|
|
12242
12262
|
try {
|
|
12243
|
-
|
|
12263
|
+
nv(this.ctx, this.dest(e), this.ctx.currentTime);
|
|
12244
12264
|
} catch {
|
|
12245
12265
|
}
|
|
12246
12266
|
}
|
|
12247
12267
|
playCountdownBeep() {
|
|
12248
12268
|
if (this.ready())
|
|
12249
12269
|
try {
|
|
12250
|
-
|
|
12270
|
+
av(this.ctx, this.branches.master, this.ctx.currentTime);
|
|
12251
12271
|
} catch {
|
|
12252
12272
|
}
|
|
12253
12273
|
}
|
|
12254
12274
|
playGo() {
|
|
12255
12275
|
if (this.ready())
|
|
12256
12276
|
try {
|
|
12257
|
-
|
|
12277
|
+
uv(this.ctx, this.branches.master, this.ctx.currentTime);
|
|
12258
12278
|
} catch {
|
|
12259
12279
|
}
|
|
12260
12280
|
}
|
|
12261
12281
|
playGoodGame() {
|
|
12262
12282
|
if (this.ready())
|
|
12263
12283
|
try {
|
|
12264
|
-
|
|
12284
|
+
cv(this.ctx, this.branches.master, this.ctx.currentTime);
|
|
12265
12285
|
} catch {
|
|
12266
12286
|
}
|
|
12267
12287
|
}
|
|
12268
12288
|
playLevelClear() {
|
|
12269
12289
|
if (this.ready())
|
|
12270
12290
|
try {
|
|
12271
|
-
|
|
12291
|
+
iv(this.ctx, this.branches.master, this.ctx.currentTime);
|
|
12272
12292
|
} catch {
|
|
12273
12293
|
}
|
|
12274
12294
|
}
|
|
12275
12295
|
playGameOver() {
|
|
12276
12296
|
if (this.ready())
|
|
12277
12297
|
try {
|
|
12278
|
-
|
|
12298
|
+
fv(this.ctx, this.branches.master, this.ctx.currentTime);
|
|
12279
12299
|
} catch {
|
|
12280
12300
|
}
|
|
12281
12301
|
}
|
|
12282
12302
|
}
|
|
12283
|
-
const at = new
|
|
12303
|
+
const at = new ov();
|
|
12284
12304
|
function mD(t, e, l, n, a, u, i, c) {
|
|
12285
12305
|
const f = l.players.find((D) => D.id === t), o = l.players.find((D) => D.id === e);
|
|
12286
12306
|
if (!f || !o || t === e || l.mode === "teamvs" && f.teamId !== void 0 && f.teamId === o.teamId || fi(o, "invincibility") || o.respawnCountdown !== null) return;
|
|
12287
12307
|
const d = i ?? f.position, p = c ?? o.position;
|
|
12288
|
-
Math.abs(d.x - p.x) + Math.abs(d.y - p.y) > 2 ||
|
|
12308
|
+
Math.abs(d.x - p.x) + Math.abs(d.y - p.y) > 2 || sv(e, t, n, a, u);
|
|
12289
12309
|
}
|
|
12290
|
-
function
|
|
12310
|
+
function sv(t, e, l, n, a) {
|
|
12291
12311
|
n.send({
|
|
12292
12312
|
type: "interaction_result",
|
|
12293
12313
|
interactionType: "player_eaten",
|
|
@@ -12302,7 +12322,7 @@ function fv(t, e, l, n, a) {
|
|
|
12302
12322
|
scoreIncrease: 10
|
|
12303
12323
|
}), t === l.me.id && at.playDeath(!0), e === l.me.id && at.playPlayerEaten(!0);
|
|
12304
12324
|
}
|
|
12305
|
-
function
|
|
12325
|
+
function rv(t, e, l, n) {
|
|
12306
12326
|
let a = Date.now();
|
|
12307
12327
|
function u() {
|
|
12308
12328
|
return t.me.id === n().hostId;
|
|
@@ -12439,7 +12459,7 @@ function ki(t, e) {
|
|
|
12439
12459
|
function io(t, e, l, n) {
|
|
12440
12460
|
return ki(e, n) ? !0 : ki(t, n) && ki(e, l);
|
|
12441
12461
|
}
|
|
12442
|
-
function
|
|
12462
|
+
function dv(t, e, l, n) {
|
|
12443
12463
|
const a = [];
|
|
12444
12464
|
for (const [u, i] of e) {
|
|
12445
12465
|
if (i.respawning || i.inSafeZone) continue;
|
|
@@ -12453,13 +12473,13 @@ function sv(t, e, l, n) {
|
|
|
12453
12473
|
}
|
|
12454
12474
|
return a;
|
|
12455
12475
|
}
|
|
12456
|
-
function
|
|
12476
|
+
function yv(t, e) {
|
|
12457
12477
|
t.send({ type: "countdown_start", startedAt: e });
|
|
12458
12478
|
}
|
|
12459
|
-
function
|
|
12479
|
+
function Dv(t, e, l) {
|
|
12460
12480
|
t.send({ type: "ending_start", startedAt: e, nextStatus: l });
|
|
12461
12481
|
}
|
|
12462
|
-
function
|
|
12482
|
+
function mv(t, e, l, n) {
|
|
12463
12483
|
for (let a = 0; a < t.pelletSpawns.length; a++) {
|
|
12464
12484
|
const u = t.pelletSpawns[a], i = String(a);
|
|
12465
12485
|
(e.get(i) ?? null) === null && u.activePosition !== null && (l.send({
|
|
@@ -12473,7 +12493,7 @@ function yv(t, e, l, n) {
|
|
|
12473
12493
|
})), e.set(i, u.activePosition);
|
|
12474
12494
|
}
|
|
12475
12495
|
}
|
|
12476
|
-
function
|
|
12496
|
+
function pv(t, e, l, n, a) {
|
|
12477
12497
|
for (const u of t.players) {
|
|
12478
12498
|
const i = e.get(u.id) ?? /* @__PURE__ */ new Map(), c = new Map(u.activeEffects.map((f) => [f.instanceId, f.pelletId]));
|
|
12479
12499
|
for (const [f, o] of i)
|
|
@@ -12486,7 +12506,7 @@ function Dv(t, e, l, n, a) {
|
|
|
12486
12506
|
e.set(u.id, c);
|
|
12487
12507
|
}
|
|
12488
12508
|
}
|
|
12489
|
-
function
|
|
12509
|
+
function hv(t, e, l, n) {
|
|
12490
12510
|
const a = /* @__PURE__ */ new Map();
|
|
12491
12511
|
for (const u of t.players)
|
|
12492
12512
|
if (u.respawnCountdown === null)
|
|
@@ -12518,7 +12538,7 @@ function mv(t, e, l, n) {
|
|
|
12518
12538
|
}
|
|
12519
12539
|
for (const u of t.players) e.set(u.id, u.position);
|
|
12520
12540
|
}
|
|
12521
|
-
function
|
|
12541
|
+
function vv(t, e, l, n) {
|
|
12522
12542
|
const a = /* @__PURE__ */ new Set();
|
|
12523
12543
|
for (const u of t.players)
|
|
12524
12544
|
u.slowedTicks > 0 && a.add(u.id);
|
|
@@ -12526,7 +12546,7 @@ function pv(t, e, l, n) {
|
|
|
12526
12546
|
a.has(u) || (l.send({ type: "player_unslowed", playerId: u }), n({ type: "APPLY_PLAYER_UNSLOWED", playerId: u }));
|
|
12527
12547
|
e.clear(), a.forEach((u) => e.add(u));
|
|
12528
12548
|
}
|
|
12529
|
-
function
|
|
12549
|
+
function gv(t, e, l) {
|
|
12530
12550
|
const n = /* @__PURE__ */ new Set();
|
|
12531
12551
|
for (const a of t.players)
|
|
12532
12552
|
a.respawnCountdown !== null && a.respawnCountdown > Ft && n.add(a.id);
|
|
@@ -12537,7 +12557,7 @@ function hv(t, e, l) {
|
|
|
12537
12557
|
}
|
|
12538
12558
|
e.clear(), n.forEach((a) => e.add(a));
|
|
12539
12559
|
}
|
|
12540
|
-
function
|
|
12560
|
+
function Sv(t, e, l, n) {
|
|
12541
12561
|
const a = /* @__PURE__ */ new Set();
|
|
12542
12562
|
for (const u of t.players)
|
|
12543
12563
|
u.respawnCountdown !== null && a.add(u.id);
|
|
@@ -12545,17 +12565,17 @@ function vv(t, e, l, n) {
|
|
|
12545
12565
|
a.has(u) || (l.send({ type: "player_respawned", playerId: u }), n({ type: "APPLY_PLAYER_RESPAWNED", playerId: u }));
|
|
12546
12566
|
e.clear(), a.forEach((u) => e.add(u));
|
|
12547
12567
|
}
|
|
12548
|
-
function
|
|
12568
|
+
function Ev(t) {
|
|
12549
12569
|
const e = /* @__PURE__ */ new Map();
|
|
12550
12570
|
for (const l of t) e.set(l.id, { x: l.position.x, y: l.position.y });
|
|
12551
12571
|
return e;
|
|
12552
12572
|
}
|
|
12553
|
-
function
|
|
12573
|
+
function bv(t) {
|
|
12554
12574
|
const e = /* @__PURE__ */ new Map();
|
|
12555
12575
|
for (const l of t) e.set(l.id, { x: l.position.x, y: l.position.y });
|
|
12556
12576
|
return e;
|
|
12557
12577
|
}
|
|
12558
|
-
function
|
|
12578
|
+
function Tv(t, e) {
|
|
12559
12579
|
var n;
|
|
12560
12580
|
const l = /* @__PURE__ */ new Map();
|
|
12561
12581
|
for (const a of t)
|
|
@@ -12566,7 +12586,7 @@ function Ev(t, e) {
|
|
|
12566
12586
|
});
|
|
12567
12587
|
return l;
|
|
12568
12588
|
}
|
|
12569
|
-
function
|
|
12589
|
+
function Av(t, e) {
|
|
12570
12590
|
var n;
|
|
12571
12591
|
const l = /* @__PURE__ */ new Map();
|
|
12572
12592
|
for (const a of t)
|
|
@@ -12577,7 +12597,7 @@ function bv(t, e) {
|
|
|
12577
12597
|
});
|
|
12578
12598
|
return l;
|
|
12579
12599
|
}
|
|
12580
|
-
function
|
|
12600
|
+
function xv(t, e, l, n) {
|
|
12581
12601
|
t.ghostVulnerable ? (l.send({
|
|
12582
12602
|
type: "interaction_result",
|
|
12583
12603
|
interactionType: "ghost_eaten",
|
|
@@ -12600,14 +12620,14 @@ function Tv(t, e, l, n) {
|
|
|
12600
12620
|
affectedId: t.playerId
|
|
12601
12621
|
}), t.playerId === e.me.id && at.playDeath(!0));
|
|
12602
12622
|
}
|
|
12603
|
-
const
|
|
12604
|
-
function
|
|
12623
|
+
const _v = bl(3);
|
|
12624
|
+
function Mv(t, e, l, n, a, u) {
|
|
12605
12625
|
let i = null, c = null, f = 0, o = 0, d = !1;
|
|
12606
12626
|
const p = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Map();
|
|
12607
12627
|
function y() {
|
|
12608
12628
|
f++;
|
|
12609
12629
|
const m = e();
|
|
12610
|
-
if (!d && m.status === "ending" && m.endingStartedAt !== null && m.endingNext !== null && (
|
|
12630
|
+
if (!d && m.status === "ending" && m.endingStartedAt !== null && m.endingNext !== null && (Dv(u, m.endingStartedAt, m.endingNext), d = !0), m.status === "countdown") {
|
|
12611
12631
|
m.countdownStartedAt !== null && Date.now() - m.countdownStartedAt >= 3500 && (t({ type: "START_PLAYING" }), u.send({ type: "start_playing" }));
|
|
12612
12632
|
return;
|
|
12613
12633
|
}
|
|
@@ -12617,13 +12637,13 @@ function xv(t, e, l, n, a, u) {
|
|
|
12617
12637
|
}
|
|
12618
12638
|
if (m.status === "playing") {
|
|
12619
12639
|
d = !1;
|
|
12620
|
-
const h =
|
|
12640
|
+
const h = Ev(m.players), T = bv(m.ghosts);
|
|
12621
12641
|
t({ type: "TICK", tick: f, myId: n });
|
|
12622
|
-
const z =
|
|
12623
|
-
for (const A of M)
|
|
12642
|
+
const z = Tv(e().players, e().tiles), E = Av(e().ghosts, e().tiles), M = dv(h, z, T, E);
|
|
12643
|
+
for (const A of M) xv(A, a, u, t);
|
|
12624
12644
|
const O = e();
|
|
12625
|
-
|
|
12626
|
-
} else m.status === "migrating" ? (o <= 0 && (o =
|
|
12645
|
+
mv(O, p, u, t), pv(O, s, n, u, t), hv(O, _, u, t), vv(O, D, u, t), gv(O, b, u), Sv(O, g, u, t);
|
|
12646
|
+
} else m.status === "migrating" ? (o <= 0 && (o = _v), o--, o === 0 && (t({ type: "MIGRATION_COMPLETE", newHostId: m.hostId, state: m }), o = -1)) : o = 0;
|
|
12627
12647
|
}
|
|
12628
12648
|
function r() {
|
|
12629
12649
|
const m = e();
|
|
@@ -12638,8 +12658,8 @@ function xv(t, e, l, n, a, u) {
|
|
|
12638
12658
|
}
|
|
12639
12659
|
};
|
|
12640
12660
|
}
|
|
12641
|
-
const
|
|
12642
|
-
function
|
|
12661
|
+
const Ov = 33, Ks = 16;
|
|
12662
|
+
function zv(t, e, l, n) {
|
|
12643
12663
|
let a = "NONE", u = null, i = null, c = !1, f = 0, o = null;
|
|
12644
12664
|
const d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Set();
|
|
12645
12665
|
function s() {
|
|
@@ -12659,8 +12679,8 @@ function Mv(t, e, l, n) {
|
|
|
12659
12679
|
const A = M >= 2 ? Math.round(M) : 1, L = yD(T, a, h.tiles, A), H = L.pelletsCollectedAt.flatMap((ct) => {
|
|
12660
12680
|
const te = h.pelletSpawns.find(
|
|
12661
12681
|
(ue) => {
|
|
12662
|
-
var x,
|
|
12663
|
-
return ((x = ue.activePosition) == null ? void 0 : x.x) === ct.x && ((
|
|
12682
|
+
var x, w;
|
|
12683
|
+
return ((x = ue.activePosition) == null ? void 0 : x.x) === ct.x && ((w = ue.activePosition) == null ? void 0 : w.y) === ct.y;
|
|
12664
12684
|
}
|
|
12665
12685
|
);
|
|
12666
12686
|
return te ? [{ pelletId: te.pelletId, position: ct }] : [];
|
|
@@ -12693,7 +12713,7 @@ function Mv(t, e, l, n) {
|
|
|
12693
12713
|
continue;
|
|
12694
12714
|
}
|
|
12695
12715
|
const H = { x: A.position.x, y: A.position.y }, ct = o ?? z, te = d.get(A.id) ?? H;
|
|
12696
|
-
io(ct, z, te, H) && !p.has(A.id) && (A.activeEffects.some((x) => x.skills.some((
|
|
12716
|
+
io(ct, z, te, H) && !p.has(A.id) && (A.activeEffects.some((x) => x.skills.some((w) => w.type === "invincibility")) || (p.add(A.id), t.me.id === h.hostId ? mD(t.me.id, A.id, h, t, e, l) : e.send(
|
|
12697
12717
|
{
|
|
12698
12718
|
type: "collision_report",
|
|
12699
12719
|
collisionType: "player",
|
|
@@ -12722,7 +12742,7 @@ function Mv(t, e, l, n) {
|
|
|
12722
12742
|
}));
|
|
12723
12743
|
}
|
|
12724
12744
|
function _() {
|
|
12725
|
-
u === null && (u = setInterval(s, Ks), i = setInterval(b,
|
|
12745
|
+
u === null && (u = setInterval(s, Ks), i = setInterval(b, Ov));
|
|
12726
12746
|
}
|
|
12727
12747
|
function y() {
|
|
12728
12748
|
u !== null && (clearInterval(u), u = null), i !== null && (clearInterval(i), i = null), f = 0, o = null, d.clear(), p.clear(), c = !1;
|
|
@@ -12732,9 +12752,9 @@ function Mv(t, e, l, n) {
|
|
|
12732
12752
|
}
|
|
12733
12753
|
return { start: _, stop: y, setDirection: r };
|
|
12734
12754
|
}
|
|
12735
|
-
function
|
|
12755
|
+
function Nv(t, e, l, n) {
|
|
12736
12756
|
const a = N.useRef(null);
|
|
12737
|
-
a.current === null && (a.current =
|
|
12757
|
+
a.current === null && (a.current = Mv(
|
|
12738
12758
|
l,
|
|
12739
12759
|
n,
|
|
12740
12760
|
(i) => {
|
|
@@ -12758,22 +12778,22 @@ function Ov(t, e, l, n) {
|
|
|
12758
12778
|
e
|
|
12759
12779
|
));
|
|
12760
12780
|
const u = N.useRef(null);
|
|
12761
|
-
return u.current === null && (u.current =
|
|
12781
|
+
return u.current === null && (u.current = zv(t, e, l, n)), { gameLoopRef: a, localPlayerLoopRef: u };
|
|
12762
12782
|
}
|
|
12763
|
-
const
|
|
12783
|
+
const Rv = {
|
|
12764
12784
|
ArrowUp: "UP",
|
|
12765
12785
|
ArrowDown: "DOWN",
|
|
12766
12786
|
ArrowLeft: "LEFT",
|
|
12767
12787
|
ArrowRight: "RIGHT"
|
|
12768
12788
|
}, Js = 20, Is = 12;
|
|
12769
|
-
function
|
|
12789
|
+
function wv(t, e) {
|
|
12770
12790
|
const l = Math.abs(t), n = Math.abs(e);
|
|
12771
12791
|
return l < Is && n < Is ? null : l >= n ? t > 0 ? "RIGHT" : "LEFT" : e > 0 ? "DOWN" : "UP";
|
|
12772
12792
|
}
|
|
12773
12793
|
function pD() {
|
|
12774
12794
|
return document.querySelector("[data-game-grid]");
|
|
12775
12795
|
}
|
|
12776
|
-
const
|
|
12796
|
+
const Cv = {
|
|
12777
12797
|
UP: "LEFT",
|
|
12778
12798
|
RIGHT: "UP",
|
|
12779
12799
|
DOWN: "RIGHT",
|
|
@@ -12781,7 +12801,7 @@ const Rv = {
|
|
|
12781
12801
|
};
|
|
12782
12802
|
function $i(t) {
|
|
12783
12803
|
var e;
|
|
12784
|
-
return (e = pD()) != null && e.hasAttribute("data-rotated") ?
|
|
12804
|
+
return (e = pD()) != null && e.hasAttribute("data-rotated") ? Cv[t] : t;
|
|
12785
12805
|
}
|
|
12786
12806
|
function ks(t, e, l) {
|
|
12787
12807
|
if (!l || l <= 0) return null;
|
|
@@ -12793,7 +12813,7 @@ function ks(t, e, l) {
|
|
|
12793
12813
|
}
|
|
12794
12814
|
return { x: Math.floor(u / l), y: Math.floor(i / l) };
|
|
12795
12815
|
}
|
|
12796
|
-
function
|
|
12816
|
+
function Uv(t, e, l, n) {
|
|
12797
12817
|
N.useEffect(() => {
|
|
12798
12818
|
if (!e) return;
|
|
12799
12819
|
let a = !1;
|
|
@@ -12802,7 +12822,7 @@ function Cv(t, e, l, n) {
|
|
|
12802
12822
|
}
|
|
12803
12823
|
function i(m) {
|
|
12804
12824
|
u();
|
|
12805
|
-
const h =
|
|
12825
|
+
const h = Rv[m.key];
|
|
12806
12826
|
h && t($i(h));
|
|
12807
12827
|
}
|
|
12808
12828
|
window.addEventListener("keydown", i);
|
|
@@ -12811,7 +12831,7 @@ function Cv(t, e, l, n) {
|
|
|
12811
12831
|
u(), D = !0, c = m.touches[0].clientX, f = m.touches[0].clientY, o = c, d = f, p = null, s = !1;
|
|
12812
12832
|
}
|
|
12813
12833
|
function b(m) {
|
|
12814
|
-
const h = m.touches[0], T = h.clientX - o, z = h.clientY - d, E =
|
|
12834
|
+
const h = m.touches[0], T = h.clientX - o, z = h.clientY - d, E = wv(T, z);
|
|
12815
12835
|
E && (s = !0, E !== p && (t($i(E)), p = E), o = h.clientX, d = h.clientY);
|
|
12816
12836
|
}
|
|
12817
12837
|
function _(m) {
|
|
@@ -12842,7 +12862,7 @@ function Cv(t, e, l, n) {
|
|
|
12842
12862
|
};
|
|
12843
12863
|
}, [e, t, l, n]);
|
|
12844
12864
|
}
|
|
12845
|
-
function
|
|
12865
|
+
function jv(t, e, l) {
|
|
12846
12866
|
const n = Math.max(2, Math.min(t.length, 4)), a = ne(e), u = a.spawns[n] ?? a.spawns[2];
|
|
12847
12867
|
return t.map((i, c) => ({
|
|
12848
12868
|
id: i.id,
|
|
@@ -12865,7 +12885,7 @@ function wv(t, e, l) {
|
|
|
12865
12885
|
teamId: l == null ? void 0 : l[i.id]
|
|
12866
12886
|
}));
|
|
12867
12887
|
}
|
|
12868
|
-
function
|
|
12888
|
+
function Lv(t, e) {
|
|
12869
12889
|
return e === "ffa" || e === "teamvs" ? [] : ne(t).ghostSpawns.map((n, a) => ({
|
|
12870
12890
|
id: `ghost${a}`,
|
|
12871
12891
|
emoji: "👻",
|
|
@@ -12879,10 +12899,10 @@ function Uv(t, e) {
|
|
|
12879
12899
|
spawnPosition: n
|
|
12880
12900
|
}));
|
|
12881
12901
|
}
|
|
12882
|
-
function
|
|
12902
|
+
function Hv(t) {
|
|
12883
12903
|
return t === "coop" ? ao() : null;
|
|
12884
12904
|
}
|
|
12885
|
-
function
|
|
12905
|
+
function Gv(t, e, l, n) {
|
|
12886
12906
|
function a() {
|
|
12887
12907
|
const i = { type: "NEXT_MAP" }, c = kc(n(), i);
|
|
12888
12908
|
l(i), e.send({ type: "game_state", state: c });
|
|
@@ -12893,7 +12913,7 @@ function Lv(t, e, l, n) {
|
|
|
12893
12913
|
}
|
|
12894
12914
|
return { handleNextMap: a, handlePlayAgain: u };
|
|
12895
12915
|
}
|
|
12896
|
-
function
|
|
12916
|
+
function Wv(t, e) {
|
|
12897
12917
|
const [l, n] = N.useState(!1), a = N.useRef(t);
|
|
12898
12918
|
return N.useEffect(() => {
|
|
12899
12919
|
if (t !== a.current) {
|
|
@@ -12906,7 +12926,7 @@ function Hv(t, e) {
|
|
|
12906
12926
|
}
|
|
12907
12927
|
}, [t, e]), l;
|
|
12908
12928
|
}
|
|
12909
|
-
function
|
|
12929
|
+
function Yv(t) {
|
|
12910
12930
|
const e = (d) => d < 1e3 ? "3" : d < 2e3 ? "2" : d < 3e3 ? "1" : d < 3500 ? "go" : null, [l, n] = N.useState(
|
|
12911
12931
|
() => e(Date.now() - t.startedAt)
|
|
12912
12932
|
);
|
|
@@ -12954,7 +12974,7 @@ function Gv(t) {
|
|
|
12954
12974
|
/* @__PURE__ */ v.jsx("div", { style: o, "aria-hidden": "true", children: /* @__PURE__ */ v.jsx("div", { style: f, children: u }, l) })
|
|
12955
12975
|
] });
|
|
12956
12976
|
}
|
|
12957
|
-
function
|
|
12977
|
+
function Bv(t) {
|
|
12958
12978
|
let e = !1;
|
|
12959
12979
|
try {
|
|
12960
12980
|
e = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -13018,7 +13038,7 @@ function Wv(t) {
|
|
|
13018
13038
|
] }) })
|
|
13019
13039
|
] });
|
|
13020
13040
|
}
|
|
13021
|
-
const
|
|
13041
|
+
const qv = {
|
|
13022
13042
|
position: "fixed",
|
|
13023
13043
|
top: "20%",
|
|
13024
13044
|
left: "50%",
|
|
@@ -13037,12 +13057,12 @@ function $c({ t, hostPromotedNotice: e }) {
|
|
|
13037
13057
|
"div",
|
|
13038
13058
|
{
|
|
13039
13059
|
role: "status",
|
|
13040
|
-
style: { ...
|
|
13060
|
+
style: { ...qv, border: "1px solid rgba(80,200,120,0.7)" },
|
|
13041
13061
|
children: t("cc.toast.hostPromoted")
|
|
13042
13062
|
}
|
|
13043
13063
|
) : null;
|
|
13044
13064
|
}
|
|
13045
|
-
const $s = "come-come-sprite-keyframes",
|
|
13065
|
+
const $s = "come-come-sprite-keyframes", Xv = `
|
|
13046
13066
|
@keyframes come-come-death-spin {
|
|
13047
13067
|
0% { transform: scale(1) rotate(0deg) scaleY(1); }
|
|
13048
13068
|
50% { transform: scale(0.8) rotate(180deg) scaleY(0.4); }
|
|
@@ -13059,13 +13079,13 @@ const $s = "come-come-sprite-keyframes", Bv = `
|
|
|
13059
13079
|
transform: rotate(-90deg);
|
|
13060
13080
|
}
|
|
13061
13081
|
`;
|
|
13062
|
-
function
|
|
13082
|
+
function Qv() {
|
|
13063
13083
|
if (typeof document > "u" || document.getElementById($s)) return;
|
|
13064
13084
|
const t = document.createElement("style");
|
|
13065
|
-
t.id = $s, t.textContent =
|
|
13085
|
+
t.id = $s, t.textContent = Xv, document.head.appendChild(t);
|
|
13066
13086
|
}
|
|
13067
13087
|
const Fi = /* @__PURE__ */ new Set();
|
|
13068
|
-
function
|
|
13088
|
+
function Zv(t, e) {
|
|
13069
13089
|
if (typeof document > "u") return;
|
|
13070
13090
|
const l = `come-come-pellet-${t}-glow`;
|
|
13071
13091
|
if (Fi.has(l)) return;
|
|
@@ -13082,12 +13102,12 @@ function Xv(t, e) {
|
|
|
13082
13102
|
}
|
|
13083
13103
|
`, document.head.appendChild(a), Fi.add(l);
|
|
13084
13104
|
}
|
|
13085
|
-
const
|
|
13086
|
-
function
|
|
13105
|
+
const Vv = "drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)", Va = "#4466ff", Ka = "rgba(68,102,255,0.6)";
|
|
13106
|
+
function Kv(t) {
|
|
13087
13107
|
const e = [];
|
|
13088
13108
|
return t & 1 && e.push(`inset 0 2px 0 0 ${Va}`, `0 -2px 7px ${Ka}`), t & 2 && e.push(`inset -2px 0 0 0 ${Va}`, `2px 0 7px ${Ka}`), t & 4 && e.push(`inset 0 -2px 0 0 ${Va}`, `0 2px 7px ${Ka}`), t & 8 && e.push(`inset 2px 0 0 0 ${Va}`, `-2px 0 7px ${Ka}`), e.join(", ");
|
|
13089
13109
|
}
|
|
13090
|
-
const
|
|
13110
|
+
const Jv = N.memo(function({
|
|
13091
13111
|
color: e,
|
|
13092
13112
|
instanceId: l,
|
|
13093
13113
|
seedRemainingMs: n,
|
|
@@ -13145,29 +13165,29 @@ const Vv = N.memo(function({
|
|
|
13145
13165
|
style: _
|
|
13146
13166
|
}
|
|
13147
13167
|
);
|
|
13148
|
-
}),
|
|
13168
|
+
}), Iv = {
|
|
13149
13169
|
wall: "#0a0d2a",
|
|
13150
13170
|
dot: "#04040f",
|
|
13151
13171
|
empty: "#04040f",
|
|
13152
13172
|
spawn: "#05140f",
|
|
13153
13173
|
pellet: "#04040f"
|
|
13154
|
-
},
|
|
13155
|
-
function
|
|
13174
|
+
}, kv = 1, $v = 2, Fv = 4, Pv = 8;
|
|
13175
|
+
function t1(t, e, l) {
|
|
13156
13176
|
const n = t.length, a = t[l].length;
|
|
13157
13177
|
let u = 0;
|
|
13158
|
-
return l > 0 && t[l - 1][e] !== "wall" && (u |=
|
|
13178
|
+
return l > 0 && t[l - 1][e] !== "wall" && (u |= kv), e < a - 1 && t[l][e + 1] !== "wall" && (u |= $v), l < n - 1 && t[l + 1][e] !== "wall" && (u |= Fv), e > 0 && t[l][e - 1] !== "wall" && (u |= Pv), u;
|
|
13159
13179
|
}
|
|
13160
|
-
const
|
|
13180
|
+
const e1 = N.memo(function({ type: e, x: l, y: n, tileSize: a, wallEdges: u }) {
|
|
13161
13181
|
const i = {
|
|
13162
13182
|
position: "absolute",
|
|
13163
13183
|
left: l * a,
|
|
13164
13184
|
top: n * a,
|
|
13165
13185
|
width: a,
|
|
13166
13186
|
height: a,
|
|
13167
|
-
background:
|
|
13187
|
+
background: Iv[e]
|
|
13168
13188
|
};
|
|
13169
|
-
return e === "wall" && u && (i.boxShadow =
|
|
13170
|
-
}),
|
|
13189
|
+
return e === "wall" && u && (i.boxShadow = Kv(u)), /* @__PURE__ */ v.jsx("div", { "data-testid": `tile-${l}-${n}`, style: i });
|
|
13190
|
+
}), l1 = N.memo(function({ x: e, y: l, tileSize: n }) {
|
|
13171
13191
|
const a = n * 0.3;
|
|
13172
13192
|
return /* @__PURE__ */ v.jsx("div", { "data-dot": !0, style: {
|
|
13173
13193
|
position: "absolute",
|
|
@@ -13180,9 +13200,9 @@ const Pv = N.memo(function({ type: e, x: l, y: n, tileSize: a, wallEdges: u }) {
|
|
|
13180
13200
|
boxShadow: "0 0 4px 2px rgba(255,215,0,0.6)",
|
|
13181
13201
|
pointerEvents: "none"
|
|
13182
13202
|
} });
|
|
13183
|
-
}),
|
|
13203
|
+
}), n1 = N.memo(function({ def: e, tileSize: l, x: n, y: a }) {
|
|
13184
13204
|
N.useEffect(() => {
|
|
13185
|
-
|
|
13205
|
+
Zv(e.id, e.glowColor);
|
|
13186
13206
|
}, [e.id, e.glowColor]);
|
|
13187
13207
|
const u = e.size * l;
|
|
13188
13208
|
return /* @__PURE__ */ v.jsx("div", { "data-pellet": e.id, style: {
|
|
@@ -13198,7 +13218,7 @@ const Pv = N.memo(function({ type: e, x: l, y: n, tileSize: a, wallEdges: u }) {
|
|
|
13198
13218
|
pointerEvents: "none"
|
|
13199
13219
|
} });
|
|
13200
13220
|
});
|
|
13201
|
-
function
|
|
13221
|
+
function a1(t, e, l) {
|
|
13202
13222
|
const n = l !== 1 ? { transform: `scale(${l})`, transformOrigin: "center" } : {}, a = t.activeEffects[t.activeEffects.length - 1];
|
|
13203
13223
|
if (a) {
|
|
13204
13224
|
const u = uo.find((i) => i.id === a.pelletId);
|
|
@@ -13207,16 +13227,16 @@ function l1(t, e, l) {
|
|
|
13207
13227
|
aura: { color: u.glowColor, instanceId: a.instanceId, seedRemainingMs: a.timerTicks * _a }
|
|
13208
13228
|
};
|
|
13209
13229
|
}
|
|
13210
|
-
return { style: { ...e ? { filter:
|
|
13230
|
+
return { style: { ...e ? { filter: Vv } : {}, ...n } };
|
|
13211
13231
|
}
|
|
13212
|
-
const
|
|
13232
|
+
const u1 = N.memo(function({ player: e, myId: l, tileSize: n }) {
|
|
13213
13233
|
const a = N.useRef(e.position), u = Math.abs(e.position.x - a.current.x) > 2 || Math.abs(e.position.y - a.current.y) > 2;
|
|
13214
13234
|
N.useEffect(() => {
|
|
13215
13235
|
a.current = e.position;
|
|
13216
13236
|
}, [e.position]);
|
|
13217
13237
|
const { respawnCountdown: i } = e;
|
|
13218
13238
|
if (i !== null && i > Ft) return null;
|
|
13219
|
-
const c = i !== null && i <= Ft, f = e.id === l, o =
|
|
13239
|
+
const c = i !== null && i <= Ft, f = e.id === l, o = Hh(e), d = c ? { style: {} } : a1(e, f, o), p = {
|
|
13220
13240
|
position: "absolute",
|
|
13221
13241
|
left: e.position.x * n,
|
|
13222
13242
|
top: e.position.y * n,
|
|
@@ -13231,7 +13251,7 @@ const n1 = N.memo(function({ player: e, myId: l, tileSize: n }) {
|
|
|
13231
13251
|
};
|
|
13232
13252
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
13233
13253
|
d.aura && !c && /* @__PURE__ */ v.jsx(
|
|
13234
|
-
|
|
13254
|
+
Jv,
|
|
13235
13255
|
{
|
|
13236
13256
|
color: d.aura.color,
|
|
13237
13257
|
instanceId: d.aura.instanceId,
|
|
@@ -13244,7 +13264,7 @@ const n1 = N.memo(function({ player: e, myId: l, tileSize: n }) {
|
|
|
13244
13264
|
),
|
|
13245
13265
|
/* @__PURE__ */ v.jsx("span", { style: p, "data-testid": `player-${e.id}`, "data-team-id": e.teamId ?? void 0, children: /* @__PURE__ */ v.jsx("span", { "data-emoji": !0, children: e.emoji }) })
|
|
13246
13266
|
] });
|
|
13247
|
-
}),
|
|
13267
|
+
}), i1 = N.memo(function({ ghost: e, tileSize: l }) {
|
|
13248
13268
|
const n = N.useRef(e.position), a = Math.abs(e.position.x - n.current.x) > 1 || Math.abs(e.position.y - n.current.y) > 1;
|
|
13249
13269
|
N.useEffect(() => {
|
|
13250
13270
|
n.current = e.position;
|
|
@@ -13261,8 +13281,8 @@ const n1 = N.memo(function({ player: e, myId: l, tileSize: n }) {
|
|
|
13261
13281
|
willChange: "left, top"
|
|
13262
13282
|
};
|
|
13263
13283
|
return /* @__PURE__ */ v.jsx("span", { style: i, "data-testid": `ghost-${e.id}`, children: /* @__PURE__ */ v.jsx("span", { "data-emoji": !0, children: e.panicMode ? "😱" : e.emoji }) });
|
|
13264
|
-
}),
|
|
13265
|
-
function
|
|
13284
|
+
}), c1 = 3;
|
|
13285
|
+
function f1(t) {
|
|
13266
13286
|
const e = N.useRef(null), l = N.useRef(t), n = Date.now();
|
|
13267
13287
|
if (t.some((i) => {
|
|
13268
13288
|
const c = l.current.find((f) => f.id === i.id);
|
|
@@ -13287,13 +13307,13 @@ function i1(t) {
|
|
|
13287
13307
|
if (!u)
|
|
13288
13308
|
return { ...c, x: i.position.x, y: i.position.y };
|
|
13289
13309
|
const f = u.prev[i.id] ?? { x: i.position.x, y: i.position.y }, o = u.next[i.id] ?? { x: i.position.x, y: i.position.y };
|
|
13290
|
-
if (Math.abs(o.x - f.x) + Math.abs(o.y - f.y) >
|
|
13310
|
+
if (Math.abs(o.x - f.x) + Math.abs(o.y - f.y) > c1)
|
|
13291
13311
|
return { ...c, x: o.x, y: o.y };
|
|
13292
13312
|
const p = Math.max(0, Math.min(1, (n - u.timestamp) / sD));
|
|
13293
13313
|
return { ...c, x: f.x + (o.x - f.x) * p, y: f.y + (o.y - f.y) * p };
|
|
13294
13314
|
});
|
|
13295
13315
|
}
|
|
13296
|
-
const
|
|
13316
|
+
const o1 = ({ player: t, tileSize: e }) => {
|
|
13297
13317
|
if (t.deathPosition === null || t.respawnCountdown === null || t.respawnCountdown <= Ft) return null;
|
|
13298
13318
|
const l = {
|
|
13299
13319
|
position: "absolute",
|
|
@@ -13312,21 +13332,21 @@ function Fs(t, e, l = 0, n = 0) {
|
|
|
13312
13332
|
const a = e / t, u = l > 0 && n > 0 ? n / l : a;
|
|
13313
13333
|
return Math.max(Fc, Math.min(a, u));
|
|
13314
13334
|
}
|
|
13315
|
-
function
|
|
13335
|
+
function s1(t, e, l, n) {
|
|
13316
13336
|
const a = Fs(t, l, e, n), u = Fs(e, l, t, n);
|
|
13317
13337
|
return u > a ? { ts: u, rotated: !0 } : { ts: a, rotated: !1 };
|
|
13318
13338
|
}
|
|
13319
|
-
function
|
|
13339
|
+
function r1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], tileSize: u, onTileSizeChange: i }) {
|
|
13320
13340
|
const c = t.length, f = c > 0 ? t[0].length : 0, o = N.useRef(null), [d, p] = N.useState({ ts: Fc, rotated: !1 }), s = N.useRef(i);
|
|
13321
13341
|
s.current = i, N.useEffect(() => {
|
|
13322
|
-
|
|
13342
|
+
Qv();
|
|
13323
13343
|
}, []), N.useEffect(() => {
|
|
13324
13344
|
if (u !== void 0) return;
|
|
13325
13345
|
const _ = o.current;
|
|
13326
13346
|
if (!_) return;
|
|
13327
13347
|
const y = () => {
|
|
13328
13348
|
var T;
|
|
13329
|
-
const m = _.getBoundingClientRect(), h =
|
|
13349
|
+
const m = _.getBoundingClientRect(), h = s1(f, c, m.width, m.height);
|
|
13330
13350
|
p((z) => z.ts === h.ts && z.rotated === h.rotated ? z : h), (T = s.current) == null || T.call(s, h.ts);
|
|
13331
13351
|
};
|
|
13332
13352
|
y();
|
|
@@ -13335,7 +13355,7 @@ function o1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], ti
|
|
|
13335
13355
|
r == null || r.disconnect(), window.removeEventListener("resize", y);
|
|
13336
13356
|
};
|
|
13337
13357
|
}, [f, c, u]);
|
|
13338
|
-
const D = u ?? d.ts, g = u === void 0 && d.rotated, b =
|
|
13358
|
+
const D = u ?? d.ts, g = u === void 0 && d.rotated, b = f1(l);
|
|
13339
13359
|
return /* @__PURE__ */ v.jsx(
|
|
13340
13360
|
"div",
|
|
13341
13361
|
{
|
|
@@ -13364,20 +13384,20 @@ function o1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], ti
|
|
|
13364
13384
|
children: [
|
|
13365
13385
|
t.map(
|
|
13366
13386
|
(_, y) => _.map((r, m) => /* @__PURE__ */ v.jsx(
|
|
13367
|
-
|
|
13387
|
+
e1,
|
|
13368
13388
|
{
|
|
13369
13389
|
type: r,
|
|
13370
13390
|
x: m,
|
|
13371
13391
|
y,
|
|
13372
13392
|
tileSize: D,
|
|
13373
|
-
wallEdges: r === "wall" ?
|
|
13393
|
+
wallEdges: r === "wall" ? t1(t, m, y) : void 0
|
|
13374
13394
|
},
|
|
13375
13395
|
`${m}-${y}`
|
|
13376
13396
|
))
|
|
13377
13397
|
),
|
|
13378
13398
|
t.map(
|
|
13379
13399
|
(_, y) => _.map((r, m) => {
|
|
13380
|
-
if (r === "dot") return /* @__PURE__ */ v.jsx(
|
|
13400
|
+
if (r === "dot") return /* @__PURE__ */ v.jsx(l1, { x: m, y, tileSize: D }, `d-${m}-${y}`);
|
|
13381
13401
|
if (r === "pellet") {
|
|
13382
13402
|
const h = a.find((z) => {
|
|
13383
13403
|
var E, M;
|
|
@@ -13385,19 +13405,19 @@ function o1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], ti
|
|
|
13385
13405
|
});
|
|
13386
13406
|
if (!h) return null;
|
|
13387
13407
|
const T = uo.find((z) => z.id === h.pelletId);
|
|
13388
|
-
return T ? /* @__PURE__ */ v.jsx(
|
|
13408
|
+
return T ? /* @__PURE__ */ v.jsx(n1, { def: T, x: m, y, tileSize: D }, `p-${m}-${y}`) : null;
|
|
13389
13409
|
}
|
|
13390
13410
|
return null;
|
|
13391
13411
|
})
|
|
13392
13412
|
),
|
|
13393
13413
|
e.map((_) => /* @__PURE__ */ v.jsxs(ln.Fragment, { children: [
|
|
13394
|
-
/* @__PURE__ */ v.jsx(
|
|
13395
|
-
/* @__PURE__ */ v.jsx(
|
|
13414
|
+
/* @__PURE__ */ v.jsx(u1, { player: _, myId: n, tileSize: D }),
|
|
13415
|
+
/* @__PURE__ */ v.jsx(o1, { player: _, tileSize: D })
|
|
13396
13416
|
] }, _.id)),
|
|
13397
13417
|
b.map((_) => {
|
|
13398
13418
|
const y = l.find((r) => r.id === _.id);
|
|
13399
13419
|
return y ? /* @__PURE__ */ v.jsx(
|
|
13400
|
-
|
|
13420
|
+
i1,
|
|
13401
13421
|
{
|
|
13402
13422
|
ghost: { ...y, position: { x: _.x, y: _.y } },
|
|
13403
13423
|
tileSize: D
|
|
@@ -13412,7 +13432,7 @@ function o1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], ti
|
|
|
13412
13432
|
);
|
|
13413
13433
|
}
|
|
13414
13434
|
const Ps = "come-come-hud-styles";
|
|
13415
|
-
function
|
|
13435
|
+
function d1() {
|
|
13416
13436
|
if (typeof document > "u" || document.getElementById(Ps)) return;
|
|
13417
13437
|
const t = document.createElement("style");
|
|
13418
13438
|
t.id = Ps, t.textContent = `
|
|
@@ -13423,11 +13443,11 @@ function s1() {
|
|
|
13423
13443
|
}
|
|
13424
13444
|
`, document.head.appendChild(t);
|
|
13425
13445
|
}
|
|
13426
|
-
function
|
|
13446
|
+
function y1(t) {
|
|
13427
13447
|
const e = Math.floor(t / 60), l = t % 60;
|
|
13428
13448
|
return `${e}:${l.toString().padStart(2, "0")}`;
|
|
13429
13449
|
}
|
|
13430
|
-
function
|
|
13450
|
+
function D1({ t, player: e, isLocal: l }) {
|
|
13431
13451
|
const n = N.useRef(e.score), [a, u] = N.useState(!1), [i, c] = N.useState(0);
|
|
13432
13452
|
N.useEffect(() => {
|
|
13433
13453
|
let d;
|
|
@@ -13454,9 +13474,9 @@ function d1({ t, player: e, isLocal: l }) {
|
|
|
13454
13474
|
}
|
|
13455
13475
|
);
|
|
13456
13476
|
}
|
|
13457
|
-
function
|
|
13477
|
+
function m1({ t, players: e, myId: l, timer: n, mode: a, level: u }) {
|
|
13458
13478
|
N.useEffect(() => {
|
|
13459
|
-
|
|
13479
|
+
d1();
|
|
13460
13480
|
}, []);
|
|
13461
13481
|
const i = n <= 15;
|
|
13462
13482
|
return /* @__PURE__ */ v.jsxs(
|
|
@@ -13477,17 +13497,17 @@ function y1({ t, players: e, myId: l, timer: n, mode: a, level: u }) {
|
|
|
13477
13497
|
{
|
|
13478
13498
|
"aria-label": t("cc.hud.timerAria"),
|
|
13479
13499
|
style: { color: i ? "#ff4444" : void 0, fontVariantNumeric: "tabular-nums" },
|
|
13480
|
-
children:
|
|
13500
|
+
children: y1(n)
|
|
13481
13501
|
}
|
|
13482
13502
|
),
|
|
13483
13503
|
/* @__PURE__ */ v.jsx("span", { children: t("cc.hud.level", String(u)) })
|
|
13484
13504
|
] }),
|
|
13485
|
-
e.map((c) => /* @__PURE__ */ v.jsx(
|
|
13505
|
+
e.map((c) => /* @__PURE__ */ v.jsx(D1, { t, player: c, isLocal: c.id === l }, c.id))
|
|
13486
13506
|
]
|
|
13487
13507
|
}
|
|
13488
13508
|
);
|
|
13489
13509
|
}
|
|
13490
|
-
function
|
|
13510
|
+
function p1({ t, countdown: e }) {
|
|
13491
13511
|
if (e === null) return null;
|
|
13492
13512
|
const l = t(e === 0 ? "cc.migration.resuming" : "cc.migration.connectionLost");
|
|
13493
13513
|
return /* @__PURE__ */ v.jsx(
|
|
@@ -13513,7 +13533,7 @@ function D1({ t, countdown: e }) {
|
|
|
13513
13533
|
}
|
|
13514
13534
|
);
|
|
13515
13535
|
}
|
|
13516
|
-
function
|
|
13536
|
+
function h1({
|
|
13517
13537
|
t,
|
|
13518
13538
|
state: e,
|
|
13519
13539
|
myId: l,
|
|
@@ -13537,7 +13557,7 @@ function m1({
|
|
|
13537
13557
|
},
|
|
13538
13558
|
children: [
|
|
13539
13559
|
/* @__PURE__ */ v.jsx(
|
|
13540
|
-
|
|
13560
|
+
m1,
|
|
13541
13561
|
{
|
|
13542
13562
|
t,
|
|
13543
13563
|
players: e.players,
|
|
@@ -13566,7 +13586,7 @@ function m1({
|
|
|
13566
13586
|
}
|
|
13567
13587
|
),
|
|
13568
13588
|
/* @__PURE__ */ v.jsx(
|
|
13569
|
-
|
|
13589
|
+
r1,
|
|
13570
13590
|
{
|
|
13571
13591
|
tiles: e.tiles,
|
|
13572
13592
|
players: e.players,
|
|
@@ -13576,13 +13596,13 @@ function m1({
|
|
|
13576
13596
|
onTileSizeChange: a
|
|
13577
13597
|
}
|
|
13578
13598
|
),
|
|
13579
|
-
/* @__PURE__ */ v.jsx(
|
|
13599
|
+
/* @__PURE__ */ v.jsx(p1, { t, countdown: e.migrationCountdown }),
|
|
13580
13600
|
/* @__PURE__ */ v.jsx($c, { t, hostPromotedNotice: n })
|
|
13581
13601
|
]
|
|
13582
13602
|
}
|
|
13583
13603
|
);
|
|
13584
13604
|
}
|
|
13585
|
-
const
|
|
13605
|
+
const v1 = (t) => 1 - Math.pow(1 - t, 3);
|
|
13586
13606
|
function hD(t) {
|
|
13587
13607
|
const { target: e, durationMs: l = 600, reducedMotion: n = !1 } = t, [a, u] = N.useState(() => n ? e : 0), i = N.useRef(0), c = N.useRef(null), f = N.useRef(n ? e : 0);
|
|
13588
13608
|
return N.useEffect(() => {
|
|
@@ -13594,7 +13614,7 @@ function hD(t) {
|
|
|
13594
13614
|
c.current = null;
|
|
13595
13615
|
const d = (p) => {
|
|
13596
13616
|
c.current === null && (c.current = p);
|
|
13597
|
-
const s = p - c.current, D = Math.min(s / l, 1), g = Math.round(o + (e - o) *
|
|
13617
|
+
const s = p - c.current, D = Math.min(s / l, 1), g = Math.round(o + (e - o) * v1(D));
|
|
13598
13618
|
u(g), f.current = g, D < 1 && (i.current = requestAnimationFrame(d));
|
|
13599
13619
|
};
|
|
13600
13620
|
return i.current = requestAnimationFrame(d), () => {
|
|
@@ -13695,7 +13715,7 @@ function tr({ score: t, reducedMotion: e }) {
|
|
|
13695
13715
|
const l = hD({ target: t, durationMs: 600, reducedMotion: e });
|
|
13696
13716
|
return /* @__PURE__ */ v.jsx("td", { style: Yu, children: l });
|
|
13697
13717
|
}
|
|
13698
|
-
function
|
|
13718
|
+
function g1({ player: t, rank: e, index: l, reducedMotion: n }) {
|
|
13699
13719
|
const a = e === 1, u = n ? {} : {
|
|
13700
13720
|
animation: "rowReveal 320ms ease-out both",
|
|
13701
13721
|
animationDelay: `${l * 80}ms`
|
|
@@ -13723,7 +13743,7 @@ function h1({ player: t, rank: e, index: l, reducedMotion: n }) {
|
|
|
13723
13743
|
}
|
|
13724
13744
|
);
|
|
13725
13745
|
}
|
|
13726
|
-
function
|
|
13746
|
+
function S1(t) {
|
|
13727
13747
|
const { t: e, level: l, players: n, isHost: a, onPlayAgain: u, onNextMap: i } = t, c = N.useId(), f = AD(), o = [...n].sort((_, y) => y.score - _.score), [d, p] = ln.useState(!1), [s, D] = ln.useState(!1), g = {
|
|
13728
13748
|
...Bu,
|
|
13729
13749
|
boxShadow: d ? "0 0 12px rgba(68,102,255,0.55)" : "none"
|
|
@@ -13744,7 +13764,7 @@ function v1(t) {
|
|
|
13744
13764
|
/* @__PURE__ */ v.jsx("th", { style: Jl, children: e("cc.levelSummary.table.overall") })
|
|
13745
13765
|
] }) }),
|
|
13746
13766
|
/* @__PURE__ */ v.jsx("tbody", { children: o.map((_, y) => /* @__PURE__ */ v.jsx(
|
|
13747
|
-
|
|
13767
|
+
g1,
|
|
13748
13768
|
{
|
|
13749
13769
|
player: _,
|
|
13750
13770
|
rank: y + 1,
|
|
@@ -13782,7 +13802,7 @@ function v1(t) {
|
|
|
13782
13802
|
] }) : /* @__PURE__ */ v.jsx("div", { style: bD, children: e("cc.score.waitingForHost") }) })
|
|
13783
13803
|
] }) });
|
|
13784
13804
|
}
|
|
13785
|
-
function
|
|
13805
|
+
function E1(t) {
|
|
13786
13806
|
const e = /* @__PURE__ */ new Map();
|
|
13787
13807
|
for (const l of t) {
|
|
13788
13808
|
const n = l.teamId ?? "—";
|
|
@@ -13802,7 +13822,7 @@ function MD({ score: t, reducedMotion: e }) {
|
|
|
13802
13822
|
const l = hD({ target: t, durationMs: 600, reducedMotion: e });
|
|
13803
13823
|
return /* @__PURE__ */ v.jsx("td", { style: Yu, children: l });
|
|
13804
13824
|
}
|
|
13805
|
-
function
|
|
13825
|
+
function b1({ t, teams: e, winningTeamId: l, reducedMotion: n }) {
|
|
13806
13826
|
return /* @__PURE__ */ v.jsxs("table", { style: co, children: [
|
|
13807
13827
|
/* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsxs("tr", { style: fo, children: [
|
|
13808
13828
|
/* @__PURE__ */ v.jsx("th", { style: Fe, children: t("cc.gameOver.table.team") }),
|
|
@@ -13830,7 +13850,7 @@ function S1({ t, teams: e, winningTeamId: l, reducedMotion: n }) {
|
|
|
13830
13850
|
}) })
|
|
13831
13851
|
] });
|
|
13832
13852
|
}
|
|
13833
|
-
function
|
|
13853
|
+
function T1({ t, players: e, mode: l, winnerIds: n, reducedMotion: a }) {
|
|
13834
13854
|
return /* @__PURE__ */ v.jsxs("table", { style: co, children: [
|
|
13835
13855
|
/* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsxs("tr", { style: fo, children: [
|
|
13836
13856
|
/* @__PURE__ */ v.jsx("th", { style: Fe, children: t("cc.score.table.emoji") }),
|
|
@@ -13857,12 +13877,12 @@ function E1({ t, players: e, mode: l, winnerIds: n, reducedMotion: a }) {
|
|
|
13857
13877
|
}) })
|
|
13858
13878
|
] });
|
|
13859
13879
|
}
|
|
13860
|
-
function
|
|
13880
|
+
function A1({ t, mode: e, won: l, winningTeam: n }) {
|
|
13861
13881
|
return e === "coop" ? /* @__PURE__ */ v.jsx("h2", { style: Ln, children: t(l ? "cc.gameOver.victory" : "cc.gameOver.defeat") }) : e === "teamvs" ? n ? /* @__PURE__ */ v.jsx("h2", { style: Ln, children: t("cc.gameOver.teamWins", ro(n.id).toUpperCase(), String(n.score)) }) : /* @__PURE__ */ v.jsx("h2", { style: Ln, children: t("cc.gameOver.draw") }) : /* @__PURE__ */ v.jsx("h2", { style: Ln, children: t("cc.gameOver.title") });
|
|
13862
13882
|
}
|
|
13863
|
-
function
|
|
13883
|
+
function x1(t) {
|
|
13864
13884
|
var T;
|
|
13865
|
-
const { t: e, players: l, mode: n, isHost: a, won: u, onPlayAgain: i, onNextMap: c } = t, f = N.useId(), o = AD(), d = [...l].sort((z, E) => E.score - z.score), p = ((T = d[0]) == null ? void 0 : T.score) ?? -1 / 0, s = n === "ffa" && d.length > 0 ? new Set(d.filter((z) => z.score === p).map((z) => z.id)) : /* @__PURE__ */ new Set(), D = n === "teamvs" ?
|
|
13885
|
+
const { t: e, players: l, mode: n, isHost: a, won: u, onPlayAgain: i, onNextMap: c } = t, f = N.useId(), o = AD(), d = [...l].sort((z, E) => E.score - z.score), p = ((T = d[0]) == null ? void 0 : T.score) ?? -1 / 0, s = n === "ffa" && d.length > 0 ? new Set(d.filter((z) => z.score === p).map((z) => z.id)) : /* @__PURE__ */ new Set(), D = n === "teamvs" ? E1(l) : null, g = D && D.length > 0 ? D.length > 1 && D[0].score === D[1].score ? null : D[0] : null, [b, _] = ln.useState(!1), [y, r] = ln.useState(!1), m = {
|
|
13866
13886
|
...Bu,
|
|
13867
13887
|
boxShadow: b ? "0 0 12px rgba(68,102,255,0.55)" : "none"
|
|
13868
13888
|
}, h = {
|
|
@@ -13871,10 +13891,10 @@ function T1(t) {
|
|
|
13871
13891
|
};
|
|
13872
13892
|
return /* @__PURE__ */ v.jsx("div", { style: gD, children: /* @__PURE__ */ v.jsxs("div", { style: SD, children: [
|
|
13873
13893
|
/* @__PURE__ */ v.jsx("style", { id: f, children: TD }),
|
|
13874
|
-
/* @__PURE__ */ v.jsx("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ v.jsx(
|
|
13875
|
-
D && /* @__PURE__ */ v.jsx(
|
|
13894
|
+
/* @__PURE__ */ v.jsx("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ v.jsx(A1, { t: e, mode: n, won: u, winningTeam: g ?? null }) }),
|
|
13895
|
+
D && /* @__PURE__ */ v.jsx(b1, { t: e, teams: D, winningTeamId: (g == null ? void 0 : g.id) ?? null, reducedMotion: o }),
|
|
13876
13896
|
/* @__PURE__ */ v.jsx(
|
|
13877
|
-
|
|
13897
|
+
T1,
|
|
13878
13898
|
{
|
|
13879
13899
|
t: e,
|
|
13880
13900
|
players: d,
|
|
@@ -13911,14 +13931,14 @@ function T1(t) {
|
|
|
13911
13931
|
] }) : /* @__PURE__ */ v.jsx("div", { style: bD, children: e("cc.score.waitingForHost") }) })
|
|
13912
13932
|
] }) });
|
|
13913
13933
|
}
|
|
13914
|
-
function
|
|
13915
|
-
const n =
|
|
13934
|
+
function _1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
13935
|
+
const n = Up(t, { en: Hp, es: Gp }), [a, u] = N.useReducer(kc, void 0, () => $h(e, l)), i = N.useRef(a);
|
|
13916
13936
|
i.current = a;
|
|
13917
13937
|
const c = N.useCallback(() => i.current, []), f = N.useRef(null);
|
|
13918
|
-
f.current || (f.current =
|
|
13919
|
-
const o = f.current, { gameLoopRef: d, localPlayerLoopRef: p } =
|
|
13938
|
+
f.current || (f.current = Rp(t));
|
|
13939
|
+
const o = f.current, { gameLoopRef: d, localPlayerLoopRef: p } = Nv(t, o, u, c), s = t.me.id === a.hostId, { status: D, migrationCountdown: g } = a, [b, _] = N.useState(void 0), y = Wv(a.hostId, t.me.id);
|
|
13920
13940
|
N.useEffect(() => {
|
|
13921
|
-
const M =
|
|
13941
|
+
const M = rv(t, o, u, c);
|
|
13922
13942
|
o.onMessage(M.onMessage), t.onPlayerJoin((L) => {
|
|
13923
13943
|
const H = c();
|
|
13924
13944
|
t.me.id === H.hostId && H.status === "playing" && (u({ type: "PLAYER_RECONNECT", playerId: L.id }), u({ type: "PLAYER_JOINED", player: { id: L.id, emoji: L.emoji } }), o.send({ type: "game_state", state: c() }, L.id));
|
|
@@ -13955,9 +13975,9 @@ function A1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
|
13955
13975
|
var M, O;
|
|
13956
13976
|
a.status === "playing" || a.status === "ending" ? (M = p.current) == null || M.start() : (O = p.current) == null || O.stop();
|
|
13957
13977
|
}, [a.status]), N.useEffect(() => {
|
|
13958
|
-
s && a.status === "countdown" && a.countdownStartedAt !== null &&
|
|
13978
|
+
s && a.status === "countdown" && a.countdownStartedAt !== null && yv(o, a.countdownStartedAt);
|
|
13959
13979
|
}, [s, a.status]);
|
|
13960
|
-
const { handleNextMap: r, handlePlayAgain: m } =
|
|
13980
|
+
const { handleNextMap: r, handlePlayAgain: m } = Gv(t, o, u, c), h = N.useCallback((M) => {
|
|
13961
13981
|
var O;
|
|
13962
13982
|
(O = p.current) == null || O.setDirection(M);
|
|
13963
13983
|
}, []), T = N.useCallback((M, O) => {
|
|
@@ -13966,10 +13986,10 @@ function A1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
|
13966
13986
|
if (A.status !== "playing") return;
|
|
13967
13987
|
const L = A.players.find((x) => x.id === t.me.id);
|
|
13968
13988
|
if (!L || !fi(L, "teleport")) return;
|
|
13969
|
-
const H =
|
|
13989
|
+
const H = Nh(A.tiles, M, O), ct = A.pelletSpawns.find(
|
|
13970
13990
|
(x) => {
|
|
13971
|
-
var
|
|
13972
|
-
return ((
|
|
13991
|
+
var w, j;
|
|
13992
|
+
return ((w = x.activePosition) == null ? void 0 : w.x) === H.x && ((j = x.activePosition) == null ? void 0 : j.y) === H.y;
|
|
13973
13993
|
}
|
|
13974
13994
|
), te = ((ue = A.tiles[H.y]) == null ? void 0 : ue[H.x]) === "dot";
|
|
13975
13995
|
if (u({ type: "TELEPORT", targetPosition: H, playerId: t.me.id }), ct) {
|
|
@@ -13982,12 +14002,12 @@ function A1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
|
13982
14002
|
u({ type: "APPLY_PELLET_EATEN", ...x }), o.send({ type: "pellet_eaten", ...x });
|
|
13983
14003
|
} else te && (u({ type: "APPLY_DOT_EATEN", dotX: H.x, dotY: H.y, playerId: t.me.id }), o.send({ type: "dot_eaten", dotX: H.x, dotY: H.y, playerId: t.me.id }));
|
|
13984
14004
|
}, [t, u, o]);
|
|
13985
|
-
if (
|
|
14005
|
+
if (Uv(h, D === "playing" && g === null, T, b), D === "level_summary")
|
|
13986
14006
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
13987
14007
|
/* @__PURE__ */ v.jsx("div", { style: Nn, "aria-hidden": "true" }),
|
|
13988
14008
|
/* @__PURE__ */ v.jsx($c, { t: n, hostPromotedNotice: y }),
|
|
13989
14009
|
/* @__PURE__ */ v.jsx(
|
|
13990
|
-
|
|
14010
|
+
S1,
|
|
13991
14011
|
{
|
|
13992
14012
|
t: n,
|
|
13993
14013
|
level: a.level,
|
|
@@ -14003,7 +14023,7 @@ function A1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
|
14003
14023
|
/* @__PURE__ */ v.jsx("div", { style: Nn, "aria-hidden": "true" }),
|
|
14004
14024
|
/* @__PURE__ */ v.jsx($c, { t: n, hostPromotedNotice: y }),
|
|
14005
14025
|
/* @__PURE__ */ v.jsx(
|
|
14006
|
-
|
|
14026
|
+
x1,
|
|
14007
14027
|
{
|
|
14008
14028
|
t: n,
|
|
14009
14029
|
players: a.players,
|
|
@@ -14017,7 +14037,7 @@ function A1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
|
14017
14037
|
)
|
|
14018
14038
|
] });
|
|
14019
14039
|
const E = /* @__PURE__ */ v.jsx(
|
|
14020
|
-
|
|
14040
|
+
h1,
|
|
14021
14041
|
{
|
|
14022
14042
|
t: n,
|
|
14023
14043
|
state: a,
|
|
@@ -14029,11 +14049,11 @@ function A1({ sdk: t, firstPlayerId: e, init: l }) {
|
|
|
14029
14049
|
return D === "countdown" ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
14030
14050
|
/* @__PURE__ */ v.jsx("div", { style: Nn, "aria-hidden": "true" }),
|
|
14031
14051
|
E,
|
|
14032
|
-
/* @__PURE__ */ v.jsx(
|
|
14052
|
+
/* @__PURE__ */ v.jsx(Yv, { t: n, startedAt: a.countdownStartedAt })
|
|
14033
14053
|
] }) : D === "ending" ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
14034
14054
|
/* @__PURE__ */ v.jsx("div", { style: Nn, "aria-hidden": "true" }),
|
|
14035
14055
|
E,
|
|
14036
|
-
/* @__PURE__ */ v.jsx(
|
|
14056
|
+
/* @__PURE__ */ v.jsx(Bv, { t: n, startedAt: a.endingStartedAt })
|
|
14037
14057
|
] }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
14038
14058
|
/* @__PURE__ */ v.jsx("div", { style: Nn, "aria-hidden": "true" }),
|
|
14039
14059
|
E
|
|
@@ -14047,36 +14067,40 @@ const er = {
|
|
|
14047
14067
|
White: 4,
|
|
14048
14068
|
Black: 5,
|
|
14049
14069
|
All: 6
|
|
14050
|
-
},
|
|
14051
|
-
function
|
|
14070
|
+
}, M1 = /* @__PURE__ */ new Set(["ffa", "coop", "teamvs"]);
|
|
14071
|
+
function O1(t) {
|
|
14052
14072
|
if (t == null || t === "")
|
|
14053
14073
|
throw new Error(
|
|
14054
14074
|
"come-come mount: sdk.gameState.selectedModeId is required (manifest contract violation)"
|
|
14055
14075
|
);
|
|
14056
|
-
if (!
|
|
14076
|
+
if (!M1.has(t))
|
|
14057
14077
|
throw new Error(`come-come mount: unknown selectedModeId "${t}"`);
|
|
14058
14078
|
return t;
|
|
14059
14079
|
}
|
|
14060
|
-
function
|
|
14080
|
+
function z1(t) {
|
|
14061
14081
|
if (t == null || t === "") return er.Yellow;
|
|
14062
14082
|
const e = er[t];
|
|
14063
14083
|
if (e === void 0) throw new Error(`come-come mount: unknown selectedMapId "${t}"`);
|
|
14064
14084
|
return e;
|
|
14065
14085
|
}
|
|
14066
|
-
function
|
|
14086
|
+
function R1(t, e) {
|
|
14067
14087
|
var p, s, D, g;
|
|
14068
14088
|
const l = document.getElementById(t);
|
|
14069
14089
|
if (!l) throw new Error("container not found");
|
|
14070
|
-
const n =
|
|
14090
|
+
const n = O1((p = e.gameState) == null ? void 0 : p.selectedModeId), a = z1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (D = e.gameState) == null ? void 0 : D.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = jv(e.players, a, u), f = Lv(a, n), o = Hv(n);
|
|
14091
|
+
e.log.log("mount", { mode: n, mazeIndex: a, players: c.length, ghosts: f.length, firstPlayerId: i });
|
|
14092
|
+
const d = xp.createRoot(l, wp("come-come"));
|
|
14071
14093
|
return d.render(
|
|
14072
|
-
ln.createElement(
|
|
14094
|
+
ln.createElement(_1, {
|
|
14073
14095
|
sdk: e,
|
|
14074
14096
|
firstPlayerId: i,
|
|
14075
14097
|
init: { mode: n, mazeIndex: a, players: c, ghosts: f, panicTriggerSecond: o, teamAssignments: u }
|
|
14076
14098
|
})
|
|
14077
|
-
), () =>
|
|
14099
|
+
), () => {
|
|
14100
|
+
e.log.log("unmount"), d.unmount();
|
|
14101
|
+
};
|
|
14078
14102
|
}
|
|
14079
14103
|
export {
|
|
14080
14104
|
er as MAP_INDEX,
|
|
14081
|
-
|
|
14105
|
+
R1 as mount
|
|
14082
14106
|
};
|