scrabble-solver 2.18.10-alpha.1 → 2.19.0-alpha.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 (191) hide show
  1. package/.env +1 -0
  2. package/.next/BUILD_ID +1 -0
  3. package/.next/build-manifest.json +42 -0
  4. package/.next/dynamic-css-manifest.json +8 -0
  5. package/.next/export-marker.json +6 -0
  6. package/.next/images-manifest.json +68 -0
  7. package/.next/package.json +1 -0
  8. package/.next/prerender-manifest.json +28 -0
  9. package/.next/react-loadable-manifest.json +182 -0
  10. package/.next/required-server-files.js +371 -0
  11. package/.next/required-server-files.json +371 -0
  12. package/.next/routes-manifest.json +119 -0
  13. package/.next/server/chunks/30.js +6 -0
  14. package/.next/server/chunks/309.js +1 -0
  15. package/.next/server/chunks/344.js +1 -0
  16. package/.next/server/chunks/371.js +1 -0
  17. package/.next/server/chunks/465.js +1 -0
  18. package/.next/server/chunks/546.js +1 -0
  19. package/.next/server/chunks/612.js +5 -0
  20. package/.next/server/chunks/623.js +1 -0
  21. package/.next/server/chunks/641.js +1 -0
  22. package/.next/server/chunks/67.js +1 -0
  23. package/.next/server/chunks/671.js +1 -0
  24. package/.next/server/chunks/692.js +1 -0
  25. package/.next/server/chunks/705.js +1 -0
  26. package/.next/server/chunks/712.js +1 -0
  27. package/.next/server/chunks/715.js +1 -0
  28. package/.next/server/chunks/812.js +1 -0
  29. package/.next/server/chunks/846.js +1 -0
  30. package/.next/server/chunks/853.js +15 -0
  31. package/.next/server/chunks/886.js +1 -0
  32. package/.next/server/chunks/923.js +1 -0
  33. package/.next/server/chunks/942.js +1 -0
  34. package/.next/server/chunks/953.js +1 -0
  35. package/.next/server/chunks/961.js +1 -0
  36. package/.next/server/chunks/968.js +1 -0
  37. package/.next/server/chunks/97.js +1 -0
  38. package/.next/server/dynamic-css-manifest.js +1 -0
  39. package/.next/server/functions-config-manifest.json +4 -0
  40. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  41. package/.next/server/middleware-build-manifest.js +1 -0
  42. package/.next/server/middleware-manifest.json +6 -0
  43. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  44. package/.next/server/next-font-manifest.js +1 -0
  45. package/.next/server/next-font-manifest.json +1 -0
  46. package/.next/server/pages/404.html +29 -0
  47. package/.next/server/pages/404.js +28 -0
  48. package/.next/server/pages/500.html +29 -0
  49. package/.next/server/pages/_app.js +1 -0
  50. package/.next/server/pages/_document.js +28 -0
  51. package/.next/server/pages/_error.js +28 -0
  52. package/.next/server/pages/api/dictionary/[locale]/[word].js +2 -0
  53. package/.next/server/pages/api/dictionary/[locale].js +1 -0
  54. package/.next/server/pages/api/solve.js +1 -0
  55. package/.next/server/pages/api/verify.js +1 -0
  56. package/.next/server/pages/api/visit.js +1 -0
  57. package/.next/server/pages/index.html +29 -0
  58. package/.next/server/pages/index.js +30 -0
  59. package/.next/server/pages/index.json +1 -0
  60. package/.next/server/pages/index.meta +1 -0
  61. package/.next/server/pages-manifest.json +12 -0
  62. package/.next/server/prefetch-hints.json +1 -0
  63. package/.next/server/preview-props.json +5 -0
  64. package/.next/server/route-cache/PAGES/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/$/index.html +29 -0
  65. package/.next/server/route-cache/PAGES/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/$/index.json +1 -0
  66. package/.next/server/route-cache/PAGES/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/$/index.meta +1 -0
  67. package/.next/server/webpack-api-runtime.js +1 -0
  68. package/.next/server/webpack-runtime.js +1 -0
  69. package/.next/static/Ng_NN9gQywZowmg2O0pgm/_buildManifest.js +1 -0
  70. package/.next/static/Ng_NN9gQywZowmg2O0pgm/_ssgManifest.js +1 -0
  71. package/.next/static/chunks/100.52dda92e5e8a952a.js +1 -0
  72. package/.next/static/chunks/277.6785dfaf22fdb0b7.js +1 -0
  73. package/.next/static/chunks/307.8fdeb1732d749981.js +1 -0
  74. package/.next/static/chunks/341.79535ba85bf1986f.js +1 -0
  75. package/.next/static/chunks/363.25b64181ebca205d.js +1 -0
  76. package/.next/static/chunks/422.8327da4bbddd0842.js +1 -0
  77. package/.next/static/chunks/519.9f9c2d29933bf2ef.js +1 -0
  78. package/.next/static/chunks/541.c69629e483176ad7.js +1 -0
  79. package/.next/static/chunks/628.3175e816bc17d5c7.js +1 -0
  80. package/.next/static/chunks/631.3623a2830ab30d1e.js +1 -0
  81. package/.next/static/chunks/663.cfbde775630d10fd.js +1 -0
  82. package/.next/static/chunks/693.55a42abad20cbdaa.js +1 -0
  83. package/.next/static/chunks/73.73bfdde6a7a9b42b.js +1 -0
  84. package/.next/static/chunks/744-5baf05ff91b58ebe.js +3 -0
  85. package/.next/static/chunks/820.e8f3e1c85e1657ec.js +1 -0
  86. package/.next/static/chunks/827.d01b6d69af340ba4.js +1 -0
  87. package/.next/static/chunks/865.5265cef552d53595.js +1 -0
  88. package/.next/static/chunks/912.b802c1066a130cf6.js +1 -0
  89. package/.next/static/chunks/939.63d71e74e359a311.js +1 -0
  90. package/.next/static/chunks/980.dd35e807b18063c1.js +1 -0
  91. package/.next/static/chunks/990.61296e5870b91f11.js +1 -0
  92. package/.next/static/chunks/framework-86d3b250d278cea9.js +1 -0
  93. package/.next/static/chunks/main-738e097cd313908f.js +5 -0
  94. package/.next/static/chunks/pages/404-8013c66eb40999e8.js +1 -0
  95. package/.next/static/chunks/pages/_app-aee589671f9cc846.js +1 -0
  96. package/.next/static/chunks/pages/_error-f0290a98eb3ed0ec.js +1 -0
  97. package/.next/static/chunks/pages/index-a96995844e778716.js +1 -0
  98. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  99. package/.next/static/chunks/webpack-4bca6879a7d98e24.js +1 -0
  100. package/.next/static/css/2d03f0da2c678dfc.css +1 -0
  101. package/.next/static/css/4dbcacc1122ac6b9.css +2 -0
  102. package/.next/static/css/7b6724d2df70f48f.css +1 -0
  103. package/.next/static/css/90e8d51d917ed7e3.css +1 -0
  104. package/.next/static/css/98051ed25076b896.css +1 -0
  105. package/.next/static/css/b736be3bd02b5d99.css +1 -0
  106. package/.next/static/css/ca311e6c030663d4.css +1 -0
  107. package/.next/static/css/cd4d7f2458487399.css +1 -0
  108. package/.next/static/css/dee878eb64099d92.css +1 -0
  109. package/README.md +5 -217
  110. package/bin/scrabble-solver.js +35 -4
  111. package/next.config.js +60 -0
  112. package/package.json +92 -52
  113. package/public/favicon.ico +0 -0
  114. package/public/icons/apple-touch-icon-114x114.png +0 -0
  115. package/public/icons/apple-touch-icon-120x120.png +0 -0
  116. package/public/icons/apple-touch-icon-144x144.png +0 -0
  117. package/public/icons/apple-touch-icon-152x152.png +0 -0
  118. package/public/icons/apple-touch-icon-57x57.png +0 -0
  119. package/public/icons/apple-touch-icon-60x60.png +0 -0
  120. package/public/icons/apple-touch-icon-72x72.png +0 -0
  121. package/public/icons/apple-touch-icon-76x76.png +0 -0
  122. package/public/icons/favicon-128.png +0 -0
  123. package/public/icons/favicon-16x16.png +0 -0
  124. package/public/icons/favicon-196x196.png +0 -0
  125. package/public/icons/favicon-32x32.png +0 -0
  126. package/public/icons/favicon-96x96.png +0 -0
  127. package/public/icons/favicon.svg +6 -0
  128. package/public/icons/mstile-144x144.png +0 -0
  129. package/public/icons/mstile-150x150.png +0 -0
  130. package/public/icons/mstile-310x150.png +0 -0
  131. package/public/icons/mstile-310x310.png +0 -0
  132. package/public/icons/mstile-70x70.png +0 -0
  133. package/public/llms.txt +11 -0
  134. package/public/logo.svg +62 -0
  135. package/public/og.png +0 -0
  136. package/public/robots.txt +5 -0
  137. package/public/service-worker.js +2 -0
  138. package/public/site.webmanifest +14 -0
  139. package/public/sitemap.xml +1 -0
  140. package/.gitattributes +0 -2
  141. package/.next/trace +0 -1
  142. package/.next/trace-build +0 -1
  143. package/.oxfmtrc.json +0 -17
  144. package/.oxlintrc.json +0 -314
  145. package/CLAUDE.md +0 -134
  146. package/HISTORY.md +0 -13
  147. package/bun-test-globals.d.ts +0 -1
  148. package/bun.lock +0 -2150
  149. package/bun.test.preload.ts +0 -21
  150. package/bunfig.toml +0 -9
  151. package/e2e/app.spec.ts +0 -124
  152. package/e2e/bugs/112-character-bonus.spec.ts +0 -25
  153. package/e2e/bugs/129-esc-sidebar.spec.ts +0 -17
  154. package/e2e/bugs/2-q-tile-in-english.spec.ts +0 -19
  155. package/e2e/bugs/3-x-tile-in-polish.spec.ts +0 -19
  156. package/e2e/bugs/30-click-inside-radio-icon.spec.ts +0 -25
  157. package/e2e/bugs/333-disabled-radio-cursor.spec.ts +0 -18
  158. package/e2e/bugs/342-results-sorting.spec.ts +0 -30
  159. package/e2e/bugs/352-dictionary-race-condition.spec.ts +0 -27
  160. package/e2e/bugs/363-dictionary-input-unique-words.spec.ts +0 -27
  161. package/e2e/bugs/380-transliteration-when-pasting.spec.ts +0 -55
  162. package/e2e/bugs/398-digraphs-in-created-words.spec.ts +0 -23
  163. package/e2e/bugs/401-board-state-on-game-change.spec.ts +0 -24
  164. package/e2e/bugs/445-tile-text-selection.spec.ts +0 -38
  165. package/e2e/bugs/451-results-list-gap-hover.spec.ts +0 -35
  166. package/e2e/bugs/452-stale-translations-cache.spec.ts +0 -32
  167. package/e2e/bugs/461-regexp-highlight.spec.ts +0 -33
  168. package/e2e/features/198-highlight-unreachable-cells.spec.ts +0 -84
  169. package/e2e/features/427-highlight-created-words.spec.ts +0 -86
  170. package/e2e/features/430-highlight-unreachable-cells-results.spec.ts +0 -74
  171. package/e2e/features/91-hover-remaining-tile-highlights.spec.ts +0 -97
  172. package/e2e/features/hidden-coordinates-migration.spec.ts +0 -27
  173. package/e2e/features/result-candidate-picker.spec.ts +0 -21
  174. package/e2e/features/results-interactions.spec.ts +0 -170
  175. package/e2e/features/solver-paths.spec.ts +0 -45
  176. package/e2e/features/words-dictionary-search.spec.ts +0 -36
  177. package/e2e/features/words-empty-state.spec.ts +0 -42
  178. package/e2e/features/words-interactions.spec.ts +0 -179
  179. package/e2e/features/words-preview.spec.ts +0 -140
  180. package/e2e/features/words-table-filtering.spec.ts +0 -22
  181. package/e2e/features/words-table-sorting.spec.ts +0 -33
  182. package/e2e/lib/actions.ts +0 -202
  183. package/e2e/lib/index.ts +0 -2
  184. package/e2e/lib/selectors.ts +0 -108
  185. package/e2e/tsconfig.json +0 -10
  186. package/nx.json +0 -39
  187. package/playwright.config.ts +0 -30
  188. package/project.json +0 -3
  189. package/screencast.gif +0 -0
  190. package/scripts/record-screencast.ts +0 -347
  191. package/tsconfig.json +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scrabble-solver",
