@mblinkov/whats-missing 20.0.54 → 20.0.55

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.
@@ -1,92 +1,18 @@
1
- import { jsx as d, jsxs as p, Fragment as Rn } from "react/jsx-runtime";
2
- import { useRef as G, useEffect as q, useState as h, useMemo as di } from "react";
3
- const oi = window.origin + "/cloud/speakid/games/whatsmissing/", gn = (o, g) => o.map(([a, s, ...b]) => ({
4
- src: `${oi}${g}/${s.replace(/\s/g, "%20")}.png`,
5
- name: s,
6
- aliases: b?.length ? b : void 0
7
- })), ri = [
8
- ["apple", "apple"],
9
- ["banana", "banana"],
10
- ["bread", "bread"],
11
- ["burger", "burger"],
12
- ["cake", "cake"],
13
- ["carrot", "carrot"],
14
- ["cheese", "cheese"],
15
- ["chicken", "chicken"],
16
- ["chocolate", "chocolate"],
17
- ["corn", "corn"],
18
- ["donut", "donut"],
19
- ["fish", "fish"],
20
- ["fries", "fries"],
21
- ["grapes", "grapes"],
22
- ["ice_cream", "ice cream"],
23
- ["milk", "milk"],
24
- ["orange", "orange"],
25
- ["pear", "pear"],
26
- ["pizza", "pizza"],
27
- ["rice", "rice"],
28
- ["sandwich", "sandwich"],
29
- ["soup", "soup"],
30
- ["strawberry", "strawberry"],
31
- ["tomato", "tomato"],
32
- ["watermelon", "watermelon"]
33
- ], hi = [
34
- ["bear", "bear"],
35
- ["cat", "cat"],
36
- ["crocodile", "crocodile", "alligator"],
37
- ["dolphin", "dolphin"],
38
- ["elephant", "elephant"],
39
- ["fox", "fox"],
40
- ["giraffe", "giraffe"],
41
- ["horse", "horse"],
42
- ["kangaroo", "kangaroo"],
43
- ["lion", "lion"],
44
- ["monkey", "monkey"],
45
- ["owl", "owl"],
46
- ["panda", "panda"],
47
- ["penguin", "penguin"],
48
- ["squirrel", "squirrel"],
49
- ["tiger", "tiger"],
50
- ["tortoise", "tortoise", "turtle"],
51
- ["wolf", "wolf"],
52
- ["zebra", "zebra"]
53
- ], si = [
54
- ["ball", "ball"],
55
- ["balloon", "balloon"],
56
- ["blocks", "blocks"],
57
- ["car", "car"],
58
- ["doll", "doll"],
59
- ["drum", "drum"],
60
- ["guitar", "guitar"],
61
- ["jump_rope", "jump rope"],
62
- ["kite", "kite"],
63
- ["paints", "paints"],
64
- ["plane", "plane"],
65
- ["puzzle", "puzzle"],
66
- ["rocket", "rocket"],
67
- ["scooter", "scooter"],
68
- ["skateboard", "skateboard"],
69
- ["slide", "slide"],
70
- ["teddy_bear", "teddy bear"],
71
- ["yo-yo", "yo-yo"],
72
- ["crayons", "crayons"]
73
- ], K = {
74
- food: gn(ri, "food"),
75
- animals: gn(hi, "animals"),
76
- toys: gn(si, "toys")
77
- }, gi = `
1
+ import { jsx as w, jsxs as p, Fragment as Ln } from "react/jsx-runtime";
2
+ import { useRef as U, useEffect as q, useState as h, useMemo as ri } from "react";
3
+ const hi = `
78
4
  @keyframes spin {
79
5
  from { transform: rotate(0deg); }
80
6
  to { transform: rotate(360deg); }
81
7
  }
