scrabble-solver 2.16.7 → 2.17.0

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.
Files changed (276) hide show
  1. package/.nx/workspace-data/d/server-process.json +2 -2
  2. package/.nx/workspace-data/file-map.json +548 -572
  3. package/.nx/workspace-data/lockfile-dependencies.hash +1 -1
  4. package/.nx/workspace-data/lockfile-nodes.hash +1 -1
  5. package/.nx/workspace-data/nx_files.nxt +0 -0
  6. package/.nx/workspace-data/parsed-lock-file.dependencies.json +185 -160
  7. package/.nx/workspace-data/parsed-lock-file.nodes.json +406 -370
  8. package/.nx/workspace-data/project-graph.json +656 -552
  9. package/.nx/workspace-data/source-maps.json +96 -0
  10. package/.oxlintrc.json +6 -0
  11. package/CLAUDE.md +22 -17
  12. package/README.md +9 -0
  13. package/bun.lock +107 -133
  14. package/cypress/e2e/app.spec.cy.ts +4 -4
  15. package/cypress/e2e/features/solver-paths.ts +66 -0
  16. package/cypress/e2e/features.spec.cy.ts +1 -0
  17. package/cypress/support/lib/actions.ts +28 -9
  18. package/lerna.json +1 -1
  19. package/package.json +8 -7
  20. package/packages/configs/package.json +3 -3
  21. package/packages/constants/package.json +1 -1
  22. package/packages/dictionaries/README.md +1 -1
  23. package/packages/dictionaries/build/Dictionaries.d.ts +2 -2
  24. package/packages/dictionaries/build/Dictionaries.js +6 -6
  25. package/packages/dictionaries/build/lib/DiskCache.d.ts +11 -4
  26. package/packages/dictionaries/build/lib/DiskCache.js +27 -10
  27. package/packages/dictionaries/build/lib/LayeredCache.d.ts +4 -4
  28. package/packages/dictionaries/build/lib/LayeredCache.js +3 -3
  29. package/packages/dictionaries/build/lib/MemoryCache.d.ts +4 -4
  30. package/packages/dictionaries/build/lib/MemoryCache.js +2 -2
  31. package/packages/dictionaries/build/lib/createCacheTimestampComparator.d.ts +2 -2
  32. package/packages/dictionaries/build/lib/downloadDictionary.d.ts +2 -2
  33. package/packages/dictionaries/build/lib/downloadDictionary.js +4 -3
  34. package/packages/dictionaries/build/lib/getDictionaryFilepath.d.ts +3 -1
  35. package/packages/dictionaries/build/lib/getDictionaryFilepath.js +8 -3
  36. package/packages/dictionaries/package.json +7 -6
  37. package/packages/dictionaries/src/Dictionaries.ts +12 -12
  38. package/packages/dictionaries/src/lib/DiskCache.test.ts +85 -0
  39. package/packages/dictionaries/src/lib/DiskCache.ts +34 -14
  40. package/packages/dictionaries/src/lib/LayeredCache.ts +7 -7
  41. package/packages/dictionaries/src/lib/MemoryCache.ts +6 -6
  42. package/packages/dictionaries/src/lib/createCacheTimestampComparator.ts +2 -2
  43. package/packages/dictionaries/src/lib/downloadDictionary.ts +5 -4
  44. package/packages/dictionaries/src/lib/getDictionaryFilepath.ts +7 -2
  45. package/packages/gaddag/build/Gaddag.d.ts +39 -0
  46. package/packages/gaddag/build/Gaddag.js +128 -0
  47. package/packages/gaddag/build/buildGaddag.d.ts +10 -0
  48. package/packages/gaddag/build/buildGaddag.js +360 -0
  49. package/packages/gaddag/build/constants.d.ts +12 -0
  50. package/packages/gaddag/build/constants.js +15 -0
  51. package/packages/gaddag/build/index.d.ts +3 -0
  52. package/packages/gaddag/build/index.js +13 -0
  53. package/packages/logger/package.json +1 -1
  54. package/packages/scrabble-solver/.next/BUILD_ID +1 -1
  55. package/packages/scrabble-solver/.next/build-manifest.json +13 -13
  56. package/packages/scrabble-solver/.next/cache/.previewinfo +1 -1
  57. package/packages/scrabble-solver/.next/cache/.rscinfo +1 -1
  58. package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
  59. package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
  60. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
  61. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
  62. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
  63. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  64. package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
  65. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
  66. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
  67. package/packages/scrabble-solver/.next/diagnostics/framework.json +1 -1
  68. package/packages/scrabble-solver/.next/next-server.js.nft.json +1 -1
  69. package/packages/scrabble-solver/.next/prerender-manifest.json +4 -4
  70. package/packages/scrabble-solver/.next/required-server-files.js +3 -2
  71. package/packages/scrabble-solver/.next/required-server-files.json +3 -2
  72. package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
  73. package/packages/scrabble-solver/.next/server/chunks/129.js +1 -0
  74. package/packages/scrabble-solver/.next/server/chunks/30.js +1 -1
  75. package/packages/scrabble-solver/.next/server/chunks/392.js +1 -1
  76. package/packages/scrabble-solver/.next/server/chunks/671.js +1 -1
  77. package/packages/scrabble-solver/.next/server/chunks/712.js +1 -1
  78. package/packages/scrabble-solver/.next/server/chunks/785.js +1 -0
  79. package/packages/scrabble-solver/.next/server/chunks/791.js +1 -1
  80. package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
  81. package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
  82. package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
  83. package/packages/scrabble-solver/.next/server/pages/_app.js +1 -1
  84. package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
  85. package/packages/scrabble-solver/.next/server/pages/_error.js +1 -1
  86. package/packages/scrabble-solver/.next/server/pages/_error.js.nft.json +1 -1
  87. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +1 -1
  88. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  89. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js +1 -1
  90. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  91. package/packages/scrabble-solver/.next/server/pages/api/solve.js +1 -1
  92. package/packages/scrabble-solver/.next/server/pages/api/solve.js.nft.json +1 -1
  93. package/packages/scrabble-solver/.next/server/pages/api/verify.js +1 -1
  94. package/packages/scrabble-solver/.next/server/pages/api/verify.js.nft.json +1 -1
  95. package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
  96. package/packages/scrabble-solver/.next/server/pages/index.js +1 -1
  97. package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
  98. package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
  99. package/packages/scrabble-solver/.next/server/pages/not-found.html +1 -1
  100. package/packages/scrabble-solver/.next/server/pages/not-found.js.nft.json +1 -1
  101. package/packages/scrabble-solver/.next/server/pages-manifest.json +1 -1
  102. package/packages/scrabble-solver/.next/server/webpack-runtime.js +1 -1
  103. package/packages/scrabble-solver/.next/static/{vYpMmuC_yEurZGcyGVnLf → OLE8_ZInlGH7ENU0NIOpf}/_buildManifest.js +1 -1
  104. package/packages/scrabble-solver/.next/static/chunks/583.7a46807be14c377e.js +1 -0
  105. package/packages/scrabble-solver/.next/static/chunks/830.661816bf0de8c2f1.js +1 -0
  106. package/packages/scrabble-solver/.next/static/chunks/{main-852475ca502b4e49.js → main-5b999f3f24ebfa84.js} +2 -2
  107. package/packages/scrabble-solver/.next/static/chunks/pages/_app-7024e7a27ffbb2fa.js +7 -0
  108. package/packages/scrabble-solver/.next/static/chunks/pages/{index-ec0f6aeeaf7be227.js → index-8b398b0a5d870773.js} +1 -1
  109. package/packages/scrabble-solver/.next/static/chunks/webpack-3943d624bbb47a64.js +1 -0
  110. package/packages/scrabble-solver/.next/static/css/aedeaada218d7280.css +2 -0
  111. package/packages/scrabble-solver/.next/trace +21 -21
  112. package/packages/scrabble-solver/.next/trace-build +1 -1
  113. package/packages/scrabble-solver/next.config.js +0 -6
  114. package/packages/scrabble-solver/package.json +10 -10
  115. package/packages/scrabble-solver/public/service-worker.js +2 -2
  116. package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.tsx +4 -1
  117. package/packages/scrabble-solver/src/components/Board/hooks/useGrid.ts +17 -6
  118. package/packages/scrabble-solver/src/components/Dictionary/Dictionary.module.scss +7 -22
  119. package/packages/scrabble-solver/src/components/Dictionary/Dictionary.tsx +1 -8
  120. package/packages/scrabble-solver/src/components/Results/Result.tsx +0 -3
  121. package/packages/scrabble-solver/src/components/Results/Results.module.scss +0 -1
  122. package/packages/scrabble-solver/src/components/Results/Results.tsx +10 -2
  123. package/packages/scrabble-solver/src/components/Results/types.ts +3 -3
  124. package/packages/scrabble-solver/src/components/Solver/Solver.tsx +4 -3
  125. package/packages/scrabble-solver/src/components/Tooltip/useTooltip.ts +1 -1
  126. package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/[word].ts +2 -2
  127. package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/index.ts +80 -3
  128. package/packages/scrabble-solver/src/pages/api/solve.ts +2 -2
  129. package/packages/scrabble-solver/src/pages/api/verify.ts +12 -3
  130. package/packages/scrabble-solver/src/sdk/solve.ts +13 -7
  131. package/packages/scrabble-solver/src/sdk/verify.ts +12 -6
  132. package/packages/scrabble-solver/src/service-worker/appShell.test.ts +86 -0
  133. package/packages/scrabble-solver/src/service-worker/appShell.ts +39 -0
  134. package/packages/scrabble-solver/src/service-worker/index.ts +4 -5
  135. package/packages/scrabble-solver/src/serviceWorkerManager.ts +1 -18
  136. package/packages/scrabble-solver/src/solver-worker/client.test.ts +151 -0
  137. package/packages/scrabble-solver/src/solver-worker/client.ts +106 -0
  138. package/packages/scrabble-solver/src/solver-worker/dictionaries/constants.ts +9 -0
  139. package/packages/scrabble-solver/src/solver-worker/dictionaries/getDictionary.ts +21 -0
  140. package/packages/scrabble-solver/src/solver-worker/dictionaries/index.ts +2 -0
  141. package/packages/scrabble-solver/src/solver-worker/dictionaries/revalidateDictionary.test.ts +199 -0
  142. package/packages/scrabble-solver/src/solver-worker/dictionaries/revalidateDictionary.ts +86 -0
  143. package/packages/scrabble-solver/src/solver-worker/dictionaries/revalidatedAt.ts +43 -0
  144. package/packages/scrabble-solver/src/solver-worker/getGaddag.test.ts +109 -0
  145. package/packages/scrabble-solver/src/solver-worker/getGaddag.ts +62 -0
  146. package/packages/scrabble-solver/src/solver-worker/index.ts +1 -0
  147. package/packages/scrabble-solver/src/solver-worker/index.worker.ts +124 -0
  148. package/packages/scrabble-solver/src/solver-worker/messages.ts +20 -0
  149. package/packages/scrabble-solver/src/state/index.ts +1 -0
  150. package/packages/scrabble-solver/src/state/sagas.ts +19 -9
  151. package/packages/scrabble-solver/src/state/useTypedStore.ts +6 -0
  152. package/packages/scrabble-solver/src/types/api.ts +1 -2
  153. package/packages/scrabble-solver/tsconfig.json +4 -0
  154. package/packages/scrabble-solver/tsconfig.tsbuildinfo +1 -1
  155. package/packages/solver/README.md +24 -0
  156. package/packages/solver/benchmarks/index.ts +15 -0
  157. package/packages/solver/benchmarks/lib.ts +31 -0
  158. package/packages/solver/benchmarks/renderChart.ts +165 -0
  159. package/packages/solver/benchmarks/results/chart.svg +65 -0
  160. package/packages/solver/benchmarks/runBenchmarks.ts +66 -0
  161. package/packages/solver/benchmarks/scenarios.ts +64 -0
  162. package/packages/solver/benchmarks/types.ts +16 -0
  163. package/packages/solver/benchmarks/updateReadme.ts +53 -0
  164. package/packages/solver/build/MoveGenerator.d.ts +116 -0
  165. package/packages/solver/build/MoveGenerator.js +686 -0
  166. package/packages/solver/build/index.d.ts +0 -13
  167. package/packages/solver/build/index.js +1 -27
  168. package/packages/solver/build/solve.d.ts +2 -2
  169. package/packages/solver/build/solve.js +3 -19
  170. package/packages/solver/package.json +7 -6
  171. package/packages/solver/src/MoveGenerator.test.ts +1009 -0
  172. package/packages/solver/src/MoveGenerator.ts +926 -0
  173. package/packages/solver/src/ReferenceSolver.ts +401 -0
  174. package/packages/solver/src/index.ts +0 -13
  175. package/packages/solver/src/solve.test.ts +21 -21
  176. package/packages/solver/src/solve.ts +4 -22
  177. package/packages/solver/tsconfig.json +1 -1
  178. package/packages/types/build/Cell.d.ts +1 -0
  179. package/packages/types/build/Cell.js +3 -0
  180. package/packages/types/build/Result.d.ts +3 -2
  181. package/packages/types/build/Result.js +11 -6
  182. package/packages/types/build/ResultJson.d.ts +5 -4
  183. package/packages/types/build/index.d.ts +0 -6
  184. package/packages/types/build/index.js +1 -9
  185. package/packages/types/build/readResultCells.d.ts +5 -0
  186. package/packages/types/build/readResultCells.js +75 -0
  187. package/packages/types/package.json +4 -3
  188. package/packages/types/src/Cell.ts +4 -0
  189. package/packages/types/src/Result.ts +15 -6
  190. package/packages/types/src/ResultJson.ts +5 -5
  191. package/packages/types/src/index.ts +0 -6
  192. package/packages/types/src/readResultCells.test.ts +140 -0
  193. package/packages/types/src/readResultCells.ts +90 -0
  194. package/packages/word-definitions/package.json +2 -2
  195. package/packages/word-lists/package.json +2 -2
  196. package/packages/scrabble-solver/.next/static/chunks/pages/_app-a5bbe02710f13d05.js +0 -7
  197. package/packages/scrabble-solver/.next/static/chunks/webpack-1a7a166b34ed8d24.js +0 -1
  198. package/packages/scrabble-solver/.next/static/css/0af35adb4bab56f0.css +0 -2
  199. package/packages/scrabble-solver/src/sdk/getDictionary.ts +0 -9
  200. package/packages/scrabble-solver/src/service-worker/average.ts +0 -7
  201. package/packages/scrabble-solver/src/service-worker/dictionaries/constants.ts +0 -5
  202. package/packages/scrabble-solver/src/service-worker/dictionaries/getDictionary.ts +0 -20
  203. package/packages/scrabble-solver/src/service-worker/dictionaries/index.ts +0 -2
  204. package/packages/scrabble-solver/src/service-worker/dictionaries/revalidateDictionary.ts +0 -33
  205. package/packages/scrabble-solver/src/service-worker/getTrie.ts +0 -24
  206. package/packages/scrabble-solver/src/service-worker/routeSolveRequests.ts +0 -91
  207. package/packages/scrabble-solver/src/service-worker/routeVerifyRequests.ts +0 -37
  208. package/packages/solver/build/areDigraphsValid.d.ts +0 -2
  209. package/packages/solver/build/areDigraphsValid.js +0 -17
  210. package/packages/solver/build/fillPattern.d.ts +0 -6
  211. package/packages/solver/build/fillPattern.js +0 -52
  212. package/packages/solver/build/generateEndIndices.d.ts +0 -2
  213. package/packages/solver/build/generateEndIndices.js +0 -17
  214. package/packages/solver/build/generateHorizontalPatterns.d.ts +0 -2
  215. package/packages/solver/build/generateHorizontalPatterns.js +0 -16
  216. package/packages/solver/build/generatePattern.d.ts +0 -7
  217. package/packages/solver/build/generatePattern.js +0 -20
  218. package/packages/solver/build/generatePatterns.d.ts +0 -2
  219. package/packages/solver/build/generatePatterns.js +0 -11
  220. package/packages/solver/build/generateStartIndices.d.ts +0 -2
  221. package/packages/solver/build/generateStartIndices.js +0 -16
  222. package/packages/solver/build/generateVectors.d.ts +0 -7
  223. package/packages/solver/build/generateVectors.js +0 -7
  224. package/packages/solver/build/generateVerticalPatterns.d.ts +0 -2
  225. package/packages/solver/build/generateVerticalPatterns.js +0 -16
  226. package/packages/solver/build/getCellsScore.d.ts +0 -2
  227. package/packages/solver/build/getCellsScore.js +0 -18
  228. package/packages/solver/build/getPatternHash.d.ts +0 -2
  229. package/packages/solver/build/getPatternHash.js +0 -14
  230. package/packages/solver/build/getPatternScore.d.ts +0 -2
  231. package/packages/solver/build/getPatternScore.js +0 -22
  232. package/packages/solver/build/getUniquePatterns.d.ts +0 -2
  233. package/packages/solver/build/getUniquePatterns.js +0 -17
  234. package/packages/solver/src/areDigraphsValid.ts +0 -18
  235. package/packages/solver/src/fillPattern.test.ts +0 -107
  236. package/packages/solver/src/fillPattern.ts +0 -68
  237. package/packages/solver/src/generateEndIndices.test.ts +0 -23
  238. package/packages/solver/src/generateEndIndices.ts +0 -19
  239. package/packages/solver/src/generateHorizontalPatterns.test.ts +0 -31
  240. package/packages/solver/src/generateHorizontalPatterns.ts +0 -15
  241. package/packages/solver/src/generatePattern.ts +0 -33
  242. package/packages/solver/src/generatePatterns.test.ts +0 -13
  243. package/packages/solver/src/generatePatterns.ts +0 -11
  244. package/packages/solver/src/generateStartIndices.test.ts +0 -19
  245. package/packages/solver/src/generateStartIndices.ts +0 -17
  246. package/packages/solver/src/generateVectors.test.ts +0 -12
  247. package/packages/solver/src/generateVectors.ts +0 -10
  248. package/packages/solver/src/generateVerticalPatterns.test.ts +0 -32
  249. package/packages/solver/src/generateVerticalPatterns.ts +0 -15
  250. package/packages/solver/src/getCellsScore.ts +0 -21
  251. package/packages/solver/src/getPatternHash.test.ts +0 -17
  252. package/packages/solver/src/getPatternHash.ts +0 -12
  253. package/packages/solver/src/getPatternScore.test.ts +0 -204
  254. package/packages/solver/src/getPatternScore.ts +0 -23
  255. package/packages/solver/src/getUniquePatterns.ts +0 -19
  256. package/packages/types/build/CollisionJson.d.ts +0 -2
  257. package/packages/types/build/CollisionJson.js +0 -2
  258. package/packages/types/build/FinalPattern.d.ts +0 -6
  259. package/packages/types/build/FinalPattern.js +0 -14
  260. package/packages/types/build/HorizontalPattern.d.ts +0 -5
  261. package/packages/types/build/HorizontalPattern.js +0 -34
  262. package/packages/types/build/Pattern.d.ts +0 -20
  263. package/packages/types/build/Pattern.js +0 -50
  264. package/packages/types/build/PatternJson.d.ts +0 -6
  265. package/packages/types/build/PatternJson.js +0 -2
  266. package/packages/types/build/VerticalPattern.d.ts +0 -5
  267. package/packages/types/build/VerticalPattern.js +0 -34
  268. package/packages/types/src/CollisionJson.ts +0 -3
  269. package/packages/types/src/FinalPattern.ts +0 -14
  270. package/packages/types/src/HorizontalPattern.ts +0 -37
  271. package/packages/types/src/Pattern.ts +0 -71
  272. package/packages/types/src/PatternJson.ts +0 -7
  273. package/packages/types/src/VerticalPattern.ts +0 -37
  274. /package/packages/scrabble-solver/.next/static/{vYpMmuC_yEurZGcyGVnLf → OLE8_ZInlGH7ENU0NIOpf}/_ssgManifest.js +0 -0
  275. /package/packages/scrabble-solver/src/{service-worker → solver-worker}/dictionaries/expirationManager.ts +0 -0
  276. /package/packages/scrabble-solver/src/{service-worker → solver-worker}/dictionaries/getDictionaryUrl.ts +0 -0
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e,r,t,o,n,l,f={},a={};function u(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}},o=!0;try{f[e].call(t.exports,t,t.exports,u),o=!1}finally{o&&delete a[e]}return t.exports}u.m=f,e=[],u.O=(r,t,o,n)=>{if(t){n=n||0;for(var l=e.length;l>0&&e[l-1][2]>n;l--)e[l]=e[l-1];e[l]=[t,o,n];return}for(var f=1/0,l=0;l<e.length;l++){for(var[t,o,n]=e[l],a=!0,i=0;i<t.length;i++)(!1&n||f>=n)&&Object.keys(u.O).every(e=>u.O[e](t[i]))?t.splice(i--,1):(a=!1,n<f&&(f=n));if(a){e.splice(l--,1);var p=o();void 0!==p&&(r=p)}}return r},u.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return u.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);u.r(n);var l={};r=r||[null,t({}),t([]),t(t)];for(var f=2&o&&e;"object"==typeof f&&!~r.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach(r=>l[r]=()=>e[r]);return l.default=()=>e,u.d(n,l),n},u.d=(e,r)=>{for(var t in r)u.o(r,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},u.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.p="/_next/",o={68:0},u.O.j=e=>0===o[e],n=(e,r)=>{var t,n,[l,f,a]=r,i=0;if(l.some(e=>0!==o[e])){for(t in f)u.o(f,t)&&(u.m[t]=f[t]);if(a)var p=a(u)}for(e&&e(r);i<l.length;i++)n=l[i],u.o(o,n)&&o[n]&&o[n][0](),o[n]=0;return u.O(p)},(l=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(n.bind(null,0)),l.push=n.bind(null,l.push.bind(l))})();
@@ -1,2 +0,0 @@
1
- .Alert_alert__cFBJC{display:flex;min-width:0;width:100%;border:var(--border);border-radius:var(--border--radius);background-color:var(--color--white);text-align:center}.Alert_iconContainer__rIJ4B{flex:0 0 auto;display:flex;justify-content:center;padding:var(--spacing--m);color:var(--color--foreground--secondary);border-start-start-radius:var(--border--radius);border-end-start-radius:var(--border--radius);border-inline-end:var(--border)}.Alert_error__sMv5d .Alert_iconContainer__rIJ4B{background-color:var(--color--red--light);color:var(--color--error)}.Alert_info__5QGDB .Alert_iconContainer__rIJ4B{background-color:var(--color--blue--light);color:var(--color--info)}.Alert_success__vQBXB .Alert_iconContainer__rIJ4B{background-color:var(--color--green--light);color:var(--color--success)}.Alert_warning__6DDhO .Alert_iconContainer__rIJ4B{background-color:var(--color--yellow--light);color:var(--color--warning)}.Alert_icon__jUrPr{width:24px;height:24px}.Alert_content__QyQ78{flex:1 1;padding:var(--spacing--m) var(--spacing--l)}.Badge_badge__dYfu8{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing--xs) var(--spacing--m);border:var(--border);border-radius:var(--border--radius);background-color:var(--color--background--element);line-height:var(--line-height);font-size:var(--font--size--m);font-weight:700}@keyframes Board_hide__3Xn0K{0%{opacity:1}to{opacity:0}}@keyframes Board_show__qgRUu{0%{opacity:0}to{opacity:1}}@keyframes Board_rotate__dvty2{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes Board_wave__YvFwO{0%{transform:translateY(0)}25%{transform:translateY(6px)}75%{transform:translateY(-6px)}to{transform:translateY(0)}}.Board_board__Xnuco{display:grid;gap:var(--border--width);box-shadow:var(--box-shadow);background-color:#fff;border:var(--border);border-radius:var(--border--radius)}.Board_floating__6BuCt{position:absolute;z-index:var(--z-index--actions);width:max-content;height:max-content;animation:var(--transition--duration) var(--transition--easing) Board_show__qgRUu}.Board_focus__1plN1{--focus-effect--size:6px;position:relative}.Board_focus__1plN1:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.Board_focus__1plN1:focus-within,.Board_focus__1plN1:focus-within *{outline:none}.Board_focus__1plN1:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.Board_focus__1plN1{cursor:text}.Board_focus__1plN1:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.Board_hidden__HUigM{animation:var(--transition--duration) var(--transition--easing) Board_hide__3Xn0K}.Board_hidden__HUigM,.Board_iconContainer__YELP8{pointer-events:none;-webkit-user-select:none;user-select:none}.Board_iconContainer__YELP8{position:absolute;display:flex;align-items:center;justify-content:center}.Board_iconBackground__u0tVi,.Board_icon__0J1Ig{position:absolute;inset:calc((100% - var(--size))/2);width:var(--size);height:var(--size)}.Board_iconBackground__u0tVi{--size:80%;border-radius:var(--border--radius);background-color:var(--color--foreground--secondary)}.Board_icon__0J1Ig{--size:40%;color:var(--color--white)}.Board_coordinate__LaKUI{position:relative;display:flex;align-items:center;justify-content:center}.Tooltip_tooltip__vAjij{max-width:var(--tooltip--max-width);padding:var(--spacing--s) var(--spacing--m);box-shadow:var(--box-shadow);border-radius:var(--border--radius);background-color:var(--color--tooltip--background);color:var(--color--tooltip--foreground);z-index:var(--z-index--tooltip);text-align:center;pointer-events:none}.Tooltip_arrow__uIoGg{fill:var(--color--tooltip--background)}.Button_button__8B4nB{padding:0;border:none;outline:none;font:inherit;color:inherit;background:none;--focus-effect--size:6px;position:relative}.Button_button__8B4nB:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.Button_button__8B4nB:focus-within,.Button_button__8B4nB:focus-within *{outline:none}.Button_button__8B4nB:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.Button_button__8B4nB{display:inline-block;padding:var(--spacing--m) var(--spacing--l);border:var(--border);border-radius:var(--border--radius);text-transform:uppercase;transition:var(--transition);cursor:pointer}.Button_button__8B4nB,.Button_button__8B4nB:active,.Button_button__8B4nB:focus,.Button_button__8B4nB:hover{box-shadow:var(--box-shadow);text-decoration:none}.Button_button__8B4nB.Button_primary__KcWsb,.Button_button__8B4nB:active.Button_primary__KcWsb,.Button_button__8B4nB:focus.Button_primary__KcWsb,.Button_button__8B4nB:hover.Button_primary__KcWsb{background-color:var(--color--primary);color:var(--color--primary--opposite)}.Button_button__8B4nB.Button_default__nKr4u,.Button_button__8B4nB:active.Button_default__nKr4u,.Button_button__8B4nB:focus.Button_default__nKr4u,.Button_button__8B4nB:hover.Button_default__nKr4u{background-color:var(--color--background--element);color:var(--color--foreground)}.Button_button__8B4nB.Button_default__nKr4u .Button_icon__V37WX,.Button_button__8B4nB:active.Button_default__nKr4u .Button_icon__V37WX,.Button_button__8B4nB:focus.Button_default__nKr4u .Button_icon__V37WX,.Button_button__8B4nB:hover.Button_default__nKr4u .Button_icon__V37WX{color:var(--color--inactive)}.Button_button__8B4nB:focus.Button_default__nKr4u:not(:disabled) .Button_icon__V37WX,.Button_button__8B4nB:hover.Button_default__nKr4u:not(:disabled) .Button_icon__V37WX{color:var(--color--foreground--secondary)}.Button_button__8B4nB:active:not(:disabled) .Button_content__gu4us{position:relative;top:1px}.Button_button__8B4nB[disabled]{opacity:var(--opacity--disabled);box-shadow:none;cursor:not-allowed}.Button_content__gu4us{display:flex;align-items:center;justify-content:center;gap:var(--spacing--l);line-height:var(--button--icon--size)}@media(max-width:1199px){.Button_content__gu4us{gap:var(--spacing--m)}}.Button_icon__V37WX{flex:0 0 auto;width:var(--button--icon--size);height:var(--button--icon--size);transition:var(--transition)}.Button_label__YUlJz{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:var(--font--size--h3);transition:var(--transition);text-align:start}.Button_wide__xwJam .Button_content__gu4us{justify-content:normal;gap:var(--spacing--l)}.Button_wide__xwJam .Button_label__YUlJz{flex:1 1}.ToggleDirectionButton_button__8P075{padding:var(--spacing--m);box-shadow:none!important}.ToggleDirectionButton_button__8P075:active,.ToggleDirectionButton_button__8P075:hover{color:var(--color--foreground)}.ToggleDirectionButton_icon__ZZ78d{transition:var(--transition)}.ToggleDirectionButton_icon__ZZ78d.ToggleDirectionButton_right__b0_LR{transform:rotate(-90deg)}[dir=rtl] .ToggleDirectionButton_icon__ZZ78d.ToggleDirectionButton_right__b0_LR{transform:rotate(90deg)}.Actions_actions__JclIc{display:flex;box-shadow:var(--box-shadow);border-radius:var(--border--radius);transition:var(--transition);transition-property:opacity}.Actions_action__zkQOb{padding:var(--spacing--m);box-shadow:none!important}.Actions_action__zkQOb:active,.Actions_action__zkQOb:hover{color:var(--color--foreground)}.Actions_action__zkQOb+.Actions_action__zkQOb{border-inline-start:none}.Actions_action__zkQOb:first-child{border-start-end-radius:0;border-end-end-radius:0}.Actions_action__zkQOb:last-child{border-start-start-radius:0;border-end-start-radius:0}.Tile_tile__Ix_p2{--background-color:transparent;position:relative;display:flex;align-items:center;justify-content:center;padding:0;background-color:var(--background-color);border-radius:var(--border--radius);font-weight:700;text-transform:uppercase;text-align:center;-webkit-user-select:none;user-select:none}@media(max-width:479px){.Tile_tile__Ix_p2{--border--radius:3px}}.Tile_tile__Ix_p2.Tile_points1__Ubc_x{--background-color:var(--color--yellow)}.Tile_tile__Ix_p2.Tile_points2__d_3CH{--background-color:var(--color--green)}.Tile_tile__Ix_p2.Tile_points3__Q5XVD,.Tile_tile__Ix_p2.Tile_points4__hu5jg{--background-color:var(--color--blue)}.Tile_tile__Ix_p2.Tile_points5__4JVlF{--background-color:var(--color--red)}.Tile_tile__Ix_p2.Tile_raised__ObpSU{box-shadow:var(--box-shadow--raised)}@media(max-width:479px){.Tile_tile__Ix_p2.Tile_raised__ObpSU{box-shadow:var(--box-shadow--raised--subtle)}}.Tile_tile__Ix_p2.Tile_blank__WIuHs{--background-color:var(--color--white);color:var(--color--foreground)}.Tile_tile__Ix_p2.Tile_empty__GU8RF{color:var(--color--inactive)}.Tile_tile__Ix_p2.Tile_invalid__vYgf3{--background-color:var(--color--foreground);--shadow--color:var(--box-shadow--color--inverse);color:var(--color--white)}.Tile_tile__Ix_p2.Tile_highlighted__Xw3Fw{--background-color:var(--color--primary);color:var(--color--primary--opposite)}.Tile_tile__Ix_p2.Tile_highlighted__Xw3Fw .Tile_points__3CAVI{color:inherit}.Tile_input__AO_aO{position:absolute;inset:0;width:100%;height:100%;border:none;background-color:rgba(0,0,0,0);color:rgba(0,0,0,0);caret-color:rgba(0,0,0,0);font-size:16px;outline:none}.Tile_input__AO_aO::selection{--background--color:transparent}.Tile_points__3CAVI{text-shadow:1px 0 var(--background-color),-1px 0 var(--background-color),0 1px var(--background-color),0 -1px var(--background-color),-1px -1px var(--background-color),-1px 1px var(--background-color),1px -1px var(--background-color),1px 1px var(--background-color);position:absolute;inset-block-end:1%;inset-inline-end:9%;font-weight:700;-webkit-user-select:none;user-select:none;pointer-events:none;letter-spacing:-1px}@media(max-width:479px){.Tile_points__3CAVI{display:none}}.Tile_alert__0l1_m{--size:30%;position:absolute;width:var(--size);height:var(--size);inset-block-start:0;inset-inline-end:0;border-start-end-radius:inherit;background:radial-gradient(var(--color--error--opposite),var(--color--error--opposite) 85%,transparent 85%,transparent);color:var(--color--error);pointer-events:none}.Cell_tile__SiBOA input{position:absolute;inset:-100%;width:300%;height:300%;clip-path:inset(33.3333333333%)}[dir=ltr] .Cell_tile__SiBOA.Cell_first3__7uV8I input{left:0;clip-path:polygon(0 33.3333333333%,33.3333333333% 33.3333333333%,33.3333333333% 66.6666666667%,0 66.6666666667%)}[dir=ltr] .Cell_tile__SiBOA.Cell_last3__30aLE input,[dir=rtl] .Cell_tile__SiBOA.Cell_first3__7uV8I input{left:-200%;clip-path:polygon(66.6666666667% 33.3333333333%,100% 33.3333333333%,100% 66.6666666667%,66.6666666667% 66.6666666667%)}[dir=rtl] .Cell_tile__SiBOA.Cell_first3__7uV8I input{right:0}[dir=rtl] .Cell_tile__SiBOA.Cell_last3__30aLE input{left:0;right:-200%;clip-path:polygon(0 33.3333333333%,33.3333333333% 33.3333333333%,33.3333333333% 66.6666666667%,0 66.6666666667%)}.Cell_tile__SiBOA.Cell_sharpTopLeft__7Frqr{border-start-start-radius:0}.Cell_tile__SiBOA.Cell_sharpTopRight__eYNVC{border-start-end-radius:0}.Cell_tile__SiBOA.Cell_sharpBottomLeft__KhIPs{border-end-start-radius:0}.Cell_tile__SiBOA.Cell_sharpBottomRight__R2ZNq{border-end-end-radius:0}.Cell_tile__SiBOA.Cell_unreachable__bH4mB{background-color:var(--border--color);opacity:.5;border-radius:0}.Cell_tile__SiBOA:focus-within{z-index:2}.InputPrompt_inputPrompt__1_ygJ{display:flex;box-shadow:var(--box-shadow);border-radius:var(--border--radius);transition:var(--transition);transition-property:opacity}.InputPrompt_toggleDirection__mx8tU{border-start-end-radius:0;border-end-end-radius:0}.InputPrompt_input__Qdlf_{width:100%;height:var(--text-input--height);padding:0 var(--spacing--l);transition:var(--transition);font-size:var(--font--size--m);outline:none;height:100%;max-width:200px;border:none;border-top:var(--border);border-bottom:var(--border);border-radius:0}.InputPrompt_insert__FLC5l{border-start-start-radius:0;border-end-start-radius:0}.InputPrompt_insertIcon__aL5tM{transform:scale(1.5)}@keyframes PlainTiles_hide__A1qMM{0%{opacity:1}to{opacity:0}}@keyframes PlainTiles_show__tFNGv{0%{opacity:0}to{opacity:1}}@keyframes PlainTiles_rotate__7Jm2X{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes PlainTiles_wave__bE4zX{0%{transform:translateY(0)}25%{transform:translateY(6px)}75%{transform:translateY(-6px)}to{transform:translateY(0)}}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM{animation:PlainTiles_wave__bE4zX .75s infinite;animation-timing-function:linear}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:first-child{animation-delay:-2.85s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(2){animation-delay:-2.7s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(3){animation-delay:-2.55s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(4){animation-delay:-2.4s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(5){animation-delay:-2.25s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(6){animation-delay:-2.1s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(7){animation-delay:-1.95s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(8){animation-delay:-1.8s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(9){animation-delay:-1.65s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(10){animation-delay:-1.5s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(11){animation-delay:-1.35s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(12){animation-delay:-1.2s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(13){animation-delay:-1.05s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(14){animation-delay:-.9s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(15){animation-delay:-.75s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(16){animation-delay:-.6s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(17){animation-delay:-.45s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(18){animation-delay:-.3s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(19){animation-delay:-.15s}.PlainTiles_wave__bE4zX .PlainTiles_tile___NJSM:nth-child(20){animation-delay:0s}.PlainTiles_dropShadow__K0PlA{filter:drop-shadow(0 3px 3px rgba(0,0,0,.4))}.EmptyState_emptyState__N2idu{padding:var(--spacing--xl);color:var(--color--foreground--secondary);text-align:center;text-transform:none}.EmptyState_tiles__FYVO9{display:inline-block;max-width:100%;margin-bottom:var(--spacing--m);height:48px;overflow:visible}.Loading_dim__sBo77,.Loading_loading__zKVig{position:absolute;inset:0;border-radius:inherit}.Loading_loading__zKVig{display:flex;align-items:center;justify-content:center}.Loading_dim__sBo77{background-color:var(--color--background--overlay);z-index:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.Loading_text__AUS3o{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.Loading_tiles__5IEHk{width:66.6666666667%;height:100%}.Dictionary_dictionary__FfG3h{position:relative;transition:var(--transition);word-break:break-word}.Dictionary_dictionary__FfG3h.Dictionary_isAllowed__Jw9sB{background-color:var(--color--green--light)}.Dictionary_dictionary__FfG3h.Dictionary_isNotAllowed__Y5tLd{background-color:var(--color--red--light)}.Dictionary_dictionary__FfG3h:focus-within{--focus-effect--size:6px;position:relative}.Dictionary_dictionary__FfG3h:focus-within:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.Dictionary_dictionary__FfG3h:focus-within:focus-within,.Dictionary_dictionary__FfG3h:focus-within:focus-within *{outline:none}.Dictionary_dictionary__FfG3h:focus-within:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.Dictionary_content___ZOAM{scrollbar-color:var(--scrollbar--thumb--color) var(--scrollbar--thumb--track);scrollbar-width:thin}.Dictionary_content___ZOAM::-webkit-scrollbar{width:var(--scrollbar--size);background-color:var(--scrollbar--track--color)}.Dictionary_content___ZOAM::-webkit-scrollbar-thumb{background-color:var(--scrollbar--thumb--color)}.Dictionary_content___ZOAM:hover{scrollbar-color:var(--scrollbar--thumb--color--highlight) var(--scrollbar--track--color)}.Dictionary_content___ZOAM:hover::-webkit-scrollbar-thumb{background-color:var(--scrollbar--thumb--color--highlight)}.Dictionary_content___ZOAM{height:100%;overflow-y:auto;border-radius:inherit}.Dictionary_content___ZOAM:focus-visible{outline:none}.Dictionary_result__kS3fd{transition:var(--transition)}.Dictionary_result__kS3fd.Dictionary_isAllowed__Jw9sB{background-color:var(--color--green--light)}.Dictionary_result__kS3fd.Dictionary_isAllowed__Jw9sB+.Dictionary_result__kS3fd.Dictionary_isAllowed__Jw9sB .Dictionary_content___ZOAM{padding-top:0}.Dictionary_result__kS3fd.Dictionary_isNotAllowed__Y5tLd{background-color:var(--color--red--light)}.Dictionary_result__kS3fd.Dictionary_isNotAllowed__Y5tLd+.Dictionary_result__kS3fd.Dictionary_isNotAllowed__Y5tLd .Dictionary_content___ZOAM{padding-top:0}.Dictionary_resultContent__GBlvP{padding:var(--spacing--l)}.Dictionary_word__faOui{margin-bottom:var(--spacing--m);font-size:var(--font--size--h2);text-transform:uppercase}.Dictionary_definitions__uU_Zv{margin:0;padding-inline-start:var(--spacing--l)}.Dictionary_definition__BJGy7{margin-bottom:var(--spacing--s);white-space:pre-wrap}.Dictionary_definition__BJGy7:last-child{margin-bottom:0}.DictionaryInput_dictionaryInput__ko75b{--focus-effect--size:6px;position:relative}.DictionaryInput_dictionaryInput__ko75b:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.DictionaryInput_dictionaryInput__ko75b:focus-within,.DictionaryInput_dictionaryInput__ko75b:focus-within *{outline:none}.DictionaryInput_dictionaryInput__ko75b:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.DictionaryInput_input__dfsFg{width:100%;height:var(--text-input--height);padding:0 var(--spacing--l);transition:var(--transition);font-size:var(--font--size--m);outline:none;border:none;border-radius:inherit}.IconButton_iconButton__cz_iA{padding:0;border:none;outline:none;font:inherit;color:inherit;background:none;--focus-effect--size:6px;position:relative}.IconButton_iconButton__cz_iA:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.IconButton_iconButton__cz_iA:focus-within,.IconButton_iconButton__cz_iA:focus-within *{outline:none}.IconButton_iconButton__cz_iA:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.IconButton_iconButton__cz_iA{display:inline-block;color:var(--color--inactive);cursor:pointer;transition:var(--transition)}.IconButton_iconButton__cz_iA:focus,.IconButton_iconButton__cz_iA:hover{text-decoration:none;color:var(--color--foreground--secondary)}.IconButton_iconButton__cz_iA:active{color:var(--color--foreground)}.IconButton_iconButton__cz_iA[disabled]{opacity:var(--opacity--disabled);box-shadow:none;cursor:not-allowed}.IconButton_content__9uHMt{display:flex;align-items:center;justify-content:center}.IconButton_icon__WVF0q{width:var(--square-button--size);height:var(--square-button--size);pointer-events:none;color:inherit;transition:var(--transition)}.Key_key__hs0Gn{position:relative;display:inline-block;min-width:var(--key--height);height:var(--key--height);padding:var(--spacing--s) var(--spacing--m);background-color:var(--color--white);color:var(--color--foreground);border:var(--border);border-radius:var(--border--radius);box-shadow:var(--box-shadow);font-family:var(--font--family--monospace);line-height:calc(var(--key--height) - 2*(var(--spacing--s) + var(--border--width)));vertical-align:middle;text-align:center;white-space:pre-wrap}.Key_key__hs0Gn+.Key_key__hs0Gn{margin-inline-start:var(--spacing--xs)}.Key_key__hs0Gn svg{position:absolute;top:calc((var(--key--height) - var(--key--icon--size))/2 - var(--border--width));left:calc((var(--key--height) - var(--key--icon--size))/2 - var(--border--width));width:var(--key--icon--size);height:var(--key--icon--size)}.Section_section__6Eczy+.Section_section__6Eczy{margin-top:var(--spacing--xl)}.Section_heading__5Vnag{margin-bottom:var(--spacing--m);font-size:var(--font--size--h2);font-weight:300}.Modal_closeButton__Foob_,.Modal_modal__l4yBn{top:0;inset-inline-end:0}.Modal_modal__l4yBn{position:fixed;bottom:0;z-index:var(--z-index--modal);width:var(--modal--width);padding:0;border-radius:0;border:none}.Modal_modal__l4yBn:focus{outline:none}[dir=ltr] .Modal_afterOpen__yCc_m .Modal_container__T5Dvn,[dir=rtl] .Modal_afterOpen__yCc_m .Modal_container__T5Dvn{transform:translateX(0);opacity:1}.Modal_beforeClose__Q_ZUS .Modal_container__T5Dvn{opacity:0}[dir=ltr] .Modal_beforeClose__Q_ZUS .Modal_container__T5Dvn{transform:translateX(var(--modal--width))}[dir=rtl] .Modal_beforeClose__Q_ZUS .Modal_container__T5Dvn{transform:translateX(calc(-1 * var(--modal--width)))}.Modal_overlay__nbJY5{background-color:rgba(0,0,0,0)}.Modal_container__T5Dvn{--box-shadow--offset:1px;--box-shadow--offset--negative:calc(-1 * var(--box-shadow--offset));display:flex;flex-direction:column;height:100%;background-color:var(--color--background);transition:var(--transition--long);transform:translateX(var(--modal--width));overflow:hidden;opacity:0}[dir=ltr] .Modal_container__T5Dvn{transform:translateX(var(--modal--width));box-shadow:var(--box-shadow--offset--negative) 0 var(--box-shadow--blur) var(--box-shadow--spread) var(--box-shadow--color)}[dir=rtl] .Modal_container__T5Dvn{transform:translateX(calc(-1 * var(--modal--width)));box-shadow:var(--box-shadow--offset) 0 var(--box-shadow--blur) var(--box-shadow--spread) var(--box-shadow--color)}.Modal_header__8HSvT{position:relative;z-index:1;flex:0 0 auto;padding:var(--spacing--l);padding-bottom:0;background-color:var(--color--background)}.Modal_title__oD_ne{font-size:var(--font--size--h1);font-weight:300;padding-inline-end:calc(var(--square-button--size) + var(--spacing--s))}.Modal_closeButton__Foob_{position:absolute!important;z-index:var(--z-index--close-button);margin:var(--spacing--l)}.Modal_content__Fchkl{scrollbar-color:var(--scrollbar--thumb--color) var(--scrollbar--thumb--track);scrollbar-width:thin}.Modal_content__Fchkl::-webkit-scrollbar{width:var(--scrollbar--size);background-color:var(--scrollbar--track--color)}.Modal_content__Fchkl::-webkit-scrollbar-thumb{background-color:var(--scrollbar--thumb--color)}.Modal_content__Fchkl:hover{scrollbar-color:var(--scrollbar--thumb--color--highlight) var(--scrollbar--track--color)}.Modal_content__Fchkl:hover::-webkit-scrollbar-thumb{background-color:var(--scrollbar--thumb--color--highlight)}.Modal_content__Fchkl{position:relative;flex:1 1;min-height:0;overflow:auto;padding:var(--spacing--l)}.Modal_footer__Pw_CF{flex:0 0 auto;display:flex;flex-direction:row-reverse;gap:var(--spacing--l);padding:var(--spacing--l);padding-top:0}@media(min-width:1201px){.Modal_footer__Pw_CF{display:none}}.Modal_footer__Pw_CF>*{min-width:0;flex:1 1}.NavButtons_navButtons__Ar_TQ{display:flex;align-items:center;gap:var(--spacing--l);gap:calc(var(--spacing--l) - var(--spacing--xs))}.NavButtons_button__UKQU0:last-child,.NavButtons_separator__lPmge:last-child{margin-right:0}.NavButtons_group__OiFOK{display:flex;gap:var(--spacing--l)}.NavButtons_separator__lPmge{border-right:var(--border);border-color:var(--color--inactive);height:32px}.NavButtons_error__kbe3P,.NavButtons_error__kbe3P:active,.NavButtons_error__kbe3P:focus,.NavButtons_error__kbe3P:hover{color:var(--color--error)}.NotFound_notFound__WN02P{height:100%}.NotFound_link__MEAuF,.NotFound_notFound__WN02P{display:flex;align-items:center;justify-content:center;padding:var(--spacing--l)}.NotFound_link__MEAuF{flex-direction:column}.NotFound_icon__UWN1j{--size:200px;height:var(--size);width:var(--size);margin-bottom:var(--spacing--xxl);color:var(--color--red)}@media(max-width:479px){.NotFound_icon__UWN1j{--size:50%;margin-bottom:var(--spacing--xl)}}.NotFound_tiles__TCY86{max-width:100%;height:60px}.Progress_progress__lz772{width:100%;min-height:1px;border-radius:var(--border--radius)}[dir=rtl] .Progress_progress__lz772{transform:scaleX(-1)}.InputPrompt_form__vuJMa{--focus-effect--size:6px;position:relative}.InputPrompt_form__vuJMa:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.InputPrompt_form__vuJMa:focus-within,.InputPrompt_form__vuJMa:focus-within *{outline:none}.InputPrompt_form__vuJMa:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.InputPrompt_form__vuJMa,.InputPrompt_input__9jIi3{border-radius:var(--border--radius)}.InputPrompt_input__9jIi3{height:var(--text-input--height);padding:0 var(--spacing--l);transition:var(--transition);font-size:var(--font--size--m);outline:none;position:absolute;inset:0;width:100%;height:100%;border:none;box-shadow:var(--box-shadow)}.RackTile_rackTile__rj6pD{--focus-effect--size:6px;position:relative}.RackTile_rackTile__rj6pD:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.RackTile_rackTile__rj6pD:focus-within,.RackTile_rackTile__rj6pD:focus-within *{outline:none}.RackTile_rackTile__rj6pD:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.RackTile_rackTile__rj6pD{--background-color:var(--color--background)}.RackTile_rackTile__rj6pD:focus-within{z-index:2}.Rack_rack__0GhLs{position:relative;display:flex;box-shadow:var(--box-shadow);border-radius:var(--border--radius);transition:var(--transition);opacity:1}.Rack_tile__jnU1W input{position:absolute;top:-200%;right:-100%;left:-100%;bottom:0;width:300%;height:300%;clip-path:polygon(33.3333333333% 66.6666666667%,66.6666666667% 66.6666666667%,66.6666666667% 100%,33.3333333333% 100%)}[dir=ltr] .Rack_tile__jnU1W:first-child input,[dir=ltr] .Rack_tile__jnU1W:nth-child(2) input,[dir=ltr] .Rack_tile__jnU1W:nth-child(3) input{left:0;clip-path:polygon(0 66.6666666667%,33.3333333333% 66.6666666667%,33.3333333333% 100%,0 100%)}[dir=ltr] .Rack_tile__jnU1W:last-child input,[dir=ltr] .Rack_tile__jnU1W:nth-last-child(2) input,[dir=ltr] .Rack_tile__jnU1W:nth-last-child(3) input{left:-200%;clip-path:polygon(66.6666666667% 66.6666666667%,100% 66.6666666667%,100% 100%,66.6666666667% 100%)}[dir=rtl] .Rack_tile__jnU1W:first-child input,[dir=rtl] .Rack_tile__jnU1W:nth-child(2) input,[dir=rtl] .Rack_tile__jnU1W:nth-child(3) input{left:-200%;right:0;clip-path:polygon(66.6666666667% 66.6666666667%,100% 66.6666666667%,100% 100%,66.6666666667% 100%)}[dir=rtl] .Rack_tile__jnU1W:last-child input,[dir=rtl] .Rack_tile__jnU1W:nth-last-child(2) input,[dir=rtl] .Rack_tile__jnU1W:nth-last-child(3) input{left:0;right:-200%;clip-path:polygon(0 66.6666666667%,33.3333333333% 66.6666666667%,33.3333333333% 100%,0 100%)}.Rack_hidden__3UrpD{opacity:0}.Rack_sharpLeft__Zlx5l{border-start-start-radius:0;border-end-start-radius:0}.Rack_sharpRight__s2zNJ{border-start-end-radius:0;border-end-end-radius:0}.Radio_radio__AX_QR{--focus-effect--size:6px;position:relative}.Radio_radio__AX_QR:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.Radio_radio__AX_QR:focus-within,.Radio_radio__AX_QR:focus-within *{outline:none}.Radio_radio__AX_QR:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.Radio_radio__AX_QR{display:flex;align-items:center;gap:var(--spacing--l);padding:var(--spacing--m);transition:var(--transition);cursor:pointer}.Radio_radio__AX_QR.Radio_checked__DUhBG .Radio_iconContent__Zu4m7{background-color:var(--color--primary)}.Radio_radio__AX_QR.Radio_disabled__8bp0O{opacity:var(--opacity--disabled);cursor:not-allowed}.Radio_input__eCm6J{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:inherit}.Radio_icon__6ULF0{display:flex;justify-content:center;align-items:center;flex:0 0 auto;width:22px;height:22px;border:2px solid var(--color--primary);border-radius:50%}.Radio_content__2T1Tf{flex:1 1}.Radio_iconContent__Zu4m7{width:14px;height:14px;background-color:rgba(0,0,0,0);border-radius:50%;transition:var(--transition)}.ResultsInput_resultsInput__JbuXk{--focus-effect--size:6px;position:relative}.ResultsInput_resultsInput__JbuXk:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.ResultsInput_resultsInput__JbuXk:focus-within,.ResultsInput_resultsInput__JbuXk:focus-within *{outline:none}.ResultsInput_resultsInput__JbuXk:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.ResultsInput_input__L_7DU{width:100%;height:var(--text-input--height);padding:0 var(--spacing--l);transition:var(--transition);font-size:var(--font--size--m);outline:none;border:none;border-radius:inherit}.Results_results__RAvy9{position:relative;display:flex;flex-direction:column;height:100%;background:var(--color--background--element);border:var(--border);border-radius:var(--border--radius)}.Results_emptyState__HkpYj{flex:1 1}.Results_content__eBfb2{flex:1 1;position:relative;height:100%}.Results_listContainer__y4jAK{position:absolute;inset:0}.Results_list__ep2TB{scrollbar-color:var(--scrollbar--thumb--color) var(--scrollbar--thumb--track);scrollbar-width:thin}.Results_list__ep2TB::-webkit-scrollbar{width:var(--scrollbar--size);background-color:var(--scrollbar--track--color)}.Results_list__ep2TB::-webkit-scrollbar-thumb{background-color:var(--scrollbar--thumb--color)}.Results_list__ep2TB:hover{scrollbar-color:var(--scrollbar--thumb--color--highlight) var(--scrollbar--track--color)}.Results_list__ep2TB:hover::-webkit-scrollbar-thumb{background-color:var(--scrollbar--thumb--color--highlight)}.Results_list__ep2TB{transition:var(--transition)}.Results_list__ep2TB.Results_outdated__xbp6D{filter:blur(2px)}.Results_header__f0CUM{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;border-bottom:var(--border);border-top-left-radius:inherit;border-top-right-radius:inherit}.Results_headerButton__Cl1_U{padding:0;border:none;outline:none;font:inherit;color:inherit;background:none;--focus-effect--size:6px;position:relative}.Results_headerButton__Cl1_U:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.Results_headerButton__Cl1_U:focus-within,.Results_headerButton__Cl1_U:focus-within *{outline:none}.Results_headerButton__Cl1_U:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.Results_headerButton__Cl1_U{cursor:pointer;text-transform:uppercase;transition:background-color var(--transition--duration) var(--transition--easing),color var(--transition--duration) var(--transition--easing);background-color:var(--color--background);height:100%}.Results_headerButton__Cl1_U:first-child{border-start-start-radius:inherit}.Results_headerButton__Cl1_U:last-child{border-start-end-radius:inherit}.Results_headerButton__Cl1_U:focus,.Results_headerButton__Cl1_U:hover{background-color:var(--color--primary);color:var(--color--primary--opposite)}.Results_headerButtonLabel__OxgLh{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:0 1 auto;text-align:start}.Results_headerButtonIcon__FL84f{flex:0 0 auto;width:var(--results--icon--size);height:var(--results--icon--size)}.Results_result__S0y54{padding:0;border:none;outline:none;font:inherit;color:inherit;background:none;-webkit-user-select:none;user-select:none;transition:var(--transition);cursor:pointer;font-weight:400}.Results_result__S0y54.Results_highlighted__LM8tL:not(:disabled),.Results_result__S0y54:focus:not(:disabled),.Results_result__S0y54:hover:not(:disabled){background-color:var(--color--primary);color:var(--color--primary--opposite)}.Results_result__S0y54[aria-hidden=true]{color:var(--color--inactive)}.Results_result__S0y54[aria-hidden=true].Results_highlighted__LM8tL:not(:disabled),.Results_result__S0y54[aria-hidden=true]:focus:not(:disabled),.Results_result__S0y54[aria-hidden=true]:hover:not(:disabled){background-color:var(--color--primary--light);color:var(--color--primary--opposite)}.Results_resultContent__QZg6c{display:flex;align-items:center;justify-content:space-between;height:100%}.Results_resultContent__QZg6c .Results_word__vw_0W{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:flex}.Results_cell__OQlhc{display:flex;align-items:center;justify-content:center;height:100%;gap:var(--spacing--s);line-height:var(--results--item--height)}.Results_headerButton__Cl1_U.Results_word__vw_0W .Results_cell__OQlhc,.Results_result__S0y54 .Results_cell__OQlhc.Results_word__vw_0W{justify-content:flex-start;padding-inline-start:calc(var(--spacing--m) + var(--spacing--s))}.Results_cell__OQlhc:last-child{flex:1 1}.Results_word__vw_0W{flex:0 0;text-transform:uppercase}.Results_stat__zl_Bp{flex:0 0 55px;max-width:55px;justify-content:center}.Results_points__vyk3z{flex:1 0 80px;font-weight:700}.Results_coordinates__1Ph_Z{flex:0 0 55px;max-width:55px}.Results_solveButton__V3YrS{display:block;margin:var(--spacing--xl) auto 0}.Results_sortIcon__W8p9d{flex:0 0 auto;width:19px;height:19px}.Results_input__4Te0e{border-top:var(--border);border-bottom-left-radius:var(--border--radius);border-bottom-right-radius:var(--border--radius)}.Results_highlight__RIiBE{background-color:var(--color--mark);color:var(--color--foreground);border-radius:var(--border--radius)}@media(min-width:768px){.InsertButton_insertButton__t2Y1w{padding:var(--spacing--m) var(--spacing--xl)}}@media(max-width:479px){.InsertButton_insertButton__t2Y1w{padding:var(--spacing--m)}}.InsertButton_icon__w3D9r{transform:scale(1.5)}@keyframes Spinner_hide__NZDja{0%{opacity:1}to{opacity:0}}@keyframes Spinner_show__ciwNs{0%{opacity:0}to{opacity:1}}@keyframes Spinner_rotate__kqx53{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes Spinner_wave__IcOlx{0%{transform:translateY(0)}25%{transform:translateY(6px)}75%{transform:translateY(-6px)}to{transform:translateY(0)}}.Spinner_spinner__dYTEm{width:var(--button--icon--size);height:var(--button--icon--size);border:var(--border);border-width:2px;border-radius:50%;border-right-color:rgba(0,0,0,0)!important;animation:Spinner_rotate__kqx53 .75s linear infinite}.ResultCandidatePicker_resultCandidatePicker__S_aFf{position:relative;display:flex;gap:var(--spacing--l)}@media(max-width:479px){.ResultCandidatePicker_resultCandidatePicker__S_aFf{gap:var(--spacing--m)}}.ResultCandidatePicker_buttons__dT8pq{flex:0 0 auto;display:flex;border-radius:var(--border--radius)}.ResultCandidatePicker_buttons__dT8pq.ResultCandidatePicker_bothEnabled__yX7kU{box-shadow:var(--box-shadow)}.ResultCandidatePicker_buttons__dT8pq.ResultCandidatePicker_bothEnabled__yX7kU .ResultCandidatePicker_button__ipqiD{box-shadow:none}.ResultCandidatePicker_button__ipqiD{padding:var(--spacing--m)}.ResultCandidatePicker_button__ipqiD:focus-within{z-index:1}.ResultCandidatePicker_button__ipqiD:first-child{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.ResultCandidatePicker_button__ipqiD:last-child{border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .ResultCandidatePicker_button__ipqiD{transform:rotate(180deg)}.ResultCandidatePicker_resultCandidate__TffXx{padding:0;border:none;outline:none;font:inherit;color:inherit;background:none;--focus-effect--size:6px;position:relative}.ResultCandidatePicker_resultCandidate__TffXx:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}.ResultCandidatePicker_resultCandidate__TffXx:focus-within,.ResultCandidatePicker_resultCandidate__TffXx:focus-within *{outline:none}.ResultCandidatePicker_resultCandidate__TffXx:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}.ResultCandidatePicker_resultCandidate__TffXx{flex:1 1;display:flex;align-items:center;min-width:0;width:100%;border:var(--border);border-radius:var(--border--radius);background-color:var(--color--white);box-shadow:var(--box-shadow);cursor:pointer}.ResultCandidatePicker_resultCandidate__TffXx[disabled]{opacity:var(--opacity--disabled);box-shadow:none;cursor:not-allowed}.ResultCandidatePicker_content__1i_5T{display:flex;align-items:center;width:100%;overflow:hidden}.ResultCandidatePicker_points__86QEQ,.ResultCandidatePicker_word___Wi29{padding:var(--spacing--m) var(--spacing--l)}.ResultCandidatePicker_points__86QEQ{flex:0 0 auto;font-weight:700;border-inline-end:var(--border)}@media(max-width:479px){.ResultCandidatePicker_points__86QEQ{border-inline-end:none;padding-inline-end:var(--spacing--xs)}}.ResultCandidatePicker_word___Wi29{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1 1;text-transform:uppercase;text-align:center;white-space:pre-wrap}@media(max-width:479px){.ResultCandidatePicker_word___Wi29{padding:var(--spacing--m);text-align:start}}.ResultCandidatePicker_iconContainer__iiYkC{flex:0 0 auto;display:flex;padding-inline-end:var(--spacing--l)}.ResultCandidatePicker_spinnerContainer__3nvoz{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.ResultCandidatePicker_icon__AyoQE,.ResultCandidatePicker_loading__0iXU_{width:var(--button--icon--size);height:var(--button--icon--size);color:var(--color--inactive)}.ResultCandidatePicker_loading__0iXU_{border-color:var(--color--inactive)}.ResultCandidatePicker_insert__KAM26{flex:0 0 auto}.Solver_solver__HgdJ5{--spacing:var(--spacing--xl);position:relative;margin:0 var(--spacing);display:flex;flex-direction:column}@media(max-width:1399px){.Solver_solver__HgdJ5{--spacing:var(--spacing--l)}}@media(max-width:1199px)and (hover:none){.Solver_solver__HgdJ5{margin-bottom:calc(3*var(--spacing--l) + var(--button--icon--size))}}@media(max-width:479px)and (hover:none){.Solver_solver__HgdJ5{margin-bottom:calc(1*var(--spacing--m) + 2*var(--spacing--l) + var(--button--icon--size))}}.Solver_container__ajXif{position:relative;display:flex;align-items:center;justify-content:center}.Solver_content__HOara{display:grid;grid-template-columns:minmax(0,1fr) var(--solver-column--width);gap:var(--spacing);height:100%;margin:0 auto}@media(max-width:1199px){.Solver_content__HOara{grid-template-columns:1fr}}.Solver_boardContainer__4GPRC{position:relative}.Solver_board__GI25F{margin:0 auto}.Solver_submitInput__Q3pw9{display:none}.Solver_column__stLpp{display:flex;flex-direction:column;flex:0 0 var(--solver-column--width);gap:var(--spacing)}@media(max-width:1199px){.Solver_column__stLpp{display:none}}.Solver_results__YjM_q{box-shadow:var(--box-shadow)}.Solver_dictionaryContainer__v6K0v{flex:0 0 auto;height:var(--dictionary--height);display:flex;flex-direction:column;background-color:var(--color--background--element);border:var(--border);border-radius:var(--border--radius);box-shadow:var(--box-shadow)}.Solver_dictionary__R2P0a{flex:1 1;border-bottom:var(--border);border-top-left-radius:var(--border--radius);border-top-right-radius:var(--border--radius)}.Solver_dictionaryInput__kSVRV{flex:0 0 auto;border-bottom-left-radius:var(--border--radius);border-bottom-right-radius:var(--border--radius)}.Solver_bottomContainer___pVNW{flex:0 0 auto;display:flex;justify-content:center}.Solver_bottomContent__b8KyY{display:inline-flex;flex-direction:column;align-items:center;gap:var(--spacing);margin:var(--spacing) auto;min-width:0}.Solver_controls__4fjwP{width:100%}.Solver_emptyState__6TEU_{margin-top:var(--spacing)}.Arrows_arrows__Ll5Em{display:inline-grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:var(--spacing--xs);gap:1px}.Arrows_arrow__w3eLL{margin-inline-start:0!important;max-width:var(--key--height--small);padding:0}.Arrows_up__kAspb{grid-row:1;grid-column:2}.Arrows_left__8bzz3{grid-row:2;grid-column:1}[dir=rtl] .Arrows_left__8bzz3{grid-column:3}.Arrows_right__7cua_{grid-row:2;grid-column:3}[dir=rtl] .Arrows_right__7cua_{grid-column:1}.Arrows_down__Hx9IM{grid-row:2;grid-column:2}
2
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--border:var(--border--width) solid var(--border--color);--border--color:#cdcdcd;--border--color--light:#d9d9d9;--border--radius:5px;--border--width:1px;--box-shadow:0 0 var(--box-shadow--blur) var(--box-shadow--spread) var(--box-shadow--color);--box-shadow--blur:8px;--box-shadow--color:rgba(0,0,0,0.15);--box-shadow--color--inverse:rgba(255,255,255,0.85);--box-shadow--color--raised:rgba(34,34,34,0.8);--box-shadow--spread:1px;--box-shadow--null:0 0 var(--box-shadow--blur) var(--box-shadow--spread) transparent;--box-shadow--error:0 0 var(--box-shadow--blur) var(--box-shadow--spread) var(--color--error);--box-shadow--raised:inset -2px -2px 2px -1px var(--box-shadow--color--raised);--box-shadow--raised--subtle:inset -1px -1px 1px 0 var(--box-shadow--color--raised);--color--white:#ffffff;--color--blue:#c7d8f9;--color--blue--light:#dde4f6;--color--green:#bae3ba;--color--green--light:#d6ebd6;--color--red:#f7c2aa;--color--red--light:#fbe0d4;--color--violet:#78387f;--color--violet--light:#b284b8;--color--yellow:#efe3ae;--color--yellow--light:#f7f1d6;--color--focus:rgba(38,143,255,0.5);--color--inactive:#cdcdcd;--color--background:#f4f4f4;--color--background--element:var(--color--white);--color--background--overlay:rgba(255,255,255,0.65);--color--foreground:#222;--color--foreground--secondary:#444;--color--mark:#ffff00;--color--error:hsl(0,92%,62%);--color--error--opposite:var(--color--white);--color--info:#1868ad;--color--success:#00a900;--color--warning:hsl(35,90%,60%);--color--primary:var(--color--violet);--color--primary--light:var(--color--violet--light);--color--primary--opposite:var(--color--white);--color--bonus--character--1:var(--color--yellow--light);--color--bonus--character--2:var(--color--green--light);--color--bonus--character--3:var(--color--blue--light);--color--bonus--character--5:var(--color--red--light);--color--bonus--character-multiplier--2:#b8d5ed;--color--bonus--character-multiplier--3:#86aed1;--color--bonus--character-multiplier--4:#3477b2;--color--bonus--start:var(--color--violet--light);--color--bonus--word-multiplier--2:#fbc997;--color--bonus--word-multiplier--3:#f19393;--color--bonus--word-multiplier--4:#ed5e5e;--color--tooltip--background:#444;--color--tooltip--foreground:var(--color--white);--font--family:system-ui,sans-serif;--font--family--monospace:ui-monospace,"Cascadia Code","Source Code Pro",Menlo,Consolas,"DejaVu Sans Mono",monospace;--font--size--h1:30px;--font--size--h2:22px;--font--size--h3:18px;--font--size--m:16px;--line-height:1.5;--opacity--disabled:0.3;--spacing--xs:2px;--spacing--s:5px;--spacing--m:10px;--spacing--l:20px;--spacing--xl:40px;--spacing--xxl:80px;--scrollbar--size:5px;--scrollbar--thumb--color:var(--border--color);--scrollbar--thumb--color--highlight:var(--color--foreground--secondary);--scrollbar--track--color:transparent;--transition:all var(--transition--duration) var(--transition--easing);--transition--long:all var(--transition--duration--long) var(--transition--easing);--transition--duration:100ms;--transition--duration--long:250ms;--transition--easing:cubic-bezier(0.61,1,0.88,1);--z-index--focus-effect:1;--z-index--actions:2;--z-index--modal:100;--z-index--close-button:101;--z-index--tooltip:102;--button--icon--size:24px;--dictionary--height:260px;--dictionary--height--mobile:110px;--key--height:36px;--key--icon--size:16px;--logo--height:60px;--modal--width:370px;--nav--height:calc(var(--logo--height) + var(--nav--padding));--nav--padding:var(--spacing--l);--results--icon--size:18px;--results--item--height:40px;--solver-column--width:580px;--square-button--size:32px;--text-input--height:40px;--tooltip--max-width:500px}@media(max-width:1199px){:root{--dictionary--height:var(--dictionary--height--mobile);--logo--height:48px}}@media(max-width:767px){:root{--box-shadow--blur:5px;--modal--width:100%}}@media(max-width:479px){:root{--box-shadow--blur:3px}}*,:after,:before{box-sizing:border-box}*{font-family:var(--font--family)}body,html{margin:0 auto;padding:0}body{background-color:var(--color--background);color:var(--color--foreground);font-size:var(--font--size--m);line-height:var(--line-height)}a{--focus-effect--size:6px;position:relative}a:after{position:absolute;inset:0;z-index:var(--z-index--focus-effect);transition:var(--transition);border-radius:var(--border--radius);box-shadow:0 0 0 var(--focus-effect--size) rgba(0,0,0,0);pointer-events:none}a:focus-within,a:focus-within *{outline:none}a:focus-within:after{content:"";box-shadow:0 0 0 var(--focus-effect--size) var(--color--focus)}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{-webkit-margin-before:0;-webkit-margin-after:0;margin:0}nextjs-portal{display:none}
@@ -1,9 +0,0 @@
1
- import { Trie } from '@kamilmielnik/trie';
2
- import { type Locale } from '@scrabble-solver/types';
3
-
4
- import { fetchJson } from './fetchJson';
5
-
6
- export const getDictionary = async (locale: Locale): Promise<Trie> => {
7
- const serialized = await fetchJson<string>(`/api/dictionary/${locale}`);
8
- return Trie.deserialize(serialized);
9
- };
@@ -1,7 +0,0 @@
1
- export const average = (numbers: number[]): number => {
2
- if (numbers.length === 0) {
3
- return 0;
4
- }
5
-
6
- return numbers.reduce((sum, value) => sum + value, 0) / numbers.length;
7
- };
@@ -1,5 +0,0 @@
1
- export const DICTIONARY_CACHE = 'dictionary-api-cache';
2
-
3
- export const DAY = 24 * 60 * 60 * 1000;
4
-
5
- export const DICTIONARY_CACHE_MAX_AGE = 1 * DAY; // eslint-disable-line no-implicit-coercion
@@ -1,20 +0,0 @@
1
- import { type Locale } from '@scrabble-solver/types';
2
-
3
- import { DICTIONARY_CACHE } from './constants';
4
- import { expirationManager } from './expirationManager';
5
- import { getDictionaryUrl } from './getDictionaryUrl';
6
-
7
- export const getDictionary = async (locale: Locale): Promise<string | undefined> => {
8
- await expirationManager.expireEntries();
9
-
10
- const url = getDictionaryUrl(locale);
11
- const cache = await caches.open(DICTIONARY_CACHE);
12
- const cached = await cache.match(url);
13
-
14
- if (typeof cached === 'undefined') {
15
- return undefined;
16
- }
17
-
18
- const serialized = await cached.clone().text();
19
- return serialized;
20
- };
@@ -1,2 +0,0 @@
1
- export { getDictionary } from './getDictionary';
2
- export { revalidateDictionary } from './revalidateDictionary';
@@ -1,33 +0,0 @@
1
- import { type Locale } from '@scrabble-solver/types';
2
-
3
- import { DICTIONARY_CACHE } from './constants';
4
- import { expirationManager } from './expirationManager';
5
- import { getDictionaryUrl } from './getDictionaryUrl';
6
-
7
- const requests: Partial<Record<Locale, Promise<Response> | undefined>> = {};
8
-
9
- export const revalidateDictionary = async (locale: Locale): Promise<void> => {
10
- if (requests[locale] instanceof Promise) {
11
- return;
12
- }
13
-
14
- let response: Response | undefined;
15
- const url = getDictionaryUrl(locale);
16
- const request = fetch(url);
17
- requests[locale] = request;
18
-
19
- try {
20
- response = await request;
21
-
22
- if (!response.ok) {
23
- requests[locale] = undefined;
24
- throw new Error(`HTTP ${response.status}: ${response.statusText}`);
25
- }
26
-
27
- const cache = await caches.open(DICTIONARY_CACHE);
28
- await cache.put(url, response.clone());
29
- await expirationManager.updateTimestamp(url);
30
- } finally {
31
- requests[locale] = undefined;
32
- }
33
- };
@@ -1,24 +0,0 @@
1
- import { Trie } from '@kamilmielnik/trie';
2
- import { type Locale } from '@scrabble-solver/types';
3
-
4
- import { getDictionary } from './dictionaries';
5
-
6
- const cache: Partial<Record<Locale, { trie: Trie; dictionary: string } | undefined>> = {};
7
-
8
- export const getTrie = async (locale: Locale): Promise<Trie | undefined> => {
9
- const dictionary = await getDictionary(locale);
10
-
11
- if (typeof dictionary === 'undefined') {
12
- return undefined;
13
- }
14
-
15
- const cached = cache[locale];
16
-
17
- if (typeof cached === 'undefined' || cached.dictionary !== dictionary) {
18
- const trie = Trie.deserialize(dictionary);
19
- cache[locale] = { dictionary, trie };
20
- return trie;
21
- }
22
-
23
- return cached.trie;
24
- };
@@ -1,91 +0,0 @@
1
- import { type Trie } from '@kamilmielnik/trie';
2
- import { getConfig } from '@scrabble-solver/configs';
3
- import { BLANK } from '@scrabble-solver/constants';
4
- import { solve } from '@scrabble-solver/solver';
5
- import { Board, Tile } from '@scrabble-solver/types';
6
- import { registerRoute } from 'workbox-routing';
7
-
8
- import { type SolveRequestPayload } from '@/types';
9
-
10
- import { average } from './average';
11
- import { revalidateDictionary } from './dictionaries';
12
- import { getTrie } from './getTrie';
13
-
14
- const headers = {
15
- 'Content-Type': 'application/json; charset=utf-8',
16
- };
17
-
18
- const MIN_MEASUREMENTS = 5;
19
- const localDurations: number[] = [];
20
- const serverDurations: number[] = [];
21
-
22
- export const routeSolveRequests = () => {
23
- registerRoute(
24
- ({ url }) => url.origin === location.origin && url.pathname === '/api/solve',
25
- async ({ request }) => {
26
- const requestJson: SolveRequestPayload = await request.clone().json();
27
- const { board, characters, game, locale } = requestJson;
28
-
29
- const solveLocal = async (trie: Trie): Promise<Response> => {
30
- const config = getConfig(game, locale);
31
- const tiles = characters.map((character: string) => new Tile({ character, isBlank: character === BLANK }));
32
-
33
- return new Promise((resolve) => {
34
- const resultsJson = solve(trie, config, Board.fromJson(board), tiles);
35
- const responseJson = JSON.stringify(resultsJson);
36
- resolve(new Response(responseJson, { headers }));
37
- });
38
- };
39
-
40
- const solveServer = () => fetch(request);
41
-
42
- const trie = await getTrie(locale);
43
-
44
- if (trie && typeof isSlowDevice() === 'undefined') {
45
- const response = await Promise.race([
46
- (async () => {
47
- const start = Date.now();
48
- const result = solveLocal(trie);
49
- localDurations.push(Date.now() - start);
50
- return result;
51
- })(),
52
- (async () => {
53
- const start = Date.now();
54
- const result = await solveServer();
55
- serverDurations.push(Date.now() - start);
56
- return result;
57
- })(),
58
- ]);
59
-
60
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
61
- revalidateDictionary(locale);
62
- return response;
63
- }
64
-
65
- const handleSolve = trie && !isSlowDevice() ? () => solveLocal(trie) : () => solveServer();
66
- const response = await handleSolve();
67
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
68
- revalidateDictionary(locale);
69
- return response;
70
- },
71
- 'POST',
72
- );
73
- };
74
-
75
- const isSlowDevice = (): boolean | undefined => {
76
- if (localDurations.length < MIN_MEASUREMENTS || serverDurations.length < MIN_MEASUREMENTS) {
77
- return undefined;
78
- }
79
-
80
- const count = Math.min(localDurations.length, serverDurations.length);
81
- const local = localDurations
82
- .slice(0, count)
83
- .sort((a, b) => a - b)
84
- .slice(1, -1);
85
- const server = localDurations
86
- .slice(0, count)
87
- .sort((a, b) => a - b)
88
- .slice(1, -1);
89
-
90
- return average(local) > average(server);
91
- };
@@ -1,37 +0,0 @@
1
- import { Board } from '@scrabble-solver/types';
2
- import { registerRoute } from 'workbox-routing';
3
-
4
- import { type VerifyRequestPayload } from '@/types';
5
-
6
- import { revalidateDictionary } from './dictionaries';
7
- import { getTrie } from './getTrie';
8
-
9
- const headers = {
10
- 'Content-Type': 'application/json; charset=utf-8',
11
- };
12
-
13
- export const routeVerifyRequests = () => {
14
- registerRoute(
15
- ({ url }) => url.origin === location.origin && url.pathname === '/api/verify',
16
- async ({ request }) => {
17
- const requestJson: VerifyRequestPayload = await request.clone().json();
18
- const { board: boardJson, locale } = requestJson;
19
- const trie = await getTrie(locale);
20
-
21
- if (!trie) {
22
- const response = await fetch(request);
23
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
24
- revalidateDictionary(locale);
25
- return response;
26
- }
27
-
28
- const board = Board.fromJson(boardJson);
29
- const words = board.getWords().sort((a, b) => a.localeCompare(b, locale));
30
- const invalidWords = words.filter((word) => !trie.has(word));
31
- const validWords = words.filter((word) => trie.has(word));
32
- const json = JSON.stringify({ invalidWords, validWords });
33
- return new Response(json, { headers });
34
- },
35
- 'POST',
36
- );
37
- };
@@ -1,2 +0,0 @@
1
- import { type Config, type Pattern } from '@scrabble-solver/types';
2
- export declare const areDigraphsValid: (config: Config, pattern: Pattern) => boolean;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.areDigraphsValid = void 0;
4
- const areDigraphsValid = (config, pattern) => {
5
- const { twoCharacterTiles } = config;
6
- const { cells } = pattern;
7
- for (let index = 0; index < cells.length - 1; ++index) {
8
- const current = cells[index];
9
- const next = cells[index + 1];
10
- const digraphCandidate = current.tile.character + next.tile.character;
11
- if (twoCharacterTiles.includes(digraphCandidate)) {
12
- return false;
13
- }
14
- }
15
- return true;
16
- };
17
- exports.areDigraphsValid = areDigraphsValid;
@@ -1,6 +0,0 @@
1
- import { type Trie } from '@kamilmielnik/trie';
2
- import { type Config, type Pattern, type Tile } from '@scrabble-solver/types';
3
- export declare const fillPattern: (trie: Trie, config: Config, pattern: Pattern, tiles: Tile[]) => Pattern[];
4
- export declare const fillPatternRecursive: (
5
- /** gets mutated when this function is called */
6
- results: Pattern[], trie: Trie, config: Config, pattern: Pattern, word: string, tiles: Tile[]) => void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fillPatternRecursive = exports.fillPattern = void 0;
4
- const constants_1 = require("@scrabble-solver/constants");
5
- const types_1 = require("@scrabble-solver/types");
6
- const fillPattern = (trie, config, pattern, tiles) => {
7
- if (pattern.getEmptyCellsCount() > tiles.length) {
8
- return [];
9
- }
10
- const results = [];
11
- (0, exports.fillPatternRecursive)(results, trie, config, pattern, pattern.toString(), tiles);
12
- return results;
13
- };
14
- exports.fillPattern = fillPattern;
15
- const fillPatternRecursive = (
16
- /** gets mutated when this function is called */
17
- results, trie, config, pattern, word, tiles) => {
18
- const indexOfFirstCellWithoutTile = pattern.getIndexOfFirstCellWithoutTile();
19
- if (indexOfFirstCellWithoutTile === -1) {
20
- if (trie.has(word) && pattern.getCollisions().every((collision) => trie.has(collision.toString()))) {
21
- results.push(new types_1.FinalPattern(pattern.clone()));
22
- }
23
- return;
24
- }
25
- for (let index = 0; index < tiles.length; ++index) {
26
- const tile = tiles[index];
27
- const previousTile = pattern.cells[indexOfFirstCellWithoutTile].tile;
28
- pattern.cells[indexOfFirstCellWithoutTile].tile = tile;
29
- const indexOfNextCellWithoutTile = pattern.getIndexOfFirstCellWithoutTile();
30
- const indexOfFirstEmptyLetter = word.indexOf(constants_1.EMPTY_CELL);
31
- const prefix = word.substring(0, indexOfFirstEmptyLetter);
32
- const suffix = word.substring(indexOfFirstEmptyLetter + 1);
33
- const characters = tile.isBlank ? config.alphabet : [tile.character];
34
- for (const character of characters) {
35
- const newWordPrefix = prefix + character;
36
- const newWord = newWordPrefix + suffix;
37
- tile.character = character;
38
- if (indexOfNextCellWithoutTile === -1) {
39
- if (trie.has(newWord) && pattern.getCollisions().every((collision) => trie.has(collision.toString()))) {
40
- results.push(new types_1.FinalPattern(pattern.clone()));
41
- }
42
- }
43
- else if (trie.hasPrefix(newWordPrefix)) {
44
- tiles.splice(index, 1);
45
- (0, exports.fillPatternRecursive)(results, trie, config, pattern, newWord, tiles);
46
- tiles.splice(index, 0, tile);
47
- }
48
- }
49
- pattern.cells[indexOfFirstCellWithoutTile].tile = previousTile;
50
- }
51
- };
52
- exports.fillPatternRecursive = fillPatternRecursive;
@@ -1,2 +0,0 @@
1
- import { type Cell } from '@scrabble-solver/types';
2
- export declare const generateEndIndices: (cells: Cell[], startIndex: number) => number[];
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateEndIndices = void 0;
4
- const generateEndIndices = (cells, startIndex) => {
5
- if (cells.length === 0) {
6
- return [];
7
- }
8
- const endIndices = [];
9
- for (let endIndex = startIndex + 1; endIndex < cells.length - 1; ++endIndex) {
10
- if (!cells[endIndex + 1].hasTile()) {
11
- endIndices.push(endIndex);
12
- }
13
- }
14
- endIndices.push(cells.length - 1);
15
- return endIndices;
16
- };
17
- exports.generateEndIndices = generateEndIndices;
@@ -1,2 +0,0 @@
1
- import { type Board, type Config, type Pattern } from '@scrabble-solver/types';
2
- export declare const generateHorizontalPatterns: (config: Config, board: Board) => Pattern[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateHorizontalPatterns = void 0;
4
- const types_1 = require("@scrabble-solver/types");
5
- const generatePattern_1 = require("./generatePattern");
6
- const generateVectors_1 = require("./generateVectors");
7
- const generateHorizontalPatterns = (config, board) => {
8
- const getNthVector = (index) => board.getRow(index);
9
- const vectorsCount = config.boardHeight;
10
- const horizontalVectors = (0, generateVectors_1.generateVectors)({ getNthVector, vectorsCount });
11
- const horizontalPatterns = horizontalVectors.flatMap((cells) => {
12
- return (0, generatePattern_1.generatePattern)({ board, config, PatternModel: types_1.HorizontalPattern, cells });
13
- });
14
- return horizontalPatterns;
15
- };
16
- exports.generateHorizontalPatterns = generateHorizontalPatterns;
@@ -1,7 +0,0 @@
1
- import { type Board, type Cell, type Config, type Pattern } from '@scrabble-solver/types';
2
- export declare const generatePattern: <P extends Pattern>({ board, cells, config, PatternModel, }: {
3
- board: Board;
4
- cells: Cell[];
5
- config: Config;
6
- PatternModel: new (board: Board, cells: Cell[]) => P;
7
- }) => P[];
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generatePattern = void 0;
4
- const generateEndIndices_1 = require("./generateEndIndices");
5
- const generateStartIndices_1 = require("./generateStartIndices");
6
- const generatePattern = ({ board, cells, config, PatternModel, }) => {
7
- const startIndices = (0, generateStartIndices_1.generateStartIndices)(cells);
8
- return startIndices.flatMap((startIndex) => {
9
- const endIndices = (0, generateEndIndices_1.generateEndIndices)(cells, startIndex);
10
- const patterns = [];
11
- for (const endIndex of endIndices) {
12
- const pattern = new PatternModel(board, cells.slice(startIndex, endIndex + 1));
13
- if (pattern.canBePlaced(config)) {
14
- patterns.push(pattern);
15
- }
16
- }
17
- return patterns;
18
- });
19
- };
20
- exports.generatePattern = generatePattern;
@@ -1,2 +0,0 @@
1
- import { type Board, type Config, type Pattern } from '@scrabble-solver/types';
2
- export declare const generatePatterns: (config: Config, board: Board) => Pattern[];
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generatePatterns = void 0;
4
- const generateHorizontalPatterns_1 = require("./generateHorizontalPatterns");
5
- const generateVerticalPatterns_1 = require("./generateVerticalPatterns");
6
- const generatePatterns = (config, board) => {
7
- const horizontalPatterns = (0, generateHorizontalPatterns_1.generateHorizontalPatterns)(config, board);
8
- const verticalPatterns = (0, generateVerticalPatterns_1.generateVerticalPatterns)(config, board);
9
- return horizontalPatterns.concat(verticalPatterns);
10
- };
11
- exports.generatePatterns = generatePatterns;
@@ -1,2 +0,0 @@
1
- import { type Cell } from '@scrabble-solver/types';
2
- export declare const generateStartIndices: (cells: Cell[]) => number[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateStartIndices = void 0;
4
- const generateStartIndices = (cells) => {
5
- if (cells.length === 0) {
6
- return [];
7
- }
8
- const startIndices = [0];
9
- for (let startIndex = 1; startIndex < cells.length - 1; ++startIndex) {
10
- if (!cells[startIndex - 1].hasTile()) {
11
- startIndices.push(startIndex);
12
- }
13
- }
14
- return startIndices;
15
- };
16
- exports.generateStartIndices = generateStartIndices;
@@ -1,7 +0,0 @@
1
- import { type Cell } from '@scrabble-solver/types';
2
- interface Parameters {
3
- getNthVector: (index: number) => Cell[];
4
- vectorsCount: number;
5
- }
6
- export declare const generateVectors: ({ getNthVector, vectorsCount }: Parameters) => Cell[][];
7
- export {};
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateVectors = void 0;
4
- const generateVectors = ({ getNthVector, vectorsCount }) => {
5
- return Array.from({ length: vectorsCount }, (_, index) => getNthVector(index));
6
- };
7
- exports.generateVectors = generateVectors;
@@ -1,2 +0,0 @@
1
- import { type Board, type Config, type Pattern } from '@scrabble-solver/types';
2
- export declare const generateVerticalPatterns: (config: Config, board: Board) => Pattern[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateVerticalPatterns = void 0;
4
- const types_1 = require("@scrabble-solver/types");
5
- const generatePattern_1 = require("./generatePattern");
6
- const generateVectors_1 = require("./generateVectors");
7
- const generateVerticalPatterns = (config, board) => {
8
- const getNthVector = (index) => board.getColumn(index);
9
- const vectorsCount = config.boardWidth;
10
- const verticalVectors = (0, generateVectors_1.generateVectors)({ getNthVector, vectorsCount });
11
- const verticalPatterns = verticalVectors.flatMap((cells) => {
12
- return (0, generatePattern_1.generatePattern)({ board, config, PatternModel: types_1.VerticalPattern, cells });
13
- });
14
- return verticalPatterns;
15
- };
16
- exports.generateVerticalPatterns = generateVerticalPatterns;
@@ -1,2 +0,0 @@
1
- import { type Cell, type Config } from '@scrabble-solver/types';
2
- export declare const getCellsScore: (config: Config, cells: Cell[]) => number;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCellsScore = void 0;
4
- const constants_1 = require("@scrabble-solver/constants");
5
- const getCellsScore = (config, cells) => {
6
- const total = cells.reduce(({ multiplier, score }, cell) => {
7
- const bonus = config.getCellBonus(cell);
8
- const { characterMultiplier, wordMultiplier } = bonus && bonus.canApply(config, cell) ? bonus.value : constants_1.NO_BONUS;
9
- const characterScore = config.pointsMap[cell.tile.character] || 0;
10
- const tileScore = cell.tile.isBlank ? config.blankScore : characterScore;
11
- return {
12
- multiplier: multiplier * wordMultiplier,
13
- score: score + tileScore * characterMultiplier,
14
- };
15
- }, { multiplier: 1, score: 0 });
16
- return total.score * total.multiplier;
17
- };
18
- exports.getCellsScore = getCellsScore;
@@ -1,2 +0,0 @@
1
- import { type Pattern } from '@scrabble-solver/types';
2
- export declare const getPatternHash: (pattern: Pattern) => string;