3
- "version": "2.18.10-alpha.1",
3
+ "version": "2.19.0-alpha.0",
4
4
  "description": "Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, Kelimelik, Wyrazy, and Wordfeud. Quickly find the top-scoring words using the given board and tiles.",
5
5
  "keywords": [
6
6
  "scrabble",
@@ -29,29 +29,20 @@
29
29
  "bin": {
30
30
  "scrabble-solver": "bin/scrabble-solver.js"
31
31
  },
32
- "scripts": {
33
- "benchmark": "bun run --filter @scrabble-solver/solver benchmark",
34
- "build": "bun run --filter './packages/*' build",
35
- "clean": "bun run --filter './packages/*' clean && rimraf node_modules/",
36
- "dev": "bun run --filter @scrabble-solver/scrabble-solver dev",
37
- "format": "oxfmt --check './**/*.{js,ts,tsx,scss}'",
38
- "format:fix": "oxfmt './**/*.{js,ts,tsx,scss}'",
39
- "lint": "oxlint e2e packages",
40
- "lint:fix": "bun run lint --fix",
41
- "reinstall": "bun run clean && bun install && bun run build",
42
- "release": "bun run release:prepare && bun run test && nx release --skip-publish && bun run release:publish",
43
- "release:prepare": "bun run clean && bun install",
44
- "release:publish": "git push --follow-tags && npm publish --workspaces --include-workspace-root --access public --tag $(node -p \"/-/.test(require('./package.json').version) ? 'next' : 'latest'\") && gh release create $(node -p \"require('./package.json').version\") --repo kamilmielnik/scrabble-solver --draft --generate-notes --prerelease=$(node -p \"/-/.test(require('./package.json').version)\")",
45
- "screencast": "start-server-and-test start:app http://localhost:3333 screencast:record",
46
- "screencast:record": "bun scripts/record-screencast.ts",
47
- "start": "bun run --parallel --no-orphans 'start:*'",
48
- "start:app": "bun run --cwd packages/scrabble-solver start",
49
- "start:browser": "wait-on http://localhost:3333 && open-cli http://localhost:3333",
50
- "test": "bun run build && bun run test-unit && start-server-and-test start:app http://localhost:3333 test-playwright:run",
51
- "test-playwright": "playwright test --ui",
52
- "test-playwright:run": "PLAYWRIGHT_BASE_URL=http://localhost:3333 playwright test",
53
- "test-unit": "bun run --filter '*' test"
54
- },
32
+ "files": [
33
+ ".env",
34
+ ".next",
35
+ "!.next/cache",
36
+ "!.next/dev",
37
+ "!.next/diagnostics",
38
+ "!.next/trace",
39
+ "!.next/trace-build",
40
+ "!.next/types",
41
+ "bin",
42
+ "next.config.js",
43
+ "public",
44
+ "!public/service-worker.js.map"
45
+ ],
55
46
  "repository": {
56
47
  "type": "git",
57
48
  "url": "git+https://github.com/kamilmielnik/scrabble-solver.git"
@@ -66,36 +57,85 @@
66
57
  "url": "https://github.com/kamilmielnik/scrabble-solver/issues"
67
58
  },
68
59
  "homepage": "https://scrabble-solver.org",
69
- "workspaces": [
70
- "packages/logger",
71
- "packages/constants",
72
- "packages/types",
73
- "packages/configs",
74
- "packages/word-lists",
75
- "packages/word-definitions",
76
- "packages/dictionaries",
77
- "packages/solver",
78
- "packages/scrabble-solver"
60
+ "sideEffects": [
61
+ "**/*.css",
62
+ "**/*.scss",
63
+ "src/pages/**"
64
+ ],
65
+ "browserslist": [
66
+ "chrome >= 100",
67
+ "and_chr >= 100",
68
+ "edge >= 100",
69
+ "firefox >= 100",
70
+ "safari >= 15.4",
71
+ "ios_saf >= 15.4",
72
+ "samsung >= 17",
73
+ "opera >= 86",
74
+ "op_mob >= 70",
75
+ "android >= 100",
76
+ "and_ff >= 100"
79
77
  ],
78
+ "scripts": {
79
+ "build": "bun run generate-scss-types && env-cmd next build --webpack",
80
+ "clean": "rimraf --glob .next/ 'src/**/*.module.scss.d.ts'",
81
+ "debug": "NODE_OPTIONS='--inspect' next dev --webpack",
82
+ "dev": "bun run --parallel --no-orphans 'dev:*'",
83
+ "dev:next": "env-cmd next dev --webpack",
84
+ "dev:scss": "bun run generate-scss-types --watch",
85
+ "generate-scss-types": "bun scripts/generate-scss-types.ts",
86
+ "prepack": "rimraf --glob '.next/**/*.nft.json'",
87
+ "start": "env-cmd next start -p 3333",
88
+ "test": "bun test --isolate --timeout 180000 src",
89
+ "type-check": "bun run generate-scss-types && tsc --noEmit --incremental false"
90
+ },
80
91
  "dependencies": {
81
- "@scrabble-solver/scrabble-solver": "2.18.10-alpha.1",
82
- "open-cli": "9.0.0",
83
- "wait-on": "9.5.1"
92
+ "@floating-ui/react": "0.27.20",
93
+ "@kamilmielnik/gaddag": "3.0.0",
94
+ "@reduxjs/toolkit": "2.13.0",
95
+ "@scrabble-solver/configs": "2.19.0-alpha.0",
96
+ "@scrabble-solver/constants": "2.19.0-alpha.0",
97
+ "@scrabble-solver/dictionaries": "2.19.0-alpha.0",
98
+ "@scrabble-solver/logger": "2.19.0-alpha.0",
99
+ "@scrabble-solver/solver": "2.19.0-alpha.0",
100
+ "@scrabble-solver/types": "2.19.0-alpha.0",
101
+ "@scrabble-solver/word-definitions": "2.19.0-alpha.0",
102
+ "classnames": "2.5.1",
103
+ "include-media": "2.0.0",
104
+ "include-media-query-builder": "1.1.0",
105
+ "next": "16.4.3",
106
+ "normalize.css": "8.0.1",
107
+ "open": "11.0.4",
108
+ "react": "19.3.1",
109
+ "react-cool-onclickoutside": "1.7.0",
110
+ "react-dom": "19.3.1",
111
+ "react-highlight-words": "1.0.0",
112
+ "react-modal": "3.16.3",
113
+ "react-redux": "9.3.1",
114
+ "react-window": "2.5.2",
115
+ "redux-saga": "1.5.1",
116
+ "store2": "2.14.4",
117
+ "use-debounce": "10.1.1",
118
+ "wait-on": "9.5.1",
119
+ "workbox-expiration": "7.4.1",
120
+ "workbox-precaching": "7.4.1",
121
+ "workbox-routing": "7.4.1",
122
+ "workbox-window": "7.4.1"
84
123
  },
85
124
  "devDependencies": {
86
- "@nx/js": "23.3.1",
87
- "@playwright/test": "1.64.1",
88
- "@types/bun": "1.4.4",
89
- "@types/node": "26.6.6",
90
- "eslint-plugin-perfectionist": "5.12.1",
91
- "eslint-plugin-playwright": "2.12.1",
92
- "eslint-plugin-react": "7.37.5",
93
- "nx": "23.3.1",
94
- "oxfmt": "0.75.0",
95
- "oxlint": "1.90.0",
96
- "oxlint-tsgolint": "7.0.2005",
97
- "rimraf": "6.1.3",
98
- "start-server-and-test": "3.0.13",
99
- "typescript": "7.0.2"
100
- }
125
+ "@happy-dom/global-registrator": "21.0.4",
126
+ "@svgr/webpack": "8.1.0",
127
+ "@testing-library/dom": "10.4.2",
128
+ "@testing-library/react": "16.3.3",
129
+ "@testing-library/user-event": "14.6.8",
130
+ "@types/react": "19.3.0",
131
+ "@types/react-dom": "19.3.0",
132
+ "@types/react-modal": "3.16.3",
133
+ "@types/react-portal": "4.0.7",
134
+ "env-cmd": "11.0.0",
135
+ "happy-dom": "21.0.4",
136
+ "postcss": "8.5.32",
137
+ "sass": "1.107.1",
138
+ "workbox-webpack-plugin": "7.4.1"
139
+ },
140
+ "gitHead": "2aeb3712887c55bc10b726c51751b83cb4ea6e6e"
101
141
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,6 @@
1
+ <svg viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
2
+ <g transform="rotate(0, 40, 40)">
3
+ <path d="m 12,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 H 12 C 5.352,80 0,74.648 0,68 V 12 C 0,5.352 5.352,0 12,0 Z" fill="#efe3ae" />
4
+ <path d="m 51.320312,47.628907 q 0,3.046875 -1.476562,5.296875 -1.476563,2.25 -4.3125,3.46875 -2.8125,1.21875 -6.84375,1.21875 -1.78125,0 -3.492188,-0.234375 -1.6875,-0.234375 -3.257812,-0.679687 -1.546875,-0.46875 -2.953125,-1.148438 v -6.75 q 2.4375,1.078125 5.0625,1.945313 2.625,0.867187 5.203125,0.867187 1.78125,0 2.859375,-0.46875 1.101562,-0.46875 1.59375,-1.289062 0.492187,-0.820313 0.492187,-1.875 0,-1.289063 -0.867187,-2.203125 Q 42.460937,44.863282 40.9375,44.066407 39.4375,43.269532 37.539062,42.35547 36.34375,41.79297 34.9375,40.996095 33.53125,40.175782 32.265625,39.003907 31,37.832032 30.179687,36.16797 q -0.796875,-1.6875 -0.796875,-4.03125 0,-3.070313 1.40625,-5.25 1.40625,-2.179688 4.007813,-3.328125 2.625,-1.171875 6.1875,-1.171875 2.671875,0 5.085937,0.632812 2.4375,0.609375 5.085938,1.78125 L 48.8125,30.44922 q -2.367188,-0.960938 -4.242188,-1.476563 -1.875,-0.539062 -3.820312,-0.539062 -1.359375,0 -2.320313,0.445312 -0.960937,0.421875 -1.453125,1.21875 -0.492187,0.773438 -0.492187,1.804688 0,1.21875 0.703125,2.0625 0.726562,0.820312 2.15625,1.59375 1.453125,0.773437 3.609375,1.804687 2.625,1.242188 4.476562,2.601563 1.875,1.335937 2.882813,3.164062 1.007812,1.804688 1.007812,4.5 z" />
5
+ </g>
6
+ </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,11 @@
1
+ # Scrabble Solver
2
+
3
+ > Free and open-source analysis tool for Scrabble, Super Scrabble, Scrabble Duel, Letter League, Crossplay, Literaki, Kelimelik, Wyrazy, and Wordfeud. Quickly finds top-scoring words for a given board and rack in Catalan, English, French, German, Persian, Polish, Romanian, Spanish, and Turkish.
4
+
5
+ Scrabble Solver is a single-page web app. Enter the board state and your tiles to get every legal move ranked by score, check whether a word is allowed in the selected language's dictionary, and look up word definitions. Once a dictionary is cached, solving also works offline.
6
+
7
+ ## Resources
8
+
9
+ - [Web app](https://scrabble-solver.org/): the solver itself, free and with no sign-up
10
+ - [Source code](https://github.com/kamilmielnik/scrabble-solver): GitHub repository with documentation and issue tracker
11
+ - [npm package](https://www.npmjs.com/package/scrabble-solver): run the app locally with `bunx scrabble-solver@latest`
@@ -0,0 +1,62 @@
1
+ <svg fill="#222" viewBox="0 0 682 166" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
2
+ <g transform="rotate(0, 40, 40)">
3
+ <path d="m 12,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 H 12 C 5.352,80 0,74.648 0,68 V 12 C 0,5.352 5.352,0 12,0 Z" fill="#efe3ae" />
4
+ <path d="m 51.320312,47.628907 q 0,3.046875 -1.476562,5.296875 -1.476563,2.25 -4.3125,3.46875 -2.8125,1.21875 -6.84375,1.21875 -1.78125,0 -3.492188,-0.234375 -1.6875,-0.234375 -3.257812,-0.679687 -1.546875,-0.46875 -2.953125,-1.148438 v -6.75 q 2.4375,1.078125 5.0625,1.945313 2.625,0.867187 5.203125,0.867187 1.78125,0 2.859375,-0.46875 1.101562,-0.46875 1.59375,-1.289062 0.492187,-0.820313 0.492187,-1.875 0,-1.289063 -0.867187,-2.203125 Q 42.460937,44.863282 40.9375,44.066407 39.4375,43.269532 37.539062,42.35547 36.34375,41.79297 34.9375,40.996095 33.53125,40.175782 32.265625,39.003907 31,37.832032 30.179687,36.16797 q -0.796875,-1.6875 -0.796875,-4.03125 0,-3.070313 1.40625,-5.25 1.40625,-2.179688 4.007813,-3.328125 2.625,-1.171875 6.1875,-1.171875 2.671875,0 5.085937,0.632812 2.4375,0.609375 5.085938,1.78125 L 48.8125,30.44922 q -2.367188,-0.960938 -4.242188,-1.476563 -1.875,-0.539062 -3.820312,-0.539062 -1.359375,0 -2.320313,0.445312 -0.960937,0.421875 -1.453125,1.21875 -0.492187,0.773438 -0.492187,1.804688 0,1.21875 0.703125,2.0625 0.726562,0.820312 2.15625,1.59375 1.453125,0.773437 3.609375,1.804687 2.625,1.242188 4.476562,2.601563 1.875,1.335937 2.882813,3.164062 1.007812,1.804688 1.007812,4.5 z" />
5
+ </g>
6
+ <g transform="rotate(0, 126, 40)">
7
+ <path d="m 98,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 H 98 C 91.352,80 86,74.648 86,68 V 12 C 86,5.352 91.352,0 98,0 Z" fill="#c7d8f9" />
8
+ <path d="m 129.57422,28.433595 q -2.08594,0 -3.70313,0.820312 -1.59375,0.796875 -2.69531,2.320313 -1.07812,1.523437 -1.64062,3.679687 -0.5625,2.15625 -0.5625,4.851563 0,3.632812 0.89062,6.210937 0.91406,2.554688 2.8125,3.914063 1.89844,1.335937 4.89844,1.335937 2.08594,0 4.17187,-0.46875 2.10938,-0.46875 4.57032,-1.335937 v 6.09375 q -2.27344,0.9375 -4.47657,1.335937 -2.20312,0.421875 -4.94531,0.421875 -5.29687,0 -8.71875,-2.179687 -3.39844,-2.203125 -5.03906,-6.140625 -1.64063,-3.960938 -1.64063,-9.234375 0,-3.890625 1.05469,-7.125 1.05469,-3.234375 3.09375,-5.601563 2.03906,-2.367187 5.03906,-3.65625 3,-1.289062 6.89063,-1.289062 2.55469,0 5.10937,0.65625 2.57813,0.632812 4.92188,1.757812 l -2.34375,5.90625 q -1.92188,-0.914062 -3.86719,-1.59375 -1.94531,-0.679687 -3.82031,-0.679687 z" />
9
+ </g>
10
+ <g transform="rotate(0, 212, 40)">
11
+ <path d="m 184,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 12 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
12
+ <path d="m 210.45312,22.867188 q 4.66407,0 7.6875,1.125 3.04688,1.125 4.52344,3.398438 1.47656,2.273437 1.47656,5.742187 0,2.34375 -0.89062,4.101563 -0.89063,1.757812 -2.34375,2.976562 -1.45313,1.21875 -3.14063,1.992188 l 10.07813,14.929687 h -8.0625 l -8.17969,-13.148437 h -3.86719 v 13.148437 h -7.26562 V 22.867188 Z m -0.51562,5.953125 h -2.20313 v 9.257813 h 2.34375 q 3.60938,0 5.15625,-1.195313 1.57032,-1.21875 1.57032,-3.5625 0,-2.4375 -1.6875,-3.46875 -1.66407,-1.03125 -5.17969,-1.03125 z" />
13
+ </g>
14
+ <g transform="rotate(0, 298, 40)">
15
+ <path d="m 270,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 12 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
16
+ <path d="m 306.73047,57.203126 -2.48438,-8.15625 h -12.49218 l -2.48438,8.15625 h -7.82812 l 12.09375,-34.40625 h 8.88281 l 12.14062,34.40625 z m -4.21875,-14.25 -2.48438,-7.96875 q -0.23437,-0.796875 -0.63281,-2.039063 -0.375,-1.265625 -0.77344,-2.554687 -0.375,-1.3125 -0.60937,-2.273438 -0.23438,0.960938 -0.65625,2.390625 -0.39844,1.40625 -0.77344,2.671875 -0.375,1.265625 -0.53906,1.804688 l -2.46094,7.96875 z" />
17
+ </g>
18
+ <g transform="rotate(0, 384, 40)">
19
+ <path d="m 356,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 12 c 0,-6.648 5.352,-12 12,-12 z" fill="#c7d8f9" />
20
+ <path d="m 372.1875,22.867188 h 10.66406 q 6.84375,0 10.35938,1.921875 3.51562,1.921875 3.51562,6.75 0,1.945313 -0.63281,3.515625 -0.60938,1.570313 -1.78125,2.578125 -1.17188,1.007813 -2.85938,1.3125 v 0.234375 q 1.71094,0.351563 3.09375,1.21875 1.38282,0.84375 2.20313,2.484375 0.84375,1.617188 0.84375,4.3125 0,3.117188 -1.52344,5.34375 -1.52344,2.226563 -4.35937,3.421875 -2.8125,1.171875 -6.70313,1.171875 H 372.1875 Z m 7.26562,13.570313 h 4.21875 q 3.16407,0 4.38282,-0.984375 1.21875,-1.007813 1.21875,-2.953125 0,-1.96875 -1.45313,-2.8125 -1.42969,-0.867188 -4.54687,-0.867188 h -3.82032 z m 0,5.765625 v 8.929687 h 4.73438 q 3.28125,0 4.57031,-1.265625 1.28906,-1.265625 1.28906,-3.398437 0,-1.265625 -0.5625,-2.226563 -0.5625,-0.960937 -1.89843,-1.5 -1.3125,-0.539062 -3.63282,-0.539062 z" />
21
+ </g>
22
+ <g transform="rotate(0, 470, 40)">
23
+ <path d="m 442,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 12 c 0,-6.648 5.352,-12 12,-12 z" fill="#c7d8f9" />
24
+ <path d="m 458.1875,22.867188 h 10.66406 q 6.84375,0 10.35938,1.921875 3.51562,1.921875 3.51562,6.75 0,1.945313 -0.63281,3.515625 -0.60938,1.570313 -1.78125,2.578125 -1.17188,1.007813 -2.85938,1.3125 v 0.234375 q 1.71094,0.351563 3.09375,1.21875 1.38282,0.84375 2.20313,2.484375 0.84375,1.617188 0.84375,4.3125 0,3.117188 -1.52344,5.34375 -1.52344,2.226563 -4.35937,3.421875 -2.8125,1.171875 -6.70313,1.171875 H 458.1875 Z m 7.26562,13.570313 h 4.21875 q 3.16407,0 4.38282,-0.984375 1.21875,-1.007813 1.21875,-2.953125 0,-1.96875 -1.45313,-2.8125 -1.42969,-0.867188 -4.54687,-0.867188 h -3.82032 z m 0,5.765625 v 8.929687 h 4.73438 q 3.28125,0 4.57031,-1.265625 1.28906,-1.265625 1.28906,-3.398437 0,-1.265625 -0.5625,-2.226563 -0.5625,-0.960937 -1.89843,-1.5 -1.3125,-0.539062 -3.63282,-0.539062 z" />
25
+ </g>
26
+ <g transform="rotate(0, 556, 40)">
27
+ <path d="m 528,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 12 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
28
+ <path d="M 546.75391,57.132813 V 22.867188 h 7.26562 v 28.265625 h 13.89844 v 6 z" />
29
+ </g>
30
+ <g transform="rotate(0, 642, 40)">
31
+ <path d="m 614,0 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 12 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
32
+ <path d="M 652.60547,57.132813 H 632.87109 V 22.867188 h 19.73438 v 5.953125 h -12.46875 v 7.523438 h 11.60156 v 5.953125 h -11.60156 v 8.835937 h 12.46875 z" />
33
+ </g>
34
+ <g transform="rotate(0, 40, 40)">
35
+ <path d="m 12,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 H 12 C 5.352,166 0,160.648 0,154 V 98 C 0,91.352 5.352,86 12,86 Z" fill="#efe3ae" />
36
+ <path d="m 51.320312,133.6289 q 0,3.04688 -1.476562,5.29688 -1.476563,2.25 -4.3125,3.46875 -2.8125,1.21875 -6.84375,1.21875 -1.78125,0 -3.492188,-0.23438 -1.6875,-0.23437 -3.257812,-0.67968 -1.546875,-0.46875 -2.953125,-1.14844 v -6.75 q 2.4375,1.07812 5.0625,1.94531 2.625,0.86719 5.203125,0.86719 1.78125,0 2.859375,-0.46875 1.101562,-0.46875 1.59375,-1.28906 0.492187,-0.82032 0.492187,-1.875 0,-1.28907 -0.867187,-2.20313 -0.867188,-0.91406 -2.390625,-1.71094 -1.5,-0.79687 -3.398438,-1.71093 -1.195312,-0.5625 -2.601562,-1.35938 -1.40625,-0.82031 -2.671875,-1.99219 Q 31,123.83203 30.179687,122.16797 q -0.796875,-1.6875 -0.796875,-4.03125 0,-3.07032 1.40625,-5.25 1.40625,-2.17969 4.007813,-3.32813 2.625,-1.17187 6.1875,-1.17187 2.671875,0 5.085937,0.63281 2.4375,0.60937 5.085938,1.78125 l -2.34375,5.64844 q -2.367188,-0.96094 -4.242188,-1.47657 -1.875,-0.53906 -3.820312,-0.53906 -1.359375,0 -2.320313,0.44531 -0.960937,0.42188 -1.453125,1.21875 -0.492187,0.77344 -0.492187,1.80469 0,1.21875 0.703125,2.0625 0.726562,0.82031 2.15625,1.59375 1.453125,0.77344 3.609375,1.80469 2.625,1.24219 4.476562,2.60156 1.875,1.33594 2.882813,3.16406 1.007812,1.80469 1.007812,4.5 z" />
37
+ </g>
38
+ <g transform="rotate(0, 126, 40)">
39
+ <path d="m 98,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 H 98 c -6.648,0 -12,-5.352 -12,-12 V 98 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
40
+ <path d="m 142.3125,125.98828 q 0,3.96094 -0.98438,7.21875 -0.98437,3.23437 -3,5.57812 -1.99218,2.34375 -5.0625,3.60938 -3.07031,1.24219 -7.26562,1.24219 -4.19531,0 -7.26562,-1.24219 -3.07032,-1.26563 -5.08594,-3.60938 -1.99219,-2.34375 -2.97656,-5.60156 -0.98438,-3.25781 -0.98438,-7.24219 0,-5.32031 1.73438,-9.25781 1.75781,-3.96094 5.39062,-6.14062 3.63281,-2.17969 9.23438,-2.17969 5.57812,0 9.16406,2.17969 3.60937,2.17968 5.34375,6.14062 1.75781,3.96094 1.75781,9.30469 z m -25.00781,0 q 0,3.58594 0.89062,6.1875 0.91407,2.57812 2.83594,3.98437 1.92188,1.38282 4.96875,1.38282 3.09375,0 5.01562,-1.38282 1.92188,-1.40625 2.78907,-3.98437 0.89062,-2.60156 0.89062,-6.1875 0,-5.39063 -2.01562,-8.48438 -2.01563,-3.09375 -6.63281,-3.09375 -3.07032,0 -5.01563,1.40625 -1.92187,1.38282 -2.83594,3.98438 -0.89062,2.57812 -0.89062,6.1875 z" />
41
+ </g>
42
+ <g transform="rotate(0, 212, 40)">
43
+ <path d="m 184,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 98 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
44
+ <path d="m 202.75391,143.13281 v -34.26563 h 7.26562 v 28.26563 h 13.89844 v 6 z" />
45
+ </g>
46
+ <g transform="rotate(0, 298, 40)">
47
+ <path d="m 270,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 98 c 0,-6.648 5.352,-12 12,-12 z" fill="#f7c2aa" />
48
+ <path d="m 313.59766,108.86718 -11.64844,34.26563 h -7.92188 l -11.625,-34.26563 h 7.33594 l 6.44531,20.39063 q 0.16407,0.51562 0.53907,1.94531 0.375,1.40625 0.75,3 0.39843,1.57031 0.53906,2.60156 0.14062,-1.03125 0.49219,-2.60156 0.375,-1.57031 0.72656,-2.97656 0.375,-1.42969 0.53906,-1.96875 l 6.49219,-20.39063 z" />
49
+ </g>
50
+ <g transform="rotate(0, 384, 40)">
51
+ <path d="m 356,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 98 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
52
+ <path d="m 394.60547,143.13281 h -19.73438 v -34.26563 h 19.73438 v 5.95313 h -12.46875 v 7.52344 h 11.60156 v 5.95312 h -11.60156 v 8.83594 h 12.46875 z" />
53
+ </g>
54
+ <g transform="rotate(0, 470, 40)">
55
+ <path d="m 442,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 98 c 0,-6.648 5.352,-12 12,-12 z" fill="#efe3ae" />
56
+ <path d="m 468.45312,108.86718 q 4.66407,0 7.6875,1.125 3.04688,1.125 4.52344,3.39844 1.47656,2.27344 1.47656,5.74219 0,2.34375 -0.89062,4.10156 -0.89063,1.75781 -2.34375,2.97656 -1.45313,1.21875 -3.14063,1.99219 l 10.07813,14.92969 h -8.0625 l -8.17969,-13.14844 h -3.86719 v 13.14844 h -7.26562 v -34.26563 z m -0.51562,5.95313 h -2.20313 v 9.25781 h 2.34375 q 3.60938,0 5.15625,-1.19531 1.57032,-1.21875 1.57032,-3.5625 0,-2.4375 -1.6875,-3.46875 -1.66407,-1.03125 -5.17969,-1.03125 z" />
57
+ </g>
58
+ <g transform="rotate(0, 642, 40)">
59
+ <path d="m 614,86 h 56 c 6.648,0 12,5.352 12,12 v 56 c 0,6.648 -5.352,12 -12,12 h -56 c -6.648,0 -12,-5.352 -12,-12 V 98 c 0,-6.648 5.352,-12 12,-12 z" fill="#bae3ba" />
60
+ <path d="m 654.15234,143.3789 h -23.95312 v -5.03906 l 8.60156,-8.69531 q 2.60156,-2.67188 4.17188,-4.45313 1.59375,-1.80468 2.29687,-3.28125 0.72656,-1.47656 0.72656,-3.16406 0,-2.03906 -1.14843,-3.04687 -1.125,-1.03125 -3.02344,-1.03125 -1.99219,0 -3.86719,0.91406 -1.875,0.91406 -3.91406,2.60156 l -3.9375,-4.66406 q 1.47656,-1.26563 3.11719,-2.39063 1.66406,-1.125 3.84375,-1.80468 2.20312,-0.70313 5.27343,-0.70313 3.375,0 5.78907,1.21875 2.4375,1.21875 3.75,3.32813 1.3125,2.08593 1.3125,4.73437 0,2.83594 -1.125,5.17969 -1.125,2.34375 -3.28125,4.64062 -2.13282,2.29688 -5.15625,5.08594 l -4.40625,4.14844 v 0.32812 h 14.92968 z" />
61
+ </g>
62
+ </svg>
package/public/og.png ADDED
Binary file
@@ -0,0 +1,5 @@
1
+ User-agent: *
2
+ Allow: /
3
+ Disallow: /api/
4
+
5
+ Sitemap: https://scrabble-solver.org/sitemap.xml
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";let e,t,s;var a,r={303:()=>{try{self["workbox:strategies:7.4.0"]&&_()}catch(e){}},448:()=>{try{self["workbox:routing:7.4.0"]&&_()}catch(e){}},693:()=>{try{self["workbox:core:7.4.0"]&&_()}catch(e){}},802:()=>{try{self["workbox:precaching:7.4.0"]&&_()}catch(e){}}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var s=i[e]={exports:{}},a=!0;try{r[e](s,s.exports,n),a=!1}finally{a&&delete i[e]}return s.exports}n(693);class l extends Error{constructor(e,t){super(((e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s})(e,t)),this.name=e,this.details=t}}let c={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"u">typeof registration?registration.scope:""},h=e=>[c.prefix,e,c.suffix].filter(e=>e&&e.length>0).join("-"),o=e=>e||h(c.precache);function u(e,t){let s=t();return e.waitUntil(s),s}n(802);class f{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){let e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class d{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{let s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}async function p(t,s){let a=null;if(t.url&&(a=new URL(t.url).origin),a!==self.location.origin)throw new l("cross-origin-copy-response",{origin:a});let r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=s?s(i):i,c=!function(){if(void 0===e){let t=new Response("");if("body"in t)try{new Response(t.body),e=!0}catch(t){e=!1}e=!1}return e}()?await r.blob():r.body;return new Response(c,n)}function w(e,t){let s=new URL(e);for(let e of t)s.searchParams.delete(e);return s.href}async function y(e,t,s,a){let r=w(t.url,s);if(t.url===r)return e.match(t,a);let i=Object.assign(Object.assign({},a),{ignoreSearch:!0});for(let n of(await e.keys(t,i)))if(r===w(n.url,s))return e.match(n,a)}class g{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}let m=new Set;async function R(){for(let e of m)await e()}function C(e){return"string"==typeof e?new Request(e):e}n(303);class b{constructor(e,t){for(let s of(this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new g,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map,this._plugins))this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:t}=this,s=C(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){let e=await t.preloadResponse;if(e)return e}let a=this.hasCallback("fetchDidFail")?s.clone():null;try{for(let e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}let r=s.clone();try{let e;for(let a of(e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions),this.iterateCallbacks("fetchDidSucceed")))e=await a({event:t,request:r,response:e});return e}catch(e){throw a&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:a.clone(),request:r.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){let t,s=C(e),{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(s,"read"),n=Object.assign(Object.assign({},r),{cacheName:a});for(let e of(t=await caches.match(i,n),this.iterateCallbacks("cachedResponseWillBeUsed")))t=await e({cacheName:a,matchOptions:r,cachedResponse:t,request:i,event:this.event})||void 0;return t}async cachePut(e,t){let s=C(e);await new Promise(e=>setTimeout(e,0));let a=await this.getCacheKey(s,"write");if(!t)throw new l("cache-put-with-no-response",{url:new URL(String(a.url),location.href).href.replace(RegExp(`^${location.origin}`),"")});let r=await this._ensureResponseSafeToCache(t);if(!r)return!1;let{cacheName:i,matchOptions:n}=this._strategy,c=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),o=h?await y(c,a.clone(),["__WB_REVISION__"],n):null;try{await c.put(a,h?r.clone():r)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await R(),e}for(let e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:i,oldResponse:o,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){let s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let a=e;for(let e of this.iterateCallbacks("cacheKeyWillBeUsed"))a=C(await e({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[s]=a}return this._cacheKeys[s]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if("function"==typeof t[e]){let s=this._pluginStateMap.get(t),a=a=>{let r=Object.assign(Object.assign({},a),{state:s});return t[e](r)};yield a}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){for(;this._extendLifetimePromises.length;){let e=this._extendLifetimePromises.splice(0),t=(await Promise.allSettled(e)).find(e=>"rejected"===e.status);if(t)throw t.reason}}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(let e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return!s&&t&&200!==t.status&&(t=void 0),t}}class v{constructor(e={}){this.cacheName=e.cacheName||h(c.runtime),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){let[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});let t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,a=new b(this,{event:t,request:s,params:"params"in e?e.params:void 0}),r=this._getResponse(a,s,t),i=this._awaitComplete(r,a,s,t);return[r,i]}async _getResponse(e,t,s){let a;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(!(a=await this._handle(t,e))||"error"===a.type)throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(let i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:s,request:t}))break}if(a);else throw r}for(let r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:s,request:t,response:a});return a}async _awaitComplete(e,t,s,a){let r,i;try{r=await e}catch(e){}try{await t.runCallbacks("handlerDidRespond",{event:a,request:s,response:r}),await t.doneWaiting()}catch(e){e instanceof Error&&(i=e)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:s,response:r,error:i}),t.destroy(),i)throw i}}class L extends v{constructor(e={}){e.cacheName=o(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(L.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){let s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s,a=t.params||{};if(this._fallbackToNetwork){let r=a.integrity,i=e.integrity,n=!i||i===r;s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?i||r:void 0})),r&&n&&"no-cors"!==e.mode&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,s.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();let s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new l("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(let[s,a]of this.plugins.entries())a!==L.copyRedirectedCacheableResponsesPlugin&&(a===L.defaultPrecacheCacheabilityPlugin&&(e=s),a.cacheWillUpdate&&t++);0===t?this.plugins.push(L.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}L.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},L.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await p(e):e};class U{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new L({cacheName:o(e),plugins:[...t,new d({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){let t=[];for(let s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);let{cacheKey:e,url:a}=function(e){if(!e)throw new l("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){let t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}let{revision:t,url:s}=e;if(!s)throw new l("add-to-cache-list-unexpected-type",{entry:e});if(!t){let e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}let a=new URL(s,location.href),r=new URL(s,location.href);return a.searchParams.set("__WB_REVISION__",t),{cacheKey:a.href,url:r.href}}(s),r="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,s.integrity)}this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),t.length>0&&console.warn(`Workbox is precaching URLs without revision info: ${t.join(", ")}
2
+ This is generally NOT safe. Learn more at https://bit.ly/wb-precache`)}}install(e){return u(e,async()=>{let t=new f;for(let[s,a]of(this.strategy.plugins.push(t),this._urlsToCacheKeys)){let t=this._cacheKeysToIntegrities.get(a),r=this._urlsToCacheModes.get(s),i=new Request(s,{integrity:t,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:a},request:i,event:e}))}let{updatedURLs:s,notUpdatedURLs:a}=t;return{updatedURLs:s,notUpdatedURLs:a}})}activate(e){return u(e,async()=>{let e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),a=[];for(let r of t)s.has(r.url)||(await e.delete(r),a.push(r.url));return{deletedURLs:a}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s)return(await self.caches.open(this.strategy.cacheName)).match(s)}createHandlerBoundToURL(e){let t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let k=()=>(t||(t=new U),t);n(448);let T=e=>e&&"object"==typeof e?e:{handle:e};class K{constructor(e,t,s="GET"){this.handler=T(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=T(e)}}class x extends K{constructor(e,t,s){super(({url:t})=>{let s=e.exec(t.href);if(s)return t.origin!==location.origin&&0!==s.index?void 0:s.slice(1)},t,s)}}class P{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{let{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&"CACHE_URLS"===e.data.type){let{payload:t}=e.data,s=Promise.all(t.urlsToCache.map(t=>{"string"==typeof t&&(t=[t]);let s=new Request(...t);return this.handleRequest({request:s,event:e})}));e.waitUntil(s),e.ports&&e.ports[0]&&s.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){let s,a=new URL(e.url,location.href);if(!a.protocol.startsWith("http"))return;let r=a.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:a}),l=n&&n.handler,c=e.method;if(!l&&this._defaultHandlerMap.has(c)&&(l=this._defaultHandlerMap.get(c)),!l)return;try{s=l.handle({url:a,request:e,event:t,params:i})}catch(e){s=Promise.reject(e)}let h=n&&n.catchHandler;return s instanceof Promise&&(this._catchHandler||h)&&(s=s.catch(async s=>{if(h)try{return await h.handle({url:a,request:e,event:t,params:i})}catch(e){e instanceof Error&&(s=e)}if(this._catchHandler)return this._catchHandler.handle({url:a,request:e,event:t});throw s})),s}findMatchingRoute({url:e,sameOrigin:t,request:s,event:a}){for(let r of this._routes.get(s.method)||[]){let i,n=r.match({url:e,sameOrigin:t,request:s,event:a});if(n)return Array.isArray(i=n)&&0===i.length||n.constructor===Object&&0===Object.keys(n).length?i=void 0:"boolean"==typeof n&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});let t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}function q(e,t,a){let r;if("string"==typeof e){let s=new URL(e,location.href);r=new K(({url:e})=>e.href===s.href,t,a)}else if(e instanceof RegExp)r=new x(e,t,a);else if("function"==typeof e)r=new K(e,t,a);else if(e instanceof K)r=e;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return(!s&&((s=new P).addFetchListener(),s.addCacheListener()),s).registerRoute(r),r}class E extends K{constructor(e,t){super(({request:s})=>{let a=e.getURLsToCacheKeys();for(let r of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:a=!0,urlManipulation:r}={}){let i=new URL(e,location.href);i.hash="",yield i.href;let n=function(e,t=[]){for(let s of[...e.searchParams.keys()])t.some(e=>e.test(s))&&e.searchParams.delete(s);return e}(i,t);if(yield n.href,s&&n.pathname.endsWith("/")){let e=new URL(n.href);e.pathname+=s,yield e.href}if(a){let e=new URL(n.href);e.pathname+=".html",yield e.href}if(r)for(let e of r({url:i}))yield e.href}(s.url,t)){let t=a.get(r);if(t){let s=e.getIntegrityForCacheKey(t);return{cacheKey:t,integrity:s}}}},e.strategy)}}let M="-precache-",N=async(e,t=M)=>{let s=(await self.caches.keys()).filter(s=>s.includes(t)&&s.includes(self.registration.scope)&&s!==e);return await Promise.all(s.map(e=>self.caches.delete(e))),s};class W extends K{constructor(e,{allowlist:t=[/./],denylist:s=[]}={}){super(e=>this._match(e),e),this._allowlist=t,this._denylist=s}_match({url:e,request:t}){if(t&&"navigate"!==t.mode)return!1;let s=e.pathname+e.search;for(let e of this._denylist)if(e.test(s))return!1;return!!this._allowlist.some(e=>e.test(s))}}let O="app-shell";async function I(){let e=await caches.open(O);await e.add("/")}async function S(e){let{request:t}=e;try{return await fetch(t)}catch(s){let e=await caches.open(O),t=await e.match("/");if(!t)throw s;return t}}self.addEventListener("install",e=>{e.waitUntil(I()),self.skipWaiting()}),self.addEventListener("activate",()=>{self.clients.claim()}),self.addEventListener("activate",e=>{let t=o();e.waitUntil(N(t).then(e=>{}))}),a=[{'revision':'eb7ebf458f2cdf771aad3c1b93818b00','url':'/_next/static/Ng_NN9gQywZowmg2O0pgm/_buildManifest.js'},{'revision':'b6652df95db52feb4daf4eca35380933','url':'/_next/static/Ng_NN9gQywZowmg2O0pgm/_ssgManifest.js'},{'revision':null,'url':'/_next/static/chunks/100.52dda92e5e8a952a.js'},{'revision':null,'url':'/_next/static/chunks/277.6785dfaf22fdb0b7.js'},{'revision':null,'url':'/_next/static/chunks/307.8fdeb1732d749981.js'},{'revision':null,'url':'/_next/static/chunks/341.79535ba85bf1986f.js'},{'revision':null,'url':'/_next/static/chunks/363.25b64181ebca205d.js'},{'revision':null,'url':'/_next/static/chunks/422.8327da4bbddd0842.js'},{'revision':null,'url':'/_next/static/chunks/519.9f9c2d29933bf2ef.js'},{'revision':null,'url':'/_next/static/chunks/541.c69629e483176ad7.js'},{'revision':null,'url':'/_next/static/chunks/628.3175e816bc17d5c7.js'},{'revision':null,'url':'/_next/static/chunks/631.3623a2830ab30d1e.js'},{'revision':null,'url':'/_next/static/chunks/663.cfbde775630d10fd.js'},{'revision':null,'url':'/_next/static/chunks/693.55a42abad20cbdaa.js'},{'revision':null,'url':'/_next/static/chunks/73.73bfdde6a7a9b42b.js'},{'revision':null,'url':'/_next/static/chunks/744-5baf05ff91b58ebe.js'},{'revision':null,'url':'/_next/static/chunks/820.e8f3e1c85e1657ec.js'},{'revision':null,'url':'/_next/static/chunks/827.d01b6d69af340ba4.js'},{'revision':null,'url':'/_next/static/chunks/865.5265cef552d53595.js'},{'revision':null,'url':'/_next/static/chunks/912.b802c1066a130cf6.js'},{'revision':null,'url':'/_next/static/chunks/939.63d71e74e359a311.js'},{'revision':null,'url':'/_next/static/chunks/980.dd35e807b18063c1.js'},{'revision':null,'url':'/_next/static/chunks/990.61296e5870b91f11.js'},{'revision':null,'url':'/_next/static/chunks/framework-86d3b250d278cea9.js'},{'revision':null,'url':'/_next/static/chunks/main-738e097cd313908f.js'},{'revision':null,'url':'/_next/static/chunks/pages/404-8013c66eb40999e8.js'},{'revision':null,'url':'/_next/static/chunks/pages/_app-aee589671f9cc846.js'},{'revision':null,'url':'/_next/static/chunks/pages/_error-f0290a98eb3ed0ec.js'},{'revision':null,'url':'/_next/static/chunks/pages/index-a96995844e778716.js'},{'revision':'846118c33b2c0e922d7b3a7676f81f6f','url':'/_next/static/chunks/polyfills-42372ed130431b0a.js'},{'revision':null,'url':'/_next/static/chunks/webpack-4bca6879a7d98e24.js'},{'revision':null,'url':'/_next/static/css/2d03f0da2c678dfc.css'},{'revision':null,'url':'/_next/static/css/4dbcacc1122ac6b9.css'},{'revision':null,'url':'/_next/static/css/7b6724d2df70f48f.css'},{'revision':null,'url':'/_next/static/css/90e8d51d917ed7e3.css'},{'revision':null,'url':'/_next/static/css/98051ed25076b896.css'},{'revision':null,'url':'/_next/static/css/b736be3bd02b5d99.css'},{'revision':null,'url':'/_next/static/css/ca311e6c030663d4.css'},{'revision':null,'url':'/_next/static/css/cd4d7f2458487399.css'},{'revision':null,'url':'/_next/static/css/dee878eb64099d92.css'}],k().precache(a),q(new E(k(),void 0)),q(new W(S,{denylist:[/^\/api\//]}))})();
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "Scrabble Solver",
3
+ "short_name": "Scrabble Solver",
4
+ "description": "Free Scrabble word finder and board solver.",
5
+ "start_url": "/",
6
+ "display": "standalone",
7
+ "background_color": "#f4f4f4",
8
+ "theme_color": "#efe3ae",
9
+ "icons": [
10
+ { "src": "/icons/favicon-196x196.png", "sizes": "196x196", "type": "image/png" },
11
+ { "src": "/icons/favicon-128.png", "sizes": "128x128", "type": "image/png" },
12
+ { "src": "/icons/favicon.svg", "sizes": "any", "type": "image/svg+xml" }
13
+ ]
14
+ }
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://scrabble-solver.org/</loc></url></urlset>
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- packages/word-definitions/src/__tests__/expected/** linguist-vendored
2
- packages/word-definitions/src/__tests__/input/** linguist-vendored
package/.next/trace DELETED
@@ -1 +0,0 @@
1
- [{"name":"generate-buildid","duration":104,"timestamp":6976432642,"id":4,"parentId":1,"tags":{},"startTime":1775393488991,"traceId":"668e008978835694"},{"name":"load-custom-routes","duration":181,"timestamp":6976432793,"id":5,"parentId":1,"tags":{},"startTime":1775393488992,"traceId":"668e008978835694"},{"name":"create-dist-dir","duration":2248,"timestamp":6976433018,"id":6,"parentId":1,"tags":{},"startTime":1775393488992,"traceId":"668e008978835694"},{"name":"clean","duration":188,"timestamp":6976435573,"id":7,"parentId":1,"tags":{},"startTime":1775393488994,"traceId":"668e008978835694"},{"name":"next-build","duration":14732,"timestamp":6976421096,"id":1,"tags":{"buildMode":"default","version":"16.2.2","bundler":"webpack","failed":true},"startTime":1775393488980,"traceId":"668e008978835694"}]
package/.next/trace-build DELETED
@@ -1 +0,0 @@
1
- [{"name":"next-build","duration":14732,"timestamp":6976421096,"id":1,"tags":{"buildMode":"default","version":"16.2.2","bundler":"webpack","failed":true},"startTime":1775393488980,"traceId":"668e008978835694"}]
package/.oxfmtrc.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "tabWidth": 2,
3
- "printWidth": 120,
4
- "singleQuote": true,
5
- "arrowParens": "always",
6
- "trailingComma": "all",
7
- "sortPackageJson": false,
8
- "ignorePatterns": [
9
- ".next/",
10
- "build/",
11
- "coverage/",
12
- "node_modules/",
13
- "packages/scrabble-solver/public/service-worker.js",
14
- "/.nx/cache",
15
- "/.nx/workspace-data"
16
- ]
17
- }