82
8
  `;
83
9
  if (typeof document < "u" && !document.getElementById("spin-keyframes")) {
84
- const o = document.createElement("style");
85
- o.id = "spin-keyframes", o.innerHTML = gi, document.head.appendChild(o);
10
+ const d = document.createElement("style");
11
+ d.id = "spin-keyframes", d.innerHTML = hi, document.head.appendChild(d);
86
12
  }
87
- const ai = {
13
+ const si = {
88
14
  animation: "spin 1.4s linear infinite"
89
- }, w = {
15
+ }, o = {
90
16
  gmCenterScreen: {
91
17
  position: "relative",
92
18
  zIndex: 1,
@@ -219,11 +145,188 @@ const ai = {
219
145
  },
220
146
  gmHourglass: {
221
147
  fontSize: "42px",
222
- ...ai
148
+ ...si
223
149
  }
224
- }, pi = () => {
225
- const o = document.createElement("style");
226
- o.id = "whats-missing-reset", o.textContent = `
150
+ }, ai = window.origin + "/cloud/speakid/games/whatsmissing/", L = (d, a) => d.map(([g, s, ...b]) => ({
151
+ src: `${ai}${a}/${s.replace(/\s/g, "%20")}.png`,
152
+ name: s,
153
+ aliases: b?.length ? b : void 0
154
+ })), gi = [
155
+ ["apple", "apple"],
156
+ ["banana", "banana"],
157
+ ["bread", "bread"],
158
+ ["burger", "burger"],
159
+ ["cake", "cake"],
160
+ ["carrot", "carrot"],
161
+ ["cheese", "cheese"],
162
+ ["chicken", "chicken"],
163
+ ["chocolate", "chocolate"],
164
+ ["corn", "corn"],
165
+ ["donut", "donut"],
166
+ ["fish", "fish"],
167
+ ["fries", "fries"],
168
+ ["grapes", "grapes"],
169
+ ["ice_cream", "ice cream"],
170
+ ["milk", "milk"],
171
+ ["orange", "orange"],
172
+ ["pear", "pear"],
173
+ ["pizza", "pizza"],
174
+ ["rice", "rice"],
175
+ ["sandwich", "sandwich"],
176
+ ["soup", "soup"],
177
+ ["strawberry", "strawberry"],
178
+ ["tomato", "tomato"],
179
+ ["watermelon", "watermelon"]
180
+ ], pi = [
181
+ ["bear", "bear"],
182
+ ["cat", "cat"],
183
+ ["crocodile", "crocodile", "alligator"],
184
+ ["dolphin", "dolphin"],
185
+ ["elephant", "elephant"],
186
+ ["fox", "fox"],
187
+ ["giraffe", "giraffe"],
188
+ ["horse", "horse"],
189
+ ["kangaroo", "kangaroo"],
190
+ ["lion", "lion"],
191
+ ["monkey", "monkey"],
192
+ ["owl", "owl"],
193
+ ["panda", "panda"],
194
+ ["penguin", "penguin"],
195
+ ["squirrel", "squirrel"],
196
+ ["tiger", "tiger"],
197
+ ["tortoise", "tortoise", "turtle"],
198
+ ["wolf", "wolf"],
199
+ ["zebra", "zebra"]
200
+ ], li = [
201
+ ["ball", "ball"],
202
+ ["balloon", "balloon"],
203
+ ["blocks", "blocks"],
204
+ ["car", "car"],
205
+ ["doll", "doll"],
206
+ ["drum", "drum"],
207
+ ["guitar", "guitar"],
208
+ ["jump_rope", "jump rope"],
209
+ ["kite", "kite"],
210
+ ["paints", "paints"],
211
+ ["plane", "plane"],
212
+ ["puzzle", "puzzle"],
213
+ ["rocket", "rocket"],
214
+ ["scooter", "scooter"],
215
+ ["skateboard", "skateboard"],
216
+ ["slide", "slide"],
217
+ ["teddy_bear", "teddy bear"],
218
+ ["yo-yo", "yo-yo"],
219
+ ["crayons", "crayons"]
220
+ ], ci = [
221
+ ["t-shirt", "T-shirt"],
222
+ ["dress", "dress"],
223
+ ["hat", "hat"],
224
+ ["shoes", "shoes"],
225
+ ["socks", "socks"],
226
+ ["coat", "coat"],
227
+ ["skirt", "skirt"],
228
+ ["trousers", "trousers"],
229
+ ["jacket", "jacket"],
230
+ ["scarf", "scarf"],
231
+ ["gloves", "gloves"],
232
+ ["shorts", "shorts"],
233
+ ["cap", "cap"],
234
+ ["boots", "boots"],
235
+ ["pyjamas", "pyjamas"]
236
+ ], xi = [
237
+ ["car", "car"],
238
+ ["bus", "bus"],
239
+ ["bike", "bike"],
240
+ ["train", "train"],
241
+ ["plane", "plane"],
242
+ ["boat", "boat"],
243
+ ["ship", "ship"],
244
+ ["helicopter", "helicopter"],
245
+ ["lorry", "lorry", "truck"],
246
+ ["taxi", "taxi"],
247
+ ["rocket", "rocket"],
248
+ ["van", "van"],
249
+ ["motorbike", "motorbike"],
250
+ ["tram", "tram"],
251
+ ["submarine", "submarine"]
252
+ ], Hi = [
253
+ ["sun", "sun"],
254
+ ["cloud", "cloud"],
255
+ ["rain", "rain"],
256
+ ["tree", "tree"],
257
+ ["flower", "flower"],
258
+ ["grass", "grass"],
259
+ ["star", "star"],
260
+ ["moon", "moon"],
261
+ ["mountain", "mountain"],
262
+ ["river", "river"],
263
+ ["rainbow", "rainbow"],
264
+ ["snowman", "snowman"],
265
+ ["snow", "snow"],
266
+ ["butterfly", "butterfly"],
267
+ ["bird", "bird"]
268
+ ], Wi = [
269
+ ["bed", "bed"],
270
+ ["table", "table"],
271
+ ["chair", "chair"],
272
+ ["door", "door"],
273
+ ["window", "window"],
274
+ ["lamp", "lamp"],
275
+ ["sofa", "sofa"],
276
+ ["clock", "clock"],
277
+ ["key", "key"],
278
+ ["phone", "phone"],
279
+ ["tv", "TV"],
280
+ ["cup", "cup"],
281
+ ["plate", "plate"],
282
+ ["mirror", "mirror"],
283
+ ["book", "book"]
284
+ ], mi = [
285
+ ["book", "book"],
286
+ ["pen", "pen"],
287
+ ["pencil", "pencil"],
288
+ ["bag", "bag"],
289
+ ["ruler", "ruler"],
290
+ ["rubber", "rubber", "eraser"],
291
+ ["desk", "desk"],
292
+ ["board", "board"],
293
+ ["crayon", "crayon"],
294
+ ["glue", "glue"],
295
+ ["scissors", "scissors"],
296
+ ["notebook", "notebook"],
297
+ ["pencil_case", "pencil case"],
298
+ ["paintbrush", "paintbrush"],
299
+ ["backpack", "backpack"]
300
+ ], K = {
301
+ food: L(gi, "food"),
302
+ animals: L(pi, "animals"),
303
+ toys: L(li, "toys"),
304
+ clothes: L(ci, "clothes"),
305
+ transport: L(xi, "transport"),
306
+ nature: L(Hi, "nature"),
307
+ home: L(Wi, "home"),
308
+ school: L(mi, "school")
309
+ }, ui = [
310
+ "animals",
311
+ "food",
312
+ "toys",
313
+ "clothes",
314
+ "transport",
315
+ "nature",
316
+ "home",
317
+ "school"
318
+ ], fi = {
319
+ animals: "🐶 Animals",
320
+ food: "🍎 Food",
321
+ toys: "🧸 Toys",
322
+ clothes: "👕 Clothes",
323
+ transport: "🚗 Transport",
324
+ nature: "🌳 Nature",
325
+ home: "🏠 Home",
326
+ school: "📚 School"
327
+ }, yi = () => {
328
+ const d = document.createElement("style");
329
+ d.id = "whats-missing-reset", d.textContent = `
227
330
  #whats-missing-root, #whats-missing-root * {
228
331
  box-sizing: border-box;
229
332
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
@@ -250,12 +353,12 @@ const ai = {
250
353
  overflow: hidden !important;
251
354
  }
252
355
  `;
253
- const g = document.getElementById("whats-missing-reset");
254
- g && g.remove(), document.head.appendChild(o);
356
+ const a = document.getElementById("whats-missing-reset");
357
+ a && a.remove(), document.head.appendChild(d);
255
358
  };
