@markind-gg/come-come 1.0.29 → 1.0.44

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 CHANGED
@@ -471,7 +471,7 @@ var dr = { exports: {} }, Bu = {}, yr = { exports: {} }, Dr = {};
471
471
  return i.now() - c;
472
472
  };
473
473
  }
474
- var f = [], o = [], d = 1, p = null, s = 3, m = !1, g = !1, b = !1, O = !1, y = typeof setTimeout == "function" ? setTimeout : null, r = typeof clearTimeout == "function" ? clearTimeout : null, D = typeof setImmediate < "u" ? setImmediate : null;
474
+ var f = [], o = [], d = 1, D = null, s = 3, m = !1, g = !1, b = !1, O = !1, y = typeof setTimeout == "function" ? setTimeout : null, r = typeof clearTimeout == "function" ? clearTimeout : null, p = typeof setImmediate < "u" ? setImmediate : null;
475
475
  function h(x) {
476
476
  for (var w = l(o); w !== null; ) {
477
477
  if (w.callback === null) n(o);
@@ -505,22 +505,22 @@ var dr = { exports: {} }, Bu = {}, yr = { exports: {} }, Dr = {};
505
505
  var U = s;
506
506
  try {
507
507
  e: {
508
- for (h(x), p = l(f); p !== null && !(p.expirationTime > x && A()); ) {
509
- var at = p.callback;
508
+ for (h(x), D = l(f); D !== null && !(D.expirationTime > x && A()); ) {
509
+ var at = D.callback;
510
510
  if (typeof at == "function") {
511
- p.callback = null, s = p.priorityLevel;
511
+ D.callback = null, s = D.priorityLevel;
512
512
  var Dt = at(
513
- p.expirationTime <= x
513
+ D.expirationTime <= x
514
514
  );
515
515
  if (x = t.unstable_now(), typeof Dt == "function") {
516
- p.callback = Dt, h(x), w = !0;
516
+ D.callback = Dt, h(x), w = !0;
517
517
  break e;
518
518
  }
519
- p === l(f) && n(f), h(x);
519
+ D === l(f) && n(f), h(x);
520
520
  } else n(f);
521
- p = l(f);
521
+ D = l(f);
522
522
  }
523
- if (p !== null) w = !0;
523
+ if (D !== null) w = !0;
524
524
  else {
525
525
  var _a = l(o);
526
526
  _a !== null && ue(
@@ -531,7 +531,7 @@ var dr = { exports: {} }, Bu = {}, yr = { exports: {} }, Dr = {};
531
531
  }
532
532
  break t;
533
533
  } finally {
534
- p = null, s = U, m = !1;
534
+ D = null, s = U, m = !1;
535
535
  }
536
536
  w = void 0;
537
537
  }
@@ -541,9 +541,9 @@ var dr = { exports: {} }, Bu = {}, yr = { exports: {} }, Dr = {};
541
541
  }
542
542
  }
543
543
  var Y;
544
- if (typeof D == "function")
544
+ if (typeof p == "function")
545
545
  Y = function() {
546
- D(Q);
546
+ p(Q);
547
547
  };
548
548
  else if (typeof MessageChannel < "u") {
549
549
  var B = new MessageChannel(), vt = B.port2;
@@ -1043,27 +1043,27 @@ function di(t, e) {
1043
1043
  DetermineComponentFrameRoot: function() {
1044
1044
  try {
1045
1045
  if (e) {
1046
- var p = function() {
1046
+ var D = function() {
1047
1047
  throw Error();
1048
1048
  };
1049
- if (Object.defineProperty(p.prototype, "props", {
1049
+ if (Object.defineProperty(D.prototype, "props", {
1050
1050
  set: function() {
1051
1051
  throw Error();
1052
1052
  }
1053
1053
  }), typeof Reflect == "object" && Reflect.construct) {
1054
1054
  try {
1055
- Reflect.construct(p, []);
1055
+ Reflect.construct(D, []);
1056
1056
  } catch (m) {
1057
1057
  var s = m;
1058
1058
  }
1059
- Reflect.construct(t, [], p);
1059
+ Reflect.construct(t, [], D);
1060
1060
  } else {
1061
1061
  try {
1062
- p.call();
1062
+ D.call();
1063
1063
  } catch (m) {
1064
1064
  s = m;
1065
1065
  }
1066
- t.call(p.prototype);
1066
+ t.call(D.prototype);
1067
1067
  }
1068
1068
  } else {
1069
1069
  try {
@@ -1071,7 +1071,7 @@ function di(t, e) {
1071
1071
  } catch (m) {
1072
1072
  s = m;
1073
1073
  }
1074
- (p = t()) && typeof p.catch == "function" && p.catch(function() {
1074
+ (D = t()) && typeof D.catch == "function" && D.catch(function() {
1075
1075
  });
1076
1076
  }
1077
1077
  } catch (m) {
@@ -1297,7 +1297,7 @@ function p0(t, e, l, n, a, u) {
1297
1297
  t.pendingLanes = l, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= l, t.entangledLanes &= l, t.errorRecoveryDisabledLanes &= l, t.shellSuspendCounter = 0;
1298
1298
  var c = t.entanglements, f = t.expirationTimes, o = t.hiddenUpdates;
1299
1299
  for (l = i & ~l; 0 < l; ) {
1300
- var d = 31 - Yt(l), p = 1 << d;
1300
+ var d = 31 - Yt(l), D = 1 << d;
1301
1301
  c[d] = 0, f[d] = -1;
1302
1302
  var s = o[d];
1303
1303
  if (s !== null)
@@ -1305,7 +1305,7 @@ function p0(t, e, l, n, a, u) {
1305
1305
  var m = s[d];
1306
1306
  m !== null && (m.lane &= -536870913);
1307
1307
  }
1308
- l &= ~p;
1308
+ l &= ~D;
1309
1309
  }
1310
1310
  n !== 0 && zr(t, n, 0), u !== 0 && a === 0 && t.tag !== 0 && (t.suspendedLanes |= u & ~(i & ~e));
1311
1311
  }
@@ -2885,8 +2885,8 @@ function Ga(t, e) {
2885
2885
  function rd(t) {
2886
2886
  function e(y, r) {
2887
2887
  if (t) {
2888
- var D = y.deletions;
2889
- D === null ? (y.deletions = [r], y.flags |= 16) : D.push(r);
2888
+ var p = y.deletions;
2889
+ p === null ? (y.deletions = [r], y.flags |= 16) : p.push(r);
2890
2890
  }
2891
2891
  }
2892
2892
  function l(y, r) {
@@ -2903,151 +2903,151 @@ function rd(t) {
2903
2903
  function a(y, r) {
2904
2904
  return y = be(y, r), y.index = 0, y.sibling = null, y;
2905
2905
  }
2906
- function u(y, r, D) {
2907
- return y.index = D, t ? (D = y.alternate, D !== null ? (D = D.index, D < r ? (y.flags |= 67108866, r) : D) : (y.flags |= 67108866, r)) : (y.flags |= 1048576, r);
2906
+ function u(y, r, p) {
2907
+ return y.index = p, t ? (p = y.alternate, p !== null ? (p = p.index, p < r ? (y.flags |= 67108866, r) : p) : (y.flags |= 67108866, r)) : (y.flags |= 1048576, r);
2908
2908
  }
2909
2909
  function i(y) {
2910
2910
  return t && y.alternate === null && (y.flags |= 67108866), y;
2911
2911
  }
2912
- function c(y, r, D, h) {
2913
- return r === null || r.tag !== 6 ? (r = bi(D, y.mode, h), r.return = y, r) : (r = a(r, D), r.return = y, r);
2912
+ function c(y, r, p, h) {
2913
+ return r === null || r.tag !== 6 ? (r = bi(p, y.mode, h), r.return = y, r) : (r = a(r, p), r.return = y, r);
2914
2914
  }
2915
- function f(y, r, D, h) {
2916
- var T = D.type;
2915
+ function f(y, r, p, h) {
2916
+ var T = p.type;
2917
2917
  return T === Ll ? d(
2918
2918
  y,
2919
2919
  r,
2920
- D.props.children,
2920
+ p.props.children,
2921
2921
  h,
2922
- D.key
2923
- ) : r !== null && (r.elementType === T || typeof T == "object" && T !== null && T.$$typeof === we && sl(T) === r.type) ? (r = a(r, D.props), xn(r, D), r.return = y, r) : (r = ka(
2924
- D.type,
2925
- D.key,
2926
- D.props,
2922
+ p.key
2923
+ ) : r !== null && (r.elementType === T || typeof T == "object" && T !== null && T.$$typeof === we && sl(T) === r.type) ? (r = a(r, p.props), xn(r, p), r.return = y, r) : (r = ka(
2924
+ p.type,
2925
+ p.key,
2926
+ p.props,
2927
2927
  null,
2928
2928
  y.mode,
2929
2929
  h
2930
- ), xn(r, D), r.return = y, r);
2930
+ ), xn(r, p), r.return = y, r);
2931
2931
  }
2932
- function o(y, r, D, h) {
2933
- return r === null || r.tag !== 4 || r.stateNode.containerInfo !== D.containerInfo || r.stateNode.implementation !== D.implementation ? (r = Ti(D, y.mode, h), r.return = y, r) : (r = a(r, D.children || []), r.return = y, r);
2932
+ function o(y, r, p, h) {
2933
+ return r === null || r.tag !== 4 || r.stateNode.containerInfo !== p.containerInfo || r.stateNode.implementation !== p.implementation ? (r = Ti(p, y.mode, h), r.return = y, r) : (r = a(r, p.children || []), r.return = y, r);
2934
2934
  }
2935
- function d(y, r, D, h, T) {
2935
+ function d(y, r, p, h, T) {
2936
2936
  return r === null || r.tag !== 7 ? (r = yl(
2937
- D,
2937
+ p,
2938
2938
  y.mode,
2939
2939
  h,
2940
2940
  T
2941
- ), r.return = y, r) : (r = a(r, D), r.return = y, r);
2941
+ ), r.return = y, r) : (r = a(r, p), r.return = y, r);
2942
2942
  }
2943
- function p(y, r, D) {
2943
+ function D(y, r, p) {
2944
2944
  if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint")
2945
2945
  return r = bi(
2946
2946
  "" + r,
2947
2947
  y.mode,
2948
- D
2948
+ p
2949
2949
  ), r.return = y, r;
2950
2950
  if (typeof r == "object" && r !== null) {
2951
2951
  switch (r.$$typeof) {
2952
2952
  case Ra:
2953
- return D = ka(
2953
+ return p = ka(
2954
2954
  r.type,
2955
2955
  r.key,
2956
2956
  r.props,
2957
2957
  null,
2958
2958
  y.mode,
2959
- D
2960
- ), xn(D, r), D.return = y, D;
2959
+ p
2960
+ ), xn(p, r), p.return = y, p;
2961
2961
  case Rn:
2962
2962
  return r = Ti(
2963
2963
  r,
2964
2964
  y.mode,
2965
- D
2965
+ p
2966
2966
  ), r.return = y, r;
2967
2967
  case we:
2968
- return r = sl(r), p(y, r, D);
2968
+ return r = sl(r), D(y, r, p);
2969
2969
  }
2970
2970
  if (Nn(r) || bn(r))
2971
2971
  return r = yl(
2972
2972
  r,
2973
2973
  y.mode,
2974
- D,
2974
+ p,
2975
2975
  null
2976
2976
  ), r.return = y, r;
2977
2977
  if (typeof r.then == "function")
2978
- return p(y, Ha(r), D);
2978
+ return D(y, Ha(r), p);
2979
2979
  if (r.$$typeof === ge)
2980
- return p(
2980
+ return D(
2981
2981
  y,
2982
2982
  La(y, r),
2983
- D
2983
+ p
2984
2984
  );
2985
2985
  Ga(y, r);
2986
2986
  }
2987
2987
  return null;
2988
2988
  }
2989
- function s(y, r, D, h) {
2989
+ function s(y, r, p, h) {
2990
2990
  var T = r !== null ? r.key : null;
2991
- if (typeof D == "string" && D !== "" || typeof D == "number" || typeof D == "bigint")
2992
- return T !== null ? null : c(y, r, "" + D, h);
2993
- if (typeof D == "object" && D !== null) {
2994
- switch (D.$$typeof) {
2991
+ if (typeof p == "string" && p !== "" || typeof p == "number" || typeof p == "bigint")
2992
+ return T !== null ? null : c(y, r, "" + p, h);
2993
+ if (typeof p == "object" && p !== null) {
2994
+ switch (p.$$typeof) {
2995
2995
  case Ra:
2996
- return D.key === T ? f(y, r, D, h) : null;
2996
+ return p.key === T ? f(y, r, p, h) : null;
2997
2997
  case Rn:
2998
- return D.key === T ? o(y, r, D, h) : null;
2998
+ return p.key === T ? o(y, r, p, h) : null;
2999
2999
  case we:
3000
- return D = sl(D), s(y, r, D, h);
3000
+ return p = sl(p), s(y, r, p, h);
3001
3001
  }
3002
- if (Nn(D) || bn(D))
3003
- return T !== null ? null : d(y, r, D, h, null);
3004
- if (typeof D.then == "function")
3002
+ if (Nn(p) || bn(p))
3003
+ return T !== null ? null : d(y, r, p, h, null);
3004
+ if (typeof p.then == "function")
3005
3005
  return s(
3006
3006
  y,
3007
3007
  r,
3008
- Ha(D),
3008
+ Ha(p),
3009
3009
  h
3010
3010
  );
3011
- if (D.$$typeof === ge)
3011
+ if (p.$$typeof === ge)
3012
3012
  return s(
3013
3013
  y,
3014
3014
  r,
3015
- La(y, D),
3015
+ La(y, p),
3016
3016
  h
3017
3017
  );
3018
- Ga(y, D);
3018
+ Ga(y, p);
3019
3019
  }
3020
3020
  return null;
3021
3021
  }
3022
- function m(y, r, D, h, T) {
3022
+ function m(y, r, p, h, T) {
3023
3023
  if (typeof h == "string" && h !== "" || typeof h == "number" || typeof h == "bigint")
3024
- return y = y.get(D) || null, c(r, y, "" + h, T);
3024
+ return y = y.get(p) || null, c(r, y, "" + h, T);
3025
3025
  if (typeof h == "object" && h !== null) {
3026
3026
  switch (h.$$typeof) {
3027
3027
  case Ra:
3028
3028
  return y = y.get(
3029
- h.key === null ? D : h.key
3029
+ h.key === null ? p : h.key
3030
3030
  ) || null, f(r, y, h, T);
3031
3031
  case Rn:
3032
3032
  return y = y.get(
3033
- h.key === null ? D : h.key
3033
+ h.key === null ? p : h.key
3034
3034
  ) || null, o(r, y, h, T);
3035
3035
  case we:
3036
3036
  return h = sl(h), m(
3037
3037
  y,
3038
3038
  r,
3039
- D,
3039
+ p,
3040
3040
  h,
3041
3041
  T
3042
3042
  );
3043
3043
  }
3044
3044
  if (Nn(h) || bn(h))
3045
- return y = y.get(D) || null, d(r, y, h, T, null);
3045
+ return y = y.get(p) || null, d(r, y, h, T, null);
3046
3046
  if (typeof h.then == "function")
3047
3047
  return m(
3048
3048
  y,
3049
3049
  r,
3050
- D,
3050
+ p,
3051
3051
  Ha(h),
3052
3052
  T
3053
3053
  );
@@ -3055,7 +3055,7 @@ function rd(t) {
3055
3055
  return m(
3056
3056
  y,
3057
3057
  r,
3058
- D,
3058
+ p,
3059
3059
  La(r, h),
3060
3060
  T
3061
3061
  );
@@ -3063,13 +3063,13 @@ function rd(t) {
3063
3063
  }
3064
3064
  return null;
3065
3065
  }
3066
- function g(y, r, D, h) {
3067
- for (var T = null, R = null, E = r, _ = r = 0, M = null; E !== null && _ < D.length; _++) {
3066
+ function g(y, r, p, h) {
3067
+ for (var T = null, R = null, E = r, _ = r = 0, M = null; E !== null && _ < p.length; _++) {
3068
3068
  E.index > _ ? (M = E, E = null) : M = E.sibling;
3069
3069
  var A = s(
3070
3070
  y,
3071
3071
  E,
3072
- D[_],
3072
+ p[_],
3073
3073
  h
3074
3074
  );
3075
3075
  if (A === null) {
@@ -3078,23 +3078,23 @@ function rd(t) {
3078
3078
  }
3079
3079
  t && E && A.alternate === null && e(y, E), r = u(A, r, _), R === null ? T = A : R.sibling = A, R = A, E = M;
3080
3080
  }
3081
- if (_ === D.length)
3081
+ if (_ === p.length)
3082
3082
  return l(y, E), W && he(y, _), T;
3083
3083
  if (E === null) {
3084
- for (; _ < D.length; _++)
3085
- E = p(y, D[_], h), E !== null && (r = u(
3084
+ for (; _ < p.length; _++)
3085
+ E = D(y, p[_], h), E !== null && (r = u(
3086
3086
  E,
3087
3087
  r,
3088
3088
  _
3089
3089
  ), R === null ? T = E : R.sibling = E, R = E);
3090
3090
  return W && he(y, _), T;
3091
3091
  }
3092
- for (E = n(E); _ < D.length; _++)
3092
+ for (E = n(E); _ < p.length; _++)
3093
3093
  M = m(
3094
3094
  E,
3095
3095
  y,
3096
3096
  _,
3097
- D[_],
3097
+ p[_],
3098
3098
  h
3099
3099
  ), M !== null && (t && M.alternate !== null && E.delete(
3100
3100
  M.key === null ? _ : M.key
@@ -3107,9 +3107,9 @@ function rd(t) {
3107
3107
  return e(y, Q);
3108
3108
  }), W && he(y, _), T;
3109
3109
  }
3110
- function b(y, r, D, h) {
3111
- if (D == null) throw Error(S(151));
3112
- for (var T = null, R = null, E = r, _ = r = 0, M = null, A = D.next(); E !== null && !A.done; _++, A = D.next()) {
3110
+ function b(y, r, p, h) {
3111
+ if (p == null) throw Error(S(151));
3112
+ for (var T = null, R = null, E = r, _ = r = 0, M = null, A = p.next(); E !== null && !A.done; _++, A = p.next()) {
3113
3113
  E.index > _ ? (M = E, E = null) : M = E.sibling;
3114
3114
  var Q = s(y, E, A.value, h);
3115
3115
  if (Q === null) {
@@ -3121,31 +3121,31 @@ function rd(t) {
3121
3121
  if (A.done)
3122
3122
  return l(y, E), W && he(y, _), T;
3123
3123
  if (E === null) {
3124
- for (; !A.done; _++, A = D.next())
3125
- A = p(y, A.value, h), A !== null && (r = u(A, r, _), R === null ? T = A : R.sibling = A, R = A);
3124
+ for (; !A.done; _++, A = p.next())
3125
+ A = D(y, A.value, h), A !== null && (r = u(A, r, _), R === null ? T = A : R.sibling = A, R = A);
3126
3126
  return W && he(y, _), T;
3127
3127
  }
3128
- for (E = n(E); !A.done; _++, A = D.next())
3128
+ for (E = n(E); !A.done; _++, A = p.next())
3129
3129
  A = m(E, y, _, A.value, h), A !== null && (t && A.alternate !== null && E.delete(A.key === null ? _ : A.key), r = u(A, r, _), R === null ? T = A : R.sibling = A, R = A);
3130
3130
  return t && E.forEach(function(Y) {
3131
3131
  return e(y, Y);
3132
3132
  }), W && he(y, _), T;
3133
3133
  }
3134
- function O(y, r, D, h) {
3135
- if (typeof D == "object" && D !== null && D.type === Ll && D.key === null && (D = D.props.children), typeof D == "object" && D !== null) {
3136
- switch (D.$$typeof) {
3134
+ function O(y, r, p, h) {
3135
+ if (typeof p == "object" && p !== null && p.type === Ll && p.key === null && (p = p.props.children), typeof p == "object" && p !== null) {
3136
+ switch (p.$$typeof) {
3137
3137
  case Ra:
3138
3138
  t: {
3139
- for (var T = D.key; r !== null; ) {
3139
+ for (var T = p.key; r !== null; ) {
3140
3140
  if (r.key === T) {
3141
- if (T = D.type, T === Ll) {
3141
+ if (T = p.type, T === Ll) {
3142
3142
  if (r.tag === 7) {
3143
3143
  l(
3144
3144
  y,
3145
3145
  r.sibling
3146
3146
  ), h = a(
3147
3147
  r,
3148
- D.props.children
3148
+ p.props.children
3149
3149
  ), h.return = y, y = h;
3150
3150
  break t;
3151
3151
  }
@@ -3153,7 +3153,7 @@ function rd(t) {
3153
3153
  l(
3154
3154
  y,
3155
3155
  r.sibling
3156
- ), h = a(r, D.props), xn(h, D), h.return = y, y = h;
3156
+ ), h = a(r, p.props), xn(h, p), h.return = y, y = h;
3157
3157
  break t;
3158
3158
  }
3159
3159
  l(y, r);
@@ -3161,30 +3161,30 @@ function rd(t) {
3161
3161
  } else e(y, r);
3162
3162
  r = r.sibling;
3163
3163
  }
3164
- D.type === Ll ? (h = yl(
3165
- D.props.children,
3164
+ p.type === Ll ? (h = yl(
3165
+ p.props.children,
3166
3166
  y.mode,
3167
3167
  h,
3168
- D.key
3168
+ p.key
3169
3169
  ), h.return = y, y = h) : (h = ka(
3170
- D.type,
3171
- D.key,
3172
- D.props,
3170
+ p.type,
3171
+ p.key,
3172
+ p.props,
3173
3173
  null,
3174
3174
  y.mode,
3175
3175
  h
3176
- ), xn(h, D), h.return = y, y = h);
3176
+ ), xn(h, p), h.return = y, y = h);
3177
3177
  }
3178
3178
  return i(y);
3179
3179
  case Rn:
3180
3180
  t: {
3181
- for (T = D.key; r !== null; ) {
3181
+ for (T = p.key; r !== null; ) {
3182
3182
  if (r.key === T)
3183
- if (r.tag === 4 && r.stateNode.containerInfo === D.containerInfo && r.stateNode.implementation === D.implementation) {
3183
+ if (r.tag === 4 && r.stateNode.containerInfo === p.containerInfo && r.stateNode.implementation === p.implementation) {
3184
3184
  l(
3185
3185
  y,
3186
3186
  r.sibling
3187
- ), h = a(r, D.children || []), h.return = y, y = h;
3187
+ ), h = a(r, p.children || []), h.return = y, y = h;
3188
3188
  break t;
3189
3189
  } else {
3190
3190
  l(y, r);
@@ -3193,58 +3193,58 @@ function rd(t) {
3193
3193
  else e(y, r);
3194
3194
  r = r.sibling;
3195
3195
  }
3196
- h = Ti(D, y.mode, h), h.return = y, y = h;
3196
+ h = Ti(p, y.mode, h), h.return = y, y = h;
3197
3197
  }
3198
3198
  return i(y);
3199
3199
  case we:
3200
- return D = sl(D), O(
3200
+ return p = sl(p), O(
3201
3201
  y,
3202
3202
  r,
3203
- D,
3203
+ p,
3204
3204
  h
3205
3205
  );
3206
3206
  }
3207
- if (Nn(D))
3207
+ if (Nn(p))
3208
3208
  return g(
3209
3209
  y,
3210
3210
  r,
3211
- D,
3211
+ p,
3212
3212
  h
3213
3213
  );
3214
- if (bn(D)) {
3215
- if (T = bn(D), typeof T != "function") throw Error(S(150));
3216
- return D = T.call(D), b(
3214
+ if (bn(p)) {
3215
+ if (T = bn(p), typeof T != "function") throw Error(S(150));
3216
+ return p = T.call(p), b(
3217
3217
  y,
3218
3218
  r,
3219
- D,
3219
+ p,
3220
3220
  h
3221
3221
  );
3222
3222
  }
3223
- if (typeof D.then == "function")
3223
+ if (typeof p.then == "function")
3224
3224
  return O(
3225
3225
  y,
3226
3226
  r,
3227
- Ha(D),
3227
+ Ha(p),
3228
3228
  h
3229
3229
  );
3230
- if (D.$$typeof === ge)
3230
+ if (p.$$typeof === ge)
3231
3231
  return O(
3232
3232
  y,
3233
3233
  r,
3234
- La(y, D),
3234
+ La(y, p),
3235
3235
  h
3236
3236
  );
3237
- Ga(y, D);
3237
+ Ga(y, p);
3238
3238
  }
3239
- return typeof D == "string" && D !== "" || typeof D == "number" || typeof D == "bigint" ? (D = "" + D, r !== null && r.tag === 6 ? (l(y, r.sibling), h = a(r, D), h.return = y, y = h) : (l(y, r), h = bi(D, y.mode, h), h.return = y, y = h), i(y)) : l(y, r);
3239
+ return typeof p == "string" && p !== "" || typeof p == "number" || typeof p == "bigint" ? (p = "" + p, r !== null && r.tag === 6 ? (l(y, r.sibling), h = a(r, p), h.return = y, y = h) : (l(y, r), h = bi(p, y.mode, h), h.return = y, y = h), i(y)) : l(y, r);
3240
3240
  }
3241
- return function(y, r, D, h) {
3241
+ return function(y, r, p, h) {
3242
3242
  try {
3243
3243
  na = 0;
3244
3244
  var T = O(
3245
3245
  y,
3246
3246
  r,
3247
- D,
3247
+ p,
3248
3248
  h
3249
3249
  );
3250
3250
  return Pl = null, T;
@@ -3341,7 +3341,7 @@ function Xn(t, e, l, n) {
3341
3341
  d !== null && (d = d.updateQueue, c = d.lastBaseUpdate, c !== i && (c === null ? d.firstBaseUpdate = o : c.next = o, d.lastBaseUpdate = f));
3342
3342
  }
3343
3343
  if (u !== null) {
3344
- var p = a.baseState;
3344
+ var D = a.baseState;
3345
3345
  i = 0, d = o = f = null, c = u;
3346
3346
  do {
3347
3347
  var s = c.lane & -536870913, m = s !== c.lane;
@@ -3360,16 +3360,16 @@ function Xn(t, e, l, n) {
3360
3360
  switch (b.tag) {
3361
3361
  case 1:
3362
3362
  if (g = b.payload, typeof g == "function") {
3363
- p = g.call(O, p, s);
3363
+ D = g.call(O, D, s);
3364
3364
  break t;
3365
3365
  }
3366
- p = g;
3366
+ D = g;
3367
3367
  break t;
3368
3368
  case 3:
3369
3369
  g.flags = g.flags & -65537 | 128;
3370
3370
  case 0:
3371
- if (g = b.payload, s = typeof g == "function" ? g.call(O, p, s) : g, s == null) break t;
3372
- p = tt({}, p, s);
3371
+ if (g = b.payload, s = typeof g == "function" ? g.call(O, D, s) : g, s == null) break t;
3372
+ D = tt({}, D, s);
3373
3373
  break t;
3374
3374
  case 2:
3375
3375
  Ce = !0;
@@ -3383,14 +3383,14 @@ function Xn(t, e, l, n) {
3383
3383
  payload: c.payload,
3384
3384
  callback: c.callback,
3385
3385
  next: null
3386
- }, d === null ? (o = d = m, f = p) : d = d.next = m, i |= s;
3386
+ }, d === null ? (o = d = m, f = D) : d = d.next = m, i |= s;
3387
3387
  if (c = c.next, c === null) {
3388
3388
  if (c = a.shared.pending, c === null)
3389
3389
  break;
3390
3390
  m = c, c = m.next, m.next = null, a.lastBaseUpdate = m, a.shared.pending = null;
3391
3391
  }
3392
3392
  } while (!0);
3393
- d === null && (f = p), a.baseState = f, a.firstBaseUpdate = o, a.lastBaseUpdate = d, u === null && (a.shared.lanes = 0), nl |= i, t.lanes = i, t.memoizedState = p;
3393
+ d === null && (f = D), a.baseState = f, a.firstBaseUpdate = o, a.lastBaseUpdate = d, u === null && (a.shared.lanes = 0), nl |= i, t.lanes = i, t.memoizedState = D;
3394
3394
  }
3395
3395
  }
3396
3396
  function yd(t, e) {
@@ -3596,8 +3596,8 @@ function Cf(t, e, l) {
3596
3596
  e = a.next;
3597
3597
  var c = i = null, f = null, o = e, d = !1;
3598
3598
  do {
3599
- var p = o.lane & -536870913;
3600
- if (p !== o.lane ? (G & p) === p : (_e & p) === p) {
3599
+ var D = o.lane & -536870913;
3600
+ if (D !== o.lane ? (G & D) === D : (_e & D) === D) {
3601
3601
  var s = o.revertLane;
3602
3602
  if (s === 0)
3603
3603
  f !== null && (f = f.next = {
@@ -3608,12 +3608,12 @@ function Cf(t, e, l) {
3608
3608
  hasEagerState: o.hasEagerState,
3609
3609
  eagerState: o.eagerState,
3610
3610
  next: null
3611
- }), p === un && (d = !0);
3611
+ }), D === un && (d = !0);
3612
3612
  else if ((_e & s) === s) {
3613
3613
  o = o.next, s === un && (d = !0);
3614
3614
  continue;
3615
3615
  } else
3616
- p = {
3616
+ D = {
3617
3617
  lane: 0,
3618
3618
  revertLane: o.revertLane,
3619
3619
  gesture: null,
@@ -3621,18 +3621,18 @@ function Cf(t, e, l) {
3621
3621
  hasEagerState: o.hasEagerState,
3622
3622
  eagerState: o.eagerState,
3623
3623
  next: null
3624
- }, f === null ? (c = f = p, i = u) : f = f.next = p, j.lanes |= s, nl |= s;
3625
- p = o.action, Sl && l(u, p), u = o.hasEagerState ? o.eagerState : l(u, p);
3624
+ }, f === null ? (c = f = D, i = u) : f = f.next = D, j.lanes |= s, nl |= s;
3625
+ D = o.action, Sl && l(u, D), u = o.hasEagerState ? o.eagerState : l(u, D);
3626
3626
  } else
3627
3627
  s = {
3628
- lane: p,
3628
+ lane: D,
3629
3629
  revertLane: o.revertLane,
3630
3630
  gesture: o.gesture,
3631
3631
  action: o.action,
3632
3632
  hasEagerState: o.hasEagerState,
3633
3633
  eagerState: o.eagerState,
3634
3634
  next: null
3635
- }, f === null ? (c = f = s, i = u) : f = f.next = s, j.lanes |= p, nl |= p;
3635
+ }, f === null ? (c = f = s, i = u) : f = f.next = s, j.lanes |= D, nl |= D;
3636
3636
  o = o.next;
3637
3637
  } while (o !== null && o !== e);
3638
3638
  if (f === null ? i = u : f.next = c, !qt(u, t.memoizedState) && (rt = !0, d && (l = Fl, l !== null)))
@@ -4034,12 +4034,12 @@ function Gd(t, e, l, n, a) {
4034
4034
  n,
4035
4035
  Bt(t)
4036
4036
  );
4037
- } catch (p) {
4037
+ } catch (D) {
4038
4038
  Qn(
4039
4039
  t,
4040
4040
  e,
4041
4041
  { then: function() {
4042
- }, status: "rejected", reason: p },
4042
+ }, status: "rejected", reason: D },
4043
4043
  Bt()
4044
4044
  );
4045
4045
  } finally {
@@ -4851,18 +4851,18 @@ function os(t, e, l, n, a) {
4851
4851
  u.props = f;
4852
4852
  var o = u.context, d = l.contextType;
4853
4853
  i = Ql, typeof d == "object" && d !== null && (i = bt(d));
4854
- var p = l.getDerivedStateFromProps;
4855
- d = typeof p == "function" || typeof u.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, d || typeof u.UNSAFE_componentWillReceiveProps != "function" && typeof u.componentWillReceiveProps != "function" || (c || o !== i) && ls(
4854
+ var D = l.getDerivedStateFromProps;
4855
+ d = typeof D == "function" || typeof u.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, d || typeof u.UNSAFE_componentWillReceiveProps != "function" && typeof u.componentWillReceiveProps != "function" || (c || o !== i) && ls(
4856
4856
  e,
4857
4857
  u,
4858
4858
  n,
4859
4859
  i
4860
4860
  ), Ce = !1;
4861
4861
  var s = e.memoizedState;
4862
- u.state = s, Xn(e, n, u, a), qn(), o = e.memoizedState, c || s !== o || Ce ? (typeof p == "function" && (Mi(
4862
+ u.state = s, Xn(e, n, u, a), qn(), o = e.memoizedState, c || s !== o || Ce ? (typeof D == "function" && (Mi(
4863
4863
  e,
4864
4864
  l,
4865
- p,
4865
+ D,
4866
4866
  n
4867
4867
  ), o = e.memoizedState), (f = Ce || es(
4868
4868
  e,
@@ -4874,14 +4874,14 @@ function os(t, e, l, n, a) {
4874
4874
  i
4875
4875
  )) ? (d || typeof u.UNSAFE_componentWillMount != "function" && typeof u.componentWillMount != "function" || (typeof u.componentWillMount == "function" && u.componentWillMount(), typeof u.UNSAFE_componentWillMount == "function" && u.UNSAFE_componentWillMount()), typeof u.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof u.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = n, e.memoizedState = o), u.props = n, u.state = o, u.context = i, n = f) : (typeof u.componentDidMount == "function" && (e.flags |= 4194308), n = !1);
4876
4876
  } else {
4877
- u = e.stateNode, Ec(t, e), i = e.memoizedProps, d = El(l, i), u.props = d, p = e.pendingProps, s = u.context, o = l.contextType, f = Ql, typeof o == "object" && o !== null && (f = bt(o)), c = l.getDerivedStateFromProps, (o = typeof c == "function" || typeof u.getSnapshotBeforeUpdate == "function") || typeof u.UNSAFE_componentWillReceiveProps != "function" && typeof u.componentWillReceiveProps != "function" || (i !== p || s !== f) && ls(
4877
+ u = e.stateNode, Ec(t, e), i = e.memoizedProps, d = El(l, i), u.props = d, D = e.pendingProps, s = u.context, o = l.contextType, f = Ql, typeof o == "object" && o !== null && (f = bt(o)), c = l.getDerivedStateFromProps, (o = typeof c == "function" || typeof u.getSnapshotBeforeUpdate == "function") || typeof u.UNSAFE_componentWillReceiveProps != "function" && typeof u.componentWillReceiveProps != "function" || (i !== D || s !== f) && ls(
4878
4878
  e,
4879
4879
  u,
4880
4880
  n,
4881
4881
  f
4882
4882
  ), Ce = !1, s = e.memoizedState, u.state = s, Xn(e, n, u, a), qn();
4883
4883
  var m = e.memoizedState;
4884
- i !== p || s !== m || Ce || t !== null && t.dependencies !== null && hu(t.dependencies) ? (typeof c == "function" && (Mi(
4884
+ i !== D || s !== m || Ce || t !== null && t.dependencies !== null && hu(t.dependencies) ? (typeof c == "function" && (Mi(
4885
4885
  e,
4886
4886
  l,
4887
4887
  c,
@@ -6067,16 +6067,16 @@ function Rm(t, e) {
6067
6067
  l = null;
6068
6068
  break t;
6069
6069
  }
6070
- var i = 0, c = -1, f = -1, o = 0, d = 0, p = t, s = null;
6070
+ var i = 0, c = -1, f = -1, o = 0, d = 0, D = t, s = null;
6071
6071
  e: for (; ; ) {
6072
- for (var m; p !== l || a !== 0 && p.nodeType !== 3 || (c = i + a), p !== u || n !== 0 && p.nodeType !== 3 || (f = i + n), p.nodeType === 3 && (i += p.nodeValue.length), (m = p.firstChild) !== null; )
6073
- s = p, p = m;
6072
+ for (var m; D !== l || a !== 0 && D.nodeType !== 3 || (c = i + a), D !== u || n !== 0 && D.nodeType !== 3 || (f = i + n), D.nodeType === 3 && (i += D.nodeValue.length), (m = D.firstChild) !== null; )
6073
+ s = D, D = m;
6074
6074
  for (; ; ) {
6075
- if (p === t) break e;
6076
- if (s === l && ++o === a && (c = i), s === u && ++d === n && (f = i), (m = p.nextSibling) !== null) break;
6077
- p = s, s = p.parentNode;
6075
+ if (D === t) break e;
6076
+ if (s === l && ++o === a && (c = i), s === u && ++d === n && (f = i), (m = D.nextSibling) !== null) break;
6077
+ D = s, s = D.parentNode;
6078
6078
  }
6079
- p = m;
6079
+ D = m;
6080
6080
  }
6081
6081
  l = c === -1 || f === -1 ? null : { start: c, end: f };
6082
6082
  } else l = null;
@@ -6592,7 +6592,7 @@ function my(t, e) {
6592
6592
  i = u.style, typeof i.setProperty == "function" ? i.setProperty("display", "none", "important") : i.display = "none";
6593
6593
  else {
6594
6594
  c = f.stateNode;
6595
- var p = f.memoizedProps.style, s = p != null && p.hasOwnProperty("display") ? p.display : null;
6595
+ var D = f.memoizedProps.style, s = D != null && D.hasOwnProperty("display") ? D.display : null;
6596
6596
  c.style.display = s == null || typeof s == "boolean" ? "" : ("" + s).trim();
6597
6597
  }
6598
6598
  } catch (g) {
@@ -7352,9 +7352,9 @@ function xy(t, e, l) {
7352
7352
  } while (!0);
7353
7353
  re(t);
7354
7354
  }
7355
- function Ds(t, e, l, n, a, u, i, c, f, o, d, p, s, m) {
7356
- if (t.timeoutHandle = -1, p = e.subtreeFlags, p & 8192 || (p & 16785408) === 16785408) {
7357
- p = {
7355
+ function Ds(t, e, l, n, a, u, i, c, f, o, d, D, s, m) {
7356
+ if (t.timeoutHandle = -1, D = e.subtreeFlags, D & 8192 || (D & 16785408) === 16785408) {
7357
+ D = {
7358
7358
  stylesheets: null,
7359
7359
  count: 0,
7360
7360
  imgCount: 0,
@@ -7366,11 +7366,11 @@ function Ds(t, e, l, n, a, u, i, c, f, o, d, p, s, m) {
7366
7366
  }, vy(
7367
7367
  e,
7368
7368
  u,
7369
- p
7369
+ D
7370
7370
  );
7371
7371
  var g = (u & 62914560) === u ? ti - Gt() : (u & 4194048) === u ? by - Gt() : 0;
7372
7372
  if (g = vp(
7373
- p,
7373
+ D,
7374
7374
  g
7375
7375
  ), g !== null) {
7376
7376
  Ae = u, t.cancelPendingCommit = g(
@@ -7386,7 +7386,7 @@ function Ds(t, e, l, n, a, u, i, c, f, o, d, p, s, m) {
7386
7386
  c,
7387
7387
  f,
7388
7388
  d,
7389
- p,
7389
+ D,
7390
7390
  null,
7391
7391
  s,
7392
7392
  m
@@ -7769,7 +7769,7 @@ function wy() {
7769
7769
  c.value.length
7770
7770
  );
7771
7771
  else {
7772
- var p = c.ownerDocument || document, s = p && p.defaultView || window;
7772
+ var D = c.ownerDocument || document, s = D && D.defaultView || window;
7773
7773
  if (s.getSelection) {
7774
7774
  var m = s.getSelection(), g = c.textContent.length, b = Math.min(f.start, g), O = f.end === void 0 ? b : Math.min(f.end, g);
7775
7775
  !m.extend && b > O && (i = O, O = b, b = i);
@@ -7781,20 +7781,20 @@ function wy() {
7781
7781
  O
7782
7782
  );
7783
7783
  if (y && r && (m.rangeCount !== 1 || m.anchorNode !== y.node || m.anchorOffset !== y.offset || m.focusNode !== r.node || m.focusOffset !== r.offset)) {
7784
- var D = p.createRange();
7785
- D.setStart(y.node, y.offset), m.removeAllRanges(), b > O ? (m.addRange(D), m.extend(r.node, r.offset)) : (D.setEnd(r.node, r.offset), m.addRange(D));
7784
+ var p = D.createRange();
7785
+ p.setStart(y.node, y.offset), m.removeAllRanges(), b > O ? (m.addRange(p), m.extend(r.node, r.offset)) : (p.setEnd(r.node, r.offset), m.addRange(p));
7786
7786
  }
7787
7787
  }
7788
7788
  }
7789
7789
  }
7790
- for (p = [], m = c; m = m.parentNode; )
7791
- m.nodeType === 1 && p.push({
7790
+ for (D = [], m = c; m = m.parentNode; )
7791
+ m.nodeType === 1 && D.push({
7792
7792
  element: m,
7793
7793
  left: m.scrollLeft,
7794
7794
  top: m.scrollTop
7795
7795
  });
7796
- for (typeof c.focus == "function" && c.focus(), c = 0; c < p.length; c++) {
7797
- var h = p[c];
7796
+ for (typeof c.focus == "function" && c.focus(), c = 0; c < D.length; c++) {
7797
+ var h = D[c];
7798
7798
  h.element.scrollLeft = h.left, h.element.scrollTop = h.top;
7799
7799
  }
7800
7800
  }
@@ -8291,7 +8291,7 @@ function Xi(t, e, l, n, a) {
8291
8291
  n = n.return;
8292
8292
  }
8293
8293
  Br(function() {
8294
- var o = u, d = df(l), p = [];
8294
+ var o = u, d = df(l), D = [];
8295
8295
  t: {
8296
8296
  var s = ld.get(t);
8297
8297
  if (s !== void 0) {
@@ -8377,10 +8377,10 @@ function Xi(t, e, l, n, a) {
8377
8377
  }
8378
8378
  var b = (e & 4) !== 0, O = !b && (t === "scroll" || t === "scrollend"), y = b ? s !== null ? s + "Capture" : null : s;
8379
8379
  b = [];
8380
- for (var r = o, D; r !== null; ) {
8380
+ for (var r = o, p; r !== null; ) {
8381
8381
  var h = r;
8382
- if (D = h.stateNode, h = h.tag, h !== 5 && h !== 26 && h !== 27 || D === null || y === null || (h = Fn(r, y), h != null && b.push(
8383
- ca(r, h, D)
8382
+ if (p = h.stateNode, h = h.tag, h !== 5 && h !== 26 && h !== 27 || p === null || y === null || (h = Fn(r, y), h != null && b.push(
8383
+ ca(r, h, p)
8384
8384
  )), O) break;
8385
8385
  r = r.return;
8386
8386
  }
@@ -8390,7 +8390,7 @@ function Xi(t, e, l, n, a) {
8390
8390
  null,
8391
8391
  l,
8392
8392
  d
8393
- ), p.push({ event: s, listeners: b }));
8393
+ ), D.push({ event: s, listeners: b }));
8394
8394
  }
8395
8395
  }
8396
8396
  if (!(e & 7)) {
@@ -8398,30 +8398,30 @@ function Xi(t, e, l, n, a) {
8398
8398
  if (s = t === "mouseover" || t === "pointerover", m = t === "mouseout" || t === "pointerout", s && l !== rc && (g = l.relatedTarget || l.fromElement) && (Gl(g) || g[mn]))
8399
8399
  break t;
8400
8400
  if ((m || s) && (s = d.window === d ? d : (s = d.ownerDocument) ? s.defaultView || s.parentWindow : window, m ? (g = l.relatedTarget || l.toElement, m = o, g = g ? Gl(g) : null, g !== null && (O = ya(g), b = g.tag, g !== O || b !== 5 && b !== 27 && b !== 6) && (g = null)) : (m = null, g = o), m !== g)) {
8401
- if (b = Oo, h = "onMouseLeave", y = "onMouseEnter", r = "mouse", (t === "pointerout" || t === "pointerover") && (b = Ro, h = "onPointerLeave", y = "onPointerEnter", r = "pointer"), O = m == null ? s : wn(m), D = g == null ? s : wn(g), s = new b(
8401
+ if (b = Oo, h = "onMouseLeave", y = "onMouseEnter", r = "mouse", (t === "pointerout" || t === "pointerover") && (b = Ro, h = "onPointerLeave", y = "onPointerEnter", r = "pointer"), O = m == null ? s : wn(m), p = g == null ? s : wn(g), s = new b(
8402
8402
  h,
8403
8403
  r + "leave",
8404
8404
  m,
8405
8405
  l,
8406
8406
  d
8407
- ), s.target = O, s.relatedTarget = D, h = null, Gl(d) === o && (b = new b(
8407
+ ), s.target = O, s.relatedTarget = p, h = null, Gl(d) === o && (b = new b(
8408
8408
  y,
8409
8409
  r + "enter",
8410
8410
  g,
8411
8411
  l,
8412
8412
  d
8413
- ), b.target = D, b.relatedTarget = O, h = b), O = h, m && g)
8413
+ ), b.target = p, b.relatedTarget = O, h = b), O = h, m && g)
8414
8414
  e: {
8415
- for (b = Jm, y = m, r = g, D = 0, h = y; h; h = b(h))
8416
- D++;
8415
+ for (b = Jm, y = m, r = g, p = 0, h = y; h; h = b(h))
8416
+ p++;
8417
8417
  h = 0;
8418
8418
  for (var T = r; T; T = b(T))
8419
8419
  h++;
8420
- for (; 0 < D - h; )
8421
- y = b(y), D--;
8422
- for (; 0 < h - D; )
8420
+ for (; 0 < p - h; )
8421
+ y = b(y), p--;
8422
+ for (; 0 < h - p; )
8423
8423
  r = b(r), h--;
8424
- for (; D--; ) {
8424
+ for (; p--; ) {
8425
8425
  if (y === r || r !== null && y === r.alternate) {
8426
8426
  b = y;
8427
8427
  break e;
@@ -8432,13 +8432,13 @@ function Xi(t, e, l, n, a) {
8432
8432
  }
8433
8433
  else b = null;
8434
8434
  m !== null && Es(
8435
- p,
8435
+ D,
8436
8436
  s,
8437
8437
  m,
8438
8438
  b,
8439
8439
  !1
8440
8440
  ), g !== null && O !== null && Es(
8441
- p,
8441
+ D,
8442
8442
  O,
8443
8443
  g,
8444
8444
  b,
@@ -8460,7 +8460,7 @@ function Xi(t, e, l, n, a) {
8460
8460
  m = s.nodeName, !m || m.toLowerCase() !== "input" || s.type !== "checkbox" && s.type !== "radio" ? o && rf(o.elementType) && (R = jo) : R = am;
8461
8461
  if (R && (R = R(t, o))) {
8462
8462
  Vr(
8463
- p,
8463
+ D,
8464
8464
  R,
8465
8465
  l,
8466
8466
  d
@@ -8482,13 +8482,13 @@ function Xi(t, e, l, n, a) {
8482
8482
  case "contextmenu":
8483
8483
  case "mouseup":
8484
8484
  case "dragend":
8485
- Dc = !1, Wo(p, l, d);
8485
+ Dc = !1, Wo(D, l, d);
8486
8486
  break;
8487
8487
  case "selectionchange":
8488
8488
  if (cm) break;
8489
8489
  case "keydown":
8490
8490
  case "keyup":
8491
- Wo(p, l, d);
8491
+ Wo(D, l, d);
8492
8492
  }
8493
8493
  var _;
8494
8494
  if (mf)
@@ -8514,24 +8514,24 @@ function Xi(t, e, l, n, a) {
8514
8514
  null,
8515
8515
  l,
8516
8516
  d
8517
- ), p.push({ event: M, listeners: E }), _ ? M.data = _ : (_ = Zr(l), _ !== null && (M.data = _)))), (_ = k0 ? F0(t, l) : P0(t, l)) && (M = Nu(o, "onBeforeInput"), 0 < M.length && (E = new zo(
8517
+ ), D.push({ event: M, listeners: E }), _ ? M.data = _ : (_ = Zr(l), _ !== null && (M.data = _)))), (_ = k0 ? F0(t, l) : P0(t, l)) && (M = Nu(o, "onBeforeInput"), 0 < M.length && (E = new zo(
8518
8518
  "onBeforeInput",
8519
8519
  "beforeinput",
8520
8520
  null,
8521
8521
  l,
8522
8522
  d
8523
- ), p.push({
8523
+ ), D.push({
8524
8524
  event: E,
8525
8525
  listeners: M
8526
8526
  }), E.data = _)), Qm(
8527
- p,
8527
+ D,
8528
8528
  t,
8529
8529
  o,
8530
8530
  l,
8531
8531
  d
8532
8532
  );
8533
8533
  }
8534
- By(p, e);
8534
+ By(D, e);
8535
8535
  });
8536
8536
  }
8537
8537
  function ca(t, e, l) {
@@ -9085,22 +9085,22 @@ function km(t, e, l, n) {
9085
9085
  case "input":
9086
9086
  var a = null, u = null, i = null, c = null, f = null, o = null, d = null;
9087
9087
  for (m in l) {
9088
- var p = l[m];
9089
- if (l.hasOwnProperty(m) && p != null)
9088
+ var D = l[m];
9089
+ if (l.hasOwnProperty(m) && D != null)
9090
9090
  switch (m) {
9091
9091
  case "checked":
9092
9092
  break;
9093
9093
  case "value":
9094
9094
  break;
9095
9095
  case "defaultValue":
9096
- f = p;
9096
+ f = D;
9097
9097
  default:
9098
- n.hasOwnProperty(m) || K(t, e, m, null, n, p);
9098
+ n.hasOwnProperty(m) || K(t, e, m, null, n, D);
9099
9099
  }
9100
9100
  }
9101
9101
  for (var s in n) {
9102
9102
  var m = n[s];
9103
- if (p = l[s], n.hasOwnProperty(s) && (m != null || p != null))
9103
+ if (D = l[s], n.hasOwnProperty(s) && (m != null || D != null))
9104
9104
  switch (s) {
9105
9105
  case "type":
9106
9106
  u = m;
@@ -9126,13 +9126,13 @@ function km(t, e, l, n) {
9126
9126
  throw Error(S(137, e));
9127
9127
  break;
9128
9128
  default:
9129
- m !== p && K(
9129
+ m !== D && K(
9130
9130
  t,
9131
9131
  e,
9132
9132
  s,
9133
9133
  m,
9134
9134
  n,
9135
- p
9135
+ D
9136
9136
  );
9137
9137
  }
9138
9138
  }
@@ -9315,8 +9315,8 @@ function km(t, e, l, n) {
9315
9315
  }
9316
9316
  for (var y in l)
9317
9317
  s = l[y], l.hasOwnProperty(y) && s != null && !n.hasOwnProperty(y) && K(t, e, y, null, n, s);
9318
- for (p in n)
9319
- s = n[p], m = l[p], !n.hasOwnProperty(p) || s === m || s == null && m == null || K(t, e, p, s, n, m);
9318
+ for (D in n)
9319
+ s = n[D], m = l[D], !n.hasOwnProperty(D) || s === m || s == null && m == null || K(t, e, D, s, n, m);
9320
9320
  }
9321
9321
  function Ts(t) {
9322
9322
  switch (t) {
@@ -9340,8 +9340,8 @@ function Fm() {
9340
9340
  for (i = 0, c = a.responseEnd, n += 1; n < l.length; n++) {
9341
9341
  var f = l[n], o = f.startTime;
9342
9342
  if (o > c) break;
9343
- var d = f.transferSize, p = f.initiatorType;
9344
- d && Ts(p) && (f = f.responseEnd, i += d * (f < c ? 1 : (c - o) / (f - o)));
9343
+ var d = f.transferSize, D = f.initiatorType;
9344
+ d && Ts(D) && (f = f.responseEnd, i += d * (f < c ? 1 : (c - o) / (f - o)));
9345
9345
  }
9346
9346
  if (--n, e += 8 * (u + i) / (a.duration / 1e3), t++, 10 < t) break;
9347
9347
  }
@@ -10025,7 +10025,7 @@ var fa = {
10025
10025
  function Sp(t, e, l, n, a, u, i, c, f) {
10026
10026
  this.tag = 1, this.containerInfo = t, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Di(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Di(0), this.hiddenUpdates = Di(null), this.identifierPrefix = n, this.onUncaughtError = a, this.onCaughtError = u, this.onRecoverableError = i, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = f, this.incompleteTransitions = /* @__PURE__ */ new Map();
10027
10027
  }
10028
- function ky(t, e, l, n, a, u, i, c, f, o, d, p) {
10028
+ function ky(t, e, l, n, a, u, i, c, f, o, d, D) {
10029
10029
  return t = new Sp(
10030
10030
  t,
10031
10031
  e,
@@ -10034,7 +10034,7 @@ function ky(t, e, l, n, a, u, i, c, f, o, d, p) {
10034
10034
  f,
10035
10035
  o,
10036
10036
  d,
10037
- p,
10037
+ D,
10038
10038
  c
10039
10039
  ), e = 1, u === !0 && (e |= 24), u = Lt(3, null, null, e), t.current = u, u.stateNode = t, e = bf(), e.refCount++, t.pooledCache = e, e.refCount++, u.memoizedState = {
10040
10040
  element: n,
@@ -10697,32 +10697,49 @@ function wp(t, e) {
10697
10697
  }
10698
10698
  function Cp(t, e) {
10699
10699
  const l = /* @__PURE__ */ new Set(), n = wp(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;
10700
+ let a, u = !1, i = null;
10701
+ function c(D) {
10702
+ return typeof D == "string" ? JSON.parse(D) : D instanceof ArrayBuffer || ArrayBuffer.isView(D) ? JSON.parse(new TextDecoder().decode(D)) : D;
10703
+ }
10704
+ function f(D, s) {
10705
+ for (const m of [...l]) m(D, s);
10706
+ }
10707
+ function o() {
10708
+ try {
10709
+ for (; i != null && i.length; ) {
10710
+ const [D, s] = i.shift();
10711
+ f(D, s);
10712
+ }
10713
+ } finally {
10714
+ i != null && i.length ? queueMicrotask(o) : i = null;
10715
+ }
10716
+ }
10717
+ function d() {
10718
+ if (!u) {
10719
+ u = !0, i = [];
10709
10720
  try {
10710
- p = i(o);
10711
- } catch {
10712
- return;
10721
+ const D = t.gameComm.onMessage((s, m) => {
10722
+ let g;
10723
+ try {
10724
+ g = c(s);
10725
+ } catch {
10726
+ return;
10727
+ }
10728
+ n.shouldDrop(g, m) || (i ? i.push([g, m]) : f(g, m));
10729
+ });
10730
+ a = typeof D == "function" ? D : void 0;
10731
+ } finally {
10732
+ i != null && i.length ? queueMicrotask(o) : i = null;
10713
10733
  }
10714
- if (!n.shouldDrop(p, d))
10715
- for (const s of [...l]) s(p, d);
10716
- });
10717
- a = typeof f == "function" ? f : void 0;
10734
+ }
10718
10735
  }
10719
10736
  return {
10720
- send(f, o) {
10721
- t.gameComm.send(JSON.stringify(f), o);
10737
+ send(D, s) {
10738
+ t.gameComm.send(JSON.stringify(D), s);
10722
10739
  },
10723
- onMessage(f) {
10724
- return c(), l.add(f), () => {
10725
- l.delete(f);
10740
+ onMessage(D) {
10741
+ return l.add(D), d(), () => {
10742
+ l.delete(D);
10726
10743
  };
10727
10744
  },
10728
10745
  dispose() {
@@ -10901,11 +10918,11 @@ function Ji(t, e, l) {
10901
10918
  }
10902
10919
  function Xp(t, e = 1) {
10903
10920
  const l = t[0].length, n = t.length, a = fD(l, n), u = Ki("W", $n).split(""), i = Math.floor($n / 2), c = Math.floor(e / 2);
10904
- for (let p = -c; p <= c; p++) u[i + p] = "E";
10921
+ for (let D = -c; D <= c; D++) u[i + D] = "E";
10905
10922
  const f = "W" + Ki("S", eo) + "W", o = Ki("W", $n), d = [...t];
10906
10923
  d[a.topRow] = Ji(d[a.topRow], a.startCol, u.join(""));
10907
- for (let p = 0; p < lo; p++)
10908
- d[a.interiorTopRow + p] = Ji(d[a.interiorTopRow + p], a.startCol, f);
10924
+ for (let D = 0; D < lo; D++)
10925
+ d[a.interiorTopRow + D] = Ji(d[a.interiorTopRow + D], a.startCol, f);
10909
10926
  return d[a.bottomRow] = Ji(d[a.bottomRow], a.startCol, o), d;
10910
10927
  }
10911
10928
  function Qp(t) {
@@ -11494,10 +11511,10 @@ function wh(t, e, l) {
11494
11511
  const f = [];
11495
11512
  for (let o = 0; o < a; o++) {
11496
11513
  const d = t[o];
11497
- for (let p = 0; p < d.length; p++)
11498
- if (Math.max(Math.abs(p - e), Math.abs(o - l)) === c && n(o, p)) {
11499
- const m = Math.sqrt((p - e) ** 2 + (o - l) ** 2);
11500
- f.push({ x: p, y: o, euclidean: m });
11514
+ for (let D = 0; D < d.length; D++)
11515
+ if (Math.max(Math.abs(D - e), Math.abs(o - l)) === c && n(o, D)) {
11516
+ const m = Math.sqrt((D - e) ** 2 + (o - l) ** 2);
11517
+ f.push({ x: D, y: o, euclidean: m });
11501
11518
  }
11502
11519
  }
11503
11520
  if (f.length > 0)
@@ -11512,9 +11529,9 @@ function Ch(t, e, l) {
11512
11529
  u = u.map((y) => bh(y, n, a, e)), { players: a, ghosts: u } = Lh(a, u);
11513
11530
  let d = t.pelletSpawns;
11514
11531
  ({ tiles: n, pelletSpawns: d } = Uh({ ...t, tiles: n, pelletSpawns: d }, e)), a = jh(a, o), c === "coop" && e % xh === 0 && (i = Math.max(0, i - 1)), f !== null && i === f && (u = u.map((y) => ({ ...y, panicMode: !0, speed: 1.5 })));
11515
- const p = Nh(n);
11532
+ const D = Nh(n);
11516
11533
  let s = t.dotsEmptyAtTick;
11517
- p === 0 ? s === null && (s = t.gameTick) : s = null;
11534
+ D === 0 ? s === null && (s = t.gameTick) : s = null;
11518
11535
  const m = s !== null && t.gameTick > s;
11519
11536
  let g = t.status, b = t.endingNext, O = t.endingStartedAt;
11520
11537
  return c === "coop" ? i === 0 ? (g = "ending", b = "game_over", O = Date.now()) : m && (g = "ending", b = "level_summary", O = Date.now()) : (c === "ffa" || c === "teamvs") && m && (g = "ending", b = "game_over", O = Date.now()), {
@@ -11554,8 +11571,8 @@ function Uh(t, e) {
11554
11571
  if (s.length === 0) return u;
11555
11572
  f = s[Math.floor(Math.random() * s.length)];
11556
11573
  }
11557
- const d = l[f.y][f.x], p = [...l[f.y]];
11558
- return p[f.x] = "pellet", l = l.map((s, m) => m === f.y ? p : s), {
11574
+ const d = l[f.y][f.x], D = [...l[f.y]];
11575
+ return D[f.x] = "pellet", l = l.map((s, m) => m === f.y ? D : s), {
11559
11576
  ...u,
11560
11577
  activePosition: f,
11561
11578
  positionIndex: o,
@@ -11617,9 +11634,9 @@ function Zs(t, e, l) {
11617
11634
  if (t.respawnCountdown !== null && t.respawnCountdown > Pt)
11618
11635
  return { player: t, tiles: l, dotsEaten: [], pelletsCollectedAt: [] };
11619
11636
  let n = e ?? t.queuedDirection, a = t.direction, u = t.position, { score: i, totalScore: c, dotsEaten: f } = t, o = [], d = [];
11620
- const p = ci(t, "wallBreak");
11637
+ const D = ci(t, "wallBreak");
11621
11638
  let s = !1;
11622
- if (n !== "NONE" && Vs(l, u, n, p) && (a = n, s = !0), a !== "NONE" && Vs(l, u, a, p))
11639
+ if (n !== "NONE" && Vs(l, u, n, D) && (a = n, s = !0), a !== "NONE" && Vs(l, u, a, D))
11623
11640
  u = ii(l, u, a);
11624
11641
  else if (a !== "NONE")
11625
11642
  return a = "NONE", s && (n = "NONE"), {
@@ -11743,22 +11760,22 @@ const Yh = {
11743
11760
  function Kh(t, e) {
11744
11761
  const l = t.pelletSpawns.findIndex(
11745
11762
  (y) => {
11746
- var r, D;
11747
- return y.pelletId === e.pelletId && ((r = y.activePosition) == null ? void 0 : r.x) === e.position.x && ((D = y.activePosition) == null ? void 0 : D.y) === e.position.y;
11763
+ var r, p;
11764
+ return y.pelletId === e.pelletId && ((r = y.activePosition) == null ? void 0 : r.x) === e.position.x && ((p = y.activePosition) == null ? void 0 : p.y) === e.position.y;
11748
11765
  }
11749
11766
  );
11750
11767
  if (l === -1) return t;
11751
11768
  const n = t.pelletSpawns[l], u = Oh(t.tiles, e.position, n.originalTileType).tiles, c = ne(t.mazeIndex).pelletSpawns.find((y) => y.pelletId === e.pelletId);
11752
11769
  let f = null;
11753
11770
  c && c.respawnDelay !== null && (f = t.gameTick + mD(c.respawnDelay, Math.random()));
11754
- const o = { ...n, activePosition: null, spawnAtTick: f }, d = t.pelletSpawns.map((y, r) => r === l ? o : y), p = ao.find((y) => y.id === e.pelletId);
11755
- if (!p) return t;
11771
+ const o = { ...n, activePosition: null, spawnAtTick: f }, d = t.pelletSpawns.map((y, r) => r === l ? o : y), D = ao.find((y) => y.id === e.pelletId);
11772
+ if (!D) return t;
11756
11773
  const s = {
11757
11774
  pelletId: e.pelletId,
11758
11775
  instanceId: e.instanceId,
11759
- skills: p.skills,
11760
- timerTicks: bl(p.durationSeconds)
11761
- }, m = p.skills.some((y) => y.type === "invincibility"), g = p.skills.some((y) => y.type === "speed"), b = t.players.map((y) => y.id === e.eaterPlayerId ? {
11776
+ skills: D.skills,
11777
+ timerTicks: bl(D.durationSeconds)
11778
+ }, m = D.skills.some((y) => y.type === "invincibility"), g = D.skills.some((y) => y.type === "speed"), b = t.players.map((y) => y.id === e.eaterPlayerId ? {
11762
11779
  ...y,
11763
11780
  activeEffects: [...y.activeEffects, s],
11764
11781
  slowedTicks: g ? 0 : y.slowedTicks
@@ -11927,11 +11944,11 @@ function ra(t) {
11927
11944
  }
11928
11945
  function kh(t) {
11929
11946
  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) => {
11930
- const p = i[d] ?? o.spawnPosition;
11931
- return { ...o, position: p, spawnPosition: p };
11947
+ const D = i[d] ?? o.spawnPosition;
11948
+ return { ...o, position: D, spawnPosition: D };
11932
11949
  }), f = t.ghosts.map((o, d) => {
11933
- const p = a.ghostSpawns[d % a.ghostSpawns.length];
11934
- return { ...o, position: p, spawnPosition: p };
11950
+ const D = a.ghostSpawns[d % a.ghostSpawns.length];
11951
+ return { ...o, position: D, spawnPosition: D };
11935
11952
  });
11936
11953
  return {
11937
11954
  ...t,
@@ -12097,11 +12114,11 @@ function Ic(t, e) {
12097
12114
  return { ...t, status: "game_over" };
12098
12115
  case "RESET": {
12099
12116
  const a = ne(t.mazeIndex), u = Math.max(2, Math.min(t.players.length, 4)), i = a.spawns[u] ?? a.spawns[2], c = t.players.map((o, d) => {
12100
- const p = i[d] ?? o.spawnPosition;
12117
+ const D = i[d] ?? o.spawnPosition;
12101
12118
  return {
12102
12119
  ...o,
12103
- position: p,
12104
- spawnPosition: p,
12120
+ position: D,
12121
+ spawnPosition: D,
12105
12122
  direction: "NONE",
12106
12123
  queuedDirection: "NONE",
12107
12124
  score: 0,
@@ -12115,8 +12132,8 @@ function Ic(t, e) {
12115
12132
  slowedTicks: 0
12116
12133
  };
12117
12134
  }), f = t.ghosts.map((o, d) => {
12118
- const p = a.ghostSpawns[d % a.ghostSpawns.length] ?? o.spawnPosition;
12119
- return { ...o, position: p, spawnPosition: p, vulnerable: !1, panicMode: !1 };
12135
+ const D = a.ghostSpawns[d % a.ghostSpawns.length] ?? o.spawnPosition;
12136
+ return { ...o, position: D, spawnPosition: D, vulnerable: !1, panicMode: !1 };
12120
12137
  });
12121
12138
  return {
12122
12139
  ...t,
@@ -12306,8 +12323,8 @@ const ut = new rv();
12306
12323
  function vD(t, e, l, n, a, u, i, c) {
12307
12324
  const f = l.players.find((m) => m.id === t), o = l.players.find((m) => m.id === e);
12308
12325
  if (!f || !o || t === e || l.mode === "teamvs" && f.teamId !== void 0 && f.teamId === o.teamId || ci(o, "invincibility") || o.respawnCountdown !== null) return;
12309
- const d = i ?? f.position, p = c ?? o.position;
12310
- Math.abs(d.x - p.x) + Math.abs(d.y - p.y) > 2 || dv(e, t, n, a, u);
12326
+ const d = i ?? f.position, D = c ?? o.position;
12327
+ Math.abs(d.x - D.x) + Math.abs(d.y - D.y) > 2 || dv(e, t, n, a, u);
12311
12328
  }
12312
12329
  function dv(t, e, l, n, a) {
12313
12330
  n.send({
@@ -12447,13 +12464,13 @@ function yv(t, e, l, n) {
12447
12464
  pingMap: new Map(Object.entries(t.latency))
12448
12465
  });
12449
12466
  }
12450
- function p(s) {
12467
+ function D(s) {
12451
12468
  e.send({
12452
12469
  type: "ghost_pos",
12453
12470
  ghosts: s.map((m) => ({ id: m.id, x: m.position.x, y: m.position.y, direction: m.direction, vulnerable: m.vulnerable }))
12454
12471
  });
12455
12472
  }
12456
- return { onMessage: c, onPlayerJoin: f, onPlayerLeave: o, msSinceHostHeartbeat: i, startMigration: d, sendGhostPos: p };
12473
+ return { onMessage: c, onPlayerJoin: f, onPlayerLeave: o, msSinceHostHeartbeat: i, startMigration: d, sendGhostPos: D };
12457
12474
  }
12458
12475
  function Ii(t, e) {
12459
12476
  return t.x === e.x && t.y === e.y;
@@ -12527,8 +12544,8 @@ function gv(t, e, l, n) {
12527
12544
  for (const [f, o] of a) {
12528
12545
  const d = t.players.find((m) => m.id === f);
12529
12546
  if (!d) continue;
12530
- const p = d.position, s = e.get(f) ?? p;
12531
- if (uo(s, p, c, i)) {
12547
+ const D = d.position, s = e.get(f) ?? D;
12548
+ if (uo(s, D, c, i)) {
12532
12549
  l.send({
12533
12550
  type: "player_slowed",
12534
12551
  targetPlayerId: u.id,
@@ -12625,47 +12642,47 @@ function Mv(t, e, l, n) {
12625
12642
  const Ov = bl(3);
12626
12643
  function zv(t, e, l, n, a, u) {
12627
12644
  let i = null, c = null, f = 0, o = 0, d = !1;
12628
- const p = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
12645
+ const D = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
12629
12646
  function y() {
12630
12647
  f++;
12631
- const D = e();
12632
- if (!d && D.status === "ending" && D.endingStartedAt !== null && D.endingNext !== null && (pv(u, D.endingStartedAt, D.endingNext), d = !0), D.status === "countdown") {
12633
- D.countdownStartedAt !== null && Date.now() - D.countdownStartedAt >= 3500 && (t({ type: "START_PLAYING" }), u.send({ type: "start_playing" }));
12648
+ const p = e();
12649
+ if (!d && p.status === "ending" && p.endingStartedAt !== null && p.endingNext !== null && (pv(u, p.endingStartedAt, p.endingNext), d = !0), p.status === "countdown") {
12650
+ p.countdownStartedAt !== null && Date.now() - p.countdownStartedAt >= 3500 && (t({ type: "START_PLAYING" }), u.send({ type: "start_playing" }));
12634
12651
  return;
12635
12652
  }
12636
- if (D.status === "ending") {
12637
- D.endingStartedAt !== null && Date.now() - D.endingStartedAt >= 2e3 && (t({ type: "FINISH_ENDING" }), u.send({ type: "finish_ending" }));
12653
+ if (p.status === "ending") {
12654
+ p.endingStartedAt !== null && Date.now() - p.endingStartedAt >= 2e3 && (t({ type: "FINISH_ENDING" }), u.send({ type: "finish_ending" }));
12638
12655
  return;
12639
12656
  }
12640
- if (D.status === "playing") {
12657
+ if (p.status === "playing") {
12641
12658
  d = !1;
12642
- const h = Tv(D.players), T = Av(D.ghosts);
12659
+ const h = Tv(p.players), T = Av(p.ghosts);
12643
12660
  t({ type: "TICK", tick: f, myId: n });
12644
12661
  const R = xv(e().players, e().tiles), E = _v(e().ghosts, e().tiles), _ = Dv(h, R, T, E);
12645
12662
  for (const A of _) Mv(A, a, u, t);
12646
12663
  const M = e();
12647
- hv(M, p, u, t), vv(M, s, n, u, t), gv(M, O, u, t), Sv(M, m, u, t), Ev(M, b, u), bv(M, g, u, t);
12648
- } else D.status === "migrating" ? (o <= 0 && (o = Ov), o--, o === 0 && (t({ type: "MIGRATION_COMPLETE", newHostId: D.hostId, state: D }), o = -1)) : o = 0;
12664
+ hv(M, D, u, t), vv(M, s, n, u, t), gv(M, O, u, t), Sv(M, m, u, t), Ev(M, b, u), bv(M, g, u, t);
12665
+ } else p.status === "migrating" ? (o <= 0 && (o = Ov), o--, o === 0 && (t({ type: "MIGRATION_COMPLETE", newHostId: p.hostId, state: p }), o = -1)) : o = 0;
12649
12666
  }
12650
12667
  function r() {
12651
- const D = e();
12652
- D.status === "playing" && l(D.ghosts);
12668
+ const p = e();
12669
+ p.status === "playing" && l(p.ghosts);
12653
12670
  }
12654
12671
  return {
12655
12672
  start() {
12656
12673
  i === null && (i = setInterval(y, xa), c = setInterval(r, yD));
12657
12674
  },
12658
12675
  stop() {
12659
- i !== null && (clearInterval(i), i = null), c !== null && (clearInterval(c), c = null), f = 0, o = 0, d = !1, p.clear(), s.clear(), m.clear(), g.clear(), b.clear(), O.clear();
12676
+ i !== null && (clearInterval(i), i = null), c !== null && (clearInterval(c), c = null), f = 0, o = 0, d = !1, D.clear(), s.clear(), m.clear(), g.clear(), b.clear(), O.clear();
12660
12677
  }
12661
12678
  };
12662
12679
  }
12663
12680
  const Rv = 33, Ks = 16;
12664
12681
  function Nv(t, e, l, n) {
12665
12682
  let a = "NONE", u = null, i = null, c = !1, f = 0, o = null;
12666
- const d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Set();
12683
+ const d = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Set();
12667
12684
  function s() {
12668
- const D = Date.now(), h = n();
12685
+ const p = Date.now(), h = n();
12669
12686
  if (h.status !== "playing" && h.status !== "ending") return;
12670
12687
  const T = h.players.find((A) => A.id === t.me.id);
12671
12688
  if (!T) return;
@@ -12676,8 +12693,8 @@ function Nv(t, e, l, n) {
12676
12693
  c && (a = "NONE", c = !1);
12677
12694
  let E = T;
12678
12695
  const _ = DD(T), M = Math.max(Ks, xa / _);
12679
- if (f === 0 && (f = D), D >= f) {
12680
- f += M, D > f + M && (f = D + M);
12696
+ if (f === 0 && (f = p), p >= f) {
12697
+ f += M, p > f + M && (f = p + M);
12681
12698
  const A = _ >= 2 ? Math.round(_) : 1, Q = pD(T, a, h.tiles, A), Y = Q.pelletsCollectedAt.flatMap((B) => {
12682
12699
  const vt = h.pelletSpawns.find(
12683
12700
  (ue) => {
@@ -12701,21 +12718,21 @@ function Nv(t, e, l, n) {
12701
12718
  }
12702
12719
  (E.respawnCountdown === null || E.respawnCountdown <= Pt) && g(E, h);
12703
12720
  }
12704
- function m(D) {
12705
- for (const h of D.dotsEaten)
12721
+ function m(p) {
12722
+ for (const h of p.dotsEaten)
12706
12723
  e.send({ type: "dot_eaten", dotX: h.x, dotY: h.y, playerId: t.me.id }), ut.playDot(!0);
12707
12724
  }
12708
- function g(D, h) {
12709
- if (!D.activeEffects.some((A) => A.skills.some((Q) => Q.type === "invincibility")) || h.mode !== "ffa" && h.mode !== "teamvs") return;
12710
- const R = { x: D.position.x, y: D.position.y }, E = /* @__PURE__ */ new Set(), _ = h.players.find((A) => A.id === D.id), M = _ == null ? void 0 : _.teamId;
12725
+ function g(p, h) {
12726
+ if (!p.activeEffects.some((A) => A.skills.some((Q) => Q.type === "invincibility")) || h.mode !== "ffa" && h.mode !== "teamvs") return;
12727
+ const R = { x: p.position.x, y: p.position.y }, E = /* @__PURE__ */ new Set(), _ = h.players.find((A) => A.id === p.id), M = _ == null ? void 0 : _.teamId;
12711
12728
  for (const A of h.players) {
12712
- if (A.id === D.id) continue;
12729
+ if (A.id === p.id) continue;
12713
12730
  if (E.add(A.id), h.mode === "teamvs" && M !== void 0 && A.teamId === M || A.respawnCountdown !== null) {
12714
- d.set(A.id, { x: A.position.x, y: A.position.y }), A.respawnCountdown !== null && p.delete(A.id);
12731
+ d.set(A.id, { x: A.position.x, y: A.position.y }), A.respawnCountdown !== null && D.delete(A.id);
12715
12732
  continue;
12716
12733
  }
12717
12734
  const Y = { x: A.position.x, y: A.position.y }, B = o ?? R, vt = d.get(A.id) ?? Y;
12718
- uo(B, R, vt, Y) && !p.has(A.id) && (A.activeEffects.some((x) => x.skills.some((w) => w.type === "invincibility")) || (p.add(A.id), t.me.id === h.hostId ? vD(t.me.id, A.id, h, t, e, l) : e.send(
12735
+ uo(B, R, vt, Y) && !D.has(A.id) && (A.activeEffects.some((x) => x.skills.some((w) => w.type === "invincibility")) || (D.add(A.id), t.me.id === h.hostId ? vD(t.me.id, A.id, h, t, e, l) : e.send(
12719
12736
  {
12720
12737
  type: "collision_report",
12721
12738
  collisionType: "player",
@@ -12731,9 +12748,9 @@ function Nv(t, e, l, n) {
12731
12748
  o = R;
12732
12749
  }
12733
12750
  function b() {
12734
- const D = n();
12735
- if (D.status !== "playing" && D.status !== "ending") return;
12736
- const h = D.players.find((T) => T.id === t.me.id);
12751
+ const p = n();
12752
+ if (p.status !== "playing" && p.status !== "ending") return;
12753
+ const h = p.players.find((T) => T.id === t.me.id);
12737
12754
  h && (h.respawnCountdown !== null && h.respawnCountdown > Pt || e.send({
12738
12755
  type: "player_pos",
12739
12756
  playerId: t.me.id,
@@ -12747,10 +12764,10 @@ function Nv(t, e, l, n) {
12747
12764
  u === null && (u = setInterval(s, Ks), i = setInterval(b, Rv));
12748
12765
  }
12749
12766
  function y() {
12750
- u !== null && (clearInterval(u), u = null), i !== null && (clearInterval(i), i = null), f = 0, o = null, d.clear(), p.clear(), c = !1;
12767
+ u !== null && (clearInterval(u), u = null), i !== null && (clearInterval(i), i = null), f = 0, o = null, d.clear(), D.clear(), c = !1;
12751
12768
  }
12752
- function r(D) {
12753
- a = D;
12769
+ function r(p) {
12770
+ a = p;
12754
12771
  }
12755
12772
  return { start: O, stop: y, setDirection: r };
12756
12773
  }
@@ -12822,25 +12839,25 @@ function Lv(t, e, l, n) {
12822
12839
  function u() {
12823
12840
  a || (a = !0, ut.unlock());
12824
12841
  }
12825
- function i(D) {
12842
+ function i(p) {
12826
12843
  u();
12827
- const h = Cv[D.key];
12844
+ const h = Cv[p.key];
12828
12845
  h && t($i(h));
12829
12846
  }
12830
12847
  window.addEventListener("keydown", i);
12831
- let c = 0, f = 0, o = 0, d = 0, p = null, s = !1, m = !1;
12832
- function g(D) {
12833
- u(), m = !0, c = D.touches[0].clientX, f = D.touches[0].clientY, o = c, d = f, p = null, s = !1;
12848
+ let c = 0, f = 0, o = 0, d = 0, D = null, s = !1, m = !1;
12849
+ function g(p) {
12850
+ u(), m = !0, c = p.touches[0].clientX, f = p.touches[0].clientY, o = c, d = f, D = null, s = !1;
12834
12851
  }
12835
- function b(D) {
12836
- const h = D.touches[0], T = h.clientX - o, R = h.clientY - d, E = jv(T, R);
12837
- E && (s = !0, E !== p && (t($i(E)), p = E), o = h.clientX, d = h.clientY);
12852
+ function b(p) {
12853
+ const h = p.touches[0], T = h.clientX - o, R = h.clientY - d, E = jv(T, R);
12854
+ E && (s = !0, E !== D && (t($i(E)), D = E), o = h.clientX, d = h.clientY);
12838
12855
  }
12839
- function O(D) {
12856
+ function O(p) {
12840
12857
  if (setTimeout(() => {
12841
12858
  m = !1;
12842
12859
  }, 350), s) return;
12843
- const h = D.changedTouches[0], T = h.clientX - c, R = h.clientY - f, E = Math.abs(T), _ = Math.abs(R);
12860
+ const h = p.changedTouches[0], T = h.clientX - c, R = h.clientY - f, E = Math.abs(T), _ = Math.abs(R);
12844
12861
  if (E < Js && _ < Js) {
12845
12862
  if (l && n != null && n > 0) {
12846
12863
  const M = $s(h.clientX, h.clientY, n);
@@ -12853,9 +12870,9 @@ function Lv(t, e, l, n) {
12853
12870
  E >= _ ? T > 0 ? "RIGHT" : "LEFT" : R > 0 ? "DOWN" : "UP"
12854
12871
  ));
12855
12872
  }
12856
- function y(D) {
12873
+ function y(p) {
12857
12874
  if (m || !l || n == null || n <= 0) return;
12858
- const h = $s(D.clientX, D.clientY, n);
12875
+ const h = $s(p.clientX, p.clientY, n);
12859
12876
  h && l(h.x, h.y);
12860
12877
  }
12861
12878
  const r = document.querySelector("[data-swipe-zone]");
@@ -12934,8 +12951,8 @@ function qv(t) {
12934
12951
  );
12935
12952
  if (z.useEffect(() => {
12936
12953
  const d = setInterval(() => {
12937
- const p = Date.now() - t.startedAt;
12938
- n(e(p));
12954
+ const D = Date.now() - t.startedAt;
12955
+ n(e(D));
12939
12956
  }, 33);
12940
12957
  return () => clearInterval(d);
12941
12958
  }, [t.startedAt]), l === null) return null;
@@ -13118,16 +13135,16 @@ const $v = z.memo(function({
13118
13135
  tileSize: i,
13119
13136
  isTeleport: c
13120
13137
  }) {
13121
- const f = i * 2, o = (f - i) / 2, d = z.useRef(null), p = z.useRef(performance.now()), s = z.useRef(n), m = z.useRef(0), g = z.useRef(performance.now()), b = z.useRef(null);
13138
+ const f = i * 2, o = (f - i) / 2, d = z.useRef(null), D = z.useRef(performance.now()), s = z.useRef(n), m = z.useRef(0), g = z.useRef(performance.now()), b = z.useRef(null);
13122
13139
  z.useLayoutEffect(() => {
13123
13140
  const y = d.current;
13124
- y && (y.style.opacity = "0.85", y.style.transform = "scale(1)"), p.current = performance.now(), s.current = n, m.current = 0, g.current = performance.now();
13125
- function r(D) {
13141
+ y && (y.style.opacity = "0.85", y.style.transform = "scale(1)"), D.current = performance.now(), s.current = n, m.current = 0, g.current = performance.now();
13142
+ function r(p) {
13126
13143
  const h = d.current;
13127
13144
  if (!h) return;
13128
- const T = (D - g.current) / 1e3;
13129
- g.current = D;
13130
- const R = D - p.current, E = s.current - R;
13145
+ const T = (p - g.current) / 1e3;
13146
+ g.current = p;
13147
+ const R = p - D.current, E = s.current - R;
13131
13148
  if (E <= 0) {
13132
13149
  h.style.opacity = "0", h.style.transform = "scale(1)";
13133
13150
  return;
@@ -13238,7 +13255,7 @@ const c1 = z.memo(function({ player: e, myId: l, tileSize: n }) {
13238
13255
  }, [e.position]);
13239
13256
  const { respawnCountdown: i } = e;
13240
13257
  if (i !== null && i > Pt) return null;
13241
- const c = i !== null && i <= Pt, f = e.id === l, o = Wh(e), d = c ? { style: {} } : i1(e, f, o), p = {
13258
+ const c = i !== null && i <= Pt, f = e.id === l, o = Wh(e), d = c ? { style: {} } : i1(e, f, o), D = {
13242
13259
  position: "absolute",
13243
13260
  left: e.position.x * n,
13244
13261
  top: e.position.y * n,
@@ -13264,7 +13281,7 @@ const c1 = z.memo(function({ player: e, myId: l, tileSize: n }) {
13264
13281
  isTeleport: u
13265
13282
  }
13266
13283
  ),
13267
- /* @__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 }) })
13284
+ /* @__PURE__ */ v.jsx("span", { style: D, "data-testid": `player-${e.id}`, "data-team-id": e.teamId ?? void 0, children: /* @__PURE__ */ v.jsx("span", { "data-emoji": !0, children: e.emoji }) })
13268
13285
  ] });
13269
13286
  }), f1 = z.memo(function({ ghost: e, tileSize: l }) {
13270
13287
  const n = z.useRef(e.position), a = Math.abs(e.position.x - n.current.x) > 1 || Math.abs(e.position.y - n.current.y) > 1;
@@ -13311,8 +13328,8 @@ function s1(t) {
13311
13328
  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 };
13312
13329
  if (Math.abs(o.x - f.x) + Math.abs(o.y - f.y) > o1)
13313
13330
  return { ...c, x: o.x, y: o.y };
13314
- const p = Math.max(0, Math.min(1, (n - u.timestamp) / yD));
13315
- return { ...c, x: f.x + (o.x - f.x) * p, y: f.y + (o.y - f.y) * p };
13331
+ const D = Math.max(0, Math.min(1, (n - u.timestamp) / yD));
13332
+ return { ...c, x: f.x + (o.x - f.x) * D, y: f.y + (o.y - f.y) * D };
13316
13333
  });
13317
13334
  }
13318
13335
  const r1 = ({ player: t, tileSize: e }) => {
@@ -13339,7 +13356,7 @@ function d1(t, e, l, n) {
13339
13356
  return u > a ? { ts: u, rotated: !0 } : { ts: a, rotated: !1 };
13340
13357
  }
13341
13358
  function y1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], tileSize: u, onTileSizeChange: i }) {
13342
- const c = t.length, f = c > 0 ? t[0].length : 0, o = z.useRef(null), [d, p] = z.useState({ ts: kc, rotated: !1 }), s = z.useRef(i);
13359
+ const c = t.length, f = c > 0 ? t[0].length : 0, o = z.useRef(null), [d, D] = z.useState({ ts: kc, rotated: !1 }), s = z.useRef(i);
13343
13360
  s.current = i, z.useEffect(() => {
13344
13361
  Vv();
13345
13362
  }, []), z.useEffect(() => {
@@ -13348,8 +13365,8 @@ function y1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], ti
13348
13365
  if (!O) return;
13349
13366
  const y = () => {
13350
13367
  var T;
13351
- const D = O.getBoundingClientRect(), h = d1(f, c, D.width, D.height);
13352
- p((R) => R.ts === h.ts && R.rotated === h.rotated ? R : h), (T = s.current) == null || T.call(s, h.ts);
13368
+ const p = O.getBoundingClientRect(), h = d1(f, c, p.width, p.height);
13369
+ D((R) => R.ts === h.ts && R.rotated === h.rotated ? R : h), (T = s.current) == null || T.call(s, h.ts);
13353
13370
  };
13354
13371
  y();
13355
13372
  const r = typeof ResizeObserver < "u" ? new ResizeObserver(y) : null;
@@ -13385,29 +13402,29 @@ function y1({ tiles: t, players: e, ghosts: l, myId: n, pelletSpawns: a = [], ti
13385
13402
  },
13386
13403
  children: [
13387
13404
  t.map(
13388
- (O, y) => O.map((r, D) => /* @__PURE__ */ v.jsx(
13405
+ (O, y) => O.map((r, p) => /* @__PURE__ */ v.jsx(
13389
13406
  n1,
13390
13407
  {
13391
13408
  type: r,
13392
- x: D,
13409
+ x: p,
13393
13410
  y,
13394
13411
  tileSize: m,
13395
- wallEdges: r === "wall" ? l1(t, D, y) : void 0
13412
+ wallEdges: r === "wall" ? l1(t, p, y) : void 0
13396
13413
  },
13397
- `${D}-${y}`
13414
+ `${p}-${y}`
13398
13415
  ))
13399
13416
  ),
13400
13417
  t.map(
13401
- (O, y) => O.map((r, D) => {
13402
- if (r === "dot") return /* @__PURE__ */ v.jsx(a1, { x: D, y, tileSize: m }, `d-${D}-${y}`);
13418
+ (O, y) => O.map((r, p) => {
13419
+ if (r === "dot") return /* @__PURE__ */ v.jsx(a1, { x: p, y, tileSize: m }, `d-${p}-${y}`);
13403
13420
  if (r === "pellet") {
13404
13421
  const h = a.find((R) => {
13405
13422
  var E, _;
13406
- return ((E = R.activePosition) == null ? void 0 : E.x) === D && ((_ = R.activePosition) == null ? void 0 : _.y) === y;
13423
+ return ((E = R.activePosition) == null ? void 0 : E.x) === p && ((_ = R.activePosition) == null ? void 0 : _.y) === y;
13407
13424
  });
13408
13425
  if (!h) return null;
13409
13426
  const T = ao.find((R) => R.id === h.pelletId);
13410
- return T ? /* @__PURE__ */ v.jsx(u1, { def: T, x: D, y, tileSize: m }, `p-${D}-${y}`) : null;
13427
+ return T ? /* @__PURE__ */ v.jsx(u1, { def: T, x: p, y, tileSize: m }, `p-${p}-${y}`) : null;
13411
13428
  }
13412
13429
  return null;
13413
13430
  })
@@ -13453,11 +13470,11 @@ function p1({ t, player: e, isLocal: l }) {
13453
13470
  const n = z.useRef(e.score), [a, u] = z.useState(!1), [i, c] = z.useState(0);
13454
13471
  z.useEffect(() => {
13455
13472
  let d;
13456
- return e.score > n.current && (u(!0), c((p) => p + 1), d = window.setTimeout(() => u(!1), 550)), n.current = e.score, () => {
13473
+ return e.score > n.current && (u(!0), c((D) => D + 1), d = window.setTimeout(() => u(!1), 550)), n.current = e.score, () => {
13457
13474
  d !== void 0 && clearTimeout(d);
13458
13475
  };
13459
13476
  }, [e.score]);
13460
- const f = e.activeEffects.some((d) => d.skills.some((p) => p.type === "invincibility")), o = {
13477
+ const f = e.activeEffects.some((d) => d.skills.some((D) => D.type === "invincibility")), o = {
13461
13478
  display: "inline-block",
13462
13479
  fontWeight: 600,
13463
13480
  ...a ? { animation: "hud-score-pop 0.55s ease-out forwards" } : {}
@@ -13614,9 +13631,9 @@ function SD(t) {
13614
13631
  }
13615
13632
  const o = f.current;
13616
13633
  c.current = null;
13617
- const d = (p) => {
13618
- c.current === null && (c.current = p);
13619
- const s = p - c.current, m = Math.min(s / l, 1), g = Math.round(o + (e - o) * S1(m));
13634
+ const d = (D) => {
13635
+ c.current === null && (c.current = D);
13636
+ const s = D - c.current, m = Math.min(s / l, 1), g = Math.round(o + (e - o) * S1(m));
13620
13637
  u(g), f.current = g, m < 1 && (i.current = requestAnimationFrame(d));
13621
13638
  };
13622
13639
  return i.current = requestAnimationFrame(d), () => {
@@ -13778,7 +13795,7 @@ function T1({ player: t, rank: e, index: l, reducedMotion: n }) {
13778
13795
  );
13779
13796
  }
13780
13797
  function A1(t) {
13781
- const { t: e, level: l, players: n, mode: a, isHost: u, onPlayAgain: i, onNextMap: c } = t, f = z.useId(), o = _D(), d = [...n].sort((p, s) => s.score - p.score);
13798
+ const { t: e, level: l, players: n, mode: a, isHost: u, onPlayAgain: i, onNextMap: c } = t, f = z.useId(), o = _D(), d = [...n].sort((D, s) => s.score - D.score);
13782
13799
  return /* @__PURE__ */ v.jsx("div", { style: TD, children: /* @__PURE__ */ v.jsxs("div", { style: AD, children: [
13783
13800
  /* @__PURE__ */ v.jsx("style", { id: f, children: xD }),
13784
13801
  /* @__PURE__ */ v.jsx("h2", { style: Un, children: e("cc.levelSummary.title", String(l)) }),
@@ -13791,15 +13808,15 @@ function A1(t) {
13791
13808
  /* @__PURE__ */ v.jsx("th", { style: Jl, children: e("cc.score.table.score") }),
13792
13809
  /* @__PURE__ */ v.jsx("th", { style: Jl, children: e("cc.levelSummary.table.overall") })
13793
13810
  ] }) }),
13794
- /* @__PURE__ */ v.jsx("tbody", { children: d.map((p, s) => /* @__PURE__ */ v.jsx(
13811
+ /* @__PURE__ */ v.jsx("tbody", { children: d.map((D, s) => /* @__PURE__ */ v.jsx(
13795
13812
  T1,
13796
13813
  {
13797
- player: p,
13814
+ player: D,
13798
13815
  rank: s + 1,
13799
13816
  index: s,
13800
13817
  reducedMotion: o
13801
13818
  },
13802
- p.id
13819
+ D.id
13803
13820
  )) })
13804
13821
  ] }),
13805
13822
  /* @__PURE__ */ v.jsx(MD, { t: e, isHost: u, canRestart: ED(n, a), onPlayAgain: i, onNextMap: c })
@@ -13885,7 +13902,7 @@ function O1({ t, mode: e, won: l, winningTeam: n }) {
13885
13902
  }
13886
13903
  function z1(t) {
13887
13904
  var b;
13888
- const { t: e, players: l, mode: n, isHost: a, won: u, onPlayAgain: i, onNextMap: c } = t, f = z.useId(), o = _D(), d = [...l].sort((O, y) => y.score - O.score), p = ((b = d[0]) == null ? void 0 : b.score) ?? -1 / 0, s = n === "ffa" && d.length > 0 ? new Set(d.filter((O) => O.score === p).map((O) => O.id)) : /* @__PURE__ */ new Set(), m = n === "teamvs" ? x1(l) : null, g = m && m.length > 0 ? m.length > 1 && m[0].score === m[1].score ? null : m[0] : null;
13905
+ const { t: e, players: l, mode: n, isHost: a, won: u, onPlayAgain: i, onNextMap: c } = t, f = z.useId(), o = _D(), d = [...l].sort((O, y) => y.score - O.score), D = ((b = d[0]) == null ? void 0 : b.score) ?? -1 / 0, s = n === "ffa" && d.length > 0 ? new Set(d.filter((O) => O.score === D).map((O) => O.id)) : /* @__PURE__ */ new Set(), m = n === "teamvs" ? x1(l) : null, g = m && m.length > 0 ? m.length > 1 && m[0].score === m[1].score ? null : m[0] : null;
13889
13906
  return /* @__PURE__ */ v.jsx("div", { style: TD, children: /* @__PURE__ */ v.jsxs("div", { style: AD, children: [
13890
13907
  /* @__PURE__ */ v.jsx("style", { id: f, children: xD }),
13891
13908
  /* @__PURE__ */ v.jsx("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ v.jsx(O1, { t: e, mode: n, won: u, winningTeam: g ?? null }) }),
@@ -13908,7 +13925,7 @@ function R1({ sdk: t, firstPlayerId: e, init: l }) {
13908
13925
  i.current = a;
13909
13926
  const c = z.useCallback(() => i.current, []), f = z.useRef(null);
13910
13927
  f.current || (f.current = Cp(t));
13911
- const o = f.current, { gameLoopRef: d, localPlayerLoopRef: p } = wv(t, o, u, c), s = t.me.id === a.hostId, { status: m, migrationCountdown: g } = a, [b, O] = z.useState(void 0), y = Bv(a.hostId, t.me.id);
13928
+ const o = f.current, { gameLoopRef: d, localPlayerLoopRef: D } = wv(t, o, u, c), s = t.me.id === a.hostId, { status: m, migrationCountdown: g } = a, [b, O] = z.useState(void 0), y = Bv(a.hostId, t.me.id);
13912
13929
  z.useEffect(() => {
13913
13930
  const _ = yv(t, o, u, c);
13914
13931
  o.onMessage(_.onMessage);
@@ -13925,7 +13942,7 @@ function R1({ sdk: t, firstPlayerId: e, init: l }) {
13925
13942
  }, 500);
13926
13943
  return () => {
13927
13944
  var B, vt;
13928
- clearInterval(Y), M(), A(), (B = d.current) == null || B.stop(), (vt = p.current) == null || vt.stop(), o.dispose();
13945
+ clearInterval(Y), M(), A(), (B = d.current) == null || B.stop(), (vt = D.current) == null || vt.stop(), o.dispose();
13929
13946
  };
13930
13947
  }, []), z.useEffect(() => {
13931
13948
  ut.attach(t), ut.unlock();
@@ -13947,13 +13964,13 @@ function R1({ sdk: t, firstPlayerId: e, init: l }) {
13947
13964
  s && ["playing", "migrating", "countdown", "ending"].includes(a.status) ? (M = d.current) == null || M.start() : (A = d.current) == null || A.stop();
13948
13965
  }, [s, a.status]), z.useEffect(() => {
13949
13966
  var _, M;
13950
- a.status === "playing" || a.status === "ending" ? (_ = p.current) == null || _.start() : (M = p.current) == null || M.stop();
13967
+ a.status === "playing" || a.status === "ending" ? (_ = D.current) == null || _.start() : (M = D.current) == null || M.stop();
13951
13968
  }, [a.status]), z.useEffect(() => {
13952
13969
  s && a.status === "countdown" && a.countdownStartedAt !== null && mv(o, a.countdownStartedAt);
13953
13970
  }, [s, a.status]);
13954
- const { handleNextMap: r, handlePlayAgain: D } = Yv(t, o, u, c), h = z.useCallback((_) => {
13971
+ const { handleNextMap: r, handlePlayAgain: p } = Yv(t, o, u, c), h = z.useCallback((_) => {
13955
13972
  var M;
13956
- (M = p.current) == null || M.setDirection(_);
13973
+ (M = D.current) == null || M.setDirection(_);
13957
13974
  }, []), T = z.useCallback((_, M) => {
13958
13975
  var ue;
13959
13976
  const A = i.current;
@@ -13988,7 +14005,7 @@ function R1({ sdk: t, firstPlayerId: e, init: l }) {
13988
14005
  players: a.players,
13989
14006
  mode: a.mode,
13990
14007
  isHost: s,
13991
- onPlayAgain: D,
14008
+ onPlayAgain: p,
13992
14009
  onNextMap: r
13993
14010
  }
13994
14011
  )
@@ -14006,7 +14023,7 @@ function R1({ sdk: t, firstPlayerId: e, init: l }) {
14006
14023
  myId: t.me.id,
14007
14024
  isHost: s,
14008
14025
  won: a.mode === "coop" ? a.level === 5 : !0,
14009
- onPlayAgain: D,
14026
+ onPlayAgain: p,
14010
14027
  onNextMap: r
14011
14028
  }
14012
14029
  )
@@ -14059,10 +14076,10 @@ function C1(t) {
14059
14076
  return e;
14060
14077
  }
14061
14078
  function U1(t, e) {
14062
- var p, s, m, g;
14079
+ var D, s, m, g;
14063
14080
  const l = document.getElementById(t);
14064
14081
  if (!l) throw new Error("container not found");
14065
- const n = w1((p = e.gameState) == null ? void 0 : p.selectedModeId), a = C1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (m = e.gameState) == null ? void 0 : m.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = Hv(e.players, a, u), f = Gv(a, n), o = Wv(n);
14082
+ const n = w1((D = e.gameState) == null ? void 0 : D.selectedModeId), a = C1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (m = e.gameState) == null ? void 0 : m.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = Hv(e.players, a, u), f = Gv(a, n), o = Wv(n);
14066
14083
  e.log.log("mount", { mode: n, mazeIndex: a, players: c.length, ghosts: f.length, firstPlayerId: i });
14067
14084
  const d = Mp.createRoot(l, jp("come-come"));
14068
14085
  return d.render(