256
- class li {
257
- constructor(g) {
258
- this.seed = g;
359
+ class bi {
360
+ constructor(a) {
361
+ this.seed = a;
259
362
  }
260
363
  // Linear Congruential Generator (LCG)
261
364
  // Используем параметры из Numerical Recipes
@@ -263,169 +366,181 @@ class li {
263
366
  return this.seed = (this.seed * 1664525 + 1013904223) % Math.pow(2, 32), this.seed / Math.pow(2, 32);
264
367
  }
265
368
  // Генерирует случайное число от 0 до max (не включая max)
266
- nextInt(g) {
267
- return Math.floor(this.next() * g);
369
+ nextInt(a) {
370
+ return Math.floor(this.next() * a);
268
371
  }
269
372
  }
270
- const ci = (o, g) => {
271
- const a = Array.from({ length: o.length + 1 }, () => Array(g.length + 1).fill(0));
272
- for (let s = 0; s <= o.length; s++) a[s][0] = s;
273
- for (let s = 0; s <= g.length; s++) a[0][s] = s;
274
- for (let s = 1; s <= o.length; s++)
275
- for (let b = 1; b <= g.length; b++)
276
- a[s][b] = o[s - 1] === g[b - 1] ? a[s - 1][b - 1] : Math.min(a[s - 1][b - 1], a[s][b - 1], a[s - 1][b]) + 1;
277
- return a[o.length][g.length];
278
- }, xi = (o) => new Promise((g) => {
279
- const a = new Image();
280
- a.onload = () => g(a), a.onerror = () => g(a), a.src = o;
281
- }), an = async (o, g) => {
282
- const a = /* @__PURE__ */ new Map(), s = o.map(async (b) => {
283
- const v = await xi(b);
284
- a.set(b, v);
373
+ const ki = (d, a) => {
374
+ const g = Array.from({ length: d.length + 1 }, () => Array(a.length + 1).fill(0));
375
+ for (let s = 0; s <= d.length; s++) g[s][0] = s;
376
+ for (let s = 0; s <= a.length; s++) g[0][s] = s;
377
+ for (let s = 1; s <= d.length; s++)
378
+ for (let b = 1; b <= a.length; b++)
379
+ g[s][b] = d[s - 1] === a[b - 1] ? g[s - 1][b - 1] : Math.min(g[s - 1][b - 1], g[s][b - 1], g[s - 1][b]) + 1;
380
+ return g[d.length][a.length];
381
+ }, Ii = (d) => new Promise((a) => {
382
+ const g = new Image();
383
+ g.onload = () => a(g), g.onerror = () => a(g), g.src = d;
384
+ }), pn = async (d, a) => {
385
+ const g = /* @__PURE__ */ new Map(), s = d.map(async (b) => {
386
+ const S = await Ii(b);
387
+ g.set(b, S);
285
388
  });
286
- return await Promise.allSettled(s), a;
389
+ return await Promise.allSettled(s), g;
287
390
  };
288
- function mi({
289
- gameCubeSize: o,
290
- screenHeight: g,
291
- screenWidth: a,
391
+ function Ti({
392
+ gameCubeSize: d,
393
+ screenHeight: a,
394
+ screenWidth: g,
292
395
  seed: s
293
396
  }) {
294
- const b = G(null);
295
- q(() => (pi(), () => {
397
+ const b = U(null);
398
+ q(() => (yi(), () => {
296
399
  document.documentElement.style.overflow = "", document.body.style.overflow = "";
297
400
  const i = document.getElementById("whats-missing-reset");
298
- i && i.remove(), k.current && k.current.abort();
401
+ i && i.remove(), T.current && T.current.abort();
299
402
  }), []);
300
- const [v, pn] = h(null), [L, ln] = h([]), [F, Mn] = h(4), [j, cn] = h(!1), [U, xn] = h(1), [z, Ln] = h(null), [P, Y] = h("ready"), [Hn, Wn] = h(10), [O, J] = h(10), [Q, mn] = h(20), [Bn, X] = h(0), [$, nn] = h(!1), [N, un] = h(""), [C, en] = h(!1), [tn, fn] = h(!1), [yn, E] = h(null), [Cn, wn] = h([]), [An, bn] = h([]), [n, jn] = h(!1), [En, V] = h(1), [In, Z] = h(null), [S, Dn] = h(!1), [l, Gn] = h(!1), [c, Fn] = h(!1), [x, Un] = h(!1), [H, Yn] = h(!1), [W, $n] = h(!1), [m, Nn] = h(!1), [u, Vn] = h(!1), [f, Zn] = h(!1), [dn, _n] = h(!1), [T, qn] = h(!1), on = G(/* @__PURE__ */ new Set()), _ = G(/* @__PURE__ */ new Map()), k = G(null), A = G(null);
403
+ const [S, ln] = h(null), [B, cn] = h([]), [D, Bn] = h(4), [xn, J] = h(1), [A, Hn] = h(!1), [Y, Wn] = h(1), [P, Cn] = h(null), [v, _] = h("ready"), [mn, un] = h(10), [Q, X] = h(10), [nn, fn] = h(20), [An, en] = h(0), [$, tn] = h(!1), [N, yn] = h(""), [E, on] = h(!1), [wn, bn] = h(!1), [kn, G] = h(null), [En, dn] = h([]), [jn, In] = h([]), [n, Dn] = h(!1), [Gn, V] = h(1), [Sn, O] = h(null), [I, Fn] = h(!1), [l, Un] = h(!1), [c, Yn] = h(!1), [x, _n] = h(!1), [H, $n] = h(!1), [W, Nn] = h(!1), [m, Vn] = h(!1), [u, On] = h(!1), [f, Zn] = h(!1), [rn, qn] = h(!1), [z, Kn] = h(!1), hn = U(/* @__PURE__ */ new Set()), Z = U(/* @__PURE__ */ new Map()), T = U(null), j = U(null);
301
404
  q(() => {
302
- s !== void 0 ? A.current = new li(s) : A.current = null;
405
+ s !== void 0 ? j.current = new bi(s) : j.current = null;
303
406
  }, [s]);
304
- const Kn = () => A.current ? A.current.next() : Math.random(), Sn = (i) => A.current ? A.current.nextInt(i) : Math.floor(Math.random() * i);
407
+ const Jn = () => j.current ? j.current.next() : Math.random(), vn = (i) => j.current ? j.current.nextInt(i) : Math.floor(Math.random() * i);
305
408
  q(() => {
306
409
  const i = () => {
307
- const e = a ?? window.innerWidth, t = g ?? window.innerHeight, r = e < 768 || e === 926 && t === 428 || e === 932 && t === 430, y = t < 700, R = e / t > 1.8, I = e === 768 && t === 1024, hn = e === 1024 && t === 768, D = e === 820 && t === 1180, M = e === 1180 && t === 820, B = e === 540 && t === 720, kn = e === 720 && t === 540, zn = e === 1024 && t === 1366, Tn = e === 1366 && t === 1024, ii = e >= 1200 && t >= 600 && !r;
308
- Dn(ii), Gn(I), Fn(hn), Un(D), Yn(M), $n(B), Nn(kn), Vn(zn), Zn(Tn), qn(R);
309
- const ei = r && e > t || r || // ✅ ВСЕ мобильные устройства (включая portrait)
410
+ const e = g ?? window.innerWidth, t = a ?? window.innerHeight, r = e < 768 || e === 926 && t === 428 || e === 932 && t === 430, y = t < 700, R = e / t > 1.8, k = e === 768 && t === 1024, an = e === 1024 && t === 768, F = e === 820 && t === 1180, M = e === 1180 && t === 820, C = e === 540 && t === 720, zn = e === 720 && t === 540, Rn = e === 1024 && t === 1366, Mn = e === 1366 && t === 1024, ti = e >= 1200 && t >= 600 && !r;
411
+ Fn(ti), Un(k), Yn(an), _n(F), $n(M), Nn(C), Vn(zn), On(Rn), Zn(Mn), Kn(R);
412
+ const oi = r && e > t || r || // ✅ ВСЕ мобильные устройства (включая portrait)
310
413
  t < 700 || R || // ✅ Широкие экраны
311
- e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 || I || hn || D || M || B || kn || zn || Tn || S;
312
- if (_n(ei), jn(r), r)
313
- Z(o && o >= 320 ? o : null), V(1);
414
+ e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 || k || an || F || M || C || zn || Rn || Mn || I;
415
+ if (qn(oi), Dn(r), r)
416
+ O(d && d >= 320 ? d : null), V(1);
314
417
  else if (y)
315
- Z(o && o >= 400 ? o : null), V(1);
418
+ O(d && d >= 400 ? d : null), V(1);
316
419
  else if (R) {
317
- const sn = o ? Math.max(400, Math.min(1200, o)) : Math.min(1e3, Math.min(e, t) * 0.9);
318
- Z(sn), V(0.85);
420
+ const gn = d ? Math.max(400, Math.min(1200, d)) : Math.min(1e3, Math.min(e, t) * 0.9);
421
+ O(gn), V(0.85);
319
422
  } else {
320
- const sn = o ? Math.max(400, Math.min(1200, o)) : Math.min(1e3, Math.min(e, t) * 0.9);
321
- Z(sn), V(1);
423
+ const gn = d ? Math.max(400, Math.min(1200, d)) : Math.min(1e3, Math.min(e, t) * 0.9);
424
+ O(gn), V(1);
322
425
  }
323
426
  };
324
427
  return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
325
- }, [a, g, o]);
326
- const rn = (i) => [...i].sort(() => Kn() - 0.5).slice(0, 6), On = (i) => {
327
- k.current && k.current.abort(), k.current = new AbortController();
428
+ }, [g, a, d]);
429
+ const sn = (i) => [...i].sort(() => Jn() - 0.5).slice(0, 6), Qn = (i) => {
430
+ T.current && T.current.abort(), T.current = new AbortController();
328
431
  const t = K[i].map((r) => r.src);
329
- an(t, k.current.signal).then((r) => {
432
+ pn(t, T.current.signal).then((r) => {
330
433
  t.forEach((y) => {
331
- on.current.add(y), r.has(y) && _.current.set(y, r.get(y));
434
+ hn.current.add(y), r.has(y) && Z.current.set(y, r.get(y));
332
435
  });
333
436
  }).catch(() => {
334
437
  });
335
- }, vn = () => {
336
- if (!v) return;
337
- const i = rn(K[v]);
338
- ln(i), cn(!0), nn(!1), xn(1), X(0), wn([]), bn([]);
438
+ }, Tn = () => {
439
+ if (!S) return;
440
+ const i = sn(K[S]);
441
+ cn(i), Hn(!0), tn(!1), Wn(1), en(0), dn([]), In([]);
339
442
  const e = i.map((t) => t.src);
340
- an(e, k.current?.signal).then((t) => {
443
+ pn(e, T.current?.signal).then((t) => {
341
444
  e.forEach((r) => {
342
- on.current.add(r), t.has(r) && _.current.set(r, t.get(r));
445
+ hn.current.add(r), t.has(r) && Z.current.set(r, t.get(r));
343
446
  });
344
447
  }).catch(() => {
345
448
  }), Pn(i, [], !0);
346
- }, Pn = (i = L, e = An, t = !1) => {
347
- const r = rn(i.length ? i : K[v]);
348
- let y = Sn(r.length), R = r[y].name, I = 0;
349
- for (; e.includes(R) && I < 20; )
350
- y = Sn(r.length), R = r[y].name, I++;
351
- if (ln(r), Ln(y), bn([...e, R]), en(!1), un(""), mn(20), E(null), v && !t) {
352
- const D = rn(K[v].filter((M) => !e.includes(M.name))).map((M) => M.src);
353
- an(D, k.current?.signal).then((M) => {
354
- D.forEach((B) => {
355
- on.current.add(B), M.has(B) && _.current.set(B, M.get(B));
449
+ }, Pn = (i = B, e = jn, t = !1) => {
450
+ const r = sn(i.length ? i : K[S]);
451
+ let y = vn(r.length), R = r[y].name, k = 0;
452
+ for (; e.includes(R) && k < 20; )
453
+ y = vn(r.length), R = r[y].name, k++;
454
+ if (cn(r), Cn(y), In([...e, R]), on(!1), yn(""), fn(20), G(null), S && !t) {
455
+ const F = sn(K[S].filter((M) => !e.includes(M.name))).map((M) => M.src);
456
+ pn(F, T.current?.signal).then((M) => {
457
+ F.forEach((C) => {
458
+ hn.current.add(C), M.has(C) && Z.current.set(C, M.get(C));
356
459
  });
357
460
  }).catch(() => {
358
461
  });
359
462
  }
360
- t ? (Y("ready"), Wn(10), J(10)) : (Y("memorize"), J(10));
463
+ t ? (_("ready"), un(10), X(10)) : (_("memorize"), X(10));
361
464
  };
362
465
  q(() => {
363
- if (!(!j || $ || C)) {
364
- if (P === "ready")
365
- if (Hn <= 0) Y("memorize");
466
+ if (!(!A || $ || E)) {
467
+ if (v === "ready")
468
+ if (mn <= 0) _("memorize");
366
469
  else {
367
- const i = setTimeout(() => Wn((e) => e - 1), 1e3);
470
+ const i = setTimeout(() => un((e) => e - 1), 1e3);
368
471
  return () => clearTimeout(i);
369
472
  }
370
- if (P === "memorize")
371
- if (O <= 0) Y("guess");
473
+ if (v === "memorize")
474
+ if (Q <= 0) _("guess");
372
475
  else {
373
- const i = setTimeout(() => J((e) => e - 1), 1e3);
476
+ const i = setTimeout(() => X((e) => e - 1), 1e3);
374
477
  return () => clearTimeout(i);
375
478
  }
376
- if (P === "guess") {
377
- if (Q <= 0) {
378
- en(!0), E("wrong");
379
- const e = L[z].name, t = L[z].aliases, r = [e, ...t || []].join(", ");
380
- wn((y) => [
479
+ if (v === "guess") {
480
+ if (nn <= 0) {
481
+ on(!0), G("wrong");
482
+ const e = B[P].name, t = B[P].aliases, r = [e, ...t || []].join(", ");
483
+ dn((y) => [
381
484
  ...y,
382
- { round: U, answer: N, correct: r, result: "wrong" }
485
+ { round: Y, answer: N, correct: r, result: "wrong" }
383
486
  ]);
384
487
  return;
385
488
  }
386
- const i = setTimeout(() => mn((e) => e - 1), 1e3);
489
+ const i = setTimeout(() => fn((e) => e - 1), 1e3);
387
490
  return () => clearTimeout(i);
388
491
  }
389
492
  }
390
- }, [P, Hn, O, Q, j, $, C, L, z, U, N]);
391
- const Jn = () => {
392
- if (z === null || tn) return;
393
- const i = L[z].name, e = L[z].aliases, t = N.toLowerCase().trim();
493
+ }, [
494
+ v,
495
+ mn,
496
+ Q,
497
+ nn,
498
+ A,
499
+ $,
500
+ E,
501
+ B,
502
+ P,
503
+ Y,
504
+ N
505
+ ]);
506
+ const Xn = () => {
507
+ if (P === null || wn) return;
508
+ const i = B[P].name, e = B[P].aliases, t = N.toLowerCase().trim();
394
509
  let r = "wrong";
395
- const y = [i, ...e || []].map((I) => I.toLowerCase()), R = [i, ...e || []].join(", ");
396
- y.includes(t) ? (X((I) => I + 1), E("correct"), r = "correct") : y.some((I) => ci(t, I) === 1) ? (X((I) => I + 0.5), E("almost"), r = "almost") : (E("wrong"), r = "wrong"), wn((I) => [...I, { round: U, answer: t, correct: R, result: r }]), fn(!0), setTimeout(() => {
397
- fn(!1), en(!0);
510
+ const y = [i, ...e || []].map((k) => k.toLowerCase()), R = [i, ...e || []].join(", ");
511
+ y.includes(t) ? (en((k) => k + 1), G("correct"), r = "correct") : y.some((k) => ki(t, k) === 1) ? (en((k) => k + 0.5), G("almost"), r = "almost") : (G("wrong"), r = "wrong"), dn((k) => [
512
+ ...k,
513
+ { round: Y, answer: t, correct: R, result: r }
514
+ ]), bn(!0), setTimeout(() => {
515
+ bn(!1), on(!0);
398
516
  }, 600);
399
- }, Qn = () => U < F ? (xn((i) => i + 1), Pn()) : nn(!0), Xn = () => {
400
- k.current && k.current.abort(), cn(!1), nn(!1), pn(null);
401
- }, ni = di(
402
- () => {
403
- const i = a ?? window.innerWidth, e = g ?? window.innerHeight, t = !n && i >= 1200 && i <= 1400;
404
- return n && i > e || e < 700 && !t ? null : (
405
- // ensure logo is positioned inside the square container
406
- /* @__PURE__ */ d("div", { style: { ...w.gmLogoFixed, position: "absolute", top: 16, left: 16, zIndex: 30 }, children: /* @__PURE__ */ p("picture", { children: [
407
- /* @__PURE__ */ d(
408
- "source",
409
- {
410
- srcSet: window.origin + "/cloud/speakid/games/whatsmissing/logo.svg",
411
- type: "image/svg+xml"
412
- }
413
- ),
414
- /* @__PURE__ */ d(
415
- "img",
416
- {
417
- src: window.origin + "/cloud/speakid/games/whatsmissing/logo.png",
418
- alt: "SPEAKID Logo",
419
- style: w.gmLogoImg,
420
- loading: "lazy"
421
- }
422
- )
423
- ] }) })
424
- );
425
- },
426
- [n, a, g]
427
- );
428
- return /* @__PURE__ */ d(
517
+ }, ni = () => Y < D ? (Wn((i) => i + 1), Pn()) : tn(!0), ii = () => {
518
+ T.current && T.current.abort(), Hn(!1), tn(!1), ln(null), J(2);
519
+ }, ei = ri(() => {
520
+ const i = g ?? window.innerWidth, e = a ?? window.innerHeight, t = !n && i >= 1200 && i <= 1400;
521
+ return n && i > e || e < 700 && !t ? null : (
522
+ // ensure logo is positioned inside the square container
523
+ /* @__PURE__ */ w("div", { style: { ...o.gmLogoFixed, position: "absolute", top: 16, left: 16, zIndex: 30 }, children: /* @__PURE__ */ p("picture", { children: [
524
+ /* @__PURE__ */ w(
525
+ "source",
526
+ {
527
+ srcSet: window.origin + "/cloud/speakid/games/whatsmissing/logo.svg",
528
+ type: "image/svg+xml"
529
+ }
530
+ ),
531
+ /* @__PURE__ */ w(
532
+ "img",
533
+ {
534
+ src: window.origin + "/cloud/speakid/games/whatsmissing/logo.png",
535
+ alt: "SPEAKID Logo",
536
+ style: o.gmLogoImg,
537
+ loading: "lazy"
538
+ }
539
+ )
540
+ ] }) })
541
+ );
542
+ }, [n, g, a]);
543
+ return /* @__PURE__ */ w(
429
544
  "div",
430
545
  {
431
546
  ref: b,
@@ -444,12 +559,12 @@ function mi({
444
559
  right: 0,
445
560
  bottom: 0
446
561
  },
447
- children: /* @__PURE__ */ d(
562
+ children: /* @__PURE__ */ w(
448
563
  "div",
449
564
  {
450
565
  style: {
451
- width: n ? "100%" : In || o || 1e3,
452
- height: n ? "100%" : In || o || 1e3,
566
+ width: n ? "100%" : Sn || d || 1e3,
567
+ height: n ? "100%" : Sn || d || 1e3,
453
568
  display: "flex",
454
569
  justifyContent: "center",
455
570
  alignItems: "center",
@@ -460,10 +575,10 @@ function mi({
460
575
  margin: n ? "0 auto" : "unset",
461
576
  position: "relative",
462
577
  // needed so absolute logo is inside the square
463
- transform: `scale(${En})`
578
+ transform: `scale(${Gn})`
464
579
  // ✅ Применяем масштаб для широких экранов
465
580
  },
466
- children: /* @__PURE__ */ d(
581
+ children: /* @__PURE__ */ w(
467
582
  "div",
468
583
  {
469
584
  style: {
@@ -475,161 +590,275 @@ function mi({
475
590
  alignItems: "center"
476
591
  },
477
592
  children: /* @__PURE__ */ p("div", { id: "whats-missing-root", children: [
478
- !n && ni,
479
- !v && !j && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
480
- /* @__PURE__ */ d("h1", { style: w.gmHeadline1, children: "WHAT'S MISSING?" }),
481
- /* @__PURE__ */ d("p", { style: w.gmBodyM, children: "Select a theme:" }),
482
- /* @__PURE__ */ d("div", { style: { display: "flex", gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "16px" }, children: ["animals", "food", "toys"].map((i) => /* @__PURE__ */ d("button", { style: {
483
- ...w.gmButton,
484
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "12px 24px",
485
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
486
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "70px" : "auto"
487
- }, onClick: () => {
488
- pn(i), On(i);
489
- }, children: i === "animals" ? "🐶 Animals" : i === "food" ? "🍎 Food" : "🧸 Toys" }, i)) }),
593
+ !n && ei,
594
+ !S && !A && xn === 1 && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
595
+ /* @__PURE__ */ w("h1", { style: o.gmHeadline1, children: "WHAT'S MISSING?" }),
490
596
  /* @__PURE__ */ p("div", { style: { marginTop: 24 }, children: [
491
- /* @__PURE__ */ d("p", { style: w.gmBodyS, children: "Choose number of rounds:" }),
492
- /* @__PURE__ */ d("div", { style: { display: "flex", gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px", marginTop: 8 }, children: [3, 4, 5].map((i) => /* @__PURE__ */ d(
493
- "button",
597
+ /* @__PURE__ */ w("p", { style: o.gmBodyS, children: "Choose number of rounds:" }),
598
+ /* @__PURE__ */ w(
599
+ "div",
494
600
  {
495
601
  style: {
496
- ...w.gmButton,
497
- ...F === i ? w.gmButtonActive : {},
498
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
499
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
500
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
602
+ display: "flex",
603
+ gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
604
+ marginTop: 8
501
605
  },
502
- onClick: () => Mn(i),
503
- children: i
606
+ children: [3, 4, 5].map((i) => /* @__PURE__ */ w(
607
+ "button",
608
+ {
609
+ style: {
610
+ ...o.gmButton,
611
+ ...D === i ? o.gmButtonActive : {},
612
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
613
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
614
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
615
+ },
616
+ onClick: () => Bn(i),
617
+ children: i
618
+ },
619
+ i
620
+ ))
621
+ }
622
+ )
623
+ ] }),
624
+ /* @__PURE__ */ w(
625
+ "button",
626
+ {
627
+ style: {
628
+ ...o.gmButton,
629
+ marginTop: 24,
630
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
631
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
632
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
504
633
  },
505
- i
506
- )) })
507
- ] })
634
+ onClick: () => J(2),
635
+ children: "Play"
636
+ }
637
+ )
508
638
  ] }),
509
- v && !j && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
510
- /* @__PURE__ */ p("h1", { style: w.gmHeadline1, children: [
511
- "Theme selected: ",
512
- v
513
- ] }),
514
- /* @__PURE__ */ p("p", { style: w.gmBodyM, children: [
639
+ !S && !A && xn === 2 && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
640
+ /* @__PURE__ */ w("p", { style: o.gmBodyM, children: "Select a theme:" }),
641
+ /* @__PURE__ */ p("p", { style: o.gmBodyS, children: [
515
642
  "Rounds: ",
516
- F
643
+ D
517
644
  ] }),
518
- /* @__PURE__ */ d("button", { style: {
519
- ...w.gmButton,
520
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
521
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
522
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
523
- }, onClick: vn, children: " Start game" })
645
+ /* @__PURE__ */ w(
646
+ "div",
647
+ {
648
+ style: {
649
+ display: "grid",
650
+ gridTemplateColumns: n ? "repeat(2, 1fr)" : "repeat(4, 1fr)",
651
+ gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "12px",
652
+ maxWidth: n ? 280 : 420,
653
+ margin: "0 auto"
654
+ },
655
+ children: ui.map((i) => /* @__PURE__ */ w(
656
+ "button",
657
+ {
658
+ style: {
659
+ ...o.gmButton,
660
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "10px 16px",
661
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "14px"
662
+ },
663
+ onClick: () => {
664
+ ln(i), Qn(i);
665
+ },
666
+ children: fi[i]
667
+ },
668
+ i
669
+ ))
670
+ }
671
+ ),
672
+ /* @__PURE__ */ w(
673
+ "button",
674
+ {
675
+ style: {
676
+ ...o.gmButton,
677
+ marginTop: 24,
678
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
679
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
680
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
681
+ },
682
+ onClick: () => J(1),
683
+ children: "Back"
684
+ }
685
+ )
524
686
  ] }),
525
- $ && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
526
- /* @__PURE__ */ d("h1", { style: {
527
- ...w.gmHeadline1,
528
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : w.gmHeadline1.marginTop,
529
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : w.gmHeadline1.marginBottom
530
- }, children: "Results" }),
531
- /* @__PURE__ */ p("h2", { style: {
532
- ...w.gmHeadline3,
533
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : w.gmHeadline3.marginTop,
534
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : w.gmHeadline3.marginBottom
535
- }, children: [
536
- "Your score: ",
537
- Bn,
538
- " / ",
539
- F
687
+ S && !A && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
688
+ /* @__PURE__ */ p("h1", { style: o.gmHeadline1, children: [
689
+ "Theme selected: ",
690
+ S
540
691
  ] }),
541
- /* @__PURE__ */ d("p", { style: {
542
- ...w.gmBodyM,
543
- color: "#10b981",
544
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "12px",
545
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : w.gmBodyM.marginBottom
546
- }, children: "Yahoo! You did it! 🍬✨" }),
547
- /* @__PURE__ */ p("table", { style: {
548
- ...w.gmTable,
549
- marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "20px",
550
- marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "4px" : "32px"
551
- }, children: [
552
- /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ p("tr", { children: [
553
- /* @__PURE__ */ d("th", { children: "Round" }),
554
- /* @__PURE__ */ d("th", { children: "Your Answer" }),
555
- /* @__PURE__ */ d("th", { children: "Correct" }),
556
- /* @__PURE__ */ d("th", { children: "Result" })
557
- ] }) }),
558
- /* @__PURE__ */ d("tbody", { children: Cn.map((i, e) => /* @__PURE__ */ p("tr", { children: [
559
- /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.round }),
560
- /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.answer || "—" }),
561
- /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.correct }),
562
- /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
563
- ] }, e)) })
692
+ /* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
693
+ "Rounds: ",
694
+ D
564
695
  ] }),
565
- /* @__PURE__ */ p("div", { style: {
566
- display: "flex",
567
- gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
568
- marginTop: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "2px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S ? "12px" : "24px"
569
- }, children: [
570
- /* @__PURE__ */ d("button", { style: {
571
- ...w.gmButton,
572
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
573
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
574
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
575
- }, onClick: vn, children: "🔁 Play again" }),
576
- /* @__PURE__ */ d("button", { style: {
577
- ...w.gmButton,
578
- padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
579
- fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
580
- minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
581
- }, onClick: Xn, children: "⬅️ Choose theme" })
582
- ] })
696
+ /* @__PURE__ */ w(
697
+ "button",
698
+ {
699
+ style: {
700
+ ...o.gmButton,
701
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
702
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
703
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
704
+ },
705
+ onClick: Tn,
706
+ children: " Start game"
707
+ }
708
+ )
583
709
  ] }),
584
- j && !$ && /* @__PURE__ */ p("div", { style: w.gmGameLayout, children: [
710
+ $ && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
711
+ /* @__PURE__ */ w(
712
+ "h1",
713
+ {
714
+ style: {
715
+ ...o.gmHeadline1,
716
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : o.gmHeadline1.marginTop,
717
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmHeadline1.marginBottom
718
+ },
719
+ children: "Results"
720
+ }
721
+ ),
722
+ /* @__PURE__ */ p(
723
+ "h2",
724
+ {
725
+ style: {
726
+ ...o.gmHeadline3,
727
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : o.gmHeadline3.marginTop,
728
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmHeadline3.marginBottom
729
+ },
730
+ children: [
731
+ "Your score: ",
732
+ An,
733
+ " / ",
734
+ D
735
+ ]
736
+ }
737
+ ),
738
+ /* @__PURE__ */ w(
739
+ "p",
740
+ {
741
+ style: {
742
+ ...o.gmBodyM,
743
+ color: "#10b981",
744
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "12px",
745
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmBodyM.marginBottom
746
+ },
747
+ children: "Yahoo! You did it! 🍬✨"
748
+ }
749
+ ),
750
+ /* @__PURE__ */ p(
751
+ "table",
752
+ {
753
+ style: {
754
+ ...o.gmTable,
755
+ marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "20px",
756
+ marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "4px" : "32px"
757
+ },
758
+ children: [
759
+ /* @__PURE__ */ w("thead", { children: /* @__PURE__ */ p("tr", { children: [
760
+ /* @__PURE__ */ w("th", { children: "Round" }),
761
+ /* @__PURE__ */ w("th", { children: "Your Answer" }),
762
+ /* @__PURE__ */ w("th", { children: "Correct" }),
763
+ /* @__PURE__ */ w("th", { children: "Result" })
764
+ ] }) }),
765
+ /* @__PURE__ */ w("tbody", { children: En.map((i, e) => /* @__PURE__ */ p("tr", { children: [
766
+ /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.round }),
767
+ /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.answer || "—" }),
768
+ /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.correct }),
769
+ /* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
770
+ ] }, e)) })
771
+ ]
772
+ }
773
+ ),
774
+ /* @__PURE__ */ p(
775
+ "div",
776
+ {
777
+ style: {
778
+ display: "flex",
779
+ gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
780
+ marginTop: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "2px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I ? "12px" : "24px"
781
+ },
782
+ children: [
783
+ /* @__PURE__ */ w(
784
+ "button",
785
+ {
786
+ style: {
787
+ ...o.gmButton,
788
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
789
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
790
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
791
+ },
792
+ onClick: Tn,
793
+ children: "🔁 Play again"
794
+ }
795
+ ),
796
+ /* @__PURE__ */ w(
797
+ "button",
798
+ {
799
+ style: {
800
+ ...o.gmButton,
801
+ padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
802
+ fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
803
+ minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
804
+ },
805
+ onClick: ii,
806
+ children: "⬅️ Choose theme"
807
+ }
808
+ )
809
+ ]
810
+ }
811
+ )
812
+ ] }),
813
+ A && !$ && /* @__PURE__ */ p("div", { style: o.gmGameLayout, children: [
585
814
  /* @__PURE__ */ p(
586
815
  "div",
587
816
  {
588
817
  style: {
589
- minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
818
+ minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
590
819
  display: "flex",
591
820
  flexDirection: "column",
592
821
  justifyContent: "center",
593
822
  alignItems: "center",
594
- paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
823
+ paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
595
824
  },
596
825
  children: [
597
- P === "ready" && /* @__PURE__ */ p(Rn, { children: [
598
- /* @__PURE__ */ d("h1", { style: { ...w.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
599
- /* @__PURE__ */ d("div", { style: w.gmHourglass, children: "⏳" })
826
+ v === "ready" && /* @__PURE__ */ p(Ln, { children: [
827
+ /* @__PURE__ */ w("h1", { style: { ...o.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
828
+ /* @__PURE__ */ w("div", { style: o.gmHourglass, children: "⏳" })
600
829
  ] }),
601
- P === "memorize" && /* @__PURE__ */ p("p", { style: { ...w.gmBodyM, color: "#10b981" }, children: [
830
+ v === "memorize" && /* @__PURE__ */ p("p", { style: { ...o.gmBodyM, color: "#10b981" }, children: [
602
831
  "MEMORIZE (",
603
- O,
832
+ Q,
604
833
  ")"
605
834
  ] }),
606
- P === "guess" && !C && /* @__PURE__ */ p("p", { style: w.gmBodyM, children: [
835
+ v === "guess" && !E && /* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
607
836
  "⏳ Time left: ",
608
- Q,
837
+ nn,
609
838
  "s"
610
839
  ] })
611
840
  ]
612
841
  }
613
842
  ),
614
- P !== "ready" && /* @__PURE__ */ d(
843
+ v !== "ready" && /* @__PURE__ */ w(
615
844
  "div",
616
845
  {
617
846
  style: {
618
- ...w.gmGrid,
619
- ...T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
847
+ ...o.gmGrid,
848
+ ...z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
620
849
  // ✅ Широкие экраны: полная ширина грида
621
- gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
850
+ gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
622
851
  // desktop: 3 колонки фиксированного размера
623
- gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
852
+ gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
624
853
  // desktop: стандартная высота
625
- gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
854
+ gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
626
855
  justifyItems: "center",
627
856
  maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
628
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
857
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
629
858
  },
630
- children: L.map((i, e) => {
631
- const t = z === e && P === "guess" && !C;
632
- return /* @__PURE__ */ d(
859
+ children: B.map((i, e) => {
860
+ const t = P === e && v === "guess" && !E;
861
+ return /* @__PURE__ */ w(
633
862
  "div",
634
863
  {
635
864
  style: {
@@ -640,18 +869,18 @@ function mi({
640
869
  boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
641
870
  transition: "all 0.3s ease",
642
871
  cursor: "pointer",
643
- ...yn === "correct" && z === e ? {
872
+ ...kn === "correct" && P === e ? {
644
873
  boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
645
874
  transform: "scale(1.03)"
646
875
  } : {},
647
- ...yn === "wrong" && z === e ? {
876
+ ...kn === "wrong" && P === e ? {
648
877
  boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
649
878
  transform: "scale(1.03)"
650
879
  } : {}
651
880
  },
652
881
  children: !t && (() => {
653
- const r = _.current.get(i.src), y = r?.complete && r.src ? r.src : i.src;
654
- return /* @__PURE__ */ d(
882
+ const r = Z.current.get(i.src), y = r?.complete && r.src ? r.src : i.src;
883
+ return /* @__PURE__ */ w(
655
884
  "img",
656
885
  {
657
886
  src: y,
@@ -674,58 +903,77 @@ function mi({
674
903
  })
675
904
  }
676
905
  ),
677
- /* @__PURE__ */ p("div", { style: {
678
- marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
679
- height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : T || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
680
- }, children: [
681
- P === "guess" && !C && /* @__PURE__ */ d("div", { style: {
682
- display: "flex",
683
- flexDirection: dn ? "row" : "column",
684
- gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
685
- alignItems: "center",
686
- justifyContent: "center",
687
- width: "100%",
688
- maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
689
- }, children: /* @__PURE__ */ p(Rn, { children: [
690
- /* @__PURE__ */ d(
691
- "input",
692
- {
693
- type: "text",
694
- placeholder: "Type the missing word",
695
- value: N,
696
- onChange: (i) => un(i.target.value),
697
- style: {
698
- ...w.gmInput,
699
- width: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "250px" : "auto",
700
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
701
- fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
702
- flex: dn ? "1" : "none"
906
+ /* @__PURE__ */ p(
907
+ "div",
908
+ {
909
+ style: {
910
+ marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
911
+ height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
912
+ },
913
+ children: [
914
+ v === "guess" && !E && /* @__PURE__ */ w(
915
+ "div",
916
+ {
917
+ style: {
918
+ display: "flex",
919
+ flexDirection: rn ? "row" : "column",
920
+ gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
921
+ alignItems: "center",
922
+ justifyContent: "center",
923
+ width: "100%",
924
+ maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
925
+ },
926
+ children: /* @__PURE__ */ p(Ln, { children: [
927
+ /* @__PURE__ */ w(
928
+ "input",
929
+ {
930
+ type: "text",
931
+ placeholder: "Type the missing word",
932
+ value: N,
933
+ onChange: (i) => yn(i.target.value),
934
+ style: {
935
+ ...o.gmInput,
936
+ width: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "250px" : "auto",
937
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
938
+ fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
939
+ flex: rn ? "1" : "none"
940
+ }
941
+ }
942
+ ),
943
+ /* @__PURE__ */ w(
944
+ "button",
945
+ {
946
+ style: {
947
+ ...o.gmButton,
948
+ marginLeft: rn ? "8px" : "0",
949
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
950
+ fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
951
+ minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
952
+ flexShrink: 0
953
+ },
954
+ onClick: Xn,
955
+ disabled: wn,
956
+ children: wn ? "..." : "Check"
957
+ }
958
+ )
959
+ ] })
703
960
  }
704
- }
705
- ),
706
- /* @__PURE__ */ d(
707
- "button",
708
- {
709
- style: {
710
- ...w.gmButton,
711
- marginLeft: dn ? "8px" : "0",
712
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
713
- fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
714
- minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
715
- flexShrink: 0
716
- },
717
- onClick: Jn,
718
- disabled: tn,
719
- children: tn ? "..." : "Check"
720
- }
721
- )
722
- ] }) }),
723
- C && /* @__PURE__ */ d("button", { style: {
724
- ...w.gmButton,
725
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
726
- fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
727
- }, onClick: Qn, children: "Next round" })
728
- ] })
961
+ ),
962
+ E && /* @__PURE__ */ w(
963
+ "button",
964
+ {
965
+ style: {
966
+ ...o.gmButton,
967
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
968
+ fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
969
+ },
970
+ onClick: ni,
971
+ children: "Next round"
972
+ }
973
+ )
974
+ ]
975
+ }
976
+ )
729
977
  ] })
730
978
  ] })
731
979
  }
@@ -736,6 +984,6 @@ function mi({
736
984
  );
737
985
  }
738
986
  export {
739
- mi as Game,
987
+ Ti as Game,
740
988
  K as themes
741
989